:root {
  --ink: #3d1607;
  --ink-soft: #5a2c14;
  --text: #4e2c18;
  --cream: #fff4dd;
  --paper: #fbedd2;
  --paper-deep: #f3dcb2;
  --tomato: #e1371f;
  --tomato-deep: #a81c0e;
  --gold: #ffc847;
  --gold-deep: #e59a1c;
  --copper: #d9853c;
  --night: #2a0e04;
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 500 17px/1.6 var(--body);
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: var(--tomato-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.kicker {
  margin: 0 0 10px;
  font: 800 13px/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tomato);
}
h2 { font-size: clamp(32px, 7.4vw, 56px); letter-spacing: -.01em; }

/* Painted pill button: the in-game red pill, end caps kept round by border-image. */
.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 66px;
  padding: 0 14px 7px;
  border-style: solid;
  border-width: 0 36px;
  border-image: url("assets/btn_red.webp") 0 19% fill / 0 36px stretch;
  background: none;
  color: #fff7e8;
  font: 700 22px/1 var(--display);
  letter-spacing: .01em;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(110, 10, 0, .55);
  cursor: pointer;
  filter: drop-shadow(0 8px 10px rgba(60, 10, 0, .35));
  transition: transform .15s ease, filter .15s ease;
}
.btn-red:hover { transform: translateY(-2px) scale(1.02); filter: drop-shadow(0 12px 14px rgba(60, 10, 0, .4)); }
.btn-red:active { transform: translateY(2px) scale(.98); }
.btn-red:focus-visible, .chapter:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  padding: 10px 20px 11px;
  border-radius: 16px;
  background: rgba(32, 10, 2, .82);
  box-shadow: inset 0 0 0 1.5px rgba(255, 220, 160, .55), 0 6px 16px rgba(30, 8, 0, .3);
  color: #fff4dd;
  font: 700 21px/1.05 var(--display);
}
a.store { text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.store:hover, a.store:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(255, 220, 160, .8), 0 10px 20px rgba(30, 8, 0, .35); }
.store small { font: 700 11px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #f4cf8c; margin-bottom: 3px; }

/* Phones */
.phone {
  margin: 0;
  width: 290px;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #5b2a12, #250b03 60%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 210, 150, .35),
    0 0 0 3px var(--ink),
    0 30px 60px -12px rgba(40, 10, 0, .65);
}
.phone-screen { border-radius: 36px; overflow: hidden; aspect-ratio: 9 / 16; background: #cfe9a8; }
.phone-screen > * { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--night);
  color: var(--cream);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(42, 14, 4, .05) 0%, rgba(42, 14, 4, .1) 22%, rgba(42, 14, 4, .78) 48%, rgba(42, 14, 4, .92) 70%, var(--night) 100%);
}
.hero-rays {
  position: absolute;
  z-index: -1;
  left: 50%; top: 12%;
  width: 760px; height: 760px;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 226, 150, .55), rgba(255, 200, 90, .15) 60%, transparent);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
  padding: 28px 0 64px;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { width: min(560px, 96%); margin-bottom: 4px; }
.logo { width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(60, 15, 0, .45)); }
.tagline {
  margin: 34vw 0 12px;
  font: 700 clamp(30px, 8vw, 50px)/1.05 var(--display);
  color: #fff3d6;
  text-shadow: 0 3px 0 var(--ink), 0 0 24px rgba(255, 170, 60, .45);
}
.lede { max-width: 30em; margin-bottom: 24px; color: #fbe6c4; font-size: 17px; text-shadow: 0 1px 8px rgba(30, 8, 0, .6); }
.hero .stores { justify-content: center; margin-bottom: 18px; }
.hero-phone { flex: none; width: 262px; }

.float { display: none; position: absolute; z-index: 0; width: 88px; height: auto; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(40, 10, 0, .4)); animation: bob 6s ease-in-out infinite; }
.f1 { right: 4%; top: 64%; width: 96px; rotate: 14deg; }
.f2 { left: 2%; top: 74%; animation-delay: -2s; rotate: -18deg; }
.f3 { right: 6%; top: 88%; width: 70px; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -12px; } }

@media (min-width: 960px) {
  .hero { min-height: min(100svh, 900px); display: flex; align-items: center; }
  .hero-bg { object-position: 50% 62%; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(36, 11, 3, .92) 0%, rgba(36, 11, 3, .78) 34%, rgba(36, 11, 3, .2) 62%, rgba(36, 11, 3, .05) 100%),
      linear-gradient(180deg, transparent 70%, rgba(36, 11, 3, .6));
  }
  .float { display: block; }
  .hero-rays { left: 26%; top: 38%; width: 900px; height: 900px; opacity: .55; }
  .hero-inner { flex-direction: row; justify-content: space-between; padding: 56px 0; }
  .hero-copy { align-items: flex-start; text-align: left; max-width: 600px; }
  .hero h1 { width: 560px; margin-left: -14px; }
  .tagline { margin-top: 18px; font-size: 54px; }
  .lede { font-size: 19px; }
  .hero .stores { justify-content: flex-start; }
  .hero-phone { width: 320px; margin-right: 4%; rotate: 3deg; }
  .f1 { left: 46%; right: auto; top: 12%; width: 120px; }
  .f2 { left: 52%; top: 72%; width: 110px; }
  .f3 { right: 3%; top: 8%; width: 90px; }
}

/* How to play */
.howto {
  position: relative;
  padding: 76px 0 84px;
  background:
    linear-gradient(rgba(251, 237, 210, .8), rgba(251, 237, 210, .9)),
    url("assets/table.webp") center / cover;
  text-align: center;
}
.howto h2 { margin-bottom: 44px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-style: solid;
  border-width: 36px 34px 52px;
  border-image: url("assets/tile.webp") 12% 12% 18% fill / 36px 34px 52px stretch;
  padding: 12px 6px 0;
  filter: drop-shadow(0 16px 20px rgba(80, 35, 5, .22));
}
.step img { height: 190px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 18px; }
.step img.tray { height: auto; width: 100%; margin: 10px 0 24px; }
.step img.win { height: 230px; margin-top: -8px; filter: drop-shadow(0 10px 14px rgba(80, 30, 5, .35)); }
.step h3 { font-size: 27px; margin-bottom: 8px; }
.step p { margin: 0; max-width: 22em; font-size: 16px; }
.num {
  position: absolute;
  top: -44px; left: -40px;
  display: grid;
  place-items: center;
  width: 70px; height: 64px;
  padding-top: 8px;
  background: url("assets/s_tomato.webp") center / contain no-repeat;
  font: 700 28px/1 var(--display);
  color: #fff6e6;
  text-shadow: 0 2px 0 rgba(110, 10, 0, .7);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .step { height: 100%; }
}

/* Level 2 dare */
.dare {
  position: relative;
  overflow: clip;
  padding: 84px 0 96px;
  color: #fbe4bf;
  background:
    radial-gradient(55% 60% at 72% 50%, rgba(255, 190, 70, .22), transparent 70%),
    linear-gradient(90deg, rgba(42, 14, 4, .9) 0%, rgba(42, 14, 4, .55) 45%, rgba(42, 14, 4, .2) 100%),
    url("assets/glow.webp") 70% 40% / cover var(--night);
}
.dare h2 { color: #fff1d2; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); margin-bottom: 22px; }
.dare h2 span { display: inline-block; color: var(--gold); font-size: 1.18em; text-shadow: 0 4px 0 var(--tomato-deep), 0 0 30px rgba(255, 180, 60, .5); }
.dare .kicker { color: var(--gold); }
.dare p { font-size: 18px; max-width: 30em; }
.dare strong { color: #fff; }
.dare-tools { margin-bottom: 26px; }
.share-note { min-height: 1.5em; margin-top: 12px; font-size: 15px; color: var(--gold); }
.dare-grid { display: grid; gap: 48px; }
.dare-phones { display: flex; justify-content: center; align-items: flex-start; }
.phone.small { width: min(46vw, 250px); padding: 8px; border-radius: 34px; }
.phone.small .phone-screen { border-radius: 27px; }
.phone figcaption {
  position: absolute;
  left: 50%; bottom: -20px;
  translate: -50% 0;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 99px;
  background: var(--cream);
  color: var(--ink);
  font: 700 17px/1 var(--display);
  box-shadow: 0 0 0 3px var(--ink), 0 6px 12px rgba(0, 0, 0, .3);
}
.phone figcaption span { font: 800 12px/1 var(--body); color: var(--tomato); margin-left: 4px; }
.phone.small { position: relative; }
.tilt-l { rotate: -6deg; margin-right: -22px; margin-top: 30px; }
.tilt-r { rotate: 5deg; z-index: 1; }
.tilt-r figcaption { background: var(--gold); }
@media (min-width: 900px) {
  .dare-grid { grid-template-columns: 1fr 1.05fr; align-items: center; }
  .phone.small { width: 280px; }
}

/* Today's Menu */
.menu {
  overflow: clip;
  padding: 84px 0 104px;
  background:
    linear-gradient(rgba(251, 237, 210, .84), rgba(243, 220, 178, .93)),
    url("assets/table.webp") center / cover;
}
.menu-grid { display: grid; gap: 44px; }
.menu-copy h2 { margin-bottom: 20px; }
.menu-copy p { max-width: 30em; font-size: 18px; }
.menu-phones { display: flex; justify-content: center; align-items: flex-start; }
.menu .phone.small { width: 36vw; padding: 6px; border-radius: 24px; }
.menu .phone.small .phone-screen { border-radius: 19px; }
.menu .tilt-l { margin: 40px -8vw 0 0; }
.menu .tilt-r { margin: 40px 0 0 -8vw; rotate: 6deg; z-index: 0; }
.menu .mid { z-index: 1; }
.menu .phone figcaption { padding: 6px 11px; font-size: 13px; bottom: -16px; }
.menu .phone figcaption span { display: none; }
.menu .phone figcaption span.always { display: inline; }
@media (min-width: 600px) {
  .menu .phone.small { width: 230px; padding: 8px; border-radius: 34px; }
  .menu .phone.small .phone-screen { border-radius: 27px; }
  .menu .tilt-l { margin-right: -36px; }
  .menu .tilt-r { margin-left: -36px; }
  .menu .phone figcaption { padding: 7px 16px; font-size: 17px; bottom: -20px; }
  .menu .phone figcaption span { display: inline; }
}
@media (min-width: 1000px) {
  .menu-grid { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 40px; }
  .menu .phone.small { width: 250px; }
}

/* World tour */
.world { padding: 84px 0 90px; text-align: center; background: linear-gradient(var(--paper), var(--paper-deep)); }
.world .sub { max-width: 38em; margin: 14px auto 36px; }
.chapters {
  list-style: none;
  margin: 0;
  padding: 6px 16px 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 320px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.chapters::-webkit-scrollbar { display: none; }
.chapters li { scroll-snap-align: start; }
.chapter {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--night);
  color: #fff4dd;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 0 0 5px #fff4dd, 0 0 0 8px var(--ink), 0 18px 26px -8px rgba(70, 25, 0, .45);
  margin: 8px;
  width: calc(100% - 16px);
}
.chapter img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.chapter:hover img { transform: scale(1.05); }
.ch-label {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 46px 18px 16px;
  background: linear-gradient(transparent, rgba(30, 9, 2, .88) 55%);
}
.ch-num { font: 800 12px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.ch-name { font: 700 22px/1.1 var(--display); text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.ch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 22px 22px;
  background: rgba(36, 11, 3, .86);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .25s ease;
}
.ch-label { transition: opacity .25s ease; }
.chapter[aria-expanded="true"] .ch-reveal, .chapter:focus-visible .ch-reveal { opacity: 1; }
.chapter[aria-expanded="true"] .ch-label, .chapter:focus-visible .ch-label { opacity: 0; }
@media (hover: hover) {
  .chapter:hover .ch-reveal { opacity: 1; }
  .chapter:hover .ch-label { opacity: 0; }
}
.ch-reveal .rarity { font: 800 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.dish-name { font: 700 28px/1.05 var(--display); color: #fff6e4; }
.ch-reveal .native { font: 600 16px/1.3 var(--display); color: #f6c98a; }
.ch-reveal .fact { margin-top: 6px; font-size: 15px; line-height: 1.45; color: #fde9c8; }
.ch-reveal .menu { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: #c9a77c; }
@media (min-width: 1000px) {
  .chapters {
    width: min(1320px, 100% - 48px);
    margin-inline: auto;
    padding: 0;
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-columns: auto;
    gap: 22px;
    overflow: visible;
  }
  .ch-name { font-size: 19px; }
  .ch-reveal { padding: 18px; gap: 4px; }
  .dish-name { font-size: 23px; }
  .ch-reveal .fact { font-size: 13.5px; }
  .ch-reveal .menu { display: none; }
}

/* Cookbook */
.cookbook { padding: 84px 0 96px; background: var(--paper-deep); }
.cook-grid { display: grid; gap: 40px; }
.cook-copy p { max-width: 30em; }
.cook-copy h2 { margin-bottom: 16px; }
.dish-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  max-width: 470px;
  margin-top: 26px;
  border-style: solid;
  border-width: 26px 26px 40px;
  border-image: url("assets/tile.webp") 12% 12% 18% fill / 26px 26px 40px stretch;
  filter: drop-shadow(0 16px 20px rgba(80, 35, 5, .25));
}
.dish-card img { width: 140px; height: 140px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px var(--ink), 0 0 22px rgba(255, 190, 60, .7); }
.dish-card .rarity { font: 800 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.dish-card h3 { font-size: 28px; margin-top: 6px; }
.dish-card .native { margin: 0 0 6px; font: 600 16px/1.2 var(--display); color: var(--copper); }
.dish-card .fact { margin: 0; font-size: 15px; line-height: 1.45; }
@media (max-width: 480px) {
  .dish-card { grid-template-columns: 104px 1fr; gap: 14px; border-width: 22px 20px 36px; }
  .dish-card img { width: 104px; height: 104px; border-radius: 14px; }
  .dish-card h3 { font-size: 24px; }
  .dish-card .fact { font-size: 14px; }
}
.legend { list-style: none; display: flex; gap: 18px; margin: 30px 0 0; padding: 0; font: 700 14px/1 var(--body); color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: #fff3dc; box-shadow: 0 0 0 2px var(--ink-soft); }
.legend .rare::before { background: var(--copper); }
.legend .legendary::before { background: var(--gold); box-shadow: 0 0 0 2px var(--ink), 0 0 8px rgba(255, 190, 60, .9); }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumbs li { aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2px #fff3dc, 0 0 0 4px var(--ink-soft); transition: transform .2s ease; }
.thumbs li.rare { box-shadow: 0 0 0 2px var(--copper), 0 0 0 4px var(--ink-soft); }
.thumbs li.legendary { box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--ink), 0 0 16px rgba(255, 190, 60, .8); }
.thumbs li:hover { transform: scale(1.12); z-index: 1; position: relative; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .cook-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  .thumbs { gap: 11px; }
}

/* Follow */
.follow { position: relative; isolation: isolate; overflow: clip; padding: 90px 0 100px; text-align: center; }
.follow-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.follow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 45%, rgba(255, 244, 221, .93), rgba(255, 236, 200, .72)); }
.follow-inner { display: flex; flex-direction: column; align-items: center; }
.follow-logo { width: min(380px, 80%); height: auto; margin-bottom: 18px; filter: drop-shadow(0 10px 14px rgba(80, 25, 0, .3)); }
.follow h2 { margin-bottom: 14px; }
.follow p { max-width: 30em; margin-bottom: 26px; }

.foot { background: var(--night); color: #d9b98e; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: #fff1d6; text-decoration: none; font-weight: 700; }
.foot a:hover { color: var(--gold); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .btn-red, .chapter img, .thumbs li, .ch-reveal { transition: none; }
}

/* Privacy page */
.legal { background: var(--paper); }
.legal-head { padding: 22px 16px 8px; text-align: center; background: linear-gradient(var(--paper-deep), var(--paper)); }
.legal-head img { width: 220px; height: auto; margin-inline: auto; }
.legal-body { max-width: 720px; padding: 24px 0 72px; }
.legal-body h1 { font-size: clamp(34px, 7vw, 48px); margin-bottom: 6px; }
.legal-body h2 { font-size: 24px; margin: 34px 0 8px; }
.updated { color: var(--copper); font-weight: 700; }
