/* Lawn Dads layer styles (the UI track).
   Loaded BEFORE the engine's stylesheet, so anything that overrides the engine is scoped
   under html.ld-on (higher specificity) or uses !important. Animations are transform and
   opacity only; no backdrop-filter anywhere (the gate sits on a video, the HUD on the game).
   Palette: grass green, cream, safety orange, dark. Type (2026-09-24, the user: "change the
   fonts to match the whole vibe"): Rubik Bubbles for the wordmark, buttons and big numbers,
   and Rubik (its plain, chunky, rounded sibling) for everything else, self-hosted. */

@font-face {
  font-family: 'Rubik Bubbles';
  src: url('../fonts/rubik-bubbles.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
}
/* npm @fontsource-variable/rubik (OFL), latin, weights 300 to 900 in one file, copied into
   client/fonts by tools/patch-game.mjs and preloaded by index.html */
@font-face {
  font-family: 'Rubik';
  src: url('../fonts/rubik.woff2') format('woff2');
  font-display: swap;
  font-weight: 300 900;
  font-style: normal;
}

:root {
  --ld-grass: #6fbf3c;
  --ld-grass-hi: #a6e35f;
  --ld-grass-dk: #2f6a1e;
  --ld-cream: #f6ecd0;
  --ld-ink: #f3e9d2;
  --ld-ink-dim: rgba(243, 233, 210, 0.74);
  --ld-ink-faint: rgba(243, 233, 210, 0.5);
  --ld-orange: #ff6a13;
  --ld-orange-hi: #ffa53a;
  --ld-orange-dk: #9a3606;
  --ld-red: #ff5a45;
  --ld-brass: #d9b86e;
  --ld-dark: #0b0f08;
  --ld-plate: rgba(10, 13, 8, 0.72);
  --ld-bubble: 'Rubik Bubbles', 'Arial Black', Impact, system-ui, sans-serif;
  --ld-sans: 'Rubik', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --ld-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

/* ================================================================ the engine, tamed */
html.ld-on #title { display: none !important; }
/* #loading is the Lawn Dads loading screen now (client/ld/boot.js, styled at the end of this file) */
html.ld-on #hud-lawn,
html.ld-on #hud-online,
html.ld-on #hud-board,
html.ld-on #minimap { display: none !important; }

/* the estate's serif is gone: everything the engine writes (hints, toasts, the smoke break, the
   name tags over the other dads) is in Rubik too */
html.ld-on body { font-family: var(--ld-sans); }
html.ld-on kbd,
html.ld-on .pill,
html.ld-on .kicker,
html.ld-on .stat .lbl { font-family: var(--ld-sans); }
html.ld-on .letter,
html.ld-on #toast .t2 { font-style: normal; }
html.ld-on .fleet-tag { font-family: var(--ld-sans); font-weight: 600; font-size: 14px; letter-spacing: 0.03em; border-radius: 6px; }
html.ld-on .fleet-tag.drinking::after { font-family: var(--ld-sans); font-style: normal; font-weight: 500; }
/* the world layer's own moments (client/ld/world/css.js, injected later, so these win on
   specificity): the "+N" under the hitmarker and the RAMMED BY card */
html.ld-on .ld-plus { font-family: var(--ld-sans); font-weight: 800; letter-spacing: 0.02em; }
html.ld-on .ld-dead .by { font-family: var(--ld-bubble); font-weight: 400; letter-spacing: 0.02em; }
html.ld-on .ld-dead .lost { font-family: var(--ld-sans); font-weight: 800; letter-spacing: 0.04em; }
html.ld-on .ld-dead .wait { font-family: var(--ld-sans); font-style: normal; font-weight: 500; }

/* the beer and blunt bars: bottom right, stacked above the boost meter */
html.ld-on #hud #hud-status {
  top: auto;
  bottom: 142px;
  right: 30px;
  width: 316px;
  gap: 5px;
  align-items: stretch;
}
html.ld-on #hud .stat { justify-content: flex-end; gap: 10px; font-size: 15px; }
html.ld-on #hud .stat .lbl {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ld-ink);
}
html.ld-on #hud .mini {
  width: 150px;
  height: 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 0 1px rgba(243, 233, 210, 0.22);
  overflow: hidden;
}
html.ld-on #hud .mini > div { background: linear-gradient(90deg, #d8942c, #ffd27a); border-radius: 5px; }
html.ld-on #hud #hud-cigar { background: linear-gradient(90deg, #4f9d31, #a6e35f); }
html.ld-on #hud .count { font-size: 13px; font-weight: 600; }
html.ld-on #hud .pill { border-radius: 99px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
html.ld-on #hud .pill.on { color: var(--ld-grass-hi); border-color: rgba(166, 227, 95, 0.7); }

html.ld-on #hud #hud-hints {
  bottom: 22px;
  max-width: calc(100vw - 760px);
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 14px;
  font-weight: 500;
  white-space: normal;
}
html.ld-on #hud-hints span { white-space: nowrap; }
html.ld-on kbd {
  border-radius: 5px;
  border-color: rgba(246, 236, 208, 0.45);
  background: rgba(0, 0, 0, 0.35);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}
html.ld-on #hud #toast .t1 { font-family: var(--ld-bubble); letter-spacing: 0.02em; font-size: 30px; }
html.ld-on #hud #toast .t2 { font-size: 17px; font-weight: 500; }

/* the smoke break card */
html.ld-on #pause .title-inner {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: linear-gradient(rgba(24, 28, 17, 0.95), rgba(12, 15, 9, 0.97));
  border-radius: 18px;
  border-color: rgba(166, 227, 95, 0.28);
}
html.ld-on #pause .title-inner.small { max-width: 660px; max-height: calc(100vh - 40px); overflow: auto; }
html.ld-on #pause .title-inner h2 { font-family: var(--ld-bubble); font-weight: 400; letter-spacing: 0.02em; color: var(--ld-cream); }
html.ld-on #pause .letter { margin-bottom: 14px; font-size: 17px; font-weight: 500; }
html.ld-on #pause .keys { grid-template-columns: repeat(3, auto); justify-content: center; gap: 4px 18px; margin-top: 16px; font-size: 14px; font-weight: 500; }

/* ================================================================ shared bits */
.ld-layer { position: fixed; inset: 0; }
.ld-ic { display: inline-block; width: 1em; height: 1em; flex: none; }
.ld-ic svg { width: 100%; height: 100%; display: block; }
.ld-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #6b6a5e; flex: none; }
.ld-dot.on { background: var(--ld-grass-hi); box-shadow: 0 0 8px var(--ld-grass-hi); }

.ld-btn {
  font-family: var(--ld-bubble);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.03em;
  line-height: 1;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 13px 22px;
  color: #1d1206;
  background: var(--ld-cream);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  box-shadow: 0 5px 0 #7d6a42, 0 10px 26px rgba(0, 0, 0, 0.38);
  transition: transform 0.12s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.ld-btn .ld-ic { width: 22px; height: 22px; }
.ld-btn:hover { transform: translateY(-2px); }
.ld-btn:active { transform: translateY(3px); }
.ld-btn:focus-visible, .ld-link:focus-visible, .ld-stock:focus-visible, .ld-swatch:focus-visible, .ld-wallet:focus-visible, .ld-mode:focus-visible {
  outline: 3px solid var(--ld-orange-hi);
  outline-offset: 3px;
}
.ld-btn:disabled { cursor: default; opacity: 0.7; transform: none; }
.ld-btn-go {
  background: linear-gradient(180deg, #ffb24a 0%, #ff7a1c 48%, #f25f0c 100%);
  color: #221003;
  box-shadow: 0 5px 0 var(--ld-orange-dk), 0 12px 30px rgba(255, 106, 19, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.ld-btn-big { font-size: 25px; padding: 17px 30px; border-radius: 14px; }
.ld-btn-sm { font-size: 15px; padding: 9px 14px; }
.ld-btn-ghost {
  background: rgba(246, 236, 208, 0.06);
  color: var(--ld-cream);
  box-shadow: inset 0 0 0 2px rgba(246, 236, 208, 0.5);
}
.ld-btn-dev {
  background: transparent;
  color: var(--ld-grass-hi);
  box-shadow: inset 0 0 0 2px rgba(166, 227, 95, 0.55);
  font-size: 17px;
}
.ld-btn-dev::before { content: 'DEV'; font-family: var(--ld-sans); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; background: var(--ld-grass-hi); color: #102008; padding: 2px 5px; border-radius: 4px; }
.ld-busy { pointer-events: none; opacity: 0.75; }
.ld-busy::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid currentColor;
  border-right-color: transparent;
  animation: ld-spin 0.7s linear infinite;
}
.ld-link {
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  color: var(--ld-ink-dim);
  font-family: var(--ld-sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: underline rgba(217, 184, 110, 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.ld-link:hover { color: var(--ld-cream); }
.ld-tag {
  font-family: var(--ld-sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 11px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  color: var(--ld-ink-dim);
  box-shadow: inset 0 0 0 1px rgba(246, 236, 208, 0.3);
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}
.ld-tag .ld-ic { width: 12px; height: 12px; }
.ld-tag-go { color: #0f1d08; background: var(--ld-grass-hi); box-shadow: none; }

.ld-note { font-size: 15px; color: var(--ld-ink-dim); margin: 6px 0 0; line-height: 1.4; }
.ld-warn { color: #ffc9a8; }
.ld-fine { font-size: 13px; color: var(--ld-ink-faint); margin: 4px 0 0; line-height: 1.45; }
.ld-lead { font-size: 18px; line-height: 1.45; color: var(--ld-ink); margin: 0 0 14px; }
.ld-banner {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #1e1405;
  background: linear-gradient(90deg, #ffd08a, #ffb24a);
  padding: 9px 14px;
  border-radius: 10px;
  transform: rotate(-1deg);
  box-shadow: 0 4px 0 #9a6a1c;
  max-width: 560px;
  margin: 2px 0 10px;
}
.ld-status { min-height: 22px; font-size: 15px; font-weight: 500; color: var(--ld-ink-dim); margin: 6px 0; line-height: 1.35; }
.ld-status.ld-wait::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--ld-orange-hi);
  vertical-align: middle;
  animation: ld-blink 1s ease-in-out infinite;
}
.ld-status:empty::before { display: none; }
.ld-status.ld-bad, .ld-bad, .ld-field-msg.ld-bad { color: #ffb4a4; }
.ld-status.ld-ok { color: var(--ld-grass-hi); }
.ld-status.ld-soft { color: var(--ld-cream); }

/* Every animation here runs whatever the browser or Windows says: no prefers-reduced-motion
   switches (the user, 2026-09-24: "work no matter what regardless of any browser/windows settings"). */
/* ================================================================ the gate layer */
#ld-gate {
  z-index: 60;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ld-ink);
  font-family: var(--ld-sans);
  -webkit-user-select: text;
  user-select: text;
}
/* the backdrop, back to front: a dark green gradient (the last fallback: never a black screen),
   the recorded loop (its poster until it plays), the legibility gradient. Nothing here is blurred
   or filtered: the menu should cost the GPU next to nothing. */
.ld-gate-back {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 72% 38%, rgba(98, 160, 58, 0.55) 0%, rgba(40, 84, 24, 0.35) 45%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(180deg, #274a1a 0%, #16300f 55%, #0c1a08 100%);
}
.ld-gate-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: transparent;
}
.ld-gate-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 110% at 0% 45%, rgba(7, 10, 5, 0.94) 0%, rgba(7, 10, 5, 0.8) 34%, rgba(7, 10, 5, 0.26) 62%, rgba(7, 10, 5, 0) 82%),
    linear-gradient(0deg, rgba(7, 10, 5, 0.72) 0%, rgba(7, 10, 5, 0) 38%),
    linear-gradient(180deg, rgba(7, 10, 5, 0.5) 0%, rgba(7, 10, 5, 0) 22%);
}
.ld-gate-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 5, 0.45);
  opacity: 0;
  transition: opacity 0.6s;
}
#ld-gate:not([data-screen='gate']) .ld-gate-bg::after { opacity: 1; }

/* top right of every gate screen: X and the sound switch (the user, 2026-09-24) */
.ld-top { position: fixed; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); z-index: 5; display: flex; gap: 10px; }
.ld-top-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: var(--ld-cream);
  background: rgba(10, 13, 8, 0.62);
  box-shadow: inset 0 0 0 2px rgba(246, 236, 208, 0.22), 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease-out, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.ld-top-btn svg { width: 22px; height: 22px; display: block; }
.ld-top-btn:hover { transform: translateY(-2px); background: rgba(10, 13, 8, 0.8); }
.ld-top-btn:active { transform: translateY(2px); }
.ld-top-btn:focus-visible { outline: 3px solid var(--ld-orange-hi); outline-offset: 3px; }
.ld-top-mute.off { color: var(--ld-ink-faint); }

/* a real back button, not a link */
.ld-btn-back { font-size: 17px; padding: 10px 16px 10px 12px; gap: 8px; }
.ld-btn-back .ld-ic { width: 18px; height: 18px; }

/* the how-to-play card on MOW */
.ld-card-how { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.ld-card-how .ld-cta { margin-top: 18px; }
.ld-card-how .ld-cta .ld-btn { min-width: 220px; }
.ld-how-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--ld-ink-dim); }
.ld-how-keys span { display: flex; gap: 9px; align-items: center; }
.ld-how-keys kbd { flex: none; min-width: 52px; text-align: center; font-size: 12px; font-family: var(--ld-sans); font-weight: 800; padding: 3px 7px; }
@media (max-width: 640px) {
  .ld-how-keys { grid-template-columns: 1fr; }
  .ld-top-btn { width: 40px; height: 40px; border-radius: 12px; }
}

.ld-col {
  position: relative;
  box-sizing: border-box;
  min-height: 100%;
  width: min(880px, 100%);
  padding: 3vh 24px 3vh max(24px, 6vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* ---- the wordmark */
.ld-brand { position: relative; width: max-content; max-width: 100%; }
.ld-wm-wrap { transform: rotate(-3.5deg); transform-origin: 0 100%; width: max-content; }
.ld-wm {
  margin: 0;
  font-family: var(--ld-bubble);
  font-weight: 400;
  font-size: clamp(60px, 14vh, 164px);
  line-height: 0.84;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.ld-word { position: relative; display: block; width: max-content; }
.ld-wm-l2 { margin-left: 0.62em; margin-top: -0.02em; }
.ld-word > span { display: block; white-space: nowrap; }
.ld-word-o, .ld-word-m { position: absolute; left: 0; top: 0; }
.ld-word-o {
  color: #0f2109;
  -webkit-text-stroke: 0.17em #0f2109;
  text-shadow: 0 0.1em 0 #060d04, 0 0.16em 0.3em rgba(0, 0, 0, 0.55);
}
.ld-word-m { color: var(--ld-cream); -webkit-text-stroke: 0.075em var(--ld-cream); }
.ld-word-f {
  position: relative;
  color: transparent;
  background: linear-gradient(180deg, #d4f78a 0%, #8fd14f 42%, #56a534 72%, #3d8a27 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
/* DADS in dark green (the user, 2026-09-24: it was orange) */
.ld-wm-l2 .ld-word-f { background: linear-gradient(180deg, #4f9e3c 0%, #2c7a2c 42%, #1d5e22 72%, #134a1a 100%); -webkit-background-clip: text; background-clip: text; }
.ld-brand { margin-bottom: 10px; }

/* the cards after the gate: the wordmark steps back so the card fits */
#ld-gate:not([data-screen='gate']) .ld-wm { font-size: clamp(44px, 8.2vh, 92px); }
#ld-gate:not([data-screen='gate']) .ld-brand { margin-bottom: 4px; }
#ld-gate:not([data-screen='gate']) .ld-col { gap: 10px; }

/* ---- the gate screen: the to-do list and the two modes */
.ld-panel { position: relative; }
.ld-panel.ld-in { animation: ld-rise 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.ld-gate-main { display: flex; flex-direction: column; gap: 18px; max-width: 740px; }
.ld-todo-h {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 14px;
  color: var(--ld-orange-hi);
  margin: 0 0 9px 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.ld-todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ld-todo-list li { display: flex; align-items: center; gap: 14px; }
/* the number in a tilted grass-green tile */
.ld-todo-n {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--ld-sans);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  background: var(--ld-grass-hi);
  color: #102008;
  box-shadow: 0 3px 0 #3d7a22;
  transform: rotate(-6deg);
}
/* each line slides in and its number pops (replayed when the loader lets go: gate.js) */
.ld-todo-anim li { animation: ld-todo-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
.ld-todo-anim .ld-todo-n { animation: ld-tick 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 330ms); }
.ld-todo-t { font-size: 28px; font-weight: 800; letter-spacing: -0.005em; line-height: 1.15; color: var(--ld-cream); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }

.ld-modes { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 4px; }
.ld-mode {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--ld-sans);
  color: inherit;
  transition: transform 0.12s ease-out;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  max-width: 100%;
}
.ld-mode:hover { transform: translateY(-2px); }
.ld-mode:active { transform: translateY(3px); }
.ld-mode-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ld-mode-t b { font-family: var(--ld-bubble); font-weight: 400; letter-spacing: 0.03em; line-height: 1; white-space: nowrap; }
.ld-mode-t small { font-weight: 600; line-height: 1.2; }
.ld-mode-ic { flex: none; display: grid; place-items: center; }
.ld-mode-ic svg { display: block; width: 100%; height: 100%; }
/* PLAY FOR STOCKS: the big bright one on top */
.ld-mode-stocks {
  width: min(500px, 100%);
  padding: 16px 22px 18px 16px;
  border-radius: 18px;
  color: #221003;
  background: linear-gradient(180deg, #ffc35c 0%, #ff8a24 46%, #f2600c 100%);
  box-shadow: 0 6px 0 var(--ld-orange-dk), 0 16px 36px rgba(255, 106, 19, 0.32), inset 0 2px 0 rgba(255, 255, 255, 0.42);
}
.ld-mode-stocks .ld-mode-ic { width: 52px; height: 52px; padding: 10px; box-sizing: border-box; border-radius: 14px; background: rgba(34, 16, 3, 0.14); }
.ld-mode-stocks .ld-mode-t b { font-size: 36px; }
.ld-mode-stocks .ld-mode-t small { font-size: 15px; color: rgba(34, 16, 3, 0.8); }
.ld-mode-go { flex: none; width: 30px; height: 30px; margin-left: auto; }
.ld-mode-go svg { display: block; width: 100%; height: 100%; }
.ld-mode-stocks:hover .ld-mode-go { transform: translateX(3px); }
.ld-mode-go { transition: transform 0.15s ease-out; }
/* FREE PLAY: smaller and darker, under it */
.ld-mode-free {
  width: min(330px, 100%);
  padding: 10px 18px 11px 12px;
  border-radius: 14px;
  color: var(--ld-cream);
  background: rgba(9, 13, 7, 0.86);
  box-shadow: inset 0 0 0 2px rgba(166, 227, 95, 0.26), 0 8px 22px rgba(0, 0, 0, 0.35);
}
.ld-mode-free:hover { background: rgba(15, 21, 11, 0.92); box-shadow: inset 0 0 0 2px rgba(166, 227, 95, 0.5), 0 8px 22px rgba(0, 0, 0, 0.35); }
.ld-mode-free .ld-mode-ic { width: 34px; height: 34px; color: var(--ld-grass-hi); }
.ld-mode-free .ld-mode-t b { font-size: 21px; }
.ld-mode-free .ld-mode-t small { font-size: 13px; font-weight: 500; color: var(--ld-ink-faint); }
.ld-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }

/* ---- cards (the explainer, free play, sign in, hold check, mower, modal, connection) */
.ld-card {
  position: relative;
  box-sizing: border-box;
  max-width: 660px;
  background: linear-gradient(rgba(24, 28, 17, 0.95), rgba(12, 15, 9, 0.97));
  border: 1px solid rgba(166, 227, 95, 0.24);
  border-radius: 18px;
  padding: 24px 30px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ld-card h2 { font-family: var(--ld-bubble); font-weight: 400; font-size: 36px; line-height: 1.05; margin: 8px 0 10px; color: var(--ld-cream); }
.ld-card-kicker { font-weight: 800; letter-spacing: 0.14em; font-size: 13px; color: var(--ld-orange-hi); }
.ld-steps { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 700; letter-spacing: 0.06em; font-size: 12px; text-transform: uppercase; color: var(--ld-ink-faint); }
.ld-steps span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); }
.ld-steps b { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); font-size: 11px; letter-spacing: 0; }
.ld-steps .on { color: var(--ld-cream); background: rgba(255, 106, 19, 0.16); }
.ld-steps .on b { background: var(--ld-orange); color: #221003; }
.ld-steps .done { color: var(--ld-ink-dim); }
.ld-steps .done b { background: var(--ld-grass); color: #0f1d08; }
.ld-who { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 17px; font-weight: 600; }
.ld-who img, .ld-who .ld-ic { width: 26px; height: 26px; border-radius: 6px; }
.ld-who code, .ld-signed code { font-family: var(--ld-mono); font-size: 13px; color: var(--ld-ink-dim); }
.ld-signed { display: flex; gap: 14px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(246, 236, 208, 0.12); font-size: 14px; color: var(--ld-ink-faint); }
.ld-signed .ld-link { font-size: 14px; }
.ld-card > .ld-link { display: inline-block; margin-top: 12px; }
.ld-card-foot { display: flex; gap: 14px 22px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(246, 236, 208, 0.12); }

/* PLAY FOR STOCKS: how it works */
.ld-card-explain { max-width: 640px; }
.ld-deal { list-style: none; margin: 6px 0 18px; padding: 0; display: grid; gap: 13px; }
.ld-deal li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.ld-deal-n {
  width: 32px;
  height: 32px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ld-orange);
  color: #221003;
  font-family: var(--ld-bubble);
  font-weight: 400;
  font-size: 17px;
  transform: rotate(-8deg);
  box-shadow: 0 3px 0 var(--ld-orange-dk);
}
.ld-deal strong { display: block; font-weight: 800; font-size: 20px; line-height: 1.2; color: var(--ld-cream); }
.ld-deal span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--ld-ink-dim); }

/* hold check */
.ld-hold { display: flex; flex-direction: column; gap: 12px; }
.ld-hold-line { display: flex; gap: 14px; align-items: center; font-size: 21px; font-weight: 700; line-height: 1.25; padding: 16px 18px; border-radius: 12px; }
.ld-hold-line .ld-ic { width: 34px; height: 34px; padding: 6px; border-radius: 50%; box-sizing: border-box; }
.ld-hold-line.ld-good { color: #d9f7b0; background: rgba(111, 191, 60, 0.14); box-shadow: inset 0 0 0 1px rgba(166, 227, 95, 0.4); }
.ld-hold-line.ld-good .ld-ic { background: var(--ld-grass-hi); color: #0f1d08; }
.ld-hold-line.ld-bad { color: #ffd2c4; background: rgba(255, 90, 69, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 90, 69, 0.4); }
.ld-hold-line.ld-bad .ld-ic { background: var(--ld-red); color: #2a0600; }
.ld-hold-line.ld-meh { color: #ffe0b0; background: rgba(255, 165, 58, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 165, 58, 0.4); }
.ld-hold-line.ld-meh .ld-ic { background: var(--ld-orange-hi); color: #2a1300; }
.ld-hold .ld-lead { margin: 0; font-size: 16px; color: var(--ld-ink-dim); }

/* the wallet picker */
.ld-modal {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 6, 3, 0.66);
  overflow: auto;
}
.ld-modal.ld-in .ld-card { animation: ld-rise 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.ld-card-modal { width: min(480px, 100%); }
.ld-wallets { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.ld-wallet {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: var(--ld-cream);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(246, 236, 208, 0.18);
  font-family: var(--ld-sans);
  transition: transform 0.12s;
}
.ld-wallet:hover { transform: translateX(3px); background: rgba(255, 255, 255, 0.1); }
.ld-wallet img, .ld-wallet-blank { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.ld-wallet-blank { display: grid; place-items: center; background: #3a3a30; font-family: var(--ld-bubble); font-size: 20px; color: #fff; }
.ld-wallet-blank .ld-ic { width: 20px; height: 20px; }
.ld-brand-phantom { background: #ab9ff2; color: #1c1640; }
.ld-brand-solflare { background: #fc7227; color: #2a0e00; }
.ld-brand-backpack { background: #e33e3f; color: #fff; }
.ld-wallet-name { flex: 1; font-size: 18px; font-weight: 700; display: flex; flex-direction: column; line-height: 1.2; }
.ld-wallet-name small { font-size: 13px; font-weight: 500; color: var(--ld-ink-dim); }
.ld-wallet.ld-busy::after { color: var(--ld-cream); }

/* your mower (stock play) and FREE PLAY share the mower picture, the name and the paint */
.ld-card-mower { max-width: 780px; }
.ld-card-free { max-width: 640px; }
.ld-card-mower .ld-stocks { grid-template-columns: repeat(5, 1fr); }
.ld-mower-top { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; margin-bottom: 12px; }
.ld-preview { width: 170px; }
.ld-preview svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.ld-mower-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ld-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ld-field > span { font-weight: 800; letter-spacing: 0.12em; font-size: 12px; color: var(--ld-brass); }
.ld-paint-name { font-weight: 500; letter-spacing: 0; font-size: 14px; color: var(--ld-ink-dim); margin-left: 6px; text-transform: none; }
.ld-name-row { display: flex; gap: 12px; align-items: center; }
.ld-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  font-family: var(--ld-sans);
  font-weight: 700;
  font-size: 21px;
  color: var(--ld-cream);
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(246, 236, 208, 0.22);
  border-radius: 10px;
  padding: 7px 12px;
  outline: none;
}
.ld-input:focus { border-color: var(--ld-orange-hi); background: rgba(255, 255, 255, 0.1); }
.ld-input::placeholder { color: rgba(243, 233, 210, 0.3); }
.ld-dice { white-space: nowrap; font-size: 14px; }
.ld-field-msg { min-height: 17px; font-size: 13px; font-weight: 500; color: var(--ld-ink-faint); }
.ld-paints { display: flex; gap: 9px; flex-wrap: wrap; }
.ld-swatch {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--c);
  border: 2px solid rgba(243, 233, 210, 0.35);
  box-shadow: inset 0 -5px 7px rgba(0, 0, 0, 0.4), inset 0 3px 4px rgba(255, 255, 255, 0.22);
  transition: transform 0.12s;
}
.ld-swatch:hover { transform: scale(1.1); }
.ld-swatch.on { border-color: var(--ld-orange-hi); box-shadow: 0 0 0 3px rgba(255, 165, 58, 0.35), inset 0 -5px 7px rgba(0, 0, 0, 0.4); transform: scale(1.08); }
.ld-paints-sm .ld-swatch { width: 28px; height: 28px; }
.ld-stocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 7px; }
.ld-stock {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 10px 7px;
  border-radius: 10px;
  cursor: pointer;
  border: 0;
  text-align: left;
  color: var(--ld-cream);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(246, 236, 208, 0.16);
  transition: transform 0.12s;
  font-family: var(--ld-sans);
}
.ld-stock:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.09); }
.ld-stock b { font-family: var(--ld-bubble); font-weight: 400; font-size: 17px; letter-spacing: 0.02em; }
.ld-stock span { font-size: 12px; font-weight: 500; color: var(--ld-ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ld-stock i { position: absolute; top: 6px; right: 7px; font-style: normal; font-weight: 800; font-size: 9px; letter-spacing: 0.08em; color: #221003; background: var(--ld-cream); padding: 2px 4px; border-radius: 4px; }
.ld-stock.on { background: rgba(255, 106, 19, 0.18); box-shadow: inset 0 0 0 2px var(--ld-orange), 0 0 18px rgba(255, 106, 19, 0.25); }
.ld-stock.on i { background: var(--ld-orange-hi); }
.ld-mow-row { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
/* MOW never scrolls out of sight on a short screen: it sticks to the bottom of the gate */
.ld-card-mower .ld-mow-row,
.ld-card-free .ld-mow-row {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 8px -30px 0;
  padding: 14px 30px 14px;
  background: linear-gradient(180deg, rgba(12, 15, 9, 0), rgba(12, 15, 9, 0.97) 26%);
}
.ld-btn-mow { font-size: 40px; padding: 16px 44px 18px; border-radius: 16px; min-width: 230px; }
.ld-btn-mow[data-state='wait'] { opacity: 0.72; }
.ld-btn-mow[data-state='wait'] .ld-mow-label { animation: ld-blink 1.1s ease-in-out infinite; }
.ld-btn-mow[data-state='dim'] { opacity: 0.55; }
.ld-btn-mow[data-state='hot'] { animation: ld-throb 0.9s ease-in-out infinite; }
.ld-btn-mow.ld-nope { animation: ld-nope 0.4s; }
.ld-mow-side { flex: 1; min-width: 0; }
.ld-mow-side .ld-status { margin: 0 0 2px; }
.ld-dadsline { font-size: 14px; font-weight: 500; color: var(--ld-ink-faint); }
.ld-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--ld-ink-dim); }
.ld-keys span { display: inline-flex; gap: 6px; align-items: center; }
.ld-keys kbd { font-size: 11px; font-family: var(--ld-sans); font-weight: 700; padding: 2px 6px; }

/* ================================================================ connection */
#ld-conn {
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(at 50% 50%, rgba(10, 8, 4, 0.55), rgba(5, 4, 2, 0.88));
  font-family: var(--ld-sans);
  color: var(--ld-ink);
}
.ld-card-conn { width: min(520px, 100%); text-align: center; animation: ld-rise 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.ld-card-conn .ld-cta { justify-content: center; }
.ld-conn-ic { width: 54px; height: 54px; margin: 2px auto 0; color: var(--ld-orange-hi); transform: rotate(-12deg); }
.ld-conn-ic svg { width: 100%; height: 100%; }
#ld-going {
  position: fixed;
  z-index: 61;
  left: 50%;
  bottom: 12vh;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 22px;
  border-radius: 99px;
  background: rgba(10, 13, 8, 0.82);
  border: 1px solid rgba(166, 227, 95, 0.3);
  font-family: var(--ld-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--ld-cream);
  animation: ld-rise 0.4s both;
}
.ld-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ld-orange-hi); border-right-color: transparent; animation: ld-spin 0.7s linear infinite; }

/* ================================================================ the HUD */
#ld-hud {
  position: fixed;
  inset: 0;
  z-index: 31;
  pointer-events: none;
  font-family: var(--ld-sans);
  color: var(--ld-ink);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.ld-plate {
  background: linear-gradient(180deg, rgba(10, 13, 8, 0.72), rgba(10, 13, 8, 0.56));
  border: 1px solid rgba(246, 236, 208, 0.14);
  border-radius: 14px;
}
.ld-hl { font-weight: 800; letter-spacing: 0.12em; font-size: 12px; color: var(--ld-brass); }

/* top left: power */
.ld-hud-power { position: absolute; top: 20px; left: 24px; padding: 10px 18px 12px; min-width: 230px; }
.ld-pw { position: relative; display: inline-flex; align-items: baseline; gap: 8px; margin: 2px 0 4px; }
.ld-pw-num { font-family: var(--ld-bubble); font-size: 50px; line-height: 1; color: var(--ld-cream); font-variant-numeric: tabular-nums; }
.ld-pw-unit { font-family: var(--ld-bubble); font-size: 22px; color: var(--ld-grass-hi); }
.ld-pw-flash { position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; }
.ld-hud-power.ld-gain .ld-pw-flash { background: radial-gradient(at 30% 50%, rgba(166, 227, 95, 0.35), transparent 70%); animation: ld-flash 0.9s ease-out; }
.ld-hud-power.ld-bigain .ld-pw-flash { background: radial-gradient(at 30% 50%, rgba(166, 227, 95, 0.7), rgba(166, 227, 95, 0.15) 80%); animation: ld-flash 1.3s ease-out; }
.ld-hud-power.ld-bigain .ld-pw-num { animation: ld-bump 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
.ld-hud-power.ld-loss .ld-pw-flash { background: radial-gradient(at 30% 50%, rgba(255, 90, 69, 0.75), rgba(255, 90, 69, 0.2) 80%); animation: ld-flash 1.4s ease-out; }
.ld-hud-power.ld-loss .ld-pw { animation: ld-shake 0.45s; }
.ld-pw-pops { position: absolute; left: 100%; top: -4px; width: 0; }
.ld-pop { position: absolute; left: 8px; white-space: nowrap; font-family: var(--ld-bubble); font-size: 26px; animation: ld-pop 1.5s ease-out forwards; }
.ld-pop-up { color: var(--ld-grass-hi); }
.ld-pop-down { color: var(--ld-red); }
.ld-pw-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.ld-earn { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: 0.1em; font-size: 13px; color: #a8a797; }
.ld-earn i { width: 10px; height: 10px; border-radius: 50%; background: #6b6a5e; position: relative; flex: none; }
.ld-earn.on { color: var(--ld-grass-hi); }
.ld-earn.on i { background: var(--ld-grass-hi); box-shadow: 0 0 8px var(--ld-grass-hi); }
.ld-earn.on i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ld-grass-hi); animation: ld-ping 1.4s ease-out infinite; }
.ld-rank { font-weight: 700; letter-spacing: 0.08em; font-size: 12px; color: var(--ld-ink-dim); }
/* free play: a small badge where EARNING would be (lit while you mow) */
.ld-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 8px;
  border-radius: 99px;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: #0f1d08;
  background: var(--ld-grass-hi);
  text-shadow: none;
}
.ld-free-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2c5a16; }
.ld-free-badge.on::before { background: #0f1d08; }
#ld-hud:not(.ld-free) .ld-free-badge { display: none; }
#ld-hud.ld-free .ld-earn,
#ld-hud.ld-free .ld-hud-harvest,
#ld-hud.ld-free .ld-hv-toast { display: none; }
#ld-hud.ld-free .ld-board { top: 20px; }

/* kill feed */
.ld-feed { position: absolute; top: 158px; left: 24px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.ld-kf {
  font-size: 15px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(10, 13, 8, 0.6);
  border-left: 3px solid var(--ld-cream);
  animation: ld-feed-in 0.3s ease-out both, ld-fade-out 0.6s ease-in 6.4s forwards;
}
.ld-kf b { font-weight: 700; color: var(--ld-cream); }
.ld-kf em { font-style: normal; color: var(--ld-grass-hi); font-weight: 700; }
.ld-kf-me { border-left-color: var(--ld-orange); background: rgba(255, 106, 19, 0.18); }
.ld-kf-hurt { border-left-color: var(--ld-red); }
.ld-kf-hurt em { color: var(--ld-red); }

/* top right: harvest + board */
.ld-hud-harvest { position: absolute; top: 20px; right: 24px; padding: 10px 18px 12px; min-width: 262px; text-align: right; }
.ld-hv-time { font-family: var(--ld-bubble); font-size: 50px; line-height: 1.02; color: var(--ld-cream); font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.ld-hud-harvest.ld-soon .ld-hv-time { color: var(--ld-orange-hi); animation: ld-throb 1s ease-in-out infinite; transform-origin: 100% 50%; }
.ld-hv-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; font-size: 15px; }
.ld-hv-row > span:first-child { font-weight: 800; letter-spacing: 0.1em; font-size: 11px; color: var(--ld-ink-dim); }
.ld-hv-jar { display: inline-flex; gap: 8px; align-items: baseline; }
.ld-hv-row b { font-weight: 700; font-size: 17px; color: var(--ld-cream); }
.ld-hv-row small { font-size: 13px; font-weight: 500; color: var(--ld-ink-dim); }
.ld-hv-share b { color: var(--ld-grass-hi); }
.ld-board { position: absolute; top: 172px; right: 24px; width: 300px; padding: 10px 14px 10px; }
.ld-board .ld-hl { margin-bottom: 5px; }
.ld-br { display: grid; grid-template-columns: 18px 10px 1fr auto 52px; gap: 8px; align-items: center; font-size: 15px; padding: 2px 4px; border-radius: 6px; color: var(--ld-ink-dim); }
.ld-br.me { color: var(--ld-cream); background: rgba(255, 106, 19, 0.18); }
.ld-br-n { font-weight: 800; font-size: 11px; color: var(--ld-ink-faint); text-align: right; }
.ld-br-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ld-br-m2 { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ld-br-tk { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: var(--ld-orange-hi); text-align: right; }
.ld-br-tk.ld-br-bot { justify-self: end; padding: 1px 6px; border-radius: 5px; font-size: 10px; letter-spacing: 0.08em; color: var(--ld-ink-dim); background: rgba(246, 236, 208, 0.1); text-shadow: none; }
.ld-br-gap { height: 1px; margin: 4px 0; background: rgba(246, 236, 208, 0.16); }

/* bottom right: BOOST (the user's ask) */
.ld-boost { position: absolute; right: 30px; bottom: 26px; width: 316px; transition: opacity 0.3s, transform 0.3s; }
.ld-boost.dead { opacity: 0; transform: translateY(20px); }
.ld-bst-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 6px; }
.ld-bst-l { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ld-bubble); font-size: 30px; line-height: 1; color: var(--ld-cream); letter-spacing: 0.03em; }
.ld-bst-l .ld-ic { width: 26px; height: 26px; color: var(--ld-orange-hi); }
.ld-bst-buzz { font-weight: 800; font-size: 14px; letter-spacing: 0.02em; color: var(--ld-ink-faint); padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); text-shadow: none; }
.ld-bst-buzz.on { color: #102008; background: var(--ld-grass-hi); }
.ld-bst-bar { position: relative; height: 46px; transform: skewX(-14deg); }
.ld-bst-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(8, 10, 6, 0.72);
  box-shadow: inset 0 0 0 2px rgba(246, 236, 208, 0.35), inset 0 6px 12px rgba(0, 0, 0, 0.5);
}
.ld-bst-fill {
  position: absolute;
  inset: 3px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffd27a 0%, #ff9a2e 38%, #ff6a13 70%, #d9480a 100%);
  will-change: transform;
}
.ld-bst-stripes {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40px;
  right: -40px;
  opacity: 0.22;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.9) 0 9px, transparent 9px 20px);
}
.ld-bst-flash { position: absolute; inset: 0; background: #fff6e0; opacity: 0; }
.ld-bst-ticks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 2px), rgba(8, 10, 6, 0.75) calc(10% - 2px), rgba(8, 10, 6, 0.75) 10%);
  pointer-events: none;
}
.ld-bst-glow {
  position: absolute;
  inset: -6px;
  border-radius: 12px;
  background: radial-gradient(closest-side, rgba(255, 150, 40, 0.6), rgba(255, 106, 19, 0));
  box-shadow: 0 0 28px 6px rgba(255, 130, 30, 0.55);
  opacity: 0;
}
.ld-boost.full .ld-bst-glow { animation: ld-glow 1.3s ease-in-out infinite; }
.ld-boost.full .ld-bst-ready { opacity: 1; }
.ld-boost.using .ld-bst-stripes { opacity: 0.45; animation: ld-stripes 0.35s linear infinite; }
.ld-boost.using .ld-bst-flash { animation: ld-flicker 0.24s steps(2) infinite; }
.ld-boost.using .ld-bst-bar { animation: ld-rattle 0.12s linear infinite; }
.ld-boost.low .ld-bst-l { color: var(--ld-ink-faint); }
.ld-bst-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; font-size: 13px; font-weight: 500; color: var(--ld-ink-dim); }
.ld-bst-hint { display: inline-flex; gap: 7px; align-items: center; }
.ld-bst-hint kbd { font-weight: 800; font-size: 11px; padding: 2px 7px; }
.ld-bst-ready { font-family: var(--ld-bubble); font-size: 16px; color: var(--ld-orange-hi); opacity: 0; transition: opacity 0.3s; }

/* bottom left: the minimap */
.ld-map { position: absolute; left: 24px; bottom: 24px; padding: 8px 8px 8px; transition: opacity 0.35s, transform 0.35s; background: linear-gradient(180deg, rgba(10, 13, 8, 0.72), rgba(10, 13, 8, 0.56)); border: 1px solid rgba(246, 236, 208, 0.14); border-radius: 14px; }
.ld-map.ld-off { opacity: 0; transform: translateY(12px) scale(0.96); }
.ld-map-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; font-weight: 800; letter-spacing: 0.12em; font-size: 11px; color: var(--ld-brass); }
.ld-map-n { flex: 1; font-weight: 500; letter-spacing: 0; font-size: 12px; color: var(--ld-ink-dim); text-align: right; }
.ld-map-head kbd { font-size: 10px; font-weight: 800; padding: 1px 5px; letter-spacing: 0; }
.ld-map canvas { display: block; border-radius: 8px; }

/* the harvest toast */
.ld-hv-toast {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  max-width: min(640px, calc(100vw - 680px));
  box-sizing: border-box;
  text-align: center;
  padding: 12px 22px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 38, 12, 0.94), rgba(12, 22, 8, 0.92));
  border: 2px solid var(--ld-grass-hi);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(166, 227, 95, 0.25);
  opacity: 0;
  transform: translateY(-30px) scale(0.96);
  transition: opacity 0.35s, transform 0.35s;
}
.ld-hv-toast.show { opacity: 1; transform: none; }
.ld-hv-toast[data-kind='meh'] { border-color: var(--ld-brass); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); background: linear-gradient(180deg, rgba(30, 25, 15, 0.94), rgba(16, 13, 8, 0.92)); }
.ld-hv-t1 { font-family: var(--ld-bubble); font-size: 25px; line-height: 1.15; color: var(--ld-cream); }
.ld-hv-toast[data-kind='win'] .ld-hv-t1 { color: #e2fbb8; }
.ld-hv-t2 { font-size: 15px; font-weight: 500; color: var(--ld-ink-dim); margin-top: 3px; }

/* the dead moment belongs to the world track */
#ld-hud.ld-hud-dead .ld-hv-toast { opacity: 0; }

/* ================================================================ the smoke break extras */
.ld-pz { text-align: left; margin: 0 0 4px; font-family: var(--ld-sans); cursor: default; }
.ld-pz-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ld-pz-stat { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(246, 236, 208, 0.12); }
.ld-pz-stat > span, .ld-pz-l { font-weight: 800; letter-spacing: 0.12em; font-size: 11px; color: var(--ld-brass); }
.ld-pz-stat b { font-family: var(--ld-bubble); font-weight: 400; font-size: 26px; color: var(--ld-cream); }
.ld-pz-stat small { font-size: 13px; font-weight: 500; color: var(--ld-ink-dim); line-height: 1.3; }
/* free play: the way to PLAY FOR STOCKS */
.ld-pz-pitch { background: rgba(255, 106, 19, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 165, 58, 0.35); }
.ld-pz-pitch > span { color: var(--ld-orange-hi); }
.ld-pz-stocks-btn { margin-top: 8px; align-self: flex-start; font-size: 18px; padding: 11px 16px; border-radius: 12px; }
.ld-pz-stocks-btn .ld-ic { width: 20px; height: 20px; }
.ld-pz-sec { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ld-pz-pays { display: flex; flex-direction: column; gap: 3px; }
.ld-pz-pay { display: grid; grid-template-columns: 1fr 1.1fr auto auto; gap: 10px; align-items: baseline; font-size: 14px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.03); }
.ld-pz-amt { font-weight: 700; color: var(--ld-cream); }
.ld-pz-into { color: var(--ld-ink-dim); }
.ld-pz-st { font-weight: 800; letter-spacing: 0.06em; font-size: 11px; text-transform: uppercase; color: var(--ld-ink-dim); }
.ld-pz-st.st-paid, .ld-pz-st.st-fallback_default, .ld-pz-st.st-fallback_sol { color: var(--ld-grass-hi); }
.ld-pz-st.st-needs_review { color: var(--ld-orange-hi); }
.ld-pz-link { display: inline-flex; gap: 4px; align-items: center; color: var(--ld-orange-hi); font-size: 13px; font-weight: 600; text-decoration: none; }
.ld-pz-link .ld-ic { width: 12px; height: 12px; }
.ld-pz-link:hover { text-decoration: underline; }
.ld-pz-none { font-size: 14px; font-weight: 500; color: var(--ld-ink-dim); }
.ld-pz-note { grid-column: 1 / -1; margin-top: -3px; font-size: 13px; color: var(--ld-orange-hi); }
.ld-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ld-chip {
  font-family: var(--ld-sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 5px 9px;
  border-radius: 99px;
  border: 0;
  cursor: pointer;
  color: var(--ld-cream);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(246, 236, 208, 0.2);
}
.ld-chip:hover { background: rgba(255, 255, 255, 0.12); }
.ld-chip.on { background: var(--ld-orange); color: #221003; box-shadow: none; }
.ld-pz-msg { min-height: 20px; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--ld-ink-dim); }
.ld-pz-msg.ld-ok { color: var(--ld-grass-hi); }
.ld-pz-msg.ld-bad { color: #ffb4a4; }
.ld-pz-actions { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 6px; }

/* ================================================================ motion (transform + opacity only) */
@keyframes ld-spin { to { transform: rotate(360deg); } }
@keyframes ld-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes ld-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ld-throb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes ld-nope { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }
@keyframes ld-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ld-bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes ld-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes ld-pop { 0% { opacity: 0; transform: translateY(8px) scale(0.8); } 15% { opacity: 1; transform: translateY(0) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px) scale(1); } }
@keyframes ld-ping { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.3); } }
@keyframes ld-feed-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes ld-fade-out { to { opacity: 0; transform: translateX(-10px); } }
@keyframes ld-glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes ld-stripes { from { transform: translateX(0); } to { transform: translateX(21.8px); } }
@keyframes ld-flicker { 0% { opacity: 0.22; } 100% { opacity: 0; } }
@keyframes ld-rattle { 0% { transform: skewX(-14deg) translateY(0); } 50% { transform: skewX(-14deg) translateY(-1.5px); } 100% { transform: skewX(-14deg) translateY(0); } }
@keyframes ld-todo-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes ld-tick { 0% { opacity: 0; transform: scale(0.2) rotate(-40deg); } 100% { opacity: 1; transform: scale(1) rotate(-6deg); } }


/* ================================================================ smaller screens */
@media (max-width: 1500px) {
  html.ld-on #hud #hud-hints { max-width: calc(100vw - 720px); font-size: 13px; }
  .ld-hv-toast { max-width: calc(100vw - 640px); }
}
@media (max-width: 1100px) {
  html.ld-on #hud #hud-hints { display: none; }
}

/* phone held sideways (and any short window): wordmark left, the rest right */
@media (max-height: 560px) {
  .ld-col {
    width: 100%;
    min-height: 100%;
    padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }
  .ld-brand { flex: none; }
  .ld-wm { font-size: clamp(40px, 15vh, 70px); }
  .ld-brand { margin-bottom: 0; }
  .ld-panel { flex: 1; min-width: 0; max-height: calc(100vh - 24px); }
  .ld-gate-main { gap: 10px; }
  .ld-todo-h { font-size: 11px; margin-bottom: 5px; }
  .ld-todo-list { gap: 5px; }
  .ld-todo-list li { gap: 9px; }
  .ld-todo-n { width: 22px; height: 22px; border-radius: 6px; font-size: 14px; box-shadow: 0 2px 0 #3d7a22; }
  .ld-todo-t { font-size: 17px; }
  .ld-mode-stocks { padding: 10px 14px 11px 10px; border-radius: 14px; }
  .ld-mode-stocks .ld-mode-ic { width: 38px; height: 38px; padding: 7px; border-radius: 10px; }
  .ld-mode-stocks .ld-mode-t b { font-size: 24px; }
  .ld-mode-stocks .ld-mode-t small { font-size: 12px; }
  .ld-mode-free { padding: 7px 14px 8px 10px; }
  .ld-mode-free .ld-mode-t b { font-size: 17px; }
  .ld-modes { gap: 8px; }
  .ld-btn-big { font-size: 19px; padding: 12px 20px; }
  .ld-fine, .ld-note { font-size: 12px; }
  .ld-banner { font-size: 13px; padding: 5px 10px; }
  #ld-gate:not([data-screen='gate']) .ld-brand { display: none; }
  #ld-gate:not([data-screen='gate']) .ld-col { justify-content: center; }
  #ld-gate:not([data-screen='gate']) .ld-panel { max-width: 720px; }
  .ld-card { padding: 14px 18px 12px; max-height: calc(100vh - 24px); overflow: auto; }
  .ld-card h2 { font-size: 26px; margin: 6px 0; }
  .ld-lead { font-size: 15px; margin-bottom: 8px; }
  .ld-deal { gap: 7px; margin-bottom: 10px; }
  .ld-deal strong { font-size: 16px; }
  .ld-deal span { font-size: 13px; }
  .ld-hold-line { font-size: 17px; padding: 10px 12px; }
  .ld-mower-top { grid-template-columns: 96px 1fr; gap: 12px; margin-bottom: 6px; }
  .ld-preview { width: 96px; }
  .ld-input { font-size: 17px; padding: 5px 10px; }
  .ld-swatch { width: 28px; height: 28px; }
  .ld-stocks, .ld-card-mower .ld-stocks { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 5px; }
  .ld-stock { padding: 5px 8px; }
  .ld-stock b { font-size: 14px; }
  .ld-stock span { font-size: 11px; }
  .ld-btn-mow { font-size: 28px; padding: 10px 28px 12px; min-width: 150px; }
  .ld-card-mower .ld-mow-row,
  .ld-card-free .ld-mow-row {
    position: sticky;
    bottom: -12px;
    z-index: 2;
    margin: 8px -18px -12px;
    padding: 12px 18px 12px;
    background: linear-gradient(180deg, rgba(12, 15, 9, 0), rgba(12, 15, 9, 0.97) 28%);
  }
  .ld-stock i { position: static; margin-top: 3px; font-size: 8px; }
  .ld-keys { display: none; }
  .ld-card-modal { max-height: calc(100vh - 32px); overflow: auto; }
  .ld-wallet { padding: 7px 10px; }
  .ld-wallet-name { font-size: 15px; }
  .ld-wallet-name small { font-size: 12px; }
}

/* laptop heights: the cards get tighter so the mower card mostly fits */
@media (max-height: 860px) and (min-height: 561px) {
  #ld-gate:not([data-screen='gate']) .ld-wm { font-size: clamp(40px, 7vh, 64px); }
  .ld-card { padding: 18px 26px 14px; }
  .ld-card h2 { font-size: 30px; margin: 6px 0 8px; }
  .ld-mower-top { grid-template-columns: 130px 1fr; margin-bottom: 6px; }
  .ld-preview { width: 130px; }
  .ld-stock { padding: 6px 9px 5px; }
  .ld-btn-mow { font-size: 34px; padding: 12px 36px 14px; }
  .ld-card-mower .ld-mow-row,
  .ld-card-free .ld-mow-row { margin: 6px -26px 0; padding: 10px 26px; }
  .ld-todo-t { font-size: 25px; }
  .ld-todo-n { width: 31px; height: 31px; font-size: 19px; }
  .ld-todo-list { gap: 8px; }
  .ld-deal { gap: 10px; }
}

/* phone held upright: one column */
@media (max-width: 640px) and (min-height: 561px) {
  .ld-col { padding: 20px 16px; justify-content: flex-start; gap: 12px; }
  .ld-wm { font-size: 19vw; }
  /* the whole screen is text over the loop here: darken it evenly */
  .ld-gate-bg { background: linear-gradient(180deg, rgba(7, 10, 5, 0.55) 0%, rgba(7, 10, 5, 0.72) 45%, rgba(7, 10, 5, 0.88) 100%); }
  .ld-gate-main { gap: 16px; }
  .ld-todo-list { gap: 9px; }
  .ld-todo-list li { gap: 11px; }
  .ld-todo-n { width: 28px; height: 28px; border-radius: 8px; font-size: 17px; }
  .ld-todo-t { font-size: 22px; }
  .ld-modes { align-items: stretch; }
  .ld-mode-stocks, .ld-mode-free { width: 100%; }
  .ld-mode-stocks .ld-mode-t b { font-size: 26px; }
  .ld-mode-stocks .ld-mode-t small { font-size: 13px; }
  .ld-mode-stocks .ld-mode-ic { width: 44px; height: 44px; padding: 8px; }
  .ld-mode-go { display: none; } /* the title needs the room */
  .ld-card-explain .ld-cta .ld-btn-big { width: 100%; font-size: 21px; padding: 15px 14px; }
  .ld-mower-top { grid-template-columns: 72px 1fr; gap: 12px; }
  .ld-preview { width: 72px; }
  .ld-name-row { flex-wrap: wrap; gap: 5px 12px; }
  .ld-name-row .ld-input { flex: 1 1 100%; }
  .ld-paints { gap: 7px; }
  .ld-swatch { width: 29px; height: 29px; }
  .ld-card-mower .ld-stocks { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .ld-btn-mow { min-width: 0; flex: 1; }
  .ld-card { padding: 18px 16px; }
  .ld-card-mower .ld-mow-row,
  .ld-card-free .ld-mow-row { margin: 8px -16px 0; padding: 12px 16px; }
  .ld-card h2 { font-size: 30px; }
  .ld-deal strong { font-size: 18px; }
}

/* ================================================================ the loading screen
   The engine's #loading card, rewritten (tools/patches/10-core.mjs loading-card) and driven by
   client/ld/boot.js. Above everything until the world is built, warmed and drawing; every
   animation here is transform or opacity, so it keeps moving while the engine is busy. */
html body #loading {
  z-index: 200;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 24px;
  box-sizing: border-box;
  background:
    radial-gradient(120% 90% at 50% 38%, rgba(64, 120, 38, 0.55) 0%, rgba(20, 38, 14, 0.2) 45%, rgba(0, 0, 0, 0) 70%),
    repeating-linear-gradient(-32deg, #14240f 0 46px, #172a11 46px 92px),
    #0e180b;
  transition: opacity 0.6s ease;
  color: var(--ld-ink);
  font-family: var(--ld-sans);
}
html body #loading.done { opacity: 0; pointer-events: none; }
html body #loading.gone { display: none; }
/* the wordmark, one clean bar, what it's doing and how far (the user, 2026-09-24: "make the
   loading bar better, simpler", the tips gone). The fill slides in on transform, so it keeps
   moving on the compositor while the engine holds the main thread. */
.ldb { width: min(620px, 100%); text-align: center; }
.ldb-wm { font-family: var(--ld-bubble); font-size: clamp(64px, 12vw, 132px); line-height: 0.95; display: flex; justify-content: center; gap: 0.18em; margin-bottom: 34px; }
.ldb-wm span {
  display: inline-block;
  text-shadow:
    0 0.045em 0 var(--ld-cream), 0.045em 0 0 var(--ld-cream), -0.045em 0 0 var(--ld-cream), 0 -0.045em 0 var(--ld-cream),
    0.035em 0.035em 0 var(--ld-cream), -0.035em -0.035em 0 var(--ld-cream), 0.035em -0.035em 0 var(--ld-cream), -0.035em 0.035em 0 var(--ld-cream),
    0 0.11em 0 rgba(0, 0, 0, 0.55);
  animation: ldb-bob 2.4s ease-in-out infinite;
}
.ldb-lawn { color: var(--ld-grass); }
.ldb-dads { color: #22692a; animation-delay: -1.2s !important; }
.ldb-bar {
  position: relative;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 2px rgba(246, 236, 208, 0.16), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ldb-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  transform: translateX(calc((var(--p, 0) - 1) * 100%));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
  background: linear-gradient(180deg, #c4f08a 0%, #8fd65a 45%, #5fae36 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.ldb-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
html body #loading #loading-text { font-family: var(--ld-sans); font-weight: 600; font-style: normal; font-size: 18px; color: var(--ld-ink-dim); text-align: left; }
.ldb-pct { font-family: var(--ld-sans); font-weight: 800; font-size: 20px; color: var(--ld-grass-hi); min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.ldb-reload {
  display: none;
  margin: 22px auto 0;
  font-family: var(--ld-bubble);
  font-size: 24px;
  color: #2a1204;
  background: linear-gradient(var(--ld-orange-hi), var(--ld-orange));
  border: 0;
  border-radius: 14px;
  padding: 10px 30px 12px;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ld-orange-dk);
}
html body #loading.ldb-failed .ldb-reload { display: block; }
html body #loading.ldb-failed .ldb-fill { background: linear-gradient(180deg, #ffb08a, #e0603a); }

@keyframes ldb-bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }

@media (max-width: 600px) {
  .ldb-wm { margin-bottom: 22px; }
  .ldb-bar { height: 12px; }
  html body #loading #loading-text { font-size: 15px; }
  .ldb-pct { font-size: 17px; }
}
