/* NOMAE Arcade UI. Flat colour, real type, hard edges, motion. No gradients, glows or blur. */
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; src: url(../fonts/barlow-condensed-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; src: url(../fonts/barlow-condensed-latin-800-italic.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 900; src: url(../fonts/barlow-condensed-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; src: url(../fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; src: url(../fonts/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; src: url(../fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; src: url(../fonts/jetbrains-mono-latin-600-normal.woff2) format('woff2'); }

:root {
  --ink: #f4f1ea; --dim: #8d8a84; --faint: #4a4844; --line: rgba(244,241,234,.16); --panel: rgba(12,12,14,.92); --black: #08080a;
  --slice: #3df2ff; --strike: #ffb02e; --sky: #ff4f8b; --ok: #4ade80; --bad: #ff4d4d;
  --acc: var(--ink);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif; --body: 'Barlow', -apple-system, sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --notch: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--ink); overflow: hidden; font-family: var(--body); -webkit-font-smoothing: antialiased; user-select: none; }
#stage canvas { display: block; position: fixed; inset: 0; }
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud .interactive, #hud button, #hud .dwell, #hud .modal { pointer-events: auto; }
.label { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.06); } 100% { transform: scale(1); } }

/* status + keys */
.pill { position: fixed; top: 16px; right: 16px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 10px;
  font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--panel); border: 1px solid var(--line); }
.pill .dot { width: 8px; height: 8px; background: var(--bad); }
.pill.live .dot { background: var(--ok); animation: blink 1.4s steps(2) infinite; }
.pill.mouse .dot { background: var(--strike); }
@keyframes blink { 50% { opacity: .35; } }
#keys { position: fixed; bottom: 12px; right: 16px; z-index: 20; font: 10px var(--mono); letter-spacing: .06em; color: var(--faint); text-transform: uppercase; }
#keys b { color: var(--dim); font-weight: 600; }

/* pointer */
#cursor { position: fixed; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; pointer-events: none; z-index: 50; display: none; mix-blend-mode: difference; }
#cursor svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
#cursor .ring { fill: none; stroke: #fff; stroke-width: 2.5; opacity: .8; }
#cursor .prog { fill: none; stroke: #fff; stroke-width: 7; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; }
#cursor .core { fill: #fff; }

/* screen transitions: a hard diagonal wipe in the next game's colour */
#fade { position: fixed; inset: -10% -30%; z-index: 40; pointer-events: none; background: var(--wipe, #000); transform: translateX(0) skewX(-14deg); transition: transform .42s cubic-bezier(.7,0,.3,1); }
#fade.clear { transform: translateX(130%) skewX(-14deg); }
#fade.enter { transition: none; transform: translateX(-130%) skewX(-14deg); }

/* title gate */
#gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; cursor: pointer; background: var(--black); transition: opacity .35s; }
#gate.gone { opacity: 0; pointer-events: none; }
.wordmark { font: 900 clamp(64px, 11vw, 168px)/.82 var(--display); letter-spacing: -.01em; text-transform: uppercase; text-align: center; }
.wordmark span { display: block; font-weight: 500; font-size: .32em; letter-spacing: .5em; margin: .35em -.5em 0 0; color: var(--dim); }
.gate-go { margin-top: 40px; text-align: center; }

/* buttons */
.btn { position: relative; overflow: hidden; padding: 10px 16px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color .12s, color .12s; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--acc); transform-origin: left; transform: scaleX(var(--dwell, 0)); transition: transform .06s linear; z-index: 0; }
.btn > * , .btn { z-index: 1; }
.btn span, .btn small, .btn b { position: relative; z-index: 1; }
.btn:hover, .btn.hover { border-color: var(--acc); }
.btn.primary { background: var(--acc); color: #000; border-color: var(--acc); }
.btn.primary::before { background: #000; opacity: .25; }

/* panels */
.modal { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4,4,6,.62); }
.card { background: var(--panel); border: 1px solid var(--line); clip-path: var(--notch); animation: rise .28s cubic-bezier(.2,.8,.2,1) both; }

/* ------------------------------------------------------------------ hub */
.hub-top { position: absolute; top: 18px; left: 22px; display: flex; align-items: baseline; gap: 18px; }
.hub-top .wm { font: 900 30px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.hub-top .wm span { color: var(--dim); font-weight: 500; margin-left: 8px; letter-spacing: .3em; font-size: 14px; }
.hub-actions { position: absolute; top: 60px; left: 22px; display: flex; gap: 8px; }
.hub-info { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); width: min(760px, 86vw); text-align: center; }
.hub-info .kicker { font: 600 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.hub-info h1 { margin: 6px 0 6px; font: 900 clamp(64px, 9vw, 132px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.hub-info p { margin: 0 auto; max-width: 560px; font-size: 16px; line-height: 1.5; color: #c9c6bf; }
.hub-info .row { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.hub-info .best { font: 500 11px var(--mono); color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-top: 12px; }
.hub-info.swap h1, .hub-info.swap p, .hub-info.swap .kicker { animation: rise .3s cubic-bezier(.2,.8,.2,1) both; }
.hub-nav { position: absolute; top: 34%; height: 30vh; width: 12vw; display: grid; place-items: center; font: 800 64px var(--display); color: var(--faint); cursor: pointer; }
.hub-nav.prev { left: 2vw; } .hub-nav.next { right: 2vw; }
.hub-nav::before { content: ''; position: absolute; left: 30%; right: 30%; bottom: 0; height: 3px; background: var(--ink); transform-origin: left; transform: scaleX(var(--dwell, 0)); }
.hub-nav.hover { color: var(--ink); }
.hub-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.hub-dots i { width: 26px; height: 3px; background: var(--faint); }
.hub-dots i.on { background: var(--acc); }
.telemetry { position: absolute; left: 22px; bottom: 22px; width: 240px; }
.telemetry canvas { display: block; width: 240px; height: 54px; border-bottom: 1px solid var(--line); }
.telemetry .label { margin-top: 6px; white-space: pre; line-height: 1.6; }

/* ------------------------------------------------------------------ calibration */
.cal-card { width: min(620px, 92vw); background: var(--panel); border: 1px solid var(--line); clip-path: var(--notch); animation: rise .28s cubic-bezier(.2,.8,.2,1) both; }
.cal.low { place-items: end center; background: transparent; }
.cal.low .cal-card { margin-bottom: 5vh; }
.cal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cal-pips { display: flex; gap: 14px; }
.cal-pips i { font: 500 10.5px var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.cal-pips i b { width: 8px; height: 8px; border: 1px solid currentColor; }
.cal-pips i.on { color: var(--ink); } .cal-pips i.on b { background: var(--ink); }
.cal-pips i.done { color: var(--ok); } .cal-pips i.done b { background: var(--ok); border-color: var(--ok); }
.cal-body { padding: 24px 22px 18px; }
.cal-title { margin: 0; font: 800 44px/.95 var(--display); text-transform: uppercase; }
.cal-text { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: #c9c6bf; max-width: 520px; }
.cal-visual { margin-top: 18px; }
.cal-visual:empty { display: none; }
.cal-readout b { font: 800 italic 56px/1 var(--display); font-variant-numeric: tabular-nums; }
.cal-readout span { font: 500 11px var(--mono); color: var(--dim); margin-left: 8px; text-transform: uppercase; }
.cal-faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.face { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); font: 600 14px var(--body); color: var(--dim); transition: background .15s, color .15s, border-color .15s; }
.face.now { border-color: var(--ink); color: var(--ink); }
.face.done { background: var(--ok); border-color: var(--ok); color: #000; }
.glyph { position: relative; width: 34px; height: 22px; flex: none; }
.glyph::before { content: ''; position: absolute; background: currentColor; border-radius: 3px; }
.glyph::after { content: ''; position: absolute; background: var(--black); }
.g-upp::before, .g-upm::before { left: 2px; right: 2px; top: 8px; height: 8px; } .g-upp::after { left: 12px; right: 12px; top: 9px; height: 2px; } .g-upm::after { left: 12px; right: 12px; top: 13px; height: 2px; }
.g-rightp::before, .g-rightm::before { left: 2px; right: 2px; top: 6px; height: 12px; } .g-rightp::after { left: 6px; width: 3px; top: 10px; height: 4px; } .g-rightm::after { right: 6px; width: 3px; top: 10px; height: 4px; }
.g-fwdp::before, .g-fwdm::before { left: 13px; width: 8px; top: 0; bottom: 0; } .g-fwdp::after { left: 15px; width: 4px; top: 2px; height: 2px; } .g-fwdm::after { left: 15px; width: 4px; bottom: 2px; height: 2px; }
.cal-pose .glyph { width: 60px; height: 60px; color: var(--ink); }
.g-grip0::before { left: 0; right: 0; top: 24px; height: 12px; } .g-grip1::before { left: 24px; width: 12px; top: 0; bottom: 0; }
.cal-detail { margin-top: 10px; min-height: 14px; }
.cal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.meter { height: 4px; margin-top: 18px; background: rgba(244,241,234,.1); }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .08s linear; }
.cal-dot { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; z-index: 30; animation: pop .35s both; }
.cal-dot::before { content: ''; position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 50%; }
.cal-dot::after { content: ''; position: absolute; inset: calc(50% - 5px); background: var(--ink); border-radius: 50%; transform: scale(calc(1 + var(--p, 0) * 5.4)); opacity: calc(1 - var(--p, 0) * .6); }

/* ------------------------------------------------------------------ in-game HUD */
.hud-top { position: absolute; top: 16px; left: 22px; display: flex; gap: 34px; }
.stat b { display: block; font: 800 italic 40px/.9 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.stat small { font: 500 10px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.stat.acc b { color: var(--acc); }
.callout { position: absolute; left: 0; right: 0; top: 84px; text-align: center; font: 800 italic 34px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--c, var(--ink)); opacity: 0; }
.callout.show { animation: pop .3s cubic-bezier(.2,.8,.2,1) both; }
.chase { position: absolute; left: 0; right: 0; bottom: 74px; display: flex; justify-content: center; align-items: center; gap: 10px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bad); opacity: 0; transition: opacity .25s; }
.chase.on { opacity: 1; }
.chase i { width: 10px; height: 10px; background: var(--bad); animation: blink .5s steps(2) infinite; }
.hint { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); transition: opacity .4s; }
.toast { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); padding: 9px 14px; background: var(--ink); color: #000; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; animation: rise .25s both; }
.bar { position: absolute; left: 22px; top: 76px; width: 220px; height: 6px; background: rgba(244,241,234,.12); }
.bar i { display: block; height: 100%; background: var(--ink); transition: width .15s; }
.bar.low i { background: var(--bad); animation: blink .5s steps(2) infinite; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(244,241,234,.08); }
.progress i { display: block; height: 100%; background: var(--acc); }

/* bowling */
.scorecard { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; background: var(--panel); border: 1px solid var(--line); }
.scorecard .f { width: 52px; border-right: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
.scorecard .f:last-child { width: 74px; border-right: 0; }
.scorecard .f.cur { background: var(--strike); color: #000; }
.scorecard .f.cur .h, .scorecard .f.cur .r span { color: #000; border-color: rgba(0,0,0,.2); }
.scorecard .h { font: 500 10px var(--mono); color: var(--dim); padding: 4px 0; border-bottom: 1px solid var(--line); }
.scorecard .r { display: flex; justify-content: flex-end; font: 600 13px var(--body); height: 21px; }
.scorecard .r span { width: 18px; border-left: 1px solid var(--line); line-height: 21px; }
.scorecard .t { font: 800 20px/26px var(--display); height: 26px; }
.power { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: 8px; height: 38vh; background: rgba(244,241,234,.1); }
.power i { position: absolute; bottom: 0; left: 0; right: 0; background: var(--strike); }
.power::after { content: 'POWER'; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); font: 500 10px var(--mono); color: var(--dim); letter-spacing: .1em; }

/* results */
.results { width: min(640px, 92vw); padding: 0; }
.results .top { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.results .rank { width: 170px; display: grid; place-items: center; font: 900 120px/1 var(--display); background: var(--acc); color: #000; animation: pop .45s .15s cubic-bezier(.2,.8,.2,1) both; }
.results .rank.small { font-size: 54px; }
.results .main { padding: 22px 24px; flex: 1; }
.results h2 { margin: 0; font: 800 34px/1 var(--display); text-transform: uppercase; }
.results .score { font: 800 italic 64px/1 var(--display); font-variant-numeric: tabular-nums; margin-top: 8px; }
.results .newbest { display: inline-block; margin-left: 10px; padding: 3px 7px; font: 600 10px var(--mono); background: var(--ink); color: #000; letter-spacing: .08em; vertical-align: middle; animation: pop .4s .8s both; }
.results .stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.results .stats div { padding: 14px 20px; border-right: 1px solid var(--line); }
.results .stats div:last-child { border-right: 0; }
.results .stats b { display: block; font: 800 28px/1 var(--display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.results .row { display: flex; gap: 8px; padding: 14px 20px; justify-content: flex-end; }

/* song + difficulty picker */
.picker-card { width: min(720px, 92vw); }
.picker-card .head { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.picker-card .head h2 { margin: 0; font: 900 52px/.9 var(--display); text-transform: uppercase; }
.picker-card .sect { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.picker-card .opts { display: grid; gap: 6px; margin-top: 8px; }
.picker-card .opts.four { grid-template-columns: repeat(4, 1fr); }
.picker-card .opts.two { grid-template-columns: 1fr 1fr; }
.opt { text-align: left; padding: 12px 12px 11px; }
.opt b { display: block; font: 800 24px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.opt small { display: block; margin-top: 5px; font: 400 10.5px/1.35 var(--mono); color: var(--dim); text-transform: none; letter-spacing: 0; }
.opt.sel { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.opt.sel b { color: var(--acc); }
.picker-card .status { padding: 0 22px; font: 500 11px var(--mono); color: var(--dim); min-height: 0; }
.picker-card .status:not(:empty) { padding: 12px 22px; border-bottom: 1px solid var(--line); }
.picker-card .foot { display: flex; justify-content: space-between; gap: 8px; padding: 14px 22px; }
.picker-card .foot .btn.primary { padding: 14px 26px; font-size: 13px; }

/* tennis */
.tscore { position: absolute; top: 16px; left: 22px; background: var(--panel); border: 1px solid var(--line); min-width: 240px; }
.trow { display: grid; grid-template-columns: 1fr 14px 44px 56px; align-items: center; height: 40px; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow .nm { padding-left: 14px; font: 800 22px var(--display); text-transform: uppercase; }
.trow .sv { width: 8px; height: 8px; border-radius: 50%; }
.trow .sv.on { background: #d8f03a; }
.trow b { text-align: center; font: 800 26px var(--display); font-variant-numeric: tabular-nums; height: 100%; line-height: 40px; }
.trow .g { color: var(--dim); border-left: 1px solid var(--line); }
.trow .p { background: var(--ink); color: #000; }
.trow.you .p { background: #3df2ff; } .trow.cpu .p { background: #ff4f8b; }

/* ---------------------------------------------------------------- aether showcase */
.aether { position: absolute; inset: 0; --mc: #3df2ff; }
.ae-top { position: absolute; top: 18px; left: 24px; max-width: 420px; }
.ae-title { font: 800 italic 64px/.85 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.ae-sub { margin-top: 8px; }
.ae-sub .hz { color: var(--mc); }
.ae-mode { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.ae-mode .n { font: 600 12px var(--mono); color: var(--mc); }
.ae-mode h3 { margin: 0; font: 800 34px/1 var(--display); text-transform: uppercase; }
.ae-mode .tag { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); background: color-mix(in srgb, var(--mc) 30%, transparent); padding: 3px 7px; }
.ae-text { margin: 10px 0 0; font: 400 15px/1.45 var(--body); color: #c9c6bf; }
.ae-lab { position: absolute; top: 64px; right: 22px; width: 352px; padding: 14px 16px 12px; background: var(--panel); border: 1px solid var(--line); clip-path: var(--notch); }
.ae-h { display: flex; justify-content: space-between; margin: 2px 0 8px; }
.ae-h + canvas { display: block; }
.ae-legend { display: flex; justify-content: space-between; margin: 6px 0 14px; }
.ae-legend i { display: inline-block; width: 8px; height: 8px; margin: 0 4px 0 6px; }
.ae-legend i:first-child { margin-left: 0; }
.tapled { padding: 1px 6px; border: 1px solid var(--line); }
.tapled.hit { animation: tapflash .5s ease-out; }
@keyframes tapflash { 0% { background: var(--mc); color: #000; } 100% { background: transparent; } }
.tremor { color: var(--mc); }
.ae-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.ae-grid b { display: block; font: 800 italic 26px/.95 var(--display); font-variant-numeric: tabular-nums; }
.ae-grid small { font: 500 9.5px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.ae-q { margin-top: 10px; white-space: pre; font-variant-numeric: tabular-nums; }
.ae-tabs { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); display: flex; gap: 6px; }
.ae-tab { position: relative; width: 150px; padding: 10px 12px 9px; text-align: left; background: var(--panel); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; }
.ae-tab::before { content: ''; position: absolute; inset: 0; background: var(--mc); transform: scaleX(var(--dwell, 0)); transform-origin: left; opacity: .25; }
.ae-tab b { font: 600 11px var(--mono); color: var(--dim); }
.ae-tab span { display: block; font: 800 22px/1 var(--display); text-transform: uppercase; margin-top: 3px; }
.ae-tab small { font: 500 9.5px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.ae-tab.on { border-color: var(--mc); box-shadow: inset 0 -3px 0 var(--mc); }
.ae-tab.on b { color: var(--mc); }
.ae-hint { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; }

/* ---------------------------------------------------------------- Wii-style theme (sports games) */
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito.ttf') format('truetype'); font-weight: 200 1000; font-display: block; }
.wii { --acc: #2bb3ea; --wii: #2bb3ea; --wink: #4a4c55; --wdim: #8a94a0; --wline: #dfe5ec; --round: 'Nunito', 'Arial Rounded MT Bold', system-ui, sans-serif; }
.wii #hud { font-family: var(--round); }
.wii .label { font: 800 12px/1.35 var(--round); letter-spacing: .02em; text-transform: none; color: var(--wdim); }
.wii .modal { background: rgba(30, 60, 90, .28); }
.wii .card { background: #fff; color: var(--wink); border: 0; border-radius: 26px; clip-path: none; box-shadow: 0 0 0 4px #e6edf3, 0 10px 0 rgba(20, 40, 60, .14); }
.wii .btn { border: 3px solid var(--wline); border-radius: 999px; background: #fff; color: var(--wink); font: 900 16px/1 var(--round); letter-spacing: .01em; text-transform: none; padding: 12px 22px; }
.wii .btn::before { background: var(--wii); opacity: .22; }
.wii .btn:hover, .wii .btn.hover { border-color: var(--wii); }
.wii .btn.primary { background: var(--wii); border-color: var(--wii); color: #fff; box-shadow: 0 4px 0 #1b8cbc; }
.wii .btn.primary::before { background: #fff; opacity: .3; }
.wii .picker-card .head, .wii .picker-card .sect, .wii .results .top, .wii .results .stats, .wii .results .stats div { border-color: var(--wline); }
.wii .picker-card .head h2 { font: 900 46px/1 var(--round); text-transform: none; color: var(--wink); }
.wii .opt { border-radius: 18px; padding: 14px 16px; }
.wii .opt b { font: 900 22px/1 var(--round); text-transform: none; color: var(--wink); }
.wii .opt small { font: 700 12px/1.35 var(--round); color: var(--wdim); }
.wii .opt.sel { border-color: var(--wii); background: #e9f7fd; box-shadow: none; }
.wii .opt.sel b { color: #1b8cbc; }
.wii .picker-card .foot .btn.primary { padding: 15px 30px; font-size: 18px; }
.wii .results { overflow: hidden; }
.wii .results .rank { background: var(--wii); color: #fff; font: 900 96px/1 var(--round); }
.wii .results .rank.small { font-size: 50px; }
.wii .results h2 { font: 900 34px/1 var(--round); text-transform: none; }
.wii .results .score { font: 900 64px/1 var(--round); color: var(--wink); }
.wii .results .newbest { background: #ffcf2e; color: #5a4300; font: 900 12px var(--round); border-radius: 999px; padding: 4px 10px; }
.wii .results .stats b { font: 900 28px/1 var(--round); color: var(--wink); }
.wii .callout { top: 110px; font: 900 76px/1 var(--round); text-transform: none; letter-spacing: -.01em; color: var(--c, var(--wii)); -webkit-text-stroke: 10px #fff; paint-order: stroke fill; text-shadow: 0 6px 0 rgba(20, 40, 60, .2); }
.wii .hint { width: fit-content; margin: 0 auto; padding: 9px 20px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--wink); font: 800 15px var(--round); letter-spacing: 0; text-transform: none; box-shadow: 0 4px 0 rgba(20, 40, 60, .14); }
.wii .hint:empty { display: none; }
.wii .power { width: 16px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 3px #fff, 0 4px 0 rgba(20, 40, 60, .14); overflow: hidden; }
.wii .power i { background: var(--wii); border-radius: 999px; }
.wii .power::after { content: 'Power'; font: 900 13px var(--round); color: #fff; letter-spacing: 0; -webkit-text-stroke: 4px var(--wink); paint-order: stroke fill; }
.wii #status { background: rgba(255, 255, 255, .92); color: var(--wink); border-color: transparent; border-radius: 999px; font-family: var(--round); font-weight: 800; }
.wii #keys { color: rgba(40, 60, 80, .55); }
.wii #keys b { color: rgba(40, 60, 80, .85); }
/* tennis scoreboard */
.wii .tscore { background: #fff; border: 0; border-radius: 18px; overflow: hidden; min-width: 250px; box-shadow: 0 0 0 4px #e6edf3, 0 8px 0 rgba(20, 40, 60, .14); }
.wii .trow { grid-template-columns: 1fr 16px 46px 62px; height: 46px; border-color: var(--wline); }
.wii .trow .nm { font: 900 22px var(--round); text-transform: none; color: var(--wink); padding-left: 16px; }
.wii .trow.you .nm::before, .wii .trow.cpu .nm::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 9px; background: #2f8cff; vertical-align: 1px; }
.wii .trow.cpu .nm::before { background: #ff4a4a; }
.wii .trow .sv.on { background: #c7e000; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #b5c900; }
.wii .trow b { font: 900 26px var(--round); line-height: 46px; }
.wii .trow .g { color: var(--wdim); border-color: var(--wline); }
.wii .trow .p { background: var(--wii); color: #fff; }
.wii .trow.cpu .p { background: #ff6a5a; }
/* bowling scorecard */
.wii .scorecard { background: #fff; border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 4px #e6edf3, 0 8px 0 rgba(20, 40, 60, .14); color: var(--wink); }
.wii .scorecard .f { border-color: var(--wline); width: 56px; }
.wii .scorecard .f:last-child { width: 80px; }
.wii .scorecard .h { font: 900 12px var(--round); color: #fff; background: var(--wii); border-color: #1b9dd4; }
.wii .scorecard .f.cur { background: #fff6cc; color: var(--wink); }
.wii .scorecard .f.cur .h { background: #ffb400; color: #fff; }
.wii .scorecard .f.cur .r span { color: var(--wink); border-color: var(--wline); }
.wii .scorecard .r { font: 900 15px var(--round); }
.wii .scorecard .r span { border-color: var(--wline); }
.wii .scorecard .t { font: 900 22px/28px var(--round); height: 28px; }
