
*{box-sizing:border-box}body{margin:0;background:#f8f6f1;color:#243b39;font:15px system-ui,sans-serif}header{max-width:1200px;margin:auto;padding:36px 24px 12px}header small{letter-spacing:.18em;font-weight:800;color:#397e70}h1{font-size:clamp(28px,4vw,48px);letter-spacing:-.045em;margin:10px 0}p{line-height:1.55}main{max-width:1200px;margin:auto;padding:20px 24px 50px;display:grid;grid-template-columns:310px minmax(0,1fr);gap:24px;align-items:start}.panel,.preview{background:white;border:1px solid #e6e3da;border-radius:22px;padding:22px}.panel h2{margin:0 0 16px;font-size:19px}label{display:block;font-weight:650;margin:15px 0 6px}input,select,textarea,button{font:inherit;width:100%;border:1px solid #d5ded8;border-radius:9px;padding:11px;background:white;color:inherit}textarea{min-height:110px;resize:vertical}button{cursor:pointer;font-weight:700}button.primary{background:#236e5c;color:white;border:0;margin-top:18px}button:hover{filter:brightness(.96)}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.muted{color:#64736e;font-size:12px}.preview{background:#e8ede8}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.toolbar button{width:auto}.paper{width:100%;max-width:650px;aspect-ratio:8.5/11;background:#fff;margin:0 auto 20px;box-shadow:0 6px 24px #213b3920;padding:7%;display:flex;flex-direction:column;justify-content:flex-start;overflow:hidden}.paper.a4{aspect-ratio:210/297}.paper h2{text-align:center;font-size:clamp(17px,3vw,32px);margin:0 0 4%;overflow-wrap:anywhere;line-height:1.1}.letters{display:grid;justify-content:center;gap:6px;margin:0 auto 5%;width:min(86%,520px)}.letters b{display:grid;place-items:center;width:auto;aspect-ratio:1;border-radius:14%;font-size:clamp(15px,3vw,30px);color:#163d34;background:#d5eee3}.letters b:nth-child(2n){background:#f9ddad}.letters b:nth-child(3n){background:#f4cbd0}.board{display:grid;border:2px solid #254b42;border-radius:8px;overflow:hidden;gap:1px;background:#254b42;aspect-ratio:1/1}.cell{min-width:0;min-height:0;background:white;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden;padding:6px;text-align:center}.symbol{font-size:clamp(14px,5vw,47px);line-height:1.05}.cell img{width:72%;height:60%;object-fit:contain;flex:0 0 auto}.word{font-size:clamp(8px,1.3vw,14px);overflow-wrap:anywhere;line-height:1.15;margin-top:4px}.foot{display:flex;justify-content:space-between;color:#64736e;font-size:10px;margin-top:5%}.bw .symbol,.bw img{filter:grayscale(1)}.bw .letters b{background:white;border:1px solid black;color:black}.bw .board{background:black;border-color:black}.error{color:#a12727;font-size:13px;margin:10px 0}.calling{grid-template-columns:repeat(5,1fr);aspect-ratio:auto}.calling .cell{aspect-ratio:1/1;min-height:110px}.calling .symbol{font-size:clamp(12px,4vw,32px)}.hidden{display:none!important}@media(max-width:750px){main{grid-template-columns:1fr;padding:12px}.panel,.preview{padding:16px}.paper{padding:6%}.toolbar{flex-wrap:wrap}}@media print{body{background:white}header,.panel,.toolbar,.muted,.screenonly{display:none!important}main,.preview{display:block;padding:0;margin:0;border:0;background:white;max-width:none}.paper{width:100%;max-width:none;height:var(--ph);aspect-ratio:auto;box-shadow:none;padding:12mm;margin:0;break-after:page;page-break-after:always}.paper:last-child{break-after:auto;page-break-after:auto}.symbol{font-size:34pt}.word{font-size:10pt}.paper h2{font-size:25pt}.letters b{font-size:25pt}*{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.caller{background:#fff;border:1px solid #d5ded8;border-radius:16px;padding:18px;margin:0 0 18px}.caller h2{margin:0;font-size:19px}.draw-display{min-height:120px;display:grid;place-items:center;text-align:center;padding:12px;background:#f4f8f5;border-radius:12px;margin:12px 0}.draw-display .cell{aspect-ratio:auto;background:transparent;min-height:100px;width:100%}.draw-display img{height:100px;width:100%;object-fit:contain}.draw-display .symbol{font-size:64px}.draw-display .word{font-size:20px;font-weight:700}.history{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.history span{border:1px solid #d5ded8;border-radius:7px;padding:4px 8px;font-size:12px}.calling{background:white;border:0;border-radius:0;gap:0;overflow:visible}.calling .cell{border:1px dashed #82948c}.cut-note{text-align:center;font-size:12px;color:#64736e;margin:0 0 12px}.board:not(.calling) .cell{cursor:pointer}.board:not(.calling) .cell.marked{background:#c9ebd4;box-shadow:inset 0 0 0 3px #39876a}.game-note{text-align:center;color:#236e5c;font-weight:700;margin:8px 0 0}.instructions{max-width:1200px;margin:0 auto 30px;padding:0 24px}.instructions summary{cursor:pointer;font-weight:700}.instructions ol{padding-left:22px}.instructions li{margin:7px 0}@media print{.caller,.instructions,.game-note{display:none!important}.board:not(.calling) .cell.marked{background:white;box-shadow:none}.calling .cell{border-color:#777}.cut-note{color:#333}}
.cell img{width:88%;height:78%}.word{line-height:1.15}.draw-display img{height:110px;width:110px}.paper .cell img{flex-shrink:1}.paper .word{flex-shrink:0}@media print{.bw img{filter:none}}

/* Real borders, not background gaps: reliable in PDF and on printers. */
.paper .letters{width:64%;max-width:330px;flex-shrink:0;gap:5px;margin-bottom:4%}.paper .letters b{aspect-ratio:1.35;border:1px solid #254b42}
.paper .board:not(.calling){width:100%;aspect-ratio:1;flex:0 0 auto;gap:0;background:white;grid-auto-flow:row;border:2px solid #254b42;border-radius:4px;box-sizing:border-box}
.paper .board:not(.calling) .cell{border:0;border-right:1px solid #254b42;border-bottom:1px solid #254b42;min-width:0;min-height:0;box-sizing:border-box;padding:4px;overflow:hidden}
.paper .board:not(.calling) .cell.edge-right{border-right:0}.paper .board:not(.calling) .cell.edge-bottom{border-bottom:0}
.paper .board:not(.calling) .cell img{height:65%;width:78%;min-height:0;flex-shrink:1}.paper .word{flex-shrink:0;margin-top:3px;line-height:1.15}
.paper.bw .board:not(.calling),.paper.bw .board:not(.calling) .cell{border-color:#000}
@media print{.paper .board:not(.calling){width:100%;max-width:100%;flex-shrink:0;break-inside:avoid}.paper .letters{max-width:85mm}.paper .board:not(.calling) .cell{border-width:0 .7pt .7pt 0}.paper .board:not(.calling) .cell.edge-right{border-right:0}.paper .board:not(.calling) .cell.edge-bottom{border-bottom:0}.paper .foot{margin-top:4%}.paper .calling .cell{min-height:0}.paper .word{font-size:10pt}.paper h2{flex-shrink:0}}

/* Desktop workspace: independently scrolling settings and preview. */
@media screen and (min-width: 751px){
 main{height:calc(var(--outer-viewport, 100dvh) - 24px);min-height:320px;position:relative;align-items:stretch;padding-bottom:12px;}
 .panel,.preview{min-height:0;min-width:0;}
 .panel{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;}
 .preview{display:flex;flex-direction:column;overflow:hidden;}
 .toolbar{flex:0 0 auto;}
 .preview-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:4px 10px 8px;}
 .preview-scroll .paper{padding:7%;}
}
@media screen and (max-width:750px){.preview-scroll{overflow:visible}.panel,.preview{min-width:0}}
@media print{main,.panel,.preview,.preview-scroll{height:auto;max-height:none;min-height:0;overflow:visible;position:static}.preview-scroll{display:block;padding:0;margin:0}}

#libraryBox{margin-top:12px}#libraryDetails{border:1px solid #d5ded8;border-radius:12px;padding:10px}#libraryDetails summary{cursor:pointer;font-weight:650;font-size:13px}#libraryCount{float:right;color:#397e70;font-size:12px}.library-actions{margin:8px 0}.library-actions button{font-size:12px;padding:7px}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-height:300px;overflow:auto;scrollbar-width:thin}.library-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 2px;font-size:10px;line-height:1.15;min-height:76px;overflow-wrap:anywhere}.library-tile img{width:100%;height:45px;object-fit:contain}.library-tile[aria-pressed=true]{background:#e8f4eb;border-color:#397e70}.library-tile[aria-pressed=true]::after{content:'✓';position:absolute;top:2px;right:4px;color:#236e5c;font-weight:bold}.library-tile[aria-pressed=false]{opacity:.65}#applyLibrary{background:#236e5c;color:white;border:0;font-size:12px}#applyLibrary:disabled{opacity:.5;cursor:not-allowed}

/* Screen-only visual system; printable card geometry is unchanged. */
@media screen {
:root{--ink:#193c38;--accent:#176c60;--muted:#607873;--line:#dce7e1;--warm:#f8f6f0}
body{background:radial-gradient(ellipse at 87% 0%,#e0eee6 0%,transparent 42%),#f7f8f4;color:var(--ink);font-family:"Trebuchet MS","Avenir Next Rounded","Arial Rounded MT Bold","Segoe UI",system-ui,sans-serif}
header{max-width:1320px;padding:24px 28px 8px}header h1{font-size:clamp(27px,3.2vw,43px);letter-spacing:-.045em;line-height:1.13;margin:10px 0 7px}header p{font-size:14px;margin:0;color:#526b65}.brand{display:flex;align-items:center;gap:8px;letter-spacing:.07em;font-size:12px;color:var(--accent)}.brand-mark{display:grid;place-items:center;background:var(--accent);color:white;width:27px;height:27px;border-radius:9px;font-size:17px}.brand-divider{color:#a7bcb4}.hero-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.hero-tags span{font-size:11px;font-weight:650;padding:4px 10px;border:1px solid #d5e4dc;border-radius:30px;background:#ffffffa8;color:#45675e}
main{max-width:1320px;gap:18px;padding:14px 28px 22px;grid-template-columns:340px minmax(0,1fr)}.panel,.preview{border:1px solid #dae5dd;border-radius:20px;box-shadow:0 10px 30px #244b3a0b;padding:20px}.panel-kicker{font-size:10px;letter-spacing:.13em;font-weight:800;color:#487b6d;margin-bottom:5px}.panel h2{font-size:24px;letter-spacing:-.045em;margin:0 0 4px}.panel-intro{font-size:12px;color:var(--muted);margin:0 0 16px}.panel label{font-size:12px;font-weight:750;margin:15px 0 6px}.panel input:not([type=checkbox]),.panel select,.panel textarea{background:#f9fbfa;border-color:#dbe5e0;min-height:42px;border-radius:10px;font-size:13px}.panel input[type=checkbox]{accent-color:var(--accent);vertical-align:middle;margin-right:6px;min-width:16px;min-height:16px}.panel button{border-radius:10px}.panel #generate{font-size:14px;min-height:45px;background:linear-gradient(125deg,#176c60,#2e8774);box-shadow:0 5px 13px #176c6026}.panel .muted{line-height:1.55}.version{display:block;color:#849690;font-size:10px;margin-top:4px}.preview{background:#e8efeb;padding:15px}.toolbar{background:#fff;border:1px solid #dce7e1;border-radius:12px;padding:10px 12px;margin-bottom:10px;min-height:58px}.toolbar strong{font-size:14px}.toolbar #print{display:flex;align-items:center;justify-content:center;gap:8px;background:#176c60;color:white;border:0;border-radius:10px;font-size:13px;padding:11px 15px;white-space:nowrap}.preview-scroll{scrollbar-color:#a6bcb2 transparent}.preview-scroll .paper{box-shadow:0 5px 20px #163c3022}.play-shortcut{display:flex;justify-content:center;margin:3px 0 12px}.play-shortcut button{width:auto;padding:7px 13px;border:1px solid #d1e1d8;background:#f8fbf9;font-size:12px;color:#245f51;border-radius:30px}.caller{border-radius:14px;padding:14px}.caller summary{cursor:pointer;font-weight:750;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.caller summary span{font-size:11px;color:#64736e;font-weight:500}.caller[open] summary{margin-bottom:10px}.caller #draw{background:#176c60}.library-tile{min-height:84px;border-radius:9px;border-color:#dce7e1}.library-tile img{height:49px}.library-tile[aria-pressed=true]{background:#e9f5ed;border-color:#5b9c84}.library-tile[aria-pressed=false]{opacity:1;background:#fff}.library-tile:hover{border-color:#397e70}#libraryDetails{background:#f8fbf9;border-color:#dce7e1;padding:12px}#libraryCount{float:none;display:inline-block;margin-left:4px;background:#e1eee6;padding:2px 6px;border-radius:20px;font-size:10px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,.cell:focus-visible{outline:2px solid #267d6a;outline-offset:2px}button:disabled{opacity:.55;cursor:not-allowed}.instructions{max-width:1320px;padding:0 28px 24px;color:#43645a}.instructions details{background:white;border:1px solid #dae5dd;border-radius:14px;padding:15px 18px}
}
@media screen and (min-width:751px){main{height:calc(var(--outer-viewport, 100dvh) - 175px);min-height:420px;align-items:stretch}.preview-scroll{padding:4px 9px 10px}.preview-scroll .paper{padding:7%;max-width:610px}.panel{scrollbar-color:#a6bcb2 transparent}}
@media screen and (max-width:750px){header{padding:20px 14px 6px}main{grid-template-columns:minmax(0,1fr);padding:12px;gap:14px}.panel{padding:16px}.preview{padding:10px}.toolbar{padding:9px}.toolbar #print{padding:10px;font-size:12px}.toolbar strong{font-size:12px}.instructions{padding:0 12px 20px}.preview-scroll .paper{padding:6%}.hero-tags{gap:4px}}

.paper .text-cell .word{font-size:clamp(12px,2.1vw,25px);font-weight:700;line-height:1.15;overflow-wrap:anywhere;max-width:100%;margin:0}.calling .text-cell .word{font-size:clamp(10px,1.4vw,16px)}@media print{.paper .text-cell .word{font-size:14pt}.paper .calling .text-cell .word{font-size:10pt}}

:root{--kid-font:"Trebuchet MS","Avenir Next Rounded","Arial Rounded MT Bold","Comic Sans MS","Segoe UI",sans-serif;--kid-ink:#21423d;--kid-pink:#ffe4ef;--kid-yellow:#ffe9b8;--kid-mint:#dcf5e9;--kid-blue:#dff0ff;--kid-lilac:#ece6ff}
header h1,.panel h2,.paper h2,.letters b,.toolbar strong,.caller h2,.caller summary,.text-cell .word{font-family:var(--kid-font)}
.paper h2{color:#1f5045;letter-spacing:-.04em}
.letters b{border:1px solid #d6e7df;box-shadow:0 4px 12px #163c3014,inset 0 1px 0 #ffffff;font-weight:900}
.word{font-family:var(--kid-font);font-weight:700;color:#33544e}
.paper:not(.bw) .cell img{filter:drop-shadow(0 5px 10px rgba(24,73,62,.12)) saturate(1.12) contrast(1.04)}
.paper:not(.bw) .board:not(.calling) .cell:nth-child(6n+1){background:linear-gradient(180deg,#ffffff 0%,#fff7fb 100%)}
.paper:not(.bw) .board:not(.calling) .cell:nth-child(6n+2){background:linear-gradient(180deg,#ffffff 0%,#fffaf1 100%)}
.paper:not(.bw) .board:not(.calling) .cell:nth-child(6n+3){background:linear-gradient(180deg,#ffffff 0%,#f5fff9 100%)}
.paper:not(.bw) .board:not(.calling) .cell:nth-child(6n+4){background:linear-gradient(180deg,#ffffff 0%,#f6fbff 100%)}
.paper:not(.bw) .board:not(.calling) .cell:nth-child(6n+5){background:linear-gradient(180deg,#ffffff 0%,#fbf7ff 100%)}
.paper:not(.bw) .board:not(.calling) .cell:nth-child(6n+6){background:linear-gradient(180deg,#ffffff 0%,#fffdf1 100%)}
.text-cell{position:relative;padding:8px;border-radius:0}
.paper:not(.bw) .text-cell::before{content:"";position:absolute;inset:6px;border-radius:14px;border:2px dashed #d7e7df;pointer-events:none}
.paper:not(.bw) .text-cell:nth-child(5n+1){background:linear-gradient(180deg,var(--kid-pink),#fff 78%)}
.paper:not(.bw) .text-cell:nth-child(5n+2){background:linear-gradient(180deg,var(--kid-yellow),#fff 78%)}
.paper:not(.bw) .text-cell:nth-child(5n+3){background:linear-gradient(180deg,var(--kid-mint),#fff 78%)}
.paper:not(.bw) .text-cell:nth-child(5n+4){background:linear-gradient(180deg,var(--kid-blue),#fff 78%)}
.paper:not(.bw) .text-cell:nth-child(5n){background:linear-gradient(180deg,var(--kid-lilac),#fff 78%)}
.paper .text-cell .word{font-size:clamp(13px,2.25vw,28px);font-weight:900;line-height:1.08;letter-spacing:-.02em;color:var(--kid-ink);text-shadow:0 1px 0 #fff,0 0 1px #fff}
.calling .text-cell .word{font-size:clamp(10px,1.5vw,16px)}
.panel input:not([type=checkbox]),.panel select,.panel textarea,.panel button,.toolbar #print,.play-shortcut button{font-family:var(--kid-font)}
@media print{.paper:not(.bw) .text-cell::before{border-color:#cfcfcf}.paper .text-cell .word{font-family:var(--kid-font)}}

.paper:not(.bw) .board:not(.calling) .cell.marked{background:#c9ebd4;box-shadow:inset 0 0 0 3px #39876a}
@media print{.paper:not(.bw) .board:not(.calling) .cell.marked{background:white;box-shadow:none}.paper .cell img{filter:none}.paper.bw .cell img{filter:grayscale(1)}}

.paper:not(.bw) .board:not(.calling) .cell:not(.text-cell):not(.marked){background:#fff}.paper:not(.bw) .cell img{filter:none}.paper .board:not(.calling) .cell img{width:93%;height:76%}.paper .word{max-width:100%;font-size:clamp(7px,1.1vw,13px)}.paper .text-cell .word{font-size:clamp(10px,2vw,24px);max-height:90%;overflow-wrap:anywhere}.paper .calling .text-cell .word{font-size:clamp(8px,1.2vw,15px)}.paper.bw .word,.paper.bw h2{color:#222}.paper .calling .cell{min-width:0;min-height:0}.board:not(.calling) .cell.marked{outline:2px solid #39876a;outline-offset:-3px}@media print{.paper .word{font-size:10pt}.paper .text-cell .word{font-size:14pt}.paper .calling .text-cell .word{font-size:10pt}.board:not(.calling) .cell.marked{outline:none}}

@media screen{body.bingo-embedded{display:flow-root;overflow-x:hidden} html.bingo-embedded{overflow:hidden}}

.free-unavailable{opacity:.55;cursor:not-allowed}.free-unavailable input{cursor:not-allowed}
