/* リースくぐり style.css — 構造とクラス名は docs/design.md を参照 */
:root {
  --c-ink: #3b2f2f;
  --c-ink-sub: #7a6a5e;
  --c-paper: #fffdf7;
  --c-line: #eadcc0;
  --c-red: #e8413b;
  --c-red-deep: #b8302c;
  --c-gold: #ffc83d;
  --c-gold-deep: #d99a00;
  --c-sky: #4f9be0;
  --c-sky-deep: #2f6fb8;
  --c-sky-pale: #bfe3ff;
  --c-night: #1b2960;
  --c-night-deep: #0b1438;
  --c-aurora: #5ef2c8;
  --c-aurora-2: #8f7bff;
  --c-snow: #f4f9ff;
  --c-gift: #ff6fa3;
  --c-teal: #2bb5a6;
  --c-grape: #8f7bff;

  --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;
  
  --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: var(--c-night-deep);
  -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; }

.app { position: relative; width: 100%; height: 100dvh; overflow: hidden; background: linear-gradient(#14275c, #3f7fa6); }

/* ---------- 画面 ---------- */
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: calc(14px + 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;
  transition: opacity var(--dur-mid), visibility 0s linear var(--dur-mid); overflow: hidden auto;
}
.screen.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--dur-mid); }
.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-red); --btn-edge: var(--c-red-deep); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 10px 24px; 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: .04em; white-space: nowrap; cursor: pointer;
  box-shadow: 0 var(--btn-depth) 0 var(--btn-edge), 0 var(--btn-depth) 0 3px var(--c-ink);
  transition: transform .08s, box-shadow .08s, 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,.35); pointer-events: none; }
.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--block { display: flex; width: 100%; }
.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: 44px; padding: 6px 14px; font-size: 15px; --btn-depth: 4px; }
.row { display: flex; gap: 10px; } .row > .btn { flex: 1; padding-inline: 8px; }
.icon-btn {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 3px solid var(--c-ink); border-radius: 50%; background: var(--c-paper); font-size: 20px; font-weight: 900; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 0 var(--c-ink); transition: transform .08s, box-shadow .08s;
}
.icon-btn:active { transform: translateY(4px); box-shadow: none; }
.icon-btn--pause::before { content: ""; width: 12px; height: 14px; border-left: 4px solid var(--c-ink); border-right: 4px solid var(--c-ink); }
.icon-btn[aria-pressed="true"], .icon-btn.is-off { color: #b3a797; text-decoration: line-through; }
.btn:focus-visible, .icon-btn:focus-visible, .country-card:focus-visible { outline: 4px solid var(--c-gold); outline-offset: 4px; }
.btn:disabled { filter: grayscale(.85) brightness(.95); cursor: not-allowed; transform: none; box-shadow: 0 var(--btn-depth) 0 var(--btn-edge), 0 var(--btn-depth) 0 3px var(--c-ink); }
.btn small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0; line-height: 1.2; }
.btn--teal { --btn-bg: var(--c-teal); --btn-edge: #1b7f78; }

/* ---------- タイトル ---------- */
.screen--title { align-items: center; justify-content: safe center; gap: clamp(8px, 2.4vh, 22px); text-align: center; }
.screen--title > a.back-to-games { position: absolute !important; top: calc(12px + var(--safe-top)); left: calc(12px + var(--safe-left)); z-index: 6; display: inline-flex; align-items: center; padding: 6px 12px 7px; font: 800 13px/1 var(--font-base); color: var(--c-ink); text-decoration: none; background: var(--c-paper); border: 3px solid var(--c-ink); border-radius: 999px; box-shadow: 0 3px 0 var(--c-ink); }
.screen--title > a.back-to-games:active { transform: translateY(3px); box-shadow: none; }
.screen--title > .title__mute { position: absolute !important; top: calc(10px + var(--safe-top)); right: calc(12px + var(--safe-right)); }
.logo { margin: 0; font-weight: 900; line-height: 1.04; display: grid; justify-items: center; --fs: clamp(46px, min(16vw, 13vh), 104px); }
.logo__sub { order: 2; padding: 2px 16px; margin-top: 12px; border: 3px solid var(--c-ink); border-radius: 999px; background: var(--c-paper); font-size: clamp(14px, 3.8vmin, 20px); line-height: 1.5; transform: rotate(-2deg); }
.logo__row { display: flex; gap: 2px; font-size: var(--fs); }
.logo__row + .logo__row { margin-top: 2px; }
.logo__char { display: inline-block; color: var(--c-paper); -webkit-text-stroke: clamp(6px, 1.8vmin, 10px) var(--c-ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--c-ink); animation: hop 2.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .1s); }
.logo__char--red { color: #ff655c; } .logo__char--gold { color: var(--c-gold); } .logo__char--green { color: #6fdc92; }
@keyframes hop { 0%, 60%, 100% { translate: 0 0; } 72% { translate: 0 4px; } 86% { translate: 0 -10px; } }
.title__scene { width: min(88vw, 460px); height: auto; aspect-ratio: 2.1; max-height: 28vh; }
.title__actions { display: grid; gap: 15px; justify-items: center; width: min(82vw, 330px); }
.title__actions .row { width: 100%; }
.title__best { margin: 0; padding: 2px 16px; border: 3px solid var(--c-ink); border-radius: 999px; background: var(--c-gold); font-size: 15px; font-weight: 900; }

/* ---------- 国えらび ---------- */
.screen--select { gap: 14px; }
.bar { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 980px; margin: 0 auto; }
.bar__title { flex: 1; margin: 0; color: #fff; font-size: clamp(19px, 5vmin, 26px); font-weight: 900; -webkit-text-stroke: 5px var(--c-ink); paint-order: stroke fill; }
.bar__stars { padding: 2px 14px; border: 3px solid var(--c-ink); border-radius: 999px; background: var(--c-gold); font-weight: 900; white-space: nowrap; }
.countries { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; width: 100%; max-width: 680px; margin: 0 auto; padding-bottom: 10px; align-content: safe center; touch-action: pan-y; }
.country-card { position: relative; display: grid; padding: 0 0 7px; border: 3px solid var(--c-ink); border-radius: 18px; background: var(--c-paper); box-shadow: 0 5px 0 var(--c-sky-deep), 0 5px 0 3px var(--c-ink); overflow: hidden; text-align: center; justify-items: center; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.country-card:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 0 0 3px var(--c-ink); }
.country-card__pic { width: 100%; aspect-ratio: 1.75; display: block; border-bottom: 3px solid var(--c-ink); background: #bfd8ee; }
.country-card__no { position: absolute; left: 6px; top: 6px; display: grid; place-items: center; width: 27px; height: 27px; border: 2.5px solid var(--c-ink); border-radius: 50%; background: var(--c-red); color: #fff; font-size: 14px; }
.country-card__name { padding: 3px 2px 0; font-size: clamp(12px, 3.3vmin, 17px); font-weight: 900; white-space: nowrap; }
.country-card.is-locked { filter: saturate(.15); cursor: not-allowed; } .country-card.is-locked .country-card__pic { opacity: .55; } .country-card.is-locked .stars { visibility: hidden; }
.select__note { margin: 0 auto; padding: 2px 16px; border-radius: 99px; background: rgba(27,20,56,.66); color: #fff; font-size: 13px; font-weight: 800; text-align: center; }
.stars { display: inline-flex; gap: 3px; }
.star { flex: none; position: relative; width: 22px; height: 22px; }
.star::before, .star::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 63% 33%, 98% 36%, 71% 58%, 80% 93%, 50% 74%, 20% 93%, 29% 58%, 2% 36%, 37% 33%); background: var(--c-ink); }
.star::after { inset: 3px; background: #d8cfbf; } .star.is-on::after { background: var(--c-gold); }

/* ---------- プレイ ---------- */
.screen--play { padding: 0; overflow: hidden; touch-action: none; background: #14275c; }
.play__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
.hud { position: absolute; z-index: 3; inset: 0 0 auto 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px 8px; padding: calc(8px + var(--safe-top)) calc(10px + var(--safe-right)) 0 calc(10px + var(--safe-left)); pointer-events: none; }
.hud > button { pointer-events: auto; }
.gauge { position: relative; display: flex; align-items: center; height: 34px; min-width: 0; max-width: 340px; width: 100%; padding-left: 26px; }
.gauge__icon { position: absolute; left: 0; z-index: 1; width: 36px; height: 36px; }
.gauge__icon::before, .gauge__icon::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 63% 33%, 98% 36%, 71% 58%, 80% 93%, 50% 74%, 20% 93%, 29% 58%, 2% 36%, 37% 33%); background: var(--c-ink); }
.gauge__icon::after { inset: 5px; background: var(--c-gold); }
.gauge__track { position: relative; flex: 1; height: 24px; border: 3px solid var(--c-ink); border-radius: 99px; background: rgba(43,33,60,.72); overflow: hidden; }
.gauge__fill { position: absolute; inset: 0; transform: scaleX(var(--p, 1)); transform-origin: left; background: linear-gradient(#fff3b0 0 30%, var(--c-gold) 30% 72%, #f2a71d 72%); transition: transform .12s linear; }
.gauge.is-low .gauge__fill { background: linear-gradient(#ffb3a8 0 30%, var(--c-red) 30% 72%, var(--c-red-deep) 72%); }
.gauge.is-low { animation: low .4s ease-in-out infinite alternate; } @keyframes low { to { transform: scale(1.04); } }
.gauge.is-up .gauge__icon { animation: bump .3s var(--ease-pop); } @keyframes bump { 40% { transform: scale(1.4) rotate(18deg); } }
.hud__score { min-width: 86px; height: 34px; display: grid; place-items: center; padding: 0 12px; border: 3px solid var(--c-ink); border-radius: 14px; background: var(--c-paper); box-shadow: 0 3px 0 var(--c-ink); font-size: 18px; line-height: 1; white-space: nowrap; }
.hud__where { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 480px; }
.hud__country { flex: none; padding: 0 12px; border: 2.5px solid var(--c-ink); border-radius: 99px; background: var(--c-paper); font-size: 13px; font-weight: 900; line-height: 22px; white-space: nowrap; }
.route { position: relative; flex: 1; height: 10px; border: 2.5px solid var(--c-ink); border-radius: 99px; background: rgba(255,253,247,.9); }
.route__fill { position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); border-radius: 99px; background: var(--c-teal); }
.route__me { position: absolute; left: calc(var(--p, 0) * 100%); top: 50%; width: 18px; height: 18px; border: 2.5px solid var(--c-ink); border-radius: 50%; background: radial-gradient(circle at 50% 72%, #ffdcbf 45%, var(--c-red) 48%); transform: translate(-50%, -50%); }
.combo { position: absolute; z-index: 3; right: calc(12px + var(--safe-right)); top: calc(90px + var(--safe-top)); display: grid; justify-items: center; color: var(--c-gold); font-weight: 900; line-height: 1; -webkit-text-stroke: 6px var(--c-ink); paint-order: stroke fill; pointer-events: none; opacity: 0; transition: opacity .15s; }
.combo.is-show { opacity: 1; } .combo .num { font-size: clamp(34px, 9vmin, 54px); } .combo small { font-size: 14px; color: #fff; -webkit-text-stroke-width: 5px; }
.combo.is-bump { animation: bump2 .22s var(--ease-pop); } @keyframes bump2 { 40% { transform: scale(1.28); } }
.combo.is-hot { color: #ff9fc4; }
.pop { position: absolute; z-index: 3; left: var(--x, 50%); top: var(--y, 40%); color: #fff; font-size: clamp(16px, 4.6vmin, 24px); font-weight: 900; white-space: nowrap; -webkit-text-stroke: 5px var(--c-ink); paint-order: stroke fill; pointer-events: none; animation: pop-up .8s ease-out both; }
.pop--perfect { color: var(--c-gold); } .pop--miss { color: #bfd8ee; font-size: 15px; }
@keyframes pop-up { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -14px) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -44px); } }
.fever { position: absolute; z-index: 4; left: 50%; top: 24%; color: var(--c-gold); font-size: clamp(32px, 10vmin, 68px); font-weight: 900; white-space: nowrap; -webkit-text-stroke: 8px var(--c-ink); paint-order: stroke fill; pointer-events: none; opacity: 0; }
.fever.is-show { animation: fever 1.2s var(--ease-pop) both; } @keyframes fever { 0% { opacity: 0; transform: translate(-50%, 0) scale(.4) rotate(-8deg); } 25%, 75% { opacity: 1; transform: translate(-50%, 0) rotate(-3deg); } 100% { opacity: 0; transform: translate(-50%, -24px); } }
.passport { position: absolute; z-index: 4; left: 50%; top: calc(92px + var(--safe-top)); display: grid; grid-template-columns: 68px minmax(0, 1fr); column-gap: 10px; align-items: center; width: max-content; max-width: min(420px, calc(100% - 24px)); padding: 7px 18px 8px 9px; border: 3px solid var(--c-ink); border-radius: 20px; background: rgba(255,253,247,.96); box-shadow: 0 5px 0 var(--c-ink); pointer-events: none; opacity: 0; transform: translate(-50%, -30px) scale(.9); transition: opacity .2s, transform .35s var(--ease-pop); }
.passport.is-show { opacity: 1; transform: translate(-50%, 0); }
.passport__badge { grid-row: 1 / 3; width: 68px; height: 68px; }
.passport__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; font-size: clamp(19px, 5.4vmin, 26px); font-weight: 900; line-height: 1.2; }
.passport__greet { font-size: 14px; color: var(--c-red); font-style: normal; }
.passport__trivia { margin: 1px 0 0; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--c-ink-sub); }
.finger { position: absolute; z-index: 4; left: 50%; bottom: calc(13% + var(--safe-bottom)); display: flex; align-items: center; gap: 12px; padding: 8px 22px; border: 3px solid var(--c-ink); border-radius: 99px; background: var(--c-paper); box-shadow: 0 5px 0 var(--c-ink); font-size: clamp(17px, 4.8vmin, 24px); font-weight: 900; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(-50%); transition: opacity .2s; }
.finger.is-show { opacity: 1; } .finger::before { content: ""; width: 30px; height: 30px; border: 3px solid var(--c-ink); border-radius: 50%; background: var(--c-gold); }
.finger.is-press { background: #fff2c4; } .finger.is-press::before { background: var(--c-red); box-shadow: 0 0 0 6px rgba(232,65,59,.28); animation: press .7s ease-in-out infinite alternate; } @keyframes press { to { transform: scale(.8); } }
.count { position: absolute; z-index: 5; left: 50%; top: 42%; color: #fff; font: 900 clamp(64px, 20vmin, 120px)/1 var(--font-num); -webkit-text-stroke: 10px var(--c-ink); paint-order: stroke fill; pointer-events: none; transform: translate(-50%, -50%); }
.vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; box-shadow: inset 0 0 70px 14px var(--c-red); } .vignette.is-low { animation: vig .7s ease-in-out infinite alternate; } @keyframes vig { to { opacity: .55; } }
.vignette.is-hit { animation: hit .35s ease-out; } @keyframes hit { from { opacity: .9; } }

/* ---------- シート・モーダル ---------- */
.card { width: min(100%, 420px); padding: 18px 18px 22px; border: 3px solid var(--c-ink); border-radius: 26px; background: var(--c-paper); box-shadow: 0 7px 0 var(--c-ink); text-align: center; }
.card__title { margin: 0 0 14px; font-size: 24px; font-weight: 900; }
.card__actions { display: grid; gap: 16px; }
.sheet, .modal { position: absolute; inset: 0; z-index: 20; display: flex; padding: calc(14px + var(--safe-top)) calc(14px + var(--safe-right)) calc(20px + var(--safe-bottom)) calc(14px + var(--safe-left)); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s linear .2s; }
.sheet.is-open, .modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s; }
.modal { align-items: center; justify-content: center; background: rgba(20,24,66,.62); }
.sheet { align-items: flex-end; justify-content: center; }
.sheet .card { position: relative; max-height: 100%; overflow: hidden auto; }
.sheet.is-open .card { animation: rise .4s var(--ease-pop) both; } .modal.is-open .card { animation: pop .3s var(--ease-pop) both; }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } } @keyframes pop { from { transform: scale(.85); opacity: 0; } }
.sheet__label { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.3; } .sheet--finish .sheet__label { color: var(--c-red); }
.sheet__near { margin: 0 0 8px; font-size: 16px; font-weight: 900; color: var(--c-sky-deep); }
.sheet__map { display: block; width: 100%; aspect-ratio: 2.05; border: 3px solid var(--c-ink); border-radius: 16px; background: #8fd0ec; }
.sheet__score { margin: 6px 0 4px; font-size: 18px; font-weight: 900; line-height: 1.2; } .sheet__score .num { margin: 0 4px; font-size: 36px; color: var(--c-red); }
.badge-new { display: inline-block; padding: 1px 10px; border: 2px solid var(--c-ink); border-radius: 99px; background: var(--c-red); color: #fff; font-size: 13px; vertical-align: middle; transform: rotate(4deg); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.stats li { padding: 4px 2px; border: 2px solid var(--c-line); border-radius: 12px; background: #fff7e2; font-size: 12px; font-weight: 800; color: var(--c-ink-sub); line-height: 1.3; } .stats b { display: block; font-size: 18px; color: var(--c-ink); }
.rules { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; text-align: left; font-size: 15px; font-weight: 800; }
.rules li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; } .rules canvas { width: 64px; height: 56px; border: 2.5px solid var(--c-ink); border-radius: 12px; background: #8fc4ea; }
.toast { position: absolute; z-index: 40; left: 50%; bottom: calc(90px + var(--safe-bottom)); padding: 8px 20px; border: 3px solid var(--c-ink); border-radius: 99px; background: var(--c-paper); font-weight: 800; white-space: nowrap; transform: translateX(-50%); }
.app:has(.sheet.is-open) :is(.hud, .combo, .passport, .finger, .vignette) { visibility: hidden; }

/* ---------- 横長・小画面 ---------- */
@media (orientation: portrait) { .fever { top: 22%; } .combo { top: calc(196px + var(--safe-top)); } .country-card__pic { aspect-ratio: 1.15; } }
@media (max-width: 380px) { .hud { gap: 6px 5px; } .hud__score { min-width: 70px; padding: 0 7px; font-size: 16px; } .hud .icon-btn { width: 40px; height: 40px; } }
@media (orientation: portrait) and (max-height: 700px) { .sheet .card { padding: 12px 14px 18px; } .sheet__map { aspect-ratio: 2.3; } .card__actions { gap: 12px; } .sheet .btn--block { min-height: 48px; } .stats { margin-bottom: 12px; } .title__scene { max-height: 24vh; } }
@media (min-width: 700px) and (orientation: landscape) {
  .countries { grid-template-columns: repeat(5, 1fr); gap: 20px 16px; max-width: 980px; }
  .passport { left: calc(14px + var(--safe-left)); transform: translateX(-30px); } .passport.is-show { transform: none; }
  .sheet { justify-content: flex-end; align-items: center; padding-right: calc(5vw + var(--safe-right)); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .screen--title { display: grid; grid-template: auto 1fr / auto auto; place-content: center; align-items: center; column-gap: 36px; padding-block: 48px 12px; }
  .logo { grid-column: 1; align-self: end; --fs: clamp(40px, min(9vw, 19vh), 80px); } .title__scene { grid-column: 1; width: min(40vw, 320px); max-height: 34vh; justify-self: center; } .title__actions { grid-column: 2; grid-row: 1 / 3; width: min(38vw, 310px); gap: 13px; } .title__actions .btn--block { min-height: 48px; }
  .screen--select { gap: 8px; } .countries { gap: 12px; } .country-card__pic { aspect-ratio: 2.1; } .country-card__name { font-size: 13px; padding-top: 0; } .star { width: 18px; height: 18px; } .country-card { padding-bottom: 3px; }
  .hud { grid-template-columns: minmax(0, 250px) auto minmax(0, 1fr) auto auto; } .hud__where { grid-column: 3; grid-row: 1; } .gauge { grid-column: 1; grid-row: 1; } .hud__score { grid-column: 2; grid-row: 1; } .hud > .icon-btn--pause { grid-column: 4; grid-row: 1; } .hud > .hud__mute { grid-column: 5; grid-row: 1; }
  .combo { top: calc(60px + var(--safe-top)); } .passport { top: calc(58px + var(--safe-top)); max-width: 380px; grid-template-columns: 52px minmax(0, 1fr); } .passport__badge { width: 52px; height: 52px; }
  .finger { bottom: calc(10px + var(--safe-bottom)); }
  .sheet { padding: 8px calc(10px + var(--safe-right)) 14px 8px; } .sheet .card { width: min(50vw, 400px); padding: 10px 14px 14px; }
  .sheet__label { font-size: 17px; } .sheet__near { font-size: 13px; margin: 0 0 4px; } .sheet__map { aspect-ratio: auto; height: 22vh; } .sheet__score { margin: 2px 0; } .sheet__score .num { font-size: 24px; } .stats { gap: 6px; margin-bottom: 8px; } .stats li { padding: 1px; font-size: 11px; } .stats b { font-size: 15px; } .card__actions { gap: 10px; } .sheet .btn--block { min-height: 42px; font-size: 17px; } .sheet .btn--small { min-height: 38px; }
}
@media (min-width: 700px) and (min-height: 521px) { .hud { grid-template-columns: 340px minmax(0, 1fr) auto auto; } .hud__score { justify-self: start; } .passport { top: calc(96px + var(--safe-top)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .vignette.is-low { opacity: .4; } .pop { animation: none; transform: translate(-50%, -14px); } .fever.is-show { animation: none; opacity: 1; transform: translateX(-50%); } }
