@import url('../fonts/fonts.css');
:root{--digit-scale:1.12;color-scheme:dark;--bg:#090b17;--panel:#171a2b;--line:#ffffff1c;--white:#f7f8ff;--muted:#aab0c9;--lime:#cbff4e;--cyan:#81ecff;--violet:#a891ff;font-family:'Space Grotesk',system-ui,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100svh;background:#090b17;color:var(--white);overflow-x:hidden}button,input,a{-webkit-tap-highlight-color:transparent}button,a{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,.voxel:focus-visible{outline:2px solid var(--lime);outline-offset:3px}a{text-decoration:none}.ambient{position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 35% 46%,#182e5668 0,transparent 39%),radial-gradient(circle at 80% 80%,#39235245 0,transparent 38%),radial-gradient(circle at 6% 5%,#626ef41c 0,transparent 23%),#090b17}.ambient:after{content:'';position:absolute;inset:0;opacity:.17;background-image:linear-gradient(#9fb2e40d 1px,transparent 1px),linear-gradient(90deg,#9fb2e40d 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(transparent,#000 50%,transparent)}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3.5vw,56px);border-bottom:1px solid #ffffff16;background:#0a0c17bf;backdrop-filter:blur(18px)}.brand{display:flex;gap:10px;align-items:center;font:800 28px/.8 'Barlow Condensed';letter-spacing:-.2px}.brand-symbol{display:grid;place-items:center;width:34px;height:39px;background:var(--lime);color:#111b0a;clip-path:polygon(15% 0,100% 0,85% 100%,0 100%);font:700 42px/1 system-ui}.brand small{display:block;font:600 8px/1.1 'Space Grotesk';letter-spacing:4px;margin-top:5px}.top-actions{display:flex;align-items:center;gap:30px}.top-tag{font:600 10px/1 'Space Grotesk';letter-spacing:2.2px;color:#8f96b0}.back-link{display:flex;gap:8px;align-items:center;padding:9px 12px;border:1px solid #ffffff27;border-radius:8px;font-size:12px;color:#d9def0;background:#ffffff08}.back-link:hover{border-color:#cbff4e7c;color:var(--lime)}.workspace{max-width:1440px;margin:0 auto;padding:29px clamp(18px,3.5vw,56px) 20px;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:26px}.stage-shell{position:relative;min-width:0;border:1px solid #7c8fb841;border-radius:20px;background:linear-gradient(150deg,#141b30e9,#0d1021ef 44%,#141126eb);box-shadow:0 26px 90px #0008,inset 0 1px #ffffff18;overflow:hidden}.stage-top{height:112px;display:flex;justify-content:space-between;align-items:center;padding:21px 28px 11px;position:relative;z-index:4}.eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:700;letter-spacing:2.5px;color:var(--cyan)}.live-dot{width:6px;height:6px;border-radius:50%;background:var(--cyan);box-shadow:0 0 12px var(--cyan)}h1{margin:5px 0 0;font:900 69px/.86 'Barlow Condensed';letter-spacing:-1px}h1 span{color:var(--lime);font-size:50px;vertical-align:top;line-height:1.12;margin-left:5px}.stage-index{text-align:right;padding-bottom:6px}.stage-index>span{display:block;font-size:9px;letter-spacing:2px;color:#a0a9c2}.stage-index strong{display:block;margin-top:6px;font:800 26px/1 'Barlow Condensed';letter-spacing:2px}.stage-index i{color:var(--lime);font-style:normal}.stage{position:relative;min-height:525px;overflow:hidden;touch-action:none;cursor:grab;isolation:isolate}.stage.is-dragging{cursor:grabbing}.stage:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 58% 57% at 50% 55%,#3c3d895c,transparent 71%),radial-gradient(ellipse 45% 30% at 50% 84%,#9d4cbd34,transparent 86%);z-index:-2}.stage:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0e1221 1%,transparent 19% 81%,#101322 99%);z-index:7}.stage-halo{position:absolute;left:50%;top:50%;width:500px;height:500px;border:1px solid #81ecff17;border-radius:50%;transform:translate(-50%,-48%) rotateX(67deg);box-shadow:0 0 60px #72baff21,inset 0 0 60px #725bff1c}.stage-halo:before,.stage-halo:after{content:'';position:absolute;inset:13%;border:1px dashed #81ecff1a;border-radius:50%}.stage-halo:after{inset:27%;border-color:#cbff4e21}.floor{position:absolute;left:50%;top:78%;width:650px;height:250px;transform:translate(-50%,-10%) perspective(300px) rotateX(68deg);background:repeating-linear-gradient(0deg,#a3b2e222 0 1px,transparent 1px 35px),repeating-linear-gradient(90deg,#a3b2e222 0 1px,transparent 1px 35px);mask-image:radial-gradient(ellipse,#000 15%,transparent 68%);pointer-events:none}.orientation{position:absolute;left:22px;top:50%;display:flex;gap:7px;flex-direction:column;z-index:8}.orientation b{font:700 10px 'Space Grotesk';display:grid;place-items:center;width:21px;height:21px;border:1px solid #ffffff27;color:#c4cbe0;border-radius:4px}.orientation b:last-child{color:var(--lime);border-color:#cbff4e88}.cube-wrap{position:absolute;inset:0;display:grid;place-items:center;perspective:1150px;z-index:3}.cube{--rx:-18deg;--ry:-27deg;--spacing:27px;position:relative;width:min(68vw,410px);height:min(68vw,410px);transform-style:preserve-3d;transform:rotateX(var(--rx)) rotateY(var(--ry));transition:transform .25s ease-out}.stage.is-dragging .cube{transition:none}.cube::before,.cube::after{content:'';position:absolute;inset:-3px;border:1px solid #81ecff6c;box-shadow:0 0 27px #58d1ff29,inset 0 0 20px #81ecff0d;transform:translateZ(calc(-4 * var(--spacing)));pointer-events:none}.cube::after{transform:translateZ(calc(4 * var(--spacing)));border-color:#cbff4e6b;box-shadow:0 0 29px #c4ff4e27}.layer{position:absolute;inset:0;display:grid;grid-template-columns:repeat(9,1fr);grid-template-rows:repeat(9,1fr);gap:2px;padding:4px;transform:translateZ(calc(var(--plane) * var(--spacing)));transform-style:preserve-3d;border:1px solid #8bb9ff82;background:#0b132983;box-shadow:0 0 15px #599fff27,inset 0 0 25px #739aff22;transition:opacity .25s,box-shadow .25s,border-color .25s,background .25s;opacity:.1;pointer-events:none}.layer.active{opacity:1;border-color:#d9ff9ad6;background:#0e1435e8;box-shadow:0 0 18px #afff7e70,0 0 64px #7ddcff40,inset 0 0 19px #63cdff42;pointer-events:auto}.layer.behind{opacity:.12}.layer.ahead{opacity:.04}.cube.spread{--spacing:35px}.voxel{position:relative;display:grid;place-items:center;min-width:0;border:1px solid #8babcf38;background:linear-gradient(145deg,#202c4abb,#111932ab);color:#e9f2ff;font:700 clamp(13px,1.65vw,22px)/1 'Space Grotesk';user-select:none}.voxel.box-right{margin-right:3px}.voxel.box-bottom{margin-bottom:3px}.layer.active .voxel{background:linear-gradient(145deg,#263957,#15223e);border-color:#84acdb53;cursor:pointer}.layer.active .voxel:hover{background:#375276;border-color:#a7eeff}.voxel.given{color:#f2f4ff;text-shadow:0 0 7px var(--ink-given-glow,#a6cfff61)}.voxel.axis-cell{background:#234866;box-shadow:inset 0 0 10px #81ecff9d,0 0 12px #81ecff8a;border-color:#8decff}.layer.active .voxel.selected{background:var(--lime);border-color:#f8ffbe;color:#101b11;box-shadow:0 0 22px #cbff4eb9,0 0 50px #cbff4e6e;font-weight:800;z-index:3}.voxel.selected:after{content:'';position:absolute;inset:-5px;border:1px solid #dfff84aa;box-shadow:0 0 10px #e2ff9b;pointer-events:none}.depth-beam{position:absolute;width:calc(8 * var(--spacing));height:3px;transform:translate(-50%,-50%) rotateY(90deg);background:#a3f5ff;box-shadow:0 0 9px 3px #4be4ffbb,0 0 32px 8px #64a9ff83;pointer-events:none;opacity:.85}.depth-node{position:absolute;width:12px;height:12px;border:1px solid #e8ffb4;border-radius:3px;background:#cbff4e;box-shadow:0 0 11px 3px #cbff4e91;transform:translate(-50%,-50%) translateZ(calc(var(--plane) * var(--spacing)));pointer-events:none}.layer:not(.active) .voxel span{opacity:0}.layer.active .voxel:not(.given) span{opacity:.15}.layer.active .voxel.selected span{opacity:1}.stage-side-label{position:absolute;bottom:28px;z-index:8;font-size:9px;letter-spacing:2px;color:#a8b3cc}.stage-side-label--left{left:28px}.stage-side-label--right{right:28px}.stage-side-label b{color:var(--lime);margin-left:8px}.stage-tools{position:absolute;right:24px;top:19px;z-index:8;display:flex;align-items:center;gap:12px;color:#b4bfd7;font-size:10px;letter-spacing:2px}.stage-tools button{padding:6px 8px;border:1px solid #b4bfd74d;background:#13192be0;border-radius:5px;color:#c8d7ed;font-size:9px;letter-spacing:1px}.stage-tools button:hover{border-color:var(--lime);color:var(--lime)}.stage-bottom{height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 27px;border-top:1px solid #ffffff16;background:#0e1424aa}.preview-badge{white-space:nowrap;border:1px solid #81ecff47;border-radius:5px;padding:7px 9px;color:#a8eaf5;font-size:9px;letter-spacing:1.3px}.controls{display:flex;flex-direction:column;gap:15px}.panel{padding:20px;border:1px solid #8190bc3d;border-radius:16px;background:linear-gradient(145deg,#21253aea,#151829ed);box-shadow:inset 0 1px #ffffff14}.panel-kicker{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1.8px;color:var(--cyan);font-weight:700}.accent-dash{height:2px;width:17px;background:var(--lime);box-shadow:0 0 9px var(--lime)}.panel h2{font:800 31px/1 'Barlow Condensed';margin:16px 0 8px}.panel p{color:#b1bad0;font-size:12px;line-height:1.6;margin:0}.layer-status{display:flex;justify-content:space-between;align-items:end;margin:23px 0 10px}.layer-status>span{font-size:10px;letter-spacing:1.8px;color:#aeb9d0}.layer-status strong{font:800 44px/.8 'Barlow Condensed';color:var(--lime)}.layer-status small{font-size:21px;color:#69768b}#layer-slider{width:100%;margin:12px 0;accent-color:var(--lime);cursor:pointer}.range-labels,.depth-caption{display:flex;justify-content:space-between;color:#919bb5;font-size:9px;letter-spacing:1.2px}.layer-buttons{display:flex;gap:8px;margin-top:19px}.layer-buttons button{flex:1;height:39px;border:1px solid #8ba0d53b;border-radius:7px;background:#ffffff09;font-size:21px}.layer-buttons button:hover,.view-controls button:hover{border-color:var(--lime);color:var(--lime)}.depth-strip{display:grid;grid-template-columns:repeat(9,1fr);gap:3px;margin-top:20px}.depth-strip span{height:34px;display:grid;place-items:center;border:1px solid #7486ad61;border-radius:4px;background:#121b31;color:#e4edff;font-weight:700;font-size:13px}.depth-strip span.active{background:var(--lime);color:#1e2b17;box-shadow:0 0 13px #cbff4e70}.depth-caption{margin-top:7px}.view-controls{display:grid;grid-template-columns:1fr 1fr;gap:9px}.view-controls button{height:44px;padding:0 8px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #8ca4d544;border-radius:9px;background:#20253a;font-size:19px}.view-controls button span{font-size:11px}.view-controls button[aria-pressed=true]{border-color:var(--lime);color:var(--lime)}.concept-note{margin:2px 2px 0;font-size:11px;line-height:1.55;color:#8790aa}.bottom-bar{max-width:1440px;margin:0 auto;padding:5px clamp(18px,3.5vw,56px) 22px;display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.1px;color:#8d99b0}.bottom-bar b{color:#c9d2e8;font-weight:600;margin-left:7px}@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 260px;gap:15px}.controls{gap:10px}.panel{padding:15px}.stage{min-height:460px}.cube{width:min(49vw,370px);height:min(49vw,370px)}.voxel{font-size:clamp(12px,1.8vw,19px)}.stage-top{height:100px}.stage-bottom{height:65px}}@media(max-width:720px){.topbar{height:61px}.top-tag{display:none}.workspace{display:block;padding:14px 14px 10px}.stage-top{padding:15px;height:88px}h1{font-size:52px}h1 span{font-size:38px}.stage-index strong{font-size:19px}.stage{min-height:min(108vw,450px)}.cube{width:min(65vw,335px);height:min(65vw,335px);--spacing:22px}.cube.spread{--spacing:29px}.voxel{font-size:clamp(11px,3vw,17px)}.stage-side-label--right,.orientation,.stage-tools>span{display:none}.stage-bottom{padding:10px 14px}.preview-badge{display:none}.controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.panel h2{font-size:27px}.view-controls,.concept-note{grid-column:1/-1}.concept-note{margin:0}.bottom-bar{padding:8px 18px 25px;font-size:9px}}@media(max-width:500px){.back-link span{display:none}.back-link{font-size:17px;padding:4px 9px}.stage{min-height:355px}.cube{width:61vw;height:61vw;--spacing:18px}.cube.spread{--spacing:24px}.cube::before,.cube::after{display:none}.layer{gap:1px;padding:2px}.voxel{font-size:clamp(9px,2.7vw,13px)}.voxel.box-right{margin-right:1px}.voxel.box-bottom{margin-bottom:1px}.stage-top{height:79px}.stage-bottom{height:63px}.stage-side-label{bottom:12px;left:15px}.controls{display:flex}.panel{padding:17px}.panel p{font-size:12px}.layer-status{margin:15px 0 6px}.depth-strip{margin-top:14px}.bottom-bar span:last-child{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Six opaque, tiled surfaces make the cube feel like a physical puzzle. */
.cube{--size:min(42vw,370px);--half:calc(var(--size)/2);width:var(--size);height:var(--size);--rx:-23deg;--ry:-32deg;--spacing:22px}
.cube::before,.cube::after{display:none}
.face{position:absolute;inset:0;display:grid;grid-template-columns:repeat(9,1fr);grid-template-rows:repeat(9,1fr);gap:2px;padding:6px;background:#0c1225;border:5px solid var(--face-rim,#0a0c16);border-radius:9px;box-shadow:inset 0 0 18px #07090f,0 0 25px var(--face-glow,#77caff4b);backface-visibility:hidden;transform-style:preserve-3d;transition:opacity .3s;overflow:hidden}
.face-front{transform:translateZ(var(--half));background:var(--face-panel,#16274a);box-shadow:0 0 35px var(--face-glow,#65daff67),inset 0 0 18px #0009;pointer-events:auto}
.face-back{transform:rotateY(180deg) translateZ(var(--half));background:var(--face-panel,#16274a)}
.face-right{transform:rotateY(90deg) translateZ(var(--half));background:var(--face-panel,#2a2249)}
.face-left{transform:rotateY(-90deg) translateZ(var(--half));background:var(--face-panel,#2a2249)}
.face-top{transform:rotateX(90deg) translateZ(var(--half));background:var(--face-panel,#3d0a29)}
.face-bottom{transform:rotateX(-90deg) translateZ(var(--half));background:var(--face-panel,#3d0a29)}
.face .voxel{border-radius:3px;border:1px solid var(--gap,#070b17);background:linear-gradient(145deg,#254574,#142447);box-shadow:inset 0 1px #b7efff51,inset 0 -3px #050b1b75;color:var(--ink-given,#f4f9ff);font-size:calc(clamp(12px,1.45vw,18px)*var(--digit-scale))}
.face-right .voxel,.face-left .voxel{background:linear-gradient(145deg,#4d3a78,#2c234e);box-shadow:inset 0 1px #e0c5ff5c,inset 0 -3px #0b0719a1}
.face-top .voxel,.face-bottom .voxel{background:linear-gradient(145deg,#a0226f,#560f3b);box-shadow:inset 0 1px #ffc4ea5c,inset 0 -3px #1c0512a1;color:var(--ink-given,#f4f9ff)}
.face .voxel.box-right{margin-right:3px;border-right:2px solid #050914}.face .voxel.box-bottom{margin-bottom:3px;border-bottom:2px solid #050914}
.face-front .voxel{cursor:pointer}.face-front .voxel:hover{filter:brightness(1.45)}.face-front .voxel.selected{background:var(--lime);color:#1b2a0d;border-color:#edffad;box-shadow:0 0 13px #cbff4eab,inset 0 1px #ffffffdd;z-index:3}.face-front .voxel.selected:after{inset:-4px}
.layer,.depth-beam,.depth-node{visibility:hidden;pointer-events:none}.cube.xray .face{opacity:.08;pointer-events:none}.cube.xray .face-front{opacity:.04}.cube.xray .layer{visibility:visible}.cube.xray .layer.active{pointer-events:auto}.cube.xray .depth-beam,.cube.xray .depth-node{visibility:visible}
.cube.xray .layer{width:100%;height:100%;transform:translateZ(calc(var(--plane)*var(--spacing)));background:#122340a8;opacity:.08}.cube.xray .layer.active{opacity:1;background:#12294fe9}
.cube.xray .layer .voxel{border-radius:2px}.cube.xray .layer.active .voxel.selected{background:var(--lime);color:#142007}
@media(max-width:1050px){.cube{--size:min(39vw,330px);--spacing:19px}}@media(max-width:720px){.cube{--size:min(64vw,335px);--spacing:17px}}@media(max-width:500px){.cube{--size:min(56vw,285px);--spacing:15px}.face{gap:1px;padding:3px;border-width:3px;border-radius:5px}.face .voxel{font-size:calc(clamp(9px,2.5vw,13px)*var(--digit-scale))}.face .voxel.box-right{margin-right:1px}.face .voxel.box-bottom{margin-bottom:1px}}
@media(max-width:1050px){.cube{--size:min(36vw,300px)}.stage-tools{top:7px}}

.cube-wrap{transform:translateY(-12px)}
@media(max-width:500px){.cube{--size:min(72vw,270px)}}

.reset-view{white-space:nowrap;padding:9px 12px;border:1px solid #81ecff65;border-radius:6px;background:#81ecff0d;color:#bcefff;font:700 10px 'Space Grotesk';letter-spacing:1px}.reset-view:hover{border-color:var(--lime);color:var(--lime)}@media(max-width:500px){.cube{--size:min(68vw,255px)}.reset-view{padding:8px;font-size:9px}.stage-bottom{gap:6px}}

.face .voxel{cursor:pointer}.face .voxel:hover{filter:brightness(1.48);border-color:#c1f5ff}.face .voxel.same-number{background:linear-gradient(145deg,#57bfff,#256ca0);border-color:#d5faff;color:#fff;box-shadow:inset 0 0 8px #d2faffaa,0 0 12px #65d9ffbb;text-shadow:0 0 7px #fff;z-index:2}.face .voxel.selected{background:var(--lime);color:#1b2a0d;border-color:#edffad;box-shadow:0 0 13px #cbff4eab,inset 0 1px #ffffffdd;text-shadow:none;z-index:3}.layer.active .voxel.same-number{background:#3b79a8;border-color:#a2eeff;box-shadow:0 0 12px #7ce3ff;z-index:2}

.stage-electricity{position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none;mix-blend-mode:screen}.face .voxel.same-number,.layer.active .voxel.same-number{animation:voltageBreath .9s ease-in-out infinite alternate}.face .voxel.selected,.layer.active .voxel.selected{animation:voltageCore .7s ease-in-out infinite alternate}@keyframes voltageBreath{from{filter:brightness(.93)}to{filter:brightness(1.42)}}@keyframes voltageCore{from{filter:brightness(1)}to{filter:brightness(1.3)}}

/* Direct entry stays visible beside the cube; tapping a tile opens the same keypad nearby. */
.panel-entry{border-color:#cbff4e7a;background:linear-gradient(145deg,#263329,#171c28 67%,#17182b);box-shadow:inset 0 1px #d8ffad30,0 0 35px #cbff4e12}.panel-entry h2{color:#f2ffcf}.panel-entry p{min-height:36px}.entry-modes,.picker-mode-row{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}.entry-modes button,.picker-mode-row button{height:30px;border:1px solid #9bb8c64d;border-radius:6px;background:#ffffff0b;font-size:11px;font-weight:700}.entry-modes button[aria-pressed=true],.picker-mode-row button[aria-pressed=true]{background:var(--lime);color:#14200d;border-color:var(--lime)}.entry-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.entry-pad button{height:37px;border:1px solid #87bcd45c;border-radius:7px;background:linear-gradient(145deg,#2a3e55,#1b263f);color:#f2f9ff;font:800 20px 'Barlow Condensed';box-shadow:inset 0 1px #ffffff24}.entry-pad button:hover{background:var(--lime);border-color:#efffbe;color:#14220a;box-shadow:0 0 13px #cbff4e83}.entry-pad button.noted{border-color:var(--cyan);color:var(--cyan);box-shadow:inset 0 0 9px #81ecff55}.entry-pad button:disabled{opacity:.24;cursor:not-allowed;box-shadow:none}.entry-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}.entry-foot span{color:#b4c4d0;font-size:10px;line-height:1.3}.entry-foot button,.picker-foot button{border:1px solid #ffb7cc75;background:#ff4b7618;border-radius:6px;padding:6px 10px;color:#ffd0db;font-size:10px;font-weight:700}.entry-foot button:disabled,.picker-foot button:disabled{opacity:.35;cursor:not-allowed}.cell-picker[hidden]{display:none}.cell-picker{position:fixed;z-index:1000;width:242px;padding:13px;border:1px solid #cbff4ed9;border-radius:13px;background:linear-gradient(145deg,#21343a,#121b2ddf 76%);box-shadow:0 15px 55px #000d,0 0 30px #81ecff4d,inset 0 1px #ffffff4b;backdrop-filter:blur(18px)}.picker-head,.picker-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.picker-head span{font-size:10px;font-weight:700;letter-spacing:1px;color:var(--lime)}.picker-head button{border:0;background:none;color:#d9faff;font-size:21px;line-height:1}.picker-mode-row{margin-top:7px}.cell-picker .entry-pad button{height:40px}.picker-foot{margin-top:11px}.picker-foot span{font-size:9px;color:#a7b8c8}.cell-picker.shake{animation:pickerShake .25s ease-out}@keyframes pickerShake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}.face .voxel.user-value span,.layer.active .voxel.user-value span{color:var(--ink-entry,var(--lime));opacity:1;text-shadow:0 0 9px var(--ink-entry-glow,#cbff4e99)}.face .voxel.selected.user-value span,.layer.active .voxel.selected.user-value span{color:#1b2a0d;text-shadow:none}.note-mark{font-size:clamp(5px,.62vw,8px);letter-spacing:-.5px;color:var(--cyan);line-height:1.1;text-align:center;overflow-wrap:anywhere;max-width:100%}@media(max-width:720px){.panel-entry{grid-column:1/-1}.panel-entry .entry-pad{grid-template-columns:repeat(9,1fr)}.panel-entry .entry-pad button{height:38px}}@media(max-width:500px){.panel-entry .entry-pad{grid-template-columns:repeat(3,1fr)}.cell-picker{width:220px}.cell-picker .entry-pad button{height:36px}}

/* The six face circuits replace the earlier decorative depth scan. */
.mode-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:15px 0 11px}.mode-choices button{min-height:62px;padding:7px 5px;border:1px solid #85a0bd55;border-radius:8px;background:#131e31;text-align:center}.mode-choices button strong,.mode-choices button small{display:block}.mode-choices button strong{font:800 17px/1 'Barlow Condensed';letter-spacing:.2px}.mode-choices button small{font-size:8px;line-height:1.2;color:#9bb1c4;margin-top:6px}.mode-choices button.active{background:linear-gradient(145deg,#3d582d,#1b352d);border-color:var(--lime);box-shadow:0 0 17px #cbff4e38}.mode-choices button.active strong{color:var(--lime)}.panel-mode{border-color:#80dffb67}.panel-mode p{min-height:54px}.panel-map{border-color:#8a79d576}.face-map{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:14px}.face-chip{min-height:48px;text-align:left;padding:7px;border:1px solid #8da4c257;border-radius:7px;background:#122039}.face-chip strong,.face-chip small{display:block}.face-chip strong{font:800 16px 'Barlow Condensed';letter-spacing:.4px}.face-chip small{font:700 8px 'Space Grotesk';color:#9bb2ca;margin-top:3px;letter-spacing:.4px}.face-chip em{font:700 7px 'Space Grotesk';font-style:normal;color:var(--lime);letter-spacing:.3px}.face-chip.active{border-color:var(--cyan);box-shadow:0 0 14px #81ecff33}.face-chip.completed{border-color:var(--lime);background:#1f3929}.face-chip.completed small{color:var(--lime)}.face-chip.final:not(.completed){border-color:#b792ff;background:#2a2342}.latest-reward[hidden],.reward-overlay[hidden]{display:none}.latest-reward{margin-top:12px;padding:10px;border:1px solid #cbff4e80;border-radius:8px;background:#cbff4e12}.latest-reward span,.latest-reward strong{display:block}.latest-reward span{font-size:8px;letter-spacing:1.3px;color:var(--lime)}.latest-reward strong{margin-top:5px;font:800 18px 'Barlow Condensed';color:#f4ffcf}.face .voxel.earned{border-color:#dfff89!important;box-shadow:inset 0 0 9px #cbff4e8b,0 0 10px #cbff4e8b!important;color:var(--lime)!important}.face .voxel.earned span{color:var(--ink-earned,var(--lime));text-shadow:0 0 8px var(--ink-earned-glow,#cbff4e)}.face .voxel.selected.earned span{color:#18300d}.face.completed{box-shadow:0 0 35px #cbff4e82,inset 0 0 22px #cbff4e35}.reward-overlay{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;background:#050911d9;backdrop-filter:blur(12px)}.reward-card{width:min(430px,100%);padding:27px;border:1px solid var(--lime);border-radius:19px;background:radial-gradient(circle at 60% 25%,#3d713d69,transparent 45%),linear-gradient(150deg,#223b37,#12192b 75%);box-shadow:0 0 75px #cbff4e55,inset 0 1px #ffffff55;animation:rewardArrive .35s ease-out}@keyframes rewardArrive{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}.reward-eyebrow{font:700 10px 'Space Grotesk';letter-spacing:2px;color:var(--lime)}.reward-card h2{font:900 42px/1 'Barlow Condensed';margin:12px 0}.reward-card p{font-size:13px;line-height:1.5;color:#c5d8d8;margin:0}.reward-trace{display:flex;justify-content:space-between;align-items:center;margin:22px 0 17px;color:var(--cyan);font:800 18px 'Barlow Condensed'}.trace-line{font:700 13px 'Space Grotesk';color:var(--lime);text-shadow:0 0 12px var(--lime)}.reward-clue{display:flex;align-items:center;gap:18px;padding:16px;border:1px solid #b7ff737a;border-radius:12px;background:#cbff4e12}.reward-digit{display:grid;place-items:center;flex:none;width:68px;height:68px;border:1px solid #f4ffc0;border-radius:9px;background:var(--lime);box-shadow:0 0 25px #cbff4eb2;color:#10200e;font:900 48px 'Barlow Condensed'}.reward-clue strong,.reward-clue span{display:block}.reward-clue strong{font:800 19px 'Barlow Condensed';letter-spacing:.5px}.reward-clue span{font-size:10px;line-height:1.4;color:#abccca;margin-top:5px}.reward-actions{display:flex;gap:9px;margin-top:20px}.reward-actions button{flex:1;min-height:42px;border:1px solid #a9b9c36b;border-radius:8px;background:#ffffff13;font-size:11px;font-weight:700}.reward-actions button:first-child{background:var(--lime);border-color:var(--lime);color:#13220e}.reward-actions button[hidden]{display:none}.reward-overlay.victory .reward-trace,.reward-overlay.victory .reward-clue{display:none}@media(max-width:720px){.panel-mode,.panel-map{grid-column:1/-1}.mode-choices button{min-height:55px}.panel-mode p{min-height:0}}@media(max-width:500px){.mode-choices button strong{font-size:15px}.mode-choices button small{font-size:7px}.face-map{grid-template-columns:repeat(3,1fr)}.reward-card{padding:20px}.reward-card h2{font-size:36px}}
@media(min-width:1051px){.stage{min-height:610px}.cube-wrap{transform:translateY(16px)}}
.view-controls{grid-template-columns:repeat(3,1fr)}.view-controls button{font-size:16px;gap:4px}.view-controls button span{font-size:10px}@media(max-width:1050px){.view-controls button span{font-size:9px}}@media(max-width:500px){.view-controls button{height:42px;font-size:15px}.view-controls button span{font-size:9px}}

/* Equal face tiles, row labels, and 3 × 3 guides without shrinking boundary cells. */
.face{--rail:20px;--edge:6px;gap:2px;padding:var(--rail) var(--edge) var(--edge) var(--rail);grid-template-columns:repeat(9,minmax(0,1fr));grid-template-rows:repeat(9,minmax(0,1fr))}
.face .voxel{margin:0;min-width:0;min-height:0;box-sizing:border-box}
.face .voxel.row-related:not(.same-number){background:linear-gradient(145deg,#37658a,#1d385d);border-color:#80dfff8a;box-shadow:inset 0 0 9px #6adfff40}
.face .voxel.col-related:not(.same-number){background:linear-gradient(145deg,#55447f,#2c315d);border-color:#c3a2ff8a;box-shadow:inset 0 0 9px #b593ff49}
.face .voxel.selected{background:var(--lime);color:#1b2a0d;border-color:#edffad;box-shadow:0 0 18px #cbff4ecc,inset 0 1px #ffffffdd}
.face-guides{position:absolute;inset:var(--rail) var(--edge) var(--edge) var(--rail);z-index:5;pointer-events:none}
.face-guides i{position:absolute;display:block;background:#8fe8ffba;box-shadow:0 0 6px var(--guide-glow,#65d8ff9c)}
.face-guides .guide-v{top:0;bottom:0;width:3px}.face-guides .guide-h{left:0;right:0;height:3px}
.face-guides .guide-v.guide-one{left:calc(33.333333% - 1.5px)}.face-guides .guide-v.guide-two{left:calc(66.666667% - 1.5px)}
.face-guides .guide-h.guide-one{top:calc(33.333333% - 1.5px)}.face-guides .guide-h.guide-two{top:calc(66.666667% - 1.5px)}
.face-ruler{position:absolute;z-index:6;pointer-events:none;color:#a6c3d7;font:800 clamp(7px,.7vw,10px)/1 'Space Grotesk';text-shadow:0 0 5px #0c1528;letter-spacing:-.4px}
.ruler-rows{left:3px;top:var(--rail);bottom:var(--edge);width:15px;display:grid;grid-template-rows:repeat(9,minmax(0,1fr));place-items:center}
.face-ruler span.active{color:var(--lime);text-shadow:0 0 7px var(--lime);font-weight:900}
@media(min-width:1051px){.stage{min-height:clamp(620px,57.6vw,720px)}.cube{--size:min(36vw,450px)}.cube-wrap{transform:translateY(-55px)}}
@media(min-width:721px) and (max-width:1050px){.stage{min-height:clamp(455px,60vw,610px)}.cube{--size:min(37vw,390px)}.cube-wrap{transform:translate(3px,-20px)}}
@media(max-width:720px){.workspace{padding-inline:8px}.stage{min-height:clamp(520px,100vw,650px)}.cube{--size:min(64vw,410px)}.cube-wrap{transform:translate(clamp(6px,1.7vw,11px),clamp(-42px,calc(27px - 10.5vw),-10px))}.face{--rail:17px;--edge:4px;gap:1px}.face-ruler{font-size:7px}.ruler-rows{left:2px;width:13px}.face-guides .guide-v{width:2px}.face-guides .guide-h{height:2px}}
@media(max-width:500px){.stage{min-height:clamp(390px,103vw,520px)}.cube{--size:min(64vw,330px)}.face{--rail:15px;--edge:3px;gap:1px}.face-ruler{font-size:7px}.ruler-rows{width:11px}}

/* Play-focused controls and unobstructed equal-size tiles. */
.face{--rail:4px;--edge:4px;padding:var(--rail);gap:2px}
[hidden]{display:none!important}
.face[hidden],#map-panel[hidden],.coach[hidden]{display:none!important}
.face-guides{inset:var(--rail)}
.face-ruler{display:none!important}
.stage-bottom{min-height:74px;height:auto}
.entry-alert{display:block;flex:1;min-width:0;color:var(--mistake-ink);font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stage-bottom .stage-actions{margin-left:auto}
.stage-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}
.stage-actions button{min-height:34px}
#timer{min-width:53px;font:800 18px 'Barlow Condensed';letter-spacing:1px;color:#c9ff8b;text-align:right}
.format-choices,.difficulty-choices{display:grid;gap:7px;margin:14px 0}
.format-choices{grid-template-columns:repeat(2,1fr)}
.format-choices button,.difficulty-choices button{border:1px solid #84a5bd65;border-radius:8px;background:#111d2f;color:#eaf3ff;min-height:47px;padding:7px;font-weight:800;text-align:left}
.format-choices button strong,.format-choices button small{display:block}
.format-choices button strong{font:800 20px/1 'Barlow Condensed'}
.format-choices button small{margin-top:5px;color:#9eb8c9;font-size:9px}
.format-choices button.active,.difficulty-choices button.active{border-color:var(--lime);background:linear-gradient(145deg,#37552b,#1b352d);box-shadow:0 0 16px #cbff4e37;color:var(--lime)}
.difficulty-choices{grid-template-columns:repeat(4,1fr)}
.difficulty-choices button{min-height:37px;text-align:center;font:800 15px 'Barlow Condensed';padding:5px 2px}
.minor-label{font-size:9px;letter-spacing:1.7px;color:var(--cyan);font-weight:800;margin:17px 0 5px}
.mode-choices{margin-top:6px}
.panel-mode p{min-height:0;margin-top:10px}
.play-tools,.option-controls{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-top:12px}
.play-tools button,.option-controls button{min-height:36px;padding:6px 7px;border:1px solid #8faed855;border-radius:7px;background:#17273e;color:#e0edff;font-size:11px;font-weight:700}
.play-tools button:hover,.option-controls button:hover{border-color:var(--lime);color:var(--lime)}
.play-tools button:disabled{opacity:.35;cursor:not-allowed}
.option-controls{margin-top:0}
.option-controls button[aria-pressed=true]{border-color:#cbff4e75;background:#1b3028;color:#d8ffad}
.entry-pad button.done{opacity:.64;filter:grayscale(1);background:#252b38;color:#78818f;border-color:#434c59;box-shadow:none;text-decoration:line-through}
.cell-picker .entry-pad button.current:not(.done){border-color:var(--lime);box-shadow:0 0 10px #cbff4e77;color:var(--lime)}
.note-grid{display:grid!important;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);width:100%;height:100%;opacity:1!important;text-align:center;align-items:center;font-size:clamp(6px,.8vw,10px);line-height:1;color:#a5f5ff}
.note-grid i{font-style:normal;min-width:0;min-height:0;opacity:.9}
.face .voxel.user-value .note-grid{display:none!important}
.face .voxel.has-notes .note-grid{color:var(--ink-note,#b8efff);text-shadow:0 0 4px var(--ink-note-glow,#84e4ff80)}
/* Pencil notes use the selected key's dark digit ink on its bright lime
   surface. Plain and related keys keep their own theme's note colours. */
.face .voxel.selected.has-notes .note-grid{color:inherit;text-shadow:none}
.face .voxel.selected.has-notes .note-grid i{opacity:1}
.flat-view .cube-wrap{transform:none!important;perspective:none}
.flat-view .cube{--size:min(54vw,560px);width:var(--size);height:var(--size);transform:none!important;transition:none}
.flat-view .cube .face{transform:none!important;backface-visibility:visible;pointer-events:auto;opacity:1}
.flat-view .cube .face:not(.face-active){display:none!important}
.flat-view .face .voxel{font-size:calc(clamp(18px,2vw,26px)*var(--digit-scale))}
.flat-view .face .note-grid{font-size:clamp(8px,.9vw,12px)}
.flat-view .stage{min-height:clamp(570px,56vw,660px);cursor:default}
.flat-view .stage-halo,.flat-view .orientation{opacity:.4}
.flat-view .cell-picker{left:50%!important;top:auto!important;bottom:12px;transform:translateX(-50%);width:min(510px,calc(100vw - 20px));padding:9px 12px}
.flat-view .cell-picker .entry-pad{grid-template-columns:repeat(9,1fr);gap:4px;margin-top:7px}
.flat-view .cell-picker .entry-pad button{height:38px;font-size:19px}
.flat-view .cell-picker .picker-mode-row{margin-top:5px}
.flat-view .cell-picker .picker-mode-row button{height:26px}
.flat-view .cell-picker .picker-foot{margin-top:6px}
.flat-view .cell-picker .picker-foot span{display:none}
.cell-picker.contextual,.flat-view .cell-picker.contextual{left:var(--picker-left)!important;top:var(--picker-top)!important;bottom:auto!important;transform:none!important;width:204px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;padding:10px 11px;border-color:#d8ff84;box-shadow:0 15px 50px #000e,0 0 25px #81ecff77,inset 0 1px #ffffff65}
.cell-picker.contextual .entry-pad,.flat-view .cell-picker.contextual .entry-pad{grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}
.cell-picker.contextual .entry-pad button,.flat-view .cell-picker.contextual .entry-pad button{height:45px;font-size:23px}
.cell-picker.contextual .picker-mode-row button{height:28px}
.cell-picker.contextual .picker-foot{margin-top:8px}
.cell-picker.highlight-picker .picker-mode-row,.cell-picker.highlight-picker .picker-foot{display:none}
.coach{margin:11px 0 2px;padding:8px 10px;border-left:2px solid var(--lime);background:#cbff4e0d;border-radius:0 6px 6px 0;color:#dcffc8;font-size:10px;line-height:1.4}
.pause-summary{margin-top:18px!important;padding:10px;border:1px solid #8edafa52;border-radius:8px;color:var(--cyan)!important;font-weight:800;text-align:center}
#hint-overlay .reward-card{border-color:var(--cyan);background:linear-gradient(145deg,#183247,#14182a 75%)}
#hint-overlay .reward-actions{flex-wrap:wrap}
#hint-overlay .reward-actions button{min-width:110px}
#hint-apply[hidden],#hint-next[hidden]{display:none}
body:has(#pause-overlay:not([hidden])) .cube{filter:blur(5px) brightness(.45)}
.stage[data-effects="off"] .stage-electricity{display:none}
@media(max-width:720px){
  .stage-actions{gap:5px}.stage-actions button{font-size:9px;padding:6px 8px}
  .flat-view .stage{min-height:clamp(470px,103vw,610px)}
  .flat-view .cube{--size:min(88vw,510px)}
  .flat-view .face .voxel{font-size:calc(clamp(17px,4.6vw,25px)*var(--digit-scale))}
  .flat-view .face .note-grid{font-size:clamp(7px,2vw,11px)}
}
@media(max-width:500px){
  .face{--rail:3px;--edge:3px;gap:1px}
  .stage-bottom{display:block;padding:9px 12px}
  
  
  .stage-actions{margin-top:7px;justify-content:space-between}
  .stage-actions button{min-height:30px}
  .flat-view .stage{min-height:clamp(410px,104vw,510px)}
  .flat-view .cube{--size:min(90vw,420px)}
  .flat-view .cell-picker{bottom:6px}
  .flat-view .cell-picker .entry-pad button{height:33px;font-size:16px}
  .difficulty-choices button{font-size:13px}
}
@media(max-height:760px) and (min-width:501px){
  .flat-view:has(.cell-picker:not([hidden])) .stage{min-height:420px}
  .flat-view:has(.cell-picker:not([hidden])) .cube{--size:min(62vh,450px)}
  .flat-view:has(.cell-picker:not([hidden])) .cube-wrap{transform:translateY(-56px)!important}
}
@media(prefers-reduced-motion:reduce){.face .voxel.same-number,.face .voxel.selected{animation:none!important}}
#mode-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.reward-trace[hidden],.reward-clue[hidden],.reward-list[hidden]{display:none}
.reward-card{max-height:calc(100dvh - 40px);overflow-y:auto}
.reward-list{display:grid;gap:8px;margin-top:18px}
.earned-clue-card{display:flex;align-items:center;gap:14px;width:100%;padding:10px 13px;border:1px solid #cbff4e70;border-radius:10px;background:#cbff4e0d;text-align:left;transition:background .15s,border-color .15s}
.earned-clue-card:hover,.earned-clue-card:focus-visible{background:#cbff4e20;border-color:var(--lime);outline:2px solid var(--lime);outline-offset:2px}
.earned-clue-card b{display:grid;place-items:center;flex:none;width:43px;height:43px;border:1px solid #ecffb5;border-radius:7px;background:var(--lime);box-shadow:0 0 14px #cbff4e55;color:#13220e;font:900 32px 'Barlow Condensed'}
.earned-clue-card span strong,.earned-clue-card span small,.earned-clue-card span em{display:block}
.earned-clue-card span strong{font:800 18px 'Barlow Condensed';letter-spacing:.5px}
.earned-clue-card span small{margin-top:2px;color:#c5d8d8;font-size:9px;letter-spacing:.4px}
.earned-clue-card span em{margin-top:4px;color:var(--lime);font-size:10px;font-style:normal}
.latest-reward button{display:block;width:100%;margin-top:8px;padding:8px 0;border:0;border-top:1px solid #cbff4e30;background:transparent;text-align:left}
.latest-reward button small{display:block;margin-top:3px;color:#c5d8d8;font-size:9px}
.latest-reward button:focus-visible{outline:2px solid var(--lime);outline-offset:3px}

/* Rotation controls stay outside the playable surface. */
.orbit-controls{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:12;display:flex;align-items:center;gap:6px;padding:5px;border:1px solid #81ecff44;border-radius:14px;background:#0c1429ed;box-shadow:0 8px 24px #0007;touch-action:manipulation}
.orbit-controls button{width:44px;height:44px;border:1px solid #81ecff44;border-radius:9px;background:#1a2a41;color:var(--cyan);font-size:23px;touch-action:manipulation}
.orbit-controls button:active{background:#426054;color:var(--lime)}
.orbit-controls button:disabled{opacity:.35}
.orbit-controls span{width:85px;text-align:center;font-size:10px;color:#d5e7f4}
.stage-side-label{bottom:79px}
#view-toggle{border-color:#cbff4e85;color:var(--lime);font-weight:700;min-height:44px}
.stage-actions button{min-height:44px}
button{touch-action:manipulation}
.native-app .back-link,.native-app .top-tag,.native-app .bottom-bar{display:none}
.native-app .topbar{height:52px;padding-inline:16px}
.native-app .brand{font-size:25px}
.native-app .brand-symbol{height:32px;width:28px;font-size:34px}
.native-app .workspace{padding-top:10px}
@media(max-width:720px){
 .stage-top{height:81px;padding:15px 17px 9px}.stage-top h1{font-size:47px}.stage-top h1 span{font-size:35px}.stage-index strong{font-size:22px}
 .stage-tools{top:9px;right:12px;font-size:8px;letter-spacing:.8px}.stage-side-label{font-size:7px;letter-spacing:.5px;bottom:76px}
 .stage-side-label--left{left:14px}.stage-side-label--right{right:14px}
 .orbit-controls{bottom:8px}.orbit-controls span{width:72px;font-size:9px}
 .stage-actions button{font-size:10px;padding:7px 10px;min-height:44px}
 .flat-view .stage{min-height:calc(min(90vw,510px) + 28px)}
 .controls{gap:10px}.panel-entry{order:-1}.panel-entry h2{margin:8px 0;font-size:27px}.panel-entry{padding:15px}
 .panel-entry .entry-pad{grid-template-columns:repeat(9,minmax(0,1fr));gap:4px}.panel-entry .entry-pad button{height:44px;font-size:21px}
 .cell-picker.contextual .entry-pad button{height:48px}
 .play-tools button,.option-controls button{min-height:44px}
}
@media(max-width:380px){.orbit-controls{gap:4px}.orbit-controls span{width:62px}.orbit-controls button{width:42px}.stage-actions button{padding-inline:7px}.panel-entry .entry-pad{gap:2px}}

.flat-view .stage-side-label{display:none}

/* Touch holds are game gestures, with no system callout or text-selection chrome. */
#cube,#cube *,.cell-picker,.cell-picker *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
.cube{transform:scale(var(--fit,1)) rotateX(var(--rx)) rotateY(var(--ry))}
.voxel.is-holding:before{content:'';position:absolute;inset:2px;border:2px solid transparent;border-top-color:var(--lime);border-right-color:var(--lime);border-radius:50%;pointer-events:none;animation:holdCharge .34s linear both;z-index:10}
@keyframes holdCharge{from{transform:rotate(-90deg);opacity:.25}to{transform:rotate(270deg);opacity:1}}
.cell-picker.contextual{width:226px;animation:pickerBloom .17s cubic-bezier(.16,1,.3,1) both;transform-origin:var(--picker-origin-x,50%) var(--picker-origin-y,50%)}
@keyframes pickerBloom{from{opacity:0;scale:.87;translate:0 5px}to{opacity:1;scale:1;translate:0 0}}
.cell-picker.contextual .entry-pad button{height:56px;font-size:27px;border-radius:10px}
.cell-picker.contextual .picker-mode-row button{height:38px}
.picker-head button{min-width:36px;min-height:36px;padding:4px}
.cell-picker .entry-pad button.slide-choice{background:var(--lime);color:#14220a;border-color:#efffbe;box-shadow:0 0 18px #cbff4e80;scale:1.06}
.cell-picker.contextual .picker-foot span{display:none}
.look-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}
.look-choices button{min-height:44px;border:1px solid #8ab9da50;border-radius:9px;background:#15243a;color:#c8d8ed;font:700 13px 'Barlow Condensed'}
.look-choices button[aria-pressed=true]{border-color:var(--cyan);background:#223c50;color:#d3ffff;box-shadow:0 0 15px #81ecff22}
.look-choices button[data-look=plasma][aria-pressed=true]{border-color:#ff95e9;color:#ffbded;background:#38253e}
.look-choices button[data-look=storm][aria-pressed=true]{border-color:#fff4b6;color:#fff4b6;background:#2e3547}
.compare-looks{display:block;margin-top:9px;font-size:11px;color:var(--cyan);padding-block:6px}
.electric-options{padding:12px;border:1px solid #81ecff30;border-radius:12px;background:#152030}
.stage[data-look=plasma] .voxel.same-number{border-color:#eeaaff;box-shadow:inset 0 0 12px #c73acc30}
.stage[data-look=storm] .voxel.same-number{border-color:#b0d2ff;box-shadow:inset 0 0 12px #387bcd30}
@media(max-width:720px){
 .workspace{padding-inline:3px;gap:10px}.stage-shell{border-radius:14px}
 .stage{min-height:calc(100vw + 125px)}
 .cube{--size:68vw}.cube-wrap{transform:translate(var(--fit-shift-x,0px),var(--fit-shift-y,0px))}
 .stage:after{background:none}.orientation,.stage-side-label{display:none}
 .flat-view .cube{--size:calc(100vw - 18px)}
 .flat-view .stage{min-height:calc(100vw + 6px)}
 .flat-view .cube-wrap{transform:none!important}
 .flat-view .face .voxel{font-size:calc(clamp(18px,4.9vw,29px)*var(--digit-scale))}
 .flat-view .face .note-grid{font-size:clamp(8px,2.1vw,12px)}
 .stage-tools{top:6px;font-size:7px;opacity:.7}
 .cell-picker.contextual .entry-pad button{height:56px}
 .stage-bottom{padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){.voxel.is-holding:before,.cell-picker.contextual{animation:none}.cell-picker .entry-pad button{transition:none}}

@media(max-width:720px){.stage{min-height:var(--orbit-height,calc(100vw + 125px))}.flat-view .cube{--size:calc(100vw - 12px)}.flat-view .face{--rail:2px;border-width:3px}.flat-view .stage-tools{display:none}}

.brand-symbol{background:none;clip-path:none;width:31px;height:40px;overflow:visible}
.electric-s{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 4px #afff7670)}
.s-shell{fill:#172b21;stroke:#b6ff67;stroke-width:1.8;stroke-linejoin:round}
.s-current{fill:none;stroke:#deffb8;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:15 4 1 3;animation:sFlow 3s linear infinite}
.s-flare{fill:none;stroke:#8cffff;stroke-width:1.6;stroke-linejoin:miter;filter:drop-shadow(0 0 2px #81ecff)}
.stage-index{display:flex;align-items:center;gap:12px}.stage-index .electric-s{width:29px;height:37px}
@keyframes sFlow{to{stroke-dashoffset:-46}}
.native-app .brand-symbol{width:28px;height:35px;background:none}
@media(prefers-reduced-motion:reduce){.s-current{animation:none}}

/* Canvas provides moving electricity; static cell styling avoids duplicate filter repaints. */
.face .voxel.same-number,.face .voxel.selected{animation:none}
.stage[data-energy-level="economy"] .voxel,.stage[data-energy-level="rest"] .voxel{animation:none!important;filter:none!important}
html[data-energy-level="economy"] .s-current,html[data-energy-level="rest"] .s-current,.game-background *,.game-background *:before,.game-background *:after{animation:none!important}
.stage-electricity{transition:opacity .45s ease-out}html[data-energy-level="rest"] .stage-electricity{opacity:0}
.stage[data-effects="off"] .voxel,.game-paused .voxel,.game-paused .s-current{animation:none!important}

/* Storm intensity sits under the electric look picker, same controls. */
.electric-options .storm-label{display:block;margin:12px 0 0}

/* B3: the start menu and the in-game menu reuse the overlay, card, choice and
   settings styles; the in-game screen keeps only the board and play controls. */
.menu-card{width:min(520px,100%)}
.game-menu .reward-actions{margin-top:16px}
.menu-continue button{display:block;width:100%;margin-top:16px;padding:12px 14px;border:1px solid #cbff4e80;border-radius:10px;background:#cbff4e12;text-align:left}
.menu-continue button strong{display:block;font:800 21px/1 'Barlow Condensed';color:var(--lime)}
.menu-continue button small{display:block;margin-top:5px;font-size:10px;letter-spacing:.6px;color:#c5d8d8}
.menu-continue button:hover,.menu-continue button:focus-visible{background:#cbff4e20;border-color:var(--lime)}
.game-menu .minor-label{display:block}
.game-menu #mode-description{margin-top:4px;font-size:12px;line-height:1.5;color:#b1bad0}
.game-menu .menu-note{margin-top:12px;font-size:11px;color:#8790aa}
.game-menu .view-controls{margin-top:12px}
.game-menu .panel-map,.game-menu .electric-options,.game-menu .option-controls,.game-menu .concept-note{margin-top:12px}
.game-menu .panel-map h2{font-size:26px;margin:10px 0 6px}
@media(max-width:500px){.game-menu{padding:10px}.menu-card{padding:18px}.menu-card h2{font-size:34px}}

/* B4: the "3D | Face" view toggle, always visible beside the board. */
.view-switch{display:inline-flex;flex:none;gap:3px;padding:3px;border:1px solid #cbff4e85;border-radius:11px;background:#0c1429ed;box-shadow:0 0 18px #cbff4e24,inset 0 1px #ffffff14}
.view-switch button{min-width:66px;min-height:44px;padding:0 16px;border:0;border-radius:8px;background:transparent;color:#bcefff;font:800 19px/1 'Barlow Condensed';letter-spacing:.8px}
.view-switch button:hover{color:var(--lime)}
.view-switch button[aria-pressed=true]{background:var(--lime);color:#14200d;box-shadow:0 0 14px #cbff4e70,inset 0 1px #ffffffaa}
.stage-bottom{gap:16px}

.cube.no-turn{transition:none!important}
.stage.is-turning .cube{transition:transform .19s cubic-bezier(.25,.7,.35,1)}
@media(max-width:500px){.stage-bottom .view-switch{display:flex;width:100%;margin-bottom:9px}.view-switch button{flex:1;min-height:46px;font-size:21px}}

/* D4: the stage height, the cube's fit and its shift come from layoutStage()
   (app.js) at every size, in every pose. */
.size-probe{position:fixed;left:-10000px;top:0;visibility:hidden;pointer-events:none}
.size-probe .cube{transition:none}
body:not(.flat-view) .cube-wrap{transform:translate(var(--fit-shift-x,0px),var(--fit-shift-y,0px))}

/* Keycap bevels as background bands instead of two inset box-shadows per
   tile: the same 1 px top highlight and 3 px bottom shade (they differ only
   in the 2 px corner curves), but WebKit repaints 486 tiles far faster when
   the cube stands back up from the flat face (measured: flat -> 3D frame
   gaps of 57-94 ms at 1500x950 @2x before, see scripts/frame-probe.mjs).
   Earned clues keep their own glow without the bands, as before. */
/* James: every key needs a clear bottom, as on the highlighted row.
   A 1 px lit lower lip sits below the 2 px depth shade, painted in the
   existing background layer: no extra tile shadows or compositing layers. */
.face .voxel{--key:linear-gradient(145deg,#254574,#142447);--band-hi:#b7efff51;--band-lo:#050b1b75;--lit-side:#b7efff8f;--lit-top:#c3f3ffbf;--rim:var(--lit-side);--rim-top:var(--lit-top);--rim-w:1px;--rim-tw:1.5px;background:linear-gradient(var(--rim-top) 0 var(--rim-tw),#0000 var(--rim-tw) calc(100% - 3px),var(--band-lo) calc(100% - 3px) calc(100% - 1px),var(--lit-side) calc(100% - 1px)),linear-gradient(90deg,var(--rim) 0 var(--rim-w),#0000 var(--rim-w) calc(100% - var(--rim-w)),var(--rim) calc(100% - var(--rim-w))),var(--key);box-shadow:none}
.face-right .voxel,.face-left .voxel{--key:linear-gradient(145deg,#4d3a78,#2c234e);--band-hi:#e0c5ff5c;--band-lo:#0b0719a1;--lit-side:#e0c5ff9c;--lit-top:#e8d6ffcc}
.face-top .voxel,.face-bottom .voxel{--key:linear-gradient(145deg,#a0226f,#560f3b);--band-hi:#ffc4ea5c;--band-lo:#1c0512a1;--lit-side:#ffc4eabf;--lit-top:#ffd8f0cc}
.face .voxel.earned{background:var(--key)}

/* D3: matched keys stay bright blue keys with glowing white digits, a shade
   deeper and with a softer inner glow, so every matched digit measures at
   least 4.5:1 from pixels (scripts/ui-check.mjs --only d3). */
.face .voxel.same-number{background:linear-gradient(145deg,#2770a9,#15395f);box-shadow:inset 0 0 6px #d2faff47,0 0 12px #65d9ffbb}
/* Desktop (rule 0 finding): the cube uses the whole stage, as on 4477. The 3D | Face toggle sits in the stage's bottom-left corner (always on screen, B4) and the orbit controls in its bottom-right corner; the timer/menu row follows the stage */
@media(min-width:1051px){.stage-shell .stage-bottom{position:relative}.stage-bottom #view-toggle{position:absolute;left:24px;bottom:calc(100% + 14px);z-index:13}.orbit-controls{left:auto;right:24px;transform:none}}

/* A7/A8: answer mistakes, the one wrong-entry flash, the breaker and results */
:root{--mistake:#ff5c7a;--mistake-glow:#ff2e5a66;--mistake-tile:#3a1024d9;--mistake-key:linear-gradient(145deg,#541330,#300a1a);--mistake-ink:#ffb3c1;--mistake-ink-lit:#8c0626;--mistake-halo:#ff2e5a88}
/* D3: a mistake's digit stays >= 4.5:1 in every tile state. On a dark key
   (any face, a matched key, a row/column key) the key itself turns crimson
   and the digit is a light red; on the selected lime key, where every
   mistake first appears, the digit is a deep crimson inside a red ring:
   never bright red on lime (that measured 2.3:1). */
.voxel.mistake{border-color:var(--mistake)!important;box-shadow:inset 0 0 0 1px var(--mistake),inset 0 0 10px var(--mistake-glow)}
.face .voxel.mistake:not(.selected){background:var(--mistake-key);box-shadow:inset 0 0 0 1px var(--mistake),inset 0 0 10px var(--mistake-glow)}
.voxel.mistake>span{color:var(--mistake-ink)!important;text-shadow:0 0 6px var(--mistake-glow)!important}
.voxel.selected.mistake{box-shadow:inset 0 0 0 2px var(--mistake),0 0 14px var(--mistake-halo)}
.voxel.selected.mistake>span{color:var(--mistake-ink-lit)!important;text-shadow:none!important}
.voxel.wrong-flash{animation:wrongFlash .72s ease-out}
.voxel.conflict-flash{animation:conflictFlash .9s ease-out}
@keyframes wrongFlash{0%,30%{background:var(--mistake-tile);box-shadow:inset 0 0 0 2px var(--mistake),0 0 14px var(--mistake-glow)}100%{}}
@keyframes conflictFlash{0%,45%{box-shadow:inset 0 0 0 2px var(--mistake),0 0 12px var(--mistake-glow)}100%{}}
.breaker{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 8px;border:1px solid #ffffff24;border-radius:6px;font:700 11px/1 'Barlow Condensed',sans-serif;letter-spacing:1px;color:#c9ff8b}
.breaker[hidden]{display:none}
.breaker .pips{display:inline-flex;gap:3px}
.breaker .pips i{width:7px;height:12px;border-radius:2px;background:#c9ff8b;box-shadow:0 0 6px #c9ff8b88}
.breaker .pips i.tripped{background:#3a2130;box-shadow:inset 0 0 0 1px var(--mistake)}
.breaker .pips i.spark{animation:breakerSpark .6s ease-out}
.breaker.dark{color:var(--muted)}
.breaker.dark .pips i{box-shadow:inset 0 0 0 1px var(--mistake)}
.breaker[data-rule="practice"]{color:var(--cyan)}
.breaker.overloaded{color:var(--mistake);border-color:var(--mistake)}
.breaker.overloaded{padding:0}
.breaker button{min-height:28px!important;padding:4px 10px!important;font-size:10px!important;color:var(--mistake);border:0;background:transparent}
@keyframes breakerSpark{0%{background:#fff;box-shadow:0 0 12px #fff,0 0 18px var(--mistake)}100%{}}
.result-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin:10px 0 4px}
.result-stats[hidden]{display:none}
.result-stats span{display:flex;flex-direction:column;align-items:center;gap:3px}
.result-stats b{font:800 20px/1 'Barlow Condensed',sans-serif;color:var(--white)}
.result-stats small{font:700 9px/1 'Space Grotesk',sans-serif;letter-spacing:1.4px;color:var(--muted)}
.result-stats p{flex-basis:100%;margin:4px 0 0;text-align:center;font-size:12px;color:var(--lime)}
.strike-options{margin-top:12px}
.strike-note{margin:6px 0 0;font-size:11px;line-height:1.35;color:var(--muted)}
@media (prefers-reduced-motion:reduce){.voxel.wrong-flash,.voxel.conflict-flash,.breaker .pips i.spark{animation:none}}

/* D9 (James, 2026-09-30: "on the light yellow surface it is very very
   difficult to tell where the 3x3 breaks are"): the grid reads on every face,
   flat and 3D, measured from pixels (scripts/ui-check.mjs --only d9).
   - 3x3 box dividers are opaque. On the dark faces they stay the glowing
     cyan lines; on the light Top face they are deep indigo (a light line on a
     light key measured 1.2-1.9:1, and in 3D a box break read weaker than an
     ordinary cell gap), 3 px at every size.
   - Cell separation on the dark faces, FLAT view: the keycap's lit top edge
     also runs down both sides (a 1 px bevel inside its dark edge), so every
     gutter is flanked by a lit edge >= 3:1 against the key (a dark gutter
     between dark keys cannot reach 3:1: it measured 1.3-2.4:1). The edge
     colours are --lit-side/--lit-top with the keycap bands above.
   - The dark faces in 3D: JAMES'S CHOICE, PENDING (Rule 0 vs D9, G3). The
     lit edges that hold 3:1 on a 27 px phone key in 3D must be 6%/7% of the
     key (1.6 px), about 2.4x the flat face's proportion, and they outline
     every navy, violet and teal key like a wireframe; at the flat proportion
     they measure 2.4-2.9:1. James only asked about the Top face, so until he
     picks, 3D keeps the phone build's (2e0980a) dark keycap materials and
     top highlight, with James's added 1 px lower lip under the depth shade.
     The dark faces still have no extra side edges. Their 3D cell gaps stay as on the
     phone, 1.25-1.85:1 at the worst gap, 1.6-2.2:1 median (disclosed, not
     asserted); their box breaks are >= 3.98:1.
     The 6%/7% edges are on in 3D under the system's Increase Contrast
     (prefers-contrast: more), and are one line away as the default.
     Choice sheet: ~/.playwright-mcp/r5/fix-ui/. The Top face keeps its D9
     edges in 3D. */
body:not(.flat-view) .face .voxel{--rim-w:0px;--rim-tw:1px;--rim:#0000;--rim-top:var(--band-hi)}
.face-top .voxel,body:not(.flat-view) .face-top .voxel,.face-bottom .voxel,body:not(.flat-view) .face-bottom .voxel{--rim-w:1px;--rim-tw:1px;--rim:var(--lit-side);--rim-top:var(--lit-top)}
/* 3D only (James 2026-10-01, "fix it"): 2 px Top/Bottom key edges, so the magenta cell gaps clear 3:1 in the steep -50 deg view (1 px measured 2.84:1). Flat view keeps 1 px. Themes set the hook --pair-rim-3d (they measured fine at 1 px; 2 px made their gaps outshine their box lines). */
body:not(.flat-view) .face-top .voxel,body:not(.flat-view) .face-bottom .voxel{--rim-w:var(--pair-rim-3d,2px);--rim-tw:var(--pair-rim-3d,2px)}
@media (prefers-contrast:more){body:not(.flat-view) .face .voxel{--rim-w:6%;--rim-tw:7%;--rim:var(--lit-side);--rim-top:var(--lit-top)}}
.face-guides i{background:var(--guide,#8fe8ff)}


/* (On Top an ordinary cell gap is a softer dark green, so the indigo box breaks read clearly stronger.) */

/* D9: every digit on the light Top face reads >= 4.5:1. Its given digits
   were dark, but entries were lime (like the dark faces'), earned clues lime
   and pencil notes pale cyan, all on the light keys (about 1.2-1.6:1); and a
   highlighted row/column key turns dark while its digit stayed dark. Now,
   on a Top key: givens deep green-black, entries deep indigo, notes dark
   green, an earned clue a dark digit on a brighter lime key (its glow kept);
   on a highlighted (dark) key the dark faces' colours apply. */


/* In 3D the game opens with Top seen steeply (-23 deg): its far-row glyphs
   are a few device px tall and anti-aliasing thinned the ink to 4.0-4.3:1.
   A slightly heavier glyph there (a stroke of the digit's own colour, 3D
   only; the flat face is untouched) and the entries' indigo a shade deeper
   keep every Top digit >= 4.5:1 in the default pose. */









/* The native app never links to the old 2D page (its unlimited mistake
   feedback would bypass A8): the link is removed there (app.js), and hidden
   from the first paint by the native flag set in index.html. */
html.native .back-link,.native-app .back-link{display:none!important}
/* Cube colours (James, 2026-09-30: "2 blue, 2 purple, and then 2 A3 or 2 blue
   2 purple and 2 C1" ... "those both look great, both are easy to read").
   Opposite faces share a colour, so every view shows one of each: front+back
   navy, right+left violet, top+bottom Magenta with white 3x3 lines. (Emerald
   is retired: D11's theme picker replaced the Cube colours row.) */
.face-top .face-guides i,.face-bottom .face-guides i{background:var(--guide,#ffffff);box-shadow:0 0 6px var(--guide-glow,#ffd8f09c)}
/* A9: the start menu shows the chosen game's best time (the timed race), in
   the menu's own type and colours; "No best time yet" in the quiet note grey. */
.game-menu .menu-best{margin-top:8px;font:800 16px/1 'Barlow Condensed';letter-spacing:.6px;color:var(--lime)}
.game-menu .menu-best.empty{color:#8790aa}
/* A9: the message a NEW Impossible game opens with: the overlay card, smaller,
   with one button. */
.intro-card{width:min(360px,100%);text-align:center}
.intro-card h2{font-size:34px}
.intro-card .reward-actions{justify-content:center}
.intro-card .reward-actions button{flex:0 1 220px}
/* D11 themes (James, 2026-09-30: "we don't need two color choices, we need a
   theme picker"). Supercharged, the default, is the look above exactly: it
   sets no --ink-*, --guide*, --gap or --face-* variable, so every var() here
   falls back to the phone build's value. A theme (themes/<id>.css, see
   themes/CONTRACT.md) sets those variables and the keys' --key, --band-hi, --band-lo,
   --lit-side and --lit-top in zero-weight :where(body[data-theme="<id>"]) rules.
   Highlighted keys (selected, matched, row/column, mistake) keep the game's
   standard inks in every theme: the --ink-* variables reset there, so a
   theme's plain-key ink never lands on a highlight it was not chosen for. */
.face .voxel.selected,.face .voxel.same-number,.face .voxel.row-related,.face .voxel.col-related,.face .voxel.mistake{--ink-given:initial;--ink-given-glow:initial;--ink-entry:initial;--ink-entry-glow:initial;--ink-note:initial;--ink-note-glow:initial;--ink-note-stroke:initial;--ink-earned:initial;--ink-earned-glow:initial}
/* A theme's light keys: seen steeply in 3D, their tiny pencil notes thin out
   under anti-aliasing (2.5-3.3:1 measured on Frosty's ice and snow and
   Fireplace's gold). A theme sets --ink-note-stroke there (at most 0.6 px):
   a stroke of the note's own colour, 3D only, as the old light Top face's
   digits had; the flat face is untouched, and Supercharged sets none, so its
   notes have no stroke. */
body:not(.flat-view) .face .voxel.has-notes .note-grid{-webkit-text-stroke:var(--ink-note-stroke,0px) currentColor}
/* The start menu's THEME row: six tiles (both games), each its three pairs
   over its backdrop tone (app.js sets the colours from the theme's preview).
   It sits under Play, so Play stays on the first screen of a small phone
   (375 x 667, 320 x 568) exactly where it was before the row existed. */
.theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0 4px}
.theme-choices button{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-height:44px;padding:6px;border:1px solid #84a5bd65;border-radius:8px;background:#111d2f;color:#eaf3ff;text-align:left}
.theme-choices button strong{display:block;font:800 14px/1.05 'Barlow Condensed';letter-spacing:.2px}
/* Every name reads in full: a step smaller on narrow phones (360 px:
   "Jack-o'-Lantern" fits), and a long name wraps at its hyphen there (320 px)
   rather than being cut. */
@media(max-width:380px){.theme-choices button strong{font-size:13px;letter-spacing:0}}
@media(max-width:340px){.theme-choices button strong{font-size:12.5px}}
.theme-choices button.active{border-color:var(--lime);background:linear-gradient(145deg,#37552b,#1b352d);box-shadow:0 0 16px #cbff4e37;color:var(--lime)}
.theme-swatch{display:flex;gap:3px;padding:5px;border-radius:5px;background:var(--theme-backdrop,#090b17);box-shadow:inset 0 0 0 1px #ffffff1c}
.theme-swatch i{display:block;flex:1;height:12px;border-radius:3px;box-shadow:inset 0 1px #ffffff40}
.theme-swatch i:nth-child(1){background:var(--theme-pair-1,linear-gradient(145deg,#254574,#142447))}
.theme-swatch i:nth-child(2){background:var(--theme-pair-2,linear-gradient(145deg,#4d3a78,#2c234e))}
.theme-swatch i:nth-child(3){background:var(--theme-pair-3,linear-gradient(145deg,#a0226f,#560f3b))}
/* The theme's ambient decoration (ambient.js). Inside .stage (its own
   stacking context): the back layer over .stage:before (z -2) and under the
   cube (z 3); the thin front layer over the cube, under the edge vignette
   (z 7) and the stage controls (z 8+). Never hit-testable, never read aloud. */
.stage-ambient{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.stage-ambient-back,.stage-ambient-front{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.stage-ambient-front{z-index:4}
.stage-ambient-sprites{position:absolute;inset:0;overflow:hidden}
.ambient-sprite{position:absolute;left:0;top:0;pointer-events:none;will-change:transform,opacity;background:center/contain no-repeat}
/* The sky band (ambient.js, a scene with sky): the card's header strip above
   the stage, over the card's background and under the header's title and
   mode label (z 4). A flat board covers the whole stage, so on a phone this
   strip is the only sky Quick Play has. Its sprites share the stage's
   coordinates: their box starts at the stage's top (set inline), and they
   sit above it, in the strip. */
.stage-ambient-sky{position:absolute;left:0;top:0;z-index:3;pointer-events:none;overflow:hidden}
.stage-ambient-sky-canvas{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.stage-ambient-sky>.stage-ambient-sprites{inset:auto;left:0;width:100%;height:0;overflow:visible}

/* James: keep every key border apart from the heavier 3x3 divider.
   Reserve a small gutter on BOTH sides; the nine row/column tracks stay fixed. */
.face .voxel[data-row="2"],.face .voxel[data-row="5"]{margin-bottom:3px}
.face .voxel[data-row="3"],.face .voxel[data-row="6"]{margin-top:3px}
.face .voxel[data-col="2"],.face .voxel[data-col="5"]{margin-right:3px}
.face .voxel[data-col="3"],.face .voxel[data-col="6"]{margin-left:3px}

/* CODEX-gpt-6.1-sol: local player and resumable-game library, menus only. */
.library-player{display:flex;align-items:center;gap:8px;margin:14px 0;font-size:12px}
.library-player select{flex:1;min-width:0}.library-player select,.player-form input{background:#111a2e;color:#eef3ff;border:1px solid #8298b7;border-radius:7px;padding:9px;font:inherit}
.library-player button,.player-form button{min-height:40px;padding:7px;border:1px solid #8298b7;border-radius:7px;background:#23304b;color:#eef3ff;font-size:11px}
.player-form{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.player-form[hidden]{display:none}.player-form label,.player-form input,.player-form [role=status]{width:100%}
#library-panel{margin:15px 0;border:1px solid #81ecff66;border-radius:10px;padding:12px}#library-panel summary{cursor:pointer;font-size:14px;color:var(--cyan);min-height:24px}
#saved-games{display:grid;gap:8px;margin-top:10px}.saved-game{text-align:left;display:grid;gap:6px;width:100%;padding:12px;border:1px solid #8298b766;border-radius:8px;background:#152039;color:#f0f3ff}
.saved-game strong{font-size:15px}.saved-game span{font-size:12px}.saved-game small{font-size:11px;line-height:1.5;color:#b8cbe3}.saved-game b{font-size:12px;color:var(--lime)}.saved-game:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}

.saved-game-row{display:flex;gap:6px;align-items:stretch}.saved-game-row .saved-game{flex:1;min-width:0}.saved-delete{align-self:center;min-height:44px;padding:8px;border:1px solid #9fb1ca;border-radius:8px;background:#23304b;color:#eef3ff;font-size:11px}
