/* わりかん番長 — 黄×黒×赤、硬い落ち影と判子の手ざわり */
:root {
  --yel: #FFD21F;
  --yel-2: #FFE680;
  --yel-3: #FFF3BD;
  --dot: #F2BC00;
  --ink: #151313;
  --ink-2: #2B2725;
  --mute: #4A4540;
  --red: #D11F26;
  --red-dk: #9E1219;
  --red-bg: #FDE6E4;
  --paper: #FFFFFF;
  --on-ink: #F4EFE6;

  --f-disp: 'Dela Gothic One', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-num: 'Anton', 'Dela Gothic One', sans-serif;

  --bw: 3px;
  --r: 12px;
  --r-lg: 16px;
  --sh: 4px 4px 0 var(--ink);
  --sh-lg: 6px 6px 0 var(--ink);
  --sh-sm: 2px 2px 0 var(--ink);
  --t-fast: 120ms;
  --t: 220ms;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.2, .8, .2, 1);

  --top: env(safe-area-inset-top, 0px);
  --bot: env(safe-area-inset-bottom, 0px);
  --dock-h: 66px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  background-image: radial-gradient(var(--ink-2) 1.6px, transparent 1.8px);
  background-size: 14px 14px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; flex: none; }
h1, h2, h3, p { margin: 0; }
.kp { word-break: keep-all; overflow-wrap: normal; }
.nw { white-space: nowrap; }
.num { font-family: var(--f-num); font-weight: 400; letter-spacing: .01em; font-feature-settings: "tnum"; white-space: nowrap; }
.disp { font-family: var(--f-disp); font-weight: 400; font-feature-settings: "palt"; letter-spacing: .02em; word-break: keep-all; }
.noscript, .fallback { position: fixed; inset: auto 16px 40% 16px; background: var(--yel); padding: 16px; border: var(--bw) solid var(--ink); font-weight: 700; text-align: center; z-index: 50; }

/* ---------- 骨格 ---------- */
.app {
  position: fixed; inset: 0; margin: 0 auto; width: 100%; max-width: 430px;
  background: var(--yel); overflow: hidden; overflow: clip; isolation: isolate;
}
@media (min-width: 600px) {
  .app { border-left: var(--bw) solid var(--ink); border-right: var(--bw) solid var(--ink); }
}
.stage { position: absolute; inset: 0; }
.scr {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; overflow: clip;
  background: var(--yel); will-change: transform;
}
.scr__body {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.has-dock .scr__body { padding-bottom: calc(var(--dock-h) + var(--bot) + 24px); }
.scr.enter-r { animation: inR var(--t) var(--out) both; }
.scr.exit-r { animation: outL var(--t) var(--out) both; }
.scr.enter-l { animation: inL var(--t) var(--out) both; }
.scr.exit-l { animation: outR var(--t) var(--out) both; z-index: 2; }
.scr.enter-f { animation: fadeIn 160ms ease both; }
.scr.exit-f { animation: fadeOut 160ms ease both; }
@keyframes inR { from { transform: translateX(100%); } to { transform: none; } }
@keyframes outL { to { transform: translateX(-28%); filter: brightness(.86); } }
@keyframes inL { from { transform: translateX(-28%); } to { transform: none; } }
@keyframes outR { to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* 上のバー */
.bar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: calc(var(--top) + 8px) 12px 8px; min-height: calc(var(--top) + 64px);
  background: var(--yel); border-bottom: var(--bw) solid var(--ink); position: relative; z-index: 3;
}
.bar__title { flex: 1; min-width: 0; font-family: var(--f-disp); font-weight: 400; font-size: 19px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-feature-settings: "palt"; }
.ibtn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 10px; box-shadow: var(--sh-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast); padding: 0;
}
.ibtn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.ibtn--ink { background: var(--ink); color: var(--yel); }

/* 下のドック */
.dock {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 8px 10px calc(8px + var(--bot)); background: var(--ink);
  transition: transform var(--t) var(--out);
}
.dock.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform var(--t) var(--out), visibility 0s var(--t); }
.dock__tab {
  min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--on-ink); text-decoration: none; border-radius: 10px; font-size: 12px; font-weight: 900; letter-spacing: .06em;
  border: 2px solid transparent; transition: background var(--t-fast), transform var(--t-fast);
}
.dock__tab svg { width: 24px; height: 24px; }
.dock__tab:active { transform: scale(.94); }
.dock__tab.is-on { background: var(--yel); color: var(--ink); border-color: var(--yel); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 18px; border: var(--bw) solid var(--ink); border-radius: var(--r);
  background: var(--paper); color: var(--ink); font-weight: 900; font-size: 16px; letter-spacing: .04em;
  box-shadow: var(--sh); text-decoration: none; transition: transform var(--t-fast), box-shadow var(--t-fast);
  word-break: keep-all; line-height: 1.3; text-align: center;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; }
.btn .badge { font-family: var(--f-num); font-weight: 400; font-size: 17px; background: #fff; color: var(--red-dk); border-radius: 6px; padding: 0 7px; line-height: 1.4; }
.btn--red { background: var(--red); color: #fff; }
.btn--ink { background: var(--ink); color: var(--yel); }
.btn--yel { background: var(--yel); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; font-size: 14px; padding: 0 14px; box-shadow: var(--sh-sm); }
.btn--sm:active { transform: translate(2px, 2px); box-shadow: none; }
.btn[disabled] { opacity: 1; background: #E8E2D6; color: #57514A; box-shadow: none; transform: none; }
.link { color: var(--ink); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* アバター */
.av {
  width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--ink); flex: none;
  display: grid; place-items: center; font-family: var(--f-body); font-weight: 900; font-size: 18px; line-height: 1;
}
.av--s { width: 30px; height: 30px; font-size: 14px; border-width: 2px; }
.av--l { width: 52px; height: 52px; font-size: 23px; }
.x { font-family: var(--f-body); font-weight: 900; margin-right: 1px; font-size: .9em; }
.av--v0 { background: var(--ink); color: var(--yel); }
.av--v1 { background: var(--red); color: #fff; }
.av--v2 { background: var(--paper); color: var(--ink); }
.av--v3 { background: var(--yel-2); color: var(--ink); }
.av--v4 { background: var(--paper); color: var(--red-dk); }
.av--v5 { background: var(--ink-2); color: #fff; }
.stack { display: flex; }
.stack .av { margin-left: -9px; }
.stack .av:first-child { margin-left: 0; }
.stack__more { margin-left: 6px; font-weight: 900; font-size: 14px; align-self: center; }

/* ---------- 宴会一覧 ---------- */
.ev-head {
  position: relative; padding: calc(var(--top) + 18px) 18px 18px; border-bottom: var(--bw) solid var(--ink);
  background-color: var(--yel);
}
.ev-head__date { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .08em; background: var(--ink); color: var(--yel); padding: 2px 10px; border-radius: 4px; }
.ev-head__logo { margin-top: 8px; font-family: var(--f-disp); font-weight: 400; font-size: 40px; line-height: 1.08; letter-spacing: .01em; word-break: keep-all; font-feature-settings: "palt"; }
.ev-head__logo b { display: block; color: var(--red); font-weight: 400; font-size: 44px; }
.ev-head__boss {
  position: absolute; right: 14px; top: calc(var(--top) + 14px); width: 104px; height: 104px; border-radius: 50%;
  border: var(--bw) solid var(--ink); box-shadow: var(--sh); overflow: hidden; background: var(--yel); transform: rotate(4deg);
}
.ev-head__boss img { width: 100%; height: 100%; object-fit: cover; }
.ev-head__say { margin-top: 12px; max-width: 64%; font-size: 14px; font-weight: 700; color: var(--ink); }

.owe {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--on-ink); border-bottom: var(--bw) solid var(--ink);
}
.owe__cell { padding: 12px 16px; }
.owe__cell + .owe__cell { border-left: 2px solid #3d3835; }
.owe__k { font-size: 12px; font-weight: 900; letter-spacing: .08em; color: var(--on-ink); }
.owe__v { font-family: var(--f-num); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--yel); white-space: nowrap; }
.owe__v small { font-family: var(--f-body); font-size: 14px; font-weight: 900; margin-left: 2px; color: var(--on-ink); }

.sec-h { display: flex; align-items: center; gap: 10px; padding: 22px 16px 12px; }
.sec-h h2 { font-family: var(--f-disp); font-weight: 400; font-size: 21px; line-height: 1.2; flex: 1; font-feature-settings: "palt"; word-break: keep-all; }
.sec-h h2 .cnt { font-family: var(--f-num); font-weight: 400; font-size: 22px; color: var(--red-dk); margin-left: 6px; }

.ticket {
  position: relative; display: block; margin: 0 16px 22px; background: var(--paper); border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.ticket:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.ticket__img { position: relative; aspect-ratio: 16 / 8; border-bottom: var(--bw) solid var(--ink); overflow: hidden; background: var(--yel-2); }
.ticket__img img { width: 100%; height: 100%; object-fit: cover; }
.ticket__plate {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: var(--ink); color: var(--yel);
  padding: 5px 12px 6px; border-radius: 6px; font-family: var(--f-disp); font-weight: 400; font-size: 18px; line-height: 1.3; transform: rotate(-1.5deg);
  font-feature-settings: "palt"; word-break: keep-all;
}
.sticker {
  position: absolute; right: 10px; top: 10px; width: 66px; height: 66px; border-radius: 50%; background: var(--red); color: #fff;
  border: var(--bw) solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 900; font-size: 14px; line-height: 1.15;
  transform: rotate(10deg); box-shadow: var(--sh-sm);
}
.ticket__body { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px 12px; }
.ticket__meta { flex: 1; min-width: 0; }
.ticket__where { font-size: 14px; font-weight: 700; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.ticket__total { font-family: var(--f-num); font-weight: 400; font-size: 42px; line-height: 1.05; white-space: nowrap; }
.ticket__total small, .yen { font-size: .55em; margin-right: 2px; vertical-align: .32em; }
.ticket__ppl { text-align: right; }
.ticket__ppl .stack { justify-content: flex-end; }
.ticket__ppl p { font-size: 13px; font-weight: 900; margin-top: 4px; }
.ticket__stub {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px 12px; border-top: 2.5px dashed var(--ink);
  background: var(--yel-3);
}
.ticket__stub::before, .ticket__stub::after {
  content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--yel); border: var(--bw) solid var(--ink);
}
.ticket__stub::before { left: -13px; }
.ticket__stub::after { right: -13px; }
.ticket__stubtxt { font-size: 14px; font-weight: 900; white-space: nowrap; }
.pips { flex: 1; display: flex; gap: 4px; }
.pips i { flex: 1; height: 12px; border: 2px solid var(--ink); border-radius: 3px; background: var(--paper); }
.pips i.on { background: var(--red); }
.ticket__go { width: 26px; height: 26px; }

.donelist { margin: 0 16px; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--sh); overflow: hidden; }
.drow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; text-decoration: none; color: var(--ink); transition: background var(--t-fast); }
.drow + .drow { border-top: 2px solid var(--ink); }
.drow:active { background: var(--yel-3); }
.drow__t { flex: 1; min-width: 0; }
.drow__t b { display: block; font-size: 15px; font-weight: 900; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drow__t span { font-size: 13px; font-weight: 700; color: var(--mute); }
.drow__v { font-family: var(--f-num); font-weight: 400; font-size: 22px; white-space: nowrap; }
.hanko {
  width: 42px; height: 42px; flex: none; border-radius: 50%; border: 2.5px solid var(--red); color: var(--red);
  display: grid; place-items: center; font-family: var(--f-body); font-weight: 900; font-size: 20px; transform: rotate(-12deg); background: var(--paper);
}
.more { display: flex; justify-content: center; padding: 18px 16px 4px; }

/* 空の状態 */
.empty { text-align: center; padding: 24px 24px 8px; }
.empty img { width: 200px; height: 200px; margin: 0 auto 14px; border-radius: 50%; border: var(--bw) solid var(--ink); box-shadow: var(--sh); object-fit: cover; }
.empty h3 { font-family: var(--f-disp); font-weight: 400; font-size: 20px; margin-bottom: 6px; word-break: keep-all; }
.empty p { font-size: 15px; font-weight: 700; color: var(--mute); margin-bottom: 16px; }

/* ---------- 宴会の帳面 ---------- */
.cover { position: relative; border-bottom: var(--bw) solid var(--ink); background: var(--yel-2); }
.cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cover__plate { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: 3px 3px 0 var(--red); }
.cover__plate h2 { font-family: var(--f-disp); font-weight: 400; color: var(--yel); font-size: 22px; line-height: 1.3; word-break: keep-all; font-feature-settings: "palt"; }
.cover__plate p { font-size: 14px; font-weight: 700; color: var(--on-ink); }
.stats { display: grid; grid-template-columns: 1.5fr 1fr 1fr; background: var(--paper); border-bottom: var(--bw) solid var(--ink); }
.stats > dl { padding: 10px 12px; }
.stats > dl + dl { border-left: 2px solid var(--ink); }
.stats dt { font-size: 12px; font-weight: 900; letter-spacing: .08em; color: var(--mute); }
.stats dd { margin: 0; font-family: var(--f-num); font-weight: 400; font-size: 30px; line-height: 1.1; white-space: nowrap; }
.stats dd small { font-family: var(--f-body); font-size: 14px; font-weight: 900; margin-left: 2px; }
.stats dl { margin: 0; }

.mems { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.mems::-webkit-scrollbar { display: none; }
.mem { flex: none; width: 70px; text-align: center; }
.mem .av { margin: 0 auto 4px; }
.mem b { display: block; font-size: 13px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem i { display: inline-block; font-style: normal; font-family: var(--f-num); font-weight: 400; font-size: 14px; background: var(--ink); color: var(--yel); padding: 0 6px; border-radius: 4px; line-height: 1.5; }
.mem i.lo { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.mem--kanji .av { box-shadow: 0 0 0 3px var(--red); }
.mem__crown { display: block; height: 16px; color: var(--red); }
.mem__crown svg { width: 16px; height: 16px; }
.mem--add { display: grid; place-items: center; }
.mem--add .ibtn { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 4px; }

.tl { position: relative; padding: 4px 16px 16px; }
.tl-item { display: grid; grid-template-columns: 46px 1fr; gap: 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 51px; top: 0; bottom: 0; width: 3px; background: var(--ink); }
.tl-item:last-child::before { bottom: 50%; }
.tl-item:first-child::before { top: 24px; }
.tl-time { font-family: var(--f-num); font-weight: 400; font-size: 16px; padding-top: 14px; }
.tl-swipe { position: relative; margin: 6px 0 10px 18px; border-radius: var(--r); }
.tl-swipe::before { content: ""; position: absolute; left: -15px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2.5px solid var(--ink); z-index: 1; }
.tl-del {
  position: absolute; inset: 0; border-radius: var(--r); background: var(--red); color: #fff; display: flex; justify-content: flex-end; align-items: center;
  padding-right: 18px; font-weight: 900; border: var(--bw) solid var(--ink); gap: 6px;
}
.tl-card {
  position: relative; display: block; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh);
  padding: 10px 12px; text-decoration: none; color: var(--ink); touch-action: pan-y; transition: transform var(--t) var(--out);
}
.tl-card.dragging { transition: none; }
.tl-card__row { display: flex; align-items: baseline; gap: 8px; }
.tl-card__what { flex: 1; min-width: 0; font-weight: 900; font-size: 15px; line-height: 1.45; }
.tl-card__amt { font-family: var(--f-num); font-weight: 400; font-size: 26px; line-height: 1.1; }
.tl-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: 13px; font-weight: 700; }
.tl-card__meta .who { display: inline-flex; align-items: center; gap: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 900; padding: 1px 8px; border-radius: 999px; border: 2px solid var(--ink); line-height: 1.5; white-space: nowrap; }
.tag--ink { background: var(--ink); color: var(--yel); }
.tag--red { background: var(--red); color: #fff; border-color: var(--red); }
.hint { font-size: 13px; font-weight: 700; color: var(--mute); padding: 0 16px; }

.actbar {
  flex: none; display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; padding: 12px 14px calc(12px + var(--bot));
  background: var(--yel); border-top: var(--bw) solid var(--ink); position: relative; z-index: 3;
}
.actbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.actbar > .btn { padding: 0 10px; letter-spacing: .02em; min-width: 0; }
.actbar--one { grid-template-columns: minmax(0, 1fr); }

/* ---------- 支払い入力 ---------- */
.amt {
  margin: 14px 16px 6px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh);
  padding: 10px 16px 6px; display: block; width: calc(100% - 32px); text-align: left; transition: box-shadow var(--t-fast);
}
.amt.is-on { box-shadow: 4px 4px 0 var(--red); border-color: var(--ink); }
.amt__k { display: flex; justify-content: space-between; font-size: 13px; font-weight: 900; letter-spacing: .06em; }
.amt__k span:last-child { color: var(--mute); }
.amt__v { display: flex; align-items: baseline; justify-content: flex-end; font-family: var(--f-num); font-weight: 400; font-size: 58px; line-height: 1.12; white-space: nowrap; }
.amt__v .y { font-size: 30px; margin-right: 6px; }
.amt__v .ph { color: #8A837A; }
.amt__caret { width: 4px; height: 50px; background: var(--red); margin-left: 4px; align-self: center; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.amt.shake { animation: shake .32s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.fld { padding: 14px 16px 4px; }
.fld__k { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; margin-bottom: 8px; }
.fld__k::before { content: ""; width: 10px; height: 10px; background: var(--red); border: 2px solid var(--ink); }
.fld__k .sub { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--mute); }
.fld__k .sub button { border: 0; background: none; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 4px; color: var(--ink); font-size: 14px; }
.inp {
  width: 100%; min-height: 50px; padding: 10px 14px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper);
  font-size: 16px; font-weight: 700; box-shadow: inset 3px 3px 0 #EFE8DA; outline: none;
}
.inp:focus { box-shadow: inset 3px 3px 0 #EFE8DA, 0 0 0 3px var(--red); }
.inp::placeholder { color: #77706A; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  min-height: 44px; padding: 0 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 900; font-size: 14px;
  transition: transform var(--t-fast) var(--spring), background var(--t-fast); word-break: keep-all;
}
.chip:active { transform: scale(.94); }
.chip.is-on { background: var(--ink); color: var(--yel); }

.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.whob {
  position: relative; min-height: 84px; padding: 8px 2px 6px; border: 2.5px solid var(--ink); border-radius: var(--r); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform var(--t-fast) var(--spring), background var(--t-fast);
}
.whob:active { transform: scale(.94); }
.whob b { font-size: 13px; font-weight: 900; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whob.is-on { background: var(--ink); color: var(--yel); box-shadow: var(--sh-sm); }
.whob.is-pay.is-on { background: var(--red); color: #fff; }
.whob .ck { position: absolute; top: -8px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; border: 2px solid var(--ink); display: none; place-items: center; }
.whob .ck svg { width: 14px; height: 14px; }
.whob.is-on .ck { display: grid; }
.whob.is-off { background: #EDE7DB; }
.whob.is-off b { color: #57514A; text-decoration: line-through; text-decoration-thickness: 2px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.seg button { min-height: 48px; border: 0; background: transparent; font-weight: 900; font-size: 14px; padding: 4px 6px; line-height: 1.3; word-break: keep-all; transition: background var(--t-fast); }
.seg button + button { border-left: 2.5px solid var(--ink); }
.seg button.is-on { background: var(--ink); color: var(--yel); }
.seg--sm button { min-height: 44px; font-size: 13px; }

.prev { margin: 12px 16px 0; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); overflow: hidden; }
.prev__h { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--ink); color: var(--yel); font-weight: 900; font-size: 14px; }
.prev__row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; }
.prev__row + .prev__row { border-top: 1.5px solid #D8D0C2; }
.prev__nm { min-width: 0; }
.prev__nm b { font-size: 14px; font-weight: 900; }
.prev__nm em { font-style: normal; font-family: var(--f-num); font-weight: 400; font-size: 14px; margin-left: 6px; color: var(--mute); }
.prev__bar { height: 8px; margin-top: 3px; background: #EDE7DB; border-radius: 2px; overflow: hidden; }
.prev__bar i { display: block; height: 100%; background: var(--red); transition: width var(--t) var(--out); }
.prev__v { font-family: var(--f-num); font-weight: 400; font-size: 20px; }
.prev__sum { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-top: var(--bw) solid var(--ink); background: var(--yel-3); font-weight: 900; font-size: 14px; }
.prev__sum .ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.prev__sum .ok svg { width: 18px; height: 18px; color: var(--red); }
.err { display: flex; gap: 8px; align-items: flex-start; margin: 12px 16px 0; padding: 10px 12px; border: var(--bw) solid var(--red); background: var(--red-bg); border-radius: var(--r); color: var(--red-dk); font-weight: 900; font-size: 14px; }
.err__l { display: block; }
.sticker > span, .finale__seal > span { display: block; }
.err svg { width: 20px; height: 20px; margin-top: 1px; }
.danger { display: flex; justify-content: center; padding: 22px 16px 8px; }
.danger button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; background: none; color: var(--red-dk); font-weight: 900; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }

.kpad {
  flex: none; background: var(--ink); padding: 10px 10px calc(10px + var(--bot)); display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 8px;
  border-top: var(--bw) solid var(--ink); position: relative; z-index: 3;
}
.kpad[hidden] { display: none; }
.key {
  min-height: 54px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--paper); font-family: var(--f-num); font-weight: 400; font-size: 26px;
  box-shadow: 0 4px 0 #5a524b; transition: transform 70ms, box-shadow 70ms; display: grid; place-items: center; padding: 0;
}
.key:active, .key.hit { transform: translateY(4px); box-shadow: 0 0 0 #5a524b; }
.key--fn { background: var(--yel); }
.key--ok { grid-row: span 3; background: var(--red); color: #fff; font-family: var(--f-body); font-weight: 900; font-size: 17px; box-shadow: 0 4px 0 var(--red-dk); }
.key--ok:active { box-shadow: 0 0 0 var(--red-dk); }
.key svg { width: 26px; height: 26px; }

/* ---------- 精算案 ---------- */
.verdict { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 18px 18px 20px; border-bottom: var(--bw) solid var(--ink); min-height: 220px; }
.verdict::before {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 72% 46%, rgba(255, 210, 31, .16) 0deg 3deg, transparent 3deg 11deg);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.verdict > * { position: relative; }
.verdict__lbl { display: inline-block; background: var(--red); color: #fff; font-weight: 900; font-size: 14px; letter-spacing: .1em; padding: 2px 10px; border-radius: 4px; transform: rotate(-2deg); }
.verdict__main { margin-top: 10px; font-family: var(--f-disp); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--yel); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; max-width: 64%; }
.verdict__n { font-family: var(--f-num); font-weight: 400; font-size: 96px; line-height: .95; color: var(--yel); }
.verdict__sub { font-family: var(--f-disp); font-weight: 400; font-size: 26px; color: #fff; line-height: 1.25; word-break: keep-all; max-width: 64%; }
.verdict__cmp { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; background: var(--ink); color: var(--on-ink); border: 2px solid var(--on-ink); border-radius: 999px; padding: 2px 12px; }
.verdict__cmp s { color: var(--on-ink); text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.verdict__boss {
  position: absolute; right: -18px; bottom: -24px; width: 168px; height: 168px; border-radius: 50%; border: var(--bw) solid var(--yel); overflow: hidden; background: var(--yel);
}
.verdict__boss img { width: 100%; height: 100%; object-fit: cover; }
.verdict.pop .verdict__n { animation: pop 420ms var(--spring) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.rule { display: flex; align-items: center; gap: 10px; margin: 14px 16px 0; padding: 10px 10px 10px 14px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh-sm); }
.rule svg { width: 22px; height: 22px; }
.rule__t { flex: 1; min-width: 0; font-size: 14px; font-weight: 900; line-height: 1.45; }
.rule__t > span { display: block; font-weight: 700; color: var(--mute); font-size: 13px; }
.warnbox { display: flex; gap: 8px; margin: 10px 16px 0; padding: 10px 12px; background: var(--red-bg); border: var(--bw) solid var(--red); border-radius: var(--r); color: var(--red-dk); font-size: 14px; font-weight: 900; }
.warnbox svg { width: 20px; height: 20px; }

.bal { margin: 12px 16px 0; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); padding: 8px 12px 10px; }
.bal__legend { display: flex; justify-content: space-between; font-size: 12px; font-weight: 900; padding: 2px 0 6px; border-bottom: 2px solid var(--ink); }
.bal__legend span:first-child { color: var(--red-dk); }
.bal__row { padding: 8px 0 6px; }
.bal__row + .bal__row { border-top: 1.5px solid #E2DACB; }
.bal__top { display: flex; align-items: center; gap: 8px; }
.bal__nm { flex: 1; min-width: 0; font-weight: 900; font-size: 14px; line-height: 1.3; }
.bal__nm small { display: block; font-size: 12px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.bal__v { text-align: right; }
.bal__v b { display: block; font-family: var(--f-num); font-weight: 400; font-size: 20px; line-height: 1.1; white-space: nowrap; }
.bal__v span { font-size: 12px; font-weight: 900; }
.bal__v.pay b, .bal__v.pay span { color: var(--red-dk); }
.bal__track { position: relative; height: 12px; margin-top: 6px; background: #F1EBDF; border-radius: 2px; }
.bal__track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.bal__bar { position: absolute; top: 0; bottom: 0; transition: width 380ms var(--out); }
.bal__bar.pay { right: 50%; background: var(--red); }
.bal__bar.get { left: 50%; background: var(--ink); }

.xfers { margin: 4px 16px 0; counter-reset: x; }
.xfer {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 12px 12px 14px; margin-bottom: 12px;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh); transition: background var(--t);
}
.xfer.is-done { background: var(--yel-3); box-shadow: var(--sh-sm); }
.xfer__no { position: absolute; left: -10px; top: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--yel); display: grid; place-items: center; font-family: var(--f-num); font-weight: 400; font-size: 15px; }
.xfer__flow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; min-width: 0; }
.xfer__p { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 54px; }
.xfer__p b { font-size: 13px; font-weight: 900; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xfer__mid { text-align: center; min-width: 0; }
.xfer__mid svg { width: 100%; max-width: 76px; height: 22px; color: var(--red); }
.xfer__amt { font-family: var(--f-num); font-weight: 400; font-size: 26px; line-height: 1; white-space: nowrap; }
.xfer.is-done .xfer__amt { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--red); }
.xbtn {
  width: 58px; height: 58px; border-radius: 50%; border: 2.5px dashed var(--ink); background: var(--paper); font-weight: 900; font-size: 13px; line-height: 1.2;
  display: grid; place-items: center; padding: 0; transition: transform var(--t-fast);
}
.xbtn:active { transform: scale(.9); }
.xfer.is-done .xbtn { border: 3px solid var(--red); color: var(--red); background: var(--paper); font-family: var(--f-body); font-weight: 900; font-size: 26px; transform: rotate(-14deg); }
.xfer.is-done .xbtn.stamp { animation: stampIn 360ms var(--spring); }
@keyframes stampIn { from { transform: scale(2.2) rotate(-30deg); opacity: 0; } to { transform: scale(1) rotate(-14deg); opacity: 1; } }
.settled-note { margin: 4px 16px 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); background: var(--paper); font-weight: 900; }

/* 判子の演出 */
.finale { position: absolute; inset: 0; z-index: 60; background: rgba(21, 19, 19, .82); display: grid; place-items: center; padding: 24px; animation: fadeIn 200ms both; }
.finale__card { position: relative; width: 100%; max-width: 340px; background: var(--yel); border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--red); padding: 18px; text-align: center; }
.finale__card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: var(--bw) solid var(--ink); border-radius: 14px; background: var(--yel); }
.finale__seal {
  position: absolute; right: 8px; top: 8px; width: 116px; height: 116px; border-radius: 50%; border: 5px double var(--red); color: var(--red); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--f-disp); font-weight: 400; font-size: 22px; line-height: 1.15; transform: rotate(-14deg); animation: seal 520ms 120ms var(--spring) both;
}
@keyframes seal { from { transform: scale(2.6) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(-14deg); opacity: 1; } }
.finale__card h2 { font-family: var(--f-disp); font-weight: 400; font-size: 24px; margin: 14px 0 4px; }
.finale__card p { font-size: 15px; font-weight: 700; margin-bottom: 14px; }

/* ---------- 通い帳 ---------- */
.hist-head { padding: calc(var(--top) + 18px) 18px 16px; border-bottom: var(--bw) solid var(--ink); }
.hist-head h1 { font-family: var(--f-disp); font-weight: 400; font-size: 34px; line-height: 1.15; }
.hist-head p { font-size: 14px; font-weight: 700; margin-top: 4px; }
.yr { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); color: var(--on-ink); }
.yr > dl { padding: 12px 12px 14px; }
.yr > dl + dl { border-left: 2px solid #3d3835; }
.yr dt { font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.yr dd { margin: 2px 0 0; font-family: var(--f-num); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--yel); white-space: nowrap; }
.yr dd small { font-family: var(--f-body); font-weight: 900; font-size: 13px; color: var(--on-ink); margin-left: 2px; }
.yr dl { margin: 0; }
.chart { margin: 16px 16px 0; padding: 12px 10px 8px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh); }
.chart__h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; font-size: 14px; padding: 0 4px 8px; }
.chart__h span:last-child { font-size: 13px; color: var(--mute); }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 120px; align-items: end; border-bottom: 2.5px solid var(--ink); }
.bars i { display: block; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; transform-origin: bottom; animation: grow 520ms var(--out) both; }
.bars i.cur { background: var(--red); }
@keyframes grow { from { transform: scaleY(0); } }
.bars__lbl { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 4px; text-align: center; font-size: 11px; font-weight: 900; }
.month { margin-top: 18px; }
.month__h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 6px 16px; background: var(--ink); color: var(--yel); }
.month__h b { font-family: var(--f-disp); font-weight: 400; font-size: 17px; }
.month__h span { margin-left: auto; font-family: var(--f-num); font-weight: 400; font-size: 18px; color: var(--yel); }
.hrow { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 2px solid var(--ink); text-decoration: none; color: var(--ink); background: var(--yel); min-height: 72px; transition: background var(--t-fast); }
.hrow:active { background: var(--yel-2); }
.hrow__d { text-align: center; border: 2.5px solid var(--ink); border-radius: 8px; background: var(--paper); line-height: 1; padding: 4px 0 5px; }
.hrow__d b { display: block; font-family: var(--f-num); font-weight: 400; font-size: 24px; }
.hrow__d span { font-size: 12px; font-weight: 900; }
.hrow__t { min-width: 0; }
.hrow__t b { display: block; font-weight: 900; font-size: 15px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow__t span { font-size: 13px; font-weight: 700; color: var(--mute); }
.hrow__v { text-align: right; }
.hrow__v b { display: block; font-family: var(--f-num); font-weight: 400; font-size: 21px; }
.hrow__v .tag { margin-top: 2px; }

/* ---------- 設定・アプリについて・メンバー・新規 ---------- */
.pg-h { padding: calc(var(--top) + 18px) 18px 14px; border-bottom: var(--bw) solid var(--ink); }
.pg-h h1 { font-family: var(--f-disp); font-weight: 400; font-size: 32px; line-height: 1.15; }
.grp { margin: 18px 16px 0; }
.grp__h { font-size: 13px; font-weight: 900; letter-spacing: .1em; margin: 0 4px 8px; }
.list { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; width: 100%; background: transparent; border: 0; text-align: left; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.li + .li { border-top: 2px solid var(--ink); }
button.li:active, a.li:active { background: var(--yel-3); }
.li__t { flex: 1; min-width: 0; line-height: 1.45; }
.li__t small { display: block; font-size: 13px; color: var(--mute); font-weight: 700; }
.li__v { font-family: var(--f-num); font-weight: 400; font-size: 18px; white-space: nowrap; }
.li--danger { color: var(--red-dk); font-weight: 900; }
.sw { position: relative; width: 58px; height: 34px; border-radius: 999px; border: var(--bw) solid var(--ink); background: #E8E2D6; flex: none; padding: 0; transition: background var(--t-fast); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink); transition: transform var(--t) var(--spring); }
.sw[aria-checked="true"] { background: var(--red); }
.sw[aria-checked="true"]::after { transform: translateX(24px); }
.wtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.wtable th, .wtable td { padding: 10px 14px; text-align: left; border-top: 2px solid var(--ink); }
.wtable tr:first-child th, .wtable tr:first-child td { border-top: 0; }
.wtable td:last-child { text-align: right; font-family: var(--f-num); font-weight: 400; font-size: 18px; }
.wtable th { font-weight: 900; }
.note { font-size: 14px; font-weight: 700; color: var(--mute); margin: 10px 4px 0; line-height: 1.7; }

.about { padding: 22px 18px 8px; text-align: center; }
.about img { width: 112px; height: 112px; border-radius: 26px; border: var(--bw) solid var(--ink); box-shadow: var(--sh); margin: 0 auto 12px; }
.about h2 { font-family: var(--f-disp); font-weight: 400; font-size: 26px; }
.about > p { font-size: 14px; font-weight: 700; color: var(--mute); }
.disc { margin: 16px 16px 0; padding: 14px 16px; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); background: var(--paper); font-size: 14px; font-weight: 700; line-height: 1.75; }
.techs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 0; }
.techs span { font-size: 13px; font-weight: 900; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--yel); }
.cta { padding: 18px 16px 8px; }

.mcard { margin: 0 16px 14px; padding: 12px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh); }
.mcard__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mcard__top .inp { min-height: 46px; flex: 1; min-width: 0; }
.mcard__w { font-family: var(--f-num); font-weight: 400; font-size: 22px; min-width: 56px; text-align: right; }
.mcard__row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.mcard__bot { display: flex; gap: 8px; margin-top: 8px; }
.mcard__bot .seg { flex: 1; }
.kbtn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 2.5px solid var(--ink); border-radius: var(--r); background: var(--paper); font-weight: 900; font-size: 14px; white-space: nowrap; }
.kbtn svg { width: 18px; height: 18px; color: #B5ADA2; }
.kbtn.is-on { background: var(--red); color: #fff; }
.kbtn.is-on svg { color: var(--yel); }
.addrow { display: flex; gap: 8px; margin: 4px 16px 0; }
.addrow .inp { flex: 1; min-width: 0; }

.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cvb { position: relative; padding: 0; border: var(--bw) solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 3; transition: transform var(--t-fast) var(--spring); }
.cvb img { width: 100%; height: 100%; object-fit: cover; }
.cvb span { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; font-size: 12px; font-weight: 900; padding: 1px 0 2px; }
.cvb.is-on { box-shadow: 0 0 0 3px var(--red); transform: scale(.96); }
.cvb.is-on span { background: var(--red); }

/* ---------- シート・トースト・スプラッシュ ---------- */
.sheet-root { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(21, 19, 19, .55); opacity: 0; transition: opacity var(--t); pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; display: flex; flex-direction: column; background: var(--paper);
  border-top: var(--bw) solid var(--ink); border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform 280ms var(--out); pointer-events: auto;
  padding-bottom: var(--bot);
}
.sheet.is-on { transform: none; }
.scrim.is-on { opacity: 1; }
.sheet__grab { flex: none; display: grid; place-items: center; height: 26px; touch-action: none; cursor: grab; }
.sheet__grab i { width: 54px; height: 6px; border-radius: 3px; background: var(--ink); }
.sheet__h { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px 10px; border-bottom: var(--bw) solid var(--ink); }
.sheet__h h2 { flex: 1; font-family: var(--f-disp); font-weight: 400; font-size: 20px; }
.sheet__b { overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 18px; }
.sheet__f { flex: none; padding: 12px 16px; border-top: var(--bw) solid var(--ink); background: var(--yel); }
.confirm { padding: 16px; font-size: 15px; font-weight: 700; }
.confirm__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 8px; }

.toast {
  position: absolute; left: 50%; bottom: calc(var(--dock-h) + var(--bot) + 18px); z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); padding: 10px 10px 10px 16px; background: var(--ink); color: var(--yel);
  border: var(--bw) solid var(--yel); border-radius: 14px; box-shadow: 4px 4px 0 var(--red); font-weight: 900; font-size: 14px; transition: opacity var(--t), transform var(--t) var(--spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { min-height: 40px; padding: 0 12px; border: 2px solid var(--yel); border-radius: 8px; background: var(--yel); color: var(--ink); font-weight: 900; font-size: 14px; }
.toast.no-dock { bottom: calc(var(--bot) + 96px); }

.splash { position: absolute; inset: 0; z-index: 90; background: var(--yel); display: grid; place-content: center; justify-items: center; gap: 14px; transition: opacity 260ms; }
.splash img { width: 128px; height: 128px; border-radius: 30px; border: var(--bw) solid var(--ink); box-shadow: var(--sh-lg); animation: bob 700ms var(--spring) both; }
.splash p { font-family: var(--f-disp); font-weight: 400; font-size: 30px; }
@keyframes bob { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }
.splash.out { opacity: 0; pointer-events: none; }

.onb { position: absolute; inset: 0; z-index: 85; background: var(--yel); display: flex; flex-direction: column; padding: calc(var(--top) + 12px) 0 calc(var(--bot) + 16px); }
.onb__skip { align-self: flex-end; margin-right: 12px; min-height: 44px; padding: 0 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 900; font-size: 14px; }
.onb__track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.onb__track::-webkit-scrollbar { display: none; }
.onb__slide { flex: 0 0 100%; scroll-snap-align: center; padding: 10px 26px 0; display: flex; flex-direction: column; justify-content: center; }
.onb__slide img { width: min(76vw, 300px); height: auto; aspect-ratio: 1; margin: 0 auto 22px; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--sh-lg); object-fit: cover; }
.onb__slide h2 { font-family: var(--f-disp); font-weight: 400; font-size: 26px; line-height: 1.3; margin-bottom: 8px; word-break: keep-all; font-feature-settings: "palt"; }
.onb__slide p { font-size: 15px; font-weight: 700; line-height: 1.75; }
.onb__foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px 0; }
.onb__dots { flex: 1; display: flex; gap: 8px; }
.onb__dots i { width: 12px; height: 12px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--paper); transition: background var(--t), width var(--t); }
.onb__dots i.on { background: var(--ink); width: 30px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .verdict::before { animation: none; }
  .amt__caret { animation: none; }
}
