/* OWNED BY: toys builder. Game, Clankerizer, newsletter. Mobile first; uses core's tokens with fallbacks. */
.toy {
  --t-blue: var(--blue, #1f4fd1);
  --t-orange: var(--orange, #f28c28);
  --t-cream: var(--cream, #fbf3e4);
  --t-ink: var(--ink, #16181d);
  --t-radius: var(--radius, 16px);
  --t-green: #1f9d55;
  --t-red: #d93a3a;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}
/* Cards are light "stickers" in both colour schemes, so their insides use fixed light-palette colours. */
.toy-card, .toy-passage, .toy-reveal, .toy-disclaimer, .toy-cz-form textarea, .toy-nl-row input { color: #16181d; }
/* Plain links on those light cards: site.css's dark-mode --link is a pale blue meant for dark surfaces. */
.toy-card a:not(.toy-btn), .toy-reveal a, .toy-disclaimer a { color: #0045c0; }
.toy * { box-sizing: border-box; }
.toy-hero { text-align: center; margin: 8px 0 20px; }
.toy-kicker {
  display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px;
  background: var(--t-orange); color: var(--t-ink); font-weight: 800; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em; border: 2px solid var(--t-ink);
}
.toy-hero h1 { font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.02; margin: 0 0 10px; font-weight: 900; letter-spacing: -.02em; }
.toy-hl { color: var(--t-blue); }
.toy-lede { font-size: 1.1rem; margin: 0 auto; max-width: 34em; }
.toy-card {
  background: #fff; border: 3px solid var(--t-ink); border-radius: var(--t-radius);
  box-shadow: 6px 6px 0 var(--t-ink); padding: 18px; margin: 0 0 20px;
}
.toy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; font: inherit; font-weight: 800; font-size: 1rem;
  color: #fff; background: var(--t-blue); border: 3px solid var(--t-ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--t-ink); cursor: pointer; text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease;
}
.toy-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--t-ink); }
.toy-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--t-ink); }
.toy-btn:disabled { opacity: .55; cursor: default; transform: none; }
.toy-btn:focus-visible { outline: 3px solid var(--t-orange); outline-offset: 2px; }
.toy-btn-big { width: 100%; font-size: 1.2rem; min-height: 56px; margin-top: 12px; background: var(--t-orange); color: var(--t-ink); }
.toy-label { display: block; font-weight: 800; margin-bottom: 6px; }
.toy-status { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; }
.toy-fine { font-size: .85rem; opacity: .75; text-align: center; }

/* ---- Game ---- */
.toy-daylabel { text-align: center; font-weight: 800; font-size: 1.1rem; margin: -6px 0 14px; color: var(--t-blue); }
.toy-round { font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; margin: 0 0 10px; opacity: .7; }
.toy-passage {
  margin: 0 0 16px; padding: 16px; font-size: 1.2rem; line-height: 1.45;
  background: #fbf3e4; border-left: 6px solid var(--t-orange); border-radius: 10px;
}
.toy-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toy-choice { font-size: 1.15rem; min-height: 64px; }
.toy-choice-human { background: #fff; color: var(--t-ink); }
.toy-choice-clanker { background: var(--t-blue); color: #fff; }
.toy-reveal { border-radius: 12px; padding: 12px 14px; margin: 0 0 8px; border: 3px solid; }
.toy-reveal.is-right { border-color: var(--t-green); background: #eaf8ef; }
.toy-reveal.is-wrong { border-color: var(--t-red); background: #fdecec; }
.toy-reveal p { margin: 4px 0; }
.toy-verdict { font-size: 1.25rem; font-weight: 900; }
.toy-verdict span { font-weight: 700; font-size: 1rem; }
.toy-reveal-line { font-style: italic; }
.toy-source { font-size: .9rem; opacity: .8; }
.toy-pct { font-weight: 800; }
.toy-score { text-align: center; font-size: 4rem; font-weight: 900; margin: 0; color: var(--t-blue); line-height: 1; }
.toy-quip { text-align: center; font-weight: 700; font-size: 1.1rem; }
.toy-share {
  white-space: pre-wrap; word-break: break-word; background: var(--t-ink); color: var(--t-cream);
  padding: 14px; border-radius: 10px; font-size: 1rem; line-height: 1.5; margin: 12px 0 0;
}
.toy-share-text { width: 100%; margin-top: 10px; font: inherit; }
.toy-review { margin-top: 18px; }
.toy-review summary { cursor: pointer; font-weight: 800; }
.toy-review-item { margin-top: 14px; }
.toy-archive { text-align: center; font-size: .95rem; }
.toy-archive a { display: inline-block; margin: 2px 4px; font-weight: 700; color: var(--t-blue); }

/* ---- Clankerizer ---- */
.toy-disclaimer {
  background: var(--t-orange); border: 3px solid var(--t-ink); border-radius: var(--t-radius);
  padding: 12px 14px; margin: 0 0 18px; font-size: 1rem; text-align: center;
}
.toy-cz-form textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 12px; border: 3px solid var(--t-ink);
  border-radius: 12px; resize: vertical; min-height: 120px; background: #fbf3e4;
}
.toy-row { display: flex; justify-content: flex-end; margin: 4px 0 8px; }
.toy-count { font-size: .85rem; opacity: .7; }
.toy-cz-result { margin-bottom: 20px; }
.toy-bubble-row { display: flex; gap: 10px; align-items: flex-start; }
.toy-avatar { flex: 0 0 44px; border-radius: 12px; border: 2px solid var(--t-ink); background: var(--t-blue); }
.toy-bubble {
  position: relative; flex: 1; white-space: pre-wrap; word-break: break-word;
  background: var(--t-blue); color: #fff; padding: 14px 16px; border-radius: 4px 18px 18px 18px;
  border: 3px solid var(--t-ink); box-shadow: 4px 4px 0 var(--t-ink); font-size: 1.05rem; line-height: 1.5;
}
.toy-meter { margin: 18px 0 12px; }
.toy-meter-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.toy-meter-top strong { font-size: 2rem; color: var(--t-orange); }
.toy-meter-track { height: 20px; border: 3px solid var(--t-ink); border-radius: 999px; background: #fff; overflow: hidden; }
.toy-meter-fill { height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--t-orange) 0 10px, #f7a955 10px 20px); transition: width .6s ease; }
.toy-meter-note { margin: 6px 0 0; font-weight: 700; }

/* ---- Newsletter ---- */
.toy-list { padding-left: 1.2em; margin: 0 0 16px; }
.toy-list li { margin: 4px 0; }
.toy-nl-row { display: flex; flex-direction: column; gap: 10px; }
.toy-nl-row input {
  font: inherit; font-size: 1.05rem; min-height: 48px; padding: 10px 14px;
  border: 3px solid var(--t-ink); border-radius: 999px; width: 100%; background: #fff;
}

@media (min-width: 560px) {
  .toy { padding: 24px; }
  .toy-card { padding: 24px; }
  .toy-nl-row { flex-direction: row; }
  .toy-nl-row input { flex: 1; }
}
/* Small blue text that sits on the page background (not on a light card) needs the lighter dark-mode link blue. */
@media (prefers-color-scheme: dark) {
  .toy-daylabel, .toy-archive a { color: var(--link, #8db0ff); }
}
@media (prefers-reduced-motion: reduce) {
  .toy-btn, .toy-meter-fill { transition: none; }
}
