/* 卓上ホッケー — 夜のゲームセンター、青と赤のネオン */
:root {
  --black: #07080d;
  --panel: #0e1220;
  --panel-2: #151b2e;
  --line: #2a3350;
  --blue: #2ee6ff;
  --blue-d: #0a8fb0;
  --red: #ff3b5c;
  --red-d: #b3173a;
  --gold: #ffe45c;
  --violet: #b78cff;
  --text: #eaf6ff;
  --text-2: #a9b6d0;
  --f-head: "Dela Gothic One", "M PLUS 1p", sans-serif;
  --f-num: "Chakra Petch", "M PLUS 1p", sans-serif;
  --f-ui: "M PLUS 1p", "Hiragino Sans", sans-serif;
  --glow-b: 0 0 6px rgba(46,230,255,.8), 0 0 18px rgba(46,230,255,.45);
  --glow-r: 0 0 6px rgba(255,59,92,.85), 0 0 18px rgba(255,59,92,.45);
  --snap: cubic-bezier(.2, .9, .25, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--black); color: var(--text); font-family: var(--f-ui); font-weight: 500; font-size: 15px; line-height: 1.65; line-break: strict; overflow: hidden; -webkit-font-smoothing: antialiased; }
@media (min-width: 600px) {
  body { background: #040509 radial-gradient(ellipse at 20% 30%, rgba(46,230,255,.08), transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(255,59,92,.08), transparent 50%); }
  .app { box-shadow: 0 0 0 1px rgba(46,230,255,.18), 0 0 60px rgba(46,230,255,.12); }
}
button, input, a { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex: none; }
.num { font-family: var(--f-num); font-weight: 700; font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.c-blue { color: var(--blue); } .c-red { color: var(--red); }
h1, h2, h3, .bar__title { font-feature-settings: "palt"; word-break: keep-all; overflow-wrap: normal; }
p { word-break: normal; }
.app { position: relative; width: 100%; max-width: 430px; height: 100vh; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--black); }

.screen { position: absolute; inset: 0; display: none; flex-direction: column; }
.screen.is-on { display: flex; animation: scrFade .2s var(--snap) both; }
.screen--settings.is-on, .screen--about.is-on, .screen--result.is-on { animation: scrUp .3s var(--snap) both; }
@keyframes scrFade { from { opacity: 0; } }
@keyframes scrUp { from { opacity: 0; transform: translateY(16px); } }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ===== ボタン ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 18px; border: 0; border-radius: 14px; font-family: var(--f-ui); font-weight: 800; font-size: 16px; line-height: 1.25; text-decoration: none; word-break: keep-all; transition: transform .1s var(--snap), box-shadow .15s; user-select: none; -webkit-user-select: none; }
.btn svg { width: 22px; height: 22px; }
.btn:active { transform: scale(.96); }
.btn--blue { background: var(--blue); color: #021018; box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 0 22px rgba(46,230,255,.45); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 0 22px rgba(255,59,92,.45); }
.btn--line { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:active { box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn--text { background: transparent; min-height: 44px; padding: 8px 10px; color: var(--text); text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.btn--l { width: 100%; min-height: 54px; font-size: 17px; }
.btn--sq { width: 54px; min-height: 54px; padding: 0; flex: none; }
.ibtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(14,18,32,.85); color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: transform .1s; }
.ibtn svg { width: 22px; height: 22px; }
.ibtn:active { transform: scale(.9); }

/* ===== スプラッシュ ===== */
.splash { position: absolute; inset: 0; z-index: 60; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--black); }
.splash img { width: 110px; height: 110px; border-radius: 26px; box-shadow: 0 0 40px rgba(46,230,255,.4); animation: flick .6s steps(6) both; }
.splash p { margin: 0; font-family: var(--f-head); font-size: 24px; color: var(--text); text-shadow: var(--glow-b); }
.app.is-splash .splash { display: flex; animation: fade .3s .65s forwards; }
@keyframes fade { to { opacity: 0; visibility: hidden; } }
@keyframes flick { 0% { opacity: 0; } 20% { opacity: 1; } 35% { opacity: .2; } 55% { opacity: 1; } 70% { opacity: .5; } 100% { opacity: 1; } }

/* ===== タイトル ===== */
.screen--title { background: var(--black) url(/app-development/apps/a026/img/title.webp) center bottom / cover no-repeat; }
.title__top { display: flex; justify-content: flex-end; padding: calc(var(--safe-t) + 12px) 14px 0; }
.title__logo { margin-top: 1vh; text-align: center; padding: 0 16px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 3px 12px; border-radius: 999px; background: var(--black); font-size: 13px; letter-spacing: .18em; color: var(--text-2); }
.kicker__sep { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.logo { margin: 0; font-family: var(--f-head); font-weight: 400; line-height: 1.05; display: flex; flex-direction: column; align-items: center; }
.logo__a { font-size: 64px; color: #e9fdff; text-shadow: 0 0 4px #fff, 0 0 12px var(--blue), 0 0 30px var(--blue), 0 0 54px rgba(46,230,255,.6); animation: neon 6s infinite; }
.logo__b { font-size: 52px; color: #ffe9ee; text-shadow: 0 0 4px #fff, 0 0 12px var(--red), 0 0 30px var(--red), 0 0 54px rgba(255,59,92,.6); animation: neon 7.3s 1.2s infinite; }
@keyframes neon { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .55; } }
.title__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 16px calc(var(--safe-b) + 16px); }
.mode { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 18px; border: 0; border-radius: 18px; text-align: left; background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .1s var(--snap); }
.mode:active { transform: scale(.97); }
.mode svg { position: relative; width: 34px; height: 34px; }
.mode__t { position: relative; display: flex; flex-direction: column; line-height: 1.3; }
.mode__t b { font-family: var(--f-head); font-weight: 400; font-size: 22px; }
.mode__t small { font-size: 13px; font-weight: 700; color: var(--text-2); }
.mode--pvp { box-shadow: inset 0 0 0 2px var(--blue), 0 0 24px rgba(46,230,255,.3); }
.mode__half { position: absolute; top: 0; bottom: 0; width: 6px; }
.mode__half--red { left: 0; background: var(--red); box-shadow: var(--glow-r); }
.mode__half--blue { right: 0; background: var(--blue); box-shadow: var(--glow-b); }
.mode--pvp svg { color: var(--blue); }
.mode--cpu svg { color: var(--red); }
.mode--cpu { box-shadow: inset 0 0 0 2px var(--red), 0 0 24px rgba(255,59,92,.28); }
.title__row { display: flex; gap: 10px; }
.title__row .btn { flex: 1; }

/* ===== 対戦 ===== */
.screen--match { background: #05070c; touch-action: none; user-select: none; -webkit-user-select: none; }
.table { position: absolute; left: 0; right: 0; top: var(--safe-t); bottom: var(--safe-b); width: 100%; height: calc(100% - var(--safe-t) - var(--safe-b)); display: block; touch-action: none; }
.score { position: absolute; right: 8px; top: 50%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 14px; background: #0b0f1a; box-shadow: inset 0 0 0 1px var(--line); transform: translateY(-50%); pointer-events: none; }
.score__n { display: block; width: 40px; text-align: center; font-size: 34px; line-height: 1; }
.score__n--top { color: var(--red); text-shadow: var(--glow-r); }
.app.is-flip .score__n--top { transform: rotate(180deg); }
.score__n--bot { color: var(--blue); text-shadow: var(--glow-b); }
.score__n.is-pop { animation: pop .5s var(--spring); }
@keyframes pop { 0% { transform: scale(1.8); } 100% { transform: scale(1); } }
.app.is-flip .score__n--top.is-pop { animation: poprot .5s var(--spring); }
@keyframes poprot { 0% { transform: rotate(180deg) scale(1.8); } 100% { transform: rotate(180deg) scale(1); } }
.score__line { width: 26px; height: 2px; background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.pausebtn { position: absolute; left: 8px; top: 50%; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #0b0f1a; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 14px rgba(183,140,255,.35); transform: translateY(-50%); }
.pausebtn svg { width: 22px; height: 22px; }
.pausebtn:active { transform: translateY(-50%) scale(.9); }
.tag { position: absolute; left: 18px; z-index: 2; display: flex; align-items: center; gap: 6px; margin: 0; padding: 3px 10px; border-radius: 999px; background: #0b0f1a; font-size: 13px; font-weight: 800; pointer-events: none; }
.tag--bot { bottom: calc(var(--safe-b) + 22px); }
.tag--top { top: calc(var(--safe-t) + 22px); right: 18px; left: auto; }
.app.is-flip .tag--top { transform: rotate(180deg); }
.tag__dot { width: 8px; height: 8px; border-radius: 50%; }
.tag__dot--red { background: var(--red); box-shadow: var(--glow-r); }
.tag__dot--blue { background: var(--blue); box-shadow: var(--glow-b); }
.msg { position: absolute; left: 0; right: 0; z-index: 4; margin: 0; text-align: center; pointer-events: none; opacity: 0; }
.msg--bot { top: 70%; }
.msg--top { top: 22%; }
.app.is-flip .msg--top { transform: rotate(180deg); }
.msg span { display: inline-block; padding: 4px 18px 6px; border-radius: 12px; background: #07080d; font-family: var(--f-head); font-size: 34px; line-height: 1.2; }
.msg.k-blue span { color: var(--blue); text-shadow: var(--glow-b); box-shadow: inset 0 0 0 2px var(--blue); }
.msg.k-red span { color: var(--red); text-shadow: var(--glow-r); box-shadow: inset 0 0 0 2px var(--red); }
.msg.k-gold span { color: var(--gold); text-shadow: 0 0 10px rgba(255,228,92,.7); box-shadow: inset 0 0 0 2px var(--gold); font-size: 26px; }
.msg.k-plain span { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.msg.k-big span { font-size: 64px; padding: 0 24px 4px; }
.msg.is-on { animation: msg .9s var(--snap) forwards; }
.msg.is-hold { opacity: 1; animation: none; }
@keyframes msg { 0% { opacity: 0; scale: 1.5; } 15% { opacity: 1; scale: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }

.demo { position: absolute; left: 0; right: 0; top: 54%; z-index: 5; display: none; flex-direction: column; align-items: center; gap: 10px; padding: 0 40px; }
.demo.is-on { display: flex; }
.demo__tag { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 14px; border-radius: 999px; background: #0b0f1a; box-shadow: inset 0 0 0 1px var(--line); font-weight: 800; font-size: 14px; }
.demo__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: var(--glow-r); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.demo__hint { margin: 0; padding: 4px 12px; border-radius: 8px; background: #0b0f1a; font-size: 14px; font-weight: 700; color: var(--text-2); text-align: center; word-break: keep-all; }

.modal { position: absolute; inset: 0; z-index: 9; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(4,5,10,.78); }
.modal.is-on { display: flex; }
.modal__card { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 12px; border-radius: 22px; background: var(--panel); text-align: center; box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 40px rgba(183,140,255,.25); animation: in .25s var(--spring); }
@keyframes in { from { transform: scale(.9); opacity: 0; } }
.modal__eyebrow { margin: 0; font-size: 13px; letter-spacing: .3em; color: var(--violet); }
.modal__title { margin: 0; font-family: var(--f-head); font-weight: 400; font-size: 28px; }
.modal__score { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 0 0 6px; font-size: 40px; line-height: 1; }
.modal__vs { color: var(--text-2); font-size: 26px; }
.modal__row { display: flex; justify-content: space-around; }

/* ===== 結果 ===== */
.bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; padding: calc(var(--safe-t) + 8px) 10px 8px; background: var(--black); box-shadow: 0 1px 0 var(--line); }
.bar__title { flex: 1; margin: 0; text-align: center; font-family: var(--f-head); font-weight: 400; font-size: 21px; line-height: 1.3; }
.bar__sp { width: 44px; }
.screen--result, .screen--settings, .screen--about { background: var(--black); }
.result__scroll { padding-bottom: calc(var(--safe-b) + 100px); }
.rhead { position: relative; padding: 26px 16px 22px; text-align: center; background: linear-gradient(180deg, rgba(7,8,13,.15), var(--black) 96%), url(/app-development/apps/a026/img/win.webp) center / cover no-repeat; }
.rhead__eye { display: inline-block; margin: 0; padding: 2px 12px; border-radius: 999px; background: var(--black); font-size: 13px; font-weight: 800; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.rhead__title { margin: 8px 0 2px; font-family: var(--f-head); font-weight: 400; font-size: 38px; line-height: 1.2; }
.rhead__title span { display: inline-block; padding: 0 14px 4px; border-radius: 12px; background: var(--black); }
.rhead.is-blue .rhead__title { color: var(--blue); text-shadow: var(--glow-b); }
.rhead.is-red .rhead__title { color: var(--red); text-shadow: var(--glow-r); }
.rhead__vs { display: inline-block; margin: 0 0 8px; padding: 1px 10px; border-radius: 8px; background: var(--black); font-size: 14px; font-weight: 700; color: var(--text-2); }
.rscore { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0; }
.rscore__n { font-size: 76px; line-height: 1; padding: 0 8px; border-radius: 12px; background: var(--black); }
.rscore__n.c-blue { text-shadow: var(--glow-b); } .rscore__n.c-red { text-shadow: var(--glow-r); }
.rscore__dash { font-size: 34px; color: var(--text-2); }
.rscore__k { display: flex; justify-content: center; gap: 70px; margin: 4px 0 0; font-weight: 800; font-size: 14px; }
.rscore__k span { padding: 0 8px; border-radius: 6px; background: var(--black); }
.rstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 14px 0; }
.rstats div { padding: 10px 12px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.rstats dt { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.rstats dt svg { color: var(--gold); }
.rstats dd { margin: 0; white-space: nowrap; }
.rstats dd b { font-size: 30px; line-height: 1.2; }
.unit { font-size: 13px; font-weight: 700; color: var(--text-2); margin-left: 3px; }
.goals { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin: 14px 14px 0; padding: 10px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.goals i { width: 14px; height: 14px; border-radius: 50%; }
.goals i.b { background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.goals i.r { background: var(--red); box-shadow: 0 0 6px var(--red); }
.sec-h { margin: 22px 16px 10px; font-family: var(--f-head); font-weight: 400; font-size: 19px; }
.cpurec { list-style: none; margin: 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cpurec li { padding: 8px 6px 10px; border-radius: 14px; background: var(--panel); text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.cpurec img { width: 60px; height: 60px; margin: 0 auto 4px; border-radius: 12px; }
.cpurec__name { margin: 0; font-weight: 800; font-size: 14px; }
.cpurec__wl { margin: 0; font-size: 13px; color: var(--text-2); font-weight: 700; white-space: nowrap; }
.cpurec__wl b { font-size: 18px; color: var(--text); }
.hist { list-style: none; margin: 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.hist__bar { width: 5px; align-self: stretch; border-radius: 3px; }
.hist__bar.b { background: var(--blue); box-shadow: 0 0 6px var(--blue); } .hist__bar.r { background: var(--red); box-shadow: 0 0 6px var(--red); }
.hist__main { flex: 1; min-width: 0; }
.hist__t { margin: 0; font-weight: 800; font-size: 15px; }
.hist__m { margin: 0; font-size: 13px; color: var(--text-2); font-weight: 700; }
.hist__s { font-size: 22px; white-space: nowrap; }
.empty { padding: 16px; border-radius: 14px; background: var(--panel); color: var(--text-2); text-align: center; font-weight: 700; }
.result__acts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 12px 14px calc(var(--safe-b) + 12px); background: linear-gradient(180deg, rgba(7,8,13,0), var(--black) 35%); }
.result__acts .btn--l { flex: 1; width: auto; }

/* ===== 設定 ===== */
.settings__scroll, .about__scroll { padding: 6px 16px calc(var(--safe-b) + 28px); }
.settings__scroll .sec-h, .about__scroll .sec-h { margin-left: 2px; }
.howto { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.howto li { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.howto__no { flex: none; font-size: 22px; line-height: 1.2; color: var(--blue); text-shadow: var(--glow-b); }
.howto li:nth-child(2) .howto__no { color: var(--gold); text-shadow: 0 0 8px rgba(255,228,92,.6); }
.howto li:nth-child(3) .howto__no { color: var(--red); text-shadow: var(--glow-r); }
.howto__h { margin: 0 0 4px; font-size: 17px; font-weight: 800; line-height: 1.4; }
.howto p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text-2); }
.cpus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cpucard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px; background: var(--panel); text-align: left; box-shadow: inset 0 0 0 1px var(--line); transition: transform .1s; }
button.cpucard:active { transform: scale(.98); }
.cpucard img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.cpucard__main { flex: 1; min-width: 0; }
.cpucard__name { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-family: var(--f-head); font-weight: 400; font-size: 20px; line-height: 1.3; }
.cpucard__lv { font-family: var(--f-ui); font-weight: 800; font-size: 13px; color: var(--text-2); }
.cpucard__note { display: block; margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 14px; height: 6px; border-radius: 2px; background: var(--line); }
.pips i.on { background: var(--gold); box-shadow: 0 0 6px rgba(255,228,92,.6); }
.cpucard__wl { display: block; margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--text-2); }
.cpucard__go { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--red); color: #fff; box-shadow: var(--glow-r); }
.cpucard__go svg { width: 22px; height: 22px; }
.group { margin-top: 10px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 14px; border: 0; background: transparent; text-align: left; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--text); }
.row + .row { border-top: 1px solid var(--line); }
.row__label { flex: 1; word-break: keep-all; }
.row svg { width: 22px; height: 22px; color: var(--text-2); }
.row--danger, .row--danger svg { color: #ff8da1; }
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 30px; margin: 0; border-radius: 999px; background: #2a3350; flex: none; cursor: pointer; transition: background .2s, box-shadow .2s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.switch:checked { background: var(--blue-d); box-shadow: 0 0 12px rgba(46,230,255,.5); }
.switch:checked::after { transform: translateX(22px); }
.switch:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.about__head { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.about__head img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 0 24px rgba(46,230,255,.3); }
.about__name { margin: 0; font-family: var(--f-head); font-size: 24px; }
.about__ver { margin: 0; color: var(--text-2); font-size: 14px; }
.about__note { margin: 0; padding: 14px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.8; }
.tech { margin: 0; padding: 12px 14px 12px 32px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.85; }
.about__cta { margin-top: 20px; }

/* シート・確認・トースト */
.sheet-bg { position: absolute; inset: 0; z-index: 20; background: rgba(4,5,10,.7); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.sheet-bg.is-on { opacity: 1; visibility: visible; transition: opacity .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; display: flex; flex-direction: column; gap: 8px; padding: 8px 14px calc(var(--safe-b) + 16px); border-radius: 22px 22px 0 0; background: var(--panel); box-shadow: 0 -1px 0 var(--red), 0 -10px 40px rgba(255,59,92,.18); transform: translateY(105%); visibility: hidden; transition: transform .3s var(--snap), visibility 0s .3s; }
.sheet.is-on { transform: none; visibility: visible; transition: transform .3s var(--snap); }
.sheet__grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet__title { margin: 4px 0; text-align: center; font-family: var(--f-head); font-weight: 400; font-size: 22px; }
.cpupick { display: flex; flex-direction: column; gap: 8px; }
.cpupick .cpucard { background: var(--panel-2); }
.confirm { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 12px); z-index: 31; display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 14px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--red); transform: translateY(130%); visibility: hidden; transition: transform .3s var(--snap), visibility 0s .3s; }
.confirm.is-on { transform: none; visibility: visible; transition: transform .3s var(--snap); }
.confirm__title { margin: 0; font-size: 19px; font-weight: 800; text-align: center; }
.confirm__text { margin: 0 0 6px; font-size: 14px; line-height: 1.7; color: var(--text-2); text-align: center; }
.toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 60px); z-index: 40; margin: 0; max-width: 86%; padding: 9px 16px; border-radius: 12px; background: var(--panel-2); color: var(--text); font-weight: 800; font-size: 14px; text-align: center; box-shadow: inset 0 0 0 1px var(--blue); transform: translate(-50%, -10px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--spring); word-break: keep-all; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.nojs, .boot-error { position: absolute; inset: 40% 20px auto; z-index: 70; padding: 16px; border-radius: 14px; background: var(--panel); text-align: center; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .msg.is-on { animation: none; opacity: 1; }
}
@media (max-height: 700px) {
  .logo__a { font-size: 52px; } .logo__b { font-size: 42px; }
  .mode { min-height: 66px; }
}
