.sc-card{overflow:hidden;border:1px solid #4a8192;border-radius:20px;background:#091c29;color:#f2fcff;box-shadow:0 18px 50px #0005;isolation:isolate}.sc-card__art{position:relative;overflow:hidden;aspect-ratio:2/1;background:#07131e}.sc-card__art svg{width:100%;height:100%;display:block}.sc-card__badge{position:absolute;top:15px;left:16px;background:#07131edb;border:1px solid #7ae5ed55;border-radius:5px;padding:5px 8px;font:700 10px/1.2 system-ui;letter-spacing:.1em;color:#c0fff4}.sc-card__copy{padding:24px}.sc-eyebrow{margin:0 0 7px;font:800 10px/1.3 system-ui;letter-spacing:.18em;color:#97dce9}.sc-card h3{margin:0;font:900 clamp(28px,5vw,42px)/1 system-ui;letter-spacing:-.06em}.sc-card__copy>p:not(.sc-eyebrow){color:#b8cdd7;font:400 15px/1.6 system-ui;margin:14px 0 20px}.sc-primary{display:inline-flex;justify-content:center;align-items:center;gap:22px;min-height:50px;border:1px solid #d9ffff;border-radius:7px;padding:13px 22px;background:#d8fbff;color:#07131e;font:900 13px/1.25 system-ui;letter-spacing:.06em;cursor:pointer;box-shadow:0 0 24px #67e7ff16}.sc-primary:disabled{opacity:.5;cursor:wait}.sc-primary:hover{background:white}.sc-card__meta{display:block;margin-top:12px;color:#9ab9c7;font:12px/1.4 system-ui}.sc-dialog{box-sizing:border-box;position:fixed;inset:0;width:min(790px,calc(100% - 24px));max-width:none;max-height:96dvh;padding:0;border:1px solid #719eaf;border-radius:18px;background:#07111c;color:#effbff;overflow:auto;overscroll-behavior:contain;box-shadow:0 32px 120px #000c;font-family:system-ui,sans-serif}.sc-dialog::backdrop{background:#020811}.sc-dialog [hidden]{display:none!important}.sc-dialog button{font-family:inherit}.sc-dialog button:focus-visible,.sc-stage:focus-visible{outline:3px solid #9fffee;outline-offset:3px}.sc-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #a6e5ff22}.sc-header h2{margin:0;font:900 24px/.95 system-ui;letter-spacing:-.055em}.sc-header .sc-eyebrow{font-size:8px;margin-bottom:5px}.sc-icon-button{width:48px;height:48px;display:grid;place-items:center;border:1px solid #b9e9ff3b;border-radius:50%;background:#102532;color:#ecfbff;font-size:20px;cursor:pointer}.sc-intro{position:relative;isolation:isolate;overflow:hidden;padding:34px 36px 26px;background:radial-gradient(ellipse at 90% 20%,#286e7e55,transparent 65%),linear-gradient(145deg,#081420,#0b2832)}.sc-intro__seal{position:absolute;right:-12%;top:3%;width:65%;color:#d3feff;opacity:.07;z-index:-1;transform:rotate(-16deg);pointer-events:none}.sc-intro__seal svg{display:block;width:100%;height:auto}.sc-intro h3{font:950 clamp(34px,7vw,66px)/.96 system-ui;letter-spacing:-.065em;margin:16px 0 26px;max-width:600px}.sc-intro h3 em{font-style:normal;color:#a9f5f2}.sc-intro ol{list-style:none;counter-reset:sc-list;max-width:510px;padding:0;margin:0 0 27px}.sc-intro li{position:relative;padding-left:38px;margin:14px 0;color:#b7cdd7;font-size:14px;line-height:1.6;counter-increment:sc-list}.sc-intro li:before{content:"0" counter(sc-list);position:absolute;left:0;top:1px;color:#83e5ec;font:bold 12px/1.7 system-ui}.sc-intro li b{color:white}.sc-play{width:min(100%,360px);justify-content:space-between}.sc-key-guide{font:11px/1.5 system-ui;color:#a8c3d0;margin:16px 0 0}.sc-hud{display:grid;grid-template-columns:.9fr .7fr 1.4fr;gap:5px;padding:12px 20px;background:#0c202c;border-bottom:1px solid #81b4c233}.sc-hud>div{min-width:0}.sc-hud span{display:block;color:#95b4c2;font-size:8px;letter-spacing:.12em;line-height:1.5}.sc-hud strong{font-size:20px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.sc-hud>div:last-child{text-align:right}.sc-stage-wrap{position:relative;width:min(100%,calc((100dvh - 315px)*1.2));min-width:280px;margin:0 auto;background:#081a29}.sc-stage{position:relative;width:100%;aspect-ratio:6/5;touch-action:none;outline-offset:-3px!important;overflow:hidden}.sc-stage canvas{display:block!important;max-width:100%;touch-action:none}.sc-overlay{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;background:#061321f2}.sc-overlay h3{margin:6px 0;font:900 clamp(24px,7vw,42px)/1 system-ui;letter-spacing:-.055em}.sc-overlay>p:not(.sc-eyebrow){font-size:13px;line-height:1.5;color:#b9dae6;max-width:360px;margin:10px 0 20px}.sc-overlay .sc-primary{min-height:48px;padding:12px 18px}.sc-heat{display:flex;align-items:center;gap:10px;padding:10px 18px;background:#0b1e2b;font-size:9px;font-weight:800;letter-spacing:.06em}.sc-heat>span:first-child{width:88px;flex-shrink:0}.sc-heat>span:last-child{min-width:31px;text-align:right;font-variant-numeric:tabular-nums}.sc-heat progress{appearance:none;width:100%;height:8px;border:0;border-radius:12px;background:#1e3c4a;overflow:hidden}.sc-heat progress::-webkit-progress-bar{background:#1e3c4a}.sc-heat progress::-webkit-progress-value{background:#83f1f0;border-radius:12px}.sc-heat progress::-moz-progress-bar{background:#83f1f0;border-radius:12px}.sc-heat.is-hot{color:#ffcba5}.sc-heat.is-hot progress::-webkit-progress-value{background:#ffc087}.sc-heat.is-hot progress::-moz-progress-bar{background:#ffc087}.sc-controls{display:grid;grid-template-columns:repeat(4,1fr) 1.3fr;gap:7px;padding:12px 18px 8px;background:#07131d}.sc-controls button{min-height:58px;min-width:48px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;border:1px solid #5b91a36b;border-radius:9px;background:linear-gradient(#183442,#102430);box-shadow:inset 0 1px #d6ffff14,0 3px #0003;color:#effcff;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:pointer}.sc-controls button>span{font-size:25px;font-weight:800;line-height:1}.sc-controls small{font-size:8px;letter-spacing:.1em;font-weight:800}.sc-controls .sc-boost{background:linear-gradient(#c4fff6,#73dce8);color:#05232d;border-color:#c6ffff}.sc-controls button.is-held{transform:translateY(2px);background:#406975;box-shadow:none}.sc-controls .sc-boost.is-held{background:#f1fffd}.sc-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px 7px;background:#07131d}.sc-tools button{min-height:44px;padding:8px 2px;background:transparent;color:#bfdce6;border:0;font-size:12px;cursor:pointer}.sc-tools span{font-size:9px;color:#8caebc;text-align:center}.sc-status{margin:0;padding:11px 20px;border-top:1px solid #b2e4ff1a;font-size:12px;line-height:1.5;color:#b5d2df;min-height:18px;background:#081722}.sc-dialog[open]{animation:sc-arrive .18s ease-out}@keyframes sc-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(max-width:480px){.sc-dialog{width:calc(100% - 12px);border-radius:13px;max-height:97dvh}.sc-header{padding:12px 14px}.sc-header h2{font-size:23px}.sc-intro{padding:25px 22px 22px}.sc-intro h3{font-size:43px}.sc-intro li{font-size:12px}.sc-hud{padding:9px 14px}.sc-hud strong{font-size:18px}.sc-hud span{font-size:7px;letter-spacing:.07em}.sc-stage-wrap{width:100%;min-width:0}.sc-controls{padding:10px 12px 6px;gap:6px}.sc-controls button{min-height:58px}.sc-tools{padding:0 14px 3px;gap:7px}.sc-tools span{font-size:8px}.sc-heat{padding:9px 13px;gap:7px;font-size:8px}.sc-heat>span:first-child{width:78px}.sc-status{font-size:11px;padding:9px 14px}}@media(prefers-reduced-motion:reduce){.sc-dialog[open]{animation:none}.sc-controls button.is-held{transform:none}}

/* Approved Snowcross machine: full transparent silhouette, separate from the runtime sprite. */
.sc-card__art--machine{background:radial-gradient(ellipse at 65% 45%,#2a819b66,transparent 70%),linear-gradient(140deg,#07131e,#103845)}
.sc-card__art .sc-card__machine{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain;padding:13px 12px 9px;box-sizing:border-box;pointer-events:none}
.sc-card__art--machine::after{content:"";position:absolute;z-index:0;inset:7px;background:url("./design/frost-corners.webp") center/contain no-repeat;opacity:.35;pointer-events:none}
.sc-card__art .sc-card__badge{z-index:2}
.sc-intro .sc-intro__machine{float:right;display:block;width:47%;height:auto;max-height:200px;object-fit:contain;margin:-4px -6px 14px 18px;padding:8px;box-sizing:border-box;pointer-events:none}
.sc-intro .sc-play{clear:both}
.sr-fm-arcade-copy{position:relative;isolation:isolate}
.sr-fm-arcade-copy::before{content:"";position:absolute;z-index:-1;inset:-10px -16px;background:url("./design/frost-corners.webp") center/contain no-repeat;opacity:.2;pointer-events:none}
@media(max-width:480px){.sc-intro .sc-intro__machine{float:none;width:100%;height:112px;margin:-6px auto 9px;padding:5px}.sc-intro:has(.sc-intro__machine) h3{margin-top:10px;margin-bottom:18px;font-size:38px}.sc-intro:has(.sc-intro__machine) ol{margin-bottom:20px}.sc-intro:has(.sc-intro__machine) li{margin:10px 0}.sc-card__art .sc-card__machine{padding:13px 8px 7px}}
@media(max-height:680px) and (max-width:480px){.sc-intro .sc-intro__machine{height:84px}.sc-intro:has(.sc-intro__machine){padding-top:18px}.sc-intro:has(.sc-intro__machine) h3{font-size:34px}}

/* Assisted ride v2: three primary controls; manual lean remains opt-in. */
.sc-controls{grid-template-columns:1fr 1fr 1.65fr;gap:9px;padding-top:11px}
.sc-controls button{min-height:66px;border-radius:13px;border-color:#77b5c777;box-shadow:inset 0 1px #e3ffff24,0 4px 0 #020a1177}
.sc-controls button>span{font-size:29px}.sc-controls small{font-size:9px;letter-spacing:.12em}
.sc-controls .sc-boost{background:linear-gradient(150deg,#e3fff4,#88e9ed 68%,#5fc1dc);box-shadow:inset 0 1px #fff9,0 4px 0 #225164,0 0 20px #83f3ed12}
.sc-controls button.is-held{transform:translateY(3px);box-shadow:inset 0 2px 7px #03172244;background:#2f6578}
.sc-controls .sc-boost.is-held{background:#f4fffc}
.sc-pro-mode .sc-controls{grid-template-columns:repeat(4,1fr) 1.35fr;gap:6px}
.sc-pro-mode .sc-controls button{min-height:60px}
.sc-ride-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 18px;background:linear-gradient(90deg,#0d2938,#15394b,#0d2938);border-top:1px solid #8ee9ed33;font:800 9px/1.3 system-ui;letter-spacing:.08em;color:#9bdfdb}
.sc-ride-status strong{color:#ecffff;font-size:17px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
#sc-pro{border:1px solid #78a5b638;border-radius:30px;padding:8px 12px;min-height:34px;font-size:11px;color:#a2d3df}
#sc-pro[aria-pressed=true]{background:#234553;color:#cffff1;border-color:#82c8cd}
.sc-tools{padding-top:3px;padding-bottom:7px}.sc-stage-wrap{width:min(100%,calc((100dvh - 348px)*1.2))}
@media(max-width:480px){.sc-stage-wrap{width:100%}.sc-controls{padding:10px 12px 8px;gap:8px}.sc-controls button{min-height:66px}.sc-pro-mode .sc-controls{gap:5px}.sc-pro-mode .sc-controls button{min-height:60px}.sc-ride-status{padding:6px 14px;font-size:8px}.sc-ride-status strong{font-size:16px}#sc-pro{font-size:10px;min-height:35px;padding:7px 12px}.sc-tools{padding-bottom:5px}.sc-tools button{min-height:44px}}
@media(max-width:480px) and (max-height:720px){.sc-header{padding-top:8px;padding-bottom:8px}.sc-hud{padding-top:6px;padding-bottom:6px}.sc-stage-wrap{width:min(100%,calc((100dvh - 355px)*1.2))}.sc-status{padding-top:6px;padding-bottom:6px}.sc-controls button{min-height:60px}.sc-ride-status{padding-top:4px;padding-bottom:4px}}
@media(prefers-reduced-motion:reduce){.sc-controls button.is-held{transform:none}}

/* Phone secondary controls retain a 44px touch target at narrow widths. */
@media(max-width:480px){.sc-tools button{min-width:44px;min-height:44px}#sc-pro{min-width:44px;min-height:44px}}

/* Course selection is separate from the three riding controls. */
.sc-course-picker{clear:both;margin:20px 0 18px}
.sc-course-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-width:510px}
.sc-course-choices button{min-width:0;min-height:60px;padding:11px 12px;border:1px solid #6c9fb65e;border-radius:10px;background:#0d2531;color:#aacbd7;cursor:pointer;text-align:left}
.sc-course-choices button b{display:block;font:800 13px/1.25 system-ui;letter-spacing:.01em}
.sc-course-choices button small{display:block;font:700 9px/1.5 system-ui;letter-spacing:.04em;margin-top:4px;color:#83adb9}
.sc-course-choices button[aria-pressed=true]{border-color:#a0f1e6;background:linear-gradient(130deg,#234c56,#153a49);box-shadow:inset 0 0 0 1px #b8ffef18;color:#f2ffff}
.sc-course-choices button[aria-pressed=true] small{color:#a8f1df}
.sc-course-choices button:disabled{cursor:wait;opacity:.55}
#sc-course-note{margin:8px 0 0;color:#9abac7;font:10px/1.5 system-ui;max-width:510px}
#sc-active-course{letter-spacing:.09em;line-height:1.4}
.sc-overlay-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
.sc-secondary{min-width:44px;min-height:44px;padding:10px 12px;border:1px solid #91d8de59;border-radius:7px;background:#112f3c;color:#bce6ec;font:700 11px/1.3 system-ui;cursor:pointer}
.sc-secondary:hover{background:#1b4351}
@media(max-width:480px){.sc-course-picker{margin:16px 0}.sc-course-choices{gap:8px}.sc-course-choices button{min-height:58px;padding:10px}.sc-course-choices button b{font-size:12px}.sc-course-choices button small{font-size:8px}.sc-overlay{padding:16px}.sc-overlay-actions{gap:7px}.sc-overlay-actions .sc-primary{font-size:11px;padding:11px 14px}.sc-secondary{font-size:10px;padding:10px}.sc-overlay>p:not(.sc-eyebrow){margin-bottom:14px}}

/* Optional crown loads only when a run finishes; result and actions remain primary. */
.sc-victory{display:block;width:80px;height:80px;object-fit:contain;pointer-events:none}
.sc-overlay.is-finished.has-victory{display:grid;grid-template-columns:80px minmax(0,1fr);grid-template-areas:"crest kicker" "crest title" "copy copy" "actions actions";column-gap:12px;row-gap:6px;align-content:center;align-items:center;justify-content:stretch;padding:16px}
.sc-overlay.has-victory .sc-victory{grid-area:crest}
.sc-overlay.has-victory>.sc-eyebrow{grid-area:kicker;text-align:left;align-self:end;margin:0}
.sc-overlay.has-victory>h3{grid-area:title;text-align:left;align-self:start;margin:0}
.sc-overlay.has-victory>p:not(.sc-eyebrow){grid-area:copy;justify-self:center;margin:4px 0 6px;font-size:12px;line-height:1.4}
.sc-overlay.has-victory .sc-overlay-actions{grid-area:actions}
@media(max-width:480px){.sc-overlay.is-finished.has-victory{padding:13px;column-gap:10px;row-gap:4px}.sc-overlay.has-victory>p:not(.sc-eyebrow){font-size:11px;line-height:1.35}.sc-overlay.has-victory>h3{font-size:30px}.sc-overlay.has-victory>.sc-eyebrow{font-size:8px}}
/* Result overflow stays inside the board; close remains in the separate dialog header. */
.sc-overlay{overflow-y:auto;overscroll-behavior:contain}
.sc-overlay>*{flex-shrink:0}
.sc-overlay.is-finished.has-victory{align-content:start}
.sc-overlay-actions{flex-shrink:0}
@media(max-width:480px) and (max-height:720px){.sc-overlay:not(.has-victory){justify-content:flex-start}}

/* THE START (31 Oct): the loading ring, then 3-2-1 over the live stage, then GO. Opacity and transform only. */
.sc-count{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;text-align:center;color:#eaffff;background:linear-gradient(#061321d9,#06132133 70%,#061321aa)}
.sc-count[hidden]{display:none}
.sc-count.is-go{background:none;pointer-events:none}
.sc-count__ring{width:44px;height:44px;border-radius:50%;border:4px solid #7de9f244;border-top-color:#9fffee;animation:sc-count-spin .9s linear infinite}
.sc-count__msg{margin:0;font:800 12px/1.3 system-ui;letter-spacing:.14em;color:#a9eef5}
.sc-count__num{display:block;font:900 clamp(72px,24vw,150px)/1 system-ui;letter-spacing:-.06em;color:#effffe;text-shadow:0 4px 0 #06131f,0 0 22px #67e7ff55}
.sc-count__num[data-flip=a]{animation:sc-count-a .62s ease-out both}
.sc-count__num[data-flip=b]{animation:sc-count-b .62s ease-out both}
.sc-count__zones{display:none;position:absolute;left:0;right:0;bottom:14px;justify-content:space-around;font:800 11px/1.35 system-ui;letter-spacing:.14em;color:#bff7ff}
.sc-count__zones::before{content:"";position:absolute;left:50%;top:-120px;bottom:0;width:1px;background:#8ee9ed40}
.sc-count__keys{margin:0;font:700 11px/1.3 system-ui;letter-spacing:.08em;color:#a9d8e0}
.sc-count[data-mode=load] .sc-count__num,.sc-count[data-mode=load] .sc-count__zones,.sc-count[data-mode=load] .sc-count__keys,.sc-count[data-mode=load] .sc-secondary{display:none}
.sc-count[data-mode=count] .sc-count__ring,.sc-count[data-mode=count] .sc-count__msg{display:none}
.sc-count.is-go .sc-count__zones,.sc-count.is-go .sc-count__keys,.sc-count.is-go .sc-secondary{display:none}
@media(pointer:coarse){.sc-count[data-mode=count]:not(.is-go) .sc-count__zones{display:flex}.sc-count__keys{display:none}}
@keyframes sc-count-spin{to{transform:rotate(1turn)}}
@keyframes sc-count-a{from{transform:scale(1.55);opacity:0}35%{opacity:1}to{transform:scale(1);opacity:1}}
@keyframes sc-count-b{from{transform:scale(1.55);opacity:0}35%{opacity:1}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.sc-count__ring{animation:none}.sc-count__num[data-flip]{animation:none}}

/* Three-lane preview and thumb sensitivity share the existing compact control layout. */
#snowcross-dialog .sc-track-preview{font-size:9px;letter-spacing:.02em;gap:8px}
#snowcross-dialog .sc-track-preview>span{flex:1;text-align:center;padding:3px 0;border-bottom:2px solid transparent}
#snowcross-dialog .sc-track-preview>.is-current{color:#fff;border-bottom-color:#8bdcff}
#snowcross-dialog .sc-tools{flex-wrap:wrap}
#snowcross-dialog #sc-steering{min-width:44px;min-height:44px}

/* Snowcross race v3: all seven controls stay visible; no hidden trick controls. */
.sc-race-hud{grid-template-columns:repeat(4,minmax(0,1fr))}.sc-race-hud>div{min-width:0}.sc-race-hud strong{font-size:clamp(17px,3vw,24px)}
.sc-race-status{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 18px;color:#d6f9ff;background:#071d2c;border-block:1px solid #6ccbd333;font:700 10px/1.45 system-ui;letter-spacing:.04em}.sc-race-status strong{color:#ffe1ad}.sc-race-status #sc-freeze-state{color:#9cffff}
.sc-controls,.sc-pro-mode .sc-controls{grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}.sc-controls button,.sc-pro-mode .sc-controls button{grid-column:span 1;min-width:0;min-height:60px}.sc-controls .sc-jump{grid-column:span 2;position:relative;overflow:hidden;isolation:isolate;background:#173f53;color:#efffff}.sc-jump::before{content:"";position:absolute;z-index:-1;inset:auto 0 0;height:var(--sc-charge,0%);background:#4aaab8}.sc-jump.is-charged{border-color:#fff2ac;box-shadow:inset 0 0 0 2px #fff2ac66}.sc-controls .sc-freeze{background:#112e4f;color:#a8ffff;border-color:#7feaf7}.sc-freeze.is-powered{background:#a4f8ff;color:#061b33}.sc-controls small{font-size:9px;letter-spacing:.04em;white-space:normal}
@media(max-width:600px){.sc-controls,.sc-pro-mode .sc-controls{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px 12px}.sc-controls button,.sc-pro-mode .sc-controls button{min-height:53px}.sc-controls button>span{font-size:24px}.sc-race-status{padding:6px 12px;font-size:9px}.sc-race-hud{padding-inline:12px}.sc-race-hud>div>span{font-size:8px}.sc-tools{gap:6px;flex-wrap:wrap}.sc-stage-wrap{width:100%}}
@media(max-width:480px) and (max-height:780px){.sc-stage-wrap{width:min(100%,max(265px,calc((100dvh - 390px)*1.2)))}.sc-race-status{gap:3px 8px}.sc-controls button,.sc-pro-mode .sc-controls button{min-height:50px}}
@media(prefers-reduced-motion:reduce){.sc-jump::before{transition:none}.sc-freeze.is-powered{animation:none}}
/* SC1 (5 Nov 2026): the score line counts smashes now. On phones it takes its own centred row, so the bar keeps one height and the controls never shift mid-race. */
@media(max-width:480px),(orientation:landscape) and (max-height:520px){.sc-race-status{row-gap:2px;padding-block:4px;line-height:1.3}.sc-race-status #sc-tricks{order:3;flex-basis:100%;text-align:center}}
