:root{--academy-gold:#e7c884;--academy-ink:#f4ede0;--academy-muted:#bbc9c6}
.studio-fire,.studio-earth{--room-accent:#dfab70;--room-deep:#4b2929;--room-line:#786452;--room-panel:#29282c;--room-paper:#eee2c9;--room-ink:#34332b;color:var(--academy-ink);font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;min-height:100dvh;background:radial-gradient(ellipse at 85% 2%,#743c3738,transparent 48%),linear-gradient(110deg,#181f28,#201b22 65%,#151f27)}
.studio-earth{--room-accent:#c3bc8d;--room-deep:#35483c;--room-line:#778171;--room-panel:#293b36;background:radial-gradient(ellipse at 85% 2%,#73877629,transparent 48%),linear-gradient(110deg,#16272b,#202e2b 65%,#142229)}
.studio-fire *,.studio-earth *{box-sizing:border-box}.studio-fire main,.studio-earth main{width:min(1280px,100%);padding:20px clamp(14px,3.5vw,44px) 42px;margin:auto}.studio-fire main>footer,.studio-earth main>footer{color:#b3bdb5;font-size:12px;line-height:1.8;flex-wrap:wrap;gap:8px;letter-spacing:.02em}
.academy-topbar{min-height:76px;padding:12px clamp(16px,4vw,50px);display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #b0956155;background:#14232bdc;box-shadow:0 4px 28px #0002}.academy-brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:#f0d497;font:20px/1.4 "Hiragino Mincho ProN",serif;letter-spacing:.12em}.academy-brand>span:first-child{font-size:35px;display:grid;place-items:center;width:47px;height:47px;border:1px solid #b79c6855;transform:rotate(45deg)}.academy-brand small{font:9px/1.5 system-ui,sans-serif;letter-spacing:.21em;display:block;color:#adbbba;margin-top:3px}.settings-button{font:14px/1.4 system-ui,sans-serif;min-height:44px;border:1px solid #8f8468;color:#eddbb5;background:#25333b;border-radius:5px;padding:10px 16px;white-space:nowrap;cursor:pointer}
.studio-fire .back,.studio-earth .back{display:inline-flex;align-items:center;min-height:44px;margin:0 0 12px;color:#c6c8b9;font-size:14px;text-decoration:none}.studio-heading{display:flex;align-items:center;gap:22px;border-bottom:1px solid #aa895455;padding:8px 0 28px;margin:0 0 26px;position:relative}.room-number{font:66px/1.1 "Times New Roman",serif;min-width:100px;color:var(--room-accent);border-right:1px solid #aa895455;padding-right:25px}.room-number span{display:block;font:9px/1.8 system-ui,sans-serif;letter-spacing:.15em;max-width:100px;color:#aaa99b;margin-top:10px}.room-kicker{font-size:13px;letter-spacing:.16em;color:var(--room-accent);margin:0 0 8px}.studio-heading h1{font:clamp(30px,4.8vw,46px)/1.35 "Hiragino Mincho ProN","Yu Mincho",serif;color:#f2e5cb;margin:0;letter-spacing:.1em}.room-subtitle{font-size:14px;color:#bbc5bd;margin:12px 0 0;line-height:1.7}.room-emblem{width:95px;height:113px;flex:none;margin-left:auto;filter:drop-shadow(0 4px 14px #0003)}
.studio-fire .assignment,.studio-earth .paper{border-radius:3px;border:1px solid #ad9264;border-left:4px solid #bc965c;box-shadow:0 10px 25px #0003,inset 0 0 0 4px #fff2;background:linear-gradient(110deg,#f1e6d0,#e5d4b4);padding:22px 25px;color:#34332b;margin:0}.studio-fire .assignment p,.studio-earth .paper p{font-size:15px;line-height:1.9}.studio-fire .assignment h2{font:23px/1.6 "Hiragino Mincho ProN",serif;margin:1px 0 7px;color:#443a2a}.studio-fire .paper-eyebrow{font-size:10px;letter-spacing:.14em;color:#756344;margin:0}.studio-fire .seal-mark{border-color:#b69a6c;color:#8f6a40;min-width:43px}.studio-earth .paper small{font-size:13px;line-height:1.8}
.studio-fire .magics,.studio-earth .spells{padding:21px 0 17px;margin:0;gap:10px}.studio-fire .magic,.studio-earth .spell{max-width:none;flex:1;min-height:53px;border:1px solid #67726e;border-radius:5px;background:#233238;color:#d5dbd1;box-shadow:inset 0 1px 0 #ffffff0b;font-size:15px}.studio-fire .magic span,.studio-earth .spell span{font-size:25px;margin-right:5px}.studio-fire .magic[aria-pressed="true"],.studio-earth .spell.chosen{background:linear-gradient(125deg,var(--room-deep),#473e34);border-color:var(--room-accent);color:#ffe6b1;box-shadow:inset 0 0 0 2px #dfb87e18,0 3px 15px #0002}.studio-fire .work-tabs{display:flex;position:sticky;top:0;z-index:12;gap:0;border:1px solid #73634c;background:#20262cf5;border-radius:5px;margin:0 0 20px;box-shadow:0 7px 16px #0002;backdrop-filter:blur(8px)}.work-tabs a{min-height:45px;flex:1;display:flex;justify-content:center;align-items:center;font-size:14px;color:#d8cbae;text-decoration:none;white-space:nowrap}.work-tabs a+a{border-left:1px solid #74654c66}.work-tabs a:hover{background:#e7c88412}
.studio-workspace{display:grid;grid-template-columns:minmax(0,1.33fr) minmax(0,.84fr);grid-template-areas:"lab archive" "records archive" "notebook archive";gap:23px;align-items:start}.studio-fire .lab{grid-area:lab}.studio-fire .records{grid-area:records;margin:0}.studio-fire .notebook{grid-area:notebook}.studio-fire .archive{grid-area:archive}.studio-fire .panel,.studio-earth .box{border:1px solid var(--room-line);border-radius:7px;padding:22px;background:linear-gradient(125deg,#303034,#23282d);box-shadow:0 12px 34px #0003,inset 0 1px 0 #b4a27a0d;min-width:0}.studio-fire h2,.studio-earth .section-top h2{font:19px/1.6 "Hiragino Mincho ProN",serif;letter-spacing:.08em;color:#edd8af;margin:0}.studio-fire .topline{align-items:center;gap:10px;margin:0 0 16px;flex-wrap:wrap}.studio-fire .section-number{font-size:9px;letter-spacing:.15em;color:#a9b4b0;margin:0 0 3px}.studio-fire .small,.studio-fire .caption{font-size:13px;color:#bbc4bd;line-height:1.8}.studio-fire .small-button,.studio-fire .secondary{font-size:14px;min-height:44px;border-color:#827258;background:#2b3437;color:#ecdcbb;border-radius:5px;padding:9px 12px}.studio-fire .scene{border:1px solid #8d7959;border-radius:4px;background:#1d2830;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#9e865a #1e2b31;-webkit-overflow-scrolling:touch}.studio-fire #room{display:block;min-width:620px;max-width:none;width:100%;height:auto}.studio-fire #room text{font-family:system-ui,sans-serif;font-size:22px;fill:#dfd7bb}.studio-fire #room [data-target] text{font-size:23px;fill:#f4d799}.studio-fire #room [data-target]:focus-visible{outline:none;filter:drop-shadow(0 0 4px #ffdc93)}.studio-fire .lamps{gap:10px;margin-top:14px}.studio-fire .lamps button{min-height:52px;padding:11px 8px;border-color:#ad8756;background:linear-gradient(#574333,#352c2b);font-size:14px;line-height:1.5;border-radius:5px;color:#f7ddad}.studio-fire .lamps button[aria-pressed="true"]{border-color:#edc17d;background:linear-gradient(#795036,#47322c);box-shadow:inset 0 0 18px #e3a35520,0 0 14px #b57a3220}.studio-fire .status{background:#151f25;border-left:3px solid #b88650;color:#e0dbcb;font-size:14px;line-height:1.8;min-height:66px;padding:13px 15px;margin-top:14px}.studio-fire .utility-row{align-items:center;margin-top:14px}.studio-fire .caption{margin:10px 0 0}.studio-fire .specs,.mechanism{border-top:1px solid #77644888;margin:18px 0 0;padding:0}.studio-fire .specs summary,.mechanism summary{font-size:14px;min-height:50px;cursor:pointer;line-height:1.7;padding:14px 0;color:#e9d3aa}.mechanism summary{list-style:none;display:flex;justify-content:space-between;gap:15px}.mechanism summary::-webkit-details-marker{display:none}.mechanism[open] summary span{transform:rotate(45deg)}.mechanism-content{border:1px solid #665f50;border-radius:5px;background:#17262d;padding:18px;margin-bottom:16px}.mechanism-content h3{font:19px/1.5 "Hiragino Mincho ProN",serif;color:#edd3a2;margin:0 0 12px}.mechanism-content ol{padding-left:22px;margin:0;font-size:14px;line-height:1.9}.mechanism-content li+li{margin-top:8px}.mechanism-diagram{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}.mechanism-diagram figure{margin:0;min-width:0;text-align:center}.mechanism-diagram figcaption{color:#d6c5a5;font-size:13px;line-height:1.6;margin-bottom:5px}.mechanism-diagram svg{width:100%;max-width:145px;display:block;margin:auto}.studio-fire .specs p{font-size:14px;line-height:1.9}.studio-fire .specs table{font-size:13px}.studio-fire .table-wrap{max-width:100%;overflow:auto}.studio-fire .font-grid{grid-template-columns:repeat(5,minmax(0,1fr));padding:8px;gap:6px;background:#e7dabe;border-radius:4px}
.studio-fire .record-grid{grid-template-columns:minmax(0,1fr);gap:16px}.studio-fire .record{border-radius:3px;border:1px solid #bd9d68;background:linear-gradient(115deg,#eee2c9,#ddcaa6);padding:15px;box-shadow:0 3px 15px #0002;min-width:0}.studio-fire .record.current{box-shadow:inset 3px 0 0 #af7f48,0 4px 16px #0002}.studio-fire .record .topline{margin-bottom:10px}.studio-fire .record h3{font:17px/1.6 "Hiragino Mincho ProN",serif;color:#44392c;display:flex;align-items:center;gap:12px;margin:0}.record-index{display:grid;place-items:center;width:31px;height:33px;border:1px solid #aa8c60;font:23px "Times New Roman",serif;color:#785a33}.studio-fire .record .small-button{background:#e4d4b7;color:#4c3e2e;border-color:#a9946f}.studio-fire .record svg{width:100%;height:auto;background:#25343a;border-radius:3px;display:block}.studio-fire .record svg text{font-size:28px}.record-foot{font-size:10px;letter-spacing:.08em;color:#736146;border-top:1px solid #bca783;display:block;margin:11px 0 0;padding-top:9px}.studio-fire .archive{background:linear-gradient(110deg,#e8dbc0,#d8c39e);border-color:#c4a56b;color:#393a31;box-shadow:0 12px 35px #0004,inset 6px 0 0 #8d72572e}.studio-fire .archive h2{color:#4b3e2a}.studio-fire .archive .small,.studio-fire .archive .section-number,.studio-fire .archive-note{color:#655b49}.archive-corner{font-size:29px;color:#997642}.studio-fire #archiveDiagram{width:100%;height:auto;border:1px solid #b79b6a;border-radius:2px}.studio-fire .archive-note{font-size:14px;line-height:1.9;padding:12px 0;border-bottom:1px solid #ac9165}.studio-fire #answerForm label{display:block;font-size:14px;color:#5a4c37;margin:19px 0 8px}.ledger-entry{display:flex;align-items:center;gap:12px;border-bottom:2px solid #917349;background:#fff8e64a;padding:10px 12px;margin-bottom:18px;max-width:100%}.ledger-entry>span{font:20px Georgia,serif;color:#91754b}.studio-fire #answer{border:0;border-radius:0;background:transparent;box-shadow:none;color:#35352d;min-width:0;width:100%;font:26px/1.5 "Courier New",monospace;letter-spacing:.12em;padding:4px 0;min-height:44px}.studio-fire #answer::placeholder{font:15px system-ui,sans-serif;letter-spacing:.1em;color:#807666}.studio-fire .primary{display:block;width:100%;min-height:50px;font-size:15px;color:#fce9bd;background:linear-gradient(#68543b,#44382c);border:1px solid #806b46;border-radius:4px;letter-spacing:.06em;padding:12px 8px}.studio-fire .feedback{font-size:14px;color:#625644;line-height:1.8;min-height:53px;margin:14px 0 8px}.studio-fire .feedback.error{color:#893d32}.studio-fire .answer-bottom .secondary{background:#e0cfad;color:#554a39;border-color:#ad946c;font-size:13px;width:100%}.studio-fire .pass{border:1px solid #a28447;border-radius:4px;background:radial-gradient(ellipse at 50% 5%,#f7e4a9,#decca4 65%);padding:25px 17px;text-align:center;margin-bottom:20px;color:#5d5034}.studio-fire .pass h3{font:23px/1.5 "Hiragino Mincho ProN",serif;letter-spacing:.08em;color:#625131}.studio-fire .pass p,.studio-fire .pass a{font-size:14px;line-height:1.8;color:#685633}.studio-fire .pass svg{max-width:100%;display:block;margin:16px auto;border:1px solid #baa06e}.ritual-lights{display:flex;align-items:center;justify-content:center;gap:24px;margin:0 auto 23px}.ritual-lights i{width:12px;height:19px;display:block;background:#e2b962;border:1px solid #ac8442;clip-path:polygon(50% 0,100% 64%,80% 100%,20% 100%,0 64%)}.academy-pass-stamp{width:144px;height:144px;border:5px double #907a46;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;color:#7d7041;transform:rotate(-7deg);margin:15px auto 21px;outline:1px solid #ab945f;outline-offset:5px}.academy-pass-stamp span{font-size:9px;letter-spacing:.09em}.academy-pass-stamp b{font:33px/1.3 "Hiragino Mincho ProN",serif;letter-spacing:.1em}.academy-pass-stamp small{font:12px Georgia,serif;letter-spacing:.22em}.just-passed .academy-pass-stamp{animation:academy-stamp .45s .35s both}.just-passed .ritual-lights i{animation:academy-lamp .6s both}.just-passed .ritual-lights i:nth-child(2){animation-delay:.16s}.just-passed .ritual-lights i:nth-child(3){animation-delay:.32s}.just-passed .ritual-lights i:nth-child(4){animation-delay:.48s}
.studio-fire .archive{display:block}.studio-fire .archive>*{grid-column:auto;grid-row:auto}
.studio-fire .notebook{background:linear-gradient(110deg,#2d3536,#243036)}.notebook label{display:block;font-size:14px;line-height:1.8;color:#cbd0bf;margin-bottom:13px}.notebook textarea{display:block;resize:vertical;width:100%;min-height:160px;border:1px solid #a38e63;border-radius:3px;color:#3e3b31;background:repeating-linear-gradient(#eee4ce 0,#eee4ce 31px,#d5c5a2 32px);font:16px/32px "Hiragino Kaku Gothic ProN",system-ui,sans-serif;padding:10px 13px;overflow-wrap:anywhere}.notebook-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}.studio-fire #zoomDialog{width:min(1200px,calc(100% - 20px));max-width:none;max-height:calc(100dvh - 30px);padding:18px;background:#1e2b32;border:1px solid #c2a26a;color:#eee4cf;overflow:auto}.studio-fire .zoom-scroll{overflow-x:auto;max-height:70dvh;overscroll-behavior:contain}.studio-fire .zoom-scroll svg{width:100%;min-width:680px;max-width:none;height:auto;background:#24353b}.studio-fire .zoom-scroll .zoom-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px;min-width:1250px}.studio-fire .zoom-pair figure{margin:0}.studio-fire .zoom-pair svg{min-width:0}.studio-fire .zoom-pair figcaption{font-size:17px;line-height:1.8;color:#e7c884;margin-bottom:10px}.studio-fire button,.studio-earth button{touch-action:manipulation}.studio-fire button:focus-visible,.studio-earth button:focus-visible,.studio-fire a:focus-visible,.studio-earth a:focus-visible,.studio-fire textarea:focus-visible{outline:3px solid #e8c884;outline-offset:3px}.studio-fire :is(h2,section,aside)[id]{scroll-margin-top:62px}
.studio-earth .layout{gap:24px}.studio-earth .box{background:linear-gradient(125deg,#2b3e37,#223334);border-color:#718171}.studio-earth .altar{background:linear-gradient(125deg,#67705a,#3b4f44);border-color:#8e957c;box-shadow:0 6px 16px #0004}.studio-earth .carving{font-size:12px;color:#ddd3a6}.studio-earth .tiny{font-size:13px;line-height:1.75;color:#c2cdbd}.studio-earth .status{font-size:14px;line-height:1.8;min-height:66px;background:#172c2b}.studio-earth .rack{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.studio-earth .piece{background:#2e4039;border-color:#778573;min-height:118px;padding:12px 5px}.studio-earth .piece-name{font-size:12px;line-height:1.6}.studio-earth .piece.on-board{opacity:1;background:#252a2d;border-color:#60666b;color:#c4c8cb}.studio-earth .piece.on-board .mini-cell:not(.blank){background:#51575b;border-color:#8c929666;color:#f4eddf}.studio-earth .guide{font-size:14px;line-height:1.9}.studio-earth .guide summary{font-size:14px;min-height:44px}.studio-earth .primary,.studio-earth .secondary{font-size:14px;border-color:#8f987e;background:#344d43}.studio-earth .primary{background:#58694f;border-color:#b7b88a}.studio-earth .cell{border-color:#5e6c5f;background:linear-gradient(145deg,#3b4d42,#2c413a)}.studio-earth .cell.occupied{background:linear-gradient(135deg,var(--stone),color-mix(in srgb,var(--stone) 65%,#172b29));border-color:#122d27a0}.studio-earth .cell.ghost:after{border-color:#d9ddae;background:#d2d5a449}.studio-earth .cell.ghost.invalid:after{border-color:#ecaaa0;background:#ecaaa04d}.studio-earth .placement-tools{background:#233b33f5;border-color:#b4b48b}.studio-earth .cast{font-size:14px;background:#6c744f}.studio-earth .orientation .tiny{font-size:12px}.studio-earth .success{background:radial-gradient(ellipse at top,#526449,#304c3d);border-color:#d0bd7f}.studio-earth .success p{font-size:14px}.studio-earth .earth-guide-link{margin-top:13px;color:#dec89b;font-size:14px}
@keyframes academy-stamp{from{opacity:0;transform:rotate(-7deg) scale(1.15)}to{opacity:1;transform:rotate(-7deg) scale(1)}}@keyframes academy-lamp{from{background:#706646}to{background:#f7d78a;filter:drop-shadow(0 0 4px #d7a952)}}@keyframes studio-flame{50%{opacity:.83;transform:scale(.94,1.04)}}.studio-fire .studio-flame{transform-box:fill-box;transform-origin:50% 90%;animation:studio-flame 1.7s ease-in-out infinite}.studio-fire .studio-aura{transition:opacity .24s ease}.studio-fire .warm{animation:studio-warm .7s ease}@keyframes studio-warm{40%{filter:drop-shadow(0 0 12px #edc17b)}}
@media(max-width:980px){.studio-workspace{grid-template-columns:minmax(0,1fr) minmax(0,.75fr);gap:17px}.studio-fire .panel{padding:17px}.studio-heading{gap:17px}.room-number{min-width:85px;padding-right:15px}.room-emblem{width:75px}.studio-fire .lamps{grid-template-columns:1fr}.studio-earth .layout{gap:17px}}
@media(max-width:760px){.academy-topbar{min-height:67px;padding:10px 16px}.academy-brand{font-size:17px;gap:10px}.academy-brand>span:first-child{width:36px;height:36px;font-size:28px}.academy-brand small{font-size:8px}.settings-button{padding:9px 12px}.studio-fire main,.studio-earth main{padding:10px 14px 30px}.studio-heading{padding-bottom:20px;margin-bottom:20px;gap:14px}.room-number{font-size:49px;min-width:57px;padding-right:12px}.room-number span{display:none}.room-emblem{width:58px;height:80px}.room-kicker{font-size:11px;letter-spacing:.08em}.room-subtitle{font-size:12px;margin-top:8px}.studio-heading h1{font-size:29px}.studio-fire .assignment,.studio-earth .paper{padding:17px 16px;gap:13px}.studio-fire .assignment p,.studio-earth .paper p{font-size:14px}.studio-fire .assignment h2{font-size:21px}.studio-fire .assignment .paper-eyebrow{font-size:10px}.studio-fire .seal-mark{display:none}.studio-fire .magics,.studio-earth .spells{gap:7px;padding:17px 0}.studio-fire .magic,.studio-earth .spell{min-height:49px;font-size:14px;gap:3px}.studio-fire .magic span,.studio-earth .spell span{font-size:22px;margin-right:0}.studio-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"lab" "records" "notebook" "archive";gap:17px}.studio-fire .lamps{grid-template-columns:1fr 1fr}.studio-fire .panel,.studio-earth .box{padding:17px 14px}.studio-fire .work-tabs{margin-bottom:17px}.studio-fire .work-tabs a{font-size:13px}.studio-fire .small,.studio-fire .caption{font-size:13px}.studio-fire .record{padding:12px}.studio-fire .records .topline{margin-bottom:13px}.studio-fire .archive{padding:21px 18px}.studio-fire #archiveDiagram{max-height:400px;object-fit:contain}.studio-fire .archive .topline{flex-wrap:nowrap}.studio-fire .utility-row{flex-wrap:wrap;gap:9px}.studio-fire .notebook .topline{gap:8px}.studio-fire .mechanism-content{padding:14px}.studio-fire .mechanism-diagram{gap:6px}.studio-earth .layout{grid-template-columns:minmax(0,1fr)}.studio-earth .rack .mini{--unit:16px}.studio-earth .orientation .secondary{font-size:13px;min-height:44px}.studio-earth .tool-head .held strong{font-size:14px}.studio-earth .under{flex-wrap:wrap}.studio-earth .text-button{font-size:13px}.studio-earth .altar-foot span{font-size:8px}}
@media(max-width:370px){.studio-fire main,.studio-earth main{padding-left:10px;padding-right:10px}.studio-heading h1{font-size:26px}.room-emblem{width:44px}.room-subtitle{max-width:190px}.studio-fire .lamps{grid-template-columns:1fr}.studio-fire .panel{padding:15px 12px}.studio-fire .topline .small-button{font-size:13px;padding:8px 10px}.studio-fire .archive{padding:18px 15px}.studio-earth .rack .mini{--unit:14px}.studio-earth .orientation .tiny{font-size:11px}.studio-earth .nudge button{min-width:44px}.studio-earth .positioning{gap:7px}.studio-earth .paper small{font-size:12px}.studio-fire #answer{font-size:24px}}
@media(prefers-reduced-motion:reduce){.studio-fire *,.studio-fire *:before,.studio-fire *:after,.studio-earth *,.studio-earth *:before,.studio-earth *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.studio-earth .piece-name{font-size:14px}.studio-earth .orientation .tiny{font-size:13px}
.studio-fire .record svg text{font-size:40px}.studio-fire .record svg text[y="309"]{transform:translateY(18px)}.studio-fire #archiveDiagram text[font-size="31"]{font-size:33px}
