.snf-hh,
.snf-hh * {
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.snf-hh input,
.snf-hh textarea {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

.snf-hh img {
    -webkit-user-drag: none;
    user-drag: none;
}

.snf-hh ::selection {
    color: inherit;
    background: transparent;
}

.snf-hh {
    --snf-red: #b5121b;
    --snf-red-dark: #65070d;
    --snf-gold: #d6a84b;
    --snf-cream: #f7ebc7;
    --snf-ink: #110b0b;
    width: min(100%, 1040px);
    margin: 20px auto;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.snf-hh button,
.snf-hh input {
    font: inherit;
}

.snf-hh button {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.snf-hh [hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.snf-hh__cabinet {
    position: relative;
    padding: clamp(14px, 2vw, 24px);
    border: 4px solid #4b070a;
    border-radius: 34px 34px 22px 22px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.11), transparent 28%),
        linear-gradient(180deg, #d71d27 0%, var(--snf-red) 48%, #790b12 100%);
    box-shadow:
        0 28px 60px rgba(0,0,0,.38),
        inset 0 0 0 4px rgba(255,255,255,.07),
        inset 0 -20px 30px rgba(0,0,0,.18);
    overflow: hidden;
}

.snf-hh__cabinet::before,
.snf-hh__cabinet::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 16px;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.15) 0 7px, transparent 7px 18px);
    opacity: .22;
    pointer-events: none;
}

.snf-hh__cabinet::before { left: 5px; }
.snf-hh__cabinet::after { right: 5px; }

.snf-hh__marquee {
    position: relative;
    z-index: 2;
    margin: 0 auto 14px;
    padding: 12px 18px 14px;
    max-width: 84%;
    text-align: center;
    color: #fff5d8;
    border: 3px solid #f1d485;
    border-radius: 18px 18px 10px 10px;
    background:
        radial-gradient(circle at 50% 15%, rgba(255,244,186,.28), transparent 55%),
        linear-gradient(180deg, #3c0407, #160204);
    box-shadow: 0 0 24px rgba(255,207,88,.25), inset 0 0 18px rgba(255,203,88,.12);
    letter-spacing: .06em;
    text-shadow: 0 2px 0 #5b070c, 0 0 12px rgba(255,224,145,.45);
}

.snf-hh__marquee strong {
    display: block;
    font-size: clamp(25px, 5vw, 58px);
    line-height: .95;
}

.snf-hh__marquee-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--snf-gold);
    font: 700 clamp(10px, 1.5vw, 15px)/1.1 Arial, sans-serif;
    letter-spacing: .18em;
}

.snf-hh__screen-shell {
    position: relative;
    z-index: 2;
    padding: clamp(10px, 1.8vw, 19px);
    border: 5px solid #170607;
    border-radius: 32px;
    background: linear-gradient(145deg, #3b3030, #0a0808 70%);
    box-shadow: inset 0 0 0 2px #625354, inset 0 12px 22px rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.35);
}

.snf-hh__screen {
    position: relative;
    overflow: hidden;
    border: 3px solid #020202;
    border-radius: 38px / 30px;
    background: #07120e;
    box-shadow:
        inset 0 0 48px rgba(0,0,0,.95),
        inset 0 0 9px rgba(153,255,179,.12),
        0 0 0 2px #2a2d29;
    isolation: isolate;
}

.snf-hh__hud {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 8px 10px;
    color: #fff1c8;
    background: linear-gradient(180deg, rgba(10,5,4,.98), rgba(18,7,7,.9));
    border-bottom: 2px solid rgba(214,168,75,.45);
    text-align: center;
}

.snf-hh__hud div {
    min-width: 0;
    padding: 3px 5px;
}

.snf-hh__hud span {
    display: block;
    margin-bottom: 2px;
    color: var(--snf-gold);
    font: 700 clamp(8px, 1.5vw, 12px)/1 Arial, sans-serif;
    letter-spacing: .14em;
}

.snf-hh__hud strong {
    display: block;
    overflow: hidden;
    font-size: clamp(16px, 3.1vw, 31px);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snf-hh__field-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1d5d47;
}

.snf-hh__field {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
    pointer-events: auto;
}

.snf-hh__message {
    position: absolute;
    z-index: 8;
    top: 17%;
    left: 50%;
    max-width: 92%;
    transform: translate(-50%, -50%) scale(.94);
    color: #fff5d7;
    font-size: clamp(22px, 4.8vw, 50px);
    line-height: .95;
    letter-spacing: .04em;
    text-align: center;
    text-shadow: 0 4px 0 rgba(62,0,0,.8), 0 0 12px rgba(0,0,0,.8);
    pointer-events: none;
    opacity: 0;
    transition: opacity .13s ease, transform .13s ease;
}

.snf-hh__message.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* v0.3.28: Hawk Hunt is an app-like control surface. Prevent iOS long-press
   text-selection/copy callouts without affecting the rest of the site. */
.snf-hh,
.snf-hh * {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent;
}

.snf-hh__game-controls {
    position: relative;
    z-index: 6;
    padding: 9px 10px 12px;
    background: linear-gradient(180deg, #120707, #050303);
    border-top: 1px solid rgba(214,168,75,.25);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.snf-hh__desktop-controls {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 8px;
}

.snf-hh__mobile-controls {
    display: none;
}

.snf-hh__game-controls button,
.snf-hh__panel button,
.snf-hh__panel .snf-hh__login-button {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    min-height: 54px;
    border: 2px solid #f0d18c;
    border-radius: 10px;
    color: #fff4d1;
    background: linear-gradient(180deg, #d01c25, #7f0a11);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 5px 0 #4a060a;
    cursor: pointer;
    text-shadow: 0 2px 0 rgba(54,0,0,.75);
    transition: transform .08s ease, filter .08s ease, opacity .2s ease;
}

.snf-hh__game-controls button:hover,
.snf-hh__panel button:hover {
    filter: brightness(1.08);
}

.snf-hh__game-controls button:active,
.snf-hh__game-controls button.is-pressed,
.snf-hh__panel button:active {
    transform: translateY(3px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 0 #4a060a;
}

.snf-hh__game-controls button:disabled {
    cursor: default;
    opacity: .38;
    filter: grayscale(.5);
}

.snf-hh__game-controls span {
    display: block;
    font-size: clamp(18px, 3vw, 30px);
    line-height: 1;
}

.snf-hh__game-controls small {
    display: block;
    margin-top: 3px;
    font: 700 clamp(8px, 1.3vw, 12px)/1 Arial, sans-serif;
    letter-spacing: .04em;
}

.snf-hh__game-controls .snf-hh__swing-button {
    background:
        radial-gradient(circle at 50% 10%, rgba(255,238,162,.26), transparent 48%),
        linear-gradient(180deg, #e72731, #8d0b12);
}

.snf-hh__joystick-zone {
    position: relative;
    min-width: 0;
    min-height: 92px;
    overflow: hidden;
    border: 2px solid rgba(240,209,140,.82);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 48%, rgba(214,168,75,.12), transparent 45%),
        linear-gradient(180deg, #211111, #090505);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.34), inset 0 10px 20px rgba(255,255,255,.025);
    touch-action: none;
    cursor: grab;
}

.snf-hh__joystick-zone:focus-visible {
    outline: 3px solid #fff0a6;
    outline-offset: 2px;
}

.snf-hh__joystick-zone.is-disabled {
    opacity: .38;
    filter: grayscale(.5);
    cursor: default;
}

.snf-hh__joystick-zone > small {
    position: absolute;
    left: 50%;
    bottom: 7px;
    transform: translateX(-50%);
    width: 100%;
    color: rgba(255,244,209,.78);
    font: 800 9px/1 Arial, sans-serif;
    letter-spacing: .08em;
    text-align: center;
    pointer-events: none;
}

.snf-hh__joystick-base {
    position: absolute;
    left: 50%;
    top: 43%;
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(240,209,140,.70);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, rgba(255,255,255,.08), transparent 36%),
        #241616;
    box-shadow: inset 0 0 0 7px #0c0707, 0 3px 0 #3f080b;
    pointer-events: none;
    transition: left .12s ease, top .12s ease, opacity .12s ease;
}

.snf-hh__joystick-base::before,
.snf-hh__joystick-base::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 13px;
    height: 4px;
    margin-top: -2px;
    background: rgba(240,209,140,.42);
}

.snf-hh__joystick-base::before { left: 8px; }
.snf-hh__joystick-base::after { right: 8px; }

.snf-hh__joystick-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42px;
    height: 42px;
    margin-left: -21px;
    border: 3px solid #f0d18c;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 28%, rgba(255,255,255,.25), transparent 24%),
        linear-gradient(180deg, #d51e29, #73080e);
    box-shadow: inset 0 -5px 0 rgba(59,0,4,.35), 0 4px 0 #3d0508;
    transform: translate(0, -50%);
    transition: transform .035s linear;
}

.snf-hh__axe-button {
    width: 92px;
    height: 92px;
    min-height: 92px !important;
    padding: 7px !important;
    border-width: 3px !important;
    border-radius: 50% !important;
    align-self: center;
    justify-self: end;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.24), 0 7px 0 #4a060a !important;
    touch-action: manipulation;
}

.snf-hh__axe-button:active,
.snf-hh__axe-button.is-pressed {
    transform: translateY(4px) scale(.98) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 3px 0 #4a060a !important;
}

.snf-hh__axe-button span {
    font-size: 25px !important;
}

.snf-hh--mobile-input .snf-hh__desktop-controls {
    display: none;
}

.snf-hh--mobile-input .snf-hh__mobile-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 98px;
    align-items: center;
    gap: 12px;
}


.snf-hh__boss-prompt {
    position: absolute;
    z-index: 24;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(7px, 2vw, 18px);
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(22,52,72,.66), rgba(0,0,0,.90)),
        repeating-linear-gradient(135deg, rgba(105,190,40,.06) 0 10px, transparent 10px 22px);
    backdrop-filter: blur(4px);
}

.snf-hh__panel.snf-hh__panel--boss {
    width: min(92%, 650px);
    padding: clamp(10px, 2.4vw, 24px);
    border-color: #8fd74f;
    box-shadow:
        0 22px 50px rgba(0,0,0,.58),
        inset 0 0 24px rgba(105,190,40,.10),
        0 0 20px rgba(0,87,184,.22);
}

.snf-hh__panel.snf-hh__panel--boss h2 {
    margin: 5px auto 6px;
    max-width: 590px;
    font-size: clamp(24px, 4.8vw, 48px);
    line-height: 1;
}

.snf-hh__panel--boss img {
    display: block;
    width: auto;
    max-width: min(92%, 390px);
    height: clamp(125px, 25vw, 230px);
    margin: 2px auto 8px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 8px 0 rgba(0,0,0,.28));
}

.snf-hh__panel.snf-hh__panel--boss button {
    border-color: #c9f58c;
    background: linear-gradient(180deg, #1583c5, #063766);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 5px 0 #031b34;
}

.snf-hh__boot {
    position: absolute;
    z-index: 26;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 28px);
    overflow: hidden;
    color: #f6edcf;
    background:
        repeating-linear-gradient(180deg, rgba(255,255,255,.018) 0 2px, transparent 2px 5px),
        radial-gradient(circle at 50% 42%, #231013 0%, #080506 54%, #000 100%);
    cursor: pointer;
}

.snf-hh__boot-card {
    width: min(92%, 650px);
    padding: clamp(22px, 4vw, 42px);
    border: 3px solid #d6a84b;
    color: #fff1c5;
    background: rgba(7,3,4,.92);
    box-shadow: inset 0 0 30px rgba(214,168,75,.08), 0 0 36px rgba(181,18,27,.22);
    text-align: center;
    animation: snf-hh-boot-in .38s steps(4, end) both;
}

.snf-hh__boot-kicker {
    display: block;
    margin-bottom: 9px;
    color: #d6a84b;
    font: 800 clamp(9px, 1.6vw, 13px)/1 Arial, sans-serif;
    letter-spacing: .2em;
}

.snf-hh__dare-mark {
    color: #f0d18c;
    font-size: clamp(48px, 11vw, 104px);
    line-height: .86;
    letter-spacing: .04em;
    text-shadow: 5px 5px 0 #8c0b12, 0 0 18px rgba(221,37,47,.45);
}

.snf-hh__boot-card h2 {
    max-width: 570px;
    margin: 13px auto 12px;
    font-size: clamp(24px, 5vw, 48px);
    line-height: 1;
}

.snf-hh__boot-card p {
    margin: 0 auto 16px;
    color: #ded2b5;
    font: 700 clamp(12px, 2vw, 17px)/1.42 Arial, sans-serif;
}

.snf-hh__boot-card p strong { color: #f0d18c; }

.snf-hh__boot-skip,
.snf-hh__title-flash {
    display: block;
    color: #fff4cf;
    font: 900 clamp(12px, 2vw, 17px)/1 "Courier New", monospace;
    letter-spacing: .12em;
    animation: snf-hh-title-blink .9s steps(2, end) infinite;
}

@keyframes snf-hh-boot-in {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes snf-hh-title-blink {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: .2; }
}

.snf-hh__start,
.snf-hh__gameover {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(7px, 2vw, 18px);
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(78,10,13,.65), rgba(0,0,0,.88));
    backdrop-filter: blur(3px);
}

.snf-hh__panel {
    width: min(92%, 590px);
    max-height: calc(100% - 2px);
    padding: clamp(22px, 4vw, 38px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--snf-gold) rgba(255,255,255,.08);
    border: 3px solid #dcb45e;
    border-radius: 18px;
    color: #fff2cf;
    background: linear-gradient(180deg, rgba(35,8,9,.97), rgba(11,3,4,.97));
    box-shadow: 0 22px 50px rgba(0,0,0,.55), inset 0 0 22px rgba(214,168,75,.08);
    text-align: center;
}

.snf-hh__panel h2 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 6vw, 60px);
    line-height: .95;
}

.snf-hh__panel p {
    margin: 0 auto 20px;
    max-width: 500px;
    color: #e8dcc0;
    font: 700 clamp(13px, 2vw, 17px)/1.45 Arial, sans-serif;
}

.snf-hh__panel button,
.snf-hh__panel .snf-hh__login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    text-decoration: none;
    font-size: clamp(21px, 4vw, 34px);
}

.snf-hh__panel button:disabled {
    cursor: default;
    filter: grayscale(.6);
    opacity: .55;
}

.snf-hh__eyebrow {
    color: var(--snf-gold);
    font: 800 12px/1 Arial, sans-serif;
    letter-spacing: .18em;
}

.snf-hh__panel--intro {
    width: min(94%, 620px);
    padding: clamp(12px, 2.7vw, 26px);
}

.snf-hh__panel--attract {
    overflow: hidden auto;
}

.snf-hh__attract-stage {
    position: relative;
    height: clamp(118px, 22vw, 178px);
    margin: 7px auto 3px;
    overflow: hidden;
    border: 2px solid rgba(214,168,75,.72);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(4,18,31,.4), rgba(24,8,10,.2)),
        radial-gradient(ellipse at 50% 115%, rgba(188,12,28,.65), transparent 55%),
        #080608;
    box-shadow: inset 0 0 24px rgba(0,0,0,.62);
}

.snf-hh__attract-stage::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 22%;
    background: repeating-linear-gradient(90deg, #331013 0 32px, #24080b 32px 64px);
    border-top: 3px solid #d6a84b;
    opacity: .78;
}

.snf-hh__attract-miner,
.snf-hh__attract-boss {
    position: absolute;
    z-index: 2;
    bottom: 8%;
    width: auto;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 6px 0 rgba(0,0,0,.38));
}

.snf-hh__attract-miner {
    left: 50%;
    height: 91%;
    transform: translateX(-50%);
    animation: snf-hh-attract-bob 1.25s steps(2, end) infinite;
}

.snf-hh__attract-boss {
    z-index: 1;
    bottom: 13%;
    max-width: 31%;
    height: 62%;
    opacity: .78;
}

.snf-hh__attract-boss--left { left: 2%; }
.snf-hh__attract-boss--right { right: 1%; height: 48%; max-width: 36%; }

.snf-hh__attract-hawk {
    position: absolute;
    z-index: 3;
    width: 22px;
    height: 13px;
    border: 3px solid #071b36;
    background: #69be28;
    box-shadow: 5px -4px 0 #0057b8, -5px -4px 0 #0057b8;
    transform: skewX(-18deg);
}

.snf-hh__attract-hawk::after {
    content: "";
    position: absolute;
    top: 2px;
    right: -9px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 9px solid #d6a84b;
}

.snf-hh__attract-hawk--one {
    top: 21%;
    left: 28%;
    animation: snf-hh-hawk-float 1.1s steps(2, end) infinite;
}

.snf-hh__attract-hawk--two {
    top: 36%;
    right: 27%;
    transform: scaleX(-1) skewX(-18deg);
    animation: snf-hh-hawk-float 1.25s steps(2, end) infinite reverse;
}

@keyframes snf-hh-attract-bob {
    0%, 49% { transform: translateX(-50%) translateY(0); }
    50%, 100% { transform: translateX(-50%) translateY(-3px); }
}

@keyframes snf-hh-hawk-float {
    0%, 49% { margin-top: 0; }
    50%, 100% { margin-top: 5px; }
}

.snf-hh__member-status {
    min-height: 1.2em;
    margin: 2px auto 7px !important;
    color: #dbc98e !important;
    font: 800 clamp(9px, 1.5vw, 12px)/1.25 Arial, sans-serif !important;
    letter-spacing: .06em;
}


.snf-hh__title-actions,
.snf-hh__guest-score-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

.snf-hh__title-actions { margin-bottom: 9px; }

.snf-hh__panel .snf-hh__secondary-button {
    border-color: #8c7341;
    color: #e8dcc0;
    background: linear-gradient(180deg, #443638, #211719);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 5px 0 #0d0809;
}

.snf-hh__how-panel {
    padding: 4px 0 2px;
}

.snf-hh__leaderboard-panel {
    padding: 2px 0;
}

.snf-hh__leaderboard-panel h2 {
    margin: 6px 0 9px;
    font-size: clamp(25px, 4.5vw, 43px);
}

.snf-hh__leaderboard--start {
    margin-top: 0;
    max-width: 520px;
}

.snf-hh__panel--intro h2,
.snf-hh__panel--results h2 {
    margin: 5px 0 8px;
    font-size: clamp(27px, 5vw, 50px);
}

.snf-hh__intro-copy {
    margin: 0 auto 12px;
    max-width: 490px;
}

.snf-hh__intro-copy p {
    margin: 0 0 6px;
    color: #e8dcc0;
    font: 700 clamp(11px, 1.7vw, 15px)/1.24 Arial, sans-serif;
}

.snf-hh__intro-copy strong {
    color: #f0cf7b;
    letter-spacing: .04em;
}

.snf-hh__panel--results {
    width: min(94%, 620px);
    padding: clamp(12px, 2.5vw, 24px);
}

.snf-hh__panel--results > div > p {
    margin-bottom: 10px;
    font-size: clamp(10px, 1.6vw, 14px);
    line-height: 1.28;
}

.snf-hh__final-score {
    margin: 4px 0 8px;
    color: #ffe9a8;
    font-size: clamp(40px, 8vw, 76px);
    line-height: .9;
    text-shadow: 0 4px 0 #7f0b12;
}

.snf-hh__initials {
    display: flex;
    justify-content: center;
    gap: clamp(8px, 2vw, 14px);
    margin: 10px auto 8px;
}

.snf-hh__initials input {
    width: clamp(48px, 10vw, 72px);
    height: clamp(54px, 11vw, 78px);
    padding: 0;
    border: 3px solid #edcf84;
    border-radius: 8px;
    outline: none;
    color: #fff1bc;
    background: #120606;
    box-shadow: inset 0 0 14px rgba(214,168,75,.13), 0 4px 0 #5e080d;
    font: 900 clamp(30px, 7vw, 52px)/1 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    text-align: center;
    text-transform: uppercase;
    caret-color: #f4c85e;
}

.snf-hh__initials input:focus {
    border-color: #fff0b8;
    box-shadow: inset 0 0 18px rgba(255,218,121,.20), 0 0 12px rgba(245,198,83,.35), 0 4px 0 #5e080d;
}

.snf-hh__entry-status {
    min-height: 1.2em;
    margin: 0 0 8px !important;
    color: #f0cf7b !important;
    font: 800 11px/1.2 Arial, sans-serif !important;
    letter-spacing: .12em;
}

.snf-hh__guest-score-actions {
    margin: 10px auto 9px;
}

.snf-hh__login-button {
    min-height: 54px;
    border: 2px solid #f0d18c;
    border-radius: 10px;
    color: #fff4d1;
    background: linear-gradient(180deg, #d01c25, #7f0a11);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 5px 0 #4a060a;
    font-size: clamp(18px, 3vw, 27px);
    cursor: pointer;
    text-shadow: 0 2px 0 rgba(54,0,0,.75);
}

.snf-hh__skip-score {
    margin-top: 5px;
    font-size: clamp(14px, 2.4vw, 20px) !important;
}

.snf-hh__leaderboard {
    margin: 8px auto 11px;
    padding: 7px 9px 9px;
    max-width: 500px;
    border: 2px solid rgba(220,180,94,.72);
    border-radius: 10px;
    background: rgba(4,1,2,.68);
    box-shadow: inset 0 0 14px rgba(214,168,75,.06);
}

.snf-hh__leaderboard h3 {
    margin: 0 0 5px;
    color: #f4d37f;
    font-size: clamp(15px, 2.6vw, 22px);
    line-height: 1;
    letter-spacing: .14em;
}

.snf-hh__leaderboard ol {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.snf-hh__leaderboard li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 3px 5px;
    color: #fff0c4;
    font: 800 clamp(11px, 1.65vw, 14px)/1.2 "Courier New", monospace;
    letter-spacing: .05em;
}

.snf-hh__leaderboard li span { color: #bba773; }
.snf-hh__leaderboard li strong {
    overflow: hidden;
    color: #fff6d8;
    font-family: Arial, sans-serif;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snf-hh__leaderboard li b {
    color: #f0c65f;
    font-weight: 900;
}
.snf-hh__leaderboard li.is-empty {
    display: block;
    grid-column: 1 / -1;
    padding: 5px;
    color: #bba773;
    text-align: center;
}

.snf-hh__glass,
.snf-hh__scanlines {
    position: absolute;
    z-index: 30;
    inset: 0;
    border-radius: inherit;
    pointer-events: none !important;
}

.snf-hh__glass {
    background:
        linear-gradient(118deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.04) 18%, transparent 31%),
        radial-gradient(ellipse at 25% 5%, rgba(255,255,255,.16), transparent 28%),
        radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.42) 100%);
    mix-blend-mode: screen;
    opacity: .75;
}

.snf-hh__scanlines {
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, rgba(0,0,0,.035) 1px 3px);
    opacity: .48;
}

.snf-hh__control-deck {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 78px 1fr 90px;
    align-items: center;
    gap: 14px;
    margin: 14px auto 0;
    padding: 14px 20px;
    max-width: 90%;
    min-height: 76px;
    border: 3px solid #4b070a;
    border-radius: 12px 12px 22px 22px;
    color: #fce8b6;
    background: linear-gradient(180deg, #e3222d, #8b0c14);
    box-shadow: inset 0 4px 0 rgba(255,255,255,.12), 0 9px 0 #4b070a;
}

.snf-hh__speaker {
    width: 72px;
    height: 46px;
    border-radius: 8px;
    background: radial-gradient(circle, #1d1112 0 2px, transparent 2.5px) 0 0 / 9px 9px;
    opacity: .85;
}

.snf-hh__deck-copy {
    font: 800 clamp(11px, 2vw, 16px)/1.1 Arial, sans-serif;
    letter-spacing: .14em;
    text-align: center;
    text-shadow: 0 2px 0 #65070d;
}

.snf-hh__buttons {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
}

.snf-hh__buttons i {
    display: block;
    width: 28px;
    height: 28px;
    border: 3px solid #3e0609;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #fff2bb, #d7a840 45%, #755116 100%);
    box-shadow: 0 4px 0 #3e0609;
}

.snf-hh__mascot-source,
.snf-hh__asset-source {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 620px) {
    .snf-hh { margin: 8px auto; }

    .snf-hh__cabinet {
        padding: 10px;
        border-width: 3px;
        border-radius: 22px 22px 15px 15px;
    }

    .snf-hh__marquee {
        max-width: 94%;
        margin-bottom: 8px;
        padding: 9px 10px 10px;
        border-radius: 12px 12px 7px 7px;
    }

    .snf-hh__screen-shell {
        padding: 7px;
        border-width: 3px;
        border-radius: 21px;
    }

    .snf-hh__screen { border-radius: 22px / 18px; }
    .snf-hh__hud { padding: 5px 2px; }
    .snf-hh__hud div { padding: 2px 1px; }
    .snf-hh__hud span { font-size: clamp(6px, 1.8vw, 9px); letter-spacing: .07em; }
    .snf-hh__hud strong { font-size: clamp(12px, 4vw, 20px); }

    .snf-hh__game-controls {
        padding: 6px 7px 8px;
    }

    .snf-hh__desktop-controls {
        gap: 5px;
    }

    .snf-hh__game-controls button {
        min-height: 48px;
        padding: 5px 3px;
        border-radius: 7px;
    }

    .snf-hh--mobile-input .snf-hh__mobile-controls {
        grid-template-columns: minmax(0, 1fr) 88px;
        gap: 8px;
    }

    .snf-hh__joystick-zone {
        min-height: 84px;
        border-radius: 12px;
    }

    .snf-hh__joystick-base {
        width: 68px;
        height: 68px;
    }

    .snf-hh__joystick-knob {
        width: 38px;
        height: 38px;
        margin-left: -19px;
    }

    .snf-hh__axe-button {
        width: 84px;
        height: 84px;
        min-height: 84px !important;
    }

    .snf-hh__control-deck {
        grid-template-columns: 1fr;
        margin-top: 8px;
        padding: 9px 12px;
        min-height: 44px;
    }

    .snf-hh__speaker,
    .snf-hh__buttons { display: none; }

    .snf-hh__start,
    .snf-hh__boss-prompt,
    .snf-hh__gameover { padding: 5px; }

    .snf-hh__panel,
    .snf-hh__panel--intro,
    .snf-hh__panel--results {
        width: 96%;
        max-height: calc(100% - 2px);
        padding: 10px 11px;
        border-width: 2px;
        border-radius: 12px;
    }

    .snf-hh__panel--intro h2,
    .snf-hh__panel--results h2 {
        margin: 3px 0 6px;
        font-size: clamp(24px, 7vw, 34px);
    }

    .snf-hh__eyebrow {
        font-size: 9px;
        letter-spacing: .12em;
    }

    .snf-hh__intro-copy { margin-bottom: 8px; }
    .snf-hh__intro-copy p {
        margin-bottom: 4px;
        font-size: clamp(9px, 2.7vw, 12px);
        line-height: 1.18;
    }

    .snf-hh__panel button {
        min-height: 42px;
        padding: 6px 17px;
        font-size: clamp(18px, 5vw, 25px);
    }



    .snf-hh__panel.snf-hh__panel--boss h2 {
        margin: 3px auto 4px;
        font-size: clamp(20px, 6.4vw, 31px);
    }

    .snf-hh__panel--boss img {
        height: clamp(105px, 32vw, 165px);
        margin-bottom: 5px;
    }
    .snf-hh__panel--results .snf-hh__final-score {
        margin: 2px 0 5px;
        font-size: clamp(36px, 11vw, 52px);
    }

    .snf-hh__panel--results > div > p {
        margin-bottom: 6px;
        font-size: 9px;
    }

    .snf-hh__initials { margin: 7px auto 6px; }
    .snf-hh__initials input {
        width: clamp(42px, 13vw, 56px);
        height: clamp(46px, 14vw, 61px);
        border-width: 2px;
        font-size: clamp(27px, 9vw, 40px);
    }

    .snf-hh__leaderboard {
        margin: 5px auto 7px;
        padding: 5px 6px 6px;
    }

    .snf-hh__leaderboard h3 {
        margin-bottom: 3px;
        font-size: 14px;
    }

    .snf-hh__leaderboard-panel h2 {
        margin: 3px 0 6px;
        font-size: clamp(22px, 6.6vw, 31px);
    }

    .snf-hh__leaderboard ol { gap: 1px; }
    .snf-hh__leaderboard li {
        grid-template-columns: 21px minmax(0, 1fr) auto;
        gap: 4px;
        padding: 2px 3px;
        font-size: 9px;
    }

    .snf-hh__boot { padding: 6px; }
    .snf-hh__boot-card { width: 96%; padding: 16px 12px; border-width: 2px; }
    .snf-hh__dare-mark { font-size: clamp(42px, 17vw, 72px); }
    .snf-hh__boot-card h2 { margin: 8px auto; font-size: clamp(20px, 7vw, 31px); }
    .snf-hh__boot-card p { margin-bottom: 10px; font-size: 10px; }

    .snf-hh__attract-stage { height: clamp(105px, 32vw, 140px); margin-top: 4px; }
    .snf-hh__attract-boss { max-width: 32%; height: 58%; }
    .snf-hh__attract-boss--right { max-width: 38%; height: 43%; }
    .snf-hh__member-status { font-size: 8px !important; }
    .snf-hh__title-actions { gap: 6px; margin-bottom: 6px; }
    .snf-hh__title-actions button { min-height: 39px; padding: 5px 10px; font-size: 16px; }
    .snf-hh__title-flash { font-size: 10px; }
    .snf-hh__login-button { min-height: 42px; padding: 6px 12px !important; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .snf-hh *,
    .snf-hh *::before,
    .snf-hh *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* v0.3.15: authentic WINNERS DON'T BANDWAGON warning screen. */
.snf-hh__boot {
    padding: 0;
    background: #000;
    touch-action: manipulation;
}

.snf-hh__boot:focus-visible {
    outline: 4px solid #f0d18c;
    outline-offset: -5px;
}

.snf-hh__warning-screen {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: #000;
    image-rendering: pixelated;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* v0.3.21: full-screen app presentation. The playfield, not the cabinet,
   is now the sizing constraint. Gameplay and leaderboard storage are unchanged. */
html.snf-hh-fullscreen,
body.snf-hh-fullscreen {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.snf-hh-fullscreen {
    touch-action: none;
}

.snf-hh {
    --snf-hh-field-width: min(100vw, 177.7778vh);
    --snf-hh-field-height: min(100vh, 56.25vw);
    --snf-hh-field-width: min(100vw, 177.7778dvh);
    --snf-hh-field-height: min(100dvh, 56.25vw);
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: block;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    color: #fff1c8;
    background:
        radial-gradient(circle at 50% 42%, rgba(181,18,27,.20), transparent 44%),
        linear-gradient(180deg, #140507, #020101 72%);
}

.snf-hh__appbar {
    position: absolute;
    z-index: 80;
    top: max(0px, env(safe-area-inset-top));
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 88px;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 42px;
    padding: 4px max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left));
    border-bottom: 1px solid rgba(214,168,75,.70);
    color: #fff1c8;
    background: linear-gradient(180deg, rgba(33,6,8,.94), rgba(7,2,3,.84));
    box-shadow: 0 4px 18px rgba(0,0,0,.38);
    backdrop-filter: blur(8px);
}

.snf-hh__appbar strong {
    min-width: 0;
    overflow: hidden;
    color: #fff1c8;
    font: 900 18px/1 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    letter-spacing: .08em;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 2px 0 #65070d;
    white-space: nowrap;
}

.snf-hh__appbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 32px;
    padding: 3px 8px;
    border: 1px solid #e1bd6c;
    border-radius: 7px;
    color: #fff3cf;
    background: linear-gradient(180deg, #b5121b, #69080e);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 0 #390407;
    font: 900 11px/1 Arial, sans-serif;
    letter-spacing: .05em;
    cursor: pointer;
}

.snf-hh__appbar button:hover:not(:disabled),
.snf-hh__appbar button:focus-visible:not(:disabled) {
    filter: brightness(1.12);
}

.snf-hh__appbar button:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 0 #390407;
}

.snf-hh__appbar button:disabled {
    cursor: default;
    opacity: .42;
    filter: grayscale(.5);
}

.snf-hh__appbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.snf-hh__appbar-actions button {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 14px;
}

.snf-hh__viewport {
    position: absolute;
    inset: 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    contain: layout paint;
}

.snf-hh__viewport .snf-hh__cabinet {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none !important;
}

.snf-hh__cabinet::before,
.snf-hh__cabinet::after,
.snf-hh__marquee,
.snf-hh__control-deck {
    display: none !important;
}

.snf-hh__screen-shell {
    position: absolute;
    z-index: 2;
    inset: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.snf-hh__screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(23,77,59,.28), transparent 42%),
        #020404;
    box-shadow: none;
    isolation: isolate;
}

.snf-hh__field-wrap {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: var(--snf-hh-field-width);
    height: var(--snf-hh-field-height);
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    overflow: hidden;
    background: #1d5d47;
    box-shadow: 0 0 0 1px rgba(214,168,75,.30), 0 0 36px rgba(0,0,0,.65);
}

.snf-hh__field {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.snf-hh__hud {
    position: absolute;
    z-index: 12;
    top: max(46px, calc(50dvh - 28.125vw + 46px));
    left: 50%;
    width: var(--snf-hh-field-width);
    min-height: 42px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    padding: 5px 8px 6px;
    border: 0;
    border-bottom: 1px solid rgba(214,168,75,.50);
    color: #fff1c8;
    background: linear-gradient(180deg, rgba(7,3,3,.88), rgba(15,5,5,.70));
    box-shadow: 0 5px 16px rgba(0,0,0,.24);
    backdrop-filter: blur(5px);
    text-align: center;
}

.snf-hh__hud div {
    min-width: 0;
    padding: 1px 3px;
}

.snf-hh__hud span {
    margin-bottom: 1px;
    font-size: clamp(7px, 1.15vw, 11px);
    letter-spacing: .10em;
}

.snf-hh__hud strong {
    font-size: clamp(15px, 2.15vw, 27px);
}

.snf-hh__game-controls {
    position: absolute;
    z-index: 18;
    inset: 0;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
}

.snf-hh__desktop-controls {
    display: none !important;
}

.snf-hh__mobile-controls,
.snf-hh--mobile-input .snf-hh__mobile-controls {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
}

.snf-hh__joystick-zone {
    position: absolute;
    left: max(14px, env(safe-area-inset-left));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: clamp(112px, 18vw, 150px);
    min-height: 0;
    height: clamp(112px, 18vw, 150px);
    overflow: visible;
    border: 2px solid rgba(240,209,140,.68);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(35,17,17,.72), rgba(6,3,3,.46));
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.28), 0 7px 22px rgba(0,0,0,.30);
    opacity: .88;
    pointer-events: auto;
    backdrop-filter: blur(3px);
}

.snf-hh__joystick-zone > small {
    bottom: -16px;
    font-size: 8px;
    opacity: .78;
}

.snf-hh__joystick-base {
    top: 50%;
    width: clamp(72px, 11vw, 92px);
    height: clamp(72px, 11vw, 92px);
}

.snf-hh__joystick-knob {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    margin-left: -22px;
}

.snf-hh__axe-button {
    position: absolute !important;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: clamp(88px, 14vw, 118px);
    height: clamp(88px, 14vw, 118px);
    min-height: 0 !important;
    margin: 0;
    padding: 6px !important;
    opacity: .92;
    pointer-events: auto;
}

.snf-hh__axe-button span {
    font-size: clamp(22px, 4vw, 30px) !important;
}

.snf-hh__axe-button small {
    font-size: 8px;
}

.snf-hh__message {
    top: 25%;
    font-size: clamp(24px, 5vw, 64px);
}

.snf-hh__pause {
    position: absolute;
    z-index: 25;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(7px, 2vw, 18px);
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(78,10,13,.72), rgba(0,0,0,.92));
    backdrop-filter: blur(4px);
}

.snf-hh__panel--pause {
    width: min(88%, 480px);
}

.snf-hh--portrait .snf-hh__joystick-zone,
.snf-hh--portrait .snf-hh__axe-button {
    bottom: max(28px, env(safe-area-inset-bottom));
}

.snf-hh--landscape .snf-hh__joystick-zone,
.snf-hh--landscape .snf-hh__axe-button {
    opacity: .76;
}

.snf-hh--short-screen .snf-hh__joystick-zone {
    width: 92px;
    height: 92px;
}

.snf-hh--short-screen .snf-hh__joystick-base {
    width: 64px;
    height: 64px;
}

.snf-hh--short-screen .snf-hh__joystick-knob {
    width: 36px;
    height: 36px;
    margin-left: -18px;
}

.snf-hh--short-screen .snf-hh__axe-button {
    width: 82px;
    height: 82px;
}

@media (pointer: fine) {
    .snf-hh:not(.snf-hh--mobile-input) .snf-hh__mobile-controls {
        display: none;
    }
}

@media (max-width: 620px) {
    .snf-hh__appbar {
        grid-template-columns: 62px minmax(0, 1fr) 80px;
        gap: 4px;
        min-height: 40px;
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .snf-hh__appbar strong {
        font-size: 15px;
    }

    .snf-hh__appbar button {
        min-height: 30px;
        padding: 3px 5px;
        font-size: 9px;
    }

    .snf-hh__appbar-actions button {
        font-size: 13px;
    }

    .snf-hh__hud {
        top: max(42px, calc(50dvh - 28.125vw + 42px));
        min-height: 36px;
        padding: 4px 3px 5px;
    }

    .snf-hh__hud div {
        padding: 1px;
    }

    .snf-hh__hud span {
        font-size: clamp(6px, 1.8vw, 8px);
        letter-spacing: .06em;
    }

    .snf-hh__hud strong {
        font-size: clamp(12px, 4vw, 18px);
    }

    .snf-hh__start,
    .snf-hh__boss-prompt,
    .snf-hh__gameover,
    .snf-hh__pause {
        padding: 50px 6px 8px;
    }

    .snf-hh__panel,
    .snf-hh__panel--intro,
    .snf-hh__panel--results {
        width: min(96%, 620px);
        max-height: calc(100dvh - 58px);
    }
}

@media (orientation: portrait) and (max-width: 620px) {
    .snf-hh__joystick-zone {
        left: max(16px, env(safe-area-inset-left));
        width: 106px;
        height: 106px;
    }

    .snf-hh__axe-button {
        right: max(18px, env(safe-area-inset-right));
        width: 94px;
        height: 94px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .snf-hh *,
    .snf-hh *::before,
    .snf-hh *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* v0.3.22: true viewport gameplay. The HUD has its own row and the canvas
   fills every remaining pixel. Rendering uses a camera on narrow screens and dedicated control rails on wide screens. */
.snf-hh {
    --snf-hh-appbar-height: 42px;
    --snf-hh-hud-height: 48px;
    display: grid !important;
    grid-template-rows: var(--snf-hh-appbar-height) minmax(0, 1fr);
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.snf-hh__appbar {
    position: relative !important;
    inset: auto !important;
    z-index: 80;
    grid-row: 1;
    height: var(--snf-hh-appbar-height);
    min-height: var(--snf-hh-appbar-height);
}

.snf-hh__viewport {
    position: relative !important;
    inset: auto !important;
    grid-row: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.snf-hh__viewport .snf-hh__cabinet,
.snf-hh__screen-shell {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}

.snf-hh__screen {
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    grid-template-rows: var(--snf-hh-hud-height) minmax(0, 1fr);
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.snf-hh__hud {
    position: relative !important;
    z-index: 30 !important;
    top: auto !important;
    left: auto !important;
    grid-row: 1;
    width: 100% !important;
    height: var(--snf-hh-hud-height) !important;
    min-height: var(--snf-hh-hud-height) !important;
    transform: none !important;
    align-items: center;
    padding: 4px 8px 5px !important;
    border-bottom: 1px solid rgba(214,168,75,.58) !important;
    background: linear-gradient(180deg, #150607, #070203) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.34) !important;
    backdrop-filter: none !important;
}

.snf-hh__hud div {
    padding: 1px 3px !important;
}

.snf-hh__hud span {
    font-size: clamp(7px, 1.15vw, 10px) !important;
    line-height: 1 !important;
}

.snf-hh__hud strong {
    font-size: clamp(15px, 2.25vw, 25px) !important;
    line-height: 1 !important;
}

.snf-hh__field-wrap {
    position: relative !important;
    z-index: 1 !important;
    top: auto !important;
    left: auto !important;
    grid-row: 2;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    transform: none !important;
    overflow: hidden !important;
    box-shadow: none !important;
    background:
        radial-gradient(ellipse at center, #1d5d47 0 54%, #102f27 72%, #070d0b 100%) !important;
}

.snf-hh__field {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

.snf-hh__game-controls {
    position: absolute !important;
    z-index: 18 !important;
    top: var(--snf-hh-hud-height) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
}

.snf-hh__message {
    top: 18% !important;
}

.snf-hh__start,
.snf-hh__boot,
.snf-hh__boss-prompt,
.snf-hh__gameover,
.snf-hh__pause {
    z-index: 40 !important;
}

.snf-hh--mobile-input .snf-hh__joystick-zone {
    left: max(12px, env(safe-area-inset-left)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    width: clamp(92px, 18vmin, 132px) !important;
    height: clamp(92px, 18vmin, 132px) !important;
}

.snf-hh--mobile-input .snf-hh__axe-button {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    width: clamp(78px, 15vmin, 108px) !important;
    height: clamp(78px, 15vmin, 108px) !important;
}

@media (max-width: 620px) {
    .snf-hh {
        --snf-hh-appbar-height: 40px;
        --snf-hh-hud-height: 40px;
    }

    .snf-hh__hud {
        padding: 3px 2px 4px !important;
    }

    .snf-hh__hud div {
        padding: 1px !important;
    }

    .snf-hh__hud span {
        font-size: clamp(6px, 1.8vw, 8px) !important;
        letter-spacing: .055em !important;
    }

    .snf-hh__hud strong {
        font-size: clamp(12px, 4vw, 18px) !important;
    }
}

@media (orientation: portrait) and (max-width: 620px) {
    .snf-hh--mobile-input .snf-hh__joystick-zone {
        width: 96px !important;
        height: 96px !important;
        opacity: .78 !important;
    }

    .snf-hh--mobile-input .snf-hh__axe-button {
        width: 86px !important;
        height: 86px !important;
        opacity: .82 !important;
    }
}

@media (max-width: 620px) {
    .snf-hh__start,
    .snf-hh__boot,
    .snf-hh__boss-prompt,
    .snf-hh__gameover,
    .snf-hh__pause {
        padding: 6px !important;
    }

    .snf-hh__panel,
    .snf-hh__panel--intro,
    .snf-hh__panel--results {
        max-height: calc(100% - 12px) !important;
    }
}


/* v0.3.23: full-world fullscreen layout.
   The complete 16:9 playfield is always visible; portrait uses the remaining
   screen as a dedicated touch-control tray instead of cropping the world. */
.snf-hh {
    --snf-hh-appbar-height: 40px;
    --snf-hh-hud-height: 42px;
}

.snf-hh__screen {
    display: grid !important;
    grid-template-rows: var(--snf-hh-hud-height) minmax(0, 1fr) !important;
    place-items: stretch !important;
    background:
        radial-gradient(ellipse at center, rgba(181,18,27,.16), transparent 58%),
        #030303 !important;
}

.snf-hh__hud {
    grid-row: 1 !important;
    align-self: stretch !important;
    width: 100% !important;
}

.snf-hh__field-wrap {
    grid-row: 2 !important;
    place-self: center !important;
    width: min(100%, calc((100dvh - var(--snf-hh-appbar-height) - var(--snf-hh-hud-height)) * 1.7777778)) !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #07120e !important;
    box-shadow: 0 0 0 1px rgba(214,168,75,.28), 0 0 30px rgba(0,0,0,.55) !important;
}

.snf-hh__field {
    width: 100% !important;
    height: 100% !important;
}

.snf-hh__game-controls {
    top: var(--snf-hh-hud-height) !important;
}

.snf-hh--mobile-input.snf-hh--landscape .snf-hh__joystick-zone,
.snf-hh--mobile-input.snf-hh--landscape .snf-hh__axe-button {
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
}


.snf-hh__cabinet-control-art {
    display: none;
}
@media (orientation: portrait) and (pointer: coarse),
       (orientation: portrait) and (max-width: 620px) {
    .snf-hh__screen {
        grid-template-rows: var(--snf-hh-hud-height) auto minmax(132px, 1fr) !important;
    }

    .snf-hh__field-wrap {
        grid-row: 2 !important;
        align-self: start !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 16 / 9 !important;
        box-shadow: 0 1px 0 rgba(214,168,75,.38), 0 10px 28px rgba(0,0,0,.38) !important;
    }

    .snf-hh__game-controls {
        position: relative !important;
        z-index: 18 !important;
        grid-row: 3 !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 132px !important;
        overflow: hidden !important;
        border-top: 1px solid rgba(214,168,75,.34) !important;
        background: linear-gradient(180deg, #120405 0%, #050102 100%) !important;
    }

    .snf-hh__cabinet-control-art {
        position: absolute !important;
        z-index: 0 !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: fill !important;
        pointer-events: none !important;
        user-select: none !important;
    }

    .snf-hh__mobile-controls,
    .snf-hh--mobile-input .snf-hh__mobile-controls {
        position: relative !important;
        z-index: 1 !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 132px !important;
    }

    .snf-hh--mobile-input .snf-hh__joystick-zone {
        top: 44% !important;
        left: max(18px, env(safe-area-inset-left)) !important;
        bottom: auto !important;
        width: clamp(96px, 29vw, 126px) !important;
        height: clamp(96px, 29vw, 126px) !important;
        transform: translateY(-43%) !important;
        opacity: .94 !important;
    }

    .snf-hh--mobile-input .snf-hh__axe-button {
        top: 44% !important;
        right: max(20px, env(safe-area-inset-right)) !important;
        bottom: auto !important;
        width: clamp(88px, 25vw, 112px) !important;
        height: clamp(88px, 25vw, 112px) !important;
        transform: translateY(-43%) !important;
        opacity: .96 !important;
    }

    .snf-hh__message {
        top: calc(var(--snf-hh-hud-height) + 17%) !important;
    }
}

@media (orientation: landscape) and (max-height: 540px) {
    .snf-hh {
        --snf-hh-appbar-height: 34px;
        --snf-hh-hud-height: 34px;
    }

    .snf-hh__appbar {
        height: var(--snf-hh-appbar-height) !important;
        min-height: var(--snf-hh-appbar-height) !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    .snf-hh__appbar button {
        min-height: 26px !important;
    }

    .snf-hh__hud {
        height: var(--snf-hh-hud-height) !important;
        min-height: var(--snf-hh-hud-height) !important;
        padding: 2px 4px 3px !important;
    }

    .snf-hh__hud span {
        font-size: 6px !important;
    }

    .snf-hh__hud strong {
        font-size: clamp(11px, 3.2vh, 16px) !important;
    }

    .snf-hh--mobile-input .snf-hh__joystick-zone {
        width: clamp(76px, 22vh, 96px) !important;
        height: clamp(76px, 22vh, 96px) !important;
    }

    .snf-hh--mobile-input .snf-hh__axe-button {
        width: clamp(68px, 20vh, 88px) !important;
        height: clamp(68px, 20vh, 88px) !important;
    }
}
