:root{font-family:Arial,Helvetica,sans-serif;color:#f5f0ed;background:#11101a;font-synthesis:none;--ink:#11101a;--paper:#f5f0ed;--acid:#e2ef88;--muted:#b8b2c5;--line:#ffffff25}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0;background:none}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:2px solid var(--acid);outline-offset:5px}button:hover{filter:brightness(1.14)}[hidden]{display:none!important}#world{position:fixed;inset:0;width:100%;height:100%;outline:0;touch-action:none}#world:focus-visible{outline:2px solid var(--acid);outline-offset:-4px}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,#100f19e8 0%,#100f1988 39%,transparent 68%),linear-gradient(0deg,#0b0a14aa,transparent 28%)}.playing .vignette{background:linear-gradient(0deg,#08081299,transparent 22%),linear-gradient(180deg,#08081288,transparent 25%)}.topbar{position:fixed;left:38px;right:38px;top:27px;display:flex;align-items:center;justify-content:space-between;z-index:5}.brand{display:flex;gap:13px;text-decoration:none;color:inherit;align-items:center;font-size:15px;font-weight:800;letter-spacing:2px}.brand-icon{font-size:38px;font-weight:400;line-height:1;color:var(--acid)}.brand small{display:block;font-size:10px;font-weight:500;letter-spacing:2.5px;margin-top:6px;color:var(--muted)}nav{display:flex;gap:28px;align-items:center}.quiet{font-size:12px;letter-spacing:.25px}.quiet span{margin-left:14px;color:var(--acid)}.round{border:1px solid var(--line);border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-size:17px;background:#121019a0}.intro{position:absolute;left:7%;top:24%;width:52%;max-width:690px;z-index:2}.eyebrow{font-size:10px;letter-spacing:2.1px;display:flex;align-items:center;gap:9px;color:#cdc5d6}.dot{height:6px;width:6px;border-radius:50%;background:var(--acid)}h1{font-size:clamp(46px,5.6vw,86px);line-height:1.035;letter-spacing:-4px;font-weight:500;margin:26px 0}h1 em{font-family:Georgia,'Times New Roman',serif;font-weight:400;color:var(--acid);letter-spacing:-3px}.intro>p{color:#c7c0cd;font-size:15px;line-height:1.8;max-width:400px}.intro-actions{display:flex;gap:12px;margin-top:32px}.primary,.secondary{border-radius:8px;padding:15px 20px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:space-between;gap:28px}.primary{background:var(--acid);color:#171720}.secondary{border:1px solid var(--line);background:#191524a8;color:var(--paper)}.intro-notes{display:flex;flex-wrap:wrap;gap:19px;margin-top:42px;font-size:10px;letter-spacing:1.2px;color:#918c9e}.featured{position:absolute;right:7%;top:24%;width:258px;z-index:2;background:#f4f0e8;border-radius:5px;color:#191822;box-shadow:0 15px 55px #08071066;transform:rotate(2deg)}.featured-caption{padding:17px;display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:1px}.tiny{font-size:9px;color:#6b6477}.character-window{height:258px;display:grid;place-items:center;background:radial-gradient(circle,#e6eac0 0%,#efede7 68%)}.character-window img{width:95%;height:95%;object-fit:contain}.featured-name{padding:17px 19px 20px;display:flex;flex-direction:column;gap:6px;font-size:16px}.featured-name small{font-size:8px;letter-spacing:1.6px;color:#777080}.checker-strip{height:16px;border-radius:0 0 5px 5px;background:conic-gradient(#16151c 25%,#f5f0ed 0 50%,#16151c 0 75%,#f5f0ed 0);background-size:32px 32px}.loading{position:fixed;left:7%;bottom:35px;width:290px;z-index:6;font-size:10px;color:var(--muted)}#load-line{height:2px;background:var(--acid);width:0;transition:width .2s;margin-bottom:13px}.hud{position:fixed;inset:0;pointer-events:none;z-index:3}.room-label{position:absolute;left:38px;top:105px;display:flex;flex-direction:column;gap:7px}.room-label small{font-size:8px;color:var(--acid);letter-spacing:2px}.room-label strong{font-family:Georgia,serif;font-weight:400;font-size:24px}.room-label span{font-size:10px;color:#c8c0d0}.bottom-bar{position:absolute;left:38px;right:38px;bottom:26px;display:flex;align-items:center;gap:9px}.bottom-bar>span{margin-right:auto;font-size:10px;color:#e0d9e6}.small-button{pointer-events:auto;background:#191522c9;border:1px solid var(--line);font-size:10px;border-radius:5px;padding:10px 14px}.interaction{position:absolute;left:50%;bottom:88px;transform:translateX(-50%);font-size:11px;padding:11px 16px;border:1px solid var(--line);border-radius:8px;background:#161322dc;max-width:400px;text-align:center}.fighter-hud{position:absolute;left:50%;bottom:70px;transform:translateX(-50%);display:flex;gap:12px}.fighter-card{min-width:152px;background:#15121dde;border:1px solid #ffffff25;border-top:3px solid var(--fighter-color);border-radius:6px;padding:10px 13px;display:grid;grid-template-columns:44px 1fr;gap:3px 8px}.fighter-card img{width:44px;height:60px;object-fit:contain;grid-row:1/4}.fighter-card .fighter-name{font-size:9px;white-space:nowrap;max-width:125px;overflow:hidden;text-overflow:ellipsis}.damage{font-size:28px;line-height:1;font-weight:800;letter-spacing:-1px}.stocks{font-size:10px;letter-spacing:3px;color:var(--fighter-color)}.fighter-card.out{opacity:.4}.panel{padding:28px;color:var(--paper);border:1px solid #ffffff2a;background:#191522f7;border-radius:14px;max-height:85vh;overflow:auto;box-shadow:0 20px 90px #0009}.panel::backdrop{background:#06060abc;backdrop-filter:blur(8px)}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin-bottom:18px}.panel small{font-size:9px;letter-spacing:1.6px;color:var(--acid)}h2{font:400 30px/1.15 Georgia,serif;margin:9px 0 0;letter-spacing:-.7px}.panel-description{font-size:12px;line-height:1.75;color:var(--muted);max-width:600px}.roster-panel{width:min(900px,94vw)}.roster-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:22px}.roster-card{position:relative;background:#ffffff05;border:1px solid #ffffff17;border-radius:7px;padding:12px 8px;text-align:left;transition:background .2s}.roster-card.selected{border-color:var(--acid);background:#e2ef8812}.roster-card img{width:100%;height:118px;object-fit:contain;display:block;margin-bottom:10px}.roster-card strong{display:block;font-size:10px;line-height:1.4;min-height:28px}.roster-card small{display:block;font-size:10px;color:var(--muted);letter-spacing:1px;margin-top:5px}.roster-card .selection-dot{position:absolute;top:10px;right:10px;color:var(--acid);font-size:15px}.map-panel{width:min(720px,94vw)}.room-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.room-card{padding:19px;border:1px solid var(--line);border-radius:7px;min-height:124px;text-align:left;background:#ffffff04}.room-card strong{font:400 22px Georgia,serif;display:block;margin:12px 0 7px}.room-card small{font-size:10px}.room-card span{font-size:10px;color:var(--muted)}.room-card.mono{background:conic-gradient(#ffffff08 25%,#00000022 0 50%,#ffffff08 0 75%,#00000022 0);background-size:24px 24px}.conversation{width:min(540px,94vw)}.dialogue{font:400 22px/1.6 Georgia,serif;color:#e8dfeb}.dialogue-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.art-panel{width:min(860px,94vw)}#art-image{display:block;max-height:62vh;width:100%;object-fit:contain;background:#f3f0e8;border-radius:5px}.help-panel{width:min(550px,94vw)}.controls-list p{display:flex;gap:20px;align-items:center;margin:12px 0;font-size:12px;color:#c9c0d2}.controls-list kbd{font-family:Arial,sans-serif;font-size:9px;width:90px;flex-shrink:0;background:#ffffff0a;border:1px solid var(--line);border-radius:4px;padding:8px;letter-spacing:1px}.help-panel>.secondary{margin-top:14px;margin-right:7px}.result-panel{width:min(480px,94vw);text-align:center}.result-panel h2{font-size:45px;margin:22px 0}.result-panel p{font-size:13px;line-height:1.7;color:var(--muted)}.result-panel .dialogue-actions{justify-content:center}.toast{position:fixed;top:92px;left:50%;transform:translateX(-50%);background:#18131ff0;border:1px solid var(--line);border-radius:8px;padding:12px 19px;font-size:12px;max-width:520px;text-align:center;z-index:15}.error{position:fixed;inset:0;background:#13101cf5;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.error p{color:var(--muted);max-width:450px;font-size:13px;line-height:1.7}.touch{position:fixed;inset:0;pointer-events:none;z-index:4}.joystick{position:absolute;left:25px;bottom:85px;width:100px;height:100px;border:1px solid #ffffff35;background:#1a152050;border-radius:50%;pointer-events:auto;touch-action:none}.joystick span{position:absolute;left:30px;top:30px;width:40px;height:40px;border-radius:50%;background:#ffffff25;border:1px solid #ffffff35}.touch-buttons{position:absolute;right:20px;bottom:95px;display:grid;grid-template-columns:repeat(3,46px);gap:9px;pointer-events:auto}.touch-buttons button{height:46px;border:1px solid #ffffff45;background:#1e1729bb;border-radius:50%;font-size:21px;touch-action:none}.monochrome .ui{filter:grayscale(1)}@media(max-width:900px){.intro{left:6%;width:62%;top:24%}h1{letter-spacing:-2.5px;font-size:60px}.featured{right:5%;width:200px;top:30%}.character-window{height:210px}.intro>p{max-width:320px}.intro-notes{gap:12px;font-size:10px}.roster-grid{grid-template-columns:repeat(5,1fr)}}@media(max-width:650px){.topbar{top:20px;left:20px;right:20px}.brand{font-size:12px}.brand-icon{font-size:29px}.brand small{font-size:10px}.quiet{font-size:10px}nav{gap:13px}.intro{left:24px;right:24px;top:23%;width:auto}h1{font-size:48px;letter-spacing:-2px;margin:22px 0}.intro>p{font-size:13px;max-width:290px}.intro-actions{gap:8px;flex-wrap:wrap;margin-top:24px}.primary,.secondary{padding:13px 17px;font-size:11px;gap:15px}.featured{display:none}.intro-notes{margin-top:27px;max-width:280px;gap:14px}.vignette{background:linear-gradient(90deg,#100f19e8,#100f1960),linear-gradient(0deg,#100f1980,transparent)}.room-label{left:20px;top:90px}.room-label strong{font-size:21px}.bottom-bar{left:15px;right:15px;bottom:15px;gap:7px}.bottom-bar>span{display:none}.small-button{font-size:9px;padding:9px 11px}.fighter-hud{bottom:50px;gap:6px;width:calc(100% - 25px)}.fighter-card{min-width:0;flex:1;padding:8px;grid-template-columns:26px 1fr;gap:3px 5px}.fighter-card img{width:26px;height:46px}.fighter-card .fighter-name{font-size:7px;max-width:80px}.damage{font-size:23px}.stocks{font-size:8px}.interaction{bottom:208px;max-width:90%;white-space:nowrap}.roster-grid{grid-template-columns:repeat(3,1fr)}.roster-card img{height:100px}.panel{padding:21px}.panel h2{font-size:26px}.room-grid{grid-template-columns:1fr}.room-card{min-height:95px}.toast{top:83px;width:calc(100% - 38px);font-size:11px}.loading{left:24px;bottom:25px}.result-panel h2{font-size:36px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.death-transformation{position:relative;width:min(620px,94vw);min-height:230px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:58px 48px;background:radial-gradient(circle at 50% 90%,#7c42a833,#181220 64%);border-color:#b47cff66}.death-transformation:not([open]){display:none}.death-transformation .round{position:absolute;right:18px;top:18px}.death-transformation h2{max-width:100%;margin:0;color:#efe3ff;font-size:clamp(34px,6vw,64px);line-height:1.05;overflow-wrap:anywhere;text-transform:lowercase;text-shadow:0 0 28px #b47cff88}
.monochrome{background:#111}.monochrome .vignette{filter:grayscale(1)}.monochrome .panel::backdrop{background:#080808dc}

/* Live Cosmos board: the castle continues beyond this nonmodal surface. */
.animation-wheel-toggle{position:fixed;right:27px;top:94px;z-index:7;display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 14px;background:#171420e8;border:1px solid #e2ef8860;border-radius:24px;box-shadow:0 4px 20px #0004;color:#f4f0e8;font-size:12px;font-weight:700;backdrop-filter:blur(12px)}.animation-wheel-toggle>span{font-size:20px}.animation-wheel-toggle kbd{font:600 9px Arial,sans-serif;display:grid;place-items:center;min-width:21px;height:21px;border:1px solid #ffffff2d;border-radius:5px;color:var(--acid);margin-left:6px}.animation-wheel-toggle.selected{background:#e2ef88;color:#181622;border-color:#e2ef88}.animation-wheel-toggle.selected kbd{color:#181622;border-color:#1816224d}
.animation-wheel{container-type:inline-size;--wheel-size:max(220px,min(620px,91vw,calc(100dvh - 238px)));position:fixed;z-index:8;right:22px;top:50%;transform:translateY(-50%);width:calc(var(--wheel-size) + 30px);max-width:calc(100vw - 12px);max-height:96dvh;overflow-y:auto;scrollbar-gutter:stable;padding:15px 15px 14px;color:#f5f0ed;background:radial-gradient(ellipse at 50% 45%,#252031f5,#12101cf2 66%);border:1px solid #c4bbdc48;border-radius:26px;box-shadow:0 24px 90px #040309b8,0 0 70px #aa82f31c;backdrop-filter:blur(16px);pointer-events:auto;touch-action:manipulation}.animation-wheel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 3px 7px}.animation-wheel-head small{font-size:8px;color:var(--acid);letter-spacing:1.6px}.animation-wheel-head h2{font:400 24px/1.05 Georgia,serif;margin:5px 0 6px;letter-spacing:-.6px}.animation-wheel-head p{font-size:10px;color:#b8b2c5;margin:0}.animation-wheel-head .round{flex-shrink:0;width:44px;height:44px;font-size:25px}
.animation-wheel-groups{display:flex;gap:5px;align-items:center;overflow-x:auto;scrollbar-width:none;padding:8px 1px 9px}.animation-wheel-groups::-webkit-scrollbar{display:none}.animation-wheel-groups button{white-space:nowrap;border:1px solid #ffffff20;border-radius:15px;font-size:9px;line-height:1;padding:8px 10px;color:#bfb6cd;background:#ffffff04;min-height:30px}.animation-wheel-groups button[aria-pressed=true]{color:#e2ef88;border-color:#e2ef8866;background:#e2ef8815}
.animation-wheel-board{container-type:inline-size;position:relative;width:min(var(--wheel-size),100%);height:auto;aspect-ratio:1;margin:0 auto;border-radius:50%;background:radial-gradient(circle at center,#c3a6fc0c 0 21%,transparent 21% 24%,#e2ef8803 24% 30%,transparent 30% 34%,#c3a6fc05 34% 40%,transparent 40% 43%,#ffffff04 43% 49%,transparent 49%);isolation:isolate}.motion-ring{position:absolute;border:1px solid #e4ddf621;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.motion-ring-inner{width:calc(50% - 22px);height:calc(50% - 22px);border-color:#e2ef8827}.motion-ring-middle{width:calc(73% - 32.12px);height:calc(73% - 32.12px)}.motion-ring-outer{width:calc(93% - 40.92px);height:calc(93% - 40.92px);border-color:#c6a9ff32}.motion-ring-outer:before,.motion-ring-outer:after{content:'';position:absolute;inset:-6px;border:1px dashed #ffffff09;border-radius:50%}.motion-ring-outer:after{inset:6px;border-color:#e2ef880b}
.motion-orb{--orb-size:clamp(30px,9.4cqw,48px);position:absolute;z-index:2;transform:translate(-50%,-50%);width:var(--orb-size);height:var(--orb-size);display:grid;place-items:center;border:1px solid #d7cde945;border-radius:50%;background:linear-gradient(145deg,#322c43,#191622);box-shadow:0 3px 8px #0006,inset 0 1px 0 #ffffff0d;transition:background .15s,border-color .15s,box-shadow .15s,opacity .15s;font-size:clamp(18px,5.1cqw,27px);padding:0;color:#fff}.motion-orb>span:first-child{display:block;line-height:1;pointer-events:none;filter:drop-shadow(0 1px 2px #0005)}.motion-orb.motion-flight{border-color:#8ad5e850}.motion-orb.motion-tricks{border-color:#b19cfb55}.motion-orb.motion-gestures{border-color:#f3b2c95e}.motion-orb.motion-fun{border-color:#d6e99055}.motion-orb.motion-cosmic{border-color:#b296ed6a}.motion-orb.motion-boom{border-color:#f5c18065}.motion-orb:hover,.motion-orb:focus-visible{z-index:5;background:#49405a;border-color:#f5f0ed;box-shadow:0 0 0 3px #ffffff13,0 3px 10px #0005;outline:0;filter:none}.motion-orb.active{background:linear-gradient(145deg,#e2ef88,#b5ca6e);border-color:#f2ffba;box-shadow:0 0 0 3px #e2ef8835,0 0 22px #e2ef883f}.motion-orb.outside-group{opacity:.3}.motion-orb.outside-group:hover,.motion-orb.outside-group:focus-visible,.motion-orb.outside-group.active{opacity:1}.motion-tooltip{pointer-events:none;position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%);padding:6px 8px;border:1px solid #ffffff35;border-radius:5px;white-space:nowrap;font:600 10px/1 Arial,sans-serif;background:#110e1af5;opacity:0;transition:opacity .12s;color:#f5f0ed}.motion-orb:hover .motion-tooltip,.motion-orb:focus-visible .motion-tooltip{opacity:1}
.animation-wheel-center{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);width:33%;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;text-align:center;gap:5px}.motion-character{width:64%;aspect-ratio:1;max-width:94px;display:grid;place-items:center;position:relative;border-radius:50%;background:radial-gradient(circle,#e2ef8817,#b795ef09 60%,transparent 70%)}.motion-character:after{content:'';position:absolute;inset:0;border:1px solid #e2ef882e;border-radius:50%}.motion-character img{width:92%;height:92%;object-fit:contain;filter:drop-shadow(0 4px 9px #0006)}#animation-wheel-name{font-size:clamp(7px,1.7cqw,10px);line-height:1.2;color:#bfb6cd;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#animation-wheel-motion{font:500 clamp(13px,3.2cqw,20px)/1.15 Georgia,serif;letter-spacing:-.25px;color:#e2ef88;max-width:100%}.animation-wheel-center p{margin:0;font-size:clamp(8px,1.8cqw,11px);line-height:1.4;color:#aaa0b9;max-width:100%;min-height:2.8em}
.animation-wheel-footer{text-align:center;display:flex;align-items:center;flex-direction:column;gap:8px;padding:9px 2px 0}.animation-wheel-footer>span{color:#cec4db;font-size:10px;letter-spacing:.1px;min-height:12px}.motion-playing .animation-wheel-footer>span{color:#e2ef88}.animation-wheel-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.animation-wheel-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid #ffffff28;background:#ffffff06;border-radius:8px;padding:8px 13px;font-size:10px}.animation-wheel-actions button>span{font-size:17px}.animation-wheel-actions button[aria-pressed=true]{color:#e2ef88;border-color:#e2ef8870;background:#e2ef8810}.animation-wheel-actions button:disabled{cursor:default;opacity:.35}.animation-wheel-footer>small{color:#80768e;font-size:8px;letter-spacing:.2px}
@media(max-width:650px){.animation-wheel-toggle{right:17px;top:90px;min-height:44px;font-size:11px;padding:8px 11px}.animation-wheel-toggle kbd{display:none}.animation-wheel{container-type:inline-size;--wheel-size:max(220px,min(91vw,calc(100dvh - 242px)));left:50%;right:auto;transform:translate(-50%,-50%);width:calc(var(--wheel-size) + 18px);padding:12px 9px 11px;border-radius:22px}.animation-wheel-head{padding:0 3px 4px}.animation-wheel-head h2{font-size:22px}.animation-wheel-head small{font-size:7px}.animation-wheel-head p{font-size:9px}.animation-wheel-groups{padding:7px 1px 9px}.animation-wheel-groups button{font-size:8px;padding:8px;min-height:30px}.animation-wheel-footer{gap:7px;padding-top:8px}.animation-wheel-actions button{min-height:44px;padding:8px 12px}.animation-wheel-center{gap:4px}.motion-character{max-width:65px}.motion-tooltip{display:none}}
@media(max-height:620px) and (min-width:651px){.animation-wheel{container-type:inline-size;--wheel-size:max(220px,min(55vw,calc(100dvh - 200px)));padding-top:10px;padding-bottom:10px;right:12px}.animation-wheel-head h2{font-size:20px}.animation-wheel-head small{display:none}.animation-wheel-groups{padding:6px 0}.animation-wheel-groups button{padding:7px 9px;min-height:25px}.animation-wheel-footer{gap:5px;padding-top:6px}.animation-wheel-footer>small{display:none}.animation-wheel-actions button{min-height:36px}.animation-wheel-toggle{top:81px;right:18px}}
@media(max-height:550px) and (max-width:650px){.animation-wheel{container-type:inline-size;--wheel-size:max(220px,min(75vw,calc(100dvh - 160px)));padding:8px;left:auto;right:7px;transform:translateY(-50%);width:calc(var(--wheel-size) + 16px)}.animation-wheel-head h2{font-size:17px}.animation-wheel-head small,.animation-wheel-head p,.animation-wheel-footer>small,.animation-wheel-groups{display:none}.animation-wheel-head .round{width:36px;height:36px}.animation-wheel-footer{gap:4px;padding-top:4px}.animation-wheel-actions button{min-height:34px;padding:6px 9px;font-size:9px}.animation-wheel-center p{display:none}.motion-character{max-width:45px}.animation-wheel-toggle{top:80px}}
@media(prefers-reduced-motion:reduce){.motion-orb,.motion-tooltip{transition:none}}
/* The visible circles shrink on phones; each tap still gets a 44 px target. */
.motion-orb{--orb-size:min(48px,9.4cqw);width:max(44px,var(--orb-size));height:max(44px,var(--orb-size));border:0;background:none;box-shadow:none;font-size:clamp(12px,5.1cqw,27px)}.motion-orb>span:first-child{width:var(--orb-size);height:var(--orb-size);display:grid;place-items:center;position:relative;border:1px solid #d7cde945;border-radius:50%;background:linear-gradient(145deg,#322c43,#191622);box-shadow:0 3px 8px #0006,inset 0 1px 0 #ffffff0d;filter:none;transition:background .15s,border-color .15s,box-shadow .15s}.motion-orb.motion-flight>span:first-child{border-color:#8ad5e850}.motion-orb.motion-tricks>span:first-child{border-color:#b19cfb55}.motion-orb.motion-gestures>span:first-child{border-color:#f3b2c95e}.motion-orb.motion-fun>span:first-child{border-color:#d6e99055}.motion-orb.motion-cosmic>span:first-child{border-color:#b296ed6a}.motion-orb.motion-boom>span:first-child{border-color:#f5c18065}.motion-orb:hover,.motion-orb:focus-visible,.motion-orb.active{background:none;border:0;box-shadow:none}.motion-orb:hover>span:first-child,.motion-orb:focus-visible>span:first-child{background:#49405a;border-color:#f5f0ed;box-shadow:0 0 0 3px #ffffff13,0 3px 10px #0005}.motion-orb.active>span:first-child{background:linear-gradient(145deg,#e2ef88,#b5ca6e);border-color:#f2ffba;box-shadow:0 0 0 3px #e2ef8835,0 0 22px #e2ef883f}@media(prefers-reduced-motion:reduce){.motion-orb>span:first-child{transition:none}}
.motion-character canvas{width:92%;height:92%;object-fit:contain;border-radius:50%;position:relative;z-index:1}.motion-character:after{pointer-events:none;z-index:2}

/* DMT passage: a brief chromatic veil; Space is always jump. */
.phase-veil{position:fixed;inset:0;z-index:7;pointer-events:none;background:radial-gradient(ellipse at 48% 52%,transparent 7%,rgba(137,255,225,.42) 36%,rgba(243,116,255,.6) 62%,rgba(105,68,221,.8) 100%);mix-blend-mode:screen;transition:opacity .06s linear;}
.phase-veil[hidden]{display:none;}
.room-card.locked{opacity:.62;cursor:default;border-style:dashed;}
.room-card.locked:hover{transform:none;background:rgba(255,255,255,.025);}
.build-link{display:inline-block;color:#cfbdf0;text-decoration:underline;margin:0 12px 18px 0;font-size:12px;}

/* North stays world -Z; the rose follows the actual camera orientation. */
.compass{position:absolute;top:103px;left:50%;transform:translateX(-50%);width:88px;text-align:center;background:#161322d9;border:1px solid #ffffff20;border-radius:12px;padding:9px 7px 8px;pointer-events:none;backdrop-filter:blur(10px)}
.compass-dial{width:66px;height:66px;margin:auto;border:1px solid #ffffff36;border-radius:50%;position:relative;background:radial-gradient(circle,#e2ef8808,transparent 70%)}.compass-rose{position:absolute;inset:0}.cardinal{position:absolute;font:700 10px Arial;color:#beb4ce;display:grid;place-items:center;width:14px;height:14px}.cardinal span{display:block}.north{top:1px;left:25px;color:#e2ef88}.east{right:1px;top:25px}.south{bottom:1px;left:25px}.west{left:1px;top:25px}.north-pointer{position:absolute;top:18px;left:29px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:13px solid #e2ef88}.view-pointer{position:absolute;left:30px;top:-6px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid #f4eee8}.compass small{display:block;font-size:6px;letter-spacing:1px;color:#aba0b9;margin-top:6px}.compass strong{display:block;font-size:10px;color:#f4eee8;margin-top:4px}.resident-total{position:absolute;top:194px;left:38px;font-size:9px;color:#bfc4a6;max-width:240px}
.roster-card{padding:0;display:flex;flex-direction:column;overflow:hidden}.roster-select{width:100%;padding:12px 8px 8px;text-align:left;flex:1}.resident-location{font-size:8px;color:#e2ef88;padding:0 8px;line-height:1.5;min-height:27px}.resident-source{font-size:7px;color:#a59aac;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px 8px 8px}.resident-find{font-size:8px;padding:10px 6px;background:#ffffff07;border-top:1px solid #ffffff1d;text-align:center;min-height:34px;color:#ddd1eb}.resident-find:disabled{cursor:default}.resident-search{display:flex;flex-direction:column;gap:7px;font-size:10px;color:#c4b7d4;margin-top:19px}.resident-search input{background:#11101a;border:1px solid #ffffff2b;border-radius:7px;padding:11px 12px;font:12px Arial;color:#f5f0ed;outline-color:#e2ef88}.resident-summary{font-size:10px;color:#e2ef88;margin:12px 0 0}.map-orientation{font-size:9px;color:#b3a6c5;line-height:1.7;margin:0 0 15px}
.uploaded-clips{border-top:1px solid #e2ef8830;margin-top:9px;padding:10px 3px 3px}.uploaded-head{display:flex;justify-content:space-between;font-size:10px;color:#e2ef88;margin-bottom:8px}.uploaded-head>span{font-size:9px;color:#a99dba}.uploaded-slot-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.uploaded-slot{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;background:#ffffff05;border:1px solid #ffffff20;border-radius:7px;padding:6px 3px;min-height:54px}.uploaded-slot kbd{font:700 10px Arial;color:#e2ef88}.uploaded-slot span{font:8px/1.2 Arial;text-align:center;overflow-wrap:anywhere}.uploaded-slot.selected{background:#e2ef8819;border-color:#e2ef88}.uploaded-controls{display:flex;align-items:center;gap:7px;margin-top:7px;font-size:8px;color:#bdb0cd}.uploaded-controls>span{flex:1}.uploaded-controls button{padding:8px 7px;border:1px solid #ffffff25;border-radius:6px;font-size:8px}.animation-wheel:has(.uploaded-clips:not([hidden])){--wheel-size:max(220px,min(620px,91vw,calc(100dvh - 366px)));max-height:96dvh;overflow-y:auto}
.npc-combat-actions{display:grid;grid-template-columns:repeat(8,minmax(48px,1fr));gap:5px;margin-top:9px;padding-top:10px;border-top:1px solid #a882ff40}.npc-combat-action{min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 2px;border:1px solid #9d7cff55;border-radius:9px;background:linear-gradient(180deg,#9d7cff16,#07041166);color:#f5f0ed}.npc-combat-action span{font-size:21px;filter:drop-shadow(0 0 7px #a882ff)}.npc-combat-action small{font:700 7px/1.1 Arial,sans-serif;text-transform:uppercase;letter-spacing:.35px}.npc-combat-action:disabled{opacity:.32;filter:grayscale(.55)}
@media(max-width:650px){.npc-combat-actions{grid-template-columns:repeat(4,minmax(48px,1fr))}}
@media(max-width:650px){.compass{left:auto;right:14px;top:147px;transform:none;width:76px;padding:7px 4px}.compass-dial{transform:scale(.9);margin-top:-4px;margin-bottom:-3px}.resident-total{left:20px;top:176px;max-width:190px;font-size:8px}.uploaded-slot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.uploaded-slot{min-height:44px}.animation-wheel:has(.uploaded-clips:not([hidden])){--wheel-size:max(220px,min(91vw,calc(100dvh - 402px)))}}

@container (max-width:330px){.uploaded-slot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Sound credits in the help panel (castle-combat.js fills them in): links in the build links' colour. */
.sound-credits a{color:#cfbdf0}
.brand-icon{display:block;height:32px;width:auto;flex:none;object-fit:contain}.brand-copy{display:flex;flex-direction:column;gap:3px}.brand-wordmark{display:block;width:min(190px,20vw);height:auto;object-fit:contain}.brand small{margin-top:0}@media(max-width:480px){.brand-wordmark{display:none}}
