:root {
    color-scheme: dark;

    --topq-bg: #080b10;
    --topq-bg-soft: #0d1118;
    --topq-panel: rgba(17, 22, 31, 0.94);
    --topq-panel-soft: rgba(23, 29, 40, 0.88);
    --topq-panel-hover: rgba(31, 39, 53, 0.96);

    --topq-border: rgba(255, 255, 255, 0.08);
    --topq-border-strong: rgba(255, 255, 255, 0.15);

    --topq-text: #f5f7fa;
    --topq-muted: #929cab;

    --topq-accent: #ff7a1a;
    --topq-accent-light: #ffad4d;
    --topq-accent-soft: rgba(255, 122, 26, 0.14);

    --topq-gold: #f3c56b;

    --topq-success: #42d487;
    --topq-danger: #ff6262;

    --topq-shadow:
        0 18px 55px rgba(0, 0, 0, 0.38),
        0 2px 8px rgba(0, 0, 0, 0.28);
}


/* =========================================================
   GLOBAL
   ========================================================= */

html {
    background: var(--topq-bg);
}

body {
    color: var(--topq-text);
    background:
        radial-gradient(
            circle at 12% -10%,
            rgba(255, 122, 26, 0.16),
            transparent 34rem
        ),
        radial-gradient(
            circle at 92% 18%,
            rgba(79, 105, 255, 0.09),
            transparent 34rem
        ),
        linear-gradient(
            145deg,
            #080b10 0%,
            #0c1017 48%,
            #080b10 100%
        );
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );
    background-size: 44px 44px;
}

.background-glow-left {
    background:
        radial-gradient(
            circle,
            rgba(255, 122, 26, 0.55),
            transparent 68%
        );
    opacity: 0.22;
}

.background-glow-right {
    background:
        radial-gradient(
            circle,
            rgba(68, 91, 255, 0.32),
            transparent 68%
        );
    opacity: 0.14;
}

.app-shell {
    width: min(1420px, calc(100% - 2rem));
    padding-top: 1rem;
}


/* =========================================================
   TYPOGRAFIE
   ========================================================= */

h1,
h2,
h3,
h4,
.car-name {
    color: var(--topq-text);
}

h1,
.car-name {
    font-family:
        "Segoe UI",
        system-ui,
        sans-serif;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.eyebrow {
    color: var(--topq-accent-light);
    font-weight: 800;
}

.start-copy,
.hero-copy,
.login-copy,
.deck-card-meta,
.score-subtitle,
.game-deck-description,
.saved-game-meta,
.online-card p {
    color: var(--topq-muted);
}


/* =========================================================
   PANELS
   ========================================================= */

.hero-panel,
.start-panel,
.log-panel,
.login-gate,
.game-sidebar {
    background:
        linear-gradient(
            145deg,
            rgba(24, 30, 41, 0.96),
            rgba(13, 17, 24, 0.97)
        );
    border: 1px solid var(--topq-border);
    box-shadow: var(--topq-shadow);
}

.hero-panel,
.start-panel,
.login-gate {
    border-radius: 24px;
}

.hero-panel {
    padding: 0.8rem;
}


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

.hero-banner {
    height: clamp(150px, 18vw, 245px);
    border-radius: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    background:
        linear-gradient(
            to top,
            rgba(7, 9, 13, 0.78),
            rgba(7, 9, 13, 0.03) 60%
        ),
        url("assets/header/topq-header.jpg")
        center / cover no-repeat;

    box-shadow:
        inset 0 -80px 80px rgba(0, 0, 0, 0.30),
        0 15px 40px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-gate {
    width: min(500px, 100%);
    margin-top: clamp(2rem, 8vh, 7rem);
    padding: 1.6rem;
}

.login-gate h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
}

.login-form input,
.online-field textarea {
    background: rgba(6, 9, 14, 0.86);
    color: var(--topq-text);

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

.login-form input::placeholder {
    color: #626b78;
}

.login-form input:focus,
.online-field textarea:focus {
    outline: none;
    border-color: var(--topq-accent);
    box-shadow:
        0 0 0 3px
        rgba(255, 122, 26, 0.14);
}

.login-divider {
    color: var(--topq-muted);
}


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

.action-button {
    color: #0b0c0e;

    background:
        linear-gradient(
            135deg,
            #ffb34c,
            var(--topq-accent)
        );

    box-shadow:
        0 8px 24px
        rgba(255, 122, 26, 0.24);
}

.action-button:hover:not(:disabled) {
    box-shadow:
        0 12px 32px
        rgba(255, 122, 26, 0.34);
}

.ghost-button {
    background:
        rgba(255, 255, 255, 0.055);

    color: var(--topq-text);

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

.ghost-button:hover:not(:disabled),
.ghost-button:focus-visible:not(:disabled) {
    background:
        rgba(255, 255, 255, 0.10);

    border-color:
        rgba(255, 255, 255, 0.19);
}

.ghost-button.is-active {
    color: #fff;

    background:
        var(--topq-accent-soft);

    border-color:
        rgba(255, 122, 26, 0.48);
}

.user-pill,
.deck-count-pill {
    color: var(--topq-text);

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid
        var(--topq-border);
}


/* =========================================================
   DECK-AUSWAHL
   ========================================================= */

.start-panel {
    padding: 1.25rem;
}

.deck-list {
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(185px, 1fr)
        );

    gap: 1.15rem;
    margin-top: 1.25rem;
}

.deck-card {
    border-radius: 18px;

    color: var(--topq-text);

    background:
        linear-gradient(
            160deg,
            #181e28,
            #10141b
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

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

.deck-card:hover,
.deck-card:focus-visible {
    transform:
        translateY(-7px)
        scale(1.018);

    border-color:
        rgba(255, 122, 26, 0.42);

    box-shadow:
        0 18px 42px
        rgba(0, 0, 0, 0.42),
        0 0 0 1px
        rgba(255, 122, 26, 0.11);
}

.deck-card-cover {
    aspect-ratio: 3 / 4;

    background-color: #111721;
}

.deck-card-cover::after {
    content: "";
    display: block;
    position: absolute;
}

.deck-card-footer {
    padding: 0.85rem 0.9rem 0.95rem;
}

.deck-card-title {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
}

.deck-card-rating {
    color: var(--topq-gold);
}


/* =========================================================
   RANKING / ONLINE / SAVES / STATS
   ========================================================= */

.player-stats-panel,
.deck-ranking-panel,
.online-panel,
.saved-game-card,
.online-card,
.online-challenge-panel {
    background:
        rgba(10, 14, 20, 0.72);

    border:
        1px solid
        var(--topq-border);
}

.deck-ranking-panel,
.online-panel {
    border-radius: 18px;
}

.deck-ranking-card,
.online-user-item {
    background:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid
        var(--topq-border);
}

.deck-ranking-list li {
    color: #c8cfda;
}

.online-user-item.me {
    background:
        rgba(66, 212, 135, 0.08);

    border-color:
        rgba(66, 212, 135, 0.22);
}

.online-feedback {
    color: var(--topq-accent-light);
}

.saved-games-panel {
    border-top-color: var(--topq-border);
}

.saved-game-actions button {
    background:
        rgba(255,255,255,0.06);

    color: var(--topq-text);

    border:
        1px solid
        var(--topq-border);
}


/* =========================================================
   SPIELFLÄCHE
   ========================================================= */

.game-layout {
    grid-template-columns:
        230px
        minmax(0, 1fr)
        260px;

    gap: 1rem;
}

.game-sidebar {
    border-radius: 20px;
}

.game-deck-title {
    color: var(--topq-text);
}

.game-scoreboard .score-card,
.score-card {
    background:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid
        var(--topq-border);
}

.score-card-accent {
    background:
        linear-gradient(
            145deg,
            rgba(255, 122, 26, 0.18),
            rgba(255, 122, 26, 0.06)
        );

    border-color:
        rgba(255, 122, 26, 0.25);
}

.score-label,
.status-label,
.card-owner,
.card-archetype {
    color: var(--topq-muted);
}


/* =========================================================
   SPIELKARTEN
   ========================================================= */

.play-card {
    padding: 0.85rem;

    border-radius: 22px;

    background:
        linear-gradient(
            160deg,
            #1b222e,
            #10151d
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    box-shadow:
        0 22px 55px
        rgba(0, 0, 0, 0.40);
}

.play-card::before {
    background:
        linear-gradient(
            140deg,
            rgba(255,255,255,0.06),
            transparent 26%,
            transparent 70%,
            rgba(255,122,26,0.07)
        );
}

.player-card {
    border-top:
        2px solid
        rgba(255, 122, 26, 0.72);
}

.cpu-card {
    border-top:
        2px solid
        rgba(106, 132, 255, 0.65);
}

.card-visual {
    border-radius: 16px;

    border:
        1px solid
        var(--topq-border);

    background:
        #080b10;
}

.card-image {
    aspect-ratio: 16 / 10;
}

.visual-badge {
    color: #fff;

    background:
        rgba(7, 10, 15, 0.78);

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    backdrop-filter: blur(10px);
}

.car-name {
    color: #fff;
    margin-bottom: 0.75rem;
}


/* =========================================================
   KATEGORIEN / WERTE
   ========================================================= */

.stat-button,
.stat-display {
    background:
        rgba(255,255,255,0.045);

    color: var(--topq-text);

    border:
        1px solid
        var(--topq-border);
}

.stat-button:hover:enabled,
.stat-button:focus-visible:enabled {
    background:
        rgba(255, 122, 26, 0.09);

    border-color:
        rgba(255, 122, 26, 0.42);

    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, 0.22);
}

.stat-name {
    color: #f0f2f6;
}

.stat-hint {
    color: var(--topq-muted);
}

.stat-value {
    color: #fff;
}

.stat-selected {
    background:
        rgba(255, 122, 26, 0.14);

    border-color:
        rgba(255, 122, 26, 0.64);
}

.stat-win {
    color: #ecfff5;

    background:
        rgba(66, 212, 135, 0.15);

    border-color:
        rgba(66, 212, 135, 0.55);
}

.stat-lose {
    color: #fff0f0;

    background:
        rgba(255, 98, 98, 0.13);

    border-color:
        rgba(255, 98, 98, 0.48);
}


/* =========================================================
   MITTE / VS
   ========================================================= */

.round-pill,
.category-pill {
    color: var(--topq-text);

    background:
        rgba(14, 18, 26, 0.92);

    border:
        1px solid
        var(--topq-border);
}

.versus-mark {
    color: #0b0d10;

    background:
        linear-gradient(
            145deg,
            var(--topq-accent-light),
            var(--topq-accent)
        );

    box-shadow:
        0 10px 28px
        rgba(255, 122, 26, 0.26);
}


/* =========================================================
   LOG
   ========================================================= */

.log-panel {
    background:
        linear-gradient(
            160deg,
            rgba(20, 26, 36, 0.94),
            rgba(11, 15, 21, 0.97)
        );
}

.history-list li {
    border-color:
        rgba(255,255,255,0.055);
}


/* =========================================================
   SCROLLBARS
   ========================================================= */

* {
    scrollbar-width: thin;
    scrollbar-color:
        #3b4451
        #11151c;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #11151c;
}

::-webkit-scrollbar-thumb {
    background: #3b4451;
    border-radius: 20px;
    border: 2px solid #11151c;
}

::-webkit-scrollbar-thumb:hover {
    background: #535f70;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1100px) {

    .game-layout {
        grid-template-columns: 1fr;
    }

    .game-sidebar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .table-layout {
        order: 2;
    }

    .side-log-panel {
        order: 3;
    }
}

@media (max-width: 760px) {

    .app-shell {
        width:
            min(
                100% - 0.8rem,
                1420px
            );

        padding-top: 0.4rem;
    }

    .hero-panel,
    .start-panel,
    .login-gate {
        border-radius: 17px;
    }

    .hero-banner {
        height: 135px;
        border-radius: 13px;
    }

    .start-panel {
        padding: 0.85rem;
    }

    .start-panel-header {
        display: grid;
    }

    .start-panel-controls {
        justify-items: stretch;
    }

    .start-account-actions,
    .start-panel-controls .mode-switch {
        justify-content: stretch;
    }

    .deck-list {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 0.65rem;
    }

    .deck-card-footer {
        padding: 0.65rem;
    }

    .game-sidebar {
        grid-template-columns: 1fr;
    }

    .table-layout {
        grid-template-columns: 1fr;
    }

    .versus-column {
        grid-template-columns:
            1fr auto 1fr;

        align-items: center;
    }

    .round-pill-center,
    .category-pill {
        width: auto;
    }
}

@media (max-width: 430px) {

    .deck-list {
        grid-template-columns: 1fr 1fr;
    }

    .deck-card-title {
        font-size: 0.82rem;
    }

    .deck-card-meta,
    .deck-card-rating {
        font-size: 0.67rem;
    }
}
/* =========================================================
   KOMPAKTES HAUPTMENÜ
   ========================================================= */

.start-panel {
    position: relative;
}

.start-panel-header {
    align-items: center;
    padding-bottom: 0.35rem;
}

.start-panel-header .start-copy {
    margin-top: 0.35rem;
}

.main-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.main-mode-switch {
    margin: 0;
}

.main-mode-switch .ghost-button {
    padding: 0.52rem 0.78rem;
    font-size: 0.82rem;
}

.main-toolbar .deck-count-pill {
    padding: 0.52rem 0.72rem;
    font-size: 0.78rem;
}


/* Account Dropdown */

.account-menu {
    position: relative;
}

.account-menu > summary {
    list-style: none;
}

.account-menu > summary::-webkit-details-marker {
    display: none;
}

.account-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;

    min-height: 2.15rem;
    padding: 0.15rem 0.45rem 0.15rem 0;

    border-radius: 999px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    background:
        rgba(255, 255, 255, 0.055);

    cursor: pointer;

    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.account-menu-trigger:hover {
    background:
        rgba(255, 255, 255, 0.10);

    border-color:
        rgba(255, 255, 255, 0.18);
}

.account-menu-trigger .user-pill {
    border: 0;
    background: transparent;
    padding: 0.42rem 0.25rem 0.42rem 0.7rem;
    min-height: 0;
}

.account-menu-arrow {
    color: var(--topq-muted);
    font-size: 1rem;
    transition: transform 160ms ease;
}

.account-menu[open] .account-menu-arrow {
    transform: rotate(180deg);
}

.account-menu-panel {
    position: absolute;
    z-index: 100;

    top: calc(100% + 0.55rem);
    right: 0;

    width: 235px;

    padding: 0.5rem;

    border-radius: 15px;

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    background:
        rgba(16, 21, 29, 0.98);

    box-shadow:
        0 20px 55px
        rgba(0, 0, 0, 0.48);

    backdrop-filter: blur(20px);
}

.account-menu-heading {
    display: grid;
    gap: 0.05rem;

    padding: 0.65rem 0.7rem 0.7rem;
}

.account-menu-heading strong {
    color: #fff;
}

.account-menu-heading span {
    color: var(--topq-muted);
    font-size: 0.72rem;
}

.account-menu-item {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 0.62rem 0.7rem;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: #e9edf3;

    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;

    text-align: left;
    text-decoration: none;

    cursor: pointer;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
    background:
        rgba(255, 255, 255, 0.075);

    transform: none;
    box-shadow: none;
}

.account-menu-separator {
    height: 1px;
    margin: 0.4rem 0.35rem;

    background:
        rgba(255, 255, 255, 0.08);
}

.account-menu-logout {
    color: #ff8b8b;
}


/* =========================================================
   DRAWER
   ========================================================= */

.main-drawer {
    margin-top: 0.8rem;

    padding: 0.9rem;

    border-radius: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    background:
        rgba(9, 13, 19, 0.92);

    box-shadow:
        0 16px 38px
        rgba(0, 0, 0, 0.24);
}

.main-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 0.6rem;
}

.main-drawer-header h3 {
    margin: 0;
}

.drawer-close-button {
    width: 2.1rem;
    height: 2.1rem;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--topq-border);
    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.055);

    color: #fff;

    font-size: 1.25rem;
    line-height: 1;

    cursor: pointer;
}

.drawer-close-button:hover {
    background:
        rgba(255, 255, 255, 0.11);
}

.main-drawer .player-stats-panel,
.main-drawer .deck-ranking-panel,
.main-drawer .saved-games-panel {
    margin-top: 0;
}

.main-drawer .deck-ranking-panel {
    margin-top: 0.7rem;
}


/* Decks jetzt früher und prominenter */

.start-panel > .deck-list {
    margin-top: 0.75rem;
}


/* Mobile */

@media (max-width: 760px) {

    .main-toolbar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .main-mode-switch {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .main-mode-switch button {
        width: 100%;
    }

    .account-menu-panel {
        position: fixed;
        top: auto;
        right: 0.6rem;
        bottom: 0.6rem;
        left: 0.6rem;

        width: auto;
    }
}
/* =========================================================
   SPIELANSICHT – KOMPAKTER & SYMMETRISCHER
   ========================================================= */

/* Header im laufenden Spiel deutlich kleiner */
body:has(#game-area:not(.is-hidden)) .hero-banner {
    height: 125px;

    background:
        linear-gradient(
            to top,
            rgba(7, 9, 13, 0.28),
            rgba(7, 9, 13, 0.02) 65%
        ),
        url("assets/header/topq-header.jpg")
        center 47% / cover no-repeat;
}

body:has(#game-area:not(.is-hidden)) .hero-panel {
    padding: 0.55rem;
}

body:has(#game-area:not(.is-hidden)) .game-layout {
    margin-top: 0.65rem;
}


/* ---------------------------------------------------------
   SPIELLAYOUT
   --------------------------------------------------------- */

.game-layout {
    grid-template-columns:
        205px
        minmax(0, 1fr)
        230px;

    gap: 0.8rem;
}

.table-layout {
    grid-template-columns:
        minmax(0, 1fr)
        78px
        minmax(0, 1fr);

    gap: 0.7rem;

    align-items: start;
}


/* ---------------------------------------------------------
   LINKES MENÜ KOMPAKTER
   --------------------------------------------------------- */

.game-sidebar {
    padding: 0.8rem;
    gap: 0.6rem;
}

.game-sidebar-header {
    padding-bottom: 0.15rem;
}

.game-deck-title {
    font-size: 0.9rem;
}

.game-deck-description {
    font-size: 0.7rem;
    line-height: 1.25;
}

.game-actions {
    gap: 0.35rem;
}

.game-actions button {
    min-height: 2.2rem;
    padding: 0.45rem 0.65rem;
}

.game-account-block .user-pill {
    min-height: 2.1rem;
}


/* Score kompakter */

.game-scoreboard {
    gap: 0.3rem;
}

.game-scoreboard .score-card {
    padding: 0.45rem 0.6rem;
    border-radius: 12px;
}

.game-scoreboard .score-value {
    font-size: 1.2rem;
}


/* ---------------------------------------------------------
   SPIELKARTEN
   --------------------------------------------------------- */

.play-card {
    padding: 0.75rem;

    border-radius: 19px;

    min-height: 0;

    align-self: start;
}

.player-card,
.cpu-card {
    height: auto;
}


/* Kartenüberschrift */

.card-topline {
    margin-bottom: 0.35rem;
}

.card-owner,
.card-archetype {
    font-size: 0.64rem;
}


/* Bild etwas kompakter */

.card-visual {
    margin-bottom: 0.55rem;
    border-radius: 13px;
    min-height: 0;
}

.card-image {
    aspect-ratio: 16 / 9;
}


/* Fahrzeugname */

.car-name {
    margin-bottom: 0.55rem;

    font-size:
        clamp(
            1.05rem,
            1.45vw,
            1.35rem
        );

    line-height: 1.1;
}


/* ---------------------------------------------------------
   KATEGORIEN
   --------------------------------------------------------- */

.stats-list {
    gap: 0.34rem;
}

.stat-button,
.stat-display {
    padding: 0.48rem 0.62rem;
    border-radius: 11px;
}


/* Werte besser lesbar */

.stat-name {
    color: #e7ebf1;
    font-size: 0.78rem;
}

.stat-value {
    color: #ffffff;
    font-size: 0.9rem;
}

.stat-hint {
    color: #7f8998;
    font-size: 0.66rem;
}


/*
 * Verdeckte CPU-Werte sollen dunkel bleiben,
 * Spielerwerte aber nicht versehentlich ebenfalls.
 */

.player-card .stat-button,
.player-card .stat-display {
    opacity: 1;
    color: var(--topq-text);
}

.player-card .stat-name {
    color: #e9edf3;
}

.player-card .stat-value {
    color: #fff;
}


/* ---------------------------------------------------------
   VS-BEREICH
   --------------------------------------------------------- */

.versus-column {
    gap: 0.32rem;
}

.round-pill-center {
    width: 92px;
    padding: 0.42rem;
    border-radius: 14px;
}

.round-pill-center span {
    font-size: 0.62rem;
}

.round-pill-center strong {
    font-size: 1.1rem;
}

.category-pill {
    min-height: 56px;

    padding: 0.5rem;

    border-radius: 14px;

    font-size: 0.72rem;
}

.versus-mark {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    font-size: 1rem;
    font-weight: 900;
}


/* =========================================================
   SPIELVERLAUF
   ========================================================= */

.side-log-panel {
    padding: 0.8rem;

    border-radius: 18px;

    max-height:
        calc(100vh - 180px);

    overflow: hidden;
}

.log-header {
    margin-bottom: 0.55rem;
}

.log-header h3 {
    margin: 0;

    font-size: 0.95rem;
}

.log-header p {
    margin: 0.15rem 0 0;

    color: var(--topq-muted);

    font-size: 0.68rem;
}


/* Liste scrollbar */

.history-list {
    margin: 0;
    padding: 0;

    list-style: none;

    display: grid;
    gap: 0.35rem;

    max-height:
        calc(100vh - 255px);

    overflow-y: auto;

    padding-right: 0.2rem;
}


/* Ereignisse */

.history-list li {
    margin: 0;

    padding: 0.52rem 0.6rem;

    border-radius: 10px;

    border:
        1px solid
        rgba(255, 255, 255, 0.065);

    background:
        rgba(255, 255, 255, 0.035);

    color: #cbd2dc;

    font-size: 0.72rem;
    line-height: 1.35;

    box-shadow: none;
}


/* Falls alte Klassen Hintergrundfarben setzen */
.history-list li[class] {
    color: #d7dde6;
}


/* Gewinner-Ereignisse */

.history-list li.is-win,
.history-list li.win,
.history-list li.player-win {
    background:
        rgba(66, 212, 135, 0.08);

    border-color:
        rgba(66, 212, 135, 0.18);
}


/* Niederlagen */

.history-list li.is-loss,
.history-list li.loss,
.history-list li.cpu-win {
    background:
        rgba(255, 98, 98, 0.075);

    border-color:
        rgba(255, 98, 98, 0.17);
}


/* ---------------------------------------------------------
   MOBILE / KLEINERE DESKTOPS
   --------------------------------------------------------- */

@media (max-width: 1250px) {

    .game-layout {
        grid-template-columns:
            195px
            minmax(0, 1fr)
            220px;
    }

    .table-layout {
        grid-template-columns:
            minmax(0, 1fr)
            76px
            minmax(0, 1fr);
    }
}


@media (max-width: 1050px) {

    .game-layout {
        grid-template-columns: 1fr;
    }

    .side-log-panel {
        max-height: 300px;
    }

    .history-list {
        max-height: 220px;
    }
}


@media (max-width: 760px) {

    body:has(#game-area:not(.is-hidden)) .hero-banner {
        height: 105px;
    }

    .table-layout {
        grid-template-columns: 1fr;
    }

    .versus-column {
        grid-template-columns:
            1fr auto 1fr;

        width: 100%;
    }

    .versus-mark {
        width: 44px;
        height: 44px;
    }
}
/* Spielverlauf vollständig ins Dark Theme ziehen */

.history-list li,
.history-list li[class] {
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    color: #d8dee8 !important;
}

.history-list li * {
    color: inherit;
}

.history-list li:first-child {
    background: rgba(255, 122, 26, 0.09) !important;
    border-color: rgba(255, 122, 26, 0.22) !important;
}

.history-list li span {
    color: #8f99a8 !important;
}
body:has(#game-area:not(.is-hidden)) .hero-banner {
    height: 120px;
    background:
        #0b0f15
        url("assets/header/topq-header.jpg")
        center center / contain no-repeat;
}

.table-layout {
    grid-template-columns:
        minmax(0, 1fr)
        68px
        minmax(0, 1fr);
}

.round-pill-center {
    width: 68px;
}

.versus-mark {
    width: 46px;
    height: 46px;
}
/* =========================================================
   HEADER – echtes Bild ohne Beschneiden
   ========================================================= */

.hero-banner {
    width: 100%;
    height: auto !important;

    overflow: hidden;

    border-radius: 18px;

    background: #080b10 !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.25);
}

.hero-banner-image {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}


/* Im Spiel ebenfalls NICHT abschneiden */
body:has(#game-area:not(.is-hidden)) .hero-banner {
    height: auto !important;
    background: #080b10 !important;
}

body:has(#game-area:not(.is-hidden)) .hero-banner-image {
    width: 100%;
    height: auto;
}


/* Mobile */
@media (max-width: 760px) {

    .hero-banner,
    body:has(#game-area:not(.is-hidden)) .hero-banner {
        height: auto !important;
    }

    .hero-banner-image {
        width: 100%;
        height: auto;
    }
}
