/* ─────────────────────────────────────────────────────────────────
   Steam Invest Portfolio — Tokens & Base
   Original design. Not affiliated with Steam/Valve.
   ───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  /* Base — near black, cool slight-blue tone */
  --bg-0: #050608;
  --bg-1: #0a0c11;
  --bg-2: #10131a;
  --bg-3: #161a23;
  --panel: rgba(20, 24, 33, 0.55);
  --panel-strong: rgba(28, 33, 45, 0.78);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Foreground */
  --fg-0: #f6f7fb;
  --fg-1: #cdd1dc;
  --fg-2: #8b91a3;
  --fg-3: #5a5f70;
  --fg-4: #3a3f4d;

  /* Accent — magenta/pink (per swatch pick) */
  --accent: oklch(0.68 0.22 5);
  --accent-soft: oklch(0.68 0.22 5 / 0.18);
  --accent-glow: oklch(0.72 0.24 5 / 0.45);

  /* Secondary for charts */
  --cyan: oklch(0.78 0.14 210);
  --green: oklch(0.78 0.16 150);
  --amber: oklch(0.82 0.16 75);
  --red: oklch(0.66 0.22 25);

  /* CS2-ish rarity colors (generic, not Valve trademarked) */
  --rar-1: #4b69ff; /* mil-spec-ish */
  --rar-2: #8847ff; /* restricted-ish */
  --rar-3: #d32ce6; /* classified-ish */
  --rar-4: #eb4b4b; /* covert-ish */
  --rar-5: #ffd700; /* exotic-ish */

  /* Glass */
  --glass-blur: 22px;
  --glass-sat: 140%;

  /* Type */
  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-0); color: var(--fg-0); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
button { font-family: inherit; cursor: default; border: 0; background: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Background — layered */
.app-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, oklch(0.68 0.22 5 / 0.12), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, oklch(0.78 0.14 210 / 0.06), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, oklch(0.68 0.22 5 / 0.06), transparent 60%),
    var(--bg-0);
}
.app-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
}
.app-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Glass panel */
.glass {
  background: var(--panel);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 50px rgba(0,0,0,0.35);
}
.glass-strong {
  background: var(--panel-strong);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}

/* Type utilities */
.display { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2);
}
.kbd {
  font-family: var(--f-mono); font-size: 10.5px;
  padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--fg-2); background: rgba(255,255,255,0.02);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-family: var(--f-display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--fg-0); transition: all 160ms ease;
  cursor: default;
}
.btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, oklch(0.72 0.24 5), oklch(0.6 0.22 5));
  border-color: oklch(0.72 0.24 5 / 0.8);
  color: #fff;
  box-shadow: 0 8px 24px oklch(0.68 0.22 5 / 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { box-shadow: 0 10px 32px oklch(0.68 0.22 5 / 0.55), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-sm { padding: 7px 11px; font-size: 11.5px; border-radius: 8px; }

/* Marketplace offer rows in the item detail card */
.offer-row { transition: background 160ms ease, transform 160ms ease, border-color 160ms ease; }
.offer-row:hover { background: rgba(255,255,255,0.06) !important; transform: translateX(2px); }

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  color: var(--fg-1);
}
.chip-accent { color: oklch(0.72 0.24 5); border-color: oklch(0.72 0.24 5 / 0.4); background: oklch(0.68 0.22 5 / 0.08); }
.chip-up { color: var(--green); border-color: oklch(0.78 0.16 150 / 0.3); background: oklch(0.78 0.16 150 / 0.08); }
.chip-down { color: var(--red); border-color: oklch(0.66 0.22 25 / 0.3); background: oklch(0.66 0.22 25 / 0.08); }

/* Live dot */
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--green); opacity: 0.4; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }

/* Scanline texture for hero */
.scanlines::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
}

/* Section helpers */
.section { padding: 120px 64px; position: relative; }
.section-tight { padding: 64px 64px; }
.container { max-width: 1320px; margin: 0 auto; }

.hero-shell {
  position: relative;
  min-height: calc(100vh - 64px);
  padding: 64px 64px 96px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 720px;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: clamp(56px, 6vw, 88px);
  line-height: 0.95;
}

.hero-sub {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-1);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 520px;
}

.hero-stage-wrap {
  position: relative;
  min-width: 0;
  height: 640px;
  display: grid;
  place-items: center;
}

/* Numbers ticking */
.num-tick { font-family: var(--f-display); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Scroll bar dark */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 6px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* Float gradient bar (FN→BS) */
.float-bar {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg,
    oklch(0.78 0.16 150) 0%, oklch(0.78 0.16 150) 7%,
    oklch(0.82 0.18 130) 7%, oklch(0.82 0.18 130) 15%,
    oklch(0.82 0.16 75) 15%, oklch(0.82 0.16 75) 38%,
    oklch(0.74 0.18 40) 38%, oklch(0.74 0.18 40) 45%,
    oklch(0.66 0.22 25) 45%, oklch(0.66 0.22 25) 100%
  );
  position: relative;
}

/* Item card hover lift */
.item-card {
  position: relative; padding: 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  transition: all 200ms ease;
}
.item-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px 0 0 2px;
  background: var(--rar-tier, var(--rar-2));
  opacity: 0.7;
}
.item-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

/* CS2 news feed */
.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}
.news-main,
.news-side { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.news-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.news-toolbar-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.news-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-time { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--fg-2); white-space: nowrap; }

.news-featured {
  display: block;
  border-radius: 14px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.news-featured:hover {
  border-color: var(--line-strong); transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
}
.news-featured-media { position: relative; height: 200px; background-size: cover; background-position: center; }
.news-featured-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,15,0) 35%, rgba(8,10,15,0.55));
}
.news-featured-media > .chip { position: absolute; top: 14px; left: 14px; z-index: 1; }
.news-featured-media > .news-time { position: absolute; top: 16px; right: 16px; z-index: 1; }
.news-featured-glyph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 64px; font-weight: 600; color: rgba(255,255,255,0.1);
}
.news-featured-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.news-featured-title {
  font-family: var(--f-display); font-size: 21px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em;
}
.news-featured-summary { color: var(--fg-1); font-size: 14px; line-height: 1.6; }
.news-featured-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2px; }
.news-open { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }

.news-list { display: grid; gap: 10px; }
.news-row {
  display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center;
  padding: 11px; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.news-row:hover {
  border-color: var(--line-strong); transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: 0 14px 32px rgba(0,0,0,0.3);
}
.news-row-summary {
  color: var(--fg-2); font-size: 13px; line-height: 1.5;
  max-height: 0; opacity: 0; margin-top: 0; overflow: hidden;
  transition: max-height 240ms ease, opacity 200ms ease, margin-top 240ms ease;
}
.news-row:hover .news-row-summary { max-height: 72px; opacity: 1; margin-top: 8px; }
.news-thumb {
  width: 60px; height: 60px; border-radius: 10px; border: 1px solid var(--line);
  background-size: cover; background-position: center; flex-shrink: 0;
}
.news-thumb-fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 19px; color: #fff;
}
.news-row-title { font-family: var(--f-display); font-size: 13.5px; font-weight: 500; line-height: 1.32; }
.news-row-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
.news-row-source { font-size: 12px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.news-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--fg-2); font-size: 14px; line-height: 1.6; padding: 32px 20px;
  border: 1px dashed var(--line); border-radius: 14px; min-height: 240px;
}

.news-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.news-side-total { font-family: var(--f-display); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
.news-channels { display: grid; gap: 8px; }
.news-channel {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.news-avatar {
  width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 15px; font-weight: 600; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.news-channel-name { font-size: 13px; color: var(--fg-1); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-channel-sub { font-family: var(--f-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.04em; margin-top: 3px; }
.news-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.news-stat { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.news-stat-val { font-family: var(--f-mono); font-size: 12.5px; color: var(--fg-0); }

@media (max-width: 1100px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* Market explorer */
.market-toolbar {
  padding: 22px;
  margin-bottom: 22px;
}
.market-toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.market-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  max-width: 580px;
}
.market-search-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--fg-0);
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.market-search-input:focus {
  border-color: oklch(0.72 0.24 5 / 0.55);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px oklch(0.68 0.22 5 / 0.08);
}
.market-search-input::placeholder { color: var(--fg-3); }
.market-toolbar-meta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.market-filter-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.market-filter-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}
.market-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.market-filter-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: var(--fg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 160ms ease;
  cursor: pointer;
}
.market-filter-chip:hover {
  color: var(--fg-0);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.05);
}
.market-filter-chip[data-active="true"] {
  color: var(--fg-0);
  border-color: oklch(0.72 0.24 5 / 0.45);
  background: linear-gradient(180deg, oklch(0.68 0.22 5 / 0.18), rgba(255,255,255,0.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.market-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(255,255,255,0.05), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  text-align: left;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}
.market-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--rar-tier, var(--rar-2));
  opacity: 0.8;
}
.market-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(255,255,255,0.08), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}
.market-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.market-card-art {
  margin-top: 14px;
  aspect-ratio: 16 / 9;
}
.market-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
}
.market-card-name {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.market-card-sub {
  color: var(--fg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.market-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 10px;
}
.market-card-price {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}
.market-card-listings {
  margin-top: 4px;
  color: var(--fg-1);
  font-family: var(--f-mono);
  font-size: 13px;
}
.market-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.market-empty {
  padding: 32px;
}

button:disabled,
.market-filter-chip:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Marching border */
@keyframes march {
  to { background-position: 200% 0; }
}
.march {
  background: linear-gradient(90deg, transparent 0%, oklch(0.72 0.24 5 / 0.6) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: march 2.4s linear infinite;
}

/* Fade-in on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.hero-3d-stage {
  width: 100%;
  height: 620px;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-operators-glow {
  position: absolute;
  width: min(76vw, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.68 0.22 5 / 0.35), transparent 60%);
  filter: blur(20px);
}

.hero-operators-ring,
.hero-operators-ring-alt {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-operators-ring {
  width: min(62vw, 380px);
  aspect-ratio: 1;
  border: 1px solid oklch(0.68 0.22 5 / 0.35);
  animation: ringSpin 40s linear infinite;
}

.hero-operators-ring-alt {
  width: min(74vw, 460px);
  aspect-ratio: 1;
  border: 1px dashed oklch(0.78 0.14 210 / 0.3);
  animation: ringSpin 80s linear infinite reverse;
}

.hero-operators-shadow {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(64vw, 380px);
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 70%);
  filter: blur(12px);
}

.hero-operators-image-wrap {
  position: relative;
  z-index: 2;
  width: min(82vw, 560px);
  height: min(82vw, 560px);
  display: grid;
  place-items: center;
}

.hero-operators-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 30px 60px rgba(0,0,0,0.7))
    drop-shadow(0 0 40px oklch(0.68 0.22 5 / 0.25));
  transform: translateY(8px);
  animation: heroOperatorImageIn 720ms cubic-bezier(.2,.8,.2,1) both;
  pointer-events: none;
  user-select: none;
}

@keyframes heroOperatorImageIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96) rotate(-1.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(8px) scale(1) rotate(0deg);
  }
}

.hero-operators-picker {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 5vw, 34px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(4, 8, 16, 0.42);
  box-shadow: 0 18px 40px rgba(0,0,0,0.26);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.hero-operators-picker-dot {
  position: relative;
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  cursor: pointer;
}

.hero-operators-picker-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid transparent;
}

.hero-operators-picker-dot.is-active {
  background: var(--accent);
  box-shadow:
    0 0 16px oklch(0.68 0.22 5 / 0.65),
    inset 0 0 0 1px rgba(255,255,255,0.5);
}

.hero-operators-picker-dot.is-active::after {
  border-color: oklch(0.68 0.22 5 / 0.55);
  animation: heroOperatorDotPulse var(--image-delay, 4200ms) linear both;
}

@keyframes heroOperatorDotPulse {
  from { transform: scale(0.78); opacity: 0.95; }
  to { transform: scale(1.45); opacity: 0; }
}

.hero-operators-fallback {
  position: relative;
  width: min(82vw, 520px);
  height: min(82vw, 520px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 18px);
  padding: 36px 24px 20px;
}

.hero-operators-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 120% at 50% 12%, rgba(255,255,255,0.14), transparent 34%),
    linear-gradient(180deg, rgba(28,33,45,0.88), rgba(10,12,17,0.96));
  box-shadow:
    0 26px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}

.hero-operators-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-operators-card::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 70%;
  height: 56%;
  transform: translateX(-50%);
  border-radius: 46% 46% 16% 16%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,0.22), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
  filter: blur(0.4px);
  opacity: 0.78;
}

.hero-operators-card[data-slot="center"] {
  height: 82%;
  transform: translateY(-6px);
}

.hero-operators-card[data-slot="left"],
.hero-operators-card[data-slot="right"] {
  height: 70%;
}

.hero-operators-card[data-slot="left"] {
  transform: rotate(-6deg) translateY(14px);
}

.hero-operators-card[data-slot="right"] {
  transform: rotate(6deg) translateY(10px);
}

.hero-operators-badge {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.hero-operators-readout {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  padding: 10px 18px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid oklch(0.68 0.22 5 / 0.4);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
}

/* Mini sparkline */
.sparkline { display: block; width: 100%; height: 32px; }

/* Tab */
.tab {
  padding: 8px 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-2); border-bottom: 1px solid transparent;
  cursor: default;
}
.tab[data-active="true"] { color: var(--fg-0); border-color: oklch(0.72 0.24 5); }
.tab:hover { color: var(--fg-0); }

/* Item placeholder (we don't draw real CS2 art) */
.item-art {
  position: relative; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(64, 72, 81, 0.96), rgba(49, 56, 64, 0.98));
  border: 1px solid var(--line);
}
.item-art::after {
  content: attr(data-label); position: absolute; left: 8px; bottom: 6px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em;
  color: var(--fg-3); text-transform: uppercase;
}

/* Rarity tier accents */
.tier-1 { --rar-tier: var(--rar-1); }
.tier-2 { --rar-tier: var(--rar-2); }
.tier-3 { --rar-tier: var(--rar-3); }
.tier-4 { --rar-tier: var(--rar-4); }
.tier-5 { --rar-tier: var(--rar-5); }

/* Header nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: linear-gradient(180deg, rgba(5,6,8,0.8), rgba(5,6,8,0.4));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
}
.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background:
    radial-gradient(circle at 30% 30%, oklch(0.78 0.24 5), oklch(0.5 0.22 5));
  position: relative;
  box-shadow: 0 4px 14px oklch(0.68 0.22 5 / 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.nav-logo-mark::after {
  content: ''; position: absolute; inset: 6px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 3px;
  transform: rotate(45deg);
}
.nav-link {
  padding: 8px 12px; font-size: 12.5px; font-weight: 500; color: var(--fg-2);
  border-radius: 8px; cursor: default;
}
.nav-link:hover { color: var(--fg-0); background: rgba(255,255,255,0.04); }
.nav-link[data-active="true"] { color: var(--fg-0); background: rgba(255,255,255,0.05); }
.nav-main,
.nav-controls,
.nav-links,
.nav-segment {
  display: flex;
  align-items: center;
}

.nav-main { gap: 24px; min-width: 0; }
.nav-divider { width: 1px; height: 18px; background: var(--line); flex: 0 0 auto; }
.nav-links { gap: 4px; }
.nav-controls { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav-segment {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

/* Visual direction skins */
[data-skin="cyber"] {
  --accent: oklch(0.68 0.22 5);
  --accent-soft: oklch(0.68 0.22 5 / 0.18);
  --accent-glow: oklch(0.72 0.24 5 / 0.45);
}
[data-skin="tactical"] {
  --accent: oklch(0.84 0.18 88);
  --accent-soft: oklch(0.84 0.18 88 / 0.18);
  --accent-glow: oklch(0.86 0.18 88 / 0.45);
}
[data-skin="luxe"] {
  --accent: oklch(0.82 0.13 80);
  --accent-soft: oklch(0.82 0.13 80 / 0.18);
  --accent-glow: oklch(0.86 0.13 80 / 0.45);
}

/* When skin changes, override key surfaces */
[data-skin="tactical"] .nav-logo-mark {
  background: radial-gradient(circle at 30% 30%, oklch(0.92 0.18 88), oklch(0.6 0.18 88));
  box-shadow: 0 4px 14px oklch(0.84 0.18 88 / 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
[data-skin="luxe"] .nav-logo-mark {
  background: radial-gradient(circle at 30% 30%, oklch(0.92 0.13 80), oklch(0.6 0.13 80));
  box-shadow: 0 4px 14px oklch(0.82 0.13 80 / 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
[data-skin="tactical"] .btn-primary {
  background: linear-gradient(180deg, oklch(0.88 0.18 88), oklch(0.7 0.18 88));
  border-color: oklch(0.88 0.18 88 / 0.8);
  color: #1a1500;
  box-shadow: 0 8px 24px oklch(0.84 0.18 88 / 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
[data-skin="luxe"] .btn-primary {
  background: linear-gradient(180deg, oklch(0.92 0.13 80), oklch(0.7 0.13 80));
  border-color: oklch(0.86 0.13 80 / 0.8);
  color: #1a1100;
  box-shadow: 0 8px 24px oklch(0.82 0.13 80 / 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
[data-skin="tactical"] .chip-accent { color: oklch(0.88 0.18 88); border-color: oklch(0.84 0.18 88 / 0.4); background: oklch(0.84 0.18 88 / 0.08); }
[data-skin="luxe"] .chip-accent { color: oklch(0.86 0.13 80); border-color: oklch(0.82 0.13 80 / 0.4); background: oklch(0.82 0.13 80 / 0.08); }
[data-skin="tactical"] .tab[data-active="true"] { border-color: oklch(0.84 0.18 88); }
[data-skin="luxe"] .tab[data-active="true"] { border-color: oklch(0.82 0.13 80); }

@media (max-width: 1100px) {
  .hero-shell,
  .section,
  .section-tight {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 32px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-stage-wrap {
    height: auto;
    min-height: 520px;
  }

  .hero-3d-stage {
    height: 560px;
  }

  .nav {
    gap: 16px;
    align-items: flex-start;
  }

  .nav-main,
  .nav-controls {
    flex: 1 1 0;
  }

  .nav-main {
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-controls {
    justify-content: flex-end;
  }

  .market-toolbar-top,
  .market-filter-group {
    grid-template-columns: 1fr;
    display: grid;
  }

  .market-toolbar-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .market-toolbar-meta {
    justify-content: flex-start;
  }

  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-shell,
  .section,
  .section-tight {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-shell {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .hero-title {
    font-size: clamp(38px, 13vw, 56px);
  }

  .hero-sub {
    margin-top: 18px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 24px;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    margin-top: 36px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-stage-wrap {
    min-height: 380px;
  }

  .hero-3d-stage {
    height: 380px;
  }

  .hero-operators-image-wrap,
  .hero-operators-fallback {
    width: min(100%, 360px);
    height: min(100%, 360px);
  }

  .hero-operators-readout {
    bottom: 10px;
    width: calc(100% - 24px);
    max-width: 280px;
    padding: 8px 12px;
  }

  .nav {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-main,
  .nav-controls {
    width: 100%;
  }

  .nav-main {
    justify-content: space-between;
  }

  .nav-divider,
  .nav-status {
    display: none;
  }

  .nav-links,
  .nav-controls {
    flex-wrap: wrap;
  }

  .nav-controls {
    justify-content: flex-start;
  }

  .nav-segment {
    max-width: 100%;
  }

  .hero-operators-badge[data-badge="left"] {
    top: 24px !important;
    left: 12px !important;
  }

  .hero-operators-badge[data-badge="right"] {
    top: 72px !important;
    right: 12px !important;
  }

  .hero-operators-badge[data-badge="bottom"] {
    bottom: 112px !important;
    right: 18px !important;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }
}

/* Glass intensity (controlled via JS setting --glass-blur) */
[data-glass="0"] { --glass-blur: 0px; --panel: rgba(20, 24, 33, 0.92); }
[data-glass="1"] { --glass-blur: 8px; }
[data-glass="2"] { --glass-blur: 16px; }
[data-glass="3"] { --glass-blur: 24px; }
[data-glass="4"] { --glass-blur: 36px; }

@media (pointer: fine) {
  body[data-cursor-style]:not([data-cursor-style="default"]),
  body[data-cursor-style]:not([data-cursor-style="default"]) * {
    cursor: none !important;
  }
}

.cursor-overlay {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483645;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
  mix-blend-mode: screen;
}

.cursor-overlay[data-visible="1"] {
  opacity: 1;
}

.cursor-overlay[data-hover="1"] {
  transform: translate(-50%, -50%) scale(1.12);
}

.cursor-overlay[data-down="1"] {
  transform: translate(-50%, -50%) scale(0.92);
}

.cursor-glyph {
  position: relative;
  width: 30px;
  height: 30px;
  color: var(--accent);
  filter:
    drop-shadow(0 0 8px oklch(0.72 0.24 5 / 0.48))
    drop-shadow(0 0 18px oklch(0.72 0.24 5 / 0.2));
}

.cursor-glyph.is-preview {
  width: 36px;
  height: 36px;
}

.cursor-line,
.cursor-center,
.cursor-ring,
.cursor-diag {
  position: absolute;
  display: block;
}

.cursor-line {
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.cursor-line.top,
.cursor-line.bottom {
  left: 50%;
  width: 2px;
  height: 8px;
  transform: translateX(-50%);
}

.cursor-line.left,
.cursor-line.right {
  top: 50%;
  width: 8px;
  height: 2px;
  transform: translateY(-50%);
}

.cursor-line.top { top: 0; }
.cursor-line.right { right: 0; }
.cursor-line.bottom { bottom: 0; }
.cursor-line.left { left: 0; }

.cursor-center {
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(255,255,255,0.95);
}

.cursor-ring {
  inset: 5px;
  border-radius: 999px;
  border: 1px solid oklch(0.72 0.24 5 / 0.75);
  opacity: 0;
}

.cursor-diag {
  width: 6px;
  height: 2px;
  background: currentColor;
  opacity: 0;
}

.cursor-diag.tl { left: 4px; top: 6px; transform: rotate(-45deg); }
.cursor-diag.tr { right: 4px; top: 6px; transform: rotate(45deg); }
.cursor-diag.br { right: 4px; bottom: 6px; transform: rotate(-45deg); }
.cursor-diag.bl { left: 4px; bottom: 6px; transform: rotate(45deg); }

.cursor-glyph[data-variant="classic"] .cursor-line {
  opacity: 1;
}

.cursor-glyph[data-variant="dot"] .cursor-line {
  opacity: 0.55;
  width: 2px;
  height: 5px;
}

.cursor-glyph[data-variant="dot"] .cursor-line.left,
.cursor-glyph[data-variant="dot"] .cursor-line.right {
  width: 5px;
  height: 2px;
}

.cursor-glyph[data-variant="dot"] .cursor-ring {
  opacity: 1;
  inset: 3px;
  border-color: rgba(255,255,255,0.35);
}

.cursor-glyph[data-variant="dot"] .cursor-center {
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 10px oklch(0.72 0.24 5 / 0.95);
}

.cursor-glyph[data-variant="split"] .cursor-line.top { top: 1px; }
.cursor-glyph[data-variant="split"] .cursor-line.bottom { bottom: 1px; }
.cursor-glyph[data-variant="split"] .cursor-line.left { left: 1px; }
.cursor-glyph[data-variant="split"] .cursor-line.right { right: 1px; }
.cursor-glyph[data-variant="split"] .cursor-line {
  width: 2px;
  height: 6px;
}

.cursor-glyph[data-variant="split"] .cursor-line.left,
.cursor-glyph[data-variant="split"] .cursor-line.right {
  width: 6px;
  height: 2px;
}

.cursor-glyph[data-variant="split"] .cursor-center {
  width: 2px;
  height: 2px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.9);
}

.cursor-glyph[data-variant="scope"] .cursor-ring {
  opacity: 1;
  inset: 1px;
}

.cursor-glyph[data-variant="scope"] .cursor-line.top,
.cursor-glyph[data-variant="scope"] .cursor-line.bottom {
  height: 11px;
}

.cursor-glyph[data-variant="scope"] .cursor-line.left,
.cursor-glyph[data-variant="scope"] .cursor-line.right {
  width: 11px;
}

.cursor-glyph[data-variant="scope"] .cursor-diag {
  opacity: 0.72;
}

.top-dock {
  position: sticky;
  top: 64px;
  z-index: 45;
  pointer-events: none;
}

.top-dock-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px 0;
  display: flex;
  justify-content: flex-end;
}

.cursor-switcher {
  position: relative;
  z-index: 1;
  width: 288px;
  padding: 10px;
  border-radius: 14px;
  transform: none !important;
  pointer-events: auto;
}

.cursor-switcher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cursor-switcher-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--fg-2);
}

.cursor-switcher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.cursor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 5px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.cursor-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.05);
}

.cursor-card[data-active="true"] {
  border-color: oklch(0.72 0.24 5 / 0.5);
  background: oklch(0.68 0.22 5 / 0.08);
  box-shadow: inset 0 0 0 1px oklch(0.72 0.24 5 / 0.18);
}

.cursor-card-preview {
  display: grid;
  place-items: center;
  width: 100%;
  height: 38px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.cursor-card-label {
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: -0.01em;
}

.cursor-card-desc {
  font-family: var(--f-mono);
  font-size: 8px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Armory pass ROI — CSROI-style card grid */
.armory-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.armory-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.armory-toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.armory-toolbar-updated {
  margin-left: auto;
  align-items: flex-end;
}
.armory-toolbar-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.armory-source-pill,
.armory-currency-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--fg-1);
  border-radius: 8px;
  padding: 7px 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.armory-currency-row { display: flex; gap: 8px; }
.armory-currency-btn.is-active,
.armory-source-pill {
  border-color: oklch(0.72 0.24 5 / 0.45);
  background: oklch(0.68 0.22 5 / 0.12);
  color: var(--fg-0);
}
.armory-updated-val {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-1);
}
.armory-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--fg-2);
  font-size: 14px;
}
.armory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.armory-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid oklch(0.55 0.12 285 / 0.35);
  background:
    radial-gradient(120% 80% at 100% 0%, oklch(0.42 0.14 285 / 0.35), transparent 55%),
    linear-gradient(180deg, oklch(0.22 0.06 285 / 0.95), oklch(0.16 0.04 270 / 0.98));
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.armory-tile:hover {
  transform: translateY(-2px);
  border-color: oklch(0.68 0.16 285 / 0.55);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.armory-tile-accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, oklch(0.72 0.22 330), oklch(0.68 0.2 285), oklch(0.7 0.18 220));
  opacity: 0.85;
}
.armory-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.armory-tile-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-0);
}
.armory-tile-rank {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--fg-2);
  flex-shrink: 0;
}
.armory-tile-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
  align-items: center;
  flex: 1;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.armory-tile-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.armory-stat {
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
}
.armory-stat-icon {
  grid-row: 1 / span 2;
  color: var(--fg-2);
  display: flex;
  align-items: center;
}
.armory-stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.armory-stat-val {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.armory-tile.tone-good .armory-stat-val { color: oklch(0.84 0.14 145); }
.armory-tile.tone-mid .armory-stat-val { color: oklch(0.86 0.12 95); }
.armory-tile.tone-low .armory-stat-val { color: oklch(0.78 0.14 35); }
.armory-tile-art {
  width: 108px;
  height: 82px;
  display: grid;
  place-items: center;
  position: relative;
}
.armory-tile-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}
.armory-tile-art-fallback {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
}
.armory-tile-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid oklch(1 0 0 / 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  position: relative;
  z-index: 1;
}
.armory-tile-cost {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-2);
  min-width: 0;
}
.armory-tile-stars { color: oklch(0.84 0.14 95); }
.armory-tile-ev { color: var(--fg-0); }
.armory-tile-days {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
}
.armory-tile-volume {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}

@media (max-width: 1100px) {
  .armory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .armory-grid { grid-template-columns: 1fr; }
  .armory-toolbar-updated { margin-left: 0; width: 100%; }
}

@media (max-width: 900px) {
  .top-dock-inner {
    padding: 8px 12px 0;
  }

  .cursor-switcher {
    width: 260px;
  }
}
