.deg-portal-ticker {
    display: none !important;
}

/* Kalendri sees avaneva Drift Mastersi arhiivi hele teema. */
body.deg-theme-light .deg-season-grid article.is-expanded {
    background: #fff;
    border-color: #111827;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .10);
}
body.deg-theme-light .deg-season-grid article.is-expanded .deg-season-round-summary,
body.deg-theme-light .deg-calendar-inline-head {
    border-color: #d7dce2;
}
body.deg-theme-light .deg-calendar-inline-archive {
    background: #f7f8f5;
}
body.deg-theme-light .deg-calendar-inline-panel > h3 {
    color: #111827;
}
body.deg-theme-light .deg-calendar-inline-archive span {
    color: #374151;
}
body.deg-theme-light .deg-calendar-inline-close {
    border-color: #c7cdd5;
    color: #374151;
}
body.deg-theme-light .deg-calendar-results a.is-active {
    border-color: #111827;
    background: #111827;
    color: #fff !important;
}
body.deg-theme-light .deg-local-live-quals {
    background: #eef1eb;
    border-color: #d7dce2;
}
body.deg-theme-light .deg-local-live-tabs button {
    border-color: #cbd1d8;
    background: #fff;
    color: #111827;
}
body.deg-theme-light .deg-local-live-tabs button.is-active {
    border-color: #111827;
    background: #111827;
    color: #fff;
}
body.deg-theme-light .deg-local-live-tabs button.is-active small {
    color: #d1d5db;
}
body.deg-theme-light .deg-local-live-panel {
    border-color: #d7dce2;
    background: #fff;
}
body.deg-theme-light .deg-local-live-event {
    border-color: #d7dce2;
}
body.deg-theme-light .deg-local-live-event strong {
    color: #111827;
}

.deg-display-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}

.deg-display-controls button,
.deg-language-switcher a {
    min-width: 40px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--deg-line);
    border-radius: 999px;
    background: transparent;
    color: var(--deg-text);
    font: 900 11px/1 inherit;
    cursor: pointer;
}

.deg-display-controls button:hover,
.deg-language-switcher a:hover,
.deg-language-switcher a.is-active {
    border-color: var(--deg-lime);
    color: var(--deg-lime);
}

.deg-language-switcher {
    display: flex;
    align-items: center;
    gap: 3px;
}

.deg-language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 0 7px;
    text-decoration: none;
}

.deg-language-switcher a > svg {
    display: block;
    width: 23px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.24);
}

.deg-language-switcher a.is-active {
    background: rgba(199, 255, 24, .12);
}

.deg-featured-event {
    min-height: 720px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    align-items: center;
    gap: clamp(45px, 8vw, 130px);
    background:
        radial-gradient(circle at 82% 36%, rgba(198, 255, 53, .17), transparent 25%),
        radial-gradient(circle at 15% 85%, rgba(139, 92, 246, .22), transparent 28%),
        #09090b !important;
}

.deg-featured-copy h1 {
    margin-bottom: 24px !important;
}

.deg-featured-event.is-long-title .deg-featured-copy h1 {
    font-size: clamp(1.6rem, 3.25vw, 3.4rem);
    line-height: .88;
}

.deg-featured-copy p {
    margin: 5px 0;
}

.deg-featured-location {
    color: #f5f5f4 !important;
    font-weight: 850;
}

.deg-featured-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 27px 0;
}

.deg-featured-classes b {
    padding: 9px 12px;
    border: 1px solid rgba(198, 255, 53, .45);
    border-radius: 999px;
    color: var(--deg-lime);
    font-size: 11px;
    letter-spacing: .07em;
}

.deg-featured-cta {
    display: inline-flex;
    margin-top: 7px;
    padding: 16px 22px;
    border-radius: 999px;
    background: var(--deg-lime);
    color: #09090b !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 950;
}

.deg-featured-source {
    display: inline-flex;
    margin: 12px;
    color: #a1a1aa !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 850;
}

.deg-featured-timer {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 28px;
    background: rgba(18, 18, 22, .76);
    backdrop-filter: blur(14px);
}

.deg-timer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.deg-timer-grid div {
    min-height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border-right: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.deg-timer-grid strong {
    color: #f5f5f4;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -.06em;
}

.deg-timer-grid small {
    margin-top: 10px;
    color: #8e96a3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.deg-app > .deg-pred-global {
    padding: 70px max(24px, 6vw);
    background: #0c1016;
    border-block: 1px solid var(--deg-line);
}

.deg-official-data {
    margin: 40px max(24px, 6vw);
    border: 1px solid var(--deg-line);
    border-radius: 24px;
    background: var(--deg-panel);
    overflow: hidden;
}

.deg-official-data > summary {
    padding: 22px 26px;
    color: #f5f5f4;
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
}

.deg-official-data > summary::after {
    content: '+';
    float: right;
    color: var(--deg-lime);
    font-size: 20px;
    line-height: .7;
}

.deg-official-data[open] > summary::after {
    content: '–';
}

.deg-official-data .deg-standings,
.deg-official-data .deg-nations {
    padding-top: 45px;
}

body.deg-theme-light {
    --deg-bg: #f1f3ee;
    --deg-panel: #ffffff;
    --deg-text: #141618;
    --deg-muted: #626971;
    --deg-line: rgba(20, 22, 24, .14);
    background: var(--deg-bg) !important;
    color: var(--deg-text) !important;
}

body.deg-theme-light .deg-portal-header {
    background: rgba(255, 255, 255, .88);
}

body.deg-theme-light .deg-portal-logo,
body.deg-theme-light .deg-portal-header nav a,
body.deg-theme-light .deg-display-controls button,
body.deg-theme-light .deg-mobile-toggle {
    color: #17191b !important;
}

body.deg-theme-light .deg-hub,
body.deg-theme-light .deg-app,
body.deg-theme-light .deg-game,
body.deg-theme-light .deg-hero,
body.deg-theme-light .deg-bracket,
body.deg-theme-light .deg-season,
body.deg-theme-light .deg-standings,
body.deg-theme-light .deg-nations,
body.deg-theme-light .deg-live-quali,
body.deg-theme-light .deg-event-archives,
body.deg-theme-light .deg-round-history,
body.deg-theme-light .deg-pred-global,
body.deg-theme-light .deg-fl,
body.deg-theme-light .deg-fl-teaser,
body.deg-theme-light .deg-info-page {
    background: var(--deg-bg) !important;
    color: var(--deg-text) !important;
}

body.deg-theme-light .deg-featured-event {
    background:
        radial-gradient(circle at 82% 36%, rgba(151, 205, 0, .20), transparent 26%),
        radial-gradient(circle at 15% 85%, rgba(139, 92, 246, .13), transparent 29%),
        #f1f3ee !important;
}

body.deg-theme-light .deg-featured-location,
body.deg-theme-light .deg-featured-copy h1,
body.deg-theme-light .deg-timer-grid strong,
body.deg-theme-light .deg-app h1,
body.deg-theme-light .deg-app h2,
body.deg-theme-light .deg-hub h2,
body.deg-theme-light .deg-official-data > summary,
body.deg-theme-light .deg-fl-card h3,
body.deg-theme-light .deg-round-result h3 {
    color: #141618 !important;
}

body.deg-theme-light .deg-featured-timer,
body.deg-theme-light .deg-league-card,
body.deg-theme-light .deg-event-choice,
body.deg-theme-light .deg-pick,
body.deg-theme-light .deg-my-prediction,
body.deg-theme-light .deg-global-table,
body.deg-theme-light .deg-round-card,
body.deg-theme-light .deg-round-result,
body.deg-theme-light .deg-event-archive,
body.deg-theme-light .deg-official-data,
body.deg-theme-light .deg-season-grid article,
body.deg-theme-light .deg-fl-card,
body.deg-theme-light .deg-fl-create-form,
body.deg-theme-light .deg-fl-me-vs,
body.deg-theme-light .deg-info-page article {
    background: #fff !important;
    border-color: var(--deg-line) !important;
}

body.deg-theme-light .deg-timer-grid,
body.deg-theme-light .deg-timer-grid div,
body.deg-theme-light .deg-global-head,
body.deg-theme-light .deg-global-player > summary,
body.deg-theme-light .deg-round-card > summary,
body.deg-theme-light .deg-round-head,
body.deg-theme-light .deg-round-row,
body.deg-theme-light .deg-pred-tr,
body.deg-theme-light .deg-season-points-row {
    border-color: var(--deg-line) !important;
}

body.deg-theme-light .deg-global-player > summary,
body.deg-theme-light .deg-round-card > summary,
body.deg-theme-light .deg-round-row,
body.deg-theme-light .deg-season-grid article,
body.deg-theme-light .deg-league-card,
body.deg-theme-light .deg-local-round-table .deg-tr,
body.deg-theme-light .deg-fl-table td,
body.deg-theme-light .deg-fl-public-name,
body.deg-theme-light .deg-fl-me-vs span,
body.deg-theme-light .deg-fl-teaser p {
    color: #17191b !important;
}

body.deg-theme-light .deg-local-round-table .deg-tr {
    border-color: var(--deg-line) !important;
}

body.deg-theme-light .deg-local-round-table .deg-local-round-driver > summary:hover,
body.deg-theme-light .deg-local-round-table .deg-local-round-driver[open] > summary {
    background: #eef1e9 !important;
}

body.deg-theme-light .deg-pick b,
body.deg-theme-light .deg-my-prediction-list b,
body.deg-theme-light .deg-event-result li,
body.deg-theme-light .deg-bracket .deg-driver,
body.deg-theme-light .deg-standings strong,
body.deg-theme-light .deg-nations b {
    color: #17191b !important;
}

/* Light theme accent: keep neon as a highlight, never as low-contrast body text. */
body.deg-theme-light .deg-league-card small {
    color: #3d5700 !important;
}

body.deg-theme-light .deg-local-calendar-card-main,
body.deg-theme-light .deg-local-calendar-card-main strong {
    color: #17191b !important;
}

body.deg-theme-light .deg-league-card b {
    align-self: flex-start;
    width: max-content;
    max-width: 100%;
    margin-top: auto;
    padding: 7px 10px 6px;
    color: #101315 !important;
    background: linear-gradient(180deg, rgba(199, 255, 24, .18), rgba(199, 255, 24, .58));
    border-bottom: 1px solid rgba(83, 116, 0, .34);
    box-shadow: 4px 4px 0 rgba(151, 205, 0, .13);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .48);
}

body.deg-theme-light .deg-league-card:hover b,
body.deg-theme-light .deg-league-card:focus-visible b,
body.deg-theme-light .deg-league-card.is-active b {
    background: linear-gradient(180deg, rgba(199, 255, 24, .32), rgba(199, 255, 24, .76));
    box-shadow: 4px 4px 0 rgba(151, 205, 0, .22);
}

body.deg-theme-light .deg-league-card.is-finished > b {
    color: #34383b !important;
    background: #ecefe8;
    border-bottom-color: rgba(20, 22, 24, .15);
    box-shadow: none;
}

/* Complete light-theme contrast pass: neon is decoration, dark ink carries text. */
body.deg-theme-light {
    --deg-light-accent-ink: #101315;
    --deg-light-accent-deep: #3d5700;
    --deg-light-accent-wash: rgba(199, 255, 24, .34);
    --deg-light-accent-shadow: rgba(151, 205, 0, .22);
}

body.deg-theme-light .deg-portal-logo span,
body.deg-theme-light .deg-kicker,
body.deg-theme-light .deg-hub-head .deg-kicker,
body.deg-theme-light .deg-app h1 em,
body.deg-theme-light .deg-hub-head h1 em,
body.deg-theme-light .deg-event b.deg-prize,
body.deg-theme-light .deg-state:not(.is-locked),
body.deg-theme-light .deg-pick i,
body.deg-theme-light .deg-match span.win,
body.deg-theme-light .deg-bside.win,
body.deg-theme-light .deg-driver-list span,
body.deg-theme-light .deg-season-grid .live i,
body.deg-theme-light .deg-source,
body.deg-theme-light .deg-tr b,
body.deg-theme-light .deg-nations-grid article.top > span,
body.deg-theme-light .deg-nations-grid article.top > strong,
body.deg-theme-light .deg-er-p1 .deg-er-rank,
body.deg-theme-light .deg-pred-tr b,
body.deg-theme-light .deg-status-alive,
body.deg-theme-light .deg-pred-pick b,
body.deg-theme-light .deg-round-result header small,
body.deg-theme-light .deg-round-place-1 strong,
body.deg-theme-light .deg-countdown strong,
body.deg-theme-light .deg-archive-qrow b,
body.deg-theme-light .deg-season-points-row b,
body.deg-theme-light .deg-driver-event-row small,
body.deg-theme-light .deg-driver-event-row b,
body.deg-theme-light .deg-global-player > summary > b,
body.deg-theme-light .deg-global-detail article > strong,
body.deg-theme-light .deg-round-card > summary > b,
body.deg-theme-light .deg-round-row > b,
body.deg-theme-light .deg-fl-notice.is-success,
body.deg-theme-light .deg-fl-table td:last-child,
body.deg-theme-light .deg-fl-table td.deg-fl-points,
body.deg-theme-light .deg-fl-pred-total,
body.deg-theme-light .deg-user-name,
body.deg-theme-light .deg-info-page h2 {
    color: var(--deg-light-accent-ink) !important;
    text-shadow: 2px 2px 0 var(--deg-light-accent-shadow) !important;
}

body.deg-theme-light .deg-app h1 em,
body.deg-theme-light .deg-hub-head h1 em {
    -webkit-text-stroke: 0 !important;
    font-style: inherit;
}

body.deg-theme-light .deg-fl-table tr.is-me td {
    color: var(--deg-light-accent-ink) !important;
    background: rgba(199, 255, 24, .14);
    text-shadow: 1px 1px 0 var(--deg-light-accent-shadow);
}

body.deg-theme-light .deg-pick-chip.deg-pick-full,
body.deg-theme-light .deg-featured-classes b {
    color: var(--deg-light-accent-ink) !important;
    background: var(--deg-light-accent-wash);
    border-color: rgba(83, 116, 0, .34) !important;
    box-shadow: 3px 3px 0 rgba(151, 205, 0, .11);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

body.deg-theme-light .deg-calendar-results a,
body.deg-theme-light .deg-season-stream-link,
body.deg-theme-light .deg-event-choice-stream,
body.deg-theme-light .deg-fl-predictions > summary {
    color: var(--deg-light-accent-ink) !important;
    background: linear-gradient(180deg, rgba(199, 255, 24, .14), rgba(199, 255, 24, .48));
    border-color: rgba(83, 116, 0, .34) !important;
    box-shadow: 3px 3px 0 rgba(151, 205, 0, .11);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

body.deg-theme-light .deg-fl-predictions > summary {
    display: inline-block;
    padding: 4px 7px;
}

body.deg-theme-light .deg-calendar-results a:hover,
body.deg-theme-light .deg-calendar-results a:focus-visible,
body.deg-theme-light .deg-season-stream-link:hover,
body.deg-theme-light .deg-event-choice-stream:hover,
body.deg-theme-light .deg-fl-predictions > summary:hover,
body.deg-theme-light .deg-fl-predictions > summary:focus-visible {
    background: rgba(199, 255, 24, .64);
}

body.deg-theme-light .deg-event-archive details[open] > summary,
body.deg-theme-light .deg-championship-standings details[open] > summary,
body.deg-theme-light .deg-bacc-sec[open] summary {
    color: var(--deg-light-accent-ink) !important;
    text-shadow: 2px 2px 0 var(--deg-light-accent-shadow);
}

body.deg-theme-light .deg-event-archive summary::after,
body.deg-theme-light .deg-championship-standings details > summary::after,
body.deg-theme-light .deg-championship-standings .deg-season-driver > summary::after,
body.deg-theme-light .deg-official-data > summary::after {
    color: var(--deg-light-accent-deep) !important;
    text-shadow: none !important;
}

body.deg-theme-light .deg-fl-share-input {
    background: #fff;
    border-color: var(--deg-line);
    color: var(--deg-light-accent-ink);
    text-shadow: none;
}

    body.deg-theme-light .deg-display-controls button:hover,
    body.deg-theme-light .deg-language-switcher a:hover,
    body.deg-theme-light .deg-language-switcher a.is-active,
body.deg-theme-light .deg-display-controls button:focus-visible,
body.deg-theme-light .deg-portal-header nav a:hover,
body.deg-theme-light .deg-portal-header nav a:focus-visible {
    color: var(--deg-light-accent-ink) !important;
    border-color: rgba(83, 116, 0, .34) !important;
    background: rgba(199, 255, 24, .28);
    text-shadow: 1px 1px 0 var(--deg-light-accent-shadow);
}

/* Inner panels also follow the light surface, so dark accent text stays readable. */
body.deg-theme-light .deg-bmatch,
body.deg-theme-light .deg-bacc-sec,
body.deg-theme-light .deg-event-result li,
body.deg-theme-light .deg-streamer,
body.deg-theme-light .deg-pred-detail,
body.deg-theme-light .deg-pick-chip,
body.deg-theme-light .deg-driver-event-points,
body.deg-theme-light .deg-driver-event-row,
body.deg-theme-light .deg-fl-notice,
body.deg-theme-light .deg-fl-public,
body.deg-theme-light .deg-fl-pred-list,
body.deg-theme-light .deg-fl-pred-item,
body.deg-theme-light .deg-modal-card {
    background: #fff !important;
    border-color: var(--deg-line) !important;
    color: var(--deg-text) !important;
}

body.deg-theme-light .deg-pred-row summary:hover,
body.deg-theme-light .deg-pred-row[open] summary,
body.deg-theme-light .deg-bacc-sec summary:hover {
    background: #eef1e9 !important;
}

body.deg-theme-light .deg-bside,
body.deg-theme-light .deg-bacc-sec summary,
body.deg-theme-light .deg-streamer,
body.deg-theme-light .deg-round-place,
body.deg-theme-light .deg-event-archive > h3,
body.deg-theme-light .deg-event-archive summary,
body.deg-theme-light .deg-championship-standings details > summary,
body.deg-theme-light .deg-complete-results h4,
body.deg-theme-light .deg-complete-result-row > span:first-child strong,
body.deg-theme-light .deg-fl-public h3,
body.deg-theme-light .deg-fl-create-form h3,
body.deg-theme-light .deg-fl-table td.deg-fl-pred-cell,
body.deg-theme-light .deg-fl-pred-head strong {
    color: var(--deg-text) !important;
}

body.deg-theme-light .deg-fl-invite-form input[type=email],
body.deg-theme-light .deg-fl-create-form input[type=text],
body.deg-theme-light .deg-fl-create-form select,
body.deg-theme-light .deg-modal input,
body.deg-theme-light .deg-driver-list button {
    background: #fff !important;
    border-color: var(--deg-line) !important;
    color: var(--deg-text) !important;
}

body.deg-theme-light .deg-close {
    color: var(--deg-text) !important;
}

body.deg-theme-light .deg-fl-pred-list {
    box-shadow: 0 18px 45px rgba(20, 22, 24, .18);
}

/* 1.8.82: "SULGE ×" nupu päis (.deg-fl-pred-list-head) pärib muidu tumeda
   #090c11 tausta -- vt assets/game.css -- mis heleda teemaga valge kaardi
   sees kohutavalt välja näeks. */
body.deg-theme-light .deg-fl-pred-list-head {
    background: #fff !important;
    border-color: var(--deg-line) !important;
}
body.deg-theme-light .deg-fl-pred-close {
    border-color: #c7cdd5;
    color: #374151;
}

body.deg-theme-light .deg-global-player > summary:hover,
body.deg-theme-light .deg-global-player[open] > summary,
body.deg-theme-light .deg-event-archive details[open] > summary,
body.deg-theme-light .deg-championship-standings details[open] > summary {
    background: #eef1e9 !important;
}

body.deg-theme-light .deg-portal-footer {
    color: #17191b;
}

@media (max-width: 920px) {
    .deg-featured-event {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 125px !important;
        padding-bottom: 65px !important;
    }
    .deg-featured-timer {
        width: 100%;
        max-width: 620px;
    }
    .deg-portal-header nav {
        order: 4;
    }
}

@media (max-width: 800px) {
    .deg-portal-wrap {
        gap: 7px !important;
    }
    .deg-portal-logo small {
        display: none;
    }
    .deg-portal-logo {
        order: 1;
        flex: 0 1 auto;
        font-size: 1rem;
    }
    .deg-display-controls {
        order: initial;
        position: static;
        width: 100%;
        margin-left: 0;
        gap: 4px;
        flex: 0 0 auto;
    }
    .deg-display-controls button,
    .deg-language-switcher a {
        min-width: 34px;
        height: 34px;
        padding: 0 7px;
    }
    .deg-mobile-toggle {
        display: block !important;
        order: 3;
        position: absolute;
        right: 0;
        margin-left: 0 !important;
        width: 32px;
        padding: 0;
        flex: 0 0 32px;
        color: var(--deg-text) !important;
        z-index: 2;
    }
    .deg-portal-header nav.open {
        order: 4;
        top: 66px;
    }
}

@media (max-width: 650px) {
    .deg-featured-event {
        min-height: 0 !important;
        padding: 115px 16px 48px !important;
    }
    .deg-featured-copy h1 {
        font-size: 29px !important;
    }
    .deg-featured-cta,
    .deg-featured-source {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    .deg-featured-timer {
        padding: 17px;
        border-radius: 20px;
    }
    .deg-timer-grid div {
        min-height: 95px;
        padding: 13px;
    }
    .deg-timer-grid strong {
        font-size: 38px;
    }
    .deg-app > .deg-pred-global {
        padding: 42px 16px;
    }
    .deg-official-data {
        margin: 28px 16px;
        border-radius: 18px;
    }
}
