/* ---------- tokens ---------- */
:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --ink: #241f1a;
  --muted: #6b625a;
  --line: #e9dfd2;
  --accent: #e8752a;
  --accent-ink: #ffffff;
  --soft: #fdeede;
  --danger: #d6453d;
  --danger-soft: #fdecea;

  --tier-bg: #1c1a18;
  --tier-row: #26231f;
  --tier-chip: #35312c;
  --tier-chip-ink: #f4efe8;
  --tier-note: #b7ada2;
  --goated: #ff7f7f;
  --mid: #ffdf7f;
  --dead: #8fa3bf;

  --paw-ink: rgba(120,85,55,.10);
  --radius: 14px;
  --display: "Fredoka", "Avenir Next Rounded", "Nunito", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  /* Cosy plum evening: mauve panels, cream text, candy-pink accent. */
  :root {
    --bg: #2a1f36;
    --surface: #35294a;
    --ink: #f8f0fb;
    --muted: #c6b6d6;
    --line: #4a3b60;
    --accent: #ff8fab;
    --accent-ink: #2a1f36;
    --soft: #3f2f56;
    --danger: #ff7a8a;
    --danger-soft: #4a2437;
    --tier-bg: #1d1528;
    --tier-row: #2c2140;
    --tier-chip: #3d2f57;
    --tier-chip-ink: #f8f0fb;
    --tier-note: #c6b6d6;
    --paw-ink: rgba(255, 190, 220, .08);
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 880px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: 1.75rem; display: flex; align-items: center; gap: .5em; margin-top: 0; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
ul { padding-left: 1.3em; }
strong { font-weight: 650; }
section { padding-block: 40px; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 10% -10%, var(--soft), transparent 60%),
    radial-gradient(800px 300px at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  padding-block: 56px 40px;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--accent);
  margin-bottom: .6em;
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 700; margin-bottom: .25em; }
.hero .walmoji { height: 1.15em; width: auto; vertical-align: -0.22em; margin-right: .05em; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.hero .aka { font-weight: 500; color: var(--muted); font-size: .55em; white-space: nowrap; }
.lede { font-size: 1.25rem; max-width: 40ch; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
h2 .anchor { margin-left: auto; font-size: .8em; font-weight: 500; color: var(--line); text-decoration: none; opacity: 0; transition: opacity .15s; }
h2:hover .anchor, h2 .anchor:focus-visible { opacity: 1; }
h2 .anchor:hover { color: var(--accent); }
section:target h2 { color: var(--accent); }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.hero-photo { display: block; width: 200px; max-width: 40vw; border-radius: 20px; overflow: hidden;
  border: 4px solid var(--surface); box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); transform: rotate(2deg); transition: transform .15s; }
.hero-photo:hover { transform: rotate(0deg) scale(1.02); }
.hero-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 560px) { .hero-photo { width: 120px; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.nav .wrap {
  display: flex; gap: 6px; overflow-x: auto; padding-block: 8px;
  scrollbar-width: none;
}
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a {
  flex: none;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: .9rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.nav a:hover { border-color: var(--accent); color: var(--accent); }
.nav a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nav .brand { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.nav .brand img { height: 1.4em; width: auto; }

/* ---------- section badges ---------- */
.badge {
  display: inline-grid; place-items: center;
  width: 1.6em; height: 1.6em;
  border-radius: 12px;
  background: var(--soft);
  font-size: .8em;
}

/* ---------- schedule table ---------- */
.table-scroll { overflow-x: auto; }
.schedule {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 520px;
}
.schedule th, .schedule td { padding: 14px 16px; text-align: left; vertical-align: top; }
.schedule thead th {
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  background: var(--soft);
}
.schedule tbody tr + tr td { border-top: 1px solid var(--line); }
.schedule .time { font-family: var(--display); font-weight: 700; color: var(--accent); white-space: nowrap; font-size: 1.1rem; }
.schedule .food { font-weight: 650; white-space: nowrap; }
.schedule .sub { font-weight: 400; color: var(--muted); }
.tag {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle;
}
.tag.auto { background: #e4f3e6; color: #24693a; }
.tag.you  { background: var(--soft); color: var(--accent); }
@media (prefers-color-scheme: dark) { .tag.auto { background: #274a3a; color: #a6f0c2; } }

/* ---------- rules / facts ---------- */
.rules, .facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li, .facts li {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px;
}
.rule-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); font-size: 1.4rem; }

/* ---------- callouts ---------- */
.callout {
  background: var(--soft);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin-block: 20px;
}
.callout p:last-child { margin-bottom: 0; }
.callout.danger { background: var(--danger-soft); border-left-color: var(--danger); }
.callout-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--danger); margin-bottom: .3em; }

/* ---------- tier lists ---------- */
.tierlist {
  background: var(--tier-bg);
  border-radius: var(--radius);
  padding: 6px;
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
}
.tier {
  display: grid;
  grid-template-columns: 112px 1fr;
  background: var(--tier-row);
  border-radius: 10px;
  overflow: hidden;
  min-height: 108px;
}
.tier-label {
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .05em;
  color: #1a1a1a; text-align: center; padding: 8px;
}
.tier-goated .tier-label { background: var(--goated); }
.tier-mid    .tier-label { background: var(--mid); }
.tier-dead   .tier-label { background: var(--dead); }
.tier-items {
  list-style: none; margin: 0; padding: 8px;
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; align-items: stretch;
}
.tier-items li {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 108px; min-height: 92px;
  background: var(--tier-chip); color: var(--tier-chip-ink);
  border-radius: 10px; padding: 8px 6px;
  text-align: center; font-size: .82rem; line-height: 1.2; font-weight: 600;
}
.tier-items .ico { font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.tier-items.pics li { width: 132px; }
.tier-items .ico-img { width: 100px; height: 100px; object-fit: contain; margin-bottom: 4px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
@media (max-width: 560px) {
  .tier-items.pics li { width: 104px; }
  .tier-items .ico-img { width: 78px; height: 78px; }
}
.tier-items .note { display: block; margin-top: 4px; font-weight: 400; font-size: .72rem; color: var(--tier-note); }
.tier-items li.ghost {
  width: auto; min-height: 0; background: transparent; color: var(--tier-note);
  font-weight: 400; font-style: italic; align-self: center; padding-inline: 10px;
}
@media (max-width: 560px) {
  .tier { grid-template-columns: 78px 1fr; min-height: 96px; }
  .tier-label { font-size: .95rem; letter-spacing: .02em; }
  .tier-items li { width: 92px; min-height: 84px; font-size: .76rem; }
  .tier-items .ico { font-size: 1.7rem; }
}

/* ---------- meows / soundboard ---------- */
.hint { color: var(--muted); margin-top: -.5em; }
.table-scroll + .hint { margin-top: 1em; font-size: .95rem; }
.meows { display: grid; gap: 12px; }
.meow {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.meow.playing { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.meow h3 { margin: 0 0 .2em; font-size: 1.15rem; }
.meow p { margin: 0; }
.meow .status { margin-top: .35em; font-size: .8rem; color: var(--muted); }
.meow.ready .status { color: var(--accent); }
.play {
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  transition: transform .12s, background .2s;
}
.play:hover:not(:disabled) { transform: scale(1.06); }
.play:active:not(:disabled) { transform: scale(.96); }
.play:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.play svg { width: 28px; height: 28px; fill: currentColor; }
.play .ic-stop { display: none; }
.meow.playing .play .ic-play { display: none; }
.meow.playing .play .ic-stop { display: block; }

.bars { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: none; gap: 3px; align-items: flex-end; height: 22px; }
.meow.playing .bars { display: flex; }
.bars i { width: 4px; height: 100%; background: var(--accent); border-radius: 2px; animation: bounce .8s ease-in-out infinite; transform-origin: bottom; }
.bars i:nth-child(2) { animation-delay: .15s; }
.bars i:nth-child(3) { animation-delay: .3s; }
.bars i:nth-child(4) { animation-delay: .45s; }
@keyframes bounce { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bars i { animation: none; transform: scaleY(.6); }
}

/* ---------- footer ---------- */
footer { padding-block: 40px; color: var(--muted); text-align: center; font-size: .9rem; }

/* ---------- schedule → stacked cards on phones ---------- */
@media (max-width: 640px) {
  .schedule { min-width: 0; }
  .schedule thead { display: none; }
  .schedule, .schedule tbody, .schedule tr, .schedule td { display: block; }
  .schedule tr { padding: 14px 16px; }
  .schedule tbody tr + tr { border-top: 1px solid var(--line); }
  .schedule tbody tr td, .schedule tbody tr + tr td { padding: 0; border-top: 0; }
  .schedule .time { display: inline; margin-right: 10px; }
  .schedule .food { display: inline; white-space: normal; }
  .schedule td:last-child { margin-top: 6px; color: var(--muted); }
}

/* ---------- gallery ---------- */
.gallery { columns: 3 220px; column-gap: 12px; }
.gallery figure {
  break-inside: avoid; margin: 0 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.gallery img, .gallery video { display: block; width: 100%; height: auto; background: #000; }
.gallery img { cursor: zoom-in; }
.gallery figcaption { padding: 10px 12px; font-size: .88rem; color: var(--muted); line-height: 1.35; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 900px); max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { display: block; max-width: 96vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; border-radius: 12px; cursor: zoom-out; }
.lightbox p { margin: 10px 0 0; text-align: center; color: #eee; font-size: .95rem; }
.lb-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--accent); color: var(--accent-ink); font-size: 1.5rem; line-height: 1; cursor: pointer;
}

/* ---------- spinning paw prints ---------- */
.paws { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; fill: var(--paw-ink); }
.paws .scroll { transform-box: fill-box; transform-origin: center; transform: rotate(calc(var(--scroll, 0) * var(--k, 0) * 1deg)); }
.paws use { transform-box: fill-box; transform-origin: center; animation: paw-spin 60s linear infinite; }
.paws use.rev { animation-direction: reverse; }
@keyframes paw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .paws use { animation: none; } .paws .scroll { transform: none; } }
