/* Satoshiっち Bitcoin — style.css */
:root {
  --ink: #2b1d1a;
  --ink-soft: #6b5a50;
  --night-1: #121741;
  --night-2: #262463;
  --night-3: #3b2d73;
  --cream: #fff7e6;
  --cream-2: #fbeccb;
  --paper: #efebe3;
  --paper-line: #d9d2c5;
  --orange: #f7931a;
  --orange-d: #cf6a0c;
  --yellow: #ffd93d;
  --dq: #0c0c1c;
  --blue-shadow: #4659b8;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --font-pixel: "DotGothic16", "Zen Maru Gothic", "Hiragino Sans", monospace;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Zen Maru Gothic", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { background: var(--night-1); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  background: linear-gradient(180deg, var(--night-1) 0, var(--night-2) 1100px, var(--night-3) 2600px, var(--night-2) 100%);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b.nm { color: #ffe27a; font-weight: 400; }
b.it { color: #9ff0d0; font-weight: 400; }
b.sk { color: #ffb0d0; font-weight: 400; }

/* ---------- 星空 ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sky i { position: absolute; width: 2px; height: 2px; background: #fff6cf; opacity: .8; animation: twinkle 3.2s steps(2, end) infinite; }
.sky i.big { width: 3px; height: 3px; }
.sky i.cross { width: 9px; height: 9px; background: none; }
.sky i.cross::before, .sky i.cross::after { content: ""; position: absolute; background: #fff3b0; }
.sky i.cross::before { left: 4px; top: 0; width: 1.5px; height: 9px; }
.sky i.cross::after { top: 4px; left: 0; height: 1.5px; width: 9px; }
@keyframes twinkle { 50% { opacity: .25; } }
main, .topbar, .footer { position: relative; z-index: 1; }

/* ---------- ボタン（Colorfigures 風のピル） ---------- */
.pill {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.2;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, transform .08s;
  white-space: nowrap;
}
.pill:hover { background: var(--ink); color: var(--cream); }
.pill:active { transform: translateY(1px) scale(.98); }
.pill:focus-visible, .icon-btn:focus-visible, .scene-mon:focus-visible, .fig-item:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pill[disabled], .pill.is-disabled { opacity: .45; cursor: not-allowed; }
.pill[disabled]:hover { background: var(--cream); color: var(--ink); }
.pill-dark { background: var(--ink); color: var(--cream); border-color: var(--cream); }
.pill-dark:hover { background: var(--cream); color: var(--ink); }
.pill.big { font-size: 16px; padding: 10px 18px; font-family: var(--font-body); font-weight: 700; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.icon-btn { border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink-soft); padding: 4px 6px; border-radius: 8px; }
.icon-btn:hover { background: rgba(0,0,0,.06); }

/* ---------- ヘッダー ---------- */
.topbar { display: flex; align-items: center; gap: 18px; padding: 14px 24px; max-width: 1240px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-pixel); font-size: 20px; }
.logo img { border-radius: 10px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; font-size: 14px; color: #e6defa; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.top-actions { display: flex; gap: 8px; }

/* ---------- ヒーロー ---------- */
.hero { text-align: center; padding: 26px 16px 6px; }
.hero-titles { display: inline-block; position: relative; padding-top: 22px; }
.tag {
  position: absolute; left: -18px; top: 0; z-index: 2;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-pixel); font-size: 20px;
  padding: 5px 16px; border: 3px solid var(--ink); border-radius: 12px;
  transform: rotate(-7deg); box-shadow: 3px 4px 0 var(--ink);
  animation: tagbob 3s ease-in-out infinite;
}
@keyframes tagbob { 50% { transform: rotate(-4deg) translateY(-2px); } }
.title-card {
  margin: 0; display: inline-block; background: var(--cream); color: var(--ink);
  border: 4px solid var(--ink); border-radius: 24px; padding: 20px 42px 14px;
  transform: rotate(-2deg); box-shadow: 8px 10px 0 rgba(4, 4, 20, .55);
  font-family: var(--font-pixel); font-weight: 400; line-height: 1;
}
.t-main { display: block; font-size: clamp(44px, 9vw, 96px); letter-spacing: .03em; }
.t-sub { display: block; margin-top: 8px; font-size: clamp(14px, 2.4vw, 22px); letter-spacing: .5em; color: var(--orange); padding-left: .5em; }
.subtitle {
  display: inline-block; margin: 22px auto 0; padding: 10px 26px; max-width: 92vw;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: clamp(13px, 2vw, 17px); letter-spacing: .06em;
}
.live {
  display: flex; width: fit-content; max-width: 94vw; flex-wrap: wrap; justify-content: center; gap: 4px 12px; align-items: center;
  margin: 16px auto 0; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  font-family: var(--font-mono); font-size: 13px; color: #efeaff;
}
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa0b8; flex: none; }
.live.is-live .dot { background: #2ee59d; animation: pulse 2s infinite; }
.live.is-demo .dot { background: #ffb43b; }
.live .sep { opacity: .45; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,229,157,.6); } 70% { box-shadow: 0 0 0 9px rgba(46,229,157,0); } 100% { box-shadow: 0 0 0 0 rgba(46,229,157,0); } }
.event {
  width: fit-content; max-width: 94vw; margin: 12px auto 0; padding: 6px 16px; border-radius: 10px;
  background: #fff3c4; color: var(--ink); border: 2px solid var(--ink); font-size: 14px; font-weight: 700;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.demo-note {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center;
  max-width: 760px; margin: 12px auto 0; padding: 10px 16px; border-radius: 12px;
  background: rgba(255, 180, 59, .14); border: 1.5px dashed #ffb43b; color: #ffe2b0; font-size: 13px; line-height: 1.6;
}
.demo-note[hidden], .event[hidden] { display: none; }

/* ---------- あいぼう ---------- */
.partner {
  display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 30px;
  max-width: 1100px; margin: 34px auto 0; padding: 0 16px; align-items: start;
}
.card {
  position: relative; color: var(--ink); padding: 12px; border-radius: 28px; border: 3px solid var(--ink);
  background: linear-gradient(135deg, #ffe9a6 0%, #f6a530 30%, #ffd86e 52%, #f19a2a 78%, #ffe4a3 100%);
  box-shadow: 0 12px 0 rgba(6, 4, 24, .45), 0 30px 60px rgba(0,0,0,.35);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: 26px; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 45%, transparent 55%);
  background-size: 250% 100%; animation: shine 7s ease-in-out infinite; mix-blend-mode: soft-light;
}
@keyframes shine { 0%, 60% { background-position: 130% 0; } 100% { background-position: -40% 0; } }
.card-inner { background: var(--cream); border-radius: 18px; border: 3px solid #b8781f; padding: 14px 14px 10px; position: relative; z-index: 1; }
.card-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.badge { border-radius: 6px; padding: 3px 9px; font-weight: 700; white-space: nowrap; }
.badge.dark { background: var(--ink); color: var(--cream); }
.badge.orange { background: var(--orange); color: #fff; }
.badge.line { border: 1.5px solid #b9a58c; color: var(--ink-soft); padding: 2px 8px; }
.badge.rank-S, .badge.rank-SS { background: linear-gradient(90deg, #ff5f8f, #ffb347, #ffe25c, #6fe0a5, #6fb8ff, #b48cff); color: var(--ink); }
.card-block { margin-left: auto; display: flex; align-items: center; gap: 6px; font-family: var(--font-pixel); color: var(--ink); }
.card-block small { font-size: 12px; color: var(--ink-soft); }
.card-block b { font-size: 24px; font-weight: 400; }
.coin-ico { width: 30px; height: 30px; display: inline-block; }
.coin-ico svg { width: 100%; height: 100%; display: block; }
.card-name { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 8px; }
.card-name h2 { margin: 0; font-family: var(--font-pixel); font-weight: 400; font-size: clamp(26px, 5vw, 36px); line-height: 1.15; word-break: break-all; }
.card-name .lv { font-family: var(--font-pixel); font-size: 18px; color: var(--orange-d); white-space: nowrap; }
.card-name .icon-btn { margin-left: auto; }

.scene {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px;
  border: 4px solid var(--ink); box-shadow: inset 0 0 0 3px #e9b44c; background: #0d0d1d;
}
.scene-bg, .scene-bg > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-mon {
  position: absolute; left: 50%; bottom: 2%; width: 56%; transform: translateX(-50%);
  border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.scene-mon > svg { width: 100%; height: auto; display: block; overflow: visible; }
.scene-mon.is-away { display: none; }
.scene-wild { position: absolute; right: 2%; bottom: 7%; width: 30%; animation: wildIn .6s cubic-bezier(.2,1.6,.4,1) both; }
.scene-wild > svg { width: 100%; display: block; }
.scene-wild .wild-tag {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%); white-space: nowrap;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; font-size: 11px; padding: 1px 7px; font-weight: 700;
}
.scene-wild .wild-tag::after { content: "!"; position: absolute; right: -10px; top: -12px; font-family: var(--font-pixel); font-size: 18px; color: #ff4d6d; animation: blinkY 1s steps(1) infinite; }
.scene-wild[hidden] { display: none; }
@keyframes wildIn { from { transform: translateX(60%) scale(.4); opacity: 0; } }
@keyframes blinkY { 50% { opacity: 0; } }
.scene-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.scene-caption {
  position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px);
  background: rgba(12,12,28,.86); color: #fff; font-family: var(--font-pixel); font-size: 13px;
  padding: 4px 10px; border-radius: 8px; border: 2px solid #fff;
}
.scene-caption[hidden] { display: none; }
.card-strip {
  margin-top: 8px; padding: 5px 10px; border-radius: 8px; text-align: center; font-size: 12.5px;
  background: linear-gradient(#ffd27c, #f6a93b); border: 2px solid #b8781f; color: #4a2e10;
}
.feechart { margin-top: 8px; background: var(--ink); border-radius: 10px; padding: 6px 8px 4px; color: #e9d8b8; }
.fc-title { font-size: 10.5px; letter-spacing: .08em; opacity: .75; margin-bottom: 2px; }
.fc-bars svg { display: block; width: 100%; height: 56px; }
.fc-bars rect { transition: opacity .2s; }
.fc-bars rect:hover { opacity: .7; }
.fc-labels { display: flex; justify-content: space-between; font-size: 10.5px; opacity: .8; margin-top: 2px; }
.abilities { margin-top: 6px; }
.ab { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px 4px; border-top: 1.5px solid #ecd7aa; align-items: center; }
.ab-ico { display: flex; gap: 2px; align-items: center; justify-content: center; }
.ab-ico svg { width: 24px; height: 24px; }
.ab h4 { margin: 0 0 2px; font-family: var(--font-pixel); font-weight: 400; font-size: 19px; }
.ab p { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); }
.skills { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 2px; }
.skills span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #fff; border: 1.5px solid #e2c99a; }
.skills span.off { opacity: .45; border-style: dashed; }
.hashbox { border-top: 1.5px solid #ecd7aa; padding: 10px 4px 4px; font-size: 12px; }
.hashbox .hb-title { color: var(--ink-soft); margin-bottom: 4px; }
.hashbox code { display: block; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; word-break: break-all; color: #8b7a6c; }
.hashbox code .z { color: #c9b9a6; }
.hashbox code .g { color: #fff; border-radius: 3px; padding: 0 1px; }
.hb-legend { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; font-size: 11px; }
.hb-legend span { display: inline-flex; align-items: center; gap: 4px; }
.hb-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.hb-luck { margin-top: 6px; font-size: 11.5px; color: var(--ink-soft); }
.card-foot { margin-top: 8px; padding-top: 6px; border-top: 1.5px solid #ecd7aa; font-size: 11.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; }

/* ---------- DQ 風ウインドウ ---------- */
.side { display: flex; flex-direction: column; gap: 22px; }
.dq {
  position: relative; background: var(--dq); color: #fff; font-family: var(--font-pixel);
  border: 4px solid #fff; border-radius: 10px; padding: 20px 18px 16px;
  box-shadow: 0 0 0 4px var(--dq), 0 12px 0 4px rgba(0,0,0,.3);
}
.dq-title { position: absolute; top: -14px; left: 16px; margin: 0; padding: 0 10px; background: var(--dq); font-weight: 400; font-size: 16px; letter-spacing: .1em; }
.st-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 20px; margin-bottom: 8px; }
.st-name small { font-size: 15px; color: #ffe27a; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; font-size: 16px; }
.st-row { display: flex; justify-content: space-between; gap: 6px; }
.st-row span:last-child { font-variant-numeric: tabular-nums; }
.gauges { display: grid; grid-template-columns: auto 1fr auto; gap: 7px 10px; align-items: center; margin-top: 12px; font-size: 15px; }
.gauge { height: 14px; border: 2px solid #fff; border-radius: 3px; background: #23233c; position: relative; overflow: hidden; }
.gauge > i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ffe066, #f7931a); transition: width .6s; }
.gauge.mood > i { background: linear-gradient(#ffb6d0, #ff5f8f); }
.gauge.bond > i { background: linear-gradient(#b6f5d6, #34c486); }
.gauge.exp > i { background: linear-gradient(#bfe0ff, #4f8ff7); }
.gauge::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(12,12,28,.6) 9px 11px); }
.gauge.low > i { animation: lowblink 1s steps(1) infinite; }
@keyframes lowblink { 50% { opacity: .3; } }
.st-extra { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 14px; color: #d8d4ff; }
.st-warn { margin-top: 10px; color: #ff9db5; font-size: 14px; animation: lowblink 1.4s steps(1) infinite; }
.dq-msg { min-height: 122px; font-size: 17px; line-height: 1.75; padding-bottom: 28px; }
.msg-text { min-height: 3.5em; }
.msg-text.done::after { content: "▼"; display: inline-block; margin-left: 6px; font-size: 12px; animation: blinkY 1s steps(1) infinite; }
.msg-text.warn { color: #ffcf8a; }
.msg-log-btn { position: absolute; right: 10px; bottom: 6px; border: 0; background: none; color: #a9a6d8; font-family: var(--font-pixel); font-size: 13px; cursor: pointer; text-decoration: underline; }
.msg-log { margin: 10px 0 0; padding: 10px 0 0 18px; border-top: 2px dashed #555; font-size: 13.5px; line-height: 1.6; max-height: 220px; overflow: auto; color: #d9d6ff; }
.msg-log li { margin-bottom: 4px; }
.msg-log[hidden] { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bag { background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.2); border-radius: 14px; padding: 12px 14px; }
.bag-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.bag-head small { color: #b9b3e0; font-size: 12px; }
.bag-items { display: flex; flex-wrap: wrap; gap: 8px; }
.bag-item {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--cream); color: var(--ink); border: 1.5px solid var(--ink); cursor: pointer; font-size: 13px; font-weight: 700;
}
.bag-item:hover { background: #fff; transform: translateY(-1px); }
.bag-item svg { width: 24px; height: 24px; }
.bag-item small { color: var(--ink-soft); }
.bag-empty { color: #b9b3e0; font-size: 13px; }

/* ---------- 演出 ---------- */
.fx-heart, .fx-text, .fx-zzz, .fx-spark, .fx-food, .fx-bubble { position: absolute; will-change: transform, opacity; }
.fx-heart { font-size: 22px; color: #ff4d79; animation: floatUp 1.1s ease-out forwards; text-shadow: 0 0 2px #fff; }
.fx-text { font-family: var(--font-pixel); font-size: 18px; color: #fff; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); animation: floatUp 1.4s ease-out forwards; white-space: nowrap; }
.fx-bubble { font-family: var(--font-pixel); font-size: 15px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 12px; padding: 2px 9px; animation: pop .25s ease-out both; white-space: nowrap; }
.fx-zzz { font-family: var(--font-pixel); font-size: 20px; color: #dfe6ff; animation: zzz 2.4s ease-in-out infinite; text-shadow: 2px 2px 0 var(--ink); }
.fx-spark { width: 14px; height: 14px; animation: spark .9s ease-out forwards; }
.fx-spark::before, .fx-spark::after { content: ""; position: absolute; background: #fff3a0; border: 1px solid var(--ink); }
.fx-spark::before { left: 6px; top: 0; width: 2px; height: 14px; }
.fx-spark::after { top: 6px; left: 0; height: 2px; width: 14px; }
.fx-food { width: 18%; animation: foodFly 1s cubic-bezier(.3,.1,.5,1) forwards; }
.fx-food svg { width: 100%; display: block; }
.fx-flash { position: absolute; inset: 0; background: #fff; animation: flash 1.2s ease-out forwards; }
@keyframes floatUp { from { transform: translate(-50%, 0) scale(.8); opacity: 1; } to { transform: translate(-50%, -60px) scale(1.1); opacity: 0; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes zzz { 0% { transform: translate(0, 0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(18px, -36px); opacity: 0; } }
@keyframes spark { from { transform: scale(.2) rotate(0); opacity: 1; } to { transform: scale(1.4) rotate(90deg); opacity: 0; } }
@keyframes foodFly { 0% { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(-200deg) scale(.4); opacity: 0; } }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

/* モンスターのアニメ */
.mon { overflow: visible; }
.mon-bob { transform-box: view-box; transform-origin: 120px 214px; animation: monBob 1.9s ease-in-out infinite; }
.mon.is-float .mon-bob { animation: monFloat 2.6s ease-in-out infinite; }
.mon-shadow { transform-box: view-box; transform-origin: 120px 217px; animation: shadowBob 1.9s ease-in-out infinite; }
.mon.is-float .mon-shadow { animation: shadowFloat 2.6s ease-in-out infinite; }
.mon-eye { transform-box: fill-box; transform-origin: 50% 50%; }
.mon.blink .mon-eye { transform: scaleY(.12); }
.chomp-a { animation: chompA .32s steps(1) infinite; }
.chomp-b { animation: chompB .32s steps(1) infinite; }
.mon-twinkle { transform-box: fill-box; transform-origin: center; animation: monTw 1.8s ease-in-out infinite; }
.mon-wisp { animation: wisp 2.2s ease-in-out infinite; }
.mon-egg { transform-box: view-box; transform-origin: 120px 214px; animation: eggWobble 2.4s ease-in-out infinite; }
.mon-egg.shake { animation: eggShake .18s linear infinite; }
.snot { transform-box: fill-box; transform-origin: 0% 100%; animation: snot 2.4s ease-in-out infinite; }
.expr-sleep .mon-bob, .expr-hungry .mon-bob { animation-duration: 3.4s; }
.mon-lamp { animation: lamp 3s ease-in-out infinite; }
@keyframes monBob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-4px) scale(.985, 1.025); } }
@keyframes shadowBob { 0%, 100% { transform: scale(1); } 50% { transform: scale(.93); } }
@keyframes monFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shadowFloat { 0%, 100% { transform: scale(1); opacity: .2; } 50% { transform: scale(.82); opacity: .12; } }
@keyframes chompA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes chompB { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes monTw { 0%, 100% { transform: scale(.6) rotate(0); opacity: .4; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
@keyframes wisp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes eggWobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 82% { transform: rotate(5deg); } 88% { transform: rotate(-3deg); } }
@keyframes eggShake { 0% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } 100% { transform: rotate(-5deg); } }
@keyframes snot { 0%, 100% { transform: scale(.4); } 50% { transform: scale(1.1); } }
@keyframes lamp { 50% { opacity: .15; } }
.hop { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
.wiggle { animation: wiggle .5s ease-in-out; }
.shake-x { animation: shakeX .45s linear; }
@keyframes hop { 0% { transform: translateX(-50%) translateY(0); } 35% { transform: translateX(-50%) translateY(-16%) scale(.96, 1.06); } 70% { transform: translateX(-50%) translateY(0) scale(1.06, .94); } 100% { transform: translateX(-50%) translateY(0); } }
@keyframes wiggle { 25% { transform: translateX(-50%) rotate(-6deg); } 75% { transform: translateX(-50%) rotate(6deg); } }
@keyframes shakeX { 20% { transform: translateX(calc(-50% - 6px)); } 40% { transform: translateX(calc(-50% + 6px)); } 60% { transform: translateX(calc(-50% - 4px)); } 80% { transform: translateX(calc(-50% + 4px)); } }

/* シーンの小さな動き */
.scene-svg .tw { animation: twinkle 2.6s steps(2, end) infinite; }
.scene-svg .cloud { animation: drift 18s ease-in-out infinite alternate; }
.scene-svg .firefly { animation: firefly 3s ease-in-out infinite; }
.scene-svg .aurora { animation: aurora 6s ease-in-out infinite; }
.scene-svg .bolt { animation: bolt 2.4s steps(1) infinite; }
.scene-svg .flake { animation: flake 6s linear infinite; }
.scene-svg .petal { animation: petal 7s linear infinite; }
.scene-svg .boat { animation: boat 3s ease-in-out infinite; }
.scene-svg .smoke { animation: drift 6s ease-in-out infinite alternate; }
.scene-svg .link { animation: dash 1.2s linear infinite; }
@keyframes drift { to { transform: translateX(14px); } }
@keyframes firefly { 50% { transform: translate(6px, -8px); opacity: .3; } }
@keyframes aurora { 50% { opacity: .55; transform: translateY(6px); } }
@keyframes bolt { 0%, 8% { opacity: 1; } 9%, 100% { opacity: .15; } }
@keyframes flake { from { transform: translateY(-20px); } to { transform: translateY(240px); } }
@keyframes petal { from { transform: translate(0, -20px) rotate(0); } to { transform: translate(-40px, 220px) rotate(360deg); } }
@keyframes boat { 50% { transform: translateY(3px) rotate(2deg); } }
@keyframes dash { to { stroke-dashoffset: -18; } }

/* ---------- りょこう ---------- */
.travel, .catch, .howto { max-width: 1100px; margin: 0 auto; padding: 70px 16px 0; }
.section-title { text-align: center; margin: 0; font-family: var(--font-pixel); font-weight: 400; font-size: clamp(28px, 5vw, 40px); letter-spacing: .06em; }
.section-lead { text-align: center; max-width: 720px; margin: 10px auto 26px; line-height: 1.8; color: #ddd8f6; font-size: 14.5px; }
.sub-title { font-family: var(--font-pixel); font-weight: 400; font-size: 20px; text-align: center; margin: 40px 0 14px; }
.sub-title::before, .sub-title::after { content: "★"; color: var(--yellow); margin: 0 10px; font-size: 14px; }
.pass {
  position: relative; display: grid; grid-template-columns: 1fr 150px; max-width: 780px; margin: 0 auto;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 0 rgba(4,4,20,.45);
}
.pass-main { min-width: 0; padding-bottom: 14px; }
.pass-top { display: flex; justify-content: space-between; gap: 10px; background: var(--orange); color: #fff; padding: 7px 16px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.pass-route { display: flex; align-items: center; gap: 12px; padding: 14px 18px 6px; font-family: var(--font-pixel); font-size: clamp(22px, 4vw, 34px); min-width: 0; }
.pass-route .line { flex: 1; min-width: 40px; height: 2px; background: var(--ink); position: relative; }
.pass-route .line::after { content: "✈"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); background: var(--cream); padding: 0 6px; font-size: 18px; }
.pass.is-away .pass-route .line::after { animation: fly 2.4s ease-in-out infinite; }
@keyframes fly { 0%, 100% { left: 30%; } 50% { left: 70%; } }
.pass-route .dest { color: var(--orange); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-meta { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 4px 18px 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--ink-soft); }
.pass-meta b { display: block; font-family: var(--font-body); font-size: 16px; color: var(--ink); letter-spacing: 0; }
.pass-state { margin: 10px 18px 0; padding: 7px 12px; border-radius: 8px; background: #fff; border: 1.5px dashed #cdb48a; font-size: 13px; line-height: 1.6; }
.pass-stub { border-left: 3px dashed var(--ink); background: #fff1d0; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; text-align: center; }
.pass-stub small { font-size: 12px; color: var(--ink-soft); }
.pass-stub .fare { font-family: var(--font-pixel); font-size: 30px; line-height: 1; }
.pass-stub .fare span { font-size: 13px; }
.barcode { width: 100%; height: 34px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }
.pass::before, .pass::after { content: ""; position: absolute; right: 137px; width: 26px; height: 26px; border-radius: 50%; background: var(--night-2); border: 3px solid var(--ink); z-index: 2; }
.pass::before { top: -16px; }
.pass::after { bottom: -16px; }
.stamps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; max-width: 780px; margin: 0 auto; }
.stamp { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid #fff; background: rgba(255,255,255,.08); display: grid; place-items: center; font-family: var(--font-pixel); color: #8e88c0; font-size: 20px; }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp.got { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--ink); }
.stamp .hex { position: absolute; bottom: 2px; right: 50%; transform: translateX(50%); font-size: 11px; background: var(--ink); color: #fff; padding: 0 5px; border-radius: 6px; z-index: 1; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.photo { background: #fff; color: var(--ink); padding: 10px 10px 12px; border-radius: 6px; box-shadow: 0 8px 0 rgba(4,4,20,.4); transform: rotate(var(--r, 0deg)); transition: transform .2s; }
.photo:hover { transform: rotate(0) translateY(-4px); }
.photo-pic { position: relative; aspect-ratio: 4 / 3; border: 3px solid var(--ink); border-radius: 4px; overflow: hidden; }
.photo-pic .bg, .photo-pic .bg > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-pic .mn { position: absolute; left: 50%; bottom: 3%; width: 52%; transform: translateX(-50%); }
.photo-pic .mn svg { width: 100%; display: block; }
.photo h4 { margin: 8px 0 0; font-family: var(--font-pixel); font-weight: 400; font-size: 17px; text-align: center; }
.photo .meta { text-align: center; font-size: 11.5px; color: var(--ink-soft); }
.photo p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: #4b3d35; }
.album-empty { grid-column: 1 / -1; text-align: center; color: #c9c3ee; padding: 18px; border: 2px dashed rgba(255,255,255,.25); border-radius: 14px; }

/* ---------- Figures（Colorfigures 風の紙） ---------- */
.paper {
  margin-top: 80px; background: var(--paper); color: var(--ink);
  background-image: radial-gradient(rgba(43,29,26,.05) 1px, transparent 1px); background-size: 4px 4px;
  border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
}
.lab { display: grid; grid-template-columns: 230px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; min-height: 760px; }
.lab-side { border-right: 1px solid var(--paper-line); padding: 30px 16px 30px 22px; max-height: 900px; overflow: auto; }
.lab-brand { margin: 0; font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: .03em; }
.lab-lead { margin: 8px 0 22px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: #8a8174; }
.fig-group { margin: 16px 0 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: #9a9084; text-transform: uppercase; }
.fig-item { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 9px; cursor: pointer; color: var(--ink); font-family: var(--font-mono); font-size: 13.5px; }
.fig-item:hover { background: rgba(43,29,26,.07); }
.fig-item .thumb { width: 34px; height: 34px; flex: none; }
.fig-item .thumb svg { width: 100%; height: 100%; display: block; }
.fig-item small { display: block; font-size: 10.5px; color: #9a9084; letter-spacing: .06em; }
.fig-item span.nm2 { display: block; line-height: 1.25; }
.fig-item.active { background: var(--ink); color: var(--paper); }
.fig-item.active small { color: #c9c0b2; }
.lab-main { padding: 30px 34px 26px; min-width: 0; display: flex; flex-direction: column; }
.lab-stage { position: relative; flex: 1; display: grid; grid-template-columns: 210px minmax(0, 1fr) 190px; min-height: 560px; }
.lab-title { position: relative; z-index: 2; margin: 0 0 14px; font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.lab-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lab-actions .pill { background: transparent; }
.lab-actions .pill:hover { background: var(--ink); }
.lab-actions .menu { display: none; flex-direction: column; gap: 6px; padding: 8px; margin-top: -4px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; }
.lab-actions .menu.open { display: flex; }
.lab-actions .menu.open { position: relative; z-index: 3; min-width: 290px; box-shadow: 0 8px 20px rgba(43,29,26,.10); }
.lab-actions .menu button { text-align: left; border: 0; background: none; font-family: var(--font-mono); font-size: 13px; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.lab-actions .menu button:hover { background: var(--paper); }
.lab-actions .menu button { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; }
.lab-actions .menu button .pr { white-space: nowrap; }
.lab-actions .menu button.short { opacity: .5; }
.lab-actions .menu button em { font-style: normal; font-size: 11px; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--orange); color: #fff; white-space: nowrap; }
/* まとめがいの かず */
.vm-qty { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; }
.vm-qty > span { flex-basis: 100%; color: var(--ink-soft); }
.vm-qty button { min-width: 42px; padding: 5px 6px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-family: var(--font-mono); font-size: 12.5px; cursor: pointer; }
.vm-qty button:hover { background: rgba(43,29,26,.07); }
.vm-qty button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lab-figure { position: relative; display: grid; place-items: center; overflow: hidden; }
.lab-figure > .fig-wrap { width: min(100%, 560px); transform-origin: 50% 60%; transition: transform .25s; }
.lab-figure svg.fig { width: 100%; height: auto; display: block; overflow: visible; }
.lab-figure canvas.pixel { width: min(100%, 440px); image-rendering: pixelated; image-rendering: crisp-edges; display: block; margin: 0 auto; }
.lab-figure .fig-note { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; color: #8a8174; white-space: nowrap; }
.lab-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.lab-toggles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lab-toggles .pill { background: transparent; }
.lab-toggles .pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.credit { text-align: right; font-family: var(--font-mono); }
.credit small { display: block; font-size: 10.5px; letter-spacing: .16em; color: #8a8174; }
.credit b { font-size: 34px; font-weight: 500; letter-spacing: .02em; }
.credit .wallet { margin-top: 8px; font-size: 13px; }
.zoom { position: absolute; right: 0; bottom: 6px; display: flex; align-items: center; gap: 12px; padding: 5px 14px; border: 1px solid #cfc7b9; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; background: var(--paper); }
.zoom button { border: 0; background: none; cursor: pointer; font-size: 14px; padding: 0 4px; }
.lab-controls { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; border-top: 1px solid var(--paper-line); padding-top: 18px; margin-top: 12px; }
.ctl label, .ctl-label { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: #8a8174; margin-bottom: 10px; }
.ctl input[type="range"] { width: 100%; max-width: 240px; accent-color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }
.views { display: flex; gap: 8px; flex-wrap: wrap; }
.views .pill { background: transparent; font-size: 13px; }
.views .pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.mem-note { font-family: var(--font-mono); font-size: 12px; color: #8a8174; line-height: 1.6; max-width: 200px; }

/* じはんき */
.vm .face-glass { fill: #d7eef8; }
.vm .see .casing { fill-opacity: .25; }
.vm-shake { animation: vmShake .6s ease-in-out; transform-box: view-box; transform-origin: 50% 90%; }
@keyframes vmShake { 15% { transform: rotate(-2.5deg); } 35% { transform: rotate(2.5deg); } 55% { transform: rotate(-1.5deg); } 75% { transform: rotate(1deg); } }
.vm-coin { animation: coinIn .55s ease-in forwards; }
@keyframes coinIn { from { transform: translate(-60px, -40px); opacity: 0; } 30% { opacity: 1; } to { transform: translate(0, 0); opacity: 0; } }

/* ---------- ミニゲーム ---------- */
.arcade { position: relative; width: min(100%, 380px); margin: 0 auto; border: 4px solid var(--ink); border-radius: 22px; padding: 10px; background: linear-gradient(135deg, #ffe9a6, #f6a530 40%, #ffd86e 60%, #f19a2a); box-shadow: 0 12px 0 rgba(4,4,20,.45); }
.arcade-screen { position: absolute; inset: 13px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; background: rgba(12,12,28,.72); padding: 20px; }
.arcade-screen[hidden] { display: none; }
.arcade-screen p { margin: 0; font-family: var(--font-pixel); font-size: 18px; line-height: 1.6; }
.arcade-screen small { color: #c9c3ee; font-size: 12px; }


/* ---------- おうえん（ほんものの sat の 投げ銭） ---------- */
.tip { max-width: 1100px; margin: 0 auto; padding: 70px 16px 0; }
.section-title .bolt { color: var(--yellow); margin-right: 8px; display: inline-block; animation: zap 2.4s steps(1) infinite; }
@keyframes zap { 0%, 84% { opacity: 1; } 86% { opacity: .2; } 90% { opacity: 1; } 94% { opacity: .3; } 96% { opacity: 1; } }
.nav a.nav-tip { color: #ffe45c; }
.tip-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.tip-card { position: relative; overflow: hidden; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; padding: 22px 20px 16px; box-shadow: 0 10px 0 rgba(4,4,20,.45); }
.tip-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, #f7931a 0 18px, #ffe45c 18px 36px); }
.tip-to { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; }
.tip-to small { color: var(--ink-soft); }
.tip-to b { font-family: var(--font-mono); font-size: 15px; word-break: break-all; }
.pill.mini { font-size: 12px; padding: 4px 10px; }
.tip-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amt { font-family: var(--font-pixel); font-size: 18px; padding: 8px 14px; border-radius: 12px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.amt small { font-size: 12px; }
.amt[aria-pressed="true"] { background: #ffe45c; transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.tip-custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.tip-custom[hidden] { display: none; }
.tip-custom input, .tip-field input { font: inherit; font-size: 16px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; max-width: 340px; }
.tip-yen { min-height: 1.4em; margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.tip-field { display: block; margin-top: 10px; font-size: 13px; }
.tip-field span { display: block; margin-bottom: 4px; color: var(--ink-soft); }
.tip-go { margin-top: 16px; background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--ink); }
.tip-go:hover { background: #ff9f2e; color: #fff; }
.tip-notes { margin: 14px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.tip-alert { background: #fff1d6; border: 2px solid #e8a33a; border-radius: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.tip-alert.small { margin: 8px 0 0; font-size: 12px; }
.tip-wait { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 70px 0; font-size: 15px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #e2c99a; border-top-color: var(--orange); animation: spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.inv { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 18px; align-items: start; }
.inv-qr { display: block; border: 3px solid var(--ink); border-radius: 12px; padding: 6px; background: #fff; }
.inv-qr svg { display: block; width: 100%; height: auto; }
.inv-amt { font-family: var(--font-pixel); font-size: 30px; line-height: 1.2; }
.inv-amt small { font-size: 14px; }
.inv-amt span { font-size: 14px; color: var(--ink-soft); font-family: var(--font-body); }
.inv-status { display: flex; gap: 8px; align-items: center; margin: 8px 0 12px; font-size: 13px; line-height: 1.5; }
.inv-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-btns a.pill, .paid-btns a.pill { text-decoration: none; }
.inv-exp { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.inv-pr { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: #9a8b7d; word-break: break-all; }
.link { display: block; border: 0; background: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; margin-top: 8px; padding: 0; font-size: 12px; }
.paid { text-align: center; padding: 6px 0; }
.paid-burst { font-family: var(--font-pixel); font-size: clamp(20px, 3.6vw, 28px); color: var(--orange-d); animation: pop .4s ease-out both; }
.paid-mon { width: 200px; margin: 6px auto 0; animation: hatchIn .9s cubic-bezier(.2,1.6,.4,1) both; }
.paid-mon svg { width: 100%; display: block; }
@keyframes hatchIn { from { transform: scale(.2) rotate(-20deg); opacity: 0; } }
.paid-born { font-size: 14px; line-height: 1.7; margin: 4px 0; }
.paid-list { list-style: none; padding: 0; margin: 10px auto; display: inline-flex; flex-direction: column; gap: 4px; text-align: left; font-size: 14px; }
.paid-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.confetti { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: confetti 2.4s ease-in forwards; z-index: 3; pointer-events: none; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 540px) rotate(720deg); opacity: 0; } }
.tip-side { display: flex; flex-direction: column; gap: 22px; }
.tip-rewards ul { margin: 0; padding: 0; list-style: none; font-family: var(--font-body); font-size: 13.5px; line-height: 1.6; display: flex; flex-direction: column; gap: 10px; }
.tip-rewards li b { display: block; color: #ffe27a; font-family: var(--font-pixel); font-weight: 400; font-size: 16px; }
.tip-me { background: rgba(255,255,255,.07); border: 1.5px dashed rgba(255,255,255,.3); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.7; display: flex; flex-direction: column; gap: 2px; }
.tip-me b { color: #ffe45c; }
.board-note { text-align: center; color: #ddd8f6; font-size: 13px; margin: -4px 0 16px; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.board-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 14px; padding: 8px 12px 8px 6px; box-shadow: 0 5px 0 rgba(4,4,20,.4); }
.board-card.fresh { animation: freshIn .9s cubic-bezier(.2,1.6,.4,1) both, glow 2s ease-in-out 3; }
@keyframes freshIn { from { transform: scale(.6); opacity: 0; } }
@keyframes glow { 50% { box-shadow: 0 0 0 4px #ffe45c, 0 5px 0 rgba(4,4,20,.4); } }
.bc-mon svg { width: 64px; height: 64px; display: block; overflow: hidden; }
.bc-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; align-items: baseline; }
.bc-top b { font-size: 14px; overflow-wrap: anywhere; }
.bc-amt { font-family: var(--font-pixel); color: var(--orange-d); white-space: nowrap; }
.board-card p { margin: 2px 0; font-size: 12.5px; line-height: 1.5; word-break: break-word; }
.board-card small { font-size: 11px; color: var(--ink-soft); }

/* ---------- アコーディオン（ずかん・バトル） ---------- */
.acc { max-width: 980px; margin: 0 auto; padding: 56px 16px 0; }
.acc-head { position: relative; width: 100%; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 40px; gap: 14px; align-items: center; padding: 14px 18px 14px 14px; border: 3px solid var(--ink); border-radius: 22px; color: #fff; text-align: left; font: inherit; cursor: pointer; overflow: hidden; isolation: isolate; box-shadow: 0 10px 0 rgba(4,4,20,.45); transition: transform .15s ease, box-shadow .15s ease; }
.acc-zukan .acc-head { background: linear-gradient(120deg, #23246a 0%, #45307f 48%, #7d3f9e 100%); }
.acc-battle .acc-head { background: linear-gradient(120deg, #4a1430 0%, #8c1f3f 46%, #2b2a6b 100%); }
.acc-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#fff6cf 1px, transparent 1.6px), radial-gradient(rgba(255,246,207,.6) .8px, transparent 1.3px); background-size: 46px 38px, 23px 29px; background-position: 0 0, 11px 7px; opacity: .45; }
.acc-head::after { content: ""; position: absolute; top: -40%; bottom: -40%; width: 26%; left: -40%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); transform: skewX(-18deg); animation: accShine 5.5s ease-in-out infinite; }
@keyframes accShine { 0%, 62% { left: -40%; } 100% { left: 130%; } }
.acc-head:hover { transform: translateY(-2px); box-shadow: 0 12px 0 rgba(4,4,20,.45); }
.acc-head:active { transform: translateY(3px); box-shadow: 0 6px 0 rgba(4,4,20,.45); }
.acc-head:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.acc-art { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 18px; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.28), rgba(255,255,255,.06) 70%); }
.acc-art svg { width: 76px; height: 76px; display: block; animation: accBob 3s ease-in-out infinite; }
.acc-spark { transform-origin: center; transform-box: fill-box; animation: accTwinkle 1.6s ease-in-out infinite; }
@keyframes accBob { 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes accTwinkle { 50% { transform: scale(.4); opacity: .4; } }
.acc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acc-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; color: #ffd166; }
.acc-title { font-family: var(--font-pixel); font-weight: 400; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.15; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.acc-sub { font-size: 13px; color: #ece6ff; line-height: 1.5; }
.acc-bar { display: block; height: 8px; max-width: 320px; border-radius: 5px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 2px; }
.acc-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: 5px; transition: width .6s; }
.acc-peek { display: flex; align-items: center; }
.acc-peek > * { width: 50px; height: 50px; margin-left: -10px; border-radius: 50%; border: 2.5px solid #fff; background: rgba(255,255,255,.16); display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.acc-peek > *:first-child { margin-left: 0; }
.acc-peek svg { width: 115%; height: 115%; display: block; }
.acc-peek .q { font-family: var(--font-pixel); font-size: 22px; color: #cbbfff; background: rgba(20,16,60,.6); }
.acc-peek .vs { width: auto; height: auto; border: 0; background: none; box-shadow: none; margin: 0 6px; font-family: var(--font-pixel); font-size: 20px; color: #ffd166; text-shadow: 0 2px 0 var(--ink); }
.acc-peek .vs + * { margin-left: 0; }
.acc-chev { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.7); position: relative; transition: transform .35s cubic-bezier(.3,1.4,.5,1), background .2s; }
.acc-chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 10px; height: 10px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.acc.is-open .acc-chev { transform: rotate(180deg); background: rgba(255,209,102,.35); }
.acc.is-open .acc-head { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
.acc-panel { overflow: hidden; }
.acc-panel[hidden] { display: none; }
.acc-inner { padding: 22px 0 6px; }
.acc-inner > .section-lead { margin-top: 0; }
.zk-sep { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; font-family: var(--font-pixel); font-size: 16px; color: #c4b5fd; }
.zk-sep::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(196,181,253,.7), transparent); }

/* ---------- モンスターずかん ---------- */
.zk-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin: 0 auto 24px; }
.zk-stat { position: relative; background: var(--dq); border: 3px solid #fff; border-radius: 12px; padding: 8px 12px 16px; font-family: var(--font-pixel); overflow: hidden; }
.zk-stat span { display: block; font-size: 13px; color: #c9c3ee; }
.zk-stat b { font-weight: 400; font-size: 24px; color: #ffe27a; }
.zk-stat b small { font-size: 14px; color: #c9c3ee; }
.zk-stat i { position: absolute; left: 10px; right: 10px; bottom: 7px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.15); }
.zk-stat i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: 3px; }
.zk-grid { display: grid; grid-template-columns: 112px repeat(3, minmax(0, 1fr)); gap: 10px; }
.zk-col { text-align: center; font-family: var(--font-pixel); align-self: end; }
.zk-col b { display: block; font-weight: 400; font-size: 17px; }
.zk-col small { font-size: 12px; color: #ffe27a; }
.zk-fam { display: flex; align-items: center; justify-content: flex-end; text-align: right; font-family: var(--font-pixel); font-size: 15px; color: #ddd8f6; padding-right: 4px; }
.zk-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border: 2.5px solid var(--ink); border-radius: 14px; background: #2a2a55; color: #8e88c0; font: inherit; cursor: pointer; min-width: 0; box-shadow: 0 5px 0 rgba(4,4,20,.45); transition: transform .12s; }
.zk-card:hover { transform: translateY(-2px); }
.zk-card.got { background: var(--cream); color: var(--ink); }
.zk-no { font-family: var(--font-mono); font-size: 11px; align-self: flex-start; opacity: .8; }
.zk-pic { display: grid; place-items: center; width: 100%; max-width: 110px; aspect-ratio: 1; }
.zk-pic svg { width: 100%; height: 100%; display: block; }
.zk-q { font-family: var(--font-pixel); font-size: 44px; color: #7d77b8; line-height: 1; width: 72%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3b3a73, #1d1c45); border: 2px dashed #57519a; }
.zk-name { font-weight: 700; font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
.zk-forms { display: flex; gap: 4px; align-items: center; margin-top: 2px; }
.zk-forms i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .55; }
.zk-forms i.on { background: var(--orange); border-color: var(--ink); opacity: 1; }
.zk-forms em { width: 9px; height: 9px; transform: rotate(45deg); border: 1.5px solid currentColor; opacity: .5; margin-left: 3px; }
.zk-forms em.on { border-color: var(--ink); opacity: 1; }
.zk-forms em.metal.on { background: linear-gradient(135deg, #f4f7fa, #8f9bab); }
.zk-forms em.gold.on { background: linear-gradient(135deg, #fff3a6, #f0a800); }
.zk-dialog { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 24px)); max-width: none; color: var(--ink); }
.zk-dialog::backdrop { background: rgba(8,8,24,.7); }
.zk-box { position: relative; background: var(--cream); border: 3px solid var(--ink); border-radius: 18px; padding: 18px 18px 14px; box-shadow: 0 10px 0 rgba(4,4,20,.45); max-height: calc(100vh - 40px); overflow: auto; }
.zk-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.zk-head { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: center; }
.zk-big { display: grid; place-items: center; aspect-ratio: 1; }
.zk-big svg { width: 100%; height: 100%; display: block; }
.zk-big .zk-q { width: 80%; font-size: 60px; }
.zk-head h3 { margin: 2px 0; font-family: var(--font-pixel); font-weight: 400; font-size: 24px; }
.zk-head p { margin: 2px 0; font-size: 13px; color: var(--ink-soft); }
.zk-box h4 { margin: 14px 0 6px; font-size: 14px; }
/* データの ひっこし */
.mv-box { padding: 20px 20px 16px; }
.mv-title { margin: 0 44px 6px 0; font-family: var(--font-pixel); font-weight: 400; font-size: 22px; }
.mv-lead { margin: 0 0 6px; font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); }
.mv-sec { margin-top: 12px; padding-top: 10px; border-top: 2px dashed rgba(43,29,26,.18); }
.mv-sec h4 { margin: 0 0 4px; }
.mv-note { margin: 0 0 8px; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.mv-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.mv-box textarea { width: 100%; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; font-family: var(--font-mono); font-size: 12px; line-height: 1.45; background: #fff; color: var(--ink); resize: vertical; word-break: break-all; }
.mv-code { background: #fffaf0; }
.mv-small { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-soft); }
.mv-ok { font-size: 12.5px; font-weight: 700; color: #2f8f5b; }
.mv-pick { cursor: pointer; }
.mv-err { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #ffe3dc; border: 2px solid #d4553b; font-size: 13px; line-height: 1.5; }
.mv-preview { margin-top: 10px; padding: 10px 12px 12px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; }
.mv-preview h5 { margin: 0 0 6px; font-size: 13.5px; }
.mv-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
.mv-pic { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #fff6e0, #f3e3c0); }
.mv-pic svg { width: 100%; height: 100%; display: block; }
.mv-egg { font-size: 44px; }
.mv-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 0; font-size: 13px; }
.mv-card dt { color: var(--ink-soft); }
.mv-card dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.mv-card dd small { font-weight: 400; margin-left: 4px; }
.mv-warn { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: #a1442c; }
.zk-forms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.zk-forms-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 50%; }
.zk-form { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 6px 4px; min-width: 0; }
.zk-form:not(.got) { background: #ece4d2; }
.zk-form .zk-q { font-size: 28px; width: 70%; color: #a39a8a; background: #d9cfba; border-color: #b9ad94; }
.zk-form figcaption b { display: block; font-size: 12px; }
.zk-form figcaption small { display: block; font-size: 11px; color: var(--ink-soft); overflow-wrap: anywhere; }
.zk-how { margin: 0; font-size: 13.5px; line-height: 1.7; }
.zk-how.small { margin-top: 6px; font-size: 12px; color: var(--ink-soft); }
.zk-foot { text-align: center; margin-top: 12px; }
.zk-card small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.mem-note b.nm { color: inherit; font-weight: 700; }

/* ---------- テーマきょく（ジュークボックス） ---------- */
.tip-songs { padding-top: 22px; }
.jb-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #444; }
.jb-note { color: #ffe27a; font-size: 18px; text-align: center; }
.jb-row.playing .jb-note { animation: jbBeat .5s steps(2) infinite; }
@keyframes jbBeat { 50% { transform: translateY(-3px) rotate(-12deg); } }
.jb-title b { display: block; font-size: 15px; color: #ffe27a; font-weight: 400; font-family: var(--font-pixel); overflow-wrap: anywhere; }
.jb-title small { font-size: 11px; color: #c9c3ee; }
.jb-btns { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.jb-btns .pill { font-size: 12px; padding: 5px 11px; text-decoration: none; }
.jb-btns .pill.on { background: var(--yellow); }
.jb-making { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: #c9c3ee; }
.jb-empty, .jb-foot { margin: 6px 0 0; font-size: 12.5px; line-height: 1.7; color: #c9c3ee; }
.paid-song { margin: 12px auto 4px; max-width: 440px; text-align: left; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px 4px; }
.paid-song > b { font-size: 14px; }
.paid-song .jb-row { border: 0; }
.paid-song .jb-title b { color: var(--ink); }
.paid-song .jb-title small, .paid-song .jb-making { color: var(--ink-soft); }
.paid-song .jb-note { color: var(--orange); }

/* ---------- ミニゲーム「Satoshiっち ラン」 ---------- */
.run { max-width: 1100px; margin: 0 auto; padding: 70px 16px 0; }
.run-box { width: min(100%, 460px); }
.run-stage { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; border: 3px solid var(--ink); overflow: hidden; background: #1b1f52; touch-action: none; user-select: none; -webkit-user-select: none; }
.run-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.run-preview, .run-preview > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.run-preview[hidden] { display: none; }
.run-hud { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; justify-content: space-between; font-family: var(--font-pixel); font-size: 18px; color: #fff; text-shadow: 2px 2px 0 var(--ink); pointer-events: none; z-index: 2; }
.run-hud[hidden] { display: none; }
.run-banner { position: absolute; left: 0; right: 0; top: 34px; text-align: center; font-style: normal; font-size: 20px; color: #ffe45c; }
.run-pause { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); font-weight: 700; cursor: pointer; }
.run-pause[hidden] { display: none; }
.run-stage .arcade-screen { inset: 0; border-radius: 0; z-index: 4; background: rgba(12,12,28,.55); }
.pill.gold { background: linear-gradient(90deg, #ffe08a, #f6a93b); color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.pill.gold[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff; }
.pill.gold[hidden] { display: none; }
.arcade-screen .best { color: #ffe45c; }
.arcade-screen p small { font-size: 13px; color: #d9d4ff; }

/* ---------- モンスターバトル ---------- */
.arena-box { max-width: 900px; margin: 0 auto; border: 4px solid var(--ink); border-radius: 22px; padding: 10px; background: linear-gradient(135deg, #b9a4ff, #6f5ad6 45%, #8f7cf0 60%, #5a47b8); box-shadow: 0 12px 0 rgba(4,4,20,.45); }
.arena { min-height: 420px; border-radius: 14px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); overflow: hidden; }
.bt-screen { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.bt-head, .bt-row-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bt-row-title b { font-family: var(--font-pixel); font-weight: 400; font-size: 20px; }
.bt-medal { font-family: var(--font-pixel); font-size: 18px; background: #fff1c2; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; }
.bt-rec { font-family: var(--font-pixel); color: var(--ink-soft); }
.bt-note { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.bt-partybox { background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.bt-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 430px; overflow: auto; padding: 2px; }
.bt-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 6px 8px; border: 2px solid var(--ink); border-radius: 12px; background: var(--cream); color: var(--ink); font: inherit; text-align: center; min-width: 0; }
button.bt-card { cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
button.bt-card:hover { background: #fff3d6; }
.bt-card.on { background: #ffe9a6; box-shadow: 0 0 0 3px var(--orange), 0 3px 0 var(--ink); }
.bt-card.empty { justify-content: center; min-height: 120px; font-family: var(--font-pixel); font-size: 28px; color: #bfb19c; border-style: dashed; }
.bt-card b { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.bt-card small { font-size: 11px; color: var(--ink-soft); }
.bt-face { display: block; width: 84px; height: 84px; }
.bt-face svg { width: 100%; height: 100%; display: block; }
.bt-face.big { width: 150px; height: 150px; margin: 0 auto; }
.bt-order { position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-style: normal; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink); }
.bt-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bt-mode { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.bt-mode b { font-family: var(--font-pixel); font-weight: 400; font-size: 18px; }
.bt-mode small { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.bt-mode:hover:not([disabled]) { background: #fff3d6; }
.bt-mode[disabled] { opacity: .45; cursor: not-allowed; }
.bt-subbtns, .bt-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bt-tier, .bt-prize { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 14px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; }
.bt-tier b, .bt-prize b { font-family: var(--font-pixel); font-weight: 400; font-size: 17px; display: block; }
.bt-tier small, .bt-prize small { display: block; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.bt-tier-info { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-pixel); font-size: 14px; }
.bt-tier-info em { font-style: normal; color: var(--orange-d); font-family: var(--font-body); font-size: 11px; }
.bt-prize { grid-template-columns: minmax(0, 1fr) auto; }
.bt-prize select, .vs-join input { margin-top: 6px; font: inherit; font-size: 14px; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); max-width: 100%; }
.bt-floor { display: grid; grid-template-columns: 38px 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 2px solid var(--ink); border-radius: 12px; padding: 6px 12px 6px 8px; background: #fff; }
.bt-floor.cleared { background: #eaf7ee; }
.bt-floor.next { background: #fff1c2; box-shadow: 0 0 0 3px var(--orange); }
.bt-floor.locked { background: #efe9df; color: #9a8b7d; }
.bt-floor-no { font-family: var(--font-pixel); font-size: 18px; text-align: center; }
.bt-boss-face { width: 64px; height: 64px; display: grid; place-items: center; }
.bt-boss-face svg { width: 100%; height: 100%; }
.bt-boss-face.mystery { font-family: var(--font-pixel); font-size: 30px; color: #bfb19c; border: 2px dashed #cdbfa8; border-radius: 50%; width: 52px; height: 52px; }
.bt-floor-info b { font-size: 14px; display: block; }
.bt-floor-info small { display: block; font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; }
.bt-demo { font-style: normal; font-size: 10px; background: #ffd1dc; border-radius: 4px; padding: 0 4px; }
.bt-lock { font-size: 20px; }
/* たたかい（ステージ・えんしゅつ） */
.bt-fight { gap: 10px; padding: 10px; }
.bt-stage { position: relative; aspect-ratio: 16 / 9; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #1b1f52; isolation: isolate; user-select: none; -webkit-user-select: none; }
.bt-shake { position: absolute; inset: 0; }
.bt-world { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.bt-sky { position: absolute; inset: 0; background: var(--sky, linear-gradient(#7ec8ff, #d7f0ff 60%)); }
.bt-scene { position: absolute; left: 0; right: 0; bottom: 44%; width: 100%; height: 44%; }
.bt-ground { position: absolute; left: -45%; right: -45%; bottom: -8%; height: 112%; transform: perspective(700px) rotateX(64deg); transform-origin: 50% 100%; background: var(--ground); -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
.bt-dim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(14,10,40,.55), rgba(6,4,22,.92)); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.bt-row { position: absolute; left: 0; right: 0; }
.bt-row.foes { top: 15%; height: 47%; }
.bt-row.mine { bottom: -19%; height: 54%; }
.bt-unit { position: absolute; bottom: 0; width: 24%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.bt-row.foes .s0 { left: 22%; }
.bt-row.foes .s1 { left: 50%; }
.bt-row.foes .s2 { left: 78%; }
.bt-row.mine .bt-unit { width: 24%; }
.bt-row.mine .s0 { left: 18%; }
.bt-row.mine .s1 { left: 50%; }
.bt-row.mine .s2 { left: 82%; }
.bt-spr { width: 100%; aspect-ratio: 1; position: relative; z-index: 1; }
.bt-spr svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bt-spr .mon-shadow { display: none; }
.bt-shadow { position: absolute; bottom: 5%; left: 50%; width: 64%; height: 11%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(0,0,0,.34), transparent 70%); border-radius: 50%; }
.bt-st { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; min-height: 17px; position: relative; z-index: 2; }
.bt-st i { font-style: normal; background: rgba(12,12,28,.72); color: #fff; border-radius: 6px; padding: 0 4px; line-height: 16px; font-size: 10.5px; }
.bt-st i.up { color: #ffd166; }
.bt-st i.down { color: #9fc4ff; }
.bt-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.bt-nums { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.bt-num { position: absolute; transform: translate(-50%, -50%); font-style: normal; font-family: var(--font-pixel); font-size: 34px; line-height: 1; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); white-space: nowrap; animation: numPop 1.25s cubic-bezier(.2,1.4,.4,1) forwards; }
.bt-num.magic { color: #f1e4ff; }
.bt-num.crit { color: #ffd93d; font-size: 46px; }
.bt-num.heal { color: #8dffb9; }
.bt-num.mp { color: #8ec5ff; font-size: 24px; }
.bt-num.miss { color: #e7f1ff; font-size: 24px; }
.bt-num.up { color: #ffd166; font-size: 18px; }
.bt-num.down { color: #b9c7ff; font-size: 18px; }
.bt-num.tag { font-size: 18px; color: #fff3a0; }
.bt-num.tag.liq { color: #ff8fa3; }
@keyframes numPop { 0% { transform: translate(-50%, -20%) scale(.3); opacity: 0; } 14% { transform: translate(-50%, -70%) scale(1.25); opacity: 1; } 28% { transform: translate(-50%, -55%) scale(1); } 75% { opacity: 1; } 100% { transform: translate(-50%, -115%) scale(1); opacity: 0; } }
.bt-chips { position: absolute; left: 0; right: 0; top: 6px; display: flex; justify-content: center; gap: 6px; padding: 0 6px; z-index: 5; }
.bt-chip { display: flex; align-items: center; gap: 4px; background: linear-gradient(90deg, rgba(30,24,70,.9), rgba(90,40,90,.84)); border: 2px solid #fff; border-radius: 10px; padding: 2px 8px 2px 2px; color: #fff; min-width: 0; max-width: 32%; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.bt-cface { width: 30px; height: 30px; flex: none; }
.bt-cface svg { width: 100%; height: 100%; display: block; }
.bt-cinfo { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bt-cinfo b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-cinfo small { display: none; }
.bt-chip.ko { opacity: .45; filter: grayscale(1); }
.bt-gauge { display: block; height: 7px; border: 1.5px solid var(--ink); border-radius: 4px; background: #3b3557; overflow: hidden; min-width: 44px; }
.bt-gauge span { display: block; height: 100%; transition: width .5s; }
.bt-gauge.hp.ok span { background: linear-gradient(#5ff0a8, #22b673); }
.bt-gauge.hp.mid span { background: linear-gradient(#ffe066, #f4b400); }
.bt-gauge.hp.low span { background: linear-gradient(#ff8a7a, #e0402a); }
.bt-gauge.mp span { background: linear-gradient(#8ec5ff, #3f7ff0); }
.bt-turn { position: absolute; left: 10px; bottom: 8px; z-index: 5; font-family: var(--font-pixel); font-size: 13px; color: #fff; background: rgba(12,12,28,.6); border-radius: 8px; padding: 1px 8px; }
.bt-turn:empty { display: none; }
.bt-banner { position: absolute; left: 0; right: 0; top: 23%; z-index: 6; display: flex; justify-content: center; pointer-events: none; opacity: 0; }
.bt-banner span { position: relative; overflow: hidden; font-family: var(--font-pixel); font-size: clamp(20px, 4vw, 30px); color: #fff; padding: 6px 64px; letter-spacing: .08em; background: linear-gradient(90deg, transparent, rgba(40,110,220,.92) 16%, rgba(80,160,255,.96) 50%, rgba(40,110,220,.92) 84%, transparent); text-shadow: 0 2px 0 rgba(0,0,30,.6); border-top: 2px solid rgba(255,255,255,.75); border-bottom: 2px solid rgba(255,255,255,.75); }
.bt-banner.foe span { background: linear-gradient(90deg, transparent, rgba(170,40,90,.92) 16%, rgba(225,64,112,.96) 50%, rgba(170,40,90,.92) 84%, transparent); }
.bt-banner span::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); }
.bt-banner.show { animation: bannerIn 1.25s ease both; }
.bt-banner.show span::after { animation: bannerShine .9s .15s ease-out both; }
@keyframes bannerIn { 0% { opacity: 0; transform: translateX(-40px) scaleY(.4); } 12% { opacity: 1; transform: none; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateX(30px); } }
@keyframes bannerShine { to { left: 120%; } }
.bt-flash { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; }
.bt-flash.on { animation: scrFlash .36s ease-out; }
@keyframes scrFlash { 0% { opacity: var(--a, .6); } 100% { opacity: 0; } }
.quake-s { animation: quake .28s linear; }
.quake-m { animation: quake .42s linear; }
.quake-l { animation: quakeL .58s linear; }
@keyframes quake { 0%, 100% { transform: none; } 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, -1px); } 80% { transform: translate(2px, 1px); } }
@keyframes quakeL { 0%, 100% { transform: none; } 10% { transform: translate(-9px, 4px); } 25% { transform: translate(8px, -5px); } 40% { transform: translate(-7px, -3px); } 55% { transform: translate(6px, 4px); } 70% { transform: translate(-4px, 2px); } 85% { transform: translate(3px, -1px); } }
.bt-unit.act .bt-spr { animation: uAct .5s ease-out; }
.bt-row.foes .bt-unit.act .bt-spr { animation-name: uActFoe; }
@keyframes uAct { 40% { transform: translateY(-14%) scale(1.06); } }
@keyframes uActFoe { 40% { transform: translateY(10%) scale(1.1); } }
.bt-unit.cast .bt-spr { animation: uCast .9s ease-out; }
@keyframes uCast { 0%, 100% { filter: none; transform: none; } 35% { filter: drop-shadow(0 0 14px #fff3a0) brightness(1.3); transform: translateY(-6%) scale(1.08); } }
.bt-unit.hit .bt-spr { animation: uHit .5s linear; }
.bt-unit.hit.crit .bt-spr { animation: uHit .5s linear 2; }
@keyframes uHit { 0%, 100% { transform: none; filter: none; } 15% { transform: translateX(-9%); filter: brightness(3) saturate(0); } 35% { transform: translateX(7%); filter: brightness(1.6); } 55% { transform: translateX(-5%); filter: brightness(2.2) saturate(.3); } 75% { transform: translateX(3%); } }
.bt-unit.guard .bt-spr { filter: drop-shadow(0 0 8px #9fd0ff); }
.bt-unit.glow .bt-spr { animation: uGlow .7s ease-out; }
@keyframes uGlow { 40% { filter: drop-shadow(0 0 16px #8dffb9) brightness(1.2); } }
.bt-unit.wobble .bt-spr { animation: uWobble .6s ease-in-out; }
@keyframes uWobble { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.bt-unit.ghosty .bt-spr { animation: uGhost 1.2s ease-in-out; }
@keyframes uGhost { 30%, 70% { opacity: .35; filter: drop-shadow(10px 0 0 rgba(169,144,255,.5)) drop-shadow(-10px 0 0 rgba(169,144,255,.4)); } }
.bt-unit.ko .bt-spr { opacity: .3; filter: grayscale(1); transform: translateY(10%) scaleY(.8); transition: all .6s; }
.bt-row.foes .bt-unit.ko .bt-spr { opacity: 0; transform: translateY(14%) scale(.7); filter: brightness(3) grayscale(1); transition: all .7s ease-in; }
.bt-unit.ko .bt-st, .bt-unit.ko .bt-shadow { opacity: 0; }
.bt-unit.revive .bt-spr { animation: uRevive .9s ease-out; }
@keyframes uRevive { 0% { opacity: 0; transform: translateY(20%); filter: brightness(3); } 100% { opacity: 1; } }
.bt-unit.choosing .bt-spr { filter: drop-shadow(0 0 8px #ffe066); }
.bt-unit.pickable { cursor: pointer; }
.bt-unit.pickable .bt-spr { animation: uPick 1s ease-in-out infinite; }
@keyframes uPick { 50% { filter: drop-shadow(0 0 10px #fff) brightness(1.15); } }
.intro .bt-row.foes .bt-unit .bt-spr { animation: uEnter .7s cubic-bezier(.2,1.4,.4,1) both; }
.intro .bt-row.foes .s1 .bt-spr { animation-delay: .12s; }
.intro .bt-row.foes .s2 .bt-spr { animation-delay: .24s; }
@keyframes uEnter { 0% { opacity: 0; transform: translateY(-40%) scale(.5); filter: brightness(3); } 100% { opacity: 1; transform: none; filter: none; } }
.bt-party { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bt-pcard { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 6px; align-items: center; background: linear-gradient(135deg, #2a2f6e, #3d2f7a); color: #fff; border: 2.5px solid #fff; border-radius: 12px; padding: 4px 8px 4px 4px; box-shadow: 0 0 0 2.5px var(--dq), 0 4px 0 rgba(4,4,20,.4); min-width: 0; }
.bt-pface { width: 46px; height: 46px; background: rgba(255,255,255,.12); border-radius: 10px; }
.bt-pface svg { width: 100%; height: 100%; display: block; }
.bt-pinfo { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bt-pinfo b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-pinfo small { font-size: 10.5px; color: #c9c6ef; margin-top: -2px; }
.bt-gl { display: grid; grid-template-columns: 18px minmax(0, 1fr) 30px; gap: 4px; align-items: center; }
.bt-gl em { font-style: normal; font-family: var(--font-pixel); font-size: 10px; color: #ffe27a; }
.bt-gv { font-family: var(--font-pixel); font-size: 12px; text-align: right; }
.bt-pst { position: absolute; right: 6px; top: 3px; display: flex; gap: 2px; }
.bt-pst i { font-style: normal; font-size: 10px; }
.bt-pcard.ko { filter: grayscale(.9); opacity: .6; }
.bt-pcard.choosing { box-shadow: 0 0 0 3px var(--orange), 0 4px 0 rgba(4,4,20,.4); }
.bt-pcard.pickable, .bt-chip.pickable { cursor: pointer; animation: pickPulse 1s ease-in-out infinite; }
@keyframes pickPulse { 50% { box-shadow: 0 0 0 3px #fff, 0 0 14px #fff; } }
.bt-stage[data-theme="meadow"] { --sky: linear-gradient(#5fb4ff 0%, #a9dcff 55%, #e8f7ff 70%); --ground: repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 2px, transparent 2px 64px), repeating-linear-gradient(0deg, rgba(255,255,255,.2) 0 2px, transparent 2px 64px), linear-gradient(#7ccf63, #4f9e3e); }
.bt-stage[data-theme="ice"] { --sky: linear-gradient(#c7defa 0%, #eaf4ff 60%, #ffffff 72%); --ground: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 2px, transparent 2px 64px), repeating-linear-gradient(0deg, rgba(255,255,255,.55) 0 2px, transparent 2px 64px), linear-gradient(#9fbfe6, #6e8fc4); }
.bt-stage[data-theme="volcano"] { --sky: linear-gradient(#2a0f1f 0%, #6b1f2b 55%, #ff7a3d 75%); --ground: repeating-linear-gradient(90deg, rgba(255,120,60,.28) 0 2px, transparent 2px 64px), repeating-linear-gradient(0deg, rgba(255,120,60,.28) 0 2px, transparent 2px 64px), linear-gradient(#4a2230, #2a1218); }
.bt-stage[data-theme="pizza"] { --sky: linear-gradient(#ff9a5a 0%, #ffcf8a 55%, #fff1cf 72%); --ground: repeating-conic-gradient(#f4e2b8 0 25%, #e9c98c 0 50%) 0 0 / 64px 64px; }
.bt-stage[data-theme="crystal"] { --sky: linear-gradient(#1c1240 0%, #3b2a7a 55%, #6d58c8 75%); --ground: repeating-linear-gradient(90deg, rgba(200,180,255,.32) 0 2px, transparent 2px 64px), repeating-linear-gradient(0deg, rgba(200,180,255,.32) 0 2px, transparent 2px 64px), linear-gradient(#4b3a9a, #2a1f5c); }
.bt-stage[data-theme="cosmos"] { --sky: radial-gradient(ellipse at 30% 30%, #3b2a7a, #0b0d2a 70%); --ground: repeating-linear-gradient(90deg, rgba(247,147,26,.38) 0 2px, transparent 2px 64px), repeating-linear-gradient(0deg, rgba(247,147,26,.38) 0 2px, transparent 2px 64px), linear-gradient(#1b1f52, #0b0d2a); }
.bt-stage[data-theme="colosseum"] { --sky: linear-gradient(#ff8f6b 0%, #ffc28a 55%, #ffe3b8 72%); --ground: repeating-linear-gradient(90deg, rgba(120,70,40,.25) 0 2px, transparent 2px 64px), repeating-linear-gradient(0deg, rgba(120,70,40,.25) 0 2px, transparent 2px 64px), linear-gradient(#e2b47a, #c08a52); }
.bt-msg { min-height: 74px; font-size: 16px; line-height: 1.7; padding: 12px 16px; }
.bt-msg b.nm.me { color: #ffe27a; font-weight: 400; }
.bt-msg b.nm.foe { color: #ff9db5; font-weight: 400; }
.bt-msg b.sk { color: #9fe3ff; font-weight: 400; }
.bt-cmd { min-height: 96px; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; }
.bt-ask { margin: 0 0 8px; font-family: var(--font-pixel); font-size: 16px; }
.bt-ask b.nm { font-weight: 400; color: var(--orange-d); }
.bt-cmds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.bt-cmds.sks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bt-c { font: inherit; font-family: var(--font-pixel); font-size: 16px; padding: 10px 8px; border: 2.5px solid #fff; border-radius: 10px; background: var(--dq); color: #fff; cursor: pointer; box-shadow: 0 0 0 2.5px var(--dq); text-align: center; }
.bt-c:hover:not([disabled]) { background: #29295a; }
.bt-c[disabled] { opacity: .4; cursor: not-allowed; }
.bt-c.sk { text-align: left; display: flex; flex-direction: column; gap: 2px; }
.bt-c.sk small { font-family: var(--font-body); font-size: 11px; color: #c9c6ef; line-height: 1.4; }
.bt-c b.nm { font-weight: 400; }
.bt-c b.nm.foe { color: #ff9db5; }
.bt-c b.nm.me { color: #ffe27a; }
.bt-wait { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 18px 0; color: var(--ink-soft); }
.bt-hint { margin: 0 0 6px; font-size: 12px; color: var(--ink-soft); }
.bt-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: 13px; }
.bt-ctrl select { font: inherit; padding: 4px 6px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); }
.bt-auto { display: flex; align-items: center; gap: 4px; margin-right: auto; font-family: var(--font-pixel); }
/* けっか */
.bt-result { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.bt-result h3 { margin: 4px 0 0; font-family: var(--font-pixel); font-weight: 400; font-size: 34px; }
.bt-result.win h3 { color: var(--orange-d); animation: pop .5s ease-out both; }
.bt-result.lose h3 { color: #5a6fb8; }
.bt-res-mons { display: flex; gap: 6px; justify-content: center; }
.bt-res-mons .bt-face { width: 96px; height: 96px; }
.bt-res-list { list-style: none; margin: 0; padding: 0; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.bt-res-list em { font-style: normal; color: var(--orange-d); font-size: 12px; }
.bt-legend { background: linear-gradient(135deg, #fff6c9, #d9f3ff); border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 16px; max-width: 420px; }
.bt-legend p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
/* ジュークボックス */
.bt-song { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; }
.bt-song.on { background: #e9f4ff; box-shadow: 0 0 0 3px #74b8ff; }
.bt-song b { display: block; font-size: 14px; }
.bt-song small { display: block; font-size: 11.5px; color: var(--ink-soft); }
.bt-song a.pill { text-decoration: none; }
.bt-note-ic { font-size: 22px; text-align: center; }
.bt-song.on .bt-note-ic { animation: bounce .6s ease-in-out infinite alternate; }
@keyframes bounce { to { transform: translateY(-4px); } }
/* オンライン */
.vs-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; align-items: end; }
.vs-form .tip-field { margin-top: 0; }
.vs-rules { grid-column: 1 / -1; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin-top: 6px; }
.vs-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vs-join { cursor: default; }
.vs-join div { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.vs-join input { width: 8.5em; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 0; }
.vs-code { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; background: #fff; border: 2.5px dashed var(--ink); border-radius: 14px; }
.vs-code b { font-family: var(--font-mono); font-size: 40px; letter-spacing: .18em; }
.vs-gg { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff7d1; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; max-width: 420px; }
.vs-gg small { font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; }
.vs-gg-btns { display: flex; gap: 8px; }
.vs-qr { width: 200px; }

/* ---------- あそびかた・フッター ---------- */
.howto { padding-bottom: 20px; }
.dq-wide { padding: 28px 26px 20px; font-family: var(--font-body); }
.how-list { margin: 0; padding-left: 22px; line-height: 1.85; font-size: 14.5px; }
.how-list li { margin-bottom: 8px; }
.how-list li::marker { color: var(--yellow); font-family: var(--font-pixel); }
.how-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 2px dashed #444; font-size: 13px; color: #c9c3ee; }
.footer { max-width: 900px; margin: 50px auto 0; padding: 24px 16px 40px; text-align: center; font-size: 12.5px; line-height: 1.7; color: #b9b3e0; }
.footer p { margin: 4px 0; }
.foot-links a { color: #ffe27a; }
.noscript { text-align: center; padding: 20px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .lab-stage { grid-template-columns: 180px minmax(0, 1fr) 150px; }
}
@media (max-width: 920px) {
  .tip-grid { grid-template-columns: 1fr; }
  .partner { grid-template-columns: 1fr; max-width: 560px; }
  .lab { grid-template-columns: 1fr; }
  .lab-side { border-right: 0; border-bottom: 1px solid var(--paper-line); max-height: none; padding: 22px 16px 10px; }
  .fig-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
  .fig-group { display: none; }
  .fig-item { flex: none; width: auto; border: 1px solid var(--paper-line); }
  .lab-main { padding: 20px 16px; }
  .lab-stage { grid-template-columns: 1fr; min-height: 0; gap: 12px; }
  .lab-left { order: 2; }
  .lab-figure { order: 1; min-height: 340px; }
  .lab-right { order: 0; flex-direction: row; justify-content: space-between; align-items: center; }
  .lab-actions { flex-direction: row; flex-wrap: wrap; }
  .lab-actions .menu.open { min-width: 0; width: 100%; }
  .vm-qty { flex-basis: 100%; }
  .zoom { position: static; justify-self: end; order: 3; }
  .lab-controls { grid-template-columns: 1fr; gap: 16px; }
  .credit b { font-size: 24px; }
}
@media (max-width: 640px) {
  .inv { grid-template-columns: 1fr; }
  .inv-qr { max-width: 280px; width: 100%; margin: 0 auto; }
  .live { display: block; text-align: center; border-radius: 16px; line-height: 1.7; font-size: 12px; }
  .live .dot { display: inline-block; margin-right: 6px; vertical-align: -1px; }
  .topbar { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { flex: none; font-size: 13px; padding: 6px 10px; }
  .top-actions { margin-left: auto; }
  .top-actions .pill { font-size: 12px; padding: 6px 11px; }
  .tag { font-size: 16px; left: -6px; }
  .title-card { padding: 16px 22px 12px; }
  .card { padding: 8px; border-radius: 22px; }
  .card-inner { padding: 10px 10px 8px; }
  .pass { grid-template-columns: 1fr; }
  .pass-stub { border-left: 0; border-top: 3px dashed var(--ink); flex-direction: row; flex-wrap: wrap; justify-content: space-around; }
  .pass::before, .pass::after { display: none; }
  .barcode { width: 90px; }
  .stamps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-grid { font-size: 15px; gap: 4px 14px; }
  .dq { padding: 18px 14px 14px; }
  .album { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .bt-modes, .vs-btns { grid-template-columns: 1fr; }
  .bt-slots { gap: 6px; }
  .bt-face { width: 64px; height: 64px; }
  .bt-card b { font-size: 11.5px; }
  .bt-screen { padding: 12px; }
  .bt-fight { padding: 6px; gap: 8px; }
  .bt-cmds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-cmds.sks { grid-template-columns: 1fr; }
  .bt-c { font-size: 15px; padding: 9px 6px; }
  .bt-msg { font-size: 14.5px; min-height: 66px; padding: 10px 12px; }
  .bt-tier { grid-template-columns: minmax(0, 1fr) auto; }
  .bt-tier .pill.big { grid-column: 1 / -1; }
  .bt-floor { grid-template-columns: 30px 48px minmax(0, 1fr); }
  .bt-floor > .pill, .bt-floor > .bt-lock, .bt-floor > .spin { grid-column: 1 / -1; justify-self: end; }
  .bt-boss-face { width: 48px; height: 48px; }
  .vs-form { grid-template-columns: 1fr; }
  .vs-code b { font-size: 32px; }
  .bt-stage { aspect-ratio: 4 / 3.5; }
  .bt-row.foes { top: 17%; }
  .bt-row.mine { bottom: -11%; }
  .bt-turn { left: auto; right: 8px; }
  .bt-unit { width: 30%; }
  .bt-row.mine .bt-unit { width: 33%; }
  .bt-chip { max-width: 33%; padding-right: 5px; }
  .bt-cface { width: 22px; height: 22px; }
  .bt-cinfo b { font-size: 10px; }
  .bt-party { gap: 5px; }
  .bt-pcard { grid-template-columns: minmax(0, 1fr); padding: 4px 6px; }
  .bt-pface { display: none; }
  .bt-num { font-size: 26px; }
  .bt-num.crit { font-size: 34px; }
  .bt-banner span { padding: 4px 34px; }
  .acc { padding-top: 40px; }
  .acc-head { grid-template-columns: 58px minmax(0, 1fr) 34px; gap: 10px; padding: 12px; border-radius: 18px; }
  .acc-art { width: 58px; height: 58px; border-radius: 14px; }
  .acc-art svg { width: 54px; height: 54px; }
  .acc-peek { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .acc-peek > * { width: 40px; height: 40px; }
  .acc-chev { width: 34px; height: 34px; }
  .zk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .zk-corner { display: none; }
  .zk-fam { grid-column: 1 / -1; justify-content: flex-start; text-align: left; margin-top: 8px; }
  .zk-sum { gap: 8px; }
  .zk-stat { padding: 6px 8px 14px; }
  .zk-stat b { font-size: 19px; }
  .zk-head { grid-template-columns: 96px minmax(0, 1fr); }
  .zk-forms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zk-forms-grid.two { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}
