@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&display=swap");

:root {
    --bg: #f6f0e8;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-dark: rgba(15, 16, 22, 0.88);
    --text: #1e1d1a;
    --muted: #666055;
    --accent: #d7263d;
    --accent-2: #1b998b;
    --line: rgba(30, 29, 26, 0.12);
    --shadow: 0 20px 60px rgba(22, 20, 17, 0.12);
    --radius: 24px;
    --font-display: "Avenir Next Condensed", "Arial Narrow", sans-serif;
    --font-body: "Avenir Next", Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(215, 38, 61, 0.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(27, 153, 139, 0.18), transparent 30%),
        var(--bg);
}

body.register-page {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 26%),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.14), transparent 28%),
        #FF8800;
}

body.register-page .brand-mark,
body.register-page .button.primary,
body.register-page .duplicate-warning-action {
    color: #FF29B6;
}

body.register-page .input-hint {
    color: rgba(255, 41, 182, 0.86);
}

h1, h2, h3, .versus, .brand-mark {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-name-title {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    background: linear-gradient(90deg, var(--player-1-color, #1AC2E6), var(--player-2-color, #FF29B6));
    color: var(--player-1-color, #1AC2E6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow-wrap: anywhere;
}

a {
    color: inherit;
}

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

label {
    display: grid;
    gap: 0.45rem;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
}

textarea {
    resize: vertical;
}

.eyebrow {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--muted);
}

.brand-lockup,
.panel-head,
.entry-head,
.admin-topbar,
.topbar-actions,
.score-row,
.screen-top,
.screen-battle,
.duelist,
.actions,
.mini-actions {
    display: flex;
    align-items: center;
}

.brand-lockup,
.panel-head,
.entry-head,
.admin-topbar,
.score-row,
.screen-top,
.screen-battle {
    justify-content: space-between;
}

.stack-lg,
.stack-md,
.stack-sm {
    display: grid;
}

.stack-lg { gap: 1.25rem; }
.stack-md { gap: 1rem; }
.stack-sm { gap: 0.75rem; }

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

.register-shell,
.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.register-card,
.login-card,
.panel {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.register-card {
    width: min(760px, 100%);
    padding: 2rem;
}

.login-card {
    width: min(420px, 100%);
    padding: 2rem;
}

.brand-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, var(--accent), #ff8c42);
    box-shadow: 0 12px 24px rgba(215, 38, 61, 0.22);
}

.register-brand-mark {
    overflow: hidden;
    padding: 0;
}

.brand-logo-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.button {
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 120ms ease, opacity 120ms ease;
}

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

.button.primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), #f46036);
}

.button.ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.button.ghost.danger {
    color: #9f1239;
    border-color: rgba(159, 18, 57, 0.18);
    background: rgba(255, 228, 230, 0.9);
}

.notice {
    padding: 1rem 1.2rem;
    border-radius: 18px;
}

.notice.success {
    background: rgba(27, 153, 139, 0.12);
    border: 1px solid rgba(27, 153, 139, 0.24);
}

.notice.error {
    background: rgba(215, 38, 61, 0.1);
    border: 1px solid rgba(215, 38, 61, 0.24);
}

.duplicate-warning-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
}

.duplicate-warning-modal[hidden] {
    display: none;
}

.duplicate-warning-panel {
    width: min(100%, 520px);
    min-height: min(88vh, 760px);
    display: grid;
    gap: 1rem;
    align-content: center;
    padding: 1.25rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 139, 0, 0.18), rgba(124, 58, 237, 0.18)), #000;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.duplicate-warning-video {
    width: 100%;
    max-height: 68vh;
    border-radius: 22px;
    background: #000;
}

.duplicate-warning-fallback {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.duplicate-warning-action {
    min-height: 56px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.checkbox-row {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.register-vote-panel {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.register-vote-panel[hidden] {
    display: none;
}

.register-vote-head h2 {
    margin: 0;
    font-size: 2rem;
}

.register-vote-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.register-vote-button {
    min-height: 170px;
    display: grid;
    align-content: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 24px;
    padding: 1rem;
    background: var(--vote-color, #1AC2E6);
    color: #080808;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    text-align: center;
    text-transform: uppercase;
}

.register-vote-button span {
    font-weight: 800;
    font-size: 1rem;
    opacity: 0.74;
}

.register-vote-button strong {
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 4.6rem);
    line-height: 0.9;
    overflow-wrap: anywhere;
}

body.vote-light-active {
    background: var(--vote-light-color, #1AC2E6);
    overflow: hidden;
}

body.vote-light-active .register-card {
    min-height: 100vh;
    width: 100vw;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--vote-light-color, #1AC2E6);
    box-shadow: none;
    backdrop-filter: none;
}

body.vote-light-active .brand-lockup,
body.vote-light-active form,
body.vote-light-active .notice,
body.vote-light-active .input-hint {
    display: none;
}

.vote-light-card {
    width: 100vw;
    min-height: 100vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1.25rem;
    padding: 2rem;
    background: var(--vote-light-color, #1AC2E6);
    color: #080808;
    text-align: center;
    text-transform: uppercase;
}

.vote-light-label {
    font-weight: 900;
    font-size: clamp(2rem, 9vw, 5rem);
    line-height: 0.95;
}

.vote-light-player {
    font-family: var(--font-display);
    font-size: clamp(4rem, 22vw, 11rem);
    line-height: 0.85;
    overflow-wrap: anywhere;
}

.vote-light-return {
    min-height: 56px;
    margin-top: 1rem;
    padding: 0.9rem 1.3rem;
    border: 3px solid rgba(0, 0, 0, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #080808;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.admin-shell {
    padding: 1.5rem;
}

.admin-topbar {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 132px;
    margin-bottom: 1.25rem;
    gap: 1rem;
    align-items: start;
}

.topbar-brand {
    min-width: 0;
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding-top: 0.35rem;
}

.topbar-public {
    padding: 0.9rem 1rem 1rem;
}

.midi-status {
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(30, 29, 26, 0.08);
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.midi-controls {
    display: grid;
    align-items: end;
    gap: 0.55rem;
    justify-items: end;
}

.midi-controls label {
    min-width: 280px;
    gap: 0.25rem;
    font-size: 0.72rem;
}

.midi-controls select {
    padding: 0.42rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
}

.midi-controls input[type="range"] {
    width: 220px;
}

.admin-audio-unlock {
    justify-self: end;
    font-size: 0.78rem;
    white-space: nowrap;
}

.admin-audio-unlock.is-hidden {
    display: none;
}

.admin-audio-root {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    left: -9999px;
    top: -9999px;
}

.admin-audio-player {
    width: 1px;
    height: 1px;
}

.topbar-settings-form {
    display: grid;
    gap: 0.9rem;
}

.topbar-settings-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: start;
}

.topbar-settings-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 130px auto;
    gap: 0.7rem;
    align-items: end;
}

.topbar-settings-message {
    grid-column: 1 / 3;
}

.topbar-settings-form label {
    font-size: 0.82rem;
}

.topbar-settings-form input,
.topbar-settings-form select {
    padding: 0.58rem 0.72rem;
}

.topbar-public-body {
    display: grid;
    grid-template-columns: minmax(0, 700px) 780px;
    gap: 1rem;
    align-items: start;
}

.topbar-media-column,
.topbar-screen-column {
    min-width: 0;
}

.media-bank-tabs {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.media-bank-tab {
    min-width: 56px;
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.media-bank-tab.is-active {
    color: white;
    background: linear-gradient(135deg, var(--accent), #f46036);
    border-color: transparent;
}

.topbar-screen-mini {
    width: 780px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: #050505;
    border: 1px solid rgba(30, 29, 26, 0.1);
    box-shadow: 0 8px 24px rgba(22, 20, 17, 0.12);
    position: relative;
}

.topbar-screen-mini iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    pointer-events: none;
}

.media-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    align-items: start;
}

.media-slot-card {
    display: grid;
    gap: 0.24rem;
    padding: 0.26rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    min-width: 0;
}

.media-slot-card[hidden] {
    display: none;
}

.media-slot-card.is-active {
    border-color: rgba(27, 153, 139, 0.38);
    box-shadow: inset 0 0 0 2px rgba(27, 153, 139, 0.14);
}

.media-slot-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a0a;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.media-slot-preview img,
.media-slot-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-slot-empty {
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
}

.media-slot-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.12rem;
    padding: 0.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.36));
    color: #ffffff;
    text-align: center;
    pointer-events: none;
}

.media-slot-note {
    font-size: 0.82rem;
    line-height: 1.05;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.media-slot-name {
    font-size: 0.7rem;
    line-height: 1.05;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-slot-meta {
    display: grid;
    gap: 0.2rem;
    align-content: start;
}

.media-slot-mode-select {
    padding: 0.24rem 0.42rem;
    font-size: 0.62rem;
    border-radius: 10px;
}

.media-slot-meta input[type="file"] {
    font-size: 0.58rem;
    padding: 0.26rem 0.32rem;
}

.topbar-actions,
.mini-actions,
.actions,
.search-links {
    gap: 0.65rem;
    flex-wrap: wrap;
}

.topbar-actions {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.topbar-actions .button,
.topbar-actions form,
.topbar-actions form .button {
    width: 100%;
}

.topbar-actions .button {
    min-height: 82px;
    border-radius: 30px;
    text-align: center;
    line-height: 1.1;
    padding: 0.9rem 0.75rem;
    white-space: normal;
}

.admin-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    align-items: start;
}

.side-panel {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.panel {
    padding: 1.25rem;
}

.entries-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.entry-head-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.entry-collapse-toggle {
    min-width: 88px;
}

.entries-toolbar-field {
    display: grid;
    gap: 0.2rem;
    font-size: 0.76rem;
    min-width: 150px;
}

.entries-toolbar-field select {
    padding: 0.45rem 0.65rem;
    font-size: 0.84rem;
}

.entries-compact-toggle.is-active {
    background: rgba(30, 29, 26, 0.12);
}

.pill,
.status-chip {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(30, 29, 26, 0.08);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.entry-card,
.battle-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.55);
}

.entry-card h3,
.battle-card strong {
    margin: 0;
    font-size: 1rem;
}

.entry-card p,
.battle-card p {
    margin: 0.1rem 0;
}

.entry-proposals {
    display: grid;
    gap: 0.8rem;
}

.entry-proposal {
    border: 1px solid rgba(30, 29, 26, 0.12);
    border-radius: 16px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.52);
}

.entry-proposal h4 {
    margin: 0;
    font-size: 0.94rem;
}

.battle-search-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.battle-search-column {
    display: grid;
    gap: 0.3rem;
}

.battle-search-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.entry-card.status-validated {
    border-color: rgba(27, 153, 139, 0.35);
}

.entry-card.status-received {
    border-color: rgba(249, 65, 68, 0.35);
}

.entry-proposal.status-validated {
    border-color: rgba(27, 153, 139, 0.35);
}

.entry-proposal.status-received {
    border-color: rgba(249, 65, 68, 0.35);
}

.entry-card.is-selected-for-battle {
    opacity: 0.5;
    background: rgba(175, 175, 175, 0.26);
    border-color: rgba(30, 29, 26, 0.22);
}

.entry-card.is-selected-for-battle input,
.entry-card.is-selected-for-battle select,
.entry-card.is-selected-for-battle .button,
.entry-card.is-selected-for-battle .search-links a {
    opacity: 0.7;
}

.history-status {
    margin: 0;
    font-size: 0.82rem;
}

.search-links a {
    font-size: 0.82rem;
    color: var(--accent);
}

.entry-grid {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
}

.entry-grid label {
    font-size: 0.82rem;
}

.entry-grid-full {
    grid-column: 1 / -1;
}

.entry-form.stack-sm {
    gap: 0.55rem;
}

.entry-direct-link {
    font-size: 0.84rem;
}

.entry-direct-link a {
    color: var(--accent);
    word-break: break-all;
}

.compact-check {
    align-self: center;
}

.mini-actions .button {
    padding: 0.5rem 0.75rem;
    font-size: 0.86rem;
}

.entry-card.is-collapsed .entry-proposals {
    display: none;
}

.entry-card.is-collapsed {
    padding-bottom: 0.7rem;
}

.battle-card.is-collapsed .battle-card-body {
    display: none;
}

.battle-card.is-collapsed {
    padding-bottom: 0.7rem;
}

body.entries-compact-mode .entry-card,
body.entries-compact-mode .entry-proposal {
    padding: 0.55rem;
    border-radius: 14px;
}

body.entries-compact-mode .entry-collapse-toggle {
    min-width: 74px;
    padding: 0.34rem 0.55rem;
    font-size: 0.76rem;
}

body.entries-compact-mode .entry-proposals {
    gap: 0.5rem;
}

body.entries-compact-mode .entry-head h3,
body.entries-compact-mode .entry-proposal h4 {
    font-size: 0.88rem;
}

body.entries-compact-mode .entry-head p,
body.entries-compact-mode .entry-proposal p,
body.entries-compact-mode .history-status {
    font-size: 0.74rem;
}

body.entries-compact-mode .entry-grid {
    gap: 0.35rem;
}

body.entries-compact-mode .entry-grid label {
    font-size: 0.74rem;
    gap: 0.25rem;
}

body.entries-compact-mode .entry-grid input,
body.entries-compact-mode .entry-grid select {
    padding: 0.45rem 0.55rem;
    font-size: 0.82rem;
    border-radius: 10px;
}

body.entries-compact-mode .entry-form.stack-sm {
    gap: 0.35rem;
}

body.entries-compact-mode .mini-actions {
    gap: 0.45rem;
}

body.entries-compact-mode .mini-actions .button {
    padding: 0.38rem 0.62rem;
    font-size: 0.78rem;
}

body.entries-compact-mode .compact-check {
    font-size: 0.74rem;
}

body.entries-compact-mode .entry-direct-link {
    font-size: 0.76rem;
}

.muted,
.empty-state {
    color: var(--muted);
}

.duels-timer-control {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.duels-timer-control input {
    width: 88px;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
}

.duels-timer-unit {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.winner-form {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 0.75rem;
}

.winner-cta {
    font-weight: 700;
    text-transform: uppercase;
}

.battle-vote-summary {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.75rem;
    padding: 0.8rem;
    border-radius: 16px;
    background: rgba(30, 29, 26, 0.06);
    border: 1px solid rgba(30, 29, 26, 0.1);
}

.battle-vote-head,
.battle-vote-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.battle-vote-head span {
    color: var(--muted);
    font-size: 0.86rem;
}

.battle-vote-bars {
    display: grid;
    gap: 0.45rem;
}

.battle-vote-side {
    font-size: 0.86rem;
}

.battle-vote-side span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.battle-vote-side-b {
    flex-direction: row-reverse;
}

.battle-vote-meter {
    height: 18px;
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(30, 29, 26, 0.12);
}

.battle-vote-meter span {
    min-width: 0;
    background: var(--vote-color, #1AC2E6);
    transition: width 180ms ease;
}

.battle-play-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    justify-items: center;
    margin-top: 0.35rem;
    align-items: center;
}

.battle-play-button {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 3px solid #7c3aed;
    background: #ff9a2f;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.16);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.battle-stop-button {
    min-width: 110px;
    min-height: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.battle-play-button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 14px 24px rgba(124, 58, 237, 0.22);
}

.battle-play-button.is-playing {
    animation: adminPlayPulse 640ms steps(2, start) infinite;
    box-shadow: 0 0 0 4px rgba(0, 255, 76, 0.28), 0 0 26px rgba(0, 255, 76, 0.8);
}

.battle-play-icon {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #7c3aed;
}

@keyframes adminPlayPulse {
    0%, 48% {
        transform: scale(1);
        filter: brightness(1);
    }
    49%, 100% {
        transform: scale(0.9);
        filter: brightness(1.18);
    }
}

.battle-timer-row {
    display: flex;
    justify-content: center;
    margin-top: 0.2rem;
}

.battle-timer-display {
    min-width: 108px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(30, 29, 26, 0.08);
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.battle-timer-display.is-running {
    color: var(--text);
    background: rgba(255, 139, 0, 0.14);
}

.battle-timer-display.is-finished {
    color: #f94144;
    background: rgba(249, 65, 68, 0.15);
}

.battle-participants-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.4rem;
    margin-top: 0.2rem;
}

.battle-participant-summary {
    display: grid;
    gap: 0.12rem;
}

.battle-participant-summary-b {
    text-align: right;
}

.battle-participant-name {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.battle-participant-meta {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.15;
}

.scoreboard-mini {
    display: grid;
    gap: 0.5rem;
    max-height: 32rem;
    overflow: auto;
    padding-right: 0.25rem;
}

.score-quick-actions {
    display: grid;
    gap: 0.65rem;
}

.score-quick-full {
    width: 100%;
    justify-content: center;
}

.qr-panel {
    display: grid;
    gap: 0.9rem;
    justify-items: start;
}

.access-card {
    display: grid;
    gap: 1rem;
}

.access-section-compact {
    padding-top: 0.25rem;
}

.export-reset-section {
    margin-top: auto;
}

.access-card-compact {
    gap: 0.55rem;
}

.access-card-copy {
    display: grid;
    gap: 0.25rem;
}

.qr-image {
    width: 180px;
    height: 180px;
    padding: 0.75rem;
    border-radius: 18px;
    background: white;
    border: 1px solid var(--line);
}

.register-link {
    word-break: break-word;
    color: var(--accent);
    font-size: 0.9rem;
}

.access-feedback {
    min-height: 1.2rem;
    margin: 0;
}

.warning-video-list {
    display: grid;
    gap: 0.9rem;
}

.warning-video-card {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--line);
}

.warning-video-card video {
    width: 100%;
    max-height: 220px;
    border-radius: 14px;
    background: #000;
}

.warning-video-meta {
    display: grid;
    gap: 0.45rem;
}

.score-row {
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
}

.score-row-editable {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px 64px;
    align-items: center;
    gap: 0.6rem;
}

.score-row-name {
    min-width: 0;
    font-weight: 700;
}

.score-row-input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    text-align: center;
}

.score-row-save {
    min-height: 42px;
    padding-inline: 0.9rem;
}

.screen-page {
    background: #000000;
    color: white;
    overflow: hidden;
}

.screen-shell {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    background: #000000;
}

.screen-frame {
    width: 1920px;
    height: 1080px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex: 0 0 auto;
    transform-origin: center center;
    will-change: transform;
}

.screen-root,
.stage-screen {
    width: 100%;
    height: 100%;
}

.stage-screen {
    display: grid;
    grid-template-rows: 250px 1fr 320px;
    gap: 22px;
    padding: 24px 36px 36px;
    background: var(--stage-background, #000000);
    font-family: "Fredoka", "Arial Rounded MT Bold", "Avenir Next Rounded", sans-serif;
    color: #ffffff;
    overflow: hidden;
}

.stage-screen,
.stage-screen button,
.stage-screen h1,
.stage-screen h2,
.stage-screen h3,
.stage-screen strong,
.stage-screen span,
.stage-screen div {
    font-family: "Fredoka", "Arial Rounded MT Bold", "Avenir Next Rounded", sans-serif;
}

.stage-topbar {
    display: grid;
    align-items: center;
}

.stage-brandline {
    width: 100%;
    min-height: 210px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(520px, 760px) minmax(240px, 1fr);
    align-items: center;
    gap: 22px;
}

.stage-logo-shell {
    grid-column: 2;
    width: min(430px, 100%);
    height: 242px;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    margin: 0 auto;
    padding: 0;
    background: #000000;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
    position: relative;
}

.stage-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stage-logo-video {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #000000;
}

.stage-logo-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--player-1-color, #1AC2E6);
    font-size: 90px;
    line-height: 0.92;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
}

.stage-venue {
    width: 100%;
    font-size: 54px;
    line-height: 0.94;
    text-transform: uppercase;
    text-align: center;
}

.stage-venue-left {
    grid-column: 1;
    color: var(--player-1-color, #1AC2E6);
}

.stage-venue-right {
    grid-column: 3;
    color: var(--player-2-color, #FF29B6);
}

.stage-battle {
    display: grid;
    grid-template-columns: 40% 8% 40%;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.stage-battle-empty {
    display: grid;
    place-items: center;
}

.stage-battle-qr {
    display: grid;
    place-items: center;
}

.stage-battle-qr-layout {
    display: grid;
    grid-template-columns: 40% 8% 40%;
    justify-content: space-between;
    align-items: stretch;
    gap: 18px;
}

.stage-battle-qr-gap {
    width: 100%;
}

.stage-empty-banner {
    width: 100%;
    min-height: 260px;
    display: grid;
    place-items: center;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 46px;
    line-height: 1.08;
    text-align: center;
    text-transform: uppercase;
}

.stage-youtube-card,
.stage-winner-card {
    width: 100%;
    min-height: 270px;
    border-radius: 30px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.stage-youtube-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: center;
    gap: 18px;
    padding: 24px 18px 24px 28px;
    background: rgba(255, 255, 255, 0.08);
}

.stage-winner-card {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 22px 26px 24px;
    background: var(--player-1-color, #1AC2E6);
    color: #050505;
}

.stage-youtube-copy {
    display: grid;
    gap: 14px;
    align-content: center;
    min-width: 0;
}

.stage-youtube-title {
    font-size: 62px;
    line-height: 0.95;
    color: var(--player-1-color, #1AC2E6);
    text-transform: uppercase;
}

.stage-youtube-subtitle {
    font-size: 34px;
    line-height: 1;
    text-transform: uppercase;
}

.stage-youtube-url {
    font-size: 28px;
    line-height: 1.05;
    color: rgba(255, 255, 255, 0.82);
}

.stage-youtube-qr-shell {
    width: 286px;
    height: 286px;
    display: grid;
    place-items: center;
    justify-self: end;
    margin-left: auto;
    padding: 16px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
}

.stage-youtube-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.stage-winner-label {
    font-size: 30px;
    line-height: 1;
    text-transform: uppercase;
}

.stage-winner-rank {
    font-size: 42px;
    line-height: 1;
    text-transform: uppercase;
    opacity: 0.92;
}

.stage-winner-name {
    font-size: 76px;
    line-height: 0.9;
    text-transform: uppercase;
    word-break: break-word;
}

.stage-winner-score {
    margin-top: auto;
    font-size: 42px;
    line-height: 1;
    text-transform: uppercase;
}

.stage-winner-empty {
    margin-top: 8px;
    font-size: 44px;
    line-height: 1;
    text-transform: uppercase;
}

.stage-player-column {
    width: 100%;
}

.stage-player-card {
    position: relative;
    width: 100%;
    min-height: 270px;
    border: 0;
    border-radius: 30px;
    padding: 24px 26px 26px;
    background: var(--stage-player-color, #1AC2E6);
    color: #050505;
    text-align: left;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.stage-player-card.is-active {
    transform: scale(1.035);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.46);
}

.stage-now-playing {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 5;
    width: 0;
    height: 0;
    border-top: 42px solid transparent;
    border-bottom: 42px solid transparent;
    border-left: 72px solid #00ff4c;
    filter: drop-shadow(0 0 20px rgba(0, 255, 76, 0.9));
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 120ms ease, transform 120ms ease;
}

.stage-now-playing.is-visible,
.stage-player-card.is-active .stage-now-playing {
    opacity: 1;
    animation: stageBlink 620ms steps(2, start) infinite;
}

.stage-result-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 6;
    padding: 0.18em 0.42em;
    border-radius: 999px;
    background: #00ff4c;
    color: #001b08;
    font-size: 54px;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 0 28px rgba(0, 255, 76, 0.92);
    animation: stageBlink 620ms steps(2, start) infinite;
}

@keyframes stageBlink {
    0%, 48% {
        transform: scale(1);
        filter: drop-shadow(0 0 24px rgba(0, 255, 76, 1));
    }
    49%, 100% {
        transform: scale(0.86);
        filter: drop-shadow(0 0 8px rgba(0, 255, 76, 0.45));
    }
}

.stage-player-label {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1;
    text-transform: uppercase;
    opacity: 0.86;
}

.stage-player-name {
    margin: 0 0 24px;
    font-size: 80px;
    line-height: 0.94;
    text-transform: uppercase;
}

.stage-player-track,
.stage-player-artist {
    margin: 0;
    font-size: 31px;
    line-height: 1.08;
}

.stage-player-artist {
    margin-top: 10px;
}

.stage-battle-center {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 18px;
}

.stage-versus {
    display: grid;
    place-items: center;
    font-size: 110px;
    line-height: 1;
    color: #f3e2e7;
    text-transform: uppercase;
}

.stage-battle-timer {
    min-width: 180px;
    padding: 14px 24px;
    border-radius: 999px;
    background: rgba(205, 193, 215, 0.14);
    color: #f3e2e7;
    text-align: center;
    font-size: 42px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stage-battle-timer.is-running {
    background: rgba(255, 139, 0, 0.2);
    color: #ffcf8b;
}

.stage-battle-timer.is-finished {
    background: rgba(249, 65, 68, 0.2);
    color: #ffb3b3;
}

.stage-vote-results {
    width: 100%;
    display: grid;
    gap: 10px;
    padding: 16px 14px;
    border-radius: 24px;
    background: rgba(205, 193, 215, 0.14);
    color: #f3e2e7;
    text-align: center;
}

.stage-vote-title {
    font-size: 25px;
    line-height: 1;
    text-transform: uppercase;
}

.stage-vote-total {
    font-size: 20px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
}

.stage-vote-results-hidden {
    min-height: 180px;
    align-content: center;
}

.stage-vote-wait,
.stage-vote-tiebreak {
    font-size: 20px;
    line-height: 1.05;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
}

.stage-vote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 31px;
    line-height: 1;
}

.stage-vote-row strong {
    color: #fffaf5;
}

.stage-vote-meter {
    height: 28px;
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.stage-vote-meter span {
    min-width: 0;
    background: var(--stage-vote-color, #1AC2E6);
    transition: width 180ms ease;
}

.stage-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.stage-panel {
    min-height: 0;
    padding: 28px 28px 24px;
    border-radius: 32px;
    background: rgba(205, 193, 215, 0.96);
    color: #111111;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.stage-panel-title {
    margin: 0 0 18px;
    font-size: 44px;
    line-height: 1;
    text-transform: uppercase;
}

.stage-panel-body {
    min-height: 0;
}

.stage-panel-score .stage-panel-body {
    display: grid;
    gap: 8px;
    align-content: start;
}

.stage-panel-next .stage-panel-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 18px;
    align-items: center;
}

.stage-score-row,
.stage-next-row {
    display: grid;
    gap: 8px;
    align-items: start;
    font-size: 22px;
    line-height: 1.02;
}

.stage-score-row {
    grid-template-columns: auto 1fr auto;
}

.stage-next-row {
    grid-template-columns: auto 1fr;
}

.stage-next-list {
    display: grid;
    gap: 8px;
    align-content: start;
    align-self: start;
    min-height: 0;
    padding-top: 4px;
}

.stage-next-content {
    display: grid;
    gap: 2px;
}

.stage-rank {
    min-width: 22px;
}

.stage-qr-shell {
    align-self: center;
    display: grid;
    grid-template-rows: auto auto;
    gap: 8px;
    align-items: center;
    justify-items: center;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    width: 100%;
    max-width: 180px;
}

.stage-qr-shell.is-unavailable {
    grid-template-rows: 1fr;
    text-align: center;
}

.stage-qr-image {
    width: 100%;
    max-width: 156px;
    aspect-ratio: 1 / 1;
    display: block;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
}

.stage-qr-caption {
    font-size: 16px;
    line-height: 0.96;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}

.stage-qr-unavailable {
    font-size: 24px;
    line-height: 1.1;
    color: rgba(17, 17, 17, 0.68);
}

.stage-panel-empty {
    font-size: 24px;
    line-height: 1.15;
    color: rgba(17, 17, 17, 0.74);
}

.stage-screen-scores {
    grid-template-rows: 250px minmax(0, 1fr);
}

.stage-score-wall-panel {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    padding: 28px 30px 24px;
    border-radius: 34px;
    background: rgba(205, 193, 215, 0.96);
    color: #111111;
    overflow: hidden;
}

.stage-score-story-panel {
    gap: 10px;
}

.stage-score-story-table {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
}

.stage-score-story-head,
.stage-score-story-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 120px;
    gap: 12px;
    align-items: center;
}

.stage-score-story-head {
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.92;
}

.stage-score-story-body {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-auto-rows: minmax(52px, auto);
    gap: 6px;
}

.stage-score-story-row {
    padding: 8px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.34);
    color: #111111;
}

.stage-score-story-rank,
.stage-score-story-name,
.stage-score-story-value {
    min-width: 0;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
}

.stage-score-story-rank {
    text-align: center;
}

.stage-score-story-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stage-score-story-value,
.stage-score-story-head-value {
    text-align: right;
}

.stage-score-wall-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.stage-score-wall-title {
    margin: 0;
    font-size: 58px;
    line-height: 1;
    text-transform: uppercase;
}

.stage-score-wall-subtitle {
    font-size: 24px;
    line-height: 1;
    text-transform: uppercase;
    opacity: 0.65;
}

.stage-score-wall-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-template-rows: repeat(17, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 8px;
    align-items: center;
}

.stage-score-wall-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.28);
}

.stage-score-wall-rank {
    font-size: 26px;
    line-height: 1;
    text-align: right;
}

.stage-score-wall-name {
    min-width: 0;
    font-size: 28px;
    line-height: 1;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stage-score-wall-value {
    font-size: 26px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.stage-screen-fight-board {
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
}

.stage-fight-board-story-shell {
    width: min(1040px, 100%);
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
}

.stage-fight-board-story-head {
    display: grid;
    gap: 12px;
    align-content: start;
}

.stage-fight-board-title-line {
    text-align: center;
    font-size: 54px;
    line-height: 0.96;
    color: var(--player-1-color, #1AC2E6);
    text-transform: uppercase;
}

.stage-fight-board-brand-line {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 320px) minmax(180px, 1fr);
    align-items: center;
    gap: 18px;
}

.stage-fight-board-brand-line .stage-venue {
    font-size: 40px;
    line-height: 0.94;
}

.stage-fight-board-logo-wrap {
    display: grid;
    place-items: center;
}

.stage-fight-board-logo-wrap .stage-logo-shell {
    width: min(280px, 100%);
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.stage-fight-board-panel {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    padding: 20px 20px 18px;
    border-radius: 34px;
    background: rgba(205, 193, 215, 0.96);
    color: #111111;
    overflow: hidden;
}

.stage-fight-board-table {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
}

.stage-fight-board-head,
.stage-fight-board-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 0.92fr) minmax(0, 1.05fr) 54px minmax(0, 1.05fr) minmax(0, 0.92fr) minmax(0, 1.05fr);
    gap: 8px;
    align-items: start;
}

.stage-fight-board-head {
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.92;
    align-items: center;
}

.stage-fight-board-body {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-auto-rows: minmax(88px, auto);
    gap: 8px;
}

.stage-fight-board-row {
    padding: 10px 12px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.34);
}

.stage-fight-cell {
    min-width: 0;
    font-size: 18px;
    line-height: 1.08;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stage-fight-cell-multiline {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: clip;
    min-height: calc(2 * 1.08em);
}

.stage-fight-number {
    text-align: center;
    align-self: center;
}

.stage-fight-vs {
    text-align: center;
    font-size: 22px;
    align-self: center;
}

.stage-fight-head-player-a,
.stage-fight-player-a {
    color: var(--player-1-color, #1AC2E6);
}

.stage-fight-head-player-b,
.stage-fight-player-b {
    color: var(--player-2-color, #FF29B6);
}

.stage-fight-player {
    overflow: visible;
}

.stage-fight-player-name {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-self: start;
}

.stage-fight-player-name.is-winner {
    background: rgba(0, 255, 76, 0.22);
    box-shadow: inset 0 0 0 2px rgba(0, 255, 76, 0.55), 0 0 18px rgba(0, 255, 76, 0.32);
}

.register-track-block {
    padding: 1rem 1.1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.register-track-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.register-track-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.input-hint {
    margin: 0.15rem 0 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

.topbar-settings-network {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.topbar-settings-logo input[type="file"] {
    display: block;
    width: 100%;
}

.played-tracks-history-list {
    display: grid;
    gap: 0.75rem;
    max-height: 22rem;
    overflow: auto;
}

.played-track-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.played-track-card strong {
    display: block;
    font-size: 0.98rem;
}

.stage-battle-guide {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.5fr);
    gap: 28px;
    align-items: stretch;
}

.stage-guide-card {
    display: grid;
    gap: 16px;
    padding: 28px 34px;
    border-radius: 34px;
    background: rgba(20, 20, 20, 0.94);
    color: #fffaf5;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.stage-guide-title,
.stage-guide-warning {
    color: var(--player-1-color, #1AC2E6);
    font-size: 40px;
    line-height: 0.95;
    font-weight: 900;
    text-transform: uppercase;
}

.stage-guide-steps,
.stage-guide-copy,
.stage-guide-tips,
.stage-guide-footer,
.stage-guide-signature {
    display: grid;
    gap: 8px;
    font-size: 25px;
    line-height: 1.18;
    font-weight: 800;
}

.stage-guide-copy,
.stage-guide-footer,
.stage-guide-signature {
    font-size: 23px;
}

.stage-guide-network strong {
    color: var(--player-2-color, #FF29B6);
}

@media (max-width: 1024px) {
    .admin-layout,
    .grid-two,
    .winner-form,
    .screen-battle {
        grid-template-columns: 1fr;
        display: grid;
    }

    .winner-form {
        gap: 0.75rem;
    }

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

    .topbar-settings-network,
    .stage-battle-guide {
        grid-template-columns: 1fr;
    }

    .screen-shell {
        padding: 0;
    }
}
