/* Kaptain Stream: Kids preset theme (crayon and sticker, restrained). Scoped to [data-theme="kids"], no animation, AA contrast. */
@font-face {
  font-family: "Fredoka";
  src: url('fonts/Fredoka.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

[data-theme="kids"] {
  --kk-ink: #2b2118;
  --kk-paper: #fffaf0;
  --kk-red: #b82f1d;
  --kk-yellow: #ffd93d;
  --kk-muted: #5b4d40;
  --kk-sel: #fff4c2;
  --kk-track: #e6dccb;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--kk-ink);
  background: var(--kk-paper);
}

[data-theme="kids"] .kk-bar { display: flex; gap: 4px; margin: 0 0 14px; }
[data-theme="kids"] .kk-bar i { flex: 1; height: 8px; border-radius: 99px; background: var(--kk-track); transition: background-color 0.3s ease; }
[data-theme="kids"] .kk-bar i.on:nth-child(1) { background: #e8523f; }
[data-theme="kids"] .kk-bar i.on:nth-child(2) { background: #ffb02e; }
[data-theme="kids"] .kk-bar i.on:nth-child(3) { background: #38b36a; }
[data-theme="kids"] .kk-bar i.on:nth-child(4) { background: #3a8fe0; }

[data-theme="kids"] .kk-tag { display: block; font-weight: 700; font-size: 13px; color: var(--kk-muted); margin-bottom: 6px; }

/* The one bubble headline per screen: the only place the display font appears. */
[data-theme="kids"] .kk-title { margin: 0 0 6px; font-size: 26px; line-height: 1.1; font-weight: 700; font-family: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif; color: var(--kk-yellow); -webkit-text-stroke: 2px var(--kk-ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--kk-ink); }

[data-theme="kids"] .kk-tile { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid var(--kk-ink); border-radius: 8px; box-shadow: 2px 2px 0 var(--kk-ink); }

/* Working screens: thin borders only. */
[data-theme="kids"] .kk-field { display: block; width: 100%; box-sizing: border-box; border: 1px solid var(--kk-ink); border-radius: 10px; background: #fff; padding: 9px 11px; font-size: 15px; color: var(--kk-ink); margin-bottom: 8px; }
[data-theme="kids"] .kk-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--kk-ink); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; font-size: 15px; color: var(--kk-ink); }
[data-theme="kids"] .kk-opt.sel { background: var(--kk-sel); }

/* The only heavy outline and offset shadow; the press is the only motion besides the bar. */
[data-theme="kids"] .kk-btn { display: block; width: 100%; box-sizing: border-box; text-align: center; background: var(--kk-red); color: #fff; font-family: inherit; font-weight: 800; font-size: 16px; padding: 12px; border: 3px solid var(--kk-ink); border-radius: 99px; box-shadow: 3px 3px 0 var(--kk-ink); cursor: pointer; transition: transform 0.08s ease, box-shadow 0.08s ease; }
[data-theme="kids"] .kk-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--kk-ink); }
[data-theme="kids"] .kk-btn:focus-visible { outline: 3px solid var(--kk-ink); outline-offset: 3px; }

[data-theme="kids"] .kk-credit { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--kk-muted); font-weight: 600; margin-top: 12px; }

[data-theme="kids"] .kk-back { display: block; margin: 10px auto 0; background: none; border: 0; padding: 6px 10px; font-size: 14px; font-weight: 600; color: var(--kk-muted); text-decoration: underline; cursor: pointer; }
[data-theme="kids"] .kk-btn[disabled] { cursor: not-allowed; }
[data-theme="kids"] .kk-credit a { color: var(--kk-muted); }

/* TorBox referral callout and Kids-themed info popover card. */
[data-theme="kids"] .kk-ref-box { margin: 4px 0 10px; padding: 10px 12px; border: 1px solid var(--kk-ink); border-radius: 12px; background: var(--kk-sel); }
[data-theme="kids"] .kk-ref-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
[data-theme="kids"] .kk-ref-text { font-size: 13px; line-height: 1.35; color: var(--kk-ink); }
[data-theme="kids"] .kk-ref-text a { font-weight: 700; color: var(--kk-ink); }
[data-theme="kids"] .kk-ref-btn { width: 24px; height: 24px; border-radius: 99px; border: 2px solid var(--kk-ink); background: var(--kk-yellow); color: var(--kk-ink); font-size: 13px; font-weight: 800; line-height: 1; cursor: pointer; flex-shrink: 0; padding: 0; box-shadow: 1px 1px 0 var(--kk-ink); }
[data-theme="kids"] .kk-ref-btn:focus-visible { outline: 2px solid var(--kk-ink); outline-offset: 2px; }
[data-theme="kids"] .kk-ref-card { margin-top: 10px; border: 2px solid var(--kk-ink); border-radius: 12px; background: var(--kk-paper); box-shadow: 2px 2px 0 var(--kk-ink); overflow: hidden; }
[data-theme="kids"] .kk-ref-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 11px; background: var(--kk-yellow); border-bottom: 2px solid var(--kk-ink); font-size: 13px; font-weight: 800; color: var(--kk-ink); }
[data-theme="kids"] .kk-ref-close { width: 22px; height: 22px; border-radius: 99px; border: 1px solid var(--kk-ink); background: var(--kk-paper); color: var(--kk-ink); font-size: 14px; font-weight: 800; line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0; }
[data-theme="kids"] .kk-ref-card-body { padding: 10px 12px; font-size: 13px; line-height: 1.45; color: var(--kk-ink); }
[data-theme="kids"] .kk-ref-card-body p { margin: 0 0 8px; }
[data-theme="kids"] .kk-ref-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
[data-theme="kids"] .kk-ref-tier { padding: 6px 8px; border: 1px solid var(--kk-ink); border-radius: 8px; background: #fff; font-size: 12px; line-height: 1.3; color: var(--kk-ink); }
[data-theme="kids"] .kk-ref-tier strong { display: block; font-size: 12px; }
[data-theme="kids"] .kk-ref-tier span { color: var(--kk-muted); font-weight: 600; }
[data-theme="kids"] .kk-ref-tier.best { background: var(--kk-sel); }
[data-theme="kids"] .kk-ref-foot { margin: 6px 0 0; font-size: 12px; color: var(--kk-muted); }

@media (prefers-reduced-motion: reduce) {
  [data-theme="kids"] .kk-bar i,
  [data-theme="kids"] .kk-btn { transition: none; }
}
