:root {
  color-scheme: light;
  --cream: #fbf5e9;
  --cream-deep: #f1e4cf;
  --paper: #fffaf1;
  --ink: #2d1a13;
  --muted: #715b50;
  --chocolate: #4c291b;
  --caramel: #c98547;
  --caramel-dark: #945724;
  --mint: #9bc5b0;
  --mint-dark: #40735e;
  --mint-pale: #e5f1e9;
  --rose: #e8b4a4;
  --line: #dfcdb7;
  --danger: #a43c32;
  --focus: #176b58;
  --shadow: 0 22px 70px rgb(72 39 20 / 13%);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 38px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 4%, rgb(255 255 255 / 72%), transparent 28rem),
    radial-gradient(circle at 92% 22%, rgb(155 197 176 / 18%), transparent 26rem),
    var(--cream);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--caramel-dark);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--chocolate);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  background: var(--chocolate);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

button:hover,
.button:hover {
  background: #663b28;
  color: #fff;
  box-shadow: 0 8px 24px rgb(76 41 27 / 20%);
  transform: translateY(-1px);
}

button.secondary,
.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--chocolate);
}

button.ghost,
.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--chocolate);
}

button.danger {
  background: var(--danger);
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  background: var(--mint);
  color: var(--chocolate);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(223 205 183 / 65%);
  background: rgb(251 245 233 / 87%);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--chocolate);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px 18px 14px 19px;
  background: var(--caramel);
  color: #fff8e8;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  transform: rotate(-5deg);
  box-shadow: inset 0 -5px 0 rgb(76 41 27 / 15%);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--chocolate);
}

.main-nav .nav-game {
  border: 1px solid var(--line);
  color: var(--chocolate);
}

.menu-toggle {
  display: none;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), 760px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section-compact {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  color: var(--mint-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentcolor;
  content: "";
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.9rem, 8vw, 6.6rem);
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: -0.05em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.72rem);
  letter-spacing: -0.025em;
}

.lead {
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(3.75rem, 9vw, 7.5rem);
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: -12rem;
  right: -20rem;
  width: 52rem;
  height: 52rem;
  border: 1px solid rgb(201 133 71 / 25%);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgb(201 133 71 / 4%),
    0 0 0 10rem rgb(155 197 176 / 5%);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(290px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.hero-grid > *,
.split > *,
.cookie-hero > *,
.profession-band > *,
.game-band > *,
.game-layout > * {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 span {
  display: block;
  color: var(--caramel-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.project-flag {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 48rem;
  margin-top: 2rem;
  border-left: 3px solid var(--mint-dark);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.hero-art-wrap {
  position: relative;
  min-height: 480px;
}

.hero-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.hero-art img {
  width: min(100%, 540px);
  filter: drop-shadow(0 30px 40px rgb(73 39 21 / 22%));
  transform: rotate(2deg);
  animation: float 6s ease-in-out infinite;
}

.orbit-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 18px;
  padding: 0.75rem 1rem;
  background: rgb(255 250 241 / 86%);
  box-shadow: var(--shadow);
  color: var(--chocolate);
  font-size: 0.83rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.orbit-card.one {
  top: 13%;
  right: 0;
  transform: rotate(4deg);
}

.orbit-card.two {
  bottom: 12%;
  left: 0;
  transform: rotate(-4deg);
}

.orbit-card.three {
  top: 47%;
  left: -1rem;
  transform: rotate(3deg);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.stat-strip > div {
  padding: 1.15rem 1rem;
  text-align: center;
}

.stat-strip > div + div {
  border-left: 1px solid var(--line);
}

.stat-strip strong {
  display: block;
  color: var(--chocolate);
  font-size: 1.05rem;
}

.stat-strip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.flavor-grid,
.feature-grid,
.steps,
.faq-grid,
.account-grid {
  display: grid;
  gap: 1rem;
}

.flavor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2.2rem;
}

.flavor-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.8rem);
  background: var(--paper);
  box-shadow: 0 10px 35px rgb(76 41 27 / 5%);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.flavor-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.flavor-card::after {
  position: absolute;
  top: 10%;
  right: -20%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint-pale);
  content: "";
  opacity: 0.65;
}

.flavor-card.mint::after {
  background: #dceee2;
}

.flavor-card img {
  position: relative;
  z-index: 1;
  width: min(100%, 370px);
  margin: -1rem auto 0.2rem;
  filter: drop-shadow(0 16px 22px rgb(76 41 27 / 18%));
}

.flavor-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 0.55rem;
}

.flavor-card p {
  position: relative;
  z-index: 2;
  color: var(--muted);
}

.product-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.35rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  background: rgb(255 255 255 / 55%);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.pill.pending {
  border-color: #d6b573;
  background: #fff2ce;
  color: #6f4c14;
}

.pill.verified {
  border-color: #9bc7ac;
  background: #e4f2e9;
  color: #295b47;
}

.pill.demo {
  border-color: var(--rose);
  background: #f8e3dc;
  color: #753a2e;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.story-visual {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 30%), transparent),
    var(--mint);
  box-shadow: var(--shadow);
}

.story-visual::before,
.story-visual::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.story-visual::before {
  inset: 11%;
  border: 2px dashed rgb(45 26 19 / 22%);
  animation: spin 38s linear infinite;
}

.story-visual::after {
  inset: 28%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.story-chip {
  position: absolute;
  z-index: 2;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  background: var(--paper);
  box-shadow: 0 10px 30px rgb(45 26 19 / 15%);
  color: var(--chocolate);
  font-size: 0.84rem;
  font-weight: 800;
}

.story-chip.a { top: 8%; left: 8%; }
.story-chip.b { top: 43%; right: 6%; }
.story-chip.c { bottom: 9%; left: 15%; }
.story-chip.d { top: 17%; right: 18%; }

.story-visual .brand-mark {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  border-radius: 26px 34px 28px 36px;
  font-size: 2.8rem;
  transform: translate(-50%, -50%) rotate(-7deg);
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.2rem;
  counter-reset: steps;
}

.step {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  counter-increment: steps;
}

.step::before {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-top: -2.65rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--caramel-dark);
  content: "0" counter(steps);
  font-size: 0.72rem;
  font-weight: 900;
}

.step h3 {
  font-size: 1.16rem;
}

.step p {
  color: var(--muted);
  font-size: 0.91rem;
}

.profession-band,
.game-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--chocolate);
  color: #fff8eb;
}

.profession-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 5rem);
}

.profession-band::after {
  position: absolute;
  right: -8rem;
  bottom: -15rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgb(255 255 255 / 3%);
  content: "";
}

.profession-band .lead {
  color: rgb(255 248 235 / 75%);
}

.program-code {
  color: var(--mint);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.program-side {
  position: relative;
  z-index: 1;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 24px;
  padding: 1.5rem;
  background: rgb(255 255 255 / 7%);
}

.program-side ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
  color: rgb(255 248 235 / 78%);
}

.game-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  background: var(--mint);
  color: var(--chocolate);
}

.game-band img {
  width: min(100%, 440px);
  margin: -1rem auto;
}

.game-band-copy {
  padding: clamp(2rem, 5vw, 4rem);
  padding-left: 0;
}

.faq-grid {
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 1.2rem 2rem 1.2rem 0;
  font-weight: 750;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  float: right;
  margin-right: -1.7rem;
  color: var(--caramel-dark);
  content: "+";
  font-size: 1.35rem;
}

details[open] summary::after {
  content: "−";
}

details p {
  padding-right: 2rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  gap: 2rem;
}

.footer-grid h3 {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.cookie-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(1rem, 6vw, 5rem);
  padding-block: clamp(2rem, 6vw, 5rem);
}

.cookie-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

.cookie-hero-art {
  position: relative;
  overflow: clip;
}

.cookie-hero-art img {
  width: min(96%, 520px);
  margin-inline: auto;
  filter: drop-shadow(0 28px 35px rgb(76 41 27 / 22%));
  animation: float 7s ease-in-out infinite;
}

.batch-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  background: var(--paper);
}

.batch-banner strong {
  display: block;
  color: var(--chocolate);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--paper);
}

.info-card h2,
.info-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.info-card.unverified {
  border-style: dashed;
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, rgb(201 133 71 / 3%) 12px 24px),
    var(--paper);
}

.review-shell {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 2rem;
  align-items: start;
}

.review-summary {
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--chocolate);
  color: #fff8eb;
}

.review-summary strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 3.2rem;
  line-height: 1;
}

.stars {
  color: #efd18b;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.review-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 4vw, 2.2rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.48rem;
  margin-bottom: 1rem;
}

.field > label,
.fieldset-title {
  color: var(--chocolate);
  font-size: 0.88rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbb59f;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(23 107 88 / 13%);
  outline: none;
}

.rating-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.rating-field legend {
  width: 100%;
  margin-bottom: 0.4rem;
  color: var(--chocolate);
  font-size: 0.88rem;
  font-weight: 750;
}

.rating-choice {
  position: relative;
}

.rating-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rating-choice span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
  font-weight: 800;
}

.rating-choice input:checked + span {
  border-color: var(--caramel-dark);
  background: var(--caramel);
  color: #fff;
}

.rating-choice input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.optional-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--paper);
}

.review-card blockquote {
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.review-card footer {
  color: var(--muted);
  font-size: 0.78rem;
}

.empty-state,
.error-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: rgb(255 250 241 / 55%);
  color: var(--muted);
}

.error-state {
  border-color: var(--rose);
  background: #fff2ee;
  color: #6f342a;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 1rem;
  bottom: 1rem;
  max-width: min(420px, calc(100% - 2rem));
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: var(--chocolate);
  box-shadow: var(--shadow);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--danger);
}

.content-page {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.content-page h1 {
  max-width: 18ch;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.callout {
  border-left: 4px solid var(--caramel);
  border-radius: 0 18px 18px 0;
  padding: 1rem 1.15rem;
  background: #fff4df;
  color: var(--chocolate);
}

.account-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-block: 2rem;
}

.role-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--paper);
}

/* Game */
.game-page {
  padding-block: clamp(2rem, 6vw, 5rem);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.game-stage {
  position: sticky;
  top: 100px;
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, #fffdf8 0 24%, transparent 25%),
    repeating-radial-gradient(circle at 50% 45%, transparent 0 44px, rgb(76 41 27 / 4%) 45px 46px),
    var(--mint-pale);
}

.cookie-canvas {
  position: relative;
  width: min(78%, 460px);
  aspect-ratio: 1;
  border-radius: 47% 53% 46% 54% / 52% 46% 54% 48%;
  background:
    radial-gradient(circle at 31% 25%, rgb(255 255 255 / 30%), transparent 16%),
    linear-gradient(145deg, #d4a165, #a76737 68%, #82502f);
  box-shadow:
    0 30px 50px rgb(76 41 27 / 24%),
    inset 0 -18px 28px rgb(76 41 27 / 16%),
    inset 0 15px 24px rgb(255 238 204 / 16%);
  transition: background 220ms ease, transform 220ms ease;
}

.cookie-canvas.choc {
  background:
    radial-gradient(circle at 31% 25%, rgb(255 255 255 / 18%), transparent 16%),
    linear-gradient(145deg, #8e5a3d, #573322 68%, #301b14);
}

.cookie-canvas.pale {
  background:
    radial-gradient(circle at 31% 25%, rgb(255 255 255 / 38%), transparent 16%),
    linear-gradient(145deg, #e5bf86, #c99558 68%, #9c6b3d);
}

.cookie-canvas .chip {
  position: absolute;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 46% 54% 50% 50%;
  background: #4c291b;
  box-shadow: inset 2px 2px 5px rgb(0 0 0 / 27%);
  transform: rotate(15deg);
}

.cookie-canvas .chip:nth-child(1) { top: 20%; left: 24%; }
.cookie-canvas .chip:nth-child(2) { top: 16%; right: 23%; }
.cookie-canvas .chip:nth-child(3) { top: 45%; left: 42%; width: 13%; }
.cookie-canvas .chip:nth-child(4) { bottom: 19%; left: 25%; }
.cookie-canvas .chip:nth-child(5) { right: 20%; bottom: 25%; }

.cookie-topping {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  pointer-events: none;
}

.cookie-topping.mint {
  background:
    radial-gradient(ellipse at 23% 31%, #c8e8d2 0 5%, #83b294 6% 11%, transparent 12%),
    radial-gradient(ellipse at 72% 25%, #b2dac3 0 5%, #72a687 6% 10%, transparent 11%),
    radial-gradient(ellipse at 55% 70%, #c8e8d2 0 5%, #83b294 6% 11%, transparent 12%);
  filter: drop-shadow(0 3px 2px rgb(45 26 19 / 22%));
}

.cookie-topping.caramel {
  background:
    linear-gradient(25deg, transparent 48%, #e7a94d 49% 52%, transparent 53%),
    linear-gradient(125deg, transparent 48%, #f2c16b 49% 52%, transparent 53%);
  opacity: 0.95;
}

.cookie-topping.cocoa {
  background-image:
    radial-gradient(circle, #321a12 0 1.2%, transparent 1.4%),
    radial-gradient(circle, #70432b 0 1%, transparent 1.2%);
  background-position: 0 0, 9px 11px;
  background-size: 18px 18px, 22px 22px;
  opacity: 0.7;
}

.cookie-face {
  position: absolute;
  inset: 0;
}

.cookie-face::before,
.cookie-face::after {
  position: absolute;
  top: 43%;
  width: 8%;
  height: 11%;
  border-radius: 50%;
  background: #291712;
  content: "";
}

.cookie-face::before { left: 34%; }
.cookie-face::after { right: 34%; }

.cookie-smile {
  position: absolute;
  top: 57%;
  left: 42%;
  width: 16%;
  height: 8%;
  border-bottom: 5px solid #291712;
  border-radius: 50%;
}

.game-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
  border: 0;
  padding: 0;
}

.choice-group legend {
  width: 100%;
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.choice-group label {
  position: relative;
}

.choice-group input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-group span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: var(--cream);
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 700;
}

.choice-group input:checked + span {
  border-color: var(--chocolate);
  background: var(--chocolate);
  color: #fff;
}

.choice-group input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.fantasy-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Admin */
.admin-body {
  min-height: 100vh;
  background: #f3eee7;
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 250px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid #d9cdbf;
  padding: 1.4rem;
  background: var(--chocolate);
  color: #fff8eb;
}

.admin-sidebar .brand {
  margin-bottom: 2rem;
  color: #fff8eb;
}

.admin-nav {
  display: grid;
  gap: 0.25rem;
}

.admin-nav button {
  justify-content: flex-start;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  background: transparent;
  color: rgb(255 248 235 / 75%);
  font-size: 0.88rem;
}

.admin-nav button:hover,
.admin-nav button.active {
  background: rgb(255 255 255 / 10%);
  color: #fff;
  box-shadow: none;
}

.admin-user {
  margin-top: auto;
  border-top: 1px solid rgb(255 255 255 / 14%);
  padding-top: 1rem;
  font-size: 0.8rem;
}

.admin-user button {
  width: 100%;
  margin-top: 0.75rem;
  background: rgb(255 255 255 / 10%);
}

.admin-main {
  min-width: 0;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-topbar h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.admin-card {
  border: 1px solid #d9cdbf;
  border-radius: 18px;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: #fffdf9;
  box-shadow: 0 8px 25px rgb(76 41 27 / 5%);
}

.admin-card + .admin-card {
  margin-top: 1rem;
}

.admin-card h2,
.admin-card h3 {
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.admin-card h2 {
  font-size: 1.45rem;
}

.admin-card h3 {
  font-size: 1.05rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric {
  border: 1px solid #ded2c5;
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
}

.metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e2d8cd;
  border-radius: 14px;
  padding: 0.9rem;
  background: #fff;
}

.admin-row h3 {
  margin-bottom: 0.22rem;
  font-size: 1rem;
}

.admin-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.row-actions button,
.row-actions .button {
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  font-size: 0.76rem;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-form .field.full {
  grid-column: 1 / -1;
}

.admin-form .field input,
.admin-form .field select,
.admin-form .field textarea {
  min-height: 42px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.8rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 0.2rem;
}

.admin-login {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 80% 20%, rgb(155 197 176 / 35%), transparent 30rem),
    var(--cream);
}

.login-card {
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.5rem, 5vw, 2.4rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.login-card h1 {
  max-width: none;
  font-size: 2.7rem;
}

.admin-status {
  min-height: 1.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-status.error {
  color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

th,
td {
  border-bottom: 1px solid #e4dad0;
  padding: 0.65rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code {
  overflow-wrap: anywhere;
  border-radius: 6px;
  padding: 0.1rem 0.3rem;
  background: #f1e9df;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem;
}

.inline-form .field {
  min-width: 160px;
  flex: 1;
  margin-bottom: 0;
}

.loading-skeleton {
  min-height: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee5dc, #f9f4ed, #eee5dc);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .profession-band,
  .cookie-hero,
  .game-band,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .hero-art-wrap {
    min-height: 410px;
  }

  .hero-art img {
    width: min(78vw, 470px);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }

  .faq-grid,
  .review-shell {
    grid-template-columns: 1fr;
  }

  .game-stage {
    position: relative;
    top: auto;
    min-height: 480px;
  }

  .game-band-copy {
    padding: 0 2rem 2rem;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-user {
    margin-top: 1rem;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 0.7rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--line);
    padding-top: 0.65rem;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    justify-content: center;
  }

  .hero {
    padding-top: 2.8rem;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .hero-art-wrap {
    min-height: 330px;
  }

  .orbit-card.three {
    display: none;
  }

  .flavor-grid,
  .info-grid,
  .reviews-grid,
  .account-grid,
  .footer-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .story-visual {
    min-height: 350px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .profession-band,
  .game-band {
    border-radius: 26px;
  }

  .optional-scores {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-stage {
    min-height: 390px;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 400px) {
  .container,
  .header-inner,
  .narrow {
    width: min(calc(100% - 1.2rem), var(--max));
  }

  .hero-actions .button,
  .game-actions button,
  .game-actions .button {
    width: 100%;
  }

  .rating-choice span {
    width: 42px;
    height: 42px;
  }

  .admin-main {
    padding: 0.75rem;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .toast,
  nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section,
  .cookie-hero {
    padding-block: 1.5rem;
  }

  a {
    color: #000;
  }
}
