/* 星図のカード — 深藍の夜空と金の版画線、象牙の紙のカード */
:root {
  --ink: #0b1230;
  --night: #131c40;
  --night2: #1c2858;
  --night3: #24326a;
  --gold: #d6b061;
  --gold-hi: #f1d993;
  --gold-lo: #8a6a2a;
  --ivory: #f0e6cb;
  --muted: #c4bba1;
  --paper: #efe3c4;
  --paper2: #e3d3ad;
  --paper-ink: #2a2214;
  --vermil: #e0715b;
  --vermil-d: #a63a27;
  --frost: #a8c8ea;
  --frost-d: #2b5684;
  --sage: #9cc7a4;
  --f-min: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --f-goth: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-lat: 'Cinzel', 'Shippori Mincho B1', serif;
  --r-card: 9px;
  --r-sheet: 22px;
  --spring: cubic-bezier(.3, 1.45, .5, 1);
  --ease: cubic-bezier(.22, .8, .25, 1);
  --t-fast: .16s;
  --t-mid: .26s;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --cut: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink) radial-gradient(1px 1px at 20% 30%, #d6b06166 50%, transparent 51%) 0 0 / 46px 46px;
  color: var(--ivory);
  font-family: var(--f-goth);
  font-size: 15px;
  line-height: 1.6;
  line-break: strict;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; flex: none; }
img { display: block; max-width: 100%; }
.num { font-family: var(--f-lat); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4, .bar__h, .sheet__h { font-feature-settings: "palt"; word-break: keep-all; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

/* ===== アプリの外枠 ===== */
.app { position: fixed; inset: 0; overflow: hidden; background: var(--ink); }
@media (min-width: 600px) {
  body { background: #070b1e radial-gradient(1.2px 1.2px at 30% 40%, #d6b06155 50%, transparent 51%) 0 0 / 38px 38px; }
  .app { left: 50%; width: 430px; transform: translateX(-50%); box-shadow: 0 0 0 1px #d6b06140, 0 30px 80px #000a; }
}
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  visibility: hidden; opacity: 0; pointer-events: none;
  background: var(--ink);
}
.screen.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.screen.is-enter { animation: enter var(--t-mid) var(--ease); }
@keyframes enter { from { opacity: 0; transform: scale(1.02); } }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(24px + var(--safe-b)); }

/* ===== 共通のバー ===== */
.bar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: calc(8px + var(--safe-t)) 10px 8px;
  background: var(--ink);
  border-bottom: 1px solid #d6b06133;
  position: relative; z-index: 5;
}
.bar--clear { background: transparent; border-bottom: 0; }
.bar__title { flex: 1; text-align: center; min-width: 0; }
.bar__kicker { font-family: var(--f-lat); font-size: 11px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; line-height: 1.3; }
.bar__h { font-family: var(--f-min); font-weight: 800; font-size: 18px; line-height: 1.3; color: var(--ivory); }
.bar__pad { width: 44px; flex: none; }
.icon-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  color: var(--gold-hi); font-size: 22px;
  background: #131c40; box-shadow: inset 0 0 0 1px #d6b06155;
  transition: transform var(--t-fast) var(--spring), background var(--t-fast);
}
.icon-btn:active { transform: scale(.9); background: var(--night2); }

/* ===== 銘板ボタン（角を切った板） ===== */
.plate {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  font-family: var(--f-min); font-weight: 800; font-size: 16px; letter-spacing: .04em; line-height: 1.3;
  clip-path: var(--cut);
  transition: transform var(--t-fast) var(--spring), filter var(--t-fast);
  word-break: keep-all;
}
.plate svg { font-size: 18px; }
.plate:active { transform: scale(.96); filter: brightness(1.12); }
.plate:disabled { cursor: default; }
.plate--gold:disabled, .plate--ink:disabled { background: #2a3466; color: #d8cfb4; filter: none; }
.plate--gold:disabled::after { box-shadow: inset 0 0 0 1px #d6b06155; }
.plate--gold { color: #1a1406; background: #dcb766; box-shadow: inset 0 3px 0 #f6e2a6, inset 0 -4px 0 #a8833a; }
.plate--gold::after { content: ""; position: absolute; inset: 3px; clip-path: var(--cut); box-shadow: inset 0 0 0 1px #6b4f1a88; pointer-events: none; }
.plate--ink { color: var(--gold-hi); background: #18224d; box-shadow: inset 0 0 0 1px #d6b06180; }
.plate--ghost { color: var(--gold-hi); background: #0b1230; min-height: 44px; font-size: 15px; }
.plate--danger { color: #ffe3dc; background: #6e2418; }
.plate--xl { min-height: 60px; font-size: 20px; padding: 12px 30px; }
.plate--wide { display: flex; width: 100%; }

/* ===== タイトル ===== */
.screen--title {
  background: var(--ink) url(/app-development/apps/a005/img/title.webp) center top / cover no-repeat;
}
.screen--title::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b123000 30%, #0b1230cc 66%, #0b1230 88%); pointer-events: none; }
.title__top { position: relative; display: flex; justify-content: flex-end; padding: calc(10px + var(--safe-t)) 12px 0; z-index: 2; }
.title__logo { position: relative; z-index: 1; text-align: center; padding: 6vh 20px 0; }
.title__kicker { font-family: var(--f-lat); font-weight: 700; font-size: 13px; letter-spacing: .5em; color: var(--gold-hi); text-transform: uppercase; padding-left: .5em; }
.logo { font-family: var(--f-min); font-weight: 800; color: var(--gold-hi); line-height: 1.1; margin-top: 10px; display: flex; justify-content: center; align-items: baseline; gap: 2px; text-shadow: 0 2px 0 #0b1230, 0 0 24px #0b1230; }
.logo__a, .logo__b { font-size: 50px; letter-spacing: .04em; }
.logo__no { font-size: 30px; color: var(--ivory); }
.title__lead span { background: #0b1230b8; padding: 0 8px; border-radius: 4px; }
.title__lead { display: flex; flex-direction: column; align-items: center; margin-top: 12px; font-family: var(--f-min); font-weight: 700; font-size: 15px; color: var(--ivory); word-break: keep-all; text-shadow: 0 1px 6px #0b1230; }
.title__bottom { position: relative; z-index: 1; margin-top: auto; padding: 0 20px calc(22px + var(--safe-b)); display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.title__run { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; padding: 8px 12px; background: #0b1230; border: 1px solid #d6b06166; border-radius: 999px; font-size: 14px; color: var(--ivory); }
.title__run .num { display: inline-flex; align-items: center; gap: 4px; color: var(--vermil); }
.title__run-k { color: var(--gold-hi); font-weight: 700; }
.title__sub { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.title__sub .plate { flex-direction: column; gap: 2px; padding: 8px 4px; font-size: 13.5px; min-height: 62px; }
.title__sub .plate svg { font-size: 20px; }
.title__best { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); background: #0b1230; padding: 4px 0 0; }
.title__best b { color: var(--gold-hi); font-size: 15px; }

/* ===== マップ ===== */
.screen--map { background: var(--ink); }
.map-status { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 14px 10px; background: var(--ink); border-bottom: 1px solid #d6b06133; position: relative; z-index: 4; }
.mstat { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--muted); }
.mstat svg { color: var(--gold); font-size: 16px; }
.mstat:first-child svg { color: var(--vermil); }
.mstat b { font-size: 17px; color: var(--ivory); }
.mstat i { font-style: normal; font-size: 13px; color: var(--muted); }
.mstat-hint { flex-basis: 100%; font-size: 14px; color: var(--gold-hi); font-family: var(--f-min); font-weight: 700; }
.mstat-cta { flex-basis: 100%; }
.map-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; position: relative; }
.map-board {
  position: relative; margin: 0;
  background: var(--ink) url(/app-development/apps/a005/img/map.webp) center top / 100% auto repeat-y;
}
.map-board::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 30%, #0b1230aa 100%); pointer-events: none; }
.map-lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.path { stroke: #d6b06155; stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; }
.path.is-walked { stroke: var(--gold); stroke-width: 2.4; stroke-dasharray: none; }
.path.is-next { stroke: var(--gold-hi); stroke-width: 2; stroke-dasharray: 5 5; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.floor-band { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid #d6b06144; }
.floor-band span { position: absolute; top: -12px; }
.floor-band__n { left: 12px; font-size: 13px; color: var(--gold); background: var(--ink); padding: 0 6px; line-height: 24px; border: 1px solid #d6b06166; border-radius: 4px; }
.floor-band__t { left: 50px; font-family: var(--f-min); font-weight: 700; font-size: 13px; color: var(--muted); background: var(--ink); padding: 0 8px; line-height: 24px; }
.floor-band.is-cur .floor-band__t { color: var(--gold-hi); }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; z-index: 2; }
.node__disc {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  color: var(--gold-hi); background: #0f1736; box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 4px #0b1230;
  transition: transform var(--t-fast) var(--spring);
}
.node:active .node__disc { transform: scale(.9); }
.node__l { font-family: var(--f-min); font-weight: 700; font-size: 12.5px; line-height: 1.3; color: var(--ivory); background: var(--ink); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.node--elite .node__disc { width: 60px; height: 60px; box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 5px #0f1736, inset 0 0 0 6px #d6b06199, 0 0 0 4px #0b1230; }
.node--boss { width: 110px; }
.node--boss .node__disc { width: 82px; height: 82px; font-size: 40px; background: radial-gradient(circle at 50% 40%, #2a3672, #0f1736 70%); box-shadow: inset 0 0 0 2px var(--gold-hi), 0 0 0 5px #0b1230, 0 0 30px #d6b06155; }
.node--boss .node__l { font-size: 14px; color: var(--gold-hi); }
.node--rest .node__disc { color: var(--sage); }
.node--chest .node__disc { color: #f3c98a; }
.node.is-locked .node__disc { filter: brightness(.62) saturate(.5); }
.node.is-done .node__disc { background: var(--gold); color: #1a1406; box-shadow: 0 0 0 4px #0b1230; }
.node.is-cur .node__disc { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 0 7px #0b1230, 0 0 22px #f1d99399; }
.node.is-next .node__disc { animation: beckon 1.6s var(--ease) infinite; }
.node.is-next .node__l { color: var(--gold-hi); }
@keyframes beckon { 0%, 100% { box-shadow: inset 0 0 0 1.5px var(--gold-hi), 0 0 0 4px #0b1230, 0 0 0 4px #f1d99300; } 50% { box-shadow: inset 0 0 0 1.5px var(--gold-hi), 0 0 0 4px #0b1230, 0 0 0 12px #f1d99333; } }
.map-gate { position: absolute; left: 50%; transform: translate(-50%, -50%); font-family: var(--f-min); font-weight: 700; font-size: 13px; color: var(--gold-hi); background: var(--ink); border: 1px solid #d6b06166; padding: 2px 12px; border-radius: 999px; }

/* ===== バトル ===== */
.screen--battle {
  background:
    radial-gradient(120% 60% at 50% 18%, #24326a 0%, #131c40 48%, #0b1230 100%);
}
.screen--battle::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(1px 1px at 12% 22%, #f1d993 50%, transparent 51%), radial-gradient(1px 1px at 68% 12%, #f0e6cb 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 82% 34%, #f1d993 50%, transparent 51%), radial-gradient(1px 1px at 34% 8%, #f0e6cb 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 40%, #f1d993 50%, transparent 51%); background-size: 180px 220px; }
.bar--battle { background: #0b1230; }
.turn-chip { display: flex; flex-direction: column; align-items: center; width: 44px; line-height: 1.1; }
.turn-chip span { font-size: 11px; color: var(--muted); }
.turn-chip b { font-size: 20px; color: var(--gold-hi); }
.demo-chip { position: absolute; top: calc(70px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 30; width: max-content; max-width: calc(100% - 32px);
  padding: 8px 16px; border-radius: 999px; background: #0b1230; border: 1px solid var(--gold); color: var(--gold-hi); font-size: 14px; font-weight: 700; text-align: center; word-break: keep-all; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { border-color: #d6b06144; } }
.stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 10px 0; }
.foes { width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 6px; }
.foe { position: relative; display: flex; flex-direction: column; align-items: center; width: 62%; transition: opacity .4s, transform .4s; }
.foes[data-n="2"] .foe { width: 48%; }
.foes[data-n="3"] .foe { width: 32%; }
.foe--small { transform: scale(.88); transform-origin: bottom; }
.foe.is-dead { opacity: 0; transform: scale(.8) translateY(10px); pointer-events: none; }
.foes[data-n="2"] .foe.is-dead, .foes[data-n="3"] .foe.is-dead { visibility: hidden; }
.foe.is-dying .foe__body img { filter: brightness(3) saturate(0); transition: filter .25s; }
.foe__body { position: relative; width: 100%; aspect-ratio: 1; max-height: 34vh; display: grid; place-items: center; }
.foe__body img { width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); pointer-events: none; animation: hover 4s ease-in-out infinite; }
.foe:nth-child(2) .foe__body img { animation-delay: -1.3s; }
@keyframes hover { 50% { transform: translateY(-5px); } }
.foe--boss .foe__body { max-height: 38vh; }
.reticle { position: absolute; inset: 10%; border-radius: 50%; border: 1.5px dashed transparent; pointer-events: none; transition: border-color .2s; }
.foe.is-target .reticle { border-color: #f1d993aa; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.foe__preview { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; font-family: var(--f-lat); font-weight: 800; font-size: 22px; color: #1a1406; background: var(--gold-hi); padding: 0 10px; border-radius: 6px; transition: opacity .15s, transform .2s var(--spring); pointer-events: none; }
.foe__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.foe__name { font-family: var(--f-min); font-weight: 700; font-size: 13.5px; line-height: 1.3; color: var(--ivory); text-align: center; margin-top: -4px; word-break: keep-all; }
.foes[data-n="3"] .foe__name { font-size: 12px; }
.intent { display: flex; align-items: center; gap: 3px; min-height: 34px; padding: 3px 9px; border-radius: 999px; background: #0b1230; box-shadow: inset 0 0 0 1px #d6b06166; margin-bottom: -6px; z-index: 2; }
.intent:empty { visibility: hidden; }
.it { display: inline-flex; align-items: center; gap: 2px; font-size: 18px; }
.it b { font-size: 17px; line-height: 1; }
.it small { font-size: 12px; margin-left: 1px; }
.it--atk { color: #ff9a85; }
.it--atk.is-big { color: #ffb9a8; animation: warn 1s ease-in-out infinite; }
@keyframes warn { 50% { transform: scale(1.12); } }
.it--def { color: var(--frost); }
.it--buff { color: var(--gold-hi); }
.it--curse { color: #c8b4ff; }
.it--summon { color: var(--gold-hi); }
.hpbar { position: relative; width: 100%; max-width: 170px; height: 16px; margin-top: 4px; border-radius: 3px; background: #2a1820; box-shadow: inset 0 0 0 1px #d6b06155; }
.hpbar > i { position: absolute; inset: 2px; border-radius: 2px; background: linear-gradient(180deg, #e98571, #b8432e); transform-origin: left; transition: transform .35s var(--ease); }
.hpbar__num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000, 0 1px 1px #000; line-height: 1; }
.block-badge { position: absolute; left: -10px; top: 50%; transform: translateY(-50%); min-width: 26px; height: 26px; padding: 0 4px; display: grid; place-items: center;
  font-family: var(--f-lat); font-size: 13px; color: #0b1230; background: var(--frost); clip-path: polygon(50% 0, 100% 18%, 100% 60%, 50% 100%, 0 60%, 0 18%); }
.sts { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 22px; margin-top: 4px; }
.st { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 700; background: #0b1230; box-shadow: inset 0 0 0 1px currentColor; cursor: pointer; }
.st b { font-size: 12px; }
.st--glow { color: var(--gold-hi); }
.st--cycle { color: var(--sage); }
.st--reflect { color: var(--frost); }
.st--haze { color: #c9d3e6; }
.st--eclipse { color: #d7c4ff; }
.st--scar { color: #ffa48f; }
.st--none { color: var(--muted); box-shadow: none; font-weight: 500; cursor: default; padding: 0; background: transparent; }
.mid { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 14px 0; position: relative; z-index: 3; }
.me { flex: 1; min-width: 0; padding: 8px 12px 6px 16px; background: #0f1736; border-radius: 10px; box-shadow: inset 0 0 0 1px #d6b06144; transition: box-shadow .3s; }
.me.is-low { box-shadow: inset 0 0 0 1px var(--vermil), 0 0 18px #e0715b44; }
.me__name { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-min); font-weight: 800; font-size: 14px; }
.me__hp { font-size: 15px; color: #ff9a85; }
.hpbar--me { max-width: none; }
.me .sts { justify-content: flex-start; }
.astro { position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, #1c2858 0%, #0f1736 70%); box-shadow: inset 0 0 0 1px #d6b06166, 0 0 0 4px #0b1230; transition: box-shadow .3s, transform .3s var(--spring); }
.astro__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.astro .ring { fill: none; stroke: #d6b06188; stroke-width: .7; }
.astro .ring--in { stroke: #d6b06144; stroke-dasharray: 1 2; }
.astro .tick { stroke: #d6b06188; stroke-width: .7; }
.astro .ln { stroke: #f0e6cb33; stroke-width: .8; stroke-dasharray: 1.5 2; }
.astro .ln.is-on { stroke: var(--gold-hi); stroke-width: 1.4; stroke-dasharray: none; }
.astro .st-dot { fill: #f0e6cb66; transition: r .2s; }
.astro .st-dot.is-on { fill: var(--gold-hi); filter: drop-shadow(0 0 2px #f1d993); }
.astro__count { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); display: flex; align-items: baseline; gap: 1px; padding: 0 8px; border-radius: 999px; background: #0b1230; box-shadow: inset 0 0 0 1px var(--gold); line-height: 22px; }
.astro__count b { font-size: 15px; color: var(--gold-hi); }
.astro__count i { font-style: normal; color: var(--muted); font-size: 13px; }
.astro.is-done { box-shadow: inset 0 0 0 1.5px var(--gold-hi), 0 0 0 4px #0b1230, 0 0 28px #f1d99388; animation: glowpulse 1.6s ease-in-out infinite; }
@keyframes glowpulse { 50% { box-shadow: inset 0 0 0 1.5px var(--gold-hi), 0 0 0 4px #0b1230, 0 0 10px #f1d99344; } }
.astro.is-over .st-dot.is-on, .astro.is-over .ln.is-on { fill: #e0715b; stroke: #e0715b; filter: none; }
.astro.is-new { transform: rotate(-18deg) scale(.94); }
.astro-name { flex: none; display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; padding: 10px 16px 0; font-family: var(--f-min); font-weight: 700; font-size: 14px; color: var(--gold-hi); line-height: 1.3; min-height: 28px; position: relative; z-index: 3; }
.astro-name__st { font-family: var(--f-goth); font-weight: 500; font-size: 13px; color: var(--ivory); }
.astro-name__st b { color: var(--gold-hi); font-size: 14px; }
.astro-name__st.is-over { color: #ff9a85; }
.ctrl { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 0; position: relative; z-index: 3; }
.energy { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 11px; flex: none;
  background: #dcb766; box-shadow: inset 6px 6px 10px #fff2c4aa, inset -6px -8px 12px #8a6a2a, 0 0 0 3px #0b1230, 0 0 0 4px #d6b06188, 0 0 18px #d6b06166; color: #1a1406; transition: filter .2s; }
.energy b { font-size: 25px; line-height: 1; }
.energy i { font-style: normal; font-size: 13px; }
.energy.is-empty { background: #8d8a80; box-shadow: inset 6px 6px 10px #ffffff44, inset -6px -8px 12px #3a3a40, 0 0 0 3px #0b1230, 0 0 0 4px #d6b06144; }
.pile { width: 46px; height: 46px; flex: none; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: #0f1736; box-shadow: inset 0 0 0 1px #d6b06155; color: var(--gold-hi); line-height: 1; }
.pile svg { font-size: 18px; }
.pile b { font-size: 14px; margin-top: 2px; color: var(--ivory); }
.pile:active { transform: scale(.92); }
.plate--end { margin-left: auto; min-height: 48px; padding: 8px 18px; font-size: 16px; }
.plate--end.is-suggest { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { filter: brightness(1.2); transform: translateY(-2px); } }
.hand { --cw: 90px; position: relative; flex: none; height: calc(var(--cw) * 1.42 + 36px + var(--safe-b)); margin-top: 4px; z-index: 6; touch-action: none; }
.hcard {
  position: absolute; left: 0; bottom: calc(22px + var(--safe-b)); width: var(--cw);
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transform-origin: 50% 110%;
  transition: transform .24s var(--spring), filter .2s;
  touch-action: none;
}
.hcard .card { box-shadow: 0 6px 14px #0008; }
.hcard.is-sel .card { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 22px #f1d99388, 0 10px 22px #000a; }
.hcard.is-off { filter: brightness(.6) saturate(.5); }
.hcard.is-drag { transition: none; transform: translate(calc(var(--x) + var(--dx, 0px)), calc(-30px + var(--dy, 0px))) scale(1.12); z-index: 60 !important; }
.hcard.is-armed .card { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 30px #f1d993; }
.hcard.is-new { animation: dealt .36s var(--ease) backwards; }
.hcard.is-new:nth-child(2) { animation-delay: .05s; } .hcard.is-new:nth-child(3) { animation-delay: .1s; } .hcard.is-new:nth-child(4) { animation-delay: .15s; } .hcard.is-new:nth-child(5) { animation-delay: .2s; } .hcard.is-new:nth-child(6) { animation-delay: .25s; }
@keyframes dealt { from { translate: -150px 40px; rotate: -30deg; opacity: 0; } }
.hcard.is-out { transition: transform .22s ease-in, opacity .22s; transform: translate(calc(100vw), 60px) rotate(30deg) scale(.6); opacity: 0; }
.hcard.is-no { animation: no .3s; }
@keyframes no { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
.ghost { position: absolute; z-index: 70; pointer-events: none; transition: transform .36s cubic-bezier(.5, 0, .7, .4), opacity .36s ease-in; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.float { position: absolute; z-index: 45; transform: translate(-50%, -50%); pointer-events: none; font-family: var(--f-lat); font-weight: 800; font-size: 30px; line-height: 1; white-space: nowrap;
  color: #fff7e3; -webkit-text-stroke: 1px #0b1230; text-shadow: 0 2px 0 #0b1230, 0 0 12px #0b1230; animation: floatup 1s var(--ease) forwards; }
.float--hurt { color: #ff8a73; font-size: 34px; }
.float--block { color: var(--frost); font-size: 22px; font-family: var(--f-min); }
.float--star { color: var(--gold-hi); }
.float--scar { color: #ffb19f; font-size: 24px; }
.float--reflect { color: var(--frost); font-size: 24px; }
.float--st { font-family: var(--f-min); font-size: 18px; color: #e3d6ff; }
@keyframes floatup { 0% { transform: translate(-50%, -30%) scale(.5); opacity: 0; } 18% { transform: translate(-50%, -80%) scale(1.25); opacity: 1; } 100% { transform: translate(-50%, -190%) scale(1); opacity: 0; } }
.banner { position: absolute; left: 0; right: 0; top: 36%; z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 16px;
  background: #0b1230; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); opacity: 0; transform: scaleY(0); transition: opacity .2s, transform .25s var(--spring); pointer-events: none; }
.banner.is-on { opacity: 1; transform: scaleY(1); }
.banner__t { font-family: var(--f-min); font-weight: 800; font-size: 26px; color: var(--gold-hi); letter-spacing: .08em; line-height: 1.3; }
.banner__s { font-size: 14px; color: var(--ivory); }
.banner--turn .banner__t { font-size: 20px; }
.banner--foe { border-color: var(--vermil); }
.banner--foe .banner__t { color: #ffb2a1; font-size: 20px; }
.banner--lose { border-color: var(--vermil); }
.banner--lose .banner__t { color: #ffb2a1; }
.banner--const .banner__t { font-size: 22px; }
.screen--battle::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 39; opacity: 0; transition: opacity .25s; box-shadow: inset 0 0 90px 10px #e0715b; }
.screen--battle.is-hurt::after { opacity: .7; transition: none; }
.screen--battle.is-glow::after { opacity: .6; box-shadow: inset 0 0 90px 10px #f1d993; transition: none; }
.screen--battle.is-fallen .stage, .screen--battle.is-fallen .mid { filter: grayscale(.8) brightness(.6); transition: filter 1s; }
.is-shake { animation: shake .3s; }
.is-quake { animation: quake .42s; }
@keyframes shake { 20% { translate: -5px 2px; } 40% { translate: 5px -2px; } 60% { translate: -3px 1px; } 80% { translate: 2px 0; } }
@keyframes quake { 15% { translate: -10px 4px; } 30% { translate: 9px -5px; } 45% { translate: -7px 3px; } 60% { translate: 5px -2px; } 80% { translate: -2px 1px; } }
.foe.is-hit .foe__body { animation: hit .3s; }
@keyframes hit { 0% { filter: brightness(2.6); translate: 0 0; } 30% { translate: 8px -2px; } 60% { translate: -5px 0; filter: brightness(1.2); } }
.foe.is-lunge { animation: lunge .32s var(--ease); }
@keyframes lunge { 40% { translate: 0 22px; scale: 1.06; } }
.foe.is-acting .intent { box-shadow: inset 0 0 0 2px var(--gold-hi); }
.act-tag { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); z-index: 3; padding: 2px 10px; border-radius: 4px; background: #0b1230; border: 1px solid var(--vermil); font-family: var(--f-min); font-weight: 800; font-size: 14px; color: #ffd2c7; white-space: nowrap; animation: tagin .25s var(--spring); }
@keyframes tagin { from { transform: translateX(-50%) scale(.6); opacity: 0; } }
.is-stop .foe__body img, .is-stop .float, .is-stop .hcard { animation-play-state: paused !important; }
.screen--battle.is-busy .hand { pointer-events: none; }
.screen--battle.is-demo .hand { pointer-events: none; }
.coach { position: absolute; inset: 0; z-index: 80; background: #050816d9; display: grid; place-items: center; padding: 24px; }
.coach__card { width: 100%; max-width: 340px; padding: 22px 20px 18px; background: var(--night); border: 1px solid var(--gold); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; }
.coach__h { font-family: var(--f-min); font-weight: 800; font-size: 20px; color: var(--gold-hi); }
.coach__p { font-size: 15px; line-height: 1.7; }
.coach__p b { color: var(--gold-hi); }

/* ===== カード（象牙の紙・金の二重罫） ===== */
.card {
  --tc: #a63a27;
  position: relative; width: var(--cw); height: calc(var(--cw) * 1.42); border-radius: var(--r-card);
  background: #f1e5c8;
  box-shadow: inset 0 -18px 30px -12px #d9c595, 0 2px 6px #0006;
  color: var(--paper-ink); display: flex; flex-direction: column; align-items: center; padding: calc(var(--cw) * .07) calc(var(--cw) * .06) calc(var(--cw) * .05);
  text-align: center; overflow: visible;
}
.card::before { content: ""; position: absolute; inset: 3px; border-radius: calc(var(--r-card) - 3px); border: 1px solid #a9832f; box-shadow: inset 0 0 0 2px #f6ecd2, inset 0 0 0 3px #a9832f66; pointer-events: none; }
.card--def { --tc: #2b5684; }
.card--sk { --tc: #7a5b16; }
.card.is-up { background: #f6e8c0; }
.card.is-up::before { border-color: #c89a2e; box-shadow: inset 0 0 0 2px #fbf0cf, inset 0 0 0 3px #c89a2e; }
.card__cost { position: absolute; left: -5px; top: -5px; z-index: 2; width: calc(var(--cw) * .3); height: calc(var(--cw) * .3); min-width: 24px; min-height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #2a3a7a, #0b1230); color: var(--gold-hi); font-weight: 800; font-size: max(14px, calc(var(--cw) * .19)); box-shadow: 0 0 0 1.5px var(--gold), 0 2px 4px #0008; line-height: 1; }
.card__stars { position: absolute; right: 7px; top: 6px; z-index: 2; display: flex; gap: 0; color: #9a6f1a; font-size: max(9px, calc(var(--cw) * .1)); line-height: 1; }
.card__stars i { font-style: normal; font-family: var(--f-lat); font-weight: 800; font-size: max(10px, calc(var(--cw) * .11)); }
.card__stars--minus { color: #a63a27; }
.card__stars--zero { color: #5a4a28; }
.card__stars--zero svg { opacity: .45; }
.card__art { position: relative; width: 100%; height: 38%; margin-top: calc(var(--cw) * .12); border-radius: 4px; background: #121a3a center / cover no-repeat; box-shadow: inset 0 0 0 1px #a9832f; overflow: hidden; flex: none; }
.card__art--attack { background-image: url(/app-development/apps/a005/img/art-attack.webp); }
.card__art--guard { background-image: url(/app-development/apps/a005/img/art-guard.webp); }
.card__art--skill { background-image: url(/app-development/apps/a005/img/art-skill.webp); }
.card__cons { position: absolute; inset: 0; opacity: .85; }
.card__cons svg { width: 100%; height: 100%; }
.card__cons polyline { fill: none; stroke: #f1d993; stroke-width: 1; stroke-dasharray: 2 2; opacity: .8; }
.card__cons circle { fill: #fff4cf; }
.card__name { margin-top: calc(var(--cw) * .05); font-family: var(--f-min); font-weight: 800; font-size: max(12px, calc(var(--cw) * .135)); line-height: 1.2; color: var(--paper-ink); white-space: nowrap; letter-spacing: -.02em; }
.card__type { margin-top: 2px; font-size: 11px; font-weight: 700; line-height: 1; color: #fff; background: var(--tc); padding: 2px 6px 1px; border-radius: 2px; }
.card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: calc(var(--cw) * .04); font-size: max(11.5px, calc(var(--cw) * .118)); font-weight: 700; line-height: 1.32; color: var(--paper-ink); word-break: keep-all; overflow-wrap: anywhere; }
.card.is-burn .card__type::after { content: "・燃え尽き"; }
.card--lg { --cw: 132px; }
.card--unknown { background: #131c40; box-shadow: inset 0 0 0 1px #d6b06144; color: var(--muted); justify-content: center; gap: 8px; font-family: var(--f-min); font-weight: 700; font-size: 12.5px; }
.card--unknown::before { border-color: #d6b06133; box-shadow: none; }
.card--unknown svg { font-size: 26px; color: #d6b06166; }

/* ===== 報酬・星見台 ===== */
.screen--camp { background: var(--ink); }
.camp__art { position: absolute; left: 0; right: 0; top: 0; bottom: 30%; background: var(--ink) center 85% / cover no-repeat; }
.camp__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b123066 0%, #0b123000 22%, #0b123000 60%, #0b1230 100%); }
.screen--camp .bar { position: relative; z-index: 2; }
.camp__body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(18px + var(--safe-b)); }
.camp-card { display: flex; flex-direction: column; gap: 12px; }
.camp-lead { font-family: var(--f-min); font-weight: 700; font-size: 17px; line-height: 1.6; text-align: center; color: var(--ivory); word-break: keep-all; background: #0b1230; padding: 4px 8px; border-radius: 6px; }
.camp-hp { align-self: center; display: flex; align-items: baseline; gap: 4px; font-size: 15px; background: #0b1230; padding: 2px 12px; border-radius: 999px; }
.camp-hp svg { color: var(--vermil); align-self: center; }
.camp-hp b { font-size: 24px; }
.camp-hp i { font-style: normal; color: var(--muted); }
.camp-bonus { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: #ffc4b6; background: #0b1230; border-radius: 6px; padding: 4px; }
.offer { --cw: min(112px, calc((100vw - 32px - 24px) / 3)); display: flex; justify-content: center; gap: 12px; padding: 14px 0 8px; }
@media (min-width: 600px) { .offer { --cw: 112px; } }
.offer__c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .25s var(--spring); }
.offer__c:active { transform: scale(.96); }
.offer__c.is-pick { transform: translateY(-12px) scale(1.05); }
.offer__c.is-pick .card { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 26px #f1d99399; }
.offer__c.is-taken { animation: taken .5s var(--ease) forwards; }
@keyframes taken { to { transform: translateY(-80px) scale(.6); opacity: 0; } }
.offer__rar { font-size: 12px; font-weight: 700; color: var(--gold-hi); background: #0b1230; border: 1px solid #d6b06166; padding: 0 8px; border-radius: 999px; }
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; background: #131c40; border-radius: 12px; box-shadow: inset 0 0 0 1px #d6b06180; transition: transform var(--t-fast) var(--spring); min-height: 120px; }
.pick:active { transform: scale(.95); }
.pick:disabled { opacity: .5; }
.pick svg { font-size: 30px; color: var(--gold-hi); }
.pick__t { font-family: var(--f-min); font-weight: 800; font-size: 17px; color: var(--ivory); }
.pick__d { font-size: 13px; line-height: 1.4; color: var(--muted); word-break: keep-all; }
.pick__d b { color: var(--gold-hi); }

/* ===== デッキ ===== */
.tabs { flex: none; display: flex; gap: 0; margin: 10px 14px 0; padding: 4px; border-radius: 12px; background: #0f1736; box-shadow: inset 0 0 0 1px #d6b06144; }
.tab { flex: 1; min-height: 40px; border-radius: 9px; font-family: var(--f-min); font-weight: 800; font-size: 15px; color: var(--muted); transition: background .2s, color .2s; }
.tab.is-on { background: var(--gold); color: #1a1406; }
.filters { flex: none; display: flex; gap: 6px; padding: 10px 14px 6px; overflow-x: auto; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ivory); background: #131c40; box-shadow: inset 0 0 0 1px #d6b06155; white-space: nowrap; }
.chip.is-on { background: var(--ivory); color: var(--ink); }
.deck-sum { padding: 6px 16px 4px; }
.dsum { display: flex; align-items: baseline; gap: 6px; }
.dsum b { font-size: 34px; color: var(--gold-hi); line-height: 1.1; }
.dsum span { font-size: 14px; color: var(--muted); }
.dsum-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 8px 0 6px; background: #0f1736; }
.dsum-bar i { display: block; min-width: 0; }
.t-atk { background: #d0634d; } .t-def { background: #5a8cc2; } .t-sk { background: var(--gold); } .t-gold { background: var(--gold); } .t-none { background: #24326a; }
.dsum-l { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.k { white-space: nowrap; }
.k--atk { color: #ff9a85; } .k--def { color: var(--frost); } .k--sk { color: var(--gold-hi); }
.dsum-note { font-size: 14px; color: var(--ivory); margin-top: 6px; }
.grid { --cw: calc((min(100vw, 430px) - 32px - 24px) / 3); display: grid; grid-template-columns: repeat(3, var(--cw)); justify-content: center; gap: 16px 12px; padding: 14px 16px 10px; }
.grid--sheet { padding: 12px 0 16px; --cw: calc((min(100vw, 430px) - 40px - 24px) / 3); }
.gcard { display: block; transition: transform var(--t-fast) var(--spring); }
.gcard:active { transform: scale(.95); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 0; font-size: 15px; }

/* ===== リザルト ===== */
.screen--result { background: var(--ink); }
.res-hero { position: relative; min-height: 46vh; display: flex; align-items: flex-end; background: var(--ink) url(/app-development/apps/a005/img/result.webp) center 30% / cover no-repeat; }
.res-hero.is-fallen { background-image: url(/app-development/apps/a005/img/title.webp); }
.res-hero.is-fallen::before { content: ""; position: absolute; inset: 0; background: #0b1230; opacity: .55; mix-blend-mode: color; }
.res-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b123000 40%, #0b1230 100%); }
.res-hero__band { position: relative; z-index: 1; width: 100%; text-align: center; padding: 18px 16px 10px; background: linear-gradient(180deg, #0b123000, #0b1230 40%); }
.res-kicker { font-family: var(--f-lat); font-weight: 700; font-size: 12px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }
.res-h { font-family: var(--f-min); font-weight: 800; font-size: 38px; line-height: 1.25; color: var(--gold-hi); letter-spacing: .06em; }
.is-fallen .res-h { color: #ffc2b4; }
.res-sub { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; color: var(--ivory); margin-top: 4px; }
.res-prev { color: #1a1406; background: var(--gold); padding: 0 8px; border-radius: 4px; font-weight: 700; font-size: 13px; }
.res-by { font-size: 14px; color: var(--muted); margin-top: 2px; }
.res-body { padding: 4px 16px 0; }
.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #d6b06144; border: 1px solid #d6b06144; border-radius: 12px; overflow: hidden; }
.rs { background: var(--ink); padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.rs__k { font-size: 12px; color: var(--muted); word-break: keep-all; }
.rs__v b { font-size: 24px; color: var(--ivory); line-height: 1.2; }
.rs__v i { font-style: normal; font-size: 13px; color: var(--muted); margin-left: 2px; }
.res-actions { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 8px; }
.sec-h { font-family: var(--f-min); font-weight: 800; font-size: 17px; color: var(--gold-hi); margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.sec-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #d6b06177, transparent); }
.hist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.hist__i { display: grid; grid-template-columns: 32px 1fr 70px 40px; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #d6b06122; }
.hist__mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: var(--muted); box-shadow: inset 0 0 0 1px #d6b06155; }
.hist__i.is-clear .hist__mark { background: var(--gold); color: #1a1406; }
.hist__main { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.hist__t { font-family: var(--f-min); font-weight: 700; font-size: 15px; }
.hist__d { font-size: 12.5px; color: var(--muted); }
.hist__meter { height: 6px; border-radius: 3px; background: #1c2858; overflow: hidden; }
.hist__meter i { display: block; height: 100%; background: var(--gold); }
.hist__n { font-size: 14px; color: var(--gold-hi); text-align: right; }

/* ===== 設定・遊び方 ===== */
.screen--settings .scroll, .screen--about .scroll { padding: 4px 16px calc(28px + var(--safe-b)); }
.howto { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.howto li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.howto__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #1a1406; background: var(--gold); }
.howto__h { font-family: var(--f-min); font-weight: 800; font-size: 16px; line-height: 1.5; word-break: keep-all; }
.howto__p { font-size: 14.5px; line-height: 1.7; color: var(--ivory); }
.kw { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0 0; padding: 12px 14px; background: #0f1736; border-radius: 10px; box-shadow: inset 0 0 0 1px #d6b06133; font-size: 14px; }
.kw dt { font-family: var(--f-min); font-weight: 800; color: var(--gold-hi); white-space: nowrap; }
.kw dd { margin: 0; line-height: 1.6; }
.kw--wide { margin-top: 16px; }
.rows { display: flex; flex-direction: column; background: #0f1736; border-radius: 12px; box-shadow: inset 0 0 0 1px #d6b06133; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-bottom: 1px solid #d6b06122; text-align: left; width: 100%; }
.row:last-child { border-bottom: 0; }
.row__t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.row__l { font-weight: 700; font-size: 15.5px; }
.row__l--danger { color: #ff9a85; }
.row__d { font-size: 13px; color: var(--muted); line-height: 1.5; }
.row--link svg { font-size: 22px; color: var(--gold); }
.row--link:active { background: #1c2858; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 999px; background: #2a3466; box-shadow: inset 0 0 0 1px #d6b06155; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ivory); transition: transform .25s var(--spring); }
.switch.is-on { background: var(--gold); }
.switch.is-on i { transform: translateX(20px); background: #1a1406; }
.seg { display: flex; padding: 3px; border-radius: 10px; background: #0b1230; box-shadow: inset 0 0 0 1px #d6b06155; flex: none; }
.seg button { min-width: 56px; min-height: 38px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.seg button.is-on { background: var(--gold); color: #1a1406; }
.note { font-size: 14px; line-height: 1.7; color: var(--ivory); padding: 12px 14px; border-radius: 10px; background: #0f1736; box-shadow: inset 0 0 0 1px #d6b06144; }
.note--s { margin-top: 18px; font-size: 13.5px; }
.about { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; }
.about__icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 1px #d6b06166, 0 10px 30px #0009; }
.about__name { font-family: var(--f-min); font-weight: 800; font-size: 24px; color: var(--gold-hi); }
.about__ver { font-size: 13px; color: var(--muted); }
.panel { width: 100%; padding: 14px; background: #0f1736; border-radius: 12px; box-shadow: inset 0 0 0 1px #d6b06133; }
.panel__h { font-family: var(--f-min); font-weight: 800; font-size: 15px; color: var(--gold-hi); margin-bottom: 6px; }
.tech-list { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.8; }

/* ===== シート・トースト・スプラッシュ ===== */
.sheet { position: absolute; inset: 0; z-index: 90; pointer-events: none; }
.sheet__scrim { position: absolute; inset: 0; background: #03061299; opacity: 0; transition: opacity .25s; }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 84%; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px calc(20px + var(--safe-b));
  background: var(--night); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: 0 -1px 0 var(--gold), 0 -20px 50px #000a; transform: translateY(105%); transition: transform .32s var(--ease); display: flex; flex-direction: column; }
.sheet.is-on { pointer-events: auto; }
.sheet.is-on .sheet__scrim { opacity: 1; }
.sheet.is-on .sheet__panel { transform: none; }
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: #d6b06166; margin: 0 auto 12px; flex: none; }
.sheet__body { display: flex; flex-direction: column; gap: 12px; }
.sheet__kicker { font-size: 13px; color: var(--gold); font-weight: 700; }
.sheet__h { font-family: var(--f-min); font-weight: 800; font-size: 20px; color: var(--ivory); display: flex; align-items: baseline; gap: 10px; line-height: 1.4; }
.sheet__h .num { font-size: 18px; color: var(--gold-hi); }
.sheet__lead { font-size: 14.5px; line-height: 1.75; color: var(--ivory); }
.sheet__lead b { color: var(--gold-hi); }
.sheet__note { font-size: 14px; color: var(--muted); text-align: center; }
.node-sheet { display: flex; align-items: center; gap: 14px; }
.node-sheet__icon { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: var(--gold-hi); background: #0f1736; box-shadow: inset 0 0 0 1.5px var(--gold); }
.pause-grid { display: flex; flex-direction: column; gap: 10px; }
.compare { --cw: 120px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0; }
.compare .card--lg { --cw: min(132px, calc((100vw - 90px) / 2)); }
.compare__arrow { font-size: 24px; color: var(--gold); }
.astro-now { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: #0b1230; box-shadow: inset 0 0 0 1px #d6b06155; font-family: var(--f-min); font-weight: 800; color: var(--gold-hi); font-size: 16px; }
.toast { position: absolute; left: 50%; bottom: calc(110px + var(--safe-b)); z-index: 95; transform: translate(-50%, 20px); opacity: 0; width: max-content; max-width: calc(100% - 32px);
  padding: 10px 18px; border-radius: 10px; background: #f0e6cb; color: #1a1406; font-size: 14.5px; font-weight: 700; line-height: 1.5; box-shadow: 0 10px 30px #000a; pointer-events: none; transition: opacity .2s, transform .25s var(--spring); text-align: center; word-break: normal; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.splash { position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--ink); transition: opacity .4s; }
.splash img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 0 0 1px #d6b06177, 0 0 40px #d6b06144; animation: rise .7s var(--ease); }
.splash__name { font-family: var(--f-min); font-weight: 800; font-size: 22px; color: var(--gold-hi); letter-spacing: .1em; }
.splash.is-out { opacity: 0; }
@keyframes rise { from { transform: translateY(14px) scale(.9); opacity: 0; } }
.noscript { padding: 40px 20px; text-align: center; color: var(--ivory); font-size: 15px; }

@media (max-height: 700px) {
  .logo__a, .logo__b { font-size: 42px; }
  .title__logo { padding-top: 3vh; }
  .foe__body { max-height: 28vh; }
  .title__sub .plate { min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

.app[data-route="battle"] .toast { bottom: auto; top: calc(118px + var(--safe-t)); }
