:root {
  --ink: #f6ede2;
  --dim: rgba(246, 237, 226, 0.62);
  --glass: rgba(22, 12, 14, 0.62);
  --line: rgba(246, 237, 226, 0.16);
  --accent: #ff6aa8;
  --gold: #e7c27c;
  --serif: 'Italiana', serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: max(16px, env(safe-area-inset-left));
}
body.day {
  --glass: rgba(40, 26, 22, 0.5);
  --accent: #d9542f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0708; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { touch-action: none; user-select: none; -webkit-user-select: none; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
button { font: inherit; color: inherit; }
.eyebrow { margin: 0; font: 600 10px/1.2 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }

/* top bar */
.hud-top { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: max(14px, env(safe-area-inset-top)) var(--pad) 0; pointer-events: none; z-index: 3; }
.where h1 { margin: 4px 0 0; font: 400 clamp(24px, 4vw, 34px)/1 var(--serif); letter-spacing: 0.02em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.top-actions { display: flex; gap: 8px; pointer-events: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; cursor: pointer; font: 600 15px var(--mono); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .sun { display: block; } .icon-btn .moon { display: none; }
.icon-btn .v-near { display: none; }
body[data-view="near"] .icon-btn .v-over { display: none; } body[data-view="near"] .icon-btn .v-near { display: block; }
.wall-btn { position: relative; }
.wall-tag { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); font: 600 8px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
body[data-walls="auto"] .wall-tag::after { content: 'auto'; } body[data-walls="down"] .wall-tag::after { content: 'down'; } body[data-walls="up"] .wall-tag::after { content: 'up'; }
body[data-walls="auto"] .w-top { stroke-dasharray: 2.5 2.5; } body[data-walls="down"] .w-top { opacity: 0.2; }
body.day .icon-btn .sun { display: none; } body.day .icon-btn .moon { display: block; }

/* inventory */
.inv { position: fixed; right: var(--pad); align-items: flex-end; top: calc(max(14px, env(safe-area-inset-top)) + 64px); display: flex; flex-direction: column; gap: 8px; z-index: 3; pointer-events: none; }
.inv-keys { display: flex; gap: 6px; }
.key-chip { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); opacity: 0.35; filter: grayscale(1); transition: opacity 0.5s, filter 0.5s; }
.key-chip.got { opacity: 1; filter: none; border-color: rgba(231, 194, 124, 0.6); }
.key-chip svg { width: 24px; height: 24px; }
.inv-cards { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 190px; }
.inv .pop { animation: invpop 0.8s ease-out; }
@keyframes invpop { 0% { transform: scale(1); filter: brightness(1); } 25% { transform: scale(1.35); filter: brightness(1.9) drop-shadow(0 0 10px #ffe7a8); } 100% { transform: scale(1); filter: brightness(1); } }
.sound-btn .s-off { display: none; } body.muted .sound-btn .s-on { display: none; } body.muted .sound-btn .s-off { display: block; }
/* a burst of small stars where something is found or kept */
.twinkle { position: fixed; width: 0; height: 0; z-index: 30; pointer-events: none; }
.twinkle i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; background: radial-gradient(circle, #fff 0 18%, #ffe9b0 45%, rgba(255, 233, 176, 0) 70%); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; animation: twinkle 1.3s ease-out forwards; }
@keyframes twinkle { 0% { transform: translate(0, 0) scale(0.2) rotate(0deg); opacity: 0; } 18% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(var(--s)) rotate(140deg); opacity: 0; } }
.inv-cards img { width: 26px; height: 46px; object-fit: cover; border-radius: 3px; border: 1px solid rgba(231, 194, 124, 0.7); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5); }

/* joystick */
.joy { position: fixed; left: calc(var(--pad) + 6px); bottom: max(22px, env(safe-area-inset-bottom)); width: 116px; height: 116px; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.25)); z-index: 3; touch-action: none; display: none; }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(246, 237, 226, 0.22); border: 1px solid rgba(246, 237, 226, 0.4); backdrop-filter: blur(6px); transition: transform 0.12s; }
@media (pointer: coarse) { .joy { display: block; } .action-key { display: none; } }

/* action */
.action { position: fixed; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 12px; border-radius: 999px; border: 1px solid rgba(231, 194, 124, 0.45); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-weight: 500; font-size: 14px; cursor: pointer; transition: opacity 0.35s, transform 0.35s; z-index: 4; white-space: nowrap; }
.action.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.action-key { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 600 12px var(--mono); background: rgba(231, 194, 124, 0.2); color: var(--gold); }
@media (pointer: coarse) { .action { left: auto; right: var(--pad); transform: translateY(16px); padding: 14px 20px; } .action.show { transform: none; } }
body.in-closeup .action, body.in-closeup .joy { opacity: 0; pointer-events: none; }

.grow { position: fixed; right: var(--pad); top: calc(max(14px, env(safe-area-inset-top)) + 54px); padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 106, 168, 0.5); background: var(--glass); backdrop-filter: blur(10px); font: 600 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.4s; z-index: 3; }
body.small .grow { opacity: 1; pointer-events: auto; }
body.in-closeup .grow { opacity: 0; pointer-events: none; }

/* panel */
.panel { position: fixed; right: var(--pad); bottom: max(18px, env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 2 * var(--pad))); max-height: min(72vh, 640px); overflow: auto; padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity 0.5s 0.25s, transform 0.5s 0.25s; z-index: 5; touch-action: pan-y; user-select: text; }
.panel.show { opacity: 1; transform: none; pointer-events: auto; }
.panel h2 { margin: 6px 0 10px; font: 400 30px/1.05 var(--serif); }
.panel-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: rgba(246, 237, 226, 0.86); }
.panel-body .riddle { font: 400 20px/1.3 var(--serif); color: var(--gold); }
.panel-media { margin: 0 0 12px; }
.menu-img { width: 100%; border-radius: 8px; display: block; }
.food-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.food-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.panel-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn { appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--ink); padding: 10px 16px; border-radius: 999px; font: 500 13px var(--sans); cursor: pointer; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.btn:hover { background: rgba(255, 255, 255, 0.12); }
.btn.primary { background: var(--ink); color: #1a0e10; border-color: var(--ink); }
.btn.primary:hover { background: #fff; }
.btn.ghost { background: transparent; }
.key-row { display: flex; gap: 8px; margin: 6px 0 4px; }
.key-row .key-chip { width: 44px; height: 44px; }
.key-row .key-chip svg { width: 30px; height: 30px; }
.card-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card-btn { appearance: none; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); border-radius: 10px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 11px; }
.card-btn img { width: 100%; aspect-ratio: 0.55; object-fit: cover; border-radius: 5px; }
.card-btn:hover { border-color: var(--gold); }
.reading { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reading figure { margin: 0; }
.reading img { width: 100%; aspect-ratio: 0.55; object-fit: cover; border-radius: 6px; border: 1px solid rgba(231, 194, 124, 0.55); }
.reading figcaption { font-size: 11px; line-height: 1.35; color: var(--dim); margin-top: 6px; }
.reading figcaption small { display: block; font: 600 9px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.reading figcaption b { display: block; color: var(--ink); font: 400 15px/1.2 var(--serif); margin: 2px 0; }
@media (max-width: 640px) {
  .where { padding-top: 52px; }
  .where h1 { white-space: nowrap; }
  .panel { left: var(--pad); right: var(--pad); width: auto; max-height: 56vh; }
  .panel h2 { font-size: 26px; }
}

/* toast */
.toast { position: fixed; left: 50%; top: calc(max(14px, env(safe-area-inset-top)) + 70px); transform: translate(-50%, -10px); max-width: min(440px, calc(100vw - 2 * var(--pad))); padding: 11px 16px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; text-align: center; opacity: 0; transition: opacity 0.45s, transform 0.45s; pointer-events: none; z-index: 6; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.flash { position: fixed; inset: 0; background: radial-gradient(circle, #fff6ea 0%, rgba(255, 210, 230, 0.85) 60%, rgba(255, 160, 200, 0.6)); opacity: 0; pointer-events: none; transition: opacity 0.6s; z-index: 7; }
.flash.on { opacity: 0.9; transition: opacity 0.25s; }

/* intro */
.intro { position: fixed; inset: 0; display: grid; place-items: center; padding: var(--pad); background: radial-gradient(circle at 50% 40%, rgba(40, 8, 18, 0.56), rgba(8, 4, 6, 0.42)); opacity: 0; pointer-events: none; transition: opacity 0.7s; z-index: 8; }
.intro.show { opacity: 1; pointer-events: auto; }
.intro { overflow-y: auto; place-items: safe center; }
.intro-card { width: min(1080px, 100%); margin: auto; text-align: center; }
.intro-logo { display: block; width: min(440px, 72vw, 70vh); height: auto; margin: 0 auto 34px; }
.intro .btn { padding: 15px 46px; font: 600 13px var(--mono); letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase; }
.steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); text-align: left; }
.steps li { padding: 14px 16px 4px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.step-n { display: block; font: 400 26px/1 var(--serif); color: var(--gold); margin-bottom: 14px; }
.steps b { display: block; font: 600 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.steps p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--dim); }
@media (max-width: 900px) {
  .intro-logo { margin-bottom: 26px; }
  .steps { grid-template-columns: repeat(3, 1fr); margin-top: 34px; row-gap: 18px; }
  .steps li { padding: 10px 10px 2px; }
  .steps li:nth-child(3n + 1) { border-left: 0; }
  .step-n { font-size: 20px; margin-bottom: 8px; }
  .steps b { font-size: 10px; margin-bottom: 5px; }
  .steps p { font-size: 11.5px; line-height: 1.4; }
}
@media (max-height: 520px) {
  .intro-logo { margin-bottom: 18px; }
  .steps { grid-template-columns: repeat(6, 1fr); margin-top: 22px; }
  .steps li:nth-child(3n + 1) { border-left: 1px solid var(--line); }
  .steps li:first-child { border-left: 0; }
  .intro .btn { padding: 11px 38px; }
}

@keyframes breathe { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01s !important; animation: none !important; } }

/* things on a shelf, as chips under the panel text */
.panel-items { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.chip { appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: inherit; font: 600 13px/1 var(--sans, inherit); padding: 9px 13px; border-radius: 999px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chip:hover { background: rgba(255, 255, 255, 0.12); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #1a0e10; }
.panel-body .hint { font-size: 12.5px; color: rgba(246, 237, 226, 0.6); }

/* nothing from the game shows through the intro's text */
body:has(.intro.show) .action, body:has(.intro.show) .joy, body:has(.intro.show) .toast { opacity: 0 !important; pointer-events: none; }

/* papers, posters, açaí */
.panel-media .pm-logo { display: block; width: min(240px, 60%); margin: 0 auto; padding: 14px 0 6px; filter: drop-shadow(0 0 22px rgba(160, 90, 255, 0.55)); }
.panel-body .pm-tag { font: 600 11px var(--mono); letter-spacing: 0.32em; color: #c79bf0; }
.panel-body .fine { font-size: 12px; opacity: 0.75; }
.panel-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the guest book ---------- */
.gb { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 45%, rgba(30, 10, 14, 0.5), rgba(6, 3, 4, 0.82)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.45s; touch-action: none; user-select: none; -webkit-user-select: none; }
.gb[hidden] { display: none; }
.gb.show { opacity: 1; }
.gb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.gb-book { flex: none; --pw: min(44vw, calc((100vh - 170px) * 0.7), 430px); --ph: calc(var(--pw) / 0.7); position: relative; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2400px; transition: transform 0.9s cubic-bezier(0.3, 0.1, 0.2, 1); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.gb.narrow .gb-book { --pw: min(86vw, calc((100vh - 190px) * 0.7)); }
.gb-book[data-rest='R'] { transform: translateX(calc(var(--pw) / -2)); }
.gb-book[data-rest='L'] { transform: translateX(calc(var(--pw) / 2)); }
.gb-leaf { position: absolute; left: 50%; top: 0; width: var(--pw); height: var(--ph); transform-origin: left center; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(0.4, 0.1, 0.2, 1); }
.gb-leaf.flipped { transform: rotateY(-180deg); }
.gb-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--pw) * 0.11); backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2px 6px 6px 2px; color: #2c1a14; background: linear-gradient(90deg, rgba(60, 30, 10, 0.2), rgba(60, 30, 10, 0) 9%), #f1e8d6; overflow: hidden; }
.gb-face.back { transform: rotateY(180deg); border-radius: 6px 2px 2px 6px; background: linear-gradient(270deg, rgba(60, 30, 10, 0.2), rgba(60, 30, 10, 0) 9%), #f1e8d6; }
.gb-face.gb-cover { background: radial-gradient(circle at 30% 20%, rgba(255, 200, 170, 0.1), transparent 60%), #2b0d13; box-shadow: inset 0 0 0 1px rgba(217, 179, 106, 0.18), inset calc(var(--pw) * 0.045) 0 0 -1px #230a0f, inset calc(var(--pw) * 0.05) 0 0 -1px rgba(217, 179, 106, 0.25); color: #d9b36a; gap: calc(var(--pw) * 0.05); }
.gb-face.gb-cover::after { content: ''; position: absolute; inset: calc(var(--pw) * 0.075); left: calc(var(--pw) * 0.11); border: 1px solid rgba(217, 179, 106, 0.55); pointer-events: none; }
.gb-face.gb-end { background: radial-gradient(circle at 50% 40%, #4a1620, #2b0d13); }
.gb-mark, .gb-eye { background: linear-gradient(120deg, #b98d45, #f1dba0 38%, #c79a4f 55%, #f6e6b8 72%, #b08238); -webkit-mask: url(/eors/logos/house-stacked-eye.png) center / contain no-repeat; mask: url(/eors/logos/house-stacked-eye.png) center / contain no-repeat; }
.gb-mark { width: 58%; aspect-ratio: 1249 / 912; margin-top: -8%; }
.gb-eye { width: 20%; aspect-ratio: 292 / 224; background: #7a2a22; -webkit-mask-image: url(/eors/logos/eye.png); mask-image: url(/eors/logos/eye.png); margin-bottom: 6%; }
.gb-stars { font-size: calc(var(--pw) * 0.034); letter-spacing: 0.42em; margin-right: -0.42em; color: #c9983f; line-height: 1; }
.gb-cover .gb-stars { font-size: calc(var(--pw) * 0.026); color: #d9b36a; opacity: 0.85; }
.gb-sub { margin: 0; font: 600 calc(var(--pw) * 0.026) / 1.2 var(--mono); letter-spacing: 0.3em; text-transform: uppercase; }
.gb-cover .gb-sub { position: absolute; bottom: 12%; left: calc(var(--pw) * 0.035); right: 0; opacity: 0.8; }
.gb-title { gap: calc(var(--pw) * 0.045); }
.gb-title h3 { margin: 0; font: 400 calc(var(--pw) * 0.115) / 1.05 var(--serif); color: #2c1a14; }
.gb-title .gb-sub { color: #8a6a54; }
.gb-review { display: flex; flex-direction: column; align-items: center; gap: calc(var(--pw) * 0.06); }
.gb-review blockquote { margin: 0; font: italic 500 calc(var(--pw) * 0.064) / 1.38 'Cormorant Garamond', Georgia, serif; color: #2c1a14; text-wrap: balance; }
.gb-name { margin: 0; font: 700 calc(var(--pw) * 0.03) / 1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: #7a2a22; }
.gb-name::before { content: ''; display: block; width: 26px; height: 1px; background: #c9983f; margin: 0 auto calc(var(--pw) * 0.045); }
.gb-no { position: absolute; bottom: 5%; left: 0; right: 0; font: italic 500 calc(var(--pw) * 0.052) 'Cormorant Garamond', Georgia, serif; font-variant-numeric: lining-nums; color: #a08a74; }
.gb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; padding: 12px var(--pad) max(18px, env(safe-area-inset-bottom)); }
.gb-bar .btn:disabled { opacity: 0.35; cursor: default; }
.gb-count { min-width: 104px; text-align: center; font: 600 10px/1.2 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 520px) { .gb-count { order: -1; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .gb-leaf, .gb-book { transition-duration: 0.01s; } }

/* points of light on the things you can step closer to */
.action { display: none !important; }
.spots { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.spot { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.spot::before { content: ''; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; }
.spot i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 236, 200, 0.9); box-shadow: 0 0 0 3px rgba(255, 226, 184, 0.16), 0 0 10px 2px rgba(255, 210, 150, 0.5); animation: spot 2.6s ease-in-out infinite; transition: transform 0.2s; }
.spot span { position: absolute; left: 0; top: 16px; transform: translate(-50%, 4px); white-space: nowrap; padding: 7px 12px; border-radius: 999px; font: 600 12px/1 var(--sans, inherit); letter-spacing: 0.02em; color: #f6ede2; background: rgba(20, 10, 12, 0.78); border: 1px solid rgba(231, 194, 124, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.spot.near span, .spot:hover span, .spot:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.spot:hover { z-index: 2; }
.spot:hover i, .spot.near i { transform: scale(1.35); }
@keyframes spot { 50% { box-shadow: 0 0 0 6px rgba(255, 226, 184, 0.05), 0 0 13px 3px rgba(255, 210, 150, 0.32); } }
body:has(.intro.show) .spots, body:has(.intro.show) .where, body:has(.gb:not([hidden])) .spots { opacity: 0; pointer-events: none; }
body:has(.intro.show) .spot { pointer-events: none; }
.where { transition: opacity 0.5s; }
.spot span:empty { display: none; }

/* the taxi: a black cut between shots, the time left, and the way home */
.cut { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 6; }
.cut.on { opacity: 1; transition: opacity 0.2s; }
.cab-hud { position: fixed; right: var(--pad); top: max(14px, env(safe-area-inset-top)); display: none; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 8; }
body.cab .cab-hud { display: flex; }
body.cab .top-actions, body.cab .grow, body.cab .inv, body.cab .hud-icons { display: none; }
body:has(.intro.show) .hud-icons { opacity: 0; pointer-events: none; }
.cab-chip { margin: 0; display: flex; align-items: baseline; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.14); font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.cab-chip b { font-size: 15px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; color: #8fe0a8; }
.cab-back { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 106, 168, 0.5); background: var(--glass); backdrop-filter: blur(10px); color: inherit; font: 600 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 600px) { body.cab .cab-hud { top: calc(max(14px, env(safe-area-inset-top)) + 46px); } }
