@font-face{font-family:StudioHebrew;src:url('assets/hebrew.ttf') format('truetype');font-display:swap}
:root{--ink:#273f37;--muted:#7b847e;--green:#285846;--cream:#faf8f2;--border:#e7e8df;--gold:#d6a14c;--mint:#edf3e9;--font:Arimo,Arial,StudioHebrew,sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--cream);font-family:var(--font);font-size:16px}button,input,select{font:inherit}button{cursor:pointer}button,a,input,select{touch-action:manipulation}button{color:inherit}button:disabled{cursor:wait;opacity:.65}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d9aa56;outline-offset:4px}button{border:0;background:none}button svg,nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}button:hover{filter:brightness(.97)}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.topbar{max-width:1304px;padding:27px 40px 23px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8e8df}.brand{display:flex;gap:11px;align-items:center}.brand-mark{width:39px;height:47px}.brand strong{font-size:24px;letter-spacing:-1px}.brand-dot{color:#d09a3e}.brand small{display:block;font-size:11px;color:var(--muted);margin-top:3px;letter-spacing:.2px}nav{display:flex;gap:26px;align-items:center}.text-button{font-size:14px;padding:8px 0}.outline-button{border:1px solid #d3d9cc;padding:11px 17px;border-radius:12px;display:flex;gap:9px;align-items:center;font-size:14px;background:#fffdf8}main{max-width:1100px;margin:auto;padding:0 40px}.intro{padding:37px 0 28px;text-align:center}.eyebrow{display:flex;gap:7px;justify-content:center;align-items:center;color:#7a816e;font-size:12px;margin-bottom:10px}.eyebrow span{height:5px;width:5px;background:#d0a257;border-radius:50%}h1{font-size:clamp(26px,3.5vw,42px);letter-spacing:-1.4px;margin:0 0 12px;font-weight:800}h1 em{font-style:normal;color:#87966c}.intro p{font-size:15px;color:#7d8479;margin:0;line-height:1.6}.workspace{display:grid;grid-template-columns:362px minmax(0,1fr);gap:22px;align-items:stretch}.panel{border:1px solid var(--border);border-radius:22px;box-shadow:0 6px 20px #364c3410}.editor{background:#fffefa;padding:25px}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.section-kicker{font-size:11px;color:#8d947f;letter-spacing:.3px}h2{font-size:21px;margin:6px 0 0;letter-spacing:-.5px}.step-label{width:31px;height:31px;border:1px solid #e5e8dc;border-radius:50%;display:grid;place-items:center;font-size:11px;color:#8c967d;font-family:Arial}.content-tabs{display:flex;padding:5px;background:#f3f3ed;border-radius:12px;gap:3px;margin-bottom:23px}.content-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;padding:10px 4px;font-size:13px;color:#868d81;transition:.2s}.content-tabs button.selected{background:#fff;color:#315540;box-shadow:0 2px 5px #182c0b0e}.content-tabs b{font-size:17px;font-weight:500}.content-tabs .numbers-icon{font-size:12px;font-weight:600}.content-tabs svg{width:16px;height:16px}.faces-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:10px}.faces-heading small{font-size:11px;color:#979d94}.face-editors{display:flex;flex-direction:column;gap:9px}.face-editor{display:flex;align-items:center;gap:10px;padding:7px 9px;border:1px solid #e5e7df;border-radius:11px;background:white;transition:border-color .15s}.face-editor:focus-within{border-color:#99af99}.face-thumb{width:39px;height:39px;border-radius:9px;display:grid;place-items:center;flex:none;font-weight:700;font-size:24px;overflow:hidden;border:1px solid #00000009}.face-thumb img{max-width:100%;max-height:100%}.face-main{flex:1;min-width:0}.face-main label{display:block;font-size:10px;color:#8d9589;margin-bottom:3px}.face-main input{background:transparent;border:0;width:100%;padding:0;color:#3b4a3b;outline:none;font-size:16px;line-height:22px;font-weight:600;min-width:0}.face-main input:focus-visible{outline:none}.face-actions{display:flex;align-items:center;gap:2px}.face-actions button{width:29px;height:29px;border-radius:6px;display:grid;place-items:center;color:#a0a798}.face-actions button:hover{background:#f1f4eb;color:var(--green)}.face-actions svg{width:16px;height:16px}.face-upload{font-size:12px!important;width:auto!important;text-align:right;padding:0!important;color:#617b5f;font-weight:600;line-height:22px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.face-file{display:none}.upload-note{font-size:10px;line-height:1.7;color:#858f7e;margin:8px 0 0}.divider{height:1px;background:#eceee5;margin:20px 0 18px}.color-heading{display:flex;align-items:center;justify-content:space-between}.color-heading h3{font-size:13px;margin:0;font-weight:500}.color-heading span{font-size:11px;color:#9aa38d}.palettes{display:flex;gap:15px;margin-top:14px;justify-content:space-between}.palette{width:40px;height:40px;border-radius:50%;padding:4px;border:1.5px solid transparent;position:relative;transition:.2s}.palette.selected{border-color:#345f45}.palette:after{content:"";display:block;width:100%;height:100%;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #00000007}.palette.selected:before{content:"";position:absolute;left:13px;top:14px;width:8px;height:4px;border-left:2px solid white;border-bottom:2px solid white;transform:rotate(-45deg);z-index:1;filter:drop-shadow(0 1px 1px #0007)}.detail-controls{display:flex;justify-content:space-between;align-items:center;margin-top:20px;font-size:11px}.toggle-label{display:flex;align-items:center;gap:7px;cursor:pointer}.toggle-label input{position:absolute;opacity:0;width:1px}.toggle-track{width:29px;height:17px;background:#dfe3da;border-radius:20px;position:relative;transition:.2s}.toggle-track:after{content:"";position:absolute;background:white;width:11px;height:11px;top:3px;left:3px;border-radius:50%;transition:.2s;box-shadow:0 1px 2px #0002}.toggle-label input:checked+.toggle-track{background:#63866a}.toggle-label input:checked+.toggle-track:after{left:15px}.toggle-label input:focus-visible+.toggle-track{outline:2px solid var(--gold)}.subtle-button{font-size:11px;color:#8f9885;display:flex;align-items:center;gap:4px;padding:3px}.subtle-button svg{width:12px;height:12px}.save-note{display:flex;justify-content:center;align-items:center;gap:6px;font-size:10px;color:#9aa28e;margin-top:22px}.save-note>span:first-child{width:4px;height:4px;background:#94ac79;border-radius:50%}.stage{background:radial-gradient(ellipse at 52% 37%,#fffefa 0,#f5f6ec 53%,#eff1e5 100%);overflow:hidden;display:flex;flex-direction:column;position:relative}.stage-top{display:flex;justify-content:space-between;align-items:center;padding:21px 25px 0;position:relative;z-index:1}.live-label{display:flex;gap:7px;align-items:center}.live-label>span{width:5px;height:5px;background:#8ca879;border-radius:50%}.live-label h2{font-size:12px;font-weight:500;margin:0;color:#839078}.stage-tools{display:flex;gap:7px}.icon-button{width:32px;height:32px;border:1px solid #dfe4d6;border-radius:9px;display:grid;place-items:center;background:#ffffff80;color:#78876c}.icon-button svg{width:16px;height:16px}.stage-viewport{position:relative;min-height:330px;flex:1;isolation:isolate;overflow:hidden}#dreidel-canvas{display:block;width:100%;height:100%;position:absolute;inset:0;z-index:1;touch-action:none;cursor:grab}#dreidel-canvas:active{cursor:grabbing}.orbit{position:absolute;left:50%;top:51%;border:1px solid #c7d0b62b;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.orbit-one{width:335px;height:335px}.orbit-two{width:445px;height:445px}.stage-star{position:absolute;z-index:0;color:#cdb987;font-size:27px}.star-one{top:21%;right:22%}.star-two{bottom:28%;left:22%;font-size:18px;color:#98ac96}.stage-dot{width:6px;height:6px;position:absolute;background:#e1b5a2;border-radius:50%}.dot-one{left:21%;top:26%}.dot-two{right:26%;bottom:27%;width:4px;height:4px;background:#a1b4a0}.view-hint{position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:10px;color:#96a089;z-index:2;pointer-events:none}.view-hint span{display:inline-block;margin-left:4px;font-size:14px}.spin-controls{text-align:center;position:relative;z-index:2;padding:12px 20px 22px}.spin-button{background:#2f5c48;color:#fff;padding:16px 26px;border-radius:13px;box-shadow:0 6px 0 #224634,0 9px 19px #315e4226;display:inline-flex;align-items:center;gap:13px;font-size:18px;min-width:287px;justify-content:center;transition:transform .15s,box-shadow .15s}.spin-button:active:not(:disabled){transform:translateY(3px);box-shadow:0 3px 0 #224634,0 5px 12px #315e4226}.spin-button svg{width:22px;height:22px;stroke-width:1.8}.spin-button .button-spark{color:#bdcfa3;font-size:20px;padding-right:4px}.spin-button.spinning svg{animation:turn 1s linear infinite}.speed-row{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:18px;font-size:10px;color:#929c88}.speed-row>div{display:flex;gap:2px}.speed-row button{font-size:10px;padding:4px 10px;border-radius:5px;color:#8d9882}.speed-row button.selected{background:#e0e7d6;color:#587148}.history-row{min-height:56px;border-top:1px solid #dce1d0;display:flex;gap:14px;align-items:center;padding:10px 24px;font-size:10px;color:#909b84;background:#ffffff20}.history-row>span{white-space:nowrap}#history{display:flex;align-items:center;gap:6px;flex:1}.history-empty{font-size:10px;color:#a6af9d}.history-token{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;font-size:15px;font-weight:700;overflow:hidden}.history-token img{width:100%;height:100%;object-fit:contain}.result-pill{position:absolute;bottom:35px;left:50%;transform:translateX(-50%);border:1px solid #dce5d3;background:#fffdf5e8;box-shadow:0 4px 15px #46623512;border-radius:50px;padding:8px 18px;display:flex;align-items:center;gap:10px;z-index:3;white-space:nowrap}.result-pill>span{font-size:13px;color:#89947b}.result-pill strong{font-size:24px;max-width:240px;text-overflow:ellipsis;overflow:hidden}.result-pill img{height:30px;max-width:60px;object-fit:contain}.print-banner{display:flex;gap:20px;align-items:center;background:#f0f1e7;border:1px solid #e2e5d6;border-radius:18px;margin-top:24px;padding:14px 27px 14px 30px;overflow:hidden}.paper-illustration{width:90px;height:92px;flex:none;transform:rotate(9deg)}.paper-illustration svg{width:100%;height:100%}.print-copy h2{font-size:22px;margin:6px 0 8px}.print-copy p{font-size:12px;color:#8a937f;margin:0;line-height:1.5}.banner-button{margin-right:auto;display:flex;align-items:center;gap:9px;white-space:nowrap;border:1px solid #c8d0bb;border-radius:10px;padding:13px 18px;font-size:13px;background:#fafbf3}.banner-button>span{margin-right:5px}footer{display:flex;justify-content:space-between;color:#a0a591;font-size:10px;padding:22px 3px 28px}dialog{border:1px solid #e2e5d8;box-shadow:0 30px 100px #263e3450;border-radius:22px;background:#fffdf7;color:var(--ink);padding:26px;max-height:90dvh;max-width:940px;width:calc(100% - 30px);overscroll-behavior:contain}dialog::backdrop{background:#172b226e;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.dialog-head h2{font-size:25px}.dialog-head .icon-button{width:35px;height:35px}.print-layout{display:grid;grid-template-columns:1fr 1fr;gap:30px}.print-options>p{font-size:14px;color:#89917e;line-height:1.7;margin:0 0 20px}fieldset{border:0;margin:0 0 22px;padding:0}legend{font-size:13px;font-weight:600;margin-bottom:10px}.option-buttons{display:flex;gap:8px}.option-buttons button{border:1px solid #dfe4d6;border-radius:11px;padding:12px 10px;flex:1;background:#fff;font-size:13px}.option-buttons button small{display:block;font-size:10px;margin-top:5px;opacity:.65}.option-buttons button.selected{border-color:#78996d;background:#eef3e8;color:#3d603b}.paper-tip{display:flex;gap:10px;background:#f2f1e4;padding:13px;border-radius:10px;color:#8b8d6f;margin:23px 0}.paper-tip svg{width:22px;height:22px;stroke:#a7a77e;fill:none;flex:none}.paper-tip p{margin:0;font-size:12px;line-height:1.8}.primary-button{width:100%;padding:15px;background:#315c47;color:white;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:15px}.actual-size-note{display:block;font-size:10px;text-align:center;color:#9ba28e;margin:11px 0 17px}.print-options>.text-button{display:block;margin:auto;font-size:12px;color:#799168}.print-preview{background:#eeeee6;border-radius:14px;padding:17px 24px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;min-width:0}.print-preview canvas{width:100%;height:auto;max-height:540px;object-fit:contain;box-shadow:0 6px 17px #37433315;background:white}.print-preview span{font-size:10px;color:#999f8c}#help-dialog{max-width:660px}.materials{padding:14px;background:#edf1e6;border-radius:11px;font-size:13px;margin-bottom:23px;line-height:1.8}.materials strong{font-weight:500;color:#7d8b6d}.help-content ol{counter-reset:step;list-style:none;margin:0;padding:0}.help-content li{counter-increment:step;position:relative;padding:0 42px 22px 0}.help-content li:before{content:counter(step);position:absolute;right:0;top:-2px;border:1px solid #d7ddcc;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;color:#738a5f;font-size:12px}.help-content b{font-size:14px}.help-content li span{display:block;font-size:12px;line-height:1.9;color:#87917b;margin-top:5px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 22px;border-radius:11px;background:#294f3f;color:white;box-shadow:0 8px 30px #23433333;font-size:13px;z-index:1000;max-width:90%;text-align:center}.noscript{position:fixed;inset:0;display:grid;place-items:center;background:#fff;font-size:22px}.confetti{position:absolute;z-index:4;pointer-events:none;width:7px;height:11px;border-radius:2px;animation:confetti 1.4s ease-out forwards}.stage.is-busy #view-hint{opacity:0}.stage.is-busy #dreidel-canvas{cursor:default}@keyframes turn{to{transform:rotate(-360deg)}}@keyframes confetti{0%{transform:translate(0,0) rotate(0);opacity:0}15%{opacity:1}100%{transform:translate(var(--dx),var(--dy)) rotate(var(--rot));opacity:0}}
@media(min-width:1400px){.intro{padding-top:40px;padding-bottom:32px}.stage-viewport{min-height:370px}}
@media(max-width:1050px){main{padding:0 25px}.topbar{padding-right:25px;padding-left:25px}.workspace{grid-template-columns:320px minmax(0,1fr);gap:16px}.editor{padding:21px}.print-banner{gap:14px;padding:16px 22px}.print-copy h2{font-size:20px}.banner-button{font-size:12px;padding:12px}.orbit-two{width:365px;height:365px}.star-one{right:13%}.star-two{left:15%}.palettes{gap:9px}.panel-heading h2{font-size:19px}}
@media(max-width:760px){.topbar{padding:18px 20px}.brand strong{font-size:21px}.brand small{font-size:9px}.brand-mark{width:31px;height:39px}nav{gap:8px}nav>.text-button{display:none}.outline-button{font-size:11px;padding:9px 11px;gap:6px}.outline-button svg{width:16px;height:16px}main{padding:0 16px}.intro{padding:25px 0 23px}h1{font-size:29px;letter-spacing:-.8px;line-height:1.25;max-width:400px;margin:0 auto 11px}h1 em{white-space:nowrap}.intro p{font-size:12px;max-width:290px;margin:auto}.workspace{display:flex;flex-direction:column;gap:16px}.stage{order:0}.editor{order:1;padding:22px}.stage-viewport{min-height:300px;height:300px}.stage-top{padding:15px 20px 0}.spin-controls{padding:7px 15px 17px}.spin-button{font-size:17px;padding:14px 24px;min-width:270px}.history-row{padding:10px 17px;min-height:49px;gap:10px}.stage-tools .icon-button{width:28px;height:28px}.speed-row{margin-top:16px}.face-editors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.face-editor{gap:7px;padding:8px}.face-thumb{width:31px;height:36px;font-size:22px}.face-main input{font-size:16px}.face-actions{flex-direction:column;gap:0}.face-actions button{width:20px;height:20px}.face-actions svg{width:14px;height:14px}.face-upload{font-size:10px!important;max-width:80px;white-space:normal}.content-tabs{margin-bottom:19px}.faces-heading{margin-bottom:11px}.palettes{justify-content:flex-start;gap:19px}.detail-controls{margin-top:18px}.save-note{margin-top:17px}.print-banner{margin-top:17px;display:grid;grid-template-columns:66px 1fr;gap:12px;padding:19px}.paper-illustration{width:64px;height:78px}.print-copy h2{font-size:18px}.print-copy p{font-size:11px;line-height:1.7}.print-copy .section-kicker{font-size:9px}.banner-button{grid-column:1/-1;margin:0;justify-content:center;width:100%;font-size:13px}.print-banner .banner-button>span{margin-right:auto}.print-banner .banner-button>svg{margin-left:auto}footer{font-size:9px;flex-direction:column;align-items:center;gap:10px;padding:22px}.print-layout{grid-template-columns:1fr;gap:22px}.print-preview{order:-1;padding:15px;max-height:280px}.print-preview canvas{max-height:230px;width:auto;max-width:100%}.print-preview span{font-size:9px}dialog{padding:20px;border-radius:18px;max-height:94dvh}.dialog-head h2{font-size:21px}.dialog-head{margin-bottom:20px}.print-options>p{font-size:12px;margin-bottom:16px}fieldset{margin-bottom:16px}.paper-tip{margin:17px 0}.paper-tip p{font-size:11px}.stage-star.star-one{right:17%;top:17%}.result-pill{bottom:28px}.result-pill strong{font-size:21px}.orbit-one{width:265px;height:265px}.orbit-two{width:345px;height:345px}}
@media(max-width:380px){.face-editors{gap:7px}.face-editor{gap:5px;padding:6px}.face-thumb{width:25px}.face-actions button{width:17px}.editor{padding:17px}.palettes{gap:15px}h1{font-size:26px}.brand small{font-size:8px}.outline-button{font-size:10px;padding:8px}.topbar{padding:16px}.history-row{font-size:9px;gap:6px}.history-token{width:25px;height:25px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Compact white workspace with visible editing controls. */
:root{--cream:#fff}
body,.editor,.stage,dialog{background:#fff}
.history-row{background:#fff}
.page-heading{padding:25px 0 22px;text-align:center}
.page-heading h1{font-size:32px;line-height:1.25;letter-spacing:-.7px;margin:0;font-weight:700}
.panel-heading{margin-bottom:17px}
.panel-heading h2{margin:0;font-size:21px}
.content-choice-label{font-size:13px;font-weight:600;color:#526456;margin:0 0 10px}
.content-tabs{padding:0;background:transparent;gap:8px;margin-bottom:24px;border-radius:0}
.content-tabs button{border:1.5px solid #bac9bf;background:#fff;color:#365442;padding:12px 6px;min-height:47px;font-size:14px;font-weight:700;border-radius:10px;box-shadow:0 3px 0 #dfe6e1;transition:background .15s,border-color .15s,transform .15s,box-shadow .15s}
.content-tabs button.selected{background:#2f5c48;color:#fff;border-color:#2f5c48;box-shadow:0 3px 0 #204530}
.content-tabs button:hover:not(:disabled):not(.selected){background:#eef5f0;border-color:#749580}
.content-tabs button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #cbd8ce}
.content-tabs button.selected:active:not(:disabled){box-shadow:0 1px 0 #204530}
.content-tabs b{font-weight:700}
.faces-heading{margin-bottom:7px;font-weight:600}
.faces-heading small{font-weight:400;color:#73806f}
.edit-hint{font-size:12px;line-height:1.5;color:#657961;margin:0 0 13px}
.face-editor{padding:10px;gap:10px;border-color:#e3e8e2;background:#fff}
.face-main label{font-size:11px;color:#657460;margin-bottom:5px}
.face-field{position:relative}
.face-main input{display:block;width:100%;min-height:42px;border:1.5px solid #b7c5b8;border-radius:8px;background:#fff;padding:7px 10px 7px 35px;color:#273f37;line-height:24px;font-size:19px;cursor:text;transition:border-color .15s,box-shadow .15s}
.face-main input:hover{border-color:#7c9b82}
.face-main input:focus,.face-main input:focus-visible{border-color:#3b7655;outline:none;box-shadow:0 0 0 3px #dcebe1}
.face-main input::placeholder{font-size:12px;color:#98a292;font-weight:400}
.edit-face{position:absolute;left:5px;top:50%;transform:translateY(-50%);width:28px;height:30px;display:grid;place-items:center;border-radius:6px;color:#647f68;padding:0}
.edit-face:hover:not(:disabled){background:#eaf2ec}
.edit-face svg{width:16px;height:16px}
.face-actions button{background:#f5f8f5;border:1px solid #e1e8e2;color:#6e876d;width:32px;height:32px}
.face-upload{border:1px solid #b7c5b8;border-radius:8px;padding:9px!important;background:#fff;min-height:40px;max-width:100%;font-size:12px!important;white-space:normal}
.editor-print-actions{margin-top:23px;padding-top:20px;border-top:1px solid #e6ebe5;display:flex;flex-direction:column;align-items:stretch;gap:8px}
.editor-print-button{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;border:1.5px solid #668a70;border-radius:11px;padding:13px 15px;font-size:16px;font-weight:600;color:#315941;box-shadow:0 3px 0 #dce6dd}
.editor-print-button:hover:not(:disabled){background:#eef5ef}
.editor-print-button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #dce6dd}
.editor-print-button svg{width:21px;height:21px}
.editor-print-actions>.text-button{align-self:center;font-size:12px;color:#71806b;padding:7px 10px}
.save-note{margin-top:14px}
.orbit{border-color:#dce3d533}
@media(min-width:1400px){.page-heading{padding-top:27px;padding-bottom:24px}}
@media(max-width:760px){.page-heading{padding:19px 0 17px}.page-heading h1{font-size:27px}.content-tabs{gap:9px;margin-bottom:22px}.content-tabs button{min-height:48px;font-size:14px}.face-editor{gap:7px;padding:9px}.face-main input{padding-right:8px;padding-left:28px;min-height:42px;font-size:18px}.edit-face{left:3px;width:23px}.edit-face svg{width:14px;height:14px}.face-actions button{width:25px;height:29px}.face-actions{gap:5px}.face-thumb{width:27px}.face-upload{font-size:11px!important;padding:7px!important}.edit-hint{font-size:11px}.editor-print-actions{margin-top:19px;padding-top:17px}.editor-print-button{min-height:47px}}
@media(max-width:420px){.face-editors{grid-template-columns:1fr}.face-editor{gap:10px}.face-thumb{width:39px;height:42px}.face-actions{flex-direction:row}.face-actions button{width:32px;height:34px}.face-main input{font-size:19px;padding-left:35px}.edit-face{width:28px;left:5px}.edit-face svg{width:16px;height:16px}.face-upload{width:100%!important;max-width:none;font-size:12px!important;text-align:center}}

/* Centered controls and a flat blue action language. */
:root{--blue:#2475d4;--blue-dark:#1b60b2;--blue-pale:#eef6ff}
.page-heading{padding:7px 0 9px}
.page-heading p{margin:5px 0 0;font-size:15px;line-height:1.5;color:#697c91;text-wrap:balance}
.editor{text-align:center}
.panel-heading,.faces-heading,.color-heading{justify-content:center;gap:9px}
.panel-heading{margin-bottom:12px}
.content-choice-label{margin-bottom:10px}
.content-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:19px}
.content-tabs button,.content-tabs button.selected,.content-tabs button:active:not(:disabled),.content-tabs button.selected:active:not(:disabled){box-shadow:none;transform:none;min-height:44px;padding:10px 8px;border:1.5px solid #87b5eb;transition:background .15s,border-color .15s;color:#2167b7;background:#f5f9ff}
.content-tabs button.selected{color:#fff;background:var(--blue);border-color:var(--blue)}
.content-tabs button:hover:not(:disabled):not(.selected){background:#e7f2ff;border-color:var(--blue)}
.content-tabs button.selected:hover:not(:disabled){background:var(--blue-dark);border-color:var(--blue-dark)}
.edit-hint{color:#697c91;margin-bottom:11px}
.face-editor{display:grid;grid-template-columns:39px minmax(0,1fr) 32px;gap:8px 10px;padding:10px}
.face-label{grid-column:1/-1;font-size:17px;line-height:22px;font-weight:700;color:#3c536f;text-align:center;cursor:pointer}
.face-thumb{width:39px;height:39px}
.face-thumb svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.face-thumb-upload{padding:0;cursor:pointer;border:1.5px solid #0002;transition:border-color .15s,filter .15s}
.face-thumb-upload:hover:not(:disabled){border-color:var(--blue);filter:brightness(1.08)}
.face-thumb-upload:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.face-thumb-upload img{display:block;width:100%;height:100%;object-fit:contain}
.face-main input,.face-main textarea{font-family:var(--font);font-weight:600;text-align:center;border:1.5px solid #b4cbe4;box-sizing:border-box;width:100%;border-radius:8px;background:#fff;color:#273f37;cursor:text;transition:border-color .15s,box-shadow .15s;padding:7px 33px;line-height:24px;min-width:0}
.face-main textarea{display:block;font-size:16px;resize:vertical;min-height:88px;max-height:220px}
.face-main input:hover,.face-main textarea:hover{border-color:#6f9ed0}
.face-main input:focus,.face-main input:focus-visible,.face-main textarea:focus,.face-main textarea:focus-visible{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px #e4f0ff}
.face-main input::placeholder,.face-main textarea::placeholder{font-family:var(--font);font-size:12px;font-weight:400;color:#8a9aad}
.face-editor:focus-within{border-color:#78a9e0}
.face-actions{flex-direction:column;gap:5px}
.edit-face,.face-actions button{color:#4879af}
.edit-face:hover:not(:disabled),.face-actions button:hover{background:var(--blue-pale);color:var(--blue)}
.face-actions button{background:#f5f9ff;border-color:#d5e3f2}
.face-upload{width:100%!important;text-align:center;border-color:#b4cbe4;color:#2167b7}
.palettes{justify-content:center;gap:13px}
.palette.selected{border-color:var(--blue)}
.detail-controls{justify-content:center;gap:28px}
.toggle-label input:checked+.toggle-track{background:var(--blue)}
.spin-button,.editor-print-button,.primary-button{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:none}
.spin-button:active:not(:disabled),.editor-print-button:active:not(:disabled){box-shadow:none;transform:none;background:var(--blue-dark)}
.spin-button:hover:not(:disabled),.editor-print-button:hover:not(:disabled),.primary-button:hover:not(:disabled){background:var(--blue-dark)}
.spin-button .button-spark{color:#cfe5ff}
.speed-row button.selected,.option-buttons button.selected{color:#2167b7;background:var(--blue-pale);border-color:#87b5eb}
.stage-tools{align-items:center;gap:7px}
.icon-button{color:#4879af;background:#fff;border-color:#d4e3f4}
.zoom-controls{display:flex;align-items:center;gap:0;border:1px solid #d4e3f4;border-radius:9px;height:32px;overflow:hidden;background:#fff}
.zoom-controls .icon-button{border:0;border-radius:0;width:29px;height:30px}
#zoom-reset{padding:0 3px;min-width:39px;height:30px;color:#4879af;font-size:11px;font-variant-numeric:tabular-nums;direction:ltr}
.zoom-controls button:hover:not(:disabled){background:var(--blue-pale)}
.zoom-controls button:disabled{opacity:.3;cursor:default}
.zoom-controls button:focus-visible{outline-offset:-3px}
.result-pill{bottom:auto;top:var(--result-top,16px);left:var(--result-left,60%);transform:none;max-width:var(--result-room,calc(40% - 12px));max-height:var(--result-height,220px);border:2px solid #91bcef;border-radius:16px;background:#fff;padding:7px 16px;gap:12px;box-shadow:0 6px 22px #2167b71a;white-space:normal;overflow:auto}
.result-pill>span{font-size:21px;font-weight:600;color:#3c658f;white-space:nowrap}
.result-pill strong{font-size:44px;line-height:1.15;min-width:0;max-width:380px;color:#1d64b5;white-space:pre-wrap;overflow-wrap:anywhere;text-overflow:clip;text-align:center;overflow:visible}
.result-pill img{display:block;width:180px;max-width:100%;height:96px;border-radius:9px;object-fit:contain}
.result-pill.multiline-result{align-items:center;flex-direction:column;gap:6px}
.result-pill.multiline-result strong{font-size:27px;line-height:1.35;max-height:165px;overflow:auto;text-align:center}
.result-pill.compact-result{flex-direction:column;gap:4px;padding:5px 8px;border-radius:14px}
.result-pill.compact-result>span{font-size:18px}
.result-pill.compact-result strong{max-width:100%;flex-shrink:1;overflow:auto}
@media(min-width:761px){.stage{align-self:start;position:relative;height:auto;min-height:0}}
@media(min-width:1400px){.page-heading{padding:7px 0 9px}}
@media(max-width:760px){.page-heading{padding:7px 0 9px}.page-heading h1{max-width:none}.stage-tools{gap:5px}.zoom-controls{height:28px}.zoom-controls .icon-button{width:25px;height:26px}#zoom-reset{height:26px;min-width:36px}.stage-top{padding:14px 16px 0;gap:8px}.live-label{gap:5px}.live-label h2{font-size:11px}.face-editor{grid-template-columns:31px minmax(0,1fr) 28px;gap:8px 7px}.face-thumb{width:31px;height:36px}.face-actions button{width:28px;height:31px}.face-main input,.face-main textarea{padding-right:26px;padding-left:26px}.face-main textarea{font-size:15px}.edit-face{left:3px;width:23px}.palettes{justify-content:center;gap:16px}.content-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.content-tabs button{font-size:13px;gap:5px}}
@media(max-width:550px){.face-editors{grid-template-columns:1fr}.face-editor{grid-template-columns:39px minmax(0,1fr) 32px;gap:8px 10px}.face-thumb{width:39px;height:39px}.face-actions button{width:32px;height:32px}.face-main input,.face-main textarea{padding-left:33px;padding-right:33px}.edit-face{left:5px;width:28px}.content-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.content-tabs button{font-size:14px}}
@media(max-width:760px){.page-heading p{font-size:13px}.result-pill{padding:10px 12px;gap:10px;border-radius:16px}.result-pill>span{font-size:18px}.result-pill.compact-result>span{font-size:16px}.result-pill strong{font-size:36px}.result-pill.multiline-result strong{font-size:22px;max-height:110px}.result-pill img{height:76px;width:130px;max-width:100%}}

/* Trim only the unused floor space, preserving the dreidel's original scale. */
.stage{--scene-base-height:655px;--scene-trim:50px;--scene-zoom:1;align-self:start;width:100%}
.stage-viewport{height:calc((var(--scene-base-height) - var(--scene-trim)) * var(--scene-zoom));min-height:0;flex:none}
#dreidel-canvas{height:calc(var(--scene-base-height) * var(--scene-zoom))}
.spin-controls{padding-top:4px;padding-bottom:16px}
.view-hint{position:relative;inset:auto;flex:none;padding:0;min-height:0;margin:9px 0 0;line-height:1.65;font-size:13px;color:#303a45}
.view-hint>div+div{margin-top:1px}
.speed-row{margin-top:12px;gap:10px;font-size:13px;color:#40536c}
.speed-row>span{font-weight:600}
.speed-row>div{gap:5px}
.speed-row button{font-size:12px;font-weight:600;padding:7px 12px;min-height:32px;border:1px solid #d8e4f2;border-radius:7px;color:#4d6785;background:#fff}
.speed-row button.selected{background:#e7f2ff;border-color:#75a8e4;color:#185aa7}
@media(max-width:760px){
  .stage{--scene-base-height:300px;--scene-trim:28px}
  .spin-controls{padding-top:16px;padding-bottom:14px}
  .result-pill,.result-pill.compact-result{flex-direction:row;gap:5px;padding:3px 7px;border-radius:10px;overflow:hidden}
  .result-pill>span,.result-pill.compact-result>span{font-size:15px;flex-shrink:0}
  .result-pill strong,.result-pill.compact-result strong{font-size:30px;line-height:1.2;overflow:visible;max-width:100%}
  .result-pill.multiline-result{flex-direction:column;gap:4px}
  .result-pill.multiline-result strong{font-size:20px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
  .result-pill.multiline-result strong::-webkit-scrollbar{display:none}
}

.design-heading{font-size:21px;font-weight:700;margin:0 0 15px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.editor{align-self:start;width:100%;scroll-margin-top:12px}
.editor-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;position:static;z-index:4;background:#fff;padding:0 0 17px;margin-bottom:18px;border-bottom:1px solid #e3ebf5}
.editor-switch button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:72px;padding:10px 4px;border:1.5px solid #87b5eb;border-radius:11px;background:#f5f9ff;color:#2167b7;font-size:14px;font-weight:700;line-height:1.3;box-shadow:none;transform:none;transition:background .15s,border-color .15s}
.editor-switch button[aria-selected=true]{background:var(--blue);border-color:var(--blue);color:#fff}
.editor-switch button:hover:not(:disabled){background:#e7f2ff;border-color:var(--blue)}
.editor-switch button[aria-selected=true]:hover:not(:disabled){background:var(--blue-dark);border-color:var(--blue-dark)}
.editor-switch button:focus-visible{outline:3px solid #a4ccfa;outline-offset:3px}
.editor-switch svg{width:21px;height:21px}
.editor-view{min-width:0}
@media(max-width:760px){.editor-switch{top:0;padding-top:8px;margin-top:-8px}.editor-switch button{min-height:66px;flex-direction:row;gap:8px}}
@media(max-width:420px){.editor-switch button{flex-direction:column;font-size:13px}}
.palettes{display:grid;grid-template-columns:repeat(5,40px);justify-content:center;gap:10px 13px}
.custom-colors-toggle{display:flex;width:100%;align-items:center;justify-content:center;gap:10px;border:2px solid var(--blue);border-radius:11px;padding:13px 12px;color:#fff;background:var(--blue);font-size:16px;font-weight:700;margin-top:18px;min-height:52px;box-shadow:none;transition:background .15s,border-color .15s}
.custom-colors-toggle svg{width:22px;height:22px}
.custom-colors-toggle .custom-colors-chevron{width:17px;height:17px;transition:transform .15s}
.custom-colors-toggle[aria-expanded="true"] .custom-colors-chevron{transform:rotate(180deg)}
.custom-colors-toggle:hover:not(:disabled),.custom-colors-toggle[aria-pressed="true"]{background:var(--blue-dark);border-color:var(--blue-dark);color:#fff}
.custom-color-dots{display:flex;direction:ltr;margin-right:3px;padding-left:3px}
.custom-color-dots i{width:12px;height:12px;border:1.5px solid #fff;border-radius:50%;background:#ffbf00;margin-left:-3px}
.custom-color-dots i:first-child{background:#ff2987}
.custom-color-dots i:last-child{background:#00cba6}
@media(max-width:360px){.palettes{column-gap:10px}}
.custom-colors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:12px}
.custom-color{display:flex;flex-direction:column;align-items:center;gap:7px;padding:9px 4px;background:#f8fbff;border:1px solid #d8e5f3;border-radius:10px;min-width:0}
.custom-color label{font-size:12px;font-weight:700;color:#3c536f}
.custom-color input[type=color]{width:37px;height:37px;padding:0;border:0;border-radius:8px;background:none;cursor:pointer}
.custom-color input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.custom-color input[type=color]::-webkit-color-swatch{border:1px solid #0002;border-radius:8px}
.custom-color input[type=color]::-moz-color-swatch{border:1px solid #0002;border-radius:8px}
.custom-color input[type=text]{font:11px Arial,sans-serif;text-align:center;direction:ltr;width:100%;min-width:0;padding:5px 1px;background:#fff;border:1px solid #ccdaea;border-radius:5px;color:#40566d}
.custom-color input[aria-invalid=true]{border-color:#c85151;outline-color:#c85151}
.custom-color-heading{grid-column:1/-1;margin:8px 0 2px;font-size:13px;color:#3c536f;font-weight:600}
.custom-parts{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.part-color{grid-column:span 2}
.part-color:nth-last-child(-n+2){grid-column:span 3}
.part-color label{min-height:30px;display:flex;align-items:center;justify-content:center;line-height:1.3;text-align:center}
.part-swatch{width:37px;height:37px;border-radius:8px;overflow:hidden;flex:none}
.part-swatch input[type=color]{display:block}
.automatic-color .part-swatch input{opacity:0}
.part-swatch:focus-within{outline:2px solid var(--blue);outline-offset:3px}
.part-color-reset{font-size:11px;color:#2167b7;text-decoration:underline;text-underline-offset:3px;padding:2px;min-height:24px}
.part-color-reset:disabled{color:#728295;text-decoration:none;cursor:default}
.model-heading{font-size:14px;margin:22px 0 10px;color:#3c536f}
.model-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.model-choice{width:calc((100% - 16px)/3);min-width:0;display:flex;flex-direction:column;align-items:center;padding:5px 4px 9px;gap:1px;border:1.5px solid #d6e2ef;border-radius:11px;background:#fff;color:#4e6580;font-size:12px;font-weight:600;position:relative}
.model-choice.selected{background:#edf5ff;border-color:var(--blue);color:#1d64b5}
.model-choice.selected:after{content:'✓';position:absolute;right:5px;top:5px;width:15px;height:15px;border-radius:50%;background:var(--blue);color:#fff;font-size:10px;line-height:15px}
.model-choice:hover:not(:disabled){border-color:#78a9e0;background:#f4f9ff}
.model-choice canvas{width:100%;height:98px;display:block;pointer-events:none}
@media(min-width:761px){.stage{position:sticky;top:min(10px,calc(100dvh - var(--scene-base-height)*var(--scene-zoom) - 280px))}}

.reset-dreidel{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;margin-top:12px;padding:10px 8px;border:1px solid #cbd8e8;border-radius:10px;background:#fff;color:#4b627d;font-size:13px;font-weight:600}
.reset-dreidel svg{width:17px;height:17px}
.reset-dreidel:hover:not(:disabled){background:#f4f8fe;border-color:#8aafd9;color:#185aa7}
.usage-content{max-width:1060px;margin:40px auto 0;padding:32px 0 8px;border-top:1px solid #e2eaf4;color:#425266;line-height:1.8;text-align:right}
.usage-content h2{font-size:25px;line-height:1.4;color:#263f5d;letter-spacing:-.4px;margin:0 0 13px}
.usage-content h3{font-size:17px;line-height:1.5;color:#264d79;margin:0 0 7px;letter-spacing:0}
.usage-content p{font-size:15px;margin:0 0 13px}
.usage-content section{scroll-margin-top:24px}
.usage-nav{display:flex;flex-wrap:wrap;gap:8px 20px;margin:18px 0 30px}
.usage-nav a,.back-to-generator{font-size:14px;font-weight:600;color:#2167b7;text-decoration:underline;text-underline-offset:4px}
.usage-nav a:hover,.back-to-generator:hover{color:#164a88}
.usage-steps{list-style:none;counter-reset:guide;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;padding:0}
.usage-steps li{counter-increment:guide;position:relative;padding:20px 57px 18px 20px;border:1px solid #dde8f5;border-radius:14px;background:#f9fbfe}
.usage-steps li:before{content:counter(guide);position:absolute;right:18px;top:21px;display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#e5f0ff;color:#2167b7;font:700 14px Arial,sans-serif}
.usage-steps p{margin-bottom:0;font-size:14px}
.usage-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:34px;margin:32px 0}
.usage-columns h2{font-size:22px}
.usage-content .usage-note{font-size:14px;padding:11px 14px;border-right:3px solid #8ab9ee;background:#f4f8fe;border-radius:7px;color:#355b86}
.faq-section{margin-top:30px}
.faq-section details{border-bottom:1px solid #e2eaf4}
.faq-section summary{display:flex;justify-content:space-between;align-items:center;gap:16px;list-style:none;cursor:pointer;padding:17px 0;font-size:16px;font-weight:600;line-height:1.6;color:#2c4b70}
.faq-section summary::-webkit-details-marker{display:none}
.faq-section summary:after{content:'+';font:400 23px Arial,sans-serif;color:#2475d4;flex:none;width:24px;text-align:center}
.faq-section details[open] summary:after{content:'−'}
.faq-section details[open] summary{color:#185aa7}
.faq-section summary:focus-visible{outline:3px solid #a4ccfa;outline-offset:3px;border-radius:5px}
.faq-section details p{margin:0;padding:0 0 18px 40px;max-width:920px}
.back-to-generator{display:inline-block;margin-top:24px}
@media(max-width:760px){.usage-content{margin-top:26px;padding-top:24px}.usage-content h2{font-size:22px}.usage-content p{font-size:14px}.usage-nav{gap:8px 16px;margin-bottom:24px}.usage-nav a{font-size:13px}.usage-steps,.usage-columns{grid-template-columns:1fr}.usage-steps{gap:10px}.usage-steps li{padding:16px 51px 16px 16px}.usage-steps li:before{top:17px;right:14px}.usage-columns{gap:21px;margin:26px 0}.usage-columns h2{font-size:20px}.faq-section summary{font-size:15px;padding:15px 0}.faq-section details p{padding-left:15px}.reset-dreidel{font-size:12px}}

/* Original publisher iframe: retain its HTML dimensions and scrolling attribute. */
.site-menu{display:none;text-align:center;margin:0 auto;height:120px}
.site-layout{display:block;margin:0 auto;width:100%}
.site-layout>main{width:100%;min-width:0}
.site-ad-rail{display:none;width:160px}
.site-ad-rail .site-ad-slot{width:160px;height:600px}
.site-mobile-ad{display:none;width:320px;height:100px;margin:8px auto 4px}
.site-mobile-ad .site-ad-slot{width:320px;height:100px}
.site-ad-slot{direction:ltr;overflow:hidden}
@media(min-width:769px){
  .site-menu{display:block}
  .site-layout{display:block;position:relative;width:1100px;max-width:none}
  .site-layout>main{width:1100px;min-width:1100px;margin:0}
  .site-ad-rail{display:block;position:absolute;top:80px;margin:0}
  .site-ad-right{left:calc(100% + 20px)}
  .site-ad-left{right:calc(100% + 20px)}
}
@media(min-width:320px) and (max-width:768px){.site-mobile-ad{display:block}}
@media print{.site-menu,.site-ad-rail,.site-mobile-ad{display:none!important}.site-layout{display:block;padding:0}}

/* Compact space before the generator heading. */
.page-heading{padding-top:0}

.hanukkah-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:28px auto 16px;padding:0 16px;direction:rtl}
.hanukkah-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 20px;border:1px solid #1760cc;border-radius:12px;background:#1760cc;color:#fff;text-decoration:none;font-weight:700;line-height:1.4;text-align:center;transition:background .15s}
.hanukkah-links a:hover{background:#104da9}
.hanukkah-links a:focus-visible{outline:3px solid #82b4ff;outline-offset:3px}
@media(max-width:768px){.hanukkah-links{gap:10px}.hanukkah-links a{padding:10px 15px}}
