/* Ripped — black, neon green and white, card-first. --rc is the rarity colour of whatever card an element shows. */
:root {
  --bg: #000000; --bg2: #0a0d0c; --panel: #0f1412; --panel2: #161c19; --line: #1f2925; --line2: #2a3630;
  --text: #f7fbf9; --muted: #9fb0a8; --dim: #65746d;
  --acc: #2ee6a2; --acc-2: #7cf7c9; --acc-ink: #03130c; --vio: #15a06c; --cyan: #ffffff;
  --green: #2bd576; --red: #ff4d61;
  --t-common: #aab3bd; --t-uncommon: #4dd0e1; --t-rare: #4b8ef0; --t-double: #a26bff; --t-ultra: #ff5c8a; --t-illus: #ff9f43; --t-sir: #ff5e3a; --t-hyper: #f5c542;
  --radius: 14px; --radius-s: 10px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif; --display: 'Chakra Petch', 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background:
  radial-gradient(900px 500px at 85% -10%, rgba(46, 230, 162, .08), transparent 60%),
  radial-gradient(700px 420px at -5% 10%, rgba(46, 230, 162, .10), transparent 60%),
  linear-gradient(180deg, #060908 0%, var(--bg) 40%); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
::selection { background: var(--acc); color: var(--acc-ink); }
.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .green { color: var(--green); } .red { color: var(--red); } .acc { color: var(--acc); }
.mono { font-family: var(--mono); font-size: .92em; }
.label { font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
.hide { display: none !important; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(140%); background: rgba(0, 0, 0, .78); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font: 800 27px/1 'Poppins', var(--font); letter-spacing: -.03em; color: #fff; }
.logo-box { width: 40px; border-radius: 8px; height: auto; flex: none; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.logo:hover .logo-box { transform: translateY(-2px) rotate(-6deg); }
.logo b { color: var(--acc); font-weight: 800; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 9px 14px; border-radius: 9px; color: var(--muted); font: 600 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; transition: color .2s, background .2s; position: relative; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a.on { color: var(--text); }
.nav a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -14px; height: 2px; background: var(--acc); box-shadow: 0 0 12px var(--acc); border-radius: 2px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; }
.x-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); display: inline-grid; place-items: center; transition: border-color .2s, transform .15s; } .x-btn:hover { border-color: var(--acc); transform: translateY(-1px); } .x-btn svg { width: 17px; height: 17px; fill: currentColor; }
.wl-short { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel2); font: 700 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-1px); border-color: #3a4a42; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(180deg, var(--acc-2), var(--acc)); color: var(--acc-ink); border-color: transparent; box-shadow: 0 8px 28px -8px rgba(46, 230, 162, .7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.primary:hover { box-shadow: 0 10px 34px -6px rgba(46, 230, 162, .9), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.primary::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.btn.buy { background: linear-gradient(180deg, var(--acc-2), var(--acc)); color: var(--acc-ink); border-color: transparent; }
.btn.sell { background: var(--panel2); color: var(--text); border-color: var(--line2); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 13px; font-size: 12px; border-radius: 9px; }
.btn.lg { padding: 16px 26px; font-size: 15px; border-radius: 13px; }
.btn.block { width: 100%; }

/* ---------- live drops ---------- */
.drops { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 13, 12,.9), rgba(0, 0, 0,.6)); overflow: hidden; position: relative; }
.drops .wrap { display: flex; align-items: center; gap: 14px; height: 84px; }
.drops-label { flex: none; display: flex; flex-direction: column; gap: 6px; padding-right: 14px; border-right: 1px solid var(--line); }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 var(--display); letter-spacing: .14em; color: var(--acc); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(46, 230, 162, .7); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 162, .6); } 100% { box-shadow: 0 0 0 10px rgba(46, 230, 162, 0); } }
.drops-track { display: flex; gap: 8px; flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.drop { --rc: var(--acc); flex: none; width: 128px; height: 66px; border-radius: 10px; background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; padding: 6px 8px; }
.drop::before { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--rc); box-shadow: 0 0 14px var(--rc); }
.drop::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120px 50px at 50% 110%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 70%); pointer-events: none; }
.drop img { position: absolute; right: 8px; top: 6px; width: 38px; height: 53px; object-fit: contain; border-radius: 3px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.drop .t { position: relative; z-index: 1; font: 700 12px/1.1 var(--display); }
.drop .s { position: relative; z-index: 1; font-size: 11px; margin-top: auto; font-weight: 700; }
.drop .s.b { color: var(--green); } .drop .s.x { color: var(--red); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 30px; position: relative; overflow-x: clip; }
.hero-c { padding: 48px 0 20px; }
.hero-c .wrap { display: block; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 13px 7px 8px; border-radius: 999px; background: rgba(46, 230, 162, .08); border: 1px solid rgba(46, 230, 162, .3); font-size: 13px; font-weight: 600; color: #bfffe6; }
.eyebrow b { background: var(--acc); color: var(--acc-ink); border-radius: 999px; padding: 3px 8px; font: 700 11px/1 var(--display); letter-spacing: .08em; }
.hero h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 700; margin: 20px 0 18px; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; }
.hero h1 .glow { background: linear-gradient(90deg, var(--acc-2), var(--acc) 40%, #15a06c 80%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(46, 230, 162, .35)); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.hstat { padding: 14px 16px; border-radius: 12px; background: rgba(15, 20, 18, .7); border: 1px solid var(--line); }
.hstat .v { font: 700 24px/1 var(--display); margin-top: 7px; font-variant-numeric: tabular-nums; }

/* ---------- section heads ---------- */
.section { padding: 46px 0; }
.centered .sec-head { justify-content: center; text-align: center; } .centered .sec-head > div { margin: 0 auto; } .centered .sec-head p { margin-inline: auto; max-width: 720px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3vw, 38px); text-transform: uppercase; }
.sec-head h2 .n { color: var(--acc); font-size: .6em; vertical-align: super; margin-right: 6px; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- packs ---------- */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pack { text-align: left; padding: 16px; border-radius: 14px; background: linear-gradient(180deg, var(--panel), #0b0f0d); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.pack:hover { transform: translateY(-3px); border-color: var(--line2); }
.pack.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 14px 40px -16px rgba(46, 230, 162, .6); }
.pack[data-empty] { opacity: .55; }
.pack-top { display: flex; justify-content: space-between; align-items: center; font: 700 17px/1.1 var(--display); text-transform: uppercase; }
.pack-price { font: 700 22px/1 var(--mono); } .pack-price small { font-size: 12px; color: var(--muted); }
.odds-strip { display: flex; gap: 2px; height: 5px; border-radius: 5px; overflow: hidden; background: var(--bg2); } .odds-strip i { display: block; height: 100%; background: var(--acc); }
.pack-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 16px; }
.cd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cd-stats b { display: block; font: 700 17px/1 var(--display); margin-top: 6px; }
.odds .odd { display: grid; grid-template-columns: 120px 1fr 70px 70px; gap: 12px; align-items: center; font-size: 13px; padding: 7px 0; }
.odds .odd b { text-align: right; font-variant-numeric: tabular-nums; }
.cd-top { --rc: var(--acc); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-style: dashed; background: radial-gradient(260px 200px at 50% 45%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), linear-gradient(180deg, var(--panel), #0b0f0d); }
.cd-top img { width: 62%; max-width: 230px; border-radius: 10px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.6)) drop-shadow(0 0 24px color-mix(in srgb, var(--rc) 40%, transparent)); margin: 10px 0; }
.cd-top b { font: 700 22px/1 var(--display); }

/* ---------- pack reel ---------- */
.reel-box { position: relative; border-radius: 18px; border: 1px solid var(--line); background: #0b0f0d; padding: 22px 0; overflow: hidden; box-shadow: inset 0 0 80px rgba(0,0,0,.6); }
.reel-box::before, .reel-box::after { content: ''; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 3; pointer-events: none; }
.reel-box::before { left: 0; background: linear-gradient(90deg, #0b0f0d, transparent); } .reel-box::after { right: 0; background: linear-gradient(-90deg, #0b0f0d, transparent); }
.reel-line { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 3px; transform: translateX(-50%); background: var(--acc); box-shadow: 0 0 18px var(--acc), 0 0 40px var(--acc); z-index: 4; border-radius: 3px; }
.reel-line::before, .reel-line::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border: 9px solid transparent; }
.reel-line::before { top: -6px; border-top-color: var(--acc); } .reel-line::after { bottom: -6px; border-bottom-color: var(--acc); }
.reel { display: flex; gap: 10px; will-change: transform; padding-left: 50%; }
.reel-item { --rc: var(--acc); flex: none; width: 150px; height: 230px; border-radius: 12px; background: linear-gradient(180deg, #161c19, #0b0f0d); border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 10px 10px 8px; }
.reel-item::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--rc); box-shadow: 0 0 18px var(--rc); }
.reel-item::before { content: ''; position: absolute; inset: 0; background: radial-gradient(160px 120px at 50% 100%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 70%); }
.reel-item img { position: relative; height: 158px; width: auto; max-width: 100%; object-fit: contain; border-radius: 6px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.6)); }
.reel-item .t { position: relative; font: 700 13px/1.1 var(--display); margin-top: 8px; } .reel-item .s { position: relative; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.reel-item.win { border-color: var(--rc); box-shadow: 0 0 0 2px var(--rc), 0 0 40px color-mix(in srgb, var(--rc) 60%, transparent); }
.reel-result { margin-top: 18px; display: none; }
.reel-result.on { display: block; }
.result { --rc: var(--acc); display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; }
.result img { width: 150px; border-radius: 8px; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--rc) 55%, transparent)); }
.spark { position: fixed; width: 8px; height: 8px; border-radius: 2px; z-index: 400; pointer-events: none; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 4px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 13px; border-radius: 8px; font: 600 13px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 -2px 0 var(--acc); }
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); height: 44px; }
.search input { flex: 1; border: 0; background: none; outline: none; height: 100%; }
select.sel { height: 44px; padding: 0 12px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }

/* ---------- coin card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.sk { --rc: var(--acc); position: relative; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), #0b0f0d); border: 1px solid var(--line); overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; transform-style: preserve-3d; display: flex; flex-direction: column; }
.sk:hover { border-color: color-mix(in srgb, var(--rc) 60%, var(--line)); box-shadow: 0 18px 50px -18px color-mix(in srgb, var(--rc) 55%, transparent); }
.sk-art { position: relative; height: 250px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(240px 160px at 50% 60%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 70%), linear-gradient(180deg, #161c19, #0b0f0d); }
.sk-art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); box-shadow: 0 0 20px var(--rc); }
.sk-art img { height: 214px; width: auto; max-width: 84%; object-fit: contain; border-radius: 8px; filter: drop-shadow(0 14px 16px rgba(0,0,0,.6)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.sk:hover .sk-art img { transform: scale(1.06) rotate(-2deg) translateY(-4px); }
.sk-art .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); transform: translateX(-100%); transition: transform .8s; pointer-events: none; }
.sk:hover .sk-art .shine { transform: translateX(100%); }
.sk-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; z-index: 2; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; font: 700 10.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; background: rgba(0, 0, 0, .72); border: 1px solid var(--line2); backdrop-filter: blur(6px); }
.pill.grad { color: var(--cyan); border-color: rgba(255, 255, 255, .4); }
.sk-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sk-name { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sk-name .tk { font: 700 19px/1 var(--display); }
.sk-name .no { font: 600 12px/1 var(--mono); color: var(--dim); }
.sk-card { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -5px; }
.sk-card b { color: var(--text); font-weight: 600; }
.sk-row { display: flex; justify-content: space-between; font-size: 13px; }
.sk-row .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 6px; background: var(--bg2); overflow: hidden; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, var(--vio), var(--acc)); box-shadow: 0 0 12px rgba(46, 230, 162, .5); }
.chg.up { color: var(--green); } .chg.dn { color: var(--red); }
.grid.mini { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid.mini .sk-art { height: 170px; } .grid.mini .sk-art img { height: 140px; } .grid.mini .sk-name .tk { font-size: 16px; }

/* ---------- panels ---------- */
.panel { background: linear-gradient(180deg, var(--panel), #0b0f0d); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-weight: 600; word-break: break-all; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font: 600 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid rgba(31, 41, 37, .6); vertical-align: middle; }
.table tr.new td { animation: flashrow 1.4s ease-out; }
@keyframes flashrow { from { background: rgba(46, 230, 162, .14); } to { background: transparent; } }
.table-wrap { overflow-x: auto; }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 12px; }
.notice { padding: 12px 14px; border-radius: 11px; font-size: 14px; border: 1px solid var(--line2); background: var(--panel2); }
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: skel 1.3s infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.act { display: flex; flex-direction: column; }
.act-row { display: grid; grid-template-columns: 34px 70px 1fr auto 36px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(31,41,37,.6); font-size: 13px; }
.act-row:hover { background: rgba(255,255,255,.02); }
.act-row img { width: 34px; height: 47px; object-fit: contain; border-radius: 3px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font: 600 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.input, .field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line2); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(46, 230, 162, .15); }
.input-wrap { position: relative; } .input-wrap .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); font-size: 12.5px; font-weight: 600; }
.chip-btn.on, .chip-btn:hover { border-color: var(--acc); color: var(--acc); }

/* ---------- catalog / pack contents ---------- */
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.it { --rc: var(--acc); position: relative; border-radius: 11px; background: linear-gradient(180deg, #161c19, #0b0f0d); border: 1px solid var(--line); padding: 10px; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; text-align: left; display: flex; flex-direction: column; min-height: 220px; }
.it::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); border-radius: 0 0 11px 11px; }
.it:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rc) 55%, var(--line)); }
.it.sel { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc), 0 12px 30px -10px rgba(46, 230, 162,.6); }
.it img { height: 140px; width: auto; max-width: 100%; margin: 6px auto 8px; object-fit: contain; border-radius: 5px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.5)); }
.it .n { font-size: 12px; font-weight: 600; line-height: 1.25; }
.it .x { font-size: 11px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.it .tagx { position: absolute; top: 8px; right: 8px; z-index: 1; }
.it.claimed { opacity: .45; cursor: not-allowed; }
.it.claimed .tagx { color: var(--acc); }
.picker { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.picker .inv { max-height: 640px; overflow-y: auto; padding-right: 4px; }

/* ---------- coin page ---------- */
.coin-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; padding-top: 26px; }
.showcase { --rc: var(--acc); position: relative; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; min-height: 560px; background: radial-gradient(500px 360px at 50% 60%, color-mix(in srgb, var(--rc) 32%, transparent), transparent 70%), radial-gradient(400px 260px at 80% 0%, rgba(255, 255, 255, .10), transparent 70%), linear-gradient(180deg, #232325, #0b0f0d); display: flex; flex-direction: column; perspective: 1000px; }
.showcase::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--rc); box-shadow: 0 0 30px var(--rc); }
.showcase .card-stage { position: relative; flex: 1; display: grid; place-items: center; padding: 24px 40px 14px; transform-style: preserve-3d; }
.showcase .card-stage img { max-height: 420px; width: auto; max-width: 100%; object-fit: contain; border-radius: 14px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)) drop-shadow(0 0 40px color-mix(in srgb, var(--rc) 40%, transparent)); will-change: transform; position: relative; z-index: 1; }
.showcase .floor { position: absolute; left: 25%; right: 25%; bottom: 6px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(6px); }
.showcase .top { position: relative; z-index: 2; padding: 20px 22px 0; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.showcase .top h1 { font-size: clamp(26px, 3vw, 38px); }
.showcase .sub { color: var(--acc); font-weight: 700; font-size: 14px; margin-top: 6px; letter-spacing: .02em; }
.showcase .bottom { position: relative; z-index: 2; padding: 0 22px 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.metric { padding: 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.metric .v { font: 700 22px/1 var(--display); margin-top: 8px; font-variant-numeric: tabular-nums; }
.metric .s { font-size: 12px; margin-top: 6px; }
.side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
#tab-trades, #tab-holders { max-height: 560px; overflow-y: auto; }
.table thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
#chart { height: 360px; border-radius: 12px; overflow: hidden; }
.tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 10px 14px; font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--acc); }
.trade-box .seg { width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.trade-box .seg button { padding: 11px; font-size: 14px; }
.trade-box .seg button.on[data-s="buy"] { box-shadow: inset 0 -2px 0 var(--acc); color: var(--acc); }
.trade-box .seg button.on[data-s="sell"] { box-shadow: inset 0 -2px 0 var(--text); color: var(--text); }
.quote { font-size: 13px; color: var(--muted); margin: 4px 0 14px; min-height: 18px; }

/* ---------- prose ---------- */
.prose { max-width: 860px; }
.prose h2 { font-size: 28px; text-transform: uppercase; margin: 42px 0 12px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: #d6e0db; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--panel2); padding: 2px 6px; border-radius: 6px; }
.callout { padding: 16px 18px; border-radius: 12px; border-left: 3px solid var(--acc); background: var(--panel); margin: 16px 0; }

/* ---------- toast / footer ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 14px; max-width: 360px; animation: tin .35s cubic-bezier(.2,.8,.2,1); }
.toast.bad { border-color: rgba(255, 77, 97, .5); } .toast.ok { border-color: rgba(46, 230, 162, .5); }
@keyframes tin { from { transform: translateY(14px); opacity: 0; } }
.footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 30px 0 40px; color: var(--muted); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .wrap > div:first-child { max-width: 640px; }
.footer a:hover { color: var(--text); }
.reveal { opacity: 0; transform: translateY(24px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .coin-top, .pack-detail, .two-col, .picker { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .nav.open { display: flex; }
  .nav a.on::after { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .hero-stats, .metrics { grid-template-columns: repeat(2, 1fr); }
  .reel-item { width: 120px; height: 190px; padding: 8px; } .reel-item img { height: 128px; }
  .reel-box::before, .reel-box::after { width: 50px; }
  .drops-label { display: none; }
  .cd-stats { grid-template-columns: repeat(2, 1fr); } .odds .odd { grid-template-columns: 100px 1fr 60px; } .odds .odd .muted { display: none; }
  .act-row { grid-template-columns: 34px 1fr auto; } .act-row .mono { display: none; } .act-row span:last-child { display: none; }
  .grid.mini { grid-template-columns: 1fr 1fr; }
  .result { grid-template-columns: 1fr; text-align: center; } .result img { margin: 0 auto; }
  .showcase { min-height: 480px; } .showcase .card-stage img { max-height: 340px; }
}
@media (max-width: 520px) {
  .topbar .wrap { gap: 10px; }
  .logo { font-size: 22px; gap: 7px; } .logo-box { width: 28px; }
  .top-right { gap: 6px; }
  .wallet-btn { padding: 8px 10px; font-size: 11px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
  .wl-long { display: none; } .wl-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
