.yeti-cabinet {
    background:
        radial-gradient(ellipse at 50% 45%, rgba(243,65,99,.09), transparent 58%),
        repeating-linear-gradient(0deg, rgba(196,100,186,.035) 0 1px, transparent 1px 4px),
        linear-gradient(145deg, #211532, #0d0b1d 72%);
}
.yeti-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yeti-hud strong { color: #ffe17b; }
.yeti-hud > div + div { justify-content: flex-end; }
.yeti-hud > .yeti-speed-readout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 10px;
}
.yeti-speed-readout strong { font-size: 1.3rem; }
.yeti-speed-meter {
    grid-column: 1 / -1;
    height: 8px;
    overflow: hidden;
    border: 1px solid #654569;
    border-radius: 99px;
    background: #080817;
}
.yeti-speed-meter-fill {
    display: block;
    width: 37.5%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f34163, #b84be8 65%, #ffe17b);
    box-shadow: 0 0 8px rgba(243,65,99,.7);
    transition: width 120ms linear;
}
.yeti-playfield {
    position: relative;
    max-width: 620px;
    width: min(100%, 420px);
    margin: 0 auto;
    overflow: hidden;
    border-color: #bd3f72;
    background: #080812;
    box-shadow: 0 0 20px rgba(243,65,99,.14);
    touch-action: none;
}
body.arcade-site main .arcade-game-window.yeti-cabinet {
    min-height: 0;
    justify-content: flex-start;
}
body.arcade-site main .arcade-game-window.yeti-cabinet > .yeti-playfield {
    flex: 0 0 auto;
}
.yeti-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    touch-action: none;
}
.yeti-cabinet.is-result-open .yeti-hud,
.yeti-cabinet.is-result-open .yeti-playfield,
.yeti-cabinet.is-result-open .yeti-controls-hint,
.yeti-cabinet.is-result-open .yeti-status {
    display: none !important;
}
.yeti-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(8, 11, 29, .74);
    text-align: center;
}
.yeti-overlay[hidden] { display: none !important; }
.yeti-overlay h3 {
    margin: 0;
    color: #ffe17b;
    font: 400 clamp(.8rem, 3vw, 1rem)/1.7 var(--font-pixel);
    text-shadow: 2px 2px #782742;
}
.yeti-overlay p { max-width: 38ch; margin: 0; color: #e0e9f7; }
.yeti-controls-hint { margin: 9px 0 0; font-size: .9rem; }
.yeti-status {
    min-height: 1.6em;
    margin: 8px 0 0;
    color: #ffc6dc;
    font-size: .9rem;
    text-align: center;
}
.yeti-result[hidden] { display: none !important; }
.yeti-result {
    position: relative;
    width: min(100%, 620px);
    margin: 12px auto 0;
    padding: 16px clamp(12px, 3vw, 20px);
    text-align: center;
    scroll-margin-top: 80px;
}
.yeti-result form { text-align: left; }
.yeti-result .game-result-score {
    margin: 4px 0 6px;
    font-size: clamp(2.7rem, 9vw, 3.5rem);
}
.yeti-result .game-result-copy {
    margin: 5px auto 9px;
    font-size: .92rem;
}
.yeti-result .game-result-form { margin-top: 10px; }
.yeti-result .game-result-help { margin-top: 5px; font-size: .78rem; }
.yeti-result .game-result-actions { gap: 8px; margin-top: 12px; }
.yeti-result .game-result-actions .game-result-action {
    flex: 1 1 155px;
    min-height: 42px;
    padding: 9px 12px;
}
.yeti-scoreboards {
    --scores-mint: #9cecff;
    --scores-mint-dim: #b7a0ef;
    --scores-black: #080817;
    --scores-line: rgba(243,65,99,.36);
    border-color: #71304f;
    color: #f2c1d5;
    background:
        repeating-linear-gradient(0deg, rgba(196,100,186,.018) 0 1px, transparent 1px 4px),
        linear-gradient(145deg, rgba(37,23,52,.98), rgba(13,11,31,.98));
}
.yeti-scoreboards .scoreboards-note { color: #d4cde3; }
.yeti-scoreboards .scoreboard-period {
    border-color: #654569;
    background: #080817;
}
.yeti-hall-link { margin: 18px 0 28px; text-align: center; }
.yeti-hall-link a { color: #9cecff; font-weight: 700; }
.yeti-hall-link a:hover { color: #fff; }
.yeti-cabinet :focus-visible { outline-color: #ffe17b; }
body.yeti-page.yeti-playing { overflow: hidden; overscroll-behavior: none; }

@media (max-width: 520px) {
    .yeti-cabinet { padding: 12px; border-width: 4px; }
    .yeti-hud { padding: 8px; }
    .yeti-playfield { width: min(100%, 420px); }
    .yeti-result { width: 100%; padding: 13px 12px; }
    .yeti-result .game-result-score { font-size: clamp(2.6rem, 12vw, 3.2rem); }
    .yeti-result .game-result-copy { font-size: .88rem; }
    .yeti-result .game-result-actions .game-result-action { flex-basis: 135px; }
}

@media (max-width: 520px) and (max-height: 700px) {
    .yeti-playfield {
        width: min(100%, 420px, calc((100vh - 80px) * .75));
        width: min(100%, 420px, calc((100dvh - 80px) * .75));
    }
}

@media (prefers-reduced-motion: reduce) {
    .yeti-cabinet *, .yeti-cabinet *::before, .yeti-cabinet *::after { scroll-behavior: auto !important; }
}
