/* LAST FROG — One more night. */
:root{--lf-orange:#ff6b35;--lf-lime:#a5ed48;--lf-ink:#14211a;--lf-cream:#f5eed8;--lf-muted:#bfc8b6;--lf-panel:#19291ff5;--lf-border:#a5ed4833}
html,body{background:var(--lf-ink);color:var(--lf-cream)}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--lf-lime);outline-offset:4px}
.brand{font-weight:900;letter-spacing:1.5px;color:var(--lf-cream);gap:12px}
.brand-avatar{display:block;flex-shrink:0;object-fit:cover;border-radius:8px;border:1px solid #ff6b3566}
.brand.compact{font-size:16px;letter-spacing:1px}.brand.compact small{font:12px monospace;letter-spacing:1px;margin-top:3px;color:var(--lf-lime)}
.start-screen{display:grid;grid-template-rows:auto 1fr auto;gap:0;padding:28px clamp(22px,5vw,80px) 22px;background:var(--lf-ink);border-top:5px solid var(--lf-orange)}
.start-head{padding:0;gap:20px;width:100%;max-width:1280px;margin:auto;align-items:center}
.start-head .brand{font-size:20px}.edition{display:inline-flex;flex-shrink:0;color:var(--lf-lime);font:bold 14px monospace;letter-spacing:1px;padding:10px 14px;border:1px solid #a5ed4859;border-radius:4px}
.start-stage{width:100%;max-width:1160px;margin:auto;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(30px,7vw,110px);padding:30px 0 36px}
.start-copy{margin:0;max-width:none;min-width:0}.eyebrow{color:var(--lf-orange);font:bold 13px monospace;letter-spacing:2px}
h1.lastfrog-title{font-family:Impact,Haettenschweiler,'Arial Narrow','Arial Black',sans-serif;font-size:clamp(96px,11vw,152px);line-height:.87;letter-spacing:-2px;margin:20px 0 22px;font-weight:900}
h1.lastfrog-title em{font-style:normal;color:var(--lf-lime)}
.start-copy .start-tagline{color:var(--lf-cream);font-size:clamp(24px,2.7vw,34px);line-height:1.1;font-weight:800;letter-spacing:-.7px;margin:0 0 14px}
.start-copy .start-intro{font-size:16px;line-height:1.6;color:var(--lf-muted);margin:0 0 26px}
.start-mascot{margin:0;width:100%;max-width:530px;justify-self:end;transform:rotate(3deg);border-radius:7px;overflow:hidden;box-shadow:12px 12px 0 #080f0b;border:2px solid #080f0b;background:var(--lf-orange)}
.start-mascot img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.primary{background:var(--lf-orange);color:var(--lf-ink);border-color:var(--lf-orange);font-weight:900;letter-spacing:.8px;border-radius:4px;box-shadow:none}
.primary:hover{background:#ff885b;border-color:#ff885b}.primary:disabled{opacity:.6}
.start-actions .primary{min-height:56px;width:min(100%,360px);padding:18px 22px;text-align:left;gap:16px;font-size:15px}
.start-secondary{display:flex;flex-wrap:wrap;gap:4px 25px;margin-top:8px}.start-secondary .text-button{font-size:14px;padding:9px 0;text-align:left;min-height:40px}#start-cloud{margin-top:0}
.text-button{color:var(--lf-muted)}.text-button:hover{color:var(--lf-lime)}.save-note{font-size:12px;line-height:1.5;color:#a4b09f;max-width:380px;margin-top:6px}
.start-bottom{position:relative;inset:auto;align-items:center;border-top:1px solid #afc99a29;padding-top:16px;width:100%;max-width:1280px;margin:0 auto;gap:18px}
.start-bottom p{font:bold 12px monospace;letter-spacing:.6px;margin:0;color:var(--lf-muted)}.start-bottom b{color:var(--lf-orange);margin:0 8px}.no-finish{font-size:13px;color:#a4b09f}.start-bottom .text-button{font-size:14px;padding:8px 0;white-space:nowrap}.start-bottom .text-button span{border-color:#a5ed4859;color:var(--lf-lime)}
/* Keep the play surface compact; color carries the identity. */
.day-chip,.resource,.vitals,.hotbar button,.inventory-btn,.icon-btn,.context,.notice{background:var(--lf-panel);border-color:var(--lf-border)}
.game-head{background:linear-gradient(#101b15ee,#101b1590,transparent)}.day-chip svg{color:var(--lf-orange)}.day-track i{background:var(--lf-orange)}
.resource svg,.vital:nth-child(2)>span{color:var(--lf-lime)}.resource:hover,.icon-btn:hover{background:#2a3f28}
.objective{border-left-color:var(--lf-orange)}.objective .tiny-label{color:#ffb18e}.objective-progress i,.meter.hunger i,.crop-progress i{background:var(--lf-lime)}
.hotbar button:hover,.hotbar button.active{border-color:var(--lf-lime);background:#293d22f5}.hotbar button.active i,.hotbar button.active>span:last-child{color:var(--lf-lime)}
.meter.health i{background:var(--lf-orange)}.vital:first-child>span{color:#ff9b72}.meter.stamina i{background:#80cec0}
#craft,dialog{background:#17261eee;border-color:#a5ed4844}#craft{border-top:3px solid var(--lf-orange)}dialog{border-top:3px solid var(--lf-orange)}dialog .tiny-label{color:#ffb18e}
.dialog-top h2,#craft h2{color:var(--lf-cream)}.craft-tabs button.selected{color:var(--lf-lime);border-bottom-color:var(--lf-lime)}
.modal-brand{display:flex;align-items:center;gap:9px;min-height:30px}.modal-brand img{border-radius:5px;flex-shrink:0}.modal-brand .tiny-label{font-size:12px;letter-spacing:.6px}.modal-ticker{margin-left:auto;font:12px monospace;color:var(--lf-lime);white-space:nowrap}
.recipe,.journey-card,.outfit-card{background:#213326;border-color:#a5ed4829}.recipe:hover{background:#2b4029}.recipe-icon,.help-list b{color:#ffad82}#craft .recipe-title small{color:#e9cda7}
.journal-tabs button,dialog .secondary,.build-tools button,.journey-card button,.outfit-card button,.inventory-table button,.name-row button{background:#30452c;border-color:#a5ed4833;color:var(--lf-cream)}
.journal-tabs .selected{background:var(--lf-lime);color:var(--lf-ink);font-weight:700}dialog .secondary:hover,.journey-card button:hover,.outfit-card button:hover,.build-tools button:hover{background:#425937}.outfit-card button:disabled{background:#253329;color:#9ead97}
.audio-setting input{accent-color:var(--lf-lime)}.cloud-state{color:var(--lf-lime)!important}.stats strong{color:var(--lf-lime)}.tiny-label{letter-spacing:1.4px}
#save-status{border-color:#a5ed483d;background:#192b21ed;color:#d8e9c4}#save-status[data-state=error],#save-status[data-state=conflict]{color:#ffbd9f;border-color:#ff6b3588;background:#3b2b20ed}
#build-banner{border-color:#a5ed4866}#placement-reason{color:#d5eab5}#placement-reason.blocked{color:#ffb899}#place-mobile{background:var(--lf-lime)!important;color:var(--lf-ink)!important}
#fishing-status.bite{background:var(--lf-lime);border-color:#e3ffc2;color:var(--lf-ink)}#fishing-status.bite:after{background:#2d5423}
#raid-alert{border-color:var(--lf-orange);background:#49271fed;color:#ffe0c8}.map-panel .map-actions button{border-color:var(--lf-border)}
@media(min-width:701px) and (max-height:700px){
 .start-screen{padding-top:18px;padding-bottom:14px}.start-stage{padding:20px 0;gap:45px;max-width:980px}h1.lastfrog-title{font-size:92px;margin:14px 0 16px}.start-copy .start-tagline{font-size:25px}.start-copy .start-intro{margin-bottom:18px}.start-mascot{max-width:390px}.start-bottom{padding-top:8px}
}
@media(max-width:700px){
 .start-screen{padding:calc(17px + var(--safe-top)) 22px calc(14px + var(--safe-bottom));grid-template-rows:auto 1fr auto}.start-head{gap:10px}.start-head .brand{font-size:16px;letter-spacing:.5px;gap:8px}.start-head .brand-avatar{width:32px;height:32px}.edition{font-size:12px;letter-spacing:.4px;padding:8px 9px}
 .start-stage{grid-template-columns:1fr 46%;gap:0 16px;max-width:520px;padding:24px 0 22px}.start-copy{display:contents}.start-copy .eyebrow{grid-column:1/-1;font-size:12px;letter-spacing:2px;margin-bottom:18px}
 h1.lastfrog-title{grid-column:1;grid-row:2;font-size:clamp(62px,18vw,106px);line-height:.92;letter-spacing:-1px;margin:0 0 18px}.start-mascot{grid-column:2;grid-row:2;max-width:240px;width:100%;margin:0 0 18px;box-shadow:5px 5px 0 #080f0b;transform:rotate(3deg);border-width:1px}
 .start-copy .start-tagline{grid-column:1/-1;font-size:26px;margin:8px 0 10px}.start-copy .start-intro{grid-column:1/-1;font-size:16px;margin:0 0 22px}.start-actions{grid-column:1/-1}.start-actions .primary{width:100%;min-height:56px}.save-note{grid-column:1/-1;max-width:none;margin-top:6px}
 .start-bottom{gap:10px;padding-top:12px;flex-wrap:wrap}.start-bottom p{font-size:11px;letter-spacing:0}.start-bottom b{margin:0 4px}.start-bottom .text-button{font-size:13px}.start-bottom .text-button span{margin-left:4px}.no-finish{display:none}
 .goal-compact{border-left-color:var(--lf-orange)}.brand.compact{display:none}
}
@media(pointer:coarse){#action-touch{background:#355329ed;border-color:#a5ed4899;color:#effadc}#jump-touch{background:#2b574bed;border-color:#80cec099}#stick{background:#a5ed4899}}
/* Prevent selection handles and native long-press menus over the game UI. */
#app,#app *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#app input,#app textarea,#app [contenteditable="true"]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
@media(prefers-reduced-motion:reduce){.primary{transition:none}.primary:hover{transform:none}}
