:root {
    --bg: #04050d;
    --panel: rgba(13, 15, 34, 0.58);
    --panel-strong: rgba(12, 13, 30, 0.88);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f4ecdc;
    --muted: rgba(244, 236, 220, 0.62);
    --faint: rgba(244, 236, 220, 0.38);
    --amber: #ffb547;
    --amber-2: #ff8a3d;
    --violet: #8d6cff;
    --danger: #ff6b7d;
    --ok: #4fe3a8;
    --radius: 20px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
    color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
body { touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
input, textarea { user-select: text; -webkit-user-select: text; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
#cosmos-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; cursor: grab; touch-action: none; }
#cosmos-canvas.dragging { cursor: grabbing; }
#cosmos-canvas.pointing { cursor: pointer; }

.ui { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.ui > * { pointer-events: auto; }
.hidden { display: none !important; }

/* ---------- glass ---------- */
.glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 40%), var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .02em;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, opacity .2s;
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary {
    color: #1b1206;
    background: linear-gradient(135deg, #ffd27a, var(--amber) 45%, var(--amber-2));
    box-shadow: 0 10px 30px -8px rgba(255, 160, 60, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-primary:hover { box-shadow: 0 14px 40px -6px rgba(255, 160, 60, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.6); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); border-color: var(--line-strong); }
.btn-danger { color: var(--danger); background: rgba(255, 107, 125, 0.08); border: 1px solid rgba(255, 107, 125, 0.25); }
.btn-block { width: 100%; }
.icon-btn {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative;
    transition: background .2s, transform .2s var(--ease), border-color .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn:active { transform: scale(.94); }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.input, .textarea {
    width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; color: var(--text); font: inherit; font-size: 16px;
    background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: none; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: rgba(255, 181, 71, 0.6); background: rgba(0, 0, 0, 0.38); box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.12); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.error-text { color: var(--danger); font-size: 13px; min-height: 18px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- boot loader (painted before any script) ---------- */
#boot { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #120d2b 0%, #04050d 65%); transition: opacity 1.2s var(--ease); }
#boot.out { opacity: 0; pointer-events: none; }
#boot { grid-template-rows: auto auto auto; align-content: center; gap: 26px; }
.boot-orb { width: 150px; height: 150px; position: relative; display: grid; place-items: center; }
.boot-orb b { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 42% 38%, #fff8e6, #ffc35c 38%, #ff7a22 70%, #7a2c00); box-shadow: 0 0 50px #ffad42, 0 0 120px rgba(255, 120, 40, 0.5); animation: bootPulse 2.2s ease-in-out infinite; }
.boot-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 170, 80, 0.35); animation: spin 9s linear infinite; }
.boot-orb i:nth-child(2) { inset: 18px; border-style: dashed; animation-duration: 6s; animation-direction: reverse; }
.boot-orb i:nth-child(3) { inset: 36px; border-color: rgba(160, 120, 255, 0.4); animation-duration: 4s; }
.boot-name { font-family: var(--font); font-weight: 600; font-size: 20px; letter-spacing: .02em; color: #f4ecdc; text-align: center; }
.boot-name span { color: #ffb547; }
.boot-line { width: 160px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; justify-self: center; }
.boot-line i { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, #ffb547, transparent); animation: bootLine 1.4s ease-in-out infinite; }
@keyframes bootPulse { 50% { transform: scale(1.12); box-shadow: 0 0 70px #ffc35c, 0 0 160px rgba(255, 120, 40, 0.65); } }
@keyframes bootLine { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ---------- prologue ---------- */
.prologue-ui { position: fixed; inset: 0; z-index: 100; pointer-events: none; transition: opacity 1s var(--ease); }
.prologue-ui > * { pointer-events: auto; }
.prologue-ui.out { opacity: 0; }
.prologue-gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 26px; padding-bottom: calc(14vh + var(--safe-b)); transition: opacity 1.2s var(--ease), filter 1.2s; }
.prologue-gate.out { opacity: 0; filter: blur(10px); pointer-events: none; }
.gate-kicker { font-size: 12px; letter-spacing: .6em; text-transform: uppercase; color: var(--muted); padding-left: .6em; animation: rise 1.6s .3s var(--ease) both; }
.begin-orb { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; animation: rise 1.6s .6s var(--ease) both; }
.begin-core { position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle at 42% 38%, #fff8e6, #ffc35c 38%, #ff7a22 70%, rgba(120, 40, 0, 0.6)); box-shadow: 0 0 40px #ffad42, 0 0 100px rgba(255, 120, 40, 0.55); animation: orbPulse 2.6s ease-in-out infinite; transition: transform .5s var(--ease); }
.begin-ring { position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(255, 190, 110, 0.45); animation: ringOut 2.6s ease-out infinite; }
.begin-ring.r2 { animation-delay: 1.3s; }
@keyframes ringOut { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.begin-label { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; font-size: 13px; padding-left: .3em; white-space: nowrap; }
.begin-orb:hover .begin-core { transform: scale(1.12); }
.gate-hint { margin-top: 26px; font-size: 12px; color: var(--faint); letter-spacing: .04em; display: flex; align-items: center; gap: 8px; animation: rise 1.6s 1s var(--ease) both; text-align: center; padding: 0 20px; }
.prologue-caption { position: absolute; left: 50%; bottom: calc(12vh + var(--safe-b)); transform: translateX(-50%); width: min(820px, calc(100vw - 40px)); text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3.6vw, 44px); line-height: 1.25; color: #fff4dc; text-shadow: 0 0 30px rgba(255, 190, 110, 0.35), 0 2px 20px rgba(0, 0, 0, 0.8); pointer-events: none; opacity: 0; transition: opacity 1s var(--ease), filter 1s; filter: blur(6px); }
.prologue-caption.show { opacity: 1; filter: none; }
.prologue-caption span { display: inline-block; margin: 0 .14em; opacity: 0; transform: translateY(10px); filter: blur(8px); }
.prologue-caption.show span { animation: word 1.1s var(--ease) forwards; }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.prologue-skip { position: absolute; top: calc(18px + var(--safe-t)); right: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(8px); }
.prologue-skip:hover { color: var(--text); border-color: var(--line-strong); }
.prologue-end { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px calc(28px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; background: linear-gradient(to top, rgba(3, 3, 10, 0.92) 30%, rgba(3, 3, 10, 0.55) 70%, transparent); padding-top: 70px; opacity: 0; transition: opacity 1.2s var(--ease); }
.prologue-end.show { opacity: 1; }
.end-kicker { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--amber); animation: rise 1.2s .1s var(--ease) both; }
.end-title { font-weight: 300; font-size: clamp(22px, 3vw, 36px); line-height: 1.25; letter-spacing: -.01em; max-width: 820px; animation: rise 1.2s .2s var(--ease) both; }
.end-title span { font-family: var(--serif); font-style: italic; font-weight: 400; color: #ffe0ad; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: min(1000px, 100%); }
.pillar { display: flex; gap: 14px; text-align: left; padding: 18px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: rise 1.2s var(--ease) both; }
.pillar-icon { width: 46px; height: 46px; flex: none; color: var(--amber); filter: drop-shadow(0 0 10px rgba(255, 170, 70, 0.6)); }
.pillar-icon svg { width: 100%; height: 100%; }
.pillar-n { font-size: 10px; letter-spacing: .2em; color: var(--faint); }
.pillar-title { font-weight: 600; font-size: 15px; margin: 2px 0 6px; }
.pillar p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.end-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: rise 1.2s .9s var(--ease) both; }
.end-enter { height: 56px; padding: 0 34px; font-size: 16px; gap: 12px; }
.end-enter svg { width: 18px; height: 18px; }
.end-enter:not([disabled]) { animation: enterGlow 2.4s ease-in-out infinite; }
@keyframes enterGlow { 50% { box-shadow: 0 10px 50px -4px rgba(255, 160, 60, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6); } }
.end-status { font-size: 12px; color: var(--faint); letter-spacing: .06em; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 760px) {
    .pillars { grid-template-columns: 1fr; gap: 8px; }
    .pillar { padding: 12px 14px; gap: 12px; }
    .pillar-icon { width: 34px; height: 34px; }
    .pillar p { font-size: 12px; }
    .prologue-end { gap: 12px; padding-top: 40px; }
    .prologue-caption { bottom: calc(16vh + var(--safe-b)); }
}

/* ---------- HUD ---------- */
.hud-top { position: fixed; top: calc(16px + var(--safe-t)); left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 32%; transform: scale(1.0); box-shadow: 0 0 18px rgba(255, 170, 60, 0.35); }
.brand-name { font-weight: 600; letter-spacing: .01em; font-size: 16px; }
.brand-name span { color: var(--amber); }
.brand-sub { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.hud-actions { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; }
.energy-pill { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 6px; border-radius: 999px; transition: background .2s; }
.energy-pill:hover { background: rgba(255, 255, 255, 0.07); }
.energy-orb { width: 30px; height: 30px; border-radius: 50%; position: relative; background: radial-gradient(circle at 40% 35%, #fff7e0, #ffc45c 35%, #ff7b2e 70%, #6b2a00); box-shadow: 0 0 18px rgba(255, 170, 60, 0.75), 0 0 40px rgba(255, 120, 40, 0.35); animation: orbPulse 3.2s ease-in-out infinite; }
.energy-orb::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255, 190, 90, 0.35); animation: orbRing 3.2s ease-out infinite; }
@keyframes orbPulse { 50% { box-shadow: 0 0 26px rgba(255, 170, 60, 0.95), 0 0 60px rgba(255, 120, 40, 0.45); } }
@keyframes orbRing { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.energy-value { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; min-width: 22px; }
.energy-label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-top: -2px; }
.energy-plus { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 181, 71, 0.16); color: var(--amber); font-weight: 700; }
.badge { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: linear-gradient(135deg, #ff7a8a, #ff4d6d); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 12px rgba(255, 77, 109, 0.7); }
.energy-pill.bump .energy-orb { animation: orbBump .8s var(--ease); }
@keyframes orbBump { 30% { transform: scale(1.35); box-shadow: 0 0 40px #ffcf7a, 0 0 90px #ff8a3d; } }

.offline-banner { position: fixed; top: calc(70px + var(--safe-t)); left: 16px; font-size: 12px; padding: 8px 14px; border-radius: 999px; color: var(--muted); max-width: calc(100vw - 32px); }

/* composer */
.composer { position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); border-radius: 30px; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 22px; transition: box-shadow .3s, border-color .3s, transform .5s var(--ease), opacity .5s; }
.composer:focus-within { border-color: rgba(255, 181, 71, 0.45); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(255, 181, 71, 0.08), 0 0 50px -10px rgba(255, 160, 60, 0.4); }
.composer textarea { flex: 1; background: none; border: 0; outline: none; resize: none; color: var(--text); font: inherit; font-size: 16px; line-height: 1.4; height: 24px; max-height: 96px; padding: 0; }
.composer textarea::placeholder { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 18px; }
.composer .count { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.composer .send { width: 46px; height: 46px; border-radius: 50%; flex: none; padding: 0; }
.composer .send svg { width: 20px; height: 20px; }
.composer.away { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }

.hud-left { position: fixed; left: 16px; bottom: calc(22px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.radar { width: 148px; height: 148px; border-radius: 50%; padding: 0; overflow: hidden; position: relative; cursor: pointer; transition: width .5s var(--ease), height .5s var(--ease); }
.radar.big { width: 300px; height: 300px; }
.radar canvas { width: 100%; height: 100%; display: block; }
.mini-actions { display: flex; gap: 6px; padding: 4px; border-radius: 999px; }
.hint-bar { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); font-size: 12px; color: var(--faint); letter-spacing: .04em; white-space: nowrap; transition: opacity 1s; pointer-events: none; }
.hint-bar kbd { font-family: var(--font); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); }

/* hover label */
.star-label { position: fixed; left: 0; top: 0; pointer-events: none; padding: 8px 12px 8px 10px; border-radius: 14px; display: flex; gap: 10px; align-items: center; max-width: 280px; opacity: 0; transition: opacity .25s; z-index: 5; }
.star-label.show { opacity: 1; }
.star-label .ti { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.star-label .ti svg { width: 15px; height: 15px; }
.star-label .txt { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.star-label .meta { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }

/* ---------- star panel ---------- */
.star-panel { position: fixed; top: calc(80px + var(--safe-t)); right: 16px; width: 380px; max-height: calc(100vh - 110px - var(--safe-t)); overflow: auto; border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 18px;
    transform: translateX(calc(100% + 40px)); opacity: 0; transition: transform .7s var(--ease), opacity .5s; scrollbar-width: none; }
.star-panel::-webkit-scrollbar { display: none; }
.star-panel.open { transform: none; opacity: 1; }
.star-panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 60% at 100% 0%, var(--type-glow, transparent), transparent 60%); opacity: .22; }
.sp-head { display: flex; align-items: center; gap: 12px; position: relative; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #2a2350, #141230); border: 1px solid var(--line-strong); flex: none; display: grid; place-items: center; font-weight: 700; color: var(--amber); font-size: 18px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sp-owner { flex: 1; min-width: 0; text-align: left; }
.sp-owner .name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-owner .sub { font-size: 12px; color: var(--muted); }
button.sp-owner:hover .name { color: var(--amber); }
.type-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.type-chip svg { width: 14px; height: 14px; }
.sp-wish { position: relative; font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.25; color: #fff8ea; text-shadow: 0 0 30px rgba(255, 220, 160, 0.18); word-wrap: break-word; user-select: text; }
.sp-wish::before { content: '“'; position: absolute; left: -6px; top: -18px; font-size: 64px; color: var(--c, var(--amber)); opacity: .35; }
.sp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat .k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; justify-content: space-between; }
.stat .v { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat .v.glow { color: #fff; text-shadow: 0 0 18px var(--c, var(--amber)), 0 0 36px var(--c, var(--amber)); }
.tone-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); }
.tone-btn svg { width: 14px; height: 14px; }
.wave { display: flex; gap: 2px; align-items: center; height: 14px; }
.wave i { width: 2px; border-radius: 2px; background: var(--c, var(--amber)); animation: wave 1.1s ease-in-out infinite; }
.wave.off i { animation: none; height: 3px !important; opacity: .4; }
@keyframes wave { 0%, 100% { height: 3px; } 50% { height: 14px; } }
.views { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; }
.views-row { display: flex; justify-content: space-between; align-items: baseline; }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--amber)) 50%, transparent), var(--c, var(--amber))); box-shadow: 0 0 12px var(--c, var(--amber)); transition: width .8s var(--ease); }
.send-box { padding: 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 181, 71, 0.09), rgba(255, 181, 71, 0.02)); border: 1px solid rgba(255, 181, 71, 0.2); display: flex; flex-direction: column; gap: 14px; }
.send-top { display: flex; align-items: center; justify-content: space-between; }
.send-top .k { font-size: 12px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 18px; }
.stepper output { min-width: 56px; text-align: center; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; touch-action: pan-x; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--amber) var(--p, 0%), rgba(255, 255, 255, 0.1) var(--p, 0%)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--amber) var(--p, 0%), rgba(255, 255, 255, 0.1) var(--p, 0%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #ffd27a 50%, var(--amber-2)); box-shadow: 0 0 16px rgba(255, 170, 60, 0.8); border: 0; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #ffd27a 50%, var(--amber-2)); box-shadow: 0 0 16px rgba(255, 170, 60, 0.8); border: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); transition: all .2s; }
.chip:hover { border-color: var(--line-strong); }
.chip.on { background: rgba(255, 181, 71, 0.18); border-color: rgba(255, 181, 71, 0.5); color: #ffe0a8; }
.mine-tag { font-size: 11px; color: var(--amber); letter-spacing: .1em; text-transform: uppercase; }
.close-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); flex: none; }
.close-btn:hover { background: rgba(255, 255, 255, 0.14); }
.close-btn svg { width: 16px; height: 16px; }

.scope-stat { grid-column: span 2; padding-bottom: 8px; }
.scope { width: 100%; height: 56px; display: block; }

body.low-energy .energy-plus { animation: plusCall 1.6s ease-in-out infinite; }
@keyframes plusCall { 50% { background: var(--amber); color: #1b1206; box-shadow: 0 0 16px var(--amber); } }

.google-box { display: flex; justify-content: center; min-height: 46px; }
.google-box.busy { opacity: .5; pointer-events: none; }
.google-slot { display: flex; justify-content: center; width: 100%; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* energy store */
.modal.store { width: min(760px, 100%); }
.store-hero { display: flex; gap: 22px; align-items: center; }
.store-orb { width: 132px; height: 132px; flex: none; position: relative; display: grid; place-items: center; }
.store-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 180, 90, 0.35); animation: spin 10s linear infinite; }
.store-orb i:nth-child(2) { inset: 14px; border-style: dashed; animation-duration: 7s; animation-direction: reverse; }
.store-orb i:nth-child(3) { inset: -10px; border-color: rgba(141, 108, 255, 0.3); animation-duration: 16s; }
.store-orb-core { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff8e6, #ffc35c 35%, #ff7a22 70%, #6b2a00); box-shadow: 0 0 50px #ffad42, 0 0 120px rgba(255, 120, 40, 0.55); transition: transform .8s cubic-bezier(.3, 1.6, .5, 1); animation: orbPulse 2.4s ease-in-out infinite; }
.store-orb-amount { position: absolute; font-weight: 800; font-size: 20px; color: #2a1404; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.store-copy { flex: 1; }
.store-title { font-size: 26px; font-weight: 300; letter-spacing: -.01em; margin-bottom: 6px; }
.store-title b { font-weight: 700; background: linear-gradient(90deg, #ffe2a8, var(--amber), #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.store-copy p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.store-proof { margin-top: 10px; font-size: 12px; color: var(--amber); }
.store-packs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.store-pack { position: relative; text-align: left; padding: 16px 12px 12px; border-radius: 18px; background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background .3s; }
.store-pack:hover { transform: translateY(-3px); border-color: rgba(255, 181, 71, 0.4); }
.store-pack.on { border-color: var(--amber); background: linear-gradient(170deg, rgba(255, 181, 71, 0.18), rgba(255, 120, 40, 0.05)); box-shadow: 0 0 40px -10px rgba(255, 160, 60, 0.8); transform: translateY(-3px); }
.pack-flag { position: absolute; top: -9px; left: 10px; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--amber); color: #1b1206; white-space: nowrap; }
.store-pack.best .pack-flag { background: linear-gradient(90deg, #ffd27a, #ff8a3d); }
.pack-name { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.pack-pulses { font-size: 26px; font-weight: 800; line-height: 1.1; }
.pack-pulses small { font-size: 11px; font-weight: 500; color: var(--muted); }
.pack-price { color: var(--amber); font-weight: 700; }
.pack-save { font-size: 10px; font-weight: 700; color: var(--ok); }
.pack-perk { font-size: 11px; color: var(--muted); line-height: 1.35; margin-top: 4px; }
.store-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); font-size: 14px; }
.store-trust { text-align: center; font-size: 12px; color: var(--faint); }
@media (max-width: 760px) {
    .store-packs { grid-template-columns: repeat(2, 1fr); }
    .store-hero { flex-direction: column; text-align: center; gap: 8px; }
    .store-orb { width: 110px; height: 110px; }
}

/* worlds */
.land-prompt { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 18px; border-radius: 22px; width: min(520px, calc(100vw - 24px)); transition: opacity .5s var(--ease), transform .6s var(--ease); border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7), 0 0 50px -20px var(--c); }
.land-prompt.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.land-orb { width: 42px; height: 42px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 45%, #0a0a1a 100%); box-shadow: 0 0 24px var(--c); }
.land-text { flex: 1; min-width: 0; }
.land-name { font-weight: 700; font-size: 17px; }
.land-lore { font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
body.on-surface .composer, body.on-surface .hud-left, body.on-surface .hint-bar, body.on-surface .offline-banner, body.on-surface .star-label { opacity: 0 !important; pointer-events: none !important; }
.surface-hud { position: fixed; inset: 0; z-index: 15; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease); }
.surface-hud.show { opacity: 1; }
.surface-hud > * { pointer-events: auto; }
.surface-top { position: absolute; top: calc(78px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 14px; border-radius: 999px; }
.surface-dot { width: 14px; height: 14px; border-radius: 50%; }
.surface-name { font-weight: 700; }
.surface-sub { font-size: 11px; color: var(--muted); }
.compass { margin-left: 8px; min-width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--amber); }
.surface-hint { position: absolute; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; pointer-events: none; text-shadow: 0 1px 8px #000; animation: hintOut 1.2s ease 9s forwards; }
@keyframes hintOut { to { opacity: 0; visibility: hidden; } }
.surface-hint kbd { font-family: var(--font); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); }
.takeoff-btn { position: absolute; right: 18px; bottom: calc(22px + var(--safe-b)); height: 52px; padding: 0 24px; }
.joystick { position: absolute; left: 26px; bottom: calc(40px + var(--safe-b)); width: 128px; height: 128px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid var(--line-strong); display: grid; place-items: center; touch-action: none; backdrop-filter: blur(8px); }
.joy-knob { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #ffd27a 40%, var(--amber-2)); box-shadow: 0 0 20px rgba(255,170,60,.7); transition: transform .08s; }
@media (max-width: 760px) {
    .surface-hint { bottom: calc(180px + var(--safe-b)); white-space: normal; text-align: center; width: 80vw; }
    .land-prompt { bottom: calc(84px + var(--safe-b)); }
}

/* placement */
.place-bar { position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translate(-50%, 140%); width: min(560px, calc(100vw - 24px)); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 14px; z-index: 30; transition: transform .6s var(--ease); background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 40%), var(--panel-strong); }
.place-bar.show { transform: translate(-50%, 0); }
.place-head { display: flex; gap: 14px; align-items: center; }
.place-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; animation: orbPulse 2s ease-in-out infinite; }
.place-title { font-weight: 600; font-size: 16px; }
.place-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.place-row { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.place-row .range { flex: 1; }
.place-near { font-size: 12px; color: var(--muted); font-style: italic; min-height: 16px; }
.place-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* hold-to-charge */
.hold-btn { position: relative; overflow: hidden; -webkit-touch-callout: none; touch-action: none; }
.hold-btn::after { content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--hold, 0)); background: linear-gradient(90deg, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.55)); mix-blend-mode: overlay; pointer-events: none; }
.hold-btn > * { position: relative; z-index: 1; }
.hold-btn.charging { animation: chargeShake .12s linear infinite; box-shadow: 0 0 calc(20px + var(--hold, 0) * 50px) rgba(255, 170, 60, calc(.4 + var(--hold, 0) * .6)); }
@keyframes chargeShake { 25% { transform: translate(.5px, -.5px); } 75% { transform: translate(-.5px, .5px); } }

/* resonance */
.resonance { padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--amber)) 14%, transparent), rgba(0, 0, 0, 0.2)); border: 1px solid color-mix(in srgb, var(--c, var(--amber)) 30%, transparent); display: flex; flex-direction: column; gap: 9px; position: relative; }
.res-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.res-name { display: flex; flex-direction: column; }
.res-name span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.res-name b { font-size: 20px; font-weight: 700; color: #fff; text-shadow: 0 0 18px var(--c, var(--amber)); }
.res-next { font-size: 12px; color: var(--muted); text-align: right; }
.res-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.res-steps i { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.res-steps i.on { background: var(--c, var(--amber)); box-shadow: 0 0 8px var(--c, var(--amber)); }
.res-note { font-size: 12px; color: var(--muted); font-style: italic; }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(2, 3, 10, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.modal-wrap.open { opacity: 1; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 18px; transform: translateY(24px) scale(.97); transition: transform .5s var(--ease); scrollbar-width: none; background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 40%), var(--panel-strong); }
.modal::-webkit-scrollbar { display: none; }
.modal-wrap.open .modal { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-title { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.modal-kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; }

/* launch modal */
.wish-preview { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; padding: 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); color: #fff8ea; word-wrap: break-word; }
.type-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.type-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: all .3s var(--ease); position: relative; overflow: hidden; }
.type-card .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); transition: all .3s var(--ease); }
.type-card .ic svg { width: 22px; height: 22px; }
.type-card .lb { font-size: 12px; font-weight: 600; }
.type-card .hz { font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }
.type-card:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); transform: translateY(-2px); }
.type-card.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: 0 0 30px -6px var(--c), inset 0 0 20px color-mix(in srgb, var(--c) 15%, transparent); }
.type-card.on .ic { background: var(--c); color: #0b0b18; box-shadow: 0 0 24px var(--c); }
.freq-text { font-size: 13px; line-height: 1.55; color: var(--muted); min-height: 60px; transition: opacity .3s; }
.pulse-dial { display: flex; align-items: center; gap: 18px; }
.dial { width: 92px; height: 92px; flex: none; position: relative; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 24px; line-height: 1; }
.dial .num small { display: block; font-size: 9px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.dial-side { flex: 1; display: flex; flex-direction: column; gap: 8px; }

/* drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 40; border-radius: 28px 0 0 28px; border-right: 0; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .6s var(--ease); background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01) 40%), var(--panel-strong); padding-top: var(--safe-t); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 8px; }
.tabs { display: flex; gap: 4px; padding: 4px; margin: 8px 20px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); }
.tab { flex: 1; height: 36px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); position: relative; transition: all .2s; }
.tab.on { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.tab .badge { top: 2px; right: 4px; }
.drawer-body { flex: 1; overflow: auto; padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }
.drawer-foot { padding: 14px 20px calc(18px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.vol { display: flex; align-items: center; gap: 10px; }
.vol .range { flex: 1; }
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid transparent; text-align: left; transition: all .2s; width: 100%; }
.list-item:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line); transform: translateX(-2px); }
.list-item .ti { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.list-item .ti svg { width: 17px; height: 17px; }
.list-item .main { flex: 1; min-width: 0; }
.list-item .t { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.list-item .m { font-size: 11px; color: var(--faint); margin-top: 3px; letter-spacing: .04em; }
.list-item .e { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c); font-size: 14px; }
.list-item.unread { background: rgba(255, 181, 71, 0.07); border-color: rgba(255, 181, 71, 0.18); }
.empty { text-align: center; color: var(--faint); padding: 36px 12px; font-size: 14px; line-height: 1.6; }
.section-title { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; }
.filter-chip svg { width: 14px; height: 14px; color: var(--c); }
.filter-chip.on { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: color-mix(in srgb, var(--c) 55%, transparent); color: #fff; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); }
.search .input { padding-left: 42px; }
.profile-top { display: flex; align-items: center; gap: 16px; }
.profile-top .avatar { width: 72px; height: 72px; font-size: 28px; cursor: pointer; position: relative; }
.avatar-edit { position: absolute; inset: auto 0 0 0; height: 24px; display: grid; place-items: center; font-size: 10px; letter-spacing: .1em; background: rgba(0, 0, 0, 0.6); }
.verified { color: var(--ok); font-size: 12px; }
.nav-row { display: flex; gap: 8px; }

/* toasts */
.toasts { position: fixed; top: calc(80px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 60; pointer-events: none; width: min(440px, calc(100vw - 32px)); }
.toast { pointer-events: auto; padding: 12px 18px; border-radius: 16px; font-size: 14px; line-height: 1.45; display: flex; gap: 10px; align-items: center; animation: toastIn .6s var(--ease) both; max-width: 100%; }
.toast.out { animation: toastOut .4s ease both; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.toast.error .dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.toast.ok .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96); filter: blur(4px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(.97); } }

/* floating +N */
.float-gain { position: fixed; z-index: 30; pointer-events: none; font-weight: 800; font-size: 34px; color: #fff; text-shadow: 0 0 16px var(--c, var(--amber)), 0 0 40px var(--c, var(--amber)); animation: floatGain 2.2s var(--ease) forwards; transform: translate(-50%, -50%); white-space: nowrap; }
.float-gain small { display: block; text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; opacity: .85; }
@keyframes floatGain { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -220%) scale(1); } }

/* cloud layer while a world finishes loading */
.cloud-veil { position: fixed; inset: 0; z-index: 44; pointer-events: none; display: grid; place-items: center; opacity: 0; transition: opacity .7s var(--ease); background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--c) 30%, rgba(255,255,255,.55)) 0%, color-mix(in srgb, var(--c) 45%, rgba(10,12,24,.35)) 70%); }
.cloud-veil.show { opacity: 1; }
.cv-mist { position: absolute; inset: -20%; overflow: hidden; }
.cv-mist b { position: absolute; width: 70vmax; height: 40vmax; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.55), transparent 65%); filter: blur(30px); animation: cvDrift 6s linear infinite; }
.cv-mist b:nth-child(1) { top: 10%; left: -30%; }
.cv-mist b:nth-child(2) { top: 45%; left: -50%; animation-duration: 4.5s; animation-delay: -2s; opacity: .8; }
.cv-mist b:nth-child(3) { top: 70%; left: -40%; animation-duration: 7s; animation-delay: -4s; }
.cv-mist b:nth-child(4) { top: 25%; left: -60%; animation-duration: 3.8s; animation-delay: -1s; opacity: .6; }
@keyframes cvDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(170vmax, -10vmax) scale(1.4); } }
.cv-text { position: relative; text-align: center; }
.cv-name { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.2vw, 34px); color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.cv-name b { font-style: normal; font-family: var(--font); font-weight: 600; }
.cv-bar { width: min(260px, 60vw); height: 3px; margin: 18px auto 0; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.cv-bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); transition: transform .4s ease; box-shadow: 0 0 12px #fff; }
.cinematic-text { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; pointer-events: none; text-align: center; }
.cinematic-text > div { animation: cine 4.2s var(--ease) forwards; }
.cinematic-text .big { font-weight: 300; font-size: clamp(28px, 5vw, 52px); letter-spacing: .01em; }
.cinematic-text .big b { font-weight: 600; color: var(--amber); }
.cinematic-text .small { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 2.2vw, 22px); color: var(--muted); margin-top: 8px; }
@keyframes cine { 0% { opacity: 0; filter: blur(12px); transform: scale(1.04); letter-spacing: .3em; } 25% { opacity: 1; filter: none; transform: none; letter-spacing: .01em; } 75% { opacity: 1; filter: none; } 100% { opacity: 0; filter: blur(8px); transform: scale(.98); } }

/* onboarding */
.onboard .slide { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; animation: rise .7s var(--ease) both; }
.onboard .slide-visual { width: 120px; height: 120px; position: relative; display: grid; place-items: center; margin-bottom: 4px; }
.onboard .slide-visual .core { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #ffd27a 40%, var(--amber-2)); box-shadow: 0 0 40px #ffb547, 0 0 90px rgba(255, 140, 50, 0.5); }
.onboard .slide-icon { width: 54px; height: 54px; color: #ffcf8a; filter: drop-shadow(0 0 14px rgba(255, 170, 70, 0.8)); }
.onboard .slide-icon svg { width: 100%; height: 100%; }
.onboard .slide-visual .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 190, 100, 0.35); animation: spin 14s linear infinite; }
.onboard .slide-visual .ring:nth-child(2) { inset: 16px; border-style: dashed; animation-duration: 9s; animation-direction: reverse; }
.onboard .slide-visual .ring:nth-child(3) { inset: -14px; border-color: rgba(141, 108, 255, 0.3); animation-duration: 22s; }
@keyframes spin { to { transform: rotate(360deg); } }
.onboard h2 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.onboard .kick { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--amber); }
.onboard p { color: var(--muted); line-height: 1.65; font-size: 14.5px; max-width: 420px; }
.brand-word { color: var(--amber); font-weight: 600; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); transition: all .4s var(--ease); }
.dots i.on { width: 22px; background: var(--amber); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); }
.seg button { flex: 1; height: 38px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.stack { display: flex; flex-direction: column; gap: 12px; }

.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pack { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); text-align: left; position: relative; transition: all .25s var(--ease); }
.pack:hover { border-color: rgba(255, 181, 71, 0.4); transform: translateY(-2px); }
.pack.on { border-color: var(--amber); background: rgba(255, 181, 71, 0.1); box-shadow: 0 0 30px -8px rgba(255, 170, 60, 0.6); }
.pack .p { font-size: 22px; font-weight: 700; }
.pack .p small { font-size: 12px; color: var(--muted); font-weight: 500; }
.pack .pr { color: var(--amber); font-weight: 600; margin-top: 4px; }
.pack .sv { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--ok); }
.pack .best { position: absolute; top: -9px; left: 14px; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--amber); color: #1b1206; }
.verify-card { padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(79, 227, 168, 0.12), rgba(79, 227, 168, 0.03)); border: 1px solid rgba(79, 227, 168, 0.3); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay-area { min-height: 60px; display: flex; flex-direction: column; gap: 10px; }
.store-pay { width: 100%; justify-content: center; min-height: 48px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--amber); animation: spin .8s linear infinite; margin: 10px auto; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
    html, body { font-size: 14px; }
    .hud-top { top: calc(10px + var(--safe-t)); left: 10px; right: 10px; }
    .brand { padding-right: 12px; }
    .brand-sub { display: none; }
    .brand-name { font-size: 15px; }
    .energy-label { display: none; }
    .star-panel { top: auto; bottom: 0; right: 0; left: 0; width: 100%; max-height: 60vh; gap: 14px; border-radius: 26px 26px 0 0; padding: 18px 18px calc(18px + var(--safe-b)); transform: translateY(105%); }
    .star-panel.open { transform: none; }
    .sp-wish { font-size: 22px; }
    .hud-left { bottom: calc(92px + var(--safe-b)); left: 10px; }
    .radar { width: 92px; height: 92px; }
    .radar.big { width: 240px; height: 240px; }
    .hint-bar { display: none; }
    .composer { bottom: calc(14px + var(--safe-b)); }
    .type-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .type-card { padding: 10px 2px; }
    .type-card .ic { width: 34px; height: 34px; }
    .type-card .hz { display: none; }
    .modal { padding: 20px; border-radius: 24px; }
    .drawer { border-radius: 0; }
    .offline-banner { top: calc(62px + var(--safe-t)); left: 10px; font-size: 11px; padding: 6px 12px; }
    body.panel-open .hud-left, body.panel-open .offline-banner { opacity: 0; pointer-events: none; }
    .hud-left, .offline-banner { transition: opacity .4s; }
    .stat { padding: 12px; }
    .stat .v { font-size: 24px; }
}
@media (max-width: 420px) {
    .brand > div { display: none; }
    .brand { padding: 5px; }
    .hud-actions { gap: 2px; }
    .energy-pill { padding-right: 4px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   Explorer layer: stardust, souls, markers, compass, forge, map, social
   ===================================================================== */
.btn-sm { height: 34px; padding: 0 14px; font-size: 12px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn .cost, .forge-opt .cost { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px 1px 5px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #ffd27a; background: rgba(255, 181, 71, 0.14); }
.cost svg, .btn-sm .cost svg { width: 11px !important; height: 11px !important; }

/* stardust meter */
.dust-pill { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 10px 0 6px; border-radius: 999px; transition: background .2s; }
.dust-pill:hover { background: rgba(255, 255, 255, 0.07); }
.dust-ring { --p: 0%; width: 28px; height: 28px; border-radius: 50%; position: relative; background: conic-gradient(#bfe8ff var(--p), rgba(255, 255, 255, 0.1) 0); box-shadow: 0 0 14px rgba(160, 220, 255, 0.35); transition: --p .6s; }
.dust-ring::after { content: '✧'; position: absolute; inset: 4px; border-radius: 50%; background: #0b0d20; display: grid; place-items: center; font-size: 12px; color: #dff4ff; }
.dust-value { font-size: 12px; font-weight: 700; color: #cfeeff; font-variant-numeric: tabular-nums; min-width: 30px; }
.dust-pill.bump .dust-ring { animation: dustBump .9s var(--ease); }
@keyframes dustBump { 30% { transform: scale(1.35); box-shadow: 0 0 30px #bfe8ff, 0 0 60px #8ad0ff; } }

/* soul orb (a traveler's essence) */
.soul-orb { flex: none; border-radius: 50%; position: relative; background: radial-gradient(circle at 38% 32%, #fff, var(--l) 22%, var(--c) 58%, color-mix(in srgb, var(--c) 30%, #050510) 100%); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 8px rgba(255, 255, 255, .4); }
.soul-orb::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); animation: orbRing 3.6s ease-out infinite; }
.soul-btn { padding: 0; }
.badge.people { background: linear-gradient(135deg, #7af0c8, #2ec79a); box-shadow: 0 0 12px rgba(80, 230, 170, .6); color: #04140e; }

/* floating markers over worlds and travelers */
.marker-layer { position: fixed; inset: 0; pointer-events: none; z-index: 8; }
body.on-surface .marker-layer .marker.world { display: none; }
.marker { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; pointer-events: auto; transition: opacity .3s; margin: -9px 0 0 -9px; white-space: nowrap; text-align: left; }
.marker i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--c); box-shadow: 0 0 12px var(--c); position: relative; flex: none; }
.marker i::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--c); }
.marker .mk-text { display: flex; flex-direction: column; line-height: 1.15; text-shadow: 0 1px 8px #000, 0 0 2px #000; }
.marker b { font-size: 12px; font-weight: 600; }
.marker small { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.marker.dim { opacity: .5; }
.marker:hover b { color: var(--amber); }
.marker.traveler { flex-direction: column; gap: 2px; margin: -40px 0 0 -40px; width: 80px; align-items: center; }
.marker.traveler i { width: 8px; height: 8px; border-width: 0; background: var(--c); }
.marker.traveler i::after { display: none; }
.marker.traveler .mk-text { align-items: center; }
.marker.traveler b { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(6, 8, 22, .55); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }

/* surface: horizon compass and actions */
.compass-wrap { position: absolute; top: calc(150px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 40px)); height: 26px; pointer-events: none; }
/* the bar: dark glass, fading at both ends */
.compass-wrap::before { content: ''; position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(8, 10, 22, .55) 18%, rgba(8, 10, 22, .55) 82%, transparent); border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.compass-strip { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
/* the needle: where you are looking */
.compass-wrap::after { content: ''; position: absolute; left: 50%; top: -7px; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--amber); filter: drop-shadow(0 0 6px rgba(255, 181, 71, .7)); }
.cs-tick { position: absolute; top: 9px; width: 1px; height: 8px; background: rgba(255, 255, 255, .32); }
.cs-card { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 10px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .55); }
.cs-card.major { color: #fff; font-size: 12px; }
.cs-card.north { color: var(--amber); }
.cs-poi { position: absolute; top: -13px; transform: translateX(-50%); display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.cs-poi i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 8px var(--c); border: 1px solid rgba(255, 255, 255, .6); }
.cs-poi em { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, .8); white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: rgba(8, 10, 22, .6); border: 1px solid rgba(255, 255, 255, .1); margin-bottom: 1px; }
.cs-poi em b { font-weight: 600; color: #fff; }
.cs-poi.on i { transform: rotate(45deg) scale(1.25); }
.cs-poi.dust i { border-radius: 50%; transform: none; width: 8px; height: 8px; animation: orbPulse 1.4s infinite; }
.cs-poi.traveler i { border-radius: 50%; transform: none; }
.surface-actions { position: absolute; right: 18px; bottom: calc(22px + var(--safe-b)); display: flex; gap: 10px; align-items: center; }
.surface-actions .takeoff-btn { position: static; }
.surface-btn { height: 52px; padding: 0 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.surface-btn.on { background: rgba(255, 181, 71, 0.2); border-color: rgba(255, 181, 71, 0.6); color: #ffe0a8; }

/* soul forge */
.modal.forge-modal { width: min(980px, 100%); max-height: calc(100vh - 24px); padding: 22px; }
.forge-body { display: grid; grid-template-columns: 340px 1fr; grid-template-rows: 1fr auto; gap: 18px; min-height: 0; }
.forge-stage { position: relative; border-radius: 22px; overflow: hidden; min-height: 420px; background: radial-gradient(80% 60% at 50% 70%, rgba(255, 181, 71, .14), transparent 70%), radial-gradient(60% 50% at 50% 30%, rgba(141, 108, 255, .16), transparent 70%), rgba(0, 0, 0, .3); border: 1px solid var(--line); grid-row: 1 / 3; }
.forge-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.forge-name { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 24px; pointer-events: none; text-shadow: 0 2px 12px #000; }
.forge-panel { display: flex; flex-direction: column; gap: 18px; overflow: auto; max-height: calc(100vh - 230px); padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }
.forge-sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.forge-sec-title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.forge-sec-sub { font-size: 12px; color: var(--faint); }
.forge-essences { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.forge-ess { padding: 12px 4px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all .25s var(--ease); }
.forge-ess .ic { width: 34px; height: 34px; color: var(--c); }
.forge-ess .ic svg { width: 100%; height: 100%; }
.forge-ess .lb { font-size: 12px; font-weight: 600; }
.forge-ess .hz { font-size: 10px; color: var(--faint); }
.forge-ess.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 0 24px -6px var(--c); transform: translateY(-2px); }
.forge-note { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.forge-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.forge-opt { text-align: left; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: all .2s; }
.forge-opt:hover { border-color: var(--line-strong); }
.forge-opt .lb { font-size: 13px; font-weight: 600; display: flex; align-items: center; }
.forge-opt .nt { font-size: 11px; color: var(--faint); margin-top: 3px; line-height: 1.35; }
.forge-opt.on { border-color: rgba(255, 181, 71, .65); background: rgba(255, 181, 71, .1); }
.forge-lights { display: flex; flex-wrap: wrap; gap: 10px; }
.forge-opts.compact { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.forge-opts.compact .forge-opt { padding: 9px 10px; text-align: center; }
.forge-opts.compact .forge-opt .lb { justify-content: center; font-size: 12px; }
.forge-surprise { margin-top: 10px; }
.forge-light { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, var(--c) 60%); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); border: 2px solid transparent; transition: transform .2s; }
.forge-light.on { border-color: #fff; transform: scale(1.12); }
.forge-virtues { display: flex; flex-direction: column; gap: 8px; }
.virtue { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.v-main { flex: 1; min-width: 0; }
.v-name { font-weight: 600; font-size: 13px; }
.v-note { font-size: 11px; color: var(--faint); line-height: 1.35; }
.v-ctl { display: flex; align-items: center; gap: 8px; }
.v-ctl button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); font-weight: 700; }
.v-ctl button[disabled] { opacity: .3; }
.pips { display: flex; gap: 3px; }
.pips i { width: 8px; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.pips i.on { background: linear-gradient(#ffd27a, #ff8a3d); box-shadow: 0 0 8px rgba(255, 170, 60, .6); }
.forge-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.forge-cost { font-size: 13px; color: var(--muted); }
.forge-cost b { color: var(--amber); }
.forge-cost.short b:last-child { color: var(--danger); }

/* traveler card */
.modal.trav-modal { width: min(420px, 100%); }
.trav-card { display: flex; flex-direction: column; gap: 14px; }
.trav-top { display: flex; gap: 16px; align-items: center; }
.trav-sub { font-size: 13px; color: var(--amber); margin-top: 2px; }
.trav-where { font-size: 12px; color: var(--muted); margin-top: 2px; }
.trav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* conversations */
.modal.thread-modal { width: min(520px, 100%); height: min(680px, calc(100vh - 32px)); }
.thread-body { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.thread-who { display: flex; gap: 12px; align-items: center; }
.thread-name { font-weight: 700; font-size: 17px; }
.thread { flex: 1; min-height: 200px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; scrollbar-width: thin; }
.bubble { max-width: 80%; align-self: flex-start; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); animation: toastIn .4s var(--ease) both; }
.bubble.mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, rgba(255, 210, 122, .2), rgba(255, 138, 61, .16)); border-color: rgba(255, 181, 71, .3); }
.bubble .bt { font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; user-select: text; }
.bubble .bm { font-size: 10px; color: var(--faint); margin-top: 4px; }
.thread-door { align-self: center; font-size: 11px; color: var(--faint); padding: 4px 12px; border-radius: 999px; border: 1px dashed var(--line-strong); }
.thread-closed { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--muted); }
.thread-closed svg { width: 20px; height: 20px; flex: none; }
.thread-compose { display: flex; gap: 10px; align-items: flex-end; }
.thread-input { height: auto; min-height: 48px; max-height: 120px; padding: 13px 16px; resize: none; }
.thread-send { width: 48px; padding: 0; flex: none; height: 48px; }
.pulse-msg { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 210, 122, .1), rgba(141, 108, 255, .08)); border: 1px solid rgba(255, 181, 71, .25); animation: toastIn .6s var(--ease) both; }
.pm-title { font-size: 13px; line-height: 1.45; }
.pm-title b { color: var(--amber); }
.pulse-msg .textarea { height: auto; padding: 12px 14px; resize: none; font-size: 14px; }
.pulse-msg .row { justify-content: flex-end; gap: 8px; }
.pm-done { font-size: 13px; color: var(--ok); line-height: 1.45; }

/* voice calls */
.call-bar { position: fixed; left: 50%; top: calc(76px + var(--safe-t)); transform: translate(-50%, -30px); opacity: 0; pointer-events: none; z-index: 55; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 999px; transition: all .5s var(--ease); max-width: calc(100vw - 20px); }
.call-bar.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.call-who { min-width: 0; }
.call-name { font-weight: 700; font-size: 14px; white-space: nowrap; }
.call-status { font-size: 11px; color: var(--ok); }
.call-level { display: flex; gap: 3px; align-items: center; height: 26px; }
.call-level i { width: 4px; height: 22px; border-radius: 2px; background: var(--ok); transform: scaleY(.2); transition: transform .08s; }
.call-level i.me { background: var(--amber); }
.call-say { height: 38px; width: 180px; font-size: 13px; border-radius: 999px; }
.call-bar .icon-btn.on { background: rgba(255, 107, 125, .18); color: var(--danger); }
.call-bar .icon-btn.hang { background: var(--danger); color: #fff; }
.call-incoming { position: fixed; left: 50%; top: calc(76px + var(--safe-t)); transform: translate(-50%, -30px); opacity: 0; pointer-events: none; z-index: 56; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; border-radius: 24px; transition: all .5s var(--ease); width: min(460px, calc(100vw - 20px)); }
.call-incoming.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ci-ring { width: 40px; height: 40px; border-radius: 50%; flex: none; background: radial-gradient(circle at 40% 35%, #fff, #7af0c8 45%, #0a3a2a); box-shadow: 0 0 22px #7af0c8; animation: orbPulse 1s ease-in-out infinite; }
.ci-text { flex: 1; min-width: 0; }
.ci-name { font-weight: 700; }
.call-incoming .row { gap: 8px; }
.call-incoming .btn { height: 40px; padding: 0 14px; }
.bubbles { position: fixed; left: 16px; bottom: calc(150px + var(--safe-b)); z-index: 26; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.say-bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: toastIn .5s var(--ease) both; }
.say-bubble b { color: var(--amber); }
.say-bubble.out { animation: toastOut .4s ease both; }

/* galaxy map */
.galaxy-map { position: fixed; inset: 0; z-index: 48; background: radial-gradient(ellipse at center, rgba(10, 8, 30, .9), rgba(2, 3, 10, .97)); opacity: 0; transition: opacity .4s; }
.galaxy-map.open { opacity: 1; }
.galaxy-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.gm-title { position: absolute; top: calc(22px + var(--safe-t)); left: 24px; pointer-events: none; }
.gm-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.gm-close { position: absolute; top: calc(18px + var(--safe-t)); right: 18px; }
.gm-legend { position: absolute; left: 24px; bottom: calc(22px + var(--safe-b)); display: flex; gap: 16px; font-size: 11px; color: var(--muted); pointer-events: none; }
.gm-legend span { display: flex; align-items: center; gap: 6px; }
.gm-legend i { width: 10px; height: 10px; border-radius: 50%; }
.gm-legend i.w { background: #8ad0ff; box-shadow: 0 0 8px #8ad0ff; }
.gm-legend i.s { background: #ff5f7a; }
.gm-legend i.t { border: 1.5px solid #fff; }
.gm-legend i.y { background: #ffd27a; border-radius: 2px; transform: rotate(45deg); }
.gm-info { position: absolute; right: 18px; bottom: calc(18px + var(--safe-b)); width: min(360px, calc(100vw - 36px)); padding: 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s var(--ease); }
.gm-info.show { opacity: 1; transform: none; pointer-events: auto; }
.gm-i-title { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.2; }
.gm-i-sub { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* drawer with five tabs */
.tab { font-size: 12px; }
.msg-slot:empty { display: none; }
.toast { cursor: default; }

@media (max-width: 760px) {
    .hud-actions .help-btn, .hud-actions .icon-btn[title^="Galaxy"] { display: none; }
    .dust-pill { padding: 0 6px 0 4px; gap: 5px; }
    .dust-value { display: none; }
    .forge-body { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .forge-stage { min-height: 280px; height: 34vh; grid-row: auto; }
    .forge-panel { max-height: none; overflow: visible; }
    .modal.forge-modal { padding: 16px; }
    .forge-opts { grid-template-columns: 1fr; }
    .forge-opts.compact { grid-template-columns: repeat(3, 1fr); }
    .forge-essences { gap: 5px; }
    .forge-ess .hz { display: none; }
    .surface-actions { right: 12px; gap: 8px; }
    .surface-btn { height: 46px; padding: 0 12px; }
    .surface-btn span { display: none; }
    .compass-wrap { top: calc(136px + var(--safe-t)); }
    .surface-sub { display: none; }
    .surface-top { padding: 8px 10px 8px 14px; max-width: calc(100vw - 32px); }
    .call-say { display: none; }
    .gm-legend { display: none; }
    .bubbles { bottom: calc(200px + var(--safe-b)); }
}
@media (max-width: 420px) {
    .soul-btn { display: none; }
}

/* entities & gear (v2) */
.forge-opt .owned { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; color: var(--ok); background: rgba(79, 227, 168, .12); }
.forge-opts.gear { grid-template-columns: repeat(2, 1fr); }
.gear-opt .power { font-size: 11.5px; color: #cfe6ff; margin-top: 4px; line-height: 1.4; }
.gear-opt.on { border-color: rgba(140, 200, 255, .65); background: rgba(120, 180, 255, .1); }
.forge-drag { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); pointer-events: none; }
.forge-stage { background: radial-gradient(70% 45% at 50% 85%, rgba(255, 181, 71, .1), transparent 70%), radial-gradient(80% 60% at 50% 35%, rgba(70, 50, 160, .25), transparent 75%), #05060f; }

.gather-prompt { position: absolute; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: all .35s var(--ease); border-color: rgba(190, 232, 255, .45); box-shadow: 0 0 40px -10px #bfe8ff; }
.gather-prompt.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.gather-prompt.gold { border-color: rgba(255, 210, 122, .6); box-shadow: 0 0 40px -8px #ffd27a; }
.gather-prompt i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #fff, #bfe8ff 50%, transparent 70%); box-shadow: 0 0 14px #bfe8ff; animation: orbPulse 1s infinite; }
.gather-prompt.gold i { background: radial-gradient(circle, #fff, #ffd27a 50%, transparent 70%); box-shadow: 0 0 14px #ffd27a; }
.gather-prompt kbd { font-family: var(--font); font-size: 12px; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .08); }
@media (pointer: coarse) { .gather-prompt kbd { display: none; } .gather-prompt { padding: 14px 20px; font-size: 15px; } }

/* keepers' dialogue */
.dialogue { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 30px); opacity: 0; z-index: 58; width: min(640px, calc(100vw - 24px)); border-radius: 26px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; transition: all .5s var(--ease); background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015) 40%), rgba(10, 10, 28, .82); border-color: rgba(255, 220, 160, .22); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 60px -30px rgba(255, 200, 120, .6); }
.dialogue.show { opacity: 1; transform: translate(-50%, 0); }
.dlg-head { display: flex; align-items: center; gap: 14px; }
.dlg-name { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; }
.dlg-title { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-top: 4px; }
.dlg-text { font-size: 16px; line-height: 1.6; min-height: 52px; color: #f4ecdc; cursor: pointer; }
.dlg-choices { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; min-height: 44px; }
.gather-prompt.talk { border-color: rgba(255, 210, 122, .6); box-shadow: 0 0 40px -8px #ffd27a; }
.gather-prompt.talk i { background: radial-gradient(circle, #fff, #ffd27a 50%, transparent 70%); box-shadow: 0 0 14px #ffd27a; }
body.on-surface .star-panel { z-index: 30; }
.rooted-chip { display: inline-flex; margin: 8px 0 0; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #ffe0a8; background: rgba(255, 181, 71, .14); border: 1px solid rgba(255, 181, 71, .35); }

/* soul spectra */
.spectra { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.spectrum { position: relative; overflow: hidden; text-align: left; padding: 14px 14px 14px 64px; min-height: 76px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--a) 18%, transparent), transparent 60%), rgba(255, 255, 255, .025); transition: all .3s var(--ease); }
.spectrum:hover { border-color: color-mix(in srgb, var(--b) 50%, transparent); }
.spectrum.on { border-color: var(--b); box-shadow: 0 0 34px -10px var(--b), inset 0 0 30px -18px var(--a); transform: translateY(-2px); }
.sp-orb { position: absolute; left: 14px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0 6%, transparent 7%), radial-gradient(circle at 30% 30%, var(--a), transparent 55%), radial-gradient(circle at 70% 65%, var(--b), transparent 60%), radial-gradient(circle at 40% 80%, var(--c), transparent 55%), #0a0a1a;
  box-shadow: 0 0 22px color-mix(in srgb, var(--b) 70%, transparent); animation: spSpin 7s linear infinite; }
.sp-orb::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--a) 60%, transparent); animation: spSpin 12s linear infinite reverse; }
@keyframes spSpin { to { transform: rotate(360deg); } }
.sp-name { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; }
.sp-note { font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 3px; }
@media (max-width: 760px) { .spectra { grid-template-columns: 1fr; } }

/* explorer rank and today's missions */
.rank-chip { margin-left: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 64px; }
.rank-lv { font-size: 11px; font-weight: 700; color: var(--amber); white-space: nowrap; }
.rank-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.rank-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb547, #ffe2a8); box-shadow: 0 0 8px rgba(255, 181, 71, .7); transition: width .6s ease; }
.rank-chip.bump { animation: rankBump .9s ease; }
@keyframes rankBump { 40% { transform: scale(1.18); filter: brightness(1.6); } }
.goals { position: absolute; left: 16px; top: calc(200px + var(--safe-t)); width: 250px; padding: 12px 14px; border-radius: 18px; text-align: left; display: flex; flex-direction: column; gap: 8px; color: inherit; font: inherit; cursor: pointer; }
.goals-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.goals-head b { font-size: 12px; color: #fff; letter-spacing: 0; }
.goal { position: relative; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; font-size: 12px; padding-bottom: 6px; }
.goal i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); }
.goal.done i { background: #8affc8; border-color: #8affc8; box-shadow: 0 0 8px #8affc8; }
.goal.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.goal small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.goal.done small { color: #8affc8; }
.goal em { position: absolute; left: 22px; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ffb547, #ffe2a8); max-width: calc(100% - 22px); }
.goal.done em { background: #8affc8; }
.goals-foot { font-size: 10px; color: var(--faint); }
@media (max-width: 760px) {
    .goals { top: auto; bottom: calc(150px + var(--safe-b)); left: 12px; width: auto; max-width: 62vw; padding: 8px 12px; gap: 6px; }
    .goals:not(.open) .goal, .goals:not(.open) .goals-foot { display: none; }
    .rank-chip { min-width: 48px; }
}
@media (max-width: 760px) {
    .surface-btn span { display: none; }
    .surface-btn { padding: 0 14px; }
}

/* ---------- a wish comes true ---------- */
.btn-gold {
    color: #2a1904;
    background: linear-gradient(120deg, #fff1c4, #ffd27a 30%, #f7b443 55%, #ffe7a8 80%, #ffd27a);
    background-size: 220% 100%;
    animation: goldSheen 4s linear infinite;
    box-shadow: 0 12px 40px -8px rgba(255, 196, 80, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 16px 50px -6px rgba(255, 200, 90, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.75); }
@keyframes goldSheen { to { background-position: -220% 0; } }

.fulfill-btn { color: #ffe3a1; border-color: rgba(255, 210, 122, 0.35); background: linear-gradient(135deg, rgba(255, 201, 90, 0.12), rgba(255, 201, 90, 0.03)); }
.fulfill-btn:hover { border-color: rgba(255, 210, 122, 0.7); box-shadow: 0 0 30px -6px rgba(255, 201, 90, 0.6); }
.fulfill-btn .fb-seal { color: #ffc95a; text-shadow: 0 0 12px #ffc95a; animation: sealSpin 6s linear infinite; display: inline-block; }
@keyframes sealSpin { to { transform: rotate(360deg); } }

.fulfill-modal { border: 1px solid rgba(255, 210, 122, 0.25); box-shadow: 0 0 80px -20px rgba(255, 201, 90, 0.45), 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.fulfill-modal .modal-kicker { color: #ffc95a; }
.fulfill-body { display: flex; flex-direction: column; gap: 14px; }
.fulfill-body .wish-preview { border-color: rgba(255, 210, 122, 0.3); color: #fff4d8; text-shadow: 0 0 22px rgba(255, 201, 90, 0.35); }
.fulfill-body .hint b { color: #ffd27a; }
.fulfill-people { display: flex; flex-wrap: wrap; gap: 6px; }
.fulfill-people span { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #ffe8b8; background: rgba(255, 201, 90, 0.1); border: 1px solid rgba(255, 201, 90, 0.28); animation: personIn .6s var(--ease) backwards; }
.fulfill-people span:nth-child(2) { animation-delay: .05s; } .fulfill-people span:nth-child(3) { animation-delay: .1s; } .fulfill-people span:nth-child(4) { animation-delay: .15s; }
.fulfill-people span:nth-child(5) { animation-delay: .2s; } .fulfill-people span:nth-child(n+6) { animation-delay: .25s; }
.fulfill-people .more { color: var(--muted); background: rgba(255, 255, 255, 0.05); border-color: var(--line); }
@keyframes personIn { from { opacity: 0; transform: translateY(6px) scale(.9); } }

/* the panel of a wish that came true */
.star-panel.is-fulfilled { box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.25), 0 0 60px -18px rgba(255, 201, 90, 0.5); }
.star-panel.is-fulfilled .sp-wish { color: #fff2d2; text-shadow: 0 0 24px rgba(255, 201, 90, 0.35); }
.manifested { position: relative; overflow: hidden; padding: 16px 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px;
    background: radial-gradient(120% 140% at 0% 0%, rgba(255, 214, 128, 0.22), rgba(255, 180, 60, 0.05) 55%, rgba(0, 0, 0, 0.2)); border: 1px solid rgba(255, 210, 122, 0.4); }
.manifested::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 244, 214, 0.18) 50%, transparent 65%); background-size: 250% 100%; animation: goldSheen 5s linear infinite; pointer-events: none; }
.mf-top { display: flex; align-items: center; gap: 12px; }
.mf-seal { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #2a1904;
    background: radial-gradient(circle at 35% 30%, #fff6dc, #ffd27a 45%, #e59a2a); box-shadow: 0 0 22px rgba(255, 201, 90, 0.75); animation: sealGlow 3s ease-in-out infinite; }
@keyframes sealGlow { 50% { box-shadow: 0 0 36px rgba(255, 220, 140, 1); } }
.mf-k { font-size: 18px; font-weight: 700; color: #ffe3a1; text-shadow: 0 0 18px rgba(255, 201, 90, 0.7); }
.mf-date { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 232, 184, 0.65); }
.mf-thanks { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.35; color: #fff4d8; }
.mf-note { font-size: 12px; color: var(--muted); }

/* visitors: a telepathic message — rings ripple from their ship, words condense out of a blur */
.telepathy { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease); background: radial-gradient(ellipse at 50% 38%, rgba(130, 100, 255, 0.10), rgba(4, 5, 13, 0.38) 78%); }
.telepathy.show { opacity: 1; }
.tp-rings { position: absolute; left: 50%; top: 40%; width: 0; height: 0; }
.tp-rings i { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; border: 1.5px solid rgba(170, 240, 255, 0.6); box-shadow: 0 0 26px rgba(140, 220, 255, 0.35), inset 0 0 26px rgba(200, 170, 255, 0.28); animation: tpRing 3.4s cubic-bezier(.2, .6, .3, 1) infinite; will-change: transform, opacity; }
.tp-rings i:nth-child(2) { animation-delay: -1.13s; border-color: rgba(214, 190, 255, 0.55); }
.tp-rings i:nth-child(3) { animation-delay: -2.26s; border-color: rgba(255, 210, 140, 0.45); }
@keyframes tpRing { from { transform: scale(0.35); opacity: 0.95; } to { transform: scale(3.4); opacity: 0; } }
.tp-card { position: absolute; left: 50%; bottom: calc(11vh + 22px + var(--safe-b)); transform: translateX(-50%); width: min(760px, calc(100vw - 32px)); text-align: center; pointer-events: auto; }
.tp-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #a8f0ff; text-shadow: 0 0 18px rgba(140, 230, 255, 0.7); margin-bottom: 14px; }
.tp-text { font-family: var(--serif); font-style: italic; font-size: clamp(23px, 3.3vw, 40px); line-height: 1.3; min-height: 2.6em; color: #fbf4ff; text-shadow: 0 0 22px rgba(176, 146, 255, 0.75), 0 0 60px rgba(120, 220, 255, 0.35), 0 2px 18px rgba(0, 0, 0, 0.8); }
.tp-text span { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(8px) scale(1.04); }
.tp-text.in span { animation: tpWord 0.9s var(--ease) forwards; }
@keyframes tpWord { to { opacity: 1; filter: none; transform: none; } }
.tp-choices { margin-top: 22px; min-height: 48px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tp-choices .btn-primary { box-shadow: 0 0 30px -6px rgba(170, 140, 255, 0.8); }
.tp-next { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; color: #c8f4ff; animation: tpPulse 1.8s ease-in-out infinite; }
@keyframes tpPulse { 50% { box-shadow: 0 0 22px rgba(160, 230, 255, 0.6); } }
@media (max-width: 640px) { .tp-card { bottom: calc(11vh + 12px + var(--safe-b)); } }

/* ceremony: letterbox bars, the interface steps aside */
.letterbox { position: fixed; inset: 0; z-index: 44; pointer-events: none; }
.letterbox i { position: absolute; left: 0; right: 0; height: 11vh; background: #000; transition: transform 1.4s var(--ease); }
.letterbox i:first-child { top: 0; transform: translateY(-101%); }
.letterbox i:last-child { bottom: 0; transform: translateY(101%); }
body.ceremony .letterbox i { transform: none; }
body.ceremony .ui, body.ceremony .star-panel, body.ceremony .hint-bar, body.ceremony .star-label, body.ceremony .toast { opacity: 0 !important; pointer-events: none !important; transition: opacity .8s; }
body.ceremony .cinematic-text .big { text-shadow: 0 0 30px rgba(255, 201, 90, 0.55); }
body.ceremony .cinematic-text .big b { color: #ffd27a; text-shadow: 0 0 26px rgba(255, 201, 90, 0.9); }
body.ceremony .cinematic-text .small { color: #f6e7c8; }
body.ceremony .letterbox { pointer-events: auto; }
.fulfilled-hint { color: #f3e2bf; }
.credits { font-size: 11px; line-height: 1.5; color: var(--faint); text-align: center; padding-top: 6px; } .credits a { color: var(--muted); text-decoration: underline; }

/* ---------- phones: bigger type, the main action always in reach, nothing on top of anything ---------- */
.composer.invite { border-color: rgba(255, 181, 71, 0.6); animation: inviteGlow 2s ease-in-out infinite; }
.composer.invite::before { content: attr(data-invite); position: absolute; right: 10px; bottom: calc(100% + 12px); white-space: nowrap; font-size: 14px; font-weight: 700; color: #1a1206; background: linear-gradient(180deg, #fff3cf, #ffc163); padding: 7px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: inviteBob 2s ease-in-out infinite; pointer-events: none; }
@keyframes inviteGlow { 50% { box-shadow: 0 0 0 6px rgba(255, 181, 71, 0.18), 0 0 50px -6px rgba(255, 160, 60, 0.7); } }
@keyframes inviteBob { 50% { transform: translateY(-4px); } }
@media (max-width: 760px) {
    .prologue-skip { font-size: 13px; padding: 12px 18px; }
    .pillar-title { font-size: 15px; }
    .pillar p { font-size: 13.5px; }
    .end-status { font-size: 13px; }
    .onboard p { font-size: 15px; }
    /* the star panel: big targets, no fiddly slider (the chips and the stepper do the same) */
    .star-panel .range { display: none; }
    .star-panel .chip { min-height: 40px; min-width: 48px; font-size: 15px; }
    .stepper button { width: 44px; height: 44px; }
    .star-panel .hold-btn { min-height: 54px; font-size: 16px; }
    /* a world's card: name, a short line of lore, and a big button underneath */
    .land-prompt { flex-direction: column; align-items: stretch; gap: 10px; width: calc(100vw - 24px); padding: 14px; }
    .land-prompt .land-orb { display: none; }
    .land-lore { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .land-prompt .btn { width: 100%; min-height: 50px; justify-content: center; }
    /* on a world: today's goals under the name, notices below the compass, the joystick alone */
    .goals { top: calc(140px + var(--safe-t)); bottom: auto; }
    body.on-surface .toasts { top: calc(136px + var(--safe-t)); }
}
