:root {
  --bg: #fbf7ef;
  --surface: #ffffff;
  --ink: #2a211b;
  --muted: #7a6d62;
  --spot: #2a211b;
  --accent: #f2a7b5;   /* cow-nose pink */
  --bell: #d9a531;
  --line: #eadfce;
  --shadow: 0 2px 10px rgb(60 40 20 / .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130f; --surface: #221c17; --ink: #f3ebe0; --muted: #a8998a;
    --spot: #f3ebe0; --accent: #f2a7b5; --bell: #e6b84a; --line: #3a3029;
    --shadow: 0 2px 14px rgb(0 0 0 / .4);
  }
}
:root[data-theme="dark"] {
  --bg: #17130f; --surface: #221c17; --ink: #f3ebe0; --muted: #a8998a;
  --spot: #f3ebe0; --accent: #f2a7b5; --bell: #e6b84a; --line: #3a3029;
  --shadow: 0 2px 14px rgb(0 0 0 / .4);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 Nunito, system-ui, sans-serif;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

header.wrap { padding-top: 48px; padding-bottom: 28px; text-align: center; }
.logo {
  font: 700 clamp(2.6rem, 8vw, 4.5rem)/1 Fredoka, sans-serif;
  letter-spacing: -.02em; margin: 0;
}
.logo .cows {
  color: var(--bg); background: var(--spot);
  padding: .02em .22em .08em; border-radius: .35em; margin-left: .06em;
  display: inline-block; transform: rotate(-2deg);
}
.tag { color: var(--muted); margin: 14px 0 0; font-size: 1.05rem; }
.tag b { color: var(--accent); font-weight: 600; }

/* Row-by-row grid: reading order = the order set in the admin console. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding-bottom: 48px; }
.tile {
  display: block;
  border-radius: 14px; overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 24px rgb(60 40 20 / .16); outline: none; }
.tile:focus-visible { border-color: var(--accent); }
.tile img { display: block; width: 100%; height: auto; }

footer.wrap {
  border-top: 1px solid var(--line); color: var(--muted); margin-top: 8px;
  text-align: center; padding-top: 22px; padding-bottom: 36px; font-size: .9rem;
}
footer .bell { color: var(--bell); }
footer .updated { font-size: .85em; opacity: .75; }

.langs {
  position: absolute; top: 14px; right: 16px; display: flex; gap: 2px;
  font: 600 .8rem/1 Nunito, sans-serif;
}
.langs a {
  color: var(--muted); text-decoration: none; padding: 7px 9px; border-radius: 8px;
}
.langs a:hover { color: var(--ink); background: var(--line); }
.langs a[aria-current] { color: var(--bg); background: var(--spot); }

dialog {
  padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh;
}
dialog::backdrop { background: rgb(15 10 6 / .88); }
dialog img { display: block; max-width: 96vw; max-height: 92vh; border-radius: 10px; }
.close {
  position: fixed; top: 14px; right: 16px; width: 44px; height: 44px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(255 255 255 / .14); color: #fff; font-size: 22px;
}
.close:hover { background: rgb(255 255 255 / .26); }

/* ---- spicy tokens ---- */
.cta-wrap { text-align: center; margin: 22px 0 6px; }
.cta {
  font: 700 1.05rem/1.2 Fredoka, sans-serif; letter-spacing: .01em;
  color: #fff; background: linear-gradient(135deg, #f7931a, #e8562a);
  border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  display: inline-block; text-decoration: none;
  box-shadow: 0 6px 18px rgb(232 86 42 / .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 26px rgb(232 86 42 / .45); }
.cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.enter {
  display: block; width: fit-content; margin: 12px auto 0; color: var(--ink); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent);
}
.enter:hover { color: var(--accent); }

.token-form { max-width: 420px; margin: 18px auto 8px; text-align: left; }
.token-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.token-row { display: flex; gap: 8px; flex-wrap: wrap; }
.token-row input {
  flex: 1 1 200px; font: 600 1rem Nunito, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.token-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.token-row input[aria-invalid="true"] { border-color: #e8562a; }
.token-row .cta { padding: 12px 22px; font-size: 1rem; }
.token-err { color: #e8562a; font-weight: 600; margin: 8px 0 0; }
.no-token { margin: 26px 0 10px; }
.spicy .buy { font-size: .95rem; margin-bottom: 22px; }

/* ---- spicy page ---- */
.spicy { text-align: center; padding-top: 40px; padding-bottom: 60px; }
.spicy .big { font-size: 64px; line-height: 1; margin-bottom: 10px; }
.spicy h2 { font: 700 2rem/1.2 Fredoka, sans-serif; margin: 0 0 10px; }
.spicy p { color: var(--muted); max-width: 32em; margin: 0 auto 14px; }
.badge {
  display: inline-block; padding: 8px 14px; border-radius: 999px; font-weight: 600;
  background: rgb(247 147 26 / .15); color: #f7931a; margin-bottom: 18px;
}
.back { color: var(--ink); font-weight: 600; }


.spicy-grid { margin: 22px 0 30px; text-align: left; }
