/* 都市スライム style.css — 構造とクラス名は docs/design.md を参照 */

:root {
  --c-ink: #3b2f2f;
  --c-ink-sub: #7a6a5e;
  --c-paper: #fffdf7;
  --c-line: #eadcc0;
  --c-ground: #efe4c9;
  --c-slime: #8a6cff;
  --c-slime-deep: #5b44d6;
  --c-slime-pale: #e4dcff;
  --c-pink: #ff6fa3;
  --c-pink-deep: #c93f73;
  --c-gold: #ffc83d;
  --c-gold-deep: #d99a00;
  --c-sky: #4f9be0;
  --c-sky-deep: #2f6fb8;
  --c-mint: #6fd3c0;
  --c-park: #a6dc85;
  --c-water: #72c6f0;
  --c-lock: #b9aeb0;

  --font-base: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "BIZ UDPGothic",
    "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-num: "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "SF Pro Rounded",
    ui-rounded, system-ui, sans-serif;

  --radius-m: 18px;
  --radius-l: 28px;
  --btn-depth: 6px;
  --play-w: min(100vw, 480px);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  --dur-fast: 0.15s;
  --dur-mid: 0.35s;
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-base);
  color: var(--c-ink);
  background: #2c2440;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: none;
  line-height: 1.5;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overflow: hidden;
}
button { font: inherit; color: inherit; }
.num { font-family: var(--font-num); font-weight: 900; font-variant-numeric: tabular-nums; }
small { font-size: 0.6em; margin-left: 2px; }

.app {
  position: relative;
  width: var(--play-w);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--c-ground);
  background-image:
    linear-gradient(var(--c-paper) 0 0), linear-gradient(var(--c-paper) 0 0);
  background-size: 100% 14px, 14px 100%;
  background-position: 0 38%, 30% 0;
  background-repeat: no-repeat;
}
@media (min-width: 520px) {
  .app { border-left: 4px solid var(--c-ink); border-right: 4px solid var(--c-ink); }
}

/* ---------- 画面切替 ---------- */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(16px + var(--safe-left));
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--dur-mid) ease, transform var(--dur-mid) ease, visibility 0s linear var(--dur-mid);
  overflow-y: auto;
}
.screen.is-active {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity var(--dur-mid) ease, transform var(--dur-mid) ease, visibility 0s;
}
.screen__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.screen:not(.screen--play) > :not(.screen__bg) { position: relative; z-index: 1; }

/* ---------- ボタン（押すと沈む） ---------- */
.btn {
  --btn-bg: var(--c-slime);
  --btn-edge: var(--c-slime-deep);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 28px;
  border: 3px solid var(--c-ink); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 20px; font-weight: 800; letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 var(--btn-depth) 0 var(--btn-edge), 0 var(--btn-depth) 0 3px var(--c-ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter var(--dur-fast);
}
.btn::after {
  content: ""; position: absolute; top: 5px; left: 18%; right: 18%; height: 6px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.35); pointer-events: none;
}
.btn:hover { filter: brightness(1.05); }
.btn:active, .btn.is-pressed {
  transform: translateY(var(--btn-depth));
  box-shadow: 0 0 0 var(--btn-edge), 0 0 0 3px var(--c-ink);
}
.btn:disabled { filter: grayscale(0.8) opacity(0.6); cursor: not-allowed; }
.btn--block { display: flex; width: 100%; }
.btn--pink { --btn-bg: var(--c-pink); --btn-edge: var(--c-pink-deep); }
.btn--sky { --btn-bg: var(--c-sky); --btn-edge: var(--c-sky-deep); }
.btn--gold { --btn-bg: var(--c-gold); --btn-edge: var(--c-gold-deep); --btn-fg: var(--c-ink); }
.btn--ghost { --btn-bg: var(--c-paper); --btn-edge: var(--c-line); --btn-fg: var(--c-ink); }
.btn--small { min-height: 40px; padding: 6px 16px; font-size: 15px; --btn-depth: 4px; }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  border: 3px solid var(--c-ink); border-radius: 50%;
  background: var(--c-paper); cursor: pointer;
  box-shadow: 0 4px 0 var(--c-line), 0 4px 0 3px var(--c-ink);
  font-size: 20px; font-weight: 900; line-height: 1;
  display: grid; place-items: center;
  transition: transform 0.08s, box-shadow 0.08s;
}
.icon-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--c-line), 0 0 0 3px var(--c-ink); }
.icon-btn--pause::before {
  content: ""; width: 12px; height: 16px;
  border-left: 4px solid var(--c-ink); border-right: 4px solid var(--c-ink);
}

/* ---------- カード・モーダル ---------- */
.card {
  background: var(--c-paper);
  border: 4px solid var(--c-ink); border-radius: var(--radius-l);
  box-shadow: 0 8px 0 rgba(59, 47, 47, 0.25);
  padding: 20px;
}
.card__title { margin: 0 0 12px; font-size: 24px; font-weight: 900; text-align: center; }
.card__actions { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; align-items: center; }
.modal {
  position: absolute; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 20px;
  background: rgba(44, 36, 64, 0.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-mid) ease, visibility 0s linear var(--dur-mid);
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--dur-mid) ease, visibility 0s; }
.modal .card { width: 100%; max-width: 400px; max-height: 100%; overflow-y: auto; }
.modal.is-open .card { animation: pop-in var(--dur-mid) var(--ease-pop) both; }
@keyframes pop-in { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 地図クレジット ---------- */
.credit {
  font-size: 10px; line-height: 1.3; color: var(--c-ink-sub);
  background: rgba(255, 253, 247, 0.85);
  border-radius: 8px; padding: 2px 8px;
  pointer-events: none;
}
.credit--title { align-self: center; margin-top: 10px; }
.credit--play {
  position: absolute; z-index: 5;
  right: calc(6px + var(--safe-right)); bottom: calc(6px + var(--safe-bottom));
}
.credit--result { text-align: center; margin: 8px auto 0; background: none; }

/* ---------- タイトル ---------- */
.screen--title { align-items: center; justify-content: center; gap: 14px; text-align: center; }
.logo { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.logo__sub {
  font-size: 14px; font-weight: 800;
  background: var(--c-paper); border: 3px solid var(--c-ink); border-radius: 999px; padding: 2px 14px;
}
.logo__main { display: flex; gap: 2px; }
.logo__char {
  display: inline-block;
  font-size: clamp(44px, 14vw, 64px); font-weight: 900; line-height: 1.1;
  color: var(--c-slime);
  -webkit-text-stroke: 3px var(--c-ink); paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--c-ink);
  animation: jiggle 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
.logo__char--pink { color: var(--c-pink); }
.logo__char--gold { color: var(--c-gold); }
@keyframes jiggle {
  0%, 70%, 100% { transform: none; }
  78% { transform: scale(1.12, 0.88) translateY(4px); }
  86% { transform: scale(0.92, 1.1) translateY(-6px); }
  93% { transform: scale(1.03, 0.97); }
}
.title__scene { width: 220px; height: 220px; }
.title__actions { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 14px; }
.title__hint { margin: 0; font-size: 14px; font-weight: 700; color: var(--c-ink-sub); }

/* ---------- 街選択 ---------- */
.screen--select { gap: 12px; }
.select__head { display: flex; align-items: center; gap: 10px; }
.select__title { flex: 1; margin: 0; font-size: 22px; font-weight: 900; text-align: center; }
.select__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.city-card {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding: 8px 8px 10px; text-align: left;
  background: var(--c-paper);
  border: 3px solid var(--c-ink); border-radius: var(--radius-m);
  box-shadow: 0 5px 0 var(--c-line), 0 5px 0 3px var(--c-ink);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.city-card:active:not(.is-locked) { transform: translateY(5px); box-shadow: 0 0 0 var(--c-line), 0 0 0 3px var(--c-ink); }
.city-card__map {
  width: 100%; aspect-ratio: 1; display: block;
  border: 2px solid var(--c-ink); border-radius: 12px; background: var(--c-ground);
}
.city-card__name { font-size: 15px; font-weight: 900; line-height: 1.2; }
.city-card__area { font-size: 11px; color: var(--c-ink-sub); font-weight: 700; }
.city-card__best { font-size: 12px; font-weight: 800; }
.city-card__best .num { font-size: 15px; color: var(--c-slime-deep); }
.city-card.is-locked { cursor: not-allowed; }
.city-card.is-locked .city-card__map { filter: grayscale(1) brightness(0.75); }
.city-card__lock {
  position: absolute; left: 8px; right: 8px; top: 8px; aspect-ratio: 1;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; font-weight: 800; color: var(--c-paper); text-align: center; padding: 8px;
}
.city-card__lock::before {
  content: ""; width: 34px; height: 28px; margin-top: 14px;
  background: var(--c-gold); border: 3px solid var(--c-ink); border-radius: 6px;
  box-shadow: 0 -18px 0 -6px transparent;
}
.city-card__lock::after {
  content: ""; position: absolute; top: calc(50% - 40px); width: 22px; height: 22px;
  border: 4px solid var(--c-ink); border-bottom: 0; border-radius: 12px 12px 0 0;
}
.city-card__lock span { background: rgba(59, 47, 47, 0.85); border-radius: 8px; padding: 2px 8px; }
.city-card.is-locked .city-card__lock { display: flex; }
.city-card.is-new::after {
  content: "NEW"; position: absolute; top: -10px; right: -8px;
  background: var(--c-pink); color: #fff; font-size: 12px; font-weight: 900;
  border: 3px solid var(--c-ink); border-radius: 999px; padding: 0 8px;
  transform: rotate(8deg);
}

/* ---------- ルール ---------- */
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rules__item { display: flex; align-items: center; gap: 12px; }
.rules__pic {
  width: 84px; height: 84px; flex: none;
  border: 3px solid var(--c-ink); border-radius: 16px; background: var(--c-ground);
}
.rules__text { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
.rules__text b { color: var(--c-slime-deep); }

/* ---------- プレイ ---------- */
.screen--play { padding: 0; overflow: hidden; }
.play__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud {
  position: absolute; z-index: 5; left: 0; right: 0; top: 0;
  padding: calc(10px + var(--safe-top)) calc(10px + var(--safe-right)) 0 calc(10px + var(--safe-left));
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud__pill {
  background: var(--c-paper); border: 3px solid var(--c-ink); border-radius: 16px;
  box-shadow: 0 4px 0 rgba(59, 47, 47, 0.25);
  padding: 2px 12px; text-align: center; line-height: 1.15;
}
.hud__label { display: block; font-size: 10px; font-weight: 800; color: var(--c-ink-sub); }
.hud__time .num { font-size: 26px; }
.hud__time.is-hurry { background: var(--c-pink); color: #fff; animation: hurry 0.5s ease-in-out infinite alternate; }
.hud__time.is-hurry .hud__label { color: #fff; }
@keyframes hurry { to { transform: scale(1.08); } }
.hud__size { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hud__size-value .num { font-size: 32px; color: var(--c-slime-deep); }
.hud__size-value.is-grow { animation: grow-pop 0.35s var(--ease-pop); }
@keyframes grow-pop { 50% { transform: scale(1.25); } }
.hud__next { width: 150px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hud__next-text { font-size: 11px; font-weight: 800; background: rgba(255, 253, 247, 0.9); border-radius: 8px; padding: 0 6px; }
.meter {
  width: 100%; height: 14px; overflow: hidden;
  background: var(--c-paper); border: 3px solid var(--c-ink); border-radius: 999px;
}
.meter__fill {
  display: block; height: 100%; width: calc(var(--p, 0) * 100%);
  background: repeating-linear-gradient(-45deg, var(--c-slime) 0 8px, #a48eff 8px 16px);
  border-radius: 999px; transition: width 0.25s ease;
}
.hud__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hud__score .num { font-size: 18px; }
.hud__score small { font-size: 11px; }

/* 吸えるもの／吸えないもの の凡例（序盤だけ出す） */
.legend {
  position: absolute; z-index: 5; left: 50%; bottom: calc(34px + var(--safe-bottom));
  transform: translateX(-50%);
  display: flex; gap: 12px; padding: 4px 12px;
  background: rgba(255, 253, 247, 0.92); border: 3px solid var(--c-ink); border-radius: 999px;
  font-size: 12px; font-weight: 800; white-space: nowrap;
  transition: opacity var(--dur-mid);
}
.legend.is-hide { opacity: 0; }
.legend__chip { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--c-ink); border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.legend__chip--ok { background: #ffb68a; }
.legend__chip--ng { background: #8f6f7e; border-width: 3px; }

/* ---------- トースト（ランドマーク吸収） ---------- */
.toast {
  position: absolute; z-index: 20; left: 50%; top: 28%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px);
  padding: 10px 18px 10px 12px;
  background: var(--c-gold); border: 4px solid var(--c-ink); border-radius: 22px;
  box-shadow: 0 6px 0 var(--c-gold-deep), 0 6px 0 4px var(--c-ink);
  opacity: 0; pointer-events: none;
}
.toast.is-show { animation: toast 2.2s ease both; }
.toast__icon {
  width: 40px; height: 40px; flex: none;
  background: var(--c-paper); border: 3px solid var(--c-ink); border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; line-height: 1;
}
.toast__body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.toast__name { font-size: 18px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast__msg { font-size: 14px; font-weight: 800; }
.toast__bonus { font-size: 12px; font-weight: 800; color: var(--c-pink-deep); }
@keyframes toast {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.6) rotate(-5deg); }
  12% { opacity: 1; transform: translateX(-50%) scale(1.08) rotate(2deg); }
  20% { transform: translateX(-50%) scale(1) rotate(0); }
  85% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(0.95); }
}
/* 成長の段階アップ（小さめの帯） */
.toast--level { top: 44%; background: var(--c-slime); color: #fff; box-shadow: 0 6px 0 var(--c-slime-deep), 0 6px 0 4px var(--c-ink); padding: 6px 18px; }
.toast--level .toast__name { font-size: 20px; }

/* カウントダウン・時間切れ */
.callout {
  position: absolute; z-index: 15; inset: 0; display: grid; place-items: center;
  pointer-events: none;
}
.callout__text {
  font-size: 64px; font-weight: 900; color: var(--c-paper);
  -webkit-text-stroke: 4px var(--c-ink); paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--c-ink);
  opacity: 0;
}
.callout.is-show .callout__text { animation: callout 0.9s var(--ease-pop) both; }
@keyframes callout { 0% { transform: scale(2.2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(0.9); } }

/* ---------- 結果 ---------- */
.screen--result { gap: 12px; background: var(--c-ground); }
.result__head { text-align: center; }
.result__city { margin: 0; font-size: 14px; font-weight: 800; color: var(--c-ink-sub); }
.result__title { margin: 0; font-size: 24px; font-weight: 900; }
.result__map-wrap {
  position: relative; width: 100%; max-width: 420px; margin: 0 auto;
  border: 4px solid var(--c-ink); border-radius: var(--radius-m);
  box-shadow: 0 8px 0 rgba(59, 47, 47, 0.25);
  overflow: hidden; background: var(--c-ground);
}
.result__map { display: block; width: 100%; aspect-ratio: 1; }
.result__stamp {
  position: absolute; left: 10px; top: 10px;
  background: var(--c-paper); border: 3px solid var(--c-ink); border-radius: 14px;
  padding: 2px 10px; line-height: 1.15; transform: rotate(-4deg);
}
.result__stamp .hud__label { font-size: 10px; }
.result__dia { font-size: 30px; color: var(--c-slime-deep); }
.result__map-legend {
  position: absolute; right: 8px; bottom: 8px;
  font-size: 10px; font-weight: 800; background: rgba(255, 253, 247, 0.9); border-radius: 8px; padding: 1px 6px;
}
.result__map-legend i { display: inline-block; width: 10px; height: 10px; border: 2px dashed #a796f0; background: #e4dcff; border-radius: 3px; vertical-align: -1px; margin-right: 3px; }
.result__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat {
  background: var(--c-paper); border: 3px solid var(--c-ink); border-radius: 14px;
  text-align: center; padding: 4px 2px; line-height: 1.2;
}
.stat__label { display: block; font-size: 11px; font-weight: 800; color: var(--c-ink-sub); }
.stat__value { font-size: 20px; }
.stat--best.is-record { background: var(--c-gold); }
.result__new {
  display: inline-block; margin-left: 4px; padding: 0 6px;
  background: var(--c-pink); color: #fff; font-size: 11px; font-weight: 900;
  border: 2px solid var(--c-ink); border-radius: 999px;
  animation: wiggle 0.6s ease-in-out infinite;
}
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.1); } }
.result__gap { margin: 0; text-align: center; font-size: 14px; font-weight: 800; }
.result__gap .num { color: var(--c-pink-deep); font-size: 17px; }
.landmarks {
  background: var(--c-paper); border: 3px solid var(--c-ink); border-radius: var(--radius-m);
  padding: 8px 12px;
}
.landmarks__title { margin: 0 0 4px; font-size: 13px; font-weight: 900; }
.landmarks__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.landmarks__item {
  font-size: 12px; font-weight: 800;
  background: #fff3c4; border: 2px solid var(--c-ink); border-radius: 999px; padding: 1px 10px 1px 6px;
}
.landmarks__item::before { content: "★"; color: var(--c-gold-deep); margin-right: 3px; }
.landmarks__empty { font-size: 12px; color: var(--c-ink-sub); }
.result__actions { display: flex; flex-direction: column; gap: 14px; align-items: center; padding-bottom: 8px; }
.result__row { display: flex; gap: 10px; width: 100%; }
.result__row .btn { flex: 1; }

/* ---------- 横向き警告 ---------- */
.rotate {
  position: fixed; inset: 0; z-index: 100;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: #2c2440; color: var(--c-paper); font-size: 20px; font-weight: 900; text-align: center;
}
.rotate__phone {
  width: 54px; height: 90px;
  border: 5px solid var(--c-paper); border-radius: 12px;
  background: var(--c-slime);
  animation: turn 1.6s ease-in-out infinite;
}
@keyframes turn { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0); } }
@media (orientation: landscape) and (max-height: 500px) {
  .rotate { display: flex; }
}
.rotate.is-show { display: flex; }

/* ---------- 動きを減らす ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01s !important; }
  .logo__char, .rotate__phone, .result__new, .hud__time.is-hurry, .hud__size-value.is-grow { animation: none !important; }
  .toast.is-show { animation: toast-fade 2.2s linear both; }
  .callout.is-show .callout__text { animation: toast-fade 0.9s linear both; }
  .modal.is-open .card { animation: none; }
}
@keyframes toast-fade { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- game.js で追加した要素 ---------- */
.screen:not(.screen--play) { touch-action: pan-y; }
.title__row { display: flex; gap: 10px; justify-content: center; }
.title__row .btn { flex: 1; }
.city-card__stars { color: var(--c-gold-deep); font-size: 12px; letter-spacing: -1px; }
.result__rank { margin: 0; display: flex; justify-content: center; align-items: baseline; gap: 8px; font-weight: 900; }
.result__stars { font-size: 26px; color: var(--c-gold); -webkit-text-stroke: 1.5px var(--c-ink); paint-order: stroke fill; letter-spacing: 2px; }
.result__title-name { font-size: 18px; }
.result__unlock {
  margin: 0; text-align: center; font-size: 14px; font-weight: 900;
  background: var(--c-pink); color: #fff; border: 3px solid var(--c-ink); border-radius: 14px; padding: 4px 10px;
}
.landmarks__more { font-size: 12px; font-weight: 800; color: var(--c-ink-sub); align-self: center; }
.share-note {
  position: absolute; z-index: 60; left: 50%; bottom: 80px; transform: translateX(-50%);
  background: var(--c-ink); color: var(--c-paper); font-weight: 800; font-size: 14px;
  border-radius: 999px; padding: 6px 16px; pointer-events: none;
}
.toast--level { top: calc(118px + var(--safe-top)); white-space: nowrap; }
.toast--level .toast__name { font-size: clamp(15px, 4.6vw, 20px); }
.toast--mark { top: calc(170px + var(--safe-top)); }
.result__next { margin: 0; text-align: center; font-size: 15px; font-weight: 900; color: var(--c-slime-deep); }
.result__next .num { font-size: 19px; color: var(--c-pink-deep); }
.callout__text.is-long { font-size: clamp(28px, 8.5vw, 40px); white-space: nowrap; }
.hud__time.is-spurt { background: var(--c-gold); }
.toast--level { white-space: normal; width: max-content; max-width: calc(100% - 24px); }
.toast--level .toast__name { white-space: normal; overflow: visible; text-align: center; font-size: clamp(14px, 4.1vw, 19px); line-height: 1.25; }
.screen--result > *, .screen--select > * { flex-shrink: 0; }
.landmarks__item { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callout.is-show .callout__text.is-quick { animation-duration: 0.6s; }
.callout__text.is-quick { font-size: 40px; }
