:root {
    --black: #080808;
    --panel: #151515;
    --panel-soft: #1f1f1f;
    --gold: #d5a93b;
    --gold-soft: #f4d77b;
    --white: #ffffff;
    --muted: #b8b8b8;
    --danger: #ff6b6b;
    --success: #75d99c;
    --radius: 8px;
}

:root[data-theme="green"] {
    --gold: #42c57a;
    --gold-soft: #9df0bd;
}

:root[data-theme="blue"] {
    --gold: #5da8ff;
    --gold-soft: #a8d1ff;
}

:root[data-theme="light"] {
    --black: #f4f2ec;
    --panel: #ffffff;
    --panel-soft: #f0ede5;
    --white: #111111;
    --muted: #5d5d5d;
    --gold: #c79a24;
    --gold-soft: #8a650c;
}

* { box-sizing: border-box; }

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--black);
    color: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(8, 8, 8, .92);
    border-bottom: 1px solid rgba(213, 169, 59, .22);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.topbar-logout {
    margin: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--gold);
}

.auth-intro {
    display: grid;
    justify-items: center;
    text-align: center;
}

.auth-logo {
    width: min(200px, 65vw);
    height: auto;
    margin: 0 auto 18px;
    object-fit: contain;
}

.user-name-with-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    vertical-align: middle;
}

.ranking-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    line-height: 1;
    font-size: 18px;
}

.supporter-badge {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    object-fit: contain;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.tabs a {
    padding: 12px 8px;
    text-align: center;
    color: var(--muted);
    background: var(--black);
    font-size: 13px;
}

.tabs a:hover { color: var(--gold-soft); }

.bottom-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    border-top: 1px solid rgba(213, 169, 59, .22);
    background: rgba(255,255,255,.08);
}

.bottom-tabs a,
.bottom-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border: 0;
    border-radius: 0;
    padding: 8px 4px;
    color: var(--muted);
    background: var(--black);
    font-size: 12px;
    font-weight: 800;
}

.bottom-tabs a:hover,
.bottom-tabs button:hover {
    color: var(--gold-soft);
}

.bottom-tabs a.active {
    color: var(--gold-soft);
    box-shadow: inset 0 3px 0 var(--gold);
}

.subtabs {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
    overflow-x: auto;
}

.subtabs a {
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    padding: 10px 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.subtabs a.active {
    color: var(--black);
    border-color: var(--gold);
    background: var(--gold);
}

.shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 22px 16px 96px;
}

.hero, .auth-panel {
    position: relative;
    display: grid;
    gap: 22px;
    align-items: center;
    min-height: 50vh;
    padding: 28px 0;
}

.hero {
    min-height: 42vh;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    width: 100%;
}

.dashboard-hero-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.dashboard-user-line {
    margin: 0;
    color: var(--gold-soft);
    font-size: clamp(20px, 5vw, 30px);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.hero-subtitle {
    margin: 0;
    color: var(--gold-soft);
    font-size: 18px;
    font-weight: 900;
}

.hero .hero-edition {
    font-size: clamp(38px, 12vw, 84px);
    line-height: .92;
}

.dashboard-edition-title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.dashboard-supporter-badge,
.dashboard-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.dashboard-supporter-badge .supporter-badge,
.dashboard-hero-badge .supporter-badge {
    width: clamp(52px, 12vw, 88px);
    height: clamp(52px, 12vw, 88px);
}

.hero .welcome-title {
    margin: 0;
    font-size: clamp(24px, 5vw, 38px);
}

.dashboard-edition-picker {
    max-width: 220px;
}

.dashboard-edition-picker label {
    gap: 0;
}

.dashboard-edition-picker select {
    min-height: 42px;
    border-color: rgba(255,255,255,.14);
    background: rgba(0,0,0,.8);
    font-size: 16px;
    font-weight: 700;
}

.hero h1, .auth-panel h1, .page-title h1, h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 7vw, 58px);
    line-height: 1;
}

h2 { margin: 0 0 12px; font-size: 20px; }
h3 { margin: 0 0 12px; font-size: 16px; }
p { color: var(--muted); line-height: 1.55; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.card {
    border: 1px solid rgba(213, 169, 59, .24);
    border-radius: var(--radius);
    padding: 18px;
    background: var(--panel);
    box-shadow: 0 18px 60px rgba(0,0,0,.24);
}

.form {
    display: grid;
    gap: 14px;
}

.choice-list {
    display: grid;
    gap: 10px;
}

.choice-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(213,169,59,.24);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
}

.choice-option input {
    width: auto;
}

.choice-option span {
    font-weight: 800;
}

.form-hint {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.group-rename-form {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.phone-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.login-auth-panel {
    min-height: auto;
    padding-block: 14px;
}

.login-form {
    gap: 12px;
}

.phone-field-row.login-phone-field-row {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: end;
    gap: 10px;
}

.country-compact-field {
    min-width: 0;
}

.country-compact-select {
    min-width: 0;
    padding-right: 28px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
    text-overflow: clip;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
}

input, select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 10px 12px;
    color: var(--white);
    background: var(--panel-soft);
}

.pin-password {
    -webkit-text-security: disc;
}

.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(213,169,59,.45);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--white);
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    color: var(--black);
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}

.button.success {
    border-color: var(--success);
    color: var(--black);
    background: linear-gradient(135deg, #16c767, #75d99c);
}

.button.danger {
    border-color: rgba(255, 107, 107, .75);
    color: #ffffff;
    background: rgba(255, 107, 107, .18);
}

.button.ghost { border-color: rgba(255,255,255,.16); }
.button:disabled { opacity: .45; cursor: not-allowed; }

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

.hero-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(520px, 100%);
}

.hero-primary-actions .button,
.hero-secondary-actions .button {
    width: 100%;
}

.hero-secondary-actions {
    width: min(520px, 100%);
}

.dashboard-primary-actions,
.dashboard-secondary-actions,
.dashboard-admin-actions {
    width: 100%;
    max-width: none;
}

.dashboard-primary-actions .button,
.dashboard-secondary-actions .button,
.dashboard-admin-actions .button {
    min-height: 48px;
    border-radius: 10px;
    font-size: 15px;
}

.dashboard-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-secondary-actions .button {
    border-color: rgba(255,255,255,.14);
    background: transparent;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.compact-title {
    margin-bottom: 0;
}

.narrow { max-width: 620px; margin: 0 auto; }
.code { color: var(--gold-soft); font-size: 24px; font-weight: 900; }

.edition-picker {
    max-width: 360px;
}

.section-block {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.groups-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.group-card {
    padding: 14px;
}

.active-filter {
    border-color: var(--gold-soft);
}

.group-title {
    display: block;
}

.mini-table {
    min-width: 0;
}

.mini-table th,
.mini-table td {
    padding: 9px 0;
}

.mini-table th:not(:first-child),
.mini-table td:not(:first-child) {
    padding-left: 10px;
}

.standings-grid {
    align-items: start;
}

.standings-table th,
.standings-table td {
    font-size: 13px;
}

.qualified-row {
    background: rgba(117, 217, 156, .12);
}

.team-link,
.match-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.link-button {
    min-height: auto;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
}

.link-button:disabled {
    cursor: default;
    opacity: 1;
}

.flag {
    display: inline-flex;
    min-width: 22px;
    justify-content: center;
}

.compact-button {
    min-height: 34px;
    padding: 6px 10px;
}

.selected-game-row {
    background: rgba(213, 169, 59, .09);
}

.prediction-row td {
    background: rgba(255,255,255,.035);
}

.live-matches-modal-panel {
    width: min(680px, 100%);
}

.live-match-count {
    margin: 4px 0 0;
    color: var(--gold-soft);
    font-size: 13px;
    font-weight: 800;
}

.live-matches-list {
    display: grid;
    gap: 12px;
}

.live-match-row {
    border: 1px solid rgba(213, 169, 59, .24);
    border-radius: var(--radius);
    padding: 14px;
    background: rgba(255,255,255,.04);
}

.live-match-header {
    margin: 0 0 8px !important;
}

.live-match-scoreline {
    margin: 0;
}

.live-match-scoreline strong {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.4;
}

.live-match-score {
    color: var(--gold-soft);
    font-size: 18px;
}

.live-match-prediction {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    color: var(--gold-soft);
}

.champion-modal.is-open {
    z-index: 120;
}

.champion-modal-panel {
    width: min(640px, 100%);
    text-align: center;
}

.champion-modal-panel .modal-header {
    text-align: left;
}

.champion-eyebrow {
    margin: 0 0 4px;
    color: var(--gold-soft);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.champion-showcase {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 10px 0 6px;
}

.champion-crest {
    display: grid;
    place-items: center;
    width: min(190px, 48vw);
    aspect-ratio: 1;
    border: 4px solid rgba(213, 169, 59, .62);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 0 0 8px rgba(255,255,255,.035);
    font-size: clamp(76px, 22vw, 132px);
    line-height: 1;
}

.champion-showcase strong {
    color: var(--gold-soft);
    font-size: clamp(26px, 7vw, 42px);
    line-height: 1.05;
}

.champion-showcase p {
    margin: 0;
    font-weight: 800;
}

.champion-podium {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 10px 0 6px;
}

.podium-place {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
}

.podium-place-first {
    max-width: 360px;
}

.podium-lower-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    width: min(460px, 100%);
}

.podium-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 10px;
    border: 1px solid rgba(213, 169, 59, .34);
    border-radius: 999px;
    background: rgba(213, 169, 59, .1);
    color: var(--gold-soft);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.podium-crest-first {
    width: min(190px, 48vw);
    font-size: clamp(76px, 22vw, 132px);
}

.podium-crest-small {
    width: min(116px, 30vw);
    border-width: 3px;
    box-shadow: inset 0 0 0 6px rgba(255,255,255,.035);
    font-size: clamp(48px, 14vw, 78px);
}

.podium-place strong {
    color: var(--gold-soft);
    line-height: 1.08;
}

.podium-place-first strong {
    font-size: clamp(26px, 7vw, 42px);
}

.podium-lower-row strong {
    font-size: clamp(17px, 4.5vw, 24px);
}

.podium-place p {
    margin: 0;
    font-weight: 800;
}

@media (max-width: 520px) {
    .podium-lower-row {
        gap: 12px;
    }
}

.modal-row {
    display: none;
}

.modal {
    display: none;
}

.modal.is-open {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    border: 5px solid rgba(213, 169, 59, .78);
    border-radius: var(--radius);
    padding: 18px;
    background: var(--panel);
    box-shadow: 0 24px 90px rgba(0,0,0,.55);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-header h2 {
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 18px;
    padding-top: 14px;
}

.modal-open {
    overflow: hidden;
}

.onboarding-step {
    min-height: 188px;
}

.onboarding-step h3 {
    color: var(--white);
    font-size: 26px;
}

.onboarding-step p {
    font-size: 16px;
}

.onboarding-modal .modal-panel {
    width: min(420px, 100%);
    justify-self: end;
    border: 3px solid rgba(244, 215, 123, .92);
    box-shadow:
        0 0 0 2px rgba(213, 169, 59, .42),
        0 24px 90px rgba(0,0,0,.55);
}

.onboarding-modal .modal-panel.onboarding-panel-top {
    align-self: start;
}

.onboarding-modal .modal-panel.onboarding-panel-bottom {
    align-self: end;
}

.onboarding-modal .modal-panel.onboarding-panel-center {
    align-self: center;
}

.onboarding-target {
    position: relative;
    z-index: 140;
    scroll-margin-top: 120px;
    box-shadow:
        0 0 0 4px rgba(213, 169, 59, .95),
        0 0 0 14px rgba(213, 169, 59, .18),
        0 0 36px rgba(213, 169, 59, .45);
    border-radius: calc(var(--radius) + 2px);
    transition: box-shadow .2s ease, transform .2s ease;
    animation: onboardingPulse 1.4s ease-in-out infinite;
}

.bottom-tabs.onboarding-target-context {
    z-index: 160;
}

.onboarding-target::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 2px dashed rgba(244, 215, 123, .95);
    border-radius: calc(var(--radius) + 8px);
    pointer-events: none;
}

@keyframes onboardingPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.015);
    }
}

.onboarding-footer {
    justify-content: space-between;
}

.onboarding-footer [data-onboarding-next],
.onboarding-footer [data-onboarding-finish] {
    margin-left: auto;
}

.score-rules {
    display: grid;
    gap: 10px;
}

.prediction-insights {
    display: grid;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 18px;
    padding-top: 14px;
}

.prediction-insights-summary {
    margin-bottom: 12px;
    color: var(--gold-soft);
    font-size: 15px;
    font-weight: 800;
}

.prediction-insights-list {
    display: grid;
    gap: 10px;
}

.prediction-insights-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(213,169,59,.22);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(255,255,255,.04);
}

.prediction-insights-list strong {
    color: var(--white);
    font-size: 18px;
}

.prediction-insights-list span {
    color: var(--muted);
    font-weight: 800;
}

.score-rules article {
    display: grid;
    grid-template-columns: minmax(92px, auto) 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(213,169,59,.22);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(255,255,255,.04);
}

.score-rules strong {
    color: var(--gold-soft);
    font-size: 18px;
}

.score-rules span {
    color: var(--muted);
    line-height: 1.45;
}

.config-section {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 14px;
    margin-top: 14px;
}

.config-section-toggle {
    width: 100%;
    min-height: 24px;
    justify-content: space-between;
    border: 0;
    padding: 0;
    color: var(--white);
    background: transparent;
    font-size: 16px;
    font-weight: 800;
    text-align: left;
}

.config-section-chevron {
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255,255,255,.72);
    border-bottom: 2px solid rgba(255,255,255,.72);
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.config-section-toggle[aria-expanded="true"] .config-section-chevron {
    transform: rotate(-135deg);
}

.config-section-content {
    display: grid;
    gap: 12px;
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height .24s ease, opacity .2s ease, margin-top .24s ease;
}

.config-section-content.is-expanded {
    margin-top: 14px;
    opacity: 1;
    pointer-events: auto;
}

.config-profile-section {
    display: grid;
    gap: 10px;
}

.config-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.config-profile-row p {
    margin-bottom: 0;
}

.config-profile-row .button {
    flex: 0 0 auto;
}

.config-language-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.config-language-form label {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.config-language-form .button {
    flex: 0 0 auto;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.theme-options button {
    min-height: 38px;
    padding: 7px 8px;
}

.theme-options [data-theme="classic"] {
    border-color: rgba(213, 169, 59, .8);
    color: #16120a;
    background: linear-gradient(135deg, #d5a93b, #f5d77b);
}

.theme-options [data-theme="green"] {
    border-color: rgba(38, 166, 91, .75);
    color: #07140d;
    background: linear-gradient(135deg, #26a65b, #75d99c);
}

.theme-options [data-theme="blue"] {
    border-color: rgba(72, 148, 255, .75);
    color: #07111f;
    background: linear-gradient(135deg, #4894ff, #9fc4ff);
}

.theme-options [data-theme="light"] {
    border-color: rgba(255, 255, 255, .85);
    color: #121212;
    background: linear-gradient(135deg, #ffffff, #d9dee8);
}

.auth-help {
    justify-self: center;
    color: var(--gold-soft);
}

.install-app-button[hidden] {
    display: none;
}

.install-top-button {
    position: absolute;
    top: 0;
    right: 0;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}

.install-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.5;
}

.support-shell {
    display: grid;
    gap: 22px;
    max-width: 760px;
    margin: 0 auto;
    border-color: rgba(213, 169, 59, .34);
    background:
        linear-gradient(180deg, rgba(213, 169, 59, .08), rgba(213, 169, 59, 0) 220px),
        var(--panel);
}

.pix-box {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(213, 169, 59, .24);
    border-radius: var(--radius);
    padding: 18px;
    background: rgba(0,0,0,.26);
}

.pix-box span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.pix-box strong {
    overflow-wrap: anywhere;
    font-size: 18px;
}

.receipt-form {
    border: 1px solid rgba(213, 169, 59, .2);
    border-radius: var(--radius);
    padding: 18px;
    background: rgba(213, 169, 59, .04);
}

.inline-prediction-form {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    align-items: end;
}

.modal-prediction-form {
    grid-template-columns: 1fr auto 1fr;
}

.modal-prediction-form label {
    min-width: 0;
}

.penalty-fields {
    display: contents;
}

.inline-prediction-form > span {
    display: none;
}

.inline-prediction-form label {
    min-width: 0;
}

.match-list {
    display: grid;
    gap: 14px;
}

.match {
    display: grid;
    gap: 14px;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--black) !important;
    background: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.prediction-form {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.prediction-form select, .prediction-form button {
    grid-column: 1 / -1;
}

.games-table {
    min-width: 0;
    table-layout: auto;
}

.games-table td {
    vertical-align: middle;
}

.games-table td > span:not(.flag):not(.badge),
.games-table .game-place {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.games-table th,
.games-table td {
    padding: 10px 8px;
}

.games-table th:first-child,
.games-table td:first-child {
    width: 34px;
    text-align: center;
}

.game-date-cell {
    white-space: nowrap;
}

.game-date-cell strong,
.game-date-cell .game-time {
    display: inline !important;
}

.game-date-cell .game-time {
    margin-left: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.game-main-cell {
    min-width: 0;
}

.game-main-cell .match-link strong {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    line-height: 1.25;
}

.game-main-cell .flag {
    display: inline-flex;
    min-width: 18px;
    margin: 0;
    font-size: 14px;
}

.game-meta {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.game-meta .badge {
    display: inline-flex;
    margin: 0;
    padding: 3px 7px;
    font-size: 11px;
}

.game-meta span:not(.badge) {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.game-place {
    line-height: 1.2;
}

.game-action-cell {
    min-width: 118px;
}

.game-action-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 0 !important;
}

.game-status {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
}

.games-table .trend-button {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 6px;
    white-space: normal;
    line-height: 1.15;
}

@media (max-width: 640px) {
    .games-table {
        font-size: 12px;
    }

    .games-table th,
    .games-table td {
        padding: 8px 4px;
    }

    .games-table th:first-child,
    .games-table td:first-child {
        width: 24px;
    }

    .game-date-cell .game-time {
        display: block !important;
        margin-left: 0;
        margin-top: 2px;
    }

    .game-meta .badge {
        padding: 2px 5px;
    }

    .games-table .compact-button {
        min-height: 30px;
        padding: 5px 7px;
        font-size: 12px;
    }

    .games-table .trend-button {
        font-size: 11px;
    }
}

.table-prediction-form {
    grid-template-columns: 58px auto 58px 78px 78px minmax(130px, 1fr) auto;
    min-width: 580px;
}

.table-prediction-form select,
.table-prediction-form button {
    grid-column: auto;
}

.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.09); text-align: left; }
th { color: var(--gold-soft); }

.ranking-table-card {
    overflow-x: hidden;
}

.ranking-table {
    min-width: 0;
    table-layout: fixed;
}

.ranking-table th,
.ranking-table td {
    padding: 10px 8px;
    font-size: 14px;
    vertical-align: middle;
}

.ranking-table th:first-child,
.ranking-table td:first-child {
    width: 42px;
    text-align: center;
}

.ranking-table th:nth-child(3),
.ranking-table td:nth-child(3),
.ranking-table th:nth-child(4),
.ranking-table td:nth-child(4) {
    width: 56px;
    text-align: center;
}

.ranking-user-id {
    color: var(--muted);
    white-space: nowrap;
    font-size: 12px;
}

.ranking-user-name {
    overflow-wrap: anywhere;
}

.current-ranking-row td {
    background: rgba(213, 169, 59, .12);
    color: var(--white);
    font-weight: 800;
}

.ranking-separator-row td {
    color: var(--gold-soft);
    text-align: center;
    letter-spacing: 0;
}

.members-modal-panel {
    width: min(860px, 100%);
}

.members-table {
    min-width: 0;
}

@media (max-width: 640px) {
    .dashboard-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .dashboard-user-line {
        font-size: 25px;
    }

    .dashboard-hero-badge .supporter-badge {
        width: 100px;
        height: 100px;
    }

    .dashboard-edition-picker {
        max-width: 180px;
    }

    .dashboard-edition-picker select {
        font-size: 14px;
    }

    .dashboard-primary-actions .button,
    .dashboard-secondary-actions .button {
        min-height: 40px;
        font-size: 13px;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 7px 5px;
        font-size: 11px;
    }

    .ranking-table th:first-child,
    .ranking-table td:first-child {
        width: 34px;
    }

    .ranking-table th:nth-child(3),
    .ranking-table td:nth-child(3),
    .ranking-table th:nth-child(4),
    .ranking-table td:nth-child(4) {
        width: 48px;
    }

    .ranking-table .supporter-badge {
        width: 18px;
        height: 18px;
    }

    .ranking-table .ranking-medal {
        min-width: 18px;
        font-size: 14px;
    }

    .ranking-user-id {
        font-size: 10px;
    }
}

.members-toggle {
    width: 100%;
    justify-content: flex-start;
}

.special-rankings {
    align-items: stretch;
}

.special-ranking-card {
    display: grid;
    gap: 14px;
}

.special-ranking-card h2 {
    margin-bottom: 0;
}

.special-ranking-scope {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(255,255,255,.03);
}

.special-ranking-label {
    color: var(--gold-soft);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.special-ranking-scope p {
    margin: 0;
}

.special-ranking-winner {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--white);
    font-weight: 800;
}

.special-ranking-metric {
    color: var(--gold-soft);
    font-size: 14px;
    font-weight: 800;
}

.alert {
    margin-bottom: 16px;
    border-radius: var(--radius);
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,.12);
}

.alert .actions {
    margin-top: 12px;
}

.alert .form-hint {
    margin-top: 10px;
}

.hero + .alert {
    color: var(--white);
    font-size: 16px;
    line-height: 1.4;
}

.alert.success { border-color: var(--success); }
.alert.error { border-color: var(--danger); }
.admin-link { display: block; }
.admin-card-count {
    margin-top: 12px;
    color: var(--gold-soft);
    font-weight: 900;
}

.supporter-review-section,
.supporter-review-details {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.supporter-review-section h2,
.supporter-review-details summary {
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
}

.supporter-review-details summary {
    cursor: pointer;
}

.supporter-review-section h2 span,
.supporter-review-details summary span {
    color: var(--gold-soft);
}

.supporter-review-grid {
    display: grid;
    gap: 14px;
}

.supporter-review-card {
    display: grid;
    gap: 12px;
}

.supporter-review-header {
    display: grid;
    gap: 10px;
}

.supporter-review-header h3 {
    margin: 0 0 4px;
    color: var(--white);
    font-size: 18px;
}

.supporter-review-header p {
    margin: 0;
}

.supporter-receipt-frame {
    width: 100%;
    min-height: 420px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    background: #ffffff;
}

.supporter-review-actions form {
    flex: 1 1 180px;
}

.supporter-review-actions button {
    width: 100%;
}

@media (min-width: 760px) {
    .shell { padding: 34px 24px 110px; }
    .auth-panel { grid-template-columns: 1.1fr .9fr; }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .groups-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .phone-field-row { grid-template-columns: minmax(230px, .9fr) 1.1fr; }
    .phone-field-row.login-phone-field-row { grid-template-columns: 74px minmax(0, 1fr); }
    .match { grid-template-columns: 1.2fr .8fr; }
    .prediction-form { grid-template-columns: 70px auto 70px; }
    .table-prediction-form { grid-template-columns: 58px auto 58px 78px 78px minmax(130px, 1fr) auto; }
    .inline-prediction-form {
        grid-template-columns: 100px auto 100px 130px 130px minmax(150px, 1fr) auto;
    }
    .inline-prediction-form > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }
    .supporter-review-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }
    .supporter-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .groups-grid { grid-template-columns: repeat(4, 1fr); }
}

.prediction-match-result {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.predictions-table-card {
    overflow-x: hidden;
}

.predictions-table {
    min-width: 0;
}

@media (max-width: 640px) {
    .predictions-table thead {
        display: none;
    }

    .predictions-table,
    .predictions-table tbody,
    .predictions-table tr,
    .predictions-table td {
        display: block;
        width: 100%;
    }

    .predictions-table tbody {
        display: grid;
        gap: 12px;
    }

    .predictions-table tr {
        padding: 12px;
        border: 1px solid rgba(255,255,255,.09);
        border-radius: var(--radius);
        background: rgba(255,255,255,.025);
    }

    .predictions-table td {
        display: grid;
        grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
        overflow-wrap: anywhere;
    }

    .predictions-table td::before {
        content: attr(data-label);
        color: var(--gold-soft);
        font-weight: 700;
    }

    .predictions-table .prediction-match-result,
    .predictions-table .js-local-time {
        grid-column: 2;
    }

    .predictions-table td:first-child {
        padding-top: 0;
    }

    .predictions-table td:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
}
