/* 流星防衛隊 — ドット絵の操縦席UI（角丸なし・段々の枠・硬い影・コマ送りの動き） */
:root {
  --void: #06050a;
  --hull: #110d19;
  --panel: #1b1525;
  --line: #3a3150;
  --neon: #ff7a1a;
  --amber: #ffc15a;
  --ember: #ff3b30;
  --ice: #63e6ff;
  --bone: #f6ecd9;
  --dim: #b4a9c6;
  --px: 3px;
  --jp: 'DotGothic16', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --en: 'Silkscreen', 'DotGothic16', monospace;
  --fast: 90ms;
  --step: steps(4, end);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; background: var(--void); overflow: hidden; }
body {
  font-family: var(--jp); color: var(--bone); font-size: 16px; line-height: 1.6;
  line-break: strict; -webkit-font-smoothing: none; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none; user-select: none; -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; flex: none; shape-rendering: crispEdges; }
.en { font-family: var(--en); letter-spacing: .06em; }
.num { font-family: var(--en); font-variant-numeric: tabular-nums; white-space: nowrap; }
h1, h2, h3 { font-weight: 400; font-feature-settings: "palt"; word-break: keep-all; }
p { word-break: normal; }

@media (min-width: 600px) {
  body { background: #06050a url('/app-development/apps/a011/img/title.webp') center/cover no-repeat; }
  body::before { content: ''; position: fixed; inset: 0; background: rgba(6, 5, 10, .82); }
}
.app {
  position: fixed; inset: 0; margin: 0 auto; max-width: 430px; overflow: hidden; background: var(--void);
  height: 100dvh;
}
@media (min-width: 600px) { .app { box-shadow: 0 0 0 3px var(--line), 0 0 0 6px var(--void); } }

/* ---------- 段々の枠（ピクセル枠） */
.pframe, .pbtn, .sheet__panel, .score-card, .group, .card, .comm, .banner, .toast, .demo, .hint, .boss, .warning__body, .hiscore, .tag {
  --bc: var(--line);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--bc), 0 var(--px) 0 0 var(--bc),
    calc(var(--px) * -1) 0 0 0 var(--bc), var(--px) 0 0 0 var(--bc);
}

/* ---------- ボタン */
.pbtn {
  --bg: var(--panel); --fg: var(--bone); --sh: #000;
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 8px 16px; background: var(--bg); color: var(--fg);
  font-size: 16px; line-height: 1.3; word-break: keep-all; text-align: center;
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--bc), 0 var(--px) 0 0 var(--bc),
    calc(var(--px) * -1) 0 0 0 var(--bc), var(--px) 0 0 0 var(--bc),
    calc(var(--px) * 2) calc(var(--px) * 2) 0 0 var(--sh);
  transition: transform var(--fast) var(--step), box-shadow var(--fast) var(--step);
  touch-action: manipulation;
}
.pbtn:active {
  transform: translate(var(--px), var(--px));
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--bc), 0 var(--px) 0 0 var(--bc),
    calc(var(--px) * -1) 0 0 0 var(--bc), var(--px) 0 0 0 var(--bc),
    var(--px) var(--px) 0 0 var(--sh);
}
.pbtn:focus-visible { outline: 3px solid var(--ice); outline-offset: 5px; }
.pbtn--primary { --bg: var(--neon); --fg: #120800; --bc: #ffb066; --sh: #5c2200; }
.pbtn--primary::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--px); background: #ffd2a3; }
.pbtn--danger { --bg: #3a0d10; --fg: #ffd9d4; --bc: var(--ember); }
.pbtn--xl { min-height: 60px; font-size: 19px; width: 100%; }
.pbtn--icon { width: 48px; height: 48px; min-height: 48px; padding: 0; --bg: var(--hull); }
.pbtn--icon svg { width: 22px; height: 22px; }
.pbtn--square { width: 60px; min-height: 60px; padding: 0; flex: none; }
.pbtn--square svg { width: 24px; height: 24px; }

/* ---------- 画面の切替（上から下へコマ送りでシャッター） */
.screen { position: absolute; inset: 0; display: none; flex-direction: column; overflow: hidden; background: var(--void); }
.screen.is-active { display: flex; }
.screen.is-enter { animation: shutter 240ms steps(6, end) both; }
@keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.bar {
  position: relative; z-index: 3; flex: none; display: flex; align-items: center; gap: 14px;
  padding: calc(10px + var(--sat)) 16px 12px; background: var(--hull); border-bottom: var(--px) solid var(--line);
}
.bar--clear { background: transparent; border: 0; }
.bar__title { display: flex; flex-direction: column; line-height: 1.2; font-size: 20px; }
.bar__title .en { font-size: 11px; color: var(--neon); }
.bar__count { margin-left: auto; color: var(--dim); font-size: 14px; }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 18px calc(28px + var(--sab)); }

/* ---------- スプラッシュ */
.splash {
  position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--void);
}
.splash img { image-rendering: pixelated; box-shadow: 0 0 0 3px var(--neon), 6px 6px 0 3px #5c2200; }
.splash__name { margin-top: 16px; font-size: 28px; letter-spacing: .12em; }
.splash__en { font-family: var(--en); font-size: 11px; color: var(--neon); letter-spacing: .2em; }
.splash.is-out { animation: shutterOut 260ms steps(6, end) forwards; }
@keyframes shutterOut { to { clip-path: inset(100% 0 0 0); } }

/* ---------- タイトル */
.screen--title {
  background: var(--void) url('/app-development/apps/a011/img/title.webp') center bottom / cover no-repeat;
  image-rendering: pixelated;
}
.screen--title::before { /* 走査線 */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
}
.title__fx { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.title__fx i { position: absolute; width: 3px; height: 3px; background: var(--amber); box-shadow: -3px -3px 0 var(--neon), -6px -6px 0 var(--neon), -9px -9px 0 #8a3b10, -12px -12px 0 #5c2200; animation: fall 2.6s steps(26, end) infinite; opacity: 0; }
.title__fx i:nth-child(1) { left: 22%; top: 8%; animation-delay: .2s; }
.title__fx i:nth-child(2) { left: 64%; top: 2%; animation-delay: 1.1s; }
.title__fx i:nth-child(3) { left: 86%; top: 14%; animation-delay: 1.8s; }
.title__fx i:nth-child(4) { left: 40%; top: 20%; animation-delay: 2.3s; }
.title__fx i:nth-child(5) { left: 8%; top: 30%; animation-delay: .7s; }
@keyframes fall { 0% { opacity: 1; transform: translate(0, 0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(130px, 130px); } }
.title__bar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: calc(14px + var(--sat)) 18px 0; }
.tag { display: flex; gap: 8px; align-items: baseline; padding: 4px 10px; background: var(--void); font-size: 12px; color: var(--dim); }
.tag b { color: var(--bone); font-size: 14px; }
.title__logo { position: relative; z-index: 2; text-align: center; margin-top: 7vh; padding: 0 16px; }
.title__kicker { display: inline-block; font-size: 12px; color: var(--amber); letter-spacing: .32em; background: var(--void); padding: 2px 8px; }
.logo { margin-top: 14px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo span { display: block; color: var(--bone); letter-spacing: .08em; }
.logo__a { font-size: 30px; color: var(--amber) !important; text-shadow: 3px 3px 0 #5c2200; letter-spacing: .5em !important; padding-left: .5em; }
.logo__b {
  font-size: 66px; margin-top: 8px; color: var(--bone);
  text-shadow: 0 3px 0 var(--neon), 0 6px 0 #a83d00, 0 9px 0 #5c2200, 6px 12px 0 #000;
}
.title__lead { margin-top: 26px; font-size: 16px; word-break: keep-all; }
.title__lead span { background: var(--void); padding: 3px 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.title__bottom { position: relative; z-index: 2; margin-top: auto; padding: 0 20px calc(22px + var(--sab)); display: flex; flex-direction: column; gap: 18px; }
.hiscore { align-self: center; display: flex; gap: 12px; align-items: baseline; padding: 6px 14px; background: var(--void); --bc: var(--neon); }
.hiscore .en { font-size: 12px; color: var(--amber); }
.hiscore b { font-size: 20px; letter-spacing: .08em; }
.title__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.title__grid .pbtn { --bg: rgba(17, 13, 25, 1); font-size: 15px; }

/* ---------- 機体選択 */
.screen--hangar { background: var(--void) url('/app-development/apps/a011/img/hangar.webp') center / cover no-repeat; }
.screen--hangar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(6, 5, 10, .55), rgba(6, 5, 10, .25) 40%, rgba(6, 5, 10, .85)); }
.hangar__rail {
  position: relative; z-index: 1; flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain;
  scrollbar-width: none; padding: 18px 0 8px; min-height: 0;
}
.hangar__rail::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 calc(100% - 44px); margin: 3px 0 3px 22px; scroll-snap-align: center; display: flex; flex-direction: column;
  background: var(--hull); --bc: var(--line); min-height: 0; overflow: hidden;
}
.card:last-child { margin-right: 22px; }
.card.is-on { --bc: var(--neon); }
.card__art { position: relative; flex: 1 1 auto; min-height: 150px; max-height: 300px; background: #000 center 20% / cover no-repeat; }
.card__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, var(--hull)); }
.card__ship { position: absolute; z-index: 1; right: 10px; bottom: 6px; width: 90px; height: 90px; image-rendering: pixelated; }
.card__pv { position: absolute; z-index: 1; left: 10px; bottom: 8px; width: 96px; height: 72px; image-rendering: pixelated; background: #06050a; box-shadow: 0 0 0 3px var(--line); }
.card__badge { position: absolute; z-index: 1; left: 10px; top: 10px; font-family: var(--en); font-size: 11px; padding: 2px 8px; background: var(--void); color: var(--amber); }
.card__body { flex: none; padding: 10px 16px 14px; }
.card__name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card__name h3 { font-size: 28px; line-height: 1.2; }
.card__name span { font-size: 14px; color: var(--amber); word-break: keep-all; }
.card__pilot { font-size: 14px; color: var(--dim); margin-top: 2px; }
.card__stats { margin-top: 10px; display: grid; gap: 6px; }
.stat { display: grid; grid-template-columns: 3.4em 1fr; align-items: center; gap: 10px; font-size: 14px; }
.stat i { display: flex; gap: 3px; }
.stat i b { flex: 1; height: 10px; background: #2a2238; }
.stat i b.on { background: var(--neon); }
.card__desc { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--bone); }
.hangar__dots { position: relative; z-index: 1; display: flex; justify-content: center; gap: 4px; padding: 4px 0; }
.hangar__dots button { width: 44px; height: 32px; display: grid; place-items: center; }
.hangar__dots button::before { content: ''; width: 12px; height: 12px; background: var(--line); }
.hangar__dots button[aria-selected="true"]::before { background: var(--neon); width: 24px; }
.hangar__foot { position: relative; z-index: 1; padding: 6px 20px calc(18px + var(--sab)); }

/* ---------- プレイ */
.screen--play { background: var(--void); }
.hud {
  position: relative; z-index: 4; flex: none; display: flex; align-items: center; gap: 12px;
  padding: calc(6px + var(--sat)) 12px 6px; background: var(--hull); border-bottom: var(--px) solid var(--line);
}
.hud__k { font-size: 11px; color: var(--amber); display: block; line-height: 1.2; }
.hud__score b { font-size: 20px; line-height: 1.1; letter-spacing: .04em; }
.hud__mid { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hud__lives { display: flex; gap: 4px; min-height: 16px; }
.hud__lives i { width: 15px; height: 15px; background-size: 15px 15px; image-rendering: pixelated; }
.hud__pwr { display: flex; align-items: center; gap: 6px; }
.hud__pwr .hud__k { display: inline; }
.hud__pwr i { display: flex; gap: 2px; }
.hud__pwr i b { width: 10px; height: 8px; background: #2a2238; }
.hud__pwr i b.on { background: var(--neon); }
.hud--bottom { border-bottom: 0; border-top: var(--px) solid var(--line); padding: 8px 12px calc(8px + var(--sab)); }
.field { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; background: var(--void); cursor: crosshair; }
.field__cv { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.planet { flex: 1; min-width: 0; }
.planet__k { display: flex; justify-content: space-between; font-size: 14px; line-height: 1.3; }
.planet__k b { font-size: 14px; color: var(--ice); }
.planet__bar { display: block; height: 10px; margin-top: 5px; background: #0d2230; box-shadow: 0 0 0 2px #173a6e; }
.planet__bar i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(90deg, var(--ice) 0 9px, transparent 9px 12px); transition: width 200ms steps(5, end); }
.planet.is-low .planet__k b { color: #ff8a80; }
.planet.is-low .planet__bar i { background: repeating-linear-gradient(90deg, var(--ember) 0 9px, transparent 9px 12px); animation: blink .5s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.pbtn--bomb { --bg: #250a0d; --bc: var(--ember); min-width: 96px; height: 48px; gap: 8px; }
.pbtn--bomb svg { color: #ff8a80; }
.pbtn--bomb[disabled] { opacity: .5; }
.bombs { display: flex; gap: 3px; }
.bombs b { width: 8px; height: 14px; background: var(--ember); }
.bombs b.off { background: #4a1a1e; }

.boss { position: absolute; z-index: 3; left: 12px; right: 12px; top: 10px; padding: 6px 10px; background: var(--void); --bc: var(--ember); }
.boss__name { display: block; font-size: 14px; line-height: 1.3; color: #ffd9d4; }
.boss__bar { display: block; height: 8px; margin-top: 4px; background: #3a0d10; }
.boss__bar i { display: block; height: 100%; width: 100%; background: var(--ember); transition: width 120ms steps(3, end); }
.boss:not([hidden]) ~ .comm { top: 70px; }
.chain { display: inline-flex; gap: 5px; align-items: baseline; margin-left: 10px; color: var(--bone); }
.chain b { font-size: 12px; color: var(--amber); font-weight: 400; }
.chain .en, .chain .num { font-size: 11px; }
.banner { position: absolute; z-index: 3; left: 50%; top: 32%; transform: translateX(-50%); min-width: 220px; text-align: center; padding: 10px 20px 12px; background: var(--void); --bc: var(--neon); animation: pop 2.4s steps(1, end) both; }
.banner__k { font-size: 12px; color: var(--amber); letter-spacing: .3em; }
.banner__t { font-size: 30px; line-height: 1.3; letter-spacing: .14em; word-break: keep-all; }
@keyframes pop { 0% { clip-path: inset(0 50% 0 50%); } 4% { clip-path: inset(0 25% 0 25%); } 8% { clip-path: inset(0 0 0 0); } 92% { clip-path: inset(0 0 0 0); } 96% { clip-path: inset(0 25% 0 25%); } 100% { clip-path: inset(0 50% 0 50%); } }
.warning { position: absolute; z-index: 3; left: 0; right: 0; top: 24%; text-align: center; }
.warning__band {
  font-size: 30px; letter-spacing: .3em; color: #fff; padding: 6px 0;
  background: repeating-linear-gradient(-45deg, #8a1f2c 0 12px, #5a0f18 12px 24px);
  text-shadow: 3px 3px 0 #000; animation: blink .6s steps(2, end) infinite;
}
.warning__body { display: flex; align-items: center; gap: 14px; margin: 16px 18px 0; padding: 10px 14px; background: var(--void); --bc: var(--ember); text-align: left; }
.warning__body img { width: 76px; height: 76px; image-rendering: pixelated; flex: none; }
.warning__t { font-size: 22px; line-height: 1.3; word-break: keep-all; }
.warning__s { font-size: 14px; color: #ff8a80; }
.toast { position: absolute; z-index: 3; left: 50%; top: 128px; transform: translateX(-50%); padding: 4px 14px; background: var(--void); --bc: var(--amber); font-size: 15px; white-space: nowrap; animation: pop 1.4s steps(1, end) both; }
.comm { position: absolute; z-index: 3; left: 10px; right: 10px; top: 12px; display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: var(--void); --bc: var(--line); }
.comm__face { flex: none; width: 46px; height: 46px; background: #1b1525 center / cover no-repeat; image-rendering: pixelated; display: grid; place-items: center; color: var(--neon); }
.comm__face svg { width: 26px; height: 26px; }
.comm__who { font-size: 12px; color: var(--amber); line-height: 1.3; }
.comm__text { font-size: 14px; line-height: 1.55; min-height: 1.55em; }
.hint { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 26%; padding: 12px 14px; background: var(--void); --bc: var(--ice); text-align: center; font-size: 15px; line-height: 1.6; }
.hint p span { display: block; }
.hint__hand { display: block; margin: 0 auto 8px; width: 18px; height: 18px; background: var(--bone); box-shadow: 6px 0 0 var(--bone), -6px 0 0 var(--ice), 0 6px 0 var(--bone); animation: drag 1.6s steps(8, end) infinite; }
@keyframes drag { 0%, 100% { transform: translateX(-30px); } 50% { transform: translateX(30px); } }
.demo { position: absolute; z-index: 3; left: 50%; top: 40%; transform: translateX(-50%); text-align: center; padding: 10px 20px 12px; background: var(--void); --bc: var(--neon); white-space: nowrap; }
.demo__k { font-size: 12px; color: var(--amber); letter-spacing: .3em; animation: blink 1s steps(2, end) infinite; }
.demo__t { font-size: 17px; }

/* ---------- シート（ポーズ・確認） */
.sheet { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: rgba(6, 5, 10, .78); }
.sheet__panel {
  width: 100%; display: flex; flex-direction: column; gap: 16px; padding: 22px 22px calc(26px + var(--sab));
  background: var(--hull); --bc: var(--neon); animation: rise 200ms steps(5, end) both;
}
@keyframes rise { from { transform: translateY(100%); } }
.sheet__k { font-family: var(--en); font-size: 12px; color: var(--amber); letter-spacing: .3em; }
.sheet__t { font-size: 24px; line-height: 1.3; margin-top: -8px; }
.sheet__info { font-size: 15px; color: var(--dim); margin-top: -6px; }
.sheet__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- リザルト */
.screen--result { background: var(--void); }
.result__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.result__hero { position: relative; min-height: 300px; display: flex; flex-direction: column; background: #06050a url('/app-development/apps/a011/img/result-win.webp') center 30% / cover no-repeat; }
.result__hero.is-lose { background-image: url('/app-development/apps/a011/img/result-lose.webp'); }
.result__hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--void)); }
.result__head { position: relative; z-index: 1; padding: 6px 22px 22px; margin-top: auto; }
.result__k { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.result__k span { background: var(--void); padding: 2px 8px; font-size: 14px; }
.result__k .en { font-size: 12px; color: var(--amber); }
.result__title { margin-top: 10px; font-size: 40px; line-height: 1.2; letter-spacing: .08em; }
.result__title span { background: var(--void); padding: 0 8px; text-shadow: 3px 3px 0 #5c2200; }
.result__cause { display: inline-block; margin-top: 8px; font-size: 15px; background: var(--void); padding: 2px 8px; }
.result__body { padding: 12px 18px 28px; }
.score-card { display: flex; gap: 18px; align-items: center; padding: 16px; background: var(--hull); --bc: var(--neon); }
.rank { flex: none; width: 82px; height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--void); box-shadow: 0 0 0 3px var(--amber); }
.rank span { font-size: 11px; color: var(--amber); }
.rank b { font-size: 46px; line-height: 1; color: var(--amber); }
.rank[data-rank="S"] b { color: var(--ice); }
.rank[data-rank="S"] { box-shadow: 0 0 0 3px var(--ice); }
.rank[data-rank="C"] b, .rank[data-rank="D"] b { color: var(--dim); }
.score-card__main { min-width: 0; }
.score-card__k { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--amber); }
.newrec { font-family: var(--jp); font-size: 12px; color: #120800; background: var(--amber); padding: 0 6px; animation: blink .8s steps(2, end) infinite; }
.score-card__v { font-size: 30px; line-height: 1.2; letter-spacing: .04em; }
.score-card__s { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; color: var(--dim); }
.score-card__s b { color: var(--bone); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 18px; background: var(--line); border: var(--px) solid var(--line); }
.stats div { background: var(--hull); padding: 10px 10px 8px; }
.stats dt { font-size: 12px; color: var(--dim); line-height: 1.3; word-break: keep-all; }
.stats dd { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.stats dd b { font-size: 20px; font-weight: 400; }
.stats dd span { font-size: 13px; color: var(--dim); }
.bonus { margin-top: 12px; font-size: 14px; color: var(--amber); }
.log__title { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; font-size: 18px; }
.log__title .en { font-size: 12px; color: var(--neon); }
.log { list-style: none; border-top: var(--px) solid var(--line); }
.log li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.log__r { font-family: var(--en); font-size: 20px; text-align: center; color: var(--amber); }
.log__m { min-width: 0; font-size: 14px; line-height: 1.4; }
.log__m small { display: block; font-size: 12px; color: var(--dim); }
.log__s { font-size: 16px; }
.log__empty { padding: 16px 0; color: var(--dim); font-size: 14px; }
.result__foot { flex: none; display: flex; gap: 16px; padding: 12px 20px calc(16px + var(--sab)); background: var(--hull); border-top: var(--px) solid var(--line); }

/* ---------- 設定 */
.group { margin-bottom: 26px; background: var(--hull); }
.group__k { padding: 10px 16px 4px; font-size: 13px; color: var(--amber); }
.row { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; text-align: left; border-top: 1px dashed var(--line); }
.group__k + .row { border-top: 0; }
.row__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__t p, .row__p { font-size: 16px; line-height: 1.4; }
.row__s { font-size: 13px; color: var(--dim); line-height: 1.5; margin-top: 2px; }
.row--link:active, .row--danger:active { background: var(--panel); }
.row--danger .row__p { color: #ff8a80; }
.row svg { color: var(--dim); }
.seg { display: flex; box-shadow: 0 0 0 3px var(--line); }
.seg button { min-width: 58px; min-height: 44px; padding: 0 10px; font-size: 15px; color: var(--dim); }
.seg button[aria-checked="true"] { background: var(--neon); color: #120800; }
.toggle { flex: none; width: 64px; height: 44px; display: grid; align-items: center; padding: 0 6px; }
.toggle i { position: relative; display: block; height: 24px; background: #2a2238; box-shadow: 0 0 0 3px var(--line); }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--dim); transition: transform 120ms steps(3, end); }
.toggle[aria-checked="true"] i { background: #5c2200; box-shadow: 0 0 0 3px var(--neon); }
.toggle[aria-checked="true"] i::after { transform: translateX(28px); background: var(--amber); }

/* ---------- 遊び方 */
.brief { list-style: none; display: grid; gap: 20px; counter-reset: b; }
.brief li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.brief__cv, .brief__img { width: 96px; height: 72px; image-rendering: pixelated; background: var(--hull); box-shadow: 0 0 0 3px var(--line); }
.brief__img { object-fit: cover; }
.brief h3 { font-size: 18px; line-height: 1.35; color: var(--amber); }
.brief p { font-size: 15px; line-height: 1.7; margin-top: 4px; }
.keys { margin-top: 28px; font-size: 14px; line-height: 1.7; color: var(--dim); }
.keys span { display: block; }
.keys span:first-child { color: var(--bone); }

/* ---------- アプリについて */
.about__app { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.about__app img { image-rendering: pixelated; box-shadow: 0 0 0 3px var(--neon); }
.about__name { font-size: 24px; line-height: 1.3; }
.about__ver { font-size: 12px; color: var(--dim); }
.about__note { font-size: 15px; line-height: 1.75; padding: 14px 16px; background: var(--hull); border-left: var(--px) solid var(--neon); margin-bottom: 26px; }
.tech { list-style: none; }
.tech li { display: flex; flex-direction: column; padding: 10px 16px; border-top: 1px dashed var(--line); }
.tech li b { font-weight: 400; font-size: 15px; color: var(--bone); }
.tech li span { font-size: 14px; color: var(--dim); line-height: 1.6; }
.about__cta { margin-top: 6px; }

.nojs, .fatal { position: absolute; inset: auto 16px 40% 16px; z-index: 60; padding: 16px; background: var(--hull); text-align: center; font-size: 16px; }

@media (max-height: 700px) {
  .logo__b { font-size: 54px; }
  .title__logo { margin-top: 3vh; }
  .card__art { min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .title__fx, .hint__hand { display: none; }
  .screen.is-enter, .sheet__panel, .banner, .toast, .splash.is-out { animation: none; }
  .demo__k, .warning__band, .newrec, .planet.is-low .planet__bar i { animation: none; }
}
