:root {
    --arena-bg: #050607;
    --arena-surface: #101214;
    --arena-surface-raised: #17191c;
    --arena-surface-deep: #090a0b;
    --arena-gold: #d5b25f;
    --arena-gold-bright: #f3d98f;
    --arena-ivory: #f4ecd7;
    --arena-muted: #aaa493;
    --arena-red: #e15f50;
    --arena-green: #55a967;
    --arena-blue: #4ea3bf;
    --arena-cyan: #4dc7c1;
    --arena-violet: #8f77ba;
    --bg: var(--arena-bg);
    --panel: rgba(12, 14, 16, 0.94);
    --panel-strong: rgba(8, 9, 10, 0.98);
    --gold: var(--arena-gold);
    --gold-soft: var(--arena-gold-bright);
    --text: var(--arena-ivory);
    --muted: var(--arena-muted);
    --red: var(--arena-red);
    --green: var(--arena-green);
    --cyan: var(--arena-cyan);
    color-scheme: dark;
}

html,
body {
    background: var(--arena-bg);
}

body {
    color: var(--arena-ivory);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

body::before,
body::after {
    display: none;
}

.space-backdrop {
    background: #030405;
}

.space-backdrop img {
    opacity: 0.28;
    filter: saturate(0.8) brightness(0.62) contrast(1.08);
}

.game-header {
    width: 100%;
    min-height: 64px;
    margin: 0;
    border-bottom: 1px solid rgba(213, 178, 95, 0.52);
    padding: 8px clamp(14px, 2vw, 32px);
    background: rgba(4, 5, 6, 0.96);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.game-brand {
    gap: 13px;
}

.game-brand img {
    width: 43px;
    height: 43px;
    filter: sepia(0.45) saturate(0.82) brightness(1.14);
}

.game-brand span {
    display: flex;
    flex-direction: column-reverse;
    gap: 1px;
}

.game-brand small {
    color: var(--arena-gold-bright);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(1.22rem, 1.8vw, 1.78rem);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
}

.game-brand strong {
    color: #8e8a7f;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.game-header__actions {
    gap: 8px;
}

.space-sound-toggle,
.vc-sound-toggle,
.space-music-control,
.prototype-pill {
    border-color: rgba(213, 178, 95, 0.54);
    background: rgba(12, 14, 16, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 7px 20px rgba(0, 0, 0, 0.26);
}

.space-sound-toggle,
.vc-sound-toggle,
.prototype-pill {
    min-height: 38px;
    border-radius: 7px;
    color: var(--arena-gold-bright);
}

.space-sound-toggle.is-on,
.vc-sound-toggle.is-on,
.space-music-toggle.is-on {
    border-color: rgba(77, 199, 193, 0.78);
    background: #102020;
    color: #dbfffb;
    box-shadow: inset 0 0 0 1px rgba(77, 199, 193, 0.16), 0 0 18px rgba(77, 199, 193, 0.14);
}

.space-music-control {
    min-height: 38px;
    border-radius: 7px;
    padding: 4px 7px;
}

.space-music-toggle {
    border-color: rgba(213, 178, 95, 0.34);
    border-radius: 5px;
    background: #08090a;
    color: #c8c0ad;
}

.space-music-volume {
    color: #9d9787;
}

.space-music-volume input {
    accent-color: var(--arena-cyan);
}

.prototype-pill {
    padding-inline: 14px;
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: 0.78rem;
}

.goose-game {
    width: min(1600px, calc(100vw - 24px));
    padding: 10px 0 14px;
}

.game-table {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.table-titlebar {
    display: none;
}

.board-scroll {
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.space-game-board {
    --tile-size: min(79px, calc(100cqw / 16 - 7px), calc(100cqh / 10 - 4px));
    aspect-ratio: 16 / 9;
    border: 2px solid rgba(213, 178, 95, 0.78);
    border-radius: 12px;
    background: #101214 url("../images/arena-juvenil-desktop.webp?v=20260712youth1") center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(243, 217, 143, 0.2), inset 0 -42px 70px rgba(0, 0, 0, 0.35), 0 24px 62px rgba(0, 0, 0, 0.56);
}

.space-game-board::before {
    background: rgba(0, 0, 0, 0.08);
    opacity: 1;
}

.space-game-board::after {
    inset: 11px;
    border-color: rgba(213, 178, 95, 0.38);
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.56);
}

.board-nebula,
.olympic-banner-layer,
.start-boarding-light {
    display: none;
}

.space-route-ribbon {
    stroke: rgba(7, 8, 9, 0.92);
    stroke-width: clamp(50px, 6.4vw, 82px);
    filter: drop-shadow(0 0 1px rgba(243, 217, 143, 0.86)) drop-shadow(0 9px 12px rgba(0, 0, 0, 0.72));
}

.space-route-glow {
    stroke: rgba(213, 178, 95, 0.58);
    stroke-width: clamp(7px, 0.8vw, 11px);
    filter: blur(2px);
}

.space-route-line {
    stroke: #e4cf91;
    stroke-width: clamp(3px, 0.36vw, 5px);
    stroke-dasharray: 13 9;
    filter: drop-shadow(0 0 4px rgba(213, 178, 95, 0.48));
}

.space-tile,
.start-space {
    border-width: 2px;
    border-radius: 8px;
    background: #17191c;
    box-shadow: 0 8px 0 #08090a, 0 12px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.space-tile {
    grid-template-rows: 1fr;
    gap: 0;
    padding: 9px 5px 5px;
}

.space-tile::before {
    display: none;
}

.space-tile:hover,
.space-tile:focus-visible,
.space-tile.is-selected,
.start-space:hover,
.start-space:focus-visible,
.start-space.is-selected {
    border-color: var(--arena-gold-bright);
    outline: 2px solid rgba(243, 217, 143, 0.35);
    outline-offset: 2px;
    transform: translate(-50%, calc(-50% - 4px));
    box-shadow: 0 9px 0 #08090a, 0 16px 24px rgba(0, 0, 0, 0.58), 0 0 18px rgba(213, 178, 95, 0.22);
}

.space-tile__core {
    display: none;
}

.space-tile__copy {
    align-self: center;
    align-content: center;
    width: 100%;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 12px 2px 0;
    background: transparent;
    box-shadow: none;
}

.space-tile__step {
    top: 4px;
    left: 5px;
    border: 0;
    border-radius: 4px;
    padding: 2px 5px;
    background: #070809;
    color: var(--arena-gold-bright);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: 0.66rem;
}

.space-tile__label {
    color: #f6f0e2;
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(0.64rem, 0.7cqw, 0.76rem);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.space-tile__sub {
    margin-top: 2px;
    color: #d4c8aa;
    font-size: clamp(0.48rem, 0.5cqw, 0.56rem);
    font-weight: 800;
}

.space-tile,
.space-tile.tone-prize,
.space-tile.tone-penalty,
.space-tile.tone-move,
.space-tile.tone-chance,
.space-tile.tone-shield,
.space-tile.tone-duel,
.space-tile.tone-final,
.space-tile.tone-rest,
.space-tile.tone-mixed {
    background: #17191c;
    box-shadow: 0 8px 0 #08090a, 0 12px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.space-tile.tone-prize {
    border-color: #c9a751;
    background: #252015;
}

.space-tile.tone-penalty,
.space-tile.tone-duel {
    border-color: var(--arena-red);
    background: #281817;
}

.space-tile.tone-move,
.space-tile.tone-shield {
    border-color: var(--arena-green);
    background: #17241a;
}

.space-tile.tone-chance,
.space-tile.tone-rest {
    border-color: var(--arena-blue);
    background: #152329;
}

.space-tile.tone-final {
    border-color: var(--arena-gold-bright);
    background: #2b2415;
}

.space-tile.tone-mixed {
    border-color: #c8884e;
    background: #291e17;
}

.space-tile.is-crown {
    border-color: var(--arena-gold-bright);
    background: #2d2515;
    box-shadow: 0 8px 0 #08090a, 0 13px 20px rgba(0, 0, 0, 0.55), 0 0 24px rgba(213, 178, 95, 0.3);
}

.space-tile.is-selected,
.space-tile.is-selected.tone-prize,
.space-tile.is-selected.tone-penalty,
.space-tile.is-selected.tone-move,
.space-tile.is-selected.tone-chance,
.space-tile.is-selected.tone-shield,
.space-tile.is-selected.tone-duel,
.space-tile.is-selected.tone-final,
.space-tile.is-selected.tone-rest,
.space-tile.is-selected.tone-mixed {
    background-color: #fffaf0;
    background-image: none;
}

.space-tile.is-selected.tone-prize { background-color: #fff3bd; }
.space-tile.is-selected.tone-penalty,
.space-tile.is-selected.tone-duel { background-color: #ffe1da; }
.space-tile.is-selected.tone-move,
.space-tile.is-selected.tone-shield { background-color: #dcf3d6; }
.space-tile.is-selected.tone-chance,
.space-tile.is-selected.tone-rest { background-color: #d8f1f8; }
.space-tile.is-selected.tone-final { background-color: #ffe89a; }
.space-tile.is-selected.tone-mixed { background-color: #ffe0bd; }

.start-space {
    top: 8.6%;
    border-color: var(--arena-gold-bright);
    background: #17130c;
}

.start-space__core {
    width: 56%;
    border-color: rgba(243, 217, 143, 0.52);
    background: #101214;
    box-shadow: 0 0 0 4px rgba(213, 178, 95, 0.08);
}

.start-space__core img {
    filter: sepia(0.28) saturate(0.82) brightness(1.08) drop-shadow(0 5px 7px rgba(0, 0, 0, 0.52));
}

.finish-relevo {
    left: 29%;
    top: 41%;
    width: clamp(220px, 18cqw, 284px);
    gap: 8px;
}

.finish-relevo img {
    flex-basis: clamp(104px, 8.2cqw, 134px);
    width: clamp(104px, 8.2cqw, 134px);
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.56)) drop-shadow(0 0 18px rgba(213, 178, 95, 0.18));
}

.finish-relevo span {
    border: 1px solid rgba(213, 178, 95, 0.58);
    border-radius: 6px;
    padding: 6px 9px;
    background: rgba(10, 11, 12, 0.92);
    color: var(--arena-gold-bright);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(0.62rem, 0.72cqw, 0.74rem);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.central-command {
    left: 57%;
    top: 32.8%;
    width: min(244px, 18.5%);
    min-height: 146px;
    gap: 7px;
    border: 1px solid rgba(213, 178, 95, 0.72);
    border-radius: 10px;
    padding: 12px;
    background: rgba(10, 11, 12, 0.94);
    box-shadow: 0 14px 0 rgba(5, 5, 6, 0.74), 0 22px 34px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.central-command .eyebrow {
    color: #a78c50;
    font-size: 0.58rem;
}

.central-command strong {
    color: var(--arena-ivory);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(1rem, 1.35cqw, 1.25rem);
    text-transform: uppercase;
}

.turn-badge {
    border-color: rgba(77, 199, 193, 0.42);
    border-radius: 5px;
    background: #0c1717;
    color: #d8f5ef;
}

.turn-status-line {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
}

.turn-status-line .turn-badge {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-turn-clock {
    display: inline-flex;
    min-width: 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(68, 215, 208, 0.58);
    border-radius: 5px;
    padding: 4px 6px;
    background: rgba(5, 18, 31, 0.94);
    color: #cffffc;
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: 0.63rem;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: inset 2px 0 0 #44d7d0, 0 0 10px rgba(68, 215, 208, 0.16);
}

.online-turn-clock.is-warning {
    border-color: rgba(246, 199, 74, 0.78);
    color: #fff0ac;
    box-shadow: inset 2px 0 0 #f6c74a, 0 0 12px rgba(246, 199, 74, 0.24);
}

.online-turn-clock.is-critical {
    border-color: rgba(255, 92, 84, 0.9);
    background: rgba(51, 9, 13, 0.96);
    color: #fff0e8;
    box-shadow: inset 2px 0 0 #ff4a43, 0 0 14px rgba(255, 49, 49, 0.32);
}

.online-turn-clock--floating {
    position: fixed;
    z-index: 10020;
    top: 72px;
    right: 16px;
    min-width: 132px;
    min-height: 34px;
    border-radius: 7px;
    padding: 7px 10px;
    pointer-events: none;
    box-shadow: inset 3px 0 0 #44d7d0, 0 8px 24px rgba(0, 0, 0, 0.46), 0 0 16px rgba(68, 215, 208, 0.22);
}

.orbital-die {
    width: 58px;
    border: 2px solid #e8cf82;
    border-radius: 10px;
    background: #d5b25f;
    box-shadow: 0 7px 0 #705820, 0 11px 20px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.orbital-die:hover,
.orbital-die:focus-visible {
    border-color: #fff0b2;
    outline: 2px solid rgba(243, 217, 143, 0.4);
    outline-offset: 2px;
    transform: translateY(-2px);
}

.die-face i {
    background: #17130c;
}

.board-quick-actions {
    left: 2.4%;
    top: 43%;
    gap: 6px;
    width: clamp(118px, 9.1cqw, 142px);
}

.board-quick-actions .primary-action,
.board-quick-actions .secondary-action {
    min-height: 31px;
    border: 1px solid rgba(213, 178, 95, 0.58);
    border-radius: 6px;
    padding: 6px 8px;
    background: rgba(10, 11, 12, 0.92);
    color: #e8deca;
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(0.5rem, 0.56cqw, 0.61rem);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.36), inset 3px 0 0 var(--arena-gold);
}

.board-quick-actions .primary-action::before,
.board-quick-actions .secondary-action::before,
.board-quick-actions .primary-action::after,
.board-quick-actions .secondary-action::after {
    display: none;
}

.board-quick-actions .primary-action:not(:disabled):hover,
.board-quick-actions .primary-action:not(:disabled):focus-visible,
.board-quick-actions .secondary-action:not(:disabled):hover,
.board-quick-actions .secondary-action:not(:disabled):focus-visible {
    border-color: var(--arena-gold-bright);
    background: #1d1a12;
    color: #fff5d8;
    outline: 2px solid rgba(213, 178, 95, 0.28);
    outline-offset: 2px;
    transform: translateX(2px);
}

.board-token[data-token-dock="home"],
.dock-token,
.mobile-board-token {
    border-width: 0;
    background: transparent;
    box-shadow: none;
}

.board-token[data-token-dock] img,
.dock-token img,
.mobile-board-token img {
    filter: drop-shadow(0 8px 7px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 8px color-mix(in srgb, var(--token-rim), transparent 18%));
}

.board-token[data-token-dock="home"] {
    border: 1px solid color-mix(in srgb, var(--token-rim), #d5b25f 28%);
    border-radius: 7px;
    background: rgba(7, 9, 11, 0.92);
    box-shadow:
        0 5px 10px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(213, 178, 95, 0.14),
        0 0 11px color-mix(in srgb, var(--token-rim), transparent 44%);
    overflow: hidden;
}

.board-token[data-token-dock="home"]::before {
    inset: 2px;
    border: 1px solid color-mix(in srgb, var(--token-rim), transparent 42%);
    border-radius: 5px;
    background: transparent;
    opacity: 0.72;
}

.board-token[data-token-dock="home"] img {
    width: auto;
    max-width: calc(100% - 6px);
    height: calc(100% - 6px);
    object-fit: contain;
    transform: none;
    transform-origin: center;
    filter:
        drop-shadow(0 4px 4px rgba(0, 0, 0, 0.66))
        drop-shadow(0 0 5px color-mix(in srgb, var(--token-rim), transparent 34%));
}

.board-token.is-current[data-token-dock="home"] {
    border-color: color-mix(in srgb, var(--token-rim), #fff 24%);
    outline: 1px solid rgba(255, 247, 210, 0.9);
    outline-offset: 2px;
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.56),
        0 0 0 2px color-mix(in srgb, var(--token-rim), transparent 52%),
        0 0 16px color-mix(in srgb, var(--token-rim), transparent 22%);
}

.board-token[data-token-dock]:not([data-token-dock="home"]) {
    border: 2px solid color-mix(in srgb, var(--token-rim), #fff 42%);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--token-rim), #fff 42%), transparent 27%),
        radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--token-color), transparent 12%), transparent 72%),
        linear-gradient(145deg, color-mix(in srgb, var(--token-color), #050506 26%), rgba(5, 7, 10, 0.86));
    box-shadow:
        0 5px 10px rgba(0, 0, 0, 0.58),
        0 0 0 1px color-mix(in srgb, var(--token-color), #fff 38%),
        0 0 13px color-mix(in srgb, var(--token-rim), transparent 14%),
        0 0 25px color-mix(in srgb, var(--token-color), transparent 26%),
        inset 0 0 12px color-mix(in srgb, var(--token-rim), transparent 48%);
    isolation: isolate;
    overflow: visible;
}

.board-token.is-current[data-token-dock]:not([data-token-dock="home"]) {
    border-color: color-mix(in srgb, var(--token-rim), #fff 24%);
    outline: 1px solid rgba(255, 247, 210, 0.92);
    outline-offset: 2px;
    box-shadow:
        0 7px 14px rgba(0, 0, 0, 0.62),
        0 0 0 2px color-mix(in srgb, var(--token-rim), #fff 38%),
        0 0 18px color-mix(in srgb, var(--token-rim), transparent 4%),
        0 0 30px color-mix(in srgb, var(--token-color), transparent 18%),
        inset 0 0 14px color-mix(in srgb, var(--token-rim), transparent 42%);
}

.board-token[data-token-dock]:not([data-token-dock="home"]) img {
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 9px color-mix(in srgb, var(--token-rim), transparent 8%));
}

.mobile-game-shell {
    color: var(--arena-ivory);
}

.mobile-command-console {
    border: 1px solid rgba(213, 178, 95, 0.66);
    border-radius: 10px;
    background: #0c0d0f;
    box-shadow: 0 9px 0 #050607, 0 16px 28px rgba(0, 0, 0, 0.46);
}

.mobile-command-console__main strong {
    color: var(--arena-ivory);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    text-transform: uppercase;
}

.mobile-command-console__actions .primary-action,
.mobile-command-console__actions .secondary-action {
    border: 1px solid rgba(213, 178, 95, 0.46);
    border-radius: 6px;
    background: #17191c;
    color: #ece3d0;
    box-shadow: inset 0 3px 0 rgba(213, 178, 95, 0.52);
}

.mobile-path-scroll {
    border: 1px solid rgba(213, 178, 95, 0.48);
    border-radius: 12px;
    background: #0a0b0c;
    scrollbar-color: rgba(213, 178, 95, 0.72) rgba(255, 255, 255, 0.06);
}

.mobile-path-board {
    border: 0;
    border-radius: 11px;
    background: #111315 url("../images/arena-juvenil-mobile.webp?v=20260712youth1") top center / 100% auto no-repeat;
    box-shadow: inset 0 0 0 1px rgba(213, 178, 95, 0.22), inset 0 -80px 120px rgba(0, 0, 0, 0.54);
}

.mobile-path-board::before {
    background: rgba(0, 0, 0, 0.06);
    opacity: 1;
}

.mobile-route-ribbon {
    stroke: rgba(7, 8, 9, 0.94);
    stroke-width: 38px;
    filter: drop-shadow(0 0 1px rgba(213, 178, 95, 0.8)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.7));
}

.mobile-route-glow {
    stroke: rgba(213, 178, 95, 0.56);
    stroke-width: 8px;
    filter: blur(2px);
}

.mobile-route-line {
    stroke: #e4cf91;
    stroke-width: 4px;
    stroke-dasharray: 11 8;
    filter: drop-shadow(0 0 3px rgba(213, 178, 95, 0.46));
}

.mobile-tile,
.mobile-tile.tone-prize,
.mobile-tile.tone-penalty,
.mobile-tile.tone-move,
.mobile-tile.tone-chance,
.mobile-tile.tone-shield,
.mobile-tile.tone-duel,
.mobile-tile.tone-final,
.mobile-tile.tone-rest,
.mobile-tile.tone-mixed {
    border-width: 2px;
    border-radius: 9px;
    background: #17191c;
    box-shadow: 0 7px 0 #070809, 0 12px 20px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.mobile-tile.tone-prize {
    background: #252015;
}

.mobile-tile.tone-penalty,
.mobile-tile.tone-duel {
    background: #281817;
}

.mobile-tile.tone-move,
.mobile-tile.tone-shield {
    background: #17241a;
}

.mobile-tile.tone-chance,
.mobile-tile.tone-rest {
    background: #152329;
}

.mobile-tile.tone-final {
    background: #2b2415;
}

.mobile-tile.tone-mixed {
    background: #291e17;
}

.mobile-tile__step {
    border-radius: 4px;
    background: #070809;
    color: var(--arena-gold-bright);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
}

.mobile-tile__core,
.mobile-tile__core.is-art,
.mobile-tile.is-champion .mobile-tile__core.is-art,
.mobile-tile.is-crown .mobile-tile__core.is-art {
    border-color: rgba(var(--tile-accent-rgb), 0.56);
    border-radius: 10px;
    background: #0a0b0c;
    box-shadow: 0 0 0 3px rgba(var(--tile-accent-rgb), 0.08), 0 0 14px rgba(var(--tile-accent-rgb), 0.18);
}

.mobile-tile__label {
    color: #f3ecdc;
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-weight: 800;
}

.mobile-tile__sub {
    color: #cfc4aa;
}

.setup-modal__backdrop,
.turn-notice-modal__backdrop,
.space-puzzle-modal__backdrop,
.rules-modal__backdrop,
.winner-modal__backdrop,
.comodin-modal__backdrop,
.chance-modal__backdrop,
.info-tile-modal__backdrop,
.jigsaw-modal__backdrop,
.word-search-modal__backdrop,
.crossword-modal__backdrop,
.reflex-modal__backdrop,
.memory-modal__backdrop,
.duel-modal__backdrop,
.token-modal__backdrop,
.champion-quiz-modal__backdrop {
    background: rgba(2, 3, 4, 0.82);
    backdrop-filter: blur(10px);
}

.setup-modal__card,
.turn-notice-modal__card,
.champion-quiz-modal__card,
.space-puzzle-modal__card,
.jigsaw-modal__card,
.word-search-modal__card,
.crossword-modal__card,
.reflex-modal__card,
.memory-modal__card,
.duel-modal__card,
.rules-modal__card,
.comodin-modal__card,
.winner-modal__card,
.chance-modal__card,
.info-tile-modal__card,
.token-modal__card {
    border-color: rgba(213, 178, 95, 0.72);
    border-radius: 12px;
    background: #101214;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(213, 178, 95, 0.08);
}

.setup-modal__card::before,
.turn-notice-modal__card::before,
.space-puzzle-modal__card::before,
.rules-modal__card::before,
.winner-modal__card::before {
    display: none;
}

.setup-modal__hero h2,
.turn-notice-modal h2,
.space-puzzle-modal h2,
.rules-modal h2,
.winner-modal h2,
.info-tile-modal h2,
.champion-quiz-modal h2 {
    color: var(--arena-ivory);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    text-transform: uppercase;
}

.setup-modal__close,
.turn-notice-modal__actions .primary-action,
.space-puzzle-modal__actions .primary-action,
.rules-modal__actions .primary-action,
.winner-modal__actions .primary-action,
.champion-quiz-modal__actions .primary-action,
.info-tile-modal__actions .primary-action {
    border-color: rgba(213, 178, 95, 0.74);
    border-radius: 6px;
    background: #2a2417;
    color: #fff3cc;
    box-shadow: 0 6px 0 #0a0b0c, inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mode-button,
.setup-player-card,
.setup-token-button,
.setup-modal__settings,
.rules-modal__item,
.space-puzzle-modal__board-frame,
.space-puzzle-modal__status {
    border-color: rgba(213, 178, 95, 0.28);
    background: #151719;
}

.mode-button.is-active,
.setup-token-button.is-selected {
    border-color: var(--arena-gold);
    background: #242014;
    box-shadow: inset 0 3px 0 rgba(213, 178, 95, 0.62), 0 0 16px rgba(213, 178, 95, 0.12);
}

.mode-button span,
.mode-button small,
.setup-player-card strong,
.setup-player-card small,
.setup-field > span,
.setup-name-field > span,
.setup-token-button span,
.setup-player-tabs button {
    color: #12324e;
}

.mode-button small,
.setup-player-card small {
    color: #6d5c39;
}

.setup-name-field input,
.setup-field select,
.setup-select-button {
    border-color: rgba(15, 49, 84, 0.28);
    background: #ffffff;
    color: #12324e;
}

.setup-modal__actions .primary-action,
.setup-modal__actions .secondary-action {
    border-color: #d5a62e;
    background: #0f3154;
    color: #fff8e7;
    box-shadow: 0 5px 0 #071d32, 0 9px 16px rgba(3, 23, 42, 0.2);
}

.setup-modal__actions .primary-action:disabled,
.setup-modal__actions .secondary-action:disabled {
    border-color: #bcb5a5;
    background: #e5dfd1;
    color: #857f72;
    box-shadow: none;
}

.space-puzzle-modal__timer,
.space-puzzle-modal__reward-strip,
.turn-notice-modal__highlight,
.champion-quiz-modal__reward {
    border-color: rgba(213, 178, 95, 0.54);
    border-radius: 7px;
    background: #17191c;
    color: var(--arena-gold-bright);
}

.winner-modal__podio {
    width: clamp(150px, 28vw, 230px);
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 24px rgba(213, 178, 95, 0.18));
}

.online-spectator-banner {
    border-color: rgba(77, 199, 193, 0.52);
    border-radius: 7px;
    background: #102020;
    color: #dcfffa;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

@media (min-width: 1100px) {
    .space-game-board {
        max-height: calc(100svh - 84px);
    }
}

@media (max-width: 1100px) and (min-width: 761px) {
    .game-header {
        min-height: 58px;
        padding-inline: 14px;
    }

    .prototype-pill {
        display: none;
    }

    .space-game-board {
        min-width: 980px;
    }
}

@media (max-width: 760px) and (orientation: portrait) {
    .space-backdrop img {
        opacity: 0.24;
    }

    .game-header {
        width: 100%;
        min-height: 48px;
        padding: max(4px, env(safe-area-inset-top)) 8px 4px;
    }

    .game-brand img {
        display: none;
    }

    .game-brand span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        clip-path: none;
        white-space: normal;
    }

    .game-brand small {
        max-width: 118px;
        font-size: 0.78rem;
        line-height: 1;
    }

    .game-brand strong {
        display: none;
    }

    .game-header__actions .space-sound-toggle,
    .game-header__actions .space-music-toggle {
        min-height: 36px;
        border-radius: 6px;
        padding: 6px 7px;
    }

    .game-header__actions .space-music-control {
        min-height: 36px;
        border-radius: 6px;
    }

    .game-header__actions .space-music-volume input {
        width: 58px;
    }

    .goose-game {
        height: calc(100svh - 48px);
        padding: 5px 6px max(6px, env(safe-area-inset-bottom));
    }

    @supports (height: 100dvh) {
        .goose-game {
            height: calc(100dvh - 48px);
        }
    }

    .game-table {
        border: 1px solid rgba(213, 178, 95, 0.38);
        border-radius: 10px;
        padding: 5px;
        background: rgba(7, 8, 9, 0.88);
    }

    .mobile-game-shell {
        gap: 7px;
    }

    .mobile-command-console {
        grid-template-columns: minmax(0, 1fr) 58px;
        padding: 7px;
    }

    .mobile-command-console__actions {
        gap: 5px;
    }

    .mobile-command-console__actions .primary-action,
    .mobile-command-console__actions .secondary-action {
        min-height: 42px;
        padding: 7px 4px;
        font-size: 0.61rem;
    }

    .mobile-orbital-die {
        width: 52px;
        border-radius: 9px;
    }

    .mobile-path-board {
        padding: 20px 8px 46px;
    }

    .mobile-path-grid {
        grid-auto-rows: minmax(114px, auto);
        gap: 19px 9px;
    }

    .mobile-tile {
        min-height: 114px;
    }

    .mobile-tile:hover,
    .mobile-tile:focus-visible,
    .mobile-tile.is-selected {
        border-color: var(--arena-gold-bright);
        outline: 2px solid rgba(213, 178, 95, 0.3);
        outline-offset: 2px;
        transform: translateY(-2px);
        box-shadow: 0 8px 0 #070809, 0 15px 24px rgba(0, 0, 0, 0.5);
    }

    .setup-modal__card,
    .winner-modal__card,
    .rules-modal__card,
    .comodin-modal__card,
    .turn-notice-modal__card,
    .chance-modal__card,
    .info-tile-modal__card,
    .space-puzzle-modal__card,
    .jigsaw-modal__card,
    .word-search-modal__card,
    .crossword-modal__card,
    .reflex-modal__card,
    .memory-modal__card,
    .duel-modal__card,
    .token-modal__card,
    .champion-quiz-modal__card {
        border-radius: 11px;
    }

    .space-puzzle-modal__card {
        padding: 12px;
    }

    .space-puzzle-modal h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .space-puzzle-modal.is-intro .space-puzzle-modal__actions:not(.is-hidden) {
        position: static;
        inset: auto;
        order: initial;
        width: 100%;
        max-width: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .space-puzzle-modal.is-intro .space-puzzle-modal__card:has(.space-puzzle-modal__actions:not(.is-hidden)) {
        padding-top: 12px;
        scroll-padding-top: 0;
    }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 960px) {
    .mobile-orientation-gate__card {
        border-color: rgba(213, 178, 95, 0.66);
        border-radius: 12px;
        background: #101214;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.66);
    }

    .mobile-orientation-gate__device {
        border-color: var(--arena-gold);
        background: #0a0b0c;
        box-shadow: 0 0 24px rgba(213, 178, 95, 0.14);
    }
}

/* Auditoría de contraste e impacto para ventanas y retos */
.setup-modal__card,
.turn-notice-modal__card,
.champion-quiz-modal__card,
.space-puzzle-modal__card,
.jigsaw-modal__card,
.word-search-modal__card,
.crossword-modal__card,
.reflex-modal__card,
.memory-modal__card,
.duel-modal__card,
.rules-modal__card,
.comodin-modal__card,
.winner-modal__card,
.chance-modal__card,
.info-tile-modal__card,
.token-modal__card {
    --modal-ink: #0d3152;
    --modal-copy: #405a6b;
    --modal-muted: #657988;
    --modal-line: #b9c8cf;
    color: var(--modal-ink);
}

.setup-modal__card .eyebrow,
.turn-notice-modal__card .eyebrow,
.champion-quiz-modal__card .eyebrow,
.space-puzzle-modal__card .eyebrow,
.jigsaw-modal__card .eyebrow,
.word-search-modal__card .eyebrow,
.crossword-modal__card .eyebrow,
.reflex-modal__card .eyebrow,
.memory-modal__card .eyebrow,
.duel-modal__card .eyebrow,
.rules-modal__card .eyebrow,
.comodin-modal__card .eyebrow,
.winner-modal__card .eyebrow,
.chance-modal__card .eyebrow,
.info-tile-modal__card .eyebrow,
.token-modal__card .eyebrow {
    color: #a16b08;
    font-weight: 950;
}

.jigsaw-modal h2,
.word-search-modal h2,
.crossword-modal h2,
.reflex-modal h2,
.memory-modal h2,
.duel-modal h2,
.comodin-modal h2,
.token-modal h2,
.champion-quiz-modal h2 {
    color: var(--modal-ink);
    text-shadow: none;
}

.space-puzzle-modal__head p:not(.eyebrow),
.jigsaw-modal__head p:not(.eyebrow),
.word-search-modal__head p:not(.eyebrow),
.crossword-modal__head p:not(.eyebrow),
.reflex-modal__head p:not(.eyebrow),
.memory-modal__head p:not(.eyebrow),
.duel-modal__head p:not(.eyebrow),
.champion-quiz-modal__hero p:not(.eyebrow) {
    color: var(--modal-copy);
    font-weight: 650;
}

.space-puzzle-modal__timer,
.jigsaw-modal__timer,
.word-search-modal__timer,
.crossword-modal__timer,
.reflex-modal__timer,
.memory-modal__lives {
    border-color: #d6a735;
    background: #fff0b8;
    color: #6b4809;
    box-shadow: 0 4px 0 rgba(143, 99, 17, 0.26);
}

.space-puzzle-modal__meta {
    border-color: #d6a735;
    background: #0d3152;
    box-shadow: inset 5px 0 0 #e5b63d, 0 7px 16px rgba(10, 43, 70, 0.16);
}

.space-puzzle-modal__meta span,
.space-puzzle-modal__meta strong {
    color: #fff8e7;
}

.space-puzzle-modal__reward,
.jigsaw-modal__reward,
.word-search-modal__reward,
.crossword-modal__reward,
.reflex-modal__reward,
.memory-modal__reward,
.duel-modal__prize,
.champion-quiz-modal__reward {
    border-color: #78a56a;
    background: #e7f2dc;
    color: #173d31;
    box-shadow: inset 5px 0 0 #64ad69;
}

.space-puzzle-modal__reward strong,
.jigsaw-modal__reward strong,
.word-search-modal__reward strong,
.crossword-modal__reward strong,
.reflex-modal__reward strong,
.memory-modal__reward strong,
.champion-quiz-modal__reward strong {
    color: #8c5e08;
}

.space-puzzle-modal__reward span,
.jigsaw-modal__reward span,
.word-search-modal__reward span,
.crossword-modal__reward span,
.reflex-modal__reward span,
.memory-modal__reward span,
.champion-quiz-modal__reward span {
    color: #244d3e;
}

.space-puzzle-modal__actions:not(.is-hidden) {
    border: 1px solid var(--modal-line);
    background: #edf4f2;
    box-shadow: inset 0 1px 0 #fff;
}

.space-puzzle-modal__status,
.jigsaw-console,
.word-search-console,
.crossword-console,
.reflex-console,
.memory-console,
.duel-modal__notice {
    border-color: #d6a735;
    background: #0d3152;
    color: #fff8e7;
    box-shadow: inset 5px 0 0 #e5b63d, 0 10px 22px rgba(8, 39, 67, 0.18);
}

.space-puzzle-modal__status strong,
.jigsaw-console strong,
.word-search-console strong,
.crossword-console strong,
.reflex-console strong,
.memory-console strong,
.duel-modal__notice strong {
    color: #fff3bd;
}

.space-puzzle-modal__status p,
.jigsaw-modal .jigsaw-console p,
.word-search-modal .word-search-console p,
.crossword-modal .crossword-console p,
.reflex-modal .reflex-console p,
.memory-modal .memory-console p,
.duel-modal .duel-modal__notice p {
    color: #e6f0f3;
}

.space-puzzle-modal__status small {
    border-color: rgba(98, 214, 211, 0.5);
    background: #103f58;
    color: #b9fffb;
}

.space-puzzle-modal__status.is-success,
.jigsaw-console.is-success,
.word-search-console.is-success,
.crossword-console.is-success,
.reflex-console.is-success,
.memory-console.is-success {
    border-color: #70bb7d;
    background: #174a36;
    box-shadow: inset 5px 0 0 #7ce38b;
}

.space-puzzle-modal__status.is-danger,
.jigsaw-console.is-danger,
.word-search-console.is-danger,
.crossword-console.is-danger,
.reflex-console.is-danger,
.memory-console.is-danger {
    border-color: #e06a5e;
    background: #5a2629;
    box-shadow: inset 5px 0 0 #ef6a57;
}

.jigsaw-steps span,
.word-search-target,
.crossword-clue,
.reflex-stats span,
.memory-progress span,
.duel-rival-card,
.duel-roll-chip,
.comodin-player-card,
.rules-modal__item,
.champion-quiz-option {
    border-color: var(--modal-line);
    background: #fffdf7;
    color: var(--modal-ink);
    box-shadow: 0 5px 12px rgba(13, 49, 82, 0.08);
}

.jigsaw-steps span,
.word-search-target,
.crossword-clue strong,
.crossword-clue span,
.reflex-stats span,
.reflex-stats strong,
.memory-progress span,
.memory-progress strong,
.duel-rival-card strong,
.duel-rival-card small,
.duel-roll-chip strong,
.comodin-player-card strong,
.comodin-player-card small,
.rules-modal__item strong,
.rules-modal__item p,
.champion-quiz-option,
.champion-quiz-modal__question {
    color: var(--modal-ink);
}

.jigsaw-tray,
.word-search-board,
.crossword-board,
.reflex-board-panel,
.memory-board {
    border-color: #9fb4bd;
    background: #e8f0ed;
}

.chance-modal__die-panel,
.turn-notice-modal__die-panel,
.duel-die-panel {
    border-color: #d6a735;
    background: #0d3152;
    color: #fff8e7;
    box-shadow: inset 5px 0 0 #e5b63d;
}

.chance-modal__die-panel > span,
.chance-modal__die-panel > strong,
.turn-notice-modal__die-panel > span,
.duel-die-panel span,
.duel-die-panel strong {
    color: #fff8e7;
}

.turn-notice-modal__notice,
.chance-modal__notice,
.rules-modal__note,
.info-tile-modal__notice,
.champion-quiz-modal__feedback {
    border-color: #d6a735;
    background: #fff0b8;
    color: #60420b;
    box-shadow: inset 5px 0 0 #e5b63d;
}

.turn-notice-modal__notice strong,
.chance-modal__notice strong,
.rules-modal__note,
.info-tile-modal__notice strong,
.info-tile-modal__notice span,
.champion-quiz-modal__feedback {
    color: #60420b;
}

.champion-quiz-modal__progress span {
    border-color: #9fb4bd;
    background: #edf4f2;
    color: #294b60;
}

.champion-quiz-modal__progress span.is-current {
    border-color: #d6a735;
    background: #fff0b8;
    color: #60420b;
}

.champion-quiz-modal__feedback.is-success {
    border-color: #70bb7d;
    background: #e7f2dc;
    color: #174a36;
}

.champion-quiz-modal__feedback.is-danger {
    border-color: #e06a5e;
    background: #ffe2dc;
    color: #6b2527;
}

.setup-modal__close,
.rules-modal__close,
.comodin-modal__close,
.winner-modal__close,
.token-modal__close {
    border-color: #d6a735;
    background: #0d3152;
    color: #fff8e7;
}

.setup-modal__actions .primary-action,
.setup-modal__actions .secondary-action,
.turn-notice-modal__actions .primary-action,
.turn-notice-modal__actions .secondary-action,
.space-puzzle-modal__actions .primary-action,
.space-puzzle-modal__actions .secondary-action,
.jigsaw-modal__actions .primary-action,
.jigsaw-modal__actions .secondary-action,
.word-search-modal__actions .primary-action,
.word-search-modal__actions .secondary-action,
.crossword-modal__actions .primary-action,
.crossword-modal__actions .secondary-action,
.reflex-modal__actions .primary-action,
.reflex-modal__actions .secondary-action,
.memory-modal__actions .primary-action,
.memory-modal__actions .secondary-action,
.duel-modal__actions .primary-action,
.duel-modal__actions .secondary-action,
.rules-modal__actions .primary-action,
.comodin-modal__actions .primary-action,
.winner-modal__actions .primary-action,
.chance-modal__actions .primary-action,
.info-tile-modal__actions .primary-action,
.token-modal__actions .primary-action,
.champion-quiz-modal__actions .primary-action,
.champion-quiz-modal__actions .secondary-action {
    border-color: #d6a735;
    background: #0d3152;
    color: #fff8e7;
    box-shadow: 0 5px 0 #061d32, 0 10px 18px rgba(6, 29, 50, 0.18);
}

.comodin-burst__card {
    border-color: #d6a735;
    background: #0d3152;
    color: #fff8e7;
}

.comodin-burst__card strong,
.comodin-burst__card span {
    color: #fff8e7;
}

.puzzle-crash-board-flash,
.puzzle-crash-flash {
    background: rgba(53, 184, 189, 0.42);
    box-shadow: 0 0 70px rgba(244, 200, 71, 0.62);
}

.puzzle-crash-wave {
    border-color: #f4c847;
    box-shadow: 0 0 38px rgba(53, 184, 189, 0.68);
}

.puzzle-crash-shard {
    background: #f4c847;
    box-shadow: 0 0 12px rgba(53, 184, 189, 0.72);
}

.puzzle-crash-label {
    border-color: rgba(244, 200, 71, 0.74);
    background: #0d3152;
    color: #fff8e7;
    box-shadow: 0 0 28px rgba(53, 184, 189, 0.48);
}

@media (min-width: 761px) and (max-height: 760px) {
    .setup-modal__card {
        gap: 9px;
        max-height: calc(100svh - 20px);
        padding: 14px 18px 12px;
    }

    .setup-modal__hero h2 {
        font-size: clamp(2rem, 3.5vw, 2.7rem);
    }

    .setup-modal__settings,
    .setup-player-card {
        padding: 10px;
    }

    .setup-modal__actions,
    .rules-modal__actions,
    .comodin-modal__actions {
        position: sticky;
        z-index: 5;
        bottom: 0;
        padding-top: 8px;
        background: #fffaf0;
    }
}

@media (max-width: 760px) and (orientation: portrait) {
    .space-puzzle-modal__status,
    .jigsaw-console,
    .word-search-console,
    .crossword-console,
    .reflex-console,
    .memory-console,
    .duel-modal__notice {
        box-shadow: inset 4px 0 0 #e5b63d;
    }

    .space-puzzle-modal__head p:not(.eyebrow),
    .jigsaw-modal__head p:not(.eyebrow),
    .word-search-modal__head p:not(.eyebrow),
    .crossword-modal__head p:not(.eyebrow),
    .reflex-modal__head p:not(.eyebrow),
    .memory-modal__head p:not(.eyebrow),
    .duel-modal__head p:not(.eyebrow) {
        color: var(--modal-copy);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .space-tile.is-selected,
    .mobile-tile.is-selected {
        animation: arena-selected-pulse 1.8s ease-in-out infinite;
    }
}

@keyframes arena-selected-pulse {
    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.15);
    }
}

/* Ceremonia Solar de Medallas - dirección juvenil seleccionada */
:root {
    --arena-bg: #06182b;
    --arena-surface: #fff8e7;
    --arena-surface-raised: #ffffff;
    --arena-surface-deep: #0b2d4d;
    --arena-gold: #d5a62e;
    --arena-gold-bright: #f4c847;
    --arena-ivory: #fff8e7;
    --arena-muted: #6f6a5d;
    --arena-red: #df594d;
    --arena-green: #64ad69;
    --arena-blue: #3d9fc5;
    --arena-cyan: #35b8bd;
    --arena-violet: #8768ad;
    --bg: var(--arena-bg);
    --panel: rgba(255, 250, 236, 0.97);
    --panel-strong: #fffdf5;
    --text: #102c47;
    --muted: #6f6a5d;
    color-scheme: light;
}

html,
body {
    background: var(--arena-bg);
}

body {
    color: #102c47;
    min-height: 100svh;
    overflow: hidden;
}

.space-backdrop {
    background: #071b31;
}

.space-backdrop img {
    opacity: 0.78;
    filter: saturate(1.04) brightness(0.9);
}

.game-header {
    border-bottom-color: rgba(213, 166, 46, 0.72);
    background: rgba(255, 249, 230, 0.97);
    box-shadow: 0 10px 28px rgba(3, 23, 42, 0.22);
}

.game-brand img {
    filter: none;
}

.game-brand small {
    color: #12385a;
    text-shadow: 0 1px 0 #fff;
}

.game-brand strong {
    color: #a06e0f;
}

.space-sound-toggle,
.vc-sound-toggle,
.space-music-control,
.prototype-pill {
    border-color: rgba(16, 58, 93, 0.32);
    background: #12385a;
    color: #fff8e7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 5px 14px rgba(3, 23, 42, 0.2);
}

.space-sound-toggle,
.vc-sound-toggle,
.prototype-pill {
    color: #fff8e7;
}

.space-sound-toggle.is-on,
.vc-sound-toggle.is-on,
.space-music-toggle.is-on {
    border-color: #1d7f84;
    background: #dffff9;
    color: #10494e;
    box-shadow: inset 0 0 0 1px rgba(53, 184, 189, 0.3), 0 0 16px rgba(53, 184, 189, 0.24);
}

.space-music-toggle {
    border-color: rgba(244, 200, 71, 0.56);
    background: #08243e;
    color: #fff6d7;
}

.space-music-volume {
    color: #fff2c0;
}

.space-game-board {
    border-color: #e3ba4b;
    background: #f7edd5 url("../images/arena-juvenil-desktop.webp?v=20260712youth1") center / cover no-repeat;
    box-shadow:
        inset 0 0 0 1px rgba(255, 250, 226, 0.92),
        inset 0 -34px 65px rgba(61, 37, 6, 0.08),
        0 22px 58px rgba(3, 23, 42, 0.36);
}

.space-game-board::before {
    background: rgba(255, 247, 219, 0.05);
}

.space-game-board::after {
    border-color: rgba(213, 166, 46, 0.74);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.olympic-banner-layer {
    position: absolute;
    z-index: 1;
    display: block;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.olympic-banner {
    position: absolute;
    display: grid;
    place-items: center;
    width: clamp(34px, 3.3cqw, 52px);
    aspect-ratio: 1;
}

.olympic-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 5px rgba(4, 24, 43, 0.34));
}

.olympic-banner--rook {
    left: 1.35%;
    top: 31.5%;
}

.olympic-banner--knight {
    right: 1.35%;
    top: 31.5%;
}

.olympic-banner--gold-knight {
    right: 17.4%;
    top: 32.5%;
    width: clamp(26px, 2.5cqw, 40px);
}

.space-route-ribbon {
    stroke: rgba(255, 250, 230, 0.96);
    stroke-width: clamp(51px, 6.5vw, 84px);
    filter: drop-shadow(0 0 2px rgba(179, 126, 21, 0.9)) drop-shadow(0 8px 9px rgba(70, 44, 10, 0.3));
}

.space-route-glow {
    stroke: rgba(247, 195, 54, 0.72);
    filter: blur(1px);
}

.space-route-line {
    stroke: #e6b637;
    filter: drop-shadow(0 0 3px rgba(255, 247, 201, 0.95));
}

.space-tile,
.start-space,
.space-tile.tone-prize,
.space-tile.tone-penalty,
.space-tile.tone-move,
.space-tile.tone-chance,
.space-tile.tone-shield,
.space-tile.tone-duel,
.space-tile.tone-final,
.space-tile.tone-rest,
.space-tile.tone-mixed {
    border-color: #d5ad43;
    background: #fffaf0;
    box-shadow: 0 7px 0 rgba(89, 58, 12, 0.72), 0 12px 18px rgba(25, 48, 66, 0.24), inset 0 1px 0 #fff;
}

.space-tile.is-start {
    background: #fffaf0;
}

.space-tile {
    padding: 6px 5px 5px;
}

.space-tile__core {
    position: absolute;
    top: 4px;
    right: 5px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid color-mix(in srgb, var(--tile-accent), #b68816 36%);
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(12, 43, 68, 0.18);
}

.space-tile__core img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.space-tile.visual-rest .space-tile__core {
    width: 34px;
    height: 30px;
}

.space-tile.visual-rest .space-tile__core img {
    object-fit: cover;
}

.space-tile.visual-rest .space-tile__copy {
    padding-top: 27px;
}

.space-tile__copy {
    align-self: end;
    min-height: 45px;
    padding: 18px 2px 1px;
    background: transparent;
}

.space-tile__step {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: #0d3152;
    color: #fff2b6;
    box-shadow: 0 2px 4px rgba(3, 23, 42, 0.2);
}

.space-tile__label {
    color: #12324e;
    text-shadow: none;
}

.space-tile__sub {
    color: #6d5c39;
}

.space-tile.tone-prize {
    border-color: #d7a92f;
    background: #fff3bd;
}

.space-tile.tone-penalty,
.space-tile.tone-duel {
    border-color: #d84e44;
    background: #ffe1da;
}

.space-tile.tone-move,
.space-tile.tone-shield {
    border-color: #4e9d61;
    background: #dcf3d6;
}

.space-tile.tone-chance,
.space-tile.tone-rest {
    border-color: #318eaf;
    background: #d8f1f8;
}

.space-tile.tone-final {
    border-color: #d2a027;
    background: #ffe89a;
}

.space-tile.tone-mixed {
    border-color: #d57b3c;
    background: #ffe0bd;
}

.space-tile.is-crown {
    border-color: #d39b18;
    background: #ffe58a;
    box-shadow: 0 7px 0 #8d6414, 0 13px 22px rgba(80, 50, 6, 0.26), 0 0 22px rgba(247, 195, 54, 0.52);
}

.space-tile:hover,
.space-tile:focus-visible,
.space-tile.is-selected,
.start-space:hover,
.start-space:focus-visible,
.start-space.is-selected {
    border-color: #ffca35;
    outline-color: rgba(13, 49, 82, 0.44);
    box-shadow: 0 9px 0 rgba(89, 58, 12, 0.74), 0 16px 24px rgba(25, 48, 66, 0.3), 0 0 20px rgba(255, 199, 44, 0.44);
}

.start-space {
    border-color: #d6a527;
    background: #fff0ae;
}

.start-space__core {
    border-color: rgba(13, 49, 82, 0.26);
    background: #fffaf0;
    box-shadow: 0 0 0 3px rgba(213, 166, 46, 0.14);
}

.start-space__core img,
.finish-relevo img,
.winner-modal__podio {
    filter: drop-shadow(0 9px 10px rgba(18, 47, 70, 0.28));
}

.finish-relevo {
    left: 30%;
    top: 41%;
    width: clamp(198px, 17cqw, 260px);
}

.finish-relevo img {
    flex-basis: clamp(92px, 7.4cqw, 120px);
    width: clamp(92px, 7.4cqw, 120px);
}

.finish-relevo span {
    border-color: #cf9f2b;
    background: #0d3152;
    color: #fff4c6;
    box-shadow: 0 8px 18px rgba(12, 43, 68, 0.24);
}

.central-command {
    border: 2px solid #d6a735;
    background: rgba(255, 250, 235, 0.97);
    box-shadow: 0 10px 0 #8b6519, 0 20px 32px rgba(16, 44, 66, 0.28), inset 0 1px 0 #fff;
}

.central-command .eyebrow {
    color: #9c6a0d;
}

.central-command strong {
    color: #0f3154;
}

.turn-badge {
    border-color: rgba(15, 49, 84, 0.32);
    background: #dff6f2;
    color: #144b4c;
}

.orbital-die {
    border-color: #f7d66e;
    background: #f0c54c;
    box-shadow: 0 7px 0 #946b14, 0 11px 18px rgba(27, 45, 58, 0.28), inset 0 1px 0 #fff4bd;
}

.die-face i {
    background: #0f3154;
}

.board-quick-actions {
    top: 43.5%;
    width: clamp(114px, 8.5cqw, 134px);
}

.board-quick-actions .primary-action,
.board-quick-actions .secondary-action {
    min-height: 29px;
    border-color: rgba(244, 200, 71, 0.72);
    background: #0f3154;
    color: #fff8e7;
    box-shadow: 0 6px 12px rgba(7, 29, 49, 0.28), inset 3px 0 0 #efb72f;
}

.board-quick-actions .primary-action:not(:disabled):hover,
.board-quick-actions .primary-action:not(:disabled):focus-visible,
.board-quick-actions .secondary-action:not(:disabled):hover,
.board-quick-actions .secondary-action:not(:disabled):focus-visible {
    border-color: #f4c847;
    background: #174c77;
    color: #fff;
}

.board-token[data-token-dock="home"] {
    border-color: color-mix(in srgb, var(--token-rim), #fff 18%);
    background: rgba(255, 252, 239, 0.94);
    box-shadow: 0 5px 10px rgba(8, 33, 54, 0.24), 0 0 12px color-mix(in srgb, var(--token-rim), transparent 30%);
}

.dock-token img,
.board-token img,
.mobile-board-token img,
.setup-token-button img,
.setup-token-preview__art img,
.winner-modal__token img,
.token-modal__art img {
    object-fit: contain;
}

.dock-token.is-cyan img,
.board-token.is-cyan img,
.mobile-board-token.is-cyan img,
.setup-token-preview.is-cyan img,
.winner-modal__token.is-cyan img,
.token-modal__art.is-cyan img {
    filter: hue-rotate(145deg) saturate(1.45) drop-shadow(0 0 6px #7af6ff);
}

.dock-token.is-gold img,
.board-token.is-gold img,
.mobile-board-token.is-gold img,
.setup-token-preview.is-gold img,
.winner-modal__token.is-gold img,
.token-modal__art.is-gold img {
    filter: saturate(1.12) drop-shadow(0 0 6px #fff38b);
}

.dock-token.is-green img,
.board-token.is-green img,
.mobile-board-token.is-green img,
.setup-token-preview.is-green img,
.winner-modal__token.is-green img,
.token-modal__art.is-green img {
    filter: hue-rotate(70deg) saturate(1.35) drop-shadow(0 0 6px #8cffae);
}

.dock-token.is-red img,
.board-token.is-red img,
.mobile-board-token.is-red img,
.setup-token-preview.is-red img,
.winner-modal__token.is-red img,
.token-modal__art.is-red img {
    filter: hue-rotate(305deg) saturate(1.5) drop-shadow(0 0 6px #ff8177);
}

.setup-modal__backdrop,
.turn-notice-modal__backdrop,
.space-puzzle-modal__backdrop,
.rules-modal__backdrop,
.winner-modal__backdrop,
.comodin-modal__backdrop,
.chance-modal__backdrop,
.info-tile-modal__backdrop,
.jigsaw-modal__backdrop,
.word-search-modal__backdrop,
.crossword-modal__backdrop,
.reflex-modal__backdrop,
.memory-modal__backdrop,
.duel-modal__backdrop,
.token-modal__backdrop,
.champion-quiz-modal__backdrop {
    background: rgba(4, 25, 44, 0.76);
}

.setup-modal__card,
.turn-notice-modal__card,
.champion-quiz-modal__card,
.space-puzzle-modal__card,
.jigsaw-modal__card,
.word-search-modal__card,
.crossword-modal__card,
.reflex-modal__card,
.memory-modal__card,
.duel-modal__card,
.rules-modal__card,
.comodin-modal__card,
.winner-modal__card,
.chance-modal__card,
.info-tile-modal__card,
.token-modal__card {
    border-color: #d5a62e;
    background: #fffaf0;
    color: #12324e;
    box-shadow: 0 30px 90px rgba(3, 23, 42, 0.48), inset 0 1px 0 #fff;
}

.setup-modal__hero h2,
.turn-notice-modal h2,
.space-puzzle-modal h2,
.rules-modal h2,
.comodin-modal h2,
.info-tile-modal h2,
.winner-modal h2,
.chance-modal h2,
.token-modal h2,
.champion-quiz-modal h2 {
    color: #0f3154;
}

.setup-modal__card p,
.turn-notice-modal__card p,
.rules-modal__card p,
.comodin-modal__card p,
.winner-modal__card p,
.chance-modal__card p,
.info-tile-modal__card p,
.token-modal__card p,
.champion-quiz-modal__card p {
    color: #5e5a50;
}

.mode-button,
.setup-player-card,
.setup-token-button,
.setup-modal__settings,
.rules-modal__item,
.space-puzzle-modal__status {
    border-color: rgba(15, 49, 84, 0.22);
    background: #fffdf7;
    color: #12324e;
}

.mode-button.is-active,
.setup-token-button.is-selected {
    border-color: #d5a62e;
    background: #fff1bd;
    box-shadow: inset 0 3px 0 #e9bd42, 0 0 14px rgba(213, 166, 46, 0.18);
}

.space-puzzle-modal__board-frame {
    border-color: rgba(15, 49, 84, 0.26);
    background: #0c2944;
}

.space-puzzle-modal__timer,
.space-puzzle-modal__reward-strip,
.turn-notice-modal__highlight,
.champion-quiz-modal__reward,
.info-tile-modal__notice {
    border-color: rgba(213, 166, 46, 0.54);
    background: #fff1bd;
    color: #704c09;
}

.setup-modal__close,
.turn-notice-modal__actions .primary-action,
.space-puzzle-modal__actions .primary-action,
.rules-modal__actions .primary-action,
.winner-modal__actions .primary-action,
.comodin-modal__actions .primary-action,
.info-tile-modal__actions .primary-action,
.chance-modal__actions .primary-action,
.token-modal__actions .primary-action,
.champion-quiz-modal__actions .primary-action {
    border-color: #d5a62e;
    background: #0f3154;
    color: #fff8e7;
    box-shadow: 0 6px 0 #071d32, 0 11px 18px rgba(3, 23, 42, 0.22);
}

.info-tile-modal__collage.is-rest-piece {
    width: min(350px, 100%);
    aspect-ratio: 1;
    border-color: #d5a62e;
    background: #fff2c8;
    box-shadow: 0 18px 38px rgba(12, 43, 68, 0.22);
}

.info-tile-modal__collage.is-rest-piece::after {
    display: none;
}

.info-tile-modal__collage.is-rest-piece .info-tile-modal__art {
    object-fit: cover;
}

.winner-modal__podio {
    width: clamp(130px, 22vw, 190px);
}

@media (max-width: 760px) and (orientation: portrait) {
    .space-backdrop img {
        opacity: 0.7;
    }

    .game-header {
        background: rgba(255, 249, 230, 0.98);
    }

    .game-header__actions .space-sound-toggle,
    .game-header__actions .space-music-control {
        background: #0f3154;
    }

    .goose-game {
        height: calc(100svh - 59px);
        background: #071b31;
    }

    @supports (height: 100dvh) {
        .goose-game {
            height: calc(100dvh - 59px);
        }
    }

    .game-table {
        border-color: rgba(244, 200, 71, 0.5);
        background: rgba(255, 249, 230, 0.12);
    }

    .mobile-command-console {
        border-color: #d5a62e;
        background: #fff9e8;
        box-shadow: 0 7px 0 #8b6519, 0 14px 24px rgba(3, 23, 42, 0.3);
    }

    .mobile-command-console__main strong {
        color: #0f3154;
    }

    .mobile-command-console__actions .primary-action,
    .mobile-command-console__actions .secondary-action {
        border-color: #d5a62e;
        background: #0f3154;
        color: #fff8e7;
        box-shadow: inset 0 3px 0 #e5b63d;
    }

    .mobile-path-scroll {
        border-color: #d5a62e;
        background: #f6e9cd;
        scrollbar-color: #d5a62e rgba(15, 49, 84, 0.12);
    }

    .mobile-path-board {
        background: #f8edd6 url("../images/arena-juvenil-mobile.webp?v=20260712youth1") top center / 100% auto no-repeat;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 -80px 120px rgba(69, 42, 8, 0.08);
    }

    .mobile-route-ribbon {
        stroke: rgba(255, 250, 230, 0.96);
        filter: drop-shadow(0 0 2px rgba(179, 126, 21, 0.88)) drop-shadow(0 7px 8px rgba(70, 44, 10, 0.24));
    }

    .mobile-route-line {
        stroke: #e0ae2f;
    }

    .mobile-tile,
    .mobile-tile.tone-prize,
    .mobile-tile.tone-penalty,
    .mobile-tile.tone-move,
    .mobile-tile.tone-chance,
    .mobile-tile.tone-shield,
    .mobile-tile.tone-duel,
    .mobile-tile.tone-final,
    .mobile-tile.tone-rest,
    .mobile-tile.tone-mixed {
        border-color: #d5ad43;
        background: #fffaf0;
        box-shadow: 0 7px 0 rgba(89, 58, 12, 0.72), 0 12px 20px rgba(25, 48, 66, 0.22), inset 0 1px 0 #fff;
    }

    .mobile-tile.tone-prize {
        background: #fff3bd;
    }

    .mobile-tile.tone-penalty,
    .mobile-tile.tone-duel {
        background: #ffe1da;
    }

    .mobile-tile.tone-move,
    .mobile-tile.tone-shield {
        background: #dcf3d6;
    }

    .mobile-tile.tone-chance,
    .mobile-tile.tone-rest {
        background: #d8f1f8;
    }

    .mobile-tile.tone-final {
        background: #ffe89a;
    }

    .mobile-tile.tone-mixed {
        background: #ffe0bd;
    }

    .mobile-tile.is-start {
        background: #fffaf0;
    }

    .mobile-tile.is-selected,
    .mobile-tile.is-selected.tone-prize,
    .mobile-tile.is-selected.tone-penalty,
    .mobile-tile.is-selected.tone-move,
    .mobile-tile.is-selected.tone-chance,
    .mobile-tile.is-selected.tone-shield,
    .mobile-tile.is-selected.tone-duel,
    .mobile-tile.is-selected.tone-final,
    .mobile-tile.is-selected.tone-rest,
    .mobile-tile.is-selected.tone-mixed {
        background-color: #fffaf0;
        background-image: none;
    }

    .mobile-tile.is-selected.tone-prize { background-color: #fff3bd; }
    .mobile-tile.is-selected.tone-penalty,
    .mobile-tile.is-selected.tone-duel { background-color: #ffe1da; }
    .mobile-tile.is-selected.tone-move,
    .mobile-tile.is-selected.tone-shield { background-color: #dcf3d6; }
    .mobile-tile.is-selected.tone-chance,
    .mobile-tile.is-selected.tone-rest { background-color: #d8f1f8; }
    .mobile-tile.is-selected.tone-final { background-color: #ffe89a; }
    .mobile-tile.is-selected.tone-mixed { background-color: #ffe0bd; }

    .mobile-tile__step {
        background: #0d3152;
        color: #fff2b6;
    }

    .mobile-tile__core,
    .mobile-tile__core.is-art,
    .mobile-tile.is-champion .mobile-tile__core.is-art,
    .mobile-tile.is-crown .mobile-tile__core.is-art {
        border-color: rgba(15, 49, 84, 0.28);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 0 0 3px rgba(213, 166, 46, 0.1), 0 6px 13px rgba(12, 43, 68, 0.16);
    }

    .mobile-tile__label {
        color: #12324e;
        font-size: 0.75rem;
    }

    .mobile-tile__sub {
        color: #6d5c39;
    }

    .info-tile-modal__collage.is-rest-piece {
        width: min(72vw, 330px);
    }

    .setup-player-tabs button {
        border-color: rgba(15, 49, 84, 0.2);
        background: #fffdf7;
        color: #12324e;
    }

    .setup-player-tabs button.is-active {
        border-color: #d5a62e;
        background: #fff1bd;
        color: #12324e;
    }

    .setup-token-preview.is-pending {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .setup-token-preview.is-pending .setup-token-preview__art {
        width: 110px;
        max-width: 110px;
    }

    .setup-token-preview__actions .primary-action,
    .setup-token-preview__actions .secondary-action {
        border-color: #d5a62e;
        background: #0f3154;
        color: #fff8e7;
        box-shadow: 0 4px 0 #071d32;
    }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 960px) {
    .mobile-orientation-gate__card {
        border-color: #d5a62e;
        background: #fff9e8;
        color: #12324e;
        box-shadow: 0 24px 70px rgba(3, 23, 42, 0.46);
    }

    .mobile-orientation-gate__device {
        border-color: #d5a62e;
        background: #0f3154;
        box-shadow: 0 0 24px rgba(244, 200, 71, 0.3);
    }
}

/* Reglas finales de contraste: deben permanecer después del tema solar. */
.space-puzzle-modal__head p:not(.eyebrow) {
    color: #405a6b;
    font-weight: 650;
}

.turn-notice-modal p:not(.eyebrow),
.chance-modal p:not(.eyebrow),
.info-tile-modal p:not(.eyebrow),
.winner-modal p:not(.eyebrow),
.comodin-modal p:not(.eyebrow),
.jigsaw-modal p:not(.eyebrow),
.word-search-modal p:not(.eyebrow),
.crossword-modal p:not(.eyebrow),
.reflex-modal p:not(.eyebrow),
.memory-modal p:not(.eyebrow),
.duel-modal p:not(.eyebrow),
.champion-quiz-modal p:not(.eyebrow) {
    color: #405a6b;
}

.setup-modal__card .eyebrow,
.turn-notice-modal__card .eyebrow,
.champion-quiz-modal__card .eyebrow,
.space-puzzle-modal__card .eyebrow,
.jigsaw-modal__card .eyebrow,
.word-search-modal__card .eyebrow,
.crossword-modal__card .eyebrow,
.reflex-modal__card .eyebrow,
.memory-modal__card .eyebrow,
.duel-modal__card .eyebrow,
.rules-modal__card .eyebrow,
.comodin-modal__card .eyebrow,
.winner-modal__card .eyebrow,
.chance-modal__card .eyebrow,
.info-tile-modal__card .eyebrow,
.token-modal__card .eyebrow {
    color: #875700;
}

.rules-modal__intro,
.rules-modal__item p,
.rules-modal__note {
    color: #405a6b;
}

.jigsaw-modal .jigsaw-console p,
.word-search-modal .word-search-console p,
.crossword-modal .crossword-console p,
.reflex-modal .reflex-console p,
.memory-modal .memory-console p,
.duel-modal .duel-modal__notice p {
    color: #e6f0f3;
}

.setup-select-list {
    border-color: #d6a735;
    background: #0d3152;
}

.setup-progress span {
    border-color: #b9c8cf;
    background: #fffdf7;
    color: #405a6b;
}

.setup-progress span.is-current {
    border-color: #d6a735;
    background: #fff0b8;
    color: #0d3152;
}

.setup-progress span.is-done {
    border-color: #70bb7d;
    background: #e7f2dc;
    color: #174a36;
}

.setup-token-preview strong {
    color: #061d32;
}

.setup-modal__actions .primary-action:disabled,
.setup-modal__actions .secondary-action:disabled {
    border-color: #bcb5a5;
    background: #e5dfd1;
    color: #4f5558;
    opacity: 1;
}

.setup-select-list button {
    border-color: rgba(255, 248, 231, 0.22);
    background: #153f62;
    color: #e6f0f3;
}

.setup-select-list button:hover,
.setup-select-list button:focus-visible,
.setup-select-list button.is-selected {
    border-color: #f4c847;
    background: #245779;
    color: #ffffff;
}

.online-mode-tabs button,
.online-room-size button,
.online-token-choice {
    border-color: #b9c8cf;
    background: #fffdf7;
    color: #0d3152;
}

.online-mode-tabs button.is-active,
.online-room-size button.is-active,
.online-token-choice.is-active {
    border-color: #d6a735;
    background: #fff0b8;
    color: #0d3152;
}

.online-room-size > span,
.online-token-panel > span {
    color: #875700;
}

.online-setup-status {
    color: #405a6b;
}

.online-lobby {
    border-color: #d6a735;
    background: #0d3152;
    color: #fff8e7;
}

.online-lobby h3,
.online-lobby h3 strong {
    color: #fff3bd;
}

.online-lobby .eyebrow {
    color: #fff3bd;
}

.online-lobby p {
    color: #e6f0f3;
}

.online-lobby__player {
    border-color: rgba(255, 248, 231, 0.24);
    background: #174665;
    color: #fff8e7;
}

.online-lobby__player strong,
.online-lobby__player small {
    color: #fff8e7;
}

.rules-modal__item > span {
    border-color: #d6a735;
    background: #0d3152;
    color: #fff3bd;
}

.reflex-rank-coords span,
.reflex-file-coords span {
    color: #0d3152;
}

.token-modal strong,
.winner-modal [data-winner-name] {
    color: #0d3152;
}

.space-puzzle-modal__meta {
    border-color: #d6a735;
    background: #0d3152;
    box-shadow: inset 5px 0 0 #e5b63d, 0 7px 16px rgba(10, 43, 70, 0.16);
}

.space-puzzle-modal__meta span,
.space-puzzle-modal__meta strong {
    color: #fff8e7;
}

.space-puzzle-modal__reward {
    border-color: #78a56a;
    background: #e7f2dc;
    color: #173d31;
    box-shadow: inset 5px 0 0 #64ad69;
}

.space-puzzle-modal__reward strong {
    color: #8c5e08;
}

.space-puzzle-modal__reward span {
    color: #244d3e;
}

.space-puzzle-modal__status,
.space-puzzle-modal.is-intro .space-puzzle-modal__status {
    border-color: #d6a735;
    background: #0d3152;
    color: #fff8e7;
    box-shadow: inset 5px 0 0 #e5b63d, 0 10px 22px rgba(8, 39, 67, 0.18);
}

.space-puzzle-modal__status strong,
.space-puzzle-modal.is-intro .space-puzzle-modal__status strong {
    color: #fff3bd;
}

.space-puzzle-modal__status p,
.space-puzzle-modal.is-intro .space-puzzle-modal__status p {
    color: #e6f0f3;
}

.space-puzzle-modal__status small,
.space-puzzle-modal.is-intro .space-puzzle-modal__status small {
    border-color: rgba(98, 214, 211, 0.5);
    background: #103f58;
    color: #b9fffb;
}

.space-puzzle-modal__status.is-success {
    border-color: #70bb7d;
    background: #174a36;
    box-shadow: inset 5px 0 0 #7ce38b;
}

.space-puzzle-modal__status.is-danger {
    border-color: #e06a5e;
    background: #5a2629;
    box-shadow: inset 5px 0 0 #ef6a57;
}

.space-puzzle-modal__timer.is-warning,
.jigsaw-modal__timer.is-warning,
.word-search-modal__timer.is-warning,
.crossword-modal__timer.is-warning,
.reflex-modal__timer.is-warning {
    border-color: #d6a735;
    background: #fff0b8;
    color: #6b4809;
}

.space-puzzle-modal__timer.is-critical,
.space-puzzle-modal__timer.is-expired,
.jigsaw-modal__timer.is-critical,
.jigsaw-modal__timer.is-expired,
.word-search-modal__timer.is-critical,
.word-search-modal__timer.is-expired,
.crossword-modal__timer.is-critical,
.crossword-modal__timer.is-expired,
.reflex-modal__timer.is-critical,
.reflex-modal__timer.is-expired,
.memory-modal__lives.is-danger {
    border-color: #d65c54;
    background: #ffe0dc;
    color: #762a2e;
    box-shadow: 0 4px 0 rgba(118, 42, 46, 0.24);
}

.space-puzzle-modal__actions:not(.is-hidden) {
    border: 1px solid #b9c8cf;
    background: #edf4f2;
}

@media (min-width: 761px) and (max-height: 760px) {
    .setup-modal__card {
        gap: 9px;
        max-height: calc(100svh - 20px);
        padding: 14px 18px 12px;
    }

    .setup-modal__actions {
        position: sticky;
        z-index: 5;
        bottom: 0;
        padding-top: 8px;
        background: #fffaf0;
    }
}
