/* モグラのぼうけん — 地下の土とキノコ・切り絵 */
:root {
  --soil0: #1f130b;
  --soil1: #2a190e;
  --soil2: #3b2516;
  --soil3: #5a3a22;
  --soil4: #8a5a35;
  --red: #b23420;
  --red-hi: #d2452f;
  --red-lo: #7d2213;
  --ki: #f2c14e;
  --ki-lo: #b8862b;
  --kami: #f3e3c3;
  --kami-2: #e2cda4;
  --ink: #1a0e06;
  --moss: #4d6a24;

  --f-head: "Dela Gothic One", "Kiwi Maru", sans-serif;
  --f-body: "Kiwi Maru", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --f-num: "Lilita One", "Dela Gothic One", sans-serif;

  /* 紙を手で切ったような不揃いの角 */
  --cut: 7px 15px 9px 13px / 13px 7px 15px 9px;
  --cut-2: 14px 6px 12px 8px / 8px 14px 6px 12px;
  --blob: 48% 52% 46% 54% / 53% 47% 55% 45%;
  --paper-shadow: 0 5px 0 var(--soil0);
  --press: 120ms;
  --pop: cubic-bezier(.3, 1.5, .5, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

.app { position: relative; width: 100%; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--soil1); }
@media (min-width: 600px) {
  body { background: var(--soil0) repeating-linear-gradient(-8deg, rgba(90, 58, 34, .25) 0 18px, rgba(31, 19, 11, 0) 18px 46px); }
  .app { max-width: 430px; box-shadow: 0 0 0 6px var(--soil2), 0 20px 60px rgba(0, 0, 0, .6); }
}

.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0;
  transition: opacity .28s ease, visibility 0s linear .28s;
}
.screen.is-on { visibility: visible; opacity: 1; transition: opacity .28s ease, visibility 0s; z-index: 2; }
.scroller { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }

/* ---------- 紙のボタン ---------- */
.pbtn {
  display: block;
  transform: rotate(var(--rot, -0.6deg));
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}
.pbtn__face {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 8px 18px;
  border-radius: var(--cut);
  font-family: var(--f-head); font-size: 17px; letter-spacing: .04em;
  word-break: keep-all;
  box-shadow: var(--paper-shadow);
  transition: transform var(--press) ease, box-shadow var(--press) ease;
}
.pbtn:active .pbtn__face { transform: translateY(4px); box-shadow: 0 1px 0 var(--soil0); }
.pbtn svg { width: 22px; height: 22px; }
.pbtn--red .pbtn__face { background: var(--red); color: var(--kami); box-shadow: 0 0 0 2px var(--red-lo) inset, var(--paper-shadow); }
.pbtn--soil .pbtn__face { background: var(--soil3); color: var(--kami); box-shadow: 0 0 0 2px #6e4a2c inset, var(--paper-shadow); }
.pbtn--soil svg { color: var(--ki); }
.pbtn--xl .pbtn__face { min-height: 64px; font-size: 22px; }
.pbtn--xl svg { width: 26px; height: 26px; }

.ibtn {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--blob);
  background: var(--soil3);
  color: var(--kami);
  box-shadow: 0 0 0 2px #6e4a2c inset, 0 4px 0 var(--soil0);
  transition: transform var(--press) ease, box-shadow var(--press) ease;
}
.ibtn:active { transform: translateY(3px); box-shadow: 0 0 0 2px #6e4a2c inset, 0 1px 0 var(--soil0); }
.ibtn svg { width: 22px; height: 22px; }

.tbtn {
  min-height: 46px; padding: 8px 18px;
  border-radius: var(--cut-2);
  background: var(--soil3); color: var(--kami);
  box-shadow: 0 3px 0 var(--soil0);
}
.tbtn:active { transform: translateY(2px); box-shadow: none; }
.tbtn--danger { background: #5b1d14; color: #ffd9cf; box-shadow: 0 0 0 2px #9d2c1c inset, 0 3px 0 var(--soil0); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: var(--cut-2);
  background: var(--soil2);
  box-shadow: 0 3px 0 var(--soil0);
  font-size: 14px;
}
.chip svg { width: 20px; height: 20px; color: var(--ki); }
.chip .num { font-size: 18px; color: var(--ki); line-height: 1; }
.chip--sm { padding: 4px 10px 4px 6px; }

/* ---------- スプラッシュ ---------- */
.splash { position: absolute; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 16px; background: var(--soil1); animation: splash-out .35s ease .7s forwards; }
.splash img { border-radius: 26px; box-shadow: 0 6px 0 var(--soil0); }
.splash__name { font-family: var(--f-head); font-size: 24px; color: var(--ki); }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }

/* ---------- タイトル ---------- */
.screen--title { background: var(--soil1) url(/app-development/apps/a012/img/title.webp) center bottom / cover no-repeat; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + 12px) 16px 0; }
.logo-wrap {
  align-self: center;
  width: calc(100% - 48px); max-width: 360px;
  margin-top: 2vh;
  padding: 14px 24px 16px;
  background: var(--soil2);
  border-radius: 10px 22px 8px 26px / 22px 8px 24px 10px;
  box-shadow: 0 6px 0 var(--soil0), 0 0 0 3px #6e4a2c inset;
  transform: rotate(-2deg);
  text-align: center;
  animation: paste .5s var(--pop) both;
}
@keyframes paste { from { transform: rotate(-8deg) scale(1.2); opacity: 0; } }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-family: var(--f-head); }
.logo__s { font-size: 22px; color: var(--ki); letter-spacing: .1em; }
.logo__l { font-size: clamp(44px, 14vw, 58px); color: var(--kami); text-shadow: 3px 3px 0 var(--red-hi), 6px 6px 0 var(--soil0); letter-spacing: .02em; }
.logo__lead { margin-top: 8px; font-size: 15px; color: var(--kami); word-break: keep-all; }
.title__foot { margin-top: auto; padding: 0 22px calc(var(--safe-b) + 24px); display: grid; gap: 14px; }
.title__foot .pbtn--soil { --rot: .8deg; }

/* ---------- ナビバー ---------- */
.navbar {
  position: relative; z-index: 3; flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 10px) 14px 12px;
  background: var(--soil2);
  box-shadow: 0 4px 0 var(--soil0);
}
.navbar__title { flex: 1; text-align: center; font-family: var(--f-head); font-size: 21px; color: var(--kami); }
.navbar__sp { width: 46px; }

/* ---------- マップ ---------- */
.screen--map { background: var(--soil1); }
.map { position: relative; flex: 1; background: var(--soil1) url(/app-development/apps/a012/img/map.webp) center / cover no-repeat; }
.node { position: absolute; display: flex; align-items: center; gap: 0; transform: translate(-50%, -50%); }
.node--home { left: 50%; top: 7%; }
.node--3 { left: 56%; top: 28%; }
.node--2 { left: 40%; top: 53%; }
.node--1 { left: 58%; top: 80%; }
.node__no {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--blob);
  background: var(--red); color: var(--kami);
  font-size: 28px; line-height: 1;
  box-shadow: 0 0 0 3px var(--kami) inset, 0 5px 0 var(--soil0);
  transition: transform var(--press);
}
.node:active .node__no { transform: scale(.9); }
.node__tag {
  display: grid; gap: 0;
  margin-left: -10px; padding: 4px 12px 5px 18px;
  border-radius: var(--cut-2);
  background: var(--kami); color: var(--ink);
  box-shadow: 0 4px 0 var(--soil0);
  white-space: nowrap;
}
.node__name { font-family: var(--f-head); font-size: 15px; line-height: 1.4; }
.node__acorns { display: flex; gap: 2px; }
.node__acorns svg { width: 16px; height: 16px; color: rgba(26, 14, 6, .16); }
.node__acorns svg.is-got { color: #d99a1c; }
.node--home .node__tag { margin: 0; padding: 4px 14px; font-family: var(--f-head); font-size: 15px; background: var(--moss); color: #fff; }
.node.is-locked .node__no { background: var(--soil3); color: var(--kami-2); }
.node.is-locked .node__tag { background: #c9b48d; }
.node.is-clear .node__no::after { content: ""; position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ki) no-repeat center / 12px; box-shadow: 0 2px 0 var(--soil0); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 5 9l5-6' fill='none' stroke='%231a0e06' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.token { position: absolute; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--ki), 0 5px 0 var(--soil0); transform: translate(-50%, -50%); transition: left .6s var(--pop), top .6s var(--pop); animation: bob 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes bob { 50% { margin-top: -6px; } }
.map__hint { flex: none; padding: 10px 16px calc(var(--safe-b) + 12px); text-align: center; background: var(--soil2); font-size: 14px; word-break: keep-all; box-shadow: 0 -4px 0 var(--soil0); }

.scrim { position: absolute; inset: 0; z-index: 9; background: rgba(20, 11, 5, .72); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; left: 8px; right: 8px; bottom: 0; z-index: 10;
  max-height: 86%; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 18px calc(var(--safe-b) + 20px);
  background: var(--soil2);
  border-radius: 18px 26px 0 0 / 22px 14px 0 0;
  box-shadow: 0 -6px 0 var(--soil0), 0 0 0 3px #6e4a2c inset;
  animation: sheet-in .34s var(--pop);
}
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet__grip { display: block; width: 44px; height: 6px; margin: 4px auto 6px; border-radius: 6px; background: #6e4a2c; }
.ibtn--sheet { position: absolute; right: 12px; top: 12px; }
.sh-head { display: flex; align-items: center; gap: 12px; padding-right: 52px; }
.sh-no { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: var(--blob); background: var(--red); color: var(--kami); font-size: 28px; box-shadow: 0 0 0 3px var(--kami) inset; }
.sh-name { font-family: var(--f-head); font-size: 24px; line-height: 1.3; }
.sh-sub { font-size: 14px; color: var(--kami-2); }
.sh-img { display: block; width: 100%; height: 130px; margin-top: 12px; border-radius: var(--cut); object-fit: cover; box-shadow: 0 4px 0 var(--soil0); }
.sh-text { margin-top: 12px; font-size: 15px; word-break: normal; }
.sh-recs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.sh-recs li { padding: 8px 10px; border-radius: var(--cut-2); background: var(--soil1); text-align: center; }
.sh-recs span { display: block; font-size: 12px; color: var(--kami-2); }
.sh-recs .num { font-size: 22px; color: var(--ki); }
.sh-acorns { display: flex; justify-content: center; gap: 6px; }
.sh-acorns svg { width: 24px; height: 24px; color: #6e5a40; }
.sh-acorns svg.is-got { color: var(--ki); }
.sh-go { margin-top: 16px; }
.sh-lock { margin-top: 14px; padding: 12px; border-radius: var(--cut-2); background: var(--soil1); text-align: center; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; word-break: keep-all; }
.sh-lock svg { color: var(--ki); width: 20px; height: 20px; }

/* ---------- プレイ ---------- */
.screen--play { background: var(--soil1); touch-action: none; user-select: none; -webkit-user-select: none; }
.hud {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-t) + 8px) 10px 8px;
  background: var(--soil2);
}
.ibtn--hud { width: 44px; height: 44px; }
.hud__hearts { display: flex; gap: 1px; }
.hud__hearts svg { width: 24px; height: 24px; color: var(--red-hi); filter: drop-shadow(1px 2px 0 var(--soil0)); transition: transform .25s var(--pop); }
.hud__hearts svg.is-lost { color: #5c4430; transform: scale(.8); }
.hud__coin, .hud__time { display: flex; align-items: center; gap: 4px; }
.hud__coin svg, .hud__time svg { width: 20px; height: 20px; }
.hud__time svg { color: var(--kami-2); }
.hud__coin .num, .hud__time .num { font-size: 20px; line-height: 1; color: var(--kami); }
.hud__time { margin-left: auto; }
.hud__acorns { display: flex; }
.hud__acorns svg { width: 20px; height: 20px; color: #5c4430; }
.hud__acorns svg.is-got { color: var(--ki); animation: got .5s var(--pop); }
@keyframes got { from { transform: scale(2) rotate(-20deg); } }
.band { position: relative; flex: none; height: 400px; background: var(--soil0); overflow: hidden; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; z-index: 2; pointer-events: none; }
.band::before { top: 0; background: linear-gradient(-45deg, transparent 33%, var(--soil2) 33% 66%, transparent 66%) 0 0 / 14px 16px repeat-x; }
.band::after { bottom: 0; background: linear-gradient(-45deg, transparent 33%, var(--soil1) 33% 66%, transparent 66%) 0 -8px / 14px 16px repeat-x; }
.cv { display: block; width: 100%; height: 100%; }
.ready {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  transform: translate(-50%, -50%) rotate(-2deg);
  padding: 14px 26px 16px; text-align: center;
  background: var(--soil2);
  border-radius: var(--cut);
  box-shadow: 0 0 0 3px #6e4a2c inset, 0 6px 0 var(--soil0);
  animation: paste .45s var(--pop) both;
  pointer-events: none;
}
.ready__no { font-size: 18px; color: var(--ki); }
.ready__name { font-family: var(--f-head); font-size: 28px; line-height: 1.3; white-space: nowrap; }
.ready__hint { margin-top: 4px; font-size: 14px; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .55; } }
.pad {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: space-evenly; gap: 8px;
  padding: 10px 16px calc(var(--safe-b) + 12px);
  background: var(--soil1);
}
.progress { position: relative; height: 10px; margin: 0 20px 0 6px; border-radius: 6px; background: var(--soil2); flex: none; }
.progress__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: 6px; background: var(--soil4); }
.progress__k { position: absolute; top: -3px; width: 4px; height: 16px; border-radius: 2px; background: var(--kami-2); left: 50%; }
.progress__k.is-lit { background: var(--ki); box-shadow: 0 0 8px var(--ki); }
.progress__me { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--ki); box-shadow: 0 0 0 3px var(--soil0); transform: translate(-50%, -50%); left: 0; }
.progress__goal { position: absolute; right: -22px; top: 50%; transform: translateY(-50%); color: var(--ki); }
.progress__goal svg { width: 20px; height: 20px; }
.ctrl { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ctrl__move { display: flex; gap: 10px; align-items: flex-end; }
.ctrl__act { display: flex; gap: 12px; align-items: flex-end; }
.app.is-lefty .ctrl { flex-direction: row-reverse; }
.app.is-lefty .ctrl__act { flex-direction: row-reverse; }
.cbtn { display: block; touch-action: none; }
.cbtn__face {
  display: grid; place-items: center; align-content: center;
  border-radius: var(--blob);
  box-shadow: 0 0 0 3px rgba(243, 227, 195, .2) inset, 0 6px 0 var(--soil0);
  transition: transform 60ms ease, box-shadow 60ms ease;
}
.cbtn.is-down .cbtn__face { transform: translateY(5px) scale(.97); box-shadow: 0 0 0 3px rgba(243, 227, 195, .35) inset, 0 1px 0 var(--soil0); }
.cbtn--dir .cbtn__face { width: 78px; height: 78px; background: var(--soil3); color: var(--kami); }
.cbtn--dir svg { width: 38px; height: 38px; }
.cbtn--dig .cbtn__face { width: 72px; height: 72px; background: var(--ki); color: var(--ink); margin-bottom: 30px; }
.cbtn--jump .cbtn__face { width: 96px; height: 96px; background: var(--red); color: var(--kami); }
.cbtn--dig svg { width: 26px; height: 26px; }
.cbtn--jump svg { width: 34px; height: 34px; }
.cbtn__lb { font-family: var(--f-head); font-size: 13px; line-height: 1.2; }
@media (max-height: 700px) {
  .cbtn--dir .cbtn__face { width: 66px; height: 66px; }
  .cbtn--jump .cbtn__face { width: 80px; height: 80px; }
  .cbtn--dig .cbtn__face { width: 62px; height: 62px; margin-bottom: 18px; }
}

.overlay { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; background: rgba(20, 11, 5, .8); animation: fade .2s ease; }
.card {
  width: 100%; max-width: 330px;
  padding: 22px 20px 20px;
  background: var(--soil2);
  border-radius: 12px 24px 10px 20px / 20px 10px 24px 12px;
  box-shadow: 0 0 0 3px #6e4a2c inset, 0 7px 0 var(--soil0);
  text-align: center;
  transform: rotate(-1deg);
  animation: paste .4s var(--pop) both;
}
.card__h { font-family: var(--f-head); font-size: 24px; line-height: 1.35; }
.card__p { margin-top: 6px; font-size: 15px; word-break: keep-all; }
.card__btns { display: grid; gap: 12px; margin-top: 18px; }
.card__btns .pbtn:nth-child(2) { --rot: .7deg; }
.card__row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.card--over .card__h { color: var(--ki); }
.nogl { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 30px; background: var(--soil1); text-align: center; }

/* ---------- クリア ---------- */
.screen--clear { background: var(--soil1); }
.c-hero { position: relative; height: 260px; background: var(--soil1) url(/app-development/apps/a012/img/clear.webp) center 40% / cover no-repeat; }
.ibtn--hero { position: absolute; left: 14px; top: calc(var(--safe-t) + 12px); }
.stamp {
  position: absolute; left: 50%; bottom: -26px;
  transform: translateX(-50%) rotate(-4deg);
  padding: 10px 26px;
  background: var(--red); color: var(--kami);
  font-family: var(--f-head); font-size: 28px; white-space: nowrap;
  border-radius: var(--cut);
  box-shadow: 0 0 0 3px var(--kami) inset, 0 6px 0 var(--soil0);
  animation: stamp .55s var(--pop) .15s both;
}
@keyframes stamp { from { transform: translateX(-50%) rotate(-14deg) scale(2.2); opacity: 0; } }
.c-body { padding: 44px 18px calc(var(--safe-b) + 26px); }
.c-stage { display: flex; justify-content: center; align-items: baseline; gap: 10px; font-family: var(--f-head); font-size: 20px; }
.c-stage .num { font-size: 18px; color: var(--ki); }
.c-note { margin: 8px auto 0; max-width: 320px; padding: 8px 14px; border-radius: var(--cut-2); background: var(--moss); color: #fff; font-size: 15px; text-align: center; word-break: keep-all; }
.c-acorns { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.c-acorns svg { width: 46px; height: 46px; color: #5c4430; filter: drop-shadow(2px 3px 0 var(--soil0)); }
.c-acorns svg.is-got { color: var(--ki); animation: got .5s var(--pop) both; }
.tally { list-style: none; margin-top: 16px; display: grid; gap: 4px; }
.tally li { display: grid; grid-template-columns: 1fr auto 76px; align-items: center; gap: 10px; padding: 10px 14px; background: var(--soil2); border-radius: var(--cut-2); animation: paste .35s var(--pop) both; }
.tally li:nth-child(2) { animation-delay: .08s; } .tally li:nth-child(3) { animation-delay: .16s; } .tally li:nth-child(4) { animation-delay: .24s; }
.tally__k { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.tally__k svg { width: 20px; height: 20px; color: var(--ki); }
.tally .num { font-size: 22px; line-height: 1.1; }
.tally__p { text-align: right; color: var(--ki); font-size: 17px !important; }
.c-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding: 10px 16px; border-radius: var(--cut); background: var(--kami); color: var(--ink); box-shadow: 0 5px 0 var(--soil0); }
.c-total span { font-family: var(--f-head); font-size: 18px; }
.c-total .num { font-size: 40px; line-height: 1.1; color: var(--red); }
.c-best { display: flex; justify-content: center; margin-top: 10px; }
.c-best span { padding: 2px 14px; border-radius: var(--cut-2); background: var(--ki); color: var(--ink); font-family: var(--f-head); font-size: 15px; animation: stamp .5s var(--pop) .9s both; }
.c-actions { display: grid; gap: 14px; margin-top: 22px; }
.c-actions__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-actions__row .pbtn:last-child { --rot: .8deg; }

/* ---------- 設定 ---------- */
.screen--settings { background: var(--soil1); }
.sec { padding: 16px 18px 4px; }
.sec:last-child { padding-bottom: calc(var(--safe-b) + 28px); }
.sec__h { display: inline-block; padding: 2px 14px; margin-bottom: 12px; border-radius: var(--cut-2); background: var(--red); color: var(--kami); font-family: var(--f-head); font-size: 18px; transform: rotate(-1.5deg); box-shadow: 0 3px 0 var(--soil0); }
.howto-hero { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--cut); background: var(--soil2); }
.howto-hero img { width: 96px; height: 96px; border-radius: var(--cut-2); object-fit: cover; }
.howto-hero p { font-size: 15px; word-break: keep-all; }
.howto { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.howto li { display: grid; grid-template-columns: 66px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: var(--cut-2); background: var(--soil2); }
.howto__k { display: flex; justify-content: center; align-items: center; height: 56px; border-radius: var(--blob); background: var(--soil3); color: var(--kami); }
.howto__k svg { width: 24px; height: 24px; }
.howto__k--heart svg { color: var(--red-hi); }
.howto h3 { font-family: var(--f-head); font-size: 16px; line-height: 1.5; color: var(--ki); }
.howto p { font-size: 14px; line-height: 1.65; word-break: normal; }
.kbd { margin-top: 10px; font-size: 13px; color: var(--kami-2); word-break: keep-all; }
.prefs { list-style: none; display: grid; gap: 4px; }
.pref { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px; border-radius: var(--cut-2); background: var(--soil2); cursor: pointer; }
.pref__k { flex: 1; display: grid; }
.pref__k b { font-weight: 500; font-size: 16px; }
.pref__k small { font-size: 13px; color: var(--kami-2); line-height: 1.5; }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 56px; height: 32px; border-radius: 20px 14px 18px 16px; background: var(--soil0); cursor: pointer; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: var(--blob); background: var(--kami-2); transition: transform .22s var(--pop), background .2s; }
.switch:checked { background: var(--red); }
.switch:checked::after { transform: translateX(24px); background: var(--ki); }
.js-reset { width: 100%; margin-top: 12px; }
.about { padding: 18px; border-radius: var(--cut); background: var(--soil2); text-align: center; }
.about__icon { border-radius: 18px; box-shadow: 0 4px 0 var(--soil0); }
.about__name { margin-top: 8px; font-family: var(--f-head); font-size: 19px; }
.about__ver { font-size: 14px; color: var(--kami-2); }
.about__text { margin-top: 10px; text-align: left; font-size: 14px; word-break: normal; }
.about__tech { display: grid; margin-top: 10px; text-align: left; font-size: 13px; color: var(--kami-2); }
.about__tech span:first-child { color: var(--ki); }
.about__cta { margin-top: 16px; }

.toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 70px); z-index: 40; transform: translate(-50%, -12px) rotate(-1deg); opacity: 0; max-width: calc(100% - 40px); padding: 8px 18px; border-radius: var(--cut-2); background: var(--kami); color: var(--ink); font-size: 15px; box-shadow: 0 4px 0 var(--soil0); transition: opacity .2s, transform .3s var(--pop); pointer-events: none; text-align: center; word-break: keep-all; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .splash { display: none; }
}
