:root {
  --cream: #fff6e8;
  --cream-soft: rgba(255, 246, 232, 0.74);
  --peach: #ffb177;
  --gold: #ffd58c;
  --coral: #f27657;
  --ink: #222b3a;
  --panel: rgba(54, 35, 43, 0.28);
  --line: rgba(255, 239, 218, 0.28);
  --shadow: 0 16px 48px rgba(84, 42, 36, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Segoe UI Variable", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #e8a184;
  color: var(--cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

body {
  position: relative;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(255, 229, 184, 0.2) 0%, transparent 52%),
    radial-gradient(100% 100% at 50% 50%, transparent 56%, rgba(92, 39, 52, 0.28) 100%);
  mix-blend-mode: soft-light;
}

.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  opacity: 0.065;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: grain-drift 0.9s steps(2) infinite;
}

@keyframes grain-drift {
  0% { transform: translate3d(-2%, -1%, 0); }
  25% { transform: translate3d(1%, 2%, 0); }
  50% { transform: translate3d(2%, -2%, 0); }
  75% { transform: translate3d(-1%, 1%, 0); }
  100% { transform: translate3d(-2%, -1%, 0); }
}

.result-veil {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(90% 90% at 50% 50%, rgba(49, 30, 40, 0.16), rgba(42, 24, 34, 0.42)),
    rgba(40, 25, 34, 0.12);
  backdrop-filter: blur(2.5px) saturate(0.92);
  transition: opacity 0.8s var(--ease-out);
}

.result-veil.is-visible {
  opacity: 1;
}

.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  padding: max(24px, env(safe-area-inset-top)) max(30px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(30px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  z-index: 3;
}

.hud-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  filter: drop-shadow(0 6px 22px rgba(78, 43, 43, 0.24));
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.brand-mark {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 10px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.5), transparent 50%),
    rgba(41, 37, 50, 0.3);
  border: 1px solid rgba(255, 246, 232, 0.36);
  box-shadow: inset 0 0 0 1px rgba(75, 44, 48, 0.12), 0 12px 32px rgba(71, 37, 37, 0.18);
  backdrop-filter: blur(12px);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(255, 242, 221, 0.72);
  text-shadow: 0 1px 9px rgba(68, 32, 32, 0.35);
}

.brand h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 2.3vw, 38px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cream);
  text-shadow: 0 3px 24px rgba(85, 42, 41, 0.32);
}

.hud-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.stat-pill {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(71, 36, 38, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(15px) saturate(1.15);
  color: var(--cream);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(59, 31, 33, 0.3);
  font-variant-numeric: tabular-nums;
}

.fish-pill {
  padding-left: 11px;
  padding-right: 15px;
}

.fish-pill.is-pop {
  animation: fish-pop 0.46s var(--ease-out);
}

@keyframes fish-pop {
  0% { transform: scale(1); }
  32% { transform: scale(1.13); background: rgba(122, 73, 55, 0.46); }
  100% { transform: scale(1); }
}

.fish-pill svg {
  width: 29px;
  height: 20px;
  filter: drop-shadow(0 2px 8px rgba(246, 144, 64, 0.45));
}

.stat-total {
  color: rgba(255, 244, 226, 0.52);
  font-weight: 500;
  font-size: 14px;
  margin-left: -3px;
}

.distance-pill {
  min-width: 86px;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
}

.stat-unit {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 245, 229, 0.58);
  margin-left: -2px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--cream);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(15px) saturate(1.15);
  box-shadow: 0 10px 30px rgba(71, 36, 38, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.icon-button:hover {
  background: rgba(86, 50, 54, 0.38);
  border-color: rgba(255, 240, 219, 0.48);
  transform: translateY(-1px);
}

.icon-button:active {
  transform: scale(0.95);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.sound-off {
  display: none;
}

.is-muted .sound-on {
  display: none;
}

.is-muted .sound-off {
  display: block;
}

.progress-shell {
  width: min(390px, 36vw);
  margin: 20px auto 0;
  padding: 0 2px;
  opacity: 0.88;
  transition: opacity 0.8s var(--ease-out);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 244, 224, 0.65);
  text-shadow: 0 1px 9px rgba(77, 38, 39, 0.36);
}

#progress-word {
  color: rgba(255, 223, 174, 0.92);
  letter-spacing: 0.13em;
  transition: color 0.4s ease;
}

.progress-track {
  position: relative;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 241, 220, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 226, 176, 0.5), #ffd28b 50%, #fff5dd);
  box-shadow: 0 0 12px rgba(255, 196, 119, 0.6);
}

.progress-glint {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff8e9;
  box-shadow: 0 0 0 3px rgba(255, 226, 178, 0.2), 0 0 15px 2px rgba(255, 205, 134, 0.75);
}

.title-card {
  position: absolute;
  left: 50%;
  top: 27%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  animation: title-in 1.3s var(--ease-out) 0.7s backwards;
  filter: drop-shadow(0 8px 28px rgba(77, 37, 38, 0.24));
  transition: opacity 1.3s var(--ease-out), transform 1.3s var(--ease-out);
  z-index: 1;
}

.title-card.is-out {
  opacity: 0;
  transform: translate(-50%, -56%);
}

@keyframes title-in {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.title-rule {
  width: 44px;
  height: 1px;
  background: rgba(255, 239, 211, 0.65);
  margin-bottom: 12px;
  position: relative;
}

.title-rule::before,
.title-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 239, 211, 0.7);
  transform: translateY(-50%);
}

.title-rule::before { left: -9px; }
.title-rule::after { right: -9px; }

.title-card p {
  margin: 0 0 2px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 241, 219, 0.72);
}

.title-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(50px, 5.7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: #fff7e8;
  text-shadow: 0 2px 0 rgba(138, 73, 63, 0.08), 0 10px 50px rgba(109, 54, 54, 0.28);
}

.title-sub {
  margin-top: 9px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.29em;
  text-transform: uppercase;
  color: rgba(255, 224, 180, 0.82);
}

.hint-bar {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 239, 218, 0.2);
  background: rgba(59, 38, 46, 0.25);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 12px 38px rgba(72, 34, 38, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: rgba(255, 246, 231, 0.78);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.hint-bar.is-hidden {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.hint-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hint-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 240, 217, 0.35);
}

.hint-goal em {
  display: inline-block;
  width: 13px;
  height: 9px;
  margin-right: 2px;
  border-radius: 50% 60% 50% 50%;
  background: linear-gradient(135deg, #ffd27b, #f38a49);
  box-shadow: 0 0 9px rgba(255, 176, 93, 0.45);
  transform: rotate(-8deg);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 19px;
  padding: 0 5px;
  border: 1px solid rgba(255, 242, 220, 0.3);
  border-radius: 5px;
  background: rgba(255, 247, 232, 0.09);
  box-shadow: inset 0 -1px 0 rgba(56, 31, 34, 0.2);
  color: rgba(255, 247, 235, 0.95);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.tuck-state {
  position: absolute;
  bottom: max(84px, calc(env(safe-area-inset-bottom) + 60px));
  left: 50%;
  transform: translate(-50%, 8px) scale(0.96);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffe0a7;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
  text-shadow: 0 2px 15px rgba(84, 38, 28, 0.5);
}

.tuck-state.is-active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.tuck-state span {
  width: 21px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 217, 160, 0.75));
}

.tuck-state span:last-child {
  background: linear-gradient(90deg, rgba(255, 217, 160, 0.75), transparent);
}

.toast {
  position: absolute;
  left: 50%;
  top: 31%;
  transform: translate(-50%, 10px) scale(0.94);
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid rgba(255, 235, 201, 0.26);
  background: rgba(73, 43, 46, 0.32);
  backdrop-filter: blur(12px);
  color: #fff1d9;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
  text-shadow: 0 2px 10px rgba(58, 29, 27, 0.25);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.touch-controls {
  display: none;
  position: absolute;
  inset: auto max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.touch-steer,
.touch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.touch-button {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 241, 219, 0.35);
  background: rgba(55, 37, 47, 0.32);
  color: rgba(255, 248, 234, 0.94);
  backdrop-filter: blur(15px) saturate(1.15);
  box-shadow: 0 12px 32px rgba(66, 33, 33, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  touch-action: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.touch-button.is-held {
  transform: scale(0.93);
  background: rgba(110, 64, 62, 0.42);
}

.touch-button svg {
  width: 25px;
  height: 25px;
}

.jump-button {
  width: 74px;
  height: 74px;
  background: rgba(248, 153, 88, 0.33);
  border-color: rgba(255, 229, 191, 0.5);
}

.tuck-button {
  width: 68px;
  height: 68px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(430px, calc(100vw - 40px));
  padding: 34px 36px 25px;
  border-radius: 26px;
  border: 1px solid rgba(255, 234, 204, 0.3);
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(255, 222, 178, 0.13), transparent 55%),
    rgba(42, 31, 43, 0.63);
  background-color: rgba(42, 31, 43, 0.63);
  box-shadow: 0 30px 90px rgba(43, 21, 29, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(24px) saturate(1.15);
  transform: translate(-50%, -44%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  text-align: center;
  overflow: hidden;
}

.panel.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.panel-glow {
  position: absolute;
  width: 270px;
  height: 270px;
  left: 50%;
  top: -195px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 120, 0.3), transparent 67%);
  pointer-events: none;
}

.panel-kicker {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: rgba(255, 218, 169, 0.86);
}

.panel h2 {
  position: relative;
  margin: 10px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff6e7;
}

.panel-lead {
  position: relative;
  margin: 0 auto 23px;
  max-width: 310px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 242, 224, 0.66);
}

.result-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 23px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 235, 208, 0.16);
  border-bottom: 1px solid rgba(255, 235, 208, 0.16);
}

.result-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid rgba(255, 235, 208, 0.13);
}

.result-grid > div:last-child {
  border-right: 0;
}

.result-grid span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 239, 218, 0.46);
}

.result-grid strong {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  color: #fff4e2;
  font-variant-numeric: tabular-nums;
}

.result-grid small {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 240, 220, 0.44);
}

.panel-button {
  position: relative;
  min-width: 188px;
  height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border: 1px solid rgba(255, 244, 226, 0.48);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 234, 199, 0.96), rgba(248, 187, 127, 0.96));
  box-shadow: 0 12px 30px rgba(91, 45, 35, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #593330;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.panel-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 15px 36px rgba(91, 45, 35, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.panel-button:active {
  transform: scale(0.98);
}

.panel-button svg {
  width: 16px;
  height: 16px;
}

.panel-foot {
  position: relative;
  margin: 13px 0 0;
  font-size: 9px;
  color: rgba(255, 240, 220, 0.42);
}

.panel-foot kbd {
  height: 16px;
  min-width: 16px;
  font-size: 8px;
}

.pause-panel {
  width: min(365px, calc(100vw - 40px));
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(80% 70% at 50% 42%, rgba(255, 216, 166, 0.96), rgba(231, 148, 119, 0.98) 58%, rgba(190, 115, 120, 1) 100%);
  color: #5b3838;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-flake {
  position: relative;
  width: 42px;
  height: 42px;
  animation: flake-spin 5s linear infinite;
}

.loading-flake span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 1px;
  background: rgba(91, 50, 50, 0.45);
  transform: translate(-50%, -50%);
}

.loading-flake span:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.loading-flake span:nth-child(3) { transform: translate(-50%, -50%) rotate(-60deg); }

.loading-flake::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff8e8;
  box-shadow: 0 0 12px rgba(255, 248, 230, 0.9);
}

@keyframes flake-spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.loading-track {
  width: 140px;
  height: 2px;
  border-radius: 99px;
  background: rgba(91, 50, 50, 0.15);
  overflow: hidden;
}

.loading-track span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: rgba(91, 50, 50, 0.58);
  animation: loading-slide 1.15s ease-in-out infinite;
}

@keyframes loading-slide {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(305%); }
}

.loading-copy {
  margin: 0;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(91, 50, 50, 0.55);
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 30;
  background: #e7a083;
  color: #4d2c2b;
  text-align: center;
}

@media (max-width: 780px) {
  .hud {
    padding: max(15px, env(safe-area-inset-top)) max(15px, env(safe-area-inset-right)) max(15px, env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    padding: 7px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .brand h1 {
    font-size: 25px;
  }

  .stat-pill {
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .fish-pill svg {
    width: 25px;
    height: 17px;
  }

  .distance-pill {
    min-width: 66px;
    font-size: 16px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }


  .progress-shell {
    width: 55vw;
    margin-top: 15px;
  }

  .progress-copy {
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .title-card {
    top: 27%;
  }

  .title-card h2 {
    font-size: clamp(46px, 13vw, 70px);
  }

  .title-card p,
  .title-sub {
    font-size: 8px;
  }

  .hint-bar {
    display: none;
  }

  .touch-controls {
    display: flex;
  }

  .tuck-state {
    bottom: max(102px, calc(env(safe-area-inset-bottom) + 84px));
  }

  .panel {
    padding: 29px 24px 22px;
    border-radius: 23px;
  }

  .result-grid strong {
    font-size: 23px;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    display: none;
  }

  .brand h1 {
    font-size: 22px;
  }

  .eyebrow {
    display: none;
  }

  .hud-stats {
    gap: 7px;
  }

  .stat-pill {
    height: 34px;
    padding: 0 8px;
    font-size: 12.5px;
  }

  .fish-pill {
    padding-left: 7px;
    padding-right: 10px;
  }

  .fish-pill svg {
    width: 22px;
    height: 15px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .icon-button svg {
    width: 17px;
    height: 17px;
  }

  .distance-pill {
    min-width: 52px;
  }

  .progress-shell {
    width: 62vw;
  }

  .touch-button {
    width: 55px;
    height: 55px;
  }

  .jump-button {
    width: 66px;
    height: 66px;
  }

  .tuck-button {
    width: 60px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain {
    animation: none;
  }

  .title-card {
    animation-duration: 0.01s;
  }

  .loading-flake {
    animation: none;
  }
}
