/* eBay Hunter - "neon trading floor" with arcade loot rarity (James, 2026-11-26). */
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url(fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #05060a; --bg2: #0a0d16; --panel: rgba(16, 20, 34, .66); --panel-solid: #0f1320; --line: rgba(120, 140, 200, .16);
  --text: #e8ecf6; --dim: #8a93ab; --faint: #586078;
  --neon: #39ff88; --cyan: #22d3ee; --magenta: #ff3df2; --amber: #ffb020; --red: #ff4d6d; --blue: #3b82f6;
  --common: #9fb0c8; --rare: #3b9bff; --epic: #b26bff; --legendary: #ffcf4a; --market: #5c6680;
  --r: 16px; --r-sm: 10px; --gap: 14px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 64px; --top-h: 56px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .9, .25, 1.15);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
img { display: block; max-width: 100%; }
.mono, .price, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.noscript { padding: 2rem; }

/* ---- backdrop ------------------------------------------------------------------------- */
.bg-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(57, 255, 136, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 255, 136, .045) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.bg-glow { position: fixed; inset: -20vmax; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .55;
  background: radial-gradient(40vmax 30vmax at 15% 5%, rgba(255, 61, 242, .18), transparent 60%),
              radial-gradient(45vmax 35vmax at 85% 10%, rgba(34, 211, 238, .16), transparent 60%),
              radial-gradient(50vmax 40vmax at 50% 110%, rgba(57, 255, 136, .10), transparent 60%);
  animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3vmax, 2vmax, 0) scale(1.05); } }

/* ---- boot ----------------------------------------------------------------------------- */
.boot { display: grid; place-items: center; min-height: 100dvh; color: var(--dim); gap: 18px; align-content: center; }
.boot-gem, .gem { width: 44px; height: 44px; background: conic-gradient(from 180deg, var(--magenta), var(--epic), var(--cyan), var(--neon), var(--magenta));
  clip-path: polygon(50% 0, 92% 38%, 50% 100%, 8% 38%); filter: drop-shadow(0 0 14px rgba(255, 61, 242, .7)); }
.boot-gem { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- shell ---------------------------------------------------------------------------- */
.shell { display: grid; min-height: 100dvh; grid-template-rows: auto auto 1fr; padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 16px 10px;
  background: linear-gradient(to bottom, rgba(5, 6, 10, .92), rgba(5, 6, 10, .65)); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .18em; font-size: 15px; text-transform: uppercase; }
.brand .gem { width: 22px; height: 22px; }
.brand b { background: linear-gradient(90deg, var(--neon), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 18px rgba(57, 255, 136, .35); }
.top .spacer { flex: 1; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live-dot.on i { background: var(--neon); box-shadow: 0 0 0 0 rgba(57, 255, 136, .7); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(57, 255, 136, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(57, 255, 136, 0); } }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); cursor: pointer; transition: .2s; position: relative; }
.icon-btn:hover { border-color: rgba(57, 255, 136, .5); box-shadow: 0 0 18px rgba(57, 255, 136, .18); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--magenta); font-size: 10px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.gauge-mini { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.gauge-mini .bar { width: 46px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.gauge-mini .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--neon)); }

/* ticker */
.ticker { position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 29; overflow: hidden; height: 30px; border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 18, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: inline-flex; gap: 34px; white-space: nowrap; padding-left: 100%; animation: tick 60s linear infinite; line-height: 30px; font-size: 12.5px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }
.ticker a { color: var(--text); display: inline-flex; gap: 8px; align-items: center; }
.ticker .up { color: var(--neon); font-family: var(--mono); font-weight: 700; }
.ticker .px { font-family: var(--mono); color: var(--cyan); }

/* nav: bottom tabs on phones, a rail on wide screens */
.nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(6, 8, 14, .88); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line); }
.nav a { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--dim); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.nav a svg { width: 22px; height: 22px; transition: .25s var(--ease); }
.nav a.on { color: var(--neon); }
.nav a.on svg { transform: translateY(-2px) scale(1.1); filter: drop-shadow(0 0 8px rgba(57, 255, 136, .8)); }
.nav a.on::after { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--neon); box-shadow: 0 0 12px var(--neon); }
.nav .count { position: absolute; top: 8px; left: calc(50% + 8px); background: var(--magenta); color: #fff; border-radius: 9px; font-size: 10px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }

.main { padding: 16px; max-width: 1500px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 86px 1fr; grid-template-rows: auto auto 1fr; padding-bottom: 0; }
  .top, .ticker { grid-column: 1 / -1; }
  .nav { position: sticky; top: calc(var(--top-h) + 30px); height: calc(100dvh - var(--top-h) - 30px); grid-row: 3; grid-column: 1; display: flex; flex-direction: column;
    gap: 6px; padding: 16px 8px; border-top: 0; border-right: 1px solid var(--line); background: rgba(6, 8, 14, .5); }
  .nav a { padding: 12px 0; border-radius: 14px; }
  .nav a.on { background: rgba(57, 255, 136, .07); }
  .nav a.on::after { top: 20%; bottom: 20%; left: -8px; right: auto; width: 3px; height: auto; }
  .main { grid-row: 3; grid-column: 2; padding: 22px 26px; }
}

/* ---- common bits ---------------------------------------------------------------------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.h1 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; margin: 4px 0 14px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.h1 small { font-size: 13px; font-weight: 500; color: var(--dim); letter-spacing: .04em; }
.h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); margin: 22px 0 10px; font-weight: 500; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--dim); font-size: 13px; cursor: pointer; transition: .2s; user-select: none; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.chip.on { color: #031; background: var(--neon); border-color: var(--neon); box-shadow: 0 0 18px rgba(57, 255, 136, .35); font-weight: 700; }
.chip.on.t-legendary { background: var(--legendary); border-color: var(--legendary); box-shadow: 0 0 18px rgba(255, 207, 74, .45); }
.chip.on.t-epic { background: var(--epic); border-color: var(--epic); color: #fff; box-shadow: 0 0 18px rgba(178, 107, 255, .45); }
.chip.on.t-rare { background: var(--rare); border-color: var(--rare); color: #fff; box-shadow: 0 0 18px rgba(59, 155, 255, .45); }
.sep { width: 1px; background: var(--line); flex: none; margin: 4px 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); cursor: pointer; font-weight: 500; transition: .18s; text-decoration: none; color: var(--text); white-space: nowrap; }
.btn:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: linear-gradient(135deg, var(--neon), #12d2a0); color: #021; border: 0; font-weight: 700; box-shadow: 0 6px 24px rgba(57, 255, 136, .25); }
.btn.cyan { background: linear-gradient(135deg, var(--cyan), #3b82f6); color: #021; border: 0; font-weight: 700; }
.btn.danger { border-color: rgba(255, 77, 109, .5); color: var(--red); }
.btn.good { border-color: rgba(57, 255, 136, .5); color: var(--neon); }
.btn.good.on { background: var(--neon); color: #021; }
.btn.bad.on { background: var(--red); color: #fff; border-color: var(--red); }
.btn.unsure.on { background: var(--amber); color: #210; border-color: var(--amber); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.dim { color: var(--dim); } .faint { color: var(--faint); } .neon { color: var(--neon); } .cyan { color: var(--cyan); } .amber { color: var(--amber); } .red { color: var(--red); } .magenta { color: var(--magenta); }
.empty { text-align: center; padding: 60px 20px; color: var(--dim); }
.empty .gem { margin: 0 auto 18px; width: 60px; height: 60px; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(6deg); } }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 20px; }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .07); color: var(--dim); white-space: nowrap; }
.pill.bin { background: rgba(34, 211, 238, .14); color: var(--cyan); }
.pill.offer { background: rgba(255, 61, 242, .14); color: var(--magenta); }
.pill.auction { background: rgba(255, 176, 32, .14); color: var(--amber); }
.pill.fresh { background: rgba(57, 255, 136, .16); color: var(--neon); animation: blink 1.6s ease-in-out infinite; }
.pill.api { background: rgba(59, 130, 246, .16); color: #8db8ff; }
.pill.parts { background: rgba(255, 77, 109, .14); color: var(--red); }
.pill.good { background: rgba(57, 255, 136, .16); color: var(--neon); } .pill.bad { background: rgba(255, 77, 109, .16); color: var(--red); } .pill.unsure { background: rgba(255, 176, 32, .16); color: var(--amber); }
@keyframes blink { 50% { opacity: .55; } }

/* ---- deal cards ----------------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { --tier: var(--market); position: relative; border-radius: var(--r); background: var(--panel-solid); overflow: hidden; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--tier) 40%, transparent); transition: transform .35s var(--ease), box-shadow .35s, opacity .3s;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 10px 30px -12px color-mix(in srgb, var(--tier) 55%, transparent);
  animation: deal-in .55s var(--ease) both; touch-action: pan-y; user-select: none; outline: none; }
.card:hover, .card.sel { transform: translateY(-4px) scale(1.01); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier) 70%, transparent), 0 18px 46px -14px color-mix(in srgb, var(--tier) 80%, transparent); }
.card.sel { outline: 2px solid var(--tier); outline-offset: 2px; }
@keyframes deal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.card.t-common { --tier: var(--common); } .card.t-rare { --tier: var(--rare); } .card.t-epic { --tier: var(--epic); } .card.t-legendary { --tier: var(--legendary); }
.card.t-none { --tier: #3a4258; border-style: dashed; }
.card .media { position: relative; aspect-ratio: 4 / 3; background: #0b0e18; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .media img { transform: scale(1.05); }
.card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 18, .95) 2%, rgba(8, 10, 18, .2) 45%, transparent 70%); }
.card .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); }
.tier-badge { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(5, 6, 10, .72); color: var(--tier);
  border: 1px solid color-mix(in srgb, var(--tier) 60%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--tier) 45%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tier-badge .gem { width: 13px; height: 13px; background: var(--tier); filter: drop-shadow(0 0 6px var(--tier)); }
.disc { position: absolute; z-index: 2; top: 10px; right: 10px; font-family: var(--mono); font-weight: 700; font-size: 22px; color: var(--neon);
  text-shadow: 0 0 16px rgba(57, 255, 136, .7); padding: 2px 9px; border-radius: 10px; background: rgba(5, 6, 10, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card .overlay-price { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.big-price { font-family: var(--mono); font-weight: 700; font-size: 26px; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.big-price small { font-size: 13px; color: var(--dim); font-weight: 500; margin-left: 6px; text-decoration: line-through; }
.card .body { padding: 12px 13px 13px; display: grid; gap: 9px; }
.card .title { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--dim); }
.card .foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--faint); }
/* legendary: holographic foil, shimmer sweep, glowing frame */
.card.t-legendary { border: 0; padding: 1.5px; background: conic-gradient(from var(--ang, 0deg), #ffcf4a, #ff3df2, #22d3ee, #39ff88, #ffcf4a); animation: deal-in .55s var(--ease) both, spinang 6s linear infinite; }
.card.t-legendary > .inner { border-radius: calc(var(--r) - 1.5px); background: var(--panel-solid); overflow: hidden; height: 100%; }
.card.t-legendary .media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: color-dodge; opacity: .35;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 45%, rgba(255, 61, 242, .5) 50%, rgba(34, 211, 238, .5) 55%, transparent 70%);
  background-size: 250% 100%; animation: foil 3.2s ease-in-out infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinang { to { --ang: 360deg; } }
@keyframes foil { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.card.t-epic .tier-badge { animation: pulse-epic 2.4s ease-in-out infinite; }
@keyframes pulse-epic { 50% { box-shadow: 0 0 22px rgba(178, 107, 255, .8); } }
/* swipe affordances */
.card .swipe-hint { position: absolute; z-index: 3; top: 40%; font-weight: 700; font-size: 18px; letter-spacing: .12em; padding: 8px 14px; border-radius: 12px; opacity: 0; transition: opacity .1s; pointer-events: none; }
.card .swipe-hint.good { left: 14px; color: var(--neon); border: 2px solid var(--neon); transform: rotate(-10deg); }
.card .swipe-hint.bad { right: 14px; color: var(--red); border: 2px solid var(--red); transform: rotate(10deg); }
.card.leaving { pointer-events: none; transition: transform .4s ease-in, opacity .4s; opacity: 0; }

/* price band: where this price sits among the nearest sold comps */
.band { position: relative; height: 22px; }
.band .rail { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.band .iqr { position: absolute; top: 7px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(34, 211, 238, .35), rgba(178, 107, 255, .35)); }
.band .med { position: absolute; top: 4px; width: 2px; height: 14px; background: var(--text); opacity: .7; }
.band .me { position: absolute; top: 2px; width: 14px; height: 18px; margin-left: -7px; clip-path: polygon(50% 100%, 0 0, 100% 0); background: var(--neon); filter: drop-shadow(0 0 6px var(--neon)); }
.band .me.over { background: var(--red); filter: drop-shadow(0 0 6px var(--red)); }
.band-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); font-family: var(--mono); margin-top: -2px; }

/* ---- detail sheet --------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(2, 3, 6, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 51; inset: auto 0 0 0; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; padding-bottom: calc(20px + var(--safe-b));
  background: linear-gradient(to bottom, rgba(14, 18, 30, .97), rgba(8, 10, 18, .99)); border-top: 1px solid color-mix(in srgb, var(--tier, var(--neon)) 50%, transparent);
  box-shadow: 0 -20px 60px -10px color-mix(in srgb, var(--tier, var(--neon)) 35%, transparent); animation: sheet-up .45s var(--ease) both; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (min-width: 900px) {
  .sheet { inset: 0 0 0 auto; width: min(560px, 44vw); max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid color-mix(in srgb, var(--tier, var(--neon)) 50%, transparent);
    box-shadow: -20px 0 60px -10px color-mix(in srgb, var(--tier, var(--neon)) 30%, transparent); animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateX(100%); } }
}
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin: 10px auto 4px; }
@media (min-width: 900px) { .sheet .grab { display: none; } }
.sheet .close { position: sticky; top: 10px; float: right; margin: 10px 12px 0 0; z-index: 3; }
.sheet .pad { padding: 4px 18px 18px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding: 0 18px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 86%; max-width: 460px; aspect-ratio: 4/3; object-fit: contain; background: #0a0d16; border-radius: 14px; scroll-snap-align: center; border: 1px solid var(--line); cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .94); display: grid; place-items: center; animation: fade .2s both; cursor: zoom-out; }
.zoom img { max-width: 100vw; max-height: 100dvh; object-fit: contain; touch-action: pinch-zoom; }
.dtitle { font-size: 19px; line-height: 1.3; margin: 14px 0 8px; font-weight: 500; }
.pricebox { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: end; padding: 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); margin: 12px 0; }
.pricebox .big-price { font-size: 34px; }
.pricebox .disc { position: static; font-size: 26px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.stat { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--mono); font-size: 17px; margin-top: 2px; }
.stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.chart { width: 100%; height: 190px; border-radius: 14px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.chart text { fill: var(--faint); font-family: var(--mono); font-size: 10px; }
.chart .dot { fill: var(--cyan); opacity: .75; }
.chart .dot:hover { opacity: 1; r: 6; }
.chart .medl { stroke: var(--text); stroke-dasharray: 4 4; opacity: .5; }
.chart .mel { stroke: var(--neon); stroke-width: 2; filter: drop-shadow(0 0 4px var(--neon)); }
.chart .barl { stroke: var(--epic); stroke-dasharray: 2 5; opacity: .8; }
.reasons { margin: 6px 0 0; padding-left: 18px; color: var(--dim); font-size: 13.5px; line-height: 1.6; }
.desc { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; color: #c9cfdf; max-height: 260px; overflow: hidden; position: relative; }
.desc.open { max-height: none; }
.desc:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, #0b0e18); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.specs dt { color: var(--dim); } .specs dd { margin: 0; }
.actions { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 18px calc(12px + var(--safe-b));
  background: linear-gradient(to top, rgba(8, 10, 18, 1) 70%, rgba(8, 10, 18, 0)); }
textarea.notes { width: 100%; min-height: 70px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); padding: 10px 12px; resize: vertical; }

/* ---- live feed ------------------------------------------------------------------------ */
.feed { display: grid; gap: 8px; }
.feed-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--tier, var(--market)); animation: slide-in .5s var(--ease) both; }
.feed-item.t-legendary { --tier: var(--legendary); box-shadow: 0 0 24px -6px rgba(255, 207, 74, .5); } .feed-item.t-epic { --tier: var(--epic); } .feed-item.t-rare { --tier: var(--rare); } .feed-item.t-common { --tier: var(--common); }
.feed-item.alert { background: linear-gradient(90deg, rgba(57, 255, 136, .1), var(--panel) 40%); }
@keyframes slide-in { from { opacity: 0; transform: translateX(-24px); } }
.feed-item img, .feed-item .ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #0b0e18; }
.feed-item .t { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-item .s { font-size: 11.5px; color: var(--dim); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.feed-item .p { text-align: right; font-family: var(--mono); font-weight: 700; }
.feed-item .p small { display: block; font-size: 12px; color: var(--neon); }

/* ---- hunts / engine ------------------------------------------------------------------- */
.hunts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.hunt { padding: 14px; display: grid; gap: 10px; }
.hunt.off { opacity: .55; }
.hunt .q { font-family: var(--mono); font-size: 12px; color: var(--cyan); word-break: break-word; }
.hunt .kv { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.hunt .kv b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.switch { position: relative; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 13px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); transition: .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--dim); transition: .25s var(--ease); }
.switch input:checked + i { background: rgba(57, 255, 136, .25); border-color: var(--neon); box-shadow: 0 0 14px rgba(57, 255, 136, .3); }
.switch input:checked + i::after { left: 23px; background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.switch input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile { padding: 16px; display: grid; gap: 10px; align-content: start; }
.tile h3 { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.tile .big { font-family: var(--mono); font-size: 30px; font-weight: 700; }
.ring { width: 120px; height: 120px; }
.ring .track { stroke: rgba(255, 255, 255, .08); }
.ring .val { stroke: url(#ringgrad); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ok-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.ok-dot.bad { background: var(--red); box-shadow: 0 0 10px var(--red); } .ok-dot.warn { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.form input, .form select, .form textarea { text-transform: none; letter-spacing: normal; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  padding: 10px 12px; font-size: 15px; color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .check { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: normal; font-size: 14px; color: var(--text); }
.list-mini { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.list-mini a { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; color: var(--text); font-size: 12.5px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.list-mini img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }

/* ---- toasts / fx ---------------------------------------------------------------------- */
.toasts { position: fixed; z-index: 90; top: calc(70px + var(--safe-t)); right: 12px; left: 12px; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; max-width: 420px; width: 100%; display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px;
  background: rgba(12, 16, 28, .96); border: 1px solid color-mix(in srgb, var(--tier, var(--neon)) 60%, transparent); box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--tier, var(--neon)) 60%, transparent);
  animation: toast-in .5s var(--ease) both; cursor: pointer; }
.toast.t-legendary { --tier: var(--legendary); } .toast.t-epic { --tier: var(--epic); } .toast.t-rare { --tier: var(--rare); } .toast.t-common { --tier: var(--common); }
.toast img, .toast .gem { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.toast b { display: block; font-size: 13.5px; } .toast span { font-size: 12.5px; color: var(--dim); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
.fx { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.banner { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(255, 61, 242, .14), rgba(34, 211, 238, .08)); border: 1px solid rgba(255, 61, 242, .35); }
.kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); }
.hint { font-size: 12px; color: var(--faint); margin-top: 18px; text-align: center; }
@media (max-width: 899px) { .desk-only { display: none !important; } }
@media (min-width: 900px) { .mob-only { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; padding-left: 16px; }
}
.sheet .tier-badge, .feed .tier-badge { position: static; }
/* phones: the chip rows scroll sideways, so the column must not grow to fit them */
.shell { grid-template-columns: minmax(0, 1fr); }
.main, .top, .ticker { min-width: 0; }
@media (min-width: 900px) { .shell { grid-template-columns: 86px minmax(0, 1fr); } }
@media (max-width: 560px) { .card .media { aspect-ratio: 16 / 11; } .big-price { font-size: 24px; } .h1 { margin-bottom: 10px; } }
.h1 small.neon { color: var(--neon); } .h1 small.red { color: var(--red); }
.form .check { grid-template-columns: none; } .form .check input { width: 20px; height: 20px; flex: none; padding: 0; accent-color: var(--neon); }
/* ---- login ---------------------------------------------------------------------------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(420px, 100%); padding: 34px 26px 26px; display: grid; gap: 14px; text-align: center; justify-items: center;
  box-shadow: 0 30px 80px -30px rgba(57, 255, 136, .35), 0 0 0 1px rgba(57, 255, 136, .15); animation: deal-in .6s var(--ease) both; }
.login-card h1 { margin: 6px 0 0; font-size: 26px; letter-spacing: .2em; text-transform: uppercase; }
.login-card h1 b { background: linear-gradient(90deg, var(--neon), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-card .form { width: 100%; }
.gem.big { width: 84px; height: 84px; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 0 26px rgba(255, 61, 242, .7)); }
.btn.huge { width: 100%; padding: 16px 18px; font-size: 17px; border-radius: 16px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--dim); }
.btn.ghost:hover { color: var(--text); }
/* touch screens: no sticky hover lift, no keyboard-selection ring, no long-press image menu */
.card { -webkit-touch-callout: none; }
@media (hover: none) {
  .card:hover, .card.sel { transform: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 10px 30px -12px color-mix(in srgb, var(--tier) 55%, transparent); outline: none; }
  .card:hover .media img { transform: none; }
}

/* ---- the reason sheet ("why not?") and tuning (James, 2026-11-26) ----------------------- */
.scrim.top { z-index: 60; }
.sheet.why { z-index: 61; --tier: var(--red); }
@media (min-width: 900px) {
  .sheet.why { inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(640px, 92vw); max-height: 88dvh; border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); box-shadow: 0 30px 90px -20px rgba(255, 77, 109, .35); animation: why-in .28s var(--ease) both; }
  @keyframes why-in { from { opacity: 0; transform: translate(-50%, -47%) scale(.97); } }
}
.why-h { margin: 6px 0; font-size: 22px; }
.why-title { font-size: 13px; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.why-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.why-reasons .chip.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 18px rgba(255, 77, 109, .4); }
.why-reasons .kbd { font-size: 10px; opacity: .55; }
.words { display: flex; flex-wrap: wrap; gap: 6px; }
.word { border: 1px dashed rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); border-radius: 8px; padding: 6px 10px; font-size: 14px; cursor: pointer; touch-action: manipulation; }
.word.on { border-style: solid; border-color: var(--red); background: rgba(255, 77, 109, .2); color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 12px 0 2px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; font-size: 13px; color: var(--dim); cursor: pointer; }
.seg button.on { background: rgba(34, 211, 238, .16); color: var(--cyan); font-weight: 700; }
.fixrow { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; background: rgba(255, 255, 255, .02); }
.fixlabel { font-size: 12.5px; color: var(--cyan); margin-bottom: 4px; font-weight: 700; }
.impact { font-size: 13px; line-height: 1.45; }
.impact.warn { color: var(--amber); }
.impact details { margin-top: 6px; }
.impact summary { cursor: pointer; color: var(--dim); font-size: 12px; }
.impact ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; max-height: 180px; overflow-y: auto; }
.impact li { margin: 3px 0; }
.opt { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 14px; cursor: pointer; }
.opt input { width: 20px; height: 20px; flex: none; accent-color: var(--red); }
.small { font-size: 12px; }
.tuning { padding: 14px; margin-bottom: 14px; display: grid; gap: 8px; }
.tuning .h2 { margin: 12px 0 4px; }
.tuning summary.h2 { cursor: pointer; display: list-item; }
.tuning .change { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; display: grid; gap: 6px; }
.tuning .change.row { display: flex; }
.tuning p { margin: 0; }
.pill.rule { text-transform: none; letter-spacing: normal; font-weight: 500; font-size: 12px; background: rgba(255, 77, 109, .12); color: var(--text); }
.pill.rule button { border: 0; background: none; color: var(--red); cursor: pointer; padding: 0 0 0 6px; font-size: 15px; line-height: 1; }
.hunt .health b { font-family: var(--mono); }
.hunt .kv b.red { color: var(--red); } .hunt .kv b.amber { color: var(--amber); }
.phrase { margin-top: 12px; }
.phrase label { display: grid; gap: 5px; text-transform: uppercase; letter-spacing: .08em; }
.phrase input { text-transform: none; letter-spacing: normal; font-family: var(--mono); font-size: 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); padding: 9px 11px; }
.phrase input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
.phrase .fixrow { margin-top: 6px; }
.phrase input { color: var(--text); }
