/* Ship Miner — deep-space mining HUD. Phone first (280 → 480 px, a centred column on wide screens), Telegram safe areas.
   Type roles (styling-web-game-typography): Heading / Numeric = Oxanium (one variable latin woff2, OFL, fonts/OFL.txt),
   Info = the system UI font. Motion moves transform / opacity only; reduced motion stops it. */
@font-face { font-family: 'Oxanium'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('/fonts/oxanium-latin.woff2') format('woff2'); }
:root {
  --bg: #03050c; --ink: #eaf2ff; --muted: #a9bad9; --dim: #7d90b5; --cyan: #3be8ff; --violet: #8b6bff; --amber: #ffbf2e; --orange: #ff7a1a; --green: #3ee089;
  --line: rgba(110, 190, 255, .2); --line2: rgba(110, 190, 255, .35);
  --glass: linear-gradient(180deg, rgba(24, 38, 74, .72), rgba(8, 13, 28, .86));
  --head: 'Oxanium', system-ui, sans-serif; --info: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top: max(env(safe-area-inset-top), var(--tg-top, 0px)); --bottom: max(env(safe-area-inset-bottom), var(--tg-bottom, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
body { font: 500 14px/1.35 var(--info); -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { display: block; }
img { display: block; }
[hidden] { display: none !important; }
.num, .stat b, .chip b, .row-right, .kv b, .countdown { font-family: var(--head); font-variant-numeric: tabular-nums; }

.app { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-width: 480px; margin: 0 auto;
  padding-top: var(--top); container-type: size; isolation: isolate; }

/* the sky: a planet rim at the bottom, two nebulae, two star layers sliding forever (transform only) */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(55% 35% at 85% 8%, rgba(139, 107, 255, .28), transparent 70%), radial-gradient(60% 40% at 0% 45%, rgba(59, 232, 255, .12), transparent 70%), linear-gradient(#070b1d, var(--bg) 70%); }
.planet { position: absolute; left: 50%; top: 76%; width: 170vmax; height: 170vmax; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #17305c 0%, #0b1631 22%, #050a17 45%);
  box-shadow: 0 -6px 30px rgba(120, 220, 255, .55), 0 -40px 140px rgba(59, 232, 255, .22); }
.sky i { position: absolute; left: 0; right: 0; top: -100%; height: 200%; will-change: transform; animation: drift 120s linear infinite;
  background-image: radial-gradient(1.2px 1.2px at 20px 30px, #fffa, transparent), radial-gradient(1px 1px at 90px 120px, #fff7, transparent), radial-gradient(1.5px 1.5px at 150px 60px, #bfe9ffaa, transparent);
  background-size: 190px 190px; }
.sky i + i { animation-duration: 70s; background-size: 290px 290px; opacity: .6; }
@keyframes drift { to { transform: translateY(50%); } }

/* the HUD frame: a glass panel with cyan corner brackets */
.card, .stat, .pill, .chip, .pack, .vote, .days div { background: var(--glass); border: 1px solid var(--line); }
.card { position: relative; border-radius: 6px; padding: 12px; }
.card::before, .card::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--cyan); opacity: .8; pointer-events: none; }
.card::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.card::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-h b, .h1, .row-main b, .gate h1 { font-family: var(--head); font-weight: 700; letter-spacing: .04em; }
.card-h b { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: 7px; }
.card-h b::before { content: ""; width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transform: rotate(45deg); }
.card-h small, .card-h > span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* top bar */
.top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 6px; align-items: center; padding: 8px 12px 6px; }
.me { display: flex; align-items: center; gap: 9px; min-width: 0; text-align: left; }
.av { flex: none; width: 36px; height: 40px; display: grid; place-items: center; font: 800 16px var(--head); color: #04121c;
  background: linear-gradient(160deg, var(--cyan), var(--violet)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.who { min-width: 0; display: grid; }
.who b { font: 700 14px var(--head); letter-spacing: .03em; white-space: nowrap; }
.who small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 9px; border-radius: 6px; white-space: nowrap; font-size: 13px; }
.chip small { color: var(--muted); font: 700 9px var(--head); letter-spacing: .1em; }
.chip em { color: var(--green); font: 700 10px var(--head); font-style: normal; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; background: var(--glass); border: 1px solid var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
.logo { width: 1.1em; height: 1.1em; flex: none; }
.si { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; margin-right: .28em; filter: drop-shadow(0 0 4px rgba(59, 232, 255, .35)); }
.chip .si, .pill .si { margin-right: 0; }
.mc-chips b { font: inherit; }
.up-cost { display: inline-flex; align-items: center; margin-left: .5em; padding-left: .5em; border-left: 1px solid rgba(0, 0, 0, .25); }
.up-l { display: grid; justify-items: start; line-height: 1; min-width: 0; }
.up-l small { font: 700 .62em/1.1 var(--head); letter-spacing: .04em; text-transform: none; opacity: .8; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#upBtn { height: 40px; }
.up-cost .si { margin-right: .2em; }
/* the turning 3D coin: two logo faces on a 7-layer hexagon rim; a full turn, then a short rest (the light catches it) */
.coin { --t: .075em; position: relative; display: inline-block; width: 1.25em; height: 1.25em; flex: none; transform-style: preserve-3d; animation: coin-turn 4.8s cubic-bezier(.5, 0, .25, 1) infinite; will-change: transform; }
.coin > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.coin i { clip-path: polygon(50% 6.25%, 87.8% 28.1%, 87.8% 71.9%, 50% 93.75%, 12.2% 71.9%, 12.2% 28.1%); background: linear-gradient(100deg, #1ba8c4, #6b3fd0 55%, #2a1a66); transform: translateZ(calc(var(--t) * (var(--i) - 3) / 3)); }
.coin i:nth-child(1) { --i: 0; } .coin i:nth-child(2) { --i: 1; } .coin i:nth-child(3) { --i: 2; } .coin i:nth-child(4) { --i: 3; }
.coin i:nth-child(5) { --i: 4; } .coin i:nth-child(6) { --i: 5; } .coin i:nth-child(7) { --i: 6; }
.coin .c-front, .coin .c-back { backface-visibility: hidden; filter: drop-shadow(0 0 .14em rgba(59, 232, 255, .55)); }
.coin .c-front { transform: translateZ(calc(var(--t) + .5px)); }
.coin .c-back { transform: rotateY(180deg) translateZ(calc(var(--t) + .5px)); }
.coin.d1 { animation-delay: -1.2s; } .coin.d2 { animation-delay: -2.4s; } .coin.d3 { animation-delay: -3.6s; }
@keyframes coin-turn { 0% { transform: perspective(9em) rotateY(0deg); } 62%, 100% { transform: perspective(9em) rotateY(360deg); } }
.logo.xs { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-right: 3px; }

.main { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 12px 14px; }
.tab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; } /* the column never grows past the screen (owner #85, 280 px) */

/* Ship tab bands (docs/PROTOCOL-LAYOUT.md): daily row → stat cards → balance → the hero ship (the biggest thing) → cards */
.daily { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pill { height: clamp(36px, 5.4cqh, 42px); border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 7px; font: 700 12px var(--head); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; min-width: 0; padding: 0 8px; }
.pill span { overflow: hidden; text-overflow: ellipsis; }
.pill.done .si { opacity: .55; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { border-radius: 6px; padding: clamp(5px, 1.2cqh, 9px) 8px; text-align: center; min-width: 0; }
.stat small { display: block; color: var(--muted); font: 700 9px var(--head); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.stat b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; }
.bal { display: flex; align-items: center; justify-content: center; gap: 8px; font: 800 min(11.5cqw, 6.6cqh) var(--head); line-height: 1.05; margin-top: clamp(0px, 1cqh, 8px);
  text-shadow: 0 0 22px rgba(59, 232, 255, .35); }
.bal .coin { width: .78em; height: .78em; }
.bal-usd { align-self: center; font: 700 13px var(--head); color: var(--green); text-shadow: none; padding: 3px 7px; border-radius: 6px; background: rgba(46, 230, 140, .1); border: 1px solid rgba(46, 230, 140, .35); white-space: nowrap; }
.bal-usd2 { display: none; color: var(--green); }
.kv .usd { color: var(--muted); font-size: 11px; font-weight: 600; }
.num { white-space: nowrap; letter-spacing: -.01em; }
.num .dec { font-size: .46em; color: #7fdcff; font-weight: 600; letter-spacing: 0; opacity: .85; }
.bal-sub { text-align: center; color: var(--muted); font: 700 10px var(--head); letter-spacing: .18em; text-transform: uppercase; margin-top: -4px; }

/* the hero: a hologram pad, the ship's 3D still (first frame) under the live WebGL ship */
/* the two cards (owner 2026-10-24, Monsterland): left = my best ship live in 3D, right = the next free ship, locked */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mcard { position: relative; display: grid; align-content: start; justify-items: center; gap: 6px; padding: 10px 8px; border-radius: 14px; text-align: center; min-width: 0;
  background: linear-gradient(180deg, rgba(30, 48, 92, .78), rgba(8, 13, 28, .92)); border: 1px solid var(--line2); }
.free-card { border-color: rgba(59, 232, 255, .55); box-shadow: 0 0 18px rgba(59, 232, 255, .18), inset 0 0 30px rgba(59, 232, 255, .06); }
.mc-tags { display: flex; justify-content: space-between; width: 100%; gap: 4px; }
.tag { height: 20px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 10px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line); font: 700 9px var(--head); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tag.cls { color: var(--cyan); }
.mc-name { font: 800 16px var(--head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mc-chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.mc-chips span { height: 22px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 11px; font: 700 10px var(--head); white-space: nowrap; background: rgba(255, 191, 46, .12); border: 1px solid rgba(255, 191, 46, .45); color: var(--amber); }
.mc-chips span + span, .mc-foot .mc-chips span { background: rgba(59, 232, 255, .1); border-color: var(--line2); color: var(--cyan); }
.mcard .btn { margin-top: auto; }
/* ‹ › pickers on the duo cards, at the height of the ship */
.cyc { position: absolute; z-index: 3; top: 34%; width: 26px; height: 40px; display: grid; place-items: center; border-radius: 6px; font: 700 22px/1 var(--head); color: var(--cyan);
  background: rgba(8, 13, 28, .55); border: 1px solid var(--line2); }
.cyc.l { left: 4px; } .cyc.r { right: 4px; }
.cyc:active { transform: scale(.92); }
.my-card:not(.multi) .cyc { display: none; }
/* the two cards end on the same lines (owner 2026-10-24 "presisi"): the foot sits at the bottom of both, every row a fixed height */
.duo .mcard { display: flex; flex-direction: column; align-items: center; }
.mc-foot { margin-top: auto; width: 100%; display: grid; grid-template-rows: 24px 22px 36px; gap: 6px; justify-items: center; align-items: center; }
.mc-label { width: 100%; min-width: 0; height: 24px; display: grid; place-items: center; }
.mc-foot .mc-chips { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 4px; }
.mc-foot .btn { margin-top: 0; width: 100%; }
.mc-label .slots { flex-wrap: nowrap; }
.fc-title { font: 800 15px/1.15 var(--head); letter-spacing: .03em; }
.fc-title em { font-style: normal; color: var(--cyan); }
.fc-sub { color: var(--muted); font: 600 11px var(--head); }
.fc-art { position: relative; height: clamp(84px, 15cqh, 150px); aspect-ratio: 1; display: grid; place-items: center; }
.fc-img { width: 100%; height: 100%; object-fit: contain; filter: brightness(.45) saturate(.6) drop-shadow(0 0 12px rgba(59, 232, 255, .35)); }
.fc-art.ready .fc-img { filter: drop-shadow(0 0 16px rgba(255, 191, 46, .55)); animation: bob 3.6s ease-in-out infinite; }
.lock { position: absolute; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(4, 18, 28, .85); border: 2px solid var(--cyan); color: var(--cyan); box-shadow: 0 0 14px rgba(59, 232, 255, .55); }
.lock svg { width: 18px; height: 18px; }
.fc-ship { color: var(--muted); font: 700 10px var(--head); letter-spacing: .08em; text-transform: uppercase; }
.slots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.slots i { width: 22px; height: 22px; border-radius: 50%; border: 1px dashed var(--line2); background: rgba(255, 255, 255, .04); }
.slots i.on { border: 0; background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 0 8px rgba(59, 232, 255, .6); }
.fc-bar { width: 100%; display: grid; gap: 3px; }
.fc-bar small { color: var(--muted); font: 700 10px var(--head); }

.hero { position: relative; width: 100%; height: clamp(100px, 19cqh, 200px); }
.pad { position: absolute; left: 50%; bottom: 2%; width: min(92%, 300px); aspect-ratio: 1; translate: -50% 0; transform: rotateX(74deg); pointer-events: none; }
.pad i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(59, 232, 255, .55); box-shadow: 0 0 24px rgba(59, 232, 255, .45), inset 0 0 40px rgba(59, 232, 255, .25);
  background: radial-gradient(closest-side, rgba(59, 232, 255, .22), transparent); }
.pad i + i { inset: 14%; border: 2px dashed rgba(139, 107, 255, .7); box-shadow: none; background: none; animation: turn 14s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.hero::after { content: ""; position: absolute; left: 50%; bottom: 8%; width: 46%; height: 70%; translate: -50% 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(59, 232, 255, .18), transparent); clip-path: polygon(30% 100%, 70% 100%, 100% 0, 0 0); }
.hero-img, .hero-3d { position: absolute; z-index: 1; top: 0; left: 50%; translate: -50% 0; height: 100%; width: auto; max-width: 100%; aspect-ratio: 1; }
.hero-img { animation: bob 3.6s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); transition: opacity .4s; }
.hero-3d { opacity: 0; transition: opacity .5s; }
.hero.live .hero-3d { opacity: 1; }
.hero.live .hero-img { opacity: 0; }
@keyframes bob { 50% { transform: translateY(-4%); } }
/* the mining loop (owner 2026-10-24: "keluar kabel / capitan, menarik logo $SINE keluar"): a tether + claw drops from the
   ship's belly below the pad, grips a $SINE coin, reels it up into the ship. Both rigs are as tall as the shaft and slide by
   100% of themselves, so claw and coin move together; the shaft clips them at the belly. Transform + opacity only. */
.mine { position: absolute; z-index: 0; left: 50%; top: 50%; width: 30px; height: calc(50% + 3px); translate: -50% 0; overflow: hidden; pointer-events: none; }
.mine .arm, .mine .ore-rig { position: absolute; inset: 0; }
.mine .arm { transform: translateY(-100%); animation: mine-arm 3.4s cubic-bezier(.55, 0, .35, 1) infinite; }
.mine .arm::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 9px; width: 2px; margin-left: -1px; background: linear-gradient(rgba(59, 232, 255, .2), #3be8ff); box-shadow: 0 0 6px rgba(59, 232, 255, .8); }
.mine .claw { position: absolute; left: 50%; bottom: 0; width: 16px; height: 11px; margin-left: -8px; animation: mine-grip 3.4s ease-in-out infinite;
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Cpath d='M5 1h6l1 2H4z' fill='%233be8ff'/%3E%3Cpath d='M4 3 1 9l2 1 3-5M12 3l3 6-2 1-3-5' fill='none' stroke='%23a9f6ff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 3px #3be8ff); }
.mine .ore-rig { animation: mine-ore-rig 3.4s cubic-bezier(.55, 0, .35, 1) infinite; }
.mine .ore { position: absolute; left: 50%; bottom: 0; width: 18px; height: 18px; margin-left: -9px; display: grid; place-items: center; opacity: 0; animation: mine-ore 3.4s ease-out infinite; }
.mine .ore .si { width: 18px; height: 18px; margin: 0; filter: drop-shadow(0 0 6px #3be8ff) drop-shadow(0 0 2px #8b6bff); }
@keyframes mine-arm { 0% { transform: translateY(-100%); } 30%, 40% { transform: translateY(-4px); } 76%, 100% { transform: translateY(-100%); } }
@keyframes mine-grip { 0%, 30% { transform: scaleX(1.18); } 36%, 76% { transform: scaleX(.82); } 90%, 100% { transform: scaleX(1.18); } }
@keyframes mine-ore-rig { 0%, 40% { transform: translateY(0); } 76% { transform: translateY(-100%); } 76.1%, 100% { transform: translateY(0); } }
@keyframes mine-ore { 0%, 16% { opacity: 0; transform: scale(.2) rotate(-40deg); } 30% { opacity: 1; transform: scale(1.15) rotate(0); } 36%, 66% { opacity: 1; transform: scale(1); } 76%, 100% { opacity: 0; transform: scale(.3); } }
.pop { position: absolute; z-index: 2; top: 10%; left: 50%; translate: -50% 0; font: 700 13px var(--head); color: var(--cyan); opacity: 0; white-space: nowrap; text-shadow: 0 0 10px var(--cyan); }
.pop.go { animation: rise 1s ease-out; }
@keyframes rise { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-34px); } }

/* the wall (free players at ship 5) */
.bar { grid-column: 1 / -1; height: 6px; border-radius: 1px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); transform-origin: 0 50%; box-shadow: 0 0 10px rgba(59, 232, 255, .6); }
.wall { grid-column: 1 / -1; margin-top: 4px; padding-top: 9px; border-top: 1px dashed var(--line); }
.wall p { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.wall-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wall-free { font: 600 11px var(--head); color: var(--muted); letter-spacing: .04em; }

/* buttons: an angled amber-orange slab = action; ghost = a framed outline */
.btn { height: 42px; padding: 0 18px; font: 800 14px var(--head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: #1c0d00;
  background: linear-gradient(180deg, #ffd45c, var(--amber) 45%, var(--orange)); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; filter: drop-shadow(0 0 10px rgba(255, 150, 40, .35)); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { filter: grayscale(1) brightness(.55); cursor: default; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 12px; }
.btn.ghost { color: var(--ink); background: linear-gradient(180deg, rgba(59, 232, 255, .16), rgba(59, 232, 255, .04)); box-shadow: inset 0 0 0 1px var(--line2); filter: none; }
.btn.full { width: 100%; }

/* rows (fleet, shop, invite ladder) */
.row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.card-h + .row, .row:first-child, .lead + .row { border-top: 0; }
.row .ship.xs { width: 52px; height: 52px; object-fit: contain; }
.row-main { min-width: 0; display: grid; }
.row-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; text-transform: uppercase; }
.row-main em { color: var(--dim); font-style: normal; font-weight: 600; font-size: 11px; }
.row-main small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.row-right { text-align: right; font-size: 11px; color: var(--muted); white-space: nowrap; }
.row-right b { display: block; font-size: 14px; color: var(--ink); }
.row-right .btn { margin-top: 4px; }
.more { width: 100%; height: 36px; margin-top: 6px; border-radius: 4px; border: 1px dashed var(--line2); color: var(--muted); font: 700 11px var(--head); letter-spacing: .1em; text-transform: uppercase; }

/* tab bar */
/* the nav (owner #84): a glass HUD bar with a lit top edge; every tab = a duotone glyph in a hex pod; the active pod lights up
   (cyan → violet rim, inner glow, a beam above it); Rewards + Social carry a pulsing red ! (always on). Transform / opacity motion only. */
.nav { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 7px 6px calc(5px + var(--bottom));
  background: linear-gradient(180deg, rgba(12, 20, 46, .92), rgba(3, 5, 12, .98)); border-top: 1px solid rgba(59, 232, 255, .16); box-shadow: 0 -10px 24px rgba(0, 0, 0, .45); }
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(59, 232, 255, .7) 18%, rgba(139, 107, 255, .7) 50%, rgba(59, 232, 255, .7) 82%, transparent); }
.nav button { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; height: 56px; min-width: 0; color: var(--dim);
  font: 700 10px var(--head); letter-spacing: .1em; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
.nav .pod { position: relative; display: grid; place-items: center; width: 40px; height: 32px; transition: transform .18s cubic-bezier(.2, .9, .3, 1.3);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: linear-gradient(180deg, rgba(140, 175, 235, .45), rgba(70, 95, 150, .2)); }
.nav .pod::before { content: ""; position: absolute; inset: 1.2px; clip-path: inherit; background: linear-gradient(180deg, #0d1733, #070c1d); }
.nav .pod svg { position: relative; width: 21px; height: 21px; color: var(--muted); }
.nav .pod .g-fill { opacity: .16; }
.nav .nl { white-space: nowrap; }
.nav button:active .pod { transform: scale(.9); }
.nav .is-on { color: var(--ink); }
.nav .is-on .pod { transform: translateY(-2px); background: linear-gradient(135deg, var(--cyan), var(--violet)); filter: drop-shadow(0 0 8px rgba(59, 232, 255, .55)); }
.nav .is-on .pod::before { background: radial-gradient(90% 90% at 50% 100%, rgba(59, 232, 255, .38), rgba(139, 107, 255, .16) 55%, #0b1430 85%); }
.nav .is-on .pod svg { color: #eafcff; filter: drop-shadow(0 0 4px var(--cyan)); }
.nav .is-on .pod .g-fill { opacity: .32; }
.nav .is-on .nl { color: var(--cyan); text-shadow: 0 0 8px rgba(59, 232, 255, .6); }
.nav .is-on::before { content: ""; position: absolute; top: -8px; left: 50%; width: 30px; margin-left: -15px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 12px var(--cyan), 0 6px 14px rgba(59, 232, 255, .35); }
/* the red ! (owner #84: Rewards + Social, always) */
.nav .nb { position: absolute; top: 3px; left: 50%; margin-left: 9px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; z-index: 1;
  color: #fff; font: 900 11px/1 var(--head); font-style: normal; letter-spacing: 0; background: radial-gradient(circle at 35% 30%, #ff7a8a, #ff1f3d 60%, #c30022);
  border: 1.5px solid #070c1d; box-shadow: 0 0 8px rgba(255, 40, 70, .75); }
.nav .nb::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(255, 50, 80, .7); animation: nb-ping 1.8s ease-out infinite; }
@keyframes nb-ping { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nav .nb::after { animation: none; opacity: 0; } .nav .pod { transition: none; } }

/* Shop: the big ship card, the ship strip */
.scard { display: grid; gap: 10px; }
.sc-head { display: grid; justify-items: center; gap: 2px; padding: 8px 10px; border-radius: 8px; background: rgba(59, 232, 255, .05); border: 1px solid var(--line); text-align: center; }
.sc-head small { display: block; color: var(--cyan); font: 700 9px var(--head); letter-spacing: .16em; text-transform: uppercase; }
.sc-head b { display: block; font: 800 26px/1.05 var(--head); letter-spacing: .06em; text-transform: uppercase; }
/* the fleet box under the ship (owner 2026-10-24: "2 box, atas nama center, bawah statistic owned") */
.sc-art { position: relative; height: clamp(130px, 24cqh, 200px); }
.sc-art .pad { bottom: 0; width: min(64%, 220px); }
.sc-img { position: absolute; z-index: 1; top: 0; left: 50%; translate: -50% 0; height: 100%; width: auto; aspect-ratio: 1; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .5)); }
.sc-buy { display: block; }
.sc-buy .qty { flex-wrap: nowrap; } .sc-buy .qty button { flex: 1; }
.qty { display: flex; gap: 4px; flex-wrap: wrap; }
.qty button { min-width: 44px; height: 36px; padding: 0 8px; border-radius: 4px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font: 700 12px var(--head); color: var(--muted); }
.qty button.on { color: #1c0d00; background: linear-gradient(180deg, #ffd45c, var(--amber)); border-color: transparent; }
.sc-price { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.sc-price b { font: 800 18px var(--head); white-space: nowrap; }
.sc-price small { color: var(--muted); font: 600 11px var(--head); white-space: nowrap; }
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: none; width: 64px; height: 76px; border-radius: 6px; background: var(--glass); border: 1px solid var(--line); display: grid; justify-items: center; align-content: center; gap: 0; color: var(--muted); font: 700 10px var(--head); }
.strip button.on { border-color: var(--cyan); color: var(--ink); box-shadow: 0 0 14px rgba(59, 232, 255, .3); }
.st-img { width: 52px; height: 52px; object-fit: contain; }

.sc-need { display: block; text-align: center; color: var(--muted); font: 600 11px var(--head); margin-top: -4px; }
.scard .wall { margin-top: 0; }

/* Shop = $SINE credit: the rate hero, the packs */
.pack { position: relative; justify-items: center; }
.pack .coin { width: 34px; height: 34px; }
.pack.best { border-color: var(--amber); box-shadow: 0 0 16px rgba(255, 191, 46, .25); }
.tag.hot { position: absolute; top: -10px; left: 50%; translate: -50% 0; color: #1c0d00; background: var(--amber); border-color: transparent; }

/* other tabs */
.h1 { font-size: 20px; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; display: flex; align-items: center; gap: 10px; }
.h1::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.lead { color: var(--muted); font-size: 12px; }
.lead b { color: var(--ink); font-family: var(--head); }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pack { border-radius: 6px; padding: 10px; display: grid; gap: 6px; text-align: center; }
.pack b { font: 800 20px var(--head); }
.pack small { color: var(--muted); font: 600 12px var(--head); }
.countdown { color: var(--amber); font-weight: 800; }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 10px; }
.days div { border-radius: 4px; padding: 6px 2px; text-align: center; font: 700 9px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.days b { display: block; color: var(--ink); font: 800 16px var(--head); letter-spacing: 0; }
.days .on { border-color: var(--amber); box-shadow: 0 0 12px rgba(255, 191, 46, .3); }
.days .done b { color: var(--green); }
.ladder .row-right b { color: var(--amber); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 4px 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; font-size: 13px; }
.spark { width: 100%; height: 72px; margin: 6px 0; }
.alloc { display: flex; height: 10px; border-radius: 1px; overflow: hidden; margin: 6px 0 8px; }
.legend { display: grid; gap: 2px; }
.legend .kv i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; transform: rotate(45deg); }
.votes { display: grid; gap: 8px; }
.vote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border-radius: 6px; padding: 8px 10px; }
.vote b { font-family: var(--head); }
.vote.voted { border-color: var(--cyan); box-shadow: 0 0 14px rgba(59, 232, 255, .25); }
.vote .bar { grid-column: 1 / -1; }

/* sheet, toast, gate */
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 20; }
.sheet { position: fixed; left: 50%; bottom: 0; translate: -50% 0; width: min(480px, 100%); z-index: 21; background: #070c1d; border-top: 1px solid var(--line2);
  max-height: calc(100% - var(--top) - 24px); overflow-y: auto; padding: 0 14px calc(14px + var(--bottom)); }
.sheet-h { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 8px; background: #070c1d; font: 700 14px var(--head); letter-spacing: .1em; text-transform: uppercase; }
.toast { --k: var(--cyan); position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 80; display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: min(340px, calc(100% - 32px)); padding: 12px 16px 12px 12px; pointer-events: none; overflow: hidden;
  color: var(--ink); font: 700 13px/1.35 var(--head); letter-spacing: .03em; text-align: left;
  background: linear-gradient(180deg, rgba(14, 26, 58, .96), rgba(5, 10, 26, .97)); border: 1px solid color-mix(in srgb, var(--k) 60%, transparent);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 28px color-mix(in srgb, var(--k) 35%, transparent), inset 0 0 22px color-mix(in srgb, var(--k) 14%, transparent); }
.toast[hidden] { display: none; }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--k); box-shadow: 0 0 12px var(--k); }
.toast::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--k) 30%, transparent) 48%, transparent 62%);
  transform: translateX(-120%); animation: t-scan .9s .25s cubic-bezier(.3, .6, .4, 1) 1 forwards; }
.t-ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: #04101f; font: 900 13px/1 var(--head); font-style: normal;
  background: var(--k); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); filter: drop-shadow(0 0 6px var(--k)); }
.t-ok { --k: var(--green); } .t-err { --k: #ff4d6a; } .t-warn { --k: var(--amber); } .t-info { --k: var(--cyan); }
@keyframes t-scan { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .toast::after { animation: none; } }
.gate { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: var(--bg); }
.gate-ship { width: 200px; height: 200px; animation: bob 3.6s ease-in-out infinite; }
.gate h1 { font-size: 28px; text-transform: uppercase; letter-spacing: .12em; }
.gate p { color: var(--muted); }

/* small phones: numbers stay whole, labels shrink */
@container (max-width: 340px) {
  .top { gap: 4px; padding-inline: 8px; }
  .who small { display: none; }
  .chip { padding: 0 7px; font-size: 12px; }
  .chip.price small, .chip.price em { display: none; }
  .main { padding-inline: 8px; }
  .pill { font-size: 11px; letter-spacing: .03em; }
  .stat b { font-size: 14px; }
  .btn { padding: 0 14px; }
  .row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .row .ship.xs { width: 44px; height: 44px; }
  .sc-head b { font-size: 22px; }
  .duo { gap: 6px; }
  .mcard { padding: 8px 6px; }
  .mc-name { font-size: 14px; }
  .fc-title { font-size: 13px; }
  .slots i { width: 18px; height: 18px; }
  .sc-buy { grid-template-columns: 1fr; }
  .sc-price { justify-content: flex-start; }
  .qty button { flex: 1; }
}
@container (max-width: 300px) { .who b { max-width: 80px; } }

@media (prefers-reduced-motion: reduce) { .sky i, .hero-img, .pad i + i, .gate-ship { animation: none; } .coin { animation-duration: 12s; } .mine * { animation-duration: 7s; } }

/* the $SINE icon makes the duo card buttons and the price chip a little wider: they give way on small phones */
.mcard { grid-template-columns: minmax(0, 1fr); }
@container (max-width: 380px) {
  .chip.price em { display: none; }
  .bal-usd { display: none; } .bal-usd2 { display: block; margin-top: 4px; letter-spacing: .06em; }
  .mcard .btn.sm { padding-inline: 8px; letter-spacing: .03em; }
  .up-cost { margin-left: .35em; padding-left: .35em; }
}
@container (max-width: 320px) { .mc-tags .cls { display: none; } } /* 280 px: the class tag ran 15 px past the card */
/* S12: units left on a ship, the welcome airdrop card */
/* the stock meter (owner #41): gold → orange → red as a real stock drains; a shine runs along the bar, the low levels pulse */
.stock { --c: var(--amber); width: 100%; min-width: 0; display: grid; gap: 4px; margin-top: 4px; }
.stock.warm { --c: var(--orange); } .stock.hot, .stock.out { --c: #ff4d6a; }
.stock-t { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 6px; min-width: 0; }
.stock-t span { color: var(--c); font: 800 10px var(--head); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.stock-t b { color: var(--ink); font: 800 12px var(--head); text-transform: none; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stock-bar { position: relative; height: 7px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.stock-bar i { position: absolute; inset: 0; transform-origin: left; border-radius: inherit; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000), var(--c)); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); }
.stock-bar i::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: stock-shine 2.2s ease-in-out infinite; }
.stock.hot .stock-bar i::after { animation-duration: 1.1s; }
.stock.warm .stock-t span, .stock.hot .stock-t span { animation: stock-pulse 1.4s ease-in-out infinite; }
.stock.hot .stock-t span { animation-duration: .8s; }
.stock.out .stock-bar i::after { animation: none; }
@keyframes stock-shine { 0% { transform: translateX(-110%); } 70%, 100% { transform: translateX(260%); } }
@keyframes stock-pulse { 50% { opacity: .45; } }
.sc-head .stock { width: min(100%, 300px); }
.free-card .stock { margin: 2px 0 0; }
.free-card .stock-t { flex-direction: column; align-items: center; gap: 1px; }
.free-card .stock-t span { font-size: 9px; letter-spacing: .06em; white-space: normal; text-align: center; }
.free-card .stock-t b { font-size: 11px; }
.wcard { margin-bottom: 10px; }
.wcard .lead { margin: 0 0 8px; }

/* the Shop price hero (owner #44): centred, a gold light runs round the rim, the clock ticks, warm under 6 h, hot in the last hour */
.ph { --c: var(--amber); position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 12px 12px; }
.ph.warm { --c: var(--orange); } .ph.hot { --c: #ff4d6a; }
.ph-rim { position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; translate: -50% -50%; z-index: -2; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 62%, color-mix(in srgb, var(--c) 85%, transparent) 80%, transparent 92%); animation: ph-spin 5s linear infinite; }
.ph.hot .ph-rim { animation-duration: 2s; }
.ph-fill { position: absolute; inset: 2px; z-index: -1; border-radius: 5px; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c) 16%, #0a1124), #060a17 70%); }
/* owner #86: a two-part HUD tag — PRESALE LIVE (green, pulsing dot) | STAGE n / 360 (gold, the number large) */
.ph-tag { position: relative; display: inline-flex; align-items: stretch; max-width: 100%; border-radius: 8px; overflow: hidden; white-space: nowrap;
  font: 800 clamp(10px, 3.3vw, 12px)/1 var(--head); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(62, 224, 137, .6); box-shadow: 0 0 16px rgba(62, 224, 137, .28), inset 0 0 12px rgba(62, 224, 137, .12); }
.ph-live { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; color: var(--green); background: linear-gradient(180deg, rgba(62, 224, 137, .2), rgba(62, 224, 137, .06));
  text-shadow: 0 0 8px rgba(62, 224, 137, .6); }
.ph-stage { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px 6px 11px; color: #ffe2a0;
  background: linear-gradient(180deg, rgba(255, 191, 46, .26), rgba(255, 140, 30, .1)); border-left: 1px solid rgba(255, 191, 46, .55); }
.ph-stage b { color: #fff6d8; font-size: 1.45em; letter-spacing: .02em; text-shadow: 0 0 10px rgba(255, 190, 60, .8); }
.ph-stage em { color: #d9b46a; font-style: normal; letter-spacing: .04em; }
.ph-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: stock-pulse 1.2s ease-in-out infinite; }
.ph-coin .coin { width: 62px; height: 62px; margin: 4px 0 2px; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c) 55%, transparent)); }
.ph-lbl { color: var(--muted); font: 700 10px var(--head); letter-spacing: .12em; text-transform: uppercase; }
.ph-amt { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--c); font: 800 clamp(26px, 9vw, 36px)/1 var(--head); letter-spacing: .02em;
  text-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); animation: ph-glow 3s ease-in-out infinite; }
.ph-amt svg { width: .8em; height: .8em; }
.ph-amt em { font-style: normal; font-size: .45em; color: var(--ink); letter-spacing: .08em; }
.ph-up { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 3px 10px; border-radius: 999px; background: rgba(62, 224, 137, .12); border: 1px solid rgba(62, 224, 137, .4);
  color: var(--green); font: 800 11px var(--head); }
.ph-arrow { display: inline-block; font-style: normal; font-size: 10px; animation: ph-up 1.5s cubic-bezier(.3, .7, .4, 1) infinite; }
.ph-cmp { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 6px; color: var(--muted); font: 600 11px var(--head); }
.ph-cmp b { color: var(--ink); font-weight: 800; }
.ph-cmp em { font-style: normal; color: #ff8a5c; font-weight: 800; }
.ph-cd { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 8px; }
.ph-cd > div { min-width: 52px; display: grid; gap: 3px; justify-items: center; padding: 6px 4px 5px; border-radius: 8px; background: rgba(0, 0, 0, .35);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: inset 0 -10px 18px color-mix(in srgb, var(--c) 10%, transparent); }
.ph-cd b { display: block; color: var(--c); font: 800 clamp(20px, 7vw, 26px)/1 var(--head); font-variant-numeric: tabular-nums; }
.ph-cd small { color: var(--dim); font: 700 8px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.ph-cd > i { font-style: normal; color: var(--c); font: 800 20px/1 var(--head); padding-top: 8px; animation: stock-pulse 1s steps(2, jump-none) infinite; }
.ph-cd b.tk { animation: ph-tick .35s cubic-bezier(.2, .9, .3, 1.3); }
.ph.hot .ph-cd b { animation: stock-pulse .8s ease-in-out infinite; }
.ph-cdl { color: var(--muted); font: 700 9px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.ph-day { position: relative; width: 100%; height: 7px; margin-top: 4px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.ph-day i { position: absolute; inset: 0; transform-origin: left; overflow: hidden; border-radius: inherit;
  background: linear-gradient(90deg, #ff4d6a, var(--orange) 45%, var(--amber)); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.ph-day i::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: stock-shine 2.2s ease-in-out infinite; }
.ph-hint { margin: 4px 0 0; color: var(--ink); font: 600 11px/1.35 var(--head); }
@keyframes ph-spin { to { transform: rotate(360deg); } }
@keyframes ph-glow { 50% { text-shadow: 0 0 28px color-mix(in srgb, var(--c) 75%, transparent); } }
@keyframes ph-up { 0% { transform: translateY(3px); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(-3px); opacity: 1; } 100% { transform: translateY(-5px); opacity: 0; } }
@keyframes ph-tick { 0% { transform: translateY(-35%) scale(1.12); opacity: .3; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stock-bar i::after, .stock-t span, .ph-rim, .ph-dot, .ph-amt, .ph-arrow, .ph-cd > i, .ph-cd b, .ph-day i::after { animation: none !important; } }

/* the header price chip (owner #45): the price and "$1 = N SINE" take turns, sliding up, in one cell so the chip never resizes */
.pc-roll { display: grid; overflow: hidden; height: 20px; align-items: center; }
.pc-a, .pc-b { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; animation: pc-a 7s cubic-bezier(.5, 0, .2, 1) infinite; }
.pc-b { animation-name: pc-b; }
.chip .pc-u { color: var(--amber); font: 800 10px var(--head); letter-spacing: .04em; }
@keyframes pc-a { 0%, 42% { transform: translateY(0); opacity: 1; } 50%, 92% { transform: translateY(-110%); opacity: 0; } 92.01% { transform: translateY(110%); } 100% { transform: translateY(0); opacity: 1; } }
@keyframes pc-b { 0%, 42% { transform: translateY(110%); opacity: 0; } 50%, 92% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-110%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pc-a, .pc-b { animation: none; } .pc-b { visibility: hidden; } }

/* the big ship card (owner #46): ‹ › through all 13 ships; the spec panel + the yield track under the ship */
.sc-art .cyc { top: 50%; translate: 0 -50%; width: 32px; height: 52px; font-size: 26px; }
.sp { display: grid; gap: 8px; padding: 10px; border-radius: 8px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(59, 232, 255, .07), rgba(59, 232, 255, .02)); box-shadow: inset 0 1px 0 rgba(59, 232, 255, .12); }
.sp-own { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.sp-own span { color: var(--muted); font: 700 10px var(--head); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.sp-own b { color: var(--ink); font-size: 12px; letter-spacing: .02em; text-transform: none; }
.sp-own b.g { color: var(--green); }
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sp-grid > div { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 3px 7px; min-width: 0; text-align: center; border-radius: 6px;
  background: rgba(3, 8, 20, .55); border: 1px solid var(--line); overflow: hidden; }
.sp-grid > div::before { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.sp-grid small { color: var(--cyan); font: 700 8px var(--head); letter-spacing: .12em; text-transform: uppercase; }
.sp-grid b { color: var(--ink); font: 800 clamp(11px, 3.9vw, 15px)/1.1 var(--head); font-variant-numeric: tabular-nums; }
.sp-grid em { color: var(--muted); font: 600 clamp(9px, 2.9vw, 10px) var(--head); font-style: normal; white-space: nowrap; }
.sp-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 14px; }
.sp-line { position: absolute; left: 16.6%; right: 16.6%; top: 4px; height: 2px; border-radius: 2px; overflow: hidden;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--amber)); opacity: .8; }
.sp-line i { position: absolute; top: 0; left: 0; width: 22%; height: 100%; background: linear-gradient(90deg, transparent, #fff, transparent); animation: sp-run 2.6s ease-in-out infinite; }
.sp-node { position: relative; display: grid; justify-items: center; gap: 2px; min-width: 0; text-align: center; }
.sp-node::before { content: ""; position: absolute; top: -14px; width: 10px; height: 10px; border-radius: 50%; background: #060b18; border: 2px solid var(--cyan); box-shadow: 0 0 8px rgba(59, 232, 255, .7); }
.sp-node + .sp-node::before { border-color: var(--violet); box-shadow: 0 0 8px rgba(139, 107, 255, .7); }
.sp-node.end::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 12px rgba(255, 191, 46, .9); }
.sp-node small { color: var(--dim); font: 700 8px var(--head); letter-spacing: .12em; text-transform: uppercase; }
.sp-node b { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font: 800 clamp(11px, 3.6vw, 14px) var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-node.end b { color: var(--amber); }
.sp-note { text-align: center; color: var(--dim); font: 600 9px var(--head); letter-spacing: .08em; text-transform: uppercase; }
@keyframes sp-run { 0% { transform: translateX(-100%); } 100% { transform: translateX(460%); } }
@media (prefers-reduced-motion: reduce) { .sp-line i { animation: none; display: none; } }

/* the Shop pack picker (owner #48): ‹ tier › over the 2 x 2 packs, the packs slide in from the side they come from */
.pk-nav { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; }
.pk-btn { height: 44px; border-radius: 8px; color: var(--cyan); font: 700 26px/1 var(--head); background: rgba(8, 13, 28, .6); border: 1px solid var(--line2); }
.pk-btn:active { transform: scale(.92); }
.pk-name { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 0; }
.pk-name b { font: 800 16px var(--head); letter-spacing: .12em; text-transform: uppercase; }
.pk-name small { color: var(--amber); font: 700 11px var(--head); letter-spacing: .04em; }
.pk-dots { display: flex; gap: 5px; margin-top: 2px; }
.pk-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line2); }
.pk-dots i.on { width: 16px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.packs.in-r { animation: pk-in-r .32s cubic-bezier(.2, .8, .3, 1); } .packs.in-l { animation: pk-in-l .32s cubic-bezier(.2, .8, .3, 1); }
@keyframes pk-in-r { from { transform: translateX(14%); opacity: 0; } } @keyframes pk-in-l { from { transform: translateX(-14%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .packs.in-r, .packs.in-l { animation: none; } }

/* "How credit works" (owner #49) */
.hw { display: grid; gap: 10px; }
.hw .card-h { margin-bottom: 0; }
.hw-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hw-tile { position: relative; display: grid; gap: 3px; padding: 10px; min-width: 0; border-radius: 8px; overflow: hidden;
  background: linear-gradient(160deg, rgba(59, 232, 255, .09), rgba(3, 8, 20, .6)); border: 1px solid var(--line); }
.hw-tile::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.hw-tile small { color: var(--cyan); font: 700 9px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.hw-tile b { display: flex; align-items: center; gap: 4px; color: var(--ink); font: 800 clamp(16px, 5.6vw, 20px)/1.1 var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hw-tile em { color: var(--muted); font: 600 10px var(--head); font-style: normal; }
.hw-bar { position: relative; height: 4px; margin-top: 4px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.hw-bar i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 8px rgba(59, 232, 255, .6); }
.hw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.hw-steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; }
.hw-steps li + li::before { content: ""; position: absolute; left: 16px; top: -10px; height: 18px; width: 2px; background: linear-gradient(var(--cyan), var(--violet)); opacity: .7; }
.hw-n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--cyan); font: 800 12px var(--head); letter-spacing: .04em;
  background: rgba(59, 232, 255, .08); border: 1px solid rgba(59, 232, 255, .45); box-shadow: 0 0 10px rgba(59, 232, 255, .2), inset 0 0 10px rgba(59, 232, 255, .12); }
.hw-steps b { display: flex; align-items: center; gap: 4px; color: var(--ink); font: 800 13px var(--head); letter-spacing: .04em; }
.hw-steps small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.hw-pay { display: grid; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.hw-pay > small { color: var(--dim); font: 700 9px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.hw-pay > div { display: flex; flex-wrap: wrap; gap: 6px; }
.gi { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; filter: drop-shadow(0 0 4px rgba(47, 159, 248, .45)); }
.hw-pay span .gi, .btn .gi, .pf-rh b .gi { margin-right: 4px; }
.hw-pay span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); font: 700 11px var(--head); background: rgba(255, 255, 255, .03); }
.hw-pay span.on { color: var(--amber); border-color: rgba(255, 191, 46, .55); background: rgba(255, 191, 46, .08); }
.hw-pay em { color: var(--dim); font: 600 10px var(--head); font-style: normal; }
.packs > .pack:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* the buy celebration card (owner #50): centred, over a dim radial, gone after 2.4 s or a tap */
.cele { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(60% 45% at 50% 50%, rgba(59, 232, 255, .18), rgba(2, 4, 10, .72)); }
.cele[hidden] { display: none; }
.cele-card { position: relative; width: min(300px, 100%); display: grid; justify-items: center; gap: 6px; padding: 18px 16px 14px; text-align: center; border-radius: 14px;
  background: linear-gradient(180deg, #0c1834, #060b18); border: 1px solid rgba(59, 232, 255, .55); box-shadow: 0 0 40px rgba(59, 232, 255, .35), inset 0 0 30px rgba(59, 232, 255, .08); }
.cele-ring { position: absolute; left: 50%; top: 40%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; border: 2px solid rgba(255, 191, 46, .8); pointer-events: none; opacity: 0; }
.cele-ring.r2 { border-color: rgba(59, 232, 255, .8); }
.cele-sparks { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; }
.cele-sparks i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff, var(--amber) 55%, transparent 70%); }
.cele-sparks i:nth-child(3n) { background: radial-gradient(circle, #fff, var(--cyan) 55%, transparent 70%); }
.cele-tag { color: var(--amber); font: 800 10px var(--head); letter-spacing: .22em; text-transform: uppercase; }
.cele-art { position: relative; width: 170px; height: 130px; display: grid; place-items: center; }
.cele-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 18px rgba(59, 232, 255, .6)); }
.cele-name { font: 800 24px/1.1 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.cele-earn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; color: var(--green); font: 800 12px var(--head);
  background: rgba(62, 224, 137, .12); border: 1px solid rgba(62, 224, 137, .45); }
.cele-tap { color: var(--dim); font: 600 9px var(--head); font-style: normal; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.sp-ownN, .sp-earn { display: inline-block; }

/* the balance console (owner #51): HUD corners, a faint grid, a slow scan line; the mined balance, then the credit row */
.bcon { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 2px; padding: clamp(6px, 1.2cqh, 10px) 12px clamp(6px, 1cqh, 9px); border-radius: 8px;
  border: 1px solid rgba(59, 232, 255, .22);
  background: linear-gradient(180deg, rgba(59, 232, 255, .07), rgba(3, 8, 20, .55)),
    repeating-linear-gradient(90deg, rgba(59, 232, 255, .05) 0 1px, transparent 1px 22px), repeating-linear-gradient(0deg, rgba(59, 232, 255, .04) 0 1px, transparent 1px 22px); }
.bc-k { position: absolute; width: 12px; height: 12px; border: 2px solid var(--cyan); opacity: .9; pointer-events: none; }
.bc-k.tl { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.bc-k.tr { right: -1px; top: -1px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.bc-k.bl { left: -1px; bottom: -1px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.bc-k.br { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.bc-scan { position: absolute; left: 0; right: 0; top: 0; height: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(59, 232, 255, .1), transparent); animation: bc-scan 4.5s linear infinite; }
@keyframes bc-scan { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.bcon .bal { margin-top: 0; }
.bcon .bal-sub { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 0; }
.bc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: stock-pulse 1.2s ease-in-out infinite; }
.bc-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 7px; border-top: 1px dashed rgba(59, 232, 255, .25); }
.bc-what { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 6px; min-width: 0; margin-right: auto; text-align: left; }
.bc-what { color: var(--ink); font: 800 10px var(--head); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.bc-what small { grid-column: 2; color: var(--dim); font: 600 9px var(--head); letter-spacing: .06em; text-transform: none; }
.bc-what .bc-dot { grid-row: 1 / span 2; }
.bc-row .bal-usd2 { margin: 0; font: 700 11px var(--head); white-space: nowrap; }
.bc-lbl { display: inline-flex; align-items: center; gap: 5px; color: var(--cyan); font: 700 9px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.bc-lbl svg, .bc-lbl .logo { width: 16px; height: 16px; }
.bc-credit b { color: var(--amber); font: 800 15px var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-credit small { color: var(--muted); font: 600 10px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-top { height: 26px; padding: 0 10px; border-radius: 6px; color: var(--amber); font: 800 10px var(--head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: rgba(255, 191, 46, .1); border: 1px solid rgba(255, 191, 46, .5); }
.bc-top:active { transform: scale(.95); }
@media (prefers-reduced-motion: reduce) { .bc-scan, .bc-dot { animation: none; } }
.bc-row { min-width: 0; }
.bc-row .bc-top { flex: none; padding: 0 9px; }
@media (max-width: 300px) { .bc-row .bal-usd2 { display: none; } }

/* owner #54: one row */
.bc-one { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.bc-one > .coin { width: clamp(34px, 11cqw, 48px); height: clamp(34px, 11cqw, 48px); }
.bc-mid { display: grid; gap: 1px; min-width: 0; text-align: left; }
.bc-one .bc-what { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 800 9px var(--head); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; margin: 0; }
.bc-one .bal { justify-content: flex-start; margin: 0; font-size: calc(clamp(22px, 8.4cqw, 38px) * var(--fit, 1)); }
.bc-usd { color: var(--green); font: 700 10px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-one .bc-top { height: 34px; padding: 0 12px; }
/* owner #55: the decimals as big as the whole number (one size, one colour) */
.bc-one .num .dec { font-size: 1em; color: inherit; font-weight: inherit; opacity: 1; letter-spacing: -.01em; }
/* owner #56: Total owned, highlighted under the tags of my ship card */
.mc-owned { display: flex; align-items: baseline; justify-content: center; gap: 6px; width: 100%; margin-top: 6px; padding: 4px 8px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 191, 46, .04), rgba(255, 191, 46, .16), rgba(255, 191, 46, .04)); border: 1px solid rgba(255, 191, 46, .45); box-shadow: 0 0 12px rgba(255, 191, 46, .15); }
.mc-owned small { color: var(--amber); font: 800 9px var(--head); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.mc-owned b { color: #fff; font: 800 15px/1 var(--head); font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(255, 191, 46, .6); }

/* the hangar doors between tabs (owner #57-#59): the brand plate lives on the doors, centred on the seam */
.hg { position: fixed; z-index: 25; overflow: hidden; pointer-events: auto; }
.hg[hidden] { display: none; }
.hg-d { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; transform: translateX(-101%); will-change: transform;
  background: radial-gradient(60% 40% at 100% 50%, rgba(59, 232, 255, .12), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%, rgba(0, 0, 0, .3)),
    repeating-linear-gradient(0deg, rgba(59, 232, 255, .07) 0 1px, transparent 1px 46px), linear-gradient(90deg, #0a1326, #152240 70%, #0e1a33); }
.hg-d.l { left: 0; box-shadow: inset -2px 0 0 rgba(59, 232, 255, .75); }
.hg-d.r { right: 0; transform: translateX(101%); box-shadow: inset 2px 0 0 rgba(59, 232, 255, .75);
  background: radial-gradient(60% 40% at 0% 50%, rgba(59, 232, 255, .12), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%, rgba(0, 0, 0, .3)),
    repeating-linear-gradient(0deg, rgba(59, 232, 255, .07) 0 1px, transparent 1px 46px), linear-gradient(270deg, #0a1326, #152240 70%, #0e1a33); }
.hg-b { position: absolute; top: 50%; width: var(--bw, 100vw); transform: translateY(-50%); opacity: .45; display: grid; justify-items: center; gap: 8px; white-space: nowrap; pointer-events: none; }
.hg-d.l .hg-b { right: calc(var(--bw, 100vw) / -2); } .hg-d.r .hg-b { left: calc(var(--bw, 100vw) / -2); }
.hg-ring { position: absolute; left: 50%; top: 4px; width: 110px; height: 110px; margin-left: -55px; border-radius: 50%; border: 2px solid rgba(59, 232, 255, .8); opacity: 0; }
.hg-em { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(59, 232, 255, .22), transparent 70%); }
.hg-em .hg-svg { width: 74px; height: 74px; filter: drop-shadow(0 0 14px rgba(59, 232, 255, .85)); }
.hg-name { font: 800 clamp(24px, 9vw, 36px)/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 0 #bdeeff, 0 2px 0 #6cc6ec, 0 3px 0 #3a8fb9, 0 4px 0 #22607f, 0 5px 0 #143b52, 0 8px 14px rgba(0, 0, 0, .7), 0 0 26px rgba(59, 232, 255, .75); }
.hg-tk { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font: 800 clamp(15px, 5vw, 20px)/1 var(--head); letter-spacing: .12em; }
.hg-tk em { font-style: normal; text-shadow: 0 0 14px rgba(255, 191, 46, .6); }
.hg-svg.sm { width: 1.5em; height: 1.5em; }
.hg-line { width: min(260px, 80%); height: 2px; transform-origin: center; background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), var(--cyan), transparent); }
.hg-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; opacity: 0; transform-origin: top;
  background: linear-gradient(180deg, transparent, #fff, var(--cyan), transparent); box-shadow: 0 0 14px var(--cyan); }

/* owner #61: door depth — a bright bevel on the meeting edge, rivet rows, the spark canvas over everything */
.hg-d::before { content: ""; position: absolute; top: 0; bottom: 0; width: 22px; pointer-events: none;
  background: radial-gradient(circle, rgba(170, 200, 255, .35) 1.6px, transparent 2.2px) 0 0 / 22px 34px repeat-y; opacity: .8; }
.hg-d.l::before { left: 8px; } .hg-d.r::before { right: 8px; }
.hg-d.l { box-shadow: inset -2px 0 0 rgba(160, 240, 255, .45), inset -10px 0 14px rgba(59, 232, 255, .18), inset 2px 0 0 rgba(0, 0, 0, .6); }
.hg-d.r { box-shadow: inset 2px 0 0 rgba(160, 240, 255, .45), inset 10px 0 14px rgba(59, 232, 255, .18), inset -2px 0 0 rgba(0, 0, 0, .6); }
.hg-b { will-change: transform, opacity; }
.hg-shine { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); }

/* owner #63-#65: the tapes — straight, a recessed steel channel in the doors' own navy with a bevel (lit top edge, dark
   lower lip), cyan chevron rails, the "$SINE | $SINE" text engraved and lit from inside; printed on both doors like the plate */
.hg-tapes { position: absolute; top: 0; bottom: 0; width: var(--bw, 100vw); pointer-events: none; }
.hg-d.l .hg-tapes { right: calc(var(--bw, 100vw) / -2); } .hg-d.r .hg-tapes { left: calc(var(--bw, 100vw) / -2); }
.hg-tape { position: absolute; left: 0; width: 100%; height: 30px; overflow: hidden; display: flex; align-items: center;
  background: linear-gradient(180deg, #24365c 0%, #142242 18%, #0a1430 52%, #070f24 64%, #13213f 100%);
  border-top: 1px solid rgba(170, 225, 255, .45); border-bottom: 1px solid rgba(0, 0, 0, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -3px 6px rgba(0, 0, 0, .65), inset 0 8px 10px -6px rgba(59, 232, 255, .18),
    0 1px 0 rgba(59, 232, 255, .35), 0 -1px 0 rgba(0, 0, 0, .6), 0 7px 14px rgba(0, 0, 0, .6); }
.hg-tape::before, .hg-tape::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; opacity: .55;
  background: repeating-linear-gradient(135deg, rgba(59, 232, 255, .8) 0 5px, transparent 5px 11px); }
.hg-tape::before { top: 2px; } .hg-tape::after { bottom: 2px; }
.hg-tape.a { top: 14px; } .hg-tape.b { bottom: 14px; }
.hg-tape-in { display: flex; flex: none; white-space: nowrap; will-change: transform; }
.hg-tape-in span { display: inline-flex; align-items: center; }
.hg-tape .tp { display: inline-flex; align-items: center; gap: 5px; font: 800 12px/1 var(--head); font-style: normal; letter-spacing: .14em; color: #8eeeff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .9), 0 -1px 0 rgba(255, 255, 255, .08), 0 0 8px rgba(59, 232, 255, .55); }
.hg-tape .tp .si { width: 15px; height: 15px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .8)) drop-shadow(0 0 4px rgba(59, 232, 255, .6)); }
.hg-tape .tp-sep { margin: 0 14px; color: rgba(255, 191, 46, .85); font: 800 13px/1 var(--head); text-shadow: 0 1px 0 rgba(0, 0, 0, .9), 0 0 6px rgba(255, 191, 46, .5); }
.hg-tape.b .hg-tape-in { flex-direction: row-reverse; }
/* owner #67: where the doors lead */
.hg-to { margin-top: 6px; color: var(--muted); font: 700 10px var(--head); letter-spacing: .26em; text-transform: uppercase; }
.hg-dest { color: var(--amber); font: 800 clamp(26px, 9.5vw, 38px)/1 var(--head); letter-spacing: .22em; text-transform: uppercase;
  text-shadow: 0 1px 0 #ffe7a6, 0 2px 0 #c98a14, 0 3px 0 #7a520a, 0 6px 12px rgba(0, 0, 0, .7), 0 0 22px rgba(255, 191, 46, .55); }
/* owner #68: the price inside the Buy button */
.sc-go { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sc-gp { display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; border-left: 1px solid rgba(28, 13, 0, .35); font-style: normal; }
.sc-gp b { font: 800 16px var(--head); }
.sc-gp small { font: 700 11px var(--head); opacity: .7; text-transform: none; letter-spacing: 0; }
.sc-gp .si { width: 16px; height: 16px; }

/* ===== owner #69: HUD chips + one-line notes, everywhere text used to be loose ===== */
.hc { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 4px; white-space: nowrap; font: 700 9px/1 var(--head); font-style: normal;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); background: rgba(59, 232, 255, .08); border: 1px solid rgba(59, 232, 255, .35); }
.hc .si { width: 11px; height: 11px; }
.hc.amber { color: var(--amber); background: rgba(255, 191, 46, .08); border-color: rgba(255, 191, 46, .45); }
.hc.warn { color: #ff9a6b; background: rgba(255, 122, 58, .1); border-color: rgba(255, 122, 58, .45); }
.card-h small, .card-h > span { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 4px; white-space: nowrap;
  color: var(--cyan); font: 700 9px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; background: rgba(59, 232, 255, .08); border: 1px solid rgba(59, 232, 255, .35); }
.card-h small .si { width: 11px; height: 11px; }
.hn { position: relative; display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 7px 10px 7px 12px; min-width: 0; border-radius: 6px;
  background: linear-gradient(90deg, rgba(59, 232, 255, .1), rgba(59, 232, 255, .02)); border: 1px solid rgba(59, 232, 255, .18); }
.hn::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.hn > i { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; font: 800 10px/1 var(--head); font-style: normal; color: var(--cyan); background: rgba(59, 232, 255, .12); }
.hn > span { min-width: 0; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font: 600 clamp(10px, 3.2vw, 12px)/1.2 var(--head); letter-spacing: .02em; }
.hn b { color: #fff; } .hn .si { width: 13px; height: 13px; }
.hn.warn { background: linear-gradient(90deg, rgba(255, 122, 58, .12), rgba(255, 122, 58, .02)); border-color: rgba(255, 122, 58, .3); }
.hn.warn::before { background: #ff8a4c; box-shadow: 0 0 8px #ff8a4c; } .hn.warn > i { color: #ff9a6b; background: rgba(255, 122, 58, .14); } .hn.warn b { color: var(--amber); }
.hn.good { background: linear-gradient(90deg, rgba(62, 224, 137, .12), rgba(62, 224, 137, .02)); border-color: rgba(62, 224, 137, .3); }
.hn.good::before { background: var(--green); box-shadow: 0 0 8px var(--green); } .hn.good > i { color: var(--green); background: rgba(62, 224, 137, .14); } .hn.good b { color: var(--green); }
/* tiles (the Token tab's numbers, like the ship spec panel) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles > div { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 3px 7px; min-width: 0; text-align: center; border-radius: 6px;
  background: rgba(3, 8, 20, .55); border: 1px solid var(--line); overflow: hidden; }
.tiles > div::before { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.tiles small { color: var(--cyan); font: 700 8px var(--head); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.tiles b { color: var(--ink); font: 800 clamp(12px, 4.2vw, 16px)/1.1 var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tiles b.g { color: var(--green); }
.tiles em { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font: 600 9px var(--head); font-style: normal; white-space: nowrap; }
.tiles em .si { width: 10px; height: 10px; }
/* the places: header meta, ship card tags, free card, spec labels, shop hero, packs, ladder rows */
.who small { display: flex; gap: 4px; margin-top: 3px; } .who small .hc { height: 16px; padding: 0 5px; font-size: 8px; }
.sc-tags { display: flex !important; gap: 4px; justify-content: center; }
.fc-sub.hc { margin-top: 4px; height: 20px; font-size: 9px; }
.sp-own { align-items: center; }
.sp-own > span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 4px; background: rgba(3, 8, 20, .5); border: 1px solid var(--line); }
.sp-node small { padding: 2px 6px; border-radius: 4px; background: rgba(3, 8, 20, .5); border: 1px solid var(--line); color: var(--muted); }
.sp .hn { justify-content: center; margin-top: 2px; }
.ph-lbl.hc, .ph-cdl.hc { margin-top: 2px; }
.ph-cmp { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 6px; padding: 5px 8px; border-radius: 6px; background: rgba(3, 8, 20, .5); border: 1px solid var(--line); white-space: nowrap; }
.ph-cmp b { font: 800 12px var(--head); color: var(--ink); }
.ph-cd small { color: var(--cyan) !important; font-size: 8px !important; }
.ph .hn { width: 100%; justify-content: center; }
.pack small.hc { justify-self: center; }
.row-main small { display: flex; gap: 4px; flex-wrap: nowrap; margin-top: 3px; }
.hw-tile em.hc { justify-self: start; }
.hw-steps small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-pay em.hc { justify-self: start; color: var(--muted); border-color: var(--line); background: rgba(255, 255, 255, .03); }
.vote small.hc { justify-self: start; }
.who { overflow: hidden; } .who b { overflow: hidden; text-overflow: ellipsis; }
.card-h b { white-space: nowrap; min-width: 0; font-size: clamp(11px, 3.8vw, 13px); }
.scard .hn { justify-content: center; }
.sp-own { flex-wrap: nowrap; justify-content: space-between; } .sp-own > span { padding: 4px 7px; letter-spacing: .08em; }
@media (max-width: 300px) { .who small .hc.amber { display: none; } }

/* owner #71: the nav carries 5 tabs; labels shrink on the smallest phones */
.nav button { min-width: 0; font-size: clamp(8px, 2.6vw, 10px); letter-spacing: .08em; }
@media (max-width: 300px) { .nav .pod { width: 36px; height: 29px; } .nav .pod svg { width: 19px; height: 19px; } }
/* sub tabs (Missions, Social lists) */
.so-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 8px; background: rgba(3, 8, 20, .55); border: 1px solid var(--line); }
.so-tabs button { height: 32px; border-radius: 6px; color: var(--dim); font: 700 clamp(9px, 2.9vw, 11px) var(--head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.so-tabs button.on { color: var(--ink); background: linear-gradient(180deg, rgba(59, 232, 255, .22), rgba(59, 232, 255, .08)); box-shadow: inset 0 0 0 1px rgba(59, 232, 255, .45); }
.so-empty { margin: 12px 0 4px; text-align: center; color: var(--muted); font: 600 12px var(--head); }
/* missions */
.mi-list { display: grid; gap: 6px; margin-top: 8px; }
.mi { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(3, 8, 20, .5); border: 1px solid var(--line); }
.mi.done { opacity: .55; }
.mi-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-style: normal; font-size: 18px; background: radial-gradient(circle at 30% 30%, rgba(59, 232, 255, .3), rgba(139, 107, 255, .18)); border: 1px solid rgba(59, 232, 255, .4); }
.mi-main { display: grid; gap: 4px; min-width: 0; }
.mi-main b { font: 700 12px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-main span { display: flex; gap: 4px; }
.mi-done { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--green); font: 800 16px var(--head); background: rgba(62, 224, 137, .12); border: 1px solid rgba(62, 224, 137, .4); }
.mi .btn.sm { min-width: 64px; }
/* Social */
.so-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.so-top > div:first-child { display: grid; gap: 4px; min-width: 0; }
.so-top b { display: flex; align-items: center; gap: 6px; font: 800 clamp(22px, 8vw, 30px)/1 var(--head); white-space: nowrap; }
.so-top em { color: var(--muted); font: 600 10px var(--head); font-style: normal; }
.so-inv { display: grid; justify-items: center; gap: 4px; padding: 8px 10px; border-radius: 8px; background: rgba(3, 8, 20, .5); border: 1px solid var(--line); }
.so-inv b { font-size: 18px; }
.so-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; margin: 10px 0 8px; padding: 6px 6px 6px 10px; border-radius: 8px; background: rgba(3, 8, 20, .6); border: 1px solid var(--line); }
.so-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font: 600 12px ui-monospace, Menlo, Consolas, monospace; }
.so-list { display: grid; gap: 4px; margin-top: 8px; }
.so-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: rgba(3, 8, 20, .45); border: 1px solid var(--line); }
.so-row b { font: 700 12px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-row small { color: var(--dim); font: 600 10px var(--head); }
.so-av, .so-rk { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; font: 800 12px var(--head); font-style: normal; background: rgba(59, 232, 255, .12); color: var(--cyan); }
.so-rk.t1 { background: rgba(255, 191, 46, .2); color: var(--amber); } .so-rk.t2 { background: rgba(200, 215, 235, .18); color: #dfe8f5; } .so-rk.t3 { background: rgba(205, 127, 50, .2); color: #e8a76a; }
/* the notifications pop-up (owner #72): small, centred */
.np { position: fixed; inset: 0; z-index: 32; display: grid; place-items: center; padding: 16px; background: rgba(2, 4, 10, .62); }
.np-card { position: relative; width: min(300px, 100%); display: grid; justify-items: center; gap: 10px; padding: 26px 16px 16px; text-align: center; border-radius: 14px;
  background: linear-gradient(180deg, #0f1c3a, #070d1e); border: 1px solid rgba(59, 232, 255, .5); box-shadow: 0 0 30px rgba(59, 232, 255, .25); animation: np-in .32s cubic-bezier(.2, .9, .3, 1.2); }
.np-tag { position: absolute; top: -12px; left: 50%; translate: -50% 0; padding: 5px 14px; border-radius: 6px; color: #fff; font: 800 11px var(--head); letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(180deg, #2b5cff, #1b3fc7); border: 1px solid rgba(160, 200, 255, .7); box-shadow: 0 0 14px rgba(59, 130, 255, .5); }
.np-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, .08); border: 1px solid var(--line2); }
.np-ic { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #4fd1ff, #2a7bff 60%, #1b3fc7); box-shadow: 0 0 22px rgba(59, 160, 255, .6); }
.np-ic svg { width: 40px; height: 40px; }
.np-card p { margin: 0; color: var(--ink); font: 600 12px/1.4 var(--head); }
.np-r { display: inline-flex; align-items: center; gap: 5px; color: var(--amber); font: 800 15px var(--head); }
@keyframes np-in { from { transform: scale(.2, .02); opacity: 0; } 35% { transform: scale(1.03, .02); opacity: 1; } 70% { transform: scale(1.03, 1.04); } } /* owner #98: every popup unfolds from a light line */
@media (prefers-reduced-motion: reduce) { .np-card { animation: none; } }
/* the Profile sheet (owner #73) */
.pf-tabs { margin-bottom: 8px; }
.pf { display: grid; gap: 10px; }
.pf-me { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pf-av { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; font: 800 24px var(--head); font-style: normal; color: #fff;
  background: radial-gradient(circle at 30% 25%, #6ff3ff, #2a7bff 55%, #6b3cff); box-shadow: 0 0 0 2px rgba(59, 232, 255, .55), 0 0 18px rgba(59, 232, 255, .35); }
.pf-me > div { display: grid; gap: 6px; min-width: 0; }
.pf-me b { font: 800 18px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-me span { display: flex; flex-wrap: wrap; gap: 4px; }
.pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-inv { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pf-it { text-align: center; color: var(--green); font: 800 14px var(--head); letter-spacing: .04em; }
.pf-inv .so-link { margin: 0; grid-template-columns: minmax(0, 1fr); }
.pf-row { display: grid; gap: 8px; padding: 10px; border-radius: 8px; background: rgba(3, 8, 20, .5); border: 1px solid var(--line); }
.pf-rh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-rh > div { display: grid; gap: 2px; min-width: 0; }
.pf-rh b { font: 700 13px var(--head); }
.pf-rh small { color: var(--muted); font: 600 10px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tg { flex: none; min-width: 58px; height: 28px; padding: 0 10px; border-radius: 6px; color: var(--dim); font: 800 11px var(--head); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); display: inline-grid; place-items: center; }
.pf-tg.on { color: #04140b; background: linear-gradient(180deg, #6dffb0, var(--green)); border-color: transparent; box-shadow: 0 0 10px rgba(62, 224, 137, .4); }
.pf-sl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.pf-sl input { width: 100%; height: 22px; margin: 0; background: transparent; accent-color: var(--cyan); -webkit-appearance: none; appearance: none; }
.pf-sl input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.pf-sl input::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.pf-sl input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.pf-sl input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); }
.pf-sl .hc { min-width: 44px; justify-content: center; }
.pf-wal { display: flex; align-items: center; gap: 12px; }
.pf-wal .coin { width: 52px; height: 52px; }
.pf-wal > div { display: grid; gap: 4px; min-width: 0; }
.pf-wal b { display: flex; align-items: center; gap: 6px; font: 800 24px var(--head); white-space: nowrap; }
.pf-wal em { color: var(--muted); font: 600 10px var(--head); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-hist { display: grid; gap: 4px; justify-items: start; }
.me { cursor: pointer; }

/* owner #74: the 3-level referral cards, milestones, the share box */
.lv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lv > div { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; min-width: 0; text-align: center; border-radius: 8px; background: rgba(3, 8, 20, .55); border: 1px solid var(--c); box-shadow: inset 0 0 14px color-mix(in srgb, var(--c) 18%, transparent); }
.lv .lv1 { --c: rgba(255, 191, 46, .6); } .lv .lv2 { --c: rgba(59, 232, 255, .55); } .lv .lv3 { --c: rgba(139, 107, 255, .65); }
.lv small { font: 800 8px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: .85; }
.lv b { font: 800 clamp(18px, 6.4vw, 24px)/1 var(--head); }
.lv .lv1 b { color: var(--amber); } .lv .lv2 b { color: var(--cyan); } .lv .lv3 b { color: #b9a2ff; }
.lv em { color: var(--muted); font: 600 9px var(--head); font-style: normal; white-space: nowrap; }
.lv span { display: grid; gap: 3px; justify-items: center; margin-top: 2px; }
.lv .hc { height: 16px; padding: 0 5px; font-size: 8px; }
.ms .mi-main span { flex-wrap: nowrap; }
.ms-bar { position: relative; height: 5px; margin-top: 2px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.ms-bar i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 6px rgba(59, 232, 255, .6); }
/* owner #85: the milestone prize reads first (gold, bigger); the share card slots */
.ms-rw { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 5px; white-space: nowrap; font: 800 clamp(11px, 3.6vw, 13px)/1 var(--head); font-style: normal;
  color: #ffd76a; background: linear-gradient(180deg, rgba(255, 191, 46, .2), rgba(255, 140, 30, .08)); border: 1px solid rgba(255, 191, 46, .6); box-shadow: 0 0 10px rgba(255, 170, 40, .25); text-shadow: 0 0 8px rgba(255, 190, 60, .5); }
.ms-rw .si { width: 14px; height: 14px; }
.ms.done .ms-rw { filter: grayscale(.6) brightness(.8); }
.sh-pips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sh-pips i { display: grid; place-items: center; height: 34px; border-radius: 7px; font: 800 13px var(--head); font-style: normal; color: var(--dim);
  background: rgba(3, 8, 20, .55); border: 1px dashed rgba(120, 150, 210, .35); }
.sh-pips i.on { color: #061024; background: linear-gradient(180deg, #7ff3ff, var(--cyan)); border: 1px solid var(--cyan); box-shadow: 0 0 10px rgba(59, 232, 255, .5); }
.sh-add input { min-width: 0; height: 36px; padding: 0 10px; border-radius: 6px; color: var(--ink); font: 600 12px var(--head); background: rgba(3, 8, 20, .7); border: 1px solid var(--line2); }
.sh-add input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(59, 232, 255, .2); }

/* the opening splash (owner #75): chrome-gold SHIP MINER over a violet-cyan glow, the $SINE emblem in two turning rings,
   an ornate bar with diamond caps and a running shine. Transform / opacity only; reduced motion = still */
.boot { position: fixed; inset: 0; z-index: 60; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px;
  background: radial-gradient(70% 45% at 50% 40%, #1a1240 0%, #070a1c 60%, #03050c 100%); transition: opacity .5s ease; }
.boot.out { opacity: 0; pointer-events: none; }
.boot-glow { position: absolute; left: 50%; top: 38%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(139, 107, 255, .35), rgba(59, 232, 255, .12) 45%, transparent 70%); animation: boot-pulse 2.4s ease-in-out infinite; }
.boot-em { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.boot-em .logo { width: 78px; height: 78px; filter: drop-shadow(0 0 18px rgba(139, 107, 255, .85)) drop-shadow(0 0 6px rgba(59, 232, 255, .8)); }
.boot-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: #ffd27a; border-right-color: rgba(255, 210, 122, .35); animation: turn 2.2s linear infinite; }
.boot-ring.r2 { inset: 10px; border-top-color: #9b7bff; border-left-color: rgba(59, 232, 255, .6); border-right-color: transparent; animation-duration: 1.6s; animation-direction: reverse; }
.boot-title { position: relative; display: grid; justify-items: center; line-height: .92; font: 800 clamp(40px, 15vw, 62px) var(--head); letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #fffbe9 0%, #ffe2a0 30%, #d99a3a 52%, #8a531a 56%, #f6cf7c 78%, #fff1c9 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #3a1f6b) drop-shadow(0 0 14px rgba(139, 107, 255, .8)) drop-shadow(0 0 2px rgba(255, 255, 255, .6)); }
.boot-title span + span { font-size: 1.08em; }
.boot-tk { display: inline-flex; align-items: center; gap: 8px; margin-top: -4px; padding: 3px 14px; border-radius: 999px; color: var(--cyan); font: 800 13px var(--head); letter-spacing: .24em;
  border: 1px solid rgba(59, 232, 255, .45); background: rgba(59, 232, 255, .08); }
.boot-tk em { font-style: normal; } .boot-tk .si { width: 16px; height: 16px; }
.boot-bar { position: relative; width: min(280px, 78vw); height: 14px; margin-top: 18px; border-radius: 8px; padding: 2px;
  background: linear-gradient(180deg, #ffe3a3, #a66c22); box-shadow: 0 0 16px rgba(139, 107, 255, .55), 0 0 0 1px rgba(0, 0, 0, .6); }
.boot-bar::before, .boot-bar::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; transform: rotate(45deg);
  background: linear-gradient(135deg, #fff0c4, #c7862e); box-shadow: 0 0 10px rgba(139, 107, 255, .9), inset 0 0 0 3px #2a1650; }
.boot-bar::before { left: -12px; } .boot-bar::after { right: -12px; }
.boot-fill { position: relative; display: block; height: 100%; border-radius: 6px; overflow: hidden; transform-origin: left; transform: scaleX(.04);
  background: linear-gradient(90deg, #5b2bd6, #a979ff 55%, #3be8ff); animation: boot-run 2.4s cubic-bezier(.2, .7, .3, 1) forwards; transition: transform .25s ease; }
.boot-fill::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: stock-shine 1.2s ease-in-out infinite; }
.boot-fill.full { animation: none; transform: scaleX(1); }
.boot-lbl { color: #d9c7ff; font: 800 11px var(--head); letter-spacing: .4em; text-transform: uppercase; text-shadow: 0 0 10px rgba(139, 107, 255, .8); }
@keyframes boot-run { to { transform: scaleX(.86); } }
@keyframes boot-pulse { 50% { transform: scale(1.08); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .boot-glow, .boot-ring, .boot-fill::after { animation: none; } .boot-fill { animation-duration: .01s; } }
/* the Lucky Wheel (owner #76): a small centred card, the wheel sized by the card width */
.wh { position: fixed; inset: 0; z-index: 33; display: grid; place-items: center; padding: 12px; background: rgba(2, 4, 10, .7); overflow-y: auto; }
.wh-card { position: relative; width: min(340px, 100%); display: grid; gap: 9px; padding: 12px; border-radius: 14px; container-type: inline-size;
  background: linear-gradient(180deg, #0f1c3a, #070d1e); border: 1px solid rgba(59, 232, 255, .5); box-shadow: 0 0 30px rgba(59, 232, 255, .25); animation: np-in .32s cubic-bezier(.2, .9, .3, 1.2); }
.wh-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.wh-h b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font: 800 15px var(--head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.wh-x { position: static; flex: none; }
.wh-stage { position: relative; width: min(100%, 260px); aspect-ratio: 1; justify-self: center; }
.wh-rot { position: absolute; inset: 0; will-change: transform; }
.wh-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 14px rgba(59, 232, 255, .35)); }
.wh-rim { fill: #0a1430; stroke: var(--cyan); stroke-width: 2; }
.wh-seg { stroke: #061024; stroke-width: 1.2; opacity: .88; }
.wh-seg.win { opacity: 1; stroke: #fff; stroke-width: 2.4; animation: wh-glow .9s ease-in-out 3; }
.wh-inner { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.wh-lbl { fill: #fff; font: 800 12px var(--head); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .45); stroke-width: 2.5px; }
.wh-peg { fill: #fff; stroke: #061024; stroke-width: 1; }
.wh-ptr { position: absolute; z-index: 2; top: -6px; left: 50%; width: 22px; height: 28px; margin-left: -11px; transform-origin: 50% 20%;
  background: linear-gradient(180deg, #ffd45c, var(--amber) 50%, var(--orange)); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.wh-hub { position: absolute; z-index: 2; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; color: #1c0d00;
  font: 800 clamp(11px, 4cqw, 14px) var(--head); letter-spacing: .06em; text-transform: uppercase;
  background: radial-gradient(circle at 35% 30%, #ffe08a, var(--amber) 55%, var(--orange)); border: 3px solid #0a1430; box-shadow: 0 0 0 2px var(--amber), 0 0 18px rgba(255, 170, 40, .55); }
.wh-hub:disabled, .wh-hub[aria-disabled="true"] { filter: grayscale(1) brightness(.6); }
.wh-res { display: grid; justify-items: center; gap: 4px; padding: 8px; border-radius: 8px; background: rgba(255, 191, 46, .08); border: 1px solid rgba(255, 191, 46, .45); }
.wh-res[hidden] { display: none; }
.wh-res b { display: inline-flex; align-items: center; gap: 5px; color: var(--amber); font: 800 18px var(--head); white-space: nowrap; }
.wh-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.wh-legend span { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 3px 2px; border-radius: 4px; color: var(--muted);
  font: 700 9px var(--head); white-space: nowrap; background: rgba(255, 255, 255, .04); }
.wh-legend i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.wh-legend .si { width: 10px; height: 10px; }
@keyframes wh-glow { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .wh-card, .wh-seg.win { animation: none; } }
/* the win (owner #90): rays + shockwave in the stage, a gold flash + the coin canvas over the card, a bigger result for rare prizes */
.wh-card { overflow: hidden; }
.wh-rays { position: absolute; inset: -38%; z-index: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(59, 232, 255, .32) 0deg 4deg, transparent 4deg 11deg, rgba(139, 107, 255, .26) 11deg 14deg, transparent 14deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%); mask: radial-gradient(circle, #000 18%, transparent 66%); }
.wh-rays.big { background: repeating-conic-gradient(from 0deg, rgba(120, 245, 255, .5) 0deg 5deg, transparent 5deg 10deg, rgba(162, 107, 255, .42) 10deg 14deg, rgba(255, 215, 106, .3) 14deg 16deg, transparent 16deg 22deg); }
.wh-stage > .wh-rot { z-index: 1; }
.wh-stage .wh-ptr { z-index: 6; } .wh-stage .wh-hub { z-index: 2; } /* the pointer always on top of the wheel (owner #95) */
.wh-ring { position: absolute; inset: 0; z-index: 3; border-radius: 50%; pointer-events: none; border: 3px solid #7ff3ff; outline: 1px solid rgba(162, 107, 255, .7); outline-offset: 5px;
  box-shadow: 0 0 26px rgba(59, 232, 255, .9), inset 0 0 20px rgba(139, 107, 255, .6); }
.wh-flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(circle at 50% 40%, rgba(225, 252, 255, .92), rgba(59, 232, 255, .4) 35%, rgba(139, 107, 255, .25) 55%, transparent 75%); opacity: 0; }
.wh-coins { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
.wh-res.big { background: linear-gradient(180deg, rgba(59, 232, 255, .18), rgba(139, 107, 255, .22)); border-color: #7ff3ff; box-shadow: 0 0 24px rgba(59, 232, 255, .45), inset 0 0 18px rgba(139, 107, 255, .3); }
.wh-res.big b { font-size: 22px; text-shadow: 0 0 14px rgba(255, 190, 60, .8); }
/* owner #94: bonus spins (1 invite = 1 spin) */
.wh-bonus { color: var(--amber) !important; font-weight: 800 !important; text-shadow: 0 0 8px rgba(255, 190, 60, .5); }
.wh-inv { color: #eafcff; background: linear-gradient(180deg, #7ff3ff, var(--cyan) 45%, #6b4bff); filter: drop-shadow(0 0 12px rgba(59, 232, 255, .5)); }
#whHub, #whMain, #whSub { display: contents; }

/* owner #99: the mission pop-up — steps, the copy box, Verify inside */
.mp-card { width: min(320px, 100%); justify-items: stretch; text-align: left; gap: 9px; }
.mp-ic { justify-self: center; width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: radial-gradient(circle at 40% 30%, rgba(59, 232, 255, .45), rgba(139, 107, 255, .3) 60%, rgba(10, 20, 48, .9)); }
.mp-t { justify-self: center; text-align: center; font: 800 14px/1.3 var(--head); }
.mp-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 6px; }
.mp-steps li { counter-increment: s; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--muted); font: 600 12px/1.4 var(--head); }
.mp-steps li::before { content: counter(s); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; color: #04101f; font: 800 11px var(--head);
  background: linear-gradient(180deg, #7ff3ff, var(--cyan)); box-shadow: 0 0 8px rgba(59, 232, 255, .5); }
.mp-steps b { color: var(--ink); }
.mp-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 6px 6px 6px 10px; border-radius: 8px;
  background: rgba(3, 8, 20, .7); border: 1px dashed rgba(59, 232, 255, .55); }
.mp-copy code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cyan); font: 700 12px var(--head); }
.mp-tip { margin: 0; color: var(--dim); font: 600 11px/1.4 var(--head); text-align: center; }
.mp-err { margin: 0; padding: 7px 9px; border-radius: 6px; color: #ffb3bf; font: 700 12px/1.35 var(--head); text-align: center; background: rgba(255, 60, 90, .12); border: 1px solid rgba(255, 77, 106, .55); }
.mp-err[hidden] { display: none; }
.mp-card .np-r { justify-self: center; }
.np { overflow-y: auto; }

/* owner #100: today's game cards */
.cd { display: grid; gap: 10px; padding: 10px 12px 26px; border-radius: 10px; background: linear-gradient(180deg, rgba(59, 232, 255, .08), rgba(139, 107, 255, .06)); border: 1px solid rgba(59, 232, 255, .3); }
.cd-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cd-h small { color: var(--cyan); font: 700 9px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.cd-h > b { font: 800 22px/1 var(--head); color: var(--ink); text-shadow: 0 0 10px rgba(59, 232, 255, .5); }
.cd-h > b em { font-style: normal; font-size: .6em; color: var(--dim); }
.cd-next { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #ffd76a; font: 800 12px var(--head); white-space: nowrap; text-shadow: 0 0 8px rgba(255, 190, 60, .5); }
.cd-next .si { width: 13px; height: 13px; }
.cd-bar { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.cd-bar > .cd-fill { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 10px rgba(59, 232, 255, .6); }
.cd-mark { position: absolute; top: 50%; translate: -50% -50%; display: grid; justify-items: center; font-style: normal; }
.cd-mark b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 11px; background: #0c1736; border: 1px solid rgba(255, 191, 46, .7); box-shadow: 0 0 8px rgba(255, 190, 60, .4); }
.cd-mark.got b { color: #04101f; background: linear-gradient(180deg, #7ff3ff, var(--cyan)); border-color: var(--cyan); }
.cd-mark em { position: absolute; top: 22px; white-space: nowrap; color: var(--muted); font: 700 8px var(--head); font-style: normal; }
.cd-mark:last-child em { right: 0; } .cd-mark:last-child { translate: -100% -50%; }
.cd-join { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 191, 46, .14), rgba(139, 107, 255, .1)); border: 1px solid rgba(255, 191, 46, .5); }
.cd-join > i { font-size: 20px; font-style: normal; text-align: center; }
.cd-join span { display: grid; gap: 2px; min-width: 0; color: var(--muted); font: 600 11px var(--head); }
.cd-join span b { display: inline-flex; align-items: center; gap: 4px; color: #ffd76a; font: 800 15px var(--head); text-shadow: 0 0 8px rgba(255, 190, 60, .5); }

/* owner #101: Invite + 3 levels + today's cards in one card */
.ie { display: grid; gap: 9px; }
.ie-lv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.ie-lv > div { display: grid; gap: 2px; justify-items: center; padding: 5px 2px; border-radius: 6px; background: rgba(3, 8, 20, .5); border: 1px solid var(--line); min-width: 0; }
.ie-lv b { font: 800 11px var(--head); white-space: nowrap; }
.ie-lv .lv1 b { color: var(--amber); } .ie-lv .lv2 b { color: var(--cyan); } .ie-lv .lv3 b { color: var(--violet); }
.ie-lv span { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font: 700 9px var(--head); white-space: nowrap; }
.ie-lv .si { width: 10px; height: 10px; }
.ie .so-link { grid-template-columns: minmax(0, 1fr) auto auto; margin: 0; }
.ie .cd { padding: 8px 10px 24px; }
.ie-foot { margin: 0; color: var(--dim); font: 600 9.5px/1.4 var(--head); text-align: center; }
.ie-foot .si { width: 10px; height: 10px; vertical-align: -1px; }
