:root {
  --bg: #100908;
  --bg-soft: #1a0f0d;
  --panel: rgba(31, 19, 16, 0.88);
  --panel-solid: #241512;
  --panel-bright: #30201b;
  --line: rgba(255, 224, 190, 0.12);
  --line-strong: rgba(255, 224, 190, 0.22);
  --text: #fff8ee;
  --muted: #b9a89a;
  --faint: #796a60;
  --accent: #ff8b46;
  --accent-2: #ffc063;
  --accent-dark: #8d3c20;
  --green: #79d9a2;
  --cyan: #6bdad6;
  --violet: #b687ff;
  --danger: #ff6e67;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --safe-top: max(env(safe-area-inset-top), var(--tg-safe-top, 0px));
  --safe-right: max(env(safe-area-inset-right), var(--tg-safe-right, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-bottom, 0px));
  --safe-left: max(env(safe-area-inset-left), var(--tg-safe-left, 0px));
  --app-height: 100dvh;
  --viewport-height: 100dvh;
  --viewport-offset-top: 0px;
  --viewport-center: 50dvh;
  --keyboard-inset: 0px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html,
body { margin: 0; min-width: 320px; min-height: 100%; background: var(--bg); color: var(--text); overscroll-behavior: none; }

body { min-height: var(--app-height); overflow: hidden; -webkit-font-smoothing: antialiased; }

button,
input,
select { font: inherit; }

button { color: inherit; }

button,
[role="button"] { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible,
select:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

button:disabled { cursor: not-allowed; filter: grayscale(.25); opacity: .5; }

svg { display: block; width: 1em; height: 1em; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

[hidden] { display: none !important; }

.app {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: var(--app-height);
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 13% 0%, rgba(174, 69, 37, .21), transparent 32%),
    radial-gradient(circle at 85% 100%, rgba(96, 40, 26, .17), transparent 36%),
    var(--bg);
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.eyebrow { margin: 0 0 8px; color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(circle at center 45%, rgba(167, 72, 40, .26), transparent 30%),
    linear-gradient(160deg, #170c0a, #090605 76%);
  transition: opacity .55s ease, visibility .55s ease;
}

.app:not(.is-booting) .boot-screen { opacity: 0; visibility: hidden; pointer-events: none; }

.boot-screen h1 { margin: 3px 0 8px; max-width: 520px; font-size: clamp(25px, 5vw, 42px); letter-spacing: -.04em; }
.boot-message { min-height: 24px; margin: 0; color: var(--muted); font-size: 14px; }
.boot-progress { width: min(280px, 78vw); height: 3px; margin: 24px 0 0; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.boot-progress span { display: block; width: 18%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 16px var(--accent); transition: width .4s ease; }
.boot-retry { margin-top: 20px; }

.boot-orbit { position: relative; width: 140px; height: 140px; margin-bottom: 22px; animation: boot-float 3s ease-in-out infinite; }
.boot-orbit::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255, 184, 107, .17); border-radius: 50%; transform: rotateX(64deg) rotateZ(-8deg); }
.boot-planet { position: absolute; inset: 22px; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #ec9961, #9f452b 46%, #482016 76%); box-shadow: inset -18px -15px 28px rgba(40, 9, 3, .54), 0 0 46px rgba(222, 101, 55, .16); }
.boot-planet::after { content: ""; position: absolute; width: 32px; height: 12px; left: 19px; top: 42px; border-radius: 50%; border: 3px solid rgba(80, 26, 13, .26); transform: rotate(-18deg); }
.boot-rover { position: absolute; right: 1px; top: 52px; width: 34px; height: 22px; border-radius: 5px; background: #f3bc67; transform: rotate(9deg); box-shadow: 0 7px 16px rgba(0, 0, 0, .4); }
.boot-rover::before, .boot-rover::after { content: ""; position: absolute; bottom: -5px; width: 9px; height: 9px; border: 3px solid #1b1817; border-radius: 50%; background: #6e5b4e; }
.boot-rover::before { left: 1px; }.boot-rover::after { right: 1px; }
.boot-rover span { position: absolute; width: 28px; height: 4px; left: 3px; top: -5px; background: #4d9d9f; border: 1px solid #bce3d7; transform: rotate(-5deg); }
.boot-rover i { position: absolute; left: 8px; top: -11px; width: 3px; height: 8px; background: #eed6aa; }
.boot-rover b { position: absolute; left: 5px; top: -15px; width: 9px; height: 5px; border-radius: 50%; background: #eed6aa; }

@keyframes boot-float { 50% { transform: translateY(-8px) rotate(1deg); } }

.topbar {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 14px;
  min-height: calc(76px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) max(18px, var(--safe-right)) 10px max(18px, var(--safe-left));
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 12, 10, .98), rgba(20, 12, 10, .9));
  backdrop-filter: blur(18px);
}

.brand,
.profile-chip,
.balance-card { border: 0; cursor: pointer; }

.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; padding: 0; background: none; text-align: left; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 16px; line-height: 1.05; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.brand-mark { position: relative; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid rgba(255, 185, 108, .35); border-radius: 13px; background: linear-gradient(145deg, #be5630, #5e261a); box-shadow: inset 0 1px rgba(255,255,255,.15), 0 8px 20px rgba(90, 24, 10, .25); }
.brand-mark::before { content: ""; position: absolute; width: 18px; height: 10px; left: 10px; top: 15px; border-radius: 3px; background: #f4c16e; box-shadow: 0 -5px 0 -2px #7fc1bc; }
.brand-mark i, .brand-mark b { position: absolute; width: 9px; height: 9px; bottom: 7px; border: 2px solid #221815; border-radius: 50%; background: #7c5c45; }
.brand-mark i { left: 6px; }.brand-mark b { right: 6px; }

.hud-balances { display: flex; align-items: center; gap: 8px; justify-self: center; }
.balance-card { position: relative; display: flex; align-items: center; gap: 10px; min-width: 145px; height: 48px; padding: 5px 10px 5px 7px; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: rgba(255,255,255,.045); box-shadow: inset 0 1px rgba(255,255,255,.025); transition: border-color .2s, background .2s, transform .2s; }
.balance-card:hover { border-color: var(--line-strong); background: rgba(255,255,255,.07); transform: translateY(-1px); }
.balance-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 11px; color: var(--accent-2); background: rgba(255, 174, 84, .13); }
.balance-icon svg { width: 18px; height: 18px; }
.ton-card .balance-icon { color: var(--cyan); background: rgba(82, 203, 207, .12); }
.balance-copy { display: flex; min-width: 56px; flex: 1; flex-direction: column; align-items: flex-start; }
.balance-copy small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.balance-copy b { margin-top: 2px; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balance-copy em { margin-left: 2px; color: var(--faint); font-size: 10px; font-style: normal; }
.balance-add { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 8px; color: #17100d; background: var(--cyan); }
.balance-add svg { width: 14px; height: 14px; }
.energy-ring { --energy: 0; position: relative; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: conic-gradient(var(--accent-2) calc(var(--energy) * 1%), rgba(255,255,255,.08) 0); }
.energy-ring::after { content: ""; position: absolute; inset: 4px; border-radius: inherit; background: #1c110f; }
.energy-ring i { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 12px rgba(255, 161, 73, .18); }

.profile-chip { display: inline-flex; align-items: center; gap: 10px; justify-self: end; min-width: 170px; padding: 4px 5px 4px 4px; border-radius: 15px; background: transparent; text-align: left; transition: background .2s; }
.profile-chip:hover { background: rgba(255,255,255,.05); }
.profile-avatar { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; overflow: hidden; border: 1px solid rgba(255, 190, 112, .34); border-radius: 13px; color: #281811; background: linear-gradient(145deg, #ffcf7e, #d36b40); font-size: 12px; font-weight: 900; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.profile-copy small { color: var(--faint); font-size: 9px; }.profile-copy strong { max-width: 118px; overflow: hidden; margin-top: 2px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-chip > svg { width: 15px; height: 15px; color: var(--faint); }

.app-main { position: relative; min-height: 0; overflow: hidden; }
.screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(5px); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.screen.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.map-screen { overflow: hidden; }
.scene-shell { position: absolute; inset: 10px 18px 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #6a281c; box-shadow: inset 0 1px rgba(255,255,255,.05), 0 20px 70px rgba(0,0,0,.22); }
.scene-canvas, .scene-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.scene-canvas canvas { cursor: grab; }.scene-canvas canvas:active { cursor: grabbing; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20,8,5,.18), transparent 18%, transparent 72%, rgba(19,8,6,.27)), radial-gradient(circle at center, transparent 54%, rgba(31,8,4,.28)); }

.scene-top-left { position: absolute; top: 17px; left: 17px; display: flex; align-items: flex-start; z-index: 4; }
.map-switch { display: flex; gap: 5px; padding: 5px; border: 1px solid rgba(255,235,212,.13); border-radius: 18px; background: rgba(27,15,13,.76); box-shadow: 0 8px 30px rgba(0,0,0,.18); backdrop-filter: blur(14px); transition: width .2s, opacity .2s; }
.map-option { display: flex; align-items: center; gap: 9px; width: 204px; padding: 7px 10px 7px 7px; border: 1px solid transparent; border-radius: 13px; background: transparent; cursor: pointer; text-align: left; transition: background .2s, border-color .2s; }
.map-option:hover { background: rgba(255,255,255,.045); }
.map-option.is-active { border-color: rgba(255,190,123,.18); background: rgba(255,255,255,.085); }
.map-option > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }.map-option b { font-size: 11px; white-space: nowrap; }.map-option small { margin-top: 3px; overflow: hidden; color: #b9a295; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.map-orb { position: relative; width: 32px; height: 32px; flex: 0 0 32px; overflow: hidden; border-radius: 11px; }
.map-orb::before, .map-orb::after { content: ""; position: absolute; border-radius: 50%; }
.map-orb::before { width: 30px; height: 30px; left: 6px; top: 8px; background: #b95735; box-shadow: inset -8px -5px 10px rgba(58,14,7,.4); }
.map-orb::after { width: 8px; height: 3px; left: 13px; top: 16px; border: 2px solid rgba(77,26,12,.38); }
.map-orb.free { background: linear-gradient(#4f8081, #b35f3d); }.map-orb.vip { background: linear-gradient(#251b38, #5d2539); }.map-orb.vip::before { background: #5b2740; box-shadow: inset -8px -5px 10px rgba(15,5,18,.48); }
.map-collapse { display: none; width: 34px; height: 34px; margin: 6px 0 0 5px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(25,13,11,.72); cursor: pointer; }.map-collapse svg { width: 15px; transform: rotate(180deg); }

.scene-top-right { position: absolute; top: 18px; right: 18px; display: flex; z-index: 4; gap: 7px; }
.status-pill, .coord-pill { display: inline-flex; align-items: center; height: 31px; padding: 0 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; color: #d9c7b8; background: rgba(25,13,11,.69); backdrop-filter: blur(12px); font-size: 9px; font-weight: 700; }
.status-pill i { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-pill.is-offline i { background: var(--danger); box-shadow: 0 0 8px var(--danger); }.status-pill.is-syncing i { background: var(--accent-2); animation: blink 1s infinite; }
.coord-pill b { margin-left: 5px; color: #fff; font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: .3; } }

.mission-card { position: absolute; top: 64px; right: 18px; z-index: 4; display: grid; grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 10px; width: 294px; padding: 11px; border: 1px solid rgba(255,218,173,.15); border-radius: 16px; background: rgba(29,16,13,.75); box-shadow: 0 15px 40px rgba(0,0,0,.17); backdrop-filter: blur(14px); transition: opacity .25s, transform .25s; }
.mission-card.is-hidden { opacity: 0; transform: translateX(20px); pointer-events: none; }
.mission-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--accent-2); background: rgba(255,174,90,.13); }.mission-icon svg { width: 20px; height: 20px; }
.mission-card > div:nth-child(2) { min-width: 0; }.mission-card small { color: var(--accent-2); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.mission-card strong { display: block; margin-top: 2px; font-size: 11px; }.mission-card p { margin: 4px 0 0; color: #b8a99c; font-size: 9px; line-height: 1.35; }
.mission-card > button { display: grid; width: 24px; height: 24px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: var(--faint); background: transparent; cursor: pointer; }.mission-card > button:hover { color: var(--text); background: rgba(255,255,255,.06); }.mission-card > button svg { width: 13px; height: 13px; }

.move-status { position: absolute; right: 20px; bottom: 19px; z-index: 4; display: flex; align-items: center; gap: 9px; min-width: 188px; height: 34px; padding: 0 13px 0 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; color: #c4b2a3; background: rgba(27,14,12,.72); backdrop-filter: blur(12px); font-size: 9px; font-weight: 700; transition: border-color .2s, transform .2s; }
.move-status.is-moving { border-color: rgba(255,183,96,.3); transform: translateY(-2px); }.move-status.is-error { border-color: rgba(255,110,103,.45); }
.move-energy { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 6px; border-radius: 8px; color: var(--accent-2); background: rgba(255,164,69,.12); }.move-energy svg { width: 11px; height: 11px; }.move-energy b { font-size: 9px; }

.dpad-wrap { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.control-caption { display: none; }
.dpad { position: absolute; inset: 0; pointer-events: none; }
.dpad-key { position: absolute; left: 50%; top: 50%; display: grid; width: 52px; height: 52px; padding: 0; place-items: center; border: 1px solid rgba(255,214,166,.36); border-bottom-color: rgba(77,28,17,.65); border-radius: 16px; color: #ffe8cc; background: linear-gradient(145deg, rgba(206,108,67,.94), rgba(132,54,37,.94)); box-shadow: inset 0 1px rgba(255,255,255,.18), 0 6px 0 rgba(66,24,16,.42), 0 12px 25px rgba(25,8,5,.26); cursor: pointer; pointer-events: auto; transform: translate(-50%,-50%); transition: color .12s, border-color .12s, filter .12s, transform .08s; touch-action: manipulation; }
.dpad-key:hover { color: #fff3d8; border-color: rgba(255,220,172,.62); filter: brightness(1.12); }.dpad-key:active, .dpad-key.is-pressed { transform: translate(-50%,-50%) scale(.93); }.dpad-key:disabled { opacity: .28; filter: saturate(.45); cursor: not-allowed; }
.dpad-key svg { width: 20px; height: 20px; filter: drop-shadow(0 2px 2px rgba(47,15,8,.3)); }.dpad-key.left svg { transform: rotate(-90deg); }.dpad-key.right svg { transform: rotate(90deg); }.dpad-key.down svg { transform: rotate(180deg); }
.dpad-center { display: none; }

.nearby-action { position: absolute; left: 20px; bottom: 20px; z-index: 5; display: flex; align-items: center; gap: 10px; min-width: 238px; padding: 7px 9px 7px 7px; border: 1px solid rgba(116,222,192,.27); border-radius: 15px; color: var(--text); background: rgba(20, 38, 32, .78); box-shadow: 0 12px 34px rgba(0,0,0,.24); backdrop-filter: blur(14px); cursor: pointer; text-align: left; animation: nearby-in .35s ease both; }
@keyframes nearby-in { from { opacity: 0; transform: translateY(12px); } }
.nearby-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 11px; color: var(--green); background: rgba(104,217,163,.13); }.nearby-icon svg { width: 20px; height: 20px; }.nearby-action > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }.nearby-action small { color: #82bd9e; font-size: 8px; font-weight: 700; }.nearby-action b { margin-top: 2px; font-size: 10px; }.nearby-action > svg { width: 15px; color: #7ea792; }

.scene-loading { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at center, rgba(137,52,29,.72), rgba(38,13,8,.94)); transition: opacity .45s, visibility .45s; }.scene-loading.is-ready { opacity: 0; visibility: hidden; pointer-events: none; }.scene-loading span { width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--accent-2); border-radius: 50%; animation: spin .75s linear infinite; }.scene-loading p { margin: 13px 0 0; color: #d7bba6; font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }

.content-screen { overflow: hidden auto; overscroll-behavior: contain; scrollbar-color: #704331 transparent; padding: 42px max(24px, calc((100vw - 1240px) / 2)) 60px; }
.content-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; min-height: 282px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 78% 40%, rgba(229,108,61,.26), transparent 29%), linear-gradient(135deg, rgba(55,30,24,.94), rgba(26,16,14,.92)); box-shadow: var(--shadow); }
.hero-copy { padding: 38px 48px; }.hero-copy h2, .content-heading h2, .profile-hero h2 { margin: 0; font-size: clamp(27px, 4vw, 45px); line-height: 1.03; letter-spacing: -.045em; }.hero-copy > p:last-child, .content-heading > div > p:last-child { max-width: 560px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.rover-preview-card { position: relative; align-self: stretch; display: flex; min-height: 280px; flex-direction: column; align-items: center; justify-content: flex-end; padding: 17px 20px 25px; border-left: 1px solid var(--line); background: radial-gradient(circle at 50% 48%, rgba(248,142,76,.19), transparent 42%); }.rover-preview-card::before { content: ""; position: absolute; left: 50%; bottom: 59px; width: 190px; height: 35px; border-radius: 50%; background: rgba(7,3,2,.25); filter: blur(10px); transform: translateX(-50%); }.rover-preview-card #rover-preview { position: absolute; inset: 0 0 48px; }.rover-preview-card canvas { width: 100%; height: 100%; }.rover-preview-card strong { position: relative; z-index: 2; font-size: 13px; }.rover-preview-card small { position: relative; z-index: 2; margin-top: 4px; color: var(--green); font-size: 9px; }.preview-badge { position: absolute; top: 18px; right: 18px; z-index: 3; padding: 5px 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; color: var(--accent-2); background: rgba(15,8,7,.38); font-size: 8px; font-weight: 800; text-transform: uppercase; backdrop-filter: blur(8px); }

.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 2px 17px; }.segmented { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }.segmented button { min-width: 72px; height: 31px; padding: 0 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }.segmented button.is-active { color: var(--text); background: rgba(255,255,255,.09); box-shadow: 0 4px 12px rgba(0,0,0,.15); }.collection-count { color: var(--muted); font-size: 10px; }.collection-count b { color: var(--text); }
.skin-grid, .market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.skin-card, .market-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(155deg, rgba(48,29,24,.93), rgba(27,17,15,.94)); box-shadow: 0 12px 35px rgba(0,0,0,.13); transition: border-color .2s, transform .2s, box-shadow .2s; }
.skin-card:hover, .market-card:hover { border-color: rgba(255,197,133,.3); box-shadow: 0 16px 42px rgba(0,0,0,.24); transform: translateY(-3px); }
.skin-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,139,70,.2), 0 15px 40px rgba(0,0,0,.2); }
.skin-art { --skin-main: #d88852; --skin-accent: #79c2bb; position: relative; height: 150px; overflow: hidden; background: radial-gradient(circle at 50% 68%, color-mix(in srgb, var(--skin-main) 26%, transparent), transparent 48%), linear-gradient(160deg, rgba(255,255,255,.04), rgba(0,0,0,.09)); }
.skin-art::before { content: ""; position: absolute; left: 50%; bottom: 21px; width: 100px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.29); filter: blur(7px); transform: translateX(-50%); }
.mini-rover { position: absolute; left: 50%; top: 51%; width: 102px; height: 55px; transform: translate(-50%, -50%) rotate(-5deg); }
.mini-rover .body { position: absolute; left: 18px; top: 17px; width: 68px; height: 26px; border-radius: 7px 10px 5px 6px; border-bottom: 5px solid color-mix(in srgb, var(--skin-main), #43170c 30%); background: var(--skin-main); box-shadow: inset 0 2px rgba(255,255,255,.2); }.mini-rover .body::before { content: ""; position: absolute; left: 20px; top: -13px; width: 34px; height: 15px; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--skin-main), white 12%); }.mini-rover .body::after { content: ""; position: absolute; left: 10px; top: -18px; width: 52px; height: 6px; border: 1px solid color-mix(in srgb, var(--skin-accent), white 28%); border-radius: 2px; background: var(--skin-accent); box-shadow: inset 12px 0 rgba(0,0,0,.12), inset -12px 0 rgba(0,0,0,.12); }
.mini-rover .wheels::before, .mini-rover .wheels::after { content: ""; position: absolute; top: 38px; width: 20px; height: 20px; border: 5px solid #171616; border-radius: 50%; background: #6e5141; box-shadow: inset 0 0 0 2px #a98468; }.mini-rover .wheels::before { left: 12px; }.mini-rover .wheels::after { right: 9px; }.mini-rover .antenna { position: absolute; left: 70px; top: -4px; width: 2px; height: 18px; background: #d9c29e; }.mini-rover .antenna::before { content: ""; position: absolute; left: -5px; top: -4px; width: 12px; height: 6px; border-radius: 50%; background: var(--skin-accent); transform: rotate(-18deg); }
.skin-rarity { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; color: #d8c8bb; background: rgba(19,11,9,.55); backdrop-filter: blur(8px); font-size: 7px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }.rarity-rare { color: #71d7ec; }.rarity-epic { color: #c198ff; }.rarity-legendary { color: #ffc563; }
.owned-badge { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; min-width: 28px; width: auto; height: 25px; padding: 0 7px; place-items: center; border-radius: 8px; color: #183122; background: var(--green); }.owned-badge svg { width: 14px; height: 14px; }
.skin-stock { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 28px; margin: -5px 0 9px; padding: 5px 7px; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 7px; }.skin-stock b { color: var(--green); font-size: 10px; }.skin-stock span { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.skin-card-copy, .market-card-copy { padding: 13px 14px 14px; border-top: 1px solid rgba(255,255,255,.06); }.skin-card-copy h3, .market-card-copy h3 { margin: 0; font-size: 12px; }.skin-card-copy p, .market-card-copy p { min-height: 28px; margin: 5px 0 12px; color: var(--muted); font-size: 9px; line-height: 1.45; }.skin-card-copy button { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: #e6d7cb; background: rgba(255,255,255,.045); cursor: pointer; font-size: 9px; font-weight: 800; }.skin-card-copy button:hover { border-color: rgba(255,190,120,.28); background: rgba(255,160,78,.1); }.skin-card-copy button.is-equipped { color: var(--green); border-color: rgba(117,220,163,.2); background: rgba(117,220,163,.08); }

.skin-card-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 6px; }
.skin-card-actions > button { min-width: 0; padding: 0 5px; font-size: 8px; }
.skin-card-copy .skin-burn-button { color: #ffb07e; border-color: rgba(255,139,70,.24); background: rgba(255,112,64,.07); }
.skin-card-copy .skin-burn-button:hover:not(:disabled) { color: #ffd0ad; border-color: rgba(255,139,70,.45); background: rgba(255,112,64,.14); }
.skin-card-copy button:disabled { cursor: not-allowed; opacity: .56; }

.skin-burn-hint { display: block; min-height: 18px; margin: 6px 2px 0; color: var(--faint); font-size: 6px; line-height: 1.4; }

.inventory-toolbar { align-items: flex-start; }.inventory-filters { max-width: calc(100% - 110px); overflow-x: auto; scrollbar-width: none; }.inventory-filters::-webkit-scrollbar { display: none; }.inventory-filters button { flex: 0 0 auto; }.inventory-section { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255,255,255,.018); }.inventory-section + .inventory-section { margin-top: 14px; }.inventory-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }.inventory-section-heading .eyebrow { margin-bottom: 4px; font-size: 8px; }.inventory-section-heading h3 { margin: 0; font-size: 17px; }.inventory-section-heading > span { display: grid; min-width: 29px; height: 29px; padding: 0 8px; place-items: center; border-radius: 9px; color: var(--accent-2); background: rgba(255,174,83,.1); font-size: 9px; font-weight: 900; }.inventory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }.inventory-card { position: relative; display: flex; min-width: 0; min-height: 242px; flex-direction: column; padding: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(155deg,rgba(48,29,24,.92),rgba(26,16,14,.96)); }.inventory-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,139,70,.18); }.inventory-card-icon { display: grid; width: 37px; height: 37px; margin-bottom: 12px; place-items: center; border-radius: 12px; color: var(--accent-2); background: rgba(255,174,83,.1); }.inventory-card-icon svg { width: 20px; height: 20px; }.inventory-card-title { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 8px; }.inventory-card-title > span { min-width: 0; }.inventory-card-title small { display: block; color: var(--faint); font-size: 7px; letter-spacing: .07em; }.inventory-card-title h4 { margin: 3px 0 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.inventory-card > p { min-height: 25px; margin: 7px 0 12px; color: var(--muted); font-size: 8px; line-height: 1.45; }.inventory-status { flex: 0 0 auto; padding: 4px 6px; border-radius: 7px; color: var(--accent-2); background: rgba(255,176,87,.09); font-size: 6px; letter-spacing: .06em; }.inventory-status.is-active { color: var(--green); background: rgba(116,220,163,.09); }.inventory-energy { margin-top: auto; padding: 9px; border-radius: 11px; background: rgba(255,255,255,.035); }.inventory-energy > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.inventory-energy small { color: var(--faint); font-size: 7px; }.inventory-energy b { color: var(--text); font-size: 9px; font-variant-numeric: tabular-nums; }.inventory-meter { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }.inventory-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent),var(--accent-2)); }.inventory-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }.inventory-card-meta span { min-width: 0; padding: 7px; border: 1px solid rgba(255,255,255,.06); border-radius: 9px; }.inventory-card-meta small { display: block; overflow: hidden; color: var(--faint); font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }.inventory-card-meta b { display: block; margin-top: 3px; overflow: hidden; color: var(--cyan); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.inventory-card-actions { display: flex; gap: 7px; margin-top: 10px; }.inventory-card-actions .button { width: 100%; min-height: 35px; padding: 0 10px; }.promo-inventory-card code { padding: 10px; border: 1px dashed rgba(255,203,144,.25); border-radius: 10px; color: var(--accent-2); background: rgba(255,176,87,.04); font-size: 12px; letter-spacing: .05em; text-align: center; }.promo-inventory-card .inventory-card-actions { margin-top: auto; }.reward-inventory-card { min-height: 175px; }.reward-inventory-card .inventory-card-icon { color: var(--cyan); background: rgba(104,217,215,.1); }
.inventory-inline-empty { grid-column: 1 / -1; padding: 18px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); background: rgba(255,255,255,.018); font-size: 9px; text-align: center; }
.nearby-action.is-placement { border-color: rgba(255,177,87,.34); background: rgba(74,41,24,.94); }
.nearby-action.is-placement .nearby-icon { color: var(--accent-2); background: rgba(255,177,87,.13); }

.content-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }.content-heading .button { flex: 0 0 auto; }.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: 10px; font-weight: 800; transition: transform .15s, border-color .15s, background .15s; }.button:hover:not(:disabled) { transform: translateY(-1px); }.button svg { width: 15px; height: 15px; }.button-primary { color: #21110b; border-color: #ffc178; background: linear-gradient(135deg, #ffc470, #f48345); box-shadow: 0 9px 24px rgba(211,82,36,.2); }.button-primary:hover:not(:disabled) { background: linear-gradient(135deg, #ffd08b, #f69356); }.button-secondary { color: #eaded5; border-color: var(--line); background: rgba(255,255,255,.05); }.button-secondary:hover:not(:disabled) { border-color: var(--line-strong); background: rgba(255,255,255,.08); }.button-danger { color: #ffaba7; border-color: rgba(255,110,103,.23); background: rgba(255,110,103,.08); }.button-full { width: 100%; }
.market-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 215px; gap: 10px; }.search-field, .select-field { display: flex; height: 43px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); }.search-field input { min-width: 0; height: 100%; flex: 1; padding: 0 14px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }.search-field input::placeholder { color: var(--faint); }.search-field kbd { margin-right: 11px; color: var(--faint); font-size: 18px; }.select-field { position: relative; }.select-field span { position: absolute; top: 5px; left: 12px; color: var(--faint); font-size: 7px; pointer-events: none; }.select-field select { width: 100%; height: 100%; padding: 12px 33px 0 12px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 10px; appearance: none; cursor: pointer; }.select-field::after { content: "⌄"; position: absolute; right: 12px; color: var(--muted); pointer-events: none; }.select-field option { background: #241512; }
.market-stats { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px; color: var(--faint); font-size: 9px; }.market-stats span { display: flex; align-items: center; }.market-stats b { margin-right: 4px; color: var(--muted); }.live-dot { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); }
.market-card .skin-art { height: 138px; }.market-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }.market-seller { display: flex; min-width: 0; flex-direction: column; }.market-seller small { color: var(--faint); font-size: 7px; }.market-seller b { max-width: 110px; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.market-price { display: inline-flex; align-items: center; gap: 4px; color: var(--cyan); font-size: 12px; font-weight: 900; white-space: nowrap; }.market-price svg { width: 13px; height: 13px; }.market-card .button { width: 100%; min-height: 34px; margin-top: 12px; }

.empty-state { padding: 70px 20px; text-align: center; }.empty-state > span { display: grid; width: 50px; height: 50px; margin: 0 auto 14px; place-items: center; border: 1px solid var(--line); border-radius: 16px; color: var(--faint); font-size: 25px; }.empty-state h3 { margin: 0; font-size: 16px; }.empty-state p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }

.profile-hero { position: relative; display: flex; align-items: center; gap: 18px; padding: 28px 31px; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: radial-gradient(circle at 90% 30%, rgba(211,91,50,.2), transparent 25%), rgba(255,255,255,.025); }.profile-large-avatar { display: grid; width: 72px; height: 72px; flex: 0 0 72px; place-items: center; overflow: hidden; border: 1px solid rgba(255,189,111,.35); border-radius: 22px; color: #2b160d; background: linear-gradient(145deg, #ffd48b, #d9693f); box-shadow: 0 12px 30px rgba(121,40,17,.2); font-size: 18px; font-weight: 900; }.profile-large-avatar img { width: 100%; height: 100%; object-fit: cover; }.profile-hero h2 { font-size: 30px; }.profile-hero > div:nth-child(2) > p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 10px; }.demo-badge { margin-left: auto; padding: 6px 9px; border: 1px solid rgba(111,218,209,.22); border-radius: 8px; color: var(--cyan); background: rgba(88,204,200,.07); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; margin-top: 16px; }.profile-main { min-width: 0; }.profile-aside { display: flex; flex-direction: column; gap: 16px; }.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }.stat-grid article { display: flex; min-height: 117px; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.025); }.stat-grid small { color: var(--muted); font-size: 8px; }.stat-grid strong { margin: auto 0 3px; font-size: 25px; letter-spacing: -.04em; }.stat-grid strong em { color: var(--cyan); font-size: 8px; font-style: normal; }.stat-grid article > span { color: var(--faint); font-size: 7px; }
.panel-card { padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.027); }.profile-main .panel-card { margin-top: 16px; }.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.panel-title .eyebrow { margin-bottom: 4px; }.panel-title h3 { margin: 0; font-size: 15px; }.panel-title > span { display: grid; min-width: 28px; height: 28px; padding: 0 8px; place-items: center; border-radius: 9px; color: var(--accent-2); background: rgba(255,174,83,.1); font-size: 9px; font-weight: 800; }.panel-icon { width: 26px; height: 26px; color: var(--cyan); }.panel-card > p { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.promo-list { display: grid; gap: 8px; }.promo-item { display: flex; min-height: 48px; align-items: center; gap: 12px; padding: 8px 9px 8px 12px; border: 1px dashed rgba(255,203,144,.2); border-radius: 12px; background: rgba(255,176,87,.035); }.promo-item > span { flex: 1; }.promo-item small { display: block; color: var(--faint); font-size: 7px; }.promo-item code { display: block; margin-top: 3px; color: var(--accent-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .04em; }.promo-item button { display: grid; width: 31px; height: 31px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.04); cursor: pointer; }.promo-item button:hover { color: var(--text); }.promo-item button svg { width: 14px; height: 14px; }.promo-empty { padding: 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--faint); text-align: center; font-size: 9px; }
.promo-disclaimer { margin: 10px 2px 0; color: var(--faint); font-size: 8px; line-height: 1.45; }
.settings-card label { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.06); cursor: pointer; }.settings-card label > span { display: flex; min-width: 0; flex: 1; flex-direction: column; }.settings-card label b { font-size: 9px; }.settings-card label small { margin-top: 3px; color: var(--faint); font-size: 7px; }.settings-card input { position: absolute; opacity: 0; pointer-events: none; }.settings-card label > i { position: relative; width: 34px; height: 20px; border-radius: 99px; background: #4a3630; transition: background .2s; }.settings-card label > i::after { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: #a89385; transition: transform .2s, background .2s; }.settings-card input:checked + i { background: #95542f; }.settings-card input:checked + i::after { background: var(--accent-2); transform: translateX(14px); }

.bottom-nav { position: relative; z-index: 30; display: flex; align-items: stretch; justify-content: center; min-height: calc(66px + var(--safe-bottom)); padding: 5px max(12px, var(--safe-right)) var(--safe-bottom) max(12px, var(--safe-left)); border-top: 1px solid var(--line); background: rgba(19,11,9,.96); backdrop-filter: blur(18px); }
.nav-item { position: relative; display: flex; min-width: 102px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 13px; border: 0; border-radius: 13px; color: #88786d; background: transparent; cursor: pointer; transition: color .2s, background .2s; }.nav-item:hover { color: #cdbdb0; }.nav-item.is-active { color: var(--accent-2); background: rgba(255,164,76,.075); }.nav-item > span { display: grid; width: 25px; height: 25px; place-items: center; }.nav-item svg { width: 18px; height: 18px; }.nav-item b { font-size: 8px; font-weight: 700; }.nav-dot { position: absolute; top: 7px; right: calc(50% - 18px); width: 5px; height: 5px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 8px var(--danger); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(5,3,2,.65); backdrop-filter: blur(5px); animation: fade-in .2s both; }
.bottom-sheet { position: fixed; left: 50%; bottom: 0; z-index: 100; display: grid; grid-template-columns: 300px minmax(0, 520px); width: min(880px, calc(100vw - 28px)); max-height: min(650px, calc(var(--app-height) - var(--safe-top) - 22px)); overflow: hidden auto; padding: 30px; padding-bottom: calc(30px + var(--safe-bottom)); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 28px 28px 0 0; background: linear-gradient(155deg, #2b1a16, #17100e 68%); box-shadow: 0 -25px 80px rgba(0,0,0,.5); transform: translateX(-50%); animation: sheet-in .28s cubic-bezier(.2,.85,.2,1) both; }.bottom-sheet.compact-sheet { grid-template-columns: 230px minmax(0, 440px); width: min(710px, calc(100vw - 28px)); }.sheet-handle { display: none; }.sheet-close { position: absolute; top: 16px; right: 16px; z-index: 3; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.04); cursor: pointer; }.sheet-close:hover { color: var(--text); }.sheet-close svg { width: 16px; height: 16px; }
.sheet-visual { position: relative; min-height: 270px; align-self: stretch; margin-right: 25px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 20px; background: radial-gradient(circle at 50% 60%, rgba(220,98,54,.31), transparent 45%), linear-gradient(160deg,#49251d,#211310); }.sheet-visual::after { content: ""; position: absolute; left: 50%; bottom: 34px; width: 155px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.32); filter: blur(8px); transform: translateX(-50%); }.station-tank { position: absolute; z-index: 2; width: 72px; height: 116px; left: 50%; bottom: 46px; border: 7px solid #54281c; border-radius: 34px 34px 16px 16px; background: linear-gradient(90deg,#a8472c,#dc7147 48%,#8c3826); transform: translateX(-45%); }.station-tank::before { content: "FUEL"; position: absolute; left: 10px; right: 10px; top: 43px; padding: 5px 0; border-radius: 4px; color: #2d1a14; background: #f3b961; text-align: center; font-size: 8px; font-weight: 900; letter-spacing: .1em; }.station-panel { position: absolute; z-index: 1; width: 130px; height: 57px; left: 50%; bottom: 136px; border: 5px solid #5d3529; border-radius: 5px; background: repeating-linear-gradient(90deg, transparent 0 20px, rgba(182,240,231,.19) 21px 22px), linear-gradient(#5db6ae,#286b70); transform: translateX(-50%) perspective(100px) rotateX(10deg); }.station-visual i { position: absolute; z-index: 3; width: 8px; height: 90px; left: calc(50% + 52px); bottom: 48px; border-radius: 5px; background: #b5673e; }.station-visual i::after { content: ""; position: absolute; width: 24px; height: 36px; left: -8px; top: -3px; border: 4px solid #4c3028; border-radius: 6px; background: #e19c55; }
.ton-visual { display: grid; place-items: center; min-height: 230px; }.ton-visual svg { position: relative; z-index: 2; width: 82px; height: 82px; color: var(--cyan); filter: drop-shadow(0 0 25px rgba(88,213,215,.37)); }.ton-visual i { position: absolute; width: 124px; height: 124px; border: 1px solid rgba(108,218,218,.22); border-radius: 50%; animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 75%,100% { opacity: 0; transform: scale(1.35); } }
.sheet-content { align-self: center; padding: 14px 28px 14px 5px; }.sheet-content-wide { grid-column: 1 / -1; width: min(500px, 100%); justify-self: center; }.sheet-content h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }.sheet-content > p:not(.eyebrow):not(.legal-note) { margin: 10px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }.sheet-actions { display: flex; gap: 8px; margin-top: 17px; }.sheet-actions .button { flex: 1; }.entity-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }.entity-stats span { display: flex; min-width: 0; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.03); }.entity-stats small { color: var(--faint); font-size: 7px; }.entity-stats b { margin-top: 4px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.energy-slider { margin-top: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }.energy-slider label { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }.energy-slider label b { color: var(--accent-2); font-size: 10px; }.energy-slider input { width: 100%; margin: 12px 0 3px; accent-color: var(--accent); }
.energy-price-note { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(111,218,209,.16); border-radius: 11px; background: rgba(88,204,200,.055); }
.energy-price-note span { color: var(--muted); font-size: 8px; }
.energy-price-note b { color: var(--green); font-size: 10px; }
.energy-price-note small { grid-column: 1 / -1; color: var(--faint); font-size: 7px; }

.amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.amount-grid button { display: flex; height: 65px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(255,255,255,.035); cursor: pointer; }.amount-grid button:hover { border-color: rgba(104,220,218,.35); background: rgba(104,220,218,.07); }.amount-grid b { font-size: 17px; }.amount-grid small { margin-top: 3px; color: var(--cyan); font-size: 7px; }.legal-note { margin: 13px 0 0; color: var(--faint); font-size: 8px; line-height: 1.5; }.form-field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }.form-field span { color: var(--muted); font-size: 8px; font-weight: 700; }.form-field input, .form-field select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--text); background: rgba(255,255,255,.04); font-size: 10px; }.form-field option { background: #21130f; }
@keyframes fade-in { from { opacity: 0; } }.bottom-sheet[hidden] { display:none; } @keyframes sheet-in { from { opacity: 0; transform: translate(-50%, 30px); } }

.confirm-dialog { position: fixed; left: 50%; top: 50%; z-index: 110; width: min(400px, calc(100vw - 28px)); padding: 27px; border: 1px solid var(--line-strong); border-radius: 23px; background: linear-gradient(155deg, #2e1c17, #17100e); box-shadow: 0 30px 100px rgba(0,0,0,.6); text-align: center; transform: translate(-50%,-50%); animation: dialog-in .22s ease both; }.confirm-icon { display: grid; width: 50px; height: 50px; margin: 0 auto 14px; place-items: center; border-radius: 16px; color: var(--accent-2); background: rgba(255,167,76,.1); }.confirm-icon svg { width: 25px; height: 25px; }.confirm-dialog h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }.confirm-dialog > p { margin: 9px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }.confirm-summary { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); font-size: 10px; }.confirm-summary b { color: var(--cyan); }.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.is-keyboard-open .bottom-sheet,
.is-keyboard-open .bottom-sheet.compact-sheet { bottom: var(--keyboard-inset); max-height: calc(var(--viewport-height) - var(--safe-top) - 9px); }
.is-keyboard-open .confirm-dialog { top: var(--viewport-center); }
.is-keyboard-open .content-screen { padding-bottom: calc(60px + var(--keyboard-inset)); }
@keyframes dialog-in { from { opacity: 0; transform: translate(-50%,calc(-50% + 12px)) scale(.98); } }

.toast-region { position: fixed; left: max(18px,var(--safe-left)); bottom: calc(78px + var(--safe-bottom)); z-index: 200; display: flex; width: min(360px, calc(100vw - 36px)); flex-direction: column; gap: 8px; pointer-events: none; }.toast { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; min-height: 54px; padding: 8px 13px 8px 8px; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(28,17,14,.94); box-shadow: 0 16px 45px rgba(0,0,0,.35); backdrop-filter: blur(14px); animation: toast-in .3s ease both; }.toast.is-leaving { animation: toast-out .25s ease both; }.toast-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--green); background: rgba(105,218,162,.11); }.toast.is-error .toast-icon { color: var(--danger); background: rgba(255,110,103,.1); }.toast.is-reward .toast-icon { color: var(--accent-2); background: rgba(255,180,91,.11); }.toast-icon svg { width: 18px; height: 18px; }.toast-copy { display: flex; flex-direction: column; }.toast-copy b { font-size: 10px; }.toast-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
@keyframes toast-in { from { opacity: 0; transform: translateX(-15px); } } @keyframes toast-out { to { opacity: 0; transform: translateX(-12px); } }
.offline-banner { position: fixed; left: 50%; top: calc(86px + var(--safe-top)); z-index: 70; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; width: min(500px,calc(100vw - 28px)); padding: 8px 9px; border: 1px solid rgba(255,110,103,.25); border-radius: 14px; background: rgba(57,24,20,.94); box-shadow: 0 15px 40px rgba(0,0,0,.34); transform: translateX(-50%); }.offline-banner > svg { width: 19px; height: 19px; justify-self: center; color: var(--danger); }.offline-banner > span { display: flex; flex-direction: column; }.offline-banner b { font-size: 9px; }.offline-banner small { margin-top: 2px; color: #c49a91; font-size: 7px; }.offline-banner button { height: 30px; padding: 0 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; color: var(--text); background: rgba(255,255,255,.06); cursor: pointer; font-size: 8px; font-weight: 700; }

.skeleton { position: relative; min-height: 250px; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,.025); }.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.05) 45%, transparent 70%); animation: skeleton 1.4s linear infinite; transform: translateX(-100%); } @keyframes skeleton { to { transform: translateX(100%); } }

@media (max-width: 1050px) {
  .skin-grid, .market-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .inventory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-layout { grid-template-columns: 1fr; }.profile-aside { display: grid; grid-template-columns: 1fr 1fr; }.stat-grid { grid-template-columns: repeat(2,1fr); }
  .map-option { width: 176px; }
}

@media (max-width: 760px) {
  .app { min-height: 460px; }
  .topbar { grid-template-columns: auto minmax(0,1fr) auto; gap: 6px; min-height: calc(62px + var(--safe-top)); padding: calc(7px + var(--safe-top)) max(9px,var(--safe-right)) 7px max(9px,var(--safe-left)); }
  .brand { gap: 0; }.brand > span:last-child { display: none; }.brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
  .hud-balances { width: 100%; gap: 5px; }.balance-card { min-width: 0; height: 41px; flex: 1; gap: 6px; padding: 4px 7px 4px 4px; border-radius: 12px; }.balance-icon { width: 29px; height: 29px; flex-basis: 29px; border-radius: 9px; }.balance-icon svg { width: 15px; height: 15px; }.balance-copy small { font-size: 7px; }.balance-copy b { font-size: 11px; }.balance-copy em { font-size: 8px; }.balance-add { display: none; }.energy-ring { width: 19px; height: 19px; flex-basis: 19px; }.energy-ring::after { inset: 3px; }
  .profile-chip { min-width: 0; padding: 0; }.profile-avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }.profile-copy, .profile-chip > svg { display: none; }
  .scene-shell { inset: 0; border: 0; border-radius: 0; }
  .scene-top-left { top: 10px; left: 9px; }.map-switch { flex-direction: column; max-width: calc(100vw - 90px); padding: 4px; border-radius: 14px; }.map-option { width: 215px; padding: 5px 7px 5px 5px; border-radius: 10px; }.map-option:not(.is-active) { display: none; }.map-orb { width: 28px; height: 28px; flex-basis: 28px; border-radius: 9px; }.map-option b { font-size: 9px; }.map-option small { font-size: 7px; }.map-collapse { display: grid; }.scene-top-left.is-expanded .map-option { display: flex; }.scene-top-left.is-expanded .map-collapse svg { transform: rotate(0); }
  .scene-top-right { top: 11px; right: 9px; }.status-pill { width: 31px; padding: 0; justify-content: center; }.status-pill i { margin: 0; }.status-pill span { display: none; }.coord-pill { height: 29px; padding: 0 8px; font-size: 7px; }
  .mission-card { top: 58px; right: 9px; width: min(260px,calc(100vw - 18px)); padding: 9px; grid-template-columns: 33px minmax(0,1fr) 21px; }.mission-icon { width: 33px; height: 33px; border-radius: 10px; }.mission-card p { font-size: 8px; }
  .move-status { left: 10px; right: auto; bottom: 14px; min-width: 0; height: 30px; padding-right: 9px; font-size: 7px; transform: none; }.move-status.is-moving { transform: translateY(-2px); }
  .dpad-wrap { inset: 0; }.dpad-key { width: 48px; height: 48px; border-radius: 14px; }
  .nearby-action { left: 10px; bottom: 51px; min-width: min(225px, calc(100vw - 175px)); }.nearby-action > svg { display: none; }
  .content-screen { padding: 20px 13px 40px; }.content-hero { grid-template-columns: 1fr; border-radius: 20px; }.hero-copy { padding: 25px 22px 18px; }.hero-copy h2, .content-heading h2 { font-size: 28px; }.hero-copy > p:last-child, .content-heading > div > p:last-child { font-size: 11px; }.rover-preview-card { min-height: 235px; border-top: 1px solid var(--line); border-left: 0; }.rover-preview-card #rover-preview { inset: 0 0 45px; }
  .toolbar-row { margin-top: 17px; }.segmented button { min-width: 58px; padding: 0 8px; }.collection-count { font-size: 8px; }
  .inventory-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }.inventory-filters { width: 100%; max-width: none; }.inventory-section { margin-top: 11px; padding: 13px; border-radius: 17px; }.inventory-section-heading { margin-bottom: 11px; }.inventory-section-heading h3 { font-size: 15px; }.inventory-grid { grid-template-columns: 1fr; }.inventory-card { min-height: 215px; }.reward-inventory-card { min-height: 160px; }
  .skin-grid, .market-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }.skin-art, .market-card .skin-art { height: 123px; }.skin-card-copy, .market-card-copy { padding: 11px; }.skin-card-copy p, .market-card-copy p { min-height: 25px; font-size: 8px; }
  .content-heading { align-items: flex-start; margin-bottom: 18px; }.content-heading .button { min-width: 44px; padding: 0 12px; }.content-heading .button svg { margin: 0; }.content-heading .button { font-size: 0; }
  .market-toolbar { grid-template-columns: 1fr; }.market-stats span:last-child { display: none; }
  .profile-hero { padding: 20px; border-radius: 19px; }.profile-large-avatar { width: 59px; height: 59px; flex-basis: 59px; border-radius: 18px; }.profile-hero h2 { max-width: 180px; overflow: hidden; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }.demo-badge { position: absolute; top: 12px; right: 12px; font-size: 6px; }.profile-layout { margin-top: 10px; }.stat-grid { gap: 7px; }.stat-grid article { min-height: 100px; padding: 13px; }.stat-grid strong { font-size: 21px; }.profile-aside { grid-template-columns: 1fr; gap: 10px; }.panel-card { padding: 16px; }
  .bottom-nav { min-height: calc(60px + var(--safe-bottom)); padding-top: 3px; }.nav-item { min-width: 0; flex: 1; padding: 3px; border-radius: 10px; }.nav-item > span { width: 23px; height: 23px; }.nav-item svg { width: 17px; height: 17px; }.nav-item b { font-size: 7px; }
  .bottom-sheet, .bottom-sheet.compact-sheet { grid-template-columns: 1fr; width: 100%; max-height: calc(var(--app-height) - var(--safe-top) - 9px); padding: 23px 16px calc(18px + var(--safe-bottom)); border-radius: 24px 24px 0 0; }.sheet-handle { position: absolute; top: 7px; left: 50%; display: block; width: 36px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.15); transform: translateX(-50%); }.sheet-close { top: 15px; right: 14px; width: 31px; height: 31px; }.sheet-visual { display: none; }.sheet-content, .sheet-content-wide { grid-column: 1; width: 100%; padding: 12px 1px 0; }.sheet-content h2 { padding-right: 38px; font-size: 24px; }.entity-stats { grid-template-columns: repeat(3,1fr); }.sheet-actions { position: sticky; bottom: 0; padding-top: 8px; background: linear-gradient(transparent,#19100e 25%); }
  .confirm-dialog { padding: 22px; }.toast-region { left: 10px; bottom: calc(68px + var(--safe-bottom)); width: calc(100vw - 20px); }.offline-banner { top: calc(69px + var(--safe-top)); }
}

@media (max-width: 410px) {
  .coord-pill { display: none; }
  .balance-card { padding-right: 4px; }.balance-icon { display: none; }.balance-copy { padding-left: 5px; }.energy-ring { margin-right: 2px; }
  .mission-card { width: calc(100vw - 18px); }.mission-card.is-hidden { display: none; }
  .nearby-action { min-width: 0; max-width: calc(100vw - 175px); }.nearby-action small { display: none; }.nearby-action b { max-width: 95px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .skin-grid, .market-grid { grid-template-columns: 1fr 1fr; }.skin-art, .market-card .skin-art { height: 108px; }.mini-rover { transform: translate(-50%,-50%) rotate(-5deg) scale(.85); }
}

@media (max-height: 650px) and (orientation: landscape) {
  .app { min-height: 0; }
  .topbar { min-height: calc(54px + var(--safe-top)); padding-top: calc(5px + var(--safe-top)); padding-bottom: 5px; }
  .brand-mark,.profile-avatar { width: 34px; height: 34px; flex-basis: 34px; }.balance-card { height: 36px; }
  .bottom-nav { min-height: calc(50px + var(--safe-bottom)); }.nav-item { flex-direction: row; gap: 5px; }.nav-item > span { width: 20px; height: 20px; }
  .mission-card { display: none; }
  .map-switch { flex-direction: column; max-width: 230px; padding: 4px; border-radius: 14px; }.map-option { width: 190px; padding: 5px 7px 5px 5px; }.map-option:not(.is-active) { display: none; }.map-collapse { display: grid; }.scene-top-left.is-expanded .map-option { display: flex; }
  .dpad-key { width: 46px; height: 46px; }
  .move-status { left: auto; right: 10px; bottom: 9px; transform: none; }
}

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