:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR","Malgun Gothic",sans-serif;color:var(--ltct-ink,#14213d);background:#fff;font-synthesis:none;--green:var(--ltct-primary,#2447e8);--deep:var(--ltct-primary,#2447e8);--line:var(--ltct-border,#dbe3f2);--muted:var(--ltct-text-muted,#4c5a73);--soft:var(--ltct-surface,#f5f7ff)}
*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible,input:focus-visible+span{outline:3px solid var(--ltct-primary,#2447e8);outline-offset:3px}a{color:inherit}button{border:1px solid var(--line);background:#fff;border-radius:10px;min-height:42px}button:not(:disabled):hover{background:var(--ltct-surface-alt,#f0f4ff)}button.primary:hover{background:var(--deep)}.header{max-width:1224px;margin:auto;min-height:92px;display:flex;align-items:center;justify-content:space-between;padding:16px 32px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:14px;font-weight:650}.brand img{border-radius:50%;object-fit:cover}.brand small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:4px}.text-link{font-size:14px;text-underline-offset:5px;text-decoration-color:#c5d3c9}.text-link span{margin-left:8px}main{max-width:1224px;padding:34px 32px 0;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.eyebrow{font-size:14px;color:var(--green);font-weight:650;margin:0 0 8px}h1{font-size:clamp(27px,3vw,36px);line-height:1.25;letter-spacing:-.035em;margin:0;font-weight:750}.intro{font-size:16px;line-height:1.6;color:var(--muted);margin:10px 0 0}.prototype{font-size:13px;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:6px 9px;white-space:nowrap}.settings{display:flex;align-items:center;gap:20px;margin-bottom:20px;flex-wrap:wrap}.tiers{margin:0;border:0;padding:4px;background:var(--ltct-surface-alt,#f0f4ff);display:flex;border-radius:12px;gap:3px}.tiers label{cursor:pointer;position:relative}.tiers input{position:absolute;opacity:0;width:1px;height:1px}.tiers span{display:block;padding:9px 23px;border-radius:8px;min-height:40px;font-size:15px;color:var(--ltct-text-muted,#4c5a73)}.tiers input:checked+span{background:white;color:var(--green);font-weight:700;box-shadow:0 1px 4px #14213d16}.select-field{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted)}select{border:1px solid var(--line);border-radius:9px;background:white;color:var(--ltct-ink,#14213d);padding:10px 28px 10px 12px;min-height:44px;max-width:100%;font-size:15px}.time-field{margin-left:auto}.workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,1fr);gap:22px;align-items:start}.scene-panel{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:linear-gradient(155deg,#fbfcfb,var(--ltct-surface-alt,#f0f4ff))}.scene-top{padding:24px 24px 0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.map-code{font-size:12px;letter-spacing:.12em;color:var(--muted)}h2{font-size:19px;line-height:1.5;margin:4px 0 0;font-weight:650;letter-spacing:-.025em}.clock{text-align:right}.clock>span{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}.clock strong{font-size:23px;font-variant-numeric:tabular-nums;letter-spacing:.025em;font-weight:600}.clock.urgent{color:#ae3c27}.scene-wrap{height:422px;position:relative;isolation:isolate}.scene-wrap canvas{width:100%;height:100%;display:block}.camera{position:absolute;bottom:10px;right:18px;display:flex;align-items:center;gap:4px;color:var(--muted);font-size:13px}.camera>span{margin-right:5px}.camera button{width:40px;min-height:38px;font-size:21px;background:#ffffffeb;border-color:var(--ltct-border,#dbe3f2)}.scene-bottom{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:16px 20px;border-top:1px solid var(--ltct-border,#dbe3f2);color:var(--ltct-text-muted,#4c5a73);font-size:13px;line-height:1.5}.start-gate{position:absolute;inset:0;background:var(--ltct-surface,#f5f7ff);z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px}.start-gate img{object-fit:cover;border-radius:50%;margin-bottom:16px}.start-gate h3{font-size:21px;letter-spacing:-.03em;margin:0}.start-gate p{color:var(--muted);font-size:15px;line-height:1.7;margin:10px 0 20px}.primary{background:var(--green);color:#fff;border:0;border-radius:10px;min-height:50px;padding:12px 25px;font-weight:650;font-size:16px}.primary span{margin-right:8px}.start-gate .primary{min-width:190px;display:flex;justify-content:space-between;align-items:center}.start-gate .primary span{margin:0 0 0 20px}.program-panel{padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.panel-heading h2{margin:0}.panel-heading>span{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.program{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;min-height:116px;max-height:272px;overflow:auto;align-content:start;border:1px dashed var(--ltct-border,#dbe3f2);border-radius:10px;padding:10px;background:var(--ltct-surface,#f5f7ff)}.empty{grid-column:1/-1;text-align:center;align-self:center;line-height:1.7;color:var(--ltct-text-muted,#4c5a73);font-size:14px;margin:13px 0}.token{min-width:0;height:67px;border-radius:8px;position:relative;padding:12px 0 4px;text-align:center;background:#fff;transition:background .15s,border-color .15s}.token .order{position:absolute;top:3px;left:6px;font-size:10px;color:#76817a}.token .symbol{font-size:25px;line-height:1}.token .short{display:block;font-size:10px;line-height:1.1;margin-top:4px;letter-spacing:-.04em}.token[aria-pressed=true]{border:2px solid #4a8260;background:#eaf3eb}.token.active{background:#216344;color:white;border-color:#216344;opacity:1}.token.active .order{color:#d9eedc}.token.done{background:#f1f7f0;border-color:#c2d9be}.token.failed{background:#ffebe5;border-color:#d57b60;opacity:1}.edit-bar{display:flex;justify-content:space-between;gap:8px;margin:8px 0 20px}.edit-bar>div{display:flex;gap:2px}.edit-bar button{min-height:32px;background:transparent;border:0;font-size:12px;color:var(--ltct-primary,#2447e8);padding:4px 6px;border-radius:5px}.command-palette{display:grid;grid-template-columns:1fr 1fr;gap:8px}.command-palette>button{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:12px 10px;text-align:left;min-height:74px;border-radius:10px}.command-icon{font-size:29px;font-weight:500;color:var(--green);width:30px;flex-shrink:0;text-align:center}.command-palette b{font-size:14px;font-weight:600;white-space:nowrap}.command-palette small{display:block;color:var(--muted);font-size:11px;margin-top:4px;white-space:nowrap}.message{font-size:14px;line-height:1.6;color:var(--ltct-text-muted,#4c5a73);padding:15px 0;min-height:78px;word-break:keep-all;overflow-wrap:anywhere}.message.success{color:#1d683e;font-weight:600}.message.error{color:#a23f26}.run-controls{display:flex;gap:8px}.run-controls>.primary{flex:1}.run-controls>button:last-child{padding:10px 13px;font-size:14px;color:var(--muted)}.run-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--ltct-text-muted,#4c5a73);margin-top:12px}.retry{width:100%;margin-top:14px;color:var(--green);font-size:15px}.rules,.records{border-bottom:1px solid var(--line);padding:20px 0}.rules{margin-top:14px}summary{cursor:pointer;font-size:15px;font-weight:550;width:fit-content;line-height:1.5}details[open]>summary{margin-bottom:15px}.rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 30px}.rule-grid p,.records>p{font-size:14px;line-height:1.8;color:var(--muted);margin:6px 0}.rule-grid b{display:block;color:var(--ltct-ink,#14213d);font-size:15px}.subtle{font-size:13px;line-height:1.8;color:var(--muted)}.records summary span{font-size:13px;margin-left:10px;color:var(--muted)}.table-scroll{overflow:auto;margin-top:15px}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px}td,th{text-align:left;padding:12px;border-bottom:1px solid var(--ltct-border,#dbe3f2)}th{font-size:13px;font-weight:500;background:var(--ltct-surface-alt,#f0f4ff);color:var(--muted)}td small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.record-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:15px;color:var(--muted);font-size:13px}.record-actions button{padding:8px 15px;font-size:14px}footer{max-width:1224px;margin:30px auto 0;padding:10px 32px 28px;color:var(--ltct-text-muted,#4c5a73);display:flex;justify-content:space-between;gap:20px;font-size:12px;letter-spacing:.02em}footer span{letter-spacing:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}[hidden]{display:none!important}noscript{display:block;padding:30px;color:#a23f26}
@media(min-width:1150px){.workspace{grid-template-columns:minmax(0,1.5fr) minmax(395px,1fr)}}
@media(max-width:900px){.header{padding:14px 24px}main{padding:28px 24px 0}.workspace{grid-template-columns:1fr 350px;gap:14px}.program-panel{padding:17px}.scene-top{padding:20px 18px 0}.scene-wrap{height:427px}.program{gap:5px;padding:8px}.time-field{margin-left:0}.settings{gap:12px}.tiers span{padding:9px 20px}.heading{margin-bottom:23px}.prototype{display:none}.scene-bottom{font-size:12px;padding:13px 15px}.command-palette>button{gap:5px;padding:10px 7px}.command-icon{width:25px;font-size:26px}.command-palette small{font-size:10px}}
@media(max-width:760px){.header{min-height:74px;padding:14px 20px}.brand{font-size:13px;gap:9px}.brand img{width:35px;height:35px}.brand small{font-size:11px}.text-link{font-size:12px}.text-link span{display:none}main{padding:25px 18px 0}.heading{margin-bottom:22px}.eyebrow{font-size:13px}.intro{font-size:14px;margin-top:9px}.settings{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.tiers{grid-column:1/-1;justify-content:stretch}.tiers label{flex:1;text-align:center}.select-field{justify-content:space-between;font-size:13px;gap:5px}.select-field select{width:calc(100% - 36px);font-size:13px;padding:10px 20px 10px 8px;min-height:42px}.time-field select{width:calc(100% - 60px)}.workspace{grid-template-columns:1fr;gap:15px}.scene-top{padding:18px 20px 0}.scene-wrap{height:320px}.scene-bottom{font-size:12px;padding:12px 16px}.clock strong{font-size:22px}.program-panel{padding:20px}.program{min-height:84px;max-height:265px;grid-template-columns:repeat(6,minmax(0,1fr))}.token{height:66px}.command-palette>button{padding:12px;gap:12px}.command-palette b{font-size:15px}.command-palette small{font-size:12px;white-space:normal}.command-icon{font-size:30px;width:28px}.message{min-height:70px;font-size:14px}.run-controls .primary{min-height:52px}.rule-grid{grid-template-columns:1fr;gap:12px}.rules,.records{padding:20px 2px}footer{padding:4px 20px 25px;font-size:11px}footer span{display:none}.start-gate img{width:70px;height:70px;margin-bottom:12px}.start-gate h3{font-size:20px}.start-gate p{font-size:14px;margin:8px 0 15px}.edit-bar button{min-height:38px;font-size:13px}.run-meta{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.token .short{font-size:14px;letter-spacing:-.04em}.token .order{font-size:11px}.command-palette b{font-size:16px;white-space:normal}.command-palette small{font-size:14px;line-height:1.4;white-space:normal}.command-palette>button{align-items:flex-start}.command-icon{padding-top:4px}.edit-bar button{font-size:14px}.scene-bottom{font-size:14px}.brand{font-size:14px}.panel-heading>span{font-size:14px}
@media(max-width:380px){.program{grid-template-columns:repeat(5,minmax(0,1fr))}.program-panel{padding:16px}.command-palette>button{padding:10px 8px;gap:7px}.command-palette b{font-size:15px}.command-palette small{font-size:13px}.scene-wrap{height:300px}.select-field{flex-direction:column;align-items:stretch}.select-field select,.time-field select{width:100%}.brand{font-size:12px}.text-link{font-size:12px}}
@media(max-width:290px){.command-palette{grid-template-columns:1fr}.program{grid-template-columns:repeat(3,minmax(0,1fr))}.header{flex-wrap:wrap;gap:12px}.run-meta{flex-wrap:wrap}}
.stage-picker{display:flex;align-items:center;gap:8px;min-width:0}.stage-picker>button{width:42px;min-height:44px;flex:0 0 42px;font-size:19px}.stage-picker .select-field{min-width:0;flex:1}.stage-picker select{width:100%;min-width:220px}.stage-progress{font-size:14px;white-space:nowrap;color:var(--green);font-variant-numeric:tabular-nums}.stage-focus{font-size:14px;line-height:1.6;color:var(--muted);margin:6px 0 0;word-break:keep-all}.clock{flex-shrink:0;min-width:105px}.clock small{font-size:12px;display:block;color:var(--muted);line-height:1.5;margin-top:6px}.command-palette [data-command=F]{grid-column:1/-1;min-height:60px;align-items:center}.command-palette [data-command=F]>span:last-child{display:flex;align-items:center;gap:12px}.command-palette [data-command=F] small{margin:0}.command-palette [data-command=D] .command-icon{color:var(--ltct-primary,#2447e8)}.command-palette .command-icon{align-self:center}.outcome{border-top:1px solid var(--line);padding-top:15px;margin-top:18px}.outcome>p{font-size:14px;line-height:1.7;margin:0 0 12px;color:var(--green)}.rating{border:0;padding:0;margin:0 0 16px;display:flex;gap:7px}.rating legend{font-size:14px;padding:0;margin-bottom:8px}.rating legend span{font-size:12px;margin-left:6px;color:var(--muted)}.rating button{flex:1;padding:8px;font-size:14px;min-height:42px}.rating button[aria-pressed=true]{border-color:var(--ltct-primary,#2447e8);background:var(--ltct-surface-alt,#f0f4ff);color:var(--green);font-weight:650}.next-stage{width:100%}.comparison{border-bottom:1px solid var(--line);padding:20px 0}.comparison>p{font-size:14px;line-height:1.8;color:var(--muted);margin:6px 0}
@media(max-width:760px){.stage-picker{grid-column:1/-1;width:100%}.stage-picker .select-field{display:block}.stage-picker .select-field select{width:100%;min-width:0;font-size:15px;min-height:44px}.stage-progress{font-size:14px;padding:8px 0}.time-field{justify-self:end;min-width:170px;flex-direction:row;align-items:center;gap:8px}.time-field select{width:auto;min-width:112px}.scene-top{gap:8px}.scene-top h2{font-size:19px}.stage-focus{font-size:13px}.clock{min-width:97px}.command-palette [data-command=F]>span:last-child{flex-wrap:wrap;gap:5px 12px}.outcome{margin-top:17px}.comparison{padding:20px 2px}}
@media(max-width:380px){.stage-picker .select-field select{font-size:14px;padding-left:7px}.settings{column-gap:4px}.time-field{min-width:160px}.stage-progress{font-size:13px}.scene-top{padding:16px 14px 0}.stage-focus{max-width:185px;font-size:13px}.clock{min-width:94px}.clock small{font-size:11px}}

/* One compact play surface: controls, completion and editor share normal flow. */
html{scroll-padding:8px}body{padding-bottom:0}
.workspace{display:block;max-width:820px;margin:auto;scroll-margin-top:8px;overflow-anchor:none}
.scene-panel{position:relative;top:auto;overflow:hidden;border-radius:16px;background:var(--ltct-surface-alt,#f0f4ff);box-shadow:none}
.scene-wrap{height:400px}.scene-top{padding:18px 20px 0}.scene-top h2{font-size:20px}
.scene-bottom{font-size:14px;padding:8px 16px;align-items:center;gap:8px;border-top:0}
.food-count{color:#85580d;font-weight:650;background:#fff2cc;padding:1px 8px;border-radius:20px}.height-key{font-size:12px}
.icon-bar{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;padding:10px 16px 6px;border-top:1px solid var(--line)}
.icon-button{min-width:0;min-height:46px;height:46px;padding:0;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#fff;color:var(--green);font-size:28px;line-height:1;touch-action:manipulation}
.icon-button span{line-height:1}.icon-button:disabled{opacity:.42}.icon-button:not(:disabled):active{background:var(--ltct-surface-strong,#e9efff);transform:translateY(1px)}
.icon-button.play-button{background:var(--green);color:#fff;border-color:var(--green);font-size:21px}.icon-button.play-button:not(:disabled):hover{background:var(--deep)}
.icon-button.stop-button{color:#dc2626;background:#fff5f5;font-size:20px}
.icon-button.stop-button:disabled{opacity:1;background:#fff;border-color:#eadede}
.icon-button[data-command=D]{color:var(--ltct-primary,#2447e8)}
.scene-panel>.message{font-size:14px;line-height:20px;height:48px;min-height:48px;overflow:auto;padding:4px 16px;margin:0;word-break:keep-all;overflow-wrap:anywhere}
.program-panel{padding:8px 16px 14px;border:0;border-radius:0;background:#fff;overflow-anchor:none}
.panel-heading{gap:8px;margin-bottom:8px;align-items:center}.panel-heading h2{font-size:16px;margin:0}.panel-heading>span{font-size:14px;margin-left:auto}
#cancel-group{min-height:34px;font-size:14px;padding:4px 9px;color:#815340}
.program{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));height:108px;min-height:108px;max-height:108px;gap:6px;padding:6px;border:1px dashed var(--ltct-border,#dbe3f2);background:var(--ltct-surface,#f5f7ff);border-radius:9px;overflow:auto;overflow-anchor:none;overscroll-behavior:contain;touch-action:pan-y}
.program .token{height:44px;min-height:44px;padding:0;display:flex;align-items:center;justify-content:center;min-width:0;background:#fff;border:1px solid #d1ddd2;touch-action:manipulation}
.program .token .order{display:none}.program .token .symbol{font-size:26px;line-height:1}.program .token[aria-pressed=true]{background:#dcebcf;border:2px solid #47793b}
.program .token.macro-token{background:#eaf3df;color:#3d6932;font-weight:750}.program .token.active{background:#216344;color:white;border-color:#216344;opacity:1}
.program .token.failed{background:#ffebe5;border-color:#d57b60;opacity:1}.program .token.done{background:#f1f7f0;border-color:#c2d9be}
.program .empty{font-size:14px;line-height:1.5;margin:15px 0;align-self:center}
.edit-bar{display:flex;gap:6px;align-items:center;margin:8px 0 0}.edit-bar button{font-size:20px;min-height:40px;padding:5px;min-width:34px;border:1px solid var(--line);background:white;border-radius:7px;color:var(--ltct-primary,#2447e8)}
.edit-bar .group-button{font-size:15px;font-weight:650;padding:6px 12px;color:var(--ltct-primary,#2447e8);background:var(--ltct-surface-alt,#f0f4ff);border-color:var(--ltct-border-strong,#bdcbed);min-width:68px}
.edit-bar #clear{font-size:14px;margin-left:auto;padding:5px 9px}
.editor-hint{font-size:14px;line-height:20px;min-height:40px;margin:6px 0 8px;color:var(--ltct-text-muted,#4c5a73);word-break:keep-all;overflow-wrap:anywhere}
.library-heading{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:0 0 6px}.library-heading h3{font-size:15px;margin:0;font-weight:650}.library-heading>span{font-size:12px;color:var(--muted)}
.bundle-list{display:flex;flex-wrap:wrap;gap:6px;min-height:44px;max-height:156px;overflow:auto;overscroll-behavior:contain}
.library-empty{margin:10px 0;font-size:14px;color:var(--muted)}
.saved-bundle{display:flex;align-items:stretch;min-width:0;max-width:100%;border:1px solid var(--ltct-border-strong,#bdcbed);border-radius:8px;background:var(--ltct-surface-alt,#f0f4ff);overflow:hidden}
.saved-bundle button{min-height:42px;border:0;border-radius:0;background:transparent}.bundle-call{display:flex;align-items:center;gap:8px;min-width:0;padding:5px 10px;max-width:260px}
.bundle-call b{font-size:21px;color:var(--ltct-ink,#14213d);flex-shrink:0}.bundle-preview{font-size:19px;color:var(--ltct-text-muted,#4c5a73);max-width:185px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bundle-edit{font-size:22px;width:36px;flex-shrink:0;color:var(--ltct-text-muted,#4c5a73);border-left:1px solid var(--ltct-border,#dbe3f2)!important}.saved-bundle.playing{border-color:var(--ltct-primary,#2447e8);background:var(--ltct-surface-strong,#e9efff)}
.run-meta{font-size:12px;align-items:center;margin-top:8px}.run-meta button{font-size:14px;min-height:34px;padding:4px 9px;color:var(--green);border:0;background:transparent}
.scene-panel>.outcome{border:1px solid var(--ltct-border-strong,#bdcbed);background:var(--ltct-surface-alt,#f0f4ff);border-radius:10px;padding:10px 12px;margin:0 16px 10px}
.outcome>p{font-size:15px;line-height:1.5;margin:0 0 8px;font-weight:650}.completion-actions{display:flex;gap:8px}.completion-actions button{flex:1;min-height:44px;margin:0;font-size:16px;padding:8px}
.rating-details{margin-top:8px}.rating-details summary{font-size:14px;color:var(--muted)}.rating-details .rating{margin:8px 0 0}
.mission{padding:14px 16px;border:1px solid var(--line);background:var(--ltct-surface,#f5f7ff);border-radius:12px;color:var(--ltct-ink,#14213d);margin-top:12px}
.mission>b{font-size:14px}.mission p{font-size:16px;line-height:1.6;margin:5px 0 8px;word-break:keep-all}.mission small{font-size:13px;line-height:1.6;color:var(--muted)}
@media(max-width:760px){
  .header{min-height:58px;padding:10px 14px}main{padding:14px 12px 0}.heading{margin-bottom:14px}.heading h1{font-size:26px}.eyebrow{margin-bottom:5px}.intro{margin-top:6px}
  .scene-panel{border-radius:12px}.scene-top{padding:10px 12px 0;align-items:center;gap:8px}.scene-top h2{font-size:18px;line-height:1.3;margin:2px 0}.map-code{font-size:12px}.stage-focus{display:none}
  .clock{min-width:92px}.clock strong{font-size:21px}.clock>span,.clock small{font-size:12px;margin:0}
  .scene-wrap{height:310px;height:clamp(280px,42svh,380px)}.scene-bottom{padding:5px 10px;font-size:13px;min-height:30px}
  .camera{bottom:4px;right:8px;gap:4px}.camera button{min-height:34px;width:34px;font-size:20px}
  .start-gate{padding:8px}.start-gate img{width:40px;height:40px;margin-bottom:5px}.start-gate h3{font-size:17px}.start-gate p{font-size:12px;line-height:1.4;margin:5px 0 8px}.start-gate .primary{font-size:14px;min-height:42px;padding:8px 14px}
  .icon-bar{gap:3px;padding:8px 8px 4px}.icon-button{font-size:25px;height:44px;min-height:44px;border-radius:7px}.icon-button.play-button{font-size:19px}.icon-button.stop-button{font-size:18px}
  .scene-panel>.message{padding:4px 10px;font-size:14px;height:48px;min-height:48px}
  .program-panel{padding:6px 10px 10px}.panel-heading{margin-bottom:6px}.program{grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:5px;padding:5px;height:100px;min-height:100px;max-height:100px}
  .program .token{height:42px;min-height:42px}.program .token .symbol{font-size:25px}
  .edit-bar{gap:5px;margin-top:6px}.edit-bar button{min-width:30px;min-height:40px}.edit-bar .group-button{min-width:60px;padding:6px 8px}.edit-bar #clear{padding:5px 6px}
  .editor-hint{font-size:14px;line-height:20px;margin:5px 0 6px;min-height:40px}
  .scene-panel>.outcome{margin:0 10px 8px;padding:9px 10px}.completion-actions button{font-size:15px}.library-heading{flex-wrap:wrap;gap:3px}
}
@media(max-width:340px){.scene-bottom .height-key{display:none}.icon-bar{gap:2px;padding-left:5px;padding-right:5px}.icon-button{font-size:23px}.edit-bar{gap:3px}}
@media(max-height:500px) and (orientation:landscape){.scene-wrap{height:240px}}

/* Zoom belongs to the canvas; the command bar keeps its size and position. */
.scene-wrap{overflow:hidden}.scene-wrap canvas{touch-action:pan-y;user-select:none;cursor:grab}.scene-wrap canvas:active{cursor:grabbing}
.scene-view-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 6px}
.goal-key{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:13px;color:#6b5348}
.goal-key i{width:13px;height:13px;border:1px solid #b94c2c;border-radius:3px;background:#ff9b62}
.scene-view-tools .camera{position:static;gap:4px;flex-shrink:0}
.scene-view-tools .camera button{width:38px;min-height:38px;padding:0;font-size:21px;touch-action:manipulation}
.scene-view-tools .camera #zoom-fit{width:56px;font-size:13px;font-variant-numeric:tabular-nums}
.scene-pan-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;padding:4px 16px 6px;color:var(--ltct-text-muted,#4c5a73);overflow-anchor:none}
.scene-pan-controls>span{font-size:14px;margin-right:auto}
.scene-pan-controls>button{width:44px;min-height:44px;padding:0;font-size:23px;background:#fff;touch-action:manipulation}
@media(max-width:760px){.scene-pan-controls{padding-left:10px;padding-right:10px;gap:5px}}
@media(max-width:760px){.scene-view-tools{padding:0 10px 4px}.scene-view-tools .camera button{width:34px;min-height:36px}.scene-view-tools .camera #zoom-fit{width:52px}}
@media(max-width:340px){.scene-view-tools{padding-left:8px;padding-right:8px;gap:4px}.scene-view-tools .camera{gap:3px}.goal-key{font-size:12px;gap:4px}}

.quick-bundles{padding:2px 16px 6px;min-height:48px;max-height:108px;align-items:center;align-content:flex-start;gap:6px;touch-action:pan-y;overflow-anchor:none}
.quick-bundles .saved-bundle{flex:0 0 auto;border-radius:8px}
.quick-bundles .bundle-call{width:44px;max-width:none;min-height:44px;padding:0;justify-content:center;touch-action:manipulation}
.quick-bundles .bundle-call b{font-size:24px}
.quick-bundles .bundle-edit{width:32px;min-height:44px;touch-action:manipulation}
.quick-bundles .library-empty{font-size:13px;line-height:1.5;margin:8px 0}
@media(max-width:760px){.quick-bundles{padding-left:8px;padding-right:8px}}
.quick-bundles .bundle-edit{width:28px}
.quick-bundles .bundle-delete{width:28px;min-height:44px;border-left:1px solid var(--ltct-border,#dbe3f2);color:#b44634;font-size:24px;touch-action:manipulation}
.quick-bundles .bundle-delete:not(:disabled):hover{background:#ffebe5}
.undo-group-delete{margin:0 16px 5px;padding:4px 10px;font-size:14px;min-height:34px;color:var(--green);background:#fff}
.score-guide{margin:0 0 7px;color:var(--ltct-text-muted,#4c5a73);font-size:13px;line-height:1.5}
.outcome>.score-detail{font-size:14px;font-weight:400;line-height:1.5;margin:0 0 10px;color:var(--ltct-text-muted,#4c5a73)}
.completion-actions{flex-wrap:wrap;scroll-margin-block:16px}.completion-actions button{min-width:110px;touch-action:manipulation}
.outcome.failed{background:#fff7ee;border-color:#e4c9a7}.outcome.failed>p{color:#85502e}
.program,.bundle-list{overscroll-behavior-y:auto}
.scene-gesture-hint{margin:0;padding:0 16px 5px;font-size:12px;line-height:1.5;color:var(--muted)}
.position-info{margin:0;padding:2px 12px 8px;color:var(--ltct-ink,#14213d);font-size:14px;font-weight:600;line-height:1.5}
.scene-error{display:flex;align-items:center;gap:8px;margin:8px 12px 0;padding:8px 10px;border:1px solid #dfb8a0;background:#fff5eb;border-radius:8px;font-size:14px;line-height:1.5;color:#874b2b}
.scene-error>span{flex:1}.scene-error button{flex-shrink:0;padding:5px 8px;min-height:40px;font-size:14px}
.strategy-rules{margin:10px 12px 0;padding:10px 12px;border:1px solid var(--ltct-border-strong,#bdcbed);border-radius:10px;background:#fff}
.strategy-rules summary{font-size:15px;color:var(--green)}.strategy-rules[open]>summary{margin-bottom:8px}
.strategy-rules p{font-size:14px;line-height:1.6;margin:4px 0;color:var(--ltct-ink,#14213d)}.strategy-rules #strategy-task{font-size:16px;font-weight:600}
.strategy-rules .strategy-score{font-size:13px;color:var(--muted);margin-top:8px}
.case-controls{padding:10px 12px 0;font-size:14px;color:var(--ltct-ink,#14213d)}.case-controls>div{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}
.case-controls button{flex:1;min-width:80px;padding:6px 8px;min-height:42px;font-size:14px;touch-action:manipulation}
.case-controls button[aria-pressed=true]{border-color:var(--ltct-primary,#2447e8);background:var(--ltct-surface-strong,#e9efff);color:var(--ltct-primary,#2447e8);font-weight:700}
.goal-direction,.world-status{margin:0;padding:0 12px 8px;font-size:14px;line-height:1.6;color:#566454}.goal-direction{color:#814d28;font-weight:650}
.hint-controls{display:flex;align-items:center;gap:10px;padding:8px 12px;min-height:62px;scroll-margin-top:8px}
.hint-controls button{flex-shrink:0;min-height:44px;padding:8px 12px;color:var(--ltct-primary,#2447e8);background:var(--ltct-surface-alt,#f0f4ff);border-color:var(--ltct-border-strong,#bdcbed);font-size:15px;font-weight:650;touch-action:manipulation}
.hint-controls>span{min-width:0;font-size:14px;line-height:1.5;color:var(--ltct-text-muted,#4c5a73);overflow-wrap:anywhere;word-break:keep-all}
@media(max-width:760px){.undo-group-delete{margin-left:10px;margin-right:10px}}
