/* realm/css/realm.css — Your Realm (receiver side of Stations' Cast).
   Rebuilt 2026-06. This file holds ONLY the live page: a small base section
   (view mechanics + claim modal skeleton) and the full visual layer below.
   All legacy wallet styles were retired with the wallet/ → realm/ rename. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; color: #e9eff8; }
button { font: inherit; }
/* no rubber-band / pull-to-refresh — the page is an app surface, the only real
   scroller is the grid (wallet-view); scroll chaining to the page is never right */
html, body { overscroll-behavior: none; }

/* ── view sections ── */
#wallet-view {
  position: fixed; inset: 0; z-index: 100;
  display: none; flex-direction: column; overflow-y: auto;
  padding: 64px 32px 28px;
}
#wallet-view.visible { display: flex; }

#action-detail-view {
  position: fixed; inset: 0; z-index: 110;
  overflow-y: auto; padding: 24px 32px 120px;
}
#detail-back-btn { margin-bottom: 28px; cursor: pointer; }

/* section head — element resets; look lives in the layer below */
.wallet-section-title { margin: 0; }
.wallet-section-sub { margin: 0; }

/* empty state (no search matches) — toggled by realm.js */
#wallet-empty-state { display: none; padding: 40px 0 20px; }
.empty-line1 { font-family: var(--font-mono); font-size: 11px; margin-bottom: 7px; }
.empty-line2 { font-family: var(--font-mono); font-size: 9.5px; }

/* ── claim modal skeleton (the layer below reskins it) ── */
.claim-modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.claim-modal-overlay.visible { opacity: 1; pointer-events: all; }
.claim-modal-inner { position: relative; max-width: 480px; width: 90vw; }
.claim-close { position: absolute; top: 16px; right: 18px; background: none; border: none; cursor: pointer; line-height: 1; padding: 4px 6px; }
.claim-title { margin: 0 0 16px; }
.claim-desc { margin: 0 0 20px; }
.claim-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.claim-input { width: 100%; }
.claim-error { margin-bottom: 12px; }
.claim-confirm-btn { margin-bottom: 16px; cursor: pointer; }
.claim-note { margin: 0; }

/* ════════════════════════════════════════════════════════════════════════════
   REALM REBUILD LAYER — receiver side of Stations' Cast.
   Stations look: deep-space glitter-warp + glass panels, blue structure /
   gold C// / white Standard. Everything below overrides the legacy wallet skin.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-pixel: 'Press Start 2P', monospace;
  --rlm-gold: #f5c542;
  --rlm-gold-deep: #e0a040;
  --rlm-blue: #18B0F5;
  --rlm-blue-soft: #7fc3ff;
  --rlm-text: #e9eff8;
  --rlm-dim: #8fa3c0;
  --rlm-panel: rgba(13, 22, 42, 0.62);
  --rlm-border: rgba(120, 170, 230, 0.22);
}

/* ── deep space backdrop — 「星泊」Anchorage ──
   Stations' sky is blue/purple and travelling; the Realm's is the same deep
   space seen from a place stars settle: cyan-teal and aurora-green nebulae
   (the C// voice/tree family), still cold, but at rest. */
body.rlm-body {
  background:
    radial-gradient(60% 54% at 20% 18%, rgba(28,110,118,0.26), transparent 70%),
    radial-gradient(54% 50% at 84% 56%, rgba(34,128,96,0.16), transparent 72%),
    radial-gradient(70% 60% at 56% 98%, rgba(18,98,110,0.20), transparent 72%),
    #090e10 !important;
  background-attachment: fixed;
}
#warp-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }

/* ── claim pill — Stations plan-pill pattern: collapsed idle, expands on hover ── */
#rlm-claim-pill { position: fixed; top: 23px; right: 72px; z-index: 419; }
body.ncp-nav-open #rlm-claim-pill { opacity: 0; pointer-events: none; }
#rlm-claim-pill #custody-widget { display: flex; align-items: center; }
#rlm-claim-pill .cc-claim-btn {
  display: inline-flex; align-items: center; gap: 0; height: 30px; padding: 0 11px;
  background: rgba(12,20,38,0.38); border: 1px solid rgba(120,170,230,0.16); border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.25); cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .1em;
  color: rgba(205,221,242,0.5);
  transition: border-color .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
#rlm-claim-pill .rlm-cp-ico {
  font-family: var(--font-pixel); font-size: 11px; color: rgba(127,195,255,0.7);
  transition: color .25s ease;
}
/* label stays out — the pill is a standing reminder, never fully collapsed */
#rlm-claim-pill .rlm-cp-sep { width: 1px; height: 12px; background: rgba(120,170,230,0.3); margin: 0 9px; }
#rlm-claim-pill .rlm-cp-label { white-space: nowrap; color: #e7eefb; }
#rlm-claim-pill .rlm-cp-arr { white-space: nowrap; color: #e7eefb; margin-left: 8px; opacity: .55; transition: opacity .25s ease; }
#rlm-claim-pill .cc-claim-btn:hover {
  background: rgba(16,28,52,0.8); border-color: rgba(127,195,255,0.5);
  color: rgba(225,236,250,0.95);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 12px rgba(24,176,245,0.18);
}
#rlm-claim-pill .cc-claim-btn:hover .rlm-cp-ico { color: #7fc3ff; }
#rlm-claim-pill .cc-claim-btn:hover .rlm-cp-arr { opacity: 1; }
/* claimed → gold confirmed chip, same pill geometry */
#rlm-claim-pill #cc-addr-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px;
  background: rgba(20,16,6,0.5); border: 1px solid rgba(245,197,66,0.5); border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.25), 0 0 12px rgba(245,197,66,0.18);
  font-family: var(--font-mono); font-size: 11px; color: var(--rlm-gold);
}
#rlm-claim-pill .cc-tick { font-size: 10px; }

/* ── floating nav drawer (verbatim Stations skin) ── */
.ncp-nav-toggle {
  position: fixed; top: 16px; right: 18px; z-index: 460;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(12,20,38,0.62); border: 1px solid rgba(120,170,230,0.30);
  border-radius: 12px; cursor: pointer;
  -webkit-backdrop-filter: blur(14px) saturate(1.12); backdrop-filter: blur(14px) saturate(1.12);
  box-shadow: 0 6px 22px rgba(0,0,0,0.42), inset 0 1px 0 rgba(195,222,255,0.13);
  transition: border-color .2s, background .2s, transform .12s;
}
.ncp-nav-toggle:hover { border-color: rgba(130,185,255,0.6); background: rgba(16,28,52,0.8); }
.ncp-nav-toggle:active { transform: translateY(1px); }
.ncp-nav-lines { display: flex; flex-direction: column; gap: 4px; width: 19px; }
.ncp-nav-lines > span { height: 2px; border-radius: 2px; background: #bcd6f5; transition: transform .26s ease, opacity .18s ease; }
body.ncp-nav-open .ncp-nav-lines > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.ncp-nav-open .ncp-nav-lines > span:nth-child(2) { opacity: 0; }
body.ncp-nav-open .ncp-nav-lines > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ncp-nav-backdrop {
  position: fixed; inset: 0; z-index: 440; background: rgba(4,7,13,0.52);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: ncpNavFade .2s ease;
}
@keyframes ncpNavFade { from { opacity: 0; } to { opacity: 1; } }

.ncp-nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 450; width: 272px; max-width: 82vw;
  display: flex; flex-direction: column; padding: 72px 16px 18px;
  transform: translateX(104%); transition: transform .3s cubic-bezier(.3,.82,.3,1);
  background: linear-gradient(180deg, rgba(11,18,34,0.95), rgba(6,10,20,0.97));
  border-left: 1px solid rgba(120,170,230,0.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: -10px 0 44px rgba(0,0,0,0.5);
}
body.ncp-nav-open .ncp-nav-drawer { transform: translateX(0); }
.ncp-nav-brand { display: block; padding: 0 10px 16px; margin-bottom: 8px; border-bottom: 1px solid rgba(120,170,230,0.14); }
.ncp-nav-brand img { height: 23px; width: auto; display: block; opacity: .96; }
.ncp-nav-section { font-family: var(--font-pixel); font-size: 7px; letter-spacing: .26em; color: rgba(140,170,215,0.5);
  text-transform: uppercase; padding: 22px 12px 7px; }
button.ncp-nav-link {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-sans); font-size: 13.5px;
}
.ncp-nav-links { display: flex; flex-direction: column; gap: 1px; }
.ncp-nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  font-family: var(--font-sans); font-size: 13.5px; color: #cdddf2; text-decoration: none;
  transition: background .15s, color .15s; }
.ncp-nav-link:hover { background: rgba(120,170,230,0.1); color: #fff; }
.ncp-nav-link-current { background: rgba(127,195,255,0.12); color: #fff; cursor: default; position: relative; padding-left: 14px; }
.ncp-nav-link-current::before { content: ''; position: absolute; left: 3px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: #7fc3ff; box-shadow: 0 0 7px rgba(127,195,255,0.6); }
.ncp-nav-link-current:hover { background: rgba(127,195,255,0.12); }
.ncp-nav-here { margin-left: auto; font-family: var(--font-mono); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; color: rgba(127,195,255,0.85); }
.ncp-nav-ico { width: 17px; text-align: center; color: #7fc3ff; font-size: 13px; flex-shrink: 0; }
.ncp-nav-ext { margin-left: auto; opacity: .45; font-size: 12px; }
.ncp-nav-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(120,170,230,0.12); }
.ncp-nav-socials { display: flex; justify-content: flex-start; gap: 4px; padding: 0 6px; margin-bottom: 4px; }
.ncp-nav-socials a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; color: rgba(170,195,230,0.55); text-decoration: none;
  transition: color .15s, background .15s, transform .12s; }
.ncp-nav-socials a:hover { color: #fff; background: rgba(120,170,230,0.1); transform: translateY(-1px); }
.ncp-nav-socials svg { width: 17px; height: 17px; display: block; }
.ncp-nav-logout { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(150,175,220,0.18); border-radius: 9px;
  font-family: var(--font-sans); font-size: 13px; color: rgba(200,212,230,0.8); cursor: pointer; text-align: left;
  transition: background .15s, color .15s, border-color .15s; }
.ncp-nav-logout:hover { background: rgba(240,110,110,0.1); border-color: rgba(240,110,110,0.4); color: #ffdada; }
.ncp-nav-logout .ncp-nav-ico { color: rgba(225,140,140,0.85); }

/* ── home: centered column, Browse-style head + controls ──
   no top bar anymore → content rises; 64px clears the floating menu/pill row */
.rlm-body #wallet-view { align-items: center; top: 0; padding-top: 64px; }
.rlm-body #action-detail-view { top: 0; padding-top: 24px; }
.rlm-body #wallet-view > * { width: 100%; max-width: 1180px; }
.rlm-body .rlm-head {
  margin: 0 0 18px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; flex-wrap: wrap;
}
.rlm-body .rlm-head .wallet-section-title {
  font-family: var(--font-pixel); font-size: 15px; letter-spacing: .08em;
  color: var(--rlm-gold); text-shadow: 0 0 18px rgba(245,197,66,0.45);
}
.rlm-body .rlm-head .wallet-section-sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--rlm-dim); margin-top: 10px;
}
/* footer band — invite left, chain line right (one conventional row) */
.rlm-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  margin-top: 64px; padding: 26px 0 6px;
  border-top: 1px solid rgba(24,176,245,0.12);
}
.rlm-mode-sky .rlm-footer { margin-top: 18px; }
.rlm-mode-grid .rlm-footer { margin-top: auto; }   /* pin to the bottom when the grid is short (few/0 stars) */
.rlm-ft-invite { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.rlm-make-line { font-family: var(--font-sans); font-size: 12px; color: #c9d6ea; }
.rlm-ft-chain {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(240,245,243,0.46);
}
.rlm-create-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px;
  border: 2px solid #6e4a13; border-radius: 0; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #d49636, #b07a1e); color: #fff5e6;
  font-family: var(--font-pixel); font-size: 7.5px; letter-spacing: .06em;
  box-shadow: 0 4px 0 #6e4a13, inset 0 2px 0 rgba(255,255,255,0.22), 0 0 20px rgba(245,197,66,0.18);
  transition: transform .12s, box-shadow .12s;
  clip-path: polygon(0 3px,3px 3px,3px 0,calc(100% - 3px) 0,calc(100% - 3px) 3px,100% 3px,100% calc(100% - 3px),calc(100% - 3px) calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,3px calc(100% - 3px),0 calc(100% - 3px));
}
.rlm-create-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 #6e4a13, inset 0 2px 0 rgba(255,255,255,0.22), 0 0 24px rgba(245,197,66,0.26); }
.rlm-create-btn:active { transform: translateY(4px); box-shadow: 0 0 0 #6e4a13, inset 0 2px 0 rgba(255,255,255,0.18); }
.rlm-cb-ico { font-size: 9.5px; line-height: 1; }
.rlm-cb-arr { font-family: var(--font-mono); font-size: 10.5px; }
.rlm-create-sub { font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; color: rgba(143,163,192,0.6); }

/* mini browse controls — one quiet row beside the head, no panel chrome */
#rlm-controls {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  justify-content: flex-end; padding-bottom: 4px;
}
.rlm-search-wrap {
  display: flex; align-items: center; gap: 7px; width: 168px;
  background: rgba(8, 14, 28, 0.42); border: 1px solid rgba(120,170,230,0.18);
  border-radius: 999px; padding: 5px 11px;
  transition: border-color .2s, box-shadow .2s, width .25s ease;
}
.rlm-search-wrap:focus-within {
  border-color: rgba(24,176,245,0.55); box-shadow: 0 0 0 3px rgba(24,176,245,0.10);
  width: 230px;
}
.rlm-search-ico { color: rgba(143,163,192,0.7); font-size: 12px; line-height: 1; }
#rlm-search {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em; color: var(--rlm-text);
}
#rlm-search::placeholder { color: rgba(143,163,192,0.5); }

.rlm-ctl-sep { width: 1px; height: 14px; background: rgba(120,170,230,0.2); }
.rlm-chips { display: flex; align-items: center; gap: 5px; }
.rlm-chip {
  font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: .12em;
  color: rgba(143,163,192,0.85); background: transparent;
  border: 1px solid rgba(120,170,230,0.2); border-radius: 999px;
  padding: 5px 9px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.rlm-chip:hover { color: #dce8f7; border-color: rgba(130,185,255,0.45); }
.rlm-chip .rlm-chip-n { font-size: 7.5px; opacity: .75; }
.rlm-chip.active {
  color: #0a1322; background: var(--rlm-blue); border-color: var(--rlm-blue);
  box-shadow: 0 0 10px rgba(24,176,245,0.32);
}
.rlm-chip.active .rlm-chip-n { opacity: .85; }
.rlm-chip.rlm-chip-c.active {
  color: #2a1c04; background: linear-gradient(180deg, var(--rlm-gold), var(--rlm-gold-deep));
  border-color: var(--rlm-gold); box-shadow: 0 0 10px rgba(245,197,66,0.32);
}
.rlm-chip.rlm-chip-std.active {
  color: #10182a; background: #e9eff8; border-color: #e9eff8;
  box-shadow: 0 0 9px rgba(233,239,248,0.26);
}

/* ── floating star field — a perspective stage over the grid ──
   The grid stays the layout truth (filter/sort/search, no occlusion, any
   count); the ParallaxCards feel rides on top: per-card depth, idle bob,
   and a stage that leans toward the cursor. */
/* grid view — a plain, direct card grid (no perspective, no float/drift) */
.rlm-body #nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 248px));
  justify-content: flex-start;
  gap: 22px; margin: 8px 0 56px;
}
/* a static card hovers with a simple lift — no 3D tilt */
#nft-grid .dc-card { transition: transform .2s ease, box-shadow .3s ease; }
#nft-grid .dc-card:hover { transform: translateY(-4px); }

/* sky-only float/bob (kept for the immersive view) */
.rlm-bob { animation: rlmBob 6s ease-in-out infinite; }
@keyframes rlmBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(0.45deg); }
}
@media (prefers-reduced-motion: reduce) { .rlm-bob { animation: none; } }

/* static cards (grid) — title always shown, anchored at the card's bottom; the
   caption (host/date + blurb) is COLLAPSED from layout (max-height 0, not just
   transparent — transparent text still holds space and floats the title to the
   middle of the card). Hover expands it under the title. A faint ··· marks
   that there is more to reveal. */
.dc-static .dc-title { transform: none; opacity: 1; }
.dc-static .dc-sub, .dc-static .dc-desc {
  max-height: 0; margin: 0; overflow: hidden; opacity: 0; transform: translateY(6px);
  transition: max-height .45s ease, opacity .35s ease, transform .45s ease, margin .45s ease;
}
.dc-static:hover .dc-sub  { max-height: 34px;  margin-bottom: 3px; opacity: 1; transform: none; }
.dc-static:hover .dc-desc { max-height: 130px; margin-top: 5px;   opacity: 1; transform: none; }
.dc-static .dc-bg { transform: scale(1.06); }
.dc-static:hover .dc-title { color: var(--rlm-gold); text-shadow: 0 0 14px rgba(245,197,66,0.4), 0 2px 12px rgba(0,0,0,0.6); }
.dc-static:hover .dc-sub { color: rgba(245,216,140,0.88); }
.dc-static:hover .dc-desc { color: rgba(240,229,202,0.92); }
/* the hover cue — quiet dots under the title, gone once the caption is open */
.dc-static .dc-content::after {
  content: '···'; display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .22em; line-height: 1; color: rgba(190,208,235,0.45);
  margin-top: 6px; max-height: 12px; overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease, margin .3s ease;
}
.dc-static:hover .dc-content::after { max-height: 0; opacity: 0; margin-top: 0; }
/* touch / no-hover devices can't reveal — keep the caption visible, no dots */
@media (hover: none) {
  .dc-static .dc-sub  { max-height: 34px;  margin-bottom: 3px; opacity: 1; transform: none; }
  .dc-static .dc-desc { max-height: 130px; margin-top: 5px;   opacity: 1; transform: none; }
  .dc-static .dc-content::after { display: none; }
}

/* faint luminous rim lives on the BUTTON — .dc-inner's clip-path would clip
   any shadow painted there (that's why the glow never showed) */
.dc-card {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4;
  padding: 0; border: none; background: none; color: inherit; text-align: left;
  border-radius: 16px; overflow: hidden; cursor: pointer;
  perspective: 1000px; outline: none;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.38),
    0 0 18px rgba(120,180,255,0.22),
    0 0 42px rgba(110,170,255,0.14);
  transition: box-shadow .3s ease;
}
.dc-card.dc-kind-c {
  box-shadow:
    0 10px 24px rgba(0,0,0,0.38),
    0 0 18px rgba(245,197,66,0.20),
    0 0 44px rgba(245,197,66,0.12);
}
.dc-card.dc-hover {
  box-shadow:
    0 22px 46px rgba(0,0,0,0.52),
    0 0 26px rgba(130,190,255,0.34),
    0 0 64px rgba(110,170,255,0.20);
}
.dc-card.dc-kind-c.dc-hover {
  box-shadow:
    0 22px 46px rgba(0,0,0,0.52),
    0 0 26px rgba(245,197,66,0.34),
    0 0 66px rgba(245,197,66,0.2);
}
.dc-card:focus-visible { box-shadow: 0 0 0 3px rgba(24,176,245,0.55); }
.dc-inner {
  position: relative; width: 100%; height: 100%;
  background: #101a30; border-radius: 16px;
  transform-style: preserve-3d; backface-visibility: hidden; will-change: transform;
  clip-path: inset(0 round 16px);
}
.dc-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 16px; }
.dc-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transform: scale(1.3); backface-visibility: hidden;
}
.dc-spot {
  position: absolute; inset: 0; z-index: 20; pointer-events: none;
  mix-blend-mode: soft-light; filter: blur(2px);
  opacity: 0; transition: opacity .3s ease;
}
.dc-badge {
  position: absolute; top: 13px; left: 13px; z-index: 40;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .16em;
  color: #e9eff8; background: rgba(9, 15, 30, 0.72);
  border: 1px solid rgba(233,239,248,0.4); border-radius: 6px; padding: 5px 9px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.dc-kind-c .dc-badge {
  color: var(--rlm-gold); border-color: rgba(245,197,66,0.6);
  text-shadow: 0 0 10px rgba(245,197,66,0.45);
}
.dc-content {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(4,8,18,0.9), rgba(4,8,18,0.42) 46%, transparent);
  border-radius: 16px;
}
.dc-content { padding: 16px; }
.dc-title {
  font-family: var(--font-pixel); font-size: 10px; font-weight: 400; line-height: 1.55;
  letter-spacing: .02em; color: #fff; margin-bottom: 7px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  transform: translateY(8px); opacity: .94;
  transition: transform .5s ease, opacity .5s ease;
}
.dc-sub {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .13em; text-transform: uppercase;
  line-height: 1.75; color: rgba(190,208,235,0.78); margin-bottom: 3px;
  transform: translateY(8px);
  transition: transform .5s ease;
}
.dc-desc {
  font-family: var(--font-sans); font-size: 11.5px; line-height: 1.5;
  color: rgba(225,234,248,0.85); margin-top: 5px;
  opacity: 0; transform: translateY(10px);
  transition: transform .5s ease .07s, opacity .5s ease .07s;
}
/* hover — the caption block warms to gold */
.dc-card.dc-hover .dc-title, .dc-card.dc-hover .dc-sub { transform: translateY(0); opacity: 1; }
.dc-card.dc-hover .dc-desc { transform: translateY(0); opacity: 1; }
.dc-title, .dc-sub, .dc-desc { transition-property: transform, opacity, color, text-shadow; }
.dc-card.dc-hover .dc-title {
  color: var(--rlm-gold);
  text-shadow: 0 0 14px rgba(245,197,66,0.45), 0 2px 12px rgba(0,0,0,0.6);
}
.dc-card.dc-hover .dc-sub { color: rgba(245,216,140,0.88); }
.dc-card.dc-hover .dc-desc { color: rgba(240,229,202,0.92); }
@media (prefers-reduced-motion: reduce) {
  .dc-title, .dc-sub, .dc-desc { transform: none; opacity: 1; }
  .dc-bg { transform: none; }
}

/* ── empty state (no matches) ── */
.rlm-body #wallet-empty-state .empty-line1 { color: var(--rlm-text); }
.rlm-body #wallet-empty-state .empty-line2 { color: var(--rlm-dim); }

/* ── detail view — the page left, the star's record right ──
   Same sky as the home view (transparent over the warp field), and a silky
   push transition: home slides back-left while the detail glides in from
   the right — one continuous move, not a cut. */
.rlm-body #action-detail-view {
  background: transparent;
  display: block;
  opacity: 0; pointer-events: none;
  transform: translateX(46px) scale(0.988);
  transition: opacity .36s ease, transform .46s cubic-bezier(.22,.8,.3,1);
}
.rlm-body #action-detail-view.visible {
  opacity: 1; pointer-events: auto;
  transform: translateX(0) scale(1);
}
.rlm-body #wallet-view {
  transition: opacity .32s ease, transform .42s cubic-bezier(.3,.7,.3,1);
}
body.rlm-detail-open #wallet-view {
  opacity: 0; pointer-events: none;
  transform: translateX(-34px) scale(0.992);
}
.rlm-body #detail-back-btn {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em;
  color: var(--rlm-blue-soft); background: rgba(12,20,38,0.62);
  border: 1px solid rgba(120,170,230,0.3); border-radius: 10px; padding: 10px 16px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.rlm-body #detail-back-btn:hover { border-color: rgba(130,185,255,0.6); background: rgba(16,28,52,0.8); }

/* two equal halves — the page frame left matches the open info flow right */
#rlm-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; max-width: 1240px; margin: 14px auto 70px; align-items: start;
}
@media (max-width: 980px) { #rlm-detail { grid-template-columns: 1fr; gap: 34px; } .rlm-d-left { max-width: 560px; } }

.rlm-frame-shell {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(120,170,230,0.34);
  background: #0a1322;
  box-shadow: 0 18px 48px rgba(0,0,0,0.5), 0 0 36px rgba(24,176,245,0.10);
}
#rlm-frame {
  position: absolute; top: 0; left: 0; width: 556px; height: 556px;
  border: none; transform-origin: 0 0; display: block; background: #0a1322;
}
.rlm-frame-cap {
  margin-top: 11px; font-family: var(--font-mono); font-size: 8.5px;
  letter-spacing: .2em; color: var(--rlm-dim); text-transform: uppercase;
}

/* Full Screen + Broadcast under the page — the Stations share pair, dark skin */
.rlm-frame-actions { display: flex; gap: 8px; margin-top: 12px; }
.rlm-frame-actions .home-st-share-btn {
  flex: 1; padding: 10px 8px; cursor: pointer; border-radius: 0; white-space: nowrap;
  font-family: var(--font-pixel); font-size: 7px; letter-spacing: .04em; line-height: 1;
  background: rgba(120,162,220,0.12); color: #dce8f7;
  border: 2px solid rgba(120,162,220,0.42); box-shadow: 0 3px 0 rgba(8,18,40,0.6);
  transition: transform .1s, box-shadow .1s;
  clip-path: polygon(0 3px,3px 3px,3px 0,calc(100% - 3px) 0,calc(100% - 3px) 3px,100% 3px,100% calc(100% - 3px),calc(100% - 3px) calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,3px calc(100% - 3px),0 calc(100% - 3px));
}
.rlm-frame-actions .home-st-share-btn:active { transform: translateY(3px); box-shadow: 0 0 0 rgba(8,18,40,0.6); }
.rlm-frame-actions .home-st-share-cast {
  background: linear-gradient(180deg, #f5c542, #e0a040); color: #2a1c06;
  border-color: #b9831f; box-shadow: 0 3px 0 #8f6416;
}
.rlm-frame-actions .home-st-share-cast:active { box-shadow: 0 0 0 #8f6416; }

/* FULL SCREEN — the page fills the screen (fake-fullscreen, no chrome) */
#rlm-lightbox {
  position: fixed; inset: 0; z-index: 600; display: none;
  align-items: center; justify-content: center;
  background: #04070d;
}
#rlm-lightbox.visible { display: flex; }
#rlm-lb-shell { position: relative; overflow: hidden; background: #04070d; }
#rlm-lb-frame {
  position: absolute; top: 0; left: 0; width: 556px; height: 556px;
  border: none; transform-origin: 0 0; display: block; background: #04070d;
}
#rlm-lb-close {
  position: fixed; top: 18px; right: 22px; z-index: 610; cursor: pointer;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .16em;
  color: #dce8f7; background: rgba(12,20,38,0.62); border: 1px solid rgba(120,170,230,0.3);
  border-radius: 999px; padding: 9px 14px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s, background .2s;
}
#rlm-lb-close:hover { border-color: rgba(130,185,255,0.6); background: rgba(16,28,52,0.8); }

/* ── on-chain identity layer — a corner orb (chat-widget position: read as
   platform UI on any full-bleed page). Open = scrim + the page steps back +
   a glass card blooms from the corner. ── */
.nfs-scrim {
  position: fixed; inset: 0; z-index: 602;
  background: rgba(2,5,10,0.55);
  opacity: 0; pointer-events: none; transition: opacity .32s ease;
}
#rlm-lightbox.nfs-open .nfs-scrim { opacity: 1; pointer-events: auto; }
#rlm-lb-shell { transition: transform .38s ease, filter .38s ease; }
#rlm-lightbox.nfs-open #rlm-lb-shell { transform: scale(0.965); filter: brightness(0.62) saturate(0.92); }
.nfs-dock { position: fixed; right: 22px; bottom: 22px; z-index: 612; }
/* the orb — ghost-glass at rest (all idle motion stays INSIDE the circle);
   solid on hover / while the card is open */
.nfs-orb {
  position: relative; width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 34% 28%, rgba(46,70,116,0.42), rgba(8,14,28,0.38) 72%);
  border: 1px solid rgba(150,195,255,0.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.07);
  transition: transform .22s, border-color .25s, background .25s, box-shadow .25s;
}
.nfs-orb::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 16px rgba(245,197,66,0.22);
  animation: nfsInnerBreath 3.6s ease-in-out infinite;
}
.nfs-orb:hover, .nfs-dock.open .nfs-orb {
  background: radial-gradient(circle at 34% 28%, rgba(46,70,116,0.92), rgba(8,14,28,0.9) 72%);
  border-color: rgba(175,212,255,0.6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.nfs-orb:hover { transform: translateY(-2px) scale(1.04); }
.nfs-orb-ic {
  color: #ffd969; font-size: 19px; line-height: 1; text-shadow: 0 0 10px rgba(245,197,66,0.8);
  animation: nfsIcTwinkle 3.2s ease-in-out infinite;
}
.nfs-orb-badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,197,66,0.92); color: #1a1206;
  font-family: var(--font-pixel); font-size: 7px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}
@keyframes nfsInnerBreath { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes nfsIcTwinkle {
  0%, 100% { opacity: .62; transform: scale(.93); }
  50%      { opacity: 1; transform: scale(1.08); }
}
/* hover tag — the full identity at a glance, still small */
.nfs-orb-tag {
  position: absolute; right: 64px; bottom: 2px; transform: translateX(6px);
  opacity: 0; pointer-events: none;
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 13px; border-radius: 12px;
  background: rgba(8,14,28,0.74); border: 1px solid rgba(130,180,240,0.28);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  transition: opacity .2s, transform .2s;
}
.nfs-dock:not(.open) .nfs-orb:hover ~ .nfs-orb-tag { opacity: 1; transform: none; }
.nfs-tag-row { font-family: var(--font-pixel); font-size: 7px; letter-spacing: .12em; color: #dce8f7; white-space: nowrap; }
.nfs-tag-gold { color: var(--rlm-gold); }
.nfs-tag-cs { color: var(--rlm-gold); text-shadow: 0 0 8px rgba(245,197,66,0.45); }
.nfs-tag-pl { color: #7fc3ff; text-shadow: 0 0 8px rgba(91,170,255,0.4); }
/* the glass card — gradient hairline border + top inner highlight */
.nfs-card {
  position: absolute; right: 0; bottom: 68px; overflow: hidden;
  width: min(480px, calc(100vw - 44px)); padding: 8px 22px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(12,19,38,0.72), rgba(6,10,22,0.84));
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transform-origin: 100% 100%;
  transition: opacity .28s ease, transform .3s cubic-bezier(.2,.9,.3,1.18);
}
.nfs-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.07) 45%, rgba(245,197,66,0.10) 52%, transparent 66%);
  transform: translateX(-130%);
}
.nfs-dock.open .nfs-card::after { animation: nfsSheen 1.1s ease .18s forwards; }
@keyframes nfsSheen { to { transform: translateX(130%); } }
.nfs-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(170,210,255,0.5), rgba(245,197,66,0.26) 45%, rgba(120,150,210,0.10));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.nfs-dock.open .nfs-card { opacity: 1; transform: none; pointer-events: auto; }
.nfs-sec {
  position: relative; padding: 14px 0;
  display: flex; flex-direction: column; gap: 9px;
}
/* distinct dividers — gradient hairline (no text), drawn in on open */
.nfs-sec + .nfs-sec::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170,200,250,0.32) 18%, rgba(245,197,66,0.42) 50%, rgba(170,200,250,0.32) 82%, transparent);
}
.nfs-dock.open .nfs-sec + .nfs-sec::before { animation: nfsDivGrow .7s ease .2s both; }
@keyframes nfsDivGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* micro-motion when the card opens: sections drift in staggered,
   the constellation line draws itself, stars pop in, halos pulse */
.nfs-dock.open .nfs-sec { animation: nfsSecIn .45s cubic-bezier(.2,.8,.3,1) both; }
.nfs-dock.open .nfs-sec:nth-child(2) { animation-delay: .07s; }
.nfs-dock.open .nfs-sec:nth-child(3) { animation-delay: .14s; }
.nfs-dock.open .nfs-sec:nth-child(4) { animation-delay: .2s; }
@keyframes nfsSecIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.nfs-sky polyline { stroke-dasharray: 1; stroke-dashoffset: 1; }
.nfs-dock.open .nfs-sky polyline { animation: nfsLineDraw 1.4s ease .25s forwards; }
@keyframes nfsLineDraw { to { stroke-dashoffset: 0; } }
.nfs-dock.open .nfs-sky circle { animation: nfsHalo 3.2s ease-in-out infinite; }
@keyframes nfsHalo { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.nfs-stamps { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nfs-stamp { font-family: var(--font-pixel); font-size: 8px; letter-spacing: .14em; color: rgba(233,239,248,0.88); }
.nfs-verify {
  font-family: var(--font-pixel); font-size: 7px; letter-spacing: .14em;
  color: var(--rlm-blue-soft); text-decoration: none;
  border-bottom: 1px dashed rgba(127,195,255,0.5); padding-bottom: 1px;
}
.nfs-verify:hover { color: #fff; border-bottom-color: #fff; }
/* the arc star map — kind lives on each star: gold = C//, blue = station */
.nfs-sky { width: 100%; height: auto; display: block; }
.nfs-sg {
  font-size: 9px;
  -webkit-user-select: none; user-select: none; cursor: pointer;
  transform-box: fill-box; transform-origin: center;
}
.nfs-sg-cs { fill: rgba(245,197,66,0.5); }
.nfs-sg-pl { fill: rgba(127,195,255,0.5); }
/* hover → twinkle in place (no size jump); beats the open-state twinkle */
.nfs-sg:hover, .nfs-dock.open .nfs-sg:hover { animation: nfsFlash .5s ease-in-out infinite; }
@keyframes nfsFlash {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 5px rgba(255,240,200,0.95)); }
  50%      { opacity: .3; filter: drop-shadow(0 0 1px rgba(255,240,200,0.3)); }
}
.nfs-sg-lit { font-size: 12px; }
.nfs-sg-lit.nfs-sg-cs { fill: #ffe9a8; filter: drop-shadow(0 0 4px rgba(245,197,66,0.9)); }
.nfs-sg-lit.nfs-sg-pl { fill: #bfe3ff; filter: drop-shadow(0 0 4px rgba(91,170,255,0.9)); }
.nfs-sg-yours { font-size: 13.5px; }
.nfs-dock.open .nfs-sg {
  animation: nfsPopIn .5s cubic-bezier(.2,.9,.3,1.5) backwards, nfsTwinkle 3.4s ease-in-out infinite;
}
.nfs-dock.open .nfs-sg-burst {
  animation: nfsBurst .9s cubic-bezier(.2,.9,.3,1.4), nfsTwinkle 3.4s ease-in-out infinite;
}
.nfs-sg-more {
  font-size: 8px; fill: rgba(245,197,66,0.55); font-family: var(--font-mono);
  -webkit-user-select: none; user-select: none;
}
@keyframes nfsPopIn { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes nfsTwinkle { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }
@keyframes nfsBurst {
  0%   { transform: scale(0.3); }
  45%  { transform: scale(2.2); }
  100% { transform: scale(1); }
}
/* the emphasized numbers — pixel numerals, counted up on open */
.nfs-stats { display: flex; align-items: flex-end; gap: 22px; }
.nfs-stat { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.nfs-stat b { font-family: var(--font-pixel); font-size: 14px; font-weight: 400; color: #e7eefb; line-height: 1; }
.nfs-stat i { font-style: normal; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .16em; color: var(--rlm-dim); }
.nfs-stat-cs b { color: var(--rlm-gold); text-shadow: 0 0 10px rgba(245,197,66,0.4); }
.nfs-stat-pl b { color: #7fc3ff; text-shadow: 0 0 10px rgba(91,170,255,0.35); }
.nfs-stat-lit b { color: #ffe9a8; text-shadow: 0 0 10px rgba(245,197,66,0.4); }
.nfs-sub {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em;
  font-style: italic; color: var(--rlm-dim);
  margin-left: auto; align-self: flex-end; padding-bottom: 1px;
}
/* words from the holders — each line signed */
.nfs-words-h { font-family: var(--font-pixel); font-size: 7px; letter-spacing: .18em; color: #c9a85f; }
.nfs-echo { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5; color: rgba(233,239,248,0.85); }
.nfs-echo i { font-style: normal; font-size: 8px; letter-spacing: .1em; color: var(--rlm-dim); margin-left: 8px; }
.nfs-echo em { font-style: normal; color: #f5d88c; }
.nfs-acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* the two recipient actions — each its own clearly-separated block */
.nfs-act-h { font-family: var(--font-pixel); font-size: 7px; letter-spacing: .18em; color: #c9a85f; margin-bottom: 10px; }
.nfs-actsec, .nfs-linesec { display: flex; flex-direction: column; align-items: flex-start; }
.nfs-linewrap { display: inline-flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(120,170,230,0.32); padding-bottom: 4px; }
.nfs-linesec .nfs-linewrap { width: 100%; max-width: 440px; }
.nfs-linewrap input { flex: 1; width: auto; min-width: 0; background: none; border: none; outline: none; font-family: var(--font-mono); font-size: 11px; color: var(--rlm-text); }
.nfs-linewrap input::placeholder { color: rgba(143,163,192,0.5); }
.nfs-linewrap button { background: none; border: none; color: var(--rlm-blue-soft); font-size: 13px; cursor: pointer; padding: 0 2px; }
.nfs-sent { font-family: var(--font-mono); font-size: 10px; color: rgba(245,216,140,0.85); }
/* hover affordance on the received page — appears over the page itself */
.nfs-peek {
  position: absolute; top: 50%; left: 50%; z-index: 5; cursor: pointer;
  transform: translate(-50%,-50%) scale(.96); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: .1em; color: #fff;
  background: rgba(4,8,16,0.78); border: 1px solid rgba(255,255,255,0.30); border-radius: 12px;
  padding: 13px 18px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: opacity .2s, transform .2s, border-color .2s;
}
.rlm-frame-shell:hover .nfs-peek {
  opacity: 1; transform: translate(-50%,-50%) scale(1); pointer-events: auto;
}
.nfs-peek:hover { border-color: #fff; }

/* the record reads as an OPEN flow — translucent breath, no frame */
.rlm-d-right {
  background: linear-gradient(180deg, rgba(13,22,42,0.34), rgba(13,22,42,0.10) 72%, transparent);
  border: none; border-radius: 22px;
  padding: 18px 30px 30px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: none;
}
.rlm-d-kind { font-family: var(--font-pixel); font-size: 10px; letter-spacing: .1em; margin-bottom: 16px; }
.rlm-k-c { color: var(--rlm-gold); text-shadow: 0 0 14px rgba(245,197,66,0.5); }
.rlm-k-std { color: #e9eff8; }
.rlm-d-name { font-family: var(--font-pixel); font-size: 17px; font-weight: 400; line-height: 1.5; letter-spacing: .01em; color: #fff; margin: 2px 0 13px; text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.rlm-d-host { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; line-height: 1.7; color: var(--rlm-dim); }
.rlm-d-desc { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.62; color: #c9d6ea; margin: 0 0 14px; }
.rlm-d-cast {
  font-family: var(--font-sans); font-size: 12px; line-height: 1.55; color: #efe2bd;
  border-left: 2px solid rgba(245,197,66,0.55); padding: 2px 0 2px 11px; margin-bottom: 4px;
}
/* Standard panels keep a single white accent — gold stays C//-only */
.rlm-d-cast.rlm-cast-std { color: #e9eff8; border-left-color: rgba(233,239,248,0.55); }

.rlm-d-sec {
  font-family: var(--font-pixel); font-size: 7px; letter-spacing: .26em;
  color: rgba(140,170,215,0.6); text-transform: uppercase;
  margin: 36px 0 16px; padding-top: 22px; border-top: 1px solid rgba(120,170,230,0.13);
}
.rlm-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 6.5px 0; align-items: baseline; }
.rlm-row-l { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .14em; color: rgba(143,163,192,0.75); }
.rlm-row-v { font-family: var(--font-sans); font-size: 12.5px; color: #dfe9f8; }
.rlm-mono { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; }

/* C// mission — a gold SECTION, not a box-in-box: gold divider + label, content in panel flow */
.rlm-d-sec.rlm-sec-gold {
  color: var(--rlm-gold); text-shadow: 0 0 12px rgba(245,197,66,0.4);
  border-top-color: rgba(245,197,66,0.32);
}
.rlm-m-lead { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.7; color: #efe6cf; }
.rlm-m-cell { display: flex; gap: 14px; margin-top: 24px; align-items: flex-start; }
.rlm-m-ico { font-size: 14px; line-height: 1.2; flex-shrink: 0; width: 17px; text-align: center; }
.rlm-m-voice .rlm-m-ico { color: #5fc9d8; text-shadow: 0 0 10px rgba(95,201,216,0.5); }
.rlm-m-tree  .rlm-m-ico { color: #5fd8ae; text-shadow: 0 0 10px rgba(95,216,174,0.5); }
.rlm-m-t { font-family: var(--font-sans); font-size: 13.5px; font-weight: 700; color: #fff; }
.rlm-m-s { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .05em; line-height: 1.7; color: var(--rlm-dim); margin-top: 6px; }
.rlm-m-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .14em;
  color: var(--rlm-gold); text-decoration: none;
  border: 1px solid rgba(245,197,66,0.45); border-radius: 8px; padding: 7px 11px;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.rlm-m-link:hover {
  background: linear-gradient(180deg, var(--rlm-gold), var(--rlm-gold-deep));
  color: #2a1c04; border-color: var(--rlm-gold); box-shadow: 0 0 16px rgba(245,197,66,0.4);
}
.rlm-m-drop { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: rgba(245,197,66,0.78); margin-top: 26px; }

.rlm-std-note {
  margin-top: 34px; font-family: var(--font-sans); font-size: 12.5px; line-height: 1.75; color: #e9eff8;
  border-left: 2px solid rgba(233,239,248,0.6); padding: 4px 0 4px 14px;
}

.rlm-d-links { display: flex; gap: 9px; flex-wrap: wrap; }
.rlm-d-links a {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--rlm-blue-soft); text-decoration: none;
  border: 1px solid rgba(120,170,230,0.34); border-radius: 8px; padding: 8px 12px;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.rlm-d-links a:hover { background: var(--rlm-blue); border-color: var(--rlm-blue); color: #0a1322; box-shadow: 0 0 16px rgba(24,176,245,0.4); }

/* ── claim modal — reskinned to the rebuild spec (glass panel, mono fields, gold confirm) ── */
.rlm-body .claim-modal-overlay {
  background: rgba(4, 7, 13, 0.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rlm-body .claim-modal-inner {
  background: linear-gradient(180deg, rgba(11,18,34,0.97), rgba(6,10,20,0.98));
  border: 1px solid rgba(120,170,230,0.26); border-radius: 16px;
  -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: 0 24px 70px rgba(0,0,0,0.6), 0 0 40px rgba(24,176,245,0.08);
  padding: 30px 32px;
}
.rlm-body .claim-modal-inner::before { display: none; }
.rlm-body .claim-close { color: rgba(170,195,230,0.55); font-size: 17px; }
.rlm-body .claim-close:hover { color: #fff; }
.rlm-body .claim-title {
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: .1em;
  color: var(--rlm-text); text-shadow: 0 0 14px rgba(24,176,245,0.3);
}
.rlm-body .claim-desc { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.6; color: #c9d6ea; }
.rlm-body .claim-label {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .18em; color: rgba(143,163,192,0.75);
}
.rlm-body .claim-input {
  font-family: var(--font-mono); font-size: 12px; color: var(--rlm-text);
  background: rgba(8, 14, 28, 0.6); border: 1px solid rgba(120,170,230,0.24); border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s;
}
.rlm-body .claim-input:focus { outline: none; border-color: rgba(24,176,245,0.6); box-shadow: 0 0 0 3px rgba(24,176,245,0.12); }
.rlm-body .claim-confirm-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px 18px; border: 2px solid #6e4a13; border-radius: 0; cursor: pointer;
  background: linear-gradient(180deg, #d49636, #b07a1e); color: #fff5e6;
  font-family: var(--font-pixel); font-size: 8px; letter-spacing: .07em;
  box-shadow: 0 4px 0 #6e4a13, inset 0 2px 0 rgba(255,255,255,0.22);
  transition: transform .12s, box-shadow .12s;
  clip-path: polygon(0 4px,4px 4px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px));
}
.rlm-body .claim-confirm-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 #6e4a13, inset 0 2px 0 rgba(255,255,255,0.22); }
.rlm-body .claim-confirm-btn:active { transform: translateY(4px); box-shadow: 0 0 0 #6e4a13, inset 0 2px 0 rgba(255,255,255,0.18); }
.rlm-body .claim-note { font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; line-height: 1.7; color: rgba(143,163,192,0.6); }
.rlm-body .claim-error { font-family: var(--font-mono); font-size: 10px; }

/* ── awaiting state — a beacon listening for the first cast ── */
#rlm-await { padding: 46px 0 30px; text-align: center; }
.rlm-await-scope {
  position: relative; width: 240px; height: 240px; margin: 0 auto 30px;
}
.rlm-await-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(127,195,255,0.5);
  opacity: 0; transform: scale(0.24);
  animation: rlmAwaitPulse 4.2s cubic-bezier(.2,.6,.36,1) infinite;
}
.rlm-await-ring.r2 { animation-delay: 1.4s; }
.rlm-await-ring.r3 { animation-delay: 2.8s; }
@keyframes rlmAwaitPulse {
  0%   { opacity: 0;   transform: scale(0.24); }
  12%  { opacity: .85; }
  100% { opacity: 0;   transform: scale(1); }
}
.rlm-await-orbit {
  position: absolute; inset: 34px; border-radius: 50%;
  border: 1px dashed rgba(120,170,230,0.18);
  animation: rlmAwaitSpin 14s linear infinite;
}
.rlm-await-sat {
  position: absolute; top: -3px; left: 50%; margin-left: -3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rlm-blue);
  box-shadow: 0 0 10px rgba(24,176,245,0.9), 0 0 22px rgba(24,176,245,0.45);
}
@keyframes rlmAwaitSpin { to { transform: rotate(360deg); } }
.rlm-await-star {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 34px; color: var(--rlm-gold);
  text-shadow: 0 0 18px rgba(245,197,66,0.75), 0 0 44px rgba(245,197,66,0.35);
  animation: rlmAwaitBreathe 3.2s ease-in-out infinite;
}
@keyframes rlmAwaitBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    text-shadow: 0 0 18px rgba(245,197,66,0.75), 0 0 44px rgba(245,197,66,0.35); }
  50%      { transform: translate(-50%, -50%) scale(1.14); text-shadow: 0 0 26px rgba(245,197,66,0.95), 0 0 60px rgba(245,197,66,0.5); }
}
.rlm-await-title {
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: .12em;
  color: var(--rlm-gold); text-shadow: 0 0 16px rgba(245,197,66,0.4);
  margin-bottom: 12px;
}
.rlm-await-sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--rlm-dim); max-width: 480px; margin: 0 auto; line-height: 1.8;
}
@media (prefers-reduced-motion: reduce) {
  .rlm-await-ring, .rlm-await-orbit, .rlm-await-star { animation: none; }
  .rlm-await-ring { opacity: .3; transform: scale(0.7); }
}

/* ════════════════════════════════════════════════════════════════════════════
   SKY MODE — the immersive default. Stars hang in open space (first received
   = nearest), golden-angle spread with per-load jitter; clicking sails the
   star to the front before the detail opens. Grid mode stays one icon away.
   ════════════════════════════════════════════════════════════════════════════ */

/* mini status + view toggles — the quiet top-left corner */
#rlm-topleft { position: fixed; top: 23px; left: 22px; z-index: 419; display: flex; align-items: center; }
/* ── merged identity pill — ✦ N [navistars] · NAME'S REALM ──
   One quiet pill: count + (hover-expanding) label + the sky's signature.
   Hover the name → a pen appears; click → in-place underline input
   (Enter/blur saves, Esc cancels). Still, small, precise. */
#rlm-id {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border-radius: 999px; background: rgba(12,20,38,0.38); border: 1px solid rgba(120,170,230,0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}
.rlm-id-star { color: var(--rlm-gold); font-size: 10px; text-shadow: 0 0 10px rgba(245,197,66,0.5); }
#rlm-st-n { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #fff; }
/* the label slides out on hover — N becomes "N NAVISTARS" */
.rlm-id-lbl {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; margin: 0;
  font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--rlm-dim);
  transition: max-width .35s ease, opacity .25s ease;
}
#rlm-id:hover .rlm-id-lbl { max-width: 90px; opacity: 1; }
.rlm-id-sep { width: 1px; height: 12px; background: rgba(120,170,230,0.3); flex-shrink: 0; }
.rlm-id-name {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .1em;
  color: rgba(245,216,140,0.7); text-transform: uppercase; line-height: 1;
  transition: color .2s ease;
}
.rlm-id-name:hover { color: #f5d88c; }
.rlm-name-edit { font-size: 12px; line-height: 1; opacity: 0; transition: opacity .2s ease; color: rgba(245,216,140,0.75); }
.rlm-id-name:hover .rlm-name-edit { opacity: .9; }
/* unnamed — a soft breathing invitation (direct entry, nobody cast you yet) */
#rlm-id.rlm-unnamed .rlm-id-name { color: rgba(245,197,66,0.5); animation: rlmNameAsk 3.4s ease-in-out infinite; }
#rlm-id.rlm-unnamed .rlm-name-edit { opacity: .7; }
@keyframes rlmNameAsk { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #rlm-id.rlm-unnamed .rlm-id-name { animation: none; } }
#rlm-name-input {
  width: 120px; background: none; border: none; outline: none;
  border-bottom: 1px solid rgba(245,197,66,0.5); padding: 1px 2px 3px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  color: var(--rlm-text);
}
#rlm-name-input::placeholder { color: rgba(245,216,140,0.35); }
/* faint functional hint below the pill — bare ghost text, no box; it just
   names what the pill is (count = NaviStars received; the name edits in place).
   Sits above sky/grid content (z) so nothing covers it; fades in only on hover. */
.rlm-id-tip {
  position: absolute; top: calc(100% + 6px); left: 4px; z-index: 5;
  white-space: nowrap; pointer-events: none;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .05em;
  color: rgba(200,216,240,0.42); text-shadow: 0 1px 5px rgba(0,0,0,0.75);
  opacity: 0; transform: translateY(-3px);
  transition: opacity .25s ease, transform .25s ease;
}
#rlm-id:hover ~ .rlm-id-tip { opacity: 1; transform: translateY(0); }
/* while renaming, the prompt is redundant — hold it back */
#rlm-topleft:has(#rlm-name-input:not([hidden])) .rlm-id-tip { opacity: 0 !important; }
/* view toggles — centered, on the same line as the corner pills (centers at y≈38) */
#rlm-modes {
  position: fixed; top: 23px; left: 50%; transform: translateX(-50%); z-index: 421;
  display: inline-flex; gap: 5px;
}
body.ncp-nav-open #rlm-modes,
body.rlm-detail-open #rlm-modes { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
#rlm-modes button {
  width: 30px; height: 30px; border-radius: 999px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12,20,38,0.38); border: 1px solid rgba(120,170,230,0.16);
  color: var(--rlm-dim); font-size: 13px; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
#rlm-modes button:hover { color: #dce8f7; border-color: rgba(130,185,255,0.45); }
#rlm-modes button.active {
  color: #0a1322; background: var(--rlm-blue); border-color: var(--rlm-blue);
  box-shadow: 0 0 10px rgba(24,176,245,0.32);
}

/* mode visibility */
.rlm-mode-sky #rlm-controls,
.rlm-mode-sky #rlm-stagewrap,
.rlm-mode-sky #wallet-empty-state { display: none !important; }
.rlm-mode-grid #rlm-skywrap { display: none !important; }
/* the grid scroller is vertical-only. #wallet-view sets overflow-y:auto, which
   silently promotes overflow-x to `auto` too — that phantom horizontal axis is
   what lets the page drift left/right on touch AND what makes a drag started on
   a card stall (iOS can't tell if you mean to scroll x or y). Clip x dead. */
.rlm-mode-grid#wallet-view, .rlm-mode-grid #wallet-view { overflow-x: hidden; overscroll-behavior: contain; }
/* grid: the whole browse block starts a breath below the fixed top pills,
   and the cards keep their own distance from the search/filter row */
.rlm-mode-grid #rlm-controls { margin-top: 44px; }
.rlm-mode-grid #rlm-stagewrap { margin-top: 18px; }

/* the sky viewport — full bleed, one screen tall */
#rlm-skywrap {
  align-self: stretch; max-width: none !important;
  margin: -64px -32px 0; height: 100vh; min-height: 540px;
  position: relative; overflow: hidden; flex-shrink: 0;
  perspective: 1400px;
}
#rlm-sky {
  position: absolute; inset: 0;
  transform-style: preserve-3d; will-change: transform;
  pointer-events: none;                 /* same Chrome 3D hit fix as the grid */
}
#rlm-sky .dc-card, #rlm-sky .rlm-skydot { pointer-events: auto; }

.rlm-star {
  position: absolute; width: 230px;
  transform: translate(-50%, -50%) translateZ(var(--sz, 0px));
  transform-style: preserve-3d;
}
.rlm-skydot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  transform: translate(-50%, -50%) translateZ(var(--sz, 0px));
  background: #cfe2ff;
  box-shadow: 0 0 10px rgba(160,200,255,0.9), 0 0 26px rgba(120,180,255,0.5);
}
.rlm-skydot.rlm-dot-c {
  background: var(--rlm-gold);
  box-shadow: 0 0 10px rgba(245,197,66,0.9), 0 0 26px rgba(245,197,66,0.5);
}


/* the corner yields to the back button while a detail is open */
#rlm-topleft { transition: opacity .25s ease; }
/* nav drawer open: the pill floats ABOVE the backdrop (z 419 > 405) — without
   this it keeps swallowing taps, so closing the menu near the corner starts a
   rename instead. Hide it like the claim pill. */
body.ncp-nav-open #rlm-topleft,
body.rlm-detail-open #rlm-topleft { opacity: 0; pointer-events: none; transition: opacity .25s ease; }

/* hover → the status pill says the whole sentence */

/* grid view — smaller cards (the functional, filterable view) */
.rlm-body #nft-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 182px)); gap: 18px; }
#nft-grid .dc-content { padding: 12px; }
#nft-grid .dc-title { font-size: 8.5px; margin-bottom: 5px; }
#nft-grid .dc-sub { font-size: 7px; }
#nft-grid .dc-desc { font-size: 10px; margin-top: 4px; }
#nft-grid .dc-badge { font-size: 8px; padding: 4px 7px; top: 10px; left: 10px; }


/* grid + controls stretch edge to edge (the 1180 cap stays for the detail/footer) */
.rlm-body #wallet-view > #rlm-stagewrap,
.rlm-body #wallet-view > #rlm-controls { max-width: none; align-self: stretch; }
#rlm-controls { justify-content: flex-start; }
#rlm-controls .rlm-search-wrap { margin-right: auto; }

/* sky mode toggle — the chosen sky is GOLD; grid stays blue */
#rlm-modes #rlm-mode-sky.active {
  color: #2a1c04; background: linear-gradient(180deg, var(--rlm-gold), var(--rlm-gold-deep));
  border-color: var(--rlm-gold); box-shadow: 0 0 10px rgba(245,197,66,0.35);
}

/* claim pill — smaller and lighter, matching the top-left status */
#rlm-claim-pill .cc-claim-btn {
  height: 28px; padding: 0 10px;
  font-size: 8.5px; font-weight: 400; letter-spacing: .12em;
}
#rlm-claim-pill .rlm-cp-ico { font-size: 9px; }
#rlm-claim-pill .rlm-cp-sep { height: 10px; margin: 0 8px; }
#rlm-claim-pill #cc-addr-chip { height: 28px; padding: 0 11px; font-size: 9.5px; }

/* ── sky guide — a little gold mouse, center field; gone on first drag/scroll ── */
#rlm-skyhint {
  position: absolute; left: 50%; top: 54%; z-index: 6;
  transform: translate(-50%, -50%);
  pointer-events: none; opacity: .85;
  transition: opacity .4s ease;
}
#rlm-skyhint.rlm-sh-out { opacity: 0; }
.rlm-sh-mouse {
  display: block; width: 26px; height: 40px;
  border: 2px solid var(--rlm-gold); border-radius: 13px;
  box-shadow: 0 0 16px rgba(245,197,66,0.3), inset 0 0 8px rgba(245,197,66,0.12);
  position: relative;
}
.rlm-sh-wheel {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 2px;
  background: var(--rlm-gold);
  box-shadow: 0 0 8px rgba(245,197,66,0.7);
  animation: rlmWheel 1.7s ease-in-out infinite;
}
@keyframes rlmWheel {
  0%, 100% { top: 7px; opacity: 1; }
  55%      { top: 19px; opacity: .55; }
}
@media (prefers-reduced-motion: reduce) { .rlm-sh-wheel { animation: none; } }

/* drag-to-pan cursor */
#rlm-skywrap { cursor: grab; user-select: none; touch-action: none; }
#rlm-skywrap.rlm-dragging { cursor: grabbing; }
#rlm-skywrap.rlm-dragging .dc-card { cursor: grabbing; }

/* status hover — the sentence floats ABOVE in quiet gold; nothing shifts */

/* cards never select text — a stray selection after the detail swallowed the wheel */
.dc-card, .dc-card * { -webkit-user-select: none; user-select: none; }

/* ── sky mode = exactly one screen, no page scroll (immersive) ──
   grid mode keeps its normal vertical scroll through the cards. */
.rlm-mode-sky#wallet-view, .rlm-mode-sky #wallet-view { overflow: hidden; }
#wallet-view.rlm-mode-sky { overflow: hidden; padding-bottom: 0; overscroll-behavior: none; }
.rlm-mode-sky .rlm-footer { display: none; }   /* footer lives in grid mode */

/* sky-mode invite — centered at the very bottom. A faint, un-clickable question
   above the actual link; the link reads clearly but stays quiet (grid keeps the
   full footer; nav/detail layers take over). */
#rlm-sky-make { display: none; }
.rlm-mode-sky #rlm-sky-make {
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: max-content;
  position: fixed; left: 50%; bottom: 15px; transform: translateX(-50%); z-index: 418;
  pointer-events: none;   /* only the link re-enables clicks */
  transition: opacity .3s ease;
}
.rlm-skm-q {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(200,216,240,0.20);
}
.rlm-skm-link {
  display: inline-flex; align-items: center; gap: 6px; pointer-events: auto;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(210,224,245,0.52); text-decoration: none; white-space: nowrap;
  padding: 4px 10px; transition: color .3s ease;
}
.rlm-skm-link:hover { color: rgba(245,216,140,0.95); }
.rlm-skm-arr { transition: transform .3s ease; }
.rlm-skm-link:hover .rlm-skm-arr { transform: translateX(4px); }
body.ncp-nav-open #rlm-sky-make,
body.rlm-detail-open #rlm-sky-make { opacity: 0; pointer-events: none; }

/* (the touch ⌖ recenter pill was retired with single-finger pan — the phone
   sky is pinch-only now, and a pinch walks back out by itself) */

/* ════════════════════════════════════════════════════════════════════════════
   NEW-ARRIVAL glow + toast · EMPTY SKY (glitch text + sparse 3D points)
   ════════════════════════════════════════════════════════════════════════════ */

/* the newest star (sky front / grid top-left) breathes a gold halo */
.dc-card.rlm-new { animation: rlmNewPulse 2.2s ease-in-out infinite; border-radius: 16px; }
@keyframes rlmNewPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,0.38), 0 0 0 1px rgba(245,197,66,0.55), 0 0 22px rgba(245,197,66,0.30); }
  50%      { box-shadow: 0 12px 30px rgba(0,0,0,0.42), 0 0 0 2px rgba(245,197,66,0.85), 0 0 40px rgba(245,197,66,0.55); }
}
.dc-card.rlm-new::after {
  content: 'NEW'; position: absolute; top: 11px; right: 11px; z-index: 42;
  font-family: var(--font-pixel); font-size: 6.5px; letter-spacing: .1em; color: #2a1c04;
  background: linear-gradient(180deg, var(--rlm-gold), var(--rlm-gold-deep));
  padding: 4px 6px; border-radius: 5px; box-shadow: 0 0 12px rgba(245,197,66,0.6);
}
@media (prefers-reduced-motion: reduce) { .dc-card.rlm-new { animation: none; } }

/* new-arrival toast — top-center, just under the mode toggles */
#rlm-newtoast {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%) translateY(-14px);
  z-index: 430; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, rgba(34,27,9,0.72), rgba(20,16,6,0.72));
  border: 1px solid rgba(245,197,66,0.40);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.4), inset 0 1px 0 rgba(245,197,66,0.18), 0 0 18px rgba(245,197,66,0.16);
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.3,.8,.3,1);
}
#rlm-newtoast.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.rlm-nt-star {
  color: var(--rlm-gold); font-size: 12px; line-height: 1; flex-shrink: 0;
  text-shadow: 0 0 10px rgba(245,197,66,0.7); animation: rlmNtGlow 2.6s ease-in-out infinite;
}
@keyframes rlmNtGlow { 0%,100% { text-shadow: 0 0 8px rgba(245,197,66,0.6); } 50% { text-shadow: 0 0 14px rgba(245,197,66,0.95); } }
.rlm-nt-txt {
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .01em; color: #fbf1d8; white-space: nowrap;
}

/* ── empty sky — sparse faint 3D points + a floating glitch title ── */
#rlm-await {
  position: fixed; inset: 0; z-index: 101; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.rlm-await-stars { position: absolute; inset: 0; pointer-events: none; }
.rlm-aw-dot {
  position: absolute; border-radius: 50%; background: #cfe6ff;
  box-shadow: 0 0 6px rgba(160,210,255,0.7);
  animation: rlmAwTwinkle 5s ease-in-out infinite;
}
@keyframes rlmAwTwinkle { 0%,100% { opacity: inherit; } 50% { opacity: .08; } }
.rlm-await-core { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.rlm-await-sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--rlm-dim); max-width: 460px; margin: 18px auto 0; line-height: 1.8;
}

/* glitch title — gold, homepage-style RGB-split jitter, not too large */
.rlm-await-glitch {
  position: relative; display: inline-block;
  font-family: var(--font-pixel); font-size: 17px; letter-spacing: .06em;
  color: var(--rlm-gold); text-shadow: 0 0 18px rgba(245,197,66,0.45);
  animation: rlmFloat 6s ease-in-out infinite;
}
.rlm-await-glitch::before, .rlm-await-glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%;
  opacity: 0.55; pointer-events: none;
}
.rlm-await-glitch::before { color: #5fd8ae; animation: rlmGlitchA 2.6s steps(2,end) infinite; }
.rlm-await-glitch::after  { color: #18B0F5; animation: rlmGlitchB 3.1s steps(2,end) infinite; }
@keyframes rlmFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rlmGlitchA {
  0%,92%,100% { transform: translate(0,0); opacity: 0; clip-path: none; }
  93% { transform: translate(-2px,-1px); opacity: .55; clip-path: inset(0 0 62% 0); }
  97% { transform: translate(2px,1px);  opacity: .55; clip-path: inset(58% 0 0 0); }
}
@keyframes rlmGlitchB {
  0%,90%,100% { transform: translate(0,0); opacity: 0; clip-path: none; }
  91% { transform: translate(2px,1px);  opacity: .5; clip-path: inset(0 0 55% 0); }
  95% { transform: translate(-2px,-1px); opacity: .5; clip-path: inset(50% 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .rlm-await-glitch, .rlm-aw-dot { animation: none; }
  .rlm-await-glitch::before, .rlm-await-glitch::after { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE / TOUCH — additive only; desktop rules above stay untouched.
   ════════════════════════════════════════════════════════════════════════════ */

/* iOS URL-bar-safe viewport height for the sky */
@supports (height: 100dvh) {
  #rlm-skywrap { height: 100dvh; }
}

@media (max-width: 640px) {
  /* iOS zooms the viewport on focus of any sub-16px field — floor every
     text-entry control at 16px (grid search · claim wallet address) */
  #rlm-search, .claim-input, input[type="text"], textarea { font-size: 16px !important; }

  /* the top row: compact status (✦ N) · centered toggles · compact claim (⬡ →) */
  .rlm-id-lbl { display: none; }
  #rlm-id { padding: 0 10px; gap: 5px; }
  .rlm-id-name { font-size: 6.5px; }
  #rlm-claim-pill { right: 64px; }
  #rlm-claim-pill .rlm-cp-label, #rlm-claim-pill .rlm-cp-sep { display: none; }
  #rlm-claim-pill .rlm-cp-arr { margin-left: 5px; }
  #rlm-claim-pill #cc-addr-chip { font-size: 8.5px; padding: 0 9px; }

  /* sky cards sized for small screens — small enough that the field breathes */
  .rlm-star { width: 142px; }

  /* phones: a card shows only its station title (already bottom-anchored).
     host/date + blurb crowd a small screen, so drop them in BOTH sky and grid —
     and the ··· hover cue with them (nothing to reveal here). */
  .dc-sub, .dc-desc, .dc-static .dc-content::after { display: none; }

  /* true full-bleed sky. The base rule pairs width:100% (from the wallet-view
     child rule) with -32px side margins, which only SHIFTS the box left — the
     right edge loses 64px and the whole field reads off-centre on a phone.
     Restore the two margins into the width so the sky spans edge to edge.
     (selector must outrank `.rlm-body #wallet-view > *`) */
  .rlm-body #wallet-view > #rlm-skywrap { width: calc(100% + 64px); }

  /* grid: two comfortable columns */
  .rlm-body #nft-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* controls wrap cleanly */
  #rlm-controls { gap: 7px; }
  .rlm-search-wrap { width: 100%; }
  .rlm-search-wrap:focus-within { width: 100%; }

  /* detail: tighter padding, full-width frame */
  .rlm-body #action-detail-view { padding: 18px 16px 90px; }
  .rlm-d-right { padding: 14px 18px 22px; }
  .rlm-d-name { font-size: 14px; }

  /* footer stacks */
  .rlm-footer { flex-direction: column; align-items: flex-start; gap: 18px; }

  /* identity card hugs the corner closer on phones */
  .nfs-card { bottom: 60px; padding: 6px 16px; }
  .nfs-stats { gap: 16px; }

  /* new-arrival toast fits the narrow row */
  #rlm-newtoast { top: 60px; max-width: calc(100vw - 24px); }
  .rlm-nt-txt { font-size: 11px; }

  /* empty sky title scales down */
  .rlm-await-glitch { font-size: 12px; }
}

/* touch devices: grid mode must pan vertically — be explicit for iOS Safari
   (the sky's touch-action:none lives on #rlm-skywrap, hidden in grid, but
   stubborn devices still need the scroller and its cards to declare pan-y) */
@media (pointer: coarse) {
  #wallet-view.rlm-mode-grid,
  #wallet-view.rlm-mode-grid #rlm-stagewrap,
  #wallet-view.rlm-mode-grid #nft-grid,
  #wallet-view.rlm-mode-grid .dc-card,
  /* a touch that starts on any inner layer of a card must still pan-y —
     otherwise the gesture stalls before the browser commits to a scroll */
  #wallet-view.rlm-mode-grid .dc-card * { touch-action: pan-y; }
  #wallet-view.rlm-mode-grid, #action-detail-view { -webkit-overflow-scrolling: touch; }
  /* tilt is disabled on touch (DepthCard bails early), so the permanent
     will-change layer just burns memory and janks the scroll — drop it */
  .dc-inner { will-change: auto; }
  /* R3: touch CAN rename too (iPad has no hover). The ✎ stays visible as the cue,
     the name is tap-to-edit (JS), and the input is ≥16px so iOS doesn't zoom. */
  .rlm-name-edit { display: inline; opacity: .85; }
  #rlm-name-input { font-size: 16px; }
  .rlm-id-tip { display: none; }
}

/* touch devices: the sky is pinch-only, so the hint is two fingertips
   breathing apart and together along a diagonal — "pinch to travel" */
@media (pointer: coarse) {
  .rlm-sh-mouse { border: none; border-radius: 0; width: 46px; height: 46px; }
  .rlm-sh-wheel { display: none; }
  .rlm-sh-mouse::before, .rlm-sh-mouse::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
    background: rgba(245,216,140,0.92);
    box-shadow: 0 0 12px rgba(245,197,66,0.65);
  }
  .rlm-sh-mouse::before { animation: rlmPinchA 2s ease-in-out infinite; }
  .rlm-sh-mouse::after  { animation: rlmPinchB 2s ease-in-out infinite; }
  @keyframes rlmPinchA {
    0%, 100% { transform: translate(-6px, -6px); opacity: .65; }
    50%      { transform: translate(-16px, -16px); opacity: 1; }
  }
  @keyframes rlmPinchB {
    0%, 100% { transform: translate(6px, 6px); opacity: .65; }
    50%      { transform: translate(16px, 16px); opacity: 1; }
  }
}

/* ── "light your star" — one playful line; the star itself is the button ── */
.nfs-light2 {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: none; padding: 2px 0; cursor: pointer;
}
.nfs-l2-star {
  font-size: 19px; line-height: 1; color: rgba(245,197,66,0.55);
  text-shadow: 0 0 8px rgba(245,197,66,0.3);
  transition: color .25s ease, text-shadow .25s ease, transform .2s ease;
}
.nfs-light2:hover .nfs-l2-star {
  color: var(--rlm-gold);
  text-shadow: 0 0 14px rgba(245,197,66,0.9), 0 0 30px rgba(245,197,66,0.4);
  transform: scale(1.15) rotate(12deg);
}
.nfs-l2-txt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rlm-dim); transition: color .25s ease;
}
.nfs-light2:hover .nfs-l2-txt { color: #f5d88c; }
.nfs-light2.nfs-lit2 { cursor: default; }
.nfs-light2.nfs-lit2 .nfs-l2-star {
  color: #ffe9a8;
  text-shadow: 0 0 12px rgba(245,197,66,1), 0 0 28px rgba(245,197,66,0.55);
  animation: nfsBurst .9s cubic-bezier(.2,.9,.3,1.4);
}
.nfs-light2.nfs-lit2:hover .nfs-l2-star { transform: none; }
.nfs-light2.nfs-lit2 .nfs-l2-txt { color: rgba(245,216,140,0.85); }

/* longer kind label (STATION · C//) — slightly tighter so the strip stays calm */
.nfs-stat-cs i { letter-spacing: .1em; }
.rlm-chip.rlm-chip-c { letter-spacing: .09em; }
