/* ちいさな勇者の一日 — 草原緑 × 空青 × 白、16bit の明るい冒険 */
:root {
  --grass: #3fa34d;
  --grass-d: #1f6b35;
  --grass-l: #dff3d6;
  --sky: #4aa8e8;
  --sky-d: #1d3a6e;
  --sky-l: #e4f3ff;
  --white: #ffffff;
  --cloud: #f2f8ff;
  --sun: #f08a3c;
  --gold: #ffd447;
  --red: #d23c3c;
  --ink: #1b2a3a;
  --ink-2: #44566b;
  --f-px: "DotGothic16", "Hiragino Sans", sans-serif;
  --f-num: "DotGothic16", monospace;
  --f-latin: "Silkscreen", "DotGothic16", monospace;
  --f-body: "Kosugi Maru", "DotGothic16", sans-serif;
  --notch: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  --sa-t: env(safe-area-inset-top, 0px);
  --sa-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--f-px); color: var(--ink); font-size: 15px; line-height: 1.6; line-break: strict; overflow: hidden; -webkit-font-smoothing: none;
  background: var(--sky-d) linear-gradient(var(--sky) 0 50%, var(--grass) 50%) fixed;
}
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3 { word-break: keep-all; font-weight: 400; }
p { word-break: normal; }
[hidden] { display: none !important; }
.num { font-family: var(--f-num); white-space: nowrap; }
.app { position: relative; height: 100dvh; max-width: 430px; margin: 0 auto; overflow: hidden; overflow: clip; background: var(--cloud); isolation: isolate; }
@media (min-width: 600px) { .app { box-shadow: 0 0 0 4px var(--ink), 0 30px 80px rgba(0, 0, 0, .45); } }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--cloud); }
.screen.is-on { display: flex; }
.screen.is-in { animation: wipe .3s steps(6); }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 14px calc(28px + var(--sa-b)); }

/* ---------- ドットのボタンと窓 ---------- */
.pxbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 18px; font-size: 16px;
  background: var(--white); color: var(--ink); clip-path: var(--notch); box-shadow: inset 0 -4px 0 #c8d8ea, inset 0 0 0 3px var(--sky);
  transition: transform .06s steps(2); user-select: none; word-break: keep-all;
}
.pxbtn svg { width: 20px; height: 20px; }
.pxbtn:active { transform: translateY(3px); box-shadow: inset 0 -1px 0 #c8d8ea, inset 0 0 0 3px var(--sky); }
.pxbtn:disabled { background: #e8eef4; color: #55657a; }
.pxbtn--go { background: var(--grass-d); color: var(--white); box-shadow: inset 0 -4px 0 #0f4220, inset 0 0 0 3px #0f4220; }
.pxbtn--go:active { box-shadow: inset 0 -1px 0 #0f4220, inset 0 0 0 3px #0f4220; }
.pxbtn--l { width: 100%; min-height: 54px; }
.pxbtn--xl { width: 100%; min-height: 60px; font-size: 18px; }
.pxbtn--icon { width: 44px; min-height: 44px; height: 44px; padding: 0; }
.pxbtn--icon svg { width: 22px; height: 22px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.win { background: var(--white); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--sky); }

/* ---------- タイトル ---------- */
.screen--title { background: var(--sky) url(/app-development/apps/a028/img/title.webp) center bottom / cover no-repeat; image-rendering: pixelated; }
.title__top { display: flex; justify-content: flex-end; padding: calc(10px + var(--sa-t)) 12px 0; }
.title__logo { align-self: center; margin-top: 6px; padding: 14px 24px 16px; text-align: center; background: var(--white); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--sky-d), inset 0 -6px 0 #d4e6f7; max-width: calc(100% - 32px); }
.title__kicker { font-family: var(--f-latin); font-size: 12px; letter-spacing: .14em; color: var(--grass-d); }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.logo__s { font-size: 22px; color: var(--sky-d); letter-spacing: .08em; }
.logo__b { font-size: clamp(56px, 17vw, 72px); color: var(--ink); text-shadow: 3px 3px 0 var(--gold); letter-spacing: .1em; }
.title__lead { margin-top: 4px; font-size: 15px; color: var(--ink-2); word-break: keep-all; }
.title__menu { margin-top: auto; display: grid; gap: 10px; padding: 0 22px calc(22px + var(--sa-b)); }
.cont { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.cont__t { font-size: 18px; }
.cont__d { font-size: 13px; color: var(--ink-2); }

/* ---------- フィールド ---------- */
.screen--field { background: var(--grass-d); }
.fbar { display: flex; align-items: center; gap: 8px; padding: calc(6px + var(--sa-t)) 8px 6px; background: var(--sky-d); color: var(--white); flex: none; z-index: 2; }
.fbar__place { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.fbar__place b { font-weight: 400; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 13px; background: var(--white); color: var(--ink); clip-path: var(--notch); white-space: nowrap; }
.clock i { width: 10px; height: 10px; background: var(--gold); box-shadow: 0 0 0 2px #e0a800 inset; }
.clock[data-t="ゆうがた"] i { background: var(--sun); box-shadow: none; }
.clock[data-t="よる"] i { background: #c9b3ff; box-shadow: inset 3px -3px 0 var(--white); }
.fbar__me { display: flex; align-items: center; gap: 6px; }
.lv { font-family: var(--f-num); font-size: 13px; white-space: nowrap; }
.lv b { font-size: 16px; font-weight: 700; margin-left: 2px; }
.minibar { width: 64px; height: 10px; background: #0d1d38; box-shadow: 0 0 0 2px var(--white); display: block; }
.minibar i { display: block; height: 100%; background: #ff6b6b; transition: width .3s steps(6); }
.minibar.is-low i { background: var(--gold); animation: blinkbar .6s steps(2) infinite; }
@keyframes blinkbar { 50% { opacity: .4; } }
.map { position: relative; flex: 1; min-height: 0; background: var(--grass-d); }
.map__cv { display: block; width: 100%; height: 100%; image-rendering: pixelated; touch-action: none; }
.fade { position: absolute; inset: 0; background: var(--white); opacity: 0; pointer-events: none; transition: opacity .25s steps(4); }
.fade.is-on { opacity: 1; }
.fade.is-enc { background: repeating-linear-gradient(90deg, var(--ink) 0 12px, var(--white) 12px 24px); animation: enc .6s steps(6); }
@keyframes enc { 0% { opacity: 0; } 30% { opacity: 1; } 60% { opacity: .2; } 100% { opacity: 1; background-size: 4px 100%; } }
.toast { position: absolute; left: 50%; top: 12px; transform: translate(-50%, -8px); padding: 6px 14px; background: var(--white); color: var(--ink); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--sky-d); font-size: 15px; white-space: nowrap; opacity: 0; transition: .2s steps(3); pointer-events: none; z-index: 5; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.talk { position: absolute; left: 8px; right: 8px; bottom: 8px; min-height: 104px; padding: 18px 16px 14px; background: var(--white); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--sky), inset 0 -5px 0 #d4e6f7; display: none; z-index: 6; }
.talk.is-on { display: block; animation: pop .16s steps(3); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.talk__name { position: absolute; left: 12px; top: 0; padding: 0 10px; background: var(--grass-d); color: var(--white); font-size: 13px; line-height: 1.6; }
.talk__text { font-size: 17px; line-height: 1.75; color: var(--ink); min-height: 3.5em; }
.talk__next { position: absolute; right: 14px; bottom: 6px; color: var(--sky-d); font-size: 13px; animation: bob .7s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
.pad { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 18px calc(12px + var(--sa-b)); background: var(--grass); box-shadow: inset 0 4px 0 #6cc96b; }
.dpad { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 46px); }
.dpad__b { display: grid; place-items: center; background: var(--white); color: var(--ink); box-shadow: inset 0 -4px 0 #c8d8ea, inset 0 0 0 3px var(--sky-d); }
.dpad__b svg { width: 20px; height: 20px; }
.dpad__b.is-down, .dpad__b:active { background: var(--sky-l); box-shadow: inset 0 0 0 3px var(--sky-d); }
.dpad__u { grid-area: 1 / 2; } .dpad__l { grid-area: 2 / 1; } .dpad__r { grid-area: 2 / 3; } .dpad__d { grid-area: 3 / 2; }
.dpad__l svg { transform: rotate(-90deg); } .dpad__r svg { transform: rotate(90deg); } .dpad__d svg { transform: rotate(180deg); }
.dpad__c { grid-area: 2 / 2; background: var(--white); box-shadow: inset 0 0 0 3px var(--sky-d); }
.pad__hint { flex: 1; text-align: center; font-size: 13px; color: var(--ink); background: var(--grass-l); padding: 4px 6px; word-break: keep-all; clip-path: var(--notch); }
.abtn { white-space: nowrap; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 2px; background: var(--red); color: var(--white); box-shadow: inset 0 -6px 0 #8f2020, 0 0 0 4px var(--white); font-size: 13px; transition: transform .06s; }
.abtn svg { width: 26px; height: 26px; }
.abtn:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 #8f2020, 0 0 0 4px var(--white); }

/* ---------- バトル ---------- */
.screen--battle { background: var(--sky-d); }
.stage { position: relative; height: 43dvh; min-height: 230px; flex: none; overflow: hidden; }
.stage__bg { position: absolute; inset: 0; background: center / cover no-repeat; image-rendering: pixelated; }
.stage.is-shake { animation: shake .3s steps(6); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.stage.is-flash::after { content: ""; position: absolute; inset: 0; background: var(--white); animation: flash .25s steps(3) forwards; }
@keyframes flash { to { opacity: 0; } }
.foe { position: absolute; left: 50%; bottom: 6%; width: 52%; max-width: 210px; transform: translateX(-50%); animation: idle 1.6s steps(2) infinite; }
.foe.is-boss { width: 72%; max-width: 280px; bottom: 2%; }
.foe__img { width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .25)); }
@keyframes idle { 50% { transform: translateX(-50%) translateY(-4px); } }
.foe.is-hit .foe__img { animation: hitflash .36s steps(6); }
@keyframes hitflash { 0%, 33%, 66% { filter: brightness(3) saturate(0); transform: translateX(6px); } 17%, 50%, 83% { filter: none; transform: translateX(-6px); } }
.foe.is-angry .foe__img { filter: drop-shadow(0 0 10px #b07cff) drop-shadow(0 6px 0 rgba(0, 0, 0, .25)); }
.foe.is-dead { animation: none; }
.foe.is-dead .foe__img { animation: die .8s steps(8) forwards; }
@keyframes die { to { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(20px); } }
.ftag { position: absolute; left: 10px; top: calc(10px + var(--sa-t)); padding: 6px 10px 8px; background: var(--white); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--sky-d); min-width: 150px; }
.ftag b { font-weight: 400; font-size: 15px; display: block; white-space: nowrap; }
.stage__time { position: absolute; right: 10px; top: calc(10px + var(--sa-t)); padding: 2px 10px; background: var(--sky-d); color: var(--white); font-size: 13px; }
.bar { display: block; height: 10px; background: #0d1d38; box-shadow: 0 0 0 2px var(--ink); flex: 1; }
.bar i { display: block; height: 100%; transition: width .35s steps(8); }
.bar--foe i { background: var(--red); }
.bar--hp i { background: #4cc96b; }
.bar--hp.is-low i { background: var(--gold); animation: blinkbar .6s steps(2) infinite; }
.bar--mp i { background: var(--sky); }
.bar--exp i { background: var(--gold); }
.pops { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.screen--battle .pops { position: absolute; inset: 0; height: 100%; }
.pop { position: absolute; transform: translate(-50%, -50%); font-family: var(--f-num); font-weight: 700; font-size: 30px; color: var(--white); text-shadow: 3px 0 var(--ink), -3px 0 var(--ink), 0 3px var(--ink), 0 -3px var(--ink); animation: dmg 1s steps(10) forwards; }
.pop--big { font-size: 40px; color: var(--gold); }
.pop--hurt { color: #ff8a8a; }
.pop--heal { color: #8affb0; }
@keyframes dmg { 0% { transform: translate(-50%, -20%) scale(1.4); } 30% { transform: translate(-50%, -90%); } 100% { transform: translate(-50%, -120%); opacity: 0; } }
.spark { position: absolute; width: 8px; height: 8px; background: var(--gold); box-shadow: 0 0 0 2px var(--white); animation: spark .8s steps(6) both; }
@keyframes spark { 0% { transform: scale(0) rotate(0); } 50% { transform: scale(1.4) rotate(45deg); } 100% { transform: scale(0) rotate(90deg) translateY(-30px); } }
.hero { display: flex; align-items: center; gap: 12px; margin: -26px 10px 0; padding: 10px 12px; background: var(--white); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--grass-d); position: relative; z-index: 3; flex: none; }
.hero.is-hurt { animation: hurt .35s steps(4); }
@keyframes hurt { 25%, 75% { background: #ffd6d6; transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.hero.is-lvup { animation: lvup .9s steps(6); }
@keyframes lvup { 0%, 100% { background: var(--white); } 30%, 60% { background: #fff4c2; } }
.hero__face { width: 56px; height: 56px; image-rendering: pixelated; background: var(--sky-l); flex: none; }
.hero__info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.hero__name { display: flex; align-items: baseline; gap: 10px; font-size: 16px; line-height: 1.3; }
.stat { display: flex; align-items: center; gap: 8px; }
.stat__ic { width: 16px; height: 16px; }
.stat__ic--hp { color: var(--red); } .stat__ic--mp { color: var(--sky); }
.stat__n { font-family: var(--f-num); font-size: 13px; min-width: 64px; text-align: right; white-space: nowrap; }
.stat__n b { font-size: 16px; }
.log { margin: 8px 10px 0; padding: 12px 14px; min-height: 76px; background: var(--white); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--sky); font-size: 16px; line-height: 1.65; flex: none; }
.cmds { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 10px calc(10px + var(--sa-b)); }
.cmds__grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 200px; }
.cmd { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; font-size: 18px; color: var(--white); clip-path: var(--notch); transition: transform .06s; }
.cmd svg { width: 24px; height: 24px; }
.cmd:active { transform: translateY(3px); }
.cmd--atk { background: #b8322f; box-shadow: inset 0 -5px 0 #7a1d1b; }
.cmd--mag { background: #1f6fb0; box-shadow: inset 0 -5px 0 #12466f; }
.cmd--bag { background: #8a5a12; box-shadow: inset 0 -5px 0 #5a3a0b; }
.cmd--run { background: var(--grass-d); box-shadow: inset 0 -5px 0 #0f4220; }
.sub { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--white); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--sky-d); }
.sub__head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 4px; border-bottom: 3px solid var(--sky-l); }
.sub__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; color: var(--sky-d); font-size: 15px; }
.sub__t { font-size: 16px; }
.sub__list { list-style: none; overflow-y: auto; flex: 1; padding: 4px; }
.opt { width: 100%; display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 8px 10px; min-height: 52px; column-gap: 8px; }
.opt + .opt, li + li .opt { border-top: 2px dotted #c8d8ea; }
.opt:active { background: var(--sky-l); }
.opt:disabled { background: #eef2f6; }
.opt:disabled .opt__n, .opt:disabled .opt__d, .opt:disabled .opt__c { color: #55657a; }
.opt__n { font-size: 16px; }
.opt__d { grid-column: 1; font-size: 13px; color: var(--ink-2); line-height: 1.5; font-family: var(--f-body); }
.opt__c { grid-row: 1 / 3; grid-column: 2; align-self: center; display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-num); font-size: 15px; color: var(--sky-d); }
.opt__c svg { width: 14px; height: 14px; color: var(--sky); }
.opt-empty { padding: 14px; color: var(--ink-2); list-style: none; }
.after { display: grid; gap: 8px; align-content: start; }
.screen--battle.is-down .stage { filter: grayscale(1) brightness(.6); transition: filter .8s steps(6); }

/* ---------- メニュー・設定 ---------- */
.mbar { display: flex; align-items: center; padding: calc(6px + var(--sa-t)) 8px 6px; background: var(--sky-d); color: var(--white); flex: none; }
.mbar__t { flex: 1; text-align: center; font-size: 19px; }
.mbar__sp { width: 44px; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px 10px 0; background: var(--sky-d); flex: none; }
.tabs button { min-height: 46px; background: #2c5598; color: var(--white); font-size: 15px; clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% 100%, 0 100%); }
.tabs button[aria-selected="true"] { background: var(--cloud); color: var(--ink); }
.card { background: var(--white); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--sky); padding: 14px; margin-top: 10px; }
.h { font-size: 17px; margin: 18px 2px 0; display: flex; align-items: center; gap: 8px; color: var(--sky-d); }
.h::before { content: ""; width: 10px; height: 10px; background: var(--gold); box-shadow: 0 0 0 2px var(--ink) inset; }
.me { display: flex; gap: 14px; align-items: center; }
.me__face { width: 84px; height: 84px; image-rendering: pixelated; background: var(--sky-l); flex: none; }
.me__body { flex: 1; display: grid; gap: 2px; }
.me__name { display: flex; align-items: baseline; gap: 10px; font-size: 19px; }
.me__where { font-size: 14px; color: var(--ink-2); }
.me__next { font-size: 14px; }
.me__next b { margin-left: 6px; font-size: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.stats div { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; border-bottom: 2px dotted #c8d8ea; }
.stats dt { font-size: 15px; }
.stats dd { font-size: 16px; }
.stats .is-hp dd { color: #b8322f; } .stats .is-mp dd { color: #1f6fb0; }
.list { list-style: none; padding: 4px 14px; }
.li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 10px 0; align-items: center; }
.li + .li { border-top: 2px dotted #c8d8ea; }
.li__n { font-size: 16px; display: flex; align-items: baseline; gap: 8px; }
.li__x { font-size: 14px; color: var(--ink-2); }
.li__d { grid-column: 1; font-size: 13px; color: var(--ink-2); font-family: var(--f-body); line-height: 1.6; }
.li__c { grid-row: 1; grid-column: 2; display: inline-flex; align-items: center; gap: 3px; font-family: var(--f-num); font-size: 14px; color: var(--sky-d); }
.li__c svg { width: 13px; height: 13px; color: var(--sky); }
.li__btn, .li__tag { grid-column: 2; grid-row: 1 / 3; min-height: 44px; padding: 0 14px; display: grid; place-items: center; font-size: 15px; }
.li__btn { background: var(--grass-d); color: var(--white); clip-path: var(--notch); }
.li__btn:disabled { background: #9db1a3; }
.li__tag { font-size: 13px; color: var(--ink-2); }
.li.is-off .li__n, .li.is-off .li__d { color: #55657a; }
.li--eq { grid-template-columns: 4.2em 1fr; }
.li__slot { grid-row: 1 / 3; font-size: 13px; color: var(--white); background: var(--sky-d); text-align: center; padding: 2px 0; align-self: start; }
.li--eq .li__d { grid-column: 2; }
.li__opts { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-b { min-height: 40px; padding: 0 10px; font-size: 14px; background: var(--sky-l); clip-path: var(--notch); }
.chip-b.is-on { background: var(--grass-d); color: var(--white); }
.empty { padding: 26px 10px; text-align: center; color: var(--ink-2); word-break: keep-all; }
.diary { display: grid; gap: 8px; }
.diary__k { font-size: 14px; color: var(--white); background: var(--grass-d); justify-self: start; padding: 0 10px; }
.diary__goal { font-size: 17px; }
.diary__last { font-size: 15px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kv div { text-align: center; padding: 6px 2px; background: var(--sky-l); }
.kv dt { font-size: 12px; color: var(--ink-2); }
.kv dd { font-size: 15px; }
.kv dd b { font-size: 20px; font-weight: 700; }
.screen--menu .scroll > .panel > .pxbtn { margin-top: 14px; }
.howto { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; }
.howto li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; background: var(--sky-d); color: var(--white); font-family: var(--f-num); }
.howto b { font-weight: 400; font-size: 17px; }
.howto span { font-family: var(--f-body); font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.set { padding: 4px 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 0; }
.row + .row { border-top: 2px dotted #c8d8ea; }
.row--stack { flex-direction: column; align-items: stretch; }
.row__l { display: flex; flex-direction: column; font-size: 16px; line-height: 1.4; }
.row__l small { font-size: 13px; color: var(--ink-2); font-family: var(--f-body); }
.row--danger { width: 100%; color: #b8322f; justify-content: flex-start; font-size: 16px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg button { min-height: 44px; background: var(--sky-l); font-size: 15px; clip-path: var(--notch); }
.seg button[aria-pressed="true"] { background: var(--sky-d); color: var(--white); }
.sw { width: 56px; height: 30px; background: #b9c6d3; position: relative; flex: none; clip-path: var(--notch); }
.sw i { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; background: var(--white); transition: transform .12s steps(3); }
.sw[aria-checked="true"] { background: var(--grass-d); }
.sw[aria-checked="true"] i { transform: translateX(26px); }
.about { display: grid; gap: 12px; }
.about__h { display: flex; align-items: center; gap: 12px; }
.about__h img { width: 64px; height: 64px; image-rendering: pixelated; clip-path: var(--notch); }
.about__n { font-size: 18px; }
.about__v { font-size: 14px; color: var(--ink-2); }
.about__note { font-family: var(--f-body); font-size: 14px; line-height: 1.75; }
.about__k { font-size: 14px; color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; padding: 2px 10px; background: var(--grass-l); white-space: nowrap; }

/* ---------- エンディング ---------- */
.screen--ending { background: #ffe9c9; }
.end { padding: 0 0 calc(24px + var(--sa-b)); }
.end__pic { height: 52dvh; min-height: 300px; background: #f6b46a url(/app-development/apps/a028/img/ending.webp) center 70% / cover no-repeat; image-rendering: pixelated; }
.end__card { margin: -40px 14px 0; padding: 18px 16px 16px; background: var(--white); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--sun); position: relative; display: grid; gap: 10px; text-align: center; }
.end__k { font-size: 15px; color: #a6501a; }
.end__t { font-size: 42px; line-height: 1.2; letter-spacing: .14em; text-shadow: 3px 3px 0 var(--gold); }
.end__lead { font-size: 15px; color: var(--ink-2); word-break: keep-all; }
.kv--end { grid-template-columns: repeat(2, 1fr); text-align: center; }
.kv--end div { background: #fff1dd; }
.credits { list-style: none; display: grid; gap: 8px; margin: 6px 0; text-align: center; }
.credits li { display: grid; gap: 0; }
.credits span { font-size: 13px; color: #a6501a; }
.credits b { font-weight: 400; font-size: 15px; word-break: keep-all; }
.end__btns { display: grid; gap: 8px; margin-top: 4px; }

/* ---------- シート等 ---------- */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(13, 29, 56, .55); opacity: 0; pointer-events: none; transition: opacity .2s steps(3); }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 10px; right: 10px; bottom: calc(10px + var(--sa-b)); z-index: 41; padding: 18px 16px 14px; display: grid; gap: 10px; background: var(--white); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--sky-d); transform: translateY(120%); visibility: hidden; transition: transform .2s steps(4), visibility 0s .2s; }
.sheet.is-on { transform: none; visibility: visible; transition: transform .2s steps(4); }
.sheet__t { font-size: 19px; }
.sheet__d { font-family: var(--f-body); font-size: 15px; color: var(--ink-2); }
.splash { position: absolute; inset: 0; z-index: 90; display: none; place-content: center; justify-items: center; gap: 14px; background: var(--sky); }
.splash.is-on { display: grid; animation: spl .9s steps(6) forwards; }
@keyframes spl { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
.splash img { width: 112px; height: 112px; image-rendering: pixelated; clip-path: var(--notch); }
.splash p { font-size: 22px; color: var(--white); text-shadow: 2px 2px 0 var(--sky-d); }
.nojs { position: absolute; left: 14px; right: 14px; bottom: 40px; z-index: 99; padding: 14px; background: var(--ink); color: var(--white); font-size: 15px; }

@media (max-height: 700px) {
  .stage { height: 36dvh; min-height: 200px; }
  .pad { padding-top: 6px; }
  .dpad { grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); }
  .abtn { width: 80px; height: 80px; }
  .talk { min-height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
