:root{--ivory: #f6f0e3;--paper: #fffaf0;--sand: #e8dcc4;--teal: #2f7f7a;--teal-dark: #215c58;--orange: #f08a24;--ink: #2b2a28;--muted: #6d675d;--ochre: #c8952e;--line: #d9ccb2;--shadow: 0 6px 24px rgba(43, 42, 40, .18);--font: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:var(--ivory)}body{font-family:var(--font);color:var(--ink)}#renderCanvas{width:100%;height:100%;display:block;touch-action:none;outline:none}#labels,#overlay,#hud{position:fixed;inset:0;pointer-events:none}button{font-family:inherit}kbd{display:inline-block;min-width:1.4em;padding:1px 6px;margin-left:8px;border-radius:6px;border:2px solid currentColor;font:700 .75em/1.3 var(--font);text-align:center;opacity:.8}.world-label{position:absolute;left:0;top:0;white-space:nowrap;opacity:0;transition:opacity .2s;font-size:15px;font-weight:700;padding:2px 8px;border-radius:8px;background:#fffaf0d9;border:2px solid var(--line);color:var(--ink)}.world-label.visible{opacity:1}.world-label.label-main{font-size:20px;border-color:var(--teal);color:var(--teal-dark);background:var(--paper)}.world-label.label-main:before{content:"☎ ";color:var(--orange)}.world-label.label-sea{background:transparent;border:none;color:#1f5f80;font-style:italic;font-size:18px}.world-label.label-hotspot{font-size:17px;border-color:var(--teal)}.world-label.label-person{border-color:var(--orange)}#hud{z-index:30}.hud-back{position:absolute;top:18px;left:18px;pointer-events:auto;cursor:pointer;font-size:20px;font-weight:700;padding:10px 18px;border-radius:14px;border:3px solid var(--ink);background:var(--paper);color:var(--ink);box-shadow:var(--shadow)}.hud-back:disabled{opacity:.35;cursor:default}.hud-clock{position:absolute;top:14px;left:50%;transform:translate(-50%);text-align:center;background:var(--paper);border:3px solid var(--teal);border-radius:22px;padding:4px 26px 6px;box-shadow:var(--shadow)}.hud-clock-time{font-size:34px;font-weight:800;letter-spacing:1px;font-variant-numeric:tabular-nums;line-height:1.1}.hud-clock-sub{font-size:15px;font-weight:600;color:var(--teal-dark)}.hud-clock.urgent{border-color:var(--orange)}.hud-instruction{position:absolute;top:96px;left:50%;transform:translate(-50%);max-width:calc(var(--uivw) * .7);text-align:center;font-size:19px;font-weight:600;padding:7px 18px;border-radius:12px;background:#2b2a28c7;color:#fff;transition:background .2s}.hud-instruction.empty{display:none}.hud-instruction.flash{background:var(--teal-dark)}.hud-draft{position:absolute;top:20px;right:20px;font-size:14px;padding:6px 12px;border-radius:10px;background:var(--paper);border:2px dashed var(--ochre);color:var(--muted)}.hud-draft b{color:#8a5d0f}.hud-phone,.hud-notebook{position:absolute;bottom:20px;pointer-events:auto;cursor:pointer;width:84px;height:84px;border-radius:22px;border:3px solid var(--ink);color:var(--ink);font-size:15px;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:var(--shadow)}.hud-phone{right:20px;background:var(--orange)}.hud-notebook{left:20px;background:var(--paper)}.hud-notebook.active{background:var(--sand)}.hud-phone svg,.hud-notebook svg{width:30px;height:30px}.hud-phone:focus-visible,.hud-notebook:focus-visible,.hud-back:focus-visible,.btn:focus-visible{outline:4px solid var(--teal);outline-offset:3px}.hud-phone[data-mode=ringing]{animation:ring 1.2s ease-in-out infinite}.hud-phone[data-mode=ringing]:after,.hud-phone[data-mode=hint]:after{content:"";position:absolute;inset:-10px;border-radius:28px;border:4px solid var(--orange);animation:halo 1.2s ease-out infinite}.hud-phone[data-mode=open]{background:var(--sand)}@keyframes ring{0%,60%,to{transform:rotate(0)}10%,30%,50%{transform:rotate(-9deg)}20%,40%{transform:rotate(9deg)}}@keyframes halo{0%{opacity:.9;transform:scale(.95)}to{opacity:0;transform:scale(1.25)}}.notebook-panel{position:absolute;left:20px;bottom:120px;width:380px;min-height:260px;pointer-events:auto;background:var(--paper);border:3px solid var(--ink);border-radius:18px;padding:16px 22px;box-shadow:var(--shadow);transform:translateY(30px);opacity:0;visibility:hidden;transition:all .25s ease}.notebook-panel.open{transform:none;opacity:1;visibility:visible}.notebook-panel h2{margin:0 0 6px;font-size:24px}.notebook-lines{height:150px;background:repeating-linear-gradient(transparent 0 29px,var(--line) 29px 30px)}.muted{color:var(--muted);font-size:17px}.portrait{width:var(--size);height:var(--size);flex:none;border-radius:18px;overflow:hidden;position:relative;border:3px solid var(--ink);background-color:#f2ebdd;background-repeat:no-repeat}.portrait-face{background-color:color-mix(in srgb,var(--c) 30%,#fffaf0);background-size:118% auto;background-position:50% 12%}.portrait-silhouette{background:color-mix(in srgb,var(--c) 22%,#fffaf0)}.portrait-silhouette .sil-head{position:absolute;left:50%;top:16%;width:38%;height:38%;transform:translate(-50%);border-radius:50%;background:var(--c)}.portrait-silhouette .sil-body{position:absolute;left:50%;bottom:-18%;width:78%;height:46%;transform:translate(-50%);border-radius:50% 50% 0 0;background:var(--c)}.chip-row{display:inline-flex;gap:6px;flex-wrap:wrap;align-items:center}.chip{display:inline-block;font-size:13px;font-weight:700;padding:2px 9px;border-radius:999px;border:2px solid var(--line);background:#fff;color:var(--muted);white-space:nowrap}.chip-src{border-color:var(--teal);color:var(--teal-dark)}.chip-src:before{content:"§ "}.chip-draft{border-style:dashed;border-color:var(--ochre);color:#8a5d0f;background:#fff6e2}.chip-obs{border-color:#7a8fa6;color:#3c5269}.chip-cost{border-color:var(--orange);color:#9b4d05}.chip-later{border-color:var(--teal);color:var(--teal-dark)}.dialogue{position:absolute;left:50%;bottom:24px;width:min(960px,calc(var(--uivw) - 260px));transform:translate(-50%,20px);display:flex;gap:18px;align-items:flex-start;padding:16px 20px;box-sizing:border-box;background:var(--paper);border:3px solid var(--ink);border-radius:22px;box-shadow:var(--shadow);opacity:0;visibility:hidden;pointer-events:none;cursor:pointer}.dialogue.open{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%);transition:all .22s ease}.dialogue-body{flex:1;min-width:0}.dialogue-speaker{font-size:20px;font-weight:800;color:var(--teal-dark);display:flex;gap:10px;align-items:baseline}.dialogue-speaker small{font-size:14px;font-weight:600;color:var(--muted)}.dialogue-text{margin:4px 0 8px;font-size:26px;line-height:1.3}.dialogue-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:24px}.dialogue-hint{margin-left:auto;font-size:14px;font-weight:700;color:var(--muted)}#overlay{z-index:20}.phone-backdrop{position:absolute;inset:0;background:#f6f0e340;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);opacity:0;visibility:hidden;transition:opacity .25s}.phone-backdrop.open{opacity:1;visibility:visible;pointer-events:auto}.phone{position:absolute;right:120px;bottom:20px;width:460px;height:min(760px,calc(var(--uivh) - 170px));background:var(--ink);border-radius:38px;padding:14px;box-sizing:border-box;box-shadow:0 12px 40px #00000059;transform:translateY(110%);transition:transform .3s cubic-bezier(.2,.8,.3,1);pointer-events:auto;display:flex;flex-direction:column}.phone.open{transform:none}.phone-notch{width:110px;height:8px;border-radius:6px;background:#55524c;margin:2px auto 10px}.phone-screen{flex:1;background:var(--paper);border-radius:26px;padding:14px 16px;overflow:auto}.phone-header{display:flex;align-items:center;gap:8px}.phone-header h2{margin:0;font-size:26px;flex:1}.phone-header-time{font-size:15px;font-weight:700;color:var(--muted)}.phone-iconbtn{border:2px solid var(--ink);background:#fff;border-radius:10px;font-size:16px;font-weight:800;padding:4px 8px;cursor:pointer}.phone-iconbtn kbd{font-size:10px;margin-left:4px}.phone-sub{margin:4px 0 10px;color:var(--muted);font-size:15px}.contact-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.contact{width:100%;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;background:#fff;border:2px solid var(--line);border-radius:16px;padding:9px 10px;color:var(--ink)}.contact:hover{border-color:var(--teal);background:#f4fbfa}.contact kbd{margin:0;font-size:15px;min-width:22px}.contact-main{flex:1;display:flex;flex-direction:column;min-width:0}.contact-title{font-size:18px;font-weight:800}.contact-place{font-size:14px;color:var(--muted)}.contact-side{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.contact-time{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}.badge{font-size:13px;font-weight:800;padding:2px 9px;border-radius:999px;border:2px solid;white-space:nowrap}.badge i{font-style:normal;margin-right:4px}.badge-A1{color:#1d6b3a;border-color:#2f9a57;background:#e7f6ec}.badge-A2{color:#8a4b00;border-color:#e09a2e;background:#fff2dd}.badge-A3{color:#3b3f8f;border-color:#6a70c9;background:#ecedfb}.badge-A4{color:#555;border-color:#8b8b8b;background:#efefef}.contact-A3,.contact-A4{opacity:.8}.phone-note{margin-top:12px;padding:10px;border-radius:16px;background:#f1ebde;animation:pop .25s ease}.phone-note-who{font-weight:800;font-size:15px;margin-bottom:6px}.chat{display:flex;flex-direction:column;gap:10px;margin:8px 0 16px}.bubble{display:flex;gap:8px;align-items:flex-end;max-width:88%;font-size:18px;line-height:1.3;animation:pop .3s ease both}.bubble span{padding:9px 13px;border-radius:18px}.bubble-them span{background:#fff;border:2px solid var(--line);border-bottom-left-radius:6px}.bubble-me{align-self:flex-end}.bubble-me span{background:var(--teal);color:#fff;border-bottom-right-radius:6px}.bubble .portrait{border-width:2px;border-radius:50%}.phone-note .bubble{margin-bottom:8px}@keyframes pop{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}.btn{pointer-events:auto;cursor:pointer;font-size:18px;font-weight:800;padding:10px 20px;border-radius:14px;border:3px solid var(--ink);background:#fff;color:var(--ink)}.btn-primary{background:var(--orange)}.btn-primary:hover{filter:brightness(1.05)}.btn-big{font-size:24px;padding:14px 30px}.btn-accept{display:block;margin:0 auto;animation:pop .3s ease both}.card-backdrop{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#2b2a2840;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:opacity .25s}.card-backdrop.open{opacity:1;visibility:visible;pointer-events:auto}.role-card,.stub-card{background:var(--paper);border:3px solid var(--ink);border-radius:26px;box-shadow:var(--shadow);animation:pop .3s ease both}.role-card{width:min(820px,calc(var(--uivw) - 80px));padding:22px 30px 20px;margin-top:70px}.role-head{display:flex;gap:20px;align-items:center;padding-bottom:12px;border-bottom:3px solid var(--teal)}.role-kicker{font-size:14px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:1px;display:flex;gap:10px;align-items:center}.role-youare{font-size:22px;font-weight:700;color:var(--teal-dark)}.role-title{font-size:42px;font-weight:900;line-height:1.05}.role-grid{display:grid;grid-template-columns:150px 1fr;gap:8px 18px;margin:14px 0 8px;font-size:20px}.role-row{display:contents}.role-grid dt{font-weight:800;color:var(--teal-dark)}.role-grid dd{margin:0}.role-bring{margin:0;padding:0;list-style:none;display:flex;gap:8px;flex-wrap:wrap}.role-bring li{border:2px solid var(--ochre);background:#fff6e2;border-radius:10px;padding:1px 10px;font-size:18px;font-weight:700}.role-bring li:before{content:"▣ ";color:var(--ochre)}.role-facts{background:#f1ebde;border-radius:14px;padding:8px 14px;font-size:16px}.role-facts h3{margin:2px 0;font-size:15px;color:var(--muted);text-transform:uppercase;letter-spacing:1px}.role-facts p{margin:4px 0}.role-foot{display:flex;justify-content:flex-end;margin-top:14px}.stub-card{width:min(640px,calc(var(--uivw) - 80px));padding:26px 32px;text-align:center}.stub-card h2{font-size:34px;margin:8px 0}.stub-card p{font-size:20px;line-height:1.4;color:#4a463f;margin:0 0 20px}.stub-card .role-kicker{justify-content:center}.hud-instruction.fresh{animation:freshLine .9s ease}@keyframes freshLine{0%{background:var(--orange);transform:translate(-50%) scale(1.06)}to{background:#2b2a28c7;transform:translate(-50%) scale(1)}}.world-label.label-mark{font-size:14px;padding:0 7px;border-color:#e2553a;color:#8a2a14;border-radius:999px}.world-label.label-you{border-color:var(--orange);background:#fff1df;font-size:16px}.world-label.label-you:before{content:"★ ";color:var(--orange)}.world-label.label-expert{border-color:#3d6f9e}.mg-layer{position:absolute;inset:0;display:none;pointer-events:none}.mg-layer.open{display:block}.mg-ref,.mg-work>*,.mg-tray,.mg-coach{pointer-events:auto}.mg-ref{position:absolute;top:178px;left:18px;width:300px;max-height:calc(var(--uivh) - 310px);overflow:auto;box-sizing:border-box;background:var(--paper);border:3px solid var(--ink);border-radius:18px;padding:12px 16px;box-shadow:var(--shadow);font-size:16px}.mg-ref:empty{display:none}.mg-ref h3{margin:8px 0 4px;font-size:15px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.mg-ref p{margin:6px 0;line-height:1.35}.mg-ref-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding-bottom:6px;border-bottom:3px solid var(--teal)}.mg-code{font-size:12px;font-weight:800;color:#fff;background:var(--teal);border-radius:6px;padding:1px 7px}.mg-title{font-size:20px;font-weight:900;flex:1}.mg-small{font-size:14px;color:var(--muted)}.mg-list{margin:4px 0;padding-left:18px}.mg-list li{margin:2px 0}.mg-check{list-style:none;margin:6px 0;padding:0}.mg-check li{display:flex;align-items:center;gap:8px;margin:4px 0;font-weight:600}.mg-check li.ok{color:#1d6b3a}.mg-check .muted-li{color:var(--muted);font-weight:500}.mg-tick{width:22px;height:22px;flex:none;border:2px solid currentColor;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-weight:900}.mg-row{display:flex;gap:10px;align-items:center;margin:4px 0}.mg-key{font-weight:800;border:2px solid var(--ink);border-radius:6px;padding:0 6px;font-size:14px;min-width:44px;text-align:center}.mg-meter{height:14px;border-radius:7px;background:#eadfc8;border:2px solid var(--ink);margin:10px 0 4px;overflow:hidden}.mg-meter i{display:block;height:100%;width:0;background:#f2c230}.mg-read{font-size:15px;font-weight:700;color:var(--teal-dark)}.mg-read>div{margin:2px 0}.mg-ok{color:#1d6b3a}.mg-progress{list-style:none;display:flex;gap:6px;padding:0;margin:8px 0}.mg-progress li{width:30px;height:30px;border-radius:50%;border:2px solid var(--line);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--muted)}.mg-progress li.cur{border-color:var(--orange);color:var(--ink);background:#fff1df}.mg-progress li.done{border-color:var(--teal);background:var(--teal);color:#fff}.mg-computer{display:inline-flex;flex-direction:column;background:#20302f;color:#9ff0d8;border-radius:12px;padding:6px 14px;margin:4px 0;border:3px solid #4a4846}.mg-computer small{font-size:12px;color:#cfe}.mg-computer b{font:800 28px/1.1 ui-monospace,Consolas,monospace}.mg-work{position:absolute;left:50%;top:178px;transform:translate(-50%)}.mg-card{background:var(--paper);border:3px solid var(--ink);border-radius:22px;box-shadow:var(--shadow);padding:18px 24px;animation:pop .3s ease both}.mg-card h2{margin:0 0 10px;font-size:28px}.mg-coach{position:absolute;top:178px;right:18px;width:360px;box-sizing:border-box;display:flex;gap:12px;align-items:flex-start;background:var(--paper);border:3px solid #3d6f9e;border-radius:18px;padding:10px 14px;box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .35s ease,visibility .35s,transform .35s ease}.mg-coach.open{opacity:1;visibility:visible;transform:none;transition:all .22s ease}.mg-coach.mistake{border-color:var(--orange);background:#fff7ec}.mg-coach.mistake.open{animation:nudge .45s ease}.mg-coach-body{flex:1;min-width:0}.mg-coach-who{font-weight:800;color:#2d4f7a;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.mg-coach p{margin:4px 0 6px;font-size:18px;line-height:1.3}.chip-code{border-color:var(--ink);color:var(--ink)}@keyframes nudge{0%,to{transform:none}25%{transform:translate(-6px)}75%{transform:translate(6px)}}.mg-tray{position:absolute;left:124px;right:124px;bottom:20px;display:flex;gap:10px;justify-content:center;align-items:stretch;flex-wrap:wrap}.mg-tray:empty{display:none}.mg-ctrl{font-size:18px;padding:10px 16px;box-shadow:var(--shadow)}.mg-ctrl.on{background:#e7f6ec;border-color:#2f9a57}.mg-hold{min-width:220px}.mg-tiles{display:flex;gap:8px;flex-wrap:nowrap}.mg-tile{position:relative;width:116px;min-height:104px;display:flex;flex-direction:column;align-items:center;gap:4px;justify-content:flex-start;background:#fff;border:3px solid var(--ink);border-radius:16px;padding:8px 6px 6px;cursor:pointer;box-shadow:var(--shadow);color:var(--ink)}.mg-tile:hover{border-color:var(--teal)}.mg-tile kbd{position:absolute;top:4px;left:4px;margin:0;font-size:12px}.mg-tile .mg-icon svg{width:38px;height:38px}.mg-tile-label{font-size:14px;font-weight:700;text-align:center;line-height:1.15}.mg-tile-state{font-size:12px;font-weight:800}.mg-tile.packed{background:#e7f6ec;border-color:#2f9a57;opacity:.75}.mg-tile.packed .mg-tile-state{color:#1d6b3a}.mg-tile.tried{background:#f3efe6;border-style:dashed;opacity:.7}.mg-tile.tried .mg-tile-state{color:#9b4d05}.mg-bag{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:130px;background:var(--ochre);color:var(--ink);border:3px solid var(--ink);border-radius:16px;padding:6px 10px;box-shadow:var(--shadow);font-size:16px}.mg-bag .mg-icon svg{width:30px;height:30px}.mg-bag span{font-size:22px;font-weight:900}.mg-photo{display:flex;gap:16px;align-items:flex-start}.mg-vf-wrap{position:relative;border:6px solid #2b2a28;border-radius:20px;overflow:hidden;background:#000;box-shadow:var(--shadow)}.mg-viewfinder{display:block;width:480px;height:480px}.mg-vf-label{position:absolute;left:10px;top:8px;color:#fff;font-weight:800;font-size:14px;background:#2b2a28b3;padding:2px 8px;border-radius:8px}.mg-gauges{width:170px;background:var(--paper);border:3px solid var(--ink);border-radius:18px;padding:10px 12px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:6px;align-items:center}.mg-gauge-title{font-weight:900;font-size:16px;align-self:flex-start}.mg-gauge{position:relative;width:44px;height:220px;border:3px solid var(--ink);border-radius:10px;background:#eee6d6}.mg-gauge .band{position:absolute;left:0;right:0;background:#9ad7a6;border-top:2px dashed #2f9a57;border-bottom:2px dashed #2f9a57}.mg-gauge .mark{position:absolute;left:-10px;right:-10px;height:6px;margin-bottom:-3px;background:var(--orange);border:2px solid var(--ink);border-radius:3px}.mg-gauge.ok .mark{background:#2f9a57}.mg-gauge-read{font-size:14px;font-weight:700;text-align:center;color:var(--teal-dark)}.mg-level{position:relative;width:140px;height:30px;border:3px solid var(--ink);border-radius:15px;background:#e9f3c9}.mg-level .centre{position:absolute;left:50%;top:2px;bottom:2px;width:24px;margin-left:-12px;border-left:2px solid #555;border-right:2px solid #555}.mg-level .bubble{position:absolute;top:4px;width:20px;height:16px;margin-left:-10px;border-radius:50%;background:#fff;border:2px solid var(--orange);transition:left .12s}.mg-level.ok .bubble{border-color:#2f9a57;background:#e7f6ec}.mg-slate{width:780px;background:#e9eceb;border:6px solid #f2f2ee;outline:3px solid var(--ink);border-radius:18px;padding:14px 18px;box-shadow:var(--shadow);font-family:ui-monospace,Consolas,monospace}.mg-slate-title{font:800 20px var(--font);margin-bottom:8px;color:#3a3a3a}.mg-slate-row{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;border:3px solid transparent}.mg-slate-row.focus{border-color:var(--teal);background:#fff}.mg-slate-row.wrong{border-color:var(--orange);background:#fff1df}.mg-slate-label{width:140px;flex:none;font:800 18px var(--font)}.mg-slate-opts{display:flex;gap:8px;flex-wrap:wrap}.mg-opt{font:800 20px ui-monospace,Consolas,monospace;padding:6px 10px;border-radius:10px;border:2px solid #888;background:#fff;cursor:pointer}.mg-opt kbd{font-size:11px;margin:0 6px 0 0}.mg-opt.on{background:#2b2a28;color:#fff;border-color:#2b2a28}.mg-dots{display:flex;flex-direction:column;align-items:center;gap:6px}.mg-dotsphoto{width:500px;height:500px;border:6px solid #2b2a28;border-radius:16px;box-shadow:var(--shadow);background:#000}.mg-dots-read{background:var(--paper);border-radius:10px;padding:2px 12px;border:2px solid var(--line)}.mg-strip{display:none}.mg-legend{list-style:none;padding:0;margin:8px 0}.mg-legend li{display:grid;grid-template-columns:34px 70px 1fr;align-items:center;gap:4px;margin:4px 0;font-size:14px}.mg-legend b{font-size:16px}.mg-sub{display:inline-flex;align-items:center;gap:8px;min-width:150px;font-size:20px}.mg-sub canvas{width:34px;height:34px}.mg-sub-coral{border-color:#b4483a}.mg-sub-algae{border-color:#4f7d30}.mg-sub-sand{border-color:#a8915a}.mg-sub-rubble{border-color:#6c675d}.mg-result{width:640px}.mg-bar{display:grid;grid-template-columns:210px 1fr 80px;align-items:center;gap:10px;margin:10px 0;font-size:19px}.mg-bar-label{font-weight:800}.mg-bar-track{height:26px;border:3px solid var(--ink);border-radius:13px;background:#f1ebde;overflow:hidden}.mg-bar-track i{display:block;height:100%}.mg-bar.you i{background:var(--orange)}.mg-bar.truth i{background:repeating-linear-gradient(45deg,var(--teal) 0 10px,#3d948e 10px 20px)}.mg-bar b{font-size:26px}.mg-counts{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 12px}.mg-count{border:2px solid;border-radius:10px;padding:2px 10px;font-size:16px;background:#fff}.mg-facts{display:grid;grid-template-columns:180px 1fr;gap:6px 14px;margin:8px 0 12px;font-size:19px}.mg-facts dt{font-weight:800;color:var(--teal-dark)}.mg-facts dd{margin:0}.swatch{display:inline-block;width:22px;height:22px;border-radius:6px;border:2px solid var(--ink);vertical-align:-5px}.mg-report{width:760px}.mg-report-head{display:flex;align-items:center;gap:12px}.mg-report-head h2{flex:1}.mg-thumbs{display:flex;gap:10px;margin:6px 0 12px}.mg-thumbs figure{margin:0;text-align:center}.mg-thumbs img{width:128px;height:128px;border:3px solid var(--ink);border-radius:10px;display:block}.mg-thumbs figcaption{font-size:13px;font-weight:700;color:var(--muted);margin-top:3px}.nb-r4{font-size:15px}.nb-head{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:6px}.nb-grid{display:grid;grid-template-columns:110px 1fr;gap:3px 10px;margin:0 0 8px}.nb-grid dt{font-weight:800;color:var(--teal-dark)}.nb-grid dd{margin:0}.nb-thumbs{display:flex;gap:5px;margin-bottom:8px}.nb-thumbs img{width:62px;height:62px;border:2px solid var(--ink);border-radius:6px}.mg-forks{margin:0}.mg-forks li{width:26px;height:26px;font-size:14px}.mg-way:disabled{opacity:.45}.mg-way.glow{border-color:var(--orange);background:#fff1df;animation:wayGlow 1s ease-in-out infinite}.mg-way.tried{border-color:#e2553a;background:#fde6e1;text-decoration:line-through}@keyframes wayGlow{0%,to{box-shadow:0 0 #f08a2400}50%{box-shadow:0 0 0 6px #f08a2473}}.mg-tip{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:230px;background:var(--paper);border:3px solid var(--orange);border-radius:18px;padding:12px 18px;box-shadow:var(--shadow);animation:pop .3s ease both}.mg-tip p{margin:0;font-size:20px;font-weight:600;text-align:center;max-width:520px}.mg-tip kbd{font:800 16px/1 inherit;padding:4px 8px;border:2px solid var(--ink);border-radius:6px;background:#fff}.mg-tip .tip-tape{stroke-dasharray:100;stroke-dashoffset:100;animation:tipTape 3.2s ease-in-out infinite}@keyframes tipTape{0%{stroke-dashoffset:100}30%,42%{stroke-dashoffset:68}85%,to{stroke-dashoffset:0}}.world-label.label-way{font-size:15px;font-weight:800;border-color:var(--orange);color:#8a4a08;background:#fff1df}.mg-coach[data-speaker=mio]{border-color:var(--teal)}.mg-coach[data-speaker=mio] .mg-coach-who{color:var(--teal-dark)}.mg-coach[data-speaker=intern]{border-color:var(--orange)}.mg-coach[data-speaker=intern] .mg-coach-who{color:#9b4d05}.mg-coach.mistake[data-speaker=intern]{background:#fff7ec}.ref-pinned{position:relative;margin:10px 0 6px;padding:8px 8px 6px;background:#fff;border:2px solid var(--line);border-radius:6px;transform:rotate(-1.2deg);box-shadow:0 3px 10px #2b2a282e}.ref-pin{position:absolute;top:-7px;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:#d24b3c;border:2px solid #7a2a20}.ref-photo-canvas{display:block;width:100%;height:auto;border-radius:3px}.ref-pinned figcaption{font-size:13px;line-height:1.3;margin-top:5px;color:#4a463f}.ref-thumb-row{display:flex;gap:10px;align-items:center;margin:6px 0}.ref-thumb{width:64px;height:64px;border:2px solid var(--ink);border-radius:6px;flex:none}.kit-tiles{gap:8px}.kit-tile{width:112px;min-height:112px;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.kit-tile .kit-icon svg{width:44px;height:44px;color:#4a5560}.kit-count{font-size:18px;font-weight:900}.kit-code{position:absolute;top:4px;right:6px;font-size:11px;font-weight:800;color:var(--muted)}.kit-tile.packed{cursor:default}.kit-tile.bounce{animation:kit-bounce .9s ease both;border-color:var(--orange);background:#fff1df}@keyframes kit-bounce{0%{transform:none}25%{transform:translateY(-120px) rotate(-8deg)}35%{transform:translateY(-120px) rotate(10deg)}45%{transform:translateY(-120px) rotate(-10deg)}55%{transform:translateY(-120px) rotate(6deg)}80%{transform:translateY(6px)}to{transform:none}}.kit-side{display:flex;flex-direction:column;gap:8px;justify-content:center}.kit-actions{display:flex;gap:8px}.kit-pads{display:flex;gap:6px;justify-content:center}.kit-pad{padding:6px 12px;font-size:18px}.kit-pad kbd{display:none}.kit-ghost{position:fixed;left:0;top:0;z-index:50;pointer-events:none;display:flex;flex-direction:column;align-items:center;background:#fff;border:3px solid var(--teal);border-radius:14px;padding:6px 10px;box-shadow:var(--shadow);font-weight:800;font-size:14px}.kit-ghost .kit-icon svg{width:40px;height:40px;color:#4a5560}.kit-result{display:flex;align-items:center;gap:24px;padding:14px 22px}.kit-result h2{margin:0;font-size:22px;max-width:230px}.kit-result-list{margin:0}.mg-icon svg{display:block}.recall-tray{flex-direction:column;align-items:center;gap:8px}.recall-cards{display:flex;gap:14px;justify-content:center}.recall-card{position:relative;width:168px;min-height:176px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--paper);border:4px solid var(--ink);border-radius:20px;box-shadow:var(--shadow);cursor:pointer;color:var(--ink);font:inherit;padding:14px 10px 12px;animation:pop .3s ease both}.recall-card:hover{border-color:var(--teal);transform:translateY(-3px)}.recall-card kbd{position:absolute;top:6px;left:6px;margin:0;font-size:14px}.recall-card .mg-icon svg{width:76px;height:76px}.recall-card .subject-icon svg{color:#b4483a}.recall-subject .recall-card:nth-child(n) .subject-icon svg{color:#4a6f8f}.recall-label{font-size:21px;font-weight:800;text-align:center;line-height:1.15}.recall-swatch{width:84px;height:84px;border-radius:16px;border:3px solid var(--ink)}.recall-depth{position:relative;width:46px;height:84px;border:3px solid var(--ink);border-radius:8px;background:linear-gradient(#cfeaf2,#3f7fa8);overflow:hidden}.recall-depth i{position:absolute;left:0;right:0;top:0;border-bottom:4px solid var(--orange)}.recall-card.tried{opacity:.55;border-style:dashed;border-color:#9b4d05;cursor:default;transform:none}.recall-card.right{border-color:#2f9a57;background:#e7f6ec;box-shadow:0 0 0 6px #2f9a5740,var(--shadow)}.recall-card.demo{animation:recall-demo .9s ease infinite;border-color:var(--teal)}@keyframes recall-demo{50%{transform:translateY(-8px);box-shadow:0 0 0 8px #2f7f7a4d}}.recall-mark{position:absolute;top:4px;right:10px;font-size:30px;font-weight:900;color:#9b4d05}.recall-mark.ok{color:#1d6b3a}.recall-draft{position:absolute;top:8px;right:8px}.recall-draftnote{font-size:15px;font-weight:700;color:#8a5d0f;background:var(--paper);border-radius:10px;padding:2px 10px}.recall-next{margin-top:2px}.recall-prompt{font-size:24px;font-weight:900;line-height:1.2}.recall-progress li{width:34px}.recall-summary{width:720px}.recall-summary h2{font-size:24px;margin-bottom:4px}.recall-summary .mg-check li{font-weight:500}.recall-summary .chip-cost{margin-left:6px}.hint-photo{margin:2px 0 8px;display:flex;gap:10px;align-items:center}.hint-photo img{width:110px;height:110px;border:3px solid var(--ink);border-radius:10px}.hint-photo figcaption{font-size:13px;font-weight:700;color:var(--muted)}.nb-recall{margin-top:10px;padding-top:8px;border-top:2px dashed var(--line);font-size:15px}.nb-recall-list{margin:4px 0 0;padding-left:18px}.muted-inline{color:var(--muted);font-size:13px}.world-label.label-tile{font-size:15px;border-color:#a8915a;color:#5d4a1e;padding:1px 8px}.world-label.label-bubble{font-size:20px;font-weight:800;padding:10px 16px;border-radius:20px;border:3px solid var(--ink);background:#fff;box-shadow:var(--shadow);margin-top:-14px}.world-label.label-bubble:after{content:"";position:absolute;left:50%;bottom:-14px;margin-left:-10px;border:10px solid transparent;border-top-color:var(--ink);border-bottom:0}.world-label.label-station{font-size:20px;border:3px solid #c8952e;background:#fff6d8;color:#7a5200;box-shadow:0 0 18px #f2c230bf}.late-side{display:none}.late-side.open{display:block}.late-check li{flex-wrap:wrap}.late-check li.later{color:var(--teal-dark)}.late-check li.later .mg-tick{border-style:dashed}.late-top{position:absolute;right:18px;top:150px;display:none;pointer-events:none}.late-top.open{display:block}.answer-card{width:400px;padding:10px 16px 8px}.answer-q{font-size:19px;font-weight:900;text-align:center;margin-bottom:2px}.answer-q:before{content:"?  ";color:var(--orange)}.coral-diagram{margin:0}.coral-diagram svg{display:block;width:100%;height:auto}.coral-diagram g{transition:opacity .3s}.coral-diagram.hl-polyp .d-skeleton,.coral-diagram.hl-polyp .d-algae,.coral-diagram.hl-skeleton .d-polyp,.coral-diagram.hl-skeleton .d-algae,.coral-diagram.hl-algae .d-skeleton{opacity:.3}.coral-diagram.hl-algae .d-polyp{opacity:.55}.coral-diagram.hl-polyp .d-polyp,.coral-diagram.hl-skeleton .d-skeleton,.coral-diagram.hl-algae .d-algae{filter:drop-shadow(0 0 5px #f2c230)}.coral-diagram figcaption{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.d-label{font-size:14px;padding:3px 10px;border-radius:10px;border:2px solid var(--line);background:#fff;color:var(--muted)}.coral-diagram.hl-polyp .d-label-polyp,.coral-diagram.hl-skeleton .d-label-skeleton,.coral-diagram.hl-algae .d-label-algae,.coral-diagram.hl-all .d-label{border:3px solid var(--ink);color:var(--ink);background:#fff6e2}.screen-caption{position:absolute;left:18px;top:178px;display:none;align-items:center;gap:8px;max-width:300px;font-size:18px;padding:6px 16px;border-radius:12px;background:#2b2a28d1;color:#fff}.screen-caption.open{display:inline-flex}.live-dot{width:12px;height:12px;border-radius:50%;background:#e2553a;animation:live 1.2s ease-in-out infinite}@keyframes live{50%{opacity:.35}}.late-backdrop{background:#2b2a282e}.late-card{text-align:left}.late-card h2{margin:6px 0 8px}.late-card .btn-big{display:block;margin:16px auto 0}.wait-card{width:min(600px,calc(var(--uivw) - 80px))}.wait-card p{margin:0 0 8px}.wait-left{font-size:18px}.feedback-card{width:min(700px,calc(var(--uivw) - 80px))}.fb-head{display:flex;gap:14px;align-items:center;border-bottom:3px solid #4f9a57;padding-bottom:8px;margin-bottom:8px}.fb-head h2{margin:0}.fb-row{display:flex;gap:14px;align-items:flex-start;padding:10px 12px;border-radius:16px;margin:8px 0;border:3px solid}.fb-kind{border-color:#2f9a57;background:#eef8f0}.fb-tip{border-color:var(--orange);background:#fff4e6}.fb-icon svg{width:40px;height:40px;display:block}.fb-kind .fb-icon{color:#2f9a57}.fb-tip .fb-icon{color:#c06a10}.fb-title{font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.fb-text{margin:2px 0 6px!important;font-size:23px!important;line-height:1.3;color:var(--ink)!important}.fb-because{white-space:normal}.credits-card{width:min(640px,calc(var(--uivw) - 80px))}.credit-contact{display:flex;gap:14px;align-items:center;padding:10px 14px;border:3px solid #3d6f9e;border-radius:16px;background:#f1f6fb;font-size:18px}.credit-contact small{color:var(--muted);font-size:14px}.credit-station{font-size:19px!important;margin:12px 0 8px!important;color:var(--ink)!important}.nb-star{color:#c8952e;font-size:1.1em}.credit-list{display:grid;grid-template-columns:190px 1fr;gap:3px 14px;margin:6px 0 4px;font-size:16px}.credit-list dt{font-weight:800;color:var(--teal-dark)}.credit-list dd{margin:0}.summary-card{width:min(720px,calc(var(--uivw) - 80px))}.sum-grid{display:grid;grid-template-columns:170px 1fr;gap:8px 16px;margin:8px 0;font-size:19px}.sum-grid dt{font-weight:800;color:var(--teal-dark)}.sum-grid dd{margin:0}.sum-chips{display:inline-flex;gap:6px;flex-wrap:wrap;align-items:center}.class-progress li{width:34px}.class-viewfinder{width:440px;height:440px}.class-dotsphoto{width:460px;height:460px}.class-result{width:680px}.class-result .mg-bar{grid-template-columns:250px 1fr 80px}.class-result .mg-bar-label small{display:block;font-size:13px;font-weight:600;color:var(--muted)}.class-why{font-size:17px;line-height:1.35;margin:4px 0 10px}.class-layer[data-step=place] .mg-work{display:none}.notebook-panel{max-height:calc(var(--uivh) - 300px);overflow:auto;box-sizing:border-box}.nb-pages{display:flex;flex-direction:column;gap:10px;font-size:15px}.nb-section{padding-bottom:8px;border-bottom:2px dashed var(--line)}.nb-contact-list,.nb-station-list{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}.nb-contact{display:flex;gap:10px;align-items:center}.nb-contact .portrait{border-width:2px;border-radius:12px}.nb-contact small{display:block}.nb-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:6px;border-top:2px dashed var(--line)}.nb-reset{font-size:14px;padding:6px 12px;border-width:2px}.nb-reset.armed{background:#fff1df;border-color:var(--orange)}.hud-tr{position:absolute;top:18px;right:18px;display:flex;gap:10px;align-items:center}.hud-tr .hud-draft{position:static}.hud-mute{pointer-events:auto;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;padding:5px 10px;border-radius:10px;border:2px solid var(--ink);background:var(--paper);color:var(--ink)}.hud-mute svg{width:20px;height:20px}.hud-mute kbd{margin-left:2px;font-size:11px}.hud-mute.off{color:var(--muted);border-color:var(--muted)}.hud-mute:focus-visible{outline:4px solid var(--teal);outline-offset:3px}.hud-clock.low{border-color:#d0582a;animation:clock-pulse 1.6s ease-in-out infinite}.hud-clock.low .hud-clock-time{color:#a8401a}@keyframes clock-pulse{0%,to{box-shadow:var(--shadow),0 0 #f08a2400}50%{box-shadow:var(--shadow),0 0 0 9px #f08a2447}}@media(prefers-reduced-motion:reduce){.hud-clock.low{animation:none}}.hud-toast{position:absolute;right:20px;bottom:122px;width:340px;padding:10px 12px;box-sizing:border-box;background:var(--paper);border:3px solid var(--ink);border-radius:18px;box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(14px);transition:all .25s ease}.hud-toast.open{opacity:1;visibility:visible;transform:none}.hud-toast-head{display:flex;justify-content:space-between;gap:8px;font-size:13px;font-weight:800;color:var(--teal-dark);margin-bottom:6px}.hud-toast-head b{color:var(--ink);text-align:right}.hud-toast .bubble{max-width:100%;font-size:16px;animation:none}.contact.demo{animation:contact-demo 1.4s ease 2;border-color:var(--orange)}@keyframes contact-demo{0%,to{box-shadow:none}50%{box-shadow:0 0 0 5px #f08a2473}}.route-fade{position:fixed;inset:0;z-index:90;background:var(--ivory);pointer-events:none;opacity:0;transition:opacity .22s ease}.route-fade.on{opacity:1}.key-legend{position:fixed;left:0;right:0;bottom:0;z-index:40;height:44px;box-sizing:border-box;display:none;align-items:center;justify-content:center;gap:22px;flex-wrap:nowrap;overflow:hidden;padding:0 16px;background:#2b2a28e6;color:#fff;font-size:17px;font-weight:600;white-space:nowrap}.key-legend kbd{margin:0 2px 0 0;border-color:#fff;opacity:1;font-size:15px}body.presenter .key-legend{display:flex}body.presenter.title-open .key-legend{display:none}body.presenter #hud,body.presenter #overlay{bottom:var(--legend-b, 44px)}body.presenter :is(.hud-back,.hud-clock,.hud-instruction,.hud-tr,.hud-notebook,.hud-phone,.notebook-panel,.hud-toast,.dialogue,.mg-coach,.phone,.late-card,.screen-caption,.answer-card){zoom:1.25;--uivw: var(--uivw-p);--uivh: var(--uivh-p)}body.presenter .mg-ref,body.presenter .mg-work{top:214px}body.presenter .mg-ref{max-height:calc(var(--uivh) - 352px)}body.presenter .mg-coach{top:160px;width:330px}body.presenter .mg-tray{left:140px;right:140px}:root{--ui-zoom: 1;--uivw: 100vw;--uivh: 100vh;--uivw-p: 80vw;--uivh-p: 80vh}#hud,#overlay{zoom:var(--ui-zoom)}body.title-open #hud,body.title-open #overlay,body.title-open #labels{visibility:hidden}.title-screen{position:fixed;inset:0;z-index:50;display:none;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 40%,#fffaf0b8,#f6f0e3eb);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.title-screen.open{display:flex}.title-card{display:flex;gap:36px;align-items:stretch;width:min(1180px,calc(100vw - 64px));box-sizing:border-box;background:var(--paper);border:3px solid var(--ink);border-radius:30px;box-shadow:var(--shadow);padding:28px 34px;animation:pop .35s ease both}.title-left{flex:none;display:flex;flex-direction:column;gap:10px}.title-art{--w: clamp(220px, 26vw, 360px);width:var(--w);height:calc(var(--w) * 494 / 462);border-radius:22px;border:3px solid var(--ink);background-repeat:no-repeat;background-size:calc(var(--w) * 1536 / 462) auto;background-position:calc(var(--w) * -1062 / 462) calc(var(--w) * -185 / 462)}.title-art-caption{display:flex;flex-direction:column;font-size:15px;color:var(--muted)}.title-art-caption b{color:var(--teal-dark);font-size:18px}.title-right{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}.title-kicker{font-size:15px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}.title-name{margin:2px 0 0;font-size:clamp(48px,6vw,76px);line-height:1;font-weight:900;color:var(--teal-dark)}.title-name small{font-size:.3em;font-weight:700;color:var(--muted)}.title-episode{margin-top:8px;font-size:clamp(22px,2.3vw,30px);font-weight:800;color:var(--ink)}.title-episode:before{content:"";display:inline-block;width:14px;height:14px;border-radius:4px;background:var(--orange);margin-right:10px;vertical-align:2px}.title-blurb{font-size:19px;line-height:1.4;color:#4a463f;margin:12px 0 18px;max-width:640px}.title-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:640px}.title-btn{display:flex;align-items:center;gap:10px;font-size:21px;padding:12px 18px;text-align:left}.title-btn kbd{margin:0}.title-play{grid-column:1 / -1;font-size:28px;padding:14px 22px;justify-content:center}.title-presenter.on{background:var(--sand)}.title-state{font-weight:900;color:var(--teal-dark)}.title-reset{font-size:17px;color:#6d3a1e}.title-reset.armed{background:#ffe5d2;border-color:#c2501c}.title-btn:focus-visible{outline:4px solid var(--teal);outline-offset:3px}.title-keys{margin-top:16px;font-size:14px;color:var(--muted)}.title-foot{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:12px;color:var(--muted)}.title-jump{position:absolute;inset:24px;display:none;flex-direction:column;overflow:auto;background:var(--paper);border:3px solid var(--ink);border-radius:26px;box-shadow:var(--shadow);padding:18px 26px;box-sizing:border-box;animation:pop .25s ease both}.title-screen.jump-open .title-jump{display:flex}.title-jump-head{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}.title-jump-head h2{margin:0;font-size:30px}.title-jump-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:12px}.title-jump-group h3{margin:4px 0 8px;font-size:18px;color:var(--teal-dark);border-bottom:3px solid var(--teal);padding-bottom:4px}.title-jump-group ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.title-route{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:1px;cursor:pointer;text-align:left;padding:6px 10px;border-radius:12px;border:2px solid var(--line);background:#fff;color:var(--ink);font-size:16px;font-weight:700}.title-route:hover,.title-route:focus-visible{border-color:var(--teal);background:#f4fbfa;outline:none}.title-route code{font-size:12px;font-weight:600;color:var(--muted)}@media(max-width:1100px),(max-height:760px){.title-card{padding:20px 24px;gap:24px}.title-blurb{font-size:17px;margin:8px 0 12px}.title-btn{font-size:18px;padding:9px 14px}.title-play{font-size:24px;padding:11px 18px}.title-art{--w: clamp(200px, 22vw, 300px)}.title-route{padding:4px 8px;font-size:15px}}body.presenter .role-card{margin-top:104px}
