:root {
    --bg: #040816;
    --bg-accent: #0a1635;
    --panel: rgba(11, 24, 53, 0.72);
    --panel-strong: rgba(13, 30, 65, 0.9);
    --text: #e6f0ff;
    --muted: #9fb2d6;
    --line: rgba(143, 174, 227, 0.24);
    --primary: #45d4ff;
    --primary-dark: #148ebf;
    --secondary: #ffc24f;
    --shadow: 0 24px 45px rgba(2, 8, 24, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% -10%, rgba(69, 212, 255, 0.22), transparent 32%),
        radial-gradient(circle at 85% 0%, rgba(255, 194, 79, 0.14), transparent 26%),
        radial-gradient(circle at 50% 120%, rgba(41, 100, 230, 0.2), transparent 40%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-accent) 100%);
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 64px;
}

.site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(12, 28, 61, 0.75), rgba(20, 62, 118, 0.55));
    border: 1px solid rgba(160, 198, 255, 0.3);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.brand {
    display: block;
}

.header-center {
    display: grid;
    gap: 12px;
    min-width: 0;
    width: min(100%, 760px);
    justify-self: center;
    padding: 12px 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 0%, rgba(69, 212, 255, 0.16), transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(255, 194, 79, 0.16), transparent 46%),
        rgba(7, 20, 47, 0.72);
    border: 1px solid rgba(166, 208, 255, 0.26);
    box-shadow: 0 14px 28px rgba(0, 8, 22, 0.35);
    backdrop-filter: blur(10px);
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 122px;
    height: 122px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(12, 28, 61, 0.12);
    box-shadow: 0 10px 22px rgba(0, 8, 22, 0.28);
}

.brand-main {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
}

.brand-text-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
}

.brand-logo-pair {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brand-logo {
    width: 114px;
    height: 114px;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    opacity: 1;
    transition: transform 0.2s ease;
}

.header-logo-link:hover .logo-frame {
    box-shadow: 0 12px 24px rgba(0, 8, 22, 0.34);
}

.header-logo-link:hover .brand-logo {
    transform: translateY(-1px);
}

.brand-kicker,
.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 800;
}

.brand-kicker {
    font-size: clamp(1.3rem, 2.2vw, 1.95rem);
    letter-spacing: 0.08em;
}

.brand-name,
h1,
h2,
h3 {
    font-family: "Trebuchet MS", "Segoe UI Semibold", "Arial Narrow", sans-serif;
    margin: 0;
}

.brand-name {
    font-size: clamp(1.35rem, 2.55vw, 2.1rem);
    line-height: 1.04;
    color: #ffffff;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(143, 174, 227, 0.32);
    color: #d6eaff;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    white-space: nowrap;
}

.site-nav a:hover {
    background: rgba(69, 212, 255, 0.15);
    border-color: rgba(69, 212, 255, 0.55);
    color: #ffffff;
    transform: translateY(-1px);
}

.site-nav .button-link {
    color: #f2f8ff;
    background: linear-gradient(135deg, #0e6f9d, #0a4f73);
    border: 1px solid rgba(143, 174, 227, 0.45);
}

.button-link,
.primary-button,
.secondary-button,
.table-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.button-link,
.primary-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), #3a9eff);
    color: #001a2a;
}

.secondary-button {
    padding: 12px 20px;
    background: rgba(255, 194, 79, 0.16);
    color: var(--secondary);
}

.table-button {
    padding: 10px 16px;
    background: linear-gradient(140deg, #1ea3d1, #116b99);
    color: #e8f7ff;
}

.button-link:hover,
.primary-button:hover,
.secondary-button:hover,
.table-button:hover {
    transform: translateY(-1px);
}

.button-link:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.table-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.hero,
.grid-section,
.dashboard-header {
    display: grid;
    gap: 24px;
}

.hero {
    grid-template-columns: 1.5fr 1fr;
    align-items: stretch;
    margin-bottom: 28px;
}

.content-stack {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.hero > *,
.content-stack > *,
.grid-section > *,
.panel,
.hero-copy,
.hero-card,
.group-tables,
.group-table-card,
.table-scroll {
    min-width: 0;
    max-width: 100%;
}

.hero-copy,
.hero-card,
.panel,
.auth-card {
    background: var(--panel);
    border: 1px solid rgba(159, 194, 255, 0.35);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-copy {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.hero-card,
.panel {
    padding: 28px;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 0.96;
    margin: 10px 0 14px;
}

.hero-text,
.muted,
.leaderboard-row p,
.match-card p {
    color: var(--muted);
}

.hero h1.hero-title-compact {
    font-size: clamp(1.34rem, 2.3vw, 2rem);
    line-height: 1.06;
    margin: 0 0 12px;
}

.hero-copy .hero-text {
    max-width: 62ch;
}

.hero-intro-text {
    font-size: 1.06rem;
    line-height: 1.42;
    margin: 0;
}

.hero-intro-text + .hero-intro-text {
    margin-top: 8px;
}

.hero-top-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.hero-main-copy {
    min-width: 0;
}

.hero-worldcup-logo {
    margin: 0;
    justify-self: end;
}

.worldcup-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(159, 194, 255, 0.35);
    background: rgba(8, 20, 44, 0.56);
}

.worldcup-logo-image {
    display: block;
    width: auto;
    height: clamp(140px, 15vw, 200px);
}

.hero-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
}

.hero-action-group {
    display: inline-flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.hero-action-row .primary-button,
.hero-action-row .secondary-button,
.hero-action-row .quick-link-button {
    padding: 7px 11px;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
}

.timezone-panel {
    margin-top: 14px;
    border: 1px solid rgba(159, 194, 255, 0.26);
    border-radius: 16px;
    padding: 12px;
    background: rgba(7, 18, 42, 0.68);
}

.timezone-panel-header h3 {
    font-size: 0.92rem;
    margin-top: 2px;
}

.timezone-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.timezone-utc-now {
    margin: 0;
    white-space: nowrap;
    color: var(--secondary);
}

.timezone-utc-now #utc-clock {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
}

.timezone-section {
    margin-top: 8px;
    border-radius: 12px;
    padding: 8px 9px;
}

.timezone-section-aac {
    background: rgba(69, 212, 255, 0.1);
    border: 1px solid rgba(69, 212, 255, 0.3);
}

.timezone-section-hosts {
    background: rgba(255, 194, 79, 0.12);
    border: 1px solid rgba(255, 194, 79, 0.34);
}

.timezone-section-title {
    margin: 0 0 5px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
}

.timezone-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
}

.timezone-section-hosts .timezone-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timezone-row {
    display: grid;
    grid-template-columns: 1fr auto;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    line-height: 1.22;
    padding: 3px 0;
}

.timezone-city {
    color: #f4f8ff;
    font-weight: 600;
}

.timezone-time {
    color: #d5e7ff;
    font-weight: 700;
    white-space: nowrap;
}

.quick-link-button {
    padding: 10px 16px;
    border: 1px solid rgba(255, 194, 79, 0.35);
    background: rgba(255, 194, 79, 0.12);
}

.hero-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: linear-gradient(145deg, rgba(69, 212, 255, 0.18), rgba(255, 194, 79, 0.16));
}

.hero-card-leaderboard {
    height: 100%;
    gap: 8px;
    padding: 18px 20px 14px;
}

.leaderboard-title-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.leaderboard-title-inline {
    margin: 0;
    color: #ffffff;
}

.hero-card .panel-heading {
    margin-bottom: 0;
}

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

.leaderboard-list-compact {
    grid-template-columns: 1fr;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 2px;
}

.leaderboard-list-tight {
    gap: 2px;
}

.leaderboard-list-compact .leaderboard-row-compact {
    padding: 3px 8px;
    border-radius: 10px;
    align-items: flex-start;
    gap: 5px;
}

.leaderboard-row-compact.leaderboard-top-1 {
    background: linear-gradient(135deg, rgba(255, 196, 48, 0.28), rgba(255, 160, 20, 0.18));
    border: 1px solid rgba(255, 196, 48, 0.45);
}

.leaderboard-row-compact.leaderboard-top-2 {
    background: linear-gradient(135deg, rgba(210, 220, 235, 0.2), rgba(180, 195, 215, 0.12));
    border: 1px solid rgba(210, 220, 235, 0.35);
}

.leaderboard-row-compact.leaderboard-top-3 {
    background: linear-gradient(135deg, rgba(200, 140, 70, 0.22), rgba(170, 110, 50, 0.14));
    border: 1px solid rgba(200, 140, 70, 0.38);
}

.leaderboard-list-compact strong {
    font-size: 0.84rem;
    line-height: 1.04;
}

.leaderboard-list-compact .leaderboard-row-compact p {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.04;
}

.leaderboard-list-compact .leaderboard-row-compact > span {
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-label,
.match-stage {
    margin: 0 0 8px;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.grid-section {
    grid-template-columns: 1.35fr 1fr;
}

.main-content-panel {
    width: 100%;
}

.large-panel {
    min-height: 100%;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-heading-with-links .section-jump-links {
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.panel-heading-with-links .quick-link-button {
    white-space: nowrap;
}

.match-list,
.leaderboard-list,
.flash-stack {
    display: grid;
    gap: 14px;
}

.match-card,
.leaderboard-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    background: rgba(10, 25, 55, 0.75);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.team-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.team-advance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(69, 212, 255, 0.55);
    background: rgba(69, 212, 255, 0.16);
    color: #9defff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.flag-icon {
    display: inline-block;
    width: 1.35rem;
    height: 1rem;
    border-radius: 2px;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.versus {
    color: var(--muted);
    font-weight: 600;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(69, 212, 255, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
}

.pill-live {
    background: rgba(255, 194, 79, 0.22);
    color: #ffd989;
    border: 1px solid rgba(255, 194, 79, 0.48);
}

.text-link {
    color: var(--primary-dark);
    font-weight: 800;
}

.auth-shell {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

.auth-card {
    width: min(480px, 100%);
    padding: 34px;
}

.auth-card form,
.auth-card label,
.score-form {
    display: contents;
}

label span {
    display: block;
    margin: 18px 0 8px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 20, 44, 0.86);
    color: var(--text);
    font: inherit;
}

.dashboard-header {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 18px;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    margin: 12px 0 18px;
}

.unsaved-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.unsaved-badge.is-active {
    color: #001a2a;
    background: linear-gradient(135deg, var(--secondary), #ffd78b);
    border-color: rgba(255, 194, 79, 0.8);
}

.sync-panel,
.stage-panel {
    margin-bottom: 20px;
}

.sync-panel-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.sync-compact-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 20, 44, 0.58);
    padding: 12px 14px;
}

.sync-compact-title {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 800;
}

.sync-compact-message {
    margin: 6px 0 4px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.sync-compact-time {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.prediction-table-wrapper-scroll {
    max-height: 420px;
    min-height: 160px;
    overflow-y: auto;
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    contain: content;
}

.account-panel {
    margin-bottom: 20px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-form {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: rgba(8, 20, 44, 0.58);
}

.account-form h3 {
    margin: 0 0 8px;
}

.danger-form {
    border-color: rgba(255, 99, 99, 0.48);
    background: rgba(66, 18, 18, 0.4);
}

.danger-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff7474, #ca2f2f);
    color: #fff4f4;
}

.danger-button:hover {
    transform: translateY(-1px);
}

.danger-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.rules-card h2 {
    margin: 8px 0 14px;
}

.rules-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

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

.stat-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: rgba(8, 20, 44, 0.5);
}

.stat-card strong {
    font-size: 1.5rem;
    font-family: "Trebuchet MS", "Segoe UI Semibold", "Arial Narrow", sans-serif;
}

.prediction-table-wrapper {
    overflow-x: auto;
}

.group-tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.group-table-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    background: rgba(8, 20, 44, 0.62);
}

.group-table-card h3 {
    margin-bottom: 10px;
}

.section-subtitle {
    margin: 14px 0 10px;
    font-size: 1rem;
    color: var(--secondary);
}

.knockout-phase-title {
    margin-top: 20px;
    margin-bottom: 4px;
}

.table-scroll {
    overflow-x: auto;
    max-width: 100%;
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.compact-table th,
.compact-table td {
    padding: 7px 8px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    white-space: nowrap;
}

.compact-table th:nth-child(2),
.compact-table td:nth-child(2) {
    text-align: left;
}

.result-list {
    display: grid;
    gap: 8px;
}
.section-subtitle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0 1rem 0;
}

.section-subtitle-row .section-subtitle {
    margin: 0;
    flex-grow: 1;
}

.section-jump-links {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.section-jump-links .quick-link-button {
    padding: 7px 11px;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
}

.knockout-bracket {
    position: relative;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(159, 194, 255, 0.28);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 194, 79, 0.08), transparent 18%),
        linear-gradient(180deg, rgba(12, 22, 46, 0.92), rgba(6, 14, 28, 0.96));
    overflow: hidden;
}

.knockout-connector-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.knockout-side,
.knockout-center {
    display: grid;
    gap: 12px;
}

.knockout-round {
    display: grid;
    gap: 8px;
}

.knockout-round-title {
    margin: 0 0 6px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
}

.knockout-match {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 66px;
    padding: 8px 10px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(2px);
}

.knockout-match-highlight {
    border-color: rgba(255, 223, 141, 0.95);
    box-shadow: 0 0 0 1px rgba(255, 223, 141, 0.22), 0 10px 24px rgba(0, 0, 0, 0.3);
}

.knockout-match-meta {
    margin: 0 0 4px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.knockout-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    position: relative;
    padding-right: 12px;
}

.knockout-team-row .team-chip {
    min-width: 0;
    font-size: 0.78rem;
}

.knockout-team-row .team-chip > span:first-of-type {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

.knockout-score {
    min-width: 16px;
    font-size: 0.82rem;
    text-align: right;
    color: #ffffff;
}

.knockout-team-row .team-advance-badge {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-52%);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    color: #ffd86f;
    font-size: 0.56rem;
    letter-spacing: 0.01em;
    line-height: 1;
}

.bracket-page-shell .bracket-wide-panel {
    width: min(100%, 1320px);
    margin: 0 auto;
}

.knockout-bracket.is-coordinate-layout {
    display: block;
    padding: 0;
}

.knockout-bracket.is-coordinate-layout .knockout-side,
.knockout-bracket.is-coordinate-layout .knockout-center,
.knockout-bracket.is-coordinate-layout .knockout-round {
    display: contents;
}

.knockout-bracket.is-coordinate-layout .knockout-round-title,
.knockout-bracket.is-coordinate-layout .knockout-match {
    position: absolute;
}

.knockout-bracket.is-coordinate-layout .knockout-round-title {
    z-index: 3;
    text-align: center;
}

.knockout-bracket.is-coordinate-layout .knockout-match {
    min-height: var(--knockout-card-height, 66px);
    height: var(--knockout-card-height, 66px);
    margin: 0;
}

@media (max-width: 980px) {
    .knockout-bracket {
        padding: 12px;
    }

    .knockout-round {
        padding-bottom: 6px;
        border-bottom: 1px solid rgba(159, 194, 255, 0.12);
    }

    .knockout-round:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

.fixture-scroll-list {
    max-height: 760px;
    overflow-y: auto;
    padding-right: 4px;
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
}

.result-row {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px 12px;
    background: rgba(8, 20, 44, 0.58);
}

.result-row .match-stage {
    margin: 0 0 4px;
    font-size: 0.78rem;
}

.result-row-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.result-score {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
    white-space: nowrap;
    min-width: 48px;
    text-align: center;
}

.result-date {
    font-size: 0.76rem;
    margin-left: auto;
    white-space: nowrap;
}

.prediction-table {
    width: 100%;
    border-collapse: collapse;
}

.prediction-table th,
.prediction-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.leaderboard-table tr.leaderboard-rank-1 td {
    background: linear-gradient(90deg, rgba(255, 196, 48, 0.22), rgba(255, 160, 20, 0.10));
    border-bottom-color: rgba(255, 196, 48, 0.3);
}

.leaderboard-table tr.leaderboard-rank-2 td {
    background: linear-gradient(90deg, rgba(210, 220, 235, 0.16), rgba(180, 195, 215, 0.08));
    border-bottom-color: rgba(210, 220, 235, 0.25);
}

.leaderboard-table tr.leaderboard-rank-3 td {
    background: linear-gradient(90deg, rgba(200, 140, 70, 0.18), rgba(170, 110, 50, 0.09));
    border-bottom-color: rgba(200, 140, 70, 0.28);
}

.score-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.decider-form-row {
    margin-top: 8px;
}

.prediction-select {
    min-width: 180px;
    max-width: 220px;
    padding: 8px 10px;
    font-size: 0.82rem;
}

.prediction-row.is-dirty {
    background: rgba(255, 194, 79, 0.08);
}

.prediction-input.is-dirty {
    border-color: rgba(255, 194, 79, 0.9);
    box-shadow: 0 0 0 2px rgba(255, 194, 79, 0.18);
}

.score-form input {
    width: 72px;
    text-align: center;
    padding: 10px;
}

.score-form input:disabled {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    color: rgba(230, 240, 255, 0.92);
}

.admin-table .secondary-button,
.admin-table .danger-button {
    padding: 8px 14px;
}

.admin-inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 280px;
}

.admin-inline-input {
    min-width: 150px;
    padding: 10px 12px;
    border-radius: 12px;
}

.admin-collapsible {
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 10px;
    background: rgba(8, 25, 56, 0.55);
}

.admin-collapsible > summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.admin-collapsible > summary::-webkit-details-marker {
    display: none;
}

.admin-collapsible-title {
    font-weight: 700;
}

.admin-collapsible-meta {
    font-size: 0.9rem;
}

.admin-compact-table .prediction-table th,
.admin-compact-table .prediction-table td {
    padding: 8px 10px;
    font-size: 0.86rem;
}

.flash {
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
}

.flash-success { background: rgba(15, 139, 109, 0.14); }
.flash-error { background: rgba(255, 99, 99, 0.22); }
.flash-info { background: rgba(69, 212, 255, 0.14); }

.site-footer {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    color: var(--muted);
}

.site-footer a {
    color: var(--primary);
}

@media (max-width: 900px) {
    .hero,
    .grid-section,
    .dashboard-header,
    .rules-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .group-tables {
        grid-template-columns: 1fr;
    }

    .knockout-bracket {
        gap: 14px;
        padding: 12px;
    }

    .knockout-side {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
        gap: 8px;
    }

    .knockout-center {
        gap: 10px;
    }

    .knockout-round-16,
    .knockout-round-qf,
    .knockout-round-sf {
        padding-top: 0;
    }

    .knockout-match::after,
    .knockout-match::before {
        content: none !important;
    }

    .panel-heading-with-links {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .panel-heading-with-links .section-jump-links {
        overflow-x: auto;
        max-width: 52vw;
        scrollbar-width: thin;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .sync-panel-compact {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: center;
        grid-template-columns: 1fr 1fr;
        padding: 16px 14px;
        gap: 12px;
        justify-items: center;
    }

    .header-center {
        width: min(100%, 700px);
        padding: 10px 12px;
        border-radius: 16px;
        grid-column: 1 / -1;
        order: 2;
    }

    .header-logo-link:first-of-type {
        order: 0;
    }

    .header-logo-link:last-of-type {
        order: 1;
    }

    .brand-main {
        align-items: center;
        flex-direction: column;
    }

    .header-logo-link {
        width: 120px;
        height: 120px;
        border-radius: 0;
    }

    .logo-frame {
        width: 112px;
        height: 112px;
        border-radius: 14px;
    }

    .brand-logo {
        width: 100px;
        height: 100px;
    }

    .site-nav {
        width: 100%;
        gap: 10px;
    }

    .site-nav a {
        padding: 8px 10px;
        border-radius: 999px;
        border: 1px solid rgba(143, 174, 227, 0.24);
        background: rgba(8, 20, 44, 0.46);
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav .button-link {
        color: #f2f8ff;
        background: linear-gradient(135deg, #1379a9, #0b5a83);
        border-color: rgba(166, 208, 255, 0.6);
    }

    .page-shell {
        width: min(100% - 20px, 1180px);
    }

    .hero-copy,
    .hero-card,
    .panel,
    .auth-card {
        padding: 22px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.4rem);
    }

    .hero h1.hero-title-compact {
        font-size: clamp(1.12rem, 5.25vw, 1.58rem);
        line-height: 1.1;
    }

    .hero-action-row {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .hero-top-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-worldcup-logo {
        justify-self: center;
    }

    .worldcup-logo-image {
        height: clamp(110px, 28vw, 170px);
    }

    .hero-action-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-action-row .primary-button,
    .hero-action-row .secondary-button,
    .hero-action-row .quick-link-button {
        width: 100%;
    }

    .timezone-list,
    .timezone-section-hosts .timezone-list {
        grid-template-columns: 1fr;
    }

    .panel-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-card,
    .leaderboard-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-card .pill,
    .leaderboard-row > span {
        align-self: flex-start;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-actions .primary-button,
    .dashboard-actions .secondary-button,
    .unsaved-badge {
        width: 100%;
        justify-content: center;
    }

    .prediction-table th,
    .prediction-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .prediction-table-wrapper-scroll {
        max-height: 60vh;
    }

    .admin-inline-form {
        min-width: 220px;
    }

    .admin-collapsible > summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-form input {
        width: 62px;
        padding: 8px;
    }

    .prediction-select {
        min-width: 150px;
        max-width: 180px;
    }

    .fixture-scroll-list {
        max-height: 60vh;
    }

    .site-footer {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: calc(100% - 12px);
        padding: 14px 0 38px;
    }

    .brand-kicker {
        font-size: clamp(1.05rem, 5vw, 1.32rem);
        letter-spacing: 0.06em;
    }

    .brand-name {
        font-size: clamp(1.15rem, 5.9vw, 1.48rem);
    }

    .header-logo-link {
        width: 104px;
        height: 104px;
        border-radius: 0;
    }

    .logo-frame {
        width: 96px;
        height: 96px;
        border-radius: 12px;
    }

    .brand-logo {
        width: 84px;
        height: 84px;
        padding: 0;
    }

    .hero-copy,
    .hero-card,
    .panel,
    .auth-card {
        padding: 16px;
        border-radius: 20px;
    }

    .team-line {
        display: grid;
        gap: 6px;
    }

    .versus {
        justify-self: start;
    }

    .compact-table {
        font-size: 0.8rem;
    }

    .compact-table th,
    .compact-table td {
        padding: 6px;
    }

    .prediction-table th,
    .prediction-table td {
        padding: 10px 8px;
        font-size: 0.82rem;
    }

    .prediction-select {
        min-width: 132px;
        max-width: 160px;
        font-size: 0.76rem;
    }

    .site-nav {
        gap: 8px;
    }

    .knockout-side {
        grid-template-columns: 1fr;
    }

    .knockout-match {
        padding: 7px;
    }

    .knockout-team-row .team-chip {
        font-size: 0.75rem;
    }
}

@media (max-width: 430px) {
    .header-logo-link {
        width: 92px;
        height: 92px;
    }

    .logo-frame {
        width: 84px;
        height: 84px;
        border-radius: 10px;
    }

    .brand-logo {
        width: 72px;
        height: 72px;
    }
}