
        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Montserrat:wght@400;500;600;700&display=swap');

        :root {
            --bg: #050d08;
            --panel: rgba(12, 28, 20, 0.86);
            --panel-strong: rgba(18, 39, 29, 0.94);
            --panel-soft: rgba(255, 255, 255, 0.045);
            --border: rgba(255, 255, 255, 0.12);
            --text: #e7f4ee;
            --muted: #91a69b;
            --dim: #617168;
            --green: #00ff9d;
            --cyan: #00c2ff;
            --amber: #ffc857;
            --rose: #ff5b85;
            --danger: #ff6b6b;
            --shadow: rgba(0, 0, 0, 0.35);
            --radius: 8px;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            min-height: 100vh;
            margin: 0;
            background:
                linear-gradient(rgba(0, 255, 157, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 194, 255, 0.035) 1px, transparent 1px),
                linear-gradient(145deg, #06150d 0%, #050d08 46%, #0a1018 100%);
            background-size: 46px 46px, 46px 46px, auto;
            color: var(--text);
            font-family: "Montserrat", "Segoe UI", sans-serif;
            overflow-x: hidden;
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            z-index: -1;
            background:
                linear-gradient(115deg, rgba(0, 255, 157, 0.08), transparent 32%),
                linear-gradient(260deg, rgba(255, 200, 87, 0.05), transparent 34%);
            pointer-events: none;
        }

        a {
            color: inherit;
        }

        button,
        input,
        textarea,
        select {
            font: inherit;
        }

        button {
            cursor: pointer;
        }

        .shell {
            width: min(1180px, calc(100% - 32px));
            margin: 0 auto;
        }

        .topbar {
            position: sticky;
            top: 0;
            z-index: 20;
            border-bottom: 1px solid var(--border);
            background: rgba(5, 13, 8, 0.86);
            backdrop-filter: blur(16px);
        }

        .topbar-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 72px;
            gap: 20px;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            min-width: 0;
        }

        .brand-mark {
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(0, 255, 157, 0.45);
            border-radius: var(--radius);
            color: #07110c;
            background: linear-gradient(135deg, var(--green), var(--cyan));
            font-family: "Orbitron", sans-serif;
            font-weight: 900;
            box-shadow: 0 10px 24px rgba(0, 255, 157, 0.16);
        }

        .brand-text {
            display: grid;
            gap: 2px;
            min-width: 0;
        }

        .brand-text strong {
            font-family: "Orbitron", sans-serif;
            letter-spacing: 0.16em;
            font-size: 1rem;
        }

        .brand-text span {
            color: var(--muted);
            font-size: 0.75rem;
            white-space: nowrap;
        }

        .nav {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .nav-link,
        .ghost-btn,
        .primary-btn,
        .danger-btn,
        .icon-btn {
            border: 1px solid var(--border);
            border-radius: var(--radius);
            min-height: 38px;
            padding: 0 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: var(--text);
            background: rgba(255, 255, 255, 0.055);
            text-decoration: none;
            transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
            white-space: nowrap;
        }

        .nav-link:hover,
        .ghost-btn:hover,
        .icon-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(0, 255, 157, 0.5);
            background: rgba(0, 255, 157, 0.09);
        }

        .primary-btn {
            border-color: transparent;
            color: #04100a;
            background: linear-gradient(135deg, var(--green), var(--cyan));
            font-weight: 800;
            box-shadow: 0 12px 28px rgba(0, 255, 157, 0.16);
        }

        .primary-btn:hover {
            transform: translateY(-1px);
            filter: brightness(1.08);
        }

        .danger-btn {
            color: #fff;
            border-color: rgba(255, 107, 107, 0.32);
            background: rgba(255, 107, 107, 0.14);
        }

        .danger-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(255, 107, 107, 0.62);
        }

        .sound-btn.active {
            color: var(--green);
            border-color: rgba(0, 255, 157, 0.44);
            background: rgba(0, 255, 157, 0.1);
        }

        .changelog-btn {
            position: relative;
        }

        .changelog-btn.unseen {
            color: #04100a;
            border-color: transparent;
            background: linear-gradient(135deg, var(--amber), var(--green));
            box-shadow: 0 0 0 1px rgba(255, 200, 87, 0.35), 0 0 24px rgba(0, 255, 157, 0.38);
            animation: changelogPulse 1.7s ease-in-out infinite;
        }

        .changelog-btn.unseen::after {
            content: "";
            position: absolute;
            top: -4px;
            right: -4px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--rose);
            box-shadow: 0 0 14px rgba(255, 91, 133, 0.8);
        }

        @keyframes changelogPulse {
            0%, 100% { filter: brightness(1); }
            50% { filter: brightness(1.18); }
        }

        .icon-btn {
            width: 38px;
            padding: 0;
        }

        .icon-btn.active {
            color: var(--green);
            border-color: rgba(0, 255, 157, 0.44);
            background: rgba(0, 255, 157, 0.1);
        }

        .user-chip {
            display: none;
            align-items: center;
            gap: 10px;
            min-height: 42px;
            padding: 4px 12px 4px 5px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.06);
        }

        .user-chip.active {
            display: inline-flex;
        }

        .avatar {
            width: 34px;
            height: 34px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            color: #05100a;
            font-weight: 900;
            font-size: 0.82rem;
            text-transform: uppercase;
            box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.32);
            flex: 0 0 auto;
        }

        .user-chip span {
            max-width: 140px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 700;
        }

        .hero {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
            gap: 28px;
            align-items: stretch;
            padding: 46px 0 30px;
        }

        .hero-copy {
            min-height: 360px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 24px;
            padding: 30px 0;
        }

        h1 {
            margin: 0;
            color: #fff;
            font-family: "Orbitron", sans-serif;
            font-size: clamp(3.8rem, 13vw, 8.8rem);
            line-height: 0.86;
            letter-spacing: 0.08em;
            text-shadow: 0 8px 32px rgba(0, 255, 157, 0.22);
        }

        .hero-title span {
            display: block;
            margin-top: 14px;
            color: var(--green);
            font-family: "Orbitron", sans-serif;
            font-size: clamp(0.88rem, 2vw, 1.2rem);
            letter-spacing: 0.34em;
            text-transform: uppercase;
        }

        .hero-copy p {
            max-width: 660px;
            margin: 0;
            color: var(--muted);
            font-size: 1rem;
            line-height: 1.75;
        }

        .stats-row {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            max-width: 560px;
        }

        .stat-tile {
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 16px;
            background: rgba(255, 255, 255, 0.045);
        }

        .stat-tile strong {
            display: block;
            color: var(--green);
            font-family: "Orbitron", sans-serif;
            font-size: 1.65rem;
            line-height: 1;
        }

        .stat-tile span {
            display: block;
            margin-top: 8px;
            color: var(--muted);
            font-size: 0.74rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
        }

        .access-card {
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--panel);
            box-shadow: 0 20px 44px var(--shadow);
            overflow: hidden;
        }

        .access-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 18px 18px 0;
        }

        .access-head h2,
        .section-head h2,
        .mini-title,
        .auth-card h3 {
            margin: 0;
            color: #fff;
            font-family: "Orbitron", sans-serif;
            letter-spacing: 0.08em;
        }

        .access-head h2,
        .section-head h2 {
            font-size: 1.1rem;
        }

        .status-pill {
            min-height: 30px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 0 10px;
            border: 1px solid rgba(0, 255, 157, 0.26);
            border-radius: var(--radius);
            color: var(--green);
            background: rgba(0, 255, 157, 0.08);
            font-size: 0.78rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: currentColor;
        }

        .auth-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1px;
            background: var(--border);
            margin-top: 18px;
        }

        .auth-card {
            padding: 18px;
            background: rgba(8, 20, 14, 0.94);
        }

        .auth-card h3 {
            margin-bottom: 16px;
            font-size: 0.9rem;
        }

        .auth-form,
        .profile-form,
        .message-form {
            display: grid;
            gap: 12px;
        }

        .auth-switch {
            width: fit-content;
            padding: 0;
            border: 0;
            color: var(--green);
            background: transparent;
            font-weight: 800;
            text-align: left;
        }

        .auth-switch:hover {
            color: var(--amber);
        }

        .reset-panel {
            display: none;
            gap: 12px;
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid var(--border);
        }

        .reset-panel.active {
            display: grid;
        }

        .reset-note {
            margin: 0;
            color: var(--muted);
            font-size: 0.86rem;
            line-height: 1.45;
        }

        label {
            display: grid;
            gap: 7px;
            color: var(--muted);
            font-size: 0.76rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        input,
        textarea,
        select {
            width: 100%;
            min-height: 42px;
            border: 1px solid rgba(255, 255, 255, 0.13);
            border-radius: var(--radius);
            color: var(--text);
            background: rgba(255, 255, 255, 0.065);
            outline: none;
            padding: 10px 12px;
            transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
        }

        textarea {
            min-height: 84px;
            resize: vertical;
            line-height: 1.5;
        }

        input:focus,
        textarea:focus,
        select:focus {
            border-color: rgba(0, 255, 157, 0.55);
            background: rgba(0, 255, 157, 0.075);
            box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.08);
        }

        input[type="color"] {
            height: 42px;
            padding: 4px;
        }

        select option {
            background: #0d1711;
            color: var(--text);
        }

        .account-preview {
            display: none;
            padding: 18px;
            gap: 18px;
        }

        .account-preview.active {
            display: grid;
        }

        .profile-mini {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 16px;
            align-items: center;
            padding: 16px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.045);
        }

        .profile-mini .avatar {
            width: 68px;
            height: 68px;
            font-size: 1.5rem;
        }

        .profile-mini h3 {
            margin: 0;
            color: #fff;
            font-size: 1.28rem;
        }

        .profile-mini p {
            margin: 6px 0 0;
            color: var(--muted);
            line-height: 1.5;
        }

        .mini-stats {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }

        .mini-stats div {
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.045);
        }

        .mini-stats strong {
            display: block;
            color: var(--cyan);
            font-family: "Orbitron", sans-serif;
            font-size: 1.2rem;
        }

        .mini-stats span {
            color: var(--muted);
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .section-head {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 18px;
        }

        .section-head p {
            margin: 7px 0 0;
            color: var(--muted);
        }

        .community {
            padding: 24px 0 48px;
        }

        .community-panel {
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(10, 24, 17, 0.78);
            box-shadow: 0 20px 44px var(--shadow);
            overflow: hidden;
        }

        .community-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px;
            border-bottom: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.035);
        }

        .tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tab-btn {
            min-height: 38px;
            padding: 0 14px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            color: var(--muted);
            background: transparent;
            font-weight: 800;
            transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
        }

        .tab-btn:hover {
            color: var(--text);
            border-color: rgba(0, 255, 157, 0.34);
        }

        .tab-btn.active {
            color: #04100a;
            border-color: transparent;
            background: var(--green);
        }

        .community-body {
            padding: 18px;
        }

        .tab-panel {
            display: none;
        }

        .tab-panel.active {
            display: block;
        }

        .auth-required {
            display: none;
            padding: 26px;
            border: 1px dashed rgba(0, 255, 157, 0.34);
            border-radius: var(--radius);
            background: rgba(0, 255, 157, 0.055);
            color: var(--muted);
            text-align: center;
        }

        .auth-required.active {
            display: block;
        }

        .profile-layout {
            display: grid;
            grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
            gap: 16px;
        }

        .panel-box {
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.04);
            padding: 16px;
        }

        .profile-card-large {
            display: grid;
            gap: 16px;
        }

        .cover-strip {
            min-height: 110px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            background:
                linear-gradient(135deg, rgba(0, 255, 157, 0.38), rgba(0, 194, 255, 0.26)),
                repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 12px);
        }

        .profile-identity {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 16px;
            align-items: center;
            margin-top: -44px;
            padding: 0 12px;
        }

        .profile-identity .avatar {
            width: 86px;
            height: 86px;
            font-size: 1.9rem;
            border: 4px solid #0b1811;
        }

        .profile-identity h3 {
            margin: 0;
            color: #fff;
            font-size: 1.45rem;
            overflow-wrap: anywhere;
        }

        .profile-identity p {
            margin: 5px 0 0;
            color: var(--muted);
            overflow-wrap: anywhere;
        }

        .bio {
            margin: 2px 12px 0;
            color: var(--text);
            line-height: 1.7;
            overflow-wrap: anywhere;
        }

        .meta-list {
            display: grid;
            gap: 10px;
            margin: 0 12px 12px;
        }

        .meta-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.045);
        }

        .meta-item span {
            color: var(--muted);
            font-size: 0.82rem;
        }

        .meta-item strong {
            color: #fff;
            text-align: right;
            overflow-wrap: anywhere;
        }

        .profile-records {
            grid-column: 1 / -1;
        }

        .records-head,
        .leaderboard-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .records-head h3 {
            margin: 0;
            color: #fff;
            font-family: "Orbitron", sans-serif;
            font-size: 0.95rem;
            letter-spacing: 0.08em;
        }

        .records-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 10px;
            margin-top: 14px;
        }

        .record-card {
            display: grid;
            gap: 8px;
            min-height: 106px;
            padding: 13px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.045);
        }

        .record-card span {
            color: var(--muted);
            font-size: 0.78rem;
            font-weight: 800;
            text-transform: uppercase;
        }

        .record-card strong {
            color: var(--green);
            font-size: 1.35rem;
            overflow-wrap: anywhere;
        }

        .record-card small {
            color: var(--muted);
            line-height: 1.35;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .search-line {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
            margin-bottom: 14px;
        }

        .list-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 12px;
        }

        .user-card {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 12px;
            align-items: start;
            padding: 14px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.045);
        }

        .user-card h3 {
            margin: 0;
            color: #fff;
            font-size: 1rem;
            overflow-wrap: anywhere;
        }

        .user-card p {
            margin: 5px 0 0;
            color: var(--muted);
            font-size: 0.88rem;
            line-height: 1.45;
            overflow-wrap: anywhere;
        }

        .user-card-actions {
            grid-column: 1 / -1;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .small-btn {
            min-height: 34px;
            padding: 0 11px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            color: var(--text);
            background: rgba(255, 255, 255, 0.055);
            font-weight: 800;
        }

        .small-btn.primary {
            border-color: transparent;
            color: #04100a;
            background: var(--green);
        }

        .small-btn.cyan {
            border-color: transparent;
            color: #04100a;
            background: var(--cyan);
        }

        .small-btn.amber {
            border-color: transparent;
            color: #211706;
            background: var(--amber);
        }

        .small-btn.danger {
            border-color: rgba(255, 107, 107, 0.34);
            color: #fff;
            background: rgba(255, 107, 107, 0.14);
        }

        .friend-layout {
            display: grid;
            grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
            gap: 16px;
        }

        .empty-state {
            padding: 18px;
            border: 1px dashed var(--border);
            border-radius: var(--radius);
            color: var(--muted);
            text-align: center;
            line-height: 1.5;
        }

        .chat-layout {
            display: grid;
            grid-template-columns: 280px minmax(0, 1fr);
            min-height: 520px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
        }

        .conversation-list {
            border-right: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.035);
            overflow: auto;
        }

        .conversation-item {
            width: 100%;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 10px;
            align-items: center;
            min-height: 68px;
            padding: 10px 12px;
            border: 0;
            border-bottom: 1px solid var(--border);
            color: var(--text);
            background: transparent;
            text-align: left;
        }

        .conversation-item:hover,
        .conversation-item.active {
            background: rgba(0, 255, 157, 0.08);
        }

        .conversation-item strong,
        .conversation-item span {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .conversation-item span {
            margin-top: 3px;
            color: var(--muted);
            font-size: 0.78rem;
        }

        .chat-pane {
            display: grid;
            grid-template-rows: auto minmax(0, 1fr) auto;
            min-width: 0;
            background: rgba(5, 13, 8, 0.28);
        }

        .chat-head {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 62px;
            padding: 12px 14px;
            border-bottom: 1px solid var(--border);
        }

        .chat-head strong {
            color: #fff;
        }

        .messages {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 14px;
            overflow: auto;
        }

        .message {
            max-width: min(78%, 560px);
            display: grid;
            gap: 5px;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.055);
            line-height: 1.45;
            overflow-wrap: anywhere;
        }

        .message.own {
            align-self: flex-end;
            color: #04100a;
            border-color: transparent;
            background: linear-gradient(135deg, var(--green), var(--cyan));
        }

        .message time {
            color: inherit;
            opacity: 0.64;
            font-size: 0.72rem;
        }

        .message-form {
            grid-template-columns: auto minmax(0, 1fr) auto;
            padding: 12px;
            border-top: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.035);
        }

        .message-form input {
            min-height: 44px;
        }

        .emoji-panel {
            grid-column: 1 / -1;
            display: none;
            gap: 10px;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(5, 13, 8, 0.72);
        }

        .emoji-panel.active {
            display: grid;
        }

        .emoji-tabs {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 2px;
        }

        .emoji-tab {
            min-width: 38px;
            min-height: 34px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            color: var(--text);
            background: rgba(255, 255, 255, 0.055);
            font-size: 1.05rem;
        }

        .emoji-tab.active {
            color: #04100a;
            border-color: transparent;
            background: var(--green);
        }

        .emoji-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
            gap: 8px;
            max-height: 176px;
            overflow: auto;
        }

        .emoji-btn {
            min-width: 38px;
            min-height: 38px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.055);
            font-size: 1.25rem;
            line-height: 1;
        }

        .emoji-btn:hover {
            border-color: rgba(0, 255, 157, 0.5);
            background: rgba(0, 255, 157, 0.1);
        }

        .leaderboard-section {
            padding: 20px 0 12px;
        }

        .leaderboard-panel {
            margin-top: 16px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--panel);
            box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
            overflow: hidden;
        }

        .leaderboard-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
            gap: 16px;
            align-items: start;
        }

        .leaderboard-panel.accent {
            border-color: rgba(255, 204, 77, 0.32);
            background:
                radial-gradient(circle at 12% 0%, rgba(255, 204, 77, 0.16), transparent 34%),
                var(--panel);
        }

        .leaderboard-controls {
            padding: 14px;
            border-bottom: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.035);
        }

        .leaderboard-controls label {
            display: grid;
            gap: 6px;
            color: var(--muted);
            font-size: 0.78rem;
            font-weight: 800;
            text-transform: uppercase;
        }

        .leaderboard-controls.split {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .leaderboard-kicker {
            display: block;
            color: var(--muted);
            font-size: 0.72rem;
            font-weight: 900;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        .leaderboard-title {
            display: block;
            margin-top: 2px;
            color: var(--text);
            font-family: "Orbitron", sans-serif;
            font-weight: 900;
        }

        .leaderboard-list {
            display: grid;
            gap: 1px;
            background: var(--border);
        }

        .leader-row {
            display: grid;
            grid-template-columns: 56px minmax(0, 1fr) minmax(130px, auto) minmax(110px, auto);
            align-items: center;
            gap: 12px;
            width: 100%;
            min-height: 64px;
            padding: 12px 14px;
            border: 0;
            background: rgba(8, 20, 14, 0.96);
            color: inherit;
            text-align: left;
            cursor: pointer;
        }

        .leader-row:hover {
            background: rgba(0, 255, 157, 0.07);
        }

        .leader-rank {
            color: var(--amber);
            font-family: "Orbitron", sans-serif;
            font-size: 1rem;
            font-weight: 900;
        }

        .leader-player {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .leader-player strong,
        .leader-mode,
        .leader-score {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .leader-player span {
            color: var(--muted);
            font-size: 0.82rem;
        }

        .leader-mode {
            color: var(--muted);
            font-size: 0.84rem;
        }

        .leader-score {
            color: var(--green);
            font-family: "Orbitron", sans-serif;
            font-weight: 900;
            text-align: right;
        }

        .slot-hit-row {
            grid-template-columns: 56px minmax(0, 1fr) minmax(126px, auto) minmax(82px, auto);
        }

        .slot-hit-combo {
            color: var(--amber);
            font-family: "Orbitron", sans-serif;
            font-size: 0.9rem;
            font-weight: 900;
            text-align: right;
            white-space: nowrap;
        }

        .games {
            padding: 30px 0 64px;
        }

        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 16px;
        }

        .game-card {
            display: grid;
            grid-template-rows: 150px minmax(0, 1fr);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            background: var(--panel);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
            transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .game-card:hover {
            transform: translateY(-4px);
            border-color: rgba(0, 255, 157, 0.45);
            box-shadow: 0 22px 44px rgba(0, 255, 157, 0.12);
        }

        .preview {
            position: relative;
            display: grid;
            place-items: center;
            overflow: hidden;
            background:
                linear-gradient(135deg, rgba(0, 255, 157, 0.12), rgba(0, 194, 255, 0.09)),
                repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 12px);
            border-bottom: 1px solid var(--border);
            font-size: 3.45rem;
        }

        .preview::after {
            content: "";
            position: absolute;
            inset: auto 0 0;
            height: 3px;
            background: linear-gradient(90deg, var(--green), var(--cyan), var(--amber));
        }

        .game-info {
            display: grid;
            grid-template-rows: auto auto minmax(0, 1fr) auto;
            gap: 10px;
            padding: 16px;
        }

        .game-info h3 {
            margin: 0;
            color: #fff;
            font-size: 1.12rem;
        }

        .game-info p {
            margin: 0;
            color: var(--muted);
            line-height: 1.58;
            font-size: 0.9rem;
        }

        .tag {
            width: fit-content;
            padding: 4px 9px;
            border-radius: var(--radius);
            font-size: 0.68rem;
            font-weight: 900;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .tag.arcade { color: var(--green); background: rgba(0, 255, 157, 0.12); }
        .tag.puzzle { color: var(--cyan); background: rgba(0, 194, 255, 0.12); }
        .tag.action { color: var(--rose); background: rgba(255, 91, 133, 0.13); }
        .tag.strategy { color: var(--amber); background: rgba(255, 200, 87, 0.13); }
        .tag.sport { color: #c9a5ff; background: rgba(168, 122, 255, 0.14); }

        .play-btn {
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border-radius: var(--radius);
            color: #04100a;
            background: linear-gradient(135deg, var(--green), #00a86b);
            text-decoration: none;
            font-family: "Orbitron", sans-serif;
            font-size: 0.82rem;
            font-weight: 900;
            letter-spacing: 0.08em;
        }

        .play-btn:hover {
            filter: brightness(1.08);
        }

        footer {
            padding: 28px 0 34px;
            border-top: 1px solid var(--border);
            color: var(--dim);
            text-align: center;
            font-size: 0.78rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .toast {
            position: fixed;
            right: 18px;
            bottom: 18px;
            z-index: 50;
            max-width: min(360px, calc(100% - 36px));
            padding: 12px 14px;
            border: 1px solid rgba(0, 255, 157, 0.28);
            border-radius: var(--radius);
            color: var(--text);
            background: rgba(8, 20, 14, 0.95);
            box-shadow: 0 18px 36px var(--shadow);
            transform: translateY(18px);
            opacity: 0;
            pointer-events: none;
            transition: transform 0.18s ease, opacity 0.18s ease;
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        .changelog-modal,
        .player-modal {
            position: fixed;
            inset: 0;
            z-index: 45;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 18px;
            background: rgba(3, 8, 6, 0.72);
            backdrop-filter: blur(14px);
        }

        .changelog-modal.active,
        .player-modal.active {
            display: flex;
        }

        .changelog-dialog,
        .player-dialog {
            width: min(820px, 100%);
            max-height: min(760px, calc(100vh - 36px));
            display: grid;
            grid-template-rows: auto minmax(0, 1fr) auto;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(8, 20, 14, 0.96);
            box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
            overflow: hidden;
        }

        .changelog-head,
        .changelog-foot,
        .player-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 16px;
            border-bottom: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.035);
        }

        .changelog-foot {
            justify-content: flex-end;
            border-top: 1px solid var(--border);
            border-bottom: 0;
        }

        .changelog-kicker {
            color: var(--green);
            font-size: 0.72rem;
            font-weight: 900;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }

        .changelog-head h2 {
            margin: 4px 0 0;
            color: #fff;
            font-family: "Orbitron", sans-serif;
            font-size: 1.14rem;
            letter-spacing: 0.08em;
        }

        .changelog-list {
            display: grid;
            gap: 12px;
            padding: 16px;
            overflow: auto;
        }

        .changelog-entry {
            display: grid;
            gap: 10px;
            padding: 14px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.045);
        }

        .changelog-entry time {
            width: fit-content;
            padding: 4px 8px;
            border-radius: var(--radius);
            color: #04100a;
            background: var(--green);
            font-size: 0.72rem;
            font-weight: 900;
        }

        .changelog-entry h3 {
            margin: 0;
            color: #fff;
            font-size: 1rem;
        }

        .changelog-entry ul {
            display: grid;
            gap: 6px;
            margin: 0;
            padding-left: 18px;
            color: var(--muted);
            line-height: 1.5;
        }

        .player-body {
            display: grid;
            gap: 16px;
            padding: 16px;
            overflow: auto;
        }

        .player-summary {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 14px;
            align-items: center;
            padding: 14px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.04);
        }

        .player-summary .avatar {
            width: 72px;
            height: 72px;
            font-size: 1.5rem;
        }

        .player-summary h2 {
            margin: 0;
            color: #fff;
            overflow-wrap: anywhere;
        }

        .player-summary p {
            margin: 4px 0 0;
            color: var(--muted);
            line-height: 1.45;
        }

        .hidden {
            display: none !important;
        }

        @media (max-width: 920px) {
            .hero,
            .profile-layout,
            .friend-layout,
            .chat-layout {
                grid-template-columns: 1fr;
            }

            .leaderboard-grid {
                grid-template-columns: 1fr;
            }

            .hero-copy {
                min-height: auto;
                padding-bottom: 0;
            }

            .conversation-list {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
                border-right: 0;
                border-bottom: 1px solid var(--border);
                max-height: 220px;
            }

            .conversation-item {
                border-right: 1px solid var(--border);
            }
        }

        @media (max-width: 720px) {
            .shell {
                width: min(100% - 20px, 1180px);
            }

            .topbar-inner {
                align-items: flex-start;
                flex-direction: column;
                padding: 12px 0;
            }

            .nav {
                width: 100%;
                justify-content: stretch;
            }

            .nav-link,
            .primary-btn,
            .ghost-btn,
            .danger-btn,
            .user-chip {
                flex: 1 1 auto;
            }

            .hero {
                padding-top: 28px;
            }

            h1 {
                letter-spacing: 0.05em;
            }

            .stats-row,
            .auth-grid,
            .form-row,
            .mini-stats,
            .search-line,
            .message-form {
                grid-template-columns: 1fr;
            }

            .leader-row {
                grid-template-columns: 40px minmax(0, 1fr);
            }

            .leader-mode,
            .leader-score,
            .slot-hit-combo {
                grid-column: 2;
                text-align: left;
            }

            .community-toolbar,
            .section-head {
                align-items: stretch;
                flex-direction: column;
            }

            .tab-btn {
                flex: 1 1 auto;
            }

            .profile-identity {
                grid-template-columns: 1fr;
                text-align: center;
                justify-items: center;
            }

            .bio {
                text-align: center;
            }

            .meta-item {
                align-items: flex-start;
                flex-direction: column;
            }

            .meta-item strong {
                text-align: left;
            }

            .message-form {
                grid-template-columns: auto minmax(0, 1fr) auto;
            }

            .message {
                max-width: 92%;
            }
        }
    