:root{--ink:#171c18;--shadow:#28312d;--paper:#f6f6ef;--soft:#e7e8dd;--muted:#758077;--edge:#343c35;--accent:#d4e3a4;--light:#fdfef8;--font:'Trebuchet MS',Verdana,Arial,sans-serif}
*{box-sizing:border-box}html{background:#111411}body{margin:0;background:radial-gradient(ellipse 80% 45% at 60% 15%,#27322b 0%,#171e19 65%,#111411 100%);color:var(--paper);font-family:var(--font);min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.55}.page{max-width:1250px;margin:auto;padding:24px 26px 60px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.brand{display:flex;align-items:center;gap:15px}.brand-mark{height:42px;width:42px;display:grid;place-items:center;background:var(--accent);color:var(--ink);border:3px solid var(--ink);box-shadow:4px 4px 0 #647353;font-size:24px;font-weight:900}.eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:900;color:#a6b3a6}.brand-title{font-size:21px;font-weight:900;letter-spacing:-.04em}.nav{display:flex;gap:9px;flex-wrap:wrap}.flat-btn,.ghost-btn,.dark-btn,.lime-btn{border:2px solid #505d52;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-size:12px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;padding:10px 15px;min-height:40px;transition:transform .14s ease,background .14s ease}.flat-btn{background:#27302a;color:#fff}.flat-btn:hover,.ghost-btn:hover{background:#3e4a3f}.ghost-btn{background:transparent;color:#d4decf}.lime-btn{background:var(--accent);color:var(--ink);border-color:var(--accent);box-shadow:4px 4px 0 #506047}.lime-btn:not(:disabled):hover{transform:translateY(-2px)}.dark-btn{background:#171c18;color:#f6f7ee;border-color:#171c18}.intro-row{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 16px}.intro-row h1{font-size:clamp(30px,4.5vw,56px);margin:0 0 2px;line-height:.98;letter-spacing:-.055em;font-weight:1000}.intro-row h1 span{color:var(--accent)}.intro-row p{margin:10px 0 0;color:#acb7ad;font-size:14px}.mode-chip{border:1px solid #6d796c;color:#dbe6d8;padding:9px 12px;white-space:nowrap;font-size:11px;letter-spacing:.16em;font-weight:bold}.game-shell{border:5px solid #b7c2ac;box-shadow:0 0 0 5px #202922,0 28px 70px #05080580;background:#c5d0cc;position:relative;overflow:hidden}.game-screen{position:relative;aspect-ratio:16/9;overflow:hidden;background:#afbcb6}.game-screen canvas{position:absolute;width:100%;height:100%;image-rendering:pixelated;display:block;touch-action:none}.screen-noise{pointer-events:none;position:absolute;inset:0;opacity:.075;background:repeating-linear-gradient(0deg,transparent 0,transparent 3px,#17211d 4px);z-index:1}.hud{position:absolute;z-index:2;top:14px;left:18px;right:18px;display:flex;align-items:start;justify-content:space-between;gap:10px;pointer-events:none}.hud-cell{background:#161d1aeb;color:var(--paper);border:2px solid #d4dfd2;box-shadow:3px 3px 0 #333c34aa;min-width:103px;padding:8px 12px}.hud-cell small{display:block;color:#d2e8c4;font-weight:800;font-size:10px;text-transform:uppercase;letter-spacing:.1em}.hud-cell strong{display:block;font-size:27px;line-height:1.25;letter-spacing:-.045em}.pace-cell{min-width:144px}.pace-bar{height:9px;background:#565d55;border:1px solid #c5cbbe;margin-top:7px}.pace-fill{height:100%;background:#c5e4a2;transition:width .1s linear}.hud .danger{background:#4b1c1a}.hud .danger .pace-fill{background:#eea4a4}.screen-cover{position:absolute;z-index:4;inset:0;display:flex;align-items:center;justify-content:center;padding:30px;background:#151e18a9;backdrop-filter:blur(2px)}.cover-panel{max-width:520px;width:100%;background:#f4f5ec;color:#151b17;padding:28px 31px;border:4px solid #1c241e;box-shadow:9px 9px 0 #a9b3a2}.cover-tag{font-size:10px;font-weight:1000;text-transform:uppercase;letter-spacing:.22em;color:#515a50}.cover-panel h2{font-size:clamp(28px,4vw,49px);letter-spacing:-.07em;margin:7px 0 10px;line-height:1.0}.cover-panel p{color:#48534a;line-height:1.5;font-size:14px}.micro-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.micro-list div{border:1px solid #98a398;padding:9px 6px;text-align:center}.micro-list b{font-size:16px;display:block}.micro-list small{font-size:10px;color:#586358}.cover-actions{display:flex;gap:11px;align-items:center;flex-wrap:wrap;margin-top:18px}.cover-panel .lime-btn{box-shadow:4px 4px 0 #9cac80}.cover-panel .outline-btn{background:transparent;color:#283228;border:2px solid #465246;padding:10px 14px;font-size:12px;font-weight:900}.notice{font-size:12px;color:#525f54!important;margin-top:12px}.countdown-overlay{position:absolute;inset:0;z-index:4;display:grid;place-items:center;background:#1b2923a8;text-align:center}.countdown-num{font-size:clamp(82px,17vw,200px);font-weight:1000;color:#f3fae8;line-height:1;text-shadow:9px 9px 0 #39483a}.countdown-hint{color:white;letter-spacing:.3em;font-weight:900}.screen-bottom{position:absolute;bottom:12px;left:18px;right:18px;z-index:2;display:flex;justify-content:space-between;gap:12px;pointer-events:none}.screen-bottom span{color:#15241d;background:#ecf1e4bb;padding:4px 7px;font-size:10px;font-weight:900;letter-spacing:.05em}.meta-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(275px,.75fr);gap:20px;margin-top:22px}.panel{background:#f3f5ed;color:#252b25;border:3px solid #aab6a8;padding:22px 24px;box-shadow:5px 5px 0 #27362a}.panel h3{margin:0 0 14px;letter-spacing:-.035em;font-size:19px}.section-label{font-size:10px;font-weight:1000;letter-spacing:.17em;color:#59685a;text-transform:uppercase}.tips-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tip{display:flex;align-items:start;gap:10px;background:#e7ebe0;border:1px solid #c0c8b9;padding:12px}.tip-icon{width:34px;height:34px;display:grid;place-items:center;background:#222a23;color:#d7e6c5;font-weight:900;flex:0 0 auto}.tip b{display:block;font-size:12px}.tip small{display:block;color:#596359;line-height:1.35;margin-top:4px;font-size:11px}.small-stat{border-top:2px solid #c8d2c4;padding-top:12px;margin-top:14px;display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:#525c52}.small-stat b{color:#1c281e}.score-list{padding:0;list-style:none;margin:5px 0 0}.score-item{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px;border-bottom:1px solid #cfd6cb;padding:10px 0}.score-item strong{font-size:16px;font-variant-numeric:tabular-nums}.score-rank{font-weight:900;color:#667262;min-width:23px}.score-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.score-kind{font-size:10px;color:#617061;margin:12px 0 0}.panel .ghost-btn{background:#e5e8dd;color:#202920;border-color:#a6b3a3}.admin-controls{margin-top:14px;border-top:2px dashed #b2c1ae;padding-top:14px}.input-row{display:flex;gap:8px}.input-row input{border:2px solid #8b9b87;background:#fff;color:#101712;padding:9px 10px;font-size:14px;min-width:0;flex:1}.stack{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.feedback{font-size:12px;color:#455448;min-height:16px;margin-top:8px}.feedback.error{color:#a33131}.footer{display:flex;gap:15px;justify-content:space-between;margin-top:26px;color:#a6b4a5;font-size:11px;line-height:1.5;flex-wrap:wrap}.kbd{border:1px solid #93a38d;border-bottom-width:3px;display:inline-block;padding:0 5px;background:white;color:#283028;border-radius:3px;font-size:11px;font-weight:900}.touch-controls{display:none;justify-content:center;gap:14px;margin-top:15px;user-select:none}.touch-btn{min-width:128px;min-height:62px;font-size:21px;background:#d9e6be;border:3px solid #171d18;box-shadow:3px 3px 0 #52624f;color:#191f19;font-weight:900;touch-action:none}.badge-inline{display:inline-block;font-size:11px;border:1px solid #93a48b;padding:4px 8px;color:#2c3f2e;background:#e1ebd2;font-weight:900}.hidden{display:none!important}.tiny{font-size:12px!important;color:#657163!important}.stats-board{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:13px 0}.stat-tile{border:1px solid #b3c1ad;background:#e4e8df;padding:12px}.stat-tile small{display:block;color:#59665b;font-size:10px;text-transform:uppercase;font-weight:900}.stat-tile strong{font-size:25px;color:#1e2b20}.inline-alert{font-size:11px;background:#ffedcd;color:#493d24;padding:7px 9px;margin-top:10px}.dialog-backdrop{position:fixed;inset:0;background:#090e0bd9;display:flex;align-items:center;justify-content:center;padding:20px;z-index:30}.dialog{background:#f2f5ed;color:#1c251d;border:4px solid #a9b7a4;width:min(450px,100%);padding:24px;box-shadow:9px 9px 0 #273629}.dialog h2{margin:5px 0 10px;font-size:28px;letter-spacing:-.06em}.dialog p{font-size:13px;line-height:1.5;color:#526051}.dialog .actions{display:flex;justify-content:end;gap:8px;margin-top:15px}.dialog .flat-btn{background:#243026}.dialog .ghost-btn{color:#243026;border-color:#9fad9a}.dialog .input-row{margin:15px 0 4px}.dialog code{font-family:monospace;font-size:12px}.dialog strong{color:#1e2f1c}
@media(max-width:780px){.page{padding:15px 11px 40px}.brand-title{font-size:17px}.brand-mark{height:35px;width:35px}.brand{gap:9px}.topbar{margin-bottom:19px}.nav .ghost-btn{padding:8px 9px;font-size:10px}.intro-row{align-items:start}.intro-row h1{font-size:35px}.intro-row p{font-size:12px}.mode-chip{font-size:9px;padding:6px}.game-shell{border-width:3px}.hud{top:7px;left:7px;right:7px;gap:4px}.hud-cell{min-width:0;padding:5px 7px;border-width:1px}.hud-cell strong{font-size:17px}.hud-cell small{font-size:8px}.pace-cell{min-width:88px}.pace-bar{margin-top:3px;height:6px}.screen-cover{padding:8px}.cover-panel{padding:14px;border-width:2px;box-shadow:4px 4px 0 #a9b3a2;max-width:360px}.cover-panel h2{font-size:clamp(21px,6vw,29px);margin:3px 0 6px}.cover-panel p{font-size:11px;line-height:1.35;margin:5px 0}.cover-tag{font-size:8px}.micro-list{margin:6px 0;gap:4px}.micro-list div{padding:5px 2px}.micro-list b{font-size:12px}.micro-list small{font-size:8px}.cover-actions{margin-top:10px;gap:7px}.cover-actions button{font-size:10px;padding:8px 10px;min-height:31px}.notice{margin:6px 0!important;font-size:9px!important}.screen-bottom{display:none}.meta-grid{grid-template-columns:1fr;gap:14px}.panel{padding:17px}.tips-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.tip{padding:8px;gap:5px}.tip-icon{width:26px;height:26px}.tip small{font-size:10px}.touch-controls{display:flex}.footer{margin-top:18px}}
@media(max-width:450px){.intro-row h1{font-size:29px}.intro-row p{font-size:11px}.mode-chip{white-space:normal;text-align:center}.topbar{gap:8px}.brand .eyebrow{font-size:8px}.nav{gap:4px}.nav button{font-size:9px;padding:6px}.screen-cover{background:#14251ebd}.cover-panel{padding:10px}.cover-panel h2{font-size:22px}.micro-list div{padding:3px 2px}.micro-list b{font-size:10px}.micro-list small{font-size:7px}.cover-panel .cover-actions{margin-top:6px}.hud-cell strong{font-size:14px}.tips-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Keep mobile menu fully inside the game view, without cropping its call to action. */
@media(max-width:450px){
  .screen-cover{padding:5px}
  .cover-panel{max-height:calc(100% - 4px);overflow-y:auto;padding:8px 10px}
  .cover-panel h2{font-size:20px;line-height:1;margin:3px 0 4px}
  .cover-panel p{font-size:10px;line-height:1.23;margin:4px 0}
  .cover-panel .micro-list{display:none}
  .cover-actions{margin-top:6px}
  .cover-actions button{font-size:9px;padding:6px 8px;min-height:28px}
  .notice{font-size:9px!important;line-height:1.15!important;margin-top:5px!important}
  .stats-board{gap:3px;margin:6px 0}
  .stat-tile{padding:6px}
  .stat-tile strong{font-size:16px}
}

/* V2: clear food and chasing-hawk meters, with a compact four-cell HUD. */
.hud{justify-content:space-between;gap:6px}.hud-cell{min-width:0;flex:0 1 auto;padding:7px 9px}.hud-cell strong{font-size:23px}.pace-cell,.hunter-cell{width:146px}.hunter-cell strong{font-size:13px;letter-spacing:.025em;line-height:26px;white-space:nowrap}.hunter-bar{background:#4b5550}.hunter-fill{height:100%;background:#b6d6a6;transition:width .13s linear}.hunter-cell.danger .hunter-fill{background:#ffb1a8}.hunter-cell.danger strong{color:#ffded6}
@media(max-width:780px){.hud{gap:4px}.hud-cell{padding:3px 5px}.hud-cell strong{font-size:16px}.hud-cell small{font-size:7px;letter-spacing:0}.pace-cell,.hunter-cell{width:auto;flex:1 1 70px;min-width:65px}.hunter-cell strong{font-size:9px;line-height:17px}.pace-bar{height:5px;margin-top:2px}}
@media(max-width:450px){.hud-cell strong{font-size:13px}.hud-cell small{font-size:6.7px}.hunter-cell strong{font-size:8px}.best-cell{min-width:50px}.pace-cell,.hunter-cell{min-width:60px}}

/* V3 power-up status: sits below the score HUD and stays readable on phones. */
.laser-banner{position:absolute;z-index:3;top:68px;right:10px;display:flex;align-items:center;gap:8px;background:#182c21ed;color:#f5ffe2;border:2px solid #e5f5cf;padding:6px 8px;font-size:10px;letter-spacing:.04em;font-weight:950;box-shadow:3px 3px 0 #243f2a;pointer-events:none;}
.laser-banner strong{font-size:15px;font-variant-numeric:tabular-nums;}
.laser-bar{width:58px;height:7px;background:#4e6550;border:1px solid #b5c69f;}
.laser-bar div{height:100%;width:100%;background:#ebffbe;transition:width .08s linear;}
.tips-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.stats-board{grid-template-columns:repeat(4,minmax(0,1fr));}
@media(max-width:780px){.laser-banner{top:51px;right:7px;padding:4px 5px;font-size:8px;gap:5px}.laser-banner strong{font-size:12px}.laser-bar{width:30px}.tips-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-tile{padding:7px}.stat-tile strong{font-size:18px}}
@media(max-width:450px){.laser-banner{top:46px;right:5px;font-size:7px}.laser-bar{width:22px}.stats-board{gap:3px}.stat-tile{padding:4px}.stat-tile strong{font-size:14px}.stat-tile small{font-size:8px}}
/* V5: three worlds, phone-first controls and map selection. */
.map-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0 6px}
.map-choice{background:#e4e9dc;border:2px solid #9ba998;min-width:0;padding:8px 5px;color:#283428;min-height:53px;text-align:center;cursor:pointer}
.map-choice.chosen{background:#c5dfa5;border-color:#30432e;box-shadow:inset 0 0 0 2px #f1f9e8}
.map-choice b{display:block;font-size:11px;letter-spacing:.03em}
.map-choice small{display:block;font-size:8px;line-height:1.2;margin-top:2px}
.cover-panel{max-height:calc(100% - 10px);overflow-y:auto;overscroll-behavior:contain}
.rotate-tip{display:none;text-align:center;background:#d1deb8;color:#172318;border:2px solid #52634f;padding:8px 12px;margin:0 0 8px;font-size:12px;font-weight:800}
@media(pointer:coarse){
  .touch-controls{display:flex;gap:12px}
  .touch-btn{flex:1;min-height:58px;max-width:190px;border-radius:8px;touch-action:none}
  .nav button{min-height:40px}
}
@media(orientation:portrait) and (pointer:coarse){.rotate-tip{display:block}}
@media(max-width:780px){
  .map-choices{margin:6px 0 3px;gap:3px}
  .map-choice{padding:3px 1px;min-height:36px}
  .map-choice b{font-size:9px}.map-choice small{display:none}
  .cover-panel .map-choices{margin:7px 0 4px}
  .topbar{gap:7px}
}
@media(max-height:540px) and (orientation:landscape){
  .page{padding:6px 10px 22px}
  .intro-row{margin-bottom:7px}
  .intro-row h1{font-size:23px;margin:0}
  .topbar{margin-bottom:4px}
  .topbar .eyebrow{display:none}
  .cover-panel{padding:6px 12px}
  .cover-panel h2{font-size:21px}
  .cover-panel p{font-size:10px;margin:4px 0}
  .map-choice{min-height:32px}
  .cover-panel .micro-list{display:none}
  .screen-cover{padding:3px}
  .touch-controls{margin-top:6px}
  .touch-btn{min-height:40px}
}
/* Keep the entire game and its start button reachable on a landscape phone. */
@media (pointer:coarse) and (orientation:landscape) and (max-height:540px){
  .page{padding:3px 6px 25px}
  .brand-mark{width:29px;height:29px;font-size:16px;border-width:2px;box-shadow:none}
  .brand-title{font-size:15px}
  .nav button{padding:3px 7px;min-height:30px;font-size:9px}
  .intro-row{margin-bottom:3px}
  .intro-row h1{font-size:20px;line-height:1;margin:0}
  .intro-row p{display:none}
  .mode-chip{padding:3px 5px;font-size:8px}
  .game-shell{max-width:calc((100dvh - 124px)*1.777);min-width:320px;margin-inline:auto}
  .game-screen{aspect-ratio:16/9}
  .touch-btn{min-height:38px;max-width:160px;font-size:16px}
  .touch-controls{margin-top:3px}
  .cover-panel{padding:5px 9px;max-width:430px}
  .cover-panel h2{font-size:17px;margin:2px 0 3px}
  .cover-panel p{font-size:9px;line-height:1.2;margin:2px 0}
  .cover-tag{font-size:7px}
  .map-choices{margin:4px 0 2px;gap:3px}
  .map-choice{min-height:25px;padding:2px 1px}
  .map-choice b{font-size:8px}
  .map-choice small{display:none}
  .cover-actions{margin-top:4px;gap:5px}
  .cover-actions button{font-size:9px;padding:4px 7px;min-height:23px}
  .screen-bottom{display:none}
}

/* Final art-and-brand polish (gameplay mechanics unchanged). */
.brand-byline{display:inline-block;margin-top:3px;color:#cce6a4;font-size:10px;font-weight:950;letter-spacing:.15em;text-transform:uppercase}
.creator-stamp{font-weight:1000;color:#bddeb1;text-transform:uppercase;letter-spacing:.13em}
.cover-credit{display:inline-block;margin:3px 0 0;padding:3px 7px;background:#e1ead9;color:#344532;border-left:3px solid #596f4c;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.12em}
.cover-panel{background:linear-gradient(150deg,#f8f9f1,#e9efe3)}
.cover-panel h2{text-wrap:balance}
.score-item:first-child{background:#e6efdb;margin:0 -5px;padding:11px 5px}
.score-item:first-child .score-rank{color:#3b6739}
.dialog{background:linear-gradient(145deg,#fcfff6,#e8eee4);border-color:#6a8467}
.dialog input{border-color:#667d65}
@media(max-width:780px){.brand-byline{font-size:8px}.cover-credit{font-size:8px;padding:2px 5px}}
@media (pointer:coarse) and (orientation:landscape) and (max-height:540px){.brand-byline{display:none}.cover-credit{font-size:7px;margin:1px 0 0}}
