/* 地下迷宮の地図師 — 石造りの地下・松明（石灰×松明橙×羊皮紙） */
:root {
  --stone-0: #14120f;
  --stone-1: #1e1b17;
  --stone-2: #2c2822;
  --stone-3: #3d3830;
  --stone-4: #565046;
  --lime: #d8d2c4;
  --lime-2: #b3ab9b;
  --torch: #ff8a2a;
  --torch-2: #e8641c;
  --torch-d: #a8420e;
  --parch: #ecdcb5;
  --parch-2: #d6c095;
  --ink: #3b2a1a;
  --brass: #d2a456;

  --f-head: "Zen Antique", "Hiragino Mincho ProN", serif;
  --f-body: "M PLUS 1", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-num: "Cinzel", "Zen Antique", serif;

  --cut: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  --cut-s: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  --torn: polygon(0 3%, 6% 0, 14% 2%, 24% 0, 35% 2.5%, 46% .5%, 58% 2%, 70% 0, 82% 2%, 92% .5%, 100% 3%, 99% 14%, 100% 27%, 98.5% 40%, 100% 53%, 99% 66%, 100% 79%, 98.5% 90%, 100% 97%, 92% 100%, 81% 98%, 69% 100%, 57% 98.5%, 45% 100%, 33% 98%, 22% 100%, 11% 98.5%, 3% 100%, 0 96%, 1.5% 84%, 0 71%, 1% 58%, 0 45%, 1.5% 32%, 0 19%);
  --ease: cubic-bezier(.3, .7, .2, 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(--stone-0);
  color: var(--lime);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.75;
  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: 600; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
[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(--stone-1); }
@media (min-width: 600px) {
  body { background: #0c0a08 radial-gradient(50% 60% at 50% 45%, rgba(255, 138, 42, .14), rgba(12, 10, 8, 0) 70%); }
  .app { max-width: 430px; box-shadow: 0 0 0 1px #3d3830, 0 0 80px rgba(255, 138, 42, .12); }
}
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; visibility: hidden; opacity: 0; transition: opacity .32s ease, visibility 0s linear .32s; }
.screen.is-on { visibility: visible; opacity: 1; transition: opacity .32s ease, visibility 0s; z-index: 2; }
.scroller { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }

/* ---------- 石板のボタン ---------- */
.sbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 8px 16px;
  clip-path: var(--cut);
  background: linear-gradient(180deg, #4a443a 0%, #3d3830 55%, #332e27 100%);
  color: var(--parch);
  font-family: var(--f-head); font-size: 18px; letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -3px 0 rgba(0, 0, 0, .35);
  word-break: keep-all;
  transition: transform 120ms var(--ease), filter 120ms;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.sbtn:active { transform: translateY(2px) scale(.98); filter: brightness(1.18); }
.sbtn svg { width: 22px; height: 22px; color: var(--torch); }
.sbtn--torch { background: linear-gradient(180deg, #ffb066 0%, #ff8a2a 45%, #e8641c 100%); color: #1e1208; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(120, 40, 0, .45); }
.sbtn--torch svg { color: #1e1208; }
.sbtn--xl { min-height: 64px; font-size: 22px; }
.sbtn--xl svg { width: 26px; height: 26px; }

.ibtn {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  clip-path: var(--cut-s);
  background: var(--stone-3); color: var(--parch);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -3px 0 rgba(0, 0, 0, .35);
  transition: transform 120ms var(--ease);
}
.ibtn:active { transform: scale(.9); }
.ibtn svg { width: 22px; height: 22px; }
.ibtn--sm { width: 44px; height: 44px; }

.tbtn { min-height: 46px; padding: 8px 18px; clip-path: var(--cut-s); background: var(--stone-3); color: var(--parch); }
.tbtn:active { transform: scale(.96); }
.tbtn--danger { background: #5a2410; color: #ffd9c4; }

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

/* ---------- タイトル ---------- */
.screen--title { background: var(--stone-0) url(/app-development/apps/a022/img/title.webp) center top / cover no-repeat; }
.screen--title::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 18, 15, 0) 55%, rgba(20, 18, 15, .85) 82%, var(--stone-0) 100%); }
.topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + 12px) 16px 0; }
.seal { display: flex; align-items: center; gap: 8px; padding: 4px 14px; clip-path: var(--cut-s); background: var(--stone-2); font-size: 13px; color: var(--lime); }
.seal .num { font-size: 15px; color: var(--torch); }
.logo { position: relative; z-index: 2; margin: 4vh auto 0; text-align: center; color: var(--ink); }
.logo__s { display: inline-block; font-family: var(--f-head); font-size: 22px; letter-spacing: .3em; padding: 0 10px 0 calc(10px + .3em); background: var(--parch); clip-path: var(--torn); }
.logo__l { font-family: var(--f-head); font-size: clamp(64px, 21vw, 88px); line-height: 1.05; letter-spacing: .08em; padding-left: .08em; text-shadow: 0 2px 0 rgba(236, 220, 181, .6); }
.logo__lead { display: inline-block; margin-top: 8px; padding: 2px 14px; background: var(--parch); clip-path: var(--torn); font-size: 15px; font-weight: 700; color: var(--ink); word-break: keep-all; }
.title__foot { position: relative; z-index: 2; margin-top: auto; padding: 0 20px calc(var(--safe-b) + 22px); display: grid; gap: 12px; }
.title__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.title__row .sbtn { font-size: 16px; letter-spacing: .02em; padding: 8px 10px; gap: 8px; }
.best { justify-self: center; display: flex; align-items: center; gap: 8px; padding: 4px 16px; clip-path: var(--cut-s); background: var(--stone-2); font-size: 14px; }
.best svg { width: 18px; height: 18px; color: var(--brass); }
.best .num { font-size: 20px; color: var(--parch); line-height: 1.2; }

/* ---------- 探索 ---------- */
.screen--explore { background: var(--stone-0); 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(--stone-1); box-shadow: 0 1px 0 #3d3830; position: relative; z-index: 3; }
.floor { padding: 2px 10px; clip-path: var(--cut-s); background: var(--stone-3); color: var(--parch); font-size: 18px; line-height: 1.5; }
.fuel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.fuel svg { width: 22px; height: 22px; color: var(--torch); filter: drop-shadow(0 0 6px rgba(255, 138, 42, .7)); }
.fuel__track { flex: 1; height: 10px; background: var(--stone-3); clip-path: var(--cut-s); overflow: hidden; }
.fuel__fill { display: block; height: 100%; width: 70%; background: linear-gradient(90deg, #e8641c, #ffb066); transition: width .4s linear; }
.fuel .num { font-size: 15px; min-width: 2.2em; text-align: right; color: var(--parch); }
.fuel.is-low svg { animation: flick .5s infinite; }
.fuel.is-low .fuel__fill { background: #c43c12; }
@keyframes flick { 50% { opacity: .35; } }
.slot { display: flex; align-items: center; gap: 3px; height: 36px; padding: 0 6px; clip-path: var(--cut-s); background: var(--stone-2); color: var(--stone-4); }
.slot svg { width: 22px; height: 22px; }
.slot.is-on { color: var(--brass); background: #3a2e1a; }
.slot--chest { color: var(--brass); }
.slot--chest .num { font-size: 15px; color: var(--parch); }
.view { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 55%, rgba(0, 0, 0, 0) 55%, rgba(8, 6, 4, .75) 100%); }
.mini { position: absolute; right: 10px; top: 10px; width: 116px; height: 116px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); transition: transform 120ms var(--ease); }
.mini:active { transform: scale(.94); }
.mini__cv { display: block; width: 116px; height: 116px; clip-path: var(--torn); }
.mini__pct { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 0 8px; background: var(--ink); color: var(--parch); font-size: 13px; line-height: 1.6; clip-path: var(--cut-s); }
.msg {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); opacity: 0;
  max-width: calc(100% - 32px); padding: 6px 16px;
  background: var(--parch); color: var(--ink); font-weight: 700; font-size: 15px;
  clip-path: var(--torn); text-align: center; word-break: keep-all;
  transition: opacity .25s, transform .3s var(--ease); pointer-events: none;
}
.msg.is-on { opacity: 1; transform: translate(-50%, 0); }
.floorcard { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; text-align: center; background: radial-gradient(60% 40% at 50% 50%, rgba(20, 18, 15, .92), rgba(20, 18, 15, .6)); animation: fc 1.9s ease forwards; pointer-events: none; }
.floorcard__n { font-size: 56px; color: var(--torch); text-shadow: 0 0 24px rgba(255, 138, 42, .55); line-height: 1.1; }
.floorcard__t { font-family: var(--f-head); font-size: 22px; color: var(--parch); }
@keyframes fc { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
.demo { position: absolute; left: 10px; top: 10px; z-index: 3; pointer-events: none; }
.demo__tag { display: flex; align-items: center; gap: 8px; padding: 2px 12px; clip-path: var(--cut-s); background: var(--stone-1); font-size: 14px; color: var(--parch); }
.demo__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--torch); box-shadow: 0 0 8px var(--torch); animation: flick 1.2s infinite; }
.loading { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); padding: 6px 16px; background: var(--stone-1); color: var(--parch); font-size: 15px; clip-path: var(--cut-s); white-space: nowrap; }
.pad {
  flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 12px 18px calc(var(--safe-b) + 14px);
  background: linear-gradient(180deg, var(--stone-1), var(--stone-0));
  box-shadow: 0 -1px 0 #3d3830;
}
.pad__mid { display: grid; gap: 8px; }
.cbtn {
  display: grid; place-items: center; align-content: center; gap: 0;
  clip-path: var(--cut);
  background: linear-gradient(180deg, #4a443a, #353028);
  color: var(--parch);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -4px 0 rgba(0, 0, 0, .4);
  transition: transform 80ms var(--ease), filter 80ms;
  touch-action: manipulation;
}
.cbtn:active, .cbtn.is-down { transform: translateY(2px) scale(.96); filter: brightness(1.25); }
.cbtn span { font-family: var(--f-head); font-size: 13px; line-height: 1.3; }
.cbtn--turn { justify-self: center; width: 76px; height: 76px; }
.cbtn--turn svg { width: 30px; height: 30px; }
.cbtn--fwd { width: 112px; height: 84px; background: linear-gradient(180deg, #ffb066, #ff8a2a 50%, #e8641c); color: #1e1208; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(120, 40, 0, .45); }
.cbtn--fwd svg { width: 34px; height: 34px; }
.cbtn--back { width: 112px; height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cbtn--back svg { width: 20px; height: 20px; }
@media (max-height: 700px) {
  .cbtn--turn { width: 64px; height: 64px; }
  .cbtn--fwd { height: 70px; }
  .cbtn--back { height: 40px; }
}
.screen--explore.is-demo .pad { visibility: hidden; }
.takeover .sbtn { width: 100%; }
.takeover { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 20px calc(var(--safe-b) + 40px); }

.overlay { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; background: rgba(10, 8, 6, .82); animation: fade .25s ease; }
.overlay--dark { background: #050403; z-index: 30; }
@keyframes fade { from { opacity: 0; } }
.plate { width: 100%; max-width: 340px; padding: 22px 20px 20px; clip-path: var(--cut); background: linear-gradient(180deg, #3d3830, #2c2822); text-align: center; animation: rise .35s var(--ease); }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }
.plate__h { font-family: var(--f-head); font-size: 26px; color: var(--parch); line-height: 1.35; }
.plate__p { margin-top: 6px; font-size: 15px; word-break: keep-all; }
.plate__btns { display: grid; gap: 10px; margin-top: 18px; }
.plate__row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.plate .sbtn { margin-top: 14px; }
.plate__btns .sbtn { margin-top: 0; }
.nogl { position: absolute; inset: 0; z-index: 25; display: grid; place-items: center; padding: 24px; background: var(--stone-0); }

/* ---------- ナビバー ---------- */
.navbar { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 14px 10px; background: var(--stone-1); box-shadow: 0 1px 0 #3d3830; }
.navbar__t { flex: 1; text-align: center; font-family: var(--f-head); font-size: 22px; color: var(--parch); }
.navbar__seed { min-width: 46px; text-align: right; font-size: 14px; color: var(--torch); }

/* ---------- 地図 ---------- */
.screen--map { background: var(--stone-1); }
.screen--map .scroller { padding: 12px 16px calc(var(--safe-b) + 28px); }
.m-note { text-align: center; font-size: 14px; color: var(--lime-2); }
.tabs { display: flex; justify-content: center; gap: 6px; margin: 8px 0 12px; }
.tab { min-width: 78px; min-height: 44px; padding: 4px 12px; clip-path: var(--cut-s); background: var(--stone-2); color: var(--lime); font-size: 17px; }
.tab[aria-selected="true"] { background: var(--parch); color: var(--ink); }
.tab:disabled { color: var(--stone-4); cursor: default; }
.sheet { position: relative; width: 100%; aspect-ratio: 1; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); }
.sheet__cv { display: block; width: 100%; height: 100%; clip-path: var(--torn); }
.m-stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.m-stats li { padding: 8px 12px; clip-path: var(--cut-s); background: var(--stone-2); display: grid; }
.m-stats span { font-size: 13px; color: var(--lime-2); }
.m-stats .num { font-size: 24px; color: var(--parch); line-height: 1.3; }
.legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 14px; padding: 12px 14px; background: var(--parch); color: var(--ink); clip-path: var(--torn); }
.legend li { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.45; font-weight: 700; }
.legend svg { width: 24px; height: 24px; }
.m-actions { margin-top: 16px; }

/* ---------- リザルト ---------- */
.screen--result { background: var(--stone-1); }
.r-hero { position: relative; min-height: 250px; padding: calc(var(--safe-t) + 64px) 20px 20px; text-align: center; background: linear-gradient(180deg, rgba(30, 27, 23, 0) 45%, var(--stone-1) 100%), url(/app-development/apps/a022/img/result.webp) center 35% / cover no-repeat; }
.ibtn--hero { position: absolute; left: 14px; top: calc(var(--safe-t) + 12px); }
.r-kicker { display: inline-block; padding: 2px 14px; clip-path: var(--cut-s); background: var(--stone-1); font-size: 14px; color: var(--torch); }
.r-rank { margin: 10px auto 0; width: max-content; max-width: 100%; padding: 4px 22px; clip-path: var(--torn); background: var(--parch); color: var(--ink); font-family: var(--f-head); font-size: 32px; line-height: 1.4; }
.r-body { padding: 4px 18px calc(var(--safe-b) + 28px); }
.r-score { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 16px; clip-path: var(--cut); background: var(--stone-2); }
.r-score span { font-family: var(--f-head); font-size: 18px; }
.r-score .num { font-size: 40px; color: var(--torch); line-height: 1.2; }
.r-new { margin-top: 8px; text-align: center; color: var(--brass); font-family: var(--f-head); font-size: 17px; }
.r-stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.r-stats li { display: grid; padding: 8px 12px; clip-path: var(--cut-s); background: var(--stone-2); animation: rise .4s var(--ease) both; }
.r-stats li:nth-child(2) { animation-delay: .06s; } .r-stats li:nth-child(3) { animation-delay: .12s; } .r-stats li:nth-child(4) { animation-delay: .18s; }
.r-stats span { font-size: 13px; color: var(--lime-2); }
.r-stats .num { font-size: 24px; color: var(--parch); line-height: 1.3; }
.r-h2 { margin: 22px 0 10px; font-family: var(--f-head); font-size: 20px; color: var(--parch); display: flex; align-items: center; gap: 10px; }
.r-h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 138, 42, .6), rgba(255, 138, 42, 0)); }
.r-maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.r-map { display: grid; gap: 4px; justify-items: center; text-align: center; transition: transform 120ms; }
.r-map:active { transform: scale(.95); }
.r-map canvas { width: 100%; aspect-ratio: 1; clip-path: var(--torn); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.r-map span { font-size: 13px; color: var(--lime-2); }
.r-map .num { font-size: 15px; color: var(--parch); }
.r-map.is-none canvas { opacity: .35; }
.r-actions { display: grid; gap: 12px; margin-top: 22px; }
.r-hist { list-style: none; display: grid; gap: 4px; }
.r-hist li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; clip-path: var(--cut-s); background: var(--stone-2); font-size: 14px; }
.r-hist li.is-now { background: #3a2e1a; }
.r-hist .num { font-size: 16px; color: var(--parch); }
.r-hist__d { color: var(--lime-2); }

/* ---------- 設定 ---------- */
.screen--settings { background: var(--stone-1); }
.sec { padding: 16px 18px 4px; }
.sec:last-child { padding-bottom: calc(var(--safe-b) + 28px); }
.sec__h { margin-bottom: 10px; font-family: var(--f-head); font-size: 21px; color: var(--torch); display: flex; align-items: center; gap: 10px; }
.sec__h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 138, 42, .5), rgba(255, 138, 42, 0)); }
.steps { list-style: none; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px; clip-path: var(--cut-s); background: var(--stone-2); }
.steps__n { display: grid; place-items: center; height: 44px; clip-path: var(--cut-s); background: var(--parch); color: var(--ink); font-size: 17px; }
.steps h3 { font-family: var(--f-head); font-size: 17px; color: var(--parch); line-height: 1.5; }
.steps p { font-size: 14px; line-height: 1.7; word-break: normal; }
.kbd { margin-top: 10px; font-size: 13px; color: var(--lime-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; clip-path: var(--cut-s); background: var(--stone-2); cursor: pointer; }
.pref__k { flex: 1; display: grid; }
.pref__k b { font-size: 16px; font-weight: 500; color: var(--parch); }
.pref__k small { font-size: 13px; color: var(--lime-2); line-height: 1.5; }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 56px; height: 30px; clip-path: var(--cut-s); background: var(--stone-0); cursor: pointer; }
.switch::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; background: var(--stone-4); clip-path: var(--cut-s); transition: transform .2s var(--ease), background .2s; }
.switch:checked { background: var(--torch-d); }
.switch:checked::after { transform: translateX(26px); background: var(--parch); }
.js-reset { width: 100%; margin-top: 12px; }
.about { padding: 18px; clip-path: var(--cut); background: var(--stone-2); text-align: center; }
.about__icon { clip-path: var(--cut-s); }
.about__name { margin-top: 8px; font-family: var(--f-head); font-size: 20px; color: var(--parch); }
.about__ver { font-size: 13px; color: var(--lime-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(--lime-2); }
.about__tech span:first-child { color: var(--torch); }
.about__cta { margin-top: 16px; }

.toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 70px); z-index: 40; transform: translate(-50%, -10px); opacity: 0; max-width: calc(100% - 40px); padding: 8px 18px; background: var(--parch); color: var(--ink); font-weight: 700; font-size: 15px; clip-path: var(--cut-s); transition: opacity .2s, transform .3s var(--ease); pointer-events: none; text-align: center; word-break: keep-all; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

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