@font-face {
    font-family: "Rissometro Buttons";
    src: url("/assets/fonts/rissometro-buttons.otf?v=20260326-1") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #0b0b0b;
    --bg-elevated: #121212;
    --bg-panel: rgba(18, 18, 18, 0.96);
    --bg-soft: rgba(255, 215, 0, 0.08);
    --primary-color: #ffd700;
    --primary-strong: #f2c100;
    --primary-soft: rgba(255, 215, 0, 0.2);
    --text-light: #ffffff;
    --text-dark: #000000;
    --text-muted: rgba(255, 255, 255, 0.72);
    --line-color: rgba(255, 215, 0, 0.42);
    --danger-color: #ff5f5f;
    --success-color: #9cff4f;
    --shadow-outer: 0 18px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 0 1px rgba(255, 215, 0, 0.16), 0 12px 30px rgba(255, 215, 0, 0.12);
    --radius: 22px;
    --radius-sm: 16px;
    --app-width: 430px;
    --headline: "Rissometro Buttons", "Arial Black", "Impact", sans-serif;
    --body: "Trebuchet MS", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--body);
    color: var(--text-light);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.2), transparent 32%),
        linear-gradient(180deg, rgba(255, 215, 0, 0.08), transparent 22%),
        repeating-linear-gradient(135deg, rgba(255, 215, 0, 0.035) 0 12px, transparent 12px 24px),
        var(--bg-color);
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

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

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body,
th,
td,
p,
li,
span {
    word-break: break-word;
}

.site-header,
.landing-shell,
.site-footer,
.auth-shell,
.game-shell {
    width: min(calc(100% - 1rem), var(--app-width));
    margin: 0 auto;
}

.site-header {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem 0 0.7rem;
}

.site-header-game {
    position: relative;
    z-index: 5;
}

.game-page {
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.95), rgba(255, 215, 0, 0.64) 20%, rgba(113, 91, 0, 0.24) 40%, transparent 58%),
        linear-gradient(135deg, #ffd700 0%, #cbad13 16%, #564600 34%, #171300 56%, #050505 82%, #000000 100%);
}

.game-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.8px, transparent 1.8px);
    background-size: 24px 24px;
    opacity: 0.22;
    pointer-events: none;
}

.game-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.08), rgba(0, 0, 0, 0.2)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 16px, transparent 16px 42px);
    background-size: auto, 180px 180px;
    animation: home-stripes-drift 12s linear infinite;
    pointer-events: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.25rem 0;
    color: var(--primary-color);
    font-family: var(--headline);
    font-size: clamp(2rem, 12vw, 3.2rem);
    letter-spacing: 0.06em;
    line-height: 0.9;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(255, 215, 0, 0.22);
}

.site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.site-nav > * {
    min-width: 0;
}

.logout-form {
    margin: 0;
}

.logout-form .button,
.site-nav .button {
    width: 100%;
}

.user-pill {
    grid-column: 1 / -1;
    min-height: 50px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line-color);
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.08);
    color: var(--text-light);
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.08);
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-height: 56px;
    padding: 1rem 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: 18px;
    cursor: pointer;
    font-family: var(--headline);
    font-size: 2rem;
    letter-spacing: 0.08em;
    line-height: 0.95;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 120ms ease, filter 120ms ease, background 120ms ease, box-shadow 120ms ease;
    user-select: none;
}

.button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.button:active {
    transform: translateY(2px) scale(0.985);
    filter: brightness(0.96);
}

.button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.button-primary {
    background: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.22);
}

.button-secondary {
    background: rgba(255, 215, 0, 0.08);
    color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.button-ghost {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(255, 215, 0, 0.55);
}

.button-full,
.hero-actions .button,
.result-panel .button,
.vote-button {
    width: 100%;
}

.button-xl {
    min-height: 62px;
    font-size: 2.3rem;
}

.landing-shell,
.game-shell {
    padding-bottom: 1.4rem;
}

.hero-panel,
.leaderboard-panel,
.auth-panel,
.spin-stage,
.battle-content {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.08)),
        var(--bg-panel);
    box-shadow: var(--shadow-outer);
}

.hero-panel::before,
.leaderboard-panel::before,
.auth-panel::before,
.spin-stage::before,
.battle-content::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.8;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 0.85rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.12);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.leaderboard-panel h2,
.auth-panel h1,
.battle-content h1 {
    margin: 0;
    font-family: var(--headline);
    line-height: 0.92;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
}

.hero-text,
.auth-copy,
.spin-status,
.hero-list,
.auth-links,
.site-footer {
    color: var(--text-muted);
}

.hero-panel {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
}

.hero-actions {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.15rem;
}

.hero-card {
    padding: 1rem;
    border: 1px solid var(--line-color);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.12), transparent 42%),
        rgba(255, 215, 0, 0.05);
}

.hero-card-title {
    margin: 0 0 0.85rem;
    color: var(--primary-color);
    font-family: var(--headline);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-list {
    margin: 0;
    padding-left: 1.15rem;
    line-height: 1.8;
}

.leaderboard-panel,
.auth-panel {
    margin-top: 1rem;
    padding: 1rem;
}

.section-heading {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.leaderboard-panel h2 {
    font-size: clamp(2rem, 11vw, 3.4rem);
}

.leaderboard-table-wrap {
    overflow: hidden;
    border: 2px solid var(--primary-color);
    border-radius: 18px;
    background: #050505;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.08);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 0.9rem 0.65rem;
    border-top: 1px solid rgba(255, 215, 0, 0.22);
    text-align: left;
    vertical-align: middle;
}

.leaderboard-table thead th {
    border-top: 0;
    color: var(--primary-color);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
    width: 52px;
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
    width: 86px;
    text-align: right;
}

.leaderboard-table tbody tr:nth-child(even) {
    background: rgba(255, 215, 0, 0.035);
}

.character-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.character-row img {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    background: #1b1b1b;
}

.site-footer {
    padding: 0 0 1.25rem;
    font-size: 0.86rem;
    text-align: center;
}

.auth-shell {
    padding-bottom: 1.4rem;
}

.auth-panel {
    width: 100%;
}

.auth-panel h1 {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
}

.auth-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.1rem;
}

.auth-form label {
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-form input {
    width: 100%;
    min-height: 54px;
    padding: 0.95rem 1rem;
    color: var(--text-light);
    background: #080808;
    border: 2px solid rgba(255, 215, 0, 0.32);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.05);
}

.auth-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.auth-links {
    margin: 1rem 0 0;
    line-height: 1.6;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
}

.auth-hint {
    font-size: 0.9rem;
}

.alert {
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 16px;
    background: rgba(255, 215, 0, 0.08);
    color: var(--text-light);
}

.alert-info {
    background: rgba(255, 215, 0, 0.08);
}

.alert-success {
    border-left-color: var(--success-color);
    background: rgba(156, 255, 79, 0.08);
}

.alert-error {
    border-left-color: var(--danger-color);
    background: rgba(255, 95, 95, 0.1);
}

.game-shell {
    position: relative;
}

.game-shell-match {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 88px);
}

.spin-stage {
    position: relative;
    padding: 1rem 0.8rem 1.15rem;
    border: 2px solid rgba(255, 215, 0, 0.86);
    background:
        linear-gradient(180deg, rgba(12, 12, 12, 0.76), rgba(12, 12, 12, 0.52)),
        rgba(14, 14, 14, 0.42);
    backdrop-filter: blur(4px);
    transition: opacity 240ms ease, transform 240ms ease;
}

.spin-stage:not(.is-active) {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.spin-layout {
    display: grid;
    position: relative;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
    align-items: start;
    min-height: 74vh;
    padding-top: 112px;
    transition: opacity 520ms ease, transform 520ms ease;
}

.spin-centerpiece {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    display: grid;
    justify-items: center;
    text-align: center;
    transform: translateX(-50%);
    transition: top 620ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 320ms ease;
}

.versus-burst {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
}

.versus-burst::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #111111;
    clip-path: polygon(50% 0%, 61% 18%, 82% 8%, 74% 29%, 100% 34%, 79% 50%, 100% 66%, 73% 71%, 83% 92%, 60% 81%, 50% 100%, 39% 82%, 17% 92%, 26% 70%, 0% 66%, 20% 50%, 0% 35%, 26% 29%, 16% 8%, 40% 19%);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.3));
}

.versus-pill,
.fighters-vs {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border: 4px solid #ffffff;
    border-radius: 18px;
    background: var(--primary-color);
    color: var(--text-dark);
    font-family: var(--headline);
    font-size: 1.95rem;
    letter-spacing: 0.08em;
    transform: rotate(-7deg);
    animation: versus-breathe 1.8s ease-in-out infinite;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.22);
    position: relative;
    z-index: 1;
}

.spin-status {
    margin: 0.9rem 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
    transition: opacity 320ms ease, transform 320ms ease;
}

.roulette-shell {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    transition: opacity 520ms ease, transform 520ms ease;
}

.roulette-half-shell {
    position: relative;
    overflow: hidden;
    height: 68vh;
    max-height: 620px;
    min-height: 500px;
}

.roulette-window {
    position: absolute;
    top: 0;
    width: 194%;
    height: 100%;
    overflow: hidden;
    border: 3px solid rgba(255, 215, 0, 0.92);
    cursor: pointer;
    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.14), transparent 26%),
        rgba(0, 0, 0, 0.72);
}

.roulette-window::before,
.roulette-window::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.roulette-window::before {
    top: 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0));
}

.roulette-window::after {
    top: 50%;
    height: 88px;
    transform: translateY(-50%);
    border-top: 2px solid rgba(255, 215, 0, 0.95);
    border-bottom: 2px solid rgba(255, 215, 0, 0.95);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.06), rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.06));
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.08);
}

.roulette-window:active {
    filter: brightness(1.08);
}

.roulette-shell-left .roulette-window {
    left: -94%;
    border-radius: 999px 0 0 999px;
}

.roulette-shell-right .roulette-window {
    right: -94%;
    border-radius: 0 999px 999px 0;
}

.roulette-track {
    display: grid;
    gap: 4px;
    padding: 1rem 0.85rem;
}

.roulette-card {
    --selected-center-shift: 0px;
    display: grid;
    place-items: center;
    gap: 0.2rem;
    min-height: 58px;
    padding: 0.28rem 0.5rem;
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.18), transparent 34%),
        rgba(20, 20, 20, 0.92);
    text-align: center;
    transform-origin: center;
    transition: transform 180ms ease, opacity 180ms ease;
}

.roulette-card strong {
    color: var(--text-light);
    display: block;
    width: 100%;
    font-size: 0.86rem;
    line-height: 1.15;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.roulette-card-ghost {
    color: rgba(255, 215, 0, 0.54);
    font-family: var(--headline);
    font-size: 0.86rem;
    min-height: 54px;
    letter-spacing: 0.08em;
    opacity: 0.72;
}

.roulette-card-left {
    justify-items: end;
    padding-left: 3rem;
    padding-right: 1rem;
    text-align: right;
}

.roulette-card-right {
    justify-items: start;
    padding-left: 1rem;
    padding-right: 3rem;
    text-align: left;
}

.roulette-card-selected {
    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.36), rgba(255, 215, 0, 0.12)),
        rgba(20, 20, 20, 0.98);
    animation: roulette-selected-flash 720ms ease-out forwards;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.22);
}

.roulette-card-selected strong {
    color: var(--primary-color);
}

.spin-stage.is-holding-selection .roulette-card-selected {
    animation: roulette-selected-hold 3s ease-in-out forwards;
    transform-origin: center;
}

.roulette-window.is-stopped::after {
    border-top-color: #ffffff;
    border-bottom-color: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 215, 0, 0.16), rgba(255, 255, 255, 0.08));
}

.roulette-stop-button {
    position: absolute;
    top: 50%;
    z-index: 4;
    min-width: 138px;
    min-height: 62px;
    padding: 0.9rem 1.2rem;
    border: 4px solid #000000;
    border-radius: 22px;
    background: var(--primary-color);
    color: var(--text-dark);
    font-family: var(--headline);
    font-size: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 8px 0 #000000;
    animation: roulette-stop-breathe 1.8s ease-in-out infinite;
    transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.roulette-stop-button-left {
    right: 1rem;
    transform: translateY(-50%) rotate(-8deg);
}

.roulette-stop-button-right {
    left: 1rem;
    transform: translateY(-50%) rotate(8deg);
}

.roulette-stop-button:active {
    animation-play-state: paused;
    box-shadow: 0 3px 0 #000000;
}

.roulette-stop-button.is-triggered {
    animation: none;
    filter: brightness(1.04);
    box-shadow: 0 10px 0 #000000, 0 0 20px rgba(255, 215, 0, 0.24);
}

.roulette-stop-button.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.matchup-stage {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.fighter-showcase {
    position: absolute;
    top: 48%;
    z-index: 2;
    display: grid;
    justify-items: center;
    width: min(45vw, 196px);
    opacity: 0;
    transition:
        transform 680ms cubic-bezier(0.2, 0.7, 0.2, 1),
        opacity 520ms ease,
        filter 420ms ease,
        left 680ms cubic-bezier(0.2, 0.7, 0.2, 1),
        right 680ms cubic-bezier(0.2, 0.7, 0.2, 1),
        top 680ms cubic-bezier(0.2, 0.7, 0.2, 1),
        width 680ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fighter-showcase-left {
    left: 1rem;
    transform: translate(-40%, -50%) scale(0.72);
}

.fighter-showcase-right {
    right: 1rem;
    transform: translate(40%, -50%) scale(0.72);
}

.fighter-media-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 5.4;
    margin-bottom: 0.8rem;
    border: 3px solid rgba(255, 215, 0, 0.9);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.18), transparent 36%),
        rgba(12, 12, 12, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.fighter-placeholder-icon {
    position: relative;
    width: 56%;
    aspect-ratio: 1 / 1;
    border: 3px solid rgba(255, 215, 0, 0.72);
    border-radius: 999px;
    opacity: 0.88;
}

.fighter-placeholder-icon::before,
.fighter-placeholder-icon::after,
.fighter-placeholder-icon span {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 215, 0, 0.84);
}

.fighter-placeholder-icon::before {
    top: 12%;
    width: 36%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
}

.fighter-placeholder-icon::after {
    bottom: 14%;
    width: 62%;
    height: 32%;
    border-radius: 999px 999px 22px 22px;
}

.fighter-placeholder-icon span {
    bottom: 24%;
    width: 74%;
    height: 14%;
    border-radius: 999px;
    opacity: 0.28;
}

.fighter-reveal-name {
    margin: 0;
    color: var(--text-light);
    font-family: var(--headline);
    font-size: clamp(1.7rem, 8.6vw, 3rem);
    line-height: 0.92;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.vote-button-showcase {
    width: 100%;
    margin-top: 0.85rem;
    min-height: 64px;
    border: 4px solid #000000;
    border-radius: 20px;
    box-shadow: 0 8px 0 #000000;
    animation: callout-breathe 1.8s ease-in-out infinite;
}

.vote-button-showcase:active {
    animation-play-state: paused;
    transform: translateY(5px) scale(0.98);
    box-shadow: 0 3px 0 #000000;
}

.vote-button-showcase:disabled {
    animation: none;
}

.winner-stage {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    z-index: 4;
    display: grid;
    justify-items: center;
    width: min(calc(100% - 2rem), 360px);
    opacity: 0;
    transform: translate(-50%, 18px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.winner-stage-label {
    margin: 0 0 0.4rem;
    color: var(--primary-color);
    font-family: var(--headline);
    font-size: clamp(2rem, 11vw, 3.4rem);
    letter-spacing: 0.08em;
    line-height: 0.9;
    text-transform: uppercase;
    animation: callout-breathe 1.8s ease-in-out infinite;
}

.winner-replay-button {
    width: 100%;
    margin-top: 0.9rem;
    min-height: 72px;
    border: 4px solid #000000;
    border-radius: 22px;
    box-shadow: 0 9px 0 #000000;
}

.spin-stage.is-revealed .roulette-shell,
.spin-stage.has-result .roulette-shell {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

.spin-stage.is-revealed .spin-status {
    opacity: 0;
    transform: translateY(12px);
}

.spin-stage.is-revealed .spin-centerpiece {
    top: 48%;
    transform: translate(-50%, -50%);
}

.spin-stage.is-revealed .fighter-showcase {
    opacity: 1;
    pointer-events: auto;
}

.spin-stage.is-revealed .matchup-stage,
.spin-stage.has-result .matchup-stage {
    pointer-events: auto;
}

.spin-stage.is-revealed .fighter-showcase-left {
    transform: translate(0, -50%) scale(1);
}

.spin-stage.is-revealed .fighter-showcase-right {
    transform: translate(0, -50%) scale(1);
}

.spin-stage.has-result .spin-centerpiece {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
}

.spin-stage.has-result .fighter-showcase.is-losing {
    opacity: 0;
    transform: translate(0, -50%) scale(0.72);
    pointer-events: none;
}

.spin-stage.has-result .fighter-showcase.is-winning {
    left: 50%;
    right: auto;
    top: 37%;
    width: min(64vw, 252px);
    transform: translate(-50%, -50%) scale(1.05);
}

.spin-stage.has-result .fighter-showcase.is-winning .fighter-media-placeholder,
.spin-stage.has-result .fighter-showcase.is-winning .fighter-reveal-name {
    animation: callout-breathe 1.8s ease-in-out infinite;
}

.spin-stage.has-result .fighter-showcase.is-winning .vote-button-showcase {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.spin-stage.has-result .winner-stage {
    opacity: 1;
    transform: translate(-50%, 0);
}

.feedback-banner {
    position: fixed;
    left: 50%;
    bottom: 0.75rem;
    z-index: 20;
    width: min(calc(100% - 1rem), var(--app-width));
    padding: 0.95rem 1rem;
    border: 1px solid var(--line-color);
    border-radius: 16px;
    background: rgba(18, 18, 18, 0.98);
    color: var(--text-light);
    box-shadow: var(--shadow-outer);
    transform: translateX(-50%);
}

.spin-intro-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.18);
    transition: opacity 320ms ease;
}

.spin-stage.is-idle .spin-layout,
.spin-stage.is-idle .spin-status {
    filter: blur(5px);
    opacity: 0.66;
}

@keyframes roulette-selected-flash {
    0% {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
    45% {
        transform: translateY(calc(var(--selected-center-shift) * 0.6)) scale(1.02);
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.34), 0 0 22px rgba(255, 215, 0, 0.24);
    }
    100% {
        transform: translateY(var(--selected-center-shift)) scale(1);
        box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.22);
    }
}

@keyframes roulette-selected-hold {
    0% {
        transform: translateY(var(--selected-center-shift)) scale(1) skewX(0deg) skewY(0deg);
        filter: brightness(1);
        box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.22);
    }
    55% {
        transform: translateY(var(--selected-center-shift)) scale(1.08, 1.14) skewX(-4deg) skewY(1deg);
        filter: brightness(1.06);
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3), 0 0 24px rgba(255, 215, 0, 0.2);
    }
    100% {
        transform: translateY(var(--selected-center-shift)) scale(1.14, 1.22) skewX(-6deg) skewY(2deg);
        filter: brightness(1.1);
        box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.36), 0 0 30px rgba(255, 215, 0, 0.24);
    }
}

@keyframes roulette-stop-breathe {
    0%,
    100% {
        transform: translateY(-50%) rotate(var(--stop-rotation, 0deg)) scale(1);
        box-shadow: 0 8px 0 #000000;
    }
    50% {
        transform: translateY(-50%) rotate(var(--stop-rotation, 0deg)) scale(1.08);
        box-shadow: 0 11px 0 #000000, 0 0 18px rgba(255, 215, 0, 0.22);
    }
}

@keyframes versus-breathe {
    0%,
    100% {
        transform: rotate(-7deg) scale(1);
        box-shadow: 0 8px 24px rgba(255, 215, 0, 0.22);
    }
    50% {
        transform: rotate(-7deg) scale(1.08);
        box-shadow: 0 12px 28px rgba(255, 215, 0, 0.28);
    }
}

@keyframes logo-breathe {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.38));
    }
    50% {
        transform: scale(1.045);
        filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.42));
    }
}

@keyframes callout-breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

.roulette-stop-button-left {
    --stop-rotation: -8deg;
}

.roulette-stop-button-right {
    --stop-rotation: 8deg;
}

.roulette-stop-button-left.is-triggered {
    transform: translateY(-50%) rotate(-8deg) scale(1.18);
}

.roulette-stop-button-right.is-triggered {
    transform: translateY(-50%) rotate(8deg) scale(1.18);
}

.roulette-stop-button-left:active {
    transform: translateY(calc(-50% + 4px)) rotate(-8deg) scale(0.98);
}

.roulette-stop-button-right:active {
    transform: translateY(calc(-50% + 4px)) rotate(8deg) scale(0.98);
}

.spin-intro-overlay.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.spin-start-button {
    min-width: min(100%, 320px);
    min-height: 78px;
    border: 4px solid #000000;
    border-radius: 24px;
    box-shadow: 0 10px 0 #000000;
    font-size: 2.3rem;
}

.spin-start-button:active {
    transform: translateY(6px);
    box-shadow: 0 4px 0 #000000;
}

.game-menu-overlay {
    z-index: 10;
}

.game-player-badge {
    min-height: 54px;
    padding: 0.95rem 1rem;
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 18px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--text-light);
    font-family: var(--headline);
    font-size: 1.12rem;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.feedback-banner.is-success {
    border-color: var(--success-color);
}

.feedback-banner.is-error {
    border-color: var(--danger-color);
}

.home-page {
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.95), rgba(255, 215, 0, 0.64) 20%, rgba(113, 91, 0, 0.24) 40%, transparent 58%),
        linear-gradient(135deg, #ffd700 0%, #cbad13 16%, #564600 34%, #171300 56%, #050505 82%, #000000 100%);
}

.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.8px, transparent 1.8px);
    background-size: 24px 24px;
    opacity: 0.38;
    pointer-events: none;
}

.home-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.08), rgba(0, 0, 0, 0.2)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 16px, transparent 16px 42px);
    background-size: auto, 180px 180px;
    animation: home-stripes-drift 12s linear infinite;
    pointer-events: none;
}

.home-header,
.home-landing-shell {
    position: relative;
    z-index: 2;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(calc(100% - 1rem), var(--app-width));
    padding-top: 1rem;
}

.menu-toggle-button,
.menu-close-button,
.user-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.menu-toggle-button {
    flex-direction: column;
    gap: 0.34rem;
}

.menu-toggle-button span {
    width: 26px;
    height: 4px;
    border-radius: 999px;
    background: #111111;
    box-shadow: 0 1px 0 rgba(255, 215, 0, 0.22);
}

.menu-close-button {
    color: var(--text-light);
    font-family: var(--headline);
    font-size: 2.3rem;
    line-height: 1;
}

.user-toggle-button {
    position: relative;
}

.user-toggle-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
}

.user-toggle-head,
.user-toggle-body {
    position: absolute;
    background: #111111;
}

.user-toggle-head {
    top: 1px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.user-toggle-body {
    bottom: 1px;
    width: 22px;
    height: 12px;
    border-radius: 999px 999px 8px 8px;
}

.home-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 12;
    opacity: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.72)),
        linear-gradient(135deg, rgba(255, 215, 0, 0.06) 0%, transparent 42%, rgba(255, 215, 0, 0.1) 100%);
    backdrop-filter: blur(10px);
    transition: opacity 180ms ease;
}

.home-menu-panel {
    display: flex;
    flex-direction: column;
    width: min(calc(100% - 1rem), var(--app-width));
    min-height: 100vh;
    margin: 0 auto;
    transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 200ms ease;
}

.home-menu-top {
    display: flex;
    justify-content: flex-start;
    padding-top: 1rem;
}

.home-menu-content {
    flex: 1;
    display: grid;
    align-content: center;
    gap: 1.35rem;
    padding: 0 1.15rem 3rem;
    position: relative;
}

.home-menu-blur {
    position: absolute;
    top: 18%;
    left: 50%;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 215, 0, 0.34), rgba(255, 215, 0, 0.12) 20%, rgba(20, 20, 20, 0) 68%);
    filter: blur(30px);
    transform: translateX(-50%);
    pointer-events: none;
}

.home-menu-group {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.45rem;
}

.home-menu-label {
    margin: 0;
    color: #74a7ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.home-menu-label-warm {
    color: var(--primary-color);
}

.home-menu-link,
.home-menu-link-button {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-light);
    text-align: left;
}

.home-menu-link:active,
.home-menu-link-button:active {
    transform: translateY(2px);
}

.home-menu-link {
    cursor: pointer;
}

.home-menu-link-text {
    font-family: var(--headline);
    font-size: clamp(2.05rem, 10vw, 3rem);
    line-height: 0.94;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.home-menu-arrow {
    color: rgba(255, 255, 255, 0.32);
    font-family: var(--headline);
    font-size: 2rem;
    line-height: 1;
}

.home-menu-divider {
    height: 1px;
    margin-top: 0.35rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
}

.home-menu-soon {
    margin: 0;
    color: rgba(255, 255, 255, 0.16);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.home-menu-toggle:checked ~ .home-main-overlay {
    opacity: 1;
    pointer-events: auto;
}

.home-user-menu-toggle:checked ~ .home-user-overlay {
    opacity: 1;
    pointer-events: auto;
}

.home-main-overlay .home-menu-panel {
    transform: translateX(-36px);
    opacity: 0;
}

.home-user-overlay .home-menu-panel {
    transform: translateX(36px);
    opacity: 0;
}

.home-menu-toggle:checked ~ .home-main-overlay .home-menu-panel {
    transform: translateX(0);
    opacity: 1;
}

.home-user-menu-toggle:checked ~ .home-user-overlay .home-menu-panel {
    transform: translateX(0);
    opacity: 1;
}

.home-landing-shell {
    display: grid;
    min-height: calc(100vh - 88px);
    align-items: start;
}

.home-hero-minimal {
    display: grid;
    justify-items: center;
    width: 100%;
    gap: 0.35rem;
    padding: 0.35rem 0 3rem;
    text-align: center;
}

.home-logo-image {
    width: min(95vw, 400px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    animation: logo-breathe 1.8s ease-in-out infinite;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.38));
}

.home-tagline {
    margin: -0.25rem 0 0;
    color: var(--text-light);
    font-family: var(--headline);
    font-size: clamp(2.00rem, 7.0vw, 2.8rem);
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.home-play-button {
    width: min(calc(100% - 1rem), 390px);
    max-width: none;
    min-height: 88px;
    padding-inline: 1.5rem;
    border: 4px solid #000000;
    border-radius: 24px;
    font-size: 2.8rem;
    box-shadow: 0 10px 0 #000000;
    margin-top: 0.15rem;
}

.home-play-button:active {
    transform: translateY(6px);
    box-shadow: 0 4px 0 #000000;
}

.home-rissometro-button {
    width: min(calc(100% - 2.2rem), 320px);
    min-height: 62px;
    border: 3px solid rgba(0, 0, 0, 0.9);
    border-radius: 20px;
    font-size: 1.95rem;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.92);
}

.home-rissometro-button:active {
    transform: translateY(5px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.92);
}

.rissometro-shell {
    padding-top: 0.35rem;
}

.rissometro-page-panel {
    margin-top: 0.4rem;
}

.rissometro-page-panel h2 {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
}

.back-toggle-button {
    text-decoration: none;
}

.back-toggle-arrow {
    color: #111111;
    font-family: var(--headline);
    font-size: 2rem;
    line-height: 1;
}

.home-sub-link {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-sub-link:active {
    opacity: 0.75;
}

.home-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 14;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    background: rgba(8, 8, 8, 0.58);
    backdrop-filter: blur(6px);
    transition: opacity 180ms ease;
}

.home-auth-modal {
    display: none;
    width: min(100%, 348px);
    padding: 1.1rem 1rem 1.35rem;
    border: 4px solid #1b1b1b;
    border-radius: 24px;
    background: #ffffff;
    color: #1b1b1b;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.38);
}

#login-modal:checked ~ .home-auth-overlay,
#register-modal:checked ~ .home-auth-overlay {
    opacity: 1;
    pointer-events: auto;
}

#login-modal:checked ~ .home-auth-overlay .home-auth-modal-login {
    display: block;
}

#register-modal:checked ~ .home-auth-overlay .home-auth-modal-register {
    display: block;
}

.home-auth-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -0.35rem;
    color: #9ca3af;
    font-family: var(--headline);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.home-auth-title {
    margin: 0 0 1rem;
    color: #3b82f6;
    font-family: var(--headline);
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(59, 130, 246, 0.28);
}

.home-auth-error {
    margin-bottom: 0.85rem;
    padding: 0.8rem 0.9rem;
    border: 2px solid rgba(239, 68, 68, 0.34);
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    font-size: 0.92rem;
    text-align: center;
}

.home-auth-success {
    margin-bottom: 0.85rem;
    padding: 0.8rem 0.9rem;
    border: 2px solid rgba(156, 255, 79, 0.34);
    border-radius: 16px;
    background: rgba(156, 255, 79, 0.08);
    color: #255b10;
    font-size: 0.92rem;
    text-align: center;
}

.home-auth-form {
    display: grid;
    gap: 0.85rem;
}

.home-auth-form input {
    width: 100%;
    min-height: 56px;
    padding: 0.95rem 1rem;
    border: 4px solid #d1d5db;
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 700;
}

.home-auth-form input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.home-auth-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.16);
}

.home-auth-submit {
    min-height: 60px;
    margin-top: 0.1rem;
    border: 4px solid #111111;
    border-radius: 18px;
    box-shadow: 0 7px 0 #111111;
    font-size: 2.1rem;
}

.home-auth-submit:active {
    transform: translateY(4px);
    box-shadow: 0 3px 0 #111111;
}

.home-auth-switch-copy {
    margin: 1rem 0 0.25rem;
    color: #6b7280;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.home-auth-switch-link {
    display: block;
    color: #2563eb;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
}

.home-user-panel {
    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.08), transparent 14%),
        rgba(14, 14, 14, 0.78);
}

.home-user-top {
    justify-content: flex-end;
}

.home-user-content {
    gap: 1.15rem;
}

.user-menu-card {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 18px;
    background: rgba(255, 215, 0, 0.08);
}

.user-menu-item-label {
    margin: 0 0 0.35rem;
    color: rgba(255, 215, 0, 0.76);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.user-menu-item-value {
    margin: 0;
    color: var(--text-light);
    font-family: var(--headline);
    font-size: 1.1rem;
    line-height: 1.05;
    text-transform: uppercase;
}

.user-menu-form {
    margin-top: 0;
}

@keyframes home-stripes-drift {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 0 0, 180px 180px;
    }
}
