/* ホタルつなぎ — 夜の田んぼ・発光（群青×蛍光黄緑） */
:root {
  --deep: #070b2a;
  --yoru: #0b1240;
  --ai: #17206b;
  --ai-2: #22307f;
  --hotaru: #c8f55a;
  --hotaru-2: #a6e043;
  --tsuki: #e8f1ff;
  --mist: #b9c6ec;
  --akane: #ffb25c;
  --kin: #ffd76a;
  --danger: #ff9b8a;

  --f-title: "Yusei Magic", "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
  --f-body: "Klee One", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --f-num: "Fredoka", "Klee One", sans-serif;

  --r-l: 28px;
  --r-m: 18px;
  --r-s: 12px;
  --glow: 0 0 22px rgba(200, 245, 90, .38), 0 0 2px rgba(200, 245, 90, .8);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 140ms;
  --t-mid: 420ms;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--deep) radial-gradient(120% 80% at 50% 0%, #142070 0%, var(--deep) 70%);
  color: var(--tsuki);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.7;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  overscroll-behavior: none;
}
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { text-decoration: none; }
svg { width: 24px; height: 24px; flex: none; }
.num { font-family: var(--f-num); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
h1, h2, h3 { font-weight: normal; word-break: keep-all; font-feature-settings: "palt"; }
[hidden] { display: none !important; }
.nojs { padding: 40px 24px; text-align: center; }

.app {
  position: relative;
  width: 100%;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--yoru);
}
@media (min-width: 600px) {
  body { background: #050820 radial-gradient(60% 70% at 50% 40%, #1b2a80 0%, #050820 75%); }
  .app { max-width: 430px; box-shadow: 0 0 80px rgba(200, 245, 90, .12); }
}

/* ---------- 画面 ---------- */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0;
  transition: opacity var(--t-mid) var(--ease), visibility 0s linear var(--t-mid);
}
.screen.is-on { visibility: visible; opacity: 1; transition: opacity var(--t-mid) var(--ease), visibility 0s; z-index: 2; }
.scroller {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ---------- ボタン ---------- */
.ibtn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1a2468;
  color: var(--tsuki);
  border: 1px solid rgba(200, 245, 90, .28);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
  flex: none;
}
.ibtn:active { transform: scale(.88); background: #25328a; }
.ibtn svg { width: 22px; height: 22px; }

.lantern {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 22px;
  border-radius: 30px 30px 20px 20px;
  font-family: var(--f-title);
  font-size: 19px; letter-spacing: .04em;
  word-break: keep-all;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), filter var(--t-fast);
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}
.lantern svg { width: 24px; height: 24px; }
.lantern:active { transform: translateY(2px) scale(.96); filter: brightness(1.12); }
.lantern--main {
  min-height: 64px; font-size: 23px;
  color: #0b1240;
  background: linear-gradient(180deg, #e6ff96 0%, #c8f55a 46%, #a6e043 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 220, .6) inset, 0 6px 0 #6f9c2a, 0 0 34px rgba(200, 245, 90, .55);
}
.lantern--main:active { box-shadow: 0 0 0 1px rgba(255, 255, 220, .6) inset, 0 2px 0 #6f9c2a, 0 0 46px rgba(200, 245, 90, .8); }
.lantern--sub {
  min-height: 52px; font-size: 16px; padding: 8px 12px; gap: 8px;
  border-radius: 22px 22px 16px 16px;
  color: var(--tsuki);
  background: linear-gradient(180deg, #24327f 0%, #1a2468 100%);
  box-shadow: 0 0 0 1px rgba(200, 245, 90, .35) inset, 0 4px 0 #0c1446;
}
.lantern--sub svg { color: var(--hotaru); width: 22px; height: 22px; }
.lantern--small { min-height: 46px; font-size: 17px; padding: 6px 22px; color: #0b1240; background: linear-gradient(180deg, #e6ff96, #b5ea4e); box-shadow: 0 4px 0 #6f9c2a; }

.tbtn {
  min-height: 46px; padding: 8px 18px;
  border-radius: var(--r-s);
  font-family: var(--f-body); font-size: 15px;
  color: var(--tsuki);
  background: #1a2468;
  border: 1px solid rgba(185, 198, 236, .35);
  transition: transform var(--t-fast) var(--ease);
}
.tbtn:active { transform: scale(.95); }
.tbtn--danger { color: #ffd3ca; border-color: rgba(255, 155, 138, .6); background: #3a1840; }

/* ---------- スプラッシュ ---------- */
.splash {
  position: absolute; inset: 0; z-index: 50;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(70% 50% at 50% 45%, #1b2a80, var(--deep));
  animation: splash-out .4s ease .65s forwards;
}
.splash img { border-radius: 26px; box-shadow: 0 0 60px rgba(200, 245, 90, .5); }
.splash__name { font-family: var(--f-title); font-size: 26px; color: var(--hotaru); letter-spacing: .1em; }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }

/* ---------- タイトル ---------- */
.screen--title {
  background: var(--yoru) url(/app-development/apps/a002/img/title.webp) center 30% / cover no-repeat;
}
.screen--title::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 42, .55) 0%, rgba(7, 11, 42, 0) 34%, rgba(7, 11, 42, 0) 52%, rgba(7, 11, 42, .78) 78%, rgba(7, 11, 42, .95) 100%);
}
.title__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 12px) 16px 0;
}
.topbar__spacer { width: 46px; }
.title__head {
  position: relative; z-index: 3;
  text-align: center; padding: 3vh 20px 0;
}
.title__kicker {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 999px;
  background: #0b1240;
  color: var(--hotaru);
  font-size: 14px; letter-spacing: .2em;
  word-break: keep-all;
}
.logo {
  margin-top: 6px;
  font-family: var(--f-title);
  font-size: clamp(52px, 17vw, 72px);
  line-height: 1.1;
  color: #f4ffd6;
  text-shadow: 0 0 14px rgba(200, 245, 90, .9), 0 0 42px rgba(200, 245, 90, .55), 0 3px 0 #0b1240;
  display: flex; flex-direction: column; align-items: center;
}
.logo__a { transform: rotate(-4deg) translateX(-18px); }
.logo__b { transform: rotate(3deg) translateX(22px); color: var(--hotaru); }
.title__lead {
  display: inline-block; margin-top: 12px;
  padding: 4px 14px; border-radius: var(--r-s);
  background: rgba(7, 11, 42, .82);
  font-size: 16px; color: var(--tsuki);
  word-break: keep-all;
}
.title__foot {
  position: relative; z-index: 3;
  margin-top: auto;
  padding: 0 20px calc(var(--safe-b) + 22px);
  display: flex; flex-direction: column; gap: 14px;
}
.best {
  align-self: center;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  background: #0b1240;
  border: 1px solid rgba(200, 245, 90, .3);
  font-size: 14px;
}
.best svg { width: 18px; height: 18px; color: var(--kin); }
.best .num { font-size: 22px; color: var(--hotaru); line-height: 1; }
.best__unit { font-size: 14px; }
.title__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- プレイ ---------- */
.screen--play {
  background:
    linear-gradient(180deg, rgba(7, 11, 42, .3) 0%, rgba(7, 11, 42, .55) 30%, rgba(7, 11, 42, .2) 48%, rgba(7, 11, 42, 0) 60%),
    url(/app-development/apps/a002/img/title.webp) center top / 100% auto no-repeat,
    url(/app-development/apps/a002/img/paddy.webp) center bottom / cover no-repeat var(--yoru);
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.board-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at 50% 60%, rgba(220, 255, 170, .55), rgba(200, 245, 90, 0) 70%); opacity: 0; }
.flash.is-on { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.hud {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 10px) 14px 0;
  pointer-events: none;
}
.hud .ibtn { pointer-events: auto; }
.hud__score {
  display: flex; align-items: baseline; gap: 4px;
  padding: 2px 18px; border-radius: 999px;
  background: #0b1240;
}
.hud__score .num { font-size: 34px; line-height: 1.2; color: #f4ffd6; text-shadow: 0 0 12px rgba(200, 245, 90, .7); transition: transform .12s; }
.hud__score .num.is-bump { transform: scale(1.14); }
.hud__unit { font-size: 15px; color: var(--mist); }
.sky {
  position: relative; z-index: 3;
  flex: 1; min-height: 84px;
  pointer-events: none;
}
.night {
  position: absolute; left: 14px; bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  padding: 3px 12px 3px 8px; border-radius: 999px;
  background: #0b1240;
  font-size: 14px;
}
.night svg { width: 18px; height: 18px; color: #fff3c4; }
.night .num { font-size: 20px; line-height: 1; min-width: 1.4em; text-align: right; color: var(--tsuki); }
.night.is-low .num { color: #ffcf8a; }
.night.is-dawn { background: #2a1d4f; }
.night__unit { font-size: 14px; }
.demo-tag {
  position: absolute; right: 14px; bottom: 8px;
  display: flex; align-items: center; gap: 8px;
  padding: 3px 12px; border-radius: 999px;
  background: #0b1240; font-size: 14px; color: var(--hotaru);
}
.demo-tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hotaru); box-shadow: 0 0 8px var(--hotaru); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.plus {
  position: absolute; right: 16px; bottom: 6px;
  font-family: var(--f-num); font-weight: 700; font-size: 26px; color: var(--hotaru);
  text-shadow: 0 0 10px rgba(200, 245, 90, .9), 0 2px 0 #0b1240;
  opacity: 0; white-space: nowrap;
}
.plus.is-on { animation: plus .9s var(--ease); }
@keyframes plus { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px) scale(1); } }
.board-slot { position: relative; z-index: 0; flex: none; align-self: center; }
.dock {
  position: relative; z-index: 3;
  padding: 10px 16px calc(var(--safe-b) + 12px);
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.gauge { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #0b1240; }
.gauge__label { flex: none; padding: 0 10px; border-radius: 999px; font-family: var(--f-title); font-size: 15px; color: #0b1240; background: var(--hotaru); }
.gauge__track { flex: 1; height: 10px; border-radius: 99px; background: #1c2766; overflow: hidden; }
.gauge__fill { display: block; height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, #8fd23b, #e6ff96); box-shadow: 0 0 10px rgba(200, 245, 90, .9); transition: width .25s var(--ease); }
.gauge.is-fever .gauge__label { background: var(--kin); }
.gauge.is-fever .gauge__fill { background: linear-gradient(90deg, #ffd76a, #fff3c4); animation: blink .4s infinite; }
.chain {
  align-self: center;
  min-height: 34px;
  padding: 3px 16px; border-radius: 999px;
  background: #0b1240;
  font-size: 15px; color: var(--tsuki);
  word-break: keep-all;
  display: flex; align-items: center; gap: 8px;
}
.chain svg { width: 18px; height: 18px; }
.chain .num { font-size: 18px; }
.chain--hot { color: #0b1240; background: var(--hotaru); }
.chain--boom { color: #0b1240; background: var(--kin); }

.takeover {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 0 24px calc(var(--safe-b) + 14px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.screen--play.is-demo .dock { visibility: hidden; }
.takeover .lantern { pointer-events: auto; width: 100%; max-width: 320px; }
.takeover__note { padding: 2px 12px; border-radius: 999px; background: #0b1240; font-size: 14px; }

.coach, .pause {
  position: absolute; inset: 0; z-index: 8;
  display: grid; place-items: center; padding: 20px;
  background: rgba(5, 8, 32, .78);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.coach__card, .pause__card {
  width: 100%; max-width: 340px;
  padding: 24px 22px 22px;
  border-radius: var(--r-l);
  background: linear-gradient(180deg, #1f2b7a 0%, #141d5c 100%);
  box-shadow: 0 0 0 1px rgba(200, 245, 90, .3) inset, 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(200, 245, 90, .15);
  text-align: center;
  animation: card-in .36s var(--ease);
}
@keyframes card-in { from { transform: translateY(24px) scale(.94); opacity: 0; } }
.coach__step { font-family: var(--f-num); font-size: 14px; color: var(--hotaru); }
.coach__title, .pause__title { font-family: var(--f-title); font-size: 26px; color: #f4ffd6; line-height: 1.35; margin: 4px 0 10px; }
.coach__pic { height: 120px; border-radius: var(--r-m); background: #0b1240; margin-bottom: 12px; position: relative; overflow: hidden; }
.coach__text { text-align: left; font-size: 15px; word-break: normal; }
.coach__btns { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.pause__text { margin-bottom: 18px; word-break: keep-all; }
.pause__card .lantern--main { width: 100%; }
.pause__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pause__row .lantern { font-size: 16px; padding: 8px 10px; gap: 6px; }

/* ---------- リザルト ---------- */
.screen--result { background: var(--yoru); }
.r-hero {
  position: relative;
  min-height: 300px;
  padding: calc(var(--safe-t) + 70px) 20px 26px;
  text-align: center;
  background: linear-gradient(180deg, rgba(11, 18, 64, 0) 40%, var(--yoru) 100%), url(/app-development/apps/a002/img/dawn.webp) center 30% / cover no-repeat;
}
.ibtn--hero { position: absolute; left: 14px; top: calc(var(--safe-t) + 12px); }
.r-hero__kicker { display: inline-block; padding: 1px 14px; border-radius: 999px; background: #2a1d4f; font-size: 14px; color: #ffe2c4; }
.r-rank {
  margin-top: 8px;
  font-family: var(--f-title); font-size: 46px; line-height: 1.2;
  color: #fff7d8;
  text-shadow: 0 0 18px rgba(255, 215, 106, .8), 0 3px 0 #2a1d4f;
}
.r-score { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 6px; padding: 0 18px; border-radius: 999px; background: #0b1240; }
.r-score .num { font-size: 50px; line-height: 1.2; color: var(--hotaru); text-shadow: 0 0 16px rgba(200, 245, 90, .7); }
.r-score span { font-size: 18px; }
.r-new { display: flex; width: max-content; margin: 12px auto 0; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; background: var(--kin); color: #2a1d06; font-size: 15px; animation: card-in .5s var(--ease) .6s both; }
.r-new svg { width: 18px; height: 18px; }
.r-body { padding: 4px 18px calc(var(--safe-b) + 28px); }
.r-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.r-stats li {
  display: grid; justify-items: center; align-content: center;
  grid-template-columns: auto auto; column-gap: 2px;
  padding: 12px 4px; border-radius: var(--r-m);
  background: #141d5c;
  box-shadow: 0 0 0 1px rgba(200, 245, 90, .18) inset;
}
.r-stats__k { grid-column: 1 / -1; font-size: 12px; color: var(--mist); word-break: keep-all; text-align: center; line-height: 1.4; }
.r-stats .num { font-size: 28px; line-height: 1.3; color: var(--tsuki); justify-self: end; }
.r-stats__u { font-size: 13px; align-self: end; padding-bottom: 6px; justify-self: start; }
.r-h2 { margin: 24px 0 10px; font-family: var(--f-title); font-size: 21px; color: var(--hotaru); display: flex; align-items: center; gap: 10px; }
.r-h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(200, 245, 90, .5), rgba(200, 245, 90, 0)); }
.r-bars { list-style: none; display: grid; gap: 10px; }
.r-bar { display: grid; grid-template-columns: 26px 64px 1fr auto; align-items: center; gap: 8px; font-size: 15px; }
.r-bar svg { width: 22px; height: 22px; filter: drop-shadow(0 0 6px currentColor); }
.r-bar__track { height: 12px; border-radius: 99px; background: #1c2766; overflow: hidden; }
.r-bar__fill { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.r-bar .num { font-size: 16px; min-width: 2.6em; text-align: right; }
.r-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.r-actions__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r-hist { list-style: none; display: grid; gap: 2px; }
.r-hist li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--r-s);
  background: #10185078;
  background: #111a55;
}
.r-hist li.is-now { box-shadow: 0 0 0 1px var(--hotaru) inset; }
.r-hist__d { font-size: 14px; color: var(--mist); }
.r-hist__l { font-size: 14px; }
.r-hist .num { font-size: 18px; color: var(--tsuki); }
.r-hist__rank { font-family: var(--f-title); font-size: 14px; color: var(--hotaru); margin-left: 6px; }

/* ---------- ナビバー（図鑑・設定） ---------- */
.navbar {
  position: relative; z-index: 3; flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 10px) 14px 10px;
  background: linear-gradient(180deg, #0b1240 70%, rgba(11, 18, 64, 0));
}
.navbar__title { flex: 1; text-align: center; font-family: var(--f-title); font-size: 23px; color: #f4ffd6; text-shadow: 0 0 12px rgba(200, 245, 90, .55); }
.navbar__count { width: 46px; text-align: right; font-family: var(--f-num); font-size: 15px; color: var(--hotaru); white-space: nowrap; }

/* ---------- 図鑑 ---------- */
.screen--zukan { background: var(--yoru) radial-gradient(90% 50% at 50% 0%, #1b2a80, var(--yoru)); }
.z-lead { padding: 0 20px 14px; text-align: center; font-size: 15px; color: var(--mist); word-break: keep-all; }
.z-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 16px; }
.z-card {
  position: relative; display: block; width: 100%; text-align: left;
  border-radius: 22px 22px var(--r-m) var(--r-m);
  overflow: hidden;
  background: #141d5c;
  box-shadow: 0 0 0 1px rgba(200, 245, 90, .2) inset;
  transition: transform var(--t-fast) var(--ease);
  animation: card-in .45s var(--ease) both;
}
.z-card:active { transform: scale(.96); }
.z-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.z-card.is-locked img { filter: brightness(.22) saturate(.3) blur(5px); transform: scale(1.08); }
.z-card__lock { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #0b1240; color: var(--kin); }
.z-card__body { display: block; padding: 8px 12px 12px; }
.z-card__name { display: flex; align-items: center; gap: 6px; font-family: var(--f-title); font-size: 19px; line-height: 1.3; }
.z-card__name svg { width: 18px; height: 18px; filter: drop-shadow(0 0 5px currentColor); }
.z-card__rec { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--mist); }
.z-card__rec .num { font-size: 15px; color: var(--tsuki); }
.z-card__hint { margin-top: 4px; font-size: 13px; color: var(--mist); line-height: 1.5; word-break: normal; }
.z-note { padding: 18px 20px calc(var(--safe-b) + 28px); font-size: 13px; color: var(--mist); text-align: center; word-break: keep-all; }

.sheet-scrim { position: absolute; inset: 0; z-index: 9; background: rgba(5, 8, 32, .7); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  max-height: 88%;
  overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--r-l) var(--r-l) 0 0;
  background: #141d5c;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(200, 245, 90, .25) inset;
  animation: sheet-in .38s var(--ease);
  touch-action: pan-y;
}
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet__grip { display: block; width: 40px; height: 5px; margin: 10px auto 0; border-radius: 9px; background: #4b5aa8; }
.ibtn--sheet { position: absolute; right: 12px; top: 12px; z-index: 2; }
.sheet__body { padding: 8px 20px calc(var(--safe-b) + 24px); }
.sp-hero { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding-right: 40px; }
.sp-hero img { width: 120px; height: 120px; border-radius: var(--r-m); object-fit: cover; box-shadow: 0 0 24px rgba(200, 245, 90, .25); }
.sp-hero.is-locked img { filter: brightness(.22) saturate(.3) blur(5px); }
.sp-name { font-family: var(--f-title); font-size: 28px; line-height: 1.25; }
.sp-yomi { font-size: 13px; color: var(--mist); }
.sp-mark { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; }
.sp-mark svg { width: 20px; height: 20px; filter: drop-shadow(0 0 5px currentColor); }
.sp-text { margin-top: 14px; font-size: 15px; word-break: normal; }
.sp-recs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sp-recs li { padding: 10px 12px; border-radius: var(--r-s); background: #0f1650; }
.sp-recs span { display: block; font-size: 12px; color: var(--mist); }
.sp-recs .num { font-size: 22px; }
.sp-recs small { font-size: 13px; margin-left: 2px; }

/* ---------- 設定 ---------- */
.screen--settings { background: var(--yoru) radial-gradient(90% 50% at 50% 0%, #1b2a80, var(--yoru)); }
.screen--settings .scroller { padding: 0 18px calc(var(--safe-b) + 32px); }
.st-h2 { margin: 18px 0 10px; font-family: var(--f-title); font-size: 21px; color: var(--hotaru); }
.howto { list-style: none; display: grid; gap: 12px; }
.howto__item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px; border-radius: var(--r-m); background: #141d5c; box-shadow: 0 0 0 1px rgba(200, 245, 90, .16) inset; }
.howto__pic svg, .coach__pic svg { width: 100%; height: 100%; }
.howto__pic { width: 92px; height: 92px; border-radius: var(--r-s); background: #0b1240 no-repeat center / 100% 100%; }
.howto__txt h3 { font-family: var(--f-title); font-size: 18px; line-height: 1.4; color: #f4ffd6; }
.howto__txt p { margin-top: 4px; font-size: 14px; line-height: 1.65; word-break: normal; }
.prefs { list-style: none; display: grid; gap: 2px; border-radius: var(--r-m); overflow: hidden; }
.pref { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; background: #141d5c; cursor: pointer; }
.pref__k { flex: 1; display: grid; }
.pref__k b { font-weight: 600; font-size: 16px; }
.pref__k small { font-size: 13px; color: var(--mist); line-height: 1.5; }
.switch {
  appearance: none; -webkit-appearance: none;
  flex: none; position: relative;
  width: 54px; height: 32px; border-radius: 99px;
  background: #2b376f; cursor: pointer;
  transition: background .2s;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #cfd8f5; transition: transform .25s var(--ease), background .2s; }
.switch:checked { background: #6f9c2a; }
.switch:checked::after { transform: translateX(22px); background: var(--hotaru); box-shadow: 0 0 10px var(--hotaru); }
.js-reset { margin-top: 14px; width: 100%; }
.about { margin-top: 4px; padding: 20px 18px; border-radius: var(--r-m); background: #141d5c; text-align: center; }
.about__icon { border-radius: 18px; box-shadow: 0 0 24px rgba(200, 245, 90, .35); }
.about__name { margin-top: 8px; font-family: var(--f-title); font-size: 21px; }
.about__ver { font-family: var(--f-num); font-size: 13px; color: var(--mist); }
.about__text { margin-top: 10px; text-align: left; font-size: 14px; word-break: normal; }
.about__tech { margin-top: 12px; text-align: left; font-size: 13px; color: var(--mist); display: grid; }
.about__tech span:first-child { color: var(--hotaru); }
.about__cta { margin-top: 16px; }

.dialog-scrim { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(5, 8, 32, .8); animation: fade .2s ease; }
.dialog { width: 100%; max-width: 320px; padding: 22px; border-radius: var(--r-m); background: #1a2468; box-shadow: 0 0 0 1px rgba(255, 155, 138, .4) inset; animation: card-in .3s var(--ease); }
.dialog h2 { font-family: var(--f-title); font-size: 21px; }
.dialog p { margin-top: 8px; font-size: 14px; word-break: normal; }
.dialog__btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- トースト ---------- */
.toast {
  position: absolute; left: 50%; top: calc(var(--safe-t) + 72px); z-index: 40;
  transform: translate(-50%, -14px); opacity: 0;
  max-width: calc(100% - 40px);
  padding: 8px 18px; border-radius: 999px;
  background: #e8f1ff; color: #0b1240; font-size: 15px;
  box-shadow: 0 0 24px rgba(200, 245, 90, .4);
  transition: opacity .25s, transform .3s var(--ease);
  pointer-events: none; word-break: keep-all; text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .splash { display: none; }
}
@media (max-height: 700px) {
  .title__head { padding-top: 1vh; }
  .logo { font-size: 50px; }
  .r-hero { min-height: 250px; padding-top: calc(var(--safe-t) + 56px); }
}
