:root {
  --v2-ink: #071019;
  --v2-ink-deep: #03070a;
  --v2-panel: #0b1721;
  --v2-panel-hi: #162735;
  --v2-border: #3d5262;
  --v2-cyan: #40d9ff;
  --v2-gold: #e6ae3a;
  --v2-gold-bright: #ffe391;
  --v2-muted: #8e9ca5;
  --v2-text: #edf4f6;
  --v2-pixel-shadow: 2px 0 #050b10, -2px 0 #050b10, 0 2px #050b10;
  font-family: "Lucida Console", Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--v2-ink-deep);
}

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible {
  outline: 2px solid var(--v2-cyan);
  outline-offset: -3px;
}

.v2-app {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  height: 100dvh;
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  background: #071019;
  color: var(--v2-text);
  box-shadow: 0 0 48px #000;
}

.world,
.scene-frame,
.scene-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world { z-index: -3; overflow: hidden; background: #071019; }

.scene-frame {
  transform-origin: 50% 47%;
  transition: transform 720ms cubic-bezier(.18, .8, .25, 1);
  will-change: transform;
}

.scene-art {
  object-fit: cover;
  image-rendering: pixelated;
  user-select: none;
  pointer-events: none;
  transition: opacity 640ms cubic-bezier(.22, .7, .27, 1), transform 720ms cubic-bezier(.18, .8, .25, 1);
}

.scene-art--entry { opacity: 1; transform: scale(1) translateY(0); }
.scene-art--seated { opacity: 0; transform: scale(1.055) translateY(2.6%); }
.scene-art--working { opacity: 0; transform: scale(1.055) translateY(2.6%); }

.scene-shade {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#02070a99 0, transparent 17%, transparent 72%, #02070ad9 100%), linear-gradient(90deg, #02060966, transparent 18%, transparent 82%, #02060966);
}

.scene-grain {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

.seat-settle-shadow {
  position: absolute;
  z-index: 5;
  left: 16%;
  right: 16%;
  bottom: 17%;
  height: 13%;
  border-radius: 50%;
  background: #050a0e;
  opacity: 0;
  transform: scale(.65);
  transition: opacity 500ms ease, transform 720ms cubic-bezier(.18, .8, .25, 1);
  pointer-events: none;
}

.manager-screen-light {
  position: absolute;
  z-index: 6;
  left: 39%;
  top: 31.5%;
  width: 22%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #d8f5f34a 0, #91d7e21c 36%, transparent 72%);
  opacity: 0;
  transform: translateY(2px) scale(.85);
  transition: opacity 220ms ease, transform 420ms cubic-bezier(.2, .78, .25, 1);
  pointer-events: none;
}

.manager-look {
  position: absolute;
  z-index: 7;
  top: 34.3%;
  width: 4px;
  height: 2px;
  border-radius: 50%;
  background: #e6fbf8;
  box-shadow: 0 0 5px #9ce6e08a;
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
}

.manager-look--left { left: calc(50% - 17px); }
.manager-look--right { left: calc(50% + 13px); }

.top-hud {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: calc(57px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 7px 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(#080f15f7, #071018f1);
  border-bottom: 2px solid #273541;
  box-shadow: 0 3px 0 #020508, 0 7px 18px #0008;
}

.profile-chip { display: flex; min-width: 0; align-items: center; gap: 5px; }

.profile-avatar {
  flex: 0 0 43px;
  height: 43px;
  border: 2px solid #293641;
  border-radius: 8px 8px 5px 5px;
  background: #151e25;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #111c24, 2px 2px 0 #020609;
}

.profile-avatar::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 42% 42%;
  background: #b86d40;
  box-shadow: 0 -5px 0 2px #2c1b15, -3px 9px 0 5px #263443, 3px 9px 0 5px #263443;
}

.profile-avatar::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 3px;
  height: 3px;
  background: #111;
  box-shadow: 9px 0 #111, 4px 8px #f1d0a2;
}

.profile-level { width: 52px; display: grid; gap: 5px; }
.profile-level b { white-space: nowrap; color: #c9d1d5; font-size: 9px; letter-spacing: .5px; text-shadow: var(--v2-pixel-shadow); }
.profile-level i { width: 50px; height: 11px; padding: 2px; border: 1px solid #456171; background: #0b1c29; box-shadow: 1px 1px 0 #020609; }
.profile-level i em { display: block; width: 73%; height: 100%; background: repeating-linear-gradient(90deg, #19a2d5 0 9px, #1386b7 9px 11px); }

.resource-row { min-width: 0; flex: 1; display: flex; justify-content: center; gap: 4px; }
.resource { height: 34px; min-width: 0; padding: 3px 6px 3px 3px; display: flex; align-items: center; gap: 4px; border: 1px solid #374650; border-radius: 8px 8px 7px 7px; background: linear-gradient(#111a22, #080e14); box-shadow: inset 0 0 0 1px #071017, 2px 2px 0 #020508; }
.resource i { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border: 3px solid #6e4c0d; border-radius: 50%; background: #e0a716; color: #fff3a7; font-size: 12px; font-style: normal; font-weight: 900; text-shadow: 1px 1px #6e4300; box-shadow: inset 0 0 0 2px #ffdc52, 1px 1px 0 #000; }
.resource b { font-size: clamp(9px, 2.6vw, 12px); white-space: nowrap; letter-spacing: -.5px; }
.resource--prime i { border-radius: 6px; border-color: #276318; background: #66bd36; box-shadow: inset 0 0 0 2px #b5ef68, 1px 1px 0 #000; }
.resource--gems i { border-color: #57267d; background: #a450cf; box-shadow: inset 0 0 0 2px #d9a1f1, 1px 1px 0 #000; }

.menu-toggle { width: 34px; height: 40px; flex: 0 0 34px; padding: 8px 3px; display: grid; align-content: space-between; border: 0; background: transparent; cursor: pointer; }
.menu-toggle i { display: block; width: 28px; height: 3px; background: #dbe3e6; box-shadow: 0 1px #56636a; }

.place-ribbon { position: absolute; z-index: 16; top: calc(66px + env(safe-area-inset-top)); left: 12px; right: 12px; min-height: 53px; padding: 7px 7px 7px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid #3a4650; border-radius: 10px 10px 9px 9px; background: linear-gradient(100deg, #111b23f4, #0b131ae8); box-shadow: inset 0 0 0 1px #070c10, 3px 3px 0 #02050899; transition: opacity 420ms ease, transform 520ms ease; }
.place-emblem { position: relative; width: 34px; height: 34px; flex: 0 0 34px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 9px 5px 4px; border-bottom: 3px solid #ad7116; }
.place-emblem::before { content: ""; position: absolute; left: 1px; right: 1px; top: 3px; height: 10px; background: var(--v2-gold); clip-path: polygon(50% 0, 100% 75%, 100% 100%, 0 100%, 0 75%); box-shadow: 0 2px #6f430b; }
.place-emblem i { width: 4px; height: 18px; background: linear-gradient(90deg, #8a510b, #ffd765 45%, #a5630e 55%); }
.place-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.place-copy strong { overflow: hidden; color: #edf2f3; font-size: clamp(15px, 4.6vw, 21px); line-height: 1; letter-spacing: 1px; white-space: nowrap; text-shadow: var(--v2-pixel-shadow); }
.place-copy small { color: #8d969d; font-size: 8px; letter-spacing: .5px; }
.place-rank { height: 32px; padding: 0 7px; display: flex; align-items: center; gap: 4px; border: 1px solid #394853; border-radius: 7px; background: #111a22; color: #cbd4d9; font-size: 9px; }
.place-rank i { color: #fff; font-size: 14px; font-style: normal; }

.scene-sign { position: absolute; z-index: 8; top: calc(129px + env(safe-area-inset-top)); left: 18%; right: 18%; height: 75px; display: grid; place-content: center; text-align: center; pointer-events: none; text-shadow: 2px 2px #06101c, -1px -1px #06101c; transition: opacity 380ms ease, transform 520ms ease; }
.scene-sign span { color: #a8bcc6; font-size: clamp(12px, 3.7vw, 17px); letter-spacing: 3px; }
.scene-sign strong { color: #eff5f3; font-size: clamp(27px, 8vw, 36px); line-height: 1; letter-spacing: 3px; }

.entry-choices { position: absolute; z-index: 17; left: 12px; right: 12px; bottom: calc(75px + env(safe-area-inset-bottom)); display: grid; gap: 6px; transition: opacity 230ms ease, transform 420ms ease; }
.entry-choice { position: relative; width: 100%; min-width: 0; min-height: 48px; padding: 8px 35px 8px 12px; display: flex; align-items: center; gap: 11px; border: 2px solid #3d5262; border-radius: 10px 10px 8px 8px; background: linear-gradient(100deg, #14212cf7, #091119f7); color: #e5eaed; box-shadow: inset 0 0 0 2px #071017, 3px 4px 0 #020508cc; text-align: left; cursor: pointer; }
.entry-choice:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px #071017, 1px 2px 0 #020508cc; }
.entry-choice--main { min-height: 71px; border-color: #756c59 #52616c #334450; }
.choice-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.choice-copy strong { font-size: clamp(13px, 3.65vw, 16px); line-height: 1.15; letter-spacing: .5px; text-shadow: var(--v2-pixel-shadow); }
.choice-copy small { overflow: hidden; color: #9da9b1; font-size: clamp(8px, 2.5vw, 10px); line-height: 1.2; white-space: nowrap; }
.speech-mark { position: relative; flex: 0 0 42px; width: 42px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 2px solid #93a6b2; border-radius: 14px 14px 11px 11px; background: #b8c9d3; box-shadow: inset 0 0 0 2px #dbe7ec, 2px 2px 0 #071019; }
.speech-mark::after { content: ""; position: absolute; left: 5px; bottom: -8px; border-width: 8px 9px 0 0; border-style: solid; border-color: #93a6b2 transparent transparent; }
.speech-mark i { width: 4px; height: 4px; background: #172530; }
.chart-mark { flex: 0 0 42px; height: 27px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.chart-mark i { width: 6px; border: 1px solid #b5c9d5; background: linear-gradient(90deg, #718898, #d4e1e6); }
.chart-mark i:nth-child(1) { height: 9px; } .chart-mark i:nth-child(2) { height: 17px; } .chart-mark i:nth-child(3) { height: 25px; }
.choice-arrow { position: absolute; right: 14px; width: 14px; height: 14px; border-top: 3px solid #9eadb7; border-right: 3px solid #9eadb7; transform: rotate(45deg); }

.seat-notice { position: absolute; z-index: 40; top: calc(125px + env(safe-area-inset-top)); left: 50%; width: max-content; max-width: calc(100% - 30px); padding: 8px 11px; border: 1px solid var(--v2-gold); border-radius: 5px; background: #0b1720f5; color: #f4e5b9; font-size: 9px; line-height: 1.35; text-align: center; opacity: 0; transform: translate(-50%, -8px); transition: opacity 180ms ease, transform 180ms ease; pointer-events: none; }
.seat-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }

.prime-panel { position: absolute; z-index: 25; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); max-height: min(44dvh, 352px); padding: 11px 10px 10px; overflow: hidden; border: 3px solid #725223; border-radius: 13px 13px 8px 8px; background: linear-gradient(#172635f7, #09141efb 86%); box-shadow: inset 0 0 0 2px #bd8d3d55, 0 -5px 0 #241507, 0 8px 22px #000b; opacity: 0; transform: translateY(calc(100% + 90px)); transition: transform 520ms cubic-bezier(.2, .78, .25, 1), opacity 220ms ease; pointer-events: none; }
.prime-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, #45270b 0 12px, #6d4316 12px 24px); }
.panel-gold-rule { position: absolute; top: 4px; left: 12px; right: 12px; height: 2px; background: linear-gradient(90deg, transparent, var(--v2-gold), transparent); }
.panel-heading { min-width: 0; display: flex; align-items: center; gap: 9px; padding-bottom: 9px; border-bottom: 1px solid #3e5361; }
.panel-heading-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.panel-heading-copy small { color: var(--v2-gold-bright); font-size: 8px; letter-spacing: 1px; }
.panel-heading-copy strong { overflow: hidden; font-size: 12px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.manager-typing { position: absolute; top: 9px; right: 51px; display: flex; align-items: center; gap: 4px; color: #9fd5df; font-size: 7px; letter-spacing: .7px; opacity: 0; transform: translateY(-3px); transition: opacity 180ms ease, transform 180ms ease; pointer-events: none; }
.manager-typing.is-visible { opacity: 1; transform: translateY(0); }
.typing-dots { display: inline-flex; gap: 2px; align-items: center; }
.typing-dots i { width: 3px; height: 3px; border-radius: 50%; background: #b9e6e8; opacity: .25; animation: typing-dot 720ms steps(1, end) infinite; }
.typing-dots i:nth-child(2) { animation-delay: 160ms; }
.typing-dots i:nth-child(3) { animation-delay: 320ms; }
.panel-seal { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 3px double #f5ca69; border-radius: 50%; background: #173760; color: #ffe28b; font-weight: 900; box-shadow: 2px 2px 0 #03070a; }
.panel-close { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid #526571; border-radius: 6px; background: #0b151d; color: #c7d2d8; font-size: 24px; cursor: pointer; }
.panel-body { max-height: calc(min(44dvh, 352px) - 68px); padding: 9px 1px 13px; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.panel-body::-webkit-scrollbar { display: none; }
.manager-line { margin: 0 0 8px; padding: 8px 9px; border-left: 3px solid var(--v2-gold); background: #0a141c; color: #c9d3d8; font-size: 10px; line-height: 1.45; }
.panel-stack { display: grid; gap: 6px; }
.panel-option, .product-option, .simulate { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #3f5b6d; border-radius: 6px; background: linear-gradient(#142533, #0b1720); color: #e5ecef; text-align: left; cursor: pointer; }
.panel-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; }
.panel-option::after { content: ">"; color: var(--v2-gold-bright); }
.product-option { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; }
.product-option strong { font-size: 10px; } .product-option small { color: #8fa0aa; font-size: 8px; } .product-option b { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: #72dfb0; font-size: 11px; }
.product-option.is-selected { border-color: var(--v2-gold); box-shadow: inset 0 0 0 1px #956821; }
.projection { margin-top: 7px; padding: 8px; border: 1px solid #344b5b; background: #071119; }
.projection-row { display: flex; justify-content: space-between; gap: 8px; color: #9cabb3; font-size: 9px; } .projection-row + .projection-row { margin-top: 5px; } .projection-row b { color: #eef6f7; } .projection-row--return b { color: #72dfb0; }
.simulate { margin-top: 7px; border-color: #a5782a; background: linear-gradient(#745019, #3b270e); color: #fff0bc; text-align: center; font-weight: 900; font-size: 10px; }

@keyframes typing-dot {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

@keyframes manager-look {
  0% { opacity: .18; transform: translateY(2px); }
  45% { opacity: .8; transform: translateY(0); }
  100% { opacity: .65; transform: translateY(1px); }
}

@keyframes screen-reflection {
  0% { opacity: .12; transform: translateY(2px) scale(.85); }
  45% { opacity: .62; transform: translateY(0) scale(1); }
  100% { opacity: .42; transform: translateY(1px) scale(.95); }
}

.bottom-rail { position: absolute; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(69px + env(safe-area-inset-bottom)); padding: 4px 5px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; background: linear-gradient(#0e1921f8, #071018f8); border-top: 2px solid #354652; box-shadow: 0 -4px 0 #03070a, 0 -12px 20px #0005; transition: opacity 300ms ease; }
.bottom-rail button { min-width: 0; padding: 3px 1px; display: grid; justify-items: center; align-content: center; gap: 3px; border: 1px solid #293842; border-radius: 8px; background: #0d161de0; color: #767f86; cursor: pointer; }
.bottom-rail button.is-active { border-color: #22bfe7; color: #9addf1; box-shadow: inset 0 0 0 1px #0b4f68, 0 0 8px #1ac3ef24; }
.bottom-rail small { overflow: hidden; max-width: 100%; font-size: clamp(7px, 2.3vw, 9px); letter-spacing: .3px; white-space: nowrap; }
.rail-icon { position: relative; width: 31px; height: 29px; display: block; filter: drop-shadow(1px 2px 0 #020507); }
.rail-icon--home::before, .rail-icon--bank::before { content: ""; position: absolute; left: 2px; right: 2px; top: 3px; height: 9px; background: #d39a2d; clip-path: polygon(50% 0, 100% 78%, 100% 100%, 0 100%, 0 78%); }
.rail-icon--home::after, .rail-icon--bank::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 16px; border: solid #d39a2d; border-width: 0 4px 4px; background: repeating-linear-gradient(90deg, transparent 0 3px, #d39a2d 3px 6px); }
.rail-icon--bank::before { background: #aeb9bf; } .rail-icon--bank::after { border-color: #aeb9bf; background: repeating-linear-gradient(90deg, transparent 0 3px, #aeb9bf 3px 6px); }
.rail-icon--vault::before { content: ""; position: absolute; inset: 2px; border: 3px solid #747a7d; border-radius: 3px; background: #333a3d; box-shadow: inset 0 0 0 2px #111719; }
.rail-icon--vault::after { content: ""; position: absolute; left: 10px; top: 8px; width: 8px; height: 8px; border: 2px solid #c99a3e; border-radius: 50%; box-shadow: 4px 5px 0 -3px #c99a3e; }
.rail-icon--ticket { width: 28px; height: 21px; margin-top: 4px; border: 3px solid #a66c21; border-radius: 3px; background: #dc9b3c; transform: rotate(15deg); box-shadow: inset 0 0 0 2px #f0c676; } .rail-icon--ticket::after { content: "P"; position: absolute; inset: 0; display: grid; place-items: center; color: #724412; font-size: 9px; font-weight: 900; }
.rail-icon--cup::before { content: ""; position: absolute; left: 8px; top: 3px; width: 15px; height: 14px; border: 3px solid #d8a134; border-radius: 2px 2px 8px 8px; background: #a86c16; } .rail-icon--cup::after { content: ""; position: absolute; left: 13px; bottom: 2px; width: 6px; height: 10px; border-bottom: 3px solid #d8a134; background: #d8a134; }

.v2-menu { position: absolute; z-index: 50; top: calc(51px + env(safe-area-inset-top)); right: 7px; width: 174px; padding: 8px; border: 2px solid #475a67; border-radius: 7px; background: #0a141bf8; box-shadow: 3px 4px 0 #0009; }
.v2-menu strong { display: block; margin: 2px 4px 7px; color: var(--v2-gold-bright); font-size: 9px; letter-spacing: 1px; }
.v2-menu button { width: 100%; padding: 8px 6px; border: 0; border-top: 1px solid #263945; background: transparent; color: #c5cfd4; font-size: 9px; text-align: left; }

.v2-app[data-view="seated"] .scene-art--entry { opacity: 0; transform: scale(.985) translateY(-1%); }
.v2-app[data-view="seated"] .scene-art--seated { opacity: 1; transform: scale(1) translateY(0); }
.v2-app[data-view="seated"] .scene-art--working { opacity: 0; transform: scale(1) translateY(0); }
.v2-app[data-view="seated"][data-manager-state="typing"] .scene-art--seated { opacity: 0; transform: scale(1.005) translateY(.1%); }
.v2-app[data-view="seated"][data-manager-state="typing"] .scene-art--working { opacity: 1; transform: scale(1) translateY(0); }
.v2-app[data-view="seated"] .scene-frame { transform: scale(1.018) translateY(-.6%); }
.v2-app[data-view="seated"] .seat-settle-shadow { opacity: .26; transform: scale(1); }
.v2-app[data-view="seated"] .scene-sign { opacity: .14; transform: translateY(-7px); }
.v2-app[data-view="seated"] .entry-choices { opacity: 0; transform: translateY(25px); pointer-events: none; }
.v2-app[data-view="seated"] .place-ribbon { transform: translateY(-2px); }
.v2-app[data-view="seated"] .bottom-rail { opacity: .88; }
.v2-app[data-panel="talk"] .prime-panel, .v2-app[data-panel="investments"] .prime-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.v2-app[data-manager-state="typing"] .manager-screen-light { opacity: .62; transform: translateY(0) scale(1); animation: screen-reflection 920ms ease-out 1; }
.v2-app[data-manager-state="typing"] .manager-look { animation: manager-look 920ms ease-out 1; }
.v2-app[data-manager-state="typing"] .panel-body button { opacity: .58; pointer-events: none; }

@media (max-width: 374px) {
  .top-hud { gap: 3px; padding-inline: 5px; }
  .profile-avatar { flex-basis: 39px; height: 39px; }
  .profile-level { width: 46px; } .profile-level i { width: 44px; }
  .resource-row { gap: 2px; } .resource { padding-right: 4px; gap: 2px; } .resource i { flex-basis: 22px; width: 22px; height: 22px; font-size: 10px; } .resource b { font-size: 9px; }
  .menu-toggle { flex-basis: 30px; width: 30px; } .menu-toggle i { width: 25px; }
  .place-ribbon { left: 8px; right: 8px; } .place-rank { padding-inline: 5px; font-size: 8px; }
  .entry-choices { left: 8px; right: 8px; } .choice-copy strong { font-size: 12px; }
}

@media (max-height: 720px) {
  .place-ribbon { top: calc(61px + env(safe-area-inset-top)); min-height: 48px; }
  .scene-sign { top: calc(116px + env(safe-area-inset-top)); height: 66px; }
  .entry-choices { bottom: calc(65px + env(safe-area-inset-bottom)); gap: 4px; } .entry-choice--main { min-height: 61px; }
  .bottom-rail { height: calc(61px + env(safe-area-inset-bottom)); }
  .prime-panel { bottom: calc(62px + env(safe-area-inset-bottom)); max-height: min(43dvh, 310px); } .panel-body { max-height: min(calc(43dvh - 68px), 242px); }
  .rail-icon { transform: scale(.85); transform-origin: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
