*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;color:#d9dedb;background:#0b1011;font:14px system-ui,sans-serif}body{display:flex;flex-direction:column}nav{display:flex;align-items:center;gap:4px;padding:3px 8px;min-height:38px;border-bottom:1px solid #33403b;background:#101716}nav button{background:transparent;border:1px solid transparent;border-radius:4px;color:#adb8b4;font:inherit;font-weight:550;min-height:30px;padding:3px 11px;cursor:pointer}nav button[aria-current=page]{color:#e1ffed;background:#24392e;border-color:#416650}nav button:focus-visible,nav a:focus-visible{outline:2px solid #9be5b5;outline-offset:1px}nav a{margin-left:auto;color:#adbbb4;font-size:12px}#room-status{font-size:12px;color:#d5c8a8}main{position:relative;flex:1;min-height:0}iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#0b1011}iframe[hidden],button[hidden]{display:none}@media(max-width:620px){nav{flex-wrap:wrap;gap:1px}nav button{min-height:42px;padding:3px 8px}#room-status:not(:empty){order:4;flex-basis:100%}}

#room-learn {margin-inline-start:5px;border-color:#405860;color:#bdd1dc}
#room-learn[aria-expanded=true] {background:#1d343c;border-color:#71bab8;color:#e2fcfb}
#room-learn:disabled {opacity:.55}
#room-learn-guide {flex:0 0 auto;max-height:min(34vh,340px);overflow:auto;border-bottom:1px solid #405860;background:#15262b;color:#e0ecef;padding:10px clamp(12px,2vw,24px)}
#room-learn-guide[hidden] {display:none}
.room-learn-head {display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px}
.room-learn-head h2 {font-size:16px;color:#b5e7d5;margin:0}
.room-learn-head p {margin:0;flex:1 1 260px}
#room-learn-guide > ol {margin:8px 0 2px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 22px;padding-inline-start:22px}
#room-learn-guide li p {margin:2px 0 4px;line-height:1.4;color:#c1d4d6}
#room-learn-guide button {background:#233b41;border:1px solid #567779;border-radius:5px;color:#e0ecef;padding:4px 8px;cursor:pointer;font:inherit}
#room-learn-guide button:focus-visible {outline:2px solid #aff5ef;outline-offset:2px}
@media(max-width:820px){#room-learn-guide > ol {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#room-learn-guide > ol {grid-template-columns:minmax(0,1fr)}}

#mutate-opening{position:absolute;inset:0;z-index:3;display:grid;place-items:center;padding:20px;background:#0b1011}
#mutate-opening[hidden]{display:none}
.mutate-opening-card{width:min(300px,100%);text-align:center}
.mutate-opening-mark{font-size:clamp(37px,8vw,55px);font-weight:750;letter-spacing:-.07em;color:#87eea3;line-height:1.2;margin-bottom:18px}
.mutate-opening-card progress{display:block;width:100%;height:8px;accent-color:#68d598}
.mutate-opening-card p{color:#bdd5c7;margin:14px 0 0}

#room-learn-guide .room-learn-project {grid-column:1/-1;padding:6px 0 10px;border-bottom:1px solid #405860}
#room-learn-guide .room-learn-project-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 22px;padding-inline-start:22px;margin:6px 0 0}
@media(max-width:700px){#room-learn-guide .room-learn-project-steps {grid-template-columns:minmax(0,1fr)}}

#room-learn-guide .room-learn-example{grid-column:1/-1;margin:2px 0 5px;padding:10px 14px;border:1px solid #416d63;border-radius:8px;background:#182e2d}
#room-learn-guide .room-learn-example>strong{color:#b5e7d5;font-size:16px}
#room-learn-guide .room-learn-example audio{display:block;width:min(100%,400px);height:36px;margin:8px 0}
.room-learn-example-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:8px 0}
.room-learn-example-actions a{color:#b5e7d5;text-underline-offset:3px}
.room-learn-example-actions a:focus-visible,.room-learn-example summary:focus-visible{outline:2px solid #aff5ef;outline-offset:2px}
.room-learn-example summary{cursor:pointer}
.room-learn-example details li{margin-block:5px;line-height:1.4}

/* Only the shortcut itself sits above the instrument, not a footer or overlay. */
.report-shortcut{position:fixed;z-index:5;right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));display:grid;place-items:center;width:44px;height:44px;border-radius:8px;color:#78baff}
.report-shortcut:hover,.report-shortcut:focus-visible{color:#b5dcff;background:#162638}
.report-shortcut:focus-visible{outline:2px solid currentColor;outline-offset:-3px}

/* Learn is a centered tool window, not a strip squeezed beneath the navigation. */
#room-learn-guide {
 position:fixed;z-index:4;inset:auto;width:min(760px,calc(100vw - 32px));
 left:50%;top:50%;transform:translate(-50%,-50%);
 max-height:calc(100dvh - 130px);overflow:auto;overscroll-behavior:contain;
 padding:0 16px 12px;border:1px solid #557c79;border-radius:12px;
 background:#142529;box-shadow:0 16px 70px #050909db;
}
.room-learn-head{
 position:sticky;z-index:1;top:0;display:grid;grid-template-columns:1fr auto;
 gap:2px 12px;align-items:center;margin:0 -16px;padding:12px 16px 10px;
 border-bottom:1px solid #405860;background:#142529;
}
.room-learn-head h2{grid-column:1;grid-row:1;}
.room-learn-head p{grid-column:1;grid-row:2;font-size:14px}
.room-learn-head .room-learn-close{grid-row:1/3;grid-column:2;min-height:36px}
#room-learn-guide>ol.room-learn-overview,#room-learn-guide>ol.room-learn-reference-list{display:block;padding:0;list-style:none}
#room-learn-guide .room-learn-reference-list{margin:6px 0 0;padding-left:22px}
#room-learn-guide .room-learn-reference-list>li{margin-bottom:7px}
.room-learn-more{padding:6px 4px}
.room-learn-more>summary{cursor:pointer;color:#c4e0dc}
.room-learn-more>summary:focus-visible{outline:2px solid #aff5ef;outline-offset:1px}
.room-learn-first-play{border:1px solid #436f64;border-radius:8px;background:#19322f;padding:10px 12px}
.first-play-title,.first-play-controls,.first-play-map{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.first-play-title{justify-content:space-between}
.first-play-title>strong{color:#b5e7d5;font-size:16px}
#room-learn-guide #first-play-start{background:#afe7cb;color:#112922;border-color:#bfead5;font-weight:700;min-height:36px}
@media(max-width:480px){#room-learn-guide{width:calc(100vw - 18px);max-height:calc(100dvh - 122px)}}
#copper-paper-pulse{scroll-margin-top:70px}
#copper-paper-pulse:focus-visible{outline:2px solid #aff5ef;outline-offset:2px}

.guided-practice-shell{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;background:#0c1311}
.guided-practice-shell iframe{position:relative;inset:auto;flex:1;min-height:0}
.guided-practice-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 11px;padding:5px 10px;min-height:40px;border-bottom:1px solid #3a5546;background:#152721;color:#e2f5e9}
.guided-practice-bar select,.guided-practice-bar button{min-height:32px;background:#233c33;color:#f0fbf3;border:1px solid #668e77;border-radius:6px;font:inherit;padding:3px 7px}
.guided-practice-bar button{margin-inline-start:auto}.guided-practice-progress{color:#a8d4b8;font-size:12px}
@media(max-width:570px){.guided-practice-progress{display:none}.guided-practice-bar{gap:4px 7px}.guided-practice-bar strong{font-size:12px}}
