@font-face{font-family:Barlow;src:url('/fonts/regular.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:Barlow;src:url('/fonts/bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:Young;src:url('/fonts/title.woff2') format('woff2');font-weight:400;font-display:swap}
:root{color-scheme:light;--ink:#233c34;--paper:#f5f2e7;--line:#d7d7c7;--muted:#54675b;--gold:#ffca69;--pine:#233f35}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-width:280px;background:var(--paper);color:var(--ink);font:500 16px/1.45 Barlow,'Segoe UI',sans-serif}
button,input{font:inherit}
button{cursor:pointer;color:inherit;border:0;background:transparent;font-weight:700}
button:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #db8544;outline-offset:3px}
button:disabled{cursor:default;opacity:.53}
button,dialog{user-select:none}
canvas,.cover-rabbit img,.shop-rabbit{image-rendering:pixelated}
.wrap{width:min(1152px,92vw);margin:0 auto 32px}
.mast,.mast nav,.brand,.mast button,.rail,.rail-place,.rail button,.keys,.shortcut,.actions,.panel-actions,.eyebrow,.hud-right,.vitals{display:flex;align-items:center}
.mast{min-height:84px;justify-content:space-between}
.brand{font:400 clamp(25px,2.3vw,33px)/1 Young,Georgia,serif;letter-spacing:-1.5px;gap:12px}
.brand-mark{width:42px;height:44px;border-radius:12px 12px 6px 6px;background:var(--pine);border-bottom:3px solid #b7a876;display:grid;place-items:center}
.brand-mark canvas{height:34px;width:auto}
.mast nav{gap:10px}
.mast button{gap:8px;min-height:40px;padding:0 12px;font-size:15px}
.mast button:hover,.keys button:hover{color:#a15426}
.note-icon{font:bold 23px Georgia,serif;line-height:1}
.help-icon{border:1.7px solid currentColor;border-radius:50%;width:17px;height:17px;font:700 12px/15px Barlow,sans-serif;text-align:center}
#cabinet{position:relative;overflow:hidden;border:2px solid #263e33;border-radius:13px;background:#263e33;box-shadow:0 5px 0 #d5d4c0,0 13px 35px #26362b18}
.stage{position:relative;isolation:isolate;aspect-ratio:480 / 248;width:100%;background:#28473b;overflow:hidden}
#game,#title-screen,#result{position:absolute;inset:0;width:100%;height:100%}
#game{display:block;object-fit:contain;outline-offset:-3px}
#title-screen{display:flex;align-items:center;isolation:isolate;background:#48674b url('/assets/engen.webp') center/cover no-repeat}
#title-screen::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#102b27ed 0%,#17332bcd 19%,#23372c82 40%,transparent 72%),linear-gradient(0deg,#152c262e,transparent 35%)}
.cover-rabbit{position:absolute;height:48%;aspect-ratio:29/96;right:13%;bottom:12%;pointer-events:none}
.cover-rabbit img{display:block;height:100%;width:100%;transform:scaleX(-1)}
.cover-rabbit::before{content:"";position:absolute;bottom:-1%;left:-14%;width:128%;height:5%;background:radial-gradient(ellipse,#344332a3 10%,#34433200 73%)}
.cover-copy{position:relative;margin:3% 0 2% 7%;color:#fff5dd;max-width:48%}
.eyebrow{gap:10px;margin:0 0 17px;font:700 12px/1.2 Barlow,sans-serif;letter-spacing:2.2px;text-transform:uppercase;color:#f8ce83}
.diamond{display:inline-block;width:7px;height:7px;transform:rotate(45deg);background:currentColor}
.dot{opacity:.75}
h1,h2{font-family:Young,Georgia,serif;font-weight:400}
h1{margin:0;font-size:clamp(55px,6.45vw,94px);letter-spacing:-.052em;line-height:.99;text-shadow:0 2px 0 #24332655}
h1 span{color:#ffcf82}
.story{font-size:clamp(16px,1.45vw,21px);max-width:340px;line-height:1.45;margin:21px 0 24px;color:#fff4df}
.actions,.panel-actions{gap:10px;flex-wrap:wrap}
.primary,.glass,.quiet{min-height:45px;padding:10px 18px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:9px}
.primary{background:var(--gold);color:#2b392a;border:1px solid #ffda91;box-shadow:0 3px 0 #a87935}
.primary:hover:enabled{background:#ffdc91}
.primary:active:enabled,.glass:active{transform:translateY(1px)}
.primary span:first-child{font-size:12px}
.glass{background:#1a3029bd;border:1px solid #c9d3ac94;color:#fff4d9;box-shadow:0 2px 0 #11251c78}
.glass:hover{background:#304c3c}
.duo{font:700 13px/1 monospace;color:#e6e2ba;letter-spacing:-3px;padding-right:2px}
.rail{gap:19px;min-height:47px;background:var(--pine);color:#ebe9cd;padding:0 21px}
.rail-place{gap:10px;font-weight:700;font-size:14px;letter-spacing:.3px;white-space:nowrap}
.rail-place .diamond{color:#efbc69;width:6px;height:6px}
.rail-line{flex:1;border-top:1px solid #56705d70}
.rail button{gap:7px;min-height:36px;font-size:14px;padding:3px 5px;color:#f0ead2}
.rail button:hover{color:#ffce77}
.rail canvas{width:19px;height:19px}
#bank{min-width:20px;text-align:center;color:#f9cd7c}
#full{padding:5px 4px 5px 16px;border-left:1px solid #62766180}
.expand-icon{width:15px;height:15px;display:inline-block;background:linear-gradient(currentColor,currentColor) left top/6px 2px,linear-gradient(currentColor,currentColor) left top/2px 6px,linear-gradient(currentColor,currentColor) right top/6px 2px,linear-gradient(currentColor,currentColor) right top/2px 6px,linear-gradient(currentColor,currentColor) left bottom/6px 2px,linear-gradient(currentColor,currentColor) left bottom/2px 6px,linear-gradient(currentColor,currentColor) right bottom/6px 2px,linear-gradient(currentColor,currentColor) right bottom/2px 6px;background-repeat:no-repeat}
.keys{gap:clamp(15px,3vw,42px);min-height:69px;color:var(--muted);font-size:14px;flex-wrap:wrap;padding:13px 2px}
.shortcut{gap:5px}
kbd{display:inline-block;min-width:24px;text-align:center;padding:1px 5px 2px;border:1px solid #c8c9b6;box-shadow:0 1px 0 #bec2af;background:#fcfaf1;border-radius:4px;color:#3b5246;font:700 12px/18px Barlow,sans-serif}
.shortcut kbd:last-of-type{margin-right:3px}
.keys button{margin-left:auto;font-size:14px;padding:4px;color:#405649}
.keys button span{margin-left:4px}
#hud{position:absolute;left:2.2%;right:2.2%;top:4%;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}
.vitals,.hud-right button{background:#1f392ff2;color:#fff4d9;border:1px solid #c2c99c;border-radius:7px;box-shadow:0 2px 0 #32473775}
.vitals{height:34px;gap:7px;padding:0 10px;font-variant-numeric:tabular-nums}
.vitals>canvas{width:17px;height:17px;object-fit:contain}
.hearts{display:flex;gap:2px}.hearts canvas{width:17px;height:16px;object-fit:contain}
.hearts .empty{filter:grayscale(1);opacity:.36}
.divider{height:15px;border-left:1px solid #81907980}
meter{width:clamp(40px,6vw,76px);height:10px;appearance:none;border:1px solid #91a27b;background:#435345;border-radius:3px;overflow:hidden}
meter::-webkit-meter-bar{height:100%;border:0;background:#435345}
meter::-webkit-meter-optimum-value{background:#c9da72}
meter::-moz-meter-bar{background:#c9da72}
.hud-right{gap:7px;pointer-events:auto}
#boss-keys{padding:3px 8px;background:#263d32;color:#ffe0a2;border:1px solid #829277;border-radius:4px;font-size:14px;font-weight:700}
.hud-right button{min-height:34px;padding:2px 10px}
#hint{position:absolute;bottom:7%;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;text-align:center;background:#233b31f2;color:#fff6de;padding:7px 14px;font-size:clamp(13px,1.4vw,17px);border-left:3px solid #f2bb69;border-radius:3px;pointer-events:none}
.veil{display:grid;place-items:center;background:#122c249e}
dialog{padding:0;border:0;background:transparent;color:var(--ink);width:min(470px,92vw);max-height:90dvh;overflow:auto;border-radius:12px}
dialog::backdrop{background:#132b258e}
.panel{position:relative;background:#faf6e9;padding:clamp(22px,3vw,36px);border:2px solid #405741;border-radius:12px;box-shadow:0 5px 0 #1a322929}
.result-panel{width:min(490px,92%);max-height:96%;overflow:auto}
.dark{color:#756d40}
.panel .eyebrow{font-size:11px;margin:0 0 9px}
h2{font-size:clamp(25px,3vw,38px);letter-spacing:-.045em;line-height:1.07;margin:0 25px 12px 0}
.panel p{margin:10px 0 17px;line-height:1.45}
.quiet{border:1px solid #bac2ab;background:#f1f0e1}
.quiet:hover:enabled{background:#e5e9d5}
.close{position:absolute;right:12px;top:10px;width:35px;height:35px;font-size:26px;color:#647463;line-height:1}
.controls{margin:12px 0 0;padding:0;list-style:none}
.controls li{display:flex;justify-content:space-between;gap:14px;align-items:center;border-top:1px solid var(--line);padding:5px 0}
.controls li span:first-child{font-size:15px}
.controls li span:last-child{text-align:right;white-space:nowrap}
form{margin-top:21px;padding-top:17px;border-top:1px solid var(--line)}
label{display:block;font-weight:700;margin-bottom:6px}
.join-row{display:flex;gap:8px}
input{min-width:0;flex:1;background:#fffdf4;border:1px solid #a5b39c;border-radius:5px;padding:6px 10px;text-transform:uppercase;letter-spacing:.13em}
.form-note{min-height:18px;color:#a04d2c;font-size:14px}
.shop-row{display:flex;align-items:center;gap:16px;padding:13px 0;border-block:1px solid var(--line);margin:12px 0 17px}
.shop-rabbit{height:80px;width:auto;margin-inline:8px}
.rabbit-card{display:grid;grid-template-columns:28px 1fr;align-items:start;gap:16px;border-top:1px solid var(--line);padding:13px 0}
.rabbit-card canvas{height:55px;width:auto;max-width:28px;align-self:start;image-rendering:pixelated}
.rabbit-card h3{margin:0;font-size:18px}.rabbit-card h3 small{color:#52704e;font-size:12px;margin-left:5px}
.rabbit-card p{margin:4px 0 8px;font-size:15px}.rabbit-card .upgrade-note{color:var(--muted);font-size:13px}
.rabbit-card button,.chapter-tabs button{min-height:34px;padding:5px 9px;font-size:14px}
.chapter-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:13px 0 16px}
.chapter-tabs button{border:1px solid #a5b29a;border-radius:4px}.chapter-tabs [aria-pressed=true]{background:var(--pine);color:#fff4d7}
.route-list{border-top:1px solid var(--line)}.route-stop{width:100%;display:grid;grid-template-columns:29px 1fr 17px;gap:8px;text-align:left;align-items:center;padding:6px 3px;border-bottom:1px solid var(--line);font-size:15px}
.route-stop span,.route-stop small{font-variant-numeric:tabular-nums;color:var(--muted)}
.route-stop:hover:enabled{background:#e6ecd9}.route-stop:disabled{opacity:.62}
#dialog-body select{font:inherit;max-width:100%;padding:5px;margin:0 0 7px;color:var(--ink);background:var(--paper)}
@media(max-width:570px){.rail-place{min-width:0}.rail-place #place{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rail{font-size:13px}.rail-line{min-width:0}.rail button{white-space:nowrap}}
#touch{background:#2c473b;padding:5px 9px;justify-content:space-between;flex-wrap:wrap;gap:4px}
#touch>div{display:flex;gap:4px}#touch #extra-touch{justify-content:flex-end;width:100%}
#touch button{touch-action:none;min-width:39px;min-height:38px;padding:3px 7px;border:1px solid #879981;color:#fff5d8;border-radius:5px;font-size:14px}
#touch button:active{background:#53715a}
#cabinet:fullscreen{width:100vw;height:100dvh;border-radius:0;display:flex;flex-direction:column;justify-content:center}
#cabinet:fullscreen .stage{flex:1;min-height:0;aspect-ratio:auto}
#cabinet:fullscreen .rail{flex:none}
@media(pointer:coarse){#touch:not([hidden]){display:flex}}
@media(pointer:fine){#touch{display:none}}
@media(max-width:760px){.wrap{width:95vw}.mast{min-height:63px}.mast nav{gap:0}.mast button{padding:0 7px}.brand-mark{width:34px;height:36px}.brand-mark canvas{height:28px}.cover-copy{margin-left:5%}.eyebrow{font-size:10px;margin-bottom:10px}.story{margin:12px 0 15px}.actions{gap:7px}.actions button{min-height:39px;padding:7px 10px}.keys{gap:12px;font-size:12px}.keys button{font-size:12px}.rail{min-height:42px}.cover-rabbit{right:11%}}
@media(max-width:570px) and (orientation:portrait){
  .wrap{width:94vw}.mast{min-height:64px}.mast button{font-size:13px;gap:5px}.brand{gap:7px}
  #cabinet.at-title .stage{aspect-ratio:auto;height:clamp(402px,66dvh,530px)}
  #title-screen{align-items:flex-end;background:#19372e}
  #title-screen::after{content:"";position:absolute;inset:0 0 auto;height:61%;z-index:-2;background:url('/assets/engen.webp') 83% center/cover no-repeat}
  #title-screen::before{background:linear-gradient(0deg,#19372e 0%,#19372e 38%,#19372e99 45%,transparent 57%)}
  .cover-rabbit{height:29%;right:12%;bottom:48%}
  .cover-copy{max-width:92%;margin:0 6% 24px}.cover-copy h1{font-size:clamp(43px,12vw,65px)}
  .cover-copy h1 br{display:none}.cover-copy h1 span::before{content:" "}
  .story{max-width:280px;font-size:16px}.eyebrow{letter-spacing:1.6px}.rail{gap:10px;padding:0 12px}
  .keys{align-items:flex-start;column-gap:13px;row-gap:8px}.keys .shortcut:nth-child(3){display:none}
  .vitals{gap:4px;padding:0 5px;height:26px}.hearts canvas{width:12px;height:12px}.hud-right button{min-height:26px;font-size:13px}
  #hint{bottom:3%;font-size:12px;line-height:1.2;max-width:95%;padding:4px 7px}
  .result-panel{padding:10px 15px}.result-panel .eyebrow{display:none}.result-panel h2{font-size:22px;margin:2px 0}.result-panel p{font-size:13px;margin:4px 0 7px}.result-panel button{min-height:30px;padding:4px 9px;font-size:13px}
}
@media(max-height:500px) and (orientation:landscape){.mast{min-height:43px}.brand{font-size:22px}.brand-mark{height:30px;width:29px}.brand-mark canvas{height:24px}.wrap{width:min(95vw,150dvh)}.keys{min-height:36px;padding:5px}.rail{min-height:30px}.cover-copy h1{font-size:42px}.story{font-size:14px;margin:6px 0 10px}.actions button{min-height:30px}.cover-copy .eyebrow{margin-bottom:6px}}
