html, body {
  margin: 0;
  height: 100%;
  width: 100%;
  background: #3a7d44;
  overflow: hidden;
  font-family: sans-serif;
  touch-action: none;
  overscroll-behavior: none;
  color: #fff;
}
canvas {
  display: block;
  background: #4caf50;
  touch-action: none;
}
#hint {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
  font-size: 13px;
  opacity: 0.75;
  text-align: center;
  line-height: 1.4;
  padding: 6px 0;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  z-index: 10;
}

.hidden { display: none !important; }

.screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 159, 67, 0.15), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(102, 85, 255, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(62, 20, 18, 0.88), rgba(7, 8, 15, 0.97));
  backdrop-filter: blur(7px);
}

.menu-card {
  width: min(92vw, 520px);
  max-height: 92vh;
  overflow: auto;
  box-sizing: border-box;
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
  border: 2px solid rgba(245, 201, 69, 0.48);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(48, 19, 18, 0.97), rgba(18, 8, 10, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255,255,255,0.08);
}

.menu-card.menu-hero {
  width: min(94vw, 720px);
  padding: clamp(24px, 4.5vw, 42px);
  border-color: rgba(255, 210, 86, 0.56);
  background:
    linear-gradient(145deg, rgba(58, 24, 22, 0.98), rgba(15, 13, 24, 0.99)),
    radial-gradient(circle at top right, rgba(255, 198, 77, 0.12), transparent 40%);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.66), inset 0 1px rgba(255,255,255,0.1);
}
.menu-brand { position: relative; }
.chain-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 214, 90, 0.3);
  border-radius: 999px;
  background: rgba(255, 210, 74, 0.08);
  color: #ffe68d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #78eb8b;
  box-shadow: 0 0 12px rgba(120, 235, 139, 0.8);
}
.menu-card.menu-hero h1 { margin-bottom: 10px; }
.menu-card.menu-hero h1 span { color: #fff4c2; }
.menu-lead { max-width: 580px; margin: 0 auto 22px; font-size: clamp(14px, 2.5vw, 17px); }
.menu-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}
.menu-features div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 13px;
  background: rgba(255,255,255,0.045);
}
.menu-features strong { color: #ffd84a; font-size: 18px; }
.menu-features span { color: #adb4c6; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.wallet-gate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(255, 180, 91, 0.32);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(115, 49, 35, 0.34), rgba(30, 29, 48, 0.72));
  text-align: left;
  transition: border-color .2s ease, background .2s ease;
}
.wallet-gate[data-state="connected"] { border-color: rgba(108, 235, 139, 0.52); background: linear-gradient(110deg, rgba(31, 101, 53, 0.32), rgba(25, 32, 45, 0.74)); }
.wallet-gate[data-state="working"] { border-color: rgba(113, 160, 255, 0.52); }
.wallet-gate[data-state="error"] { border-color: rgba(255, 112, 93, 0.62); }
.wallet-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #f4cd4a, #f08b3e);
  color: #28150d;
  font: 900 25px/1 sans-serif;
  box-shadow: 0 7px 20px rgba(240, 139, 62, 0.22);
}
.wallet-gate[data-state="connected"] .wallet-emblem { background: linear-gradient(145deg, #85ef98, #34ae62); }
.wallet-gate-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.wallet-kicker { color: #ffb170; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.wallet-gate[data-state="connected"] .wallet-kicker { color: #8cf09d; }
.wallet-gate-copy strong { overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-gate-copy > span:last-child { overflow: hidden; color: #aeb6c8; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-button {
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 11px;
  background: #f4cf4e;
  color: #281c0b;
  font: 900 12px/1 sans-serif;
  cursor: pointer;
}
.wallet-gate[data-state="connected"] .wallet-button { background: #344154; color: #fff; }
.menu-actions { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(120px, .8fr); gap: 10px; }
.menu-actions .primary-button, .menu-actions .secondary-button { margin-top: 0; }
.wallet-gate-notice { margin: 12px auto 0 !important; color: #8f98aa !important; font-size: 11px; }
.controls-panel { margin-top: 13px; color: #aeb5be; font-size: 12px; }
.controls-panel summary { cursor: pointer; font-weight: 800; }
.controls-panel .controls-copy { margin-top: 9px; }

.wallet-chooser-overlay { z-index: 70; background: rgba(5, 5, 11, .86); backdrop-filter: blur(12px); }
.wallet-chooser-card { width: min(460px, calc(100vw - 28px)); padding: 24px; text-align: left; }
.wallet-chooser-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.wallet-chooser-header h2 { margin: 2px 0 0; font-size: clamp(24px, 5vw, 34px); }
.wallet-chooser-close {
  width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; font: 500 26px/1 sans-serif; cursor: pointer;
}
.wallet-chooser-copy, .wallet-chooser-note { color: #aeb6c8; }
.wallet-chooser-copy { margin: 14px 0; font-size: 13px; }
.wallet-chooser-note { margin: 13px 0 0; font-size: 11px; }
.wallet-chooser-list { display: grid; gap: 9px; }
.wallet-choice-button {
  display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px;
  width: 100%; min-height: 62px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; background: linear-gradient(120deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  color: #fff; text-align: left; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.wallet-choice-button:hover, .wallet-choice-button:focus-visible { transform: translateY(-1px); border-color: rgba(255,190,90,.62); background: rgba(255,177,72,.11); }
.wallet-choice-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: #22150d; font: 900 18px/1 sans-serif; overflow: hidden; }
.wallet-choice-icon img { width: 100%; height: 100%; object-fit: cover; }
.wallet-choice-name { font-weight: 900; }
.wallet-choice-arrow { color: #ffca69; font-size: 20px; }

.menu-card.compact { width: min(90vw, 420px); }
.menu-card h1, .menu-card h2 { margin: 0 0 14px; line-height: 1; text-transform: uppercase; }
.menu-card h1 { font-size: clamp(38px, 9vw, 68px); color: #ffd84a; text-shadow: 0 4px 0 #7d2b1d; }
.menu-card h2 { font-size: clamp(30px, 7vw, 46px); color: #ffd84a; }
.menu-card p { line-height: 1.5; color: #d9dce1; }
.eyebrow { margin: 0 0 10px !important; color: #ff9a5a !important; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.record { color: #ffe98a !important; font-weight: 700; }
.controls-copy { margin: 20px 0 0; color: #aeb5be !important; font-size: 13px; }

.primary-button, .secondary-button, .danger-button, .icon-button, #dashButton {
  border: 0;
  border-radius: 12px;
  color: #fff;
  font: 800 15px/1 sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.primary-button, .secondary-button, .danger-button { display: block; width: 100%; min-height: 48px; margin-top: 12px; padding: 12px 18px; }
.primary-button { background: linear-gradient(#48b958, #277b34); box-shadow: 0 4px 0 #164b20; }
.secondary-button { background: linear-gradient(#515b68, #343b45); box-shadow: 0 4px 0 #20252c; }
.danger-button { background: linear-gradient(#c65242, #8e3027); box-shadow: 0 4px 0 #561a16; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
button:active { transform: translateY(2px); box-shadow: none; }
button:disabled { cursor: not-allowed; filter: grayscale(.4); opacity: .48; transform: none; box-shadow: none; }

.icon-button {
  position: fixed;
  z-index: 25;
  top: max(64px, calc(env(safe-area-inset-top) + 52px));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  background: rgba(20, 22, 26, 0.82);
  border: 1px solid rgba(255,255,255,0.22);
}

#touchControls { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.joystick {
  position: absolute;
  left: max(22px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.34);
  background: rgba(20,22,26,0.38);
  box-shadow: inset 0 0 28px rgba(0,0,0,0.35);
  pointer-events: auto;
  touch-action: none;
}
#joystickKnob {
  position: absolute;
  left: 50%; top: 50%;
  width: 54px; height: 54px;
  margin: -27px;
  border-radius: 50%;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 4px 16px rgba(0,0,0,0.42);
  transform: translate(0, 0);
}
#dashButton {
  position: absolute;
  right: max(25px, env(safe-area-inset-right));
  bottom: max(100px, calc(env(safe-area-inset-bottom) + 90px));
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(180, 56, 37, 0.82);
  border: 2px solid rgba(255,220,160,0.72);
  pointer-events: auto;
  touch-action: none;
}

@media (pointer: coarse), (max-width: 760px) {
  #hint { display: none; }
  .icon-button { top: max(62px, calc(env(safe-area-inset-top) + 52px)); right: max(8px, env(safe-area-inset-right)); }
}

@media (max-width: 620px) {
  .menu-card.menu-hero { padding: 20px; }
  .chain-pill { margin-bottom: 12px; }
  .menu-lead { margin-bottom: 15px; }
  .wallet-gate { grid-template-columns: auto minmax(0, 1fr); gap: 11px; }
  .wallet-button { grid-column: 1 / -1; width: 100%; }
  .wallet-gate-copy strong, .wallet-gate-copy > span:last-child { white-space: normal; }
  .menu-actions { grid-template-columns: 1fr; }
}

@media (max-height: 540px) {
  .menu-card { padding: 18px 28px; }
  .menu-card h1 { font-size: 38px; }
  .controls-copy { margin-top: 10px; }
  .menu-card.menu-hero { padding: 16px 22px; }
  .chain-pill, .menu-features, .menu-lead, .wallet-gate-notice, .controls-panel { display: none; }
  .wallet-gate { margin-bottom: 10px; }
}

/* Game-native landing screen ------------------------------------------------ */
.landing-overlay {
  --landing-ink: #f8f3e9;
  --landing-muted: #b9b1a4;
  --landing-gold: #ffd34e;
  --landing-orange: #ff7a38;
  --landing-green: #74e28b;
  --landing-night: #0c0b12;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  background:
    radial-gradient(circle at 78% 34%, rgba(255, 112, 42, .18), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(93, 223, 129, .09), transparent 25%),
    linear-gradient(118deg, rgba(12, 10, 17, .98), rgba(31, 12, 15, .96) 52%, rgba(10, 10, 16, .99));
  color: var(--landing-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  touch-action: pan-y;
  backdrop-filter: none;
}

.landing-overlay::before,
.landing-overlay::after {
  position: fixed;
  content: "";
  pointer-events: none;
}

.landing-overlay::before {
  inset: 0;
  opacity: .38;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.landing-overlay::after {
  top: -18vw;
  right: -12vw;
  width: 48vw;
  height: 48vw;
  border: 1px solid rgba(255, 208, 87, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 6vw rgba(255, 159, 69, .018), 0 0 0 12vw rgba(255, 159, 69, .012);
}

.landing-embers {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-embers::before,
.landing-embers::after {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: #ffb03b;
  box-shadow:
    8vw 78vh #ff7a38, 18vw 44vh #ffd34e, 31vw 89vh #ff7a38,
    48vw 72vh #ffd34e, 63vw 92vh #ff7a38, 78vw 64vh #ffd34e,
    91vw 86vh #ff7a38, 96vw 39vh #ffd34e;
  animation: emberRise 10s linear infinite;
}

.landing-embers::after {
  animation-delay: -5s;
  animation-duration: 13s;
  opacity: .55;
  transform: translateX(5vw);
}

.landing-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1440px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  box-sizing: border-box;
  padding: max(22px, env(safe-area-inset-top)) clamp(22px, 5vw, 78px) max(18px, env(safe-area-inset-bottom));
}

.landing-header,
.landing-header-actions,
.landing-logo,
.landing-footer,
.landing-controls {
  display: flex;
  align-items: center;
}

.landing-header {
  position: relative;
  z-index: 5;
  justify-content: space-between;
  min-height: 54px;
  gap: 20px;
}

.landing-logo {
  gap: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.landing-logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  transform: rotate(-5deg);
  border: 1px solid rgba(255, 226, 120, .7);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffd84f, #ef7a2f);
  box-shadow: 0 7px 0 #8a321e, 0 16px 30px rgba(0,0,0,.25);
  color: #29130d;
  font-size: 13px;
  letter-spacing: -.03em;
}

.landing-header-actions { gap: 10px; }
.landing-header .chain-pill { margin: 0; background: rgba(12, 12, 19, .62); }

.sound-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: #e9e1d6;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.landing-main {
  display: grid;
  grid-template-columns: minmax(390px, .88fr) minmax(430px, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 86px);
  padding: clamp(28px, 4vh, 58px) 0 24px;
}

.landing-copy {
  position: relative;
  z-index: 4;
  max-width: 650px;
}

.landing-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: #d6cdc1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.landing-kicker span {
  padding: 7px 10px;
  border-radius: 7px;
  background: #ff7437;
  color: #21100c;
  box-shadow: 0 4px 18px rgba(255, 94, 33, .24);
}

.landing-copy h1 {
  margin: 0;
  color: #fff8e9;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(72px, 8.2vw, 126px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .73;
  text-transform: uppercase;
  text-shadow: 0 7px 0 #6f241d, 0 15px 45px rgba(0,0,0,.52);
}

.landing-copy h1 span {
  color: var(--landing-gold);
  -webkit-text-stroke: 1px rgba(255,255,255,.18);
}

.landing-copy .menu-lead {
  max-width: 610px;
  margin: 27px 0 24px;
  color: var(--landing-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.58;
}

.landing-copy .menu-features {
  display: flex;
  gap: 0;
  margin: 0 0 22px;
}

.landing-copy .menu-features div {
  min-width: 92px;
  padding: 5px 22px 5px 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.landing-copy .menu-features div + div {
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,.13);
}

.landing-copy .menu-features strong {
  color: #fff4ce;
  font-size: 22px;
  letter-spacing: -.02em;
}

.landing-copy .menu-features span {
  margin-top: 2px;
  color: #8f897f;
  font-size: 10px;
}

.landing-copy .wallet-gate {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-color: rgba(255, 169, 81, .34);
  border-radius: 18px;
  background: rgba(18, 16, 24, .82);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 14px 40px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}

.landing-copy .wallet-gate::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--landing-orange);
}

.landing-copy .wallet-gate[data-state="connected"]::before { background: var(--landing-green); }
.landing-copy .wallet-emblem { border-radius: 50%; }
.landing-copy .wallet-button { min-height: 44px; padding-inline: 17px; border-radius: 12px; }

.landing-copy .menu-actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.landing-play-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  margin: 0;
  padding: 0 22px;
  border: 1px solid rgba(255, 245, 201, .28);
  border-radius: 16px;
  background: linear-gradient(105deg, #ffb42e, #ff6838);
  box-shadow: 0 6px 0 #8d2e20, 0 17px 38px rgba(255, 84, 35, .22);
  color: #24110d;
  font-size: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.landing-play-button::after {
  content: "→";
  font-size: 24px;
  transition: transform .2s ease;
}

.landing-play-button:not(:disabled):hover::after { transform: translateX(6px); }
.landing-play-button:not(:disabled):hover { filter: saturate(1.12) brightness(1.05); }
.landing-play-button:disabled { background: linear-gradient(105deg, #50483e, #352f31); color: #a59c90; }

.landing-copy .wallet-gate-notice {
  margin: 8px 4px 0 !important;
  color: #878076 !important;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.landing-stage {
  --pointer-x: 0;
  --pointer-y: 0;
  position: relative;
  width: 100%;
  min-height: 490px;
  aspect-ratio: 1.07 / 1;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 218, 117, .27);
  border-radius: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 211, 76, .18) 0 4%, transparent 24%),
    radial-gradient(circle at 54% 50%, #6aa448 0 18%, #3a672f 19% 40%, transparent 41%),
    linear-gradient(145deg, #24151c 0 38%, #120f18 70%);
  box-shadow:
    0 44px 90px rgba(0,0,0,.48),
    inset 0 1px rgba(255,255,255,.12),
    inset 0 -45px 90px rgba(0,0,0,.34);
  cursor: crosshair;
  user-select: none;
  touch-action: manipulation;
  transform: perspective(1200px) rotateY(calc(var(--pointer-x) * 1.1deg)) rotateX(calc(var(--pointer-y) * -1deg));
  transition: transform .16s ease-out, border-color .2s ease;
}

.landing-stage:hover { border-color: rgba(255, 218, 117, .5); }

.stage-grid {
  position: absolute;
  z-index: 0;
  inset: 36% -18% -28%;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(480px) rotateX(58deg) translateY(calc(var(--pointer-y) * 8px));
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 76%, transparent);
}

.stage-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 232, 132, .24);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 204, 68, .025), 0 0 90px rgba(255, 119, 54, .18);
  transform: translate(-50%, -44%);
  animation: stagePulse 4s ease-in-out infinite;
}

.stage-label {
  position: absolute;
  z-index: 5;
  top: 25px;
  left: 27px;
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  border-left: 2px solid var(--landing-orange);
  text-transform: uppercase;
}

.stage-label span,
.stage-callout span {
  color: #b5aa9f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}

.stage-label strong { margin-top: 2px; font-size: 18px; letter-spacing: .03em; }

.landing-duck-orbit {
  position: absolute;
  z-index: 4;
  left: 16%;
  top: 19%;
  width: 68%;
  height: 62%;
  animation: duckPatrol 7s ease-in-out infinite;
  pointer-events: none;
}

.landing-duck {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(390px, 90%);
  max-width: none;
  filter: drop-shadow(0 20px 18px rgba(0,0,0,.48)) drop-shadow(0 0 18px rgba(255, 217, 79, .16));
  transform: translate(calc(-50% + var(--pointer-x) * 15px), calc(-50% + var(--pointer-y) * 11px)) rotate(calc(var(--pointer-x) * 3deg));
  transition: transform .14s ease-out, filter .2s ease;
}

.landing-duck-shadow {
  position: absolute;
  left: 50%;
  top: 74%;
  width: 38%;
  height: 12%;
  border-radius: 50%;
  background: rgba(8, 7, 10, .56);
  filter: blur(9px);
  transform: translateX(-50%);
}

.landing-enemy,
.landing-weapon {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.landing-enemy {
  z-index: 2;
  width: 42%;
  opacity: .68;
  filter: saturate(.72) brightness(.68) drop-shadow(0 18px 17px rgba(0,0,0,.46));
}

.landing-enemy-one {
  right: -13%;
  top: 11%;
  transform: translate(calc(var(--pointer-x) * -16px), calc(var(--pointer-y) * -10px)) rotate(-7deg);
  animation: enemyHover 4.5s ease-in-out infinite;
}

.landing-enemy-two {
  left: -18%;
  bottom: -10%;
  transform: translate(calc(var(--pointer-x) * -10px), calc(var(--pointer-y) * -7px)) rotate(9deg);
  animation: enemyHover 5.2s -2s ease-in-out infinite reverse;
}

.landing-weapon {
  z-index: 5;
  width: 26%;
  filter: drop-shadow(0 13px 15px rgba(0,0,0,.5));
}

.landing-weapon-one {
  right: 2%;
  bottom: 13%;
  transform: translate(calc(var(--pointer-x) * 20px), calc(var(--pointer-y) * 14px)) rotate(-15deg);
  animation: weaponFloat 3.6s ease-in-out infinite;
}

.landing-weapon-two {
  left: 3%;
  top: 21%;
  transform: translate(calc(var(--pointer-x) * 18px), calc(var(--pointer-y) * 12px)) rotate(13deg);
  animation: weaponFloat 4.1s -1.4s ease-in-out infinite reverse;
}

.stage-callout {
  position: absolute;
  z-index: 6;
  display: flex;
  min-width: 95px;
  flex-direction: column;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: rgba(14, 13, 19, .78);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.stage-callout strong { color: #fff4cb; font-size: 14px; }
.stage-callout-left { left: 7%; bottom: 15%; }
.stage-callout-right { right: 7%; top: 21%; }

.stage-interaction-hint {
  position: absolute;
  z-index: 7;
  right: 25px;
  bottom: 18px;
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

.landing-stage.is-dashing .landing-duck-orbit { animation: landingDash .58s cubic-bezier(.2,.8,.2,1); }
.landing-stage.is-dashing .landing-duck { filter: drop-shadow(-28px 4px 0 rgba(255,255,255,.12)) drop-shadow(-54px 7px 0 rgba(255,178,58,.08)); }

.stage-spark {
  --spark-angle: 0deg;
  position: absolute;
  z-index: 9;
  width: 8px;
  height: 3px;
  border-radius: 99px;
  background: #ffe47c;
  box-shadow: 0 0 9px #ff8c38;
  pointer-events: none;
  animation: sparkBurst .54s ease-out forwards;
}

.landing-footer {
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #918a80;
}

.landing-footer .record {
  margin: 0;
  color: #c9b98d !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.landing-controls { justify-content: center; gap: 18px; }
.landing-controls span { font-size: 12px; font-weight: 700; }
.landing-controls kbd {
  display: inline-flex;
  min-width: 30px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,.15);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: rgba(255,255,255,.055);
  color: #e7ddd0;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.landing-footer .controls-panel { margin: 0; }
.landing-footer .controls-panel summary { color: #c5bbaa; font-size: 12px; }
.landing-footer .controls-copy {
  position: absolute;
  right: clamp(22px, 5vw, 78px);
  bottom: 66px;
  max-width: 430px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(12, 11, 17, .96);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

@keyframes duckPatrol {
  0%, 100% { transform: translate(-3%, 2%) rotate(-1deg); }
  25% { transform: translate(5%, -5%) rotate(2deg); }
  52% { transform: translate(-1%, -1%) rotate(-2deg); }
  76% { transform: translate(-7%, 5%) rotate(1deg); }
}

@keyframes landingDash {
  0% { transform: translate(-4%, 2%) scale(1); }
  38% { transform: translate(17%, -8%) scale(.93, 1.08); }
  58% { transform: translate(21%, -9%) scale(1.05, .94); }
  100% { transform: translate(-3%, 2%) scale(1); }
}

@keyframes stagePulse {
  0%, 100% { opacity: .58; transform: translate(-50%, -44%) scale(.96); }
  50% { opacity: 1; transform: translate(-50%, -44%) scale(1.04); }
}

@keyframes enemyHover {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

@keyframes weaponFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -13px; }
}

@keyframes emberRise {
  from { transform: translateY(18vh); opacity: 0; }
  15% { opacity: .8; }
  to { transform: translateY(-90vh); opacity: 0; }
}

@keyframes sparkBurst {
  from { opacity: 1; transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(4px); }
  to { opacity: 0; transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(62px) scaleX(.35); }
}

@media (max-width: 1000px) {
  .landing-main { grid-template-columns: minmax(350px, .95fr) minmax(360px, 1.05fr); gap: 24px; }
  .landing-copy h1 { font-size: clamp(68px, 9vw, 96px); }
  .landing-stage { min-height: 430px; }
}

@media (max-width: 820px) {
  .landing-shell { display: block; min-height: 100svh; }
  .landing-main { grid-template-columns: 1fr; padding-top: 34px; }
  .landing-copy { max-width: 680px; margin: 0 auto; }
  .landing-copy h1 { font-size: clamp(68px, 14vw, 108px); }
  .landing-stage { max-width: 680px; min-height: 420px; margin: 22px auto 26px; aspect-ratio: 1.25 / 1; }
  .landing-footer { padding: 15px 0; }
}

@media (max-width: 620px) {
  .landing-shell { padding-inline: 16px; }
  .landing-logo > span:last-child { display: none; }
  .landing-header .chain-pill { padding-inline: 9px; font-size: 9px; }
  .landing-header-actions { gap: 6px; }
  .sound-button { padding-inline: 10px; font-size: 11px; }
  .landing-main { padding-top: 26px; }
  .landing-kicker { gap: 8px; font-size: 11px; }
  .landing-copy h1 { font-size: clamp(61px, 20vw, 88px); line-height: .76; }
  .landing-copy .menu-lead { margin: 22px 0 18px; font-size: 16px; }
  .landing-copy .menu-features { display: flex; }
  .landing-copy .menu-features div { min-width: 0; flex: 1; padding-right: 10px; }
  .landing-copy .menu-features div + div { padding-left: 12px; }
  .landing-copy .menu-features strong { font-size: 18px; }
  .landing-copy .wallet-gate { grid-template-columns: auto minmax(0, 1fr); }
  .landing-copy .wallet-button { grid-column: 1 / -1; width: 100%; }
  .landing-play-button { min-height: 58px; }
  .landing-stage { min-height: 330px; border-radius: 28px; }
  .stage-label { top: 18px; left: 19px; }
  .landing-enemy { width: 46%; }
  .landing-duck { width: min(350px, 100%); }
  .stage-callout { padding: 8px 9px; min-width: 78px; }
  .stage-callout-right { right: 4%; top: 18%; }
  .stage-callout-left { left: 4%; bottom: 14%; }
  .stage-interaction-hint { right: 16px; bottom: 12px; font-size: 9px; }
  .landing-footer { justify-content: space-between; }
  .landing-controls span:not(.touch-control-copy) { display: none; }
  .touch-control-copy { display: inline-flex; align-items: center; }
}

@media (min-width: 621px) {
  .touch-control-copy { display: none; }
}

@media (max-height: 700px) and (min-width: 821px) {
  .landing-shell { padding-top: 15px; padding-bottom: 10px; }
  .landing-header { min-height: 44px; }
  .landing-main { padding: 14px 0 12px; }
  .landing-copy h1 { font-size: clamp(60px, 8vw, 92px); }
  .landing-copy .menu-lead { margin: 18px 0 14px; font-size: 15px; }
  .landing-copy .menu-features { margin-bottom: 13px; }
  .landing-stage { min-height: 390px; max-height: 510px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .landing-overlay .chain-pill,
  .landing-overlay .menu-lead,
  .landing-overlay .menu-features,
  .landing-overlay .wallet-gate-notice { display: none; }
  .landing-shell { display: grid; padding: 10px 22px; }
  .landing-header { min-height: 40px; }
  .landing-main { grid-template-columns: minmax(330px, .95fr) minmax(340px, 1.05fr); gap: 18px; padding: 7px 0; }
  .landing-copy h1 { font-size: clamp(52px, 8vw, 76px); }
  .landing-kicker { margin-bottom: 10px; }
  .landing-copy .wallet-gate { margin-top: 18px; }
  .landing-stage { min-height: 0; height: calc(100vh - 112px); margin: 0; }
  .landing-footer { min-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-embers::before,
  .landing-embers::after,
  .stage-glow,
  .landing-duck-orbit,
  .landing-enemy,
  .landing-weapon { animation: none !important; }
  .landing-stage { transform: none !important; transition: none; }
}

/* Sunny meadow visual direction -------------------------------------------- */
.landing-overlay {
  --landing-ink: #123f2d;
  --landing-muted: #35644f;
  --landing-gold: #ffd84a;
  --landing-orange: #f59a2f;
  --landing-green: #20aa59;
  --landing-night: #123f2d;
  color-scheme: light;
  background:
    linear-gradient(90deg, rgba(244, 255, 239, .96) 0%, rgba(244, 255, 239, .89) 31%, rgba(240, 255, 235, .52) 49%, rgba(255,255,255,.04) 72%),
    linear-gradient(180deg, rgba(70, 191, 236, .08), rgba(47, 166, 81, .12)),
    url("../sprites_web/landing-meadow.webp") center center / cover no-repeat;
  color: var(--landing-ink);
}

.landing-overlay::before {
  opacity: .18;
  background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, transparent 0 58%, #000 86%, transparent);
}

.landing-overlay::after,
.landing-embers { display: none; }

.landing-logo { color: #104a31; text-shadow: 0 1px rgba(255,255,255,.85); }

.landing-logo-mark {
  transform: rotate(-4deg);
  border-color: rgba(255,255,255,.82);
  background: linear-gradient(145deg, #fff36a, #f7bd28);
  box-shadow: 0 6px 0 #1b8d4b, 0 13px 24px rgba(30, 126, 69, .22);
  color: #155537;
}

.landing-header .chain-pill {
  border-color: rgba(18, 113, 64, .18);
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 22px rgba(25, 111, 66, .11);
  color: #176d42;
  backdrop-filter: blur(12px);
}

.chain-dot {
  background: #24c96b;
  box-shadow: 0 0 12px rgba(36, 201, 107, .75);
}

.sound-button {
  border-color: rgba(18, 113, 64, .16);
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 22px rgba(25, 111, 66, .1);
  color: #17643e;
  backdrop-filter: blur(12px);
}

.landing-kicker { color: #2b6b46; text-shadow: 0 1px rgba(255,255,255,.7); }

.landing-kicker span {
  background: #27b860;
  box-shadow: 0 5px 18px rgba(30, 159, 80, .22);
  color: #fff;
}

.landing-copy h1 {
  color: #17663f;
  text-shadow: 0 6px 0 #fff7b1, 0 12px 35px rgba(20, 97, 57, .2);
}

.landing-copy h1 span {
  color: #ffcb32;
  -webkit-text-stroke: 1px rgba(117, 84, 0, .12);
}

.landing-copy .menu-lead {
  color: #315d49;
  text-shadow: 0 1px rgba(255,255,255,.75);
}

.landing-copy .menu-features div { border-color: transparent; }
.landing-copy .menu-features div + div { border-left-color: rgba(19, 99, 58, .18); }
.landing-copy .menu-features strong { color: #155f3a; }
.landing-copy .menu-features span { color: #4b795f; }

.landing-copy .wallet-gate,
.landing-copy .wallet-gate[data-state="working"] {
  border-color: rgba(26, 130, 72, .2);
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 40px rgba(28, 111, 68, .15), inset 0 1px rgba(255,255,255,.9);
}

.landing-copy .wallet-gate[data-state="connected"] {
  border-color: rgba(29, 175, 84, .42);
  background: rgba(239, 255, 238, .93);
}

.landing-copy .wallet-gate[data-state="error"] {
  border-color: rgba(205, 104, 43, .38);
  background: rgba(255, 249, 232, .93);
}

.landing-copy .wallet-gate::before { background: #f4b32b; }
.landing-copy .wallet-gate[data-state="connected"]::before { background: #24b65e; }

.landing-copy .wallet-emblem {
  background: linear-gradient(145deg, #ffed65, #f5b92a);
  box-shadow: 0 8px 18px rgba(190, 129, 16, .18);
  color: #235d38;
}

.landing-copy .wallet-gate[data-state="connected"] .wallet-emblem {
  background: linear-gradient(145deg, #88ef9c, #2bbf66);
  color: #0b4629;
}

.landing-copy .wallet-kicker,
.landing-copy .wallet-gate[data-state="connected"] .wallet-kicker { color: #27834f; }
.landing-copy .wallet-gate-copy strong { color: #174a31; }
.landing-copy .wallet-gate-copy > span:last-child { color: #557261; }

.landing-copy .wallet-button,
.landing-copy .wallet-gate[data-state="connected"] .wallet-button {
  background: #176a41;
  box-shadow: 0 4px 0 #0d482b;
  color: #fff;
}

.landing-play-button {
  border-color: rgba(255,255,255,.58);
  background: linear-gradient(105deg, #3ecb6e, #169b50);
  box-shadow: 0 6px 0 #0b6a36, 0 17px 34px rgba(20, 145, 72, .24);
  color: #fff;
}

.landing-play-button:disabled {
  border-color: rgba(19, 94, 54, .12);
  background: linear-gradient(105deg, #b6cdbb, #8eac96);
  box-shadow: 0 5px 0 #6f8f77;
  color: #f6fff7;
}

.landing-copy .wallet-gate-notice {
  color: #48735c !important;
  text-shadow: 0 1px rgba(255,255,255,.75);
}

.landing-stage {
  min-height: 500px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  cursor: pointer;
}

.landing-stage:hover { border-color: transparent; }
.stage-grid { display: none; }

.stage-glow {
  top: 51%;
  width: 68%;
  border-color: rgba(255,255,255,.48);
  background: radial-gradient(circle, rgba(255, 244, 126, .36), rgba(255,255,255,.11) 45%, transparent 69%);
  box-shadow: 0 0 0 22px rgba(255,255,255,.055), 0 22px 60px rgba(49, 145, 71, .14);
}

.stage-label {
  top: 34px;
  left: 38px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 106, 65, .13);
  border-left: 4px solid #29b85f;
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 10px 25px rgba(25, 111, 66, .12);
  backdrop-filter: blur(9px);
}

.stage-label span,
.stage-callout span { color: #4d765f; }
.stage-label strong,
.stage-callout strong { color: #145d39; }

.landing-duck {
  width: min(440px, 94%);
  filter: drop-shadow(0 24px 16px rgba(40, 111, 45, .25)) drop-shadow(0 0 12px rgba(255,255,255,.58));
}

.landing-duck-shadow {
  background: rgba(37, 114, 48, .23);
  filter: blur(11px);
}

.landing-enemy {
  width: 31%;
  opacity: .72;
  filter: saturate(.86) brightness(.92) drop-shadow(0 17px 16px rgba(38, 105, 46, .18));
}

.landing-enemy-one { right: -1%; top: 20%; }
.landing-enemy-two { left: -2%; bottom: 3%; }

.landing-weapon {
  width: 24%;
  filter: drop-shadow(0 12px 13px rgba(28, 104, 50, .22));
}

.stage-callout {
  border-color: rgba(23, 106, 65, .13);
  background: rgba(255,255,255,.84);
  box-shadow: 0 12px 28px rgba(24, 107, 61, .13);
}

.stage-interaction-hint {
  color: rgba(18, 90, 53, .7);
  text-shadow: 0 1px rgba(255,255,255,.8);
}

.landing-stage.is-dashing .landing-duck {
  filter: drop-shadow(-28px 4px 0 rgba(255,255,255,.28)) drop-shadow(-54px 7px 0 rgba(54, 190, 98, .16));
}

.stage-spark {
  background: #fff16a;
  box-shadow: 0 0 9px #48d276;
}

.landing-stage .landing-duck-orbit {
  left: 11%;
  top: 7%;
  width: 78%;
  height: 68%;
}

.landing-stage .landing-duck-shadow {
  top: 79%;
  width: 52%;
  height: 10%;
}

.landing-stage .stage-interaction-hint {
  right: 5%;
  bottom: 22px;
}

body.landing-active #duck-crypto {
  display: none !important;
}

.landing-copy .wallet-gate {
  grid-template-columns: auto minmax(0, 1fr);
}

.landing-footer {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(21, 103, 61, .12);
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 9px 24px rgba(25, 111, 66, .09);
  color: #47725a;
  backdrop-filter: blur(10px);
}

.landing-footer .record { color: #286a47 !important; }
.landing-controls kbd {
  border-color: rgba(21, 103, 61, .18);
  background: rgba(255,255,255,.75);
  color: #185f3b;
}
.landing-footer .controls-panel summary { color: #315f49; }
.landing-footer .controls-copy {
  border-color: rgba(21, 103, 61, .14);
  background: rgba(250,255,247,.96);
  color: #315f49 !important;
}

@media (max-width: 820px) {
  .landing-overlay {
    background:
      linear-gradient(180deg, rgba(234, 250, 255, .48), rgba(238, 255, 232, .58)),
      url("../sprites_web/landing-meadow.webp") 62% center / cover no-repeat;
  }
  .landing-copy {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 28px;
    background: rgba(248, 255, 244, .76);
    box-shadow: 0 22px 50px rgba(27, 116, 67, .13);
    backdrop-filter: blur(11px);
  }
  .landing-stage { min-height: 420px; overflow: hidden; border-radius: 30px; background: rgba(255,255,255,.12); }
  .landing-stage .landing-duck-orbit { top: 5%; height: 65%; }
}

@media (max-width: 620px) {
  .landing-copy { padding: 20px 16px; }
  .landing-stage { min-height: 340px; }
  .stage-label { top: 16px; left: 16px; }
  .landing-stage .landing-duck-orbit { left: 13%; top: 4%; width: 74%; height: 64%; }
  .landing-duck { width: min(330px, 98%); }
  .landing-stage .stage-interaction-hint { right: 14px; bottom: 18px; }
  .landing-footer { padding: 8px 11px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .landing-copy { padding: 12px 16px; }
  .landing-stage { height: calc(100vh - 112px); min-height: 0; overflow: hidden; border-radius: 28px; }
}

/* Game-logo wordmark: crisp HTML text with arcade depth at every resolution. */
.landing-copy .game-logo {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 5px;
  color: inherit;
  filter: drop-shadow(0 18px 22px rgba(13, 92, 48, .18));
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(58px, 7.1vw, 104px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .7;
  text-align: left;
  text-shadow: none;
  transform: rotate(-2deg);
  animation: gameLogoFloat 4.6s ease-in-out infinite;
}

.landing-copy .game-logo-duck,
.landing-copy .game-logo-survivors {
  display: block;
  width: max-content;
  max-width: 100%;
  paint-order: stroke fill;
  text-transform: uppercase;
}

.landing-copy .game-logo-duck {
  position: relative;
  z-index: 2;
  margin-left: .16em;
  color: #ffd633 !important;
  font-size: .62em;
  letter-spacing: .025em;
  text-shadow:
    0 .07em 0 #eba629,
    0 .13em 0 #208e50,
    0 .19em .2em rgba(12, 100, 51, .22);
  transform: rotate(-3deg) translateY(.06em);
  -webkit-text-fill-color: #ffd633;
  -webkit-text-stroke: 3px #fffdf0;
}

.landing-copy .game-logo-survivors {
  position: relative;
  z-index: 1;
  color: #25b85d !important;
  text-shadow:
    0 .055em 0 #138747,
    0 .11em 0 #086437,
    0 .18em .23em rgba(7, 91, 45, .28);
  transform: skewX(-5deg);
  -webkit-text-fill-color: #25b85d;
  -webkit-text-stroke: 4px #f9fff2;
}

.landing-copy .game-logo::after {
  position: absolute;
  right: .02em;
  bottom: -.24em;
  width: 76%;
  height: .065em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffd43b 18% 82%, transparent);
  box-shadow: 0 4px 0 rgba(22, 130, 69, .25);
  content: "";
  transform: rotate(1deg);
}

@keyframes gameLogoFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(-1.3deg); }
}

@media (max-width: 820px) {
  .landing-copy .game-logo { font-size: clamp(58px, 13vw, 88px); }
}

@media (max-width: 620px) {
  .landing-copy .game-logo { font-size: clamp(50px, 16vw, 76px); }
  .landing-copy .game-logo-duck { -webkit-text-stroke-width: 2px; }
  .landing-copy .game-logo-survivors { -webkit-text-stroke-width: 3px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .landing-copy .game-logo { font-size: clamp(44px, 10vh, 68px); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-copy .game-logo { animation: none; }
}
/* Client-only launch: editorial spacing over the original meadow artwork. */
.brand-name { font-size: 13px; letter-spacing: .12em; font-weight: 900; color: #17482d; }
.landing-copy .landing-kicker { color: #275b3b; font-size: 11px; letter-spacing: .18em; }
.landing-copy .menu-lead { color: #284e38; line-height: 1.6; max-width: 420px; font-size: clamp(16px, 1.6vw, 20px); }
.landing-copy .menu-actions { margin-top: 25px; }
.landing-play-button { display: flex; align-items: center; justify-content: space-between; max-width: 360px; border-radius: 16px; font-size: 21px; box-shadow: 0 6px 0 #975c11, 0 16px 28px #694d2425; }
.landing-play-button::after { display: none; }
.play-note { color: #365e42; font-size: 12px; margin: 18px 0 28px; }
.launch-features { display: flex; gap: 24px; border-top: 1px solid #2e64352b; padding-top: 22px; }
.launch-features div { display: grid; gap: 7px; }
.launch-features strong { color: #204b30; font-size: 19px; }
.launch-features span { color: #44684e; font-size: 11px; }
.optional-wallet-status { max-width: 420px; min-height: 32px; color: #42674b; font-size: 11px; line-height: 1.5; margin-top: 23px; }
.arena-badge { position: absolute; right: 16%; bottom: 12%; color: #32573a; font-size: 10px; font-weight: 800; letter-spacing: .22em; border: 1px solid #487a3c40; padding: 12px 18px; border-radius: 100px; background: #ffffff8c; }
#connectWalletButton { max-width: 230px; overflow-wrap: anywhere; }
button:focus-visible, a:focus-visible { outline: 3px solid #225e99; outline-offset: 5px; }
.landing-overlay { touch-action: pan-y; }
@media (max-width: 600px) {
  .landing-header { gap: 10px; }
  .landing-header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .landing-copy .landing-kicker { font-size: 9px; }
  .launch-features { gap: 16px; }
  .launch-features strong { font-size: 16px; }
  .landing-play-button { max-width: none; }
  .arena-badge { right: 8%; bottom: 8%; }
  .landing-controls span:not(.touch-control-copy) { display: inline-flex; }
  .landing-controls { flex-wrap: wrap; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-overlay *, .landing-overlay *::before, .landing-overlay *::after { animation: none !important; transition: none !important; }
}

#connectWalletButton { display: inline-flex; align-items: center; gap: 8px; }
#connectWalletButton .wallet-choice-icon { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; }
.wallet-choice-icon img { object-fit: contain; }
.wallet-choice-name { min-width: 0; overflow-wrap: anywhere; }

.contract-address { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border: 1px solid #2e643540; border-radius: 10px; background: #ffffff9c; color: #204b30; font: 700 14px/1.3 monospace; letter-spacing: .08em; }
.contract-address span { opacity: .75; }

/* Thumb controls stay clear of device safe areas in either orientation. */
.joystick { width: clamp(116px, 30vw, 148px); height: clamp(116px, 30vw, 148px); border-color: #ffe49a99; background: #12291ec2; user-select: none; -webkit-user-select: none; }
.joystick::after { content: 'MOVE'; position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #fff2bf; pointer-events: none; }
.joystick.is-active { border-color: #ffe49a; box-shadow: 0 0 20px #ffdb5a30, inset 0 0 28px #0005; }
#joystickKnob { background: radial-gradient(circle at 35% 28%, #fff6c9, #e6ad37); border: 2px solid #fff0b9; box-sizing: border-box; pointer-events: none; }
#dashButton { bottom: max(38px, calc(env(safe-area-inset-bottom) + 24px)); background: #b44728e8; font-weight: 900; user-select: none; -webkit-user-select: none; }
#dashButton:active { background: #e27334; transform: scale(.94); }

.contract-address { max-width: 100%; box-sizing: border-box; }
.contract-address strong { min-width: 0; overflow-wrap: anywhere; user-select: all; }
.contract-address span { flex-shrink: 0; }
