:where(.host-header,.host-layout,.host-footer,.stage),:where(.host-header,.host-layout,.host-footer,.stage) *{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif}:where(.host-header,.host-layout,.host-footer,.stage) button,:where(.host-header,.host-layout,.host-footer,.stage) input,:where(.host-header,.host-layout,.host-footer,.stage) select,:where(.host-header,.host-layout,.host-footer,.stage) textarea{font:inherit}:where(.host-header,.host-layout,.host-footer,.stage) button,:where(.host-header,.host-layout,.host-footer,.stage) a,:where(.host-header,.host-layout,.host-footer,.stage) input,:where(.host-header,.host-layout,.host-footer,.stage) select,:where(.host-header,.host-layout,.host-footer,.stage) textarea{touch-action:manipulation}:where(.host-header,.host-layout,.host-footer,.stage) button,:where(.host-header,.host-layout,.host-footer,.stage) a{ -webkit-tap-highlight-color:transparent} [hidden]{display:none!important}
.source-body{width:100vw;height:100vh;overflow:hidden;background:transparent;color:#faf7ed}.stage{position:absolute;top:0;left:0;width:720px;height:1280px;transform-origin:top left;overflow:hidden;background-color:#503824;background-image:repeating-linear-gradient(0deg,#150c0618 0px,#150c0618 1px,transparent 1px,transparent 4px),repeating-linear-gradient(90deg,transparent 0,transparent 179px,#2512082a 180px,transparent 182px),linear-gradient(165deg,#71563b,#302010);font-weight:700}.stage.transparent{background:transparent}.stage.solid{background-image:none}.identity{position:absolute;top:76px;left:88px;display:flex;flex-direction:column;gap:8px;letter-spacing:2px;font-size:16px;color:#f5e6ce}.identity small{font-size:14px;letter-spacing:1.4px;color:#cfbca3}.mode{position:absolute;top:79px;right:58px;max-width:280px;padding:8px 12px;border-radius:7px;background:#241a12d9;color:#e3d5bf;font-size:14px;text-align:right}.mode.simulated{color:#ffe080;border:1px solid #d1a039}.round-strip{position:absolute;left:87px;top:154px;width:550px;height:44px;display:flex;align-items:center;gap:17px}.round-strip>strong{background:#271c12d9;padding:10px 18px;border-radius:24px;font-size:21px;white-space:nowrap}.timer-track{height:15px;border-radius:9px;background:#1f160e9c;flex:1;overflow:hidden}#timer{width:100%;height:100%;background:#15b7a6;border-radius:9px;transition:background .6s}#seconds{font-size:16px;font-variant-numeric:tabular-nums;width:36px;text-align:right;color:#f4dfc2}.blanks{position:absolute;top:218px;left:100px;width:520px;min-height:46px;display:flex;justify-content:center;gap:7px;font-size:38px;line-height:44px;letter-spacing:1px}.letter{display:inline-flex;width:34px;min-width:0;max-width:38px;flex:0 1 34px;align-items:center;justify-content:center;border-bottom:4px solid #e9e2d5;color:#ffbf00;text-shadow:1px 2px #392005}.letter.shown{border-color:#ffbf00}.letter.space{flex-basis:12px;border:0}.blanks.long{font-size:28px;gap:4px}.blanks.long .letter{border-bottom-width:3px}.paper{position:absolute;left:100px;top:282px;width:520px;height:520px;background:#f8f4e8;background-image:radial-gradient(#ac947012 .8px,transparent .9px);background-size:5px 5px;border-radius:22px;box-shadow:0 18px 27px #0007,0 1px 0 2px #fff3;overflow:hidden}.paper svg{display:block;width:100%;height:100%}#strokes path{fill:none;stroke-linecap:round;stroke-linejoin:round}.gift-chip{position:absolute;right:5px;top:608px;width:87px;text-align:center;font-size:14px;line-height:16px;text-shadow:1px 2px 2px #000}.gift-chip img{width:52px;height:52px;display:block;margin:0 auto 2px;object-fit:contain}.gift-chip strong{display:block;max-width:87px;overflow:hidden;white-space:normal;line-height:1.15}.gift-chip span{display:block;font-size:14px;letter-spacing:.4px}.stamp{position:absolute;top:42%;left:8%;width:84%;font-size:58px;color:#e64c36;text-align:center;border:7px solid #e64c36;padding:13px 4px;transform:rotate(-13deg);background:#fbefd6e3;text-shadow:none;animation:stamp-in .3s ease-out}.winners{position:absolute;top:824px;left:70px;width:580px;max-height:82px;display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:center;gap:8px;overflow:hidden}.winner{display:flex;gap:8px;align-items:center;max-width:157px;padding:5px 12px 5px 5px;background:#14a99a;border-radius:24px;font-size:14px;box-shadow:0 3px 0 #00665f70;animation:pop .3s ease-out}.winner .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{display:inline-grid;place-items:center;width:26px;height:26px;flex:0 0 26px;background:#efdfb6;color:#674222;border:2px solid #f9f0d3;border-radius:50%;font-size:14px;text-shadow:none}.answer-block{position:absolute;top:822px;width:100%;text-align:center}.answer-block small{display:block;font-size:14px;letter-spacing:1.5px;margin-bottom:12px}.answer-block strong{display:block;font-size:38px;color:#ffc400;text-shadow:0 3px #6e4100}.lower{position:absolute;top:923px;left:151px;width:418px}.prompt{text-align:center;font-size:18px;line-height:27px;color:#f4e4c7;margin:0 0 17px;text-shadow:0 2px #25190d}.leaderboard{border-radius:15px;background:#1e170fde;padding:14px 12px 10px;box-shadow:0 9px 14px #160b064d}.leaderboard h2{color:#23c5b6;text-align:center;font-size:14px;letter-spacing:1.7px;margin:0 0 10px}.board-row{display:flex;gap:9px;align-items:center;background:#fff1;border:1px solid transparent;border-radius:9px;margin-bottom:5px;padding:6px 8px;font-size:14px;height:38px}.board-row:first-child{background:#a574123f;border-color:#d39e26}.board-row>span:first-child{color:#ffe18a;min-width:14px;text-align:center}.board-row .avatar{width:24px;height:24px;flex-basis:24px}.board-row .name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board-row b{color:#ffca1e}.empty{color:#c7b99f;text-align:center;font-size:14px;line-height:22px;padding:9px 3px}.source-foot{position:absolute;bottom:19px;width:100%;padding:0 45px;display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#c9b99f;font-weight:400}.stage>.effects{position:absolute;left:100px;top:724px;width:520px;pointer-events:none;display:flex;align-items:center;flex-direction:column;gap:7px}.stage .effect{display:flex;gap:10px;background:#20170fe8;padding:11px 16px;border:1px solid #dfb657;border-radius:12px;max-width:95%;font-size:16px;animation:pop .25s ease-out;box-shadow:0 7px 15px #0003}.stage .effect b{color:#ffcb36}.stage .effect span{color:#fff0cc;font-size:14px}.stage .effect.correct{border-color:#17b0a0}.stage .effect.correct b{color:#3ce3c5}.result-panel{position:absolute;inset:10px;background:#25231ff0;border-radius:14px;padding:23px 16px;color:#f8f4e8}.result-panel h2{font-size:18px;letter-spacing:1.2px;color:#20c5b3;text-align:center;margin:0 0 18px}.result-row{display:flex;align-items:center;gap:10px;background:#ffffff13;border-radius:10px;margin:7px 0;padding:12px;font-size:17px}.result-row .name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-row small{color:#c9c7be;font-size:14px}.result-row b{font-size:14px;color:#21c7b0}.pause-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#211a10ce;color:#fcd671;font-size:48px;letter-spacing:4px}.stage[data-phase=leaderboard] .result-panel{display:block}.stage[data-phase=reveal] .stamp{display:block}.stage[data-rows="8"] .board-row{height:27px;font-size:14px;padding:2px 6px}.stage[data-rows="8"] .board-row .avatar{width:21px;height:21px;flex-basis:21px}.stage[data-rows="8"] .leaderboard{padding:10px}.stage[data-rows="8"] .prompt{margin-bottom:8px;font-size:16px}
@keyframes pop{from{transform:translateY(8px) scale(.92);opacity:0}to{transform:none;opacity:1}}@keyframes stamp-in{from{transform:rotate(-13deg) scale(1.5);opacity:0}to{transform:rotate(-13deg) scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.winner,.effect,.stamp{animation:none}}
.stage.custom{background-position:center;background-size:cover;background-repeat:no-repeat}.stage[data-reveal=stamp] .paper svg{visibility:hidden}.stage[data-reveal=stamp] .paper::before{content:"";position:absolute;inset:0;background:#f8f4e8;background-image:radial-gradient(#ac947012 .8px,transparent .9px);background-size:5px 5px;z-index:1}.stage[data-reveal=stamp] .stamp{z-index:2}
/* Hosted controls remain separate from the clean capture. */
.host-body{background:#171714;color:#f3eee3;line-height:1.55}.host-header{max-width:1160px;margin:auto;padding:30px 28px 22px;border-bottom:1px solid #3b382f}.eyebrow{font-size:14px;letter-spacing:2px;color:#d4b568;font-weight:700}.host-header h1{font-size:clamp(27px,4vw,39px);line-height:1.2;margin:8px 0 10px;font-weight:750}.host-header p{max-width:700px;color:#bbb7ac;margin:0}.host-layout{max-width:1160px;margin:auto;display:grid;grid-template-columns:minmax(300px,480px) minmax(350px,1fr);gap:36px;padding:27px 28px 60px;align-items:start}.preview-column{position:sticky;top:16px}.preview-wrap{background:repeating-conic-gradient(#35352f 0 25%,#292a25 0 50%) 0/22px 22px;border:1px solid #62573e;border-radius:14px;overflow:hidden;box-shadow:0 16px 34px #0004}.preview-wrap iframe{display:block;border:0;width:100%;aspect-ratio:9/16}:is(.host-header,.host-layout,.host-footer) button,:is(.host-header,.host-layout,.host-footer) .button{border:1px solid #665839;border-radius:7px;background:#f0bd43;color:#21190d;padding:10px 13px;font-weight:700;cursor:pointer;text-decoration:none;text-align:center;line-height:1.3;min-height:42px;display:inline-flex;align-items:center;justify-content:center}:is(.host-header,.host-layout,.host-footer) button:hover,:is(.host-header,.host-layout,.host-footer) .button:hover{filter:brightness(1.08)}:is(.host-header,.host-layout,.host-footer) button.secondary,:is(.host-header,.host-layout,.host-footer) .button.secondary{background:#302e26;color:#ede1c4;border-color:#57513e}:is(.host-header,.host-layout,.host-footer) button.danger{color:#ffcebc;background:#392b26;border-color:#855b48}:is(.host-header,.host-layout,.host-footer) button:disabled{opacity:.4;cursor:not-allowed}:is(.host-header,.host-layout,.host-footer) button:focus-visible,:is(.host-header,.host-layout,.host-footer) a:focus-visible,:is(.host-header,.host-layout,.host-footer) input:focus-visible,:is(.host-header,.host-layout,.host-footer) select:focus-visible,:is(.host-header,.host-layout,.host-footer) textarea:focus-visible{outline:3px solid #22b6a6;outline-offset:3px}.controls{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}:is(.host-header,.host-layout,.host-footer) h2{font-size:22px;line-height:1.3;margin:0 0 12px;color:#fff2d3}.panel{padding:0 0 26px;margin:0 0 23px;border-bottom:1px solid #3c392f}html:not(.tt-shell) .panel p,html:not(.tt-shell) .notice{font-size:14px;color:#c4beaf;margin:10px 0}.notice{border-left:3px solid #a5823e;padding:2px 0 2px 13px}.label-line{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px;font-size:14px;color:#d8bc7c;font-weight:700;letter-spacing:.7px}:is(.host-header,.host-layout,.host-footer) label{display:flex;flex-direction:column;gap:6px;font-size:14px;color:#e0d6bd;font-weight:700}:is(.host-header,.host-layout,.host-footer) input,:is(.host-header,.host-layout,.host-footer) select,:is(.host-header,.host-layout,.host-footer) textarea{border:1px solid #565247;border-radius:6px;width:100%;background:#23231e;color:#f8f4e7;min-height:42px;padding:9px 10px;min-width:0;outline-offset:2px}:is(.host-header,.host-layout,.host-footer) textarea{font-family:monospace;font-size:14px;resize:vertical;word-break:break-all}:is(.host-header,.host-layout,.host-footer) input[type=color]{padding:5px}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:14px 0}:is(.host-header,.host-layout,.host-footer) label.wide{grid-column:1/-1}:is(.host-header,.host-layout,.host-footer) details{margin-top:15px}:is(.host-header,.host-layout,.host-footer) summary{cursor:pointer;font-weight:700;color:#e6d39e;padding:8px 0}.status{font-size:14px;color:#75dac1;min-height:22px;margin:10px 0}:is(.host-header,.host-layout,.host-footer) fieldset{border:0;padding:0;margin:0;min-width:0}.help{font-size:14px;color:#b9b29f}:is(.host-header,.host-layout,.host-footer) code{font-size:14px;color:#ebd6a4;overflow-wrap:anywhere}.host-footer{max-width:1160px;margin:auto;padding:0 28px 36px;font-size:14px;color:#9e9787}:is(.host-header,.host-layout,.host-footer) a{color:#f7cd67}.mode-tag{font-size:14px;background:#493a18;color:#ffe496;padding:4px 8px;border-radius:4px}:is(.host-header,.host-layout,.host-footer) .status.error{color:#ffb6a7}.settings-column{min-width:0}:is(.host-header,.host-layout,.host-footer) h3{font-size:16px;margin:18px 0 8px;color:#fff2d3}.play-list{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:12px}.play-list li{display:flex;gap:10px;align-items:flex-start}.play-list p{margin:0;line-height:1.45;overflow-wrap:anywhere}.play-icon{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:8px;background:#302e26;overflow:hidden}.play-icon img{width:36px;height:36px;object-fit:contain;display:block}.play-icon svg{width:22px;height:22px}.steps{margin:6px 0 14px;padding-left:1.2rem}.steps li{margin:6px 0;overflow-wrap:anywhere}.source-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:8px}html:not(.tt-shell) .gift-picker-status{min-height:1.2em;margin:8px 0 12px;color:#c4beaf;font-size:14px;line-height:1.45}.gift-legend{display:grid;gap:8px;margin:0 0 14px}.gift-legend-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;border:1px solid #565247;border-radius:10px;background:#23231e}.gift-legend-copy{min-width:0}.gift-legend-copy strong,.gift-legend-copy span{display:block;overflow-wrap:anywhere}.gift-legend-copy strong{font-size:14px}.gift-legend-copy .gift-legend-meta{color:#b9b29f;font-size:14px;font-weight:500}.gift-legend-action{font-size:14px;letter-spacing:.04em;text-transform:uppercase;color:#23c5b6;font-weight:800}.gift-thumb-shell,.gift-thumb,.gift-thumb-fallback{width:46px;height:46px;border-radius:8px}.gift-thumb,.gift-thumb-fallback{background:#302e26}.gift-thumb{display:block;object-fit:contain}.gift-thumb-fallback{display:grid;place-items:center;padding:4px;color:#c4beaf;font-size:14px;font-weight:700;line-height:1.15;text-align:center}.gift-legend-row .secondary{min-height:38px}@media(max-width:800px){.host-layout{grid-template-columns:1fr;gap:30px;padding:22px 18px 40px}.preview-column{position:static;max-width:440px;width:100%;margin:auto}.host-header{padding:24px 18px 20px}.host-layout .settings-column{min-width:0}.host-header p{font-size:14px}:is(.host-header,.host-layout,.host-footer) .controls button{flex:1}.host-footer{padding:0 18px 24px}.grid-two{gap:10px}.gift-legend-row{grid-template-columns:46px minmax(0,1fr)}.gift-legend-row .secondary{grid-column:1/-1}}@media(max-width:380px){:is(.host-header,.host-layout,.host-footer) button{font-size:14px;padding:10px}:is(.host-header,.host-layout,.host-footer) label{font-size:14px}.grid-two{gap:9px}}

/* Shared-core host additions and source-only presentation. */
.avatar{position:relative;overflow:hidden}.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
[data-tt-gift-icons=off] .gift-chip img{display:none!important}
html.tt-shell .preview-section .preview-wrap{position:relative;border:0;background:repeating-conic-gradient(#35352f 0 25%,#292a25 0 50%) 0/22px 22px}
html.tt-shell #mode-label{position:absolute;top:10px;left:10px;z-index:3;padding:3px 8px;border-radius:6px;background:#252931;color:#f7f7f4;font-size:14px}
html.tt-shell .gift-copy{display:grid;gap:2px;min-width:0;flex:1}
html.tt-shell .gift-copy>span{color:var(--copy);overflow-wrap:anywhere}
html.tt-shell .gift-actions{justify-content:flex-end}
html.tt-shell .practice-actions{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin-top:16px;pointer-events:auto}
html.tt-shell .practice-panel .note{margin-bottom:0}
/* Step 4 uses the shared shell's unboxed Battle Arena gift rows. */
html.tt-shell #gifts .gift-legend{display:block;margin:0}
html.tt-shell #gifts .gift-legend-row{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
/* Notion #3: section 05 body text matches the Battle Arena reference. */
html.tt-shell .panel .input-grid>label{color:var(--ink)}
