:root {
  --bg-top: #d8e0d6;
  --bg-bottom: #678176;
  --panel: rgba(246, 241, 229, 0.72);
  --panel-strong: rgba(246, 241, 229, 0.86);
  --panel-edge: rgba(80, 71, 58, 0.12);
  --ink: #1d2c2b;
  --muted: #60706d;
  --accent: #bf7034;
  --accent-deep: #95532f;
  --shadow: 0 18px 45px rgba(15, 35, 34, 0.13);
  --fishing-bg-idle: url("./assets/fishing-first-person-bg.png");
  --fishing-bg-cast: url("./assets/fishing-first-person-cast.png");
  --fishing-bg-reel: url("./assets/fishing-first-person-reel.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 248, 230, 0.7), transparent 34%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.24;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "ZCOOL XiaoWei", serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.panel,
.top-stat {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--panel-edge);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(29, 44, 43, 0.62);
}

.hero-copy,
.scene-desc,
.catch-card p,
.unlock-item small,
.fish-card small,
.fish-meta {
  color: var(--muted);
}

.page-home .app-shell {
  padding-top: 14px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.brand-block h1,
.subpage-header h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
}

.topbar-stats,
.subpage-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
}

.top-stat {
  min-width: 110px;
  padding: 12px 14px;
  border-radius: 16px;
}

.top-stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.top-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.fp-layout,
.collection-layout {
  display: grid;
  gap: 18px;
}

.fp-stage,
.subpage-header,
.subnav,
.collection-layout .panel {
  border-radius: 28px;
  padding: 18px;
}

.scene-copy {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

.scene-copy h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.scene-desc {
  margin: 10px 0 0;
  max-width: 760px;
  line-height: 1.65;
}

.lake-view {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--fishing-bg-idle) center center / cover no-repeat;
}

.first-person {
  height: 66vh;
  min-height: 520px;
  max-height: 820px;
}

.sky-glow {
  position: absolute;
  inset: 7% 18% auto;
  height: 30%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 251, 226, 0.88), transparent 70%);
  animation: haze 7s ease-in-out infinite alternate;
}

.mountain {
  position: absolute;
  bottom: 35%;
  background: linear-gradient(180deg, rgba(73, 100, 103, 0.65), rgba(51, 73, 76, 0.9));
  clip-path: polygon(0% 100%, 14% 57%, 24% 69%, 38% 32%, 51% 61%, 67% 24%, 82% 66%, 100% 100%);
}

.mountain-far {
  left: -2%;
  width: 62%;
  height: 26%;
  opacity: 0.38;
}

.mountain-near {
  right: -6%;
  width: 68%;
  height: 31%;
  opacity: 0.74;
}

.water {
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background:
    linear-gradient(180deg, rgba(133, 178, 181, 0.18), rgba(31, 82, 92, 0.94)),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.11) 0 12px,
      rgba(255, 255, 255, 0.02) 12px 24px
    );
}

.ripples {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 18%;
  height: 14%;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.18), transparent 22%),
    radial-gradient(circle at 62% 45%, rgba(255, 255, 255, 0.14), transparent 19%),
    radial-gradient(circle at 84% 58%, rgba(255, 255, 255, 0.13), transparent 22%);
  animation: drift 11s linear infinite;
}

.horizon-haze {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  height: 10%;
  background:
    linear-gradient(180deg, rgba(255, 244, 217, 0.22), rgba(255, 244, 217, 0)),
    radial-gradient(circle at 50% 40%, rgba(245, 239, 221, 0.2), transparent 60%);
}

.water-path {
  position: absolute;
  left: 34%;
  right: 24%;
  bottom: 0;
  height: 54%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  clip-path: polygon(42% 0%, 58% 0%, 100% 100%, 0% 100%);
  opacity: 0.8;
}

.player-forearm {
  position: absolute;
  right: -2%;
  bottom: -7%;
  width: 290px;
  height: 120px;
  border-radius: 80px;
  background: linear-gradient(135deg, rgba(185, 147, 117, 0.96), rgba(131, 95, 72, 0.98));
  transform-origin: right center;
  box-shadow: 0 18px 30px rgba(29, 17, 11, 0.22);
}

.forearm-back {
  transform: rotate(-24deg);
  opacity: 0.85;
}

.forearm-front {
  right: 4%;
  bottom: -3%;
  width: 250px;
  transform: rotate(-17deg);
}

.player-hand {
  position: absolute;
  right: 17%;
  bottom: 10%;
  width: 118px;
  height: 78px;
  border-radius: 40px;
  background: linear-gradient(135deg, #d8b493, #a06d51);
  transform: rotate(-20deg);
  box-shadow: 0 12px 24px rgba(22, 12, 8, 0.24);
  z-index: 2;
}

.rod-body {
  position: absolute;
  right: 10%;
  bottom: 13.5%;
  width: 430px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2d2119, #805839 46%, #b38858 80%, #f2d1a2 100%);
  transform: rotate(-31deg);
  transform-origin: right center;
  box-shadow: 0 8px 18px rgba(17, 9, 4, 0.24);
  z-index: 2;
}

.reel {
  position: absolute;
  right: 18.6%;
  bottom: 14%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d2b786, #7a563a 62%, #3f2b1f 100%);
  box-shadow: 0 10px 18px rgba(17, 9, 4, 0.2);
  z-index: 2;
}

.reel::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 22px;
  width: 26px;
  height: 7px;
  border-radius: 999px;
  background: #573c2b;
}

.line {
  position: absolute;
  top: 48.5%;
  left: 71.6%;
  width: 2px;
  height: 246px;
  background: linear-gradient(180deg, rgba(74, 66, 59, 0.8), rgba(255, 255, 255, 0.55));
  transform-origin: top center;
  transition: all 420ms ease;
  z-index: 1;
}

.float {
  position: absolute;
  left: 50.5%;
  top: 48.5%;
  width: 18px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff5e2 0 48%, #cf612f 48% 100%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
  transition: all 420ms ease;
  animation: bob 3.2s ease-in-out infinite;
}

.float::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 36px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.splash {
  position: absolute;
  left: calc(46% - 32px);
  top: calc(52% - 8px);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.48);
  animation: splash 880ms ease-out forwards;
}

.hidden {
  display: none;
}

.status-bubble {
  position: absolute;
  top: 18px;
  right: 18px;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(246, 241, 229, 0.84);
  color: #304543;
  font-size: 14px;
  line-height: 1.55;
}

.entry-links {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catch-showcase {
  position: absolute;
  inset: 14% 18% auto;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 18px 20px;
  border-radius: 28px;
  background: rgba(20, 41, 47, 0.46);
  border: 1px solid rgba(255, 249, 233, 0.16);
  backdrop-filter: blur(10px);
  z-index: 3;
}

.showcase-enter {
  animation: showcaseIn 2.4s ease forwards;
}

.showcase-glow {
  position: absolute;
  inset: 10% 22% auto;
  height: 56%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 237, 187, 0.58), transparent 72%);
  pointer-events: none;
}

.showcase-fish {
  position: relative;
  width: 168px;
  height: 88px;
  border-radius: 50px 42px 42px 50px;
  background: linear-gradient(90deg, #c79a5d, #f1d08f);
  box-shadow: 0 20px 30px rgba(5, 13, 18, 0.24);
  transform-origin: center;
}

.showcase-fish::before {
  content: "";
  position: absolute;
  right: -18px;
  top: 24px;
  border-style: solid;
  border-width: 20px 0 20px 30px;
  border-color: transparent transparent transparent #c79a5d;
}

.showcase-fish::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(31, 26, 19, 0.9);
  box-shadow: 64px 4px 0 rgba(255, 255, 255, 0.18);
}

.showcase-fish.rarity-稀有 {
  background: linear-gradient(90deg, #8dbac2, #dff4f2);
}

.showcase-fish.rarity-稀有::before {
  border-color: transparent transparent transparent #8dbac2;
}

.showcase-fish.rarity-传说 {
  background: linear-gradient(90deg, #ddb15c, #fff1a6);
}

.showcase-fish.rarity-传说::before {
  border-color: transparent transparent transparent #ddb15c;
}

.showcase-copy {
  position: relative;
  text-align: center;
  color: #fff8ed;
}

.showcase-copy h3 {
  font-size: clamp(34px, 5vw, 54px);
}

.showcase-copy p:last-child {
  margin: 8px 0 0;
  color: rgba(255, 247, 231, 0.82);
}

.entry-link,
.back-link,
.subnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(246, 241, 229, 0.78);
  border: 1px solid rgba(80, 71, 58, 0.1);
  transition: transform 180ms ease, background 180ms ease;
}

.entry-link:hover,
.back-link:hover,
.subnav a:hover {
  transform: translateY(-1px);
  background: rgba(246, 241, 229, 0.92);
}

.dock-panel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.action-row,
.bottom-menu,
.panel-title,
.subpage-header,
.subnav {
  display: flex;
  gap: 12px;
}

button {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff8ef;
  font-weight: 700;
}

.secondary-button {
  background: rgba(38, 70, 77, 0.1);
  color: #224045;
}

.bottom-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.menu-icon-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(72, 90, 87, 0.12);
  border-radius: 18px;
  background: rgba(255, 251, 240, 0.58);
  color: var(--ink);
  text-align: left;
}

.menu-icon-button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(38, 70, 77, 0.1);
  color: #244247;
  font-size: 24px;
  line-height: 1;
}

.choice-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
}

.choice-sheet.hidden,
.catch-showcase.hidden {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border-radius: 0;
  background: rgba(21, 35, 35, 0.34);
}

.sheet-backdrop:hover {
  transform: none;
}

.sheet-panel {
  position: relative;
  width: min(900px, calc(100vw - 24px));
  max-height: min(72vh, 620px);
  overflow: auto;
  margin: 0 auto 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(247, 241, 229, 0.94);
  border: 1px solid rgba(80, 71, 58, 0.14);
  box-shadow: 0 22px 60px rgba(15, 35, 34, 0.24);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-header h2 {
  font-size: 28px;
}

.sheet-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgba(38, 70, 77, 0.1);
  color: #224045;
  font-size: 28px;
  line-height: 1;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.choice-card {
  display: grid;
  gap: 8px;
  min-height: 158px;
  padding: 14px;
  border: 1px solid rgba(72, 90, 87, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.72);
  color: var(--ink);
  text-align: left;
}

.choice-card.selected {
  border-color: rgba(191, 112, 52, 0.46);
  background: rgba(255, 244, 221, 0.86);
}

.choice-card:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(38, 70, 77, 0.1);
  color: #244247;
  font-size: 24px;
}

.choice-card strong {
  font-size: 17px;
}

.choice-card small {
  color: var(--muted);
  line-height: 1.45;
}

.choice-card em {
  align-self: end;
  color: var(--accent-deep);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.panel-title,
.subpage-header {
  justify-content: space-between;
  align-items: start;
}

.bite-active .ripples {
  animation-duration: 2.2s;
}

.bite-signal {
  animation: biteBob 0.55s ease-in-out infinite;
}

.catch-card,
.unlock-item,
.fish-card,
.anim-card {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 251, 240, 0.58);
  border: 1px solid rgba(92, 83, 69, 0.08);
}

.catch-card h3,
.unlock-item strong,
.fish-card strong {
  display: block;
  margin-bottom: 8px;
}

.catch-card p {
  margin: 0;
  line-height: 1.7;
}

.subpage-header {
  margin-bottom: 16px;
  background: var(--panel-strong);
}

.subnav {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.collection-layout .panel {
  margin-bottom: 18px;
}

.unlock-list,
.fish-grid,
.animation-gallery {
  display: grid;
  gap: 12px;
}

.unlock-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.fish-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.unlock-item.locked {
  opacity: 0.52;
}

.fish-meta {
  margin-top: 6px;
  font-size: 13px;
}

.animation-gallery {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.anim-card span {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.mini-scene {
  position: relative;
  overflow: hidden;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(251, 235, 202, 0.95), rgba(88, 130, 139, 0.95));
}

.mini-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(120, 170, 176, 0.45), rgba(40, 80, 88, 0.95));
}

.mini-rod,
.mini-line-strong {
  position: absolute;
  left: 18px;
  top: 12px;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #4d3224;
  transform-origin: left center;
}

.mini-line,
.mini-hook {
  position: absolute;
  width: 2px;
  background: rgba(255, 255, 255, 0.75);
}

.mini-line {
  left: 60px;
  top: 14px;
  height: 18px;
}

.mini-hook {
  left: 60px;
  top: 30px;
  height: 18px;
}

.mini-hook::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff7e7;
  border-bottom: 2px solid #fff7e7;
  border-radius: 0 0 8px 0;
}

.mini-float {
  position: absolute;
  left: 48%;
  top: 28px;
  width: 12px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4de 0 45%, #c35c31 45% 100%);
}

.mini-ripple {
  position: absolute;
  left: calc(48% - 16px);
  top: 46px;
  width: 44px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.mini-fish {
  position: absolute;
  left: 26px;
  bottom: 10px;
  width: 32px;
  height: 18px;
  border-radius: 14px 10px 10px 14px;
  background: linear-gradient(90deg, #d5a45f, #f4d59a);
}

.mini-fish::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 4px;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #d5a45f;
}

.mini-splash {
  position: absolute;
  right: 24px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.mini-line-strong {
  left: 58px;
  top: 18px;
  width: 34px;
  transform: rotate(24deg);
}

.cast-loop .mini-rod {
  animation: castRod 2.4s ease-in-out infinite;
}

.cast-loop .mini-line,
.cast-loop .mini-hook {
  animation: castLine 2.4s ease-in-out infinite;
}

.wait-loop .mini-float {
  animation: floatWait 2s ease-in-out infinite;
}

.wait-loop .mini-ripple {
  animation: rippleWait 2s ease-out infinite;
}

.catch-loop .mini-fish {
  animation: fishDash 1.7s ease-in-out infinite;
}

.catch-loop .mini-splash {
  animation: miniSplash 1.7s ease-out infinite;
}

.catch-loop .mini-line-strong {
  animation: linePull 1.7s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(6%);
  }
}

@keyframes splash {
  0% {
    transform: scale(0.6);
    opacity: 0.95;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@keyframes haze {
  from {
    transform: scale(0.95);
    opacity: 0.75;
  }
  to {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes castRod {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  35% {
    transform: rotate(28deg);
  }
  70% {
    transform: rotate(2deg);
  }
}

@keyframes castLine {
  0%,
  20%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  45% {
    transform: translate(16px, 10px);
    opacity: 1;
  }
}

@keyframes floatWait {
  0%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(5px);
  }
  70% {
    transform: translateY(-2px);
  }
}

@keyframes rippleWait {
  from {
    transform: scale(0.6);
    opacity: 0.8;
  }
  to {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes fishDash {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(44px, -18px) rotate(-8deg);
  }
}

@keyframes miniSplash {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  35% {
    opacity: 0.95;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes linePull {
  0%,
  100% {
    transform: rotate(24deg) scaleX(1);
  }
  50% {
    transform: rotate(10deg) scaleX(1.2);
  }
}

@keyframes biteBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(13px);
  }
}

@keyframes showcaseIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
  18% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

@media (max-width: 920px) {
  .topbar,
  .scene-copy,
  .subpage-header {
    flex-direction: column;
    align-items: start;
  }

  .topbar-stats,
  .subpage-stats {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .first-person {
    min-height: 460px;
    height: 58vh;
  }

  .rod-body {
    width: 340px;
  }

  .player-forearm {
    width: 220px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100vw - 18px, 1320px);
    padding-bottom: 24px;
  }

  .topbar-stats,
  .subpage-stats {
    grid-template-columns: 1fr;
  }

  .fp-stage,
  .subpage-header,
  .subnav,
  .collection-layout .panel {
    padding: 14px;
    border-radius: 22px;
  }

  .first-person {
    min-height: 400px;
    height: 54vh;
  }

  .status-bubble {
    top: 12px;
    right: 12px;
    max-width: 180px;
  }

  .catch-showcase {
    inset: 19% 10% auto;
  }

  .showcase-fish {
    width: 130px;
    height: 68px;
  }

  .rod-body {
    right: 7%;
    bottom: 16%;
    width: 250px;
  }

  .player-hand {
    right: 13%;
    bottom: 11%;
    width: 92px;
    height: 60px;
  }

  .player-forearm {
    width: 180px;
    height: 88px;
  }

  .bottom-menu {
    grid-template-columns: 1fr;
  }

  .menu-icon-button {
    min-height: 54px;
  }

  .sheet-panel {
    width: calc(100vw - 16px);
    margin-bottom: 8px;
    padding: 14px;
    border-radius: 20px;
  }

  .entry-links {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .entry-link,
  .back-link,
  .subnav a {
    width: 100%;
  }
}

/* Game screen pass: make the first screen feel like a playable scene, not a page. */
.page-home {
  overflow-x: hidden;
  background: #1f4f59;
}

.page-home::before {
  opacity: 0;
}

.page-home .app-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.game-hud {
  position: fixed;
  z-index: 12;
  top: 10px;
  left: 10px;
  margin: 0;
  align-items: center;
  pointer-events: none;
}

.game-hud .topbar-stats {
  pointer-events: auto;
}

.game-hud .top-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(246, 241, 229, 0.76);
  box-shadow: 0 8px 20px rgba(7, 24, 27, 0.14);
}

.game-hud .stat-label {
  color: rgba(29, 44, 43, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.game-hud .top-stat strong {
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.fp-layout {
  min-height: 100vh;
}

.fp-stage {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #183b43;
}

.page-home .lake-view {
  position: fixed;
  inset: 0;
  border-radius: 0;
  background: var(--fishing-bg-idle) center center / cover no-repeat;
}

.page-home .first-person {
  height: 100vh;
  min-height: 100vh;
  max-height: none;
}

.page-home .water {
  height: 58%;
}

.page-home .sky-glow,
.page-home .mountain,
.page-home .water,
.page-home .ripples,
.page-home .horizon-haze,
.page-home .water-path,
.page-home .player-forearm,
.page-home .rod-body,
.page-home .reel,
.page-home .player-hand,
.page-home .line,
.page-home .float {
  display: none;
}

.page-home .lake-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 222, 0.05), rgba(15, 48, 56, 0.08)),
    radial-gradient(circle at 50% 53%, rgba(255, 255, 255, 0.12), transparent 9%);
  pointer-events: none;
}

.action-frame {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transform-origin: 58% 62%;
  will-change: opacity, transform;
}

.action-frame.cast-frame {
  background-image: var(--fishing-bg-cast);
  animation: castFrameOverlay 1.18s cubic-bezier(0.16, 0.82, 0.22, 1) forwards;
}

.action-frame.reel-frame {
  background-image: var(--fishing-bg-reel);
  animation: reelFrameOverlay 0.96s cubic-bezier(0.2, 0.76, 0.22, 1) forwards;
}

.water-motion {
  position: absolute;
  left: 45.5%;
  top: 52.2%;
  width: 120px;
  height: 46px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.water-motion span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 36px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  content: "";
}

.water-motion span:nth-child(1) {
  animation: calmRipple 4.8s ease-out infinite;
}

.water-motion span:nth-child(2) {
  animation: calmRipple 4.8s 1.6s ease-out infinite;
}

.water-motion span:nth-child(3) {
  animation: calmRipple 4.8s 3.2s ease-out infinite;
}

.hooked .water-motion span {
  animation-duration: 0.9s;
}

.escaped .water-motion {
  animation: escapeWaterSnap 0.82s ease-out;
}

.escaped .water-motion span {
  border-color: rgba(255, 255, 255, 0.76);
  animation-duration: 0.58s;
}

.cast-motion .water-motion {
  animation: castWaterKick 1.18s ease-out;
}

.reel-motion .water-motion {
  animation: reelWaterPull 0.96s ease-out;
}

.cast-motion .water-motion span,
.reel-motion .water-motion span {
  border-color: rgba(255, 255, 255, 0.66);
  animation-duration: 1.05s;
}

.ambient-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-bird {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--bird-size, 48px);
  height: calc(var(--bird-size, 48px) * 0.36);
  opacity: 0;
  filter: drop-shadow(0 4px 8px rgba(12, 36, 43, 0.12));
  animation: birdGlide var(--bird-speed, 9s) linear var(--bird-delay, 0s) forwards;
}

.ambient-bird::before,
.ambient-bird::after {
  content: "";
  position: absolute;
  top: 35%;
  width: 54%;
  height: 70%;
  border-top: 3px solid rgba(24, 50, 52, 0.62);
  border-radius: 50% 50% 0 0;
}

.ambient-bird::before {
  left: 2%;
  transform: rotate(-18deg) scaleX(var(--bird-dir, 1));
  transform-origin: right top;
  animation: birdWing var(--wing-speed, 0.92s) ease-in-out infinite;
}

.ambient-bird::after {
  right: 2%;
  transform: rotate(18deg) scaleX(var(--bird-dir, 1));
  transform-origin: left top;
  animation: birdWingMirror var(--wing-speed, 0.92s) ease-in-out infinite;
}

.ambient-fish {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--fish-size, 84px);
  height: calc(var(--fish-size, 84px) * 0.28);
  opacity: 0;
  filter: blur(var(--fish-blur, 0.2px));
  transform: translate3d(var(--fish-x0, -16vw), var(--fish-y0, 72vh), 0) scaleX(var(--fish-dir, 1));
  animation: fishCruise var(--fish-speed, 8s) ease-in-out forwards;
}

.ambient-fish::before {
  content: "";
  position: absolute;
  inset: 12% 18% 8% 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 72% 42%, rgba(255, 255, 255, 0.26) 0 3px, transparent 4px),
    linear-gradient(90deg, rgba(14, 58, 65, 0), rgba(14, 58, 65, 0.34), rgba(12, 44, 49, 0.18));
  filter: blur(0.2px);
}

.ambient-fish::after {
  content: "";
  position: absolute;
  right: 2%;
  top: 22%;
  width: 24%;
  height: 56%;
  clip-path: polygon(0 50%, 100% 0, 74% 50%, 100% 100%);
  background: rgba(12, 44, 49, 0.24);
}

.ambient-fish .fish-wake {
  position: absolute;
  left: 18%;
  right: 24%;
  bottom: -10px;
  height: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  opacity: var(--fish-wake-opacity, 0.6);
}

.page-home .lake-view.bite-active::after {
  content: "";
  position: absolute;
  left: 46%;
  top: 53%;
  width: 92px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: biteRipple 0.72s ease-out infinite;
}

.lake-note {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 116px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(247, 244, 232, 0.94);
  background: rgba(7, 31, 36, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(0, 12, 16, 0.18);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  pointer-events: none;
  transform: translateX(-50%);
}

.lake-note.note-enter {
  animation: lakeNoteFloat 1.8s ease-out forwards;
}

.study-widget {
  position: fixed;
  z-index: 10;
  top: 58px;
  right: 14px;
  width: min(286px, calc(100vw - 28px));
  pointer-events: none;
}

.study-card,
.study-picker,
.study-collapsed {
  pointer-events: auto;
  color: rgba(25, 43, 43, 0.92);
  background: rgba(244, 239, 224, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 36px rgba(4, 22, 27, 0.16);
  backdrop-filter: blur(16px);
}

.study-card {
  padding: 10px;
  border-radius: 14px;
}

.study-picker {
  padding: 12px;
  border-radius: 16px;
}

.study-picker h3 {
  margin: 4px 0 12px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 17px;
}

.study-choice-grid {
  display: grid;
  gap: 8px;
}

.study-choice {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.42);
  color: #224045;
  text-align: left;
}

.study-choice strong {
  font-size: 15px;
}

.study-choice span {
  color: rgba(38, 65, 68, 0.58);
  font-size: 12px;
}

.study-collapsed {
  float: right;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.study-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.study-topline h3 {
  margin: 2px 0 0;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.32;
}

.study-kicker {
  margin: 0;
  color: rgba(29, 44, 43, 0.56);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.study-icon-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 50%;
  background: rgba(21, 68, 75, 0.1);
  color: #244247;
  font-size: 20px;
  line-height: 1;
}

.study-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(34, 76, 78, 0.1);
}

.study-progress span {
  color: #224045;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.study-progress strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 50%;
  background: rgba(34, 76, 78, 0.88);
  color: #fff8ee;
}

.study-progress em {
  color: rgba(38, 65, 68, 0.54);
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.study-nav-button,
.study-next-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.study-body {
  min-height: 104px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
}

.word-phonetic,
.study-answer,
.study-example {
  margin: 0;
}

.word-phonetic {
  color: rgba(38, 65, 68, 0.62);
  font-size: 13px;
}

.study-answer {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 900;
}

.word-meaning {
  color: #224045;
}

.muted-answer {
  color: rgba(38, 65, 68, 0.46);
  font-size: 14px;
  font-weight: 700;
}

.study-example {
  margin-top: 8px;
  color: rgba(38, 65, 68, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.study-options {
  display: grid;
  gap: 6px;
}

.study-option {
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(25, 43, 43, 0.82);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.study-option.correct {
  background: rgba(109, 143, 91, 0.26);
  color: #24452c;
  font-weight: 900;
}

.study-option.wrong {
  background: rgba(174, 85, 70, 0.22);
  color: #67312b;
  font-weight: 900;
}

.study-option:disabled {
  cursor: default;
  opacity: 1;
}

.study-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.study-nav-button {
  background: rgba(255, 255, 255, 0.48);
  color: #244247;
}

.study-next-button {
  background: linear-gradient(180deg, #f0b96a, #bd6636);
  color: #fff8ee;
}

.page-home .status-bubble {
  top: 116px;
  right: 16px;
  max-width: min(320px, calc(100vw - 32px));
  border-radius: 10px;
  background: rgba(246, 241, 229, 0.84);
}

.game-controls {
  position: fixed;
  z-index: 11;
  left: 50%;
  bottom: 18px;
  width: min(980px, calc(100vw - 28px));
  margin: 0;
  padding: 12px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: rgba(11, 37, 42, 0.46);
  border: 1px solid rgba(255, 248, 236, 0.12);
  box-shadow: 0 18px 46px rgba(5, 18, 22, 0.24);
  backdrop-filter: blur(14px);
}

.game-controls .action-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.game-controls button {
  border-radius: 8px;
}

.game-controls .primary-button,
.game-controls .secondary-button {
  min-height: 58px;
  font-size: 20px;
  font-weight: 800;
}

.game-controls .primary-button {
  background: linear-gradient(180deg, #f1b860, #b9552f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 22px rgba(122, 58, 31, 0.24);
}

.game-controls .secondary-button {
  background: linear-gradient(180deg, #eef7f0, #a8c9c5);
  color: #1d4548;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.hooked ~ .game-controls .secondary-button {
  animation: reelPulse 0.82s ease-in-out infinite;
  background: linear-gradient(180deg, #fff1b8, #e49a3d);
  color: #4e2d14;
}

.game-controls .bottom-menu {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.game-controls .menu-icon-button {
  min-height: 54px;
  border-radius: 8px;
  background: rgba(246, 241, 229, 0.82);
}

.game-controls .menu-icon {
  border-radius: 8px;
}

.game-controls .game-log {
  border-radius: 8px;
  background: rgba(246, 241, 229, 0.82);
}

.game-controls .game-log {
  padding: 12px;
}

.game-controls .game-log h3 {
  font-size: 18px;
}

.game-controls .game-log p {
  font-size: 14px;
}

.cast-motion {
  animation: backgroundCast 1.18s cubic-bezier(0.16, 0.82, 0.22, 1);
}

.reel-motion {
  animation: backgroundReel 0.96s cubic-bezier(0.2, 0.76, 0.22, 1);
}

.hooked {
  animation: backgroundHooked 0.62s ease-in-out infinite;
}

.page-home .catch-showcase {
  inset: 16% 50% auto auto;
  width: min(360px, calc(100vw - 32px));
  transform: translateX(50%);
  border-radius: 14px;
}

.page-home .sheet-panel {
  border-radius: 14px;
}

.page-home .choice-card,
.page-home .sheet-close {
  border-radius: 8px;
}

@keyframes reelPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(255, 238, 184, 0);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(255, 238, 184, 0.42);
  }
}

@keyframes calmRipple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  18% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.8);
  }
}

@keyframes castWaterKick {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.35;
  }
  34% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0.88;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes reelWaterPull {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  38% {
    transform: translate(-54%, -52%) scale(1.18, 0.78);
  }
  64% {
    transform: translate(-48%, -47%) scale(0.86, 1.12);
  }
}

@keyframes lakeNoteFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.96);
  }
  16%,
  76% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.98);
  }
}

@keyframes escapeWaterSnap {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  32% {
    transform: translate(-46%, -58%) scale(1.35, 0.72);
    opacity: 0.95;
  }
  66% {
    transform: translate(-55%, -45%) scale(0.82, 1.28);
    opacity: 0.72;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes castFrameOverlay {
  0% {
    opacity: 0;
    transform: scale(1.012) translate(0.5%, 0.7%);
  }
  10%,
  82% {
    opacity: 0.96;
    transform: scale(1.026) translate(-0.9%, -0.8%);
  }
  100% {
    opacity: 0;
    transform: scale(1) translate(0, 0);
  }
}

@keyframes reelFrameOverlay {
  0% {
    opacity: 0;
    transform: scale(1.004) translate(0, 0);
  }
  10%,
  82% {
    opacity: 0.96;
  }
  46% {
    opacity: 0.96;
    transform: scale(1.03) translate(-0.85%, 1.15%);
  }
  100% {
    opacity: 0;
    transform: scale(1) translate(0, 0);
  }
}

@keyframes backgroundCast {
  0% {
    transform: scale(1);
    background-position: center center;
  }
  16% {
    transform: scale(1.018) translate(0.5%, 0.9%);
    background-position: 50.4% 50.8%;
  }
  34% {
    transform: scale(1.026) translate(-0.9%, -0.8%);
    background-position: 49.2% 48.6%;
  }
  64% {
    transform: scale(1.012) translate(-0.35%, -0.2%);
    background-position: 49.8% 49.5%;
  }
  82% {
    transform: scale(1.006) translate(0.15%, 0.2%);
    background-position: 50.2% 50.1%;
  }
  100% {
    transform: scale(1);
    background-position: center center;
  }
}

@keyframes backgroundReel {
  0% {
    transform: scale(1);
    background-position: center center;
  }
  18% {
    transform: scale(1.012) translate(-0.6%, 0.3%);
    background-position: 50.8% 50.2%;
  }
  46% {
    transform: scale(1.034) translate(-1.05%, 1.35%);
    background-position: 51.2% 51.6%;
  }
  72% {
    transform: scale(1.016) translate(0.3%, -0.2%);
    background-position: 50.3% 49.8%;
  }
  100% {
    transform: scale(1);
    background-position: center center;
  }
}

@keyframes backgroundHooked {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.006) translateY(2px);
  }
}

@keyframes biteRipple {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.55);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.65);
  }
}

@keyframes birdGlide {
  0% {
    opacity: 0;
    transform: translate3d(var(--bird-x0, -12vw), var(--bird-y0, 16vh), 0) scaleX(var(--bird-dir, 1)) scale(0.82) rotate(-2deg);
  }
  10% {
    opacity: var(--bird-opacity, 0.58);
  }
  48% {
    opacity: var(--bird-opacity, 0.58);
    transform: translate3d(var(--bird-x1, 50vw), var(--bird-y1, 18vh), 0) scaleX(var(--bird-dir, 1)) scale(0.96) rotate(2deg);
  }
  82% {
    opacity: var(--bird-opacity, 0.58);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--bird-x2, 124vw), var(--bird-y2, 19vh), 0) scaleX(var(--bird-dir, 1)) scale(1.05) rotate(-1deg);
  }
}

@keyframes birdWing {
  0%,
  100% {
    transform: rotate(-18deg) translateY(0);
  }
  50% {
    transform: rotate(8deg) translateY(3px);
  }
}

@keyframes birdWingMirror {
  0%,
  100% {
    transform: rotate(18deg) translateY(0);
  }
  50% {
    transform: rotate(-8deg) translateY(3px);
  }
}

@keyframes fishCruise {
  0% {
    opacity: 0;
    transform: translate3d(var(--fish-x0, -16vw), var(--fish-y0, 72vh), 0) scaleX(var(--fish-dir, 1)) scale(0.86);
  }
  12% {
    opacity: var(--fish-opacity, 0.42);
  }
  54% {
    transform: translate3d(var(--fish-x1, 58vw), calc(var(--fish-y0, 72vh) + var(--fish-y1, -1.4vh)), 0) scaleX(var(--fish-dir, 1)) scale(1);
  }
  88% {
    opacity: var(--fish-opacity, 0.42);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--fish-x2, 122vw), calc(var(--fish-y0, 72vh) + var(--fish-y2, 0.8vh)), 0) scaleX(var(--fish-dir, 1)) scale(0.92);
  }
}

@media (max-width: 760px) {
  .game-hud {
    top: 8px;
    left: 8px;
    gap: 8px;
  }

  .study-widget {
    top: auto;
    right: 8px;
    bottom: 152px;
    width: min(292px, calc(100vw - 16px));
  }

  .lake-note {
    bottom: 138px;
  }

  .study-card {
    padding: 10px;
    border-radius: 14px;
  }

  .study-body {
    min-height: 94px;
  }

  .study-topline h3 {
    font-size: 15px;
  }

  .game-hud .topbar-stats {
    display: flex;
  }

  .game-hud .top-stat {
    min-width: 0;
  }

  .page-home .status-bubble {
    top: 56px;
    left: 8px;
    right: auto;
    max-width: calc(100vw - 16px);
  }

  .game-controls {
    bottom: 8px;
    width: calc(100vw - 16px);
    padding: 8px;
  }

  .game-controls .action-row {
    grid-template-columns: 1fr 1fr;
  }

  .game-controls .primary-button,
  .game-controls .secondary-button {
    min-height: 52px;
    font-size: 18px;
  }

  .game-controls .bottom-menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-controls .menu-icon-button {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 66px;
    padding: 8px 6px;
    text-align: center;
  }

  .game-controls .menu-icon-button span:last-child {
    width: 100%;
    font-size: 12px;
  }

  .game-controls .game-log {
    display: none;
  }
}

/* HUD tightening pass after visual check. */
.game-hud .topbar-stats {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.page-home .status-bubble {
  top: 58px;
  background: rgba(246, 241, 229, 0.72);
}

.game-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px;
  grid-template-areas:
    "menu actions";
  align-items: end;
  gap: 8px 10px;
  width: min(760px, calc(100vw - 28px));
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.game-controls .action-row {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.game-controls .primary-button,
.game-controls .secondary-button {
  min-height: 54px;
  font-size: 18px;
  border-radius: 10px;
}

.game-controls .bottom-menu {
  grid-area: menu;
  gap: 8px;
}

.game-controls .menu-icon-button {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 44px;
  padding: 6px 8px;
  background: rgba(246, 241, 229, 0.74);
  box-shadow: 0 8px 20px rgba(5, 18, 22, 0.12);
}

.game-controls .menu-icon {
  width: 34px;
  height: 34px;
  font-size: 19px;
  background: rgba(21, 68, 75, 0.12);
}

.game-controls .menu-icon-button span:last-child {
  font-size: 13px;
}

.game-controls .game-log {
  display: none;
}

@media (max-width: 760px) {
  .game-hud .topbar-stats {
    display: flex;
  }

  .game-controls {
    grid-template-columns: 1fr;
    grid-template-areas:
      "actions"
      "menu";
    width: calc(100vw - 16px);
  }

  .game-controls .action-row {
    grid-template-columns: 1fr 1fr;
  }
}
