/* こおりの配達便 — スタイル（このアプリのためのトークン） */
:root {
  --snow: #f7fbfe;
  --frost: #eaf7fd;
  --ice: #cdeefa;
  --ice-2: #8fd3ef;
  --ice-line: #a9dcf0;
  --deep: #0b3a57;
  --deep-2: #2a5a78;
  --sea: #13709c;
  --sea-2: #0b5379;
  --orange: #ff8a2b;
  --orange-hi: #ffa253;
  --orange-ink: #a8410a;
  --orange-low: #d8661a;
  --sun: #ffe4c4;
  --danger: #b3261e;
  --f-head: "Dela Gothic One", "Zen Kaku Gothic New", system-ui, sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --f-num: "Sora", "Zen Kaku Gothic New", system-ui, sans-serif;
  --r: 10px;
  --cut: 10px;
  --thick: 5px;
  --t-press: 70ms;
  --t-move: 260ms;
  --ease-snap: cubic-bezier(.2, .9, .25, 1.15);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--deep);
  background: #bfe6f6 radial-gradient(120% 60% at 50% 0%, #ffe9d2 0%, #d7f0fb 45%, #9dd5ec 100%) fixed;
  overflow: hidden;
  line-break: strict;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; flex: none; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: 0; }
h1, h2, h3 { font-feature-settings: "palt"; word-break: keep-all; overflow-wrap: normal; line-height: 1.35; }

.app {
  position: fixed;
  inset: 0;
  margin: 0 auto;
  max-width: 430px;
  overflow: hidden;
  background: var(--frost);
}
@media (min-width: 600px) {
  .app { box-shadow: 0 0 0 1px rgba(11, 58, 87, .12), 0 30px 80px rgba(11, 58, 87, .25); }
}

/* ===== 画面 ===== */
.scr {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.scr.is-on { display: flex; }
.scr.is-enter { animation: crackIn 420ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes crackIn {
  from { clip-path: polygon(0 0, 0 0, -6% 22%, 4% 41%, -8% 63%, 3% 82%, 0 100%, 0 100%); }
  to { clip-path: polygon(0 0, 130% 0, 118% 22%, 132% 41%, 116% 63%, 131% 82%, 125% 100%, 0 100%); }
}
.scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ===== ボタン（割った氷の板） ===== */
.plate {
  --bg: #ffffff;
  --bg2: #e6f6fd;
  --edge: #9fd2e8;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px calc(10px + var(--thick));
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--deep);
  background: linear-gradient(to top, var(--edge) 0 var(--thick), transparent var(--thick)), linear-gradient(170deg, var(--bg), var(--bg2));
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut) * 1.6) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, calc(var(--cut) * 1.6) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: transform var(--t-press) ease-out, filter var(--t-press);
  word-break: keep-all;
  touch-action: manipulation;
  user-select: none;
}
.plate span { white-space: nowrap; }
.plate:active { transform: translateY(3px); filter: brightness(.96); }
.plate--orange { --bg: var(--orange-hi); --bg2: var(--orange); --edge: var(--orange-low); }
.plate--ice { --bg: #ffffff; --bg2: #e3f4fb; --edge: #a6d6ea; }
.plate--danger { --bg: #c8352b; --bg2: var(--danger); --edge: #7c1a14; color: #fff; }
.plate--l { min-height: 56px; font-size: 16px; width: 100%; }
.plate--xl { min-height: 64px; font-size: 18px; width: 100%; --cut: 14px; --thick: 6px; }
.plate--xl svg { width: 26px; height: 26px; }

.sq-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--deep);
  background: #ffffff;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform var(--t-press);
  flex: none;
}
.sq-btn:active { transform: scale(.9); }
.sq-btn--glass { background: rgba(255, 255, 255, .86); }
.sq-btn--hud { background: #ffffff; }

.link-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-weight: 700;
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
}

/* ===== タイトル ===== */
.scr--title {
  background:
    linear-gradient(to bottom, rgba(234, 247, 253, 0) 52%, var(--frost) 69%),
    url(/app-development/apps/a007/img/title.webp) top center / 100% auto no-repeat,
    var(--frost);
}
.title__top { display: flex; justify-content: flex-end; padding: calc(var(--sat) + 12px) 14px 0; }
.title__logo { padding: 0 22px; margin-top: 2px; }
.title__route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--deep);
  background: #ffffff;
  border: 2px solid var(--deep);
  white-space: nowrap;
}
.title__route .num:first-child { font-size: 11px; }
.title__route .num:nth-child(2) { color: var(--orange-ink); margin-right: 4px; }
.logo {
  margin-top: 10px;
  font-family: var(--f-head);
  font-weight: 400;
  color: var(--deep);
  line-height: 1.02;
  letter-spacing: .02em;
  text-shadow: 0 3px 0 #ffffff, 0 0 18px rgba(255, 255, 255, .9);
}
.logo__a { display: block; font-size: 30px; }
.logo__b { display: block; font-size: 62px; letter-spacing: -.01em; }
.logo__b::after {
  content: "";
  display: block;
  width: 118px;
  height: 8px;
  margin-top: 8px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.title__lead {
  margin-top: 10px;
  font-weight: 900;
  font-size: 16px;
  color: var(--deep);
  word-break: keep-all;
  text-shadow: 0 1px 0 #fff, 0 0 10px #fff;
}
.title__dock {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 0 18px calc(var(--sab) + 20px);
  background: var(--frost);
  box-shadow: 0 -30px 30px var(--frost);
}
.tally {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
  border: 2px solid var(--ice-line);
  white-space: nowrap;
}
.tally svg { width: 18px; height: 18px; color: var(--orange); }
.tally b { font-size: 16px; }
.title__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.title__row .plate { padding-left: 10px; padding-right: 10px; font-size: 14px; }

/* ===== 共通バー ===== */
.bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--sat) + 10px) 14px 10px;
  background: var(--deep);
  color: #ffffff;
  position: relative;
  z-index: 2;
}
.bar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 8px;
  background: var(--deep);
  clip-path: polygon(0 0, 100% 0, 100% 20%, 86% 100%, 70% 30%, 52% 90%, 33% 25%, 17% 85%, 0 30%);
}
.bar .sq-btn { color: var(--deep); }
.bar__title { flex: 1; font-family: var(--f-head); font-weight: 400; font-size: 20px; letter-spacing: .04em; }
.bar__title--sm { font-size: 17px; color: var(--deep); }
.bar__sp { width: 44px; flex: none; }
.bar__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #ffffff;
  color: var(--deep);
  font-weight: 700;
  white-space: nowrap;
}
.bar__chip svg { width: 16px; height: 16px; color: var(--orange-low); }

/* ===== ステージ選択（配達ルート） ===== */
.scr--stages { background: #2a8bb5 url(/app-development/apps/a007/img/map.webp) center / cover no-repeat; }
.route { position: relative; flex: 1; padding: 22px 18px 24px; }
.route__list { list-style: none; display: grid; gap: 0; max-width: 360px; margin: 0 auto; }
.chap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
}
.chap:first-child { margin-top: 0; }
.chap__no {
  font-family: var(--f-num);
  font-weight: 800;
  font-size: 12px;
  color: #ffffff;
  background: var(--orange-ink);
  padding: 3px 8px;
  white-space: nowrap;
}
.chap__name {
  font-family: var(--f-head);
  font-size: 17px;
  color: var(--deep);
  background: #ffffff;
  padding: 3px 12px;
  white-space: nowrap;
}
.chap__note {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--sea-2);
  padding: 3px 8px;
  white-space: nowrap;
}
.node-wrap { position: relative; display: flex; height: 92px; }
.node-wrap:nth-child(4n+2) { justify-content: flex-start; padding-left: 8%; }
.node-wrap:nth-child(4n+3) { justify-content: center; }
.node-wrap:nth-child(4n+4) { justify-content: flex-end; padding-right: 8%; }
.node-wrap:nth-child(4n+5) { justify-content: center; }
.node {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--deep);
  clip-path: polygon(22% 0, 80% 4%, 100% 32%, 96% 78%, 72% 100%, 20% 96%, 0 70%, 4% 22%);
  transition: transform var(--t-press);
}
.node::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #a6d6ea 0 7px, transparent 7px);
}
.node:active { transform: scale(.92); }
.node__no { position: relative; font-family: var(--f-num); font-weight: 800; font-size: 24px; line-height: 1; margin-top: -10px; }
.node__stars { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 1px; }
.node__stars svg { width: 13px; height: 13px; color: #b9d6e3; }
.node__stars svg.on { color: var(--orange-low); }
.node.is-locked { background: #d4e6ee; color: #44606f; }
.node.is-locked .node__no { display: none; }
.node.is-locked svg.lock { width: 24px; height: 24px; position: relative; margin-top: -8px; }
.node.is-sel { background: var(--orange); }
.node.is-sel::before { background: linear-gradient(to top, var(--orange-low) 0 7px, transparent 7px); }
.node.is-sel .node__stars svg { color: #ffd0a6; }
.node.is-sel .node__stars svg.on { color: var(--deep); }
.node__pen {
  position: absolute;
  width: 40px;
  height: auto;
  left: calc(50% + 26px);
  top: 4px;
  pointer-events: none;
  animation: penBob 1.6s ease-in-out infinite;
}
@keyframes penBob { 50% { transform: translateY(-4px); } }

.ticket {
  flex: none;
  margin: 0 12px calc(var(--sab) + 12px);
  padding: 14px 14px 14px;
  background: #ffffff;
  border-top: 8px solid var(--orange);
  box-shadow: 0 10px 30px rgba(4, 40, 64, .35);
  display: grid;
  gap: 10px;
}
.ticket__head { display: flex; align-items: center; gap: 12px; }
.ticket__no {
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  padding: 8px 8px;
  background: var(--deep);
  color: #ffffff;
}
.ticket__to { flex: 1; min-width: 0; }
.ticket__place { font-size: 13px; font-weight: 700; color: var(--deep-2); }
.ticket__name { font-family: var(--f-head); font-size: 18px; line-height: 1.3; word-break: keep-all; }
.ticket__stars { display: flex; gap: 2px; }
.ticket__stars svg { width: 20px; height: 20px; color: #c9dde6; }
.ticket__stars svg.on { color: var(--orange-low); }
.ticket__meta { display: grid; grid-template-columns: 2fr .8fr .9fr; border: 2px solid var(--deep); }
.ticket__meta > div { padding: 4px 8px; border-left: 2px dashed var(--ice-line); min-width: 0; }
.ticket__meta > div:first-child { border-left: 0; }
.ticket__meta dt { font-size: 11px; font-weight: 700; color: var(--deep-2); }
.ticket__meta dd { font-size: 14px; font-weight: 700; white-space: nowrap; }
.ticket__meta dd.js-t-item { font-size: 13px; letter-spacing: -.02em; }
.ticket__meta dd b { font-size: 17px; margin-right: 1px; }

/* ===== プレイ ===== */
.scr--play { background: linear-gradient(180deg, #1678a6 0%, #0f6590 55%, #0b5379 100%); color: #ffffff; touch-action: none; }
.hud {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--sat) + 10px) 12px 6px;
}
.hud__mid { flex: 1; min-width: 0; text-align: center; }
.hud__no { display: flex; justify-content: center; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hud__no .num { font-weight: 800; font-size: 13px; background: #ffffff; color: var(--deep); padding: 0 6px; }
.hud__to { font-family: var(--f-head); font-size: 17px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.meter {
  flex: none;
  margin: 4px 12px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #ffffff;
  color: var(--deep);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 98% 100%, 2% 100%, 0 70%);
}
.meter__k { font-size: 12px; font-weight: 700; color: var(--deep-2); margin-right: 6px; }
.meter__moves { display: flex; align-items: baseline; white-space: nowrap; }
.meter__moves > b { font-size: 26px; line-height: 1.1; min-width: 1.4ch; transition: transform 120ms; display: inline-block; }
.meter__moves > b.bump { transform: scale(1.25); }
.meter__opt { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--deep-2); }
.meter__opt b { font-size: 14px; color: var(--deep); }
.meter__stars { display: flex; justify-content: center; gap: 2px; }
.meter__stars svg { width: 18px; height: 18px; color: var(--orange-low); transition: color 200ms, transform 200ms; }
.meter__stars svg.off { color: #c9dde6; transform: scale(.8); }
.meter__parcels { display: flex; align-items: center; white-space: nowrap; }
.slots { display: inline-flex; gap: 4px; }
.slot { width: 24px; height: 24px; display: grid; place-items: center; border: 2px dashed #9cc7da; color: transparent; }
.slot svg { width: 16px; height: 16px; }
.slot.is-got { border: 2px solid var(--orange-low); background: var(--orange); color: var(--deep); animation: slotPop 380ms var(--ease-snap); }
@keyframes slotPop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

.stage { position: relative; flex: 1; min-height: 0; }
.board { position: absolute; inset: 0; display: block; touch-action: none; }
.toastline {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translate(-50%, 10px);
  max-width: calc(100% - 32px);
  padding: 6px 14px;
  background: var(--deep);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 180ms, transform 180ms;
  pointer-events: none;
  word-break: keep-all;
  text-align: center;
}
.toastline.is-on { opacity: 1; transform: translate(-50%, 0); }

.tools {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  padding: 8px 12px calc(var(--sab) + 12px);
}
.tool {
  min-height: 58px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  padding: 6px 4px 9px;
  font-size: 13px;
  font-weight: 900;
  color: var(--deep);
  background: linear-gradient(to top, #8fc4dc 0 4px, transparent 4px), linear-gradient(170deg, #ffffff, #e2f3fa);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform var(--t-press);
  white-space: nowrap;
  touch-action: manipulation;
}
.tool:active { transform: translateY(3px); }
.tool:disabled { opacity: .55; }
.tool--hint { background: linear-gradient(to top, var(--orange-low) 0 4px, transparent 4px), linear-gradient(170deg, var(--orange-hi), var(--orange)); }
.tool.is-glow { animation: glow 900ms ease-in-out 3; }
@keyframes glow { 50% { transform: translateY(-3px); filter: drop-shadow(0 0 8px #fff); } }

.demo {
  position: absolute;
  left: 12px; right: 12px;
  bottom: calc(var(--sab) + 84px);
  display: none;
  gap: 8px;
  justify-items: center;
}
.demo.is-on { display: grid; }
.demo__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--deep);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}
.demo__tag svg { width: 16px; height: 16px; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.coach {
  position: absolute;
  left: 0; right: 0; top: 46%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.coach.is-on { display: flex; }
.coach__hand { width: 160px; height: 40px; position: relative; }
.coach__hand svg { position: absolute; left: 0; top: 4px; width: 32px; height: 32px; animation: swipeR 1.4s cubic-bezier(.5, 0, .2, 1) infinite; }
@keyframes swipeR { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(128px); opacity: 1; } 100% { transform: translateX(128px); opacity: 0; } }
.coach__text { padding: 4px 14px; background: var(--deep); color: #fff; font-weight: 700; word-break: keep-all; }

/* モーダル */
.modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 36, 56, .72);
}
.modal.is-on { display: flex; animation: fade 200ms ease-out; }
@keyframes fade { from { opacity: 0; } }
.card {
  width: 100%;
  max-width: 340px;
  display: grid;
  gap: 12px;
  padding: 22px 18px 16px;
  background: var(--snow);
  color: var(--deep);
  text-align: center;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  animation: cardIn 360ms var(--ease-snap);
}
@keyframes cardIn { from { transform: translateY(24px) scale(.94); } }
.card__eyebrow { font-weight: 900; font-size: 13px; letter-spacing: .12em; color: var(--orange-ink); }
.card__eyebrow--sea { color: var(--sea-2); font-size: 15px; }
.card__title { font-family: var(--f-head); font-weight: 400; font-size: 26px; }
.card__text { font-size: 15px; text-align: left; word-break: normal; }
.card__stat { display: flex; justify-content: center; align-items: baseline; gap: 10px; font-weight: 700; }
.card__stat b { font-size: 30px; }
.card__row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.card__pic { margin: -22px -18px 0; aspect-ratio: 16 / 10; overflow: hidden; }
.card__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.intro__tile { width: 240px; height: 120px; justify-self: center; }

/* ===== クリア ===== */
.scr--clear { background: var(--frost); }
.bar--clear { background: transparent; position: absolute; left: 0; right: 0; top: 0; }
.bar--clear::after { display: none; }
.bar--clear .bar__title--sm { background: #ffffff; padding: 2px 12px; flex: none; margin: 0 auto; }
.clear__scroll { flex: 1; }
.clear__hero {
  position: relative;
  height: 290px;
  background: url(/app-development/apps/a007/img/clear.webp) center 62% / cover no-repeat;
}
.stamp {
  position: absolute;
  right: 18px;
  bottom: -26px;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--f-head);
  color: #ffffff;
  background: var(--orange-ink);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--orange-ink);
  transform: rotate(-12deg);
  line-height: 1.15;
  z-index: 2;
}
.stamp__a { font-size: 18px; }
.stamp__b { font-size: 26px; }
.stamp.is-hit { animation: stampHit 520ms cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stampHit { 0% { transform: rotate(-30deg) scale(2.4); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-12deg) scale(1); } }
.slip {
  position: relative;
  margin: 0 14px 18px;
  padding: 22px 16px 18px;
  background: #ffffff;
  border-top: 10px solid var(--orange);
  box-shadow: 0 6px 24px rgba(11, 58, 87, .14);
}
.slip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px; height: 8px;
  background: radial-gradient(circle at 6px -2px, transparent 6px, #ffffff 6.5px) 0 0 / 12px 8px repeat-x;
}
.slip__eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--orange-ink); }
.slip__to { font-family: var(--f-head); font-weight: 400; font-size: 24px; margin-top: 2px; padding-right: 96px; }
.slip__item { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; }
.slip__item svg { width: 18px; height: 18px; color: var(--orange-low); }
.slip__stars { display: flex; gap: 8px; margin-top: 14px; }
.slip__stars svg { width: 40px; height: 40px; color: #d2e4ec; }
.slip__stars svg.on { color: var(--orange); filter: drop-shadow(0 2px 0 var(--orange-low)); }
.slip__stars svg.pop { animation: starPop 420ms var(--ease-snap) both; }
@keyframes starPop { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }
.slip__msg { margin-top: 6px; font-weight: 900; font-size: 16px; word-break: keep-all; }
.slip__nums { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border: 2px solid var(--deep); }
.slip__nums > div { padding: 6px 10px 4px; border-left: 2px dashed var(--ice-line); }
.slip__nums > div:first-child { border-left: 0; }
.slip__nums dt { font-size: 12px; font-weight: 700; color: var(--deep-2); }
.slip__nums dd { white-space: nowrap; font-weight: 700; }
.slip__nums dd b { font-size: 28px; line-height: 1.1; }
.slip__best { margin-top: 10px; display: inline-block; padding: 2px 10px; font-weight: 900; font-size: 14px; color: #ffffff; background: var(--sea-2); }
.slip__best:empty { display: none; }
.slip__h { margin-top: 18px; font-size: 15px; font-weight: 900; border-bottom: 2px solid var(--deep); padding-bottom: 4px; }
.log { list-style: none; }
.log li { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--ice-line); }
.log__no { font-family: var(--f-num); font-weight: 800; font-size: 14px; text-align: center; background: var(--frost); padding: 2px 0; }
.log__to { font-weight: 700; font-size: 14px; line-height: 1.4; word-break: keep-all; min-width: 0; }
.log__to small { display: block; font-size: 12px; color: var(--deep-2); font-weight: 500; }
.log__st { display: flex; gap: 1px; }
.log__st svg { width: 14px; height: 14px; color: #c9dde6; }
.log__st svg.on { color: var(--orange-low); }
.clear__dock {
  flex: none;
  display: grid;
  gap: 10px;
  padding: 10px 14px calc(var(--sab) + 14px);
  background: var(--frost);
  border-top: 2px solid var(--ice-line);
}
.clear__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== 設定 ===== */
.scr--settings { background: var(--frost); }
.set { position: relative; flex: 1; padding: 16px 16px calc(var(--sab) + 28px); }
.howto-hero { margin: 4px 0 0; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.howto-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.set__h { margin: 22px 0 8px; font-family: var(--f-head); font-weight: 400; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.set__h::before { content: ""; width: 10px; height: 18px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%); }
.rules { list-style: none; display: grid; gap: 8px; }
.rule { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px; background: #ffffff; }
.rule__cv { width: 96px; height: 64px; }
.rule h3 { font-size: 15px; font-weight: 900; }
.rule p { font-size: 14px; line-height: 1.65; word-break: normal; }
.grp { background: #ffffff; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border-bottom: 1px solid #dcebf2;
}
.row:last-child { border-bottom: 0; }
.row--stack { display: grid; justify-content: stretch; gap: 8px; }
.row__k { font-weight: 700; }
.row__k small { display: block; font-size: 13px; font-weight: 500; color: var(--deep-2); line-height: 1.5; }
.row__note { font-size: 14px; color: var(--deep-2); word-break: normal; }
.row--btn { width: 100%; justify-content: flex-start; color: var(--danger); font-weight: 700; text-align: left; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--deep); }
.seg button { min-height: 44px; font-weight: 700; border-left: 2px solid var(--deep); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--deep); color: #ffffff; }
.sw {
  position: relative;
  width: 58px;
  height: 34px;
  flex: none;
  background: #b7cfdb;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: background 160ms;
}
.sw i { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; background: #ffffff; transition: transform 200ms var(--ease-snap); }
.sw[aria-checked="true"] { background: var(--orange-low); }
.sw[aria-checked="true"] i { transform: translateX(24px); }
.about { padding: 16px 14px; display: grid; gap: 12px; }
.about__head { display: flex; gap: 12px; align-items: center; }
.about__head img { width: 64px; height: 64px; border-radius: 15px; }
.about__name { font-family: var(--f-head); font-size: 18px; }
.about__ver { font-size: 13px; color: var(--deep-2); }
.about__note { font-size: 14px; word-break: normal; }
.about__k { font-weight: 900; font-size: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; font-weight: 700; padding: 3px 10px; background: var(--frost); border: 1px solid var(--ice-line); white-space: nowrap; }
.about__cta span { white-space: normal; word-break: keep-all; }

/* シート・トースト */
.scrim { position: absolute; inset: 0; z-index: 30; background: rgba(6, 36, 56, .55); opacity: 0; pointer-events: none; transition: opacity 200ms; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 31;
  display: grid;
  gap: 12px;
  padding: 10px 18px calc(var(--sab) + 18px);
  background: var(--snow);
  transform: translateY(105%);
  transition: transform 300ms var(--ease-snap);
  clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.sheet.is-on { transform: none; }
.sheet__grab { justify-self: center; width: 44px; height: 5px; background: #a9c6d4; }
.sheet h2 { font-family: var(--f-head); font-weight: 400; font-size: 20px; }
.sheet p { word-break: normal; }
.toast {
  position: absolute;
  left: 50%;
  top: calc(var(--sat) + 70px);
  z-index: 40;
  transform: translate(-50%, -16px);
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  background: var(--deep);
  color: #ffffff;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
  word-break: keep-all;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.splash {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(circle at 50% 40%, #ffffff, var(--ice) 70%);
}
.splash.is-on { display: flex; }
.splash img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(11, 58, 87, .25); animation: splashPop 600ms var(--ease-snap); }
.splash p { font-family: var(--f-head); font-size: 22px; color: var(--deep); }
.splash.is-out { animation: fadeOut 260ms ease-in forwards; }
@keyframes splashPop { from { transform: scale(.6); opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

.fly-parcel { position: fixed; z-index: 60; width: 22px; height: 22px; background: var(--orange); border: 2px solid var(--orange-low); pointer-events: none; }

.noscript, .jsfail {
  position: absolute;
  inset: auto 16px 40%;
  z-index: 99;
  padding: 16px;
  background: #ffffff;
  color: var(--deep);
  font-weight: 700;
  text-align: center;
}
.jsfail { display: none; }
html:not(.ready) .jsfail { display: block; opacity: 0; animation: lateShow 0s 5s forwards; }
@keyframes lateShow { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .scr.is-enter, .card, .modal.is-on, .splash img, .node__pen, .demo__tag svg, .coach__hand svg, .slot.is-got, .slip__stars svg.pop, .stamp.is-hit { animation: none !important; }
  .sheet, .toast, .toastline { transition: none; }
}
@media (max-height: 700px) {
  .logo__b { font-size: 52px; }
  .clear__hero { height: 220px; }
  .tool { min-height: 52px; }
}
/* モーダルを開いている間は、後ろの操作部を隠す（暗幕の下の文字が読みにくくならないように） */
.scr--play:has(.modal.is-on) :is(.hud, .meter, .tools, .demo, .toastline) { visibility: hidden; }
