/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* =========================
   VARIABLES
========================= */
:root {

    --bg-dark: #08101a;
    --bg-dark-2: #0b1220;

    --card: rgba(17, 24, 39, .85);

    --primary: #22c55e;
    --primary-dark: #16a34a;

    --secondary: #3b82f6;

    --danger: #ef4444;

    --text: #ffffff;
    --text-muted: #94a3b8;

}

/* =========================
   BODY
========================= */

body {

    background:

        radial-gradient(
            circle at top right,
            rgba(34,197,94,.12),
            transparent 30%
        ),

        radial-gradient(
            circle at bottom left,
            rgba(59,130,246,.08),
            transparent 30%
        ),

        linear-gradient(
            180deg,
            var(--bg-dark),
            var(--bg-dark-2)
        );

    color: var(--text);

    min-height: 100vh;

     padding-bottom: 55px;

}

/* =========================
   LINKS
========================= */

a {
    color: inherit;
}

/* =========================
   HEADER
========================= */

.header {

    padding: 16px;

    background:
        rgba(15,23,42,.88);

    backdrop-filter: blur(20px);

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 1000;

    border-bottom:
        1px solid rgba(255,255,255,.05);

}

.header::after {

    content: '';

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(34,197,94,.7),
            transparent
        );

}

/* =========================
   BRAND
========================= */

.brand {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 22px;

    font-weight: 700;

    color: white;

}

.brand::before {

    content: '';

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:

        0 0 10px var(--primary),

        0 0 20px rgba(34,197,94,.5);

}


/* =========================
   PAGE
========================= */

.page-container {

    width: 100%;

    padding: 16px;

}

/* =========================
   CARD
========================= */

.card {

    display: block;

    text-decoration: none;

    color: white;

    background:

        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.95)
        );

    border:
        1px solid rgba(255,255,255,.06);

    border-radius: 24px;

    padding: 20px;

    box-shadow:

        0 15px 40px rgba(0,0,0,.35),

        0 0 25px rgba(34,197,94,.05);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}

.card:hover {

    transform: translateY(-3px);

    border-color:
        rgba(34,197,94,.25);

    box-shadow:

        0 15px 40px rgba(0,0,0,.35),

        0 0 30px rgba(34,197,94,.15);

}

.card h3 {

    margin-bottom: 10px;

    color: white;

}

/* =========================
   TITLES
========================= */

.section-title {

    font-size: 32px;

    font-weight: 700;

    margin-bottom: 12px;

}

.text-muted {

    color: var(--text-muted);

}

/* =========================
   BADGE
========================= */

.role-badge {

    display: inline-block;

    padding: 8px 14px;

    border-radius: 999px;

    background:

        linear-gradient(
            135deg,
            var(--secondary),
            var(--primary)
        );

    color: white;

    font-size: 13px;

    font-weight: 600;

}

/* =========================
   BUTTONS
========================= */

.btn-primary {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 52px;

    padding: 14px 18px;

    border-radius: 14px;

    background:

        linear-gradient(
            135deg,
            #3b82f6,
            #22c55e
        );

    color: white !important;

    text-decoration: none !important;

    font-weight: 700;

    cursor: pointer;

    box-shadow:

        0 0 20px rgba(34,197,94,.25);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}

.btn-primary:hover {

    transform: translateY(-2px);

    box-shadow:

        0 0 30px rgba(34,197,94,.4);

}

.play-btn {

    margin-top: auto;

}

.btn-danger {

    display: inline-block;

    padding: 14px 18px;

    border-radius: 14px;

    text-decoration: none;

    color: white;

    background: var(--danger);

}

/* =========================
   FOOTER
========================= */

.footer {

    margin-top: 40px;

    padding: 20px;

    text-align: center;

    color: var(--text-muted);

    border-top:
        1px solid rgba(255,255,255,.05);

}

/* =========================
   DESKTOP
========================= */

@media (min-width: 768px) {

    .hamburger {
        display: none;
    }

    .nav {

        display: flex !important;

        flex-direction: row;

        position: static;

        background: transparent;

        border: none;

        padding: 0;

    }

    .nav a {

        background: transparent;

    }

}
/* =========================
   GAMES PAGE
========================= */

.games-page {

    width: 100%;

    padding: 16px;

}

.games-title {

    color: white;

    font-size: 32px;

    font-weight: 700;

    margin-bottom: 20px;

}

.games-grid {

    display: grid;

    gap: 16px;

}

@media (min-width: 768px) {

    .games-grid {

        grid-template-columns:
            repeat(
                auto-fill,
                minmax(320px, 1fr)
            );

    }

}

.game-card {

    display: flex;

    flex-direction: column;

    gap: 16px;

    margin-bottom:18px;

}

.game-city {

    color: #94a3b8;

    font-size: 14px;

}

.game-title {

    color: white;

    font-size: 24px;

    font-weight: 700;

}

.game-stats {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}

.stat-badge {

    padding: 8px 12px;

    border-radius: 999px;

    background:
        rgba(34,197,94,.08);

    border:
        1px solid rgba(34,197,94,.15);

    color: #22c55e;

    font-size: 13px;

}

.play-btn {

    margin-top: auto;

}

.empty-state {

    text-align: center;

}

/* =========================
   MY GAMES
========================= */

.my-games-page {

    width: 100%;

    padding: 16px;

}

.page-title {

    color: white;

    font-size: 32px;

    font-weight: 700;

    margin-bottom: 20px;

}

.games-grid {

    display: grid;

    gap: 16px;

    margin-top: 20px;

}

@media (min-width: 768px) {

    .games-grid {

        grid-template-columns:
            repeat(
                auto-fill,
                minmax(320px, 1fr)
            );

    }

}

.game-card {

    display: flex;

    flex-direction: column;

    gap: 14px;

}

.game-city {

    color: #94a3b8;

    font-size: 14px;

}

.game-title {

    color: white;

    font-size: 24px;

    font-weight: 700;

}

.game-status {

    display: inline-flex;

    align-self: flex-start;

    padding: 8px 12px;

    border-radius: 999px;

    background:
        rgba(34,197,94,.08);

    border:
        1px solid rgba(34,197,94,.18);

    color: #22c55e;

    font-size: 13px;

    font-weight: 600;

}

.card-actions {

    margin-top: auto;

}
/* =========================
   MOBILE NAVIGATION
========================= */

.mobile-nav {

    position: fixed;

    left: 0;

    right: 0;

    bottom: 0;

    height: 72px;

    padding-bottom: 8px;

    background:
        rgba(15,23,42,.95);

    backdrop-filter: blur(20px);

    border-top:
        1px solid rgba(255,255,255,.06);

    display: flex;

    justify-content: space-around;

    align-items: center;

    z-index: 9999;
}

.mobile-nav a {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 4px;

    color: #94a3b8;

    text-decoration: none;

    font-size: 12px;

    transition: .2s;

}

.mobile-nav a:hover {

    color: #22c55e;

}

.mobile-nav span {

    font-size: 22px;

}

@media (min-width: 768px) {

    .mobile-nav {

        max-width: 500px;

        left: 50%;

        transform: translateX(-50%);

        border-radius: 20px 20px 0 0;

    }

}
/* =========================
   FORMS
========================= */

.create-page {

    width: 100%;

    padding: 16px;

}

.create-card {

    max-width: 900px;

    margin: 0 auto;

}

.page-subtitle {

    color: #94a3b8;

    margin-bottom: 24px;

}

.form-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 18px;

}

.form-group label {

    color: white;

    font-size: 14px;

    font-weight: 600;

}

.form-row {

    display: grid;

    gap: 16px;

}

@media (min-width: 768px) {

    .form-row {

        grid-template-columns: 1fr 1fr;

    }

}

input,
textarea,
select {

    width: 100%;

    padding: 14px 16px;

    border-radius: 14px;

    border:
        1px solid rgba(255,255,255,.08);

    background:
        rgba(255,255,255,.03);

    color: white;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}

textarea {

    min-height: 140px;

    resize: vertical;

}

input::placeholder,
textarea::placeholder {

    color: #64748b;

}

input:focus,
textarea:focus,
select:focus {

    border-color:
        rgba(34,197,94,.4);

    box-shadow:

        0 0 20px rgba(34,197,94,.12);

}

.create-btn {

    margin-top: 10px;

}
/* =========================
   GAME EDITOR
========================= */

.editor-page {

    padding: 16px;

}

.editor-header {

    margin-bottom: 16px;

}

.editor-header h1 {

    font-size: 28px;

    margin-bottom: 8px;

}

.editor-stats {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-bottom: 16px;

}

.stat-card {

    background:
        rgba(34,197,94,.08);

    border:
        1px solid rgba(34,197,94,.15);

    border-radius: 18px;

    padding: 16px;

    text-align: center;

    color: white;

}

.map-card {

    overflow: hidden;

    padding: 0;
  margin-bottom: 24px;

}

#map {

    width: 100%;

    height: 420px;

}

.sidebar {

    margin-top: 16px;

}

.point-item {

    background:
        rgba(255,255,255,.03);

    border:
        1px solid rgba(255,255,255,.05);

    border-radius: 16px;

    padding: 14px;

    margin-bottom: 12px;

}

.coordinates {

    background:
        rgba(34,197,94,.06);

    border:
        1px solid rgba(34,197,94,.12);

    border-radius: 14px;

    padding: 12px;

    margin-bottom: 16px;

}
.order-buttons {

    display: flex;

    gap: 8px;

    margin: 10px 0;

}

.order-btn {

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 12px;

    background:
        rgba(34,197,94,.10);

    border:
        1px solid rgba(34,197,94,.20);

    color: #22c55e;

    font-size: 18px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;

}

.order-btn:hover {

    background:
        rgba(34,197,94,.18);

    box-shadow:
        0 0 15px rgba(34,197,94,.20);

}

.delete-point-btn {

    border: none;

    border-radius: 12px;

    padding: 10px 16px;

    background:
        rgba(239,68,68,.10);

    border:
        1px solid rgba(239,68,68,.20);

    color: #ef4444;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;

}

.delete-point-btn:hover {

    background:
        rgba(239,68,68,.18);

    box-shadow:
        0 0 15px rgba(239,68,68,.20);

}
.point-header {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 16px;

}

.point-number {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    border: 2px solid #22c55e;

    color: #22c55e;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 18px;

    box-shadow:
        0 0 15px rgba(34,197,94,.15);

}

.point-title {

    flex: 1;

    color: white;

    font-size: 16px;

}

.point-order-badge {
 font-size: 16px;

     padding: 8px 12px;

    border-radius: 12px;

    background:
        rgba(255,255,255,.03);

    border:
        1px solid rgba(255,255,255,.05);

    color: #22c55e;

    font-weight: 700;

}

.point-item {

    background:
        rgba(255,255,255,.03);

    border:
        1px solid rgba(255,255,255,.05);

    border-radius: 16px;

    padding: 16px;

    margin-bottom: 12px;

    display: flex;

    flex-direction: column;

    gap: 12px;
}

/* =========================
   CHECKPOINTS
========================= */

.point-item {

    background:
        rgba(255,255,255,.03);

    border:
        1px solid rgba(255,255,255,.05);

    border-radius: 20px;

    padding: 18px;

    margin-bottom: 14px;

}

.point-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;

}

.point-title {

    color: white;

    font-size: 28px;

    font-weight: 700;

}

.point-order-badge {

    padding: 10px 16px;

    border-radius: 14px;

    background:
        rgba(255,255,255,.03);

    border:
        1px solid rgba(255,255,255,.05);

    color: #22c55e;

    font-weight: 700;

    font-size: 20px;

}

.point-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

}

.order-buttons {

    display: flex;

    gap: 10px;

}

.order-btn {

    width: 54px;

    height: 54px;

    border: none;

    border-radius: 14px;

    background:
        rgba(34,197,94,.10);

    border:
        1px solid rgba(34,197,94,.20);

    color: #22c55e;

    font-size: 20px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;

}

.order-btn:hover {

    background:
        rgba(34,197,94,.18);

    box-shadow:
        0 0 15px rgba(34,197,94,.20);

}

.delete-point-btn {

    height: 54px;

    padding: 0 22px;

    border: none;

    border-radius: 14px;

    background:
        rgba(239,68,68,.10);

    border:
        1px solid rgba(239,68,68,.20);

    color: #ef4444;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;

}

.delete-point-btn:hover {

    background:
        rgba(239,68,68,.18);

    box-shadow:
        0 0 15px rgba(239,68,68,.20);

}
.editor-header {

    margin-bottom: 24px;

}

.editor-title {

    font-size: 42px;

    font-weight: 800;

    color: white;

    margin-bottom: 10px;

}

.editor-subtitle {

    color: #94a3b8;

    font-size: 16px;

    margin-bottom: 16px;

}

.editor-description {

    color: white;

    opacity: .85;

    line-height: 1.6;

}
.editor-stats {

    margin-bottom: 20px;

}

.map-hint {

    margin-top: 12px;

    margin-bottom: 20px;

    padding: 14px 16px;

    border-radius: 14px;

    background:
        rgba(34,197,94,.08);

    border:
        1px solid rgba(34,197,94,.15);

    color: #22c55e;

    font-size: 14px;

    font-weight: 600;

}

.point-modal {

    position: fixed;

    left: 16px;

    right: 16px;

    bottom: 90px;

    z-index: 9999;

    background:
        rgba(15,23,42,.98);

    backdrop-filter: blur(20px);

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 20px;

    padding: 20px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.5);

}

.modal-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}

.close-modal-btn {

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 12px;

    background:
        rgba(255,255,255,.05);

    color: white;

    cursor: pointer;

}
#checkpoint-name {

    color: white;

    font-size: 16px;

    font-weight: 600;

    margin-bottom: 8px;

    opacity: .8;

}

.distance {

    font-size: 42px;

    font-weight: 800;

    color: #22c55e;

    line-height: 1;

}
.game-highlight {

    margin-top: 24px;

    padding-top: 20px;

    border-top:
        1px solid rgba(255,255,255,.08);

}

.highlight-label {

    color: #94a3b8;

    font-size: 13px;

    margin-bottom: 8px;

}

.highlight-value {

    color: #22c55e;

    font-size: 18px;

    font-weight: 700;

}
/* =========================
   PLAY PAGE
========================= */

.play-page {

    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    padding: 20px;

}

.play-header {

    margin-bottom: 24px;

}

.play-title {

    color: white;

    font-size: 32px;

    font-weight: 800;


}

.play-city {

    color: #94a3b8;

    font-size: 18px;

}

.play-container {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 24px;

}

#play-map {

    height: 600px;

    border-radius: 24px;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.08);

}

.game-card {

    background:
        rgba(15,23,42,.85);

    border:
        1px solid rgba(34,197,94,.15);

    border-radius: 24px;

    padding: 24px;

}

.game-highlight {

    margin-top: 24px;

    padding-top: 20px;

    border-top:
        1px solid rgba(255,255,255,.08);

}

.highlight-label {

    color: #94a3b8;

    font-size: 13px;

    margin-bottom: 8px;

}

.highlight-value {

    color: #22c55e;

    font-size: 18px;

    font-weight: 700;

}

.game-description {

    color: #cbd5e1;

    line-height: 1.7;

}

.start-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    margin-top: 24px;

    height: 56px;

    border-radius: 16px;

    text-decoration: none;

    color: white;

    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #22c55e
        );

    box-shadow:
        0 0 25px rgba(34,197,94,.25);

}

@media (max-width: 992px) {

    .play-container {

        grid-template-columns: 1fr;

    }

    #play-map {

        height: 400px;

    }

    .play-title {

        font-size: 36px;

    }

}
.game-preview {


    padding-top: 20px;

    border-top:
        1px solid rgba(255,255,255,.08);

}

.preview-title {

    color: white;

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 10px;

}

.preview-description {

    color: #94a3b8;

    line-height: 1.6;

}
/* =========================
   HOME DASHBOARD
========================= */

.home-container {

    max-width: 520px;

    margin: 0 auto;

    padding: 20px;

}

.home-hero {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 24px;

}

.home-hero h1 {

    color: white;

    font-size: 34px;

    font-weight: 700;

    margin-bottom: 8px;

}

.home-hero p {

    color: #94a3b8;

}

.profile-avatar {

    width: 68px;

    height: 68px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #22c55e,
            #2563eb
        );

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 28px;

    font-weight: 700;

    box-shadow:
        0 0 20px rgba(34,197,94,.25);

}

.dashboard-stats {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 8px;

    margin-bottom: 10px;

}

.dashboard-stat {

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.95)
        );

    border:
        1px solid rgba(255,255,255,.06);

    border-radius: 14px;

    padding: 10px;

    text-align: center;
}

.dashboard-number {

    font-size: 20px;

    font-weight: 700;

    color: #22c55e;

    margin-bottom: 2px;
}

.dashboard-label {

    color: #94a3b8;

    font-size: 11px;

    line-height: 1.2;
}

.activity-card,
.achievement-card {

    background:
        rgba(30,41,59,.65);

    border:
        1px solid rgba(
            255,
            255,
            255,
            .05
        );

    border-radius: 20px;

    padding: 20px;

    margin-bottom: 20px;

}

.card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.activity-period {

    color: #94a3b8;

    font-size: 12px;

}

.activity-chart {

    margin-top: 20px;

    height: 180px;

    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            rgba(34,197,94,.15),
            transparent
        );

    position: relative;

    overflow: hidden;

}

.activity-line {

    position: absolute;

    left: 20px;

    right: 20px;

    bottom: 40px;

    height: 4px;

    background: #22c55e;

    border-radius: 999px;

    box-shadow:
        0 0 20px rgba(34,197,94,.8);

}

.achievement-card h2 {

    margin-bottom: 10px;

}

.achievement-card p {

    color: #94a3b8;

}

.achievement-progress {

    height: 10px;

    background:
        rgba(255,255,255,.08);

    border-radius: 999px;

    margin: 15px 0;

    overflow: hidden;

}

.achievement-bar {

    width: 70%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            #22c55e,
            #2563eb
        );

    border-radius: 999px;

}
.profile-avatar {

    width: 72px;

    height: 72px;

    border-radius: 50%;

    overflow: hidden;

    border: 2px solid #22c55e;

    box-shadow:
        0 0 20px rgba(34,197,94,.4);

}

.profile-avatar img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}
/* =========================
   LEADERBOARDS
========================= */

.leaderboards-page {

    max-width: 900px;

    margin: 0 auto;

    padding: 20px;

}

.leaderboard-tabs {

    display: flex;

    gap: 10px;

    margin-bottom: 20px;

}

.tab-btn {

    border: none;

    padding: 12px 18px;

    border-radius: 12px;

    cursor: pointer;

    color: white;

    background:
        rgba(255,255,255,.05);

}

.tab-btn.active {

    background:
        linear-gradient(
            135deg,
            #22c55e,
            #2563eb
        );

}


.leaderboard-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 0;

    border-bottom:
        1px solid rgba(255,255,255,.05);

}

.rank {

    width: 50px;

    color: #22c55e;

    font-weight: 700;

}

.player-info {

    flex: 1;

    color: white;

}

.score {

    color: #94a3b8;

    font-weight: 700;

}

.start-card {

    background:
        linear-gradient(
            180deg,
            rgba(5,10,20,.98),
            rgba(10,20,35,.98)
        );

    border:
        1px solid rgba(34,197,94,.35);

    box-shadow:
        0 0 40px rgba(34,197,94,.18);

    border-radius: 28px;

    padding: 30px;
}
.checkpoint-hint {

    color:#94a3b8;

    margin-top:12px;

    font-size:15px;
}

.progress-wrapper {

    margin-top:20px;
}

#checkpoint-progress {

    display:flex;

    justify-content:space-between;

    gap:10px;
}

.progress-dot {

    flex:1;

    height:8px;

    border-radius:999px;

    background:
        rgba(255,255,255,.12);
}

.progress-dot.active {

    background:#22c55e;

    box-shadow:
        0 0 12px rgba(34,197,94,.6);
}

#checkpoint-counter {

    margin-top:12px;

    color:#94a3b8;
}

.leaderboard-card {


    background:
        rgba(15,23,42,.85);

    border:
        1px solid rgba(34,197,94,.15);

    border-radius:20px;

    padding:18px;
    margin-bottom: 5px;
}

.leaderboard-title {

    color:#22c55e;

    font-weight:700;

    margin-bottom:15px;
}

.leaderboard-row {

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:10px 0;

    border-bottom:
        1px solid rgba(255,255,255,.05);
}

.leaderboard-row:last-child {

    border-bottom:none;
}
.leaderboard-user {

    display:flex;

    align-items:center;

    gap:10px;
}

.leaderboard-avatar {

    width:34px;

    height:34px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid rgba(255,255,255,.15);
}

.leaderboard-name {

    color:white;

    text-decoration:none;

    font-weight:600;
}

.leaderboard-name:hover {

    color:#22c55e;
}

.leaderboard-medal {

    width:28px;

    text-align:center;
}

.game-action-btn {

    display:flex;

    justify-content:center;
    align-items:center;

    width:100%;

    height:52px;

    border-radius:16px;

    text-decoration:none;

    font-weight:700;

    transition:.2s;

    margin-top:10px;
}

.danger-btn {

    background:
        rgba(239,68,68,.12);

    border:
        1px solid rgba(
            239,
            68,
            68,
            .25
        );

    color:#f87171;
}

.danger-btn:hover {

    transform:
        translateY(-2px);

    background:
        rgba(239,68,68,.18);
}
.game-status {

    display:inline-flex;

    align-items:center;

    padding:8px 14px;

    border-radius:999px;

    font-size:13px;

    font-weight:700;

    margin-bottom:16px;
}

.game-status.published {

    background:
        rgba(34,197,94,.15);

    color:#22c55e;


}

.game-status.draft {

    background:
        rgba(245,158,11,.15);

    color:#f59e0b;


}
.game-badges {

    display:flex;

    gap:10px;

    margin-bottom:22px;
}

.game-status,
.mode-badge {

    height:38px;

    min-width:95px;

    padding:0 14px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:999px;

    font-size:13px;

    font-weight:700;

    box-sizing:border-box;
}
.game-actions {

    display:flex;

    gap:12px;
}

.action-btn {

    flex:1;

    height:48px;

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    border-radius:14px;

    font-weight:700;

    transition:.2s;
}
.action-btn.edit {

    border:
        1px solid rgba(
            59,
            130,
            246,
            .25
        );

    background:
        rgba(
            59,
            130,
            246,
            .08
        );

    color:#60a5fa;
}
.action-btn.publish {

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #22c55e
        );

    color:white;

    box-shadow:
        0 0 20px rgba(
            34,
            197,
            94,
            .25
        );
}
.action-btn.hide {

    border:
        1px solid rgba(
            239,
            68,
            68,
            .25
        );

    background:
        rgba(
            239,
            68,
            68,
            .08
        );

    color:#f87171;
}
.action-btn:hover {

    transform:
        translateY(-2px);
}
.game-content {

    padding: 0 20px 18px;
}

.game-badges {

    display: flex;

    gap: 10px;

    margin-top: -8px;

    margin-bottom: 12px;

    flex-wrap: wrap;
}

.game-status,
.mode-badge {

    height: 34px;

    padding: 0 14px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;
}

.published {

    background: rgba(34,197,94,.12);

    border: 1px solid rgba(34,197,94,.25);

    color: #22c55e;
}

.draft {

    background: rgba(245,158,11,.12);

    border: 1px solid rgba(245,158,11,.25);

    color: #f59e0b;
}

.mode-badge {

    background: rgba(59,130,246,.12);

    border: 1px solid rgba(59,130,246,.25);

    color: #60a5fa;
}

.game-footer {

    border-top:
        1px solid rgba(
            255,
            255,
            255,
            .06
        );

    padding-top: 14px;
}

.game-stats {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 14px;
}

.game-stat {

    display: flex;

    align-items: center;

    gap: 6px;

    color: white;

    font-size: 13px;

    font-weight: 600;
}

.game-actions {

    display: flex;

    gap: 10px;
}

.action-btn {

    flex: 1;

    height: 46px;

    display: flex;

    justify-content: center;

    align-items: center;

    text-decoration: none;

    border-radius: 14px;

    font-size: 14px;

    font-weight: 700;

    transition: all .2s ease;
}

.action-btn:hover {

    transform: translateY(-2px);
}

.edit-btn {

    background:
        rgba(
            59,
            130,
            246,
            .08
        );

    border:
        1px solid rgba(
            59,
            130,
            246,
            .25
        );

    color: #60a5fa;
}

.publish-btn {

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #22c55e
        );

    color: white;

    border: none;

    box-shadow:
        0 0 18px rgba(
            34,
            197,
            94,
            .20
        );
}

.hide-btn {

    background:
        rgba(
            239,
            68,
            68,
            .08
        );

    border:
        1px solid rgba(
            239,
            68,
            68,
            .25
        );

    color: #f87171;
}
.game-cover {
    margin-bottom:0 !important;
}

.game-content {
    margin-top:0 !important;
    padding-top:0 !important;
}

.game-badges {
    margin-top:0 !important;
}
.game-cover {

    position: relative;

    height: 160px;

    overflow: hidden;

    border-radius: 22px;

    margin-bottom: 0 !important;

    box-shadow:
        0 10px 30px rgba(
            0,
            0,
            0,
            .25
        );
}

.game-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    border-radius: 22px;
}

.game-cover-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 14px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.85),
            rgba(0,0,0,.15)
        );
}

.game-content {

    margin-top: 0 !important;

    padding: 0 20px 18px !important;
}

.game-badges {

    display: flex;

    gap: 10px;

    margin-top: 0 !important;

    margin-bottom: 12px;

    flex-wrap: wrap;
}

.game-status,
.mode-badge {

    height: 34px;

    padding: 0 14px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;
}

.published {

    background:
        rgba(34,197,94,.12);

    border:
        1px solid rgba(
            34,
            197,
            94,
            .25
        );

    color: #22c55e;
}

.draft {

    background:
        rgba(245,158,11,.12);

    border:
        1px solid rgba(
            245,
            158,
            11,
            .25
        );

    color: #f59e0b;
}

.mode-badge {

    background:
        rgba(59,130,246,.12);

    border:
        1px solid rgba(
            59,
            130,
            246,
            .25
        );

    color: #60a5fa;
}

.game-footer {

    border-top:
        1px solid rgba(
            255,
            255,
            255,
            .06
        );

    padding-top: 14px;
}

.game-stats {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 14px;
}

.game-stat {

    display: flex;

    align-items: center;

    gap: 6px;

    color: white;

    font-size: 13px;

    font-weight: 600;
}

.game-actions {

    display: flex;

    gap: 10px;
}

.action-btn {

    flex: 1;

    height: 46px;

    display: flex;

    justify-content: center;

    align-items: center;

    text-decoration: none;

    border-radius: 14px;

    font-size: 14px;

    font-weight: 700;

    transition: all .2s ease;
}

.action-btn:hover {

    transform: translateY(-2px);
}

.edit-btn {

    background:
        rgba(
            59,
            130,
            246,
            .08
        );

    border:
        1px solid rgba(
            59,
            130,
            246,
            .25
        );

    color: #60a5fa;
}

.publish-btn {

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #22c55e
        );

    color: white;

    border: none;

    box-shadow:
        0 0 18px rgba(
            34,
            197,
            94,
            .20
        );
}

.hide-btn {

    background:
        rgba(
            239,
            68,
            68,
            .08
        );

    border:
        1px solid rgba(
            239,
            68,
            68,
            .25
        );

    color: #f87171;
}

.history-item {

    display:flex;

    align-items:center;

    gap:16px;

    padding:16px 20px;

    margin-bottom:12px;

    border-radius:18px;

    background:
        rgba(15,23,42,.8);

    border:
        1px solid rgba(
            255,
            255,
            255,
            .06
        );
}

.history-rank {

    width:50px;

    text-align:center;

    font-size:24px;

    font-weight:700;
}

.history-info {

    flex:1;
}

.history-time {

    color:white;

    font-size:18px;

    font-weight:700;

    margin-bottom:4px;
}

.history-date {

    color:#94a3b8;

    font-size:13px;
}

.activity-feed {

    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top:15px;
}

.activity-feed-card {

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    padding:14px 18px;

    margin-bottom:8px;

    border-radius:18px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.95)
        );

    border:
        1px solid rgba(255,255,255,.06);

    text-decoration:none;

    color:white;
}

.activity-feed-content {

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;
}

.activity-feed-header {

    display:flex;

    justify-content:space-between;

    align-items:flex-start;
}

.activity-feed-title {

    font-size:16px;

    font-weight:700;
}

.activity-feed-city {

    margin-top:4px;

    color:#94a3b8;

    font-size:13px;
}

.activity-feed-stats {

    display:flex;

    gap:12px;

    justify-content:flex-end;

    font-size:13px;
}

.activity-feed-date {

    color:#94a3b8;

    font-size:12px;

    margin-top:4px;
}

.activity-feed-arrow {

    font-size:28px;

    color:white;
}
.activity-card h2 {

    margin-bottom:20px;
}
.mode-card {

    display:flex;

    align-items:center;

    gap:18px;

    padding:22px;

    margin-bottom:16px;

    border-radius:24px;

    text-decoration:none;

    color:white;

    background:
        linear-gradient(
            135deg,
            rgba(
                30,
                41,
                59,
                .95
            ),
            rgba(
                15,
                23,
                42,
                .95
            )
        );

    border:1px solid rgba(
        255,
        255,
        255,
        .05
    );
}

.mode-icon {

    width:64px;
    height:64px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:18px;

    font-size:30px;

    background:
        rgba(
            255,
            255,
            255,
            .05
        );
}

.mode-card h2 {

    margin:0 0 6px 0;

    font-size:22px;
}

.mode-card p {

    margin:0;

    color:#94a3b8;
}

.mode-card.disabled {

    opacity:.5;
}

.city-filter {

    width:100%;

    height:56px;

    padding:0 20px;

    border:none;

    border-radius:18px;

    background:#1e293b;

    color:white;

    font-size:15px;

    appearance:none;

    -webkit-appearance:none;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5'/%3E%3C/svg%3E");

    background-repeat:no-repeat;

    background-position:right 18px center;

    background-size:16px;
}

.filter-wrapper {

    margin-top:24px;

    margin-bottom:28px;
}

.city-chips {

    display:flex;

    gap:10px;

    overflow-x:auto;

    margin-bottom:28px;

    padding-bottom:4px;

    scrollbar-width:none;
}

.city-chips::-webkit-scrollbar {

    display:none;
}

.city-chip {

    flex-shrink:0;

    height:42px;

    padding:0 18px;

    border-radius:999px;

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    color:#cbd5e1;

    font-size:14px;

    font-weight:600;

    background:
        rgba(
            255,
            255,
            255,
            .05
        );

    border:1px solid
        rgba(
            255,
            255,
            255,
            .08
        );

    transition:.2s;
}

.city-chip.active {

    color:white;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #22c55e
        );

    border:none;
}

.profile-hero {

    position: relative;

    padding: 20px;

    margin-bottom: 10px;
    margin-top: 10px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.95)
        );

    border:
        1px solid rgba(255,255,255,.06);

    text-align: center;
}

.profile-avatar {

    width: 90px;
    height: 90px;

    border-radius: 50%;

    border:
        4px solid #22c55e;

    object-fit: cover;

    margin-bottom: 0px;
}

.profile-name {

    font-size: 32px;

    font-weight: 700;

    margin-bottom: 0px;
}


.profile-rank {

    color: #22c55e;

    font-size: 22px;

    font-weight: 700;

    margin-bottom: 15px;
}

.profile-progress {

    width: 100%;

    height: 14px;

    background:
        rgba(255,255,255,.08);

    border-radius: 20px;

    overflow: hidden;

    margin-bottom: 15px;
}

.profile-progress-fill {

    height: 100%;

    background:
        linear-gradient(
            90deg,
            #22c55e,
            #16a34a
        );
}

.profile-menu-btn {

    position: absolute;

    top: 20px;
    right: 20px;

    border: none;

    background: none;

    color: white;

    font-size: 28px;

    cursor: pointer;
}

.profile-hero-content {

    display: flex;

    align-items: center;

    gap: 30px;
}

.profile-info {

    flex: 1;

    text-align: left;
}

.profile-avatar {

    width: 110px;
    height: 110px;

    border-radius: 50%;

    object-fit: cover;

    border: 4px solid #22c55e;
}

.profile-name {

    margin: 0 0 4px 0;
}

.profile-exp,
.profile-next {

    margin-top: 8px;

    color: #cbd5e1;

    font-size: 16px;
}

@media (max-width: 768px) {

    .profile-hero-content {

        flex-direction: column;

        text-align: center;
    }

    .profile-info {

        text-align: center;
    }

}

.section-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;
}

.section-link {

    color: #22c55e;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;
}

.section-link:hover {

    opacity: .8;
}

.activity-feed-left {

    display:flex;

    align-items:center;

    gap:14px;
}

.activity-feed-icon {

    width:42px;

    height:42px;

    border-radius:12px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:
        rgba(34,197,94,.15);

    font-size:20px;

    flex-shrink:0;
}

.activity-feed-details {

    display:flex;

    flex-direction:column;
}

.activity-feed-meta {

    color:#94a3b8;

    font-size:13px;

    margin-top:2px;
}

.activity-thumb {

    width:48px;
    height:48px;

    border-radius:12px;

    object-fit:cover;

    flex-shrink:0;
}

.free-run-thumb {

    display:flex;

    align-items:center;
    justify-content:center;

    background:
        rgba(34,197,94,.15);

    font-size:22px;
}

.preview-section {

    margin-bottom:24px;

}

.preview-title {

    color:white;

    font-size:28px;

    font-weight:800;

    margin-bottom:8px;

}

.preview-description {

    margin-top:16px;

    color:#cbd5e1;

    line-height:1.7;

    font-size:15px;

}

.game-highlight {

    margin-top:24px;

    margin-bottom:24px;

    padding:20px;

    border-radius:18px;

    background:
        rgba(
            34,
            197,
            94,
            .08
        );

    border:
        1px solid rgba(
            34,
            197,
            94,
            .2
        );
}

.highlight-label {

    color:#94a3b8;

    font-size:13px;

    margin-bottom:8px;

}

.highlight-value {

    color:#22c55e;

    font-size:24px;

    font-weight:700;

}

.play-description {

    margin-top:16px;

    color:#94a3b8;

    line-height:1.7;

    font-size:15px;

}

.play-stats {

    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:10px;

}

.play-stat {

    background:
        rgba(
            255,
            255,
            255,
            .04
        );

    border:
        1px solid rgba(
            255,
            255,
            255,
            .06
        );

    border-radius:16px;

    padding:14px 8px;

    text-align:center;

}

.play-stat-value {

    font-size:18px;

    font-weight:700;

    color:#22c55e;


}

.play-stat-label {

    font-size:11px;

    color:#94a3b8;

}

.play-record {

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:16px;

    border-radius:16px;

    background:
        rgba(
            34,
            197,
            94,
            .08
        );

    border:
        1px solid rgba(
            34,
            197,
            94,
            .15
        );

    color:white;

    font-weight:600;

}

.play-record span {

    color:#22c55e;

    font-size:20px;

    font-weight:700;

}

@media (max-width:768px) {

    .play-stats {

        grid-template-columns:
            repeat(4,1fr);

        gap:8px;

    }

    .play-stat {

        padding:10px 4px;

    }

    .play-stat-value {

        font-size:15px;

    }

    .play-stat-label {

        font-size:10px;

    }

}

.achievement-earned {

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    margin-top:20px;

    margin-bottom:24px;

}

.achievement-earned-icon {

    width:56px;

    height:56px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

    border-radius:16px;

    background:
        rgba(
            34,
            197,
            94,
            .12
        );

    border:
        1px solid rgba(
            34,
            197,
            94,
            .25
        );

}

.achievement-progress-list {

    display:flex;

    flex-direction:column;

    gap:12px;

}

.achievement-progress-item {

    padding:14px;

    border-radius:16px;

    background:
        rgba(
            255,
            255,
            255,
            .03
        );

    border:
        1px solid rgba(
            255,
            255,
            255,
            .06
        );

}

.achievement-progress-header {

    color:white;

    font-weight:700;

    margin-bottom:4px;

}

.achievement-progress-desc {

    color:#94a3b8;

    font-size:13px;

}

.achievement-icons {

    display:grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap:12px;

    margin-top:20px;

}

.achievement-icon-box {

    width:50px;

    height:50px;

    border-radius:16px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

    cursor:pointer;

}

.achievement-icon-box.unlocked {

    background:
        rgba(
            34,
            197,
            94,
            .15
        );

}

.achievement-icon-box.locked {

    background:
        rgba(
            255,
            255,
            255,
            .04
        );

    opacity:.6;

}

.achievement-modal {

    position:fixed;

    inset:0;

    display:none;

    background:
        rgba(
            0,
            0,
            0,
            .7
        );

    z-index:9999;

}

.achievement-modal.active {

    display:flex;

    align-items:center;

    justify-content:center;

}

.achievement-modal-content {

    width:90%;

    max-width:320px;

    background:#0f172a;

    border-radius:24px;

    padding:24px;

    text-align:center;

}

.achievement-modal-title {

    color:white;

    font-size:22px;

    font-weight:700;

    margin-bottom:12px;

}

.achievement-modal-description {

    color:#cbd5e1;

    margin-bottom:16px;

}

.achievement-modal-progress {

    color:#22c55e;

    line-height:1.6;

    margin-bottom:20px;

}

.achievement-close {

    width:100%;

    height:46px;

    border:none;

    border-radius:14px;

    background:#22c55e;

    color:white;

    font-weight:700;

}

