#penangLife{display:none;position:fixed;left:max(14px,env(safe-area-inset-left));top:max(61px,calc(env(safe-area-inset-top) + 54px));min-height:37px;align-items:center;gap:7px;max-width:calc(100vw - 28px);padding:5px 11px;border-radius:14px;background:#fbf3e3;color:#302f26;box-shadow:var(--shade);font-size:12px;font-weight:700}
#penangLife{padding-block:0;gap:2px}
#penangLife button{display:inline-flex;gap:6px;align-items:center;min-height:37px;padding:0 3px;border:0;background:transparent;box-shadow:none;color:inherit;font:inherit}
#lifeForecast,#lifeWeather{min-width:0}
#lifeWeather{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#lifeClock,#lifeCoins{flex:none}
#penangLife #lifeForecast[hidden]{display:none}
#penangLife:has(#lifeForecast[hidden]) #lifeCoins{border:0;padding:0}
#penangLife b{padding-left:7px;border-left:1px solid #c9bba5;color:#69441d}
.playing:not(.shifting) #penangLife:not([hidden]){display:flex}
body:has(.sheet:not([hidden])) #penangLife,body:has(.sheet:not([hidden])) #tableActions,body:has(.sheet:not([hidden])) #cityNotice,body:has(.sheet:not([hidden])) #streetChatter{display:none!important}
body:has(.hl-counter:not([hidden])) #act,body:has(.hl-counter:not([hidden])) #stick,body:has(.hl-counter:not([hidden])) #shopActions,body:has(#lifeGuide:not([hidden])) #shopActions{visibility:hidden}
#cityNotice,#streetChatter{position:fixed;pointer-events:none;background:#203e39;color:#fff8df;box-shadow:var(--shade);font-size:13px;font-weight:700;line-height:1.3;border-radius:12px;padding:7px 10px}
#cityNotice{left:50%;bottom:142px;transform:translateX(-50%);max-width:min(90vw,460px);text-align:center}
#streetChatter{left:0;top:0;transform:translate(-50%,-100%);width:max-content;max-width:min(220px,62vw);background:#fff6da;color:#302d24;border-bottom-left-radius:2px;text-align:center}
#tableActions{position:fixed;z-index:3;right:max(15px,env(safe-area-inset-right));bottom:calc(92px + env(safe-area-inset-bottom));display:grid;justify-items:center;gap:3px;width:max-content;max-width:min(62vw,290px);pointer-events:none}
#tableActions button{pointer-events:auto;display:inline-flex;align-items:center;gap:9px;justify-content:center;min-height:46px;padding:9px 16px;border:2px solid #f7eacc;border-radius:30px;background:#244c40;color:white;box-shadow:0 2px 8px #18291c6b;font-size:15px}
#servedDishName{max-width:100%;border-radius:14px;padding:4px 10px;background:#fffbef;color:#352a20;text-align:center;font-size:13px;font-weight:700;box-shadow:0 1px 5px #28201140}
body:not(.touch) #tableAction:enabled::after{content:'E';padding:1px 5px;border:1px solid #c1d5ca;border-radius:4px;font-size:12px}
.at-hawker-table #act[data-label="Stand up"]{background:#f8f1df;color:#45372d;border:1px solid #9b8c73}
.at-hawker-table #act[data-label="Stand up"] kbd{display:none}
.sheet.hl-counter,.sheet.hl-guide{z-index:6;bottom:max(14px,env(safe-area-inset-bottom));width:min(452px,calc(100% - 24px));max-height:calc(100dvh - 38px);overscroll-behavior:contain}
.sheet.hl-counter{gap:0;padding:0;background:transparent;isolation:isolate}
.hl-head,.hl-foot{flex:none;padding:13px 17px;background:#fff8e9}
.hl-head p,.hl-foot small,#weatherReport,#eventSchedule,#lifeBalance{font-size:13px;line-height:1.35;color:#534d41}
.hl-head p{margin-top:5px}
.hl-head small{color:#635d50}
.hl-foot{display:grid;gap:7px;padding-bottom:15px}
.hl-view{width:100%;height:clamp(125px,27dvh,225px);min-height:0;flex:none;position:relative;touch-action:none;user-select:none}
.hl-view button,.hl-view strong,.hl-view span,.hl-view b{position:absolute;z-index:1;border-radius:11px;background:#fffaebeb;color:#2e382e;padding:3px 8px;font-size:12px}
#dishView button{top:calc(50% - 22px);background:#fff8e9dd;border-radius:50%;width:40px;min-height:44px;font-size:23px}
#dishTurnL,#jobCount{left:9px}#dishTurnR,#jobTime{right:9px}
#mealName{bottom:7px;left:50%;transform:translateX(-50%);white-space:nowrap;max-width:92%;overflow:hidden;text-overflow:ellipsis}
#jobCount,#jobTime{top:9px}
#dishList,#cityEventList{display:grid;gap:5px}
#dishList{max-height:clamp(100px,24dvh,166px);overflow:auto;overscroll-behavior:contain}
#dishList button,.hl-guide article,.hl-guide .hl-event{display:flex;align-items:center;gap:8px;justify-content:space-between;text-align:left;color:#352f27;border-radius:10px;padding:7px 10px;background:#f1e8d8}
#dishList button{min-height:40px}
#dishList .mealStamp{display:block;color:#6b5426;font-size:.74rem;line-height:1.25}
#dishList button b,.hl-guide button small{white-space:nowrap;color:#536249}
#dishList button[aria-pressed=true]{background:#dce7d4;box-shadow:inset 0 0 0 2px #69876b}
#mealWallet{font-size:12px;color:#574b35}
#mealReal{min-height:42px;display:grid;place-items:center;background:#0b654b;color:white;border-radius:10px;text-decoration:none;font-weight:700}
#tableMenu button:disabled,#tableActions button:disabled{opacity:.66}
.hl-guide h3{margin:6px 0 0;font-size:16px}
.hl-guide article{flex-wrap:wrap;gap:5px}.hl-guide article strong{flex:1 1 100%;font-size:14px}
.hl-guide article button,.hl-guide .hl-event{min-height:40px;background:#e4eadb;border-radius:8px;padding:6px 10px;color:#214536}
.hl-guide .hl-event span{font-size:12px}
#jobMeter{width:100%;height:6px;accent-color:#986037}#jobValue{font-size:13px}#jobMessage{min-height:1.4em;font-size:14px;color:#4d493e}
#jobLanes{display:flex;gap:7px}#jobLanes button{flex:1;padding:12px 8px;border-radius:12px;color:white;background:#376752}
#jobLanes button{touch-action:none;user-select:none;-webkit-touch-callout:none}#jobStart,#mealOrder{min-height:44px}
@media(max-width:620px){
  #shopActions{top:calc(101px + env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));max-width:none;flex-wrap:nowrap;gap:3px}
  #shopActions :is(button,a){flex:1;min-width:0;min-height:44px;padding:3px 4px;font-size:12px;line-height:1.14;text-align:center}
  body:has(#shopActions:not([hidden])) #settling{top:calc(164px + env(safe-area-inset-top))}
}
@media(max-width:620px){#penangLife{top:max(58px,calc(env(safe-area-inset-top) + 52px));font-size:11px;gap:4px;min-height:31px}#cityNotice{bottom:199px}.sheet.hl-guide{max-height:calc(100dvh - 72px)}}
@media(max-height:550px){.sheet.hl-counter{max-height:95dvh;bottom:5px}.hl-view{height:110px}.hl-head,.hl-foot{padding:7px 12px}#dishList{max-height:78px}}
@media(prefers-reduced-motion:reduce){.hl-counter *{scroll-behavior:auto}}
.keys-balance{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;text-align:left}
#keysPanel{width:min(430px,calc(100% - 24px));max-height:calc(100dvh - 38px)}
.keys-balance{background:#244f47;color:#fff5dc;font-size:15px}.keys-balance strong{font-size:22px}
#keyListings{display:grid;gap:9px}
.keys-item{display:grid;grid-template-columns:98px 1fr;gap:8px 13px;align-items:center;background:#f3ebdb;padding:10px;border:1px solid #dbceba;border-radius:12px}
.keys-item img{width:98px;height:73px;object-fit:cover;border-radius:7px}
.keys-item h3{font-size:17px;line-height:1.15;margin:0;color:#243d33}.keys-item p{font-size:14px;line-height:1.25;margin:4px 0 0;color:#544b3d}
.keys-item button,#keysJobs{min-height:43px;padding:8px 14px;border-radius:9px;background:#33674e;color:#fff8e6;font-weight:700}
.keys-item button{grid-column:1/-1}.keys-item button:disabled{background:#e0d7c6;color:#5b544b}
#keysJobs{background:#e2eadf;color:#264e40}#keysPanel>small{color:#5e5748;line-height:1.3}
#keysMessage{margin:0;color:#31513d;font-size:14px}#keysMessage:empty{display:none}
@media(max-height:490px){#keysPanel{bottom:6px;max-height:calc(100dvh - 12px)}.keys-item{grid-template-columns:62px 1fr}.keys-item img{width:62px;height:44px}}

/* Centre the meal and its action even on a tall phone with the compass open. */
.sheet#mealBites{bottom:auto;top:50%;transform:translate(-50%,-50%);width:min(400px,calc(100% - 28px));max-height:calc(100dvh - 32px)}
#mealBites .hl-head{padding:16px 20px 12px}
#biteVenue{font-size:12px;font-weight:700;color:#73583b}
#biteView{height:clamp(140px,32dvh,280px);cursor:pointer;touch-action:manipulation}
.bite-footer{text-align:center;padding:13px 18px 16px;gap:8px;justify-items:center}
#biteMarks{display:flex;gap:5px;align-items:center;justify-content:center}
#biteMarks i{display:block;width:25px;height:4px;border-radius:8px;background:#d6cbb5}
#biteMarks i.eaten{background:#755135}
#biteStatus{font-size:14px;line-height:1.35;color:#483d30}
#biteNext{min-height:44px;width:min(100%,270px);touch-action:manipulation}
@media(max-height:470px){#mealBites .hl-head,.bite-footer{padding:6px 14px}#biteView{height:clamp(80px,26dvh,125px)}.bite-footer{gap:4px}}
@media(max-height:420px){#tableActions{bottom:calc(68px + env(safe-area-inset-bottom))}}
#guestGelatoOrder{border:0;padding:0;margin:0 0 6px;display:flex;flex-direction:column;gap:6px;min-width:0}
#guestGelatoOrder legend{font-weight:750;color:#345446;margin-bottom:5px}
.servingOptions{display:flex;gap:5px;min-width:0}
.servingOptions button{flex:1;min-height:40px;padding:6px;border:1px solid #b9b89f;border-radius:9px;background:#f4eedf;color:#4c4538;font-weight:650}
.servingOptions button[aria-pressed=true]{background:#215646;color:#fffaf0;border-color:#215646}
.scoopSlots button{font-size:12px;text-align:left;line-height:1.2}
.scoopSlots button small{display:block;font-weight:500;margin-top:3px}
#tableMenu:has(#guestGelatoOrder:not([hidden])) .hl-foot{overflow-y:auto;min-height:0}
body.gelato-dining> :not(#stage):not(#gelatoDiner):not(#fade){visibility:hidden!important}

#economyDialog{width:min(420px,calc(100vw - 36px));box-sizing:border-box;border:1px solid #ccbd9f;border-radius:20px;padding:22px;color:#302c22;background:#fff9eb;box-shadow:0 14px 64px #201b1740;max-height:88dvh;overflow:auto}
#economyDialog::backdrop{background:#16282180}
#economyDialog header{display:flex;justify-content:space-between;align-items:center;gap:16px}
#economyTitle{font:700 1.45rem/1.15 Georgia,serif;color:#244b3e;margin:0}
#economyDismiss{border:0;border-radius:50%;width:42px;height:42px;font-size:1.45rem;flex:none}
#economyDialog p,.wallet-work p,.wallet-extras p{line-height:1.45}
#economyActions{display:grid;gap:8px}
#economyActions button,.wallet-work button{padding:12px;border:1px solid #b9b69f;border-radius:10px;background:#eeeddb;color:#234c3c;font:inherit;font-weight:700}
#economyActions .primary{color:white;background:#235645;border-color:#235645}
#economyActions button:disabled{opacity:.55}
.wallet-work,.wallet-extras{margin:12px 0;padding:12px 14px;border:1px solid #d2c9b0;border-radius:10px;background:#fbf6ea}
.wallet-work p,.wallet-extras p{margin:6px 0}
.wallet-extras summary{cursor:pointer;font-weight:700}

#shopActions [data-gelato-catering],.gelatoCatering,#mealCatering,[data-gelato-catering]:focus-visible{color:#21583e}
.gelatoCatering{display:flex;flex-direction:column;align-items:center;gap:3px;border:1px solid #b3c6b4;border-radius:12px;padding:9px;text-decoration:none;font-weight:700}
.gelatoCatering small{font-size:12px;font-weight:500}
#mealCatering:not([hidden]){display:inline-flex;padding:9px;font-weight:700}
#atlasMembers a[data-gelato-catering]{display:inline-flex;align-items:center;padding:8px;color:#245244;font-weight:700}

#penangLife #lifeStamina{color:#1e5b45;border-left:1px solid #c9bba5;padding-inline:7px;min-height:42px;flex-wrap:wrap;gap:4px}
#staminaBolts{display:inline-flex;gap:1px}#staminaBolts i{font:bold 19px/1 system-ui;font-style:normal}
#staminaBolts[data-left="0"] i,#staminaBolts[data-left="1"] i:last-child{color:transparent;-webkit-text-stroke:1px #1e5b45}
#lifeStamina small{background:#e4ecdf;border-radius:8px;padding:2px 5px;color:#244e3c}
#lifeStamina [hidden]{display:none}#economyDescription{white-space:pre-line;line-height:1.6}
@media(max-width:650px){#penangLife{flex-wrap:wrap;max-width:min(72vw,330px)}#penangLife #lifeStamina{min-height:32px}#staminaBolts i{font-size:15px}}

#quietAction,#quietStand{font:inherit;font-weight:600;font-size:1rem;line-height:1.25;cursor:pointer;min-height:44px;border:1px solid #d4c8ac;border-radius:2rem;background:#fbf6e9;color:#254e40;padding:.7rem 1.2rem}
#quietAction{position:fixed;z-index:12;bottom:calc(env(safe-area-inset-bottom) + 86px);left:50%;transform:translateX(-50%);max-width:70vw}
#quietOverlay{position:fixed;inset:0;z-index:22;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:0 16px calc(env(safe-area-inset-bottom) + 24px);gap:12px}
#quietOverlay[hidden],#quietStand[hidden],#quietAction[hidden]{display:none}
#quietStand{pointer-events:auto;background:#f5f0e3dd;color:#365348}
#quietCaption{margin:0;max-width:34em;text-align:center;color:#fffaf0;background:#193c34b8;border-radius:.65rem;padding:.44rem .85rem;font:italic 1.04rem/1.5 Georgia,serif;opacity:0;transition:opacity 1s}
#quietCaption.visible{opacity:1}
.quiet-note{padding:.7rem .85rem;margin:.5rem 0;background:#f3ead4;border-left:3px solid #7c9a83}.quiet-note p{margin:0 0 .4rem}.quiet-note button{margin-left:.8rem}.quiet-note~label select{display:block;max-width:100%;margin:.45rem 0}
body:is(.quiet-idle,.quiet-sitting) :is(#stick,#act,#jump,#tools,#secondaryTools,#who,#firstWalk,#settling,#firstWalkTasks,#cameraRelief,#touristSteps,#paperQuest,#streetMemo,#quietAction){opacity:0;transition:opacity 1.4s}
body.quiet-sitting :is(#tools,#secondaryTools,#who,#penangLife,#act,#jump,#streetMemo,#tableActions,#quietAction,#cameraRelief,#firstWalk,#settling,#here,#toast,#streetChatter,#cityNotice,#walkGuide,#where,#packingList){opacity:0!important;pointer-events:none;transition:opacity 1.4s}
body.quiet-sitting #stick{opacity:0;touch-action:none}body.quiet-sitting #aim{visibility:hidden}
@media(prefers-reduced-motion:reduce){#quietCaption,body.quiet-idle *,body.quiet-sitting *{transition-duration:.01s!important}}
