/* touchinggrass.lol — Direction A Sunny Overworld. Tokens from design/Sprites.dc.html.
 *
 * Contrast contract (WCAG 2.2 SC 1.4.3 / 1.4.11). Two rules keep it true:
 *   1. Text NEVER sits on --sky except in --on-sky. Everything a person reads
 *      lives on a white card. #37a5f2 is a mid-tone (luminance .34): white gets
 *      2.68:1 and black 7.8:1, so no foreground reaches AA at body size.
 *   2. --primary is a FILL, --primary-ink is TEXT. #10a94a measures 3.09:1 both
 *      as ink on white and as a ground under white, so it may only carry meaning
 *      where 3:1 is the bar (dots, sprites, borders, large fills).
 * Every pair below is measured, not estimated. Recompute before changing one.
 */
:root {
  --sky: #37a5f2;
  --cloud-shade: #d6ecfa;      /* cloud pixel shading only — never text */
  --sky-text: #eaf6fd;         /* cloud/sprite highlight only — never text */
  --on-sky: #08304d;           /* 5.08:1 on --sky — the ONLY text colour allowed there */
  --card: #ffffff;
  --dead-bg: #fafafa;
  --chip: #f4f4f5;
  --hairline: #f0f0f2;
  --border: #e4e4e7;           /* decorative hairlines and dividers */
  --border-input: #818f9c;     /* 3.31:1 on --card — interactive control edges (SC 1.4.11) */
  --border-dead: #d4d4d8;
  --ink: #151a1f;              /* 17.5:1 — neutrals carry a few degrees of the sky hue */
  --secondary: #4a5966;        /* 7.21:1 — body copy */
  --muted: #5f7080;            /* 5.10:1 on card, 4.58:1 on the tinted podium row */
  --faint: #a1a1aa;            /* NON-TEXT ONLY: skull fill, disabled icon strokes */
  --primary: #10a94a;          /* FILL: dots, sprites, borders, large tints */
  --primary-ink: #0b7d37;      /* TEXT + CTA: 5.25:1 both on white and under white */
  --primary-ink-hover: #08682e;/* 6.93:1 — hover, and text on green tints */
  --live: #15a049;             /* 3.41:1 on --card — state dots are meaning, so they clear SC 1.4.11 */
  --grass-tint: #d7f2c2;
  --grass-bright: #7ed94f;
  --grass-mid: #4cc43e;
  --grass-dark: #2f9635;       /* sprite fill — for text on --grass-tint use --primary-ink-hover */
  --logo-grass: #b8f26e;       /* sprite/logo fill — never text */
  --rot: #f59e0b;
  --rot-text: #b45309;
  --rot-bg: #fffbeb;
  --rot-border: #fde68a;
  --flag: #dc2626;             /* FILL: 4.83:1 under white */
  --flag-ink: #c81e1e;         /* TEXT: 5.24:1 on --flag-bg */
  --flag-bg: #fef2f2;
  --flag-border: #fecaca;
  --tile-1: #d7f2c2;
  --tile-2: #cfeaf7;
  --tile-3: #e8f4c8;
  --tile-4: #fde8c8;
  --tile-5: #c9edd8;
  --tile-6: #e2f0cd;
  --shadow: 0 8px 24px rgba(13, 60, 100, 0.2);
  --shadow-nav: 0 4px 16px rgba(13, 60, 100, 0.18);
  --shadow-lg: 0 10px 32px rgba(13, 60, 100, 0.25);
  --radius-card: 20px;
  --radius-card-lg: 24px;
  --radius-tile: 10px;
  --radius-pill: 999px;
  --font: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mark: "Press Start 2P", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

/* Every hover used to snap: 0 transitions against ~20 :hover rules read as unfinished
   next to the considered cloud/folk/beckon motion. Colour only, so nothing animates a
   layout or paint-heavy property. */
a, .btn, .tab, .chip, .btn-claim, .btn-list, .btn-flag, .btn-delete, .step-btn,
.nav-link, .nav-user-signout, .list-clear, .row-details-link, .footer-nav-link,
.proof-gpx-drop, .notice-pill-close, .activity-chip {
  transition: background-color 130ms ease-out, color 130ms ease-out, border-color 130ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  a, .btn, .tab, .chip, .btn-claim, .btn-list, .btn-flag, .btn-delete, .step-btn,
  .nav-link, .nav-user-signout, .list-clear, .row-details-link, .footer-nav-link,
  .proof-gpx-drop, .notice-pill-close, .activity-chip { transition: none; }
}
html, body { margin: 0; min-height: 100dvh; max-width: 100%; overflow-x: hidden; }
html { background: var(--sky); }
body {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
svg { display: block; }
img { max-width: 100%; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { color: var(--primary-ink-hover); }
button, input, select { font-family: inherit; }
button { cursor: pointer; }

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: hidden;
}

.sky-clouds {
  position: absolute;
  inset: 0 0 auto;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.sky-clouds-lane {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.sky-clouds-track {
  display: flex;
  width: max-content;
  height: 100%;
}
.sky-clouds-set {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
}
.sky-clouds-far .sky-clouds-track {
  animation: cloud-drift 420s linear infinite;
}
.sky-clouds-near .sky-clouds-track {
  animation: cloud-drift 260s linear infinite;
}
.cloud { position: absolute; opacity: 0.95; }
.cloud-a { top: 84px; left: 18px; }
.cloud-b { top: 132px; right: 26px; width: 56px; height: 20px; opacity: 0.85; }
.cloud-c { display: none; }
.cloud-d { top: 44px; left: 46%; width: 48px; height: 17px; opacity: 0.62; }

@keyframes cloud-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .sky-clouds-far .sky-clouds-track,
  .sky-clouds-near .sky-clouds-track { animation: none; }
}

.nav {
  position: relative;
  z-index: 2;
  margin: 14px 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 12px;
  box-shadow: var(--shadow-nav);
}
.nav-start {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  min-width: 0;
}
.nav-brand:hover { color: var(--ink); }
.wordmark {
  display: none;
  font-family: var(--font-mark);
  font-size: 8px;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
.wordmark-grass { color: var(--primary-ink); }
.wordmark-tld { display: none; color: var(--muted); }
.nav-links { display: none; }
.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 16px;
}
.btn:hover { color: inherit; }
.btn-primary, .btn-login {
  background: var(--primary-ink);
  color: #ffffff;
  min-height: 44px;
  padding: 12px 18px;
}
.btn-primary:hover, .btn-login:hover {
  background: var(--primary-ink-hover);
  color: #ffffff;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary:disabled:hover, .btn-login:disabled:hover {
  background: var(--primary-ink);
  color: #ffffff;
}
.btn-outline:disabled:hover, .btn-secondary:disabled:hover {
  color: var(--primary-ink);
}
.btn-secondary {
  background: var(--card);
  color: var(--primary-ink);
  border-color: var(--border);
}
.btn-secondary:hover { color: var(--primary-ink-hover); }
.btn-outline {
  background: var(--card);
  color: var(--primary-ink);
  border-color: var(--primary-ink);
}
.btn-login-long { display: none; }
.nav-login-mobile { display: inline-flex; }

/* The hero is a card, not text on the sky: #37a5f2 caps white at 2.68:1, so nothing
 * readable can sit on it. DECISIONS #13 already says the language is "floating white
 * rounded cards over the sky" — the hero was the one surface that broke that rule. */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: clamp(16px, 1rem + 1.2vw, 28px);
  text-align: left;
}
.hero-title {
  margin: 8px 0 0;
  font-size: clamp(26px, 1.35rem + 2.2vw, 38px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}
.hero-price {
  color: var(--primary-ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.hero-title.is-beckoned .hero-price {
  animation: list-beckon 900ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .hero-title.is-beckoned .hero-price { animation: none; }
}
.hero-sub {
  margin: 8px 0 0;
  max-width: 62ch;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}
.list-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px auto 0;
  width: 100%;
  max-width: 720px;
}
.list-input, .list-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  appearance: none;
}
.list-input::placeholder { color: var(--muted); }
.list-select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.list-input.is-locked, .list-select.is-locked {
  background-color: var(--chip);
  color: var(--secondary);
  cursor: not-allowed;
}
.list-select.is-locked { background-image: none; }
.amount-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 4px;
  background: var(--card);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-input);
}
.step-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--chip);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.step-btn:hover { background: var(--hairline); }
/* The ring is a pseudo-element animated on transform + opacity. Animating box-shadow
   here repainted the element every frame, on the one animation that fires during
   checkout — the moment that most needs to stay smooth. */
.list-form.is-beckoned .amount-stepper,
.list-form.is-beckoned .list-submit {
  animation: list-beckon 900ms ease-out;
  position: relative;
}
.list-form.is-beckoned .amount-stepper::after,
.list-form.is-beckoned .list-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 8px rgba(11, 125, 55, 0.28);
  pointer-events: none;
  opacity: 0;
  animation: list-beckon-ring 900ms ease-out;
}
@keyframes list-beckon {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes list-beckon-ring {
  0% { opacity: 0; transform: scale(0.98); }
  40% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .list-form.is-beckoned .amount-stepper,
  .list-form.is-beckoned .list-submit { animation: none; }
  .list-form.is-beckoned .amount-stepper::after,
  .list-form.is-beckoned .list-submit::after { animation: none; opacity: 0; }
}
.amount-display {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary-ink);
}
.list-submit { width: 100%; }
.list-clear {
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.list-clear:hover { color: var(--ink); }
.list-form.is-raise-locked .list-clear { display: inline-flex; }
.hero-help {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
/* Bid → Touch → Rot → Dead, four across on one line. Soft fill and no border so the
 * strip reads as one grouped surface rather than four cards floating in the hero card. */
.hero-how {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.hero-how li {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-tile);
  background: var(--chip);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.hero-how strong {
  font-weight: 800;
  color: var(--primary-ink);
}

.counters {
  position: relative;
  z-index: 1;
  margin: 14px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  background: var(--card);
  border-radius: 16px;
  padding: 10px 4px;
  box-shadow: var(--shadow-nav);
}
.counter {
  text-align: center;
  padding: 0 2px;
  min-width: 0;
}
.counter + .counter { border-left: 1px solid var(--hairline); }
.counter-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.counter-pair {
  min-width: 0;
}
.counter-pair .counter-value {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  min-height: 34px;
}
/* Wraps as two whole phrases; nowrap here used to push the count out of its cell. */
.alive-rotted {
  display: inline;
}
.alive-rotted-part { white-space: nowrap; }
.alive-rotted .is-alive {
  color: var(--primary-ink);
  font-size: 15px;
  font-weight: 700;
}
.alive-rotted .is-muted {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}
.alive-rotted-slash { color: var(--hairline-strong, var(--muted)); }
.counter-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--live);
  flex-shrink: 0;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 14px;
  align-items: stretch;
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.board-col { flex: 1; min-width: 0; width: 100%; }

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tabs { display: flex; gap: 4px; flex-wrap: nowrap; }
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  min-height: 44px;
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  background: var(--primary-ink);
  color: #ffffff;
  border-color: var(--primary-ink);
  font-weight: 700;
}
.tab.is-active:hover { color: #ffffff; }

.chips {
  display: flex;
  gap: 6px;
  padding: 14px 14px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
/* Self-contained: .chip is also used outside .chips (product category), where a
 * block-level parent would otherwise stretch it to full width with UA margins. */
.chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  min-height: 40px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
}
.chip:hover { color: var(--ink); }
.chip.is-active {
  background: var(--chip);
  color: var(--ink);
  border-color: transparent;
  font-weight: 600;
}

.podium {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 14px 14px;
}
.board-rest { padding: 0 4px 8px; }
.board-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  color: inherit;
}
.board-row-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 14px;
  color: inherit;
}
.board-row-link:hover { color: inherit; }
.board-row.is-list {
  border-top: 1px solid var(--hairline);
}
.board-row.is-podium {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.board-row.is-podium .board-row-link { padding: 14px 14px 10px; }
.board-row.is-podium-1 { background: #e6f7ea; border-color: var(--primary); }
.board-row.is-podium-2 { background: #f0faf2; border-color: #c6ebd4; }
.board-row.is-podium-3 { background: #f6fbf7; border-color: #d7efe0; }
.board-row.is-podium.is-rotting { background: #fffbeb; border-color: #fde68a; }
.board-row.is-rotting:not(.is-podium) { background: var(--rot-bg); }
.board-row.is-dead { background: var(--dead-bg); }
.board-row.is-podium.is-dead { border-color: var(--border-dead); }

.row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 14px;
  flex-shrink: 0;
}
.board-row.is-list .row-actions { padding: 0 14px 14px; }
.claim-form {
  display: flex;
  align-items: center;
  margin: 0;
  flex-shrink: 0;
}
.claim-form .btn-claim { cursor: pointer; font-family: inherit; }

.row-thumb { display: none; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.notice-stack {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}
.notice-pill {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid;
  background: #ffffff;
  box-shadow: var(--shadow-nav);
}
.notice-pill.is-ok { border-color: #86efac; color: #166534; }
.notice-pill.is-info { border-color: #93c5fd; color: #1d4ed8; }
.notice-pill.is-warn { border-color: #fcd34d; color: #b45309; }
.notice-pill-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}
.notice-pill-body {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.35;
}
.notice-pill-body strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
}
.notice-pill-body span {
  display: block;
  font-weight: 500;
  color: #52525b;
}
.notice-pill-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: -2px -2px 0 4px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #71717a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.notice-pill-close:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
@media (min-width: 900px) {
  .notice-stack { top: 18px; right: 18px; }
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.nav-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.nav-user-signout {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-user-signout:hover { color: var(--ink); }

.rank-mark {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.rank-cup {
  flex-shrink: 0;
  image-rendering: pixelated;
}
.rank-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  background: transparent;
}
.board-row.is-podium .rank-badge { font-weight: 700; }
.board-row.is-podium-1 .rank-badge { background: #c6efd4; color: var(--primary-ink-hover); border: 1px solid var(--primary); }
.board-row.is-podium-2 .rank-badge { background: #ddf5e4; color: var(--primary-ink-hover); }
.board-row.is-podium-3 .rank-badge { background: #eaf8ee; color: var(--primary-ink-hover); }
.board-row.is-podium.is-rotting .rank-badge { background: #fde68a; color: var(--rot-text); border: 1px solid #fde68a; }
.board-row.is-dead .rank-badge { background: #e4e4e7; color: var(--muted); border-color: var(--border-dead); }

.favicon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--grass-tint);
}
.favicon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board-row.is-dead .favicon { background: #e4e4e7; border-color: var(--border-dead); }

.row-main { min-width: 0; flex: 1 1 auto; }
.row-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.row-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-name svg { flex-shrink: 0; }
.board-row.is-dead .row-name {
  color: var(--muted);
  text-decoration: line-through;
}
.tagline {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.board-row.is-dead .tagline { color: var(--muted); }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  background: var(--live);
}
.status-dot.is-fresh {
  animation: pulse 1.6s ease-in-out infinite;
}
.status-dot.is-rotting { background: var(--rot-text); }  /* matches .badge-idle; --rot itself is 2.15:1 */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.86); }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot.is-fresh { animation: none; }
}

.meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.meta-dot { opacity: 0.7; }
.row-details-link {
  align-self: center;
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.row-details-link:hover { color: var(--primary-ink-hover); }
.badge-gpx { color: var(--primary-ink); font-weight: 700; }
.badge-skip {
  padding: 1px 7px;
  background: var(--chip);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 600;
}
.badge-idle { color: var(--rot-text); font-weight: 700; }
.badge-dead { font-weight: 600; color: var(--muted); }

/* Content-sized and never shrinks. The shrink hack that used to live here is
   unnecessary now that the score compacts past $100k, and it let the nowrap price
   overflow its own box. */
.row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: 0 0 auto;
}
.score {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary-ink);
  white-space: nowrap;
  text-align: right;
}
.score.is-rot { color: var(--rot-text); }
.score.is-dead { color: var(--muted); }
.row-clicks {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row-side .row-clicks {
  display: flex;
  justify-content: flex-end;
  font-size: 11px;
}
.row-clicks-n { font-weight: 800; color: var(--ink); }
.board-row.is-dead .row-clicks,
.board-row.is-dead .row-clicks-n { color: var(--muted); }

.btn-claim {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 12px;
  min-height: 44px;
  background: var(--card);
  color: var(--primary-ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.btn-claim:hover { color: var(--primary-ink-hover); }
.btn-claim.is-lead {
  background: var(--primary-ink);
  color: #ffffff;
  border-color: var(--primary-ink);
}
.btn-claim.is-lead:hover { background: var(--primary-ink-hover); color: #ffffff; }
.btn-claim.is-dead { color: var(--muted); }
.btn-claim:disabled,
.btn-claim.is-closed {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-claim:disabled:hover,
.btn-claim.is-closed:hover { color: var(--primary-ink); }
.btn-claim.is-lead:disabled:hover,
.btn-claim.is-lead.is-closed:hover { background: var(--primary-ink); color: #ffffff; }

.pay-note {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.activity { display: none; }

.activity-strip {
  margin: 0 14px 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.activity-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.activity-strip-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.activity-viewport {
  overflow: hidden;
  margin-top: 10px;
}
.activity-track {
  display: flex;
  width: max-content;
  animation: activity-marquee var(--activity-duration, 40s) linear infinite;
}
.activity-set {
  display: flex;
  gap: 8px;
  padding-right: 8px;
  flex-shrink: 0;
}
@keyframes activity-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.activity-viewport:hover .activity-track,
.activity-viewport:focus-within .activity-track {
  animation-play-state: paused;
}
.activity-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--dead-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--secondary);
  white-space: nowrap;
}
a.activity-chip { color: var(--secondary); }
a.activity-chip:hover { color: var(--secondary); }
.activity-chip.is-rot { background: var(--rot-bg); }
.activity-chip.is-dead { background: var(--chip); color: var(--muted); }
.activity-chip-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-chip-icon img { width: 100%; height: 100%; object-fit: cover; }
.activity-chip-name {
  font-weight: 700;
  color: var(--ink);
  max-width: 20ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-chip-place { font-weight: 600; color: var(--primary-ink); font-variant-numeric: tabular-nums; }
.activity-chip-when { color: var(--muted); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .activity-strip .activity-track { animation: none; transform: none; }
  .activity-strip .activity-set[aria-hidden="true"] { display: none; }
  .activity-strip .activity-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .activity-strip .activity-viewport::-webkit-scrollbar { display: none; }
}

.board-empty {
  padding: 28px 18px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.board-empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }

.skip-link {
  position: absolute;
  left: 14px;
  top: -100%;
  z-index: 50;
  padding: 12px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--primary-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-nav);
}
.skip-link:focus-visible { top: 14px; }

.flag-dialog {
  width: min(420px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.flag-dialog::backdrop { background: rgba(8, 48, 77, 0.45); }
.flag-dialog-form { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.flag-dialog-title { margin: 0; font-size: 17px; font-weight: 800; }
.flag-dialog-lead { margin: 0; font-size: 13px; color: var(--secondary); }
.flag-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.flag-dialog-actions .btn { min-height: 44px; }

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

.product {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px 24px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  flex: 1 0 auto;
}
.product-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-sky);
  align-self: flex-start;
}
.product-back:hover { color: var(--ink); }
.product-hero, .proof-card { padding: 16px; }
.product-h { margin: 0; font-size: 14px; font-weight: 800; color: var(--ink); }
.product-lead { margin: 0; font-size: 12px; color: var(--muted); }
.product-foot { margin: 0; font-size: 11px; color: var(--muted); }
.product-ranks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.product-rank {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 14px 12px;
}
.product-rank-label {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-rank-n {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.product-rank-n.has-cup {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-rank-cup {
  flex-shrink: 0;
  image-rendering: pixelated;
}
.product-rank-sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.product-rank-link {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
}
.product-title {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
}
.product-by { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.product-handle { color: var(--primary-ink); font-weight: 600; }
.product-tagline { margin: 10px 0 0; font-size: 14px; color: var(--secondary); line-height: 1.45; }
.details-form { display: flex; flex-direction: column; gap: 12px; }
.details-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.details-input, .details-textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-input);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--card);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.details-textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.details-hint { font-size: 11px; font-weight: 500; color: var(--muted); }
.details-form .btn { align-self: flex-start; }
.product-ctas { display: flex; gap: 8px; margin-top: 12px; }
.product-ctas .btn { flex: 1; }
.product-meta {
  margin: 14px -16px -16px;
  background: var(--dead-bg);
  border-top: 1px solid var(--hairline);
}
.product-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-stats > div { padding: 10px 4px; text-align: center; }
.product-stats > div + div { border-left: 1px solid var(--hairline); }
.product-stat-n { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-stat-n.is-rot { color: var(--rot-text); }
.product-stat-l { font-size: 10px; font-weight: 500; color: var(--muted); }
.touch-clock {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
  padding: 16px 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--rot-border);
  background: var(--rot-bg);
}
.touch-clock.is-fresh {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.touch-clock.is-dead {
  border-color: var(--border);
  background: var(--dead-bg);
}
.product-meta .touch-clock {
  margin: 12px 12px 14px;
}
.touch-clock-art { flex: 0 0 auto; }
.touch-clock-sprite { display: block; image-rendering: pixelated; }
.touch-clock-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.touch-clock-copy strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--rot-text);
}
.touch-clock.is-fresh .touch-clock-copy strong { color: var(--primary-ink); }
.touch-clock.is-dead .touch-clock-copy strong { color: var(--secondary); }
.touch-clock-copy span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.touch-clock-detail {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #92610a;
}
.touch-clock.is-fresh .touch-clock-detail { color: var(--secondary); }
.touch-clock.is-dead .touch-clock-detail { color: var(--muted); }
.proof-card { display: flex; flex-direction: column; gap: 10px; }
.proof-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.product-title { overflow-wrap: anywhere; }
.product-ctas { flex-wrap: wrap; }
.proof-form-main { flex: 1; min-width: 0; display: flex; }
.proof-form-main .btn, .proof-skip .btn { width: 100%; min-height: 44px; }
.proof-skip { flex: 0 1 auto; }
.proof-gpx-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 0;
  padding: 14px 16px;
  min-height: 72px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  background: var(--dead-bg);
  cursor: pointer;
  color: var(--muted);
}
.proof-gpx-drop:hover,
.proof-gpx-drop:focus-visible,
.proof-gpx-drop:focus-within {
  border-color: var(--primary-ink);
  background: #f0fdf4;
  color: var(--secondary);
}
.proof-gpx-drop.is-drag {
  border-color: var(--primary-ink);
  border-style: solid;
  background: var(--grass-tint);
}
.proof-gpx-drop.is-ready {
  border-style: solid;
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.proof-gpx-drop-art { flex: 0 0 auto; image-rendering: pixelated; }
.proof-gpx-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.proof-gpx-drop-copy strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.proof-gpx-drop-copy span {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proof-gpx-drop.is-ready .proof-gpx-drop-copy span { color: var(--primary-ink); }
.proof-gpx-name, .proof-status { margin: 0; font-size: 12px; font-weight: 600; color: var(--rot-text); }
/* Stays in the accessibility tree so the live region is registered before its first
   message; the hidden attribute would de-register it. */
.proof-status.is-empty { height: 0; margin: 0; overflow: hidden; }
.notice-pill-action { flex-shrink: 0; align-self: center; min-height: 36px; padding: 8px 14px; font-size: 12px; }
.proof-status.is-ok { color: var(--primary-ink); }
.proof-status.is-err { color: var(--flag); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.proof-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.proof-tile.is-pending { border-color: var(--rot-border); }
.proof-tile.is-rejected { opacity: 0.65; }
.proof-tile.is-hidden { opacity: 0.65; border-color: var(--border-dead); }
.proof-tile.is-hidden .proof-tile-img { background: var(--chip); }
.proof-tile.is-hidden .proof-checking { color: var(--muted); }
.proof-flag,
.proof-delete { margin: 0 7px 8px; align-self: flex-start; min-height: 44px; padding: 8px 12px; }
.btn-delete {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--flag);
  font-size: 12px;
  font-weight: 700;
}
.btn-delete:hover { background: #fef2f2; }
.proof-place {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.proof-tile-meta { color: inherit; }
.proof-tile-img {
  position: relative;
  height: 88px;
  background: var(--grass-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.proof-tile.is-pending .proof-tile-img { background: var(--rot-bg); }
.proof-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.proof-checking {
  font-size: 11px;
  font-weight: 600;
  color: var(--rot-text);
  text-align: center;
  padding: 0 8px;
  line-height: 1.3;
}
.proof-tile-cap {
  padding: 6px 7px 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-ink);
  border-top: 1px solid var(--hairline);
  white-space: normal;
  line-height: 1.35;
}
.proof-tile.is-pending .proof-tile-cap { color: var(--rot-text); border-top-color: var(--rot-border); }
.proof-tile.is-rejected .proof-tile-cap { color: var(--muted); }
.proof-tile.is-skip { border-color: var(--rot-border); }
.proof-tile.is-skip .proof-tile-img { background: #fff1d6; }
.proof-tile.is-skip .proof-tile-cap { color: var(--rot-text); border-top-color: var(--rot-border); }
.proof-skip-art { display: block; image-rendering: pixelated; }
.proof-cooldown {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--rot-border);
  background: var(--rot-bg);
  color: var(--rot-text);
}
.proof-cooldown strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}
.proof-cooldown p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #a16207;
  font-variant-numeric: tabular-nums;
}
.bid-list { display: flex; flex-direction: column; }
.bid-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.bid-row:last-child { border-bottom: 0; }
.bid-amt { color: var(--primary-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.bid-when { color: var(--muted); }

.info {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 14px 24px;
  flex: 1 0 auto;
  min-width: 0;
}
.prose { padding: 22px 18px 28px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.prose h1 { margin: 0; font-size: clamp(22px, 1.2rem + 1.2vw, 28px); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.prose .lede { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.prose h2 { margin: 8px 0 0; font-size: 14px; font-weight: 800; color: var(--ink); }
.prose h3 { margin: 4px 0 0; font-size: 13px; font-weight: 800; color: var(--ink); }
.prose p, .prose li { margin: 0; font-size: 14px; color: var(--secondary); }
.prose ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.legal-updated { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.legal-address { font-style: normal; }

.btn-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--flag-ink);
  border: 1px solid var(--flag-border);
  padding: 8px 14px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: var(--flag-bg);
}
.btn-flag:hover { color: var(--flag-ink); }
.btn-flag:disabled { opacity: 0.55; cursor: default; }

.feed {
  position: relative;
  z-index: 1;
  padding: 16px 14px 24px;
  flex: 1 0 auto;
}
.feed-intro {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
}
.feed-intro-title { margin: 0; font-size: clamp(20px, 1.1rem + 1.4vw, 28px); font-weight: 800; color: var(--ink); text-wrap: balance; }
.feed-intro-sub { margin: 6px 0 0; font-size: 13px; font-weight: 500; color: var(--secondary); max-width: 62ch; }
.feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feed-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feed-photo {
  position: relative;
  height: 140px;
  background: var(--grass-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feed-photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.feed-photo-fallback { position: absolute; }
.feed-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.feed-app {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}
.feed-app:hover { color: var(--ink); }
.feed-favicon {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.feed-meta { margin: 0; font-size: 11px; color: var(--muted); }
.feed-card-body .btn-flag { align-self: flex-start; }

.meadow {
  position: relative;
  margin-top: auto;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.meadow-copy {
  padding: 14px 24px 8px;
  text-align: center;
}
.meadow-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-sky);
}
.meadow-by {
  margin-top: 2px;
  font-size: 11px;
  color: var(--on-sky);
}
.meadow-by a { color: var(--on-sky); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.meadow-by a:hover { color: var(--ink); }
/* Below 640px the header pill has no room for the section links, so the footer
   carries them. Every surface stays reachable at every width. */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 18px;
  padding: 6px 16px 2px;
  position: relative;
  z-index: 2;
}
.footer-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-sky);
}
.footer-nav-link:hover { color: var(--ink); }
.footer-nav-link.is-active { text-decoration: underline; text-underline-offset: 3px; }

.legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 10px;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.legal-links a { color: var(--on-sky); }
.legal-links a:hover { color: var(--ink); }
.legal-links span { color: var(--on-sky); opacity: 0.7; }
.meadow-foliage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px;
  margin-bottom: -2px;
}
.meadow-folk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
}
.meadow-folk-stage {
  position: absolute;
  inset: auto 0 0;
  height: 0;
}
.folk {
  position: absolute;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: none;
  image-rendering: pixelated;
}
.folk.is-out { display: block; }
.folk-frame-b { opacity: 0; }
.folk.is-out .folk-frame-a {
  animation: folk-a 3.2s steps(1, end) infinite var(--folk-delay, 0s);
}
.folk.is-out .folk-frame-b {
  animation: folk-b 3.2s steps(1, end) infinite var(--folk-delay, 0s);
}
@keyframes folk-a {
  0%, 52% { opacity: 1; }
  53%, 100% { opacity: 0; }
}
@keyframes folk-b {
  0%, 52% { opacity: 0; }
  53%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .folk.is-out .folk-frame-a { animation: none; opacity: 1; }
  .folk.is-out .folk-frame-b { animation: none; opacity: 0; }
}
.ground-band {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 64px;
  display: block;
  margin: 0;
  background: #8a5a32;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: content-box;
}

/* Tablet. Everything from 320px to 899px used to get the identical phone layout, so
   an iPad in portrait — the most common tablet viewport — hid the wordmark and the
   whole primary nav while half the screen sat empty. Content-driven: 640px is where
   the header pill fits the four section links again. */
@media (min-width: 640px) {
  .wordmark { display: inline; font-size: 9px; }
  .nav { padding: 9px 10px 9px 18px; gap: 12px; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .nav-login-mobile { display: none; }
  /* the header carries the sections now */
  .footer-nav { display: none; }

  .hero-how { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .board-row {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .board-row-link { align-items: flex-start; }
  .board-row.is-list .row-actions { padding: 0; }
  .row-actions {
    justify-content: flex-end;
    padding: 14px 14px 14px 0;
  }
  .board-row.is-podium .row-actions { padding-right: 14px; }

  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-ranks { gap: 12px; }
}

@media (min-width: 760px) {
  .list-form {
    flex-direction: row;
    align-items: center;
  }
  .list-input { flex: 1.4; min-width: 0; }
  .list-select { flex: 0 0 160px; width: auto; }
  .amount-stepper { flex: 0 0 160px; width: auto; }
  .list-submit { width: auto; flex: 0 0 auto; padding: 12px 20px; }
  .hero-how { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .sky-clouds { height: 220px; }
  .cloud-a { top: 100px; left: 120px; width: 112px; height: 40px; }
  .cloud-b { top: 150px; right: 180px; width: 70px; height: 25px; opacity: 0.85; }
  .cloud-c { display: block; top: 70px; right: 460px; width: 56px; height: 20px; opacity: 0.7; }
  .cloud-d { top: 52px; left: 36%; width: 56px; height: 20px; opacity: 0.58; }

  .nav {
    margin: 20px auto 0;
    width: 900px;
    max-width: calc(100% - 40px);
    padding: 10px 12px 10px 22px;
    gap: 16px;
    box-shadow: 0 6px 20px rgba(13, 60, 100, 0.22);
  }
  .nav-start { gap: 14px; }
  .nav-brand { gap: 10px; }
  .wordmark { display: inline; font-size: 10px; }
  .wordmark-tld { display: inline; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .btn-login { padding: 12px 20px; }
  .btn-login-short { display: none; }
  .btn-login-long { display: inline; }

  .hero {
    border-radius: var(--radius-card-lg);
    box-shadow: var(--shadow-lg);
  }
  .hero-title { line-height: 1.08; }
  .hero-sub { margin-top: 10px; font-size: 15px; }
  .list-form {
    flex-direction: row;
    align-items: center;
    max-width: none;
    margin-top: 20px;
  }
  .list-input { flex: 1.4; min-width: 0; }
  .list-select { flex: 0 0 180px; width: auto; }
  .amount-stepper { flex: 0 0 180px; width: auto; }
  .list-submit { width: auto; flex: 0 0 auto; padding: 12px 22px; }
  .list-clear { margin: 0; }
  .hero-help { font-size: 13px; }
  .hero-how {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .hero-how li { padding: 11px 13px; font-size: 12.5px; }
  .counters {
    width: 900px;
    max-width: calc(100% - 40px);
    margin: 16px auto 0;
    padding: 10px 12px;
  }
  .nav-login-mobile { display: none; }

  .content {
    margin: 16px auto 0;
    padding: 0;
    width: 900px;
    max-width: calc(100% - 40px);
  }
  .card {
    border-radius: var(--radius-card-lg);
    box-shadow: var(--shadow-lg);
  }

  .tab { padding: 10px 18px; }
  .chips { padding: 16px 18px 8px; }

  .podium { padding: 8px 18px 16px; }
  .board-rest { padding: 0 8px 10px; }
  .board-row {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .board-row-link {
    align-items: flex-start;
    gap: 12px;
    padding: 16px 14px;
  }
  .board-row.is-podium .board-row-link { padding: 16px; }
  .board-row.is-list { padding: 16px 18px; }
  .board-row.is-list .row-actions { padding: 0; }
  .row-actions {
    justify-content: flex-end;
    padding: 16px 14px 16px 0;
    gap: 8px;
  }
  .board-row.is-podium .row-actions { padding-right: 16px; }
  .rank-badge { width: 36px; height: 36px; font-size: 13px; }
  .favicon { width: 56px; height: 56px; border-radius: 14px; }
  .row-thumb {
    display: block;
    width: 44px;
    height: 44px;
    margin-right: 10px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--grass-tint);
  }
  .row-name { font-size: 16px; gap: 7px; }
  .status-dot { width: 7px; height: 7px; }
  .row-side { gap: 8px; }
  .score { font-size: 16px; }
  .btn-claim { padding: 10px 16px; }

  .activity-strip { margin: 0 18px 16px; }
  .activity { display: none; }

  .meadow-foliage { padding: 0 110px; position: relative; z-index: 1; }
  .ground-band { height: 76px; }
  .folk { bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
  .meadow-copy { display: block; padding-top: 18px; }
  .product { max-width: 640px; padding: 24px 0 48px; }
  .info { padding: 24px 0 48px; }
  .prose { padding: 28px 24px 32px; }
  .feed { max-width: 900px; margin: 0 auto; padding: 24px 0 48px; }
  .feed-intro { border-radius: var(--radius-card-lg); box-shadow: var(--shadow-lg); padding: 24px 28px; margin-bottom: 16px; }
  .feed-intro-sub { font-size: 14px; }
  .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .admin { max-width: 960px; padding: 24px 0 48px; }
}

.admin {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 14px 48px;
}
.admin-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-title {
  margin: 0;
  font-size: clamp(22px, 1.2rem + 1.6vw, 28px);
  font-weight: 800;
  color: var(--on-sky);
  letter-spacing: -0.03em;
}
.admin-title-sm { font-size: clamp(18px, 1rem + 0.8vw, 22px); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-stack { display: flex; flex-direction: column; gap: 14px; }
.admin-card { padding: 18px 18px 16px; }
.admin-signin { max-width: 420px; }
.admin-signin .btn-primary { margin-top: 4px; }
.admin-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
}
.admin-h3 {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.admin-lead, .admin-muted { color: var(--muted); font-size: 13px; }
.admin-lead { margin: -4px 0 14px; }
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-kpi {
  background: var(--chip);
  border-radius: 14px;
  padding: 12px 12px 10px;
}
.admin-kpi-value {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.admin-kpi-label, .admin-kpi-hint {
  font-size: 12px;
  color: var(--muted);
}
.admin-kpi-hint { margin-top: 2px; }
.admin-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
}
.admin-ext { font-size: 13px; font-weight: 600; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 9px 8px 9px 0;
  border-top: 1px solid var(--hairline);
  vertical-align: top;
}
.admin-table th { color: var(--muted); font-weight: 600; font-size: 12px; border-top: 0; }
.admin-table tr.is-hidden { opacity: 0.55; }
.admin-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  word-break: break-all;
}
.admin-photos { display: flex; flex-direction: column; gap: 14px; }
.admin-photo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.admin-photo:first-child { padding-top: 0; border-top: 0; }
.admin-photo-img {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--chip);
  border-radius: var(--radius-tile);
  overflow: hidden;
}
.admin-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.admin-photo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.admin-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--chip);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-status.is-verified { background: var(--grass-tint); color: var(--primary-ink-hover); }
.admin-status.is-pending { background: var(--rot-bg); color: var(--rot-text); }
.admin-status.is-rejected, .admin-status.is-hidden, .admin-photo.is-flagged .admin-flags {
  background: var(--flag-bg);
  color: var(--flag-ink);
}
.admin-bits { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.admin-bit {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--chip);
}
.admin-bit.is-ok { background: var(--grass-tint); color: var(--primary-ink-hover); }
.admin-bit.is-bad { background: var(--flag-bg); color: var(--flag-ink); }
.admin-verdict-reason, .admin-flags { margin: 4px 0 0; font-size: 13px; color: var(--secondary); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-action { display: inline-flex; }
.admin-action .btn { min-height: 44px; padding: 10px 14px; }
.admin-action .btn-primary { min-height: 44px; padding: 10px 14px; }
.btn-danger {
  background: var(--flag);
  color: #ffffff;
}
.btn-danger:hover { background: #b91c1c; color: #ffffff; }
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-top: 14px;
}
.admin-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.admin-filters select, .admin-filters input {
  min-height: 40px;
  border: 1px solid var(--border-input);
  border-radius: 12px;
  padding: 8px 10px;
  background: var(--card);
  color: var(--ink);
}

@media (min-width: 720px) {
  .admin-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-split { grid-template-columns: 1fr 1fr; gap: 24px; }
  .admin-photo { grid-template-columns: 180px 1fr; align-items: start; }
}
