@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


@font-face { font-family: "Rubik", sans-serif; src: url("/fonts/BebasNeue-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }


/* ============================================================
   CSS VARIABLES
============================================================ */

:root {
    --bg:           #111111;
    --surface:      #181818;
    --card:         #1c1c1c;
    --border:       #2a2a2a;
    --accent:       #2B7FFF;
    --accent-dark:  #1A3FAA;
    --text:         #f0f0f0;
    --muted:        #777;
    --sidebar-w:    170px;
    --topbar-h:     68px;
    --radius:       8px;
}

/* ============================================================
   RESET & BASE
============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rubik", sans-serif;
    letter-spacing: 0.5px;

    letter-spacing: 0.5px;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    font-size: 15px;
}

body.settings-open { overflow: hidden; }

a { text-decoration: none; }

#settings-open { cursor: pointer; }

/* Description and long-form text — use system font for readability */
.game-info-description,
.game-info-value,
.legal-card p,
.legal-card li,
.welcome-popup-content p {
    font-family: "Rubik", sans-serif;
    letter-spacing: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Tighter letter spacing for small labels */
.cat-sidebar-link { letter-spacing: 1px; }
.new-game-tag     { letter-spacing: 1px; }
.mosaic-title     { letter-spacing: 0.5px; }
.home-game-title  { letter-spacing: 0.5px; }
.logo             { letter-spacing: 2px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #444; }
* { scrollbar-width: thin; scrollbar-color: #333 var(--bg); }

/* ============================================================
   TOPBAR
============================================================ */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 90;
}

.topbar-spacer {
    height: var(--topbar-h);
    width: 100%;
    flex-shrink: 0;
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0.5px;
    color: white;
    text-decoration: none;
}

.logo img { width: 34px; border-radius: 6px; }
.logo span { color: var(--accent); }

.logo p {
    margin-top: 5px;
}

.top-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 18px;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    cursor: pointer;
    height: 36px;
    width: 36px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.top-button:hover {
    color: var(--accent);
    background: #222;
    border-color: var(--border);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Search */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 11px;
    color: var(--muted);
    font-size: 13px;
    pointer-events: none;
}

.game-search {
    width: 260px;
    height: 38px;
    box-sizing: border-box;

    background: var(--bg);
    border: 1px solid var(--border);
    font-family: "Rubik", sans-serif;
    font-weight: bolder;
    border-radius: 8px;

    color: white;
    padding: 4px 36px 0 34px;

    font-size: 14px;
    letter-spacing: 0.3px;

    line-height: normal;

    transition: border-color 0.15s;
}

.game-search::placeholder { color: var(--muted); }
.game-search:focus { outline: none; border-color: #444; }
.game-search:focus + .search-slash { opacity: 0; }

.search-slash {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: var(--muted);
    font-size: 12px;
    font-family: "Rubik", sans-serif;
    padding: 1px 5px;
    pointer-events: none;
    transition: opacity 0.15s;
    letter-spacing: 0;
    line-height: 1.4;
}


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

footer {
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
    height: 110px;
    margin-top: auto;
    flex-shrink: 0;
}

footer div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

footer div p {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

footer a {
    color: #888;
    font-size: 14px;
    transition: color 0.15s;
}

footer a:hover { color: var(--accent); }

/* ============================================================
   SITE LAYOUT — sidebar + content
============================================================ */

.site-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    flex: 1;
}

.cat-sidebar-spacer {
    width: var(--sidebar-w);
    flex-shrink: 0;
}

.site-content {
    flex: 1;
    min-width: 0;
}

/* ============================================================
   CATEGORY SIDEBAR
============================================================ */

.cat-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: var(--sidebar-w);
    height: calc(100vh - var(--topbar-h));
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    overflow-y: auto;
    scrollbar-width: none;
    z-index: 50;
}

.cat-sidebar::-webkit-scrollbar { display: none; }

.cat-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.12s, background 0.12s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.cat-sidebar-link i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--accent);
    opacity: 0.8;
}

.cat-sidebar-link:hover {
    color: white;
    background: rgba(255,255,255,0.04);
}

.cat-sidebar-link.active {
    color: var(--accent);
    background: rgba(43,127,255,0.07);
    border-right: 2px solid var(--accent);
}

.cat-sidebar-link.active i { opacity: 1; }

.cat-sidebar-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 5px 14px;
}

.cat-sidebar-link--discord { color: #5865f2; }
.cat-sidebar-link--discord i { color: #5865f2; opacity: 1; }
.cat-sidebar-link--discord:hover { color: #7983f5; background: rgba(88,101,242,0.08); }

@media (max-width: 700px) {
    .cat-sidebar { display: none; }
    .cat-sidebar-spacer { display: none; }
}

/* ============================================================
   HOME GAME GRID (mosaic — mixed sizes like Pizza Edition)
============================================================ */

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    grid-auto-rows: 108px;
    gap: 6px;
    padding: 10px;
    width: 100%;
    grid-auto-flow: dense;
    background: var(--bg);
}

/* 1×1 */
.mosaic-card--sm {
    grid-column: span 1;
    grid-row: span 1;
}

/* 2×2 */
.mosaic-card--lg {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-card--lg .mosaic-title {
    font-size: 22px;;
}

.mosaic-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none !important;
    background: #1a1a1a;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.mosaic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.12s ease;
    border-radius: 12px;
}

.mosaic-card:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    z-index: 2;
}

.mosaic-card:hover img { transform: scale(1.06); }

.mosaic-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 5px 6px;
    font-size: 15px;
    font-weight: 700;
    font-family: "Bebas Neue", sans-serif;

    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    opacity: 0;
    transition: opacity 0.12s ease;
    border-radius: 0 0 12px 12px;
}

.mosaic-card:hover .mosaic-title { opacity: 1; }

.mosaic-card .new-game-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--accent);
    color: #111;
    font-size: 10px;

    padding: 2px 5px;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
}

/* Keep old home-game-grid classes for non-home pages */
.home-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 7px;
    padding: 12px 12px 30px;
    width: 100%;
}

.home-game-wrap { position: relative; }

.home-game-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none !important;
    aspect-ratio: 1 / 1;
    width: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background: var(--card);
}

.home-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
}

.home-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.home-game-card:hover img { transform: scale(1.05); }

.home-game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 4px 6px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    font-family: "Bebas Neue", sans-serif;

    color: white !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.home-game-card:hover .home-game-title { opacity: 1; }

/* NEW badge */
.new-game-tag {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--accent);
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
    transition: transform 0.15s ease;
}

.home-game-wrap:hover .new-game-tag { transform: translateY(-3px); }

/* ============================================================
   SETTINGS PANEL (slide-in from right)
============================================================ */

.settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.settings-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 100vw;
    height: 100vh;
    background: #161616;
    border-left: 1px solid var(--border);
    z-index: 120;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.6);
}

.settings-panel.active {
    transform: translateX(0);
}

.settings-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.settings-panel-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-panel-header h2 i {
    color: var(--accent);
    font-size: 16px;
}

.settings-panel-close {
    cursor: pointer;
    color: var(--muted);
    font-size: 18px;
    transition: color 0.12s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.12s, color 0.12s;
}

.settings-panel-close:hover {
    background: rgba(255,255,255,0.06);
    color: white;
}

.settings-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-panel-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-panel-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.account-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
}

.account-coming-soon i {
    font-size: 48px;
    color: var(--accent);
    opacity: 0.8;
}

.account-coming-soon p {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin: 0;
}

.account-coming-soon span {
    font-size: 14px;
    color: var(--muted);
}

/* ============================================================
   TOOLTIP
============================================================ */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(-100% - 2px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 200;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.settings-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.settings-row.two-col .settings-field { flex: 1; }

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.settings-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-field input[type="text"],
.settings-field input[type="file"] {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    color: white;
    width: 100%;
    font-size: 14px;
    font-family: "Rubik", sans-serif;
    letter-spacing: 0.5px;
    transition: border-color 0.12s;
}

.settings-field input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

.settings-field input[type="file"] {
    display: none;
}

.custom-icon-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.12s, color 0.12s;
    width: fit-content;
}

.custom-icon-upload-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.custom-icon-upload-btn i {
    font-size: 13px;
}

.settings-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 10px;
    margin-top: 7px;
}

.settings-icons-grid img {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.1s;
    opacity: 0.7;
}

.settings-icons-grid img:hover { transform: scale(1.15); opacity: 1; }
.settings-icons-grid img.selected { outline: 2px solid var(--accent); opacity: 1; }

.settings-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.settings-btn-grid button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    font-size: 13px;
    font-weight: 700;

    font-family: "Rubik", sans-serif;
    letter-spacing: 0.5px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: white;
    cursor: pointer;
    transition: border-color 0.12s, color 0.12s;
}

.settings-btn-grid button:hover { border-color: var(--accent); color: var(--accent); }
.settings-btn-grid button i { font-size: 12px; }

.key-bind-btn {
    height: 36px;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: white;
    font-size: 13px;

    font-family: "Rubik", sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: border-color 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-bind-btn:hover { border-color: var(--accent); }

.key-bind-btn.listening {
    border-color: var(--accent);
    color: var(--accent);
    animation: pulse-border 0.6s ease infinite alternate;
}

@keyframes pulse-border {
    from { box-shadow: 0 0 0 0 rgba(43,127,255,0.4); }
    to   { box-shadow: 0 0 0 4px rgba(43,127,255,0); }
}

/* ============================================================
   WELCOME POPUP
============================================================ */

.welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 91;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.welcome-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    max-width: calc(100vw - 24px);
    min-height: 280px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 92;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.welcome-popup-title h2 {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.welcome-popup-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-popup-content p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.5;
}

.welcome-popup a { color: var(--accent) !important; }

.welcome-popup-button {
    width: 100%;
    height: 40px;
    margin-top: 20px;
    background: var(--accent);
    border: none;
    border-radius: 7px;
    color: #fff;
    font-family: "Rubik", sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 17px;

    cursor: pointer;
    transition: background 0.15s;
}

.welcome-popup-button:hover { background: var(--accent-dark); }

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

.game-page {
    width: 100%;
    max-width: 1400px;
    margin: 12px auto 30px;
    padding: 0 10px;
}

.game-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.game-side-col {
    display: grid;
    grid-template-columns: 83px 83px 83px;
    grid-template-rows: repeat(6, 83px);
    grid-auto-flow: dense;
    gap: 8px;
    flex-shrink: 0;
    overflow: hidden;
    height: calc(6 * 83px + 5 * 8px);
}

.mini-game-card--big {
    grid-column: span 2;
    grid-row: span 2;
    width: 100% !important;
    height: 100% !important;
    align-self: stretch;
    justify-self: stretch;
    margin: 0;
}

.mini-game-card--big p { 
    font-size: 18px !important; 
}

.game-center {
    flex: 1;
    min-width: 0;
    margin: 0 auto;
    max-width: 850px;
}

/* Fullscreen */
.game-center:-webkit-full-screen { max-width:100%; width:100%; height:100%; display:flex; flex-direction:column; background:#000; }
.game-center:-moz-full-screen    { max-width:100%; width:100%; height:100%; display:flex; flex-direction:column; background:#000; }
.game-center:fullscreen          { max-width:100%; width:100%; height:100%; display:flex; flex-direction:column; background:#000; }
.game-center:fullscreen .game-container        { flex:1; height:0; }
.game-center:fullscreen .game-container iframe,
.game-center:fullscreen .game-container object { width:100%; height:100%; }

.game-container {
    width: 100%;
    height: 457px;
    background: #000;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.game-container iframe,
.game-container object {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--surface);
    border-radius: 0 0 var(--radius) var(--radius);
    height: 72px;
    border-top: 1px solid var(--border);
}

.game-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.game-info > div { min-width: 0; overflow: hidden; }

.game-info h1 {
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-info p {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-page-icon {
    width: 44px;
    height: 44px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}

.fullscreen-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg);
    color: white;
    cursor: pointer;
    font-size: 16px;
    border-radius: 6px;
    transition: background 0.1s;
}

.fullscreen-btn:hover { background: rgba(255,255,255,0.08); }
.fullscreen-btn i { pointer-events: none; }

.game-bottom-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(83px, 1fr));
    grid-auto-rows: 83px;
    grid-auto-flow: dense;
    gap: 8px;
    padding-top: 8px;
}

/* ============================================================
   MINI GAME CARDS (game page sidebar)
============================================================ */

.mini-game-card {
    width: 83px;
    height: 83px;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    transition: transform 0.15s ease;
}

.mini-game-card:hover { transform: translateY(-4px); }
.mini-game-card:hover img { transform: scale(1.08); }

.mini-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.15s ease;
}

.mini-game-card p {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 700;
    margin: 0;
    padding: 4px;
    text-align: center;
    text-shadow: 1px 1px 3px #000;
    background: rgba(0,0,0,0.6);
    color: white !important;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.mini-game-card:hover p { opacity: 1; transform: translateY(0); }

/* ============================================================
   GAME INFO SECTION
============================================================ */

.game-info-section {
    max-width: 1400px;
    width: 100%;
    margin: 8px auto 30px;
    padding: 0 10px;
}

.game-info-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 8px;
}

.game-info-icon {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.game-info-text { flex: 1; min-width: 0; }

.game-info-text h2 {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 2px;
}

.game-info-author { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.game-info-description { font-size: 15px; color: #ccc; line-height: 1.5; }

.game-info-about {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.game-info-about h3 {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.game-info-rows { display: flex; flex-direction: column; }

.game-info-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.game-info-row:last-child { border-bottom: none; }

.game-info-label {
    font-size: 14px;
    font-weight: 700;
    color: white;
    width: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-info-label i { color: var(--accent); width: 14px; text-align: center; }

.game-info-value { font-size: 14px; color: #aaa; }

/* ============================================================
   LEGAL / SETTINGS / OTHER PAGES
============================================================ */

.legal-container {
    max-width: 860px;
    margin: 32px auto;
    padding: 0 16px;
}

.legal-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.legal-updated {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.legal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.legal-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    margin: 24px 0 8px;
}

.legal-card p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.legal-card ul { margin: 8px 0 16px 22px; color: #ccc; font-size: 16px; }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--accent); }
.legal-card a:hover { text-decoration: underline; }

.error-page {
    max-width: 860px;
    margin: 40px auto;
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 24px;
    color: var(--muted);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.settings-title {
    text-align: center;
    font-size: 36px;

    color: white;
    margin: 28px 0;
}

.settings-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
}

.settings-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.settings-card h2 { font-size: 20px; font-weight: 700; color: #aaa; margin-bottom: 12px; }

.settings-card p { font-size: 16px; }

.settings-card small { color: var(--muted); font-size: 13px; }

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

.staff-image-container { display: flex; flex-direction: row; gap: 16px; justify-content: center; }

.staff-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.staff-container:hover p { text-decoration: underline; }

.staff-image {
    width: 90px;
    height: 90px;
    border: 1px solid var(--border);
    border-radius: 7px;
    margin-bottom: 6px;
    object-fit: cover;
}

.staff-container p { margin: 0; text-align: center; font-size: 14px; }

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1100px) {
    .game-side-col {
        grid-template-columns: 83px 83px;
        height: calc(6 * 83px + 5 * 8px);
    }
    .mini-game-card--big { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 900px) {
    .game-side-col {
        grid-template-columns: 83px;
        grid-template-rows: repeat(6, 83px);
        width: 83px;
    }
    .mini-game-card--big {
        grid-column: span 1;
        grid-row: span 1;
        width: 83px !important;
        height: 83px !important;
    }
}

@media (max-width: 750px) {
    .game-side-col { display: none; }
}

/* ============================================================
   FULLSCREEN GAME PAGE (old .game-page.fullscreen mode)
============================================================ */

.game-page.fullscreen .game-container {
    width: 100vw !important;
    height: calc(100vh - 61px) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 0 !important;
    z-index: 40 !important;
}

.game-page.fullscreen .game-header {
    width: 100vw !important;
    height: 60px !important;
    border-radius: 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 50 !important;
}

.game-page.fullscreen .game-header div p { display: none !important; }

.game-page.fullscreen .game-header div img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 6px !important;
}

/* ============================================================
   AUTO ABBREVIATE TOGGLE
============================================================ */

.auto-abbreviate-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.auto-abbreviate-setting p { font-size: 16px; color: white; margin: 0; }

.auto-abbreviate-toggle { position: relative; width: 44px; height: 22px; }
.auto-abbreviate-toggle input { opacity: 0; width: 0; height: 0; }



/* ============================================================
   THEME PICKER
============================================================ */

.theme-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.theme-swatch-color {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 2px solid transparent;
    display: block;
    transition: border-color 0.15s, transform 0.12s;
}

.theme-swatch:hover .theme-swatch-color {
    transform: scale(1.08);
}

.theme-swatch.active .theme-swatch-color {
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.theme-swatch-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-swatch.active .theme-swatch-name {
    color: white;
}

/* ============================================================
   HOME SEO / FAQ SECTION
============================================================ */

.home-seo-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-seo-intro h2 {
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.home-seo-intro p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.7;
    max-width: 900px;
    font-family: "Rubik", sans-serif;
}

.home-seo-categories h3,
.home-seo-faq h3 {
    font-size: 18px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-seo-categories h3 span,
.home-seo-faq h3 span {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

.home-seo-categories > p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
    font-family: "Rubik", sans-serif;
}

.home-seo-categories ul {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-seo-categories li {
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
    font-family: "Rubik", sans-serif;
}

.home-seo-categories li strong {
    color: white;
}

/* FAQ */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
    background: var(--surface);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 700;
    font-family: "Rubik", sans-serif;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}

.faq-question:hover { background: rgba(255,255,255,0.04); }

.faq-icon {
    font-size: 18px;
    color: var(--accent);
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 18px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 18px 14px;
}

.faq-answer p {
    font-size: 13px;
    color: #aaa;
    line-height: 1.7;
    font-family: "Rubik", sans-serif;
}

/* ============================================================
   OLED THEME OVERRIDES
============================================================ */

[data-theme="oled"] {
    color-scheme: dark;
}

[data-theme="oled"] body,
[data-theme="oled"] .site-layout,
[data-theme="oled"] .site-content,
[data-theme="oled"] .settings-panel,
[data-theme="oled"] #account-panel,
[data-theme="oled"] .settings-panel-header,
[data-theme="oled"] .settings-field input[type="text"],
[data-theme="oled"] .settings-icons-grid,
[data-theme="oled"] .settings-btn-grid button,
[data-theme="oled"] .key-bind-btn,
[data-theme="oled"] .welcome-popup,
[data-theme="oled"] .faq-item,
[data-theme="oled"] .game-info-about,
[data-theme="oled"] .game-info-top,
[data-theme="oled"] .game-info-section,
[data-theme="oled"] .legal-card,
[data-theme="oled"] .home-seo-intro,
[data-theme="oled"] .home-seo-categories,
[data-theme="oled"] .home-seo-faq,
[data-theme="oled"] .cat-sidebar-link,
[data-theme="oled"] footer,
[data-theme="oled"] .search-form,
[data-theme="oled"] .game-search {
    background-color: #0b0b0b !important;
    color: #f5f5f5 !important;
}

[data-theme="oled"] .settings-panel,
[data-theme="oled"] #account-panel,
[data-theme="oled"] .welcome-popup,
[data-theme="oled"] .faq-item,
[data-theme="oled"] .game-info-about,
[data-theme="oled"] .game-info-top,
[data-theme="oled"] .game-info-section,
[data-theme="oled"] .legal-card,
[data-theme="oled"] .theme-swatch-color,
[data-theme="oled"] .settings-field input[type="text"],
[data-theme="oled"] .settings-icons-grid,
[data-theme="oled"] .settings-btn-grid button,
[data-theme="oled"] .key-bind-btn,
[data-theme="oled"] .game-search {
    border-color: #2a2a2a !important;
}

[data-theme="oled"] .settings-panel-label,
[data-theme="oled"] .settings-field label,
[data-theme="oled"] .settings-panel-close,
[data-theme="oled"] .theme-swatch-name,
[data-theme="oled"] .home-seo-intro p,
[data-theme="oled"] .home-seo-categories > p,
[data-theme="oled"] .home-seo-categories li,
[data-theme="oled"] .faq-answer p,
[data-theme="oled"] .game-info-description,
[data-theme="oled"] .game-info-value,
[data-theme="oled"] .game-info-author,
[data-theme="oled"] .game-info p,
[data-theme="oled"] .legal-card p,
[data-theme="oled"] .legal-card li,
[data-theme="oled"] footer a,
[data-theme="oled"] footer div p,
[data-theme="oled"] .account-coming-soon span,
[data-theme="oled"] .cat-sidebar-link {
    color: #d7d7d7 !important;
}

[data-theme="oled"] .settings-panel-header h2,
[data-theme="oled"] .settings-panel-close:hover,
[data-theme="oled"] .faq-question,
[data-theme="oled"] .game-info-about h3,
[data-theme="oled"] .game-info-text h2,
[data-theme="oled"] .game-info h1,
[data-theme="oled"] .game-info-label,
[data-theme="oled"] .legal-title,
[data-theme="oled"] .legal-card h2,
[data-theme="oled"] .home-seo-intro h2,
[data-theme="oled"] .home-seo-categories h3,
[data-theme="oled"] .home-seo-faq h3,
[data-theme="oled"] .home-seo-categories li strong,
[data-theme="oled"] .welcome-popup-title h2,
[data-theme="oled"] .welcome-popup-content p,
[data-theme="oled"] .account-coming-soon p {
    color: #ffffff !important;
}

[data-theme="oled"] .settings-panel-close:hover,
[data-theme="oled"] .faq-question:hover,
[data-theme="oled"] .settings-btn-grid button:hover,
[data-theme="oled"] .settings-panel .custom-icon-upload-btn:hover,
[data-theme="oled"] .theme-swatch:hover .theme-swatch-color {
    background: rgba(255,255,255,0.04) !important;
}

[data-theme="oled"] .theme-swatch.active .theme-swatch-name {
    color: #ffffff !important;
}

[data-theme="oled"] .theme-swatch.active .theme-swatch-color {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.18) !important;
}

[data-theme="oled"] .settings-field input[type="text"]::placeholder,
[data-theme="oled"] .game-search::placeholder {
    color: #9a9a9a !important;
}

[data-theme="oled"] .logo p {
    color: var(--accent);
}

/* ============================================================
   FLASHBANG THEME OVERRIDES
============================================================ */

[data-theme="flashbang"] .logo p {
    color: var(--accent);
}

[data-theme="flashbang"] .cat-sidebar-link:hover {
    color: var(--accent);
    background: rgba(43,127,255,0.07);
}

[data-theme="flashbang"] .top-button {
    color: #0d1a36;
    border-color: transparent;
}

[data-theme="flashbang"] .top-button:hover {
    color: var(--accent);
    background: rgba(43,127,255,0.08);
    border-color: rgba(43,127,255,0.2);
}

[data-theme="flashbang"] .fullscreen-btn {
    background: #e8edf5;
    color: #0d1a36;
}

[data-theme="flashbang"] .fullscreen-btn:hover {
    background: #d0d8e8;
    color: var(--accent);
}

/* ============================================================
   FLASHBANG — keep panels dark regardless of theme
============================================================ */

[data-theme="flashbang"] .settings-panel,
[data-theme="flashbang"] #account-panel {
    background: #161616 !important;
    border-left-color: #2a2a2a !important;
    color: #f0f0f0 !important;
}

[data-theme="flashbang"] .settings-panel-header,
[data-theme="flashbang"] #account-panel .settings-panel-header {
    border-bottom-color: #2a2a2a !important;
}

[data-theme="flashbang"] .settings-panel-header h2,
[data-theme="flashbang"] #account-panel .settings-panel-header h2 {
    color: #f0f0f0 !important;
}

[data-theme="flashbang"] .settings-panel-close {
    color: #777 !important;
}

[data-theme="flashbang"] .settings-panel-close:hover {
    background: rgba(255,255,255,0.06) !important;
    color: white !important;
}

[data-theme="flashbang"] .settings-panel-label {
    color: #777 !important;
}

[data-theme="flashbang"] .settings-field label {
    color: #aaa !important;
}

[data-theme="flashbang"] .settings-field input[type="text"] {
    background: #111 !important;
    border-color: #2a2a2a !important;
    color: white !important;
}

[data-theme="flashbang"] .settings-icons-grid {
    background: #111 !important;
    border-color: #2a2a2a !important;
}

[data-theme="flashbang"] .settings-btn-grid button {
    background: #111 !important;
    border-color: #2a2a2a !important;
    color: white !important;
}

[data-theme="flashbang"] .key-bind-btn {
    background: #111 !important;
    border-color: #2a2a2a !important;
    color: white !important;
}

[data-theme="flashbang"] .settings-overlay,
[data-theme="flashbang"] #account-overlay {
    background: rgba(0,0,0,0.5) !important;
}

[data-theme="flashbang"] .welcome-popup {
    background: #161616 !important;
    border-color: #2a2a2a !important;
    color: #f0f0f0 !important;
}

[data-theme="flashbang"] .welcome-popup-title h2,
[data-theme="flashbang"] .welcome-popup-content p {
    color: #f0f0f0 !important;
}

/* ============================================================
   FLASHBANG — fix white text on light backgrounds
============================================================ */

[data-theme="flashbang"] .game-info-about,
[data-theme="flashbang"] .game-info-top,
[data-theme="flashbang"] .game-info-section {
    background: #ffffff !important;
    border-color: #d0d8e8 !important;
}

[data-theme="flashbang"] .game-info-about h3,
[data-theme="flashbang"] .game-info-text h2,
[data-theme="flashbang"] .game-info h1,
[data-theme="flashbang"] .game-info-label {
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .game-info-description,
[data-theme="flashbang"] .game-info-value,
[data-theme="flashbang"] .game-info-author,
[data-theme="flashbang"] .game-info p {
    color: #3a4a6a !important;
}

[data-theme="flashbang"] .game-info-row {
    border-bottom-color: #d0d8e8 !important;
}

[data-theme="flashbang"] .game-info-about h3 {
    border-bottom-color: #d0d8e8 !important;
}

[data-theme="flashbang"] .game-header {
    background: #ffffff !important;
    border-top-color: #d0d8e8 !important;
}

[data-theme="flashbang"] .game-info h1 {
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .legal-card {
    background: #ffffff !important;
    border-color: #d0d8e8 !important;
}

[data-theme="flashbang"] .legal-card p,
[data-theme="flashbang"] .legal-card li {
    color: #3a4a6a !important;
}

[data-theme="flashbang"] .legal-title,
[data-theme="flashbang"] .legal-card h2 {
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .home-seo-intro h2,
[data-theme="flashbang"] .home-seo-categories h3,
[data-theme="flashbang"] .home-seo-faq h3 {
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .home-seo-intro p,
[data-theme="flashbang"] .home-seo-categories li,
[data-theme="flashbang"] .home-seo-categories > p,
[data-theme="flashbang"] .faq-answer p {
    color: #3a4a6a !important;
}

[data-theme="flashbang"] .faq-item {
    background: #ffffff !important;
    border-color: #d0d8e8 !important;
}

[data-theme="flashbang"] .faq-question {
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .cat-sidebar-link {
    color: #3a4a6a !important;
}

[data-theme="flashbang"] .cat-sidebar-link.active {
    color: var(--accent) !important;
    background: rgba(43,127,255,0.08) !important;
}

[data-theme="flashbang"] footer a {
    color: #3a4a6a !important;
}

[data-theme="flashbang"] footer div p {
    color: #5a6a8a !important;
}

[data-theme="flashbang"] .home-seo-categories li strong {
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .settings-panel .custom-icon-upload-btn {
    background: #111 !important;
    border-color: #2a2a2a !important;
    color: #ccc !important;
}

[data-theme="flashbang"] .settings-panel .custom-icon-upload-btn:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

[data-theme="flashbang"] .game-search {
    color: #0d1a36 !important;
    background: #ffffff !important;
    border-color: #d0d8e8 !important;
}

/* ============================================================
   FLASHBANG — white panels with dark text
============================================================ */

[data-theme="flashbang"] .settings-panel,
[data-theme="flashbang"] #account-panel {
    background: #ffffff !important;
    border-left-color: #d0d8e8 !important;
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .settings-panel-header,
[data-theme="flashbang"] #account-panel .settings-panel-header {
    border-bottom-color: #d0d8e8 !important;
}

[data-theme="flashbang"] .settings-panel-header h2,
[data-theme="flashbang"] #account-panel .settings-panel-header h2 {
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .settings-panel-close {
    color: #5a6a8a !important;
}

[data-theme="flashbang"] .settings-panel-close:hover {
    background: rgba(0,0,0,0.06) !important;
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .settings-panel-label {
    color: #5a6a8a !important;
}

[data-theme="flashbang"] .settings-field label {
    color: #3a4a6a !important;
}

[data-theme="flashbang"] .settings-field input[type="text"] {
    background: #f0f4ff !important;
    border-color: #d0d8e8 !important;
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .settings-icons-grid {
    background: #f0f4ff !important;
    border-color: #d0d8e8 !important;
}

[data-theme="flashbang"] .settings-btn-grid button {
    background: #f0f4ff !important;
    border-color: #d0d8e8 !important;
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .settings-btn-grid button:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

[data-theme="flashbang"] .key-bind-btn {
    background: #f0f4ff !important;
    border-color: #d0d8e8 !important;
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .settings-panel .custom-icon-upload-btn {
    background: #f0f4ff !important;
    border-color: #d0d8e8 !important;
    color: #3a4a6a !important;
}

[data-theme="flashbang"] .settings-panel .custom-icon-upload-btn:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

[data-theme="flashbang"] .theme-swatch-name {
    color: #3a4a6a !important;
}

[data-theme="flashbang"] .theme-swatch.active .theme-swatch-name {
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .account-coming-soon p {
    color: #0d1a36 !important;
}

[data-theme="flashbang"] .account-coming-soon span {
    color: #5a6a8a !important;
}

[data-theme="flashbang"] .theme-swatch.active .theme-swatch-color {
    border-color: #0d1a36 !important;
    box-shadow: 0 0 0 2px rgba(13,26,54,0.2) !important;
}

/* ============================================================
   OLED THEME — pure black, elements must not have black text on black bg
============================================================ */

[data-theme="oled"] body { background: #000 !important; }

[data-theme="oled"] .topbar,
[data-theme="oled"] .cat-sidebar,
[data-theme="oled"] .settings-panel,
[data-theme="oled"] #account-panel {
    background: #000 !important;
}

[data-theme="oled"] .settings-panel,
[data-theme="oled"] #account-panel {
    border-left-color: #1e1e1e !important;
}

[data-theme="oled"] .settings-panel-header,
[data-theme="oled"] #account-panel .settings-panel-header {
    border-bottom-color: #1e1e1e !important;
}

[data-theme="oled"] .settings-field input[type="text"],
[data-theme="oled"] .key-bind-btn,
[data-theme="oled"] .settings-btn-grid button,
[data-theme="oled"] .settings-icons-grid,
[data-theme="oled"] .custom-icon-upload-btn {
    background: #000 !important;
    border-color: #1e1e1e !important;
    color: #f0f0f0 !important;
}

[data-theme="oled"] .game-header { background: #000 !important; border-top-color: #1e1e1e !important; }
[data-theme="oled"] .game-info-top,
[data-theme="oled"] .game-info-about { background: #000 !important; border-color: #1e1e1e !important; }
[data-theme="oled"] .game-info-row { border-bottom-color: #1e1e1e !important; }
[data-theme="oled"] .game-info-about h3 { border-bottom-color: #1e1e1e !important; }

[data-theme="oled"] .faq-item { background: #000 !important; border-color: #1e1e1e !important; }
[data-theme="oled"] .faq-question { color: #f0f0f0 !important; }
[data-theme="oled"] .faq-question:hover { background: rgba(255,255,255,0.03) !important; }

[data-theme="oled"] footer { background: #000 !important; border-top-color: #1e1e1e !important; }

[data-theme="oled"] .mosaic-card { background: #000 !important; }
[data-theme="oled"] .home-game-card { background: #000 !important; }

[data-theme="oled"] .welcome-popup { background: #000 !important; border-color: #1e1e1e !important; }

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

.error-bounce-icon {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    animation: bounce 1.8s ease-in-out infinite;
    margin-bottom: 24px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-18px); }
}

.error-message {
    font-size: 22px;
    color: #ccc;
    margin-bottom: 10px;
    text-align: center;
    max-width: 420px;
    font-family: "Rubik", sans-serif;
}

.error-hint {
    font-size: 17px;
    color: var(--muted);
    text-align: center;
}

.error-hint strong {
    color: var(--accent);
}
