:root{--ink:#25392f;--green:#31654c;--lime:#d9ecb5;--cream:#f7f7ee;--line:#dedfd4;--muted:#7a8378;--orange:#e58056;--paper:#fffef8;font-family:ui-rounded,'SF Pro Rounded',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}*{box-sizing:border-box}body{margin:0}:where(button,input,textarea,select){font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button{transition:background .18s,transform .18s,box-shadow .18s}button:not(:disabled):active{transform:translateY(1px)}button:focus-visible,a:focus-visible,[tabindex]:not(input,textarea,select):focus-visible{outline:3px solid #e2a14f;outline-offset:4px}a{color:inherit}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.page-shell{max-width:1600px;padding:0 48px;margin:auto}.topbar{height:94px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{text-decoration:none;display:flex;align-items:center;gap:10px;font-size:20px;font-weight:850;letter-spacing:1.7px}.brand-symbol{width:38px;height:42px;background:var(--ink);color:var(--cream);border-radius:10px;font-size:32px;font-weight:900;line-height:40px;letter-spacing:-4px;padding-left:7px}.brand-symbol span{font-size:16px;vertical-align:top;line-height:26px}.brand-sub{display:block;font-size:8px;letter-spacing:1.6px;font-weight:650;margin-top:2px}.top-note,.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:800}.top-note{display:flex;gap:9px;align-items:center;color:#687467}.green-dot{width:6px;height:6px;display:inline-block;background:#6c9361;border-radius:50%;box-shadow:0 0 0 4px #8ba37813}.text-btn{border:0;padding:4px 0;background:none;color:var(--muted);font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.text-btn:hover{color:var(--green)}.help-mark{border:1px solid #bdc3b4;width:19px;height:19px;border-radius:50%;font-size:11px;line-height:17px}.intro{display:flex;align-items:center;justify-content:space-between;padding:34px 0 30px;gap:20px}.eyebrow{color:#71836b;font-size:9px;letter-spacing:1.8px}.intro h1{font-size:clamp(32px,3.2vw,48px);line-height:1.2;letter-spacing:-1.8px;margin:8px 0 12px;font-weight:820}.intro h1>span:not(.title-star){position:relative;color:var(--green)}.intro h1 svg{position:absolute;width:100%;height:11px;left:0;bottom:-6px;fill:none;stroke:#a9c77c;stroke-width:5;stroke-linecap:round}.intro .title-star{display:inline-block;color:var(--orange);font-size:36px;vertical-align:top;margin-left:17px;font-weight:500}.intro p{margin:0;color:var(--muted);font-size:13px}.mission-note{position:relative;display:flex;align-items:center;gap:10px;transform:rotate(4deg);flex-wrap:wrap;width:210px;padding:13px 12px 13px 22px;border-left:2px solid #d6dec9;font-size:13px;font-style:italic;color:#758366}.mission-note span:first-child{width:100%;font-style:normal;font-size:8px;letter-spacing:1.2px}.mission-note .icon{width:27px;height:27px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:stretch}.game-panel{position:relative;overflow:hidden;border:1px solid #d5ddcf;border-radius:18px;background:var(--paper);box-shadow:0 7px 0 -4px #e5e8d9;min-width:0}.scene-top{height:47px;padding:0 19px;display:flex;align-items:center;justify-content:space-between;background:#f4f8eb;border-bottom:1px solid #dfe6d6}.scene-location{display:flex;gap:9px;align-items:center;font-size:9px;letter-spacing:1.5px;font-weight:750}.scene-tools{display:flex;align-items:center;gap:8px}.icon-btn{width:31px;height:31px;display:inline-grid;place-items:center;background:transparent;border:1px solid transparent;border-radius:8px;color:#64735d;padding:4px}.icon-btn:hover{background:#e3ead8;border-color:#ccd5c1}.icon-btn[aria-pressed=false]{color:#a6aa9f;position:relative}.icon-btn[aria-pressed=false]:after{content:'';position:absolute;width:22px;height:1.5px;background:#a6aa9f;transform:rotate(-45deg)}.scene-wrap{position:relative;aspect-ratio:16/9;min-height:300px;overflow:hidden;background:#c7e6ec}#scene{width:100%;height:100%;display:block}.scene-caption{position:absolute;left:50%;top:17px;transform:translateX(-50%);white-space:nowrap;background:#fffef4e8;border:1px solid #d5debe;padding:9px 16px;border-radius:22px;box-shadow:0 3px 0 #24392f08;font-size:11px;color:#546947;font-weight:600;transition:opacity .4s}.caption-spark{color:#81a054;padding-right:5px}.scene-coordinate{position:absolute;bottom:10px;left:16px;font-size:7px;letter-spacing:1.4px;color:#fff9;text-shadow:0 1px 1px #28372977}.controls{padding:20px;display:flex;align-items:center;gap:24px;border-top:1px solid #d4ddcc;background:var(--paper)}.count-control{display:flex;flex-direction:column;gap:8px;flex-shrink:0}.count-control>label{font-size:10px;color:#73806d;font-weight:650}.stepper{display:flex;align-items:center;height:36px;border:1px solid #d7dfcc;border-radius:8px;overflow:hidden;width:103px}.stepper button{border:0;background:#f0f4e8;font-size:19px;color:#66795d;align-self:stretch;width:31px;flex-shrink:0}.stepper input{appearance:textfield;-moz-appearance:textfield;width:39px;border:0;background:transparent;text-align:center;font-weight:750;font-size:14px;padding:0;color:var(--ink)}.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.repeat-control{display:flex;align-items:center;gap:9px;font-size:11px;cursor:pointer;white-space:nowrap}.repeat-control input{position:absolute;opacity:0;width:0}.repeat-control input:focus-visible+.toggle{outline:3px solid #e2a14f;outline-offset:3px}.repeat-control small{display:block;font-size:9px;color:#8c9584;margin-top:5px}.toggle{width:31px;height:18px;border-radius:20px;background:#c6cdbe;position:relative;transition:background .2s}.toggle:after{content:'';width:12px;height:12px;position:absolute;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .2s}.repeat-control input:checked+.toggle{background:#5f8052}.repeat-control input:checked+.toggle:after{transform:translateX(13px)}.primary-btn,.secondary-btn{border:0;border-radius:10px;min-height:44px;padding:12px 19px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:650;font-size:12px;line-height:1.3}.primary-btn{background:var(--green);color:#fffef2;box-shadow:0 3px 0 #204632}.primary-btn:hover:not(:disabled){background:#244f3b;box-shadow:0 4px 0 #173a29}.secondary-btn{background:#f4f5eb;color:#5e6e55;border:1px solid #dfe4d4}.secondary-btn:hover{background:#e9eeda}.summon-btn{margin-left:auto;min-height:56px;font-size:14px;flex:1;max-width:310px}.summon-btn>.icon{width:25px;height:25px}.key-hint{font-size:7px;letter-spacing:1px;border:1px solid #ffffff42;border-radius:4px;padding:5px;margin-left:auto;color:#d1dec5}.game-foot{display:flex;justify-content:space-between;align-items:center;padding:0 20px 15px;gap:10px;color:#8c9482;font-size:9px}.game-foot .text-btn{font-size:10px}.game-foot .icon{width:12px;height:12px}.roster-panel{border:1px solid var(--line);border-radius:16px;background:#fffef8;display:flex;flex-direction:column;overflow:hidden;min-height:0;max-height:650px}.roster-heading{padding:22px 20px 19px;display:flex;gap:11px;align-items:center}.roster-icon{background:#eff2e5;width:37px;height:37px;border-radius:11px;display:grid;place-items:center;color:#849b71}.roster-heading h2{font-size:14px;letter-spacing:-.3px;margin:0 0 6px}.roster-heading p{font-size:9px;color:#8c9283;margin:0}.edit-btn{margin:0 19px 19px;display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 9px;border:1px dashed #afbfa0;color:#59734a;background:#f8f9ef;border-radius:8px;font-size:11px;font-weight:650}.edit-btn .icon{width:15px;height:15px}.edit-btn>span{margin-left:auto}.edit-btn:hover{background:#ebf1de}.roster-tabs{display:flex;gap:19px;padding:0 20px;border-bottom:1px solid #eceee2}.tab{border:0;border-bottom:2px solid transparent;padding:0 0 12px;font-size:10px;font-weight:650;display:flex;align-items:center;gap:7px;background:none;color:#9ba190}.tab.active{border-color:#6a854f;color:#526b42}.tab span{font-size:8px;background:#eff2e7;padding:2px 5px;border-radius:5px;min-width:16px}.roster-content{padding:8px 18px;flex:1;overflow-y:auto;min-height:225px;max-height:370px;scrollbar-width:thin;scrollbar-color:#d9dfce transparent}.student-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #f0f1e8;min-height:46px}.student-row:last-child{border-bottom:0}.avatar{width:30px;height:30px;border-radius:50%;background:#f2eadb;display:grid;place-items:center;flex-shrink:0;overflow:hidden}.avatar svg{width:29px;height:29px}.student-name{font-size:11px;font-weight:600;flex:1;line-height:1.45;overflow-wrap:anywhere}.student-row .student-number{font-size:8px;color:#b1b7a6;width:15px;text-align:right}.student-row.called{opacity:.47}.called-badge{font-size:8px;color:#6c8b52;background:#edf2e5;border-radius:4px;padding:3px;flex-shrink:0}.roster-footer{border-top:1px solid #eceee3;padding:14px 18px;font-size:9px;color:#9ba08f;display:flex;align-items:center;gap:7px}.lock-icon{font-size:15px}.history-group{padding:10px 0;border-bottom:1px solid #eceee2}.history-title{font-size:9px;color:#a0a88f;margin-bottom:4px;display:flex;justify-content:space-between}.history-group .student-row{border:0;padding:6px 0}.empty-history{text-align:center;padding:50px 7px;color:#93a082;font-size:12px;line-height:1.8}.empty-history span{display:block;font-size:35px;margin-bottom:12px}.below-game{display:flex;justify-content:space-between;align-items:center;padding:25px 1px 34px}.below-game>div{display:flex;align-items:center;gap:12px}.tip-star{color:#d59562;font-size:32px;font-weight:400}.below-game p{font-size:10px;line-height:1.85;margin:0;color:#909782}.below-game p strong{color:#657559;font-weight:650}.space-note{font-size:9px;color:#959c8a}kbd{font:inherit;padding:4px 8px;border:1px solid #d4dcc5;border-bottom-width:2px;border-radius:4px;margin:0 4px;background:#fcfcf5}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:19px 0 25px;font-size:8px;font-weight:600;letter-spacing:1.1px;color:#939d85}.footer-star{color:#d59e6d;font-size:14px;margin:0 7px}dialog{border:1px solid #d4ddc7;border-radius:20px;background:var(--paper);color:var(--ink);box-shadow:0 30px 100px #17241635;padding:28px;max-width:calc(100vw - 30px);max-height:calc(100dvh - 40px)}dialog::backdrop{background:#1d302b73;backdrop-filter:blur(5px)}.editor-dialog{width:780px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2{font-size:24px;letter-spacing:-.6px;margin:7px 0}.dialog-heading .icon-btn{align-self:flex-start}.dialog-description{font-size:12px;color:#859076;line-height:1.8;margin:13px 0 21px}.editor-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px}.editor-input>label{font-size:11px;font-weight:650;display:block;margin-bottom:9px}.editor-input textarea{resize:vertical;width:100%;min-height:265px;max-height:380px;padding:12px;border:1px solid #d8dfcc;background:white;border-radius:10px;font-size:12px;line-height:1.85;color:var(--ink)}.editor-preview{border:1px solid #dfe5d4;border-radius:10px;overflow:hidden;background:#f7f9ef}.preview-heading{display:flex;justify-content:space-between;padding:12px;border-bottom:1px solid #e1e6d6;font-size:11px}.preview-heading>span{font-size:10px;color:#8b957b}#previewRows{max-height:280px;overflow:auto;padding:5px 11px}.preview-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #e8ecdf}.preview-row>span{flex:1;font-size:11px;overflow-wrap:anywhere}.preview-row select{font-size:10px;padding:5px 3px;border:1px solid #d8dfcd;background:#fffef8;border-radius:5px;color:#65814f;width:64px}.import-actions{display:flex;justify-content:space-between;gap:12px;padding-top:8px}.import-actions .text-btn{font-size:10px}.editor-info{font-size:10px;color:#98a088;line-height:1.7;margin-top:16px}.form-error{background:#fff0e7;border:1px solid #ebbb9b;border-radius:8px;padding:9px 12px;font-size:11px;color:#a75737;white-space:pre-line}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.small-dialog{width:470px}.small-dialog>p{font-size:13px;line-height:1.8;color:#869575}.small-dialog h2{font-size:22px}.how-list{list-style:none;padding:0;margin:20px 0}.how-list li{display:flex;gap:15px;margin-bottom:22px}.how-list li>span{font-size:13px;color:#849b6c;background:#eaf0de;border-radius:10px;width:35px;height:35px;display:grid;place-items:center;flex-shrink:0}.how-list strong{font-size:13px}.how-list p{font-size:12px;line-height:1.7;color:#8b977c;margin:5px 0}.help-foot{background:#f0f3e6;border-radius:8px;padding:13px}.wide{width:100%}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#253e2f;color:#fffef0;padding:13px 20px;border-radius:12px;box-shadow:0 5px 20px #14281f30;font-size:12px;max-width:calc(100% - 30px);z-index:999;text-align:center}.result-layer{position:absolute;inset:0;background:transparent;backdrop-filter:none;z-index:5;display:grid;place-items:center;padding:20px}.result-layer[hidden]{display:none}.result-card{position:relative;width:440px;max-width:100%;max-height:100%;overflow-y:auto;background:var(--paper);border-radius:20px;padding:24px 28px;text-align:center;box-shadow:0 20px 70px #13221930;border:1px solid #e0e8d3;animation:result-in .5s cubic-bezier(.18,.8,.2,1.2)}@keyframes result-in{from{opacity:0;transform:translateY(24px) scale(.9)}to{opacity:1;transform:none}}.result-orbit{font-size:48px;height:67px;position:relative;display:inline-block;padding:0 30px}.result-orbit span{position:absolute;font-size:22px;color:#a7bd75;left:0;top:8px}.result-orbit span+span{left:auto;right:0;top:30px;color:#de9765}.result-card h2{font-size:29px;letter-spacing:-1px;margin:10px 0}.result-card>p{font-size:11px;line-height:1.7;color:#8b957e;margin:0 0 18px}.result-names{max-height:200px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.result-person{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 16px;background:#eef3e3;border:1px solid #dce5cb;border-radius:10px;font-size:19px;font-weight:700}.result-person .avatar{width:37px;height:37px}.result-person .avatar svg{width:35px;height:35px}.result-person>span:last-child{overflow-wrap:anywhere}.result-actions{display:flex;gap:10px;justify-content:center;margin-top:21px}.result-bottom{font-size:9px;color:#a1a78e;margin-top:16px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#gamePanel:fullscreen{display:flex;flex-direction:column;border:0;border-radius:0;width:100vw;height:100dvh}#gamePanel:fullscreen .scene-wrap{flex:1;min-height:0;aspect-ratio:auto}#gamePanel:fullscreen .controls{justify-content:center;gap:50px}#gamePanel:fullscreen .summon-btn{margin-left:0;flex:initial;width:300px}#gamePanel:fullscreen .scene-top{flex-shrink:0}body.is-running .scene-caption{background:#203e37e8;color:#e1f8ba;border-color:#60826a}body.is-running .scene-top{background:#e6ecdd}.game-panel.busy .repeat-control{pointer-events:none;opacity:.5}
@media(min-width:1450px){.workspace{grid-template-columns:minmax(0,1fr) 320px}.roster-content{max-height:435px}.roster-panel{max-height:760px}.controls{gap:36px}.scene-wrap{min-height:400px}}
@media(max-width:1150px){.page-shell{padding:0 28px}.workspace{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.controls{gap:15px;padding:16px}.summon-btn{font-size:12px}.key-hint{display:none}.repeat-control{font-size:10px}.scene-wrap{min-height:320px}.intro{padding:28px 0}.roster-heading{padding:19px 16px}.roster-content{padding:8px 14px}.edit-btn{margin:0 15px 18px}}
@media(max-width:940px){.workspace{grid-template-columns:1fr}.roster-panel{max-height:450px}.roster-content{max-height:240px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 22px}.roster-content.history-view{display:block}.roster-heading{padding:18px}.edit-btn{position:absolute;right:18px;top:18px;margin:0}.roster-panel{position:relative}.roster-heading p{font-size:10px}.roster-panel h2{font-size:14px}.scene-wrap{min-height:330px}.controls{gap:30px}.summon-btn{font-size:14px}.repeat-control{font-size:12px}.key-hint{display:block}.mission-note{margin-right:10px}.roster-content .student-name{font-size:11px}.topbar{height:78px}.below-game{padding-bottom:24px}}
@media(max-width:600px){.page-shell{padding:0 16px}.topbar{height:72px}.brand{font-size:17px}.brand-symbol{width:32px;height:36px;line-height:34px;font-size:29px;padding-left:5px}.brand-sub{font-size:6.5px}.top-note{display:none}.intro{padding:26px 0 24px}.intro h1{font-size:34px;letter-spacing:-1.5px;margin:10px 0 14px}.intro .title-star{font-size:27px;margin-left:10px}.intro .eyebrow{font-size:8px;letter-spacing:1.4px}.intro p{font-size:11px}.mission-note{display:none}.scene-wrap{min-height:310px;aspect-ratio:1.23}.scene-top{padding:0 12px;height:43px}.scene-location{font-size:8px;letter-spacing:1px}.scene-caption{font-size:9px;padding:8px 11px;top:12px;max-width:95%;white-space:normal;text-align:center;width:max-content}.controls{padding:16px;gap:16px 20px;flex-wrap:wrap}.count-control{flex-direction:row;align-items:center;gap:10px}.count-control>label{font-size:9px;width:48px;line-height:1.5}.repeat-control{font-size:10px;margin-left:auto}.repeat-control small{font-size:8px}.stepper{width:95px}.stepper input{width:31px}.summon-btn{flex-basis:100%;max-width:none;min-height:50px;margin:0}.key-hint{display:none}.game-foot{padding:0 16px 13px;font-size:8px}.game-foot .text-btn{font-size:9px}.roster-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.roster-heading{padding:19px 14px;gap:8px}.roster-heading h2{font-size:12px}.roster-icon{width:29px;height:32px}.roster-icon .icon{width:17px;height:17px}.roster-heading p{font-size:8px}.edit-btn{font-size:9px;padding:9px 7px;right:12px;top:20px;gap:5px}.edit-btn span{display:none}.edit-btn .icon{width:12px;height:12px}.roster-tabs{padding:0 15px}.student-name{font-size:10px!important}.avatar{width:26px;height:26px}.student-row{gap:6px}.student-number{display:none}.space-note{display:none}.below-game p{font-size:9px}.below-game{padding:22px 0}.footer{font-size:6px;letter-spacing:.7px;padding-bottom:20px}.editor-layout{grid-template-columns:1fr}.editor-dialog{padding:22px}.editor-input textarea{min-height:170px;height:180px}.editor-preview{max-height:210px}#previewRows{max-height:160px}.dialog-heading h2{font-size:22px}.dialog-actions{flex-wrap:wrap}.dialog-actions .primary-btn{flex:1}.result-layer{padding:12px}.result-card{padding:20px 17px}.result-card h2{font-size:25px}.result-person{font-size:16px;padding:9px 12px}.result-actions{gap:8px}.result-actions button{font-size:10px;padding:11px 12px}.result-orbit{font-size:42px;height:57px}.result-card>p{font-size:10px}.result-names{max-height:190px}#gamePanel:fullscreen .controls{gap:15px}#gamePanel:fullscreen .summon-btn{flex:1;min-width:150px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition:none!important;scroll-behavior:auto!important}}
.playback-controls{display:flex;align-items:center;gap:16px}.playback-controls button[hidden]{display:none}.result-active .scene-top,.result-active .scene-wrap,.result-active .controls,.result-active .game-foot{pointer-events:none}.roster-empty{font-size:11px;color:#9aa288;padding:30px 0;text-align:center;grid-column:1/-1}@media(max-width:600px){.playback-controls{gap:10px}.game-foot{flex-wrap:wrap;row-gap:10px}.game-foot>span{font-size:8px}.playback-controls .text-btn{font-size:8px}}
/* Immersive street layout, matching the classroom reference. */
body{overflow-x:hidden;background:#b9dbe0}.page-shell{padding:0;max-width:none;height:100dvh}.page-shell>main{height:100%}.game-panel{height:100%;border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;background:#bfdee6}.scene-wrap{flex:1;min-height:0;aspect-ratio:auto;width:100%;height:auto;overflow:hidden}.scene-top{height:35px;min-height:35px;padding:0 17px;background:#fffdf2e8;position:absolute;left:0;right:0;top:0;z-index:2;border-bottom:1px solid #e8ecdf80}.scene-location{font-size:10px;letter-spacing:.6px;gap:7px;color:#435e4a}.scene-location .icon{width:20px;height:20px}.scene-location small{font-size:8px;color:#8b9986;letter-spacing:.5px;margin-left:4px}.scene-top #availability{font-size:9px;color:#82917b}.scene-caption{top:51px;font-size:11px;font-weight:500;border-radius:6px;background:#fffdf1d9;padding:8px 15px;border-color:#ffffffaa;box-shadow:0 2px 6px #6b806517}.controls{padding:9px 16px;min-height:61px;gap:18px;background:#fffef8;border-top:1px solid #c7d9c8;flex-wrap:nowrap;justify-content:space-between;flex-shrink:0;z-index:3}.toolbar-hint{display:flex;gap:8px;align-items:center;font-size:10px;color:#7d8c76;white-space:nowrap}.toolbar-buttons{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}.toolbar-btn{background:#f5f5ee;border:1px solid #e4e6db;min-height:32px;border-radius:6px;padding:7px 10px;color:#72836a;font-size:10px;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.toolbar-btn .icon{width:13px;height:13px}.toolbar-btn:hover{background:#e8efde}.summon-btn{flex:initial;max-width:none;min-height:34px;height:34px;padding:7px 13px;font-size:11px;margin:0;border-radius:6px;box-shadow:0 2px 0 #376850;background:#4f9b78}.summon-btn>.icon{width:18px;height:18px}.key-hint{padding:3px;font-size:6px;display:inline-block;margin-left:3px}.toolbar-btn.help-btn{width:30px;min-width:30px;font-size:14px;padding:4px}.settings-row{display:flex;align-items:center;gap:35px;padding:14px 16px;margin-bottom:20px;border:1px solid #e2e7d7;border-radius:10px;background:#f1f5e7}.settings-row .count-control{flex-direction:row;align-items:center;gap:12px}.settings-row .count-control>label{font-size:11px;width:auto}.settings-row .repeat-control{font-size:11px}.roster-dialog{width:480px}.roster-dialog .roster-panel{border:0;max-height:75dvh;border-radius:0}.roster-dialog .roster-heading{padding:16px 0}.roster-dialog .roster-tabs{padding:0}.roster-dialog .roster-content{display:block;max-height:50dvh;padding:8px 0;min-height:150px}.roster-dialog .roster-footer{padding:14px 0}.roster-dialog .student-name{font-size:12px!important}.roster-dialog .student-number{display:block}.avatar-0{background:#e6ebd6}.avatar-1{background:#f1dfca}.avatar-2{background:#dce8df}.avatar-3{background:#e4dfee}.result-card{width:490px;border-radius:14px;padding:27px 32px;text-align:left;background:#fffef7;overflow:visible}.result-orbit{font-size:25px;height:auto;float:left;padding:0 10px 0 0;margin-top:6px}.result-orbit span{display:none}.result-card .eyebrow{font-size:8px;letter-spacing:1.4px;margin:0 0 5px}.result-card h2{font-size:22px;letter-spacing:-.4px;line-height:1.35;max-width:310px;margin:0 0 12px}.result-card>p{clear:both;margin-top:15px;margin-bottom:12px;font-size:11px}.result-person{border:0;border-bottom:1px solid #eeeedf;background:transparent;border-radius:0;padding:9px 0;font-size:18px}.result-person .avatar{width:34px;height:34px}.result-actions{justify-content:flex-start;flex-direction:row-reverse;margin-top:19px}.result-actions .primary-btn{background:#4f9b78;box-shadow:none}.result-actions .secondary-btn{background:transparent;border:0}.result-bottom{text-align:right;font-size:8px}.caught-stamp{position:absolute;right:26px;top:29px;font-size:13px;letter-spacing:1.5px;border:2px solid #b77768;color:#b77768;padding:5px 8px;transform:rotate(-11deg);border-radius:5px;font-weight:800}.result-names{max-height:40dvh}.result-layer{position:absolute;inset:0;z-index:6}.is-running .scene-top{background:#eeefe6dd}.is-running .scene-caption{opacity:.9}.game-panel.busy .toolbar-hint .green-dot{background:#8fa257}.toast{bottom:78px}#gamePanel:fullscreen .controls{gap:18px;justify-content:space-between}#gamePanel:fullscreen .summon-btn{width:auto;min-width:0;flex:initial}
@media(max-width:1200px){.toolbar-hint{display:none}.controls{justify-content:center}.toolbar-buttons{gap:6px}.toolbar-btn{font-size:10px}.scene-wrap{min-height:0}}
@media(max-width:700px){.scene-top{padding:0 11px;height:32px;min-height:32px}.scene-location{font-size:9px}.scene-location small{display:inline-flex}.scene-top #availability{font-size:8px;max-width:165px;text-align:right}.controls{padding:9px 7px;min-height:90px;gap:5px}.toolbar-buttons{gap:5px}.toolbar-btn{font-size:9px;padding:7px 9px;min-height:31px}.toolbar-btn .icon{width:13px;height:13px}.summon-btn{font-size:10px;min-height:32px;height:32px;padding:7px 13px;flex-basis:auto;min-width:105px}.key-hint{display:none}.scene-caption{font-size:9px;top:46px;padding:7px 10px;max-width:92%}.settings-row{gap:20px;flex-wrap:wrap;padding:12px}.settings-row .repeat-control{margin-left:0}.settings-row .count-control{gap:12px}.result-card{padding:23px 21px;max-width:450px}.result-card h2{font-size:20px;max-width:220px}.result-card .eyebrow{font-size:6px;letter-spacing:1px}.caught-stamp{font-size:10px;right:19px;top:28px;padding:4px 6px}.result-person{font-size:16px}.result-orbit{font-size:23px}.result-bottom{text-align:left}.result-card>p{font-size:10px}.result-actions{justify-content:flex-end}.roster-dialog{padding:22px}.toast{bottom:112px}}
@media(max-width:420px){.toolbar-btn{padding:6px 7px}.toolbar-buttons{gap:4px}.toolbar-btn .icon{display:none}.scene-top #availability{font-size:7px}.result-card h2{max-width:180px;font-size:18px}.caught-stamp{font-size:9px}}
@media(max-height:500px) and (orientation:landscape){.controls{min-height:46px;padding:5px}.toolbar-buttons{gap:4px}.toolbar-btn{font-size:8px;padding:6px 7px;min-height:28px}.summon-btn{height:29px;min-height:29px;font-size:9px}.scene-top{height:27px;min-height:27px}.scene-caption{top:35px;padding:5px 10px;font-size:9px}.result-card{max-height:90dvh;overflow:auto}.result-names{max-height:25dvh}.result-orbit,.result-card>p,.result-bottom{display:none}.result-card h2{font-size:19px}.result-actions{margin-top:10px}.result-person{padding:6px 0}.result-card{padding:18px 23px}}

[hidden]{display:none!important}
@media(max-width:600px){.editor-input textarea{height:145px;min-height:145px}.editor-preview{max-height:160px}#previewRows{max-height:115px}.editor-dialog .dialog-actions{margin-top:16px}.editor-dialog .dialog-description{margin-bottom:14px}}

.avatar canvas{display:block;width:100%;height:100%}

/* Settings share one dialog; scenery changes are independent of the class list. */
.settings-tabs{display:flex;gap:5px;margin:17px 0 0;padding:4px;background:#eaf0e1;border-radius:10px}
.settings-tab{flex:1;border:0;border-radius:7px;background:transparent;padding:11px 16px;color:#7a8970;font-size:12px;font-weight:650}
.settings-tab.active{background:#fffef8;color:#486847;box-shadow:0 1px 4px #30432a12}
.settings-tab:focus-visible{outline:2px solid #638b58;outline-offset:2px}
.environment-choices{margin:0;padding:0;border:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.environment-choices legend{font-size:11px;font-weight:650;margin-bottom:10px;padding:0}
.environment-choice{display:block;position:relative;cursor:pointer;min-width:0}
.environment-choice>input{position:absolute;right:12px;top:14px;accent-color:#568765;width:14px;height:14px;margin:0;z-index:1}
.environment-card{display:flex;align-items:center;gap:12px;min-height:81px;border:1px solid #dce3d1;border-radius:10px;padding:8px;background:#fffef8;transition:background .15s,border-color .15s}
.environment-choice input:checked+.environment-card{border-color:#7ba06c;background:#f0f6e7;box-shadow:inset 0 0 0 1px #7ba06c}
.environment-choice input:focus-visible+.environment-card{outline:2px solid #638b58;outline-offset:3px}
.environment-choice input:disabled+.environment-card{opacity:.55;cursor:default}
.environment-choice-label{display:flex;flex-direction:column;gap:6px;padding-right:15px;min-width:0}
.environment-choice-label strong{font-size:12px;color:#4d6548;font-weight:650}
.environment-choice-label small{font-size:9px;color:#87947a;line-height:1.45}
.environment-art{display:block;position:relative;isolation:isolate;overflow:hidden;width:82px;height:63px;border-radius:6px;flex-shrink:0;background:linear-gradient(#c6e4e9 0 69%,#e0d4b7 69% 85%,#bbc3b8 85%)}
.environment-cloud{position:absolute;left:8px;top:9px;width:29px;height:7px;border-radius:10px;background:#fffef2}
.environment-cloud:before{content:'';position:absolute;width:14px;height:12px;left:8px;bottom:1px;border-radius:50%;background:inherit}
.environment-building{position:absolute;left:13px;bottom:13px;width:45px;height:28px;background:#f2bc94;border-top:5px solid #cf8467;box-shadow:0 1px 0 #a7876b}
.environment-building:before{content:'';position:absolute;left:5px;right:5px;top:6px;height:9px;background:repeating-linear-gradient(90deg,#749394 0 7px,transparent 7px 12px)}
.environment-building:after{content:'';position:absolute;left:7px;right:7px;top:-8px;height:8px;border-radius:2px;background:#eddfa7}
.environment-tree{position:absolute;right:12px;bottom:13px;width:4px;height:25px;background:#967355;border-radius:2px}
.environment-tree:before{content:'';position:absolute;left:-10px;top:-3px;width:25px;height:23px;border-radius:50%;background:#83ac7f}
.environment-art-school{background:linear-gradient(#c4e7ed 0 67%,#bdd69b 67% 76%,#dfd2b2 76%)}
.environment-art-school .environment-building{left:7px;width:56px;height:31px;background:#f3dda9;border-top-color:#c58171}
.environment-art-school .environment-building:after{left:20px;right:20px;top:-17px;height:12px;background:#f3dda9;clip-path:polygon(50% 0,100% 45%,100% 100%,0 100%,0 45%)}
.environment-art-school .environment-tree{right:8px;height:20px}
.environment-art-park{background:linear-gradient(#d0e7e8 0 68%,#a5c98d 68% 79%,#ded0ae 79% 88%,#b5d495 88%)}
.environment-art-park .environment-building{left:18px;bottom:13px;width:24px;height:10px;background:#b5956c;border-top:3px solid #917a5d;box-shadow:none}
.environment-art-park .environment-building:before{left:3px;right:3px;top:7px;height:4px;border-left:2px solid #79664d;border-right:2px solid #79664d;background:none}
.environment-art-park .environment-building:after{display:none}
.environment-art-park .environment-tree{right:21px;height:31px;box-shadow:-40px 7px 0 #967355}
.environment-art-park .environment-tree:before{background:#80aa75;box-shadow:-37px 4px 0 #9bbe8a;width:29px;height:27px;left:-12px}
.environment-art-seaside{background:linear-gradient(#bfe7ec 0 49%,#71bdce 49% 72%,#f0ddb0 72%)}
.environment-art-seaside .environment-building{width:22px;height:23px;left:16px;bottom:11px;background:#f5f0d5;border-top:5px solid #d88b72}
.environment-art-seaside .environment-building:before{left:8px;right:8px;top:5px;height:8px;background:#86bcc9}
.environment-art-seaside .environment-building:after{display:none}
.environment-art-seaside .environment-tree{right:18px;height:31px;width:3px;transform:rotate(7deg)}
.environment-art-seaside .environment-tree:before{width:31px;height:18px;left:-14px;top:-4px;background:#75aa86;clip-path:polygon(49% 20%,16% 0,24% 29%,0 29%,26% 51%,9% 75%,41% 60%,49% 100%,60% 54%,91% 75%,78% 48%,100% 25%,64% 28%,79% 0%)}
.environment-sign-editor{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;margin-top:23px;padding-top:20px;border-top:1px solid #e0e6d5}
.environment-sign-fields label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:11px;font-weight:650;margin-bottom:7px}
.environment-sign-fields label span{font-weight:400;font-size:10px;color:#96a087}
.environment-sign-fields input{width:100%;border:1px solid #d8dfcc;border-radius:7px;padding:10px 11px;color:var(--ink);background:#fff;font-size:12px;margin-bottom:13px}
.environment-sign-fields input:focus{outline:2px solid #a4bb8c;outline-offset:1px}
.environment-sign-fields p{font-size:9px;color:#919b83;line-height:1.6;margin:0}
.environment-sign-preview{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-width:0;padding:4px 0}
.environment-preview-label{font-size:9px;color:#96a087}
.environment-preview-board{background:#f4e8bd;color:#5a7355;border:3px solid #9ca977;box-shadow:0 3px 0 #778b631a;border-radius:4px;padding:16px 14px;min-height:90px;width:100%;display:flex;flex-direction:column;justify-content:center;gap:6px;text-align:center;overflow:hidden}
.environment-preview-board strong{font-size:18px;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.environment-preview-board>span{font-size:11px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.environment-preview-board[data-theme=school]{background:#f4dfb4;color:#926947;border-color:#c79872}
.environment-preview-board[data-theme=park]{background:#e2ebcf;color:#536f49;border-color:#95aa7b}
.environment-preview-board[data-theme=seaside]{background:#e1f0e9;color:#447e86;border-color:#91b7b4}
.environment-sign-preview .text-btn{font-size:10px;padding:3px}
@media(max-width:600px){
  .settings-tabs{margin-top:13px}.settings-tab{padding:10px 12px}
  .environment-choices{gap:8px}.environment-card{flex-direction:column;align-items:stretch;gap:9px;padding:7px;min-height:127px}
  .environment-art{width:100%;height:61px}.environment-choice>input{right:13px;top:13px}
  .environment-choice-label{padding:0 3px 2px;gap:4px}.environment-choice-label strong{font-size:11px}.environment-choice-label small{font-size:8px}
  .environment-sign-editor{grid-template-columns:1fr;gap:13px;margin-top:18px;padding-top:16px}
  .environment-sign-preview{gap:9px}.environment-preview-board{min-height:73px;padding:11px 15px}
  .environment-sign-fields label span{font-size:9px}
}

/* Keep the edit hint in the sky, clear of characters and their name labels. */
#scene{touch-action:manipulation}
.sign-edit-guide{position:absolute;left:50%;top:90px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:5px;max-width:calc(100% - 28px);padding:5px 9px;border:1px solid #ffffff80;border-radius:5px;background:#fffdf09c;color:#6a806c;font-size:9px;line-height:1.4;white-space:nowrap;box-shadow:0 1px 3px #56664b0d}
.sign-edit-guide .icon{width:12px;height:12px}.sign-edit-guide:hover{background:#fffdf2eb;color:#456b50}.sign-edit-guide:not(:disabled):active{transform:translateX(-50%) translateY(1px)}
.sign-guide-touch{display:none}
@media(hover:none) and (pointer:coarse){.sign-guide-desktop{display:none}.sign-guide-touch{display:inline}}
@media(max-width:700px){.sign-edit-guide{top:81px;font-size:8px;padding:5px 8px}.sign-guide-desktop{display:none}.sign-guide-touch{display:inline}}
@media(max-height:500px) and (orientation:landscape){.sign-edit-guide{top:65px;font-size:8px;padding:3px 7px}}

.classroom-manager{margin-top:17px;padding:14px;border:1px solid #dbe4d0;border-radius:10px;background:#f1f5e8}
.classroom-manager>label,.classroom-name-form>label{display:block;font-size:11px;font-weight:650;color:#5d7552;margin-bottom:8px}
.classroom-picker{display:flex;align-items:center;gap:10px}.classroom-picker>select{flex:1;min-width:0;border:1px solid #d1ddc4;border-radius:7px;background:#fffef8;padding:9px 10px;font-size:12px;color:#45603e}
.classroom-picker .secondary-btn{min-height:34px;padding:8px 11px;font-size:10px;background:#fffef8;white-space:nowrap}.classroom-picker .text-btn{font-size:10px;white-space:nowrap;padding:7px 2px}
.classroom-manager>p{font-size:9px;line-height:1.6;color:#8b987d;margin:9px 0 0}
.classroom-name-form{margin-top:13px;padding-top:12px;border-top:1px solid #dbe5cc}
.classroom-name-form>div{display:flex;align-items:center;gap:10px}.classroom-name-form input{flex:1;min-width:0;border:1px solid #cfdbc3;border-radius:7px;background:white;padding:10px;font-size:12px;color:var(--ink)}
.classroom-name-form .primary-btn{padding:9px 12px;min-height:34px;font-size:10px;white-space:nowrap}.classroom-name-form .text-btn{font-size:10px;min-width:30px}.classroom-name-form .form-error{margin:10px 0 0}
.attendance-hint{font-size:10px;line-height:1.6;color:#8b967e;margin:12px 0 5px}.attendance-hint strong{color:#6a805c;font-weight:650}
.attendance-control{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#8d977f;padding:7px 0 7px 5px;cursor:pointer;flex-shrink:0}
.attendance-input{width:14px;height:14px;accent-color:#bd8b62;margin:0;cursor:pointer}
.attendance-control:has(input:checked){color:#aa754f;font-weight:650}.attendance-control:has(input:disabled){opacity:.5;cursor:not-allowed}
.roster-dialog .student-row.called{opacity:1}.roster-dialog .student-row.called .student-name,.roster-dialog .student-row.called .avatar{opacity:.5}
.roster-dialog .student-row.absent .student-name{color:#a6a995}.roster-dialog .student-row.absent .avatar{filter:saturate(.35);opacity:.55}
.roster-dialog .student-row .student-name{min-width:0}.roster-dialog .student-row .student-number{width:18px}
#classroomHeading{overflow-wrap:anywhere}
.result-layer{grid-template-columns:minmax(0,1fr)}
.result-card{width:min(490px,100%);min-width:0;max-width:100%}
/* Initial dialog focus announces the result without selecting an action. */
.result-card:focus{outline:none}
@media(max-width:600px){.classroom-manager{padding:11px;margin-top:13px}.classroom-picker{gap:8px;flex-wrap:wrap}.classroom-picker>select{flex-basis:calc(100% - 95px)}.classroom-picker .text-btn{margin-left:auto}.classroom-name-form>div{gap:7px}.classroom-name-form input{padding:9px 8px}.classroom-manager>p{font-size:8px}.settings-tab{padding:10px 9px;font-size:11px}.attendance-hint{font-size:9px}.attendance-control{font-size:9px}.roster-dialog .student-row{gap:8px}.roster-dialog .student-row .student-number{display:none}}

/* Keep the App Store brand link usable in the narrow game header. */
.kroma-app-link{display:inline-flex;align-items:center;min-height:24px;color:inherit;text-decoration:none;white-space:nowrap}.kroma-app-link:hover,.join-game-link:hover{text-decoration:underline;text-underline-offset:3px}.scene-location{white-space:nowrap;flex-shrink:0}.scene-location small{display:inline-flex;align-items:center;gap:3px}.scene-top #availability{min-width:0;margin-left:8px}
