@font-face{font-family:"Baloo 2";src:url(../fonts/Baloo2%5Bwght%5D.ttf)format("truetype");font-weight:400 800;font-display:swap}@font-face{font-family:Mulish;src:url(../fonts/Mulish%5Bwght%5D.ttf)format("truetype");font-weight:200 1000;font-display:swap}html,body{color:#fff6e6;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;overscroll-behavior:none;background:#120d1a;width:100%;height:100%;margin:0;padding:0;font-family:Mulish,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden}#app{width:100%;height:100%;position:fixed;inset:0}#app canvas{touch-action:none;cursor:pointer;outline:none;width:100%;height:100%;display:block;position:absolute;inset:0}.overlay-root{pointer-events:none;--accent:#3fd0c0;--panel:#140c1ebf;--text:#fff6e6;font-size:clamp(13px,1.4vw,18px);position:absolute;inset:0}.hud{position:absolute;inset:0}.hud .panel{box-sizing:border-box;color:var(--text);pointer-events:none;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:12px;display:flex;position:absolute}.hud[data-mode=portrait] .panel{flex-direction:row;justify-content:space-between;gap:8px;padding:6px 12px}.hud .panel>*{pointer-events:auto}.level-name{text-align:center;text-shadow:0 2px 6px #0009;font-size:1.25em;font-weight:700}.stars{gap:8px;display:flex}.star{color:#ffffff47;background:#00000059;border-radius:50%;justify-content:center;align-items:center;width:30px;height:30px;transition:color .3s,transform .3s,background .3s;display:inline-flex}.star.on{color:#ffd23f;background:#ffd23f2e;transform:scale(1.1)}.star.lost{color:#ff5a5a99}.stats{font-variant-numeric:tabular-nums;text-shadow:0 2px 6px #0009;flex-direction:column;gap:4px;display:flex}.hud[data-mode=portrait] .stats{white-space:nowrap;flex-direction:row;gap:10px;font-size:.85em}.hud[data-mode=portrait] .buttons{flex-wrap:nowrap;gap:6px}.hud[data-mode=portrait] .btn{border-radius:12px;min-width:44px;min-height:44px;padding:6px 8px}.hud[data-mode=portrait] .level-name{font-size:1.1em}.buttons{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.btn{background:var(--panel);min-width:48px;min-height:48px;color:var(--text);font:inherit;cursor:pointer;pointer-events:auto;touch-action:manipulation;border:2px solid #ffffff2e;border-radius:14px;justify-content:center;align-items:center;padding:8px 14px;font-weight:700;transition:transform 80ms,background .15s,border-color .15s;display:inline-flex;box-shadow:0 3px #00000073}.btn:hover,.btn:focus-visible{border-color:var(--accent);background:#ffffff1a;outline:none}.btn:active,.btn.active{background:var(--accent);color:#12202a;transform:translateY(2px);box-shadow:0 1px #00000073}.btn.primary{background:var(--accent);color:#12202a;border-color:#0000}.btn.primary:hover,.btn.primary:focus-visible{filter:brightness(1.1)}.overlay[hidden],.btn[hidden]{display:none}.overlay{pointer-events:auto;background:#08040e8c;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.dialog{box-sizing:border-box;width:min(92vw,440px);color:var(--text);text-align:center;opacity:0;background:#1f1530;border:2px solid #ffffff1f;border-radius:20px;padding:22px 24px;transition:transform .25s cubic-bezier(.2,.9,.3,1.2),opacity .2s;transform:translateY(16px)scale(.96);box-shadow:0 20px 60px #0009}.dialog.in{opacity:1;transform:none}.dialog h2{margin:0 0 12px;font-size:1.8em}.dialog p{margin:0 0 16px;font-size:1.05em;line-height:1.4}.star-list{text-align:left;flex-direction:column;gap:8px;margin:0 0 18px;padding:0;list-style:none;display:flex}.star-list li{align-items:center;gap:10px;display:flex}.star-list li.off{opacity:.55}.star-list .ico{color:#ffffffbf;display:inline-flex}.actions{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.actions.column{flex-direction:column;align-items:stretch}.editor-panel{box-sizing:border-box;color:#eee;pointer-events:auto;background:#0a0814f0;flex-direction:column;gap:8px;width:360px;padding:10px;font:13px/1.35 system-ui,sans-serif;display:flex;position:absolute;top:0;bottom:0;right:0;overflow:auto}.editor-panel .ed-title{font-size:15px;font-weight:700}.editor-panel .ed-row{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.editor-panel .btn.small{min-width:36px;min-height:32px;box-shadow:none;border-radius:8px;padding:4px 10px;font-size:13px}.editor-panel .ed-palette{flex-wrap:wrap;gap:4px;display:flex}.editor-panel .btn.mat{min-width:30px;min-height:30px;padding:0;font-family:monospace;font-weight:700}.editor-panel .btn.mat.active,.editor-panel .btn.small.active{outline:2px solid #3fd0c0}.editor-panel .ed-label{opacity:.7;font-size:12px}.editor-panel .ed-json{box-sizing:border-box;color:#eee;resize:vertical;-webkit-user-select:text;user-select:text;background:#0b0812;border:1px solid #333;border-radius:6px;width:100%;font:12px/1.3 monospace}.editor-panel select{font:inherit;border-radius:6px;padding:4px}.editor-panel .ed-status{color:#ffd23f;min-height:1.3em}.editor-panel .ed-results{white-space:pre-wrap;-webkit-user-select:text;user-select:text;font:11px/1.3 monospace}.editor-panel .ed-help{opacity:.6;font-size:11px}.screen{pointer-events:none;opacity:0;flex-direction:column;align-items:center;transition:opacity .25s;display:flex;position:absolute;inset:0}.screen.in{opacity:1}.screen>*{pointer-events:auto}.screen.title{justify-content:center}.title-panel{text-align:center;background:#0a0612b8;border:2px solid #ffffff1f;border-radius:24px;flex-direction:column;align-items:center;gap:10px;max-width:min(92vw,420px);padding:24px 28px;display:flex;box-shadow:0 20px 60px #0009}.logo,.dialog h2,.screen-head h1,.level-num,.vault-name{font-family:"Baloo 2",Mulish,system-ui,sans-serif}.logo{letter-spacing:1px;color:#ffd23f;text-shadow:0 4px #8a4a10,0 10px 30px #000000b3;margin:0;font-size:clamp(40px,7vw,84px);line-height:1}.tagline{opacity:.85;margin:0 0 8px}.hint-line{opacity:.6;margin:4px 0 0;font-size:.85em}.btn.big{padding:12px 28px;font-size:1.3em}.btn.danger{border-color:#ff5a5a80}.screen-head{justify-content:space-between;align-items:center;gap:12px;width:min(96vw,900px);padding:12px 0;display:flex}.screen-head h1{text-shadow:0 2px 8px #000000b3;margin:0;font-size:1.5em}.screen-head .total{color:#ffd23f;align-items:center;gap:6px;font-weight:700;display:inline-flex}.vault-list{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;width:min(96vw,900px);padding:4px 0 20px;display:grid;overflow:auto}.vault-card{border:2px solid var(--accent,#3fd0c0);color:#fff6e6;min-height:110px;font:inherit;text-align:left;cursor:pointer;border-radius:18px;flex-direction:column;gap:6px;padding:14px 16px;transition:transform .1s,filter .15s;display:flex;box-shadow:0 6px #0006}.vault-card:hover:not(:disabled),.vault-card:focus-visible{filter:brightness(1.15);outline:none;transform:translateY(-2px)}.vault-card.locked{opacity:.55;cursor:default;border-color:#ffffff26}.vault-name{font-size:1.2em;font-weight:700}.vault-stars,.vault-cleared,.vault-lock{opacity:.9;align-items:center;gap:6px;display:inline-flex}.vault-cleared{color:#ffd23f}.level-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;width:min(96vw,900px);padding:4px 0 20px;display:grid;overflow:auto}.level-card{color:#fff6e6;min-height:96px;font:inherit;cursor:pointer;background:#0a0612a6;border:2px solid #ffffff26;border-radius:16px;flex-direction:column;align-items:center;gap:4px;padding:10px 8px;transition:transform .1s,border-color .15s;display:flex;box-shadow:0 4px #0006}.level-card:hover:not(:disabled),.level-card:focus-visible{border-color:var(--accent,#3fd0c0);outline:none;transform:translateY(-2px)}.level-card.won{border-color:#ffd23f80}.level-card.locked{opacity:.5;cursor:default}.level-card.bonus{grid-column:span 2}.level-num{font-size:1.6em;font-weight:700}.level-title{opacity:.85;text-align:center;font-size:.85em}.star-row{gap:2px;display:inline-flex}.star-row .star{width:22px;height:22px}.level-lock{opacity:.8;align-items:center;gap:4px;font-size:.8em;display:inline-flex}.dialog .row{text-align:left;justify-content:space-between;align-items:center;gap:12px;margin:8px 0;display:flex}.dialog .row input[type=range]{width:55%}.dialog .row select{font:inherit;border-radius:8px;padding:6px 8px}.dialog .row input[type=checkbox]{width:22px;height:22px}.story-art{border:2px solid;border-radius:14px;height:140px;margin-bottom:14px}.story-line{min-height:3.2em;font-size:1.15em}.tip-list{text-align:left;flex-direction:column;gap:10px;max-height:50vh;margin-bottom:14px;display:flex;overflow:auto}.tip-item{flex-direction:column;gap:2px;display:flex}.btn.show-me{color:#ffd23f}.reduced-motion .dialog,.reduced-motion .screen{transition:none}
