/* style.css - GuessTheCoaster 2026 Core Style */
:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --primary: #ff9800;
    --win: #004d03b5;
    --win-light: #2fb033;
    --loss: #570600ad;
    --loss-light: #ff9a92;
    --active: #2196f3;
    --todo: #888;
    --name-width: 200px;
    --cell-height: 75px;
}

.gtc-container {
    width: 100%;
    margin: 0 auto;
    color: white;
    font-family: 'Inter', system-ui, sans-serif;
    box-sizing: border-box;
    background: var(--glass-bg);
    backdrop-filter: blur(3px);
    padding: 10px 25px 0 25px;
}
    
}

/* --- MAIN HEADER --- */
.gtc-main-header {display: grid;grid-template-columns: 1fr auto 1fr;align-items: center;padding: 0 20px;margin-bottom: 0px;}
.gtc-logo-area { grid-column: 2; display: flex; align-items: center; gap: 15px; }
.gtc-logo-area h1 { font-size: 2.2rem; font-weight: 900; margin: 0; background: linear-gradient(135deg, #fff 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gtc-unit-toggle { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); border-radius: 12px; padding: 5px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; }
.gtc-unit-toggle:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.gtc-unit-toggle img { width: 30px; height: auto; }
#room-picker { grid-column: 3; justify-self: end; }

/* --- NAVBAR --- */
.nav-gtc-container {
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 71px;
    z-index: 900;
    backdrop-filter: blur(15px);
    /* margin-bottom: 6px; */
}
.nav-gtc-tabs {
    display: flex;
    width: 100%;
    max-width: 1000px;
    position: relative;
}
.nav-gtc-tab {
    flex: 1;
    color: #888;
    padding: 15px 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 3px solid transparent;
}
.nav-gtc-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}
.nav-gtc-tab.active {
    color: var(--accent-color); /* GTC Primary Orange */
    border-bottom-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}
.nav-gtc-tab .tab-img {
    height: 20px;
    width: auto;
    filter: grayscale(1) brightness(1.5);
    transition: all 0.3s ease;
}
.nav-gtc-tab.active .tab-img {
    filter: none;
}

@media (max-width: 600px) {
    .nav-gtc-tab span { display: none; }
    .nav-gtc-tab {
        padding: 12px 5px;
    }
    .nav-gtc-tab .tab-img { height: 18px; }
}


/* --- GAMIFIED ROOM PICKER --- */
.gtc-custom-select { position: relative; display: inline-block; margin-top: 10px; }
.gtc-select-trigger { display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s ease; border: 2px solid transparent; color: white; }
.status-todo .gtc-select-trigger { background: var(--primary); }
.status-active .gtc-select-trigger { background: var(--active); }
.status-played .gtc-select-trigger { background: #ffd700; color: #000; }
.status-played .gtc-select-trigger .gtc-chevron { border-color: #000; }
.status-win .gtc-select-trigger {background: var(--win-light);box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);}
.status-loss .gtc-select-trigger { background: var(--loss); box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4); }
.gtc-select-trigger:hover { transform: translateY(-2px); }

.gtc-select-options { position: absolute; top: 120%; left: 0; background: #1a1a1a; border: 1px solid var(--glass-border); border-radius: 15px; padding: 8px; min-width: 220px; box-shadow: 0 15px 40px rgba(0,0,0,0.8); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 1000; }
.gtc-custom-select.open .gtc-select-options { opacity: 1; visibility: visible; transform: translateY(0); }
.gtc-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-radius: 10px; cursor: pointer; transition: all 0.2s ease; color: white; font-size: 0.9rem; font-weight: 600; }
.gtc-option.status-win { background: rgba(76, 175, 80, 0.25); }
.gtc-option.status-loss { background: rgba(244, 67, 54, 0.25); }
.gtc-option.status-active { background: rgba(33, 150, 243, 0.25); }
.gtc-option.status-played { background: rgba(255, 215, 0, 0.25); }
.gtc-option.active { border: 2px solid white !important; box-shadow: inset 0 0 10px rgba(255,255,255,0.2); pointer-events: none; cursor: default; }
.gtc-option:hover, .gtc-option.selected { background: rgba(255, 255, 255, 0.15) !important; }
.room-mini-badge { font-size: 0.7rem; background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 10px; opacity: 0.8; }
.gtc-chevron { width: 8px; height: 8px; border-right: 2px solid white; border-bottom: 2px solid white; transform: rotate(45deg); margin-left: 10px; transition: transform 0.3s ease; }
.gtc-custom-select.open .gtc-chevron { transform: rotate(-135deg); }
.flag-icon { width: 20px; height: auto; border-radius: 2px; }

/* --- INPUT & CLUES SECTION --- */
#gtc-input-container {max-width: 950px;margin: 0 auto 29px;position: relative;z-index: 100;}
.gtc-input-row { display: flex; align-items: center; justify-content: center; gap: 30px; position: relative; }
.gtc-input-wrapper { flex: 1; position: relative; max-width: 600px; transition: opacity 0.3s ease, filter 0.3s ease; }
.gtc-input-row.clue-active .gtc-input-wrapper { opacity: 0.1; filter: blur(4px); pointer-events: none; }
#gtc-input { width: 100%; padding: 18px 30px; border-radius: 100px; border: 2px solid var(--glass-border); background: rgba(255, 255, 255, 0.95); color: #111; font-size: 1.2rem; font-weight: 600; transition: all 0.3s ease; }
#gtc-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 5px rgba(255, 152, 0, 0.2); }

.gtc-clue-icon { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.clue-icon-wrapper { width: 55px; height: 55px; background: rgba(255, 255, 255, 0.05); border: 2px solid var(--glass-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.clue-text { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: rgba(255,255,255,0.3); letter-spacing: 1px; }
.gtc-clue-icon img { width: 28px; filter: grayscale(1); opacity: 0.2; }
.gtc-clue-icon:not(.locked) { cursor: pointer; }
.gtc-clue-icon:not(.locked) .clue-icon-wrapper { border-color: var(--primary); background: rgba(255, 152, 0, 0.1); }
.gtc-clue-icon:not(.locked) .clue-text { color: var(--primary); opacity: 1; }
.gtc-clue-icon:not(.locked) img { filter: none; opacity: 1; }

/* CLUE POPUP (OVERLAY STYLE) */
.clue-popup {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%) scale(0.9);background: #151515;color: white;padding: 15px 30px;border-radius: 50px;white-space: nowrap;border: 2px solid var(--primary);box-shadow: 0 0 40px rgba(0,0,0,0.9);opacity: 0;visibility: hidden;transition: all 0.3s ease;z-index: 2000;display: flex;align-items: center;gap: 12px;width: 67%;/* max-width: 550px; */justify-content: center;pointer-events: none;}
.gtc-clue-icon.revealed .clue-popup {opacity: 1;visibility: visible;transform: translate(-50%, -50%) scale(1);pointer-events: auto;}
.clue-timer { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.clue-timer svg { transform: rotate(-90deg); }
.clue-timer circle { fill: none; stroke-width: 3; stroke-linecap: round; }
.clue-timer .bg { stroke: rgba(255, 255, 255, 0.1); }
.clue-timer .progress { 
    stroke: var(--primary); 
    stroke-dasharray: 100.5; 
    stroke-dashoffset: 0; 
    transition: stroke-dashoffset 1s linear; 
}
.timer-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.8rem; font-weight: 800; color: var(--primary); }
.clue-content { 
    font-weight: 800; 
    font-size: 1.2rem; 
    font-family: 'Courier New', Courier, monospace; 
    letter-spacing: 0.2em;
    color: #fff;
}
.clue-content strong { color: var(--primary); }

.gtc-attempts-left {text-align: center;margin-top: -7px;font-size: 1rem;color: rgba(255,255,255,0.5);}
.gtc-attempts-left strong { color: var(--primary); font-size: 1.2rem; }

/* --- BONUS #3 STYLES --- */
#gtc-bonus-container {
    text-align: center;
    margin: 20px 0;
    display: none;
    animation: fadeInScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bonus-btn {
    background: linear-gradient(135deg, #673ab7 0%, #9c27b0 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(103, 58, 183, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    transition: all 0.3s ease;
}
.bonus-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(103, 58, 183, 0.5);
}
.bonus-btn img {
    width: 24px;
    filter: brightness(0) invert(1);
}
.bonus-btn .bonus-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.bonus-reveal-card {
    background: rgba(103, 58, 183, 0.15);
    padding: 7px;
    border-radius: 20px;
    border: 2px solid #673ab7;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.bonus-reveal-card h2 {
    color: #9c27b0;
    margin-bottom: 0px;
    font-weight: 900;
    margin: 0;
}
.bonus-reveal-card p {
    margin-bottom: 13px;
    opacity: 0.8;
    margin-top: 0px;
}
.bonus-reveal-card .bonus-note {
    font-size: 0.7rem;
    margin-top: 15px;
    opacity: 0.5;
    font-style: italic;
}

.gtc-abandon-btn {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 50px;
    margin-top: 11px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.gtc-abandon-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: white;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- GAME SUMMARY (HORIZONTAL DESKTOP) --- */
#gtc-game-summary {width: 100%;margin: 0 auto 20px;}
.summary-card {
    border-radius: 20px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 0px 22px rgb(87 43 0);
    margin-top: 10px;
    animation: fadeInScale 0.5s ease-out;
    background: #0000004a;
}
.win .summary-header h2 {color: var(--win-light);}
.loss .summary-header h2 {color: var(--loss-light);}
.summary-header h2 { font-size: 1.3rem; font-weight: 900; text-transform: uppercase; white-space: nowrap; margin: 0; }
.final-score { font-size: 1rem; font-weight: 700; color: #fff; margin-top: 5px; }
.final-score span { color: var(--primary); font-size: 1.3rem; font-weight: 900; }
.summary-stats-grid { display: flex; gap: 12px; flex-shrink: 0; }
.summary-stat-box { background: rgba(0,0,0,0.2); padding: 8px 15px; border-radius: 12px; min-width: 80px; text-align: center; }
.stat-label { font-size: 0.6rem; text-transform: uppercase; opacity: 0.5; font-weight: 800; display: block; }
.accent-text {color: var(--accent-color);font-weight: 900;}
.stat-value { font-size: 1.1rem; font-weight: 900; color: #fff; }
.stat-value-with-icon { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 1.1rem; font-weight: 900; color: #fff; }
.stat-mini-icon { width: 14px; height: auto; opacity: 0.7; }
.bonus-usage { display: flex; flex-direction: column; gap: 3px; font-size: 0.75rem; font-weight: 700; }
.bonus-item { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.05); padding: 1px 8px; border-radius: 50px; }
.bonus-item img { width: 10px; }
.mystery-reveal-zone { display: flex; flex-direction: column; align-items: center; padding: 0 15px; flex: 1; border-left: 1px solid var(--glass-border); }
.reveal-label { font-size: 0.65rem; opacity: 0.5; margin: 0; }

.reveal-content-wrapper { display: flex; align-items: center; gap: 15px; margin-top: 5px; width: 100%; justify-content: center; }
.reveal-info { text-align: center; }
.reveal-name {font-size: 1.2rem;font-weight: 800;color: var(--accent-color);margin: 0;white-space: nowrap;}
.reveal-location { font-size: 0.75rem; opacity: 0.6; margin: 0; white-space: nowrap; }

.details-mini-btn { padding: 6px 12px; font-size: 0.75rem; display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--glass-border); }
.details-mini-btn img { width: 14px; height: 14px; }
.details-mini-btn:hover {background: rgb(255 105 0 / 100%);border-color: white;}
.ranking-btn img {width: 14px;height: 14px;margin-right: 0.7em;}

@media (max-width: 900px) {
    .reveal-content-wrapper { flex-direction: column; gap: 8px; }
    .details-mini-btn { width: auto; }
}

.mystery-btn {padding: 10px 20px;background: var(--accent-color);border: none;border-radius: 50px;color: #000000;font-weight: 800;cursor: pointer;text-transform: uppercase;transition: all 0.3s ease;font-size: 0.8rem;}
.mystery-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(255, 152, 0, 0.4); }

.summary-actions {/* display: flex; *//* gap: 10px; *//* justify-content: center; *//* width: 100%; *//* margin-top: 5px; */}
.ranking-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; }
.ranking-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: white; }

.gtc-share-container-summary { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--glass-border); width: 100%; }
.gtc-share-container-summary .share-row { justify-content: center; }

.summary-actions {/* display: flex; *//* gap: 10px; *//* justify-content: center; *//* width: 100%; *//* margin-top: 5px; */}
.ranking-btn {background: rgba(255, 255, 255, 0.1);border: 1px solid var(--glass-border);display: flex;align-items: center;justify-content: center;color: white;}
.ranking-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: white; }

.gtc-share-container-summary { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--glass-border); width: 100%; }
.gtc-share-container-summary .share-row { justify-content: center; }

/* --- GAME BOARD --- */
#gtc-game-board {display: flex;flex-direction: column;gap: 4px;margin-top: 10px;width: 100%;}

.gtc-row {
    display: grid;
    /* Col 1 (Name): Fixed width or Auto */
    /* Col 2-5 (Park, Country, Manu, Type): Flexible */
    /* Col 6-10 (Year, Inv, Height, Length, Speed): Narrower */
    grid-template-columns: var(--name-width) repeat(4, 1.2fr) repeat(5, 0.6fr);
    gap: 6px;
}

.gtc-row:not(.gtc-grid-header){margin-bottom: 6px;}

.gtc-cell {
    position: relative;
    display: flex;
    flex-direction: column; /* Allow vertical stacking of content + icons */
    align-items: center;
    justify-content: center;
    height: var(--cell-height);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    box-sizing: border-box;
    text-align: center;
    padding: 5px;
    line-height: 1.1;
    overflow: hidden;
    min-width: 2.4em;
}

/* Unit wrap logic for last 5 columns */
.cell-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 2px;
}

.unit-text {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 400;
}

/* Specifically for the last 5 columns on desktop, force wrap if needed */
.gtc-row .gtc-cell:nth-last-child(-n+5) .cell-content {
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.gtc-row .gtc-cell:nth-last-child(-n+5) span:not(.unit-text) {
    font-size: 0.9rem;
}

.match-true { background: var(--win) !important; border: none !important; }
.match-false { background: var(--loss) !important; border: none !important; }
.match-unknown { background: #ffd700ad !important; border: none !important; color: white !important; }
.empty-cell {background: rgba(255,255,255,0.1) !important;border: 1px dashed var(--glass-border) !important;opacity: 0.8;}
.coaster-name-cell { color: white; font-weight: 900; background: #000000a8; position: relative; }
.attempt-number { position: absolute; top: 5px; left: 8px; font-size: 0.65rem; font-weight: 800; color: rgba(255,255,255,0.4); }
.attempt-number .num { color: var(--primary); }
.header-cell {border: 1px solid var(--glass-border) !important;height: 40px;border-radius: 12px;background: #000000 !important;}
.header-cell img { width: 22px; filter: brightness(1.2); }
.stat-icon { position: absolute; left: 50%; transform: translateX(-50%); width: 16px; z-index: 3; }
.icon-greater, .icon-greaterUnknown {top: 4px;}
.icon-lower, .icon-lowerUnknown {bottom: 4px;}

/* --- RESPONSIVE MOBILE (< 900px) --- */
@media (max-width: 600px) {
    .gtc-input-row { gap: 10px; }
    .clue-icon-wrapper { width: 40px; height: 40px; }
    .gtc-clue-icon img { width: 20px; }
    .clue-text { font-size: 0.6rem; }
    #gtc-input { padding: 12px 20px; font-size: 1rem; }
    .clue-popup { width: 85%; padding: 10px 20px; }
    .clue-content { font-size: 0.9rem; }
    .clue-timer { width: 30px; height: 30px; }
    .timer-text { font-size: 0.7rem; }
}

@media (max-width: 900px) {
    .gtc-container { width: 100%; margin: 0; padding: 0; overflow-x: hidden; }
    .gtc-main-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
        margin-bottom: 0px;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .gtc-logo-area {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .gtc-logo-area h1 { 
        width: 100%; 
        font-size: 1.8rem; 
        margin-bottom: 5px; 
        background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .gtc-unit-toggle { order: 2; margin: 0 !important; }
    #room-picker {
        grid-column: auto;
        justify-self: center;
        order: 3;
        margin: 0 !important;
    }
    #gtc-game-summary {width: 100%;max-width: 100%;margin: 0;padding: 0;box-sizing: border-box;background-color: none;}
    .summary-card {flex-direction: column;padding: 15px;gap: 12px;text-align: center;width: 100%;box-sizing: border-box;margin-bottom: 15px;}
    .summary-stats-grid { width: 100%; flex-direction: row; justify-content: center; gap: 10px; }
    .mystery-reveal-zone { border: none; padding: 10px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); width: 100%; }
    .reveal-name { white-space: normal; font-size: 1.1rem; }
    .mystery-btn { width: 100%; }
    .details-mini-btn { width: auto !important; }

/* --- BOARD SCROLLING --- */
    #gtc-game-board {
        display: flex;
        flex-direction: row;
        margin: 0 auto;
        padding: 0;
        width: fit-content;
        max-width: 100vw;
        overflow: hidden;
        justify-content: center;
    }
    
    .gtc-grid-header { 
        display: flex; flex-direction: column; flex-shrink: 0;
        min-width: 55px; gap: 6px; z-index: 20; 
    }

    .gtc-attempts-container {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding-bottom: 10px;
        flex-grow: 1;
        cursor: grab;
    }

    .gtc-attempts-container.grabbing {
        cursor: grabbing;
        user-select: none;
    }

    .gtc-row {display: flex;flex-direction: column;min-width: 53px;gap: 4px;flex-shrink: 0;}
    .gtc-cell, .gtc-grid-header .header-cell {height: 40px !important;min-height: 20px !important;font-size: 0.75rem;border-radius: 8px;max-width: 9.2em;background: #000000a8;}
    .header-cell {background: #000!important;}
}
section.gtc-game-area {
    padding: 10px;
}
/* --- SHARE ACTIONS --- */
#gtc-share-container { margin: 20px auto; max-width: 600px; width: 100%; }
.share-row { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }

.share-main-btn.native {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 25px;
    height: 50px;
    border-radius: 25px;
    background: var(--accent-color);
    color: #000;
    border: none;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
    white-space: nowrap;
}
.share-main-btn.native:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(255, 152, 0, 0.4); }
.share-main-btn.native img { width: 20px; height: 20px; filter: brightness(0); margin: 0; }

.social-btn { 
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 15px; 
    border: 1px solid var(--glass-border); 
    background: rgba(255,255,255,0.05); 
    cursor: pointer; 
    transition: all 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.social-btn:hover { background: rgba(255,255,255,0.1); transform: scale(1.08); }
.social-btn img { width: 24px; height: 24px; object-fit: contain; }

.social-btn.whatsapp img, .social-btn.messenger img, .social-btn.discord img { filter: none; }
.social-btn.copy img { filter: brightness(0) invert(1); opacity: 0.9; }

@media (max-width: 600px) {
    .share-row { gap: 8px; }
    .share-main-btn.native { 
        padding: 0;
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }
    .share-main-btn.native span { display: none; }
    .social-btn { width: 45px; height: 45px; border-radius: 12px; }
}

#gtc-suggestions { background: white; border-radius: 15px; margin-top: 5px; position: absolute; width: 100%; z-index: 100; color: black; box-shadow: 0 5px 25px rgba(0,0,0,0.5); overflow: hidden; }
.suggestion-item { padding: 12px 20px; border-bottom: 1px solid #eee; cursor: pointer; transition: all 0.2s; }
.suggestion-item:hover, .suggestion-item.selected { background: rgba(255, 152, 0, 0.1); color: var(--primary); border-left: 5px solid var(--primary); }
.gtc-modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); justify-content: center; align-items: center; }
.gtc-modal-content { background: #1a1a1a; padding: 40px; border-radius: 30px; border: 1px solid var(--glass-border); max-width: 500px; width: 90%; position: relative; text-align: center; }
.gtc-modal-close { position: absolute; right: 20px; top: 15px; color: #aaa; font-size: 28px; cursor: pointer; }
.modal-stat { background: rgba(255,255,255,0.05); padding: 10px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 10px; }

/* --- DEBUG BUBBLE (ADMIN ONLY) --- */
.gtc-debug-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-weight: 900;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}
.gtc-debug-bubble:hover {
    transform: scale(1.1);
    background: #ff5555;
}
.gtc-debug-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
.gtc-debug-content {
    background: #222;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #ff0000;
    max-width: 600px;
    width: 90%;
    color: white;
    position: relative;
    text-align: left;
}
/* Header Rankings (Compact) */
.gtc-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    margin-bottom: 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.gtc-header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.gtc-header p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 5px 0 0 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Remove the trophy pseudo-element */
.gtc-header::after { display: none; }

@media (max-width: 768px) {
    .gtc-header h1 { font-size: 1.4rem; }
    .gtc-header p { font-size: 0.7rem; }
}

/* Ranking Page Styles */
.ranking-section {
    /* padding: 0 10px; */
    width: 100%;
    z-index: 1;
}

/* --- MODERN FILTERS --- */
.filters-container {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Period Segmented Control */
.period-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.period-tab {
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.period-tab:hover { color: #fff; }
.period-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* --- COMPACT ROOM FILTERS --- */
.room-scroller-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.room-scroller {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0 10px;
}

.room-circle-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.room-circle-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: translateY(-2px);
}

.room-circle-tab.active {
    background: rgba(255, 152, 0, 0.15);
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.2);
}

.room-flag-wrapper {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.room-flag-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.room-flag-wrapper .all-icon { font-size: 0.9rem; }

.room-name-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-circle-tab.active .room-name-label { color: var(--primary); }

@media (max-width: 600px) {
    .room-scroller { gap: 6px; }
    .room-circle-tab { padding: 5px 10px; }
    .room-name-label { font-size: 0.65rem; }
    .room-flag-wrapper { width: 20px; height: 20px; }
}

/* User Banner */
.my-rank-banner {
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.2), rgba(0, 0, 0, 0.3));
    border-left: 5px solid var(--primary);
    padding: 10px 10px;
    border-radius: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.5s ease-out;
    max-width: 29em;
    margin: 0 auto;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.my-rank-info { display: flex; align-items: center; gap: 20px; }
.my-rank-number { font-size: 2rem; font-weight: 900; color: var(--primary); text-shadow: 0 0 10px rgba(255, 152, 0, 0.3); }
.my-rank-label { font-size: 0.75rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.my-rank-name { font-size: 1.1rem; font-weight: bold; color: #fff; }

/* Podium Area */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin: 0;
    padding-top: 20px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
    position: relative;
}

.podium-item.placeholder { opacity: 0.3; filter: grayscale(1); }
.podium-item.placeholder .podium-avatar { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.2); }

.podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #222;
    margin-bottom: 12px;
    border: 3px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.podium-item:hover .podium-avatar { transform: scale(1.1) translateY(-5px); }
.podium-avatar img { width: 100%; height: 100%; object-fit: cover; }
.podium-name { font-weight: bold; font-size: 0.9rem; margin-bottom: 4px; text-align: center; color: #fff; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-score {color: var(--primary);font-weight: 900;font-size: 0.95rem;}

.podium-step {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.podium-step::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(to top, rgba(255,255,255,0.05), transparent);
}

.p-1 { z-index: 2; width: 160px; }
.p-1 .podium-step { height: 110px; border-top: 3px solid #ffd700; color: #ffd700; background: linear-gradient(to top, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05)); }
.p-1 .podium-avatar { border-color: #ffd700; width: 90px; height: 90px; }
.p-1 .podium-name { font-size: 1.1rem; }

.p-2 .podium-step { height: 80px; border-top: 3px solid #c0c0c0; color: #c0c0c0; background: linear-gradient(to top, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05)); }
.p-2 .podium-avatar { border-color: #c0c0c0; }

.p-3 .podium-step { height: 60px; border-top: 3px solid #cd7f32; color: #cd7f32; background: linear-gradient(to top, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.05)); }
.p-3 .podium-avatar { border-color: #cd7f32; }

/* Table Styling */
.ranking-table-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ranking-header {
    text-align: center;
    padding-bottom: 3px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
}

.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.ranking-table th {
    text-align: left;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ranking-table tr.rank-row {
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.ranking-table tr.rank-row:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.005);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ranking-table tr.is-me {
    background: rgba(255, 152, 0, 0.08);
    border-left: 3px solid var(--primary);
}

.ranking-table td {padding: 7px 7px;}
.ranking-table td:first-child { border-radius: 10px 0 0 10px; }
.ranking-table td:last-child { border-radius: 0 10px 10px 0; }

.user-cell { display: flex; align-items: center; gap: 15px; }
.user-avatar-mini { 
    width: 36px; height: 36px; border-radius: 50%; 
    background: #333; overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: bold;
}
.user-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

.score-total { font-weight: 900; color: var(--primary); font-size: 1.1rem; }
.score-best { font-size: 0.85rem; font-weight: bold; color: #fff; opacity: 0.9; }
.win-badge {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(46, 213, 115, 0.2);
}

.score-unit { font-size: 0.6rem; opacity: 0.4; letter-spacing: 1px; margin-top: 2px; }

/* Stats Chips */
.stat-container {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    align-items: center;
}

.podium-item .stat-container {
    transform: scale(0.85);
}

.p-1 .stat-container {
    transform: scale(0.95);
}

.stat-chip {
    padding: 0;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.stat-chip img {
    width: 14px;
    height: 14px;
}

.p-1 .stat-chip {
    font-size: 0.8rem;
}

.p-1 .stat-chip img {
    width: 16px;
    height: 16px;
}

.stat-chip.win {
    color: #d8ffe9;
}

.stat-chip.loss {
    color: #fcafa8;
}

.my-rank-banner .stat-container {
    justify-content: flex-end;
    margin-top: 5px;
    margin-bottom: 0;
    gap: 8px;
}

.my-rank-banner .stat-chip {
    /* padding: 2px 10px; */
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .podium-container {gap: 10px;margin: 0;}
    .podium-item { width: 100px; }
    .p-1 { width: 120px; }
    .p-1 .podium-avatar { width: 70px; height: 70px; }
    .podium-avatar { width: 50px; height: 50px; }
    .podium-step { font-size: 1.5rem; }
    .ranking-table th, .ranking-table td {padding: 6px;font-size: 0.8rem;}
    .hide-mobile { display: none; }
}

/* Profile Modal */
.profile-modal { display: none; position: fixed; z-index: 4000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); justify-content: center; align-items: center; }
.profile-modal-content { background: #111; border: 1px solid var(--glass-border); border-radius: 25px; width: 90%; max-width: 450px; position: relative; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.8); }
.profile-modal-close { position: absolute; right: 20px; top: 15px; color: #fff; font-size: 24px; cursor: pointer; z-index: 10; opacity: 0.5; transition: opacity 0.3s; }
.profile-modal-close:hover { opacity: 1; }

.profile-header-bg { height: 100px; background: linear-gradient(135deg, #333 0%, var(--primary) 100%); opacity: 0.3; }
.profile-info-main { text-align: center; margin-top: -50px; padding: 0 20px 20px; position: relative; }
.profile-avatar-large { width: 100px; height: 100px; border-radius: 50%; border: 4px solid #111; background: #222; margin: 0 auto 15px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 900; }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 5px; }
.profile-joined { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }

.profile-stats-section { padding: 20px; background: rgba(255,255,255,0.03); border-top: 1px solid rgba(255,255,255,0.05); }
.profile-section-title { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: var(--primary); letter-spacing: 2px; margin-bottom: 15px; text-align: center; }
.profile-gtc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.profile-stat-card { background: rgba(0,0,0,0.3); padding: 12px; border-radius: 15px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.profile-stat-card.full { grid-column: span 2; }
.profile-stat-label { font-size: 0.65rem; color: rgba(255,255,255,0.4); text-transform: uppercase; display: block; margin-bottom: 4px; font-weight: 700; }
.profile-stat-value { font-size: 1.2rem; font-weight: 900; color: #fff; }
.profile-stat-value.score { color: var(--primary); }

.profile-social-links { display: flex; justify-content: center; gap: 15px; padding: 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.social-link-btn { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 50px; background: var(--primary); color: #000; text-decoration: none; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; transition: all 0.3s; }
.social-link-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3); }
.social-link-btn.secondary { background: rgba(255,255,255,0.1); color: #fff; }
.social-link-btn.secondary:hover { background: rgba(255,255,255,0.2); }

/* Admin Tab Specific */
.admin-tab {
    flex: 0 0 60px !important;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: none !important;
}
.admin-tab:hover {
    background: var(--primary) !important;
}
.admin-tab:hover .tab-img {
    filter: brightness(0) !important;
}
@media (max-width: 600px) {
    .admin-tab { flex: 0 0 50px !important; }
}

/* Multiplayer Room Selection */
.multi-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-top: 30px; 
}

.multi-card { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--glass-border); 
    border-radius: 20px; 
    padding: 25px; 
}

.multi-card.public-room {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 4px solid var(--primary);
}

.multi-card.private-room {
    height: 100%;
    border-top: 4px solid #fff;
}

.multi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.live-badge {
    background: var(--primary);
    color: #000;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 900;
}

.multi-card-desc {
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.config-preview-box {
    margin-top: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.config-preview-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.config-preview-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.8;
}

.join-code-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.join-code-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.join-code-field {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.68) !important;
    border: 2px solid #333 !important;
    font-family: monospace;
    color: var(--primary) !important;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 5px;
}

.influencer-admin-banner {
    margin-top: 25px;
    padding: 15px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 12px;
    border: 1px solid var(--primary);
    text-align: center;
}

.influencer-admin-banner p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.influencer-admin-banner .small-desc {
    margin: 5px 0 0;
    font-size: 0.75rem;
    opacity: 0.8;
}

.influencer-admin-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
}

/* ADMIN REVEAL BUTTON */
.admin-quick-reveal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.admin-reveal-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.admin-reveal-btn:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.05);
}

/* MYSTERY REVEAL CARD (Modal) */
.mystery-reveal-card {
    text-align: center;
    padding: 10px;
}

.mystery-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 0 5px;
}

.mystery-park {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 25px;
}

.mystery-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.m-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m-stat span {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    opacity: 0.5;
}

.m-stat strong {
    font-size: 0.95rem;
}

/* 2026 GTC MODERN LOADER */
.gtc-modern-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    gap: 30px;
    padding: 40px;
}

.gtc-track-loader {
    position: relative;
    width: 280px;
    height: 40px;
}

.gtc-track-loader .track {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
}

.gtc-track-loader .train {
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--primary);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 4px;
    box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
    animation: coaster-run 1.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.glitch-text {
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    opacity: 0.8;
    position: relative;
}

.loading-bar-container {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.loading-bar-progress {
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: translateX(-100%);
    animation: bar-load 2s ease-in-out infinite;
}

.gtc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.room-title-area h2 { margin: 0; font-size: 1.4rem; }
.room-code-badge {background: var(--primary);color: #000!important;padding: 2px 10px;border-radius: 5px;font-weight: 900;font-size: 0.9rem;}

.timer-display {text-align: center;flex: 0.5;}
#countdown { font-size: 2rem; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; }
.timer-label { font-size: 0.7rem; text-transform: uppercase; opacity: 0.6; display: block; }

.game-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; width: 100%; }
.ranking-sidebar { background: rgba(255,255,255,0.03); border-radius: 15px; padding: 20px; border: 1px solid var(--glass-border); text-align: left; }
.ranking-sidebar h3 { margin-top: 0; font-size: 1rem; text-transform: uppercase; opacity: 0.7; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }

.mini-rank-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.mini-rank-item.is-me { color: var(--primary); font-weight: bold; }

.waiting-screen { text-align: center; padding: 100px 20px; background: rgba(0,0,0,0.2); border-radius: 20px; border: 2px dashed rgba(255,255,255,0.1); width: 100%; }

.room-header-stats {
    width: 100%;
    display: flex;
    max-width: 57em;
    flex-direction: row;
    justify-content: center;
    padding: 11px;
    align-items: center;
}

.room-title-area {
    flex-direction: column;
    flex: 2;
}

div#round-counter-area {
    flex: 0.5;
}

@media (max-width: 900px) {
    .game-layout { grid-template-columns: 1fr; }
    .ranking-sidebar { order: 2; }
    .room-header-stats { flex-direction: column; gap: 15px; text-align: center; }
}

@keyframes coaster-run {
    0% { left: 0%; width: 10px; opacity: 0; }
    20% { width: 40px; opacity: 1; }
    80% { width: 40px; opacity: 1; }
    100% { left: 100%; width: 10px; opacity: 0; }
}

@keyframes bar-load {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 600px) {
    .gtc-track-loader { width: 180px; }
}

