/* A single scene: the street above a working counter, with no workbench card. */
.game.hands-on-game.immersive-counter {
  height:100dvh; min-height:0; max-width:680px; overflow:hidden;
  grid-template-rows:auto auto minmax(0,1fr) auto;
}
.immersive-counter .topbar { padding:8px 15px 3px; gap:10px; }
.immersive-counter .brand { font-size:1.02rem; max-height:42px; line-height:1.12; }
.immersive-counter .cash small { font-size:.53rem; letter-spacing:.04em; }
.immersive-counter .cash strong { font-size:1.5rem; }
.immersive-counter .date { overflow:visible; }
.immersive-counter .shift-control {
  border:0; background:none; padding:3px 2px; min-height:44px; width:100%;
  font-size:.66rem; letter-spacing:.015em; white-space:normal; line-height:1.3;
}
.immersive-counter .shift-control small { font-size:.69rem; margin-top:2px; }
.immersive-counter .shift-control small::after { content:' ⌄'; color:var(--muted); }
.immersive-counter .utility { min-height:36px; padding:0 12px 4px; gap:4px; }
.immersive-counter .utility > span { font-size:.7rem; white-space:nowrap; }
.immersive-counter #journey-strip { display:contents; }
.immersive-counter .journey-strip { display:contents; }
.immersive-counter .journey-strip button {
  border:0; background:transparent; border-radius:6px; padding:4px 5px; min-height:32px;
  font-size:.7rem; display:flex; align-items:center; gap:4px; min-width:0; white-space:nowrap;
}
.immersive-counter .journey-strip button:first-child { border-left:0; }
.immersive-counter .reserve-label { font-size:.62rem; color:var(--muted); }
.immersive-counter .reserve-values { font-size:.72rem; }
.immersive-counter .reserve-inflation { display:none; }
.immersive-counter #world-screen:not([hidden]) { height:100%; min-height:0; overflow:hidden; gap:0; }
.immersive-counter .owner-world .scene-wrap {
  height:auto; min-height:280px; max-height:none; flex:1 1 0; border:0;
}
.immersive-counter .world-top { top:9px; left:12px; right:12px; align-items:center; }
.immersive-counter .world-top button {
  border:0!important; box-shadow:none; border-radius:10px; min-height:40px;
  padding:6px 9px; font-size:.8rem; background:var(--surface)!important;
}
.immersive-counter .world-top .location-pill { max-width:calc(100% - 143px); overflow:hidden; text-overflow:ellipsis; }
.immersive-counter .world-tools { display:flex; gap:5px; align-items:center; }
.immersive-counter #pause-button { min-width:40px; width:40px; display:grid; place-items:center; }
.immersive-counter #map-button { min-width:44px; }
.immersive-counter #neighborhood-label {
  position:absolute!important; top:57px; bottom:auto; left:12px; right:auto;
  max-width:calc(100% - 24px)!important; width:max-content; min-height:28px; max-height:28px;
  padding:5px 9px; margin:0; font-size:.67rem; border:0; border-radius:7px;
  background:var(--surface); color:var(--muted); line-height:1.35;
}
.immersive-counter .counter-speech { top:99px; left:13px; max-width:65%; padding:8px 11px; border-radius:12px 12px 12px 3px; }
.immersive-counter .counter-speech small { font-size:.54rem; }
.immersive-counter .counter-speech p { font-size:.92rem; line-height:1.25; -webkit-line-clamp:2; }
.immersive-counter #counter-event { top:178px; min-height:36px; padding:7px 10px; font-size:.74rem; }
.immersive-counter .owner-world .operate { display:none; }
.immersive-counter .scene-wrap #counter-inventory {
  position:absolute; top:54%; left:14px; right:14px; display:flex; align-items:center;
  justify-content:space-between; gap:12px; margin:0; min-height:44px; z-index:5;
}
.immersive-counter #counter-inventory button {
  min-height:44px; border:0; box-shadow:0 2px 0 #203e2714; border-radius:7px;
  background:#f8efd7; color:#2e4b37; padding:5px 10px; font-size:.78rem;
}
.immersive-counter #counter-inventory small { display:block; font-size:.62rem; color:#5c6b4c; font-weight:400; line-height:1.25; }
.immersive-counter #counter-inventory .counter-price { font:1.15rem Georgia,serif; padding-inline:12px; }
.immersive-counter #counter-inventory .counter-price small { font:.6rem system-ui,sans-serif; margin-top:1px; }
.immersive-counter #counter-inventory .counter-recipe { display:flex; align-items:center; gap:5px; }
.immersive-counter .scene-wrap #hands-on {
  position:absolute; inset:63% 5% 5px; padding:0; pointer-events:none; z-index:4;
}
.immersive-counter .touch-station {
  height:100%; min-height:0; max-width:540px; width:100%; margin:0 auto; padding:0;
  border:0; border-radius:0; box-shadow:none; background:transparent; color:#fff8e1;
  grid-template-rows:34px minmax(56px,1fr) 36px; gap:0;
}
.immersive-counter .touch-caption {
  align-self:start; justify-self:center; width:max-content; max-width:100%; min-height:0;
  padding:0 8px; display:grid; grid-template-columns:auto auto; column-gap:8px; text-align:center;
  color:#fff7df;
}
.immersive-counter .touch-caption h2 { margin:0; font:650 .91rem/1.25 system-ui,sans-serif; letter-spacing:0; }
.immersive-counter .touch-caption p { grid-column:1/-1; margin:2px 0 0; font-size:.7rem; line-height:1.2; color:#f5e7bf; }
.immersive-counter .touch-step { font:600 .62rem/1.5 system-ui,sans-serif; color:#e3d4ab; }
.immersive-counter .touch-surface { min-height:56px; overflow:visible; }
.immersive-counter .touch-art { height:100%; }
.immersive-counter .touch-art svg { width:100%; height:100%; min-height:0; max-height:none; max-width:none; }
.immersive-counter .touch-footer { min-height:36px; gap:8px; padding:0 3px; }
.immersive-counter .touch-progress { height:3px; background:#ead8a933; border-radius:3px; }
.immersive-counter .touch-progress span { background:#f3d25c; }
.immersive-counter .touch-readout { color:#f2e4b8; font-size:.62rem; }
.immersive-counter .touch-alternative {
  min-height:36px; font-size:.68rem!important; color:#fff2cb!important;
  padding:3px 6px!important; text-underline-offset:3px;
}
.immersive-counter .gesture-working .touch-caption p { opacity:.45; }
.immersive-counter .counter-idle-actions {
  position:absolute; top:76%; bottom:auto; left:12%; right:12%; z-index:4;
  display:flex; justify-content:center; gap:8px; margin:0;
}
.immersive-counter .counter-idle-actions button { min-height:48px; padding:10px 20px; font-size:.9rem; border-radius:12px; }
.immersive-counter .counter-idle-actions button.secondary,
.immersive-counter .counter-idle-actions button:disabled { display:none; }
.immersive-counter #counter-idle-caption { position:absolute; top:66%; left:10%; right:10%; text-align:center; margin:0; color:#fff0cd; font:1.05rem/1.3 Georgia,serif; }
.immersive-counter .touch-active #counter-idle-caption { display:none; }
.immersive-counter .touch-active .counter-idle-actions { display:none; }
.immersive-counter .touch-caption:not(:has(.touch-step)) h2 { grid-column:1/-1; }
.immersive-counter #counter-stations {
  position:static; margin:0; padding:6px 12px; min-height:54px; gap:5px;
  background:var(--paper); border-top:1px solid var(--line); grid-template-columns:repeat(4,minmax(0,1fr));
}
.immersive-counter #counter-stations button {
  border:0; border-radius:10px; background:transparent; color:var(--muted); min-height:42px;
  padding:5px; box-shadow:none; position:relative;
}
.immersive-counter #counter-stations button[aria-pressed=true] { color:var(--ink); background:var(--surface); }
.immersive-counter #counter-stations button[aria-pressed=true]::after { content:''; position:absolute; bottom:2px; left:40%; right:40%; height:2px; background:var(--company-accent,#edce6f); border-radius:2px; }
.immersive-counter #counter-stations b { font-size:.82rem; font-weight:600; }
.immersive-counter #counter-stations small { display:none; }
.immersive-counter .bottom-nav { border-top:1px solid var(--line); }
.immersive-counter .bottom-nav button { min-height:48px; font-size:.69rem; gap:2px; }
.immersive-counter .bottom-nav svg { width:18px; height:18px; }
.immersive-counter .toast { bottom:calc(113px + var(--counter-safe-bottom,env(safe-area-inset-bottom))); left:20px; right:20px; }
.shift-speeds { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin:15px 0; }
.shift-speeds button { min-height:46px; padding:8px 4px; }
.shift-speeds [aria-pressed=true] { background:var(--company-brand,#476b36); color:#fff8e4; }
@media(max-width:360px) {
  .immersive-counter .topbar { padding-inline:11px; gap:6px; }
  .immersive-counter .brand { font-size:.89rem; }
  .immersive-counter .cash strong { font-size:1.3rem; }
  .immersive-counter .utility > span { font-size:.58rem; }
  .immersive-counter .reserve-label { font-size:.54rem; }
  .immersive-counter #counter-inventory { gap:5px; }
  .immersive-counter #counter-inventory button { padding-inline:7px; }
}
@media(max-height:700px) {
  .immersive-counter .touch-station { grid-template-rows:31px minmax(48px,1fr) 34px; }
  .immersive-counter .touch-caption h2 { font-size:.82rem; }
  .immersive-counter .touch-caption p { font-size:.63rem; }
  .immersive-counter .touch-footer { min-height:34px; }
  .immersive-counter .counter-speech { top:95px; }
  .immersive-counter .counter-speech p { font-size:.8rem; }
}
@media(max-height:620px) {
  .game.hands-on-game.immersive-counter { height:auto; min-height:100dvh; overflow:visible; }
  .immersive-counter #world-screen:not([hidden]) { height:auto; overflow:visible; }
  .immersive-counter .owner-world .scene-wrap { height:390px; min-height:390px; flex:none; }
}
.text-large .game.hands-on-game.immersive-counter { height:auto; min-height:100dvh; overflow:visible; }
.text-large .immersive-counter #world-screen:not([hidden]) { height:auto; overflow:visible; }
.text-large .immersive-counter .topbar { grid-template-columns:1fr 1fr; }
.text-large .immersive-counter .date { grid-column:1/-1; grid-row:2; }
.text-large .immersive-counter .shift-control { font-size:.8rem; }
.text-large .immersive-counter .utility { flex-wrap:wrap; }
.text-large .immersive-counter .utility > span { flex-basis:100%; }
.text-large .immersive-counter .owner-world .scene-wrap { height:680px; min-height:680px; flex:none; }
.text-large .immersive-counter .touch-station { height:100%; min-height:0; grid-template-rows:64px minmax(90px,1fr) 48px; }
.text-large .immersive-counter .touch-caption h2 { font-size:.95rem; }
.text-large .immersive-counter .touch-caption p { font-size:.8rem; }
.text-large .immersive-counter .touch-alternative { font-size:.8rem!important; min-height:44px; }
.text-large .immersive-counter #counter-inventory button { font-size:.75rem; }
.text-large .immersive-counter #counter-stations { grid-template-columns:repeat(4,minmax(0,1fr)); }
.text-large .immersive-counter #counter-stations b { font-size:.7rem; }

/* Keep the small cue legible on both warm wood palettes. */
.immersive-counter .touch-caption { color:#294832; }
.immersive-counter .touch-caption p { color:#3c573a; }
.immersive-counter .touch-step,.immersive-counter .touch-readout { color:#40593a; }
.immersive-counter .touch-progress span { background:#446b3e; }
.immersive-counter .touch-alternative { color:#294f34!important; }
.immersive-counter #counter-idle-caption { color:#294832; }
[data-theme=dark] .immersive-counter .touch-caption { color:#fff7df; }
[data-theme=dark] .immersive-counter .touch-caption p { color:#f5e7bf; }
[data-theme=dark] .immersive-counter .touch-step,[data-theme=dark] .immersive-counter .touch-readout { color:#e3d4ab; }
[data-theme=dark] .immersive-counter .touch-progress span { background:#f3d25c; }
[data-theme=dark] .immersive-counter .touch-alternative { color:#fff2cb!important; }
[data-theme=dark] .immersive-counter #counter-idle-caption { color:#fff0cd; }
.immersive-counter .utility #update-button { min-height:30px; min-width:0; padding:4px 6px; font-size:.65rem; white-space:nowrap; }
body:has(.immersive-counter) #app-update-banner { top:auto; bottom:calc(118px + var(--counter-safe-bottom,env(safe-area-inset-bottom))); left:20px; right:20px; max-width:420px; margin:auto; padding:7px 10px; font-size:.7rem; border-radius:9px; box-shadow:none; }
