:root {
  --paper: #FBF8F1;
  --paper-2: #F3EEE2;
  --ink: #1F2A44;
  --ink-soft: #4A5570;
  --line: #D9D1BF;
  --bus: #F2B705;
  --bus-deep: #C99500;
  --board: #2F4F3E;
  --board-2: #3A5E4B;
  --chalk: #F4F1E8;
  --ui: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --title: "Bricolage Grotesque", "Atkinson Hyperlegible", system-ui, sans-serif;
  --kid: "Andika", "Atkinson Hyperlegible", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 var(--ui);
}
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: 6px;
  background: var(--paper); color: var(--ink);
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .08s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .cbtn:focus-visible, .seg button:focus-visible, .next:focus-visible { outline: 3px solid var(--bus); outline-offset: 2px; }
.btn-primary { background: var(--bus); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn-primary:hover { background: #FFC61A; }
.btn-dark { background: var(--board); color: var(--chalk); border-color: var(--board); }
.btn-dark:hover { background: var(--board-2); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-quiet { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px 14px;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}
.brand h1 { margin: 0; font: 800 clamp(24px, 3vw, 34px)/1.05 var(--title); letter-spacing: -.01em; }
.deck-line { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.deck-line strong { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: var(--ink); }
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(300px, 360px) 1fr; min-height: calc(100vh - 84px); }
.panel { border-right: 2px solid var(--line); padding: 8px 22px 80px; background: var(--paper); }
.group { padding: 18px 0 20px; border-bottom: 1px dashed var(--line); }
.group:last-child { border-bottom: 0; }
.group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 19px/1.2 var(--title); }
.step {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border: 2px solid var(--ink); border-radius: 50%; font: 800 15px/1 var(--title);
}
.field { display: grid; gap: 6px; margin: 0 0 12px; }
.field > span { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea, .save-row input {
  width: 100%; min-height: 44px; padding: 8px 10px;
  border: 2px solid var(--ink); border-radius: 6px; background: #fff;
}
.field textarea { font-family: var(--kid); resize: vertical; line-height: 1.4; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { margin: 0 0 12px; color: var(--ink-soft); font-size: 14px; }
.hint code { font-size: 13px; background: var(--paper-2); padding: 1px 4px; border-radius: 3px; }
.hint a { color: var(--ink); font-weight: 700; }
.count-line { margin: 0; font-weight: 700; font-size: 14px; }
.warn { margin: 8px 0 0; padding: 8px 10px; border-left: 4px solid var(--bus); background: #FFF5D1; font-size: 14px; }
.warn.bad { border-left-color: #B3402A; background: #FBE6E0; }
.plan-note { margin: 16px 0 0; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; font-size: 14px; }
.plan-note a, .plan-note button { color: var(--ink); font-weight: 700; }
.plan-note button { padding: 0; border: 0; background: none; text-decoration: underline; cursor: pointer; }

.seg { display: flex; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; }
.seg button {
  flex: 1; min-height: 44px; padding: 0 8px; border: 0; border-right: 2px solid var(--ink);
  background: #fff; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button.locked { color: var(--ink-soft); }
.seg button svg { width: 15px; height: 15px; }

.toggle { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 15px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.toggle input:disabled + span { color: var(--ink-soft); }
.tag {
  margin-left: auto; padding: 1px 7px; border: 1.5px solid var(--ink); border-radius: 3px;
  font: 700 11px/1.5 var(--ui); font-style: normal; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.is-member .tag { display: none; }

.save-row { display: flex; gap: 8px; }
.save-row input { flex: 1; }
.saved { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.saved li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; }
.saved .name { flex: 1; min-width: 0; }
.saved .name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved .name small { color: var(--ink-soft); }
.saved button { min-height: 36px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--paper); cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; }
.saved button svg { width: 16px; height: 16px; }
.saved .empty { border-style: dashed; color: var(--ink-soft); background: transparent; font-size: 14px; }

/* ---------- preview ---------- */
.preview { padding: 18px 28px 80px; background: var(--paper-2); min-width: 0; }
.preview-bar { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.sheets { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.sheet-frame { position: relative; flex: none; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(31, 42, 68, .12); background: #fff; }
.sheet-frame .sheet { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.more-pages { align-self: center; color: var(--ink-soft); font-weight: 700; }

/* ---------- printed sheet (sizes in physical units) ---------- */
.sheet {
  width: var(--pw); height: var(--ph);
  padding: 0.42in 0.45in;
  background: #fff; color: var(--ink);
  display: grid; overflow: hidden;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.sheet.per-1 { grid-template: 1fr / 1fr; }
.sheet.per-2 { grid-template: 1fr 1fr / 1fr; }
.sheet.per-4 { grid-template: 1fr 1fr / 1fr 1fr; }
.slot { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.sheet.per-2 .slot:first-child::after,
.sheet.per-4 .slot:nth-child(-n+2)::after { content: ""; position: absolute; left: -0.3in; right: -0.3in; bottom: 0; border-bottom: 1.2px dashed #8b8b8b; }
.sheet.per-4 .slot:nth-child(odd)::before { content: ""; position: absolute; top: -0.3in; bottom: -0.3in; right: 0; border-right: 1.2px dashed #8b8b8b; }
.sheet.per-4 .slot:nth-child(3)::before { top: 0; }
.sheet.per-4 .slot:nth-child(1)::before { bottom: 0; }

.card { width: var(--cw); display: flex; flex-direction: column; font-family: var(--kid); }
.card .name-line { display: flex; align-items: flex-end; gap: 6px; margin: 0 0 calc(var(--cw) * .025); font: 700 calc(var(--cw) * .036) / 1 var(--ui); }
.card .name-line i { flex: 1; border-bottom: 1.2px solid var(--ink); height: 1em; }
.grid {
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  border: calc(var(--cw) * .009) solid var(--ink);
  background: var(--ink); gap: calc(var(--cw) * .0035);
}
.head {
  display: grid; place-items: center; aspect-ratio: 1 / .62; min-width: 0;
  background: var(--bus); color: var(--ink);
  font: 800 calc(var(--cw) / var(--n) * .5) / 1 var(--title);
}
.head.banner { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .18em; aspect-ratio: auto; height: calc(var(--cw) / 5 * .62); font-size: calc(var(--cw) * .1); }
.cell {
  display: grid; place-items: center; aspect-ratio: 1; padding: 4%;
  background: #fff; text-align: center; overflow-wrap: normal; hyphens: none; min-width: 0; overflow: hidden;
  line-height: 1.08; font-weight: 400;
}
.cell.free { padding: 6%; }
.free-stamp { position: relative; width: 92%; aspect-ratio: 1; display: grid; place-items: center; }
.free-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--bus); stroke: var(--ink); stroke-width: 3; }
.free-stamp b { position: relative; font: 800 calc(var(--cw) / var(--n) * .17) / 1 var(--title); letter-spacing: .04em; transform: translateY(6%) rotate(-8deg); }
.card .foot {
  display: flex; justify-content: space-between; gap: 10px; margin-top: calc(var(--cw) * .018);
  font: 400 calc(var(--cw) * .026) / 1.2 var(--ui); color: var(--ink);
}
.card .foot .brand-mark { color: #555; }
.ink-saver .head { background: #fff; }
.ink-saver .free-stamp svg { fill: #fff; }

/* caller's list page */
.key { align-self: start; font-family: var(--ui); }
.key h2 { margin: 0 0 4px; font: 800 24pt/1.1 var(--title); }
.key .sub { margin: 0 0 14pt; font-size: 11pt; }
.key-cols { display: grid; grid-template-columns: repeat(var(--kc), 1fr); gap: 0 14pt; }
.key-col h3 { margin: 0 0 6pt; padding: 3pt 0; border: 1.5pt solid var(--ink); background: var(--bus); text-align: center; font: 800 16pt/1 var(--title); }
.ink-saver .key-col h3 { background: #fff; }
.key-col ul, .key-list { list-style: none; margin: 0; padding: 0; }
.key li { display: flex; gap: 6pt; align-items: flex-start; padding: 2.5pt 0; border-bottom: .6pt solid #bbb; font-size: 10.5pt; break-inside: avoid; }
.key li::before { content: ""; flex: none; width: 9pt; height: 9pt; margin-top: 2pt; border: 1pt solid var(--ink); }
.key li b { font-family: var(--kid); font-weight: 700; }
.key li small { display: block; color: #444; font-size: 8.5pt; }
.key-list { columns: 3; column-gap: 16pt; }

/* ---------- caller (projector) ---------- */
.caller {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: var(--board); color: var(--chalk);
  padding: 14px clamp(14px, 3vw, 36px) 12px;
}
.caller-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.caller-info { display: flex; flex-direction: column; }
.caller-info strong { font: 800 22px/1.1 var(--title); }
.caller-info span { opacity: .75; font-size: 14px; }
.caller-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.cbtn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 14px;
  border: 2px solid rgba(244, 241, 232, .55); border-radius: 6px; background: transparent; color: var(--chalk);
  font-weight: 700; cursor: pointer;
}
.cbtn:hover { background: rgba(244, 241, 232, .1); }
.cbtn[aria-pressed="true"] { background: var(--chalk); color: var(--board); }
.stage { position: relative; display: grid; place-items: center; min-height: 0; }
.now { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; max-width: 92vw; }
.now-letter { font: 800 clamp(40px, 7vw, 88px)/1 var(--title); color: var(--bus); }
.now-text { font: 700 clamp(120px, 15vw, 240px)/1.02 var(--kid); overflow-wrap: normal; white-space: normal; max-width: 100%; }
.now-text.mid { font-size: clamp(72px, 9vw, 150px); }
.now-text.long { font-size: clamp(40px, 5vw, 76px); line-height: 1.2; max-width: 22ch; }
.now-text.idle { font: 700 clamp(36px, 5vw, 64px)/1.2 var(--title); opacity: .85; }
.now-answer { margin-top: 10px; padding: 4px 18px; border: 2px dashed var(--bus); border-radius: 8px; font: 700 clamp(34px, 4vw, 60px)/1.2 var(--kid); color: var(--bus); }
.now-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.reveal { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 2px solid var(--chalk); border-radius: 6px; background: transparent; color: var(--chalk); font-weight: 700; cursor: pointer; }
.now.pop .now-text { animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(.86); opacity: .2; } to { transform: none; opacity: 1; } }
.next {
  position: absolute; right: 0; bottom: 8px;
  display: inline-flex; align-items: center; gap: 10px; min-height: 72px; padding: 0 30px;
  border: 3px solid var(--ink); border-radius: 8px; background: var(--bus); color: var(--ink);
  font: 800 28px/1 var(--title); cursor: pointer; box-shadow: 0 4px 0 #15211b;
}
.next svg { width: 30px; height: 30px; stroke-width: 2.6; }
.next:disabled { opacity: .45; cursor: default; }
.board {
  display: grid; gap: 10px; margin-top: 10px; max-height: 32vh; overflow: auto;
  padding: 12px; border: 2px solid rgba(244, 241, 232, .3); border-radius: 8px;
}
.board.cols { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; }
.board .col h3 { margin: 0 0 6px; text-align: center; font: 800 28px/1 var(--title); color: var(--bus); }
.board .col ul, .board .flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.board .flow { justify-content: flex-start; }
.board li { padding: 3px 10px; border-radius: 5px; background: rgba(244, 241, 232, .12); font: 700 clamp(16px, 1.7vw, 24px)/1.25 var(--kid); }
.board li.latest { background: var(--chalk); color: var(--board); }
.board .empty { opacity: .6; font-size: 16px; text-align: center; grid-column: 1 / -1; }
.keys { margin: 8px 0 0; text-align: center; font-size: 13px; opacity: .65; }

/* ---------- dialogs ---------- */
.sheet-dialog {
  width: min(520px, calc(100vw - 32px)); padding: 24px 24px 18px;
  border: 3px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
.sheet-dialog::backdrop { background: rgba(31, 42, 68, .45); }
.sheet-dialog h2 { margin: 0 0 10px; font: 800 26px/1.15 var(--title); }
.sheet-dialog p { margin: 0 0 12px; }
.perks { margin: 0 0 14px; padding-left: 22px; }
.perks li { margin: 4px 0; }
.price { font-weight: 700; }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.check-result { min-height: 24px; }
.check-result .verdict { margin: 4px 0 10px; font: 800 24px/1.2 var(--title); }
.check-result .verdict.win { display: inline-block; padding: 2px 10px; background: var(--bus); border: 2px solid var(--ink); border-radius: 4px; }
.mini { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; padding: 2px; background: var(--ink); max-width: 340px; }
.mini span { display: grid; place-items: center; aspect-ratio: 1; padding: 2px; background: #fff; font: 400 13px/1.1 var(--kid); text-align: center; overflow-wrap: anywhere; }
.mini span.hit { background: #FFE58A; font-weight: 700; }
.mini span.line { font-weight: 700; background: var(--bus); outline: 2px solid var(--ink); outline-offset: -3px; }
.mini span.head { background: var(--ink); color: var(--paper); font: 800 15px/1 var(--title); aspect-ratio: auto; padding: 4px; }

.brand-art { display: none; width: 96px; height: 64px; }
[data-theme="cute"] .brand { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
[data-theme="cute"] .brand-art { grid-row: 1 / span 2; }
[data-theme="cute"] .brand h1, [data-theme="cute"] .deck-line { grid-column: 2; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-bottom: 2px solid var(--line); padding-bottom: 20px; }
  .preview { padding: 16px 16px 60px; }
  .topbar { padding: 14px 16px; }
  .top-actions .btn { flex: 1; }
}
@media (max-width: 520px) {
  .top-actions .btn span { font-size: 14px; }
  .caller-tools .cbtn span { display: none; }
  .next { position: static; margin-top: 14px; width: 100%; justify-content: center; }
  .stage { place-items: center; align-content: center; }
  .board.cols { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px; }
  .board li { padding: 2px 5px; font-size: 13px; max-width: 100%; overflow-wrap: anywhere; }
  .board .col h3 { font-size: 20px; }
  .now-text { font-size: 19vw; }
  .now-text.mid { font-size: 12vw; }
  .now-text.long { font-size: 7vw; }
}

/* =====================================================================
   Cute theme: a picture-book look for the screen, the caller and the cards.
   Chosen under Card > Style; Classic above stays the default.
   ===================================================================== */
body[data-theme="cute"] {
  --paper: #FFF4DF;
  --paper-2: #FBE7C2;
  --ink: #3A2E2A;
  --ink-soft: #7A6658;
  --line: #E3CFAE;
  --bus: #F7C548;
  --board: #2E5D47;
  --board-2: #376B53;
  --chalk: #FBF7EC;
  --ui: "Nunito", "Atkinson Hyperlegible", system-ui, sans-serif;
  --title: "Baloo 2", "Nunito", system-ui, sans-serif;
  --wonky: 18px 26px 20px 30px / 28px 18px 30px 20px;
  --c-b: #E5543A; --c-i: #F7C548; --c-n: #6DB36B; --c-g: #6CB8DC; --c-o: #B68AD6;
  font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="cute"] .brand-art { display: block; }
[data-theme="cute"] .brand h1 { color: #C23D25; font-size: clamp(28px, 3.4vw, 40px); line-height: .95; }
[data-theme="cute"] .topbar { background: transparent; border-bottom: 0; padding-bottom: 6px; }
[data-theme="cute"] .topbar::after { content: ""; position: absolute; }
[data-theme="cute"] .layout { margin: 0 16px 16px; gap: 16px; }
[data-theme="cute"] .panel {
  border: 3px solid var(--ink); border-radius: 26px 32px 28px 34px / 32px 26px 34px 28px; background: #FFFBF1;
  box-shadow: 5px 6px 0 rgba(58, 46, 42, .16); padding: 6px 20px 30px;
}
[data-theme="cute"] .group { border-bottom: 2.5px dotted var(--line); }
[data-theme="cute"] .group h2 { font-size: 22px; }
[data-theme="cute"] .step { border: 2.5px solid var(--ink); width: 34px; height: 34px; font-size: 18px; transform: rotate(-6deg); }
[data-theme="cute"] .group:nth-of-type(1) .step { background: var(--c-b); color: #fff; }
[data-theme="cute"] .group:nth-of-type(2) .step { background: var(--c-i); }
[data-theme="cute"] .group:nth-of-type(3) .step { background: var(--c-n); color: #fff; }
[data-theme="cute"] .group:nth-of-type(4) .step { background: var(--c-g); }
[data-theme="cute"] .field > span { font-weight: 800; }
[data-theme="cute"] .field input, [data-theme="cute"] .field select, [data-theme="cute"] .field textarea, [data-theme="cute"] .save-row input {
  border: 2.5px solid var(--ink); border-radius: 14px; font-weight: 700;
}
[data-theme="cute"] .seg { border: 2.5px solid var(--ink); border-radius: 16px; }
[data-theme="cute"] .seg button { border-right-width: 2.5px; font-weight: 800; }
[data-theme="cute"] .seg button[aria-pressed="true"] { background: var(--bus); color: var(--ink); }
[data-theme="cute"] .toggle input { accent-color: #3F8A4A; }
[data-theme="cute"] .tag { border-radius: 999px; border-width: 2px; background: #FFE9A8; }
[data-theme="cute"] .plan-note, [data-theme="cute"] .saved li { border-radius: var(--wonky); border-width: 2.5px; }
[data-theme="cute"] .plan-note { background: #FFF6D6; border-color: var(--ink); }
[data-theme="cute"] .saved button { border-radius: 12px; }
[data-theme="cute"] .warn { border-radius: 12px; }
[data-theme="cute"] .btn {
  min-height: 52px; padding: 0 22px; border: 3px solid var(--ink); border-radius: 26px 20px 28px 18px / 20px 28px 18px 26px;
  font: 800 19px/1 var(--title); box-shadow: 0 4px 0 var(--ink);
}
[data-theme="cute"] .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
[data-theme="cute"] .btn-primary { background: var(--bus); }
[data-theme="cute"] .btn-dark { background: #6DB36B; color: #fff; border-color: var(--ink); }
[data-theme="cute"] .btn-dark:hover { background: #79C076; }
[data-theme="cute"] .btn-ghost { background: #D7EEF8; }
[data-theme="cute"] .btn-quiet { box-shadow: none; border-color: transparent; background: none; }
[data-theme="cute"] .preview {
  border: 3px solid var(--ink); border-radius: 30px 24px 34px 26px / 24px 34px 26px 30px;
  background: #E9C99A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .38 0 0 0 0 .2 0 0 0 .25 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23c)'/%3E%3C/svg%3E");
}
[data-theme="cute"] .preview-bar { display: inline-block; padding: 3px 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: #FFFBF1; color: var(--ink); }
[data-theme="cute"] .sheet-frame { box-shadow: 4px 6px 0 rgba(58, 46, 42, .25); }
[data-theme="cute"] .sheet-frame:nth-child(odd) { transform: rotate(-.6deg); }
[data-theme="cute"] .sheet-frame:nth-child(even) { transform: rotate(.7deg); }
[data-theme="cute"] .sheet-frame::before {
  content: ""; position: absolute; z-index: 2; top: -12px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(247, 197, 72, .78); border-left: 2px dashed rgba(255, 255, 255, .7); border-right: 2px dashed rgba(255, 255, 255, .7);
}
[data-theme="cute"] .sheet-dialog { border-radius: 28px 36px 30px 40px / 38px 28px 40px 30px; border-width: 4px; }

/* the printed card, cute style: letters on colored bingo balls, rounded grid, a smiling FREE star */
[data-theme="cute"] .grid { border-radius: calc(var(--cw) * .045); overflow: hidden; }
[data-theme="cute"] .head { background: #fff; font-family: "Baloo 2", var(--title); font-weight: 800; }
[data-theme="cute"] .head span {
  display: grid; place-items: center; width: 74%; aspect-ratio: 1; border-radius: 50%;
  border: calc(var(--cw) * .006) solid var(--ink); background: var(--c-b); font-size: .82em; line-height: 1; padding-top: .08em;
}
[data-theme="cute"] .head:nth-child(2) span { background: var(--c-i); }
[data-theme="cute"] .head:nth-child(3) span { background: var(--c-n); }
[data-theme="cute"] .head:nth-child(4) span { background: var(--c-g); }
[data-theme="cute"] .head:nth-child(5) span { background: var(--c-o); }
[data-theme="cute"] .head.banner span { width: auto; height: 82%; aspect-ratio: 1; font-size: .7em; }
[data-theme="cute"] .head.banner span:nth-child(2) { background: var(--c-i); }
[data-theme="cute"] .head.banner span:nth-child(3) { background: var(--c-n); }
[data-theme="cute"] .head.banner span:nth-child(4) { background: var(--c-g); }
[data-theme="cute"] .head.banner span:nth-child(5) { background: var(--c-o); }
[data-theme="cute"] .free-stamp svg { fill: var(--bus); stroke-width: 3.5; }
[data-theme="cute"] .free-stamp svg .face { fill: var(--ink); stroke: none; }
[data-theme="cute"] .free-stamp svg .smile { fill: none; stroke-width: 4; }
[data-theme="cute"] .free-stamp svg .cheek { fill: #F29A8C; stroke: none; }
[data-theme="cute"] .free-stamp b { align-self: end; transform: translateY(70%); font-family: "Baloo 2", var(--title); font-size: calc(var(--cw) / var(--n) * .15); }
[data-theme="cute"] .card .name-line { font-family: "Baloo 2", var(--ui); }
[data-theme="cute"].ink-saver .head span, [data-theme="cute"] .ink-saver .head span { background: #fff; }
[data-theme="cute"] .ink-saver .free-stamp svg { fill: #fff; }
[data-theme="cute"] .ink-saver .free-stamp svg .cheek { fill: none; }
[data-theme="cute"] .key-col h3 { border-radius: 999px; }
[data-theme="cute"] .key-col:nth-child(1) h3 { background: var(--c-b); }
[data-theme="cute"] .key-col:nth-child(2) h3 { background: var(--c-i); }
[data-theme="cute"] .key-col:nth-child(3) h3 { background: var(--c-n); }
[data-theme="cute"] .key-col:nth-child(4) h3 { background: var(--c-g); }
[data-theme="cute"] .key-col:nth-child(5) h3 { background: var(--c-o); }
[data-theme="cute"] .ink-saver .key-col h3 { background: #fff; }

/* the caller, cute style: a chalkboard in a wooden frame, called words on colored balls */
[data-theme="cute"] .caller {
  border: 16px solid #B9834F; box-shadow: inset 0 0 0 4px #8A5A33, inset 0 0 80px rgba(0, 0, 0, .25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .2' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23d)'/%3E%3C/svg%3E");
}
[data-theme="cute"] .caller-info strong, [data-theme="cute"] .now-letter, [data-theme="cute"] .board .col h3 { font-family: "Baloo 2", var(--title); }
[data-theme="cute"] .cbtn { border-radius: 18px; border-width: 2.5px; }
[data-theme="cute"] .now-letter {
  display: grid; place-items: center; width: clamp(64px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%;
  border: 4px solid var(--chalk); background: var(--ball, var(--c-i)); color: #3A2E2A; font-size: clamp(36px, 5vw, 64px); padding-top: .08em;
}
[data-theme="cute"] .now-letter:empty { display: none; }
[data-theme="cute"] .next { border-radius: 30px 24px 32px 22px / 24px 32px 22px 30px; background: var(--bus); }
[data-theme="cute"] .reveal { border-radius: 18px; }
[data-theme="cute"] .board { border: 2.5px dashed rgba(251, 247, 236, .45); border-radius: 22px; }
[data-theme="cute"] .board .col:nth-child(1) { --ball: var(--c-b); }
[data-theme="cute"] .board .col:nth-child(2) { --ball: var(--c-i); }
[data-theme="cute"] .board .col:nth-child(3) { --ball: var(--c-n); }
[data-theme="cute"] .board .col:nth-child(4) { --ball: var(--c-g); }
[data-theme="cute"] .board .col:nth-child(5) { --ball: var(--c-o); }
[data-theme="cute"] .board .col h3 { color: var(--ball); }
[data-theme="cute"] .board li { border-radius: 999px; }
[data-theme="cute"] .board .col li { background: var(--ball); color: #3A2E2A; border: 2px solid #3A2E2A; }
[data-theme="cute"] .board li.latest { outline: 3px solid var(--chalk); outline-offset: 2px; }
[data-theme="cute"] .mini span.line { background: var(--c-i); }
@media (max-width: 860px) {
  [data-theme="cute"] .layout { margin: 0 10px 10px; }
  [data-theme="cute"] .brand-art { width: 64px; height: 44px; }
}
@media (max-width: 520px) { [data-theme="cute"] .caller { border-width: 8px; } }

/* ---------- print: only the sheets, at real size ---------- */
@media print {
  html, body { background: #fff; }
  .topbar, .panel, .preview-bar, .caller, .more-pages, dialog { display: none !important; }
  .layout, .preview, .sheets { display: block; padding: 0; margin: 0; background: #fff; min-height: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .sheet-frame { width: auto !important; height: auto !important; box-shadow: none !important; transform: none !important; break-after: page; }
  .sheet-frame::before { display: none !important; }
  body { background-image: none !important; }
  .sheet-frame:last-child { break-after: auto; }
  .sheet-frame .sheet { position: static; transform: none !important; height: calc(var(--ph) - 0.04in); }
  .sheet-frame.preview-only { display: none; }
}
