:root{font-family:Arial,Helvetica,sans-serif;color-scheme:dark;background:#e9dfcd;color:#3c2929;--mint:#9f2d3f;--muted:#806b56;--purple:#9f2d3f}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{background:radial-gradient(ellipse at 50% 30%,#fff6e5,#e9dfcd 70%)}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:none}button:focus-visible,canvas:focus-visible{outline:3px solid var(--mint);outline-offset:-3px}button:disabled{cursor:default;opacity:.45}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}img{object-fit:contain;background:transparent;border:0;border-radius:0;padding:0;filter:none}.game-shell{display:flex;flex-direction:column;align-items:stretch;width:min(100%,760px);height:100svh;height:100dvh;margin:auto;padding:0 max(14px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}.game-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;height:79px;padding-top:env(safe-area-inset-top)}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand img{width:48px;height:56px}.studio-label{font-size:8px;letter-spacing:2px;color:var(--purple)}h1{font-size:23px;letter-spacing:-.7px;margin:5px 0 0}h1 span{color:var(--mint)}.header-actions{display:flex;align-items:center;gap:8px}.quiet-button{font-size:10px;color:#9f2d3f;padding:0 10px;min-height:44px;border:0;background:none;white-space:nowrap}.pause-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;border:1px solid #c7b394;border-radius:8px;background:#fff6e5;font-size:11px;padding:0 12px}.pause-button svg{width:16px;height:16px;stroke-width:2.5}.dashboard{display:grid;grid-template-columns:1.05fr 1fr 1fr 1.2fr;gap:10px;align-items:center;flex-shrink:0;border-top:1px solid #fff6e5;border-bottom:1px solid #fff6e5;padding:10px 2px;margin-bottom:10px}.dashboard>div>span{display:block;color:#806b56;font-size:7px;letter-spacing:1.3px;margin-bottom:5px}.dashboard strong{display:block;font-size:20px;font-variant-numeric:tabular-nums;line-height:1}.dashboard strong span{font-size:9px;color:#806b56;font-weight:400}.dashboard>div:first-child strong{color:var(--mint)}.beam-track{height:4px;background:#fff6e5;border-radius:3px;overflow:hidden;margin-top:8px}.beam-track i{display:block;width:20%;height:100%;background:#e7ae8d;transform-origin:left}.beam-indicator small{display:block;font-size:8px;color:#9f2d3f;margin-top:6px}.beam-indicator.danger small{color:#9f2d3f}.beam-indicator.danger .beam-track i{background:#ff777d}.stage{flex:1;position:relative;min-height:0;width:min(100%,560px);align-self:center;border:1px solid #c7b394;border-radius:12px;overflow:hidden;background:#e9dfcd;isolation:isolate}canvas{display:block;width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:ew-resize}.overlay,.loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:#e9dfcdd9;z-index:3;overflow:auto;overscroll-behavior:contain}.overlay[hidden],.loading[hidden],.result-grid[hidden],.secondary-button[hidden],.instructions[hidden]{display:none}.menu-panel{width:min(100%,330px);text-align:center;margin:auto}.menu-logo{display:block;width:66px;height:77px;margin:0 auto 12px}.overline{font-size:8px;letter-spacing:2.3px;color:var(--mint)}h2{font-size:57px;letter-spacing:-2.5px;line-height:.92;margin:15px 0 13px;font-weight:900}h2>span{display:block;color:var(--mint)}.menu-description{font-size:14px;color:#9f2d3f;line-height:1.6;margin:0 0 18px}.instructions{text-align:left;border-top:1px solid #3c29291c;border-bottom:1px solid #3c29291c;padding:7px 0;margin:15px 0}.instructions p{font-size:10px;color:#9f2d3f;line-height:1.65;margin:6px 0}.instructions strong{color:#3c2929;font-weight:600}.primary-button{display:flex;align-items:center;justify-content:center;gap:15px;width:100%;min-height:50px;border:0;border-radius:7px;background:var(--mint);color:#9f2d3f;font-size:13px;font-weight:700;padding:12px 18px}.primary-button:hover{background:#9f2d3f}.primary-button svg{width:18px;height:18px}.secondary-button{font-size:11px;min-height:44px;padding:12px;border:1px solid #c7b394;background:#fff6e5;border-radius:7px;width:100%;margin-top:8px}.control-note{font-size:9px;line-height:1.7;color:#9f2d3f;margin:13px 0 10px}.control-note span{font-size:8px;color:#806b56}.author{display:block;font-size:8px;color:#806b56;margin-top:13px}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 0 20px}.result-grid>div{background:#e9dfcd;border:1px solid #c7b394;padding:12px 5px;border-radius:7px}.result-grid span{display:block;font-size:7px;letter-spacing:1.2px;color:#806b56;margin-bottom:5px}.result-grid strong{font-size:21px;font-variant-numeric:tabular-nums}.result-grid>div:first-child strong{color:var(--mint)}.controls{width:min(100%,560px);align-self:center;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;padding:10px 0 7px}.direction-pad{display:flex;gap:8px}.direction-button{display:grid;place-items:center;width:64px;height:56px;border:1px solid #c7b394;background:#fff6e5;border-radius:9px;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.direction-button:active{background:#c7b394;color:var(--mint)}.direction-button svg{width:26px;height:26px}.control-caption{display:flex;flex-direction:column;gap:5px;text-align:center;font-size:8px;letter-spacing:1.2px;color:#9f2d3f}.control-caption span{font-size:9px;font-weight:400;letter-spacing:0;color:#806b56}.burst-button{height:56px;min-width:112px;border:1px solid #9f2d3f77;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:8px;background:#fff6e5;color:#3c2929;position:relative;overflow:hidden;padding:8px 15px;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.burst-button>span{position:relative;z-index:1;display:flex;flex-direction:column;gap:5px;text-align:left}.burst-button strong{font-size:10px;letter-spacing:1.1px}.burst-button small{font-size:8px;color:#9f2d3f;min-width:38px}.burst-button svg{position:relative;z-index:1;width:19px;height:19px}.burst-button i{position:absolute;inset:0;background:#9f2d3f1c;transform-origin:left}.burst-button:active{background:#c7b394}footer{display:flex;justify-content:space-between;gap:10px;flex-shrink:0;font-size:7px;color:#806b56;padding:4px 2px 6px}.loading{flex-direction:column;gap:20px;background:#e9dfcd;z-index:5}.loading img{width:128px;height:148px}.loading>span{font-size:11px;letter-spacing:.8px;color:#9f2d3f}.loading>small{position:absolute;bottom:22px;font-size:8px;color:#806b56}.tutorial-tip{position:absolute;bottom:18px;left:15px;right:15px;text-align:center;pointer-events:none;font-size:10px;color:#3c2929;background:#e9dfcdd9;border:1px solid #9f2d3f33;border-radius:6px;padding:9px}.tutorial-tip[hidden]{display:none}.floor-toast{position:absolute;top:25%;left:0;right:0;text-align:center;color:#3c2929;pointer-events:none;opacity:0;font-size:29px;letter-spacing:1.2px;font-weight:800;transition:opacity .3s}.floor-toast.visible{opacity:1}.hit-message{position:absolute;top:12px;left:14px;right:14px;text-align:center;min-height:18px;font-size:11px;color:#9f2d3f;pointer-events:none}.no-script{position:fixed;inset:25%;padding:20px;background:#e9dfcd;color:#3c2929;z-index:10;text-align:center}
@media(max-width:520px){.game-shell{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.game-header{height:65px}.brand{gap:7px}.brand img{width:38px;height:46px}.studio-label{font-size:6px;letter-spacing:1.5px}h1{font-size:20px;margin-top:4px}.header-actions{gap:1px}.pause-button{width:44px;padding:0}.pause-button>span{display:none}.quiet-button{font-size:9px;padding:0 8px}.dashboard{padding:8px 1px;margin-bottom:7px;gap:6px}.dashboard strong{font-size:19px}.dashboard>div>span{font-size:6px;letter-spacing:.8px}.dashboard strong span{font-size:8px}.stage{border-radius:9px}.controls{padding-top:8px;gap:8px}.direction-button{width:62px;height:54px}.burst-button{height:54px;min-width:105px;padding:8px 10px}.control-caption{font-size:7px;letter-spacing:.7px}.control-caption span{font-size:8px}footer>span{display:none}.menu-logo{height:60px;width:52px;margin-bottom:10px}h2{font-size:49px;margin:12px 0}.menu-description{font-size:12px;margin-bottom:12px}.instructions{margin:11px 0;padding:5px 0}.instructions p{font-size:9px;margin:5px 0}.overline{font-size:7px;letter-spacing:1.7px}.primary-button{min-height:46px}.overlay{padding:16px 22px}.control-note{font-size:8px;margin:10px 0 5px}.control-note span{display:none}.author{margin-top:8px;font-size:7px}.result-grid{gap:8px;padding:10px 0 15px}.result-grid>div{padding:10px 4px}.result-grid strong{font-size:19px}}
@media(max-height:670px) and (orientation:portrait){.game-header{height:58px}.dashboard{padding:7px 0}.menu-logo{width:42px;height:49px;margin-bottom:7px}h2{font-size:41px;margin:10px 0}.instructions p{font-size:8px;line-height:1.5;margin:4px 0}.instructions{margin:8px 0;padding:4px 0}.menu-description{font-size:11px;margin:0 0 10px}.primary-button{min-height:43px}.control-note{margin:8px 0 4px}.author{margin-top:5px}.overlay{padding-top:13px;padding-bottom:13px}.controls{padding-top:7px}.direction-button,.burst-button{height:48px}.result-grid>div{padding:8px 4px}.result-grid strong{font-size:18px}}
@media(orientation:landscape) and (max-height:540px){.game-shell{display:grid;grid-template-columns:140px 1fr;grid-template-rows:auto 1fr auto;gap:0 12px;width:100%;max-width:1000px;padding-top:6px;padding-bottom:max(6px,env(safe-area-inset-bottom))}.game-header{grid-column:1;grid-row:1;display:block;height:auto;padding:4px 0}.brand{gap:6px}.brand img{width:32px;height:40px}.studio-label{font-size:5px;letter-spacing:.7px}h1{font-size:17px}.header-actions{margin-top:4px}.pause-button{padding:0;width:40px;min-height:36px}.pause-button span{display:none}.quiet-button{font-size:9px;min-height:36px;padding:0 9px}.dashboard{grid-column:1;grid-row:2;grid-template-columns:1fr 1fr;gap:15px 5px;align-self:center;border:0;margin:0}.dashboard strong{font-size:18px}.dashboard strong span{font-size:7px}.dashboard>div>span{font-size:6px;letter-spacing:.7px}.controls{grid-column:1;grid-row:3;flex-wrap:wrap;gap:6px;padding:5px 0 0}.direction-pad{width:100%;gap:6px}.direction-button{width:calc(50% - 3px);height:42px}.burst-button{width:100%;height:40px}.control-caption,footer{display:none}.stage{grid-column:2;grid-row:1 / 4;width:100%;height:100%}.menu-panel{max-width:430px}.menu-logo{position:absolute;width:55px;height:65px;left:15px;top:15px}.overline{font-size:7px}h2{font-size:35px;margin:9px 0 7px;line-height:1}h2>span{display:inline}.menu-description{font-size:11px;line-height:1.4;margin:0 0 8px}.menu-description br{display:none}.instructions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:8px 0}.instructions p{font-size:8px;line-height:1.5;margin:3px 0}.primary-button{min-height:40px;width:min(100%,300px);margin:auto}.secondary-button{min-height:34px;font-size:10px;padding:6px;width:300px;margin:6px auto 0}.control-note{font-size:7px;margin:7px 0 0}.control-note br{display:none}.control-note span{display:none}.author{font-size:6px;margin-top:7px}.overlay{padding:13px 20px}.result-grid{grid-template-columns:repeat(4,1fr);gap:6px;padding:4px 0 10px}.result-grid>div{padding:8px 2px}.result-grid span{font-size:5px}.result-grid strong{font-size:16px}}
@media(max-height:570px) and (orientation:portrait){.menu-logo{width:34px;height:39px;margin-bottom:5px}h2{font-size:35px;margin:8px 0}.overline{font-size:6px}.instructions p:not(:first-child){display:none}.instructions{margin:7px 0}.menu-description{font-size:10px;line-height:1.4;margin-bottom:7px}.control-note{font-size:7px}.author{font-size:6px}.result-grid>div{padding:6px 3px}.result-grid span{font-size:6px}.result-grid strong{font-size:16px}.overlay{padding:10px 20px}}
.difficulty-picker{border:0;margin:10px 0 12px;padding:0;min-width:0;text-align:left}.difficulty-picker[hidden]{display:none}.difficulty-picker legend{font-size:7px;letter-spacing:1.5px;color:#9f2d3f;padding:0 0 7px}.difficulty-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.difficulty-options button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:8px 10px;border:1px solid #c7b394;border-radius:7px;background:#fff6e5;color:#9f2d3f;touch-action:manipulation}.difficulty-options strong{font-size:20px}.difficulty-options span{font-size:10px}.difficulty-options button[aria-pressed=true]{background:#9f2d3f;color:#9f2d3f;border-color:#9f2d3f}.difficulty-options button:hover{border-color:#9f2d3f}.difficulty-picker p{font-size:8px;color:#9f2d3f;line-height:1.5;margin:6px 0 0;min-height:12px}
@media(max-width:520px){.difficulty-picker{margin:8px 0}.difficulty-options button{min-height:44px;padding:6px}.difficulty-options strong{font-size:18px}.difficulty-options span{font-size:9px}.difficulty-picker p{font-size:7px}.difficulty-picker legend{font-size:6px;padding-bottom:5px}}
@media(max-height:670px) and (orientation:portrait){.menu-panel h2{font-size:36px;line-height:1;letter-spacing:-1.5px;margin:9px 0}.menu-panel h2>span{display:inline}.menu-logo{width:36px;height:42px}.menu-description{margin-bottom:8px}.difficulty-picker{margin:7px 0}.difficulty-picker p{margin:4px 0 0}.instructions{margin:7px 0}.control-note{margin:7px 0 4px}}
@media(orientation:landscape) and (max-height:540px){.difficulty-picker{margin:6px auto;max-width:300px}.difficulty-picker legend{font-size:6px;padding-bottom:4px}.difficulty-options button{min-height:44px;padding:5px 9px}.difficulty-options strong{font-size:18px}.difficulty-options span{font-size:9px}.difficulty-picker p{font-size:7px;margin-top:4px}.instructions{display:block;text-align:center;margin:6px 0}.instructions p{font-size:7px}.menu-description{margin-bottom:5px}.control-note{display:none}}
@media(max-height:570px) and (orientation:portrait){.menu-logo{width:28px;height:32px}.menu-panel h2{font-size:30px;margin:7px 0}.difficulty-picker legend{font-size:6px}.difficulty-picker p{font-size:6px}.instructions{margin:5px 0}.instructions p{font-size:7px}.control-note{display:none}}
.zone-badge{position:absolute;top:10px;left:14px;right:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:1;pointer-events:none;background:#e9dfcde0;border:1px solid #f0d39455;border-radius:5px;padding:7px 9px;color:#9f2d3f}.zone-badge>div{display:flex;align-items:center;gap:10px;min-width:0}.zone-badge span{font-size:7px;letter-spacing:1px;white-space:nowrap;opacity:.7}.zone-badge strong{font-size:9px;letter-spacing:.7px;white-space:nowrap}.zone-badge small{font-size:7px;white-space:nowrap;opacity:.8}.hit-message{top:47px;z-index:1;text-shadow:0 1px 4px #e9dfcd}.floor-toast{font-size:23px;text-shadow:0 2px 9px #e9dfcd}.floor-toast strong{display:block;font-size:23px;letter-spacing:.6px}.floor-toast small{display:block;font-size:9px;letter-spacing:2px;font-weight:500;margin-top:8px}.floor-toast.zone-transition{padding:12px 5px;background:#e9dfcdad;border-top:1px solid #3c292918;border-bottom:1px solid #3c292918}
@media(max-width:390px){.zone-badge{left:10px;right:10px;padding:7px;gap:5px}.zone-badge>div{gap:7px}.zone-badge span{font-size:6px}.zone-badge strong{font-size:8px;letter-spacing:0}.zone-badge small{font-size:6px}.floor-toast strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){.floor-toast{transition:none}}

/* vaultbreak: independent visual identity, shared studio only. */
:root{color-scheme:light;--bg:#e9dfcd;--panel:#fff6e5;--line:#c7b394;--muted:#806b56;--text:#3c2929;--mint:#9f2d3f;--gold:#9f2d3f;--peach:#9f2d3f;--cyan:#9f2d3f;--accent:#9f2d3f;--light:#fff6e5;--dark:#c7b394}
body{background:#e9dfcd;color:#3c2929;font-family:Georgia, serif}
h1,h2,h3{font-family:Georgia, serif}
button{border-radius:3px}
.overlay,.veil{background:#e9dfcded;color:#3c2929;backdrop-filter:none}
.menu,.menu-card,.card,.panel{color:#3c2929}
.primary,.primary-button,.launch{background:#9f2d3f;color:#9f2d3f;border-color:#9f2d3f}
.primary:hover,.primary-button:hover,.launch:hover{background:#9f2d3f;filter:brightness(1.1)}
button[aria-pressed=true]{border-color:#9f2d3f}

:root{--honey:#9f2d3f;--amber:#9f2d3f}
h2 em,h2>span,.chapter-select button strong,.control-button strong{color:#9f2d3f}

:root{--honey:#9f2d3f;--amber:#9f2d3f}
h2 em,h2>span,.chapter-select button strong,.control-button strong{color:#9f2d3f}
.primary,.primary-button,.launch{color:#ffffff!important}
