/* Cuteness Overload — public site styles. No build step: edit directly. */

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/OpenSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/OpenSans-Bold.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #FFF7E8;
  --surface: #FFFCF5;
  --ink: #382336;
  --muted: #6B4B5B;
  --line: #E8D4C9;
  --peach: #F9DFCA;
  --action: #FFB66E;
  --care: #F389A4;
  --care-soft: #FCDEE4;
  --reward: #F9D780;
  --reward-soft: #FCEFC8;
  --discovery: #BBDDF4;
  --discovery-soft: #E1F0FA;
  --ready: #CEE4C9;
  --ready-soft: #E7F2E4;
  --evolution: #DBCDF1;
  --evolution-soft: #EEE7F8;
  --focus: #952F58;
  --danger-soft: #FBE1E1;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* URW Gothic Demi is the brand display face; it is not web-embedded (licence), so
     players who have it installed see it and everyone else gets a close geometric stand-in. */
  --font-display: "URW Gothic Demi", "URW Gothic", "Century Gothic", "Avenir Next", "Avenir", "Futura", "Arial Rounded MT Bold", "Open Sans", system-ui, sans-serif;
  --font-stage: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-btn: 14px;
  --r-card: 16px;
  --r-panel: 24px;
  --control: 44px;
  --wrap: 1120px;
  --shadow: 0 3px 0 var(--ink);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
.px, .pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw + 0.6rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--focus); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--ink); }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 10px 16px;
  border: 2px solid var(--ink); border-radius: var(--r-btn); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 32px, 760px); margin-inline: auto; }

.stage { font: 600 0.8125rem/1.4 var(--font-stage); font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: 0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 0.8125rem/1.3 var(--font-stage); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 9px; flex: none;
  background: url("/assets/img/pixel-heart.svg") no-repeat center / 10px 9px;
  image-rendering: pixelated;
}
.lede { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--control); padding: 10px 20px;
  border: 2px solid var(--ink); border-radius: var(--r-btn);
  background: var(--action); color: var(--ink);
  box-shadow: var(--shadow);
  font: 700 1rem/1.25 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease, background-color 120ms ease;
}
.btn:hover { background: #FFC488; color: var(--ink); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--peach); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.125rem; border-radius: 16px; }
.btn--quiet { background: var(--surface); }
.btn--quiet:hover { background: var(--canvas); }
.btn--care { background: var(--care); }
.btn--care:hover { background: #F6A0B6; }
.btn--sage { background: var(--ready); }
.btn--sage:hover { background: #DAEBD6; }
.btn--sm { min-height: 44px; padding: 8px 14px; font-size: 0.9375rem; }
.btn .heart { width: 15px; height: 14px; image-rendering: pixelated; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 12px; }
.brand img { display: block; }
.brand .brand-mark { width: 48px; height: 48px; image-rendering: pixelated; }
.brand .brand-word { width: 288px; height: auto; display: none; }
@media (min-width: 760px) { .brand .brand-word { display: block; } }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: var(--control); padding: 0 12px;
  color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 12px;
}
.site-nav a:not(.btn):hover { background: rgba(255, 182, 110, 0.25); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--care); text-underline-offset: 8px; }
@media (max-width: 380px) { .site-nav .btn { padding-inline: 12px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--canvas) url("/assets/img/meadow.png") center bottom / cover no-repeat;
  image-rendering: pixelated;
  margin-top: -76px; padding-top: 76px;
}
.hero-inner { position: relative; text-align: center; padding: 28px 0 0; image-rendering: auto; }
.hero-logo { margin: 0 auto 8px; }
.hero-logo img { width: min(84vw, 520px); height: auto; display: block; margin: 0 auto; }
.promise {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw + 0.7rem, 2.1rem); line-height: 1.2;
  margin: 8px auto 10px; max-width: 22ch; text-wrap: balance;
}
.hero .lede { margin: 0 auto 22px; color: var(--muted); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-bottom: 10px; }
.hero-note { font-size: 0.875rem; color: var(--muted); margin: 6px 0 0; }
.parade {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  gap: 0; margin-top: 18px; height: 140px; overflow: hidden;
}
.parade img { width: 128px; height: 128px; flex: none; margin: 0 -10px; image-rendering: pixelated; }
.parade img:nth-child(odd) { animation: bob 2.6s ease-in-out infinite; }
.parade img:nth-child(even) { animation: bob 2.6s ease-in-out -1.3s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 559px) { .parade img:nth-child(n+4) { display: none; } }
@media (min-width: 560px) and (max-width: 899px) { .parade img:nth-child(n+6) { display: none; } }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; width: 24px; height: 24px; background: url("/assets/img/pixel-sparkle.svg") no-repeat center / contain; image-rendering: pixelated; animation: twinkle 3.2s ease-in-out infinite; }
.sparkles i.h { width: 20px; height: 18px; background-image: url("/assets/img/pixel-heart.svg"); }
.sparkles i:nth-child(1) { left: 8%; top: 22%; }
.sparkles i:nth-child(2) { right: 9%; top: 30%; animation-delay: -1s; }
.sparkles i:nth-child(3) { left: 14%; top: 58%; animation-delay: -2s; }
.sparkles i:nth-child(4) { right: 15%; top: 64%; animation-delay: -0.5s; }
.sparkles i:nth-child(5) { left: 30%; top: 8%; animation-delay: -1.6s; width: 12px; height: 12px; }
.sparkles i:nth-child(6) { right: 28%; top: 12%; animation-delay: -2.4s; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }
@media (max-width: 600px) { .sparkles i:nth-child(n+5) { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head .lede { margin-inline: auto; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.hearts-rule {
  height: 18px; border: 0; margin: 0;
  background: url("/assets/img/pixel-heart.svg") repeat-x center / 20px 18px;
  image-rendering: pixelated; opacity: 0.55;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* Evolution viewer */
.evo {
  display: grid; gap: 28px; align-items: center;
  background: var(--evolution-soft); border: 2px solid var(--ink); border-radius: var(--r-panel);
  padding: 24px; box-shadow: 0 4px 0 var(--ink);
}
@media (min-width: 860px) { .evo { grid-template-columns: 1fr 1.05fr; padding: 40px 48px; } }
.evo-stage-view { position: relative; display: grid; place-items: center; min-height: 290px; }
.evo-stage-view::before {
  content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 45%, rgba(255, 255, 255, 0) 70%);
}
.evo-sprite { position: relative; width: 256px; height: 256px; image-rendering: pixelated; }
@media (min-width: 1000px) { .evo-sprite { width: 384px; height: 384px; } .evo-stage-view { min-height: 400px; } .evo-stage-view::before { width: 360px; height: 360px; } }
.evo-sprite.pop { animation: pop 380ms ease-out; }
@keyframes pop { 0% { transform: scale(0.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.evo-label { position: relative; text-align: center; margin-top: 6px; font-size: 0.95rem; }
.evo-steps { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin: 18px 0 8px; padding: 0; list-style: none; }
.evo-steps button {
  width: 100%; min-height: var(--control); padding: 0;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--surface);
  font: 700 0.9rem/1 var(--font-stage); color: var(--ink); cursor: pointer;
}
.evo-steps button:hover { background: #fff; }
.evo-steps button[aria-pressed="true"] { background: var(--evolution); box-shadow: inset 0 -3px 0 rgba(56, 35, 54, 0.25); }
.evo-steps button.done { background: #E9DFF7; }
.evo-steps button[aria-pressed="true"].done { background: var(--evolution); }

/* Feature rows */
.features { display: grid; gap: 28px; }
.feature {
  display: grid; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 16px;
}
.feature-art {
  display: grid; place-items: center; justify-self: center; border-radius: 18px; overflow: hidden;
  border: 2px solid var(--ink); background: var(--peach); max-width: 100%;
}
.feature-art img { display: block; width: 256px; height: 192px; image-rendering: pixelated; max-width: none; }
@media (min-width: 600px) { .feature-art img { width: 512px; height: 384px; } }
@media (min-width: 600px) and (max-width: 619px) { .feature-art img { width: 256px; height: 192px; } }
.feature-art--care { background: #FCDEE4; }
.feature-art--looks { background: var(--evolution); }
.feature-art--games { background: var(--discovery); }
.feature-art--collection { background: var(--reward); }
.feature-body { padding: 4px 8px 8px; }
.feature-body h3 { font-size: clamp(1.35rem, 1.4vw + 0.9rem, 1.75rem); }
.feature-body ul { margin: 0 0 4px; padding-left: 0; list-style: none; }
.feature-body li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.feature-body li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px;
  background: url("/assets/img/pixel-sparkle.svg") no-repeat center / contain; image-rendering: pixelated;
  filter: saturate(1.6) brightness(0.85);
}
.chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(56, 35, 54, 0.2);
  font: 700 0.75rem/1.6 var(--font-stage); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px;
}
.chip--care { background: var(--care-soft); }
.chip--looks { background: var(--evolution-soft); }
.chip--rooms { background: var(--reward-soft); }
.chip--games { background: var(--discovery-soft); }
.chip--nursery { background: var(--ready-soft); }
.chip--collection { background: var(--reward-soft); }
@media (min-width: 1060px) {
  .feature { grid-template-columns: 512px 1fr; padding: 20px 28px 20px 20px; gap: 40px; }
  .feature:nth-child(even) { grid-template-columns: 1fr 512px; padding: 20px 20px 20px 28px; }
  .feature:nth-child(even) .feature-art { order: 2; }
  .feature-body { padding: 0; }
}

/* Pet showcase */
.roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.pet-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 8px 8px 14px; text-align: center;
}
.pet-card .pet-field {
  width: 100%; display: grid; place-items: center; border-radius: 12px; padding: 4px 0 0;
  background: var(--peach);
}
.pet-card img { width: 128px; height: 128px; image-rendering: pixelated; display: block; transition: transform 160ms ease; }
.pet-card:hover img { transform: translateY(-3px) rotate(-2deg); }
.pet-card h3 { font-size: 1.05rem; margin: 10px 0 2px; }
.pet-card .stage { font-size: 0.75rem; }
.f-care { background: var(--care-soft) !important; }
.f-reward { background: var(--reward-soft) !important; }
.f-discovery { background: var(--discovery-soft) !important; }
.f-ready { background: var(--ready-soft) !important; }
.f-evolution { background: var(--evolution-soft) !important; }
.roster-more { text-align: center; margin-top: 22px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 0 18px;
}
.faq details[open] { border-color: #DCC1B3; box-shadow: 0 2px 0 var(--line); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; gap: 12px;
  font-weight: 700; padding: 12px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 8px; background: var(--peach); font: 700 1.1rem/1 var(--font-stage);
}
.faq details[open] summary::after { content: "–"; background: var(--evolution); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq .answer { padding: 0 0 16px; color: var(--ink); }
.faq .answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta {
  display: grid; gap: 28px; align-items: center;
  background: var(--care-soft); border: 2px solid var(--ink); border-radius: var(--r-panel);
  padding: 28px 22px; box-shadow: 0 4px 0 var(--ink); overflow: hidden;
}
.cta-art { justify-self: center; }
.cta-art img {
  display: block; width: min(100%, 300px); border-radius: 14px; border: 4px solid var(--surface);
  box-shadow: 0 0 0 2px var(--ink), 0 6px 0 2px var(--ink); transform: rotate(-3deg);
}
@media (min-width: 820px) { .cta { grid-template-columns: 1.2fr 1fr; padding: 44px 56px; } .cta-art img { width: 320px; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; background: var(--peach) url("/assets/img/meadow-ground.png") center top / auto 112px repeat-x; image-rendering: pixelated; padding-top: 112px; }
.site-footer .inner { background: var(--peach); image-rendering: auto; padding: 18px 0 32px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--control); padding: 0 10px; color: var(--ink); font-weight: 600; border-radius: 10px; }
.foot-links a:hover { background: rgba(255, 255, 255, 0.5); }
.foot-meta { margin: 0; font-size: 0.875rem; color: var(--muted); }
.foot-meta a { color: var(--ink); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 40px; height: 40px; image-rendering: pixelated; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 24px 0 36px; text-align: center; position: relative; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .lede { margin: 0 auto; }
.page-hero .peek { display: block; width: 128px; height: 128px; margin: 0 auto -6px; image-rendering: pixelated; }

/* ---------- Support / forms ---------- */
.help-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .help-grid { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 40px; } .help-grid .sticky { position: sticky; top: 20px; } }
.quick-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 40px; }
.quick-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.quick-card:hover { border-color: var(--ink); color: var(--ink); }
.quick-card .qi { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.quick-card .qi img { width: 20px; height: 18px; image-rendering: pixelated; }
.quick-card strong { display: block; margin-bottom: 2px; }
.quick-card span { font-size: 0.9rem; color: var(--muted); }

.panel {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-panel);
  padding: 22px 18px; box-shadow: 0 4px 0 var(--ink);
}
@media (min-width: 600px) { .panel { padding: 30px 32px; } }
.panel h2 { font-size: 1.6rem; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 700; }
.field .hint { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: var(--control); padding: 10px 12px;
  border: 2px solid #CDB3A6; border-radius: 12px; background: #fff; color: var(--ink);
  font: 400 1rem/1.45 var(--font-body);
}
.textarea { min-height: 150px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 6 4'%3E%3Cpath d='M0 0h6v1H5v1H4v1H3v1H3V3H2V2H1V1H0z' fill='%23382336'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
}
.input:hover, .select:hover, .textarea:hover { border-color: #B8988A; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--focus); background-color: #FFF6F8; }
.field .err { color: var(--focus); font-size: 0.875rem; font-weight: 600; margin: 0; }
.field .err:empty { display: none; }
.counter { font: 600 0.75rem/1 var(--font-stage); color: var(--muted); justify-self: end; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--focus); }
.row-2 { display: grid; gap: 18px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.details-plain { border: 1px dashed #CDB3A6; border-radius: 12px; padding: 0 14px; }
.details-plain summary { cursor: pointer; min-height: var(--control); display: flex; align-items: center; font-weight: 700; }
.details-plain[open] { padding-bottom: 14px; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: 14px; padding: 14px 16px; border: 1px solid rgba(56, 35, 54, 0.18);
  background: var(--discovery-soft);
}
.notice img { flex: none; width: 20px; height: 20px; margin-top: 3px; image-rendering: pixelated; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }
.notice--error { background: var(--danger-soft); border-color: rgba(149, 47, 88, 0.35); }
.notice--ok { background: var(--ready-soft); }
.notice--warm { background: var(--reward-soft); }
.notice[hidden] { display: none; }

.success { text-align: center; }
.success .peek { width: 128px; height: 128px; image-rendering: pixelated; display: block; margin: -8px auto 0; }
.ref-badge {
  display: inline-block; font: 700 1.4rem/1 var(--font-stage); letter-spacing: 0.06em;
  background: var(--reward); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 16px; margin: 6px 0 14px;
}
.save-link {
  display: block; text-align: left; margin: 16px 0; padding: 16px; border-radius: 16px;
  background: var(--reward-soft); border: 2px dashed var(--ink);
}
.save-link .url {
  display: block; word-break: break-all; font: 600 0.875rem/1.4 var(--font-stage); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0 12px; color: var(--ink);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Ticket thread (player) ---------- */
.ticket-head { display: grid; gap: 10px; margin-bottom: 18px; }
.ticket-head h1 { font-size: clamp(1.5rem, 2.5vw + 0.8rem, 2.1rem); margin: 0; overflow-wrap: anywhere; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: 0.875rem; }
.status {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px; border-radius: 999px;
  border: 1.5px solid var(--ink); font-weight: 700; font-size: 0.8125rem; color: var(--ink);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.status--open { background: var(--reward); }
.status--answered { background: var(--ready); }
.status--closed { background: var(--line); }
.thread { display: grid; gap: 14px; margin: 18px 0 26px; padding: 0; list-style: none; }
.msg { display: grid; gap: 4px; max-width: 92%; }
.msg .who { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.msg .who strong { color: var(--ink); }
.msg .who img { width: 24px; height: 24px; image-rendering: pixelated; }
.msg .bubble {
  white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface);
}
.msg--player { justify-self: end; }
.msg--player .who { justify-content: flex-end; }
.msg--player .bubble { background: #fff; border-bottom-right-radius: 4px; }
.msg--staff { justify-self: start; }
.msg--staff .bubble { background: var(--ready-soft); border-color: #B9D6B2; border-bottom-left-radius: 4px; }
.msg--note { justify-self: stretch; max-width: none; }
.msg--note .bubble { background: var(--reward-soft); border: 2px dashed #D9B24E; border-radius: 12px; }
.loading { display: flex; align-items: center; gap: 12px; padding: 28px 0; color: var(--muted); justify-content: center; }
.loading img { width: 64px; height: 64px; image-rendering: pixelated; animation: bob 1.2s ease-in-out infinite; }

/* ---------- Legal ---------- */
.legal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px 20px; }
@media (min-width: 700px) { .legal { padding: 40px 48px; } }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal h2:first-of-type { margin-top: 0.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal .updated { font: 600 0.875rem/1.4 var(--font-stage); color: var(--muted); }
.legal .toc { background: var(--canvas); border-radius: 14px; padding: 14px 18px; margin: 18px 0 8px; }
.legal .toc ol { margin: 6px 0 0; padding-left: 1.3em; columns: 2 220px; }
.legal .toc a { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--canvas); }
.table-scroll { overflow-x: auto; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 40px 0 10px; }
.lost img { width: 256px; height: 256px; image-rendering: pixelated; }
.lost .stage { display: block; margin-bottom: 10px; }
.center-row { justify-content: center; }
.lost .lede { margin-inline: auto; }
.notice + .muted { margin-top: 12px; }
