:root {
  --bg: #06110d;
  --bg-2: #0a1e16;
  --ink: #f2efe2;
  --muted: #9cb2a4;
  --muted-2: #718678;
  --gold: #e8c46a;
  --gold-2: #f5dc9b;
  --gold-dark: #a77e32;
  --green: #2f7f4f;
  --green-bright: #6fcb8d;
  --red: #ff7a5c;
  --blue: #67c7ff;
  --line: rgba(240, 236, 218, 0.12);
  --line-strong: rgba(240, 236, 218, 0.2);
  --panel: rgba(12, 28, 21, 0.76);
  --panel-deep: rgba(6, 17, 12, 0.92);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
  --font-sans: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Consolas", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 14% 0%, rgba(29, 74, 53, 0.52), transparent 62%),
    radial-gradient(1000px 760px at 90% 96%, rgba(97, 77, 35, 0.2), transparent 64%),
    linear-gradient(145deg, #07130f 0%, #040c09 52%, #091a12 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.bg-orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.42;
}

.orb-a {
  width: 46vw;
  height: 46vw;
  left: -14vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(55, 138, 91, 0.58), transparent 68%);
}

.orb-b {
  width: 40vw;
  height: 40vw;
  right: -12vw;
  bottom: -16vw;
  background: radial-gradient(circle, rgba(203, 161, 73, 0.3), transparent 68%);
}

.bg-grain {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.55px, transparent 0.55px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

#app {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ------------------------------------------------------------------
   Stage & canvas
   ------------------------------------------------------------------ */
.stage-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(7px, 1.8vh, 24px);
}

.stage {
  position: relative;
  width: min(96vw, calc((100dvh - 42px) * 16 / 9), 1580px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(14px, 1.8vw, 28px);
  background: #07120d;
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(242, 236, 215, 0.11),
    0 0 90px rgba(60, 124, 86, 0.12);
  isolation: isolate;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

/* ------------------------------------------------------------------
   In-game HUD
   ------------------------------------------------------------------ */
.hud {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  font-size: clamp(10px, 0.82vw, 14px);
  user-select: none;
  -webkit-user-select: none;
}

.hud-top {
  position: absolute;
  top: 2.2%;
  left: 2.1%;
  right: 2.1%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hud-group {
  display: flex;
  gap: 9px;
  align-items: stretch;
}

.hud-left {
  align-items: flex-start;
}

.hud-center {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.hud-right {
  gap: 7px;
}

.card {
  background:
    linear-gradient(155deg, rgba(21, 43, 33, 0.82), rgba(6, 17, 12, 0.62));
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

.hole-card {
  min-width: 9.6em;
  padding: 0.78em 1em 0.82em;
}

.eyebrow-small {
  color: var(--muted-2);
  font-size: 0.61em;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.eyebrow-small span {
  color: var(--gold);
}

.hole-title {
  display: flex;
  align-items: baseline;
  gap: 0.32em;
  margin-top: 0.12em;
}

.hole-title h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.18;
}

#holeTotal {
  color: var(--muted-2);
  font-size: 0.76em;
  font-weight: 500;
}

.hole-name {
  margin-top: 0.08em;
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: 0.92em;
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.hole-tags {
  display: flex;
  gap: 0.4em;
  flex-wrap: wrap;
  margin-top: 0.48em;
}

.tag {
  padding: 0.16em 0.62em;
  border: 1px solid rgba(232, 196, 106, 0.22);
  border-radius: 999px;
  background: rgba(232, 196, 106, 0.08);
  color: var(--gold-2);
  font-size: 0.68em;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag-soft {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.stat-card {
  min-width: 11em;
  padding: 0.82em 1em 0.78em;
}

.stat-title {
  color: var(--muted);
  font-size: 0.72em;
  letter-spacing: 0.04em;
}

.stat-title span {
  color: var(--muted-2);
}

.budget-line {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  margin-top: 0.1em;
}

.budget-line strong {
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: 2.15em;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-shadow: 0 0 26px rgba(232, 196, 106, 0.16);
}

.budget-line span {
  color: var(--muted);
  font-size: 0.72em;
}

.meter {
  position: relative;
  height: 4px;
  margin-top: 0.38em;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-2));
  box-shadow: 0 0 12px rgba(232, 196, 106, 0.35);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-caption {
  margin-top: 0.42em;
  color: var(--muted-2);
  font-size: 0.7em;
}

.stat-caption b {
  color: var(--ink);
  font-weight: 600;
}

.duo-card {
  min-width: 13.2em;
  padding: 0.42em;
}

.duo-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.42em 0.6em;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.8em;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.duo-row + .duo-row {
  margin-top: 0.2em;
}

.duo-row.active {
  border-color: rgba(240, 236, 218, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.duo-row.active.p0 {
  border-color: rgba(255, 122, 92, 0.28);
  background: linear-gradient(90deg, rgba(255, 122, 92, 0.14), rgba(255, 122, 92, 0.02));
}

.duo-row.active.p1 {
  border-color: rgba(103, 199, 255, 0.28);
  background: linear-gradient(90deg, rgba(103, 199, 255, 0.14), rgba(103, 199, 255, 0.02));
}

.player-dot {
  width: 0.62em;
  height: 0.62em;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.dot-red {
  background: var(--red);
  color: var(--red);
}

.dot-blue {
  background: var(--blue);
  color: var(--blue);
}

.duo-name {
  min-width: 2.4em;
  font-weight: 600;
}

.duo-score {
  margin-left: auto;
  color: inherit;
  font-size: 0.92em;
}

.duo-score b {
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: 1.35em;
  font-weight: 700;
}

.duo-strokes {
  min-width: 4.4em;
  color: var(--muted-2);
  text-align: right;
  font-size: 0.88em;
}

.duo-strokes b {
  color: var(--ink);
}

.wind-card {
  display: flex;
  align-items: center;
  gap: 0.62em;
  padding: 0.55em 0.82em 0.55em 0.62em;
  border-radius: 999px;
}

.wind-icon {
  display: grid;
  place-items: center;
  width: 2.35em;
  height: 2.35em;
  border: 1px solid rgba(232, 196, 106, 0.18);
  border-radius: 50%;
  background: rgba(232, 196, 106, 0.07);
  color: var(--gold-2);
}

.wind-icon svg {
  width: 1.35em;
  height: 1.35em;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.wind-text {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  padding-right: 0.2em;
}

.wind-text span {
  color: var(--muted-2);
  font-size: 0.62em;
  letter-spacing: 0.05em;
}

.wind-text b {
  color: var(--ink);
  font-size: 0.82em;
  font-weight: 600;
  white-space: nowrap;
}

.turn-card {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.42em 0.85em;
  border-radius: 999px;
}

.turn-text {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
}

.turn-text span {
  color: var(--muted-2);
  font-size: 0.63em;
}

.turn-text b {
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}

.turn-card.p0 .player-dot {
  animation: dotPulseRed 1.8s ease-in-out infinite;
}

.turn-card.p1 .player-dot {
  animation: dotPulseBlue 1.8s ease-in-out infinite;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 21, 15, 0.62);
  color: var(--muted);
  pointer-events: auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(18, 40, 30, 0.8);
  color: var(--ink);
}

.icon-btn svg {
  width: 1.2em;
  height: 1.2em;
}

.icon-btn .icon-muted {
  display: none;
}

.icon-btn.muted .icon-sound {
  display: none;
}

.icon-btn.muted .icon-muted {
  display: block;
  color: var(--red);
}

.hud-bottom {
  position: absolute;
  left: 2.1%;
  right: 2.1%;
  bottom: 2.3%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 0.62em;
  padding: 0.5em 0.88em;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78em;
  white-space: nowrap;
}

.info-distance {
  color: var(--gold-2);
  font-weight: 600;
}

.info-dot {
  width: 2px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: 0.8;
}

.hint-chip {
  padding: 0.52em 0.9em;
  border: 1px solid rgba(240, 236, 218, 0.08);
  border-radius: 999px;
  background: rgba(4, 12, 8, 0.36);
  color: var(--muted-2);
  font-size: 0.7em;
  letter-spacing: 0.01em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hint-key {
  display: inline-block;
  padding: 0.12em 0.46em;
  border: 1px solid rgba(240, 236, 218, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.94em;
}

.hint-sep {
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin: 0 0.5em;
  vertical-align: -0.08em;
  background: rgba(240, 236, 218, 0.12);
}

.power-panel {
  position: absolute;
  left: 50%;
  bottom: 3.2%;
  width: min(280px, 31%);
  padding: 0.72em 0.95em 0.68em;
  border: 1px solid rgba(240, 236, 218, 0.15);
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(17, 38, 28, 0.92), rgba(5, 15, 10, 0.88));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.power-panel.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.power-head,
.power-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.power-head span {
  color: var(--muted);
  font-size: 0.72em;
  letter-spacing: 0.08em;
}

.power-head b {
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: 1.12em;
}

.power-track {
  position: relative;
  height: 8px;
  margin: 0.45em 0 0.5em;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.power-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fcb8d 0%, #e8c46a 55%, #ff7a5c 100%);
  box-shadow: 0 0 16px rgba(232, 196, 106, 0.38);
}

.power-ticks {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(20% - 1px),
    rgba(4, 10, 7, 0.42) calc(20% - 1px),
    rgba(4, 10, 7, 0.42) 20%
  );
  pointer-events: none;
}

.power-foot {
  color: var(--muted-2);
  font-size: 0.67em;
}

.power-foot span:last-child {
  color: var(--gold);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 14.5%;
  padding: 0.55em 1.05em;
  border: 1px solid rgba(240, 236, 218, 0.15);
  border-radius: 999px;
  background: rgba(6, 18, 12, 0.9);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font-size: 0.82em;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

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

.toast.warn {
  border-color: rgba(255, 122, 92, 0.32);
  color: #ffd5ca;
}

.toast.good {
  border-color: rgba(232, 196, 106, 0.32);
  color: var(--gold-2);
}

.banner {
  position: absolute;
  left: 50%;
  top: 42%;
  min-width: 17em;
  padding: 1.15em 2.2em 1.2em;
  border: 1px solid rgba(240, 236, 218, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(140% 180% at 50% 0%, rgba(38, 76, 55, 0.92), rgba(5, 16, 10, 0.94));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
  pointer-events: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 8;
}

.banner.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.banner-kicker {
  color: var(--gold);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.banner h3 {
  margin: 0.15em 0 0.1em;
  font-family: var(--font-serif);
  font-size: 1.95em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78em;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9em;
  width: 100%;
  min-height: 3.35em;
  padding: 0.9em 1.3em;
  border: 1px solid rgba(255, 242, 204, 0.35);
  border-radius: 15px;
  background:
    linear-gradient(180deg, #f2d98d 0%, #e4bd5e 48%, #cda044 100%);
  box-shadow:
    0 14px 34px rgba(166, 121, 38, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(92, 61, 13, 0.22);
  color: #182114;
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 19px 42px rgba(166, 121, 38, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -2px 0 rgba(92, 61, 13, 0.22);
}

.primary-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn-arrow {
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.primary-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.ghost-btn {
  min-height: 3em;
  padding: 0.75em 1.15em;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 0.88em;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 236, 218, 0.3);
  background: rgba(255, 255, 255, 0.075);
}

.text-btn {
  padding: 0.6em 1em;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82em;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.text-btn:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------------
   Menu
   ------------------------------------------------------------------ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 44px);
}

.menu-overlay {
  background:
    radial-gradient(1000px 720px at 24% 34%, rgba(17, 50, 35, 0.54), transparent 65%),
    linear-gradient(120deg, rgba(4, 12, 8, 0.8) 0%, rgba(4, 11, 8, 0.9) 48%, rgba(5, 14, 10, 0.84) 100%);
  backdrop-filter: blur(4px) saturate(0.9);
  -webkit-backdrop-filter: blur(4px) saturate(0.9);
  overflow-y: auto;
}

.menu-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(580px 380px at 76% 34%, rgba(232, 196, 106, 0.1), transparent 72%),
    linear-gradient(90deg, transparent 0%, transparent 60%, rgba(232, 196, 106, 0.035) 100%);
}

.menu-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.88fr);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
  width: min(1280px, 100%);
  margin: auto;
}

.menu-brand {
  padding-left: clamp(0px, 2vw, 30px);
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-kicker {
  display: flex;
  align-items: center;
  gap: 0.8em;
  color: var(--gold);
  font-size: clamp(9px, 0.68vw, 11px);
  font-weight: 700;
  letter-spacing: 0.26em;
  opacity: 0.9;
}

.brand-kicker span {
  display: inline-block;
  width: 2.8em;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.menu-brand h1 {
  margin: 0.1em 0 0;
  font-family: var(--font-serif);
  font-size: clamp(66px, 8.6vw, 138px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.menu-brand h1 span {
  display: inline-block;
  margin-left: 0.08em;
  background: linear-gradient(170deg, #fff0bd 0%, var(--gold) 48%, #b98b39 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  filter: drop-shadow(0 10px 24px rgba(165, 118, 35, 0.2));
}

.tagline {
  max-width: 33em;
  margin: 1.25em 0 0;
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 17px);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.015em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  max-width: 660px;
  margin-top: clamp(28px, 4.2vh, 56px);
}

.feature {
  padding-top: 0.85em;
  border-top: 1px solid rgba(240, 236, 218, 0.14);
}

.feature b {
  display: block;
  margin-bottom: 0.4em;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.feature span {
  display: block;
  color: var(--ink);
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.feature small {
  display: block;
  margin-top: 0.4em;
  color: var(--muted-2);
  font-size: clamp(9px, 0.68vw, 11px);
  line-height: 1.6;
}

.menu-sign {
  margin-top: clamp(30px, 6vh, 70px);
  color: rgba(156, 178, 164, 0.42);
  font-size: clamp(8px, 0.62vw, 10px);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.menu-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 2.8vw, 42px);
  border: 1px solid rgba(240, 236, 218, 0.14);
  border-radius: clamp(22px, 2vw, 30px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(69, 101, 69, 0.18), transparent 60%),
    linear-gradient(155deg, rgba(19, 40, 30, 0.92), rgba(6, 17, 12, 0.9));
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(26px) saturate(1.12);
  -webkit-backdrop-filter: blur(26px) saturate(1.12);
  animation: riseIn 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 196, 106, 0.5), transparent);
}

.menu-card-head {
  margin-bottom: clamp(20px, 3vh, 30px);
}

.card-kicker {
  color: var(--gold);
  font-size: 0.64em;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.menu-card-head h2 {
  margin: 0.18em 0 0.12em;
  font-family: var(--font-serif);
  font-size: clamp(30px, 2.4vw, 38px);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.menu-card-head p {
  margin: 0;
  color: var(--muted-2);
  font-size: clamp(11px, 0.8vw, 13px);
  line-height: 1.6;
}

.field {
  margin-top: clamp(18px, 2.6vh, 26px);
}

.field > label {
  display: block;
  margin-bottom: 0.65em;
  color: var(--muted);
  font-size: clamp(10px, 0.72vw, 12px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.36em;
  padding: clamp(12px, 1.2vw, 17px);
  border: 1px solid rgba(240, 236, 218, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--ink);
  text-align: left;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.mode-card:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 236, 218, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.mode-card.active {
  border-color: rgba(232, 196, 106, 0.56);
  background:
    linear-gradient(150deg, rgba(232, 196, 106, 0.13), rgba(232, 196, 106, 0.035));
  box-shadow:
    inset 0 0 0 1px rgba(232, 196, 106, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.16);
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  color: var(--muted);
  transition: color 0.22s ease;
}

.mode-icon svg {
  width: 100%;
  height: 100%;
}

.mode-card.active .mode-icon {
  color: var(--gold-2);
}

.mode-card b {
  font-size: clamp(13px, 0.96vw, 15px);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.mode-card small {
  color: var(--muted-2);
  font-size: clamp(9px, 0.68vw, 11px);
  line-height: 1.55;
}

.mode-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--gold);
  color: #192114;
  font-size: 0.68em;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mode-card.active .mode-check {
  opacity: 1;
  transform: scale(1);
}

.seed-row {
  display: flex;
  gap: 8px;
}

#seedInput {
  flex: 1;
  min-width: 0;
  height: 3em;
  padding: 0 0.9em;
  border: 1px solid rgba(240, 236, 218, 0.13);
  border-radius: 12px;
  background: rgba(2, 10, 6, 0.38);
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#seedInput:hover {
  border-color: rgba(240, 236, 218, 0.24);
}

#seedInput:focus {
  border-color: rgba(232, 196, 106, 0.65);
  background: rgba(2, 10, 6, 0.56);
  box-shadow: 0 0 0 3px rgba(232, 196, 106, 0.1);
  outline: none;
}

.seed-btn {
  height: 3em;
  padding: 0 1em;
  border: 1px solid rgba(240, 236, 218, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: clamp(10px, 0.75vw, 12px);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.seed-btn span {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 1.1em;
  transition: transform 0.35s ease;
}

.seed-btn:hover {
  border-color: rgba(232, 196, 106, 0.3);
  background: rgba(232, 196, 106, 0.08);
  color: var(--gold-2);
}

.seed-btn:hover span {
  transform: rotate(120deg);
}

.seed-hint {
  min-height: 1.2em;
  margin: 0.7em 0 0;
  color: var(--muted-2);
  font-size: clamp(9px, 0.7vw, 11px);
  letter-spacing: 0.01em;
}

.menu-card .primary-btn {
  margin-top: clamp(22px, 3.2vh, 34px);
  font-size: clamp(13px, 0.94vw, 15px);
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8em 1.2em;
  margin-top: 1.35em;
  color: var(--muted-2);
  font-size: clamp(8px, 0.64vw, 10px);
}

.menu-foot kbd {
  display: inline-block;
  min-width: 1.5em;
  margin-right: 0.28em;
  padding: 0.1em 0.35em;
  border: 1px solid rgba(240, 236, 218, 0.13);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.95em;
  text-align: center;
}

.menu-version {
  position: absolute;
  right: clamp(20px, 2.6vw, 40px);
  bottom: clamp(14px, 2.2vh, 26px);
  color: rgba(156, 178, 164, 0.35);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  pointer-events: none;
}

/* ------------------------------------------------------------------
   Pause / end overlays
   ------------------------------------------------------------------ */
.pause-overlay,
.end-overlay {
  z-index: 70;
  background:
    radial-gradient(760px 520px at 50% 44%, rgba(21, 54, 36, 0.34), transparent 70%),
    rgba(3, 10, 7, 0.66);
  backdrop-filter: blur(10px) saturate(0.9);
  -webkit-backdrop-filter: blur(10px) saturate(0.9);
  overflow-y: auto;
}

.overlay-card {
  position: relative;
  width: min(570px, 100%);
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid rgba(240, 236, 218, 0.15);
  border-radius: clamp(22px, 2.4vw, 30px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(72, 102, 70, 0.16), transparent 58%),
    linear-gradient(155deg, rgba(18, 39, 29, 0.96), rgba(5, 15, 10, 0.96));
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: riseIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.overlay-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 196, 106, 0.46), transparent);
}

.overlay-card h2 {
  margin: 0.16em 0 0.12em;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.overlay-sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 0.84vw, 14px);
  line-height: 1.8;
}

.pause-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  margin-top: 26px;
}

.pause-actions .primary-btn {
  width: 100%;
}

.pause-actions .ghost-btn {
  width: 100%;
}

.pause-actions .text-btn {
  align-self: center;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid rgba(240, 236, 218, 0.1);
}

.controls-grid > div {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.7em 0;
  border-bottom: 1px solid rgba(240, 236, 218, 0.07);
  color: var(--muted-2);
  font-size: clamp(10px, 0.7vw, 12px);
}

.controls-grid > div:nth-child(odd) {
  padding-right: 1em;
}

.controls-grid > div:nth-child(even) {
  padding-left: 1em;
  border-left: 1px solid rgba(240, 236, 218, 0.07);
}

.controls-grid kbd {
  display: inline-block;
  min-width: 2.6em;
  padding: 0.22em 0.45em;
  border: 1px solid rgba(240, 236, 218, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.92em;
  text-align: center;
  white-space: nowrap;
}

.end-overlay {
  z-index: 80;
}

.end-card {
  width: min(820px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 196, 106, 0.35) transparent;
}

.end-card::-webkit-scrollbar {
  width: 8px;
}

.end-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(232, 196, 106, 0.3);
}

.end-card::-webkit-scrollbar-track {
  background: transparent;
}

.end-summary {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-top: clamp(22px, 2.6vw, 30px);
}

.grade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 0.65em 1.1em;
  border: 1px solid rgba(232, 196, 106, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(232, 196, 106, 0.17), rgba(232, 196, 106, 0.03) 70%);
}

.grade b {
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 34px rgba(232, 196, 106, 0.2);
}

.grade span {
  margin-top: 0.35em;
  color: var(--muted-2);
  font-size: 0.62em;
  letter-spacing: 0.18em;
}

.grade.is-duo b {
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: 0.02em;
}

.end-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  padding: 0.9em 1.1em;
  border: 1px solid rgba(240, 236, 218, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.028);
}

.end-stat span {
  color: var(--muted-2);
  font-size: 0.68em;
  letter-spacing: 0.06em;
}

.end-stat b {
  margin-top: 0.22em;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.1;
}

.end-stat b.accent {
  color: var(--gold-2);
}

.scorecard-wrap {
  max-height: 230px;
  margin-top: 20px;
  overflow: auto;
  border: 1px solid rgba(240, 236, 218, 0.1);
  border-radius: 15px;
  background: rgba(2, 10, 6, 0.28);
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 196, 106, 0.35) transparent;
}

.scorecard-wrap::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.scorecard-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(232, 196, 106, 0.3);
}

.scorecard {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(10px, 0.72vw, 12px);
  white-space: nowrap;
}

.scorecard th,
.scorecard td {
  padding: 0.64em 0.8em;
  border-bottom: 1px solid rgba(240, 236, 218, 0.07);
  text-align: center;
}

.scorecard th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #10251b;
  color: var(--muted-2);
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.scorecard td {
  color: var(--muted);
}

.scorecard td:first-child,
.scorecard th:first-child {
  text-align: left;
  padding-left: 1.2em;
}

.scorecard td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.scorecard td .score-muted {
  color: var(--muted-2);
}

.scorecard tr.ot td {
  background: rgba(232, 196, 106, 0.06);
}

.scorecard tr.ot td:first-child {
  color: var(--gold-2);
}

.scorecard tfoot td {
  border-bottom: 0;
  border-top: 1px solid rgba(240, 236, 218, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-weight: 600;
}

.scorecard .win-chip {
  display: inline-block;
  min-width: 2.2em;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-size: 0.92em;
  font-weight: 700;
}

.scorecard .win-red {
  background: rgba(255, 122, 92, 0.15);
  color: #ffb4a3;
}

.scorecard .win-blue {
  background: rgba(103, 199, 255, 0.15);
  color: #a8e0ff;
}

.scorecard .win-draw {
  background: rgba(240, 236, 218, 0.07);
  color: var(--muted);
}

.scorecard .under {
  color: var(--gold-2);
}

.scorecard .over {
  color: var(--muted-2);
}

.end-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 22px;
}

.end-actions .primary-btn {
  flex: 1.35;
}

.end-actions .ghost-btn {
  flex: 1;
}

.seed-line {
  margin: 1.4em 0 0;
  color: var(--muted-2);
  font-size: clamp(9px, 0.66vw, 11px);
  text-align: center;
  letter-spacing: 0.02em;
}

.seed-line b {
  color: var(--gold-2);
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
}

/* ------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------ */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dotPulseRed {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 122, 92, 0.5); }
  50% { box-shadow: 0 0 18px rgba(255, 122, 92, 0.95); }
}

@keyframes dotPulseBlue {
  0%, 100% { box-shadow: 0 0 8px rgba(103, 199, 255, 0.5); }
  50% { box-shadow: 0 0 18px rgba(103, 199, 255, 0.95); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .menu-inner {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.9fr);
    gap: 36px;
  }

  .menu-brand h1 {
    font-size: clamp(62px, 8.2vw, 104px);
  }

  .feature-grid {
    gap: 16px;
  }

  .hud {
    font-size: clamp(9px, 0.86vw, 12px);
  }

  .hole-card {
    min-width: 9em;
  }

  .stat-card {
    min-width: 10em;
  }
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  .menu-overlay {
    align-items: flex-start;
    padding-top: clamp(26px, 6vh, 60px);
    padding-bottom: 44px;
  }

  .menu-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(560px, 100%);
  }

  .menu-brand {
    padding-left: 0;
    text-align: left;
  }

  .menu-brand h1 {
    font-size: clamp(56px, 12vw, 92px);
  }

  .tagline {
    margin-top: 0.9em;
    font-size: 13px;
    line-height: 1.8;
  }

  .feature-grid {
    display: none;
  }

  .menu-sign {
    display: none;
  }

  .menu-card {
    padding: clamp(20px, 5vw, 32px);
  }

  .menu-version {
    position: static;
    margin-top: 26px;
    text-align: center;
  }

  .hud {
    font-size: 10px;
  }

  .hint-chip {
    display: none;
  }

  .hud-bottom {
    justify-content: flex-start;
  }

  .end-card {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .stage-wrap {
    padding: 4px;
  }

  .stage {
    width: min(100vw, calc((100dvh - 8px) * 16 / 9));
    border-radius: 12px;
  }

  .hud {
    font-size: 8.4px;
  }

  .hud-top {
    top: 1.4%;
    left: 1.4%;
    right: 1.4%;
    gap: 6px;
  }

  .hud-group {
    gap: 5px;
  }

  .hole-card {
    min-width: 0;
    padding: 0.6em 0.75em;
  }

  .hole-name,
  .hole-tags {
    display: none;
  }

  .hole-title h2 {
    font-size: 1.35em;
  }

  .stat-card {
    min-width: 6.1em;
    padding: 0.62em 0.75em;
  }

  .stat-title {
    font-size: 0.62em;
  }

  .budget-line strong {
    font-size: 1.8em;
  }

  .stat-caption {
    font-size: 0.58em;
  }

  .duo-card {
    min-width: 10.3em;
    padding: 0.24em;
  }

  .duo-row {
    padding: 0.3em 0.42em;
    font-size: 0.7em;
  }

  .wind-card {
    gap: 0.32em;
    padding: 0.34em 0.5em 0.34em 0.38em;
  }

  .wind-icon {
    width: 1.9em;
    height: 1.9em;
  }

  .wind-text span {
    display: none;
  }

  .wind-text b {
    font-size: 0.68em;
  }

  .turn-card {
    padding: 0.3em 0.55em;
  }

  .turn-text span {
    display: none;
  }

  .turn-text b {
    font-size: 0.68em;
  }

  .icon-btn {
    width: 2.25em;
    height: 2.25em;
  }

  .info-chip {
    font-size: 0.7em;
    padding: 0.42em 0.65em;
  }

  .hud-bottom {
    left: 1.4%;
    right: 1.4%;
    bottom: 1.6%;
  }

  .power-panel {
    width: min(230px, 52%);
    bottom: 2.5%;
    padding: 0.55em 0.7em;
  }

  .banner {
    min-width: 13em;
    padding: 0.85em 1.2em 0.95em;
    border-radius: 16px;
  }

  .banner h3 {
    font-size: 1.55em;
  }

  .banner p {
    font-size: 0.7em;
  }

  .toast {
    bottom: 13%;
    font-size: 0.74em;
  }

  .menu-overlay {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.7em;
    row-gap: 0.15em;
  }

  .mode-icon {
    grid-row: span 2;
    width: 1.9em;
    height: 1.9em;
  }

  .mode-check {
    top: 8px;
    right: 8px;
  }

  .menu-foot {
    gap: 0.55em 0.8em;
  }

  .overlay {
    padding: 10px;
  }

  .overlay-card {
    padding: 23px 18px;
    border-radius: 20px;
  }

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

  .controls-grid > div:nth-child(odd),
  .controls-grid > div:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .end-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .grade {
    grid-column: 1 / -1;
    min-height: 74px;
    flex-direction: row;
    gap: 0.35em;
  }

  .grade span {
    margin-top: 0;
  }

  .end-stat {
    min-height: 70px;
    padding: 0.7em;
  }

  .end-stat b {
    font-size: 22px;
  }

  .end-actions {
    flex-direction: column;
  }

  .scorecard th,
  .scorecard td {
    padding: 0.55em 0.6em;
  }
}

@media (max-height: 640px) and (min-width: 901px) {
  .menu-brand h1 {
    font-size: clamp(58px, 7.6vw, 100px);
  }

  .feature-grid {
    margin-top: 24px;
  }

  .menu-sign {
    margin-top: 26px;
  }

  .menu-card {
    padding: 24px 30px;
  }

  .menu-card-head {
    margin-bottom: 18px;
  }

  .field {
    margin-top: 16px;
  }
}

/* 窄屏 + 矮屏：主菜单在首屏内放得下，结算页顶部不被裁掉 */
@media (max-width: 900px) and (max-height: 720px) {
  .menu-overlay {
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .menu-inner {
    gap: 14px;
  }

  .brand-kicker {
    font-size: 8px;
  }

  .menu-brand h1 {
    font-size: clamp(44px, 9.4vh, 64px);
  }

  .tagline {
    display: none;
  }

  .menu-card {
    padding: 18px 22px;
    border-radius: 20px;
  }

  .menu-card-head {
    margin-bottom: 11px;
  }

  .menu-card-head h2 {
    font-size: 28px;
  }

  .menu-card-head p {
    font-size: 11px;
    line-height: 1.45;
  }

  .field {
    margin-top: 12px;
  }

  .field > label {
    margin-bottom: 0.45em;
  }

  .mode-card {
    gap: 0.2em;
    padding: 9px 11px;
  }

  .mode-icon {
    width: 1.65em;
    height: 1.65em;
  }

  .mode-card small {
    font-size: 9px;
    line-height: 1.4;
  }

  .seed-row {
    gap: 6px;
  }

  #seedInput,
  .seed-btn {
    height: 2.6em;
  }

  .seed-hint {
    margin-top: 0.45em;
  }

  .menu-card .primary-btn {
    height: 2.9em;
    margin-top: 14px;
  }

  .menu-foot {
    gap: 0.4em 0.9em;
    margin-top: 10px;
  }

  .menu-version {
    display: none;
  }

  .end-overlay {
    align-items: flex-start;
    padding: 8px 10px;
  }

  .end-card {
    padding: 18px 22px;
    border-radius: 20px;
  }

  .end-card h2 {
    font-size: 30px;
  }

  .end-card .overlay-sub {
    font-size: 12px;
    line-height: 1.6;
  }

  .end-summary {
    gap: 8px;
    margin-top: 12px;
  }

  .grade {
    min-width: 88px;
    border-radius: 14px;
  }

  .grade b {
    font-size: 42px;
  }

  .grade.is-duo b {
    font-size: 30px;
  }

  .end-stat {
    min-height: 68px;
    padding: 0.6em 0.75em;
    border-radius: 13px;
  }

  .end-stat b {
    font-size: 26px;
  }

  .scorecard-wrap {
    max-height: clamp(110px, 20vh, 150px);
    margin-top: 12px;
  }

  .end-actions {
    margin-top: 12px;
  }

  .seed-line {
    margin-top: 8px;
  }
}

