/* =====================================================================
   BANGBOWBING OS — HUD + RPG PANELS (ledger item 45, DESIGN-V3 §12)
   The HUD replaces the taskbar; panels replace free-floating windows.
   Panel bodies keep .win-body / .win-status, so every app renders exactly
   as it did — only the frame around them changed.
   Contrast: every piece of body copy here sits on #14121f-or-darker glass.
   ===================================================================== */

/* ---------------------------------------------------------------- HUD --- */
#hud {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;          /* the level is clickable through the gaps */
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
#os.is-up #hud { opacity: 1; }
#hud > * { pointer-events: none; }
#hud button, #hud .hud-card, #hud .hud-chip, #hud .hud-stat { pointer-events: auto; }

.hud-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}
.hud-top { align-items: flex-start; }
.hud-bottom {
  justify-content: space-between;
  min-height: var(--hud-bottom);
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.hud-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* the shared HUD glass: dark enough that white body copy is >= 13:1 */
.hud-card, .hud-stat, .hud-live, .hud-icon, .hud-clock, .hud-chip, .hud-menu,
.hud-hint, .hud-now {
  background: linear-gradient(180deg, rgba(24, 21, 40, 0.88), rgba(12, 10, 22, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 18px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #eef1fb;
  border-radius: var(--r-2, 4px);
}

/* ---- top-left: identity ---- */
.hud-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  max-width: 320px;
  padding: 6px 12px 6px 6px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.hud-card:hover { border-color: rgba(127, 227, 255, 0.55); transform: translateY(-1px); }
.hud-avatar { flex: 0 0 auto; }
.hud-face {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: linear-gradient(180deg, #4b3d8f, #241b46);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}
.hud-who-col { display: grid; gap: 3px; min-width: 0; }
.hud-who-top { display: flex; align-items: baseline; gap: 7px; }
.hud-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hud-lv {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.1em;
  padding: 2px 5px;
  border-radius: 999px;
  color: #17110a;
  background: var(--tang);
}
.hud-who-bot { display: flex; align-items: center; gap: 7px; }
.hud-xp {
  display: block;
  width: 108px;
  height: 6px;
  border-radius: 999px;
  background: #0b0916;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.hud-xp i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #b6f4ff, #2e9bff);
  box-shadow: 0 0 10px rgba(79, 201, 245, 0.7);
  transition: width 0.4s var(--ease);
}
.hud-xpnum { font-size: 11px; color: #c4cade; }   /* 9.6:1 on the glass */
.hud-card.is-guest .hud-name { color: var(--aqua-lt); }

/* Guest / ANON identity — low-text, no purse chrome */
.hud-card.is-guest .hud-name,
#hud-who.is-guest .hud-name { color: var(--aqua-lt, #9ef); }
.hud-card.is-anon .hud-lv,
#hud-who.is-anon .hud-lv {
  color: #0b1020;
  background: linear-gradient(180deg, #ffe08a, #f0b84a);
  border-color: rgba(240, 184, 74, 0.7);
  letter-spacing: 0.06em;
}
.hud-card.is-anon .hud-xpnum,
#hud-who.is-anon .hud-xpnum,
.hud-card.is-guest .hud-xpnum,
#hud-who.is-guest .hud-xpnum {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(200, 220, 255, 0.72);
  opacity: 1;
}
.hud-chip.is-practice {
  border-color: rgba(240, 184, 74, 0.55);
}
.hud-chip.is-practice .hud-chip-name { color: #ffe6a8; }
.hud-chip.is-practice .hud-chip-eq i { background: #f0b84a; }


/* ---- top-right: purse, channel, clock ---- */
.hud-stat, .hud-live, .hud-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.hud-stat { cursor: default; }
button.hud-stat { cursor: pointer; }
.hud-stat .ico { width: 16px; height: 16px; }
.hud-num { font-weight: 700; font-variant-numeric: tabular-nums; color: #ffffff; }
.hud-flame { color: var(--tang); font-size: 10px; }
.hud-clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #eef1fb;
  cursor: default;
}

.hud-live { cursor: pointer; }
.hud-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6d7490;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.hud-live .hud-live-txt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: #c4cade;
}
.hud-live.on { border-color: rgba(211, 28, 60, 0.8); }
.hud-live.on i { background: #ff4d61; box-shadow: 0 0 10px rgba(255, 77, 97, 0.9); }
.hud-live.on .hud-live-txt { color: #ff9aa6; }   /* 7.0:1 on the glass */

.hud-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.hud-icon:hover, .hud-live:hover, button.hud-stat:hover {
  border-color: rgba(127, 227, 255, 0.55);
}

/* ---- the inventory button ---- */
.hud-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 6px;
  cursor: pointer;
  border-color: rgba(255, 180, 61, 0.55);
  background: linear-gradient(180deg, rgba(58, 38, 18, 0.9), rgba(24, 16, 8, 0.92));
}
.hud-menu:hover { border-color: var(--rar-legendary); }
.hud-menu-mark { display: grid; place-items: center; width: 22px; height: 22px; }
.hud-menu-mark .ico, .hud-logo { width: 22px; height: 22px; border-radius: 3px; }
.hud-menu-lbl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #ffd9a3;                 /* 10.9:1 on the amber glass */
}

/* ---- running-app chips (background apps, ledger item 28) ---- */
#hud-chips { display: flex; gap: 8px; }
.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 6px 0 10px;
  border-style: dashed;
}
.hud-chip-name { font-size: 12px; font-weight: 600; color: #eef1fb; }
.hud-chip-btn {
  height: 20px;
  padding: 0 7px;
  border-radius: 3px;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #0d1018;
  background: linear-gradient(180deg, #d9e0f2, #97a2bd);
  border: 1px solid rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.hud-chip-btn:hover { filter: brightness(1.08); }
.hud-chip-btn.quit { background: linear-gradient(180deg, #ffb0b8, #d6606f); }
.hud-chip-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.hud-chip-eq i {
  width: 3px;
  height: 4px;
  background: #6d7490;
  border-radius: 1px;
}
.hud-chip.running .hud-chip-eq i { background: var(--lime); animation: hudEq 0.9s ease-in-out infinite; }
.hud-chip.running .hud-chip-eq i:nth-child(2) { animation-delay: 0.15s; }
.hud-chip.running .hud-chip-eq i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hudEq { 0%, 100% { height: 4px; } 50% { height: 12px; } }

/* ---- bottom hint bar ---- */
.hud-hints { display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.hud-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  font-size: 11px;
  color: #c4cade;
}
.hud-hint kbd {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.06em;
  padding: 3px 5px;
  border-radius: 3px;
  color: #0d1018;
  background: linear-gradient(180deg, #e6ebf7, #a9b2c9);
  border: 1px solid rgba(0, 0, 0, 0.45);
}
.hud-now {
  max-width: 46vw;
  padding: 5px 10px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #dfe3f4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hud-now:empty { display: none; }

/* =====================================================================
   PANELS — the RPG frame around an app body
   ===================================================================== */
#panels {
  position: fixed;
  inset: var(--hud-top) 0 var(--hud-bottom) 0;
  z-index: 30;
  pointer-events: none;
}

.win.panel {
  position: absolute;
  top: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  padding: 0;
  pointer-events: auto;
  border-radius: 6px;
  /* the frame: a hairline rarity-neutral bevel over deep panel glass, NOT a
     title bar. No drag handle exists because there is nothing to drag. */
  background: linear-gradient(180deg, #221f36 0%, #171528 64px, #14121f 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    0 26px 70px rgba(4, 3, 10, 0.72);
  animation: panelIn 0.18s var(--ease);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(0.995); } }

/* desktop layout: one primary panel, one side rail */
.win.panel[data-slot="primary"] { left: 12px; right: calc(34% + 20px); }
.win.panel[data-slot="side"] { width: 34%; right: 12px; }
/* a primary panel with nothing beside it gets the whole stage */
#panels:not(:has(.win.panel[data-slot="side"])) .win.panel[data-slot="primary"] {
  right: 12px;
}
.win.panel.is-focused { border-color: rgba(127, 227, 255, 0.6); }

/* ---- the panel bar: back, mark, name, close ---- */
.panel-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  cursor: default;
}
.panel-grow { flex: 1 1 auto; }
.panel-icon { display: grid; place-items: center; }
.panel-icon .ico { width: 22px; height: 22px; }
.win.panel .win-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: #ffffff;
}
.pb {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  color: #dfe3f4;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.pb:hover { background: rgba(255, 255, 255, 0.17); color: #fff; }
.pb-close:hover { background: #b0163a; border-color: #ff8d9f; color: #fff; }
.pb-x { font-size: 17px; line-height: 1; }
.pb-arrow {
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, -1px);
}

/* ---- pop-out: the panel takes the whole stage (ledger item 45) ---- */
.pb-pop-mark {
  position: relative;
  width: 12px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.pb-pop-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 8px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: #171528;
}
.pb-pop[aria-pressed="true"] { background: rgba(127, 227, 255, 0.24); color: #fff; }

.win.panel.is-popped {
  position: fixed;
  inset: 0;
  width: auto;
  z-index: 60;                 /* over the HUD (40), under the pause menu */
  border-radius: 0;
  border-width: 0;
}
/* the HUD steps back so a popped panel is really the whole screen, but it
   does not vanish: the clock, the purse and the LIVE light are the frame */
body.has-popped #hud { opacity: 0.2; }
body.has-popped #hud:hover, body.has-popped #hud:focus-within { opacity: 1; }

/* the body is untouched: every app still paints into .win-body */
.win.panel .win-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.win.panel .win-status {
  border-radius: 0 0 5px 5px;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

/* =====================================================================
   NARROW DESKTOPS (1024x768 is a target viewport)
   `.hud-right` wraps, but `--hud-top` is a fixed 52px — a wrapped second
   line would hang over #panels. Shed width before it can wrap instead.
   ===================================================================== */
@media (min-width: 760px) and (max-width: 1119px) {
  .hud-row { padding: 8px 10px; gap: 8px; }
  .hud-right { gap: 6px; flex-wrap: nowrap; }
  .hud-card { min-width: 0; max-width: 250px; }
  .hud-xpnum { display: none; }
  .hud-menu-lbl { display: none; }           /* the mark alone is the button */
  .hud-menu { padding: 0 6px; }
  .hud-chip-name { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hud-now { max-width: 34vw; }
  .win.panel[data-slot="primary"] { right: calc(38% + 20px); }
  .win.panel[data-slot="side"] { width: 38%; }
}

/* =====================================================================
   PHONES — a panel is the whole screen, and so is the hint bar's job
   ===================================================================== */
@media (max-width: 759px) {
  :root { --hud-top: 60px; --hud-bottom: 56px; }
  .hud-row { padding: 6px 8px; }
  .hud-card { min-width: 0; flex: 1 1 auto; max-width: none; padding: 5px 9px 5px 5px; }
  .hud-face { width: 30px; height: 30px; }
  .hud-xp { width: 74px; }
  .hud-xpnum { display: none; }
  .hud-right { gap: 6px; }
  .hud-clock, .hud-icon { display: none; }
  .hud-hints { display: none; }
  .hud-bottom { justify-content: stretch; }
  .hud-now { max-width: none; flex: 1 1 auto; }
  /* ledger item 28 on a phone: the chip rail is the ONLY Open/Quit surface a
     background app has now that the taskbar is gone, so it moves down to the
     thumb row (os/shell.js placeChips) instead of being hidden. With a chip
     up there is no room for the hover narration as well — the chip IS the
     narration ("Radio — <track>" lives in its title). */
  #hud-chips { flex: 0 1 auto; min-width: 0; }
  .hud-chip { max-width: 100%; padding: 0 5px 0 8px; gap: 6px; height: 34px; }
  .hud-chip-name {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #hud.has-chips .hud-now { display: none; }
  #hud.has-chips .hud-inv .hud-menu-lbl { display: none; }
  #hud.has-chips .hud-inv { padding: 0 12px; }
  /* a popped panel on a phone is what every panel already is */
  .pb-pop { display: none; }
  body.has-popped #hud { opacity: 1; }
  /* the top-bar inventory button stands down; the bottom one takes over */
  #hud-menu { display: none; }
  .hud-inv {
    display: inline-flex;
    height: 44px;
    flex: 0 0 auto;
    padding: 0 18px 0 12px;
  }
  .hud-inv .hud-menu-lbl { font-size: 12px; }
  #panels { inset: 0; }
  .win.panel,
  .win.panel[data-slot="primary"],
  .win.panel[data-slot="side"] {
    inset: 0;
    width: auto;
    border-radius: 0;
    border-width: 0;
    animation: panelInPhone 0.18s var(--ease);
  }
  @keyframes panelInPhone { from { opacity: 0; transform: translateY(16px); } }
  .panel-bar { height: 48px; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
  .pb { width: 34px; height: 34px; }
}

/* the bottom inventory button only exists on phones */
.hud-inv { display: none; }

@media (prefers-reduced-motion: reduce) {
  .win.panel,
  .win.panel[data-slot="primary"],
  .win.panel[data-slot="side"] { animation: none; }
  .hud-chip.running .hud-chip-eq i { animation: none; height: 8px; }
  .hud-xp i { transition: none; }
  /* the HUD arrives, it does not fade in */
  #hud { transition: none; }
  .hud-card { transition: none; }
  body.has-popped #hud { opacity: 1; }
}

/* =====================================================================
   TITLE SCREEN — the PRESS START state (ledger item 46)
   Same splash, one extra beat: the bar fills, the ticker stops, and the
   machine waits for a press. Kept here rather than in os.css's BOOT block
   because it is a v3 addition, not a restyle of the old beats.
   ===================================================================== */
#boot.ready .splash-bar,
#boot.ready .splash-tick { opacity: 0.35; transition: opacity 0.4s var(--ease); }
#boot.ready .splash-card { border-color: rgba(255, 180, 61, 0.45); }

#boot-start {
  position: relative;
  z-index: 5;
  display: block;
  pointer-events: auto;
  width: 100%;
  margin: 18px 0 2px;
  padding: 13px 18px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13px, 2.6vw, 16px);
  letter-spacing: 0.3em;
  text-indent: 0.3em;                 /* the tracking steals the optical centre */
  cursor: pointer;
  color: #17110a;                     /* 11.4:1 on the amber fill */
  background: linear-gradient(180deg, #ffe6b4 0%, #ffb43d 48%, #f09112 52%, #ffc768 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9),
              0 0 34px rgba(255, 180, 61, 0.45);
  animation: startPulse 1.5s var(--ease) infinite;
}
#boot-start[hidden] { display: none; }
#boot-start:hover { filter: brightness(1.06); }
#boot-start:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes startPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 22px rgba(255, 180, 61, 0.35); }
  50%      { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 46px rgba(255, 180, 61, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
  #boot-start { animation: none; }
}

/* =====================================================================
   toasts: there is no taskbar to clear any more, only the hint bar
   ===================================================================== */
#toasts { bottom: calc(var(--hud-bottom) + 14px); z-index: 900; }
@media (max-width: 759px) {
  #toasts { bottom: calc(var(--hud-bottom) + 10px); }
}

/* =====================================================================
   SLEEK HUD PASS (Sep 19) — less chrome text, icon-first
   ===================================================================== */
:root {
  --hud-top: 44px;
  --hud-bottom: 36px;
}
.hud-row { padding: 6px 10px; gap: 8px; }
.hud-card {
  min-width: 0;
  max-width: 180px;
  padding: 4px 8px 4px 4px;
  gap: 7px;
}
.hud-name { font-size: 12px; letter-spacing: 0.02em; }
.hud-lv { font-size: 9px; padding: 1px 5px; }
.hud-xpnum { display: none; }                 /* XP fraction is hover-only clutter */
.hud-card:hover .hud-xpnum,
.hud-card:focus-within .hud-xpnum { display: inline; font-size: 10px; }
.hud-menu-lbl { display: none !important; }   /* mark alone = pause / inventory */
.hud-menu { padding: 0 7px; min-width: 36px; }
.hud-stat, .hud-live, .hud-clock {
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
  gap: 5px;
}
.hud-live-txt:empty,
.hud-live-txt[hidden] { display: none; }
.hud-live:not(.on) { padding: 0 8px; }        /* LED-only when offline */
.hud-hints { display: none !important; }      /* permanent kbd strip removed */
.hud-now {
  font-size: 11px;
  max-width: 42vw;
  opacity: 0.85;
  padding: 4px 10px;
}
.hud-now:empty { display: none; }
.hud-chip {
  height: 30px;
  padding: 0 4px 0 8px;
  gap: 6px;
}
.hud-chip-name {
  font-size: 11px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hud-chip-btn {
  min-width: 26px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
}
.hud-bottom { min-height: var(--hud-bottom); justify-content: flex-end; }
@media (max-width: 759px) {
  :root { --hud-top: 52px; --hud-bottom: 52px; }
  .hud-inv .hud-menu-lbl { display: none !important; }
  .hud-inv { padding: 0 14px; }
}

/* ---- title screen: bodega plate behind the card ---- */
/* Keep absolute+inset from os.css — only add isolation. Relative alone
   collapses the splash and makes ENTER untouchable. */
#splash { position: absolute; inset: 0; isolation: isolate; }
.splash-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,10,8,0.55) 0%, rgba(6,10,8,0.72) 100%),
    url('../assets/bodega-1600.jpg') center / cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.04);
}
.splash-card { position: relative; z-index: 1; pointer-events: auto; }
#boot-start {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  letter-spacing: 0.18em;
}
#boot-start .boot-start-k {
  padding: 4px 10px;
  border: 1px solid rgba(0,0,0,0.35);
  border-radius: 3px;
  background: rgba(255,255,255,0.55);
  color: #17110a;
  letter-spacing: 0.14em;
  font-size: 0.85em;
}
#boot-start .boot-start-lbl { letter-spacing: 0.28em; }
#boot-skip kbd {
  display: inline-block; padding: 1px 6px; margin: 0 2px;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 3px;
  font: inherit; letter-spacing: 0.08em;
}


/* ---- BING BODEGA TITLE POLISH ---- */
.splash-sub {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5ef1ff;
  text-shadow: 0 0 12px rgba(94, 241, 255, 0.45);
}
.splash-word {
  text-shadow: 0 0 28px rgba(255, 77, 138, 0.35), 0 0 8px rgba(255, 180, 61, 0.25);
}
#boot.ready .splash-card {
  border-color: rgba(255, 77, 138, 0.55);
  box-shadow: 0 0 40px rgba(255, 77, 138, 0.18), inset 0 0 0 1px rgba(94, 241, 255, 0.15);
}
#boot-start {
  background: linear-gradient(180deg, #ff7aa8 0%, #ff4d8a 48%, #d11f66 52%, #ff6b9d 100%);
  color: #fff8fb;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
              0 0 34px rgba(255, 77, 138, 0.55),
              0 0 12px rgba(94, 241, 255, 0.25);
}
#boot-start .boot-start-k {
  background: rgba(10, 12, 18, 0.55);
  color: #5ef1ff;
  border-color: rgba(94, 241, 255, 0.55);
}
@keyframes startPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 22px rgba(255, 77, 138, 0.4), 0 0 8px rgba(94, 241, 255, 0.2); }
  50%      { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 52px rgba(255, 77, 138, 0.85), 0 0 18px rgba(94, 241, 255, 0.45); }
}


/* ============================================================ door walk-in
   Triggered by shell when wm opens `store` (Scene door hotspot / story CTA).
   Keeps #scene-stage clear of opaque chrome; veil is brief and pointer-free. */
.walk-in {
  position: fixed;
  inset: 0;
  z-index: 55; /* above #panels (30) / #hud (40), below pause if open */
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(6, 4, 10, 0.15) 0%, rgba(6, 4, 10, 0.82) 70%),
    rgba(4, 2, 8, 0.55);
  opacity: 0;
  transition: opacity 0.20s var(--ease, ease);
}
.walk-in.is-on { opacity: 1; }
.walk-in.is-out { opacity: 0; transition-duration: 0.24s; }
.walk-in-frame {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 18px 28px;
  border: 1px solid rgba(255, 220, 140, 0.45);
  background: rgba(10, 8, 16, 0.72);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 12px 40px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  transition: transform 0.20s var(--ease, ease);
}
.walk-in.is-on .walk-in-frame { transform: scale(1); }
.walk-in-kicker {
  font: 600 11px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.28em;
  color: rgba(255, 210, 120, 0.85);
  text-indent: 0.28em;
}
.walk-in-title {
  font: 700 22px/1.1 var(--display, Orbitron, sans-serif);
  letter-spacing: 0.12em;
  color: #f4efe6;
  text-shadow: 0 0 18px rgba(255, 180, 60, 0.35);
}
#os.is-inside-store #scene {
  filter: brightness(0.72) saturate(0.9);
  transition: filter 0.28s var(--ease, ease);
}
#os.is-inside-store #scene-spots { opacity: 0.35; pointer-events: none; }
.win.panel[data-app="store"].from-door {
  animation: doorIn 0.32s var(--ease, ease) both;
}
@keyframes doorIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); filter: brightness(0.7); }
  to   { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .walk-in, .walk-in-frame, .win.panel[data-app="store"].from-door { transition: none; animation: none; }
  #os.is-inside-store #scene { transition: none; }
}
