:root {
    --ink: #151515;
    --muted: #666b72;
    --paper: #f7f3ea;
    --paper-strong: #fffaf0;
    --line: #ddd4c4;
    --charcoal: #111315;
    --panel: #1d2023;
    --red: #e5484d;
    --cyan: #28b8c7;
    --gold: #d9a441;
    --green: #4c9f70;
    --shadow: 0 18px 55px rgba(18, 18, 18, 0.18);
    --radius: 8px;
}

[hidden] {
    display: none !important;
}

.match-live-body {
    overflow: hidden;
    color: #f8f1e4;
    background: #05070a;
}

.match-live-body .site-header {
    display: none;
}

.match-live-body .admin-main {
    width: 100%;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
}

.match-live-body .admin-hero,
.match-live-body .flash {
    display: none;
}

.live-control-board {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 89, 100, 0.18), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(40, 184, 199, 0.18), transparent 32%),
        linear-gradient(135deg, #10151d, #05070a 58%, #090d12);
}

.live-scene {
    position: relative;
    display: grid;
    align-content: center;
    gap: clamp(18px, 3vh, 30px);
    width: 100%;
    height: 100%;
    margin: 0;
    padding: clamp(18px, 4vw, 58px);
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.live-matchline {
    position: absolute;
    top: clamp(14px, 3vw, 32px);
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 22px);
    width: min(920px, calc(100% - 32px));
    color: #b8c3cf;
    transform: translateX(-50%);
    font-weight: 1000;
}

.live-matchline strong {
    color: #ff5964;
    font-size: clamp(1rem, 2vw, 1.45rem);
}

.live-matchline span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coin-layout {
    display: grid;
    justify-items: center;
    gap: clamp(18px, 3.2vh, 34px);
}

.coin-copy {
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
}

.coin-copy span,
.final-live-result > span {
    color: #ff5964;
    font-size: 0.86rem;
    font-weight: 1000;
    letter-spacing: 0.18em;
}

.coin-copy h2,
.final-live-result h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.95;
}

.coin-stage {
    width: min(56vh, 420px);
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    background:
        radial-gradient(circle, rgba(255, 89, 100, 0.2), transparent 58%),
        #070b10;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.coin-disc,
.coin-panel.is-active-scene .coin-disc {
    width: min(32vh, 230px);
}

.coin-result-panel {
    grid-template-columns: auto auto;
    gap: 8px 20px;
    justify-content: center;
    text-align: center;
}

.coin-result-panel strong {
    font-size: clamp(1.25rem, 3vw, 2.2rem);
}

.coin-next-button,
.live-veto-form > .button {
    width: min(560px, 100%);
    min-height: 56px;
    justify-self: center;
    font-size: 1.05rem;
}

.banpick-panel {
    align-content: center;
}

.live-veto-form {
    display: grid;
    justify-items: center;
    gap: clamp(16px, 3vh, 28px);
    width: min(1180px, 100%);
    max-width: none;
    min-height: 0;
    margin: 0 auto;
    overflow: visible;
}

.current-step {
    justify-items: center;
    width: min(760px, 100%);
    padding: 0;
    text-align: center;
    background: transparent;
}

.current-step span {
    color: #ff5964;
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    letter-spacing: 0.16em;
}

.current-step strong {
    color: #fff;
    font-size: clamp(2.4rem, 8vw, 5.4rem);
    line-height: 0.98;
}

.current-step em {
    color: #b8c3cf;
    font-size: clamp(1.1rem, 3vw, 2rem);
}

.map-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 1180px;
    overflow: visible;
}

.map-choice {
    position: relative;
    display: block;
}

.map-choice input,
.side-choice input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.map-choice-card {
    gap: 8px;
    padding: 8px;
    background: rgba(9, 13, 18, 0.92);
    border-color: #2b3440;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.map-choice-card img {
    aspect-ratio: 16 / 9;
}

.map-choice-card span {
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
}

.map-choice input:checked + .map-choice-card,
.side-choice input:checked + span {
    border-color: rgba(255, 89, 100, 0.95);
    box-shadow: 0 0 0 1px rgba(255, 89, 100, 0.48), 0 26px 64px rgba(255, 89, 100, 0.18);
}

.side-map-preview {
    width: min(560px, 100%);
    grid-template-columns: 1fr;
    text-align: center;
}

.side-choice-grid {
    width: min(560px, 100%);
}

.final-live-result {
    display: grid;
    justify-items: center;
    gap: clamp(16px, 3vh, 30px);
    text-align: center;
}

.final-live-result .live-setup-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    width: min(980px, 100%);
    max-height: none;
    overflow: visible;
}

@media (max-width: 760px) {
    .live-scene {
        padding: 16px;
        align-content: center;
    }

    .live-matchline {
        top: 12px;
        font-size: 0.86rem;
    }

    .coin-copy h2,
    .final-live-result h2 {
        font-size: clamp(2.7rem, 16vw, 4.4rem);
    }

    .coin-stage {
        width: min(68vw, 280px);
    }

    .coin-disc,
    .coin-panel.is-active-scene .coin-disc {
        width: min(42vw, 170px);
    }

    .current-step strong {
        font-size: clamp(2.1rem, 12vw, 3.4rem);
    }

    .map-picker-grid {
        display: flex;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 8px;
        scroll-snap-type: x mandatory;
    }

    .map-choice,
    .map-picker-grid.is-preview .map-choice-card {
        flex: 0 0 min(68vw, 230px);
        scroll-snap-align: center;
    }

    .map-choice-card {
        padding: 8px;
    }

    .coin-next-button,
    .live-veto-form > .button {
        min-height: 54px;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.public-body {
    color: #f4efe6;
    background: #080a0d;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 12px 36px;
    color: #fff;
    background: rgba(17, 19, 21, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--cyan));
    border-radius: 8px;
    font-weight: 900;
}

.brand-name,
.brand-sub {
    display: block;
    line-height: 1.2;
}

.brand-name {
    font-size: 1rem;
    font-weight: 800;
}

.brand-sub {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.main-nav a,
.main-nav button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.main-nav a:hover,
.main-nav button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.inline-form {
    margin: 0;
}

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: var(--charcoal);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 19, 21, 0.93), rgba(17, 19, 21, 0.62) 45%, rgba(17, 19, 21, 0.35)),
        linear-gradient(0deg, rgba(17, 19, 21, 0.94), rgba(17, 19, 21, 0.08) 46%),
        url("/assets/hero-stage.png") center / cover no-repeat;
    transform: scale(1.02);
}

.public-body .hero-backdrop {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: clamp(420px, 52vw, 760px);
    background:
        url("/assets/yamato-v-cup-hero.png") center / contain no-repeat;
    background-color: #06080c;
    transform: none;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
    gap: 32px;
    align-items: end;
    width: min(1180px, calc(100% - 48px));
    min-height: 680px;
    margin: 0 auto;
    padding: 92px 0 44px;
}

.public-body .hero-section,
.public-body .hero-content {
    min-height: 0;
}

.public-body .hero-section {
    overflow: visible;
    background: #06080c;
}

.public-body .hero-content {
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.72fr);
    align-items: stretch;
    padding: 22px 0 52px;
}

.hero-copy {
    max-width: 760px;
    padding-bottom: 34px;
}

.public-body .hero-copy {
    display: flex;
    align-items: center;
    align-self: center;
    max-width: none;
    padding-bottom: 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
}

.hero-copy h1,
.admin-hero h1 {
    margin: 0;
    font-size: 4.8rem;
    line-height: 1;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.15rem;
}

.public-body .hero-lead {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.public-body .hero-actions {
    margin-top: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    color: #fff;
    background: var(--red);
}

.button.secondary {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.text-link {
    color: var(--red);
    font-weight: 900;
}

.hero-actions .button.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
}

.hero-status {
    padding: 22px;
    background: rgba(247, 243, 234, 0.94);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.public-body .hero-status {
    color: #f8f1e4;
    background: rgba(18, 22, 27, 0.92);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
}

.status-block {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.public-body .status-block {
    border-color: #2a3038;
}

.status-block .label,
.status-grid span,
.version {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.public-body .status-block .label,
.public-body .status-grid span,
.public-body .version {
    color: #9aa3ad;
}

.status-block strong {
    display: block;
    margin-top: 4px;
    font-size: 1.05rem;
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.status-grid div {
    min-width: 0;
}

.status-grid strong {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.version {
    margin: 18px 0 0;
}

.notice-band {
    background: var(--charcoal);
    color: #fff;
}

.section-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.notice-grid {
    display: grid;
    gap: 14px;
    padding: 24px 0;
}

.notice-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    align-items: start;
}

.notice-item time {
    color: var(--cyan);
    font-weight: 800;
}

.notice-item h2 {
    margin: 0;
    font-size: 1.05rem;
}

.notice-item p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.section {
    padding: 78px 0;
}

.public-body .section {
    background: #0b0d10;
}

.compact-section {
    padding-top: 64px;
}

.section.toned {
    background: #ebe3d6;
}

.public-body .section.toned {
    background: #111418;
}

.section-heading {
    display: grid;
    gap: 8px;
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2,
.contact-layout h2,
.admin-panel h2 {
    margin: 0;
    font-size: 2.3rem;
    line-height: 1.15;
}

.section-heading p,
.contact-layout p {
    margin: 0;
    color: var(--muted);
}

.public-body .section-heading h2 {
    color: #f8f1e4;
}

.public-body .section-heading {
    margin-bottom: 22px;
}

.public-body .eyebrow {
    color: #ff5964;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.board-summary {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.board-summary div {
    min-width: 0;
    padding: 14px 16px;
    background: var(--charcoal);
    color: #fff;
    border-radius: 8px;
}

.board-summary-compact {
    grid-template-columns: 1.4fr 0.8fr 0.5fr;
}

.public-body .board-summary div {
    background: #15191e;
    border: 1px solid #2a3038;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.board-summary span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 900;
}

.board-summary strong {
    display: block;
    margin-top: 3px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.schedule-timeline {
    display: grid;
    gap: 22px;
}

.schedule-day {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.schedule-day-heading {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 4px;
    padding: 14px;
    background: #ebe3d6;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.public-body .schedule-day-heading {
    background: #171b20;
    border-color: #2a3038;
    color: #f4efe6;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.schedule-day-heading h3 {
    margin: 0;
    font-size: 1.2rem;
}

.schedule-day-heading span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 900;
}

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

.schedule-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) minmax(220px, 0.58fr);
    gap: 18px;
    align-items: stretch;
    min-width: 0;
    padding: 16px;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(30, 30, 30, 0.07);
}

.public-body .schedule-card {
    background: #12161b;
    border-color: #2a3038;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.schedule-card.is-next {
    border-color: rgba(229, 72, 77, 0.55);
    box-shadow: 0 14px 38px rgba(229, 72, 77, 0.13);
}

.public-body .schedule-card.is-next {
    border-color: rgba(255, 89, 100, 0.7);
    box-shadow: 0 20px 52px rgba(229, 72, 77, 0.2);
}

.schedule-time {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
}

.schedule-time strong {
    font-size: 1.2rem;
    line-height: 1.2;
}

.public-body .schedule-time strong,
.public-body .schedule-main h3,
.public-body .schedule-versus span,
.public-body .ready-pair dd {
    color: #f8f1e4;
}

.schedule-time span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.public-body .schedule-time span,
.public-body .schedule-day-heading span,
.public-body .ready-pair dt,
.public-body .table-title span,
.public-body th,
.public-body .map-note {
    color: #9aa3ad;
}

.schedule-main {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.schedule-main h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
}

.schedule-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.schedule-versus span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.schedule-versus span:last-child {
    justify-content: flex-end;
    text-align: right;
}

.schedule-versus i {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    background: var(--team-color);
    border-radius: 3px;
}

.schedule-versus strong {
    text-align: center;
    color: var(--red);
    font-size: 1.02rem;
}

.public-body .schedule-versus strong {
    color: #ff5964;
}

.schedule-ready {
    display: grid;
    gap: 10px;
    align-content: start;
}

.compact-ready {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.compact-ready div {
    padding: 9px;
}

.public-body .ready-pair div {
    background: #20262d;
}

.room-grid,
.room-admin-grid,
.setup-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.match-card,
.rule-card,
.bracket-match,
.table-wrap,
.contact-panel,
.admin-panel,
.room-card,
.room-admin-card,
.setup-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
    box-shadow: 0 14px 36px rgba(30, 30, 30, 0.08);
}

.public-body .match-card,
.public-body .rule-card,
.public-body .table-wrap,
.public-body .empty-state {
    background: #12161b;
    border-color: #2a3038;
    color: #f4efe6;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.match-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 18px;
}

.match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.match-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 9px;
    color: var(--muted);
    background: #f0e7d7;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.public-body .match-meta span {
    color: #c7ced6;
    background: #20262d;
}

.match-meta .status {
    color: #fff;
    background: var(--green);
}

.public-body .match-meta .status {
    color: #fff;
    background: #3fa26b;
}

.match-meta .live {
    background: var(--red);
}

.public-body .match-meta .live {
    background: #ff5964;
}

.match-meta .final {
    background: var(--charcoal);
}

.match-meta .postponed {
    background: var(--gold);
}

.match-card h3,
.rule-card h3,
.bracket-match h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.match-time,
.map-note {
    margin: 0;
    color: var(--muted);
}

.empty-state {
    margin: 0;
    padding: 20px;
    color: var(--muted);
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.public-body .empty-state {
    color: #9aa3ad;
}

.versus {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.versus span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 800;
}

.versus i {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    background: var(--team-color);
    border-radius: 3px;
}

.versus strong {
    color: var(--red);
}

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

.team-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.team-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 10px;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
}

.public-body .team-strip span {
    background: #12161b;
    border-color: #2a3038;
    color: #f4efe6;
}

.team-strip i {
    width: 12px;
    height: 12px;
    background: var(--team-color);
    border-radius: 3px;
}

.table-wrap {
    overflow: hidden;
}

.table-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.public-body .table-title {
    border-color: #2a3038;
}

.table-title h3 {
    margin: 0;
}

.table-title span {
    color: var(--muted);
    font-size: 0.9rem;
}

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

th,
td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.public-body th,
.public-body td {
    border-color: #2a3038;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.bracket {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 0.8fr);
    gap: 18px;
    align-items: center;
}

.bracket-column {
    display: grid;
    gap: 22px;
}

.bracket-match {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.bracket-match span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.bracket-match div {
    padding: 10px 12px;
    background: #f0e7d7;
    border-radius: 8px;
    font-weight: 800;
}

.final-match {
    background: #17191c;
    color: #fff;
    border-color: #34383f;
}

.final-match div {
    color: var(--ink);
}

.bracket-connector {
    min-height: 170px;
    border-top: 3px solid var(--red);
    border-bottom: 3px solid var(--cyan);
}

.rules-section {
    background: #f4eadc;
}

.public-body .rules-section {
    background: #0d1013;
}

.map-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.map-row span {
    padding: 7px 12px;
    color: #fff;
    background: var(--charcoal);
    border-radius: 999px;
    font-weight: 800;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rule-card {
    padding: 18px;
}

.rule-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.public-body .rule-card p {
    color: #a6afb9;
}

.contact-section {
    background: var(--charcoal);
    color: #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
    gap: 42px;
    align-items: start;
}

.contact-layout p {
    color: rgba(255, 255, 255, 0.74);
}

.contact-note {
    margin-top: 18px;
}

.contact-panel {
    padding: 22px;
    color: var(--ink);
}

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

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

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

textarea {
    resize: vertical;
}

.flash {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 800;
}

.flash.success {
    color: #12351f;
    background: #d9f2df;
}

.flash.error,
.form-offline {
    color: #5b1418;
    background: #f8dadd;
}

.form-offline {
    margin: 0;
    padding: 14px;
    border-radius: 8px;
    font-weight: 800;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 36px;
    color: rgba(255, 255, 255, 0.72);
    background: #0d0e10;
}

.site-footer a {
    color: #fff;
}

.admin-body {
    background: #f2ecdf;
}

.admin-main {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 80px;
}

.admin-hero {
    margin-bottom: 26px;
}

.admin-hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

.admin-overview {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, minmax(150px, 0.7fr));
    gap: 14px;
    margin: 0 0 18px;
}

.overview-card {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 112px;
    padding: 18px;
    color: #f8f1e4;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        #11161d;
    border: 1px solid #2b3440;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.overview-card span {
    color: #ff5964;
    font-size: 0.76rem;
    font-weight: 1000;
    letter-spacing: 0.12em;
}

.overview-card strong {
    font-size: clamp(1.35rem, 2.6vw, 2.5rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.overview-card em {
    color: #9aa7b6;
    font-style: normal;
    font-weight: 900;
}

.admin-panel {
    margin-top: 18px;
    padding: 20px;
}

.admin-panel pre {
    overflow-x: auto;
    padding: 14px;
    color: #fff;
    background: #111315;
    border-radius: 8px;
}

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

.admin-heading h2 {
    margin: 0;
}

.admin-heading span,
.small-text {
    color: var(--muted);
    font-size: 0.9rem;
}

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

.admin-row {
    display: grid;
    grid-template-columns: 150px minmax(180px, 1fr) 150px 120px auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    background: #f6efe3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-row strong {
    align-self: center;
}

.match-admin-row {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.match-admin-row strong span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.match-admin-row strong {
    grid-column: span 2;
}

.match-admin-row button {
    align-self: end;
}

.team-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.team-admin-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #f6efe3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.team-pin-block {
    display: grid;
    gap: 4px;
    padding: 14px;
    color: #fff;
    background: #111315;
    border-radius: 8px;
}

.team-pin-block span {
    color: #9aa7b6;
    font-size: 0.82rem;
    font-weight: 1000;
}

.team-pin-block strong {
    color: #f6d27b;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: 0.08em;
}

.team-pin-block em {
    color: #f8f1e4;
    font-style: normal;
    font-weight: 900;
}

.team-admin-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 96px auto;
    gap: 10px;
    align-items: end;
}

.team-pin-form {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.announcement-form {
    max-width: 780px;
}

.room-card,
.room-admin-card,
.setup-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.room-card h3,
.room-admin-card h3,
.setup-card h3 {
    margin: 0;
    line-height: 1.35;
}

.room-card p,
.room-admin-card p,
.setup-card p {
    margin: 0;
    color: var(--muted);
}

.ready-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.ready-pair div {
    padding: 10px;
    background: #f0e7d7;
    border-radius: 8px;
}

.ready-pair dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.ready-pair dd {
    margin: 2px 0 0;
    font-weight: 900;
}

.ready-ok {
    color: var(--green);
}

.room-card-footer,
.admin-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.admin-actions {
    justify-content: flex-start;
}

.admin-actions form {
    display: contents;
}

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

.ready-panel {
    padding: 16px;
    background: #f6efe3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.ready-panel strong,
.ready-panel span {
    display: block;
}

.pin-entry {
    display: grid;
    gap: 5px;
    margin: 12px 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.pin-entry input {
    width: 100%;
    max-width: 180px;
    font-size: 1.2rem;
    font-weight: 1000;
    letter-spacing: 0.12em;
    text-align: center;
}

.veto-log {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.veto-log li {
    display: grid;
    grid-template-columns: 130px minmax(140px, 1fr) minmax(120px, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: #f6efe3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.current-step {
    display: grid;
    gap: 2px;
    padding: 14px;
    background: #111315;
    color: #fff;
    border-radius: 8px;
}

.current-step span,
.current-step em {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
}

.veto-form {
    max-width: 520px;
}

.complete-message {
    margin: 0;
    padding: 14px;
    color: #12351f;
    background: #d9f2df;
    border-radius: 8px;
    font-weight: 900;
}

.setup-card span {
    color: var(--muted);
    font-weight: 900;
}

.setup-card strong {
    font-size: 1.35rem;
}

.match-live-body {
    color: #f8f1e4;
    background: #07090d;
    overflow: hidden;
}

.match-live-body .admin-main {
    width: min(1360px, calc(100% - 32px));
    height: calc(100dvh - 72px);
    padding: 12px 0;
    overflow: hidden;
}

.match-live-body .admin-hero {
    display: none;
}

.match-live-body .admin-panel {
    background: #11161d;
    border-color: #2b3440;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.32);
}

.match-live-body .admin-heading span,
.match-live-body .small-text,
.match-live-body .setup-card span,
.match-live-body .setup-card p {
    color: #9aa7b6;
}

.live-control-board {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 300px;
    grid-template-rows: 150px minmax(0, 1fr);
    grid-template-areas:
        "stage stage stage"
        "log banpick setup";
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.live-control-board .admin-panel {
    min-width: 0;
    min-height: 0;
    margin-top: 0;
    padding: 16px;
}

.match-live-stage {
    grid-area: stage;
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 89, 100, 0.24), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(40, 184, 199, 0.2), transparent 34%),
        linear-gradient(135deg, #151a22, #080b10);
}

.live-stage-copy {
    display: grid;
    align-content: center;
    gap: 4px;
}

.live-stage-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1;
}

.live-stage-copy p:last-child {
    margin: 0;
    color: #b5c0cc;
    font-weight: 900;
}

.live-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.live-team {
    position: relative;
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
    padding: 14px 16px;
    overflow: hidden;
    background: #0c1118;
    border: 1px solid #2b3440;
    border-radius: 8px;
}

.live-team::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--team-color);
}

.live-team span {
    color: #9aa7b6;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.live-team strong {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 2.45rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.live-vs {
    display: grid;
    place-items: center;
    width: 72px;
    color: #ff5964;
    font-weight: 1000;
    font-size: 1.8rem;
}

.coin-panel {
    grid-area: log;
    overflow: hidden;
}

.coin-panel.is-active-scene {
    grid-column: 1 / -1;
    grid-row: 2;
}

.coin-panel.is-side-scene {
    display: none;
}

.coin-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: center;
}

.coin-panel.is-active-scene .coin-layout {
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
    gap: 30px;
    height: 100%;
}

.coin-stage {
    display: grid;
    place-items: center;
    min-height: 0;
    height: clamp(132px, 24vh, 190px);
    perspective: 900px;
    background:
        radial-gradient(circle, rgba(255, 89, 100, 0.18), transparent 54%),
        #0b1017;
    border: 1px solid #2b3440;
    border-radius: 8px;
}

.coin-panel.is-active-scene .coin-stage {
    height: min(48vh, 360px);
}

.coin-disc {
    position: relative;
    width: clamp(92px, 13vw, 132px);
    aspect-ratio: 1;
    transform-style: preserve-3d;
    animation: coin-flip-head 2.2s cubic-bezier(0.18, 0.86, 0.26, 1) both;
}

.coin-panel.is-active-scene .coin-disc {
    width: clamp(150px, 18vw, 230px);
}

.coin-stage.is-tail .coin-disc {
    animation-name: coin-flip-tail;
}

.coin-face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #17110a;
    background:
        radial-gradient(circle at 34% 28%, #fff1b8, #d9a441 58%, #8f5d14);
    border: 8px solid #f6d27b;
    border-radius: 50%;
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.45),
        0 18px 44px rgba(217, 164, 65, 0.28);
    backface-visibility: hidden;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 1000;
}

.coin-back {
    transform: rotateY(180deg);
    background:
        radial-gradient(circle at 34% 28%, #eaffff, #28b8c7 58%, #10505c);
    border-color: #9df5ff;
}

@keyframes coin-flip-head {
    0% {
        transform: translateY(24px) rotateX(0deg) rotateY(0deg);
    }
    44% {
        transform: translateY(-54px) rotateX(28deg) rotateY(810deg);
    }
    74% {
        transform: translateY(8px) rotateX(8deg) rotateY(1350deg);
    }
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(1440deg);
    }
}

@keyframes coin-flip-tail {
    0% {
        transform: translateY(24px) rotateX(0deg) rotateY(0deg);
    }
    44% {
        transform: translateY(-54px) rotateX(28deg) rotateY(810deg);
    }
    74% {
        transform: translateY(8px) rotateX(8deg) rotateY(1440deg);
    }
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(1620deg);
    }
}

.coin-result-panel {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 7px 12px;
    align-items: center;
}

.coin-panel.is-active-scene .coin-result-panel {
    grid-template-columns: 96px minmax(0, 1fr);
}

.coin-result-panel span {
    color: #9aa7b6;
    font-weight: 900;
}

.coin-result-panel strong {
    color: #fff;
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    line-height: 1.1;
}

.coin-next-button {
    align-self: end;
}

.banpick-panel {
    grid-area: banpick;
    display: grid;
    grid-template-rows: auto minmax(0, auto) minmax(0, 1fr);
    overflow: hidden;
}

.live-side-panel {
    grid-area: log;
    overflow: hidden;
}

.live-veto-form {
    display: grid;
    gap: 12px;
    max-width: none;
    min-height: 0;
    overflow: hidden;
}

.match-live-body .current-step {
    gap: 0;
    padding: 10px 12px;
}

.match-live-body .current-step strong {
    font-size: 1rem;
}

.match-live-body .button {
    min-height: 40px;
}

.map-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 9px;
    min-height: 0;
    overflow: hidden;
}

.map-choice,
.side-choice {
    position: relative;
    display: block;
    color: inherit;
}

.map-choice input,
.side-choice input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.map-choice-card {
    display: grid;
    gap: 6px;
    min-height: 100%;
    padding: 7px;
    color: #f8f1e4;
    background: #0b1017;
    border: 1px solid #2b3440;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.map-choice-card img,
.side-map-preview img,
.veto-map-cell img,
.live-setup-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

.map-choice-card span {
    font-size: 0.9rem;
    font-weight: 1000;
}

.map-choice input:checked + .map-choice-card,
.side-choice input:checked + span {
    border-color: rgba(255, 89, 100, 0.92);
    box-shadow: 0 0 0 1px rgba(255, 89, 100, 0.35), 0 18px 42px rgba(255, 89, 100, 0.16);
}

.map-choice:hover .map-choice-card {
    transform: translateY(-2px);
    border-color: rgba(40, 184, 199, 0.64);
}

.map-picker-grid.is-preview .map-choice-card {
    cursor: default;
}

.side-map-preview {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #0b1017;
    border: 1px solid #2b3440;
    border-radius: 8px;
}

.side-map-preview strong {
    color: #fff;
    font-size: 1.4rem;
}

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

.side-choice span {
    display: grid;
    place-items: center;
    min-height: 62px;
    color: #fff;
    background: #0b1017;
    border: 1px solid #2b3440;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 1000;
    cursor: pointer;
}

.live-veto-log {
    gap: 7px;
    max-height: 156px;
    margin-bottom: 10px;
    overflow: auto;
}

.live-veto-log li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    background: #0b1017;
    border-color: #2b3440;
}

.veto-map-cell {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    font-weight: 1000;
}

.final-setup-panel {
    grid-area: setup;
    overflow: hidden;
}

.live-setup-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: calc(100% - 54px);
    overflow: auto;
}

.live-setup-card {
    background: #0b1017;
    border-color: #2b3440;
    gap: 8px;
    padding: 10px;
}

.live-setup-card strong {
    color: #fff;
    font-size: 1.15rem;
}

@media (prefers-reduced-motion: reduce) {
    .coin-disc,
    .map-choice-card {
        animation: none;
        transition: none;
    }

    .coin-stage.is-tail .coin-disc {
        transform: rotateY(180deg);
    }
}

.stats-table {
    overflow-x: auto;
}

.stat-add-form {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) minmax(140px, 0.8fr) minmax(140px, 1fr) minmax(120px, 0.8fr) 72px 72px 72px 86px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 14px;
    background: #f6efe3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stat-admin-list {
    gap: 6px;
}

.stat-admin-row {
    grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 0.8fr) minmax(130px, 1fr) minmax(100px, 0.8fr) 70px 70px 70px 82px auto;
}

.delete-row-form {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
}

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

.contact-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #f6efe3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.contact-item div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.contact-item div:first-child span {
    color: var(--muted);
    font-size: 0.86rem;
}

.contact-item p {
    margin: 0;
    white-space: pre-wrap;
}

.contact-item dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.contact-item dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.contact-item dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.login-panel {
    max-width: 440px;
}

.warning-panel {
    border-color: #e5bb53;
    background: #fff4d6;
}

@media (max-width: 980px) {
    .admin-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-card-wide {
        grid-column: 1 / -1;
    }

    .team-admin-form {
        grid-template-columns: minmax(0, 1fr) 120px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 20px;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .hero-content,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        align-items: end;
        min-height: 760px;
    }

    .public-body .hero-content {
        align-items: stretch;
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
    }

    .hero-copy h1,
    .admin-hero h1 {
        font-size: 3.6rem;
    }

    .match-live-stage,
    .coin-layout,
    .side-map-preview {
        grid-template-columns: 1fr;
    }

    .match-live-body .admin-main {
        height: calc(100dvh - 126px);
    }

    .live-control-board {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        grid-template-rows: 130px minmax(0, 1fr) 190px;
        grid-template-areas:
            "stage stage"
            "banpick banpick"
            "log setup";
    }

    .coin-panel.is-active-scene {
        grid-column: 1 / -1;
        grid-row: 2 / -1;
    }

    .coin-panel.is-active-scene .coin-layout {
        grid-template-columns: 1fr;
    }

    .live-versus {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .live-vs {
        width: 46px;
        min-height: 46px;
    }

    .match-grid,
    .rules-grid,
    .room-grid,
    .room-admin-grid,
    .setup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .board-summary,
    .schedule-card {
        grid-template-columns: 1fr;
    }

    .schedule-day {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .schedule-day-heading {
        top: 128px;
    }

    .standings-grid,
    .bracket {
        grid-template-columns: 1fr;
    }

    .bracket-connector {
        display: none;
    }

    .admin-row,
    .match-admin-row,
    .stat-add-form,
    .stat-admin-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .admin-overview,
    .team-admin-form {
        grid-template-columns: 1fr;
    }

    .team-pin-form {
        justify-content: stretch;
    }

    .team-pin-form .button {
        width: 100%;
    }

    .section-inner,
    .admin-main {
        width: min(100% - 28px, 1180px);
    }

    .site-header,
    .site-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .match-live-body .admin-main {
        width: min(100% - 20px, 1180px);
        height: calc(100dvh - 124px);
        padding: 10px 0;
    }

    .live-control-board {
        grid-template-rows: 116px minmax(0, 1fr) 154px;
        gap: 10px;
    }

    .live-control-board .admin-panel {
        padding: 12px;
    }

    .live-stage-copy h2 {
        font-size: 1.75rem;
    }

    .live-stage-copy p:last-child {
        font-size: 0.9rem;
    }

    .match-live-stage .live-versus {
        display: none;
    }

    .live-team {
        padding: 10px 12px;
    }

    .live-team strong {
        font-size: 1.25rem;
    }

    .coin-stage {
        height: 74px;
    }

    .coin-disc {
        width: 58px;
    }

    .coin-face {
        border-width: 5px;
        font-size: 1.55rem;
    }

    .coin-result-panel {
        grid-template-columns: 52px minmax(0, 1fr);
        font-size: 0.86rem;
    }

    .map-choice-card {
        padding: 5px;
    }

    .map-choice-card span {
        font-size: 0.82rem;
    }

    .brand-sub {
        display: none;
    }

    .main-nav a,
    .main-nav button {
        min-height: 34px;
        padding: 5px 9px;
        font-size: 0.9rem;
    }

    .hero-section,
    .hero-content {
        min-height: 690px;
    }

    .public-body .hero-section,
    .public-body .hero-content {
        min-height: 0;
    }

    .public-body .hero-backdrop {
        height: clamp(220px, 58vw, 360px);
    }

    .hero-content {
        width: min(100% - 28px, 1180px);
        padding-top: 52px;
    }

    .public-body .hero-content {
        grid-template-columns: 1fr;
        padding-top: 18px;
        padding-bottom: 34px;
    }

    .public-body .hero-copy {
        align-self: stretch;
    }

    .public-body .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .public-body .hero-actions .button {
        width: 100%;
        min-width: 0;
        padding-right: 10px;
        padding-left: 10px;
    }

    .hero-copy {
        padding-bottom: 10px;
    }

    .hero-copy h1,
    .admin-hero h1 {
        font-size: 3rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .status-grid,
    .board-summary,
    .schedule-day,
    .schedule-card,
    .schedule-versus,
    .match-grid,
    .room-grid,
    .room-admin-grid,
    .setup-grid,
    .rules-grid,
    .form-row,
    .admin-row,
    .match-admin-row,
    .stat-add-form,
    .stat-admin-row,
    .ready-actions,
    .ready-pair,
    .contact-item dl {
        grid-template-columns: 1fr;
    }

    .veto-log li {
        grid-template-columns: 1fr;
    }

    .live-veto-log li,
    .veto-map-cell {
        grid-template-columns: 1fr;
    }

    .map-picker-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
    }

    .map-choice,
    .map-picker-grid.is-preview .map-choice-card {
        flex: 0 0 148px;
        scroll-snap-align: start;
    }

    .schedule-day-heading {
        position: static;
    }

    .schedule-versus span:last-child {
        justify-content: flex-start;
        text-align: left;
    }

    .schedule-ready .button {
        width: 100%;
    }

    .contact-item div:first-child {
        display: grid;
    }

    .notice-item {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }

    .section-heading h2,
    .contact-layout h2,
    .admin-panel h2 {
        font-size: 1.85rem;
    }

    th,
    td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}

/* Final live-room override: one full-screen scene at a time. */
.match-live-body {
    overflow: hidden;
    background: #05070a;
}

.match-live-body .site-header,
.match-live-body .admin-hero,
.match-live-body .flash {
    display: none;
}

.match-live-body .admin-main {
    width: 100% !important;
    height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden;
}

.match-live-body .live-control-board {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 89, 100, 0.18), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(40, 184, 199, 0.18), transparent 32%),
        linear-gradient(135deg, #10151d, #05070a 58%, #090d12);
}

.match-live-body .live-scene {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: clamp(18px, 3vh, 30px);
    width: 100%;
    height: 100%;
    margin: 0;
    padding: clamp(18px, 4vw, 58px);
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.match-live-body [hidden] {
    display: none !important;
}

.match-live-body .live-matchline {
    position: absolute;
    top: clamp(14px, 3vw, 32px);
    left: 50%;
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 22px);
    width: min(920px, calc(100% - 32px));
    transform: translateX(-50%);
}

.match-live-body .coin-layout,
.match-live-body .live-veto-form,
.match-live-body .final-live-result {
    display: grid;
    justify-items: center;
    gap: clamp(16px, 3vh, 30px);
    width: min(1180px, 100%);
    max-width: none;
    margin: 0 auto;
}

.match-live-body .coin-copy {
    text-align: center;
}

.match-live-body .coin-copy h2,
.match-live-body .final-live-result h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 7.2vw, 7rem);
    line-height: 0.95;
    white-space: nowrap;
}

.match-live-body .coin-copy span,
.match-live-body .final-live-result > span,
.match-live-body .current-step span {
    color: #ff5964;
    font-weight: 1000;
    letter-spacing: 0.16em;
}

.match-live-body .coin-stage {
    width: min(56vh, 420px);
    height: auto;
    aspect-ratio: 1;
    min-height: 0;
    border-radius: 999px;
}

.match-live-body .coin-disc,
.match-live-body .coin-panel.is-active-scene .coin-disc {
    width: min(32vh, 230px);
}

.match-live-body .coin-result-panel {
    grid-template-columns: auto auto;
    gap: 8px 20px;
    justify-content: center;
    text-align: center;
}

.match-live-body .coin-result-panel strong {
    font-size: clamp(1.25rem, 3vw, 2.2rem);
}

.match-live-body .current-step {
    justify-items: center;
    width: min(760px, 100%);
    padding: 0;
    text-align: center;
    background: transparent;
}

.match-live-body .current-step strong {
    color: #fff;
    font-size: clamp(2.4rem, 8vw, 5.4rem);
    line-height: 0.98;
}

.match-live-body .current-step em {
    color: #b8c3cf;
    font-size: clamp(1.1rem, 3vw, 2rem);
}

.match-live-body .map-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 1180px;
    overflow: visible;
}

.match-live-body .map-choice input,
.match-live-body .side-choice input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.match-live-body .map-choice-card {
    padding: 8px;
}

.match-live-body .map-choice input:checked + .map-choice-card,
.match-live-body .side-choice input:checked + span {
    border-color: rgba(255, 89, 100, 0.95);
    box-shadow: 0 0 0 1px rgba(255, 89, 100, 0.48), 0 26px 64px rgba(255, 89, 100, 0.18);
}

.match-live-body .coin-next-button,
.match-live-body .live-veto-form > .button {
    width: min(560px, 100%);
    min-height: 56px;
    justify-self: center;
    font-size: 1.05rem;
}

.match-live-body .coin-next-button {
    display: none;
}

.match-live-body .live-veto-form.is-locked-turn .map-choice-card,
.match-live-body .live-veto-form.is-locked-turn .side-choice span {
    opacity: 0.72;
    filter: grayscale(0.35);
}

.match-live-body .live-veto-form.is-locked-turn .button {
    opacity: 0.36;
    cursor: not-allowed;
}

.match-live-body .coin-layout {
    grid-template-columns: minmax(160px, 1fr) minmax(280px, 0.85fr) minmax(160px, 1fr);
    align-items: center;
    width: min(1240px, 100%);
}

.match-live-body .coin-panel.is-active-scene .coin-layout {
    grid-template-columns: minmax(160px, 1fr) minmax(280px, 0.85fr) minmax(160px, 1fr);
}

.match-live-body .coin-center {
    display: grid;
    justify-items: center;
    gap: clamp(16px, 3vh, 28px);
    width: min(560px, 100%);
    min-width: 0;
}

.match-live-body .coin-team {
    position: relative;
    display: grid;
    gap: 10px;
    min-width: 0;
    color: #fff;
    opacity: 0;
    animation: coin-team-left-in 0.72s cubic-bezier(0.16, 0.84, 0.26, 1) 0.24s forwards;
}

.match-live-body .coin-team::after {
    content: "";
    display: block;
    width: min(240px, 72%);
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 89, 100, 0), rgba(255, 89, 100, 0.9));
    transform: scaleX(0);
    animation: coin-team-line 0.62s ease 0.82s forwards;
}

.match-live-body .coin-team span {
    color: #ff5964;
    font-weight: 1000;
    letter-spacing: 0.16em;
}

.match-live-body .coin-team strong {
    overflow-wrap: anywhere;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 0.95;
}

.match-live-body .coin-team-left {
    justify-items: end;
    text-align: right;
}

.match-live-body .coin-team-left::after {
    transform-origin: right;
}

.match-live-body .coin-team-right {
    justify-items: start;
    text-align: left;
    animation-name: coin-team-right-in;
}

.match-live-body .coin-team-right::after {
    background: linear-gradient(90deg, rgba(40, 184, 199, 0.9), rgba(40, 184, 199, 0));
    transform-origin: left;
}

.match-live-body .coin-result-panel {
    grid-column: 1 / -1;
    opacity: 0;
    transform: translateY(18px);
    animation: coin-result-reveal 0.64s ease 2.65s forwards;
}

.match-live-body .live-veto-history {
    position: absolute;
    top: clamp(220px, 34vh, 310px);
    left: clamp(16px, 3vw, 42px);
    z-index: 3;
    display: grid;
    gap: 9px;
    width: min(250px, 22vw);
    max-height: calc(100% - clamp(250px, 38vh, 340px));
    overflow: hidden auto;
    scrollbar-width: none;
    transform: none;
}

.match-live-body .live-veto-history::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.match-live-body .live-side-reactor {
    position: absolute;
    top: clamp(82px, 13vh, 132px);
    z-index: 4;
    display: grid;
    gap: 6px;
    width: min(250px, 20vw);
    min-width: 0;
    color: rgba(255, 255, 255, 0.72);
    opacity: 0.72;
    pointer-events: none;
}

.match-live-body .live-side-left {
    left: clamp(18px, 3vw, 42px);
    text-align: left;
}

.match-live-body .live-side-right {
    right: clamp(18px, 3vw, 42px);
    text-align: right;
}

.match-live-body .live-side-reactor span {
    color: #ff5964;
    font-size: 0.72rem;
    font-weight: 1000;
    letter-spacing: 0.16em;
}

.match-live-body .live-side-reactor strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1.3rem, 2.5vw, 2.4rem);
    line-height: 1;
}

.match-live-body .live-side-reactor.is-actor {
    color: #fff;
    opacity: 1;
    text-shadow: 0 0 22px rgba(255, 89, 100, 0.32);
}

.match-live-body .live-side-reactor.is-opponent {
    opacity: 0.56;
}

.match-live-body .history-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(8, 12, 17, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-left: 3px solid rgba(255, 89, 100, 0.85);
    border-radius: 7px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    animation: history-slide-in 0.38s ease both;
}

.match-live-body .history-pick,
.match-live-body .history-random,
.match-live-body .history-decider {
    border-left-color: rgba(40, 184, 199, 0.9);
}

.match-live-body .history-side {
    border-left-color: rgba(246, 210, 123, 0.92);
}

.match-live-body .history-item span {
    color: #ff5964;
    font-size: 0.72rem;
    font-weight: 1000;
    letter-spacing: 0.12em;
}

.match-live-body .history-item strong,
.match-live-body .history-item em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-live-body .history-item strong {
    color: #fff;
    font-size: 0.9rem;
}

.match-live-body .history-item em {
    color: #b8c3cf;
    font-style: normal;
    font-weight: 900;
}

.match-live-body .banpick-panel {
    --phase-color: #ff5964;
    --phase-glow: rgba(255, 89, 100, 0.42);
    --phase-soft: rgba(255, 89, 100, 0.12);
}

.match-live-body .banpick-panel.is-current-pick,
.match-live-body .banpick-panel.is-current-random,
.match-live-body .banpick-panel.is-current-decider {
    --phase-color: #28b8c7;
    --phase-glow: rgba(40, 184, 199, 0.42);
    --phase-soft: rgba(40, 184, 199, 0.14);
}

.match-live-body .banpick-panel.is-current-side {
    --phase-color: #f6d27b;
    --phase-glow: rgba(246, 210, 123, 0.38);
    --phase-soft: rgba(246, 210, 123, 0.12);
}

.match-live-body .banpick-panel[data-current-action]::before {
    content: attr(data-current-action);
    position: absolute;
    top: 45%;
    left: 50%;
    z-index: 0;
    color: var(--phase-color);
    font-size: clamp(7rem, 24vw, 22rem);
    font-weight: 1000;
    letter-spacing: 0.04em;
    line-height: 0.8;
    opacity: 0.065;
    pointer-events: none;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.match-live-body .banpick-panel.is-current-ban {
    background:
        radial-gradient(circle at 50% 48%, var(--phase-soft), transparent 38%),
        radial-gradient(circle at 18% 20%, rgba(255, 89, 100, 0.12), transparent 32%);
}

.match-live-body .banpick-panel.is-current-pick {
    background:
        radial-gradient(circle at 50% 48%, var(--phase-soft), transparent 38%),
        radial-gradient(circle at 82% 18%, rgba(40, 184, 199, 0.14), transparent 32%);
}

.match-live-body .banpick-panel .current-step {
    position: relative;
    z-index: 2;
}

.match-live-body .banpick-panel .current-step::after {
    content: "";
    display: block;
    width: min(320px, 70vw);
    height: 4px;
    margin-top: clamp(10px, 2vh, 18px);
    background: linear-gradient(90deg, transparent, var(--phase-color), transparent);
    box-shadow: 0 0 28px var(--phase-glow);
}

.match-live-body .banpick-panel .current-step span {
    color: var(--phase-color);
    text-shadow: 0 0 24px var(--phase-glow);
}

.match-live-body .banpick-panel .current-step strong {
    text-shadow: 0 0 40px var(--phase-glow), 0 8px 34px rgba(0, 0, 0, 0.54);
}

.match-live-body .banpick-panel.is-current-pick .map-choice input:checked + .map-choice-card,
.match-live-body .banpick-panel.is-current-pick .side-choice input:checked + span {
    border-color: rgba(40, 184, 199, 0.95);
    box-shadow: 0 0 0 1px rgba(40, 184, 199, 0.48), 0 26px 64px rgba(40, 184, 199, 0.18);
}

.match-live-body .banpick-panel.is-current-pick .live-veto-form > .button.primary {
    color: #03191d;
    background: #28b8c7;
    box-shadow: 0 0 34px rgba(40, 184, 199, 0.26);
}

.match-live-body .banpick-panel.is-current-ban .live-veto-form > .button.primary {
    background: #ff5964;
    box-shadow: 0 0 34px rgba(255, 89, 100, 0.28);
}

.match-live-body .banpick-panel .live-veto-form,
.match-live-body .banpick-panel .final-live-result {
    width: min(940px, calc(100% - 390px));
    transform: translateX(clamp(96px, 9vw, 150px));
}

.match-live-body .banpick-panel.is-complete-scene .live-matchline {
    display: none;
}

.match-live-body .banpick-panel.is-complete-scene .final-live-result {
    gap: clamp(10px, 2vh, 18px);
}

.match-live-body .banpick-panel.is-complete-scene .final-live-result h2 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.match-live-body .banpick-panel.is-complete-scene .final-live-result > span {
    font-size: 0.88rem;
}

.match-live-body .banpick-panel.is-complete-scene .live-setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    width: 100%;
}

.match-live-body .banpick-panel.is-complete-scene .live-setup-card {
    gap: 8px;
    padding: 10px;
}

.match-live-body .banpick-panel.is-complete-scene .live-setup-card img {
    aspect-ratio: 16 / 7;
    max-height: 300px;
}

.match-live-body .banpick-panel .map-picker-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.match-live-body .live-veto-form.is-system-step > .button {
    display: none;
}

.match-live-body .transition-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    height: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.match-live-body .transition-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff5964, #f6d27b, #28b8c7);
    box-shadow: 0 0 22px rgba(255, 89, 100, 0.42);
    transform: scaleX(0);
    transform-origin: left;
    animation: transition-progress-fill var(--transition-duration, 7s) linear forwards;
}

.match-live-body .transition-progress-coin {
    --transition-duration: 7s;
}

.match-live-body .transition-progress-system {
    --transition-duration: 0.72s;
}

.match-live-body .action-reveal {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: clamp(24px, 5vw, 72px);
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 34%),
        rgba(2, 4, 7, 0.64);
    animation: action-reveal-bg 0.18s ease both;
}

.match-live-body .action-reveal-card {
    position: relative;
    display: grid;
    place-items: center;
    width: min(920px, 78vw);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #05070a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 36px 120px rgba(0, 0, 0, 0.62);
    animation: action-card-in 0.28s cubic-bezier(0.2, 0.88, 0.24, 1) both;
}

.match-live-body .action-reveal-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-live-body .action-reveal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(5, 7, 10, 0.12), rgba(5, 7, 10, 0.58)),
        radial-gradient(circle at center, transparent 32%, rgba(5, 7, 10, 0.42));
}

.match-live-body .action-reveal-card strong {
    position: relative;
    z-index: 3;
    color: #fff;
    font-size: clamp(4rem, 13vw, 10rem);
    font-weight: 1000;
    letter-spacing: 0.08em;
    line-height: 0.85;
}

.match-live-body .action-reveal-card span {
    position: absolute;
    right: clamp(18px, 3vw, 42px);
    bottom: clamp(16px, 3vw, 36px);
    z-index: 3;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2.8rem);
    font-weight: 1000;
}

.match-live-body .action-reveal-ban .action-reveal-card {
    border-color: rgba(255, 89, 100, 0.8);
}

.match-live-body .action-reveal-ban .action-reveal-card img {
    filter: grayscale(1) contrast(1.18) brightness(0.52);
    transform: scale(1.04);
}

.match-live-body .action-reveal-ban .action-reveal-card::after {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: 2;
    background:
        linear-gradient(135deg, transparent 45%, rgba(255, 89, 100, 0.92) 46%, rgba(255, 89, 100, 0.92) 54%, transparent 55%),
        linear-gradient(45deg, transparent 45%, rgba(255, 89, 100, 0.72) 46%, rgba(255, 89, 100, 0.72) 54%, transparent 55%);
    animation: ban-cross-in 0.46s cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.match-live-body .action-reveal-ban .action-reveal-card strong {
    color: #fff;
    transform: rotate(-8deg);
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.72), 0 0 44px rgba(255, 89, 100, 0.64);
    animation: ban-title-slam 0.48s cubic-bezier(0.18, 0.9, 0.2, 1) both;
}

.match-live-body .action-reveal-pick .action-reveal-card {
    border-color: rgba(40, 184, 199, 0.86);
}

.match-live-body .action-reveal-pick .action-reveal-card img {
    filter: saturate(1.5) brightness(0.82);
    transform: scale(1.04);
}

.match-live-body .action-reveal-pick .action-reveal-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle, rgba(157, 245, 255, 0.44), transparent 38%),
        linear-gradient(90deg, transparent, rgba(40, 184, 199, 0.3), transparent);
    animation: pick-scan 0.72s ease both;
}

.match-live-body .action-reveal-pick .action-reveal-card strong,
.match-live-body .action-reveal-random .action-reveal-card strong,
.match-live-body .action-reveal-decider .action-reveal-card strong {
    color: #9df5ff;
    text-shadow: 0 0 24px rgba(40, 184, 199, 0.92), 0 8px 34px rgba(0, 0, 0, 0.68);
    animation: pick-title-rise 0.48s ease both;
}

.match-live-body .action-reveal-side .action-reveal-card {
    border-color: rgba(246, 210, 123, 0.86);
}

.match-live-body .action-reveal-side .action-reveal-card img {
    filter: saturate(1.12) brightness(0.68);
    transform: scale(1.04);
}

.match-live-body .action-reveal-side .action-reveal-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 50% 50%, rgba(246, 210, 123, 0.34), transparent 34%),
        linear-gradient(120deg, transparent 30%, rgba(246, 210, 123, 0.3), transparent 70%);
    animation: side-sweep 0.9s ease both;
}

.match-live-body .action-reveal-side .action-reveal-card strong {
    color: #f6d27b;
    text-shadow: 0 0 28px rgba(246, 210, 123, 0.82), 0 8px 34px rgba(0, 0, 0, 0.72);
    animation: side-title-snap 0.48s ease both;
}

.match-live-body .action-reveal-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.match-live-body .action-reveal-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #ff5964;
    transform: scaleX(0);
    transform-origin: left;
    animation: transition-progress-fill var(--action-reveal-duration, 1.55s) linear forwards;
}

.match-live-body .action-reveal-pick .action-reveal-progress span,
.match-live-body .action-reveal-random .action-reveal-progress span,
.match-live-body .action-reveal-decider .action-reveal-progress span {
    background: #28b8c7;
}

.match-live-body .action-reveal-side .action-reveal-progress span {
    background: #f6d27b;
}

.match-live-body .action-reveal-random .action-reveal-progress span,
.match-live-body .action-reveal-decider .action-reveal-progress span {
    animation-duration: var(--action-reveal-duration, 1s);
}

.match-live-body .map-choice,
.match-live-body .map-picker-grid.is-preview .map-choice-card {
    animation: map-card-enter 0.42s ease both;
    animation-delay: calc(var(--i, 0) * 46ms);
}

.match-live-body .live-veto-form.is-resolving .map-choice-card,
.match-live-body .live-veto-form.is-resolving .side-choice span {
    opacity: 0.34;
    transform: scale(0.96);
}

.match-live-body .map-choice-card {
    position: relative;
    overflow: hidden;
}

.match-live-body .side-choice span {
    position: relative;
    overflow: hidden;
}

.match-live-body .map-choice-card::after,
.match-live-body .side-choice span::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.match-live-body .live-veto-form.is-resolving .map-picker-grid.is-preview .map-choice-card {
    animation: map-system-sweep 0.68s ease both;
    animation-delay: calc(var(--i, 0) * 48ms);
}

.match-live-body .map-choice.is-resolving-choice .map-choice-card,
.match-live-body .map-choice-card.is-resolving-choice,
.match-live-body .side-choice.is-resolving-choice span {
    opacity: 1;
    animation: map-lock-pulse 0.68s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.match-live-body .live-veto-form.is-resolving-ban .map-choice.is-resolving-choice .map-choice-card,
.match-live-body .live-veto-form.is-resolving-ban .map-choice-card.is-resolving-choice {
    animation-name: map-ban-slam;
}

.match-live-body .live-veto-form.is-resolving-ban .map-choice.is-resolving-choice .map-choice-card::after,
.match-live-body .live-veto-form.is-resolving-ban .map-choice-card.is-resolving-choice::after {
    content: "BAN";
    display: grid;
    place-items: center;
    color: #fff;
    background:
        linear-gradient(135deg, transparent 42%, rgba(255, 89, 100, 0.96) 43%, rgba(255, 89, 100, 0.96) 57%, transparent 58%),
        rgba(28, 4, 8, 0.48);
    font-size: clamp(1.6rem, 4vw, 3.8rem);
    font-weight: 1000;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.72);
    animation: ban-stamp 0.68s ease both;
}

.match-live-body .live-veto-form.is-resolving-pick .map-choice.is-resolving-choice .map-choice-card,
.match-live-body .live-veto-form.is-resolving-pick .map-choice-card.is-resolving-choice {
    animation-name: map-pick-lift;
}

.match-live-body .live-veto-form.is-resolving-pick .map-choice.is-resolving-choice .map-choice-card::after,
.match-live-body .live-veto-form.is-resolving-pick .map-choice-card.is-resolving-choice::after {
    content: "PICK";
    display: grid;
    place-items: center;
    color: #03191d;
    background:
        radial-gradient(circle, rgba(157, 245, 255, 0.86), rgba(40, 184, 199, 0.38) 44%, transparent 65%),
        linear-gradient(90deg, transparent, rgba(157, 245, 255, 0.58), transparent);
    font-size: clamp(1.4rem, 3.6vw, 3.4rem);
    font-weight: 1000;
    letter-spacing: 0.12em;
    text-shadow: 0 2px 16px rgba(255, 255, 255, 0.4);
    animation: pick-lock 0.68s ease both;
}

.match-live-body .live-veto-form.is-resolving-side .side-choice.is-resolving-choice span::after {
    content: "SIDE";
    display: grid;
    place-items: center;
    color: #1c1403;
    background:
        radial-gradient(circle, rgba(246, 210, 123, 0.92), rgba(246, 210, 123, 0.4) 48%, transparent 68%);
    font-size: clamp(1.3rem, 3.4vw, 3.1rem);
    font-weight: 1000;
    letter-spacing: 0.12em;
    text-shadow: 0 2px 16px rgba(255, 255, 255, 0.32);
    animation: side-choice-burst 0.68s ease both;
}

.match-live-body .banpick-panel.is-resolving-ban .live-side-reactor.is-opponent {
    animation: opponent-ban-hit 0.68s cubic-bezier(0.2, 0.86, 0.3, 1) both;
}

.match-live-body .banpick-panel.is-resolving-ban .live-side-reactor.is-actor {
    animation: actor-ban-flash 0.68s ease both;
}

.match-live-body .banpick-panel.is-resolving-pick .live-side-reactor.is-actor {
    animation: actor-pick-rise 0.68s ease both;
}

.match-live-body .banpick-panel.is-resolving-pick .live-side-reactor.is-opponent {
    animation: opponent-pick-wave 0.68s ease both;
}

.match-live-body .banpick-panel.is-resolving-side .live-side-reactor.is-actor {
    animation: actor-side-snap 0.68s ease both;
}

.match-live-body .live-veto-form.is-resolving > .button {
    animation: confirm-flash 0.68s ease both;
}

.match-live-body .setup-side-pair {
    display: grid;
    gap: 8px;
    width: 100%;
}

.match-live-body .setup-side-pair span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
}

.match-live-body .setup-side-pair b,
.match-live-body .setup-side-pair em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-live-body .setup-side-pair b {
    color: #fff;
    font-size: 0.86rem;
}

.match-live-body .setup-side-pair em {
    color: #ff5964;
    font-style: normal;
    font-weight: 1000;
}

.stream-body .stream-control-board {
    background:
        radial-gradient(circle at 20% 22%, rgba(255, 89, 100, 0.18), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(40, 184, 199, 0.2), transparent 34%),
        linear-gradient(135deg, #0f151d, #04060a 58%, #081018);
}

.stream-body .stream-ready-scene {
    align-content: center;
}

.stream-body .stream-ready-layout {
    display: grid;
    gap: clamp(28px, 5vh, 54px);
    width: min(1240px, 100%);
}

.stream-body .stream-ready-meta {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
}

.stream-body .stream-ready-meta span {
    color: #ff5964;
    font-size: clamp(0.82rem, 1.5vw, 1rem);
    font-weight: 1000;
    letter-spacing: 0.16em;
}

.stream-body .stream-ready-meta strong {
    color: #fff;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 0.95;
}

.stream-body .stream-ready-meta em {
    color: #9aa7b6;
    font-style: normal;
    font-weight: 900;
}

.stream-body .stream-ready-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.34fr) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 38px);
    align-items: center;
}

.stream-body .stream-team-ready {
    position: relative;
    display: grid;
    align-content: center;
    gap: clamp(14px, 2.5vh, 24px);
    min-height: clamp(260px, 38vh, 430px);
    padding: clamp(22px, 4vw, 46px);
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(8, 12, 17, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    box-shadow: 0 36px 110px rgba(0, 0, 0, 0.42);
}

.stream-body .stream-team-ready::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    opacity: 0;
    transform: translateX(-100%);
}

.stream-body .stream-team-ready.is-ready {
    border-color: rgba(76, 240, 161, 0.72);
    box-shadow: 0 36px 120px rgba(30, 220, 143, 0.18), 0 0 0 1px rgba(76, 240, 161, 0.28);
}

.stream-body .stream-team-ready.is-ready::before {
    opacity: 1;
    animation: ready-scan 1.4s ease both;
}

.stream-body .stream-team-ready span {
    color: #ff5964;
    font-size: 0.82rem;
    font-weight: 1000;
    letter-spacing: 0.16em;
}

.stream-body .stream-team-ready strong {
    color: #fff;
    overflow-wrap: anywhere;
    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: 0.9;
}

.stream-body .stream-team-ready em {
    justify-self: start;
    min-width: 132px;
    padding: 6px 12px;
    color: #9aa7b6;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    font-style: normal;
    font-weight: 1000;
    text-align: center;
}

.stream-body .stream-team-ready.is-ready em {
    color: #07100c;
    background: #4cf0a1;
    border-color: #4cf0a1;
}

.stream-body .stream-ready-center {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #fff;
    text-align: center;
}

.stream-body .stream-ready-center span {
    color: #9aa7b6;
    font-size: 0.75rem;
    font-weight: 1000;
    letter-spacing: 0.16em;
}

.stream-body .stream-ready-center strong {
    color: #fff;
    font-size: clamp(2rem, 5vw, 5rem);
    line-height: 0.85;
}

.stream-body .stream-ready-center i {
    color: #28b8c7;
    font-style: normal;
    font-weight: 1000;
    letter-spacing: 0.08em;
}

.stream-body .stream-ready-line {
    height: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.stream-body .stream-ready-line span {
    display: block;
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg, #ff5964, #f6d27b, #28b8c7);
    box-shadow: 0 0 28px rgba(40, 184, 199, 0.36);
    animation: stream-ready-line 2.4s ease-in-out infinite alternate;
}

.stream-body .stream-banpick-panel .stream-current-stage {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: clamp(16px, 3vh, 28px);
    width: min(980px, calc(100% - 390px));
    margin: 0 auto;
    padding-top: clamp(56px, 8vh, 92px);
    transform: translateX(clamp(96px, 9vw, 150px));
}

.stream-body .stream-banpick-panel .current-step strong {
    font-size: clamp(2.3rem, 6.2vw, 5.6rem);
}

.stream-body .stream-banpick-panel .current-step em {
    font-size: clamp(1rem, 2.2vw, 1.7rem);
}

.stream-body .stream-banpick-panel .live-matchline {
    top: clamp(12px, 2.1vw, 24px);
    z-index: 6;
    width: min(760px, calc(100% - 32px));
    padding: 4px 12px;
    background: rgba(5, 7, 10, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.stream-body .live-veto-history {
    top: clamp(210px, 28vh, 260px);
    width: min(230px, 17vw);
    max-height: none;
    gap: 5px;
    overflow: visible;
}

.stream-body .history-item {
    gap: 1px;
    padding: 6px 8px;
    background: rgba(8, 12, 17, 0.58);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.stream-body .history-item span {
    font-size: 0.62rem;
}

.stream-body .history-item strong {
    font-size: 0.72rem;
}

.stream-body .history-item em {
    font-size: 0.82rem;
}

.stream-body .stream-map-grid {
    width: 100%;
    max-width: 980px;
}

.stream-body .stream-map-grid .map-choice-card {
    cursor: default;
    animation: map-card-enter 0.42s ease both;
    animation-delay: calc(var(--i, 0) * 46ms);
}

.stream-body .stream-map-grid-ban .map-choice-card {
    border-color: rgba(255, 89, 100, 0.26);
    filter: saturate(0.92);
}

.stream-body .stream-map-grid-pick .map-choice-card {
    border-color: rgba(40, 184, 199, 0.28);
    box-shadow: 0 18px 48px rgba(40, 184, 199, 0.08);
}

.stream-body .stream-side-preview {
    width: min(620px, 100%);
    grid-template-columns: 1fr;
    text-align: center;
}

.stream-body .stream-side-choice-grid {
    width: min(620px, 100%);
}

.stream-body .stream-side-choice-grid span {
    display: grid;
    place-items: center;
    min-height: 74px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(246, 210, 123, 0.32);
    border-radius: 8px;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 1000;
}

@keyframes ready-scan {
    to {
        transform: translateX(100%);
    }
}

@keyframes stream-ready-line {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(138%);
    }
}

@keyframes coin-team-left-in {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes coin-team-right-in {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes coin-team-line {
    to {
        transform: scaleX(1);
    }
}

@keyframes coin-result-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes history-slide-in {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes map-card-enter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes map-lock-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 1px rgba(255, 89, 100, 0.48), 0 26px 64px rgba(255, 89, 100, 0.18);
    }
    54% {
        transform: scale(1.06);
        box-shadow: 0 0 0 2px rgba(255, 89, 100, 0.92), 0 0 48px rgba(255, 89, 100, 0.48);
    }
    100% {
        transform: scale(0.98);
        box-shadow: 0 0 0 1px rgba(255, 89, 100, 0.54), 0 18px 46px rgba(255, 89, 100, 0.2);
    }
}

@keyframes map-ban-slam {
    0% {
        transform: scale(1);
        filter: saturate(1);
    }
    40% {
        transform: scale(1.04) rotate(-1deg);
        filter: saturate(1.5) contrast(1.1);
        box-shadow: 0 0 0 2px rgba(255, 89, 100, 0.9), 0 0 56px rgba(255, 89, 100, 0.5);
    }
    100% {
        transform: scale(0.96) rotate(0deg);
        filter: grayscale(0.75) brightness(0.72);
        box-shadow: 0 0 0 1px rgba(255, 89, 100, 0.56), 0 16px 46px rgba(255, 89, 100, 0.26);
    }
}

@keyframes ban-stamp {
    0% {
        opacity: 0;
        transform: scale(1.45) rotate(-12deg);
    }
    46% {
        opacity: 1;
        transform: scale(1) rotate(-8deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(-8deg);
    }
}

@keyframes map-pick-lift {
    0% {
        transform: scale(1);
        filter: saturate(1);
    }
    52% {
        transform: translateY(-9px) scale(1.07);
        filter: saturate(1.55) brightness(1.12);
        box-shadow: 0 0 0 2px rgba(40, 184, 199, 0.95), 0 0 64px rgba(40, 184, 199, 0.52);
    }
    100% {
        transform: translateY(-3px) scale(1.02);
        filter: saturate(1.25);
        box-shadow: 0 0 0 1px rgba(40, 184, 199, 0.7), 0 22px 60px rgba(40, 184, 199, 0.28);
    }
}

@keyframes pick-lock {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.82);
    }
    58% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes opponent-ban-hit {
    0%,
    100% {
        opacity: 0.56;
        transform: translateX(0);
        color: rgba(255, 255, 255, 0.72);
    }
    22% {
        opacity: 1;
        transform: translateX(-10px);
        color: #ff5964;
    }
    40% {
        transform: translateX(8px);
    }
    58% {
        transform: translateX(-4px);
    }
}

@keyframes actor-ban-flash {
    0%,
    100% {
        text-shadow: 0 0 22px rgba(255, 89, 100, 0.32);
    }
    50% {
        text-shadow: 0 0 36px rgba(255, 89, 100, 0.82);
    }
}

@keyframes actor-pick-rise {
    0%,
    100% {
        transform: translateY(0);
        text-shadow: 0 0 22px rgba(40, 184, 199, 0.32);
    }
    48% {
        transform: translateY(-8px);
        text-shadow: 0 0 42px rgba(40, 184, 199, 0.78);
    }
}

@keyframes opponent-pick-wave {
    0%,
    100% {
        opacity: 0.56;
        transform: translateY(0);
    }
    50% {
        opacity: 0.78;
        transform: translateY(5px);
    }
}

@keyframes actor-side-snap {
    0%,
    100% {
        transform: translateX(0);
    }
    45% {
        transform: translateX(8px);
    }
}

@keyframes map-system-sweep {
    0% {
        opacity: 0.28;
        transform: translateY(0) scale(0.98);
    }
    55% {
        opacity: 1;
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 0 34px rgba(40, 184, 199, 0.34);
    }
    100% {
        opacity: 0.54;
        transform: translateY(0) scale(0.98);
    }
}

@keyframes confirm-flash {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.45);
    }
}

@keyframes transition-progress-fill {
    to {
        transform: scaleX(1);
    }
}

@keyframes action-reveal-bg {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes action-card-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ban-cross-in {
    from {
        opacity: 0;
        transform: scale(1.18) rotate(-4deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes ban-title-slam {
    from {
        opacity: 0;
        transform: scale(1.34) rotate(-16deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(-8deg);
    }
}

@keyframes pick-scan {
    from {
        opacity: 0;
        transform: translateX(-18%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pick-title-rise {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes side-sweep {
    from {
        opacity: 0;
        transform: translateX(-18%) skewX(-8deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) skewX(0);
    }
}

@keyframes side-title-snap {
    from {
        opacity: 0;
        transform: translateX(-22px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes side-choice-burst {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }
    58% {
        opacity: 1;
        transform: scale(1.04);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 760px) {
    .match-live-body .live-scene {
        padding: 16px;
    }

    .match-live-body .live-matchline {
        display: none;
    }

    .match-live-body .coin-copy h2,
    .match-live-body .final-live-result h2 {
        font-size: clamp(2.5rem, 15vw, 4.2rem);
    }

    .match-live-body .coin-stage {
        width: min(58vw, 240px);
    }

    .match-live-body .coin-disc,
    .match-live-body .coin-panel.is-active-scene .coin-disc {
        width: min(36vw, 150px);
    }

    .match-live-body .current-step strong {
        font-size: clamp(2rem, 11vw, 3.2rem);
    }

    .match-live-body .map-picker-grid {
        display: flex;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }

    .match-live-body .map-choice,
    .match-live-body .map-picker-grid.is-preview .map-choice-card {
        flex: 0 0 min(68vw, 230px);
        scroll-snap-align: center;
    }

    .match-live-body .coin-layout {
        grid-template-columns: 1fr 1fr;
    }

    .match-live-body .coin-panel.is-active-scene .coin-layout {
        grid-template-columns: 1fr 1fr;
    }

    .match-live-body .coin-center,
    .match-live-body .coin-result-panel {
        grid-column: 1 / -1;
    }

    .match-live-body .coin-team strong {
        font-size: clamp(1.35rem, 8vw, 2.4rem);
    }

    .match-live-body .live-veto-history {
        top: auto;
        right: 16px;
        bottom: 14px;
        left: 16px;
        grid-auto-flow: column;
        grid-auto-columns: minmax(132px, 1fr);
        width: auto;
        max-height: 90px;
        overflow: auto hidden;
        transform: none;
    }

    .match-live-body .live-side-reactor {
        display: none;
    }

    .match-live-body .banpick-panel .live-veto-form,
    .match-live-body .banpick-panel .final-live-result {
        width: 100%;
        transform: none;
    }

    .stream-body .stream-ready-layout {
        gap: 20px;
    }

    .stream-body .stream-ready-versus {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stream-body .stream-team-ready {
        min-height: 180px;
        padding: 18px;
    }

    .stream-body .stream-team-ready strong {
        font-size: clamp(2rem, 12vw, 3.4rem);
    }

    .stream-body .stream-ready-center {
        order: -1;
    }

    .stream-body .stream-banpick-panel .stream-current-stage {
        width: 100%;
        transform: none;
    }

    .stream-body .stream-side-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
