/* Proc rates: a night-sky observatory for luck. Gold = measured. Solid = sure, outline = a guess. */
:root {
  --bg: #070a12; --ink: #e9edf6; --dim: #8a94a8; --faint: #556072;
  --panel: #111725; --panel-hi: #182033; --line: rgba(255, 255, 255, .08);
  --brass: #d9b36a; --brass-hi: #f6dc9e; --slate: #8fa3c8; --ok: #6fd39a; --warn: #e8a95a;
  --q0: #9aa3b2; --q1: #e9edf6; --q2: #5fe07a; --q3: #58a6ff; --q4: #b98cff; --q5: #ff9d47;
  --num: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --px: 0px; --py: 0px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 500 17px/1.45 var(--num); letter-spacing: .01em;
  display: flex; flex-direction: column; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 9; background: var(--panel); padding: 8px 12px; }

/* --- sky: two layers that drift apart with the pointer --- */
.sky, .nebula { position: fixed; inset: -20px; z-index: -1; pointer-events: none; }
.sky { background: radial-gradient(1200px 700px at 78% -10%, #16223d 0%, transparent 60%), linear-gradient(#0a0e19, var(--bg)); }
.sky i { position: absolute; left: 0; top: 0; width: 1px; height: 1px; border-radius: 50%; transform: translate(var(--px), var(--py)); transition: transform .6s ease-out; }
.nebula { background:
    radial-gradient(520px 320px at 12% 18%, rgba(185, 140, 255, .07), transparent 70%),
    radial-gradient(640px 380px at 88% 72%, rgba(217, 179, 106, .06), transparent 70%),
    radial-gradient(420px 300px at 55% 40%, rgba(88, 166, 255, .045), transparent 70%);
  transform: translate(calc(var(--px) * 2.2), calc(var(--py) * 2.2)); transition: transform .8s ease-out; }

/* --- frame --- */
.top, main, .foot { width: min(1120px, 100% - 40px); margin-inline: auto; }
.top { display: flex; align-items: center; gap: 14px; padding: 22px 0 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brass); }
.brand svg { filter: drop-shadow(0 0 6px rgba(246, 220, 158, .45)); }
.brand-name { font: 600 22px/1 var(--serif); color: var(--ink); }
.brand-sub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.badge { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); padding: 2px 7px; border-radius: 99px; }
nav { margin-left: auto; display: flex; gap: 4px; }
nav a { text-decoration: none; color: var(--dim); padding: 6px 12px; border-radius: 99px; transition: color .2s, background .2s; }
nav a:hover { color: var(--ink); }
nav a[aria-current] { color: var(--brass-hi); background: rgba(217, 179, 106, .1); box-shadow: inset 0 0 0 1px rgba(217, 179, 106, .25); }
main { flex: 1; padding: 18px 0 60px; outline: none; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 26px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); }
.loading { height: 40vh; display: grid; place-items: center; }
.loading::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brass-hi); box-shadow: 0 0 18px 4px rgba(246, 220, 158, .5); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.5); opacity: .4; } }

/* --- controls --- */
.controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 22px; }
.find { position: relative; flex: 0 1 280px; }
.find svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; }
.find input { width: 100%; font: inherit; color: var(--ink); background: rgba(17, 23, 37, .7); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px 8px 36px; backdrop-filter: blur(6px); transition: border-color .2s, box-shadow .2s; }
.find input::placeholder { color: var(--faint); }
.find input:focus { outline: none; border-color: rgba(217, 179, 106, .55); box-shadow: 0 0 0 3px rgba(217, 179, 106, .12); }
.seg { display: flex; background: rgba(17, 23, 37, .7); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.seg button { font: inherit; font-size: 14px; color: var(--dim); background: none; border: 0; border-radius: 99px; padding: 5px 13px; cursor: pointer; transition: color .2s, background .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: #1a1408; background: linear-gradient(180deg, var(--brass-hi), var(--brass)); }

/* --- the wall of cards --- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; perspective: 1400px; }
.nomatch { color: var(--dim); grid-column: 1 / -1; text-align: center; padding: 40px 0; }
.card { --q: var(--q1); --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; min-height: 196px; padding: 16px 18px 14px; border-radius: 16px;
  text-decoration: none; color: var(--ink); isolation: isolate; overflow: hidden;
  background:
    radial-gradient(220px 120px at 0% 0%, color-mix(in srgb, var(--q) 16%, transparent), transparent 70%),
    linear-gradient(165deg, var(--panel-hi), var(--panel) 55%, #0b0f19);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px var(--line), 0 18px 34px -22px #000;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; will-change: transform; }
.card.q0 { --q: var(--q0); } .card.q2 { --q: var(--q2); } .card.q3 { --q: var(--q3); } .card.q4 { --q: var(--q4); } .card.q5 { --q: var(--q5); }
a.card:hover, a.card:focus-visible { transition: transform .08s linear, box-shadow .3s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px color-mix(in srgb, var(--q) 45%, transparent), 0 26px 44px -22px #000, 0 0 34px -12px color-mix(in srgb, var(--q) 55%, transparent); }
.wall.enter .card { animation: rise .5s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i) * 35ms); }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
/* light that follows the pointer */
.glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .11), transparent 60%); }
.card:hover .glare { opacity: 1; }
/* foil: a quiet sheen in the item's quality colour; epics and legendaries catch more light */
.foil { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity .35s;
  background: linear-gradient(115deg, transparent 28%, color-mix(in srgb, var(--q) 34%, transparent) 42%, rgba(160, 255, 240, .14) 50%, color-mix(in srgb, var(--q) 30%, transparent) 58%, transparent 72%);
  background-size: 260% 260%; background-position: var(--mx) var(--my); }
.card:hover .foil { opacity: .55; }
.card.q4 .foil { opacity: .22; } .card.q4:hover .foil { opacity: .85; }
.card.q5 .foil { opacity: .4; animation: shimmer 7s ease-in-out infinite alternate; } .card.q5:hover .foil { opacity: 1; animation: none; }
@keyframes shimmer { from { background-position: 20% 0; } to { background-position: 80% 100%; } }
.card > :not(.foil, .glare) { position: relative; z-index: 3; }
.c-name { font-weight: 600; font-size: 17px; line-height: 1.2; color: var(--q); text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-proc { font-size: 13px; color: var(--dim); margin-top: 2px; }
.c-rate { margin-top: auto; padding-top: 10px; font: 600 58px/1 var(--num); letter-spacing: -.01em; font-variant-numeric: tabular-nums; transform: translateZ(26px);
  background: linear-gradient(170deg, #fff3cf 5%, var(--brass-hi) 35%, var(--brass) 62%, #a37a35 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(246, 220, 158, .22)); }
.c-rate small { font-size: .42em; font-weight: 500; margin-left: 2px; opacity: .8; }
.s-firming .c-rate { opacity: .72; filter: none; }
.s-needs .c-rate { background: none; color: transparent; -webkit-text-stroke: 1.2px rgba(217, 179, 106, .55); filter: none; }
.s-needs.card { box-shadow: inset 0 0 0 1px var(--line), 0 18px 34px -22px #000; background: linear-gradient(165deg, rgba(24, 32, 51, .55), rgba(11, 15, 25, .55)); }
.c-more { position: absolute !important; right: 16px; top: 50%; font-size: 12px; color: var(--dim); opacity: 0; translate: 0 6px; transition: opacity .25s, translate .25s; text-align: right; }
.c-more b { display: block; color: var(--ink); font-size: 15px; }
.card:hover .c-more, .card:focus-visible .c-more { opacity: 1; translate: 0 0; }

/* range mark: star = seen, band = where the truth likely is, tick = tooltip */
.iv { position: relative; display: block; height: 22px; margin-top: 8px; }
.iv::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16) 8%, rgba(255, 255, 255, .16) 92%, transparent); }
.iv .band { position: absolute; top: 50%; height: 8px; translate: 0 -50%; border-radius: 99px; min-width: 4px;
  background: linear-gradient(90deg, rgba(217, 179, 106, .12), rgba(246, 220, 158, .55), rgba(217, 179, 106, .12)); box-shadow: 0 0 12px rgba(246, 220, 158, .25); }
.iv .exp { position: absolute; top: 3px; bottom: 3px; width: 2px; translate: -1px 0; border-radius: 2px; background: var(--slate); box-shadow: 0 0 6px rgba(143, 163, 200, .7); }
.iv .dot { position: absolute; top: 50%; width: 16px; height: 16px; translate: -50% -50%; filter: drop-shadow(0 0 5px rgba(246, 220, 158, .9)); }
.iv .dot svg { display: block; width: 100%; height: 100%; fill: #fff3cf; }
.wall.enter .iv .dot { animation: slide .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 35ms + .15s); }
@keyframes slide { from { left: 0; opacity: 0; } }
.s-needs .iv .band { background: repeating-linear-gradient(90deg, rgba(217, 179, 106, .35) 0 4px, transparent 4px 8px); box-shadow: none; }
.s-needs .iv .dot { filter: none; opacity: .7; }

/* --- pages --- */
.page h1 { font: 600 clamp(30px, 5vw, 46px)/1.08 var(--serif); margin: 0; text-wrap: balance; }
.sub { color: var(--dim); margin: 6px 0 0; }
.back { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; text-decoration: none; color: var(--dim); border: 1px solid var(--line); margin-bottom: 14px; transition: color .2s, border-color .2s, translate .2s; }
.back:hover { color: var(--brass-hi); border-color: rgba(217, 179, 106, .5); translate: -3px 0; }
.ext { color: var(--faint); text-decoration: none; margin-left: 6px; } .ext:hover { color: var(--brass-hi); }
.item.q0 h1 { color: var(--q0); } .item.q2 h1 { color: var(--q2); } .item.q3 h1 { color: var(--q3); }
.item.q4 h1, .item.q5 h1 { background: linear-gradient(100deg, var(--c) 20%, #fff 48%, var(--c) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 6s ease-in-out infinite alternate; width: fit-content; }
.item.q4 h1 { --c: var(--q4); } .item.q5 h1 { --c: var(--q5); }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero-row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin: 22px 0 22px; }
.n { font: 600 clamp(84px, 16vw, 150px)/.9 var(--num); letter-spacing: -.02em; width: fit-content;
  background: linear-gradient(170deg, #fff3cf 5%, var(--brass-hi) 35%, var(--brass) 62%, #a37a35 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(246, 220, 158, .25)); }
.n small { font-size: .4em; font-weight: 500; margin-left: 4px; }
.s-firming .hero-n .n { opacity: .78; }
.s-needs .hero-n .n { background: none; -webkit-text-stroke: 2px rgba(217, 179, 106, .6); filter: none; }
.hero-n .iv { max-width: 460px; height: 28px; margin-top: 14px; }
.hero-n .iv .band { height: 10px; } .hero-n .iv .dot { width: 22px; height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 99px; background: rgba(17, 23, 37, .75); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--dim); }
.chip b { color: var(--ink); font-weight: 600; } .chip em { font-style: normal; }
.chip .mark { font-weight: 700; }
.chip.ok { box-shadow: inset 0 0 0 1px rgba(111, 211, 154, .4); } .chip.ok .mark { color: var(--ok); }
.chip.off { box-shadow: inset 0 0 0 1px rgba(232, 169, 90, .45); } .chip.off .mark { color: var(--warn); }
/* a hundred hits as a hundred stars */
.sky-box { margin: 0; padding: 18px 18px 10px; border-radius: 18px; text-align: center;
  background: radial-gradient(circle at 30% 20%, #1a2440, #0b0f1a 75%); box-shadow: inset 0 0 0 1px var(--line), inset 0 20px 40px -20px rgba(88, 166, 255, .12), 0 24px 40px -26px #000; }
.sky-box figcaption { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }
.hundred { display: grid; grid-template-columns: repeat(10, 1fr); gap: 9px; width: min(250px, 62vw); }
.hundred i { aspect-ratio: 1; display: grid; place-items: center; }
.hundred i:not(.on)::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: rgba(200, 214, 240, .22); }
.hundred i.on svg { width: 100%; fill: #fff3cf; filter: drop-shadow(0 0 5px rgba(246, 220, 158, .95)); animation: twinkle 3.2s ease-in-out var(--d) infinite; }
@keyframes twinkle { 50% { transform: scale(.72) rotate(8deg); opacity: .7; } }

.panel { background: linear-gradient(170deg, rgba(24, 32, 51, .85), rgba(13, 17, 27, .85)); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px var(--line), 0 24px 40px -28px #000; }
.chart-panel { padding: 14px 14px 6px; }
.chart { position: relative; outline-offset: 4px; }
.chart svg { display: block; width: 100%; overflow: visible; touch-action: pan-y; }
.chart text { fill: var(--faint); font: 500 12px var(--num); }
.chart .grid { stroke: rgba(255, 255, 255, .05); } .chart .base { stroke: rgba(255, 255, 255, .16); }
.chart .area { fill: url(#fade); }
.chart .ln { fill: none; stroke: var(--brass-hi); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .expl { stroke: var(--slate); stroke-dasharray: 5 5; opacity: .8; } .chart .explab { fill: var(--slate); }
.chart .cross { stroke: rgba(255, 255, 255, .25); }
.chart .end { fill: #fff3cf; stroke: var(--bg); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(246, 220, 158, .9)); }
.tip { position: absolute; pointer-events: none; display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; font-size: 13px; color: var(--dim); white-space: nowrap;
  background: rgba(10, 14, 24, .92); box-shadow: inset 0 0 0 1px rgba(217, 179, 106, .3), 0 12px 24px -10px #000; backdrop-filter: blur(6px); }
.tip strong { font-weight: 500; color: var(--faint); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.tip .tr { color: var(--brass-hi); font-size: 20px; font-weight: 600; }
.note { color: var(--dim); }

/* --- rage --- */
.rage-head { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 22px; }
.rage-head .n { font-size: clamp(72px, 13vw, 120px); }
.legend { display: flex; gap: 16px; color: var(--dim); font-size: 14px; margin: 8px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.k { width: 14px; height: 8px; border-radius: 99px; display: inline-block; }
.k-hit, .bar.hit { background: linear-gradient(90deg, #33405c, var(--slate)); }
.k-crit, .bar.crit { background: linear-gradient(90deg, #7a5a22, var(--brass-hi)); }
.speeds { padding: 10px 22px; }
.speed-row { display: grid; grid-template-columns: 74px 1fr; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.speed-row:last-child { border: 0; }
.speed { font: 600 26px/1 var(--num); } .speed small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.bars { display: grid; gap: 7px; }
.bar { display: flex; justify-content: flex-end; align-items: center; height: 22px; width: var(--w); min-width: 44px; border-radius: 99px; padding-right: 9px;
  animation: grow .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 90ms); }
.bar b { font-size: 14px; font-weight: 600; color: #0b0f19; }
.bar.crit { box-shadow: 0 0 18px -4px rgba(246, 220, 158, .55); }
@keyframes grow { from { width: 44px; opacity: .3; } }

/* --- about --- */
.about { max-width: 720px; }
.how { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.how li { display: flex; gap: 14px; align-items: baseline; color: var(--dim); }
.how svg { flex: none; width: 14px; fill: var(--brass-hi); filter: drop-shadow(0 0 5px rgba(246, 220, 158, .8)); translate: 0 1px; }
.how b { color: var(--ink); font-weight: 600; }
.key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card.demo { min-height: 0; padding: 14px 16px; } .card.demo .c-rate { font-size: 44px; padding: 0; margin: 0; }
.keyline { display: flex; align-items: center; gap: 16px; color: var(--dim); margin: 20px 0 0; font-size: 15px; }
.demo-iv { flex: 0 0 150px; margin: 0; }
.join { margin-top: 30px; padding: 14px 18px; border-radius: 14px; color: var(--brass-hi); background: rgba(217, 179, 106, .08); box-shadow: inset 0 0 0 1px rgba(217, 179, 106, .25); width: fit-content; }
.empty-sky { display: grid; place-items: center; gap: 10px; padding: 14vh 0; color: var(--dim); text-align: center; }
.empty-sky svg { width: 28px; fill: var(--brass-hi); filter: drop-shadow(0 0 10px rgba(246, 220, 158, .8)); animation: twinkle 3s ease-in-out infinite; }
.empty-sky p { font: 600 28px var(--serif); color: var(--ink); margin: 0; }

@media (max-width: 720px) {
  .top { flex-wrap: wrap; } .brand-sub { display: none; } nav a { padding: 6px 10px; }
  .wall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { min-height: 160px; padding: 13px 13px 11px; border-radius: 14px; } .c-rate { font-size: 44px; } .c-name { font-size: 15px; }
  .c-more { display: none; } .find { flex: 1 1 100%; }
  .hero-row { grid-template-columns: 1fr; } .sky-box { width: fit-content; }
  .key { grid-template-columns: 1fr; } .keyline { flex-direction: column; align-items: flex-start; }
  .speeds { padding: 6px 14px; } .speed-row { grid-template-columns: 58px 1fr; gap: 12px; }
}
@media (hover: none) { .card.q4 .foil { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.tip[hidden] { display: none; }
.find svg { z-index: 1; pointer-events: none; }
.n .cap { display: block; font: 500 11px/1 var(--num); letter-spacing: .18em; text-transform: uppercase; -webkit-text-fill-color: var(--faint); margin-top: 8px; }

/* ===== pass 3: banner, sockets, scalable home, game tooltip ===== */
.ridges { position: absolute; left: 0; right: 0; top: 0; height: 330px; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.ridges svg { position: absolute; inset: 0 -30px; width: calc(100% + 60px); height: 100%; }
.ridges circle { transform: translate(calc(var(--px) * .6), calc(var(--py) * .6)); transition: transform .8s ease-out; }
.ridges path { transition: transform .7s ease-out; }
.ridges .r1 { transform: translate(calc(var(--px) * 1), 0); }
.ridges .r2 { fill: #0e1527; transform: translate(calc(var(--px) * 1.8), 0); }
.ridges .r3 { fill: #0a0f1c; transform: translate(calc(var(--px) * 2.8), 0); }
body { position: relative; }

.controls { flex-direction: column; align-items: center; gap: 14px; margin: 46px 0 40px; }
.controls .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.find { flex: none; width: min(560px, 100%); }
.find input { font-size: 20px; padding: 14px 48px 14px 48px; background: rgba(10, 14, 24, .72); box-shadow: 0 18px 40px -20px #000, inset 0 1px 0 rgba(255, 255, 255, .06); }
.find svg { left: 18px; width: 19px; height: 19px; }
.find kbd { position: absolute; right: 16px; top: 50%; translate: 0 -50%; font: 500 13px var(--num); color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.find input:focus + kbd, .find input:not(:placeholder-shown) + kbd { display: none; }
.seg button { display: inline-flex; align-items: center; gap: 6px; }
.seg button svg { width: 15px; height: 15px; fill: currentColor; }

/* icon socket: bevelled, quality-coloured rim; glyph until the real icon loads over it */
.socket { --q: var(--q1); position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #26314d, #0b0f19 75%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--q) 70%, #000), inset 0 2px 3px rgba(255, 255, 255, .14), inset 0 -6px 10px rgba(0, 0, 0, .5), 0 0 14px -4px color-mix(in srgb, var(--q) 60%, transparent); }
.socket.q0 { --q: var(--q0); } .socket.q2 { --q: var(--q2); } .socket.q3 { --q: var(--q3); } .socket.q4 { --q: var(--q4); } .socket.q5 { --q: var(--q5); }
.socket svg { width: 58%; fill: color-mix(in srgb, var(--q) 75%, #fff); opacity: .9; filter: drop-shadow(0 1px 1px #000); }
.socket img { position: absolute; inset: 1.5px; width: calc(100% - 3px); height: calc(100% - 3px); border-radius: 7px; object-fit: cover; }
.socket.sm { width: 30px; height: 30px; border-radius: 7px; } .socket.lg { width: 64px; height: 64px; border-radius: 12px; }
.c-head { display: flex; gap: 12px; align-items: flex-start; }
.c-head .c-name, .c-head .c-proc { display: block; } .c-head .c-name { display: -webkit-box; }
.card { min-height: 204px; }
.wall { margin-bottom: 26px; }

/* the long tail: tight rows, still glanceable */
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px 22px; }
.line { --q: var(--q1); display: grid; grid-template-columns: 30px minmax(0, 1.5fr) minmax(60px, 1fr) 64px; gap: 12px; align-items: center; padding: 6px 12px 6px 6px; border-radius: 11px; text-decoration: none;
  transition: background .2s, box-shadow .2s, translate .2s; }
.line.q0 { --q: var(--q0); } .line.q2 { --q: var(--q2); } .line.q3 { --q: var(--q3); } .line.q4 { --q: var(--q4); } .line.q5 { --q: var(--q5); }
.line:hover, .line:focus-visible { background: linear-gradient(90deg, color-mix(in srgb, var(--q) 12%, transparent), rgba(24, 32, 51, .7)); box-shadow: inset 0 0 0 1px var(--line); translate: 3px 0; }
.l-name { color: var(--q); font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line .iv { margin: 0; height: 18px; } .line .iv .dot { width: 11px; height: 11px; } .line .iv .band { height: 5px; }
.l-rate { text-align: right; font: 600 22px/1 var(--num); font-variant-numeric: tabular-nums; color: var(--brass-hi); }
.l-rate small { font-size: .55em; font-weight: 500; opacity: .75; margin-left: 1px; }
.s-firming .l-rate { opacity: .7; } .s-needs .l-rate { color: transparent; -webkit-text-stroke: .9px rgba(217, 179, 106, .6); }
.list.enter .line { animation: rise .4s ease-out backwards; animation-delay: calc(var(--i) * 18ms + .25s); }
.more { grid-column: 1 / -1; justify-self: center; margin-top: 14px; font: inherit; color: var(--brass-hi); background: rgba(217, 179, 106, .08); border: 0; box-shadow: inset 0 0 0 1px rgba(217, 179, 106, .3); border-radius: 99px; padding: 7px 22px; cursor: pointer; }
.more:hover { background: rgba(217, 179, 106, .16); }

/* the item as the game shows it */
.gametip { --q: var(--q1); display: flex; gap: 16px; align-items: flex-start; width: 400px; max-width: 100%; justify-self: end; padding: 18px 20px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 14, 26, .94), rgba(6, 9, 17, .94));
  box-shadow: inset 0 0 0 1px rgba(200, 210, 235, .28), inset 0 0 0 3px rgba(0, 0, 0, .55), inset 0 0 0 4px rgba(200, 210, 235, .08), 0 28px 48px -26px #000, 0 0 60px -30px color-mix(in srgb, var(--q) 70%, transparent); }
.gametip.q0 { --q: var(--q0); } .gametip.q2 { --q: var(--q2); } .gametip.q3 { --q: var(--q3); } .gametip.q4 { --q: var(--q4); } .gametip.q5 { --q: var(--q5); }
.gt-body { min-width: 0; flex: 1; } .gt-name { display: block; color: var(--q); font-size: 18px; line-height: 1.2; }
.gt-row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 15px; margin-top: 4px; }
.gt-fx { color: #35e06a; margin: 8px 0 0; font-size: 15px; line-height: 1.35; }
.hero-row { align-items: start; }

@media (max-width: 720px) {
  .ridges { height: 240px; } .controls { margin: 22px 0 24px; } .find input { font-size: 17px; padding: 11px 16px 11px 42px; } .find kbd { display: none; }
  .socket { width: 34px; height: 34px; } .c-head { gap: 9px; } .card { min-height: 170px; }
  .list { grid-template-columns: 1fr; } .line { grid-template-columns: 30px minmax(0, 1.6fr) minmax(40px, .8fr) 58px; gap: 9px; }
}

.hero-row { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 720px) { .hero-row { grid-template-columns: 1fr; } .gametip { justify-self: start; } }

/* ===== the star map: every item at once, no words ===== */
.map { display: grid; grid-template-columns: 34px 1fr; margin-top: 8px; border-radius: 20px; padding: 18px 22px 30px 8px;
  background: radial-gradient(900px 300px at 70% 0%, rgba(40, 58, 104, .35), transparent 70%), linear-gradient(180deg, rgba(13, 18, 31, .72), rgba(7, 10, 18, .55));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 30px 60px -40px rgba(88, 166, 255, .18); }
.lanes { display: grid; align-items: center; justify-items: center; }
.lanes svg { width: 17px; fill: var(--faint); }
.field { position: relative; height: clamp(250px, 34vw, 380px); }
.tick { position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(255, 255, 255, .07) 20%, rgba(255, 255, 255, .07)); }
.tick i { position: absolute; top: 100%; translate: -50% 6px; font: 500 11px var(--num); font-style: normal; color: var(--faint); }
.mstar { --q: var(--q1); position: absolute; width: var(--s); height: var(--s); translate: -50% -50%; display: block; border-radius: 50%; transition: opacity .35s, scale .2s, filter .2s;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--q) 85%, transparent)); }
.mstar.q0 { --q: var(--q0); } .mstar.q2 { --q: var(--q2); } .mstar.q3 { --q: var(--q3); } .mstar.q4 { --q: var(--q4); } .mstar.q5 { --q: var(--q5); }
.mstar svg { display: block; width: 100%; height: 100%; fill: color-mix(in srgb, var(--q) 55%, #fff); }
.mstar.s-settled svg { animation: twinkle 4s ease-in-out var(--d) infinite; }
.mstar.s-firming { opacity: .7; }
.mstar.s-needs { opacity: .5; filter: none; } .mstar.s-needs svg { fill: none; stroke: var(--q); stroke-width: 1.6; }
.mstar::after { content: ""; position: absolute; inset: -7px; }
.mstar:hover, .mstar:focus-visible { scale: 1.7; opacity: 1; z-index: 2; filter: drop-shadow(0 0 9px var(--q)); outline: none; }
.mstar.off { opacity: .08; pointer-events: none; filter: none; }
.field.filtered .mstar:not(.off) { scale: 1.25; opacity: 1; }
.field.enter .mstar { animation: rise .6s ease-out backwards; animation-delay: calc(var(--d) * 120ms + .2s); }
.pin { position: absolute; z-index: 3; pointer-events: none; display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 11px; white-space: nowrap; font-weight: 600; font-size: 15px;
  background: rgba(8, 11, 20, .94); box-shadow: inset 0 0 0 1px rgba(200, 210, 235, .25), 0 14px 26px -12px #000; }
.pin[hidden] { display: none; }
.pin b { font-size: 19px; color: var(--brass-hi); margin-left: 4px; } .pin small { font-size: .6em; font-weight: 500; }
.pin .q0 { color: var(--q0); } .pin .q2 { color: var(--q2); } .pin .q3 { color: var(--q3); } .pin .q4 { color: var(--q4); } .pin .q5 { color: var(--q5); }
@media (max-width: 720px) { .map { grid-template-columns: 24px 1fr; padding: 14px 14px 28px 4px; } .field { height: 300px; } }
