/* Self-hosted (kid-safe: no third-party font requests). Special Elite, SIL OFL 1.1. */
@font-face {
  font-family: 'Special Elite';
  src: url('/fonts/special-elite.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #7EC8E3;
  --sun: #FFE566;
  --grass: #8FCB6C;
  --cream: #FFF8E7;
  --ink: #3A2A12;
  --mute: #5C4A32;
  --coral: #FF8A65;
  --btn: #FF9F43;
  --shadow: 0 8px 0 #e08a2a;
  --radius: 28px;
}

/* Apixis world welcome card (nurserytoons theme) */
.world-welcome-card {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.world-card-inner h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--ink);
}

.world-card-inner p {
  margin: 0 0 1.5rem 0;
  color: var(--ink);
  opacity: 0.9;
}

.world-card-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: 'Special Elite', monospace;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.75rem;
}

.btn-text:hover {
  opacity: 0.8;
}


* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Special Elite', monospace;
  font-size: 20px;
  line-height: 1.45;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 10;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff6d8;
  border-bottom: 4px solid #f3d27a;
}

.brand {
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
}

nav { display: flex; gap: 16px; }
nav a {
  color: var(--mute);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 6px;
  min-height: 44px;
}
nav a:hover, nav a:focus { color: var(--ink); text-decoration: underline; }

/* Apixis Wallet balance pill (2026-09-27, Grok Bot) — js/wallet-pill.js */
.wallet-pill { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
nav .wallet-pill a { min-height: 0; }
.wallet-pill a.wallet-pill__amount {
  padding: 4px 12px;
  border: 2px solid #f3d27a;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
}
.wallet-pill a.wallet-pill__amount:hover { background: var(--sun); text-decoration: none; }
.wallet-pill a.wallet-pill__signin { font-size: 0.75rem; padding: 4px 2px; text-decoration: underline; }
.wallet-pill [hidden] { display: none; }
nav:has(.wallet-pill) { flex-wrap: wrap; align-items: center; }

main { max-width: 980px; margin: 0 auto; padding: 24px 20px 48px; }

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
}
@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr 1.1fr; }
}

.hero-art svg { width: 100%; height: auto; display: block; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 800;
  color: #c45c26;
  margin: 0 0 8px;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 12px; line-height: 1.1; }
h2 { font-size: 1.4rem; margin: 0 0 16px; }
.lead { margin: 0 0 12px; font-size: 1.15rem; color: var(--mute); }

.btn {
  display: inline-block;
  background: var(--btn);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  min-height: 56px;
  min-width: 56px;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn.big { font-size: 1.35rem; padding: 20px 36px; }
.btn.ghost {
  background: #fff;
  box-shadow: 0 6px 0 #e6d7b0;
}
.btn:active { transform: translateY(3px); box-shadow: 0 4px 0 #e08a2a; }
.btn[hidden] { display: none; }

.card-row { margin-top: 8px; }
.toon-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .toon-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .toon-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.toon-card {
  display: grid;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 0 #e6d7b0;
}
.more-row { margin-top: 40px; text-align: left; }
.toon-card strong { font-size: 1.4rem; }
.toon-card .badge {
  width: fit-content;
  background: #d9f0ff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 800;
}
.linkish { color: #c45c26; font-weight: 800; }

footer {
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--mute);
  font-size: 0.95rem;
}
footer a { color: var(--ink); font-weight: 700; }

.prose { max-width: 680px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 8px 0; }
.notice {
  background: #fff0c2;
  border: 3px solid #f3d27a;
  border-radius: 18px;
  padding: 14px;
  font-weight: 800;
}
.support-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.support-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}
.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border: 3px solid #e6d7b0;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}
.form-status { font-weight: 800; color: #3D8B4A; }
.queue { display: grid; gap: 16px; margin-top: 18px; }
.ticket { background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 6px 0 #e6d7b0; }
.ticket h3 { margin: 0 0 8px; }

.watch-main { text-align: center; }
.lede, .hint { color: var(--mute); }
.controls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0 8px; }
