/* =========================================================
   PARTY 2 — night-mode party games
   ========================================================= */
:root {
  --bg: #0b0911;
  --surface: #17121f;
  --surface-2: #211a2c;
  --surface-3: #2a2238;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);

  --text: #f5f0fa;
  --text-2: #b8aec7;
  --text-3: #7c7290;

  --grad-hot: linear-gradient(115deg, #ff4d8d 0%, #ff6b5e 52%, #ff9a3d 100%);
  --grad-cool: linear-gradient(125deg, #a291ff 0%, #6a57f0 55%, #4a3cc4 100%);

  --c-mild: #7d68ff;
  --c-love: #ff4d8d;
  --c-spicy: #ff7a35;

  /* ゲームごとのアクセント(各画面で上書き) */
  --ga: #ff4d8d;
  --gb: #ff9a3d;
  --ga-soft: rgba(255, 77, 141, .15);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Meiryo", system-ui, -apple-system, sans-serif;
  --display: "Avenir Next", "Helvetica Neue", "Segoe UI", Roboto, var(--font);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, .9, .25, 1.05);

  color-scheme: dark;
}
/* --grad-game は --ga/--gb を使う要素ごとに計算し直す */
body, .game-tod, .game-hl, .game-sw, .game-wyr, .game-mix, .card { --grad-game: linear-gradient(115deg, var(--ga), var(--gb)); }
.game-tod { --ga: #ff4d8d; --gb: #ff9a3d; --ga-soft: rgba(255, 77, 141, .16); }
.game-hl  { --ga: #35d49a; --gb: #c6f36b; --ga-soft: rgba(53, 212, 154, .15); }
.game-sw  { --ga: #3fc4ff; --gb: #8f7bff; --ga-soft: rgba(63, 196, 255, .15); }
.game-wyr { --ga: #ffc53d; --gb: #ff7a59; --ga-soft: rgba(255, 197, 61, .15); }
.game-mix { --ga: #c38bff; --gb: #ff5c97; --ga-soft: rgba(195, 139, 255, .15); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button {
  margin: 0; padding: 0; border: 0; background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ic { width: 20px; height: 20px; flex: none; }

.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(60% 38% at 8% -4%, rgba(125, 104, 255, .2), transparent 70%),
    radial-gradient(50% 32% at 104% 6%, rgba(255, 77, 141, .15), transparent 70%),
    radial-gradient(70% 40% at 50% 112%, rgba(255, 122, 53, .1), transparent 70%);
}
.hero-orb {
  position: absolute; left: 50%; top: -90px; margin-left: 40px;
  opacity: 0; transition: opacity .8s;
  width: 300px; height: 300px; border-radius: 50%;
  background: conic-gradient(from 0deg, #7d68ff, #ff4d8d, #ff8f3d, #35d49a, #3fc4ff, #7d68ff);
  filter: blur(60px);
  animation: orb 30s linear infinite;
}
body[data-route="/"] .hero-orb { opacity: .22; }
@keyframes orb { to { transform: rotate(360deg); } }

#app {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  overflow-x: clip;
}
.view { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.view > .screen { flex: 1; }

.screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: calc(14px + var(--safe-t)) calc(20px + var(--safe-r)) calc(22px + var(--safe-b)) calc(20px + var(--safe-l));
  animation: screen-in .42s var(--ease) both;
}
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } }

.kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font: 700 11px/1.2 var(--display);
  letter-spacing: .26em;
  color: var(--text-2);
}
.kicker::before {
  content: ""; width: 22px; height: 1.5px; border-radius: 2px; flex: none;
  background: var(--grad-game);
}

/* ---------- Buttons ---------- */
.btn-primary {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 3px 0;
  width: 100%; min-height: 58px; padding: 0 20px;
  border-radius: 18px;
  background: var(--grad-game);
  color: #170a12;
  font-weight: 900; font-size: 17px; letter-spacing: .03em;
  text-align: center;
  box-shadow: 0 16px 34px -18px var(--ga), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .14s var(--ease), opacity .2s, box-shadow .2s;
}
.btn-primary .ic { display: inline-block; vertical-align: -4px; margin-right: 6px; width: 19px; height: 19px; }
a.btn-primary .ic { margin: 0 0 0 6px; }
.btn-primary small { flex-basis: 100%; font: 700 11px/1 var(--display); letter-spacing: .14em; opacity: .7; }
.btn-primary:active:not(:disabled) { transform: scale(.975); }
.btn-primary:disabled { opacity: .4; box-shadow: none; }

.btn-ghost, .cta .btn-ghost-like {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 54px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-weight: 800; font-size: 15px;
  box-shadow: none;
  transition: transform .14s var(--ease), background .2s;
}
.btn-ghost:active { transform: scale(.975); background: rgba(255, 255, 255, .06); }

.btn-sub {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 52px; padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-2);
  font-weight: 800; font-size: 14.5px;
  transition: transform .14s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn-sub .ic { width: 17px; height: 17px; }
.btn-sub:active:not(:disabled) { transform: scale(.97); background: rgba(255, 255, 255, .08); }
.btn-sub:disabled { opacity: .4; }
.btn-sub.danger { color: #ff8a9e; }
.btn-sub.confirm { background: rgba(255, 77, 109, .16); border-color: rgba(255, 77, 109, .6); color: #ffd3dc; }
.btn-text {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 12px;
  font-size: 13.5px; font-weight: 700; color: var(--text-2);
}
.btn-text .ic { width: 17px; height: 17px; }

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 14px;
  color: var(--text-2);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  transition: transform .14s var(--ease), color .2s, opacity .2s;
}
.icon-btn .ic { width: 21px; height: 21px; }
.icon-btn:active:not(:disabled) { transform: scale(.93); }
.icon-btn:disabled { opacity: .35; }
.sound-btn .i-off { display: none; }
.sound-btn[aria-pressed="false"] .i-on { display: none; }
.sound-btn[aria-pressed="false"] .i-off { display: block; }

.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row .wide { grid-column: 1 / -1; }
.cta { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.fine {
  margin: 22px 0 0; text-align: center;
  font-size: 11.5px; line-height: 1.85; color: var(--text-3);
}

/* ---------- Topbar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 48px; }
.topbar-center { flex: 1; min-width: 0; display: flex; justify-content: center; }
.topbar-right { display: flex; gap: 6px; }
.tb-title { font: 800 11px/1 var(--display); letter-spacing: .28em; color: var(--text-3); padding-left: .28em; white-space: nowrap; }
.round { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.round span { font: 700 9.5px/1 var(--display); letter-spacing: .24em; color: var(--text-3); padding-left: .24em; white-space: nowrap; }
.round b { font: 800 21px/1 var(--display); font-variant-numeric: tabular-nums; }

/* =========================================================
   HOME
   ========================================================= */
.home-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.brand { display: inline-flex; align-items: flex-start; gap: 3px; font-family: var(--display); }
.brand-mark { font-weight: 900; font-size: 22px; letter-spacing: .08em; }
.brand em {
  font-style: normal; font-weight: 900; font-size: 13px; line-height: 1;
  margin-top: 1px; padding: 3px 5px; border-radius: 6px;
  background: var(--grad-hot); color: #1a0a12;
}
.party {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 10px 12px 10px 12px;
  border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .14s var(--ease);
}
.party:active { transform: scale(.985); }
.party-avas { display: flex; flex: none; padding-left: 8px; }
.party-avas .ava { width: 30px; height: 30px; margin-left: -8px; font-size: 12px; box-shadow: 0 0 0 2px var(--surface); }
.party-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.party-text b { font-size: 14px; font-weight: 800; }
.party-text small { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.party-edit { flex: none; font-size: 12px; font-weight: 800; color: var(--text-2); padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); }

.home-title { margin: 28px 0 16px; font: 900 clamp(30px, 9.4vw, 40px)/1.2 var(--font); letter-spacing: -.01em; }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.game-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-width: 0; min-height: 214px; padding: 14px 14px 12px;
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 100% 0%, var(--ga-soft), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  transition: transform .16s var(--ease), border-color .2s;
}
.game-card:active { transform: scale(.98); }
.game-card::after {
  content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 2px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--ga), transparent);
}
.gc-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.gc-art { width: 50px; height: 50px; margin-bottom: 12px; }
.gc-art svg { width: 100%; height: 100%; overflow: visible; }
.ga-1 { fill: var(--ga); }
.ga-2 { fill: var(--gb); }
.ga-3 { fill: var(--ga); opacity: .55; }
.ga-bg { fill: var(--surface); }
.ga-paper { fill: #f4efe6; }
.ga-stroke { fill: none; stroke: #0c2b20; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ga-wave { fill: none; stroke: var(--ga); stroke-width: 4.5; stroke-linecap: round; }
.ga-wave2 { fill: none; stroke: var(--gb); stroke-width: 4.5; stroke-linecap: round; opacity: .85; }
.ga-t { font: 900 17px/1 var(--display); fill: #2b1d00; text-anchor: middle; }
.ga-t2 { fill: #2b0f05; }
.gc-en { margin: 0; font: 800 9px/1.3 var(--display); letter-spacing: .18em; color: var(--ga); }
.gc-title { margin: 6px 0 0; font-size: 18px; font-weight: 900; line-height: 1.25; }
.gc-copy { margin: 7px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--text-3); word-break: auto-phrase; }
.gc-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gc-count, .gc-resume {
  font: 800 10.5px/1 var(--display); letter-spacing: .04em;
  padding: 6px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, .06); color: var(--text-2);
}
.gc-resume { background: var(--ga-soft); color: var(--ga); }
.gc-help {
  position: relative; z-index: 2;
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 32px; padding: 0 9px 0 7px;
  border-radius: 10px;
  font-size: 11px; font-weight: 800; color: var(--text-2);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.gc-help .ic { width: 15px; height: 15px; }

.mix-cta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px; padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(110deg, #ff4d8d, #35d49a 35%, #3fc4ff 65%, #ffc53d) border-box;
  border: 1.5px solid transparent;
  transition: transform .16s var(--ease);
}
.mix-cta:active { transform: scale(.985); }
.mix-icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 15px;
  background: conic-gradient(from 200deg, #ff4d8d, #35d49a, #3fc4ff, #ffc53d, #ff4d8d);
  color: #120b18;
}
.mix-icon .ic { width: 24px; height: 24px; stroke-width: 2.3; }
.mix-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mix-text small { font: 800 9.5px/1 var(--display); letter-spacing: .2em; color: var(--text-3); }
.mix-text b { font-size: 17px; font-weight: 900; }
.mix-text em { font-style: normal; font-size: 12px; color: var(--text-2); }
.mix-arrow { color: var(--text-2); }

.roulette-box {
  margin-top: 30px; padding: 20px 16px 16px;
  border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
}
.section-title { margin: 12px 0 14px; font-size: 19px; font-weight: 900; line-height: 1.4; }
.roulette-box .stage { padding: 30px 0 14px; }
.roulette-box .wheel { --size: min(70vw, 300px); }
.gr-result {
  display: flex; flex-direction: column; gap: 12px;
  margin: 4px 0 12px; padding: 14px;
  border-radius: 18px;
  background: var(--ga-soft); border: 1px solid var(--line-2);
  animation: rise .5s var(--ease) both;
}
.gr-result p { margin: 0; font-size: 15px; font-weight: 700; text-align: center; }
.gr-result small { display: block; font: 800 10px/1 var(--display); letter-spacing: .22em; color: var(--ga); margin-bottom: 6px; }
.gr-result b { font-size: 22px; font-weight: 900; margin-right: 2px; }
.home-foot { margin-top: 24px; display: flex; flex-direction: column; align-items: center; }
.home-foot .fine { margin-top: 8px; }

/* ゲーム選択(ルーレット・ミックス) */
.game-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gp {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; min-height: 54px; padding: 8px 12px 8px 10px;
  border-radius: 15px; text-align: left;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  transition: background .2s, border-color .2s, opacity .2s;
}
.gp i {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid var(--line-2); color: transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.gp i .ic { width: 15px; height: 15px; stroke-width: 3; }
.gp > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gp small { font: 800 8.5px/1 var(--display); letter-spacing: .12em; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp[aria-pressed="true"] { background: var(--ga-soft); border-color: color-mix(in srgb, var(--ga) 55%, transparent); }
.gp[aria-pressed="true"] i { background: var(--ga); border-color: var(--ga); color: #120b18; }
.gp:disabled { opacity: .5; }

/* =========================================================
   INTRO (各ゲームの開始画面)
   ========================================================= */
.intro-hero { padding: 20px 0 4px; }
.intro-hero .kicker { margin-bottom: 16px; }
.intro-title {
  margin: 0;
  font: 900 clamp(40px, 13vw, 58px)/1.12 var(--font); letter-spacing: -.02em;
  background: var(--grad-game);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 12px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.75; }
.howto-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; min-height: 40px; padding: 0 14px 0 10px;
  border-radius: 12px;
  font-size: 13px; font-weight: 800;
  background: var(--ga-soft); color: var(--ga);
}
.howto-link .ic { width: 18px; height: 18px; }
.intro-settings { display: flex; flex-direction: column; gap: 22px; margin: 26px 0 22px; }
.intro .fine { margin: 0 0 18px; }
.intro .cta { margin-top: auto; }

.block { min-width: 0; }
.block-title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin: 0 0 11px;
  font: 800 11px/1.2 var(--display); letter-spacing: .22em;
}
.block-title.sub { margin-top: 16px; }
.block-title span { font: 500 12px/1.3 var(--font); letter-spacing: 0; color: var(--text-3); }

/* segmented */
.seg {
  display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.seg[data-cols="3"] { --cols: 3; }
.seg[data-cols="4"] { --cols: 4; }
.seg-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 0; padding: 0 6px;
  border-radius: 12px;
  font-weight: 800; font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
  transition: background .25s var(--ease), color .2s;
}
.seg-btn i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--dot, var(--grad-hot)); }
.seg-btn[data-value="all"] i { background: conic-gradient(var(--c-mild) 0 33%, var(--c-love) 0 66%, var(--c-spicy) 0); }
.seg-btn[data-value="mild"] { --dot: var(--c-mild); }
.seg-btn[data-value="love"] { --dot: var(--c-love); }
.seg-btn[data-value="spicy"] { --dot: var(--c-spicy); }
.seg-btn[aria-pressed="true"] { background: var(--text); color: #160f1c; }
.seg-desc { margin: 9px 2px 0; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.seg-desc:empty { display: none; }

/* mode cards */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mode-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-width: 0; min-height: 88px; padding: 13px 14px;
  text-align: left;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .14s var(--ease), border-color .25s, background .25s, box-shadow .25s;
}
.modes .mode-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 72px; }
.mode-card:active { transform: scale(.98); }
.mode-card .en { font: 800 9.5px/1 var(--display); letter-spacing: .2em; color: var(--text-3); }
.mode-card b { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.mode-card small { font-size: 11.5px; line-height: 1.5; color: var(--text-3); word-break: auto-phrase; }
.mode-card[aria-pressed="true"] {
  border-color: transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--grad-game) border-box;
  box-shadow: 0 14px 30px -20px var(--ga);
}
.mode-card[aria-pressed="true"] .en { color: var(--ga); }
.mode-card[aria-pressed="true"] small { color: var(--text-2); }

/* toggles */
.toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.toggle {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 56px; padding: 0 14px 0 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800; font-size: 14px;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.toggle i {
  position: relative; flex: none;
  width: 44px; height: 27px; border-radius: 20px;
  background: #3a3147;
  transition: background .25s;
}
.toggle i::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .28s var(--spring);
}
.toggle input:checked + i { background: var(--grad-game); }
.toggle input:checked + i::after { transform: translateX(17px); }
.toggle input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }

/* =========================================================
   SETTINGS
   ========================================================= */
.page-title { margin: 16px 0 22px; font-size: 30px; font-weight: 900; }
.settings-screen .block { margin-bottom: 28px; }
.stepper {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.stepper .icon-btn { width: 52px; height: 48px; border-radius: 13px; color: var(--text); }
.stepper-val { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.stepper-val b { font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.stepper-val span { font-size: 14px; font-weight: 800; color: var(--text-2); }
.names-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.name-field {
  --pc: #fff;
  display: flex; align-items: center; gap: 10px;
  min-width: 0; height: 54px; padding: 0 12px 0 10px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
  cursor: text;
}
.name-field:focus-within { border-color: var(--pc); background: var(--surface-2); }
.name-tag {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 9px;
  font: 800 12px/1 var(--display); color: #160f1c;
  background: var(--pc);
}
.name-field input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: none; background: none;
  font-size: 16px; font-weight: 700;
}
.name-field input::placeholder { color: var(--text-3); font-weight: 600; font-size: 13px; }
.hist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hist div { min-width: 0; padding: 12px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); }
.hist small { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist b { font: 900 22px/1.3 var(--display); }
.hist em { font-style: normal; font-size: 11px; color: var(--text-3); margin-left: 3px; }
.data-note { margin: 0 0 12px; font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.menu-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.menu-actions .wide { grid-column: 1 / -1; }

/* =========================================================
   GAME (共通)
   ========================================================= */
.screen-game { padding-top: calc(10px + var(--safe-t)); padding-bottom: calc(14px + var(--safe-b)); }
.play-host { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.play { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* 手番バー */
.turnbar {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 8px 8px 8px 14px;
  border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.turn-now { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.turn-now small { font: 800 9px/1 var(--display); letter-spacing: .24em; color: var(--text-3); }
.turn-name { display: flex; align-items: baseline; gap: 4px; min-width: 0; font-size: 17px; font-weight: 900; }
.turn-name span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.turn-name em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: var(--text-2); }
.avas { display: flex; align-items: center; gap: 4px; flex: none; }
.turnbar.many .avas { gap: 2px; }
.ava {
  --pc: #fff;
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: color-mix(in srgb, var(--pc) 22%, var(--surface-2));
  border: 1.5px solid color-mix(in srgb, var(--pc) 55%, transparent);
  font: 800 11px/1 var(--display); color: var(--pc);
  opacity: .55;
  transition: transform .3s var(--spring), opacity .3s;
}
.ava i { font-style: normal; max-width: 1.4em; overflow: hidden; }
.ava.is-active { opacity: 1; transform: scale(1.18); background: var(--pc); color: #140d19; border-color: var(--pc); box-shadow: 0 6px 16px -6px var(--pc); }
.turnbar.many .ava { width: 21px; height: 21px; font-size: 10px; }
.party-avas .ava { opacity: 1; background: var(--pc); color: #140d19; border-color: var(--pc); }

.swap-btn {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  transition: transform .3s var(--spring), opacity .2s;
}
.swap-btn .ic { width: 18px; height: 18px; }
.swap-btn:active:not(:disabled) { transform: rotate(180deg) scale(.92); }
.swap-btn:disabled { opacity: .35; }

.filters {
  align-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%; height: 34px; margin-top: 12px; padding: 0 10px 0 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--text-2);
  white-space: nowrap;
  transition: opacity .2s;
}
.filters i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.filters .ic { width: 15px; height: 15px; opacity: .7; }
.filters:disabled { opacity: .45; }

/* ---------- Wheel ---------- */
.stage {
  flex: 1; min-height: 0;
  overflow-x: clip; /* 光彩が横にはみ出さないように */
  display: grid; place-items: center;
  padding: 26px 0 12px;
}
.wheel-host { display: grid; place-items: center; }
.wheel {
  --size: clamp(220px, min(84vw, calc(100vh - 410px)), 400px);
  --size: clamp(220px, min(84vw, calc(100dvh - 410px)), 400px);
  position: relative;
  width: var(--size); height: var(--size);
}
.wheel-glow {
  position: absolute; inset: -11%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ga) 28%, transparent), color-mix(in srgb, var(--gb) 12%, transparent) 62%, transparent);
  filter: blur(8px);
  transition: transform .6s var(--ease);
}
.wheel.is-spinning .wheel-glow { transform: scale(1.06); }
.wheel-rotor {
  position: absolute; inset: 0;
  border-radius: 50%;
  transform: rotate(0deg);
  transition-property: transform;
  transition-duration: 3000ms;
  /* 緩やかに加速 → 長く自然に減速 */
  transition-timing-function: cubic-bezier(.32, 0, .12, 1);
  will-change: transform;
  box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .9);
}
.wheel-rotor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wheel-sheen {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(120% 75% at 28% 6%, rgba(255, 255, 255, .17), transparent 46%),
    radial-gradient(closest-side, transparent 86%, rgba(0, 0, 0, .3));
}
.slice { transition: opacity .35s var(--ease); }
.wheel.has-win .slice:not(.win) { opacity: .32; }
.sl-main { font-family: var(--font); font-weight: 900; fill: #fff; letter-spacing: .02em; }
.sl-sub { font-family: var(--display); font-weight: 800; fill: rgba(255, 255, 255, .78); letter-spacing: .16em; }
.bulb { fill: rgba(255, 255, 255, .22); }
.wheel.is-spinning .bulb { animation: blink .42s steps(1) infinite; }
.wheel.is-spinning .bulb.b2 { animation-delay: .21s; }
.wheel.has-win .bulb { fill: rgba(255, 236, 244, .85); }
@keyframes blink { 0% { fill: rgba(255, 236, 244, .95); } 50% { fill: rgba(255, 255, 255, .15); } }

.wheel-hub {
  position: absolute; left: 50%; top: 50%;
  width: 27%; height: 27%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #33294a, #120e19 72%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 5px rgba(11, 9, 17, .9), 0 0 0 6px rgba(255, 255, 255, .08), 0 12px 26px rgba(0, 0, 0, .65);
  transition: transform .2s var(--ease);
}
.wheel-hub span {
  font: 900 clamp(11px, 3.4vw, 14px)/1 var(--display); letter-spacing: .14em; padding-left: .14em;
  background: var(--grad-game);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wheel-hub[data-type="truth"] span { background-image: var(--grad-cool); }
.wheel-hub:not(:disabled):active { transform: translate(-50%, -50%) scale(.94); }
.wheel-hub:disabled { cursor: default; }
.pointer {
  position: absolute; left: 50%; top: 0;
  width: 13%; max-width: 46px; min-width: 32px;
  transform: translate(-50%, -38%);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--ga) 55%, transparent)) drop-shadow(0 2px 2px rgba(0, 0, 0, .6));
}
.pointer svg { display: block; width: 100%; height: auto; transform-origin: 50% 33%; }
.pointer path { fill: var(--ga); }
.pointer circle { fill: #0b0911; }

.turn-hint {
  margin: 6px 0 14px; min-height: 22px;
  text-align: center;
  font-size: 13.5px; color: var(--text-2);
}
.turn-hint b { color: var(--text); font-weight: 800; }

.actions { display: flex; flex-direction: column; gap: 10px; }
.choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  height: 86px; padding: 0 18px 15px;
  border-radius: 20px;
  text-align: left;
  transition: transform .14s var(--ease), opacity .25s, filter .25s;
}
.choice::after { position: absolute; right: 10px; top: -14px; font: 900 82px/1 var(--display); opacity: .16; }
.choice small { font: 800 10px/1 var(--display); letter-spacing: .26em; opacity: .85; }
.choice b { margin-top: 7px; font-size: 25px; font-weight: 900; line-height: 1; }
.choice.truth { background: var(--grad-cool); color: #fff; box-shadow: 0 16px 30px -16px rgba(125, 104, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.choice.truth::after { content: "?"; }
.choice.dare { background: var(--grad-hot); color: #1f0914; box-shadow: 0 16px 30px -16px rgba(255, 90, 110, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.choice.dare::after { content: "!"; right: 18px; }
.choice:active:not(:disabled) { transform: scale(.97); }
.choice:disabled { opacity: .4; filter: saturate(.6); }
.choice.is-chosen:disabled { opacity: 1; filter: none; }

/* mix */
.mix-strip { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.ms {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 9px 0 8px;
  border-radius: 9px;
  font-size: 11.5px; font-weight: 800; color: var(--text-3);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  white-space: nowrap;
}
.ms i { width: 7px; height: 7px; border-radius: 50%; background: var(--ga); opacity: .7; }
.ms b { font: 800 11px/1 var(--display); color: var(--text-2); }
.ms.on { color: var(--text); background: var(--ga-soft); border-color: color-mix(in srgb, var(--ga) 50%, transparent); }
.ms.on i { opacity: 1; box-shadow: 0 0 8px var(--ga); }
.mix-next { margin: 18px 0 0; text-align: center; font: 800 12px/1 var(--display); letter-spacing: .2em; color: var(--text-2); }
.mix-roulette .stage { padding-top: 22px; }
.mix-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.mix-sum .ms { height: 40px; font-size: 13px; color: var(--text); }
.mix-sum .ms b { margin-left: auto; font-size: 13px; }

/* =========================================================
   LAYERS / SHEETS
   ========================================================= */
.layer {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: flex-end; justify-content: center;
}
.scrim {
  position: absolute; inset: 0;
  background: rgba(6, 4, 10, .62);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.layer.open .scrim { opacity: 1; }
.sheet {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px - var(--safe-t));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 26px calc(22px + var(--safe-r)) calc(18px + var(--safe-b)) calc(22px + var(--safe-l));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #1f182a 0%, #141019 100%);
  border: 1px solid var(--line-2); border-bottom: 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .55);
  transform: translateY(105%);
  transition: transform .5s var(--spring);
}
.layer.open .sheet { transform: none; }
.sheet::before {
  content: ""; position: absolute; left: 50%; top: 9px;
  width: 36px; height: 4px; margin-left: -18px; border-radius: 4px;
  background: rgba(255, 255, 255, .14);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 0; }
.sheet-head h2 { margin: 0; font-size: 19px; font-weight: 900; letter-spacing: .04em; }
.menu { display: flex; flex-direction: column; gap: 20px; }
.menu-meta { margin: -6px 2px 0; font-size: 12px; line-height: 1.65; color: var(--text-3); }
.menu .menu-actions { margin-top: 0; }

/* お題カード(真実か挑戦か) */
.card, .qcard, .wyr-q { --lc: var(--c-love); --lc-soft: rgba(255, 77, 141, .14); --lc-line: rgba(255, 77, 141, .45); }
.card[data-level="mild"], .qcard[data-level="mild"], .wyr-q[data-level="mild"] { --lc: var(--c-mild); --lc-soft: rgba(125, 104, 255, .15); --lc-line: rgba(125, 104, 255, .5); }
.card[data-level="spicy"], .qcard[data-level="spicy"], .wyr-q[data-level="spicy"] { --lc: var(--c-spicy); --lc-soft: rgba(255, 122, 53, .14); --lc-line: rgba(255, 122, 53, .5); }
.card::after {
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lc), transparent);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-badge {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  height: 30px; padding: 0 13px 0 11px;
  border-radius: 20px;
  background: var(--lc-soft); border: 1px solid var(--lc-line);
  font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.cat-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 10px var(--lc); flex: none; }
.card-player, .qno { min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qno { font: 800 10.5px/1 var(--display); letter-spacing: .16em; color: var(--text-3); }
.card-type {
  margin: 22px 0 0;
  font: 900 clamp(40px, 12vw, 52px)/1 var(--display); letter-spacing: -.03em;
  background: var(--grad-hot);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card[data-type="truth"] .card-type { background-image: var(--grad-cool); }
.q {
  margin: 14px 0 24px; min-height: 3.1em;
  font-size: clamp(21px, 6.2vw, 27px); font-weight: 800; line-height: 1.55; letter-spacing: .01em;
  color: #f8f3fc;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
.card.reveal .card-type { animation: rise .55s var(--ease) .05s both; }
.card.reveal .q { animation: rise .6s var(--ease) .14s both; }
.card.redraw .card-body { animation: redraw .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
@keyframes redraw { 0% { opacity: 1; } 35% { opacity: 0; transform: translateX(-18px); } 36% { transform: translateX(18px); } 100% { opacity: 1; transform: none; } }
.card-actions { display: flex; flex-direction: column; gap: 10px; }
.card { --ga: #ff4d8d; --gb: #ff9a3d; }

.target {
  --pc: #fff;
  display: flex; align-items: center; gap: 10px;
  margin: -8px 0 22px; padding: 10px 10px 10px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--pc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent);
}
.target span { flex: none; font-size: 11.5px; font-weight: 800; color: var(--text-2); }
.target b { flex: 1; min-width: 0; font-size: 18px; font-weight: 900; color: var(--pc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.target-re { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 36px; padding: 0 10px; border-radius: 11px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .06); }
.target-re .ic { width: 15px; height: 15px; }
.target.bump b { animation: rise .45s var(--ease) both; }

/* notice */
.notice-title { margin: 14px 0 0; font-size: 22px; font-weight: 900; line-height: 1.4; }
.notice-text { margin: 10px 0 24px; font-size: 14px; line-height: 1.75; color: var(--text-2); }
.notice-text b { color: var(--text); }

/* 遊び方 */
.howto { padding-top: 30px; }
.howto .sheet-head { margin-bottom: 6px; }
.howto-title { margin: 6px 0 0; font-size: 24px; font-weight: 900; }
.howto-track { min-height: 300px; touch-action: pan-y; }
.howto-slide { padding-top: 14px; animation: slide-in .38s var(--ease) both; }
.howto-slide.from-left { animation-name: slide-in-l; }
@keyframes slide-in { from { opacity: 0; transform: translateX(26px); } }
@keyframes slide-in-l { from { opacity: 0; transform: translateX(-26px); } }
.howto-art {
  display: grid; place-items: center;
  height: 150px; border-radius: 22px;
  background:
    radial-gradient(70% 90% at 50% 100%, var(--ga-soft), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.howto-art svg { width: 62%; max-width: 220px; height: auto; overflow: visible; }
.a-fill-a { fill: var(--ga); }
.a-fill-b { fill: color-mix(in srgb, var(--gb) 70%, #2a2238); }
.a-fill-w { fill: #fff; }
.a-bg { fill: var(--surface); }
.a-paper { fill: #f4efe6; }
.a-line { fill: none; stroke: var(--text-2); stroke-width: 2.5; }
.a-stroke { fill: none; stroke: var(--text); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.a-stroke-d { fill: none; stroke: #140d19; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.a-stroke-w { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.a-t { font: 900 22px/1 var(--display); fill: #fff; text-anchor: middle; }
.a-dark { fill: #140d19; }
.a-big { font-size: 34px; fill: var(--ga); }
.howto-step { margin: 18px 0 0; font: 800 10px/1 var(--display); letter-spacing: .24em; color: var(--ga); }
.howto-slide h3 { margin: 10px 0 0; font-size: 20px; font-weight: 900; line-height: 1.4; }
.howto-slide p:last-child { margin: 8px 0 0; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.howto-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 16px; }
.howto-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--line-2); transition: width .3s var(--ease), background .3s; }
.howto-dots i.on { width: 20px; background: var(--ga); }
.howto-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.howto-nav .btn-primary, .howto-nav .btn-sub { min-height: 54px; }

/* 交代演出 */
.swap-layer {
  --pc: #ff5c97;
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(70% 45% at 50% 48%, color-mix(in srgb, var(--pc) 32%, transparent), transparent 72%),
    #0c0912;
  cursor: pointer;
  clip-path: circle(0% at 50% 50%);
}
.swap-layer.show { animation: wipe-in .55s cubic-bezier(.6, 0, .2, 1) forwards; }
.swap-layer.leaving { animation: fade-out .28s ease forwards; clip-path: circle(150% at 50% 50%); }
@keyframes wipe-in { to { clip-path: circle(150% at 50% 50%); } }
@keyframes fade-out { to { opacity: 0; } }
.swap-inner { max-width: 100%; }
.swap-kicker { margin: 0; font: 800 12px/1 var(--display); letter-spacing: .34em; color: var(--pc); }
.swap-name {
  margin: 18px 0 0; max-width: 100%;
  font: 900 clamp(36px, 12vw, 62px)/1.12 var(--display); letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.swap-sub { margin: 12px 0 0; font-size: 16px; font-weight: 700; color: var(--text-2); }
.swap-tap { margin: 46px 0 0; font-size: 11.5px; letter-spacing: .1em; color: var(--text-3); }
.swap-layer.show .swap-name { animation: rise .6s var(--ease) .18s both; }
.swap-layer.show .swap-kicker, .swap-layer.show .swap-sub { animation: rise .6s var(--ease) .26s both; }

/* カウントダウン */
.count-layer {
  position: fixed; inset: 0; z-index: 45;
  display: grid; place-items: center;
  background: rgba(8, 6, 12, .92);
  opacity: 0; transition: opacity .2s;
}
.count-layer.show { opacity: 1; }
.count-num {
  margin: 0;
  font: 900 clamp(120px, 42vw, 200px)/1 var(--display);
  background: linear-gradient(160deg, #fff, #c9bfff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.count-num.final { font-size: clamp(56px, 18vw, 96px); background-image: var(--grad-hot); padding: 0 .1em; }
.count-num.pop { animation: pop .62s var(--spring) both; }
@keyframes pop { 0% { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(.94); } 55% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* 紙吹雪 */
.burst { position: fixed; left: 50%; top: 42%; z-index: 50; pointer-events: none; }
.burst i {
  position: absolute; left: 0; top: 0;
  width: 9px; height: 14px; border-radius: 2px;
  background: var(--c);
  animation: confetti 1s cubic-bezier(.15, .7, .3, 1) var(--d) both;
}
@keyframes confetti {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 90px)) rotate(var(--r)) scale(1); }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); z-index: 60;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border-radius: 14px;
  background: #2a2236; border: 1px solid var(--line-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  font-size: 13px; font-weight: 700; text-align: center;
  opacity: 0; transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   HIGH & LOW
   ========================================================= */
.hl-meta { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.hl-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.hl-meta b { font-family: var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.hl-table {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: center;
  margin: 16px 0 6px; padding: 22px 14px;
  border-radius: 26px;
  background:
    radial-gradient(90% 80% at 50% 40%, rgba(53, 212, 154, .14), transparent 70%),
    linear-gradient(180deg, #102019, #0d1813);
  border: 1px solid rgba(53, 212, 154, .2);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .45);
}
.hl-slot { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.hl-cap { margin: 0; font-size: 11.5px; font-weight: 800; color: rgba(214, 255, 235, .6); letter-spacing: .06em; }
.pcard {
  width: clamp(92px, min(34vw, calc((100vh - 470px) * .7)), 150px);
  width: clamp(92px, min(34vw, calc((100dvh - 470px) * .7)), 150px);
  aspect-ratio: 5 / 7;
  perspective: 900px;
}
.pc-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.pcard.flipped .pc-inner { transform: rotateY(180deg); }
.pcard.instant .pc-inner { transition: none; }
.pc-back, .pc-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; }
.pc-front { transform: rotateY(180deg); }
.pc-back {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 6px, transparent 6px 12px),
    linear-gradient(150deg, #1f9e70, #0f5d43);
  border: 4px solid #f4efe6;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .8);
}
.pc-back i { width: 38%; aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(244, 239, 230, .75); box-shadow: inset 0 0 0 6px rgba(244, 239, 230, .2); }
.pc-face {
  position: relative; width: 100%; height: 100%;
  border-radius: 12px;
  background: linear-gradient(170deg, #fffdf8, #ede6d8);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(0, 0, 0, .08);
  color: #17131c;
  font-family: var(--display);
}
.pc-face.red { color: #d8283e; }
.pc-corner { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.pc-corner b { font-size: clamp(14px, 4.4vw, 20px); font-weight: 900; }
.pc-corner i { font-style: normal; font-size: clamp(11px, 3.4vw, 16px); margin-top: 2px; }
.pc-corner.tl { left: 8px; top: 8px; }
.pc-corner.br { right: 8px; bottom: 8px; transform: rotate(180deg); }
.pc-mid { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-size: clamp(40px, 14vw, 64px); opacity: .16; }
.pc-rank { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-size: clamp(36px, 12vw, 60px); font-weight: 900; letter-spacing: -.04em; }
.pcard.current.slide .pc-face { animation: slide-in .4s var(--ease) both; }
.hl-result { min-height: 62px; text-align: center; padding-top: 6px; }
.hl-verdict { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.2; }
.hl-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); }
.hl-result.show .hl-verdict { animation: pop .5s var(--spring) both; }
.hl-result.win .hl-verdict { color: #4fe8ad; }
.hl-result.lose .hl-verdict { color: #ff6b7f; }
.hl-result.tie .hl-verdict { color: #ffd34d; }
.hl-streak { min-height: 30px; display: flex; justify-content: center; margin-bottom: 10px; }
.streak-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 20px; font-size: 12.5px; font-weight: 900; background: rgba(53, 212, 154, .15); color: #6ff0be; }
.streak-chip.hot { background: linear-gradient(115deg, #35d49a, #c6f36b); color: #0b2018; animation: glow 1.4s ease-in-out infinite alternate; }
.streak-chip.dim { background: rgba(255, 255, 255, .05); color: var(--text-3); }
@keyframes glow { to { box-shadow: 0 0 22px rgba(198, 243, 107, .45); } }
.hl-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hl-btn {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  height: 88px; padding: 0 18px 15px;
  border-radius: 20px; text-align: left;
  transition: transform .14s var(--ease), opacity .25s;
}
.hl-btn small { font: 800 10px/1 var(--display); letter-spacing: .26em; opacity: .85; }
.hl-btn b { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 22px; font-weight: 900; }
.hl-btn b .ic { width: 22px; height: 22px; stroke-width: 2.6; }
.hl-btn.high { background: linear-gradient(130deg, #4fe8ad, #1f9e70); color: #06221a; box-shadow: 0 16px 30px -16px rgba(53, 212, 154, .9); }
.hl-btn.low { background: linear-gradient(130deg, #2a3a35, #1a2622); color: #cfeee2; border: 1px solid rgba(53, 212, 154, .35); }
.hl-btn:active:not(:disabled) { transform: scale(.97); }
.hl-btn:disabled { opacity: .45; }

/* =========================================================
   以心伝心 / 究極の二択
   ========================================================= */
.sw-stage, .wyr-stage { flex: 1; display: flex; flex-direction: column; padding-top: 12px; }
.sw-stage > .actions, .wyr-stage > .actions, .sw-stage > .judge { margin-top: auto; padding-top: 16px; }
.sw-lead { margin: 4px 0 0; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.who { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.who em { font-style: normal; color: var(--text-3); font-weight: 800; }
.who-chip {
  --pc: #fff;
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  height: 30px; padding: 0 11px 0 9px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--pc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent);
  font-size: 13px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.who-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); flex: none; }
.qcard {
  position: relative;
  margin-top: 16px; padding: 18px 18px 8px;
  border-radius: 24px;
  background:
    radial-gradient(100% 60% at 50% 0%, var(--ga-soft), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-2);
}
.qcard::after { content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--ga), transparent); }
.qcard .q { margin: 20px 0 18px; text-align: center; font-size: clamp(24px, 7.4vw, 32px); min-height: 2.4em; display: grid; place-items: center; }
.qcard.small .q { font-size: clamp(18px, 5.4vw, 22px); margin: 12px 0 10px; min-height: 0; }
.qcard.redraw .q { animation: redraw .5s var(--ease) both; }
.sw-ask { margin: 22px 0 0; text-align: center; font-size: 18px; font-weight: 900; }
.sw-ask small { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--text-3); }
.judge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.judge-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 92px; border-radius: 20px;
  transition: transform .14s var(--ease);
}
.judge-btn .ic { width: 26px; height: 26px; stroke-width: 2.6; }
.judge-btn b { font-size: 16px; font-weight: 900; }
.judge-btn.yes { background: var(--grad-game); color: #0b1424; box-shadow: 0 16px 30px -16px var(--ga); }
.judge-btn.no { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); }
.judge-btn:active { transform: scale(.97); }
.reveal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.reveal-item {
  --pc: #fff;
  min-width: 0; padding: 14px 14px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--pc) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent);
  animation: flip-in .55s var(--spring) var(--d, 0ms) both;
}
.reveal-item small { display: block; font-size: 11.5px; font-weight: 800; color: var(--pc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reveal-item b { display: block; margin-top: 6px; font-size: 20px; font-weight: 900; line-height: 1.35; overflow-wrap: anywhere; }
@keyframes flip-in { from { opacity: 0; transform: perspective(600px) rotateX(-70deg); } }
.auto-hint { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--text-3); }
.verdict { margin-top: 12px; text-align: center; }
.verdict .kicker { justify-content: center; }
.verdict-big { margin: 12px 0 0; font: 900 clamp(38px, 12vw, 52px)/1.2 var(--font); background: var(--grad-game); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pop .6s var(--spring) both; }
.verdict.miss .verdict-big, .verdict.split .verdict-big { background-image: linear-gradient(115deg, #fff, #b8aec7); }
.verdict.pass .verdict-big, .verdict.skip .verdict-big { background: none; color: var(--text-2); font-size: 30px; }
.verdict-sub { margin: 8px 0 0; font-size: 13.5px; color: var(--text-2); min-height: 1em; }
.tally { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--text-2); }
.tally b { color: var(--text); font-size: 15px; }

/* 入力モード(受け渡し・こっそり回答) */
.handoff, .secret {
  --pc: #fff;
  flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: 18px;
}
.handoff .kicker { justify-content: center; }
.handoff-phone { margin-top: 26px; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: color-mix(in srgb, var(--pc) 16%, transparent); color: var(--pc); }
.handoff-phone .ic { width: 34px; height: 34px; }
.handoff-to { margin: 14px 0 0; font-size: 14px; color: var(--text-2); font-weight: 700; }
.handoff-name { margin: 8px 0 0; max-width: 100%; font: 900 clamp(32px, 10vw, 46px)/1.15 var(--display); color: var(--pc); overflow-wrap: anywhere; }
.all-in .handoff-name { color: var(--text); margin-top: 28px; }
.handoff-note { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 auto; font-size: 12.5px; color: var(--text-3); }
.handoff-note .ic { width: 16px; height: 16px; }
.handoff .btn-primary { margin-top: 26px; }
.handoff .btn-text { margin-top: 6px; }
.secret { align-items: stretch; text-align: left; }
.secret-who { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 900; }
.secret-who i { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.secret-who span { margin-left: auto; font: 800 11px/1 var(--display); color: var(--text-3); letter-spacing: .1em; }
.secret-q { margin: 22px 0 18px; font-size: clamp(22px, 6.6vw, 28px); font-weight: 900; line-height: 1.5; text-align: center; }
.secret-input {
  width: 100%; height: 60px; padding: 0 18px;
  border-radius: 18px; border: 1.5px solid color-mix(in srgb, var(--pc) 60%, transparent);
  background: var(--surface); outline: none;
  font-size: 18px; font-weight: 800; text-align: center;
}
.secret-input:focus { background: var(--surface-2); }
.secret .btn-primary { margin-top: 12px; }
.secret .handoff-note { margin: 14px auto 0; }

/* 究極の二択 */
.wyr-prompt { margin: 20px 0 16px; text-align: center; font-size: clamp(20px, 6vw, 25px); font-weight: 900; }
.wyr-q.compact .wyr-prompt { margin: 14px 0 10px; font-size: 17px; }
.ab { position: relative; display: grid; gap: 10px; }
.ab-or {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2);
  font: 900 11px/1 var(--display); letter-spacing: .08em; color: var(--text-2);
}
.ab-opt {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  min-height: 92px; padding: 16px 18px;
  border-radius: 22px; text-align: left;
}
.ab-opt span { flex: none; font: 900 30px/1 var(--display); opacity: .9; }
.ab-opt b { flex: 1; min-width: 0; font-size: clamp(17px, 5.2vw, 21px); font-weight: 900; line-height: 1.45; overflow-wrap: anywhere; word-break: auto-phrase; }
.ab-opt.a { background: linear-gradient(130deg, #ffd25a, #ff9b3d); color: #2b1600; }
.ab-opt.b { background: linear-gradient(130deg, #5f8bff, #8f6bff); color: #fff; }
.wyr-q.compact .ab-opt { min-height: 66px; padding: 12px 14px; }
.wyr-q.compact .ab-opt span { font-size: 22px; }
.wyr-q.compact .ab-opt b { font-size: 15px; }
button.ab-opt { width: 100%; transition: transform .14s var(--ease); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8); }
button.ab-opt:active { transform: scale(.98); }
.ab-pick { display: grid; gap: 10px; }
.rec-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.rec-row {
  --pc: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 12px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--line);
}
.rec-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-name i { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); flex: none; }
.rec-ab { display: flex; gap: 6px; flex: none; }
.rec-btn { width: 52px; height: 42px; border-radius: 12px; font: 900 17px/1 var(--display); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--text-2); transition: background .2s, color .2s; }
.rec-btn.a[aria-pressed="true"] { background: #ffc53d; border-color: #ffc53d; color: #2b1600; }
.rec-btn.b[aria-pressed="true"] { background: #7f7bff; border-color: #7f7bff; color: #fff; }
.split { margin-top: 18px; }
.split-bar { display: flex; height: 14px; border-radius: 10px; overflow: hidden; background: var(--surface); }
.split-bar span { width: var(--w, 50%); transition: width .8s var(--ease); }
.split-bar .sa { background: linear-gradient(90deg, #ffd25a, #ff9b3d); }
.split-bar .sb { background: linear-gradient(90deg, #5f8bff, #8f6bff); }
.split-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.split-col { min-width: 0; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: flip-in .5s var(--spring) both; }
.split-col.b { animation-delay: .08s; }
.split-col p { margin: 0; font-size: 12.5px; font-weight: 800; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.split-col p span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 6px; font: 900 11px/1 var(--display); vertical-align: 1px; }
.split-col.a p span { background: #ffc53d; color: #2b1600; }
.split-col.b p span { background: #7f7bff; color: #fff; }
.split-col p b { display: block; margin-top: 4px; font: 900 22px/1.1 var(--display); color: var(--text); }
.split-names { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.split-names .who-chip { height: 26px; font-size: 11.5px; }
.split-names .none { font-size: 12px; color: var(--text-3); }

/* =========================================================
   END
   ========================================================= */
.screen-end { justify-content: center; }
.end-wrap { display: flex; flex-direction: column; }
.end-title {
  margin: 18px 0 0;
  font: 900 clamp(40px, 12vw, 56px)/1.15 var(--font); letter-spacing: -.02em;
  background: var(--grad-game);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.end-sub { margin: 12px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.end-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; }
.end-card {
  --pc: #fff;
  min-width: 0; padding: 14px 14px 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.end-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 900; min-width: 0; }
.end-card h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.end-card .badge { margin-left: auto; flex: none; font: 900 9.5px/1 var(--display); letter-spacing: .12em; padding: 4px 6px; border-radius: 6px; background: var(--grad-game); color: #140d19; }
.end-card dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 6px; margin: 12px 0 0; font-size: 12.5px; }
.end-card dt { color: var(--text-3); min-width: 0; }
.end-card dd { margin: 0; font: 800 15px/1.1 var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.big-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 22px; }
.big-stats div { min-width: 0; padding: 14px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.big-stats small { display: block; font-size: 11px; color: var(--text-3); }
.big-stats b { display: block; margin-top: 6px; font: 900 26px/1 var(--display); }
.big-stats em { display: block; margin-top: 4px; font-style: normal; font-size: 11px; color: var(--text-3); }
.pair-list { margin-top: 22px; }
.pair-row { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.pair-row .who-chip { height: 26px; font-size: 12px; min-width: 0; }
.pair-row em { font-style: normal; color: var(--text-3); }
.pair-row b { margin-left: auto; flex: none; font: 800 14px/1 var(--display); }
.ab-total { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.ab-total span { padding: 7px 10px; border-radius: 10px; background: var(--surface); }
.ab-total .a { color: #ffc53d; }
.ab-total .b { color: #9d9aff; }
.screen-end .cta { margin-top: 26px; }
.screen-end .fine { margin-top: 18px; }

.noscript { position: fixed; inset: auto 0 0; z-index: 99; margin: 0; padding: 16px; text-align: center; background: #2a2236; }

/* =========================================================
   Responsive / a11y
   ========================================================= */
@media (max-height: 700px) {
  .stage { padding-top: 22px; }
  .choice, .hl-btn { height: 74px; }
  .turn-hint { margin: 2px 0 10px; }
  .hl-table { padding: 16px 12px; margin-top: 12px; }
  .judge-btn { height: 78px; }
}
@media (max-width: 350px) {
  .screen { padding-left: 16px; padding-right: 16px; }
  .seg-btn { font-size: 13px; gap: 4px; }
  .seg-btn i { display: none; }
  .mode-card { padding: 12px; }
  .sheet { padding-left: 18px; padding-right: 18px; }
  .game-card { padding: 12px 11px 10px; }
  .gc-title { font-size: 16px; }
  .names-list { grid-template-columns: 1fr; }
  .gp { padding: 8px; gap: 8px; }
  .topbar-right { gap: 4px; }
  .icon-btn { width: 40px; height: 40px; }
}
@media (hover: hover) {
  .btn-sub:hover:not(:disabled), .btn-ghost:hover { background: rgba(255, 255, 255, .07); }
  .icon-btn:hover:not(:disabled), .swap-btn:hover:not(:disabled) { color: var(--text); }
  .game-card:hover { border-color: var(--line-2); }
}
/* =========================================================
   飲みゲーモード
   ========================================================= */
.drink-banner {
  position: fixed; z-index: 70;
  left: calc(14px + var(--safe-l)); right: calc(14px + var(--safe-r)); top: calc(10px + var(--safe-t));
  max-width: 480px; margin: 0 auto;
  padding: 14px 18px 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, #3a2a08, #2a1a12);
  border: 1px solid rgba(255, 197, 61, .55);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7), 0 0 0 4px rgba(255, 197, 61, .08);
  text-align: center; cursor: pointer;
}
.drink-banner.show { animation: drinkIn .42s var(--ease) both; }
@keyframes drinkIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }
.db-kicker { margin: 0; font-family: var(--display); font-size: 11px; font-weight: 900; letter-spacing: .24em; color: #ffc53d; }
.db-main { margin: 4px 0 0; font-size: 22px; font-weight: 900; line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.db-sub { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; color: #f0d9a8; }
.db-sub:empty { display: none; }

.drink-rules {
  margin-top: 14px; padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 197, 61, .07); border: 1px solid rgba(255, 197, 61, .28);
  text-align: left;
}
.dr-title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13px; font-weight: 900; color: #ffc53d; }
.dr-title .ic { width: 16px; height: 16px; }
.drink-rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.drink-rules li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); }
.drink-rules li b { flex: none; max-width: 55%; text-align: right; color: var(--text); font-weight: 800; }
.drink-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 197, 61, .12); border: 1px solid rgba(255, 197, 61, .4);
  color: #ffc53d; font-size: 11.5px; font-weight: 900;
}
.drink-chip .ic { width: 13px; height: 13px; }
.drink-line { margin: 10px 0 0; text-align: center; font-size: 12.5px; font-weight: 800; color: #ffc53d; }
.btn-sub.has-sub { flex-direction: column; gap: 1px; line-height: 1.2; padding: 6px 8px; }
.btn-sub small { font-size: 11px; font-weight: 700; color: var(--text-3); }
.btn-sub.drink { border-color: rgba(255, 197, 61, .45); color: #ffd877; }
.drink-toggle { margin-top: 4px; }
.toggle.drink-toggle input:checked + i { background: linear-gradient(135deg, #ffc53d, #ff7a59); }

.boot-error { position: relative; z-index: 5; margin: 40px 0; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); }
.boot-title { margin: 0; font-size: 18px; font-weight: 900; }
.boot-hint { margin: 6px 0 12px; font-size: 13px; color: var(--text-2); }
.boot-error pre { margin: 0 0 16px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); font-size: 11.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  .drink-banner.show { animation: none; }
  .hero-orb { animation: none; }
  .screen, .howto-slide, .gr-result { animation: none; }
  .sheet { transition-duration: .2s; }
  .card.reveal .card-type, .card.reveal .q, .card.redraw .card-body,
  .swap-layer.show .swap-name, .swap-layer.show .swap-kicker, .swap-layer.show .swap-sub,
  .count-num.pop, .reveal-item, .split-col, .verdict-big, .hl-result.show .hl-verdict, .qcard.redraw .q,
  .pcard.current.slide .pc-face, .target.bump b { animation-duration: .01s; animation-delay: 0s; }
  .swap-layer.show { animation-duration: .15s; }
  .wheel.is-spinning .bulb, .streak-chip.hot { animation: none; }
  .pc-inner { transition-duration: .1s; }
}
