:root{--cream:#fdfaf2;--orange:#f2500d;--orange-dark:#d83e00;--yellow:#ffd02b;--ink:#0f172a;--muted:#64748b;--line:#e9e4dc;--white:#fff;--font:'Plus Jakarta Sans',sans-serif}
*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;min-height:100%}body{font-family:var(--font);background:var(--cream);color:var(--ink);line-height:1.6}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #17b1d2;outline-offset:3px}
.topbar{height:82px;padding:8px max(28px,calc((100vw - 1440px)/2));background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:8px}.brand img{width:67px;height:67px;object-fit:contain}.brand strong,.brand span{display:block}.brand strong{font-size:17px;letter-spacing:-.01em}.brand span{font-size:12px;color:var(--muted);font-weight:700}.top-actions{display:flex;gap:10px}.button{border:0;border-radius:14px;padding:12px 18px;font-weight:700;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.2s}.button:hover{transform:translateY(-2px)}.button-primary{background:var(--orange);color:#fff;box-shadow:0 8px 18px #f2500d26}.button-primary:hover{background:var(--orange-dark)}.button-light{background:#fff;border:1px solid var(--line);color:var(--ink)}.button-danger{color:#bd3c28;background:#fff1ed}
.layout{max-width:1440px;margin:auto;padding:38px 28px 50px;display:grid;grid-template-columns:330px minmax(0,1fr);gap:30px}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.13em;color:var(--orange);font-weight:800}.sidebar h1{font-size:37px;line-height:1.16;letter-spacing:-.025em;font-weight:800;margin:12px 0 15px}.sidebar h1 em{font-style:normal;color:var(--orange)}.intro{color:#526074;line-height:1.7;font-size:15px;margin:0 0 24px}.panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;margin-bottom:16px;box-shadow:0 8px 22px #5d3f1910}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:16px}.section-heading h2{font-size:17px;letter-spacing:-.015em;margin:0}.step{width:28px;height:28px;border-radius:9px;background:var(--yellow);display:grid;place-items:center;font-size:13px;font-weight:800}.size-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.size-option{border:2px solid #ede9e1;background:#fff;border-radius:12px;padding:10px 3px;font-size:15px;font-weight:800;color:var(--ink)}.size-option span{display:block;color:#94a0ad;font-size:11px;margin-top:2px;font-weight:700}.size-option.active{border-color:var(--orange);background:#fff3ec;color:var(--orange)}.guide-panel p{font-size:14px;color:#526074;line-height:1.65;margin:0 0 20px}.progress span{font-size:13px;font-weight:800;color:#526074}.progress-track{height:8px;background:#f0ece4;border-radius:99px;margin-top:9px;overflow:hidden}.progress-track div{height:100%;width:0;background:var(--orange);border-radius:99px;transition:width .2s}.helper{font-size:13px;color:#8b95a3;line-height:1.6;margin:18px 4px}
.workspace{min-width:0;background:#fff;border-radius:28px;border:1px solid var(--line);box-shadow:0 16px 46px #5d3f1910;padding:30px 34px 26px}.workspace-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.workspace-head h2{font-size:31px;letter-spacing:-.02em;margin:4px 0 3px}.workspace-head h2 span{font-size:22px;color:var(--yellow)}.workspace-head p{font-size:13px;color:#8290a0;margin:0}.board-badge{border:1px solid #ffe2d3;background:#fff6f0;color:var(--orange);font-weight:800;border-radius:99px;padding:9px 14px;white-space:nowrap}.board-wrap{background:linear-gradient(145deg,#fff7df,#fff2e9);border:1px solid #ffebce;border-radius:24px;padding:22px;max-width:780px;margin:auto}.bingo-board{display:grid;gap:10px;aspect-ratio:1}.bingo-cell{min-width:0;min-height:0;background:white;border:2px dashed #e7d8c8;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;position:relative;transition:transform .15s,border-color .15s,box-shadow .15s;padding:5px;color:var(--ink);text-align:center}.bingo-cell:hover{border-color:var(--orange);transform:translateY(-2px);box-shadow:0 8px 14px #e7682330}.bingo-cell.filled{border:2px solid #ffe1c6;box-shadow:0 3px 0 #ffdfb3}.bingo-cell.dragging{opacity:.4}.bingo-cell.drop-target{outline:3px solid var(--orange);outline-offset:2px}.cell-image{width:100%;height:70%;object-fit:contain;border-radius:10px}.cell-word{font-size:clamp(12px,1.45vw,20px);font-weight:800;line-height:1.1;overflow-wrap:anywhere}.cell-plus{width:38px;height:38px;background:#fff2e5;color:var(--orange);border-radius:12px;display:grid;place-items:center;font-size:26px;line-height:1}.cell-placeholder{font-size:12px;color:#b5a595;font-weight:800;margin-top:8px}.board-note{display:flex;justify-content:space-between;gap:12px;max-width:780px;margin:15px auto 0;font-size:12px;color:#8994a2}.board-note span:last-child{color:var(--orange);font-weight:800;white-space:nowrap}.attributions{max-width:780px;margin:14px auto 0;font-size:10px;color:#8b95a3}.attributions a{color:#63748c}
.editor{border:0;border-radius:26px;padding:25px;width:min(760px,calc(100vw - 28px));max-height:min(90vh,880px);box-shadow:0 24px 80px #172a4059}.editor::backdrop{background:#14213791;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.modal-head h2{font-size:27px;letter-spacing:-.02em;margin:4px 0 20px}.icon-button{width:34px;height:34px;border:0;background:#f5f3ef;border-radius:10px;font-size:23px;color:#526074}.word-label{display:block;font-size:13px;font-weight:800;margin-bottom:8px}.editor input{width:100%;border:2px solid #e5e7eb;border-radius:14px;padding:13px 15px;font-size:18px;font-weight:700}.search-hint{font-size:12px;color:#7a8897;margin:9px 0 22px}.results-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.results-title strong{font-size:14px}.results-title span{font-size:11px;color:#8492a2}.search-status{min-height:19px;color:#8794a4;font-size:12px;margin-bottom:9px}.image-results{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;max-height:350px;overflow:auto;padding:2px}.image-choice{border:2px solid #e9e8e4;border-radius:13px;background:#fafafa;padding:5px;text-align:left;min-width:0;overflow:hidden}.image-choice:hover{border-color:var(--orange)}.image-choice img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:8px}.image-choice span{font-size:12px;color:#526074;line-height:1.25;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:5px 3px}.modal-actions{display:flex;justify-content:space-between;gap:10px;margin-top:17px}
@media(max-width:900px){.layout{grid-template-columns:1fr;padding:22px 16px}.sidebar{display:grid;grid-template-columns:1fr 1fr;column-gap:15px}.sidebar>.eyebrow,.sidebar>h1,.intro,.helper{grid-column:1/-1}.sidebar h1{font-size:32px}.workspace{padding:22px}.board-wrap{padding:12px}.bingo-board{gap:6px}.bingo-cell{border-radius:10px}.cell-placeholder{display:none}}@media(max-width:560px){.topbar{height:70px;padding:5px 12px}.brand img{width:54px;height:54px}.brand strong{font-size:13px}.brand span{font-size:10px}.top-actions{gap:5px}.top-actions .button{font-size:0;padding:10px}.top-actions .button:first-letter{font-size:18px}.layout{gap:16px}.sidebar{display:block}.panel{margin-bottom:10px}.workspace-head h2{font-size:24px}.workspace-head p{font-size:11px}.board-note span:last-child{display:none}.image-results{grid-template-columns:repeat(3,1fr)}.modal-actions .button{font-size:11px;padding:10px}.cell-plus{width:26px;height:26px;font-size:20px}.cell-word{font-size:clamp(10px,3vw,15px)}}
@media print{@page{size:A4 portrait;margin:12mm}body{background:#fff}.topbar,.sidebar,.workspace-head .eyebrow,.workspace-head p,.board-note,.editor{display:none!important}.layout{display:block;padding:0;max-width:none}.workspace{border:0;box-shadow:none;padding:0}.workspace-head{margin:0 0 10mm}.workspace-head h2{font-size:25pt}.board-wrap{max-width:none;background:#fff;border:0;padding:0}.bingo-board{width:100%;gap:3mm}.bingo-cell{border:1.5pt solid #f5ba78;box-shadow:none!important;break-inside:avoid}.cell-word{font-size:17pt}}
.language-switch{display:flex;align-items:center;gap:2px;padding:4px;border:1px solid #e9e4dc;border-radius:13px;background:#f8f5ee}.language-switch button{border:0;border-radius:9px;background:transparent;color:#7a8796;font-size:12px;font-weight:800;padding:8px 10px}.language-switch button[aria-pressed="true"]{background:#fff;color:var(--orange);box-shadow:0 2px 8px #673b171a}.action-icon{font-size:19px;line-height:1}
.bingo-heading{position:relative}.workspace-head .bingo-title{display:flex;align-items:baseline;gap:1px;font-size:clamp(47px,5vw,72px);line-height:1.05;letter-spacing:-.02em;font-weight:800;margin:2px 0 8px}.bingo-title span{display:inline-block;text-shadow:0 5px 0 #f5dfc2,0 8px 14px #d270331f;transform:rotate(-5deg)}.bingo-title span:nth-child(1){color:#f2500d}.bingo-title span:nth-child(2){color:#17b3d5;transform:rotate(5deg) translateY(-3px)}.bingo-title span:nth-child(3){color:#ffbd21;transform:rotate(-3deg)}.bingo-title span:nth-child(4){color:#28bb8a;transform:rotate(4deg) translateY(-3px)}.bingo-title span:nth-child(5){color:#ed537a;transform:rotate(-4deg)}.bingo-title .bang{color:#f2500d;transform:rotate(12deg);margin-left:5px}.workspace-head .bingo-subtitle{display:inline-block;background:#fff1b2;color:#9d6016;border-radius:999px;padding:5px 13px;font-size:12px;font-weight:800;letter-spacing:.02em;margin:0 0 10px;transform:rotate(-2deg)}.workspace-head .board-instruction{font-size:13px;color:#8290a0;margin:0}.workspace-head .bingo-heading:after{content:'✦';position:absolute;left:102%;top:18px;color:#ffd02b;font-size:25px;transform:rotate(18deg)}
@media(max-width:560px){.top-actions .button .action-icon{font-size:19px}.top-actions .button .action-label{display:none}.language-switch button{padding:7px 8px;font-size:11px}.workspace-head .bingo-title{font-size:48px}.workspace-head .bingo-heading:after{display:none}}
@media print{body{-webkit-print-color-adjust:exact;print-color-adjust:exact}.workspace-head .bingo-title{font-size:57pt;margin:0 0 4mm}.workspace-head .bingo-subtitle{display:inline-block!important;font-size:12pt;margin-bottom:4mm}.workspace-head .board-instruction{display:none!important}.workspace-head .bingo-heading:after{display:none}}
.workspace-head .bingo-title span{font-size:1em}
.board-brand{width:144px;flex:0 0 144px;display:flex;flex-direction:column;align-items:center;justify-content:center}.board-logo{display:block;width:160px;height:160px;object-fit:contain;margin:-24px -8px -15px}
@media(max-width:560px){.workspace-head{gap:6px}.board-brand{width:100px;flex-basis:100px}.board-logo{width:116px;height:116px;margin:-16px -8px -9px}.board-brand .board-badge{padding:6px 10px;font-size:12px}}
@media(max-width:360px){.workspace-head .bingo-title{font-size:40px}.board-brand{width:86px;flex-basis:86px}.board-logo{width:100px;height:100px;margin:-14px -7px -8px}}
@media print{.board-brand{width:158px;flex-basis:158px}.board-logo{width:175px;height:175px;margin:-26px -8px -17px}.workspace-head{align-items:center}}
.button-reset{width:100%;margin-top:14px;background:#fff7f2;border:1px solid #f4d8c8;color:#b84a27;box-shadow:none}.button-reset:hover{background:#ffefe6}.button-reset span:first-child{font-size:22px;line-height:14px}
.upload-option{display:flex;align-items:center;gap:12px;background:#fffaf4;border:1px dashed #f2cbaa;border-radius:16px;padding:11px 13px;margin:0 0 20px}.button-upload{flex:none;background:#fff0e4;border:1px solid #ffd5bb;color:#bf4c18;padding:10px 14px;font-size:13px}.button-upload:hover{background:#ffe6d3}.button-upload span:first-child{font-size:20px;line-height:14px}.upload-note{font-size:12px;line-height:1.5;color:#64748b}@media(max-width:560px){.upload-option{align-items:flex-start;flex-direction:column;gap:7px}}
.source-switch{display:flex;gap:3px;padding:3px;background:#f5f2ed;border-radius:12px}.source-tab{border:0;background:transparent;color:#758292;border-radius:9px;padding:6px 10px;font-size:12px;font-weight:800}.source-tab.active{background:#fff;color:var(--orange);box-shadow:0 2px 7px #583c2118}.source-tab:disabled{opacity:.48;cursor:default}.source-tab span{display:inline-block;margin-left:3px;color:#f2500d;font-size:11px}.source-tab span:empty{display:none}@media(max-width:560px){.results-title{align-items:flex-start;flex-wrap:wrap}.source-switch{margin-left:auto}}
.image-results[hidden]{display:none}
.editor{width:min(880px,calc(100vw - 28px))}.editor input+label{margin-top:12px}.editor textarea,.editor select{font:inherit;border:2px solid #e5e7eb;border-radius:12px;background:#fff;color:var(--ink);padding:9px 11px}.editor textarea{width:100%;resize:vertical;min-height:76px}.editor select{max-width:100%}.stock-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:9px 0 14px}.stock-controls label{font-size:12px;font-weight:800;color:#526074}.kind-hint{font-size:12px;color:#64748b}.source-note{font-size:12px;color:#64748b;line-height:1.5;margin:10px 0}.source-switch{flex-wrap:wrap}.attributions{display:flex;flex-direction:column;gap:3px}.attributions:empty{display:none}#generatedResults{margin-top:12px}
.image-choice small{display:block;color:#7a8897;font-size:10px;line-height:1.3;margin:0 3px 5px;overflow-wrap:anywhere}
.modal-save-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media print{.attributions:not(:empty){display:flex!important;font-size:8pt;margin-top:5mm;overflow-wrap:anywhere}}
