/* ============ PokéVolt — Apple × Airbnb design system ============ */
:root {
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #86868b;
  --bg: #f5f5f7;
  --card: #ffffff;
  --accent: #ff385c;          /* Airbnb rausch */
  --accent-2: #e31c5f;
  --blue: #0a84ff;
  --gold: #ffd60a;
  --green: #34c759;
  --purple: #bf5af2;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.16);
  --ease: cubic-bezier(.22,1,.36,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --coin-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.85'%3E%3Cstop offset='0' stop-color='%23fff6c9'/%3E%3Cstop offset='.45' stop-color='%23ffd23f'/%3E%3Cstop offset='1' stop-color='%23e8960c'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='19' fill='url(%23g)' stroke='%23a85f00' stroke-width='2'/%3E%3Ccircle cx='20' cy='20' r='14' fill='none' stroke='%23a85f00' stroke-width='1.4' opacity='.5' stroke-dasharray='2.4 2.2'/%3E%3Cpath d='M20 10.5l2.7 5.4 6 .9-4.3 4.2 1 6-5.4-2.8-5.4 2.8 1-6-4.3-4.2 6-.9z' fill='%23a85f00' opacity='.9'/%3E%3Cellipse cx='13.5' cy='11.5' rx='5' ry='2.6' fill='%23fff' opacity='.55' transform='rotate(-28 13.5 11.5)'/%3E%3C/svg%3E");
  --cardback: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 63 88'%3E%3Crect width='63' height='88' rx='4.5' fill='%231a4796'/%3E%3Crect x='3' y='3' width='57' height='82' rx='3' fill='%230f3277'/%3E%3Cpath d='M-5 25 Q 31 2 68 28' stroke='%232a63c9' stroke-width='7' fill='none' opacity='.45'/%3E%3Cpath d='M-5 70 Q 31 88 68 66' stroke='%232a63c9' stroke-width='7' fill='none' opacity='.45'/%3E%3Cpath d='M8 -5 Q -2 44 12 93' stroke='%233b74d8' stroke-width='6' fill='none' opacity='.3'/%3E%3Cpath d='M55 -5 Q 66 44 51 93' stroke='%233b74d8' stroke-width='6' fill='none' opacity='.3'/%3E%3Ccircle cx='31.5' cy='44' r='17' fill='%23f5c400'/%3E%3Ccircle cx='31.5' cy='44' r='14.5' fill='%23e8433f'/%3E%3Cpath d='M17 44 a14.5 14.5 0 0 0 29 0 z' fill='%23f4f6ff'/%3E%3Crect x='17' y='42.6' width='29' height='2.8' fill='%2320242e'/%3E%3Ccircle cx='31.5' cy='44' r='4.6' fill='%2320242e'/%3E%3Ccircle cx='31.5' cy='44' r='2.6' fill='%23f4f6ff'/%3E%3Cellipse cx='24' cy='36' rx='6' ry='3.4' fill='%23fff' opacity='.35' transform='rotate(-30 24 36)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
}
img { user-select: none; -webkit-user-drag: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: var(--font); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 8px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav .logo {
  display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px;
  letter-spacing: -.4px; cursor: pointer; margin-right: 8px;
}
.logo-ball {
  width: 26px; height: 26px; border-radius: 50%; position: relative; flex: none;
  background: linear-gradient(180deg, var(--accent) 0 46%, #16151a 46% 54%, #fff 54%);
  box-shadow: 0 2px 8px rgba(255,56,92,.4);
}
.logo-ball::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px;
  background: #fff; border: 2.5px solid #16151a; border-radius: 50%;
}
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links button {
  padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .25s var(--ease);
}
.nav-links button:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.nav-links button.active { background: var(--ink); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.credit-pill {
  display: flex; align-items: center; gap: 7px; padding: 7px 14px 7px 10px;
  background: linear-gradient(135deg, #1d1d1f, #3a3a3e); color: #fff;
  border-radius: 99px; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.credit-pill:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.credit-pill .coin { width: 20px; height: 20px; flex: none;
  background: var(--coin-img) center/contain no-repeat;
  filter: drop-shadow(0 1px 3px rgba(245,184,0,.5)); }
.credit-pill .plus { background: var(--accent); border-radius: 50%; width: 17px; height: 17px;
  display: grid; place-items: center; font-size: 13px; line-height: 1; margin-left: 2px; }
.credit-pill.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.14); } }

.avatar-btn { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid #fff;
  box-shadow: var(--shadow); background: #e8e8ed; flex: none; transition: transform .25s var(--ease); }
.avatar-btn:hover { transform: scale(1.08); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; background: rgba(0,0,0,.05); transition: all .25s var(--ease); }
.icon-btn:hover { background: rgba(0,0,0,.1); transform: scale(1.08); }
.signin-btn { padding: 9px 18px; border-radius: 99px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; transition: all .25s var(--ease); box-shadow: 0 3px 12px rgba(255,56,92,.35); }
.signin-btn:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,56,92,.45); }
.shop-btn { padding: 9px 16px; border-radius: 99px; color: #5c4400; font-weight: 900; font-size: 14px; white-space: nowrap;
  background: linear-gradient(120deg, #ffd60a, #ffb300); background-size: 160% 100%;
  box-shadow: 0 3px 14px rgba(245,184,0,.5); transition: all .3s var(--ease);
  animation: shopGlow 2.6s ease-in-out infinite; }
.shop-btn:hover { transform: translateY(-1px) scale(1.04); background-position: 100% 0; box-shadow: 0 6px 20px rgba(245,184,0,.65); }
@keyframes shopGlow { 50% { box-shadow: 0 3px 22px rgba(245,184,0,.8); } }
.bottom-nav .bn-shop { color: #d99e00; }
.bottom-nav .bn-shop.active { color: #d99e00; }

/* ---------- Live ticker ---------- */
.ticker { overflow: hidden; background: #101013; color: #fff; font-size: 13px; position: relative; }
.ticker-track { display: flex; gap: 34px; padding: 9px 0; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tick-item { display: flex; align-items: center; gap: 7px; white-space: nowrap; opacity: .92; }
.tick-item img { width: 20px; height: 20px; object-fit: contain; }
.tick-item .tk-rar { font-weight: 700; }
.tick-live { display: inline-flex; align-items: center; gap: 5px; color: #ff453a; font-weight: 800; }
.tick-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff453a; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 40px) 110px; }
.view { display: none; animation: viewIn .5s var(--ease); }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }

.section-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.8px; margin: 40px 0 6px; }
.section-sub { color: var(--ink-3); font-size: 15px; margin-bottom: 22px; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(48px, 8vw, 96px) 0 30px; }
.hero h1 {
  font-size: clamp(40px, 7.2vw, 84px); font-weight: 800; letter-spacing: -2.5px; line-height: 1.02;
}
.hero h1 .grad {
  background: linear-gradient(92deg, var(--accent), #ff8a00 45%, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: clamp(16px, 2.2vw, 21px); color: var(--ink-2); margin: 18px auto 30px; max-width: 620px; font-weight: 500; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 14px 28px; border-radius: 99px; font-size: 16px; font-weight: 700;
  transition: all .3s var(--ease); display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(255,56,92,.35); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 28px rgba(255,56,92,.45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-ghost { background: rgba(0,0,0,.05); color: var(--ink); }
.btn-ghost:hover { background: rgba(0,0,0,.1); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

.hero-stats { display: flex; gap: clamp(20px, 5vw, 60px); justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.hstat b { display: block; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.5px; }
.hstat span { color: var(--ink-3); font-size: 13px; font-weight: 600; }

/* ---------- Pack cards ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.pack-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s var(--ease); position: relative;
}
.pack-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.pack-art { height: 210px; display: grid; place-items: center; position: relative; overflow: hidden; }
.pack-art::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255,255,255,.35), transparent 60%); }
.pack-art img { width: 140px; height: 140px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,.35));
  transition: transform .5s var(--ease); position: relative; }
.pack-card:hover .pack-art img { transform: scale(1.1) translateY(-5px) rotate(-3deg); }
.pack-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 60%);
  transform: translateX(-120%); transition: transform .8s var(--ease); }
.pack-peek { position: absolute; right: 12px; bottom: -8px; width: 62px !important; height: auto !important;
  border-radius: 5px; transform: rotate(9deg); box-shadow: 0 6px 18px rgba(0,0,0,.45);
  transition: transform .5s var(--ease), bottom .5s var(--ease); }
.pack-card:hover .pack-peek { transform: rotate(4deg) scale(1.12); bottom: 2px; }
.pack-card:hover .pack-shine { transform: translateX(120%); }
.pack-body { padding: 16px 18px 18px; }
.pack-body h3 { font-size: 19px; letter-spacing: -.4px; font-weight: 800; }
.pack-body p { color: var(--ink-3); font-size: 13px; margin: 5px 0 12px; line-height: 1.45; min-height: 37px; }
.pack-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.price .coin-s, .coin-s { width: 16px; height: 16px; display: inline-block; flex: none; vertical-align: -2px;
  background: var(--coin-img) center/contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(245,184,0,.4)); }
.odds-link { font-size: 12.5px; color: var(--ink-3); font-weight: 600; text-decoration: underline; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 11px; border-radius: 99px;
  font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.badge.hot { background: var(--accent); color: #fff; }
.badge.ltd { background: var(--gold); color: #5c4a00; }

/* ---------- Cards & odds sheet ---------- */
.odds-list { display: flex; flex-direction: column; gap: 8px; }
.odds-card { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 13px;
  background: var(--bg); }
.odds-card img { width: 44px; border-radius: 4px; flex: none; }
.odds-card .oc-info { flex: 1; min-width: 0; }
.odds-card .oc-info b { display: block; font-size: 14px; letter-spacing: -.2px; }
.odds-card .oc-info span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.odds-card .oc-right { text-align: right; }
.odds-card .oc-right .price { font-size: 14px; justify-content: flex-end; }
.odds-card .oc-odds { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 700; margin-top: 2px;
  font-variant-numeric: tabular-nums; }

/* ---------- Box cards ---------- */
.box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.box-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); position: relative; }
.box-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.box-art { height: 170px; display: flex; align-items: center; justify-content: center; gap: 0; position: relative; overflow: hidden; }
.box-art img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.4)) drop-shadow(0 0 24px rgba(255,214,10,.4)); position: relative; z-index: 1; }
.box-pattern { position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 30px),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.06) 0 2px, transparent 2px 26px); }
.box-crest { position: relative; width: 100px; height: 100px; display: grid; place-items: center; z-index: 1; }
.box-crest::before { content: ''; position: absolute; inset: 12px; transform: rotate(45deg);
  border: 3px solid rgba(255,255,255,.7); border-radius: 16px; background: rgba(255,255,255,.12);
  box-shadow: 0 10px 26px rgba(0,0,0,.35), inset 0 0 20px rgba(255,255,255,.15); }
.box-crest i { position: absolute; inset: -4px; border: 2px dashed rgba(255,255,255,.35); border-radius: 50%;
  animation: crestSpin 24s linear infinite; }
@keyframes crestSpin { to { transform: rotate(360deg); } }
.box-crest span { position: relative; font-weight: 900; font-size: 42px; color: #fff; font-style: normal;
  text-shadow: 0 3px 14px rgba(0,0,0,.45); }
.box-body { padding: 18px; }
.box-body h3 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.box-body p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 7px 0 14px; }
.countdown { display: inline-flex; gap: 5px; align-items: center; font-variant-numeric: tabular-nums;
  background: rgba(255,69,58,.1); color: #d70015; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 800; }
.save-tag { color: var(--green); font-weight: 800; font-size: 13px; }

/* ---------- Rip overlay ---------- */
.rip-overlay { position: fixed; inset: 0; z-index: 300; background: #0b0b0f; display: none;
  flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.rip-overlay.open { display: flex; }
.rip-bg { position: absolute; inset: -20%; background: radial-gradient(circle at 50% 40%, var(--rip-glow, rgba(255,107,61,.28)), transparent 55%);
  transition: opacity .6s; }
.rip-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 18px; z-index: 10; width: 42px; height: 42px;
  border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 18px; backdrop-filter: blur(10px); }
.rip-close:hover { background: rgba(255,255,255,.22); }
.rip-skip { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 18px; z-index: 10;
  padding: 11px 18px; border-radius: 99px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px;
  font-weight: 800; backdrop-filter: blur(10px); transition: all .25s var(--ease); }
.rip-skip:hover { background: rgba(255,214,10,.25); transform: scale(1.05); }
.rip-stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px;
  width: 100%; padding: 76px 16px 30px; max-height: 100vh; overflow-y: auto; overflow-x: hidden; }
.rip-hint { color: rgba(255,255,255,.65); font-size: 15px; font-weight: 600; animation: hintFloat 2s var(--ease) infinite; }
@keyframes hintFloat { 50% { transform: translateY(-5px); opacity: .9; } }

/* the pack itself */
.rip-pack { width: min(270px, 64vw); aspect-ratio: 63/92; border-radius: 14px; position: relative; cursor: pointer;
  transform-style: preserve-3d; animation: packFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); }
@keyframes packFloat { 50% { transform: translateY(-12px) rotate(1.2deg); } }
.rip-pack .pk-top, .rip-pack .pk-bottom { position: absolute; left: 0; right: 0; overflow: hidden;
  background: linear-gradient(160deg, var(--pk-c1), var(--pk-c2)); }
.rip-pack .pk-top { top: 0; height: 15%; border-radius: 14px 14px 0 0; z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, var(--pk-c1), var(--pk-c2));
  clip-path: polygon(0 0, 100% 0, 100% 84%, 95% 100%, 90% 84%, 85% 100%, 80% 84%, 75% 100%, 70% 84%, 65% 100%, 60% 84%, 55% 100%, 50% 84%, 45% 100%, 40% 84%, 35% 100%, 30% 84%, 25% 100%, 20% 84%, 15% 100%, 10% 84%, 5% 100%, 0 84%);
  transition: transform .7s cubic-bezier(.45,-.2,.6,1), opacity .6s; }
.rip-pack .pk-bottom { top: 15%; bottom: 0; border-radius: 4px 4px 14px 14px; }
.rip-pack .pk-bottom::before { content: ''; position: absolute; right: -34%; bottom: -30%; width: 90%; aspect-ratio: 1;
  border: 14px solid rgba(255,255,255,.08); border-radius: 50%; }
.rip-pack .pk-burst { position: absolute; left: 50%; top: 40%; width: 130%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.32), transparent 55%); }
.rip-pack .pk-icon { position: absolute; left: 50%; top: 38%; width: 66%;
  transform: translate(-50%, -50%); object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.55)) drop-shadow(0 0 22px rgba(255,255,255,.25)); }
.rip-pack .pk-name { position: absolute; bottom: 15%; left: 0; right: 0; text-align: center; color: #fff;
  font-weight: 900; font-size: 25px; letter-spacing: 4px; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 0 26px rgba(255,255,255,.25); }
.rip-pack .pk-sub { position: absolute; bottom: 10%; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.75); font-weight: 700; font-size: 8.5px; letter-spacing: 2.5px; }
.rip-pack .pk-crimp { position: absolute; left: 0; right: 0; bottom: 0; height: 6.5%; z-index: 2;
  border-radius: 4px 4px 14px 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 2px, transparent 2px 7px),
    linear-gradient(0deg, var(--pk-c2), transparent);
  box-shadow: inset 0 6px 10px rgba(0,0,0,.25); }
.rip-pack .pk-foil { position: absolute; inset: 0; border-radius: 14px; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.055) 0 10px, transparent 10px 26px); }
.rip-pack .pk-gloss { position: absolute; inset: 0; border-radius: 14px; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.3) 45%, transparent 62%);
  background-size: 250% 100%; animation: gloss 2.8s linear infinite; }
@keyframes gloss { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.rip-pack.torn .pk-top { transform: translate(130%, -45%) rotate(24deg); opacity: 0; } /* ripped off sideways */
.rip-pack.torn { animation: none; }
.rip-pack.gone { transition: transform .5s var(--ease), opacity .4s; transform: scale(.8) translateY(40px); opacity: 0; pointer-events: none; }

/* revealed cards row */
.rip-cards { display: flex; gap: clamp(6px, 1.4vw, 13px); justify-content: center; flex-wrap: nowrap; perspective: 1200px; width: 100%;
  margin-bottom: 26px; /* room for the value tags below the cards */ }
.rip-cards.wrap { flex-wrap: wrap; max-width: 1040px; row-gap: 42px; }
.rcard { width: clamp(56px, 12vw, 128px); aspect-ratio: 63/88; position: relative; cursor: pointer;
  transform-style: preserve-3d; transition: transform .7s var(--ease); animation: dealIn .55s var(--ease) backwards; }
.rip-cards.wrap .rcard { width: clamp(72px, 10vw, 108px); }
@keyframes dealIn { from { transform: translateY(60px) scale(.6); opacity: 0; } }
.rcard .face { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; overflow: hidden; }
.rcard .back {
  background: var(--cardback) center/100% 100% no-repeat;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.rcard .front { transform: rotateY(180deg); background: #101018; }
.rcard .front img { width: 100%; height: 100%; object-fit: contain; }
.rcard.flipped { transform: rotateY(180deg); }
.rcard.flipped:hover { transform: rotateY(180deg) scale(1.06); }
.rcard:not(.flipped):hover { transform: translateY(-8px); }
.rcard .halo { position: absolute; inset: -14px; border-radius: 18px; opacity: 0; transition: opacity .5s; pointer-events: none;
  background: radial-gradient(circle, var(--halo, transparent) 0%, transparent 70%); filter: blur(10px); z-index: -1; }
.rcard.flipped .halo { opacity: 1; }
.rcard .shine-sweep { position: absolute; inset: 0; border-radius: 10px; transform: rotateY(180deg); backface-visibility: hidden;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.5) 48%, transparent 60%);
  background-size: 260% 100%; animation: gloss 2.2s linear infinite; opacity: 0; pointer-events: none; }
.rcard.flipped.shiny .shine-sweep { opacity: 1; }
.rcard .tag { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%) rotateY(180deg);
  white-space: nowrap; font-size: clamp(9px, 1.5vw, 12px); font-weight: 800; color: #fff; opacity: 0; transition: opacity .4s .2s; }
.rcard.flipped .tag { opacity: 1; }

.rip-summary { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; animation: viewIn .5s var(--ease); }
.rip-total { font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -.8px; }
.rip-total b { color: var(--gold); }
.rip-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rip-actions .btn { border: 1.5px solid rgba(255,255,255,.85); }

/* jackpot tease wheel */
.wheel-wrap { width: min(920px, 96vw); position: relative; padding: 26px 0; }
.wheel-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold), var(--accent)); z-index: 5; border-radius: 3px;
  box-shadow: 0 0 18px rgba(255,214,10,.8); }
.wheel-marker::before, .wheel-marker::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent; }
.wheel-marker::before { top: -6px; border-top: 11px solid var(--gold); }
.wheel-marker::after { bottom: -6px; border-bottom: 11px solid var(--gold); }
.wheel-window { overflow: hidden; border-radius: 16px; background: rgba(255,255,255,.05);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.wheel-strip { display: flex; gap: 12px; padding: 16px 0; will-change: transform; }
.witem { width: var(--wi, 120px); flex: none; aspect-ratio: 63/88; border-radius: 10px; overflow: hidden; position: relative;
  background: #17171f; border: 1.5px solid rgba(255,255,255,.09); }
.witem img { width: 100%; height: 100%; object-fit: contain; }
.witem.hot { border-color: var(--gold); box-shadow: 0 0 20px rgba(255,214,10,.45); }
.witem.hot::after { content: 'GRAIL'; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-size: 8.5px; font-weight: 900; letter-spacing: 1px; color: #16151a; background: var(--gold);
  padding: 2px 7px; border-radius: 99px; }
.wheel-caption { text-align: center; color: rgba(255,255,255,.85); font-weight: 800; font-size: clamp(16px, 2.6vw, 22px);
  letter-spacing: -.3px; margin-top: 18px; min-height: 30px; }
.wheel-caption.gold { color: var(--gold); animation: capPulse .55s ease-in-out infinite; }
@keyframes capPulse { 50% { transform: scale(1.06); opacity: .85; } }

/* big single reveal */
.big-reveal { display: flex; flex-direction: column; align-items: center; gap: 18px; perspective: 1400px; }
.big-card { width: min(310px, 72vw); aspect-ratio: 63/88; position: relative; transform-style: preserve-3d;
  transition: transform .9s var(--ease); cursor: pointer; }
.big-card.flipped { transform: rotateY(180deg); }
.big-card .face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; overflow: hidden; }
.big-card .front { transform: rotateY(180deg); }
.big-card .front img { width: 100%; height: 100%; object-fit: contain; }
.big-label { text-align: center; color: #fff; animation: viewIn .6s var(--ease); }
.big-label .r-name { font-size: clamp(22px, 4vw, 32px); font-weight: 800; letter-spacing: -.6px; }
.big-label .r-sub { font-size: 15px; font-weight: 700; margin-top: 4px; }

/* Sol's-RNG-style rarity cutscene */
.cutscene { position: fixed; inset: 0; z-index: 370; background: #000; display: grid; place-items: center;
  overflow: hidden; }
.cutscene.out { transition: opacity .45s ease; opacity: 0; }
.cut-glow { position: absolute; inset: -30%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--cg, rgba(255,255,255,.6)) 0%, transparent 58%); }
.cut-glow.pulse { animation: cutPulse .58s ease-out; }
@keyframes cutPulse { 0% { opacity: 0; transform: scale(.55); } 22% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
.cut-label { position: relative; font-size: clamp(30px, 7.5vw, 66px); font-weight: 900; letter-spacing: 5px;
  text-transform: uppercase; opacity: 0; text-align: center; padding: 0 14px; }
.cut-label.pop { animation: cutPop .6s var(--ease); }
@keyframes cutPop { 0% { opacity: 0; transform: scale(.7); filter: blur(6px); }
  30% { opacity: 1; transform: scale(1.12); filter: blur(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1.02); } }
.cutscene.strobe .cut-glow { animation: cutStrobe .11s linear 7; opacity: 1; }
@keyframes cutStrobe { 50% { opacity: .12; } }
.cutscene.strobe .cut-label { animation: none; opacity: 1; transform: scale(1.22);
  text-shadow: 0 0 46px currentColor, 0 0 120px currentColor; }

/* rarity flash & shake */
#flash { position: fixed; inset: 0; z-index: 350; pointer-events: none; opacity: 0; background: #fff; }
#flash.go { animation: flashGo .55s ease-out; }
@keyframes flashGo { 0% { opacity: .85; } 100% { opacity: 0; } }
.shake { animation: shake .5s ease-in-out; }
@keyframes shake { 20% { transform: translate(-7px, 3px); } 40% { transform: translate(6px, -4px); }
  60% { transform: translate(-5px, 2px); } 80% { transform: translate(4px, -2px); } }

/* confetti */
.confetti-piece { position: fixed; top: -14px; z-index: 360; pointer-events: none; border-radius: 2px;
  animation: confFall linear forwards; }
@keyframes confFall { to { transform: translateY(108vh) rotate(720deg); opacity: .6; } }

/* ---------- Portfolio ---------- */
.coll-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filter-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .35s, margin .4s var(--ease); margin: 0; }
.filter-panel.open { max-height: 500px; opacity: 1; margin: 0 0 18px; }
.fp-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 13px 18px; }
.fp-group + .fp-group { border-top: 1px solid rgba(0,0,0,.05); }
.fp-group label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  color: var(--ink-3); width: 118px; flex: none; }
.fp-group .chip { box-shadow: none; background: rgba(0,0,0,.05); }
.fp-group .chip.active { background: var(--ink); color: #fff; }
.master-bar { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 15px 18px;
  margin-bottom: 18px; font-size: 14.5px; }
.ccard.missing img.art { filter: grayscale(1) brightness(.72); opacity: .45; }
.ccard.missing { border: 2px dashed rgba(0,0,0,.14); box-shadow: none; background: rgba(255,255,255,.6); }
.ccard.missing .cc-name, .ccard.missing .cc-val { opacity: .55; }
.cc-missing { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px;
  font-weight: 800; padding: 3px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .5px; z-index: 1; }
.ccard .cc-actions .find { color: var(--accent-2); }
.chip { padding: 8px 15px; border-radius: 99px; font-size: 13px; font-weight: 700; background: #fff;
  box-shadow: var(--shadow); color: var(--ink-2); transition: all .25s var(--ease); }
.chip:hover { transform: translateY(-1px); }
.chip.active { background: var(--ink); color: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.ccard { background: var(--card); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ccard:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-lg); }
.ccard img.art { width: 100%; aspect-ratio: 63/88; object-fit: contain; border-radius: 8px; background: #f0f0f4; }
.ccard .cc-name { font-size: 13px; font-weight: 800; margin-top: 8px; letter-spacing: -.2px; }
.ccard .cc-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 3px; }
.ccard .cc-val { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.ccard .cc-rar { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.ccard .cc-count { position: absolute; top: 6px; right: 6px; background: var(--ink); color: #fff; font-size: 11px;
  font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.ccard .cc-actions { display: flex; gap: 6px; margin-top: 9px; }
.ccard .cc-actions button { flex: 1; padding: 7px 0; border-radius: 9px; font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,.05); transition: all .2s; }
.ccard .cc-actions button:hover { background: rgba(0,0,0,.12); }
.ccard .cc-actions .sell:hover { background: rgba(255,56,92,.14); color: var(--accent-2); }
.empty-note { text-align: center; padding: 70px 20px; color: var(--ink-3); font-weight: 600; }
.empty-note .big { font-size: 44px; margin-bottom: 10px; }

/* pfp & accessory shelves */
.pfp-shelf { display: flex; gap: 12px; flex-wrap: wrap; }
.pfp-item { width: 66px; height: 66px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: var(--shadow);
  position: relative; transition: transform .25s var(--ease); border: 3px solid transparent; }
.pfp-item img { width: 100%; height: 100%; object-fit: cover; }
.pfp-item:hover { transform: scale(1.1); }
.pfp-item.active { border-color: var(--accent); }
.pfp-item.locked { filter: grayscale(1); opacity: .45; }
.pfp-item.locked::after { content: '🔒'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; }
.acc-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.acc-item { background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); display: flex; gap: 12px;
  align-items: center; border: 2px solid transparent; transition: all .25s var(--ease); cursor: pointer; }
.acc-item:hover { transform: translateY(-2px); }
.acc-item.active { border-color: var(--accent); }
.acc-item.locked { opacity: .5; }
.acc-item .a-icon { font-size: 26px; }
.acc-item b { display: block; font-size: 14.5px; }
.acc-item span { font-size: 12px; color: var(--ink-3); }

/* ---------- Trade ---------- */
.friend-row { display: flex; align-items: center; gap: 13px; background: #fff; border-radius: 16px; padding: 13px 16px;
  box-shadow: var(--shadow); margin-bottom: 10px; transition: transform .25s var(--ease); }
.friend-row:hover { transform: translateX(3px); }
.friend-row img { width: 46px; height: 46px; border-radius: 50%; background: #f0f0f4; object-fit: cover; }
.friend-row .fr-info { flex: 1; min-width: 0; }
.friend-row .fr-info b { font-size: 15px; display: block; }
.friend-row .fr-info span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.friend-row .fr-online { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.friend-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }

.trade-room { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.trade-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,.06); flex-wrap: wrap; gap: 8px; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; }
.trade-side { padding: 18px; min-height: 230px; }
.trade-side + .trade-side { border-left: 1px solid rgba(0,0,0,.06); }
.trade-side h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.trade-side .ts-val { font-size: 12.5px; color: var(--ink-3); font-weight: 700; margin-bottom: 12px; }
.trade-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.tslot { width: 76px; aspect-ratio: 63/88; border-radius: 8px; overflow: hidden; position: relative; background: #f0f0f4;
  animation: dealIn .4s var(--ease) backwards; }
.tslot img { width: 100%; height: 100%; object-fit: contain; }
.tslot .rm { position: absolute; top: 3px; right: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; font-size: 11px; display: grid; place-items: center; }
.tslot-add { width: 76px; aspect-ratio: 63/88; border-radius: 8px; border: 2px dashed rgba(0,0,0,.18);
  display: grid; place-items: center; font-size: 22px; color: var(--ink-3); transition: all .25s; }
.tslot-add:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,56,92,.05); }
.fair-wrap { padding: 18px 20px; border-top: 1px solid rgba(0,0,0,.06); }
.fair-bar { height: 12px; border-radius: 99px; background: rgba(0,0,0,.07); overflow: hidden; margin: 9px 0 5px; }
.fair-bar i { display: block; height: 100%; border-radius: 99px; transition: width .6s var(--ease), background .6s; }
.fair-label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.trade-foot { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid rgba(0,0,0,.06);
  align-items: center; flex-wrap: wrap; }
.accept-state { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.accept-state .ok { color: var(--green); }

/* ---------- Free pack strip & flash sale ---------- */
.free-strip { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 13px 18px; border-radius: 16px; margin-bottom: 18px; font-size: 14.5px; font-weight: 700;
  background: #fff; box-shadow: var(--shadow); color: var(--ink-2); font-variant-numeric: tabular-nums; }
button.free-strip.ready { cursor: pointer; color: #fff; border: none;
  background: linear-gradient(120deg, var(--accent), #ff8a00); box-shadow: 0 6px 20px rgba(255,110,30,.4);
  animation: freePulse 1.8s ease-in-out infinite; transition: transform .25s var(--ease); }
button.free-strip.ready:hover { transform: scale(1.015); }
@keyframes freePulse { 50% { box-shadow: 0 6px 30px rgba(255,110,30,.65); } }
.bundle.flash { border-color: var(--accent); box-shadow: 0 8px 30px rgba(255,56,92,.25);
  animation: freePulse 2.2s ease-in-out infinite; }
.bundle.flash .b-tag { background: linear-gradient(120deg, var(--accent), #ff8a00); font-variant-numeric: tabular-nums; }

/* ---------- Level pill, streak, missions ---------- */
.lvl-pill { padding: 8px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 800;
  background: linear-gradient(120deg, #0a84ff, #bf5af2); color: #fff; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(10,132,255,.35); transition: transform .25s var(--ease); }
.lvl-pill:hover { transform: scale(1.06); }
.streak-day { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0,0,0,.06); font-weight: 800; font-size: 15px; color: var(--ink-3); }
.streak-day.lit { background: linear-gradient(140deg, #fff3cd, #ffe08a); box-shadow: 0 3px 10px rgba(245,184,0,.35); }
.missions-panel { display: flex; flex-direction: column; gap: 10px; }
.mission { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow); }
.mission.done { border: 1.5px solid rgba(52,199,89,.4); }
.mission .mi-info { flex: 1; min-width: 0; font-size: 14.5px; }
.mission .mi-prog { font-size: 13px; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mission .mi-reward { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13.5px; }
.mission .mi-claimed { color: var(--green); font-weight: 800; font-size: 13px; }

/* ---------- Interactive cards: tilt + glare + detail ---------- */
.tiltable { position: relative; will-change: transform; transition: transform .18s ease-out; }
.tiltable::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.3), transparent 55%);
  opacity: 0; transition: opacity .25s; }
.tiltable:hover::after { opacity: 1; }
.ccard.tiltable:hover { box-shadow: var(--shadow-lg); }
.detail-card { width: min(280px, 68vw); border-radius: 12px; }
.detail-card img { width: 100%; display: block; border-radius: 12px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.3)); }

/* ---------- Checkout ---------- */
.pay-fast { display: flex; gap: 10px; margin-bottom: 6px; }
.pay-btn { flex: 1; padding: 13px 0; border-radius: 13px; background: #000; color: #fff; font-size: 16px;
  font-weight: 700; letter-spacing: .3px; transition: all .25s var(--ease); }
.pay-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.pay-btn:disabled { opacity: .6; }
.pay-or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12.5px;
  font-weight: 700; margin: 14px 0; text-transform: uppercase; letter-spacing: .6px; }
.pay-or::before, .pay-or::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,.1); }

/* ---------- Feed comments ---------- */
.comments { margin-top: 12px; border-top: 1px solid rgba(0,0,0,.06); padding-top: 10px;
  display: flex; flex-direction: column; gap: 7px; }
.comment { font-size: 13.5px; line-height: 1.45; }
.comment b { margin-right: 5px; }
.comment-in { border: none; background: rgba(0,0,0,.045); border-radius: 99px; padding: 9px 15px;
  font-size: 13.5px; outline: none; transition: background .25s; }
.comment-in:focus { background: rgba(0,0,0,.08); }

/* ---------- Portfolio & price charts ---------- */
.port-chart { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px 12px; margin-bottom: 18px; }
.port-chart .pc-label { font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .8px; color: var(--ink-3); }
.port-chart .pc-big { display: flex; align-items: center; gap: 8px; font-size: 24px;
  letter-spacing: -.5px; font-weight: 800; margin-top: 2px; }
.port-chart .pc-big .coin-s { width: 20px; height: 20px; }
.spark { display: block; width: 100%; height: auto; margin-top: 6px; }
.chart-body { position: relative; }
.y-axis { position: absolute; right: 4px; top: 10px; bottom: 10px; display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-end; pointer-events: none; }
.y-axis span { font-size: 10px; font-weight: 800; color: var(--ink-2); background: rgba(255,255,255,.78);
  padding: 1px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; backdrop-filter: blur(2px); }
.range-chips { display: flex; gap: 5px; }
.chip-xs { padding: 5px 11px; font-size: 11.5px; box-shadow: none; }
.chart-foot { font-size: 10.5px; font-weight: 600; margin-top: 6px; }
.chg { font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.chg.up { background: rgba(52,199,89,.14); color: #1d8a3e; }
.chg.down { background: rgba(255,69,58,.14); color: #d70015; }

/* ---------- Custom icon set ---------- */
.bn-ico { display: grid; place-items: center; }
.bn-ico svg { width: 22px; height: 22px; }
.bottom-nav button.active .bn-ico svg { stroke-width: 2.4; }
.icon-btn svg { width: 19px; height: 19px; }
.shop-btn { display: inline-flex; align-items: center; gap: 6px; }
.shop-btn .sb-ico { display: grid; place-items: center; }
.shop-btn .sb-ico svg { width: 16px; height: 16px; stroke-width: 2.4; }
.nav-links .shop-link { margin-left: 6px; padding: 8px 15px; }
@media (min-width: 861px) { .nav-right > .shop-btn { display: none; } } /* desktop: Shop lives with the nav links */

/* password show/hide */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 48px !important; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-58%); width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); transition: all .2s; }
.pw-eye:hover { background: rgba(0,0,0,.07); color: var(--ink); }
.pw-eye svg { width: 19px; height: 19px; }

/* set-logo pack art */
.pack-art .pack-logo { width: 82% !important; height: auto !important; max-height: 68%; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); transition: transform .5s var(--ease); position: relative; }
.pack-art .pack-logo.logo-fallback { width: 140px !important; height: 140px !important; }
.rip-pack .pk-icon { object-fit: contain; }
.rip-pack .pk-icon:not(.logo-fallback) { width: 84%; max-height: 42%; }

/* clearer, more definite buttons */
.btn { border: 1.5px solid transparent; }
.btn-ghost { border-color: rgba(0,0,0,.28); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { border-color: #000; }
.btn-primary { border-color: rgba(0,0,0,.08); }
.btn:focus-visible, .chip:focus-visible { outline: 3px solid rgba(10,132,255,.45); outline-offset: 2px; }
.chip { border: 1.5px solid rgba(0,0,0,.14); }
.chip.active { border-color: var(--ink); }

/* ---------- Admin command console ---------- */
.ap-console { margin: 0 18px 14px; padding: 10px 14px; border-radius: 12px; background: rgba(0,0,0,.42);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12px; line-height: 1.55;
  max-height: 150px; overflow-y: auto; }
.ap-console .cl-in { color: var(--gold); font-weight: 700; margin-top: 6px; }
.ap-console .cl-in:first-child { margin-top: 0; }
.ap-console .cl-out { color: rgba(255,255,255,.82); }
.admin-panel #apCmd { background: rgba(0,0,0,.35); font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* ---------- Admin set builder ---------- */
.sb-select { padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(0,0,0,.16);
  font-family: var(--font); font-size: 13.5px; font-weight: 700; background: #fff; outline: none; }
.sb-setrow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg);
  border-radius: 11px; margin-bottom: 6px; font-size: 13.5px; }
.sb-setrow b { flex: 1; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px;
  max-height: 42vh; overflow-y: auto; padding: 2px; }
.sb-card { border-radius: 9px; padding: 5px; background: var(--bg); cursor: pointer;
  border: 2px solid transparent; transition: all .15s; }
.sb-card:hover { transform: translateY(-2px); }
.sb-card.sel { border-color: var(--accent); background: rgba(255,56,92,.08); }
.sb-card img { width: 100%; border-radius: 5px; display: block; }
.sb-card .sbc-name { font-size: 10px; font-weight: 800; margin-top: 4px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.sb-card .sbc-meta { font-size: 9px; font-weight: 600; color: var(--ink-3); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.sb-card { position: relative; }
.inv-n { position: absolute; top: 3px; right: 3px; z-index: 2; font-size: 9.5px; font-weight: 900;
  padding: 2px 6px; border-radius: 99px; background: rgba(29,29,31,.85); color: #fff;
  font-variant-numeric: tabular-nums; }
.inv-n.out { background: #d70015; }
.pack-card.sold-out .pack-art, .pack-card.sold-out .pack-body { filter: grayscale(.85) opacity(.75); }
.sb-bar { position: sticky; bottom: -24px; margin: 10px -4px -10px; padding: 10px 12px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-radius: 12px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; box-shadow: 0 -4px 16px rgba(0,0,0,.07); }
.sb-bar:empty { display: none; }

/* ---------- Audit trail (admin) ---------- */
.audit-list { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; }
.audit-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 9px 2px;
  border-bottom: 1px solid rgba(0,0,0,.06); font-size: 13px; line-height: 1.4; }
.audit-row:last-child { border-bottom: none; }
.au-time { color: var(--ink-3); font-weight: 700; font-size: 11px; min-width: 96px;
  font-variant-numeric: tabular-nums; }
.audit-row b { font-size: 13px; }
.au-event { font-weight: 700; color: var(--ink-2); }
.au-detail { color: var(--ink-3); font-weight: 600; }

/* ---------- Admin console ---------- */
.admin-panel { margin-top: 18px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #16151a, #2a2233); color: #fff;
  border: 1.5px solid rgba(255,214,10,.45); box-shadow: 0 10px 34px rgba(255,214,10,.14); }
.ap-head { padding: 15px 18px; font-weight: 800; font-size: 16.5px; letter-spacing: -.3px;
  border-bottom: 1px solid rgba(255,255,255,.09); display: flex; align-items: baseline; gap: 10px; }
.ap-head span { font-size: 11.5px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.admin-panel .fp-group { border-color: rgba(255,255,255,.07); }
.admin-panel .fp-group label { color: rgba(255,255,255,.5); }
.admin-panel .chip { background: rgba(255,255,255,.1); color: #fff; }
.admin-panel .chip:hover { background: rgba(255,255,255,.2); }
.admin-panel .chip.active { background: var(--gold); color: #4a3b00; }
.admin-panel input { width: 130px; padding: 8px 12px; border-radius: 99px; border: none;
  background: rgba(255,255,255,.12); color: #fff; font-size: 14px; font-weight: 700; outline: none; }
.uluck { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.uluck input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; padding: 0; height: 22px;
  background: transparent; border-radius: 0; }
.uluck input[type=range]::-webkit-slider-runnable-track { height: 7px; border-radius: 99px;
  background: linear-gradient(90deg, rgba(255,255,255,.18), var(--gold)); }
.uluck input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--gold); border: 3px solid #16151a; margin-top: -6.5px;
  box-shadow: 0 0 12px rgba(255,214,10,.7); cursor: pointer; }
.uluck input[type=range]::-moz-range-track { height: 7px; border-radius: 99px;
  background: linear-gradient(90deg, rgba(255,255,255,.18), var(--gold)); }
.uluck input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 3px solid #16151a; box-shadow: 0 0 12px rgba(255,214,10,.7); cursor: pointer; }
.uluck-ticks { display: flex; justify-content: space-between; font-size: 8.5px; font-weight: 800;
  color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; padding: 0 3px; }

/* ---------- Market ---------- */
.mkt-section { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px 20px; margin-bottom: 20px; }
.mkt-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.mkt-section .listing { box-shadow: none; border: 1px solid rgba(0,0,0,.07); }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.listing { background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease); animation: dealIn .5s var(--ease) backwards; }
.listing:hover { transform: translateY(-4px); }
.listing img { width: 100%; aspect-ratio: 63/88; object-fit: contain; border-radius: 8px; background: #f0f0f4; }
.listing .li-name { font-size: 13.5px; font-weight: 800; margin-top: 8px; }
.listing .li-seller { font-size: 11.5px; color: var(--ink-3); font-weight: 600; display: flex; gap: 5px; align-items: center; margin-top: 2px; }
.listing .li-seller img { width: 16px; height: 16px; border-radius: 50%; }
.listing .li-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }

/* ---------- Feed ---------- */
.feed-col { max-width: 620px; margin: 0 auto; }
.post { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px;
  animation: dealIn .5s var(--ease) backwards; }
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.post-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #f0f0f4; }
.post-head b { font-size: 14.5px; display: block; }
.post-head span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.post-card-wrap { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 14px; padding: 14px; }
.post-card-wrap img { width: 96px; border-radius: 7px; }
.post-card-wrap .pc-info b { font-size: 16px; display: block; letter-spacing: -.3px; }
.post-card-wrap .pc-info .pc-rar { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.post-card-wrap .pc-info .pc-val { font-size: 13.5px; font-weight: 700; margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.post-text { font-size: 14.5px; margin: 12px 2px; line-height: 1.5; }
.post-foot { display: flex; gap: 8px; }
.like-btn { display: flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 99px; font-size: 13.5px;
  font-weight: 700; background: rgba(0,0,0,.045); transition: all .25s var(--ease); }
.like-btn:hover { background: rgba(255,56,92,.1); }
.like-btn.liked { background: rgba(255,56,92,.12); color: var(--accent-2); }
.like-btn.liked .heart { animation: heartPop .45s var(--ease); }
@keyframes heartPop { 40% { transform: scale(1.5); } }

/* ---------- Leaderboard ---------- */
.lb-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  max-height: 0; opacity: 0; transition: max-height .6s var(--ease), opacity .4s, margin .5s var(--ease); margin: 0; }
.lb-panel.open { max-height: 900px; opacity: 1; margin: 14px 0 8px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(0,0,0,.05); }
.lb-row:last-child { border: none; }
.lb-row .rank { width: 30px; font-weight: 800; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lb-row .rank.top { font-size: 19px; }
.lb-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #f0f0f4; }
.lb-row b { flex: 1; font-size: 14.5px; }
.lb-row .lb-val { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.lb-row.me { background: rgba(255,56,92,.06); }

/* ---------- Shop ---------- */
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.bundle { background: #fff; border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); text-align: center;
  position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); border: 2px solid transparent; }
.bundle:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(255,56,92,.35); }
.bundle .b-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.bundle .b-art { width: 96px; height: 74px; margin: 2px auto 8px; transition: transform .4s var(--ease);
  filter: drop-shadow(0 8px 16px rgba(245,184,0,.4)); }
.bundle .b-art svg { width: 100%; height: 100%; }
.bundle:hover .b-art { transform: scale(1.1) rotate(-2deg); }
.bundle .b-name { font-weight: 800; font-size: 14px; color: var(--ink-2); margin-bottom: 3px; }
.bundle b.amount { font-size: 24px; letter-spacing: -.5px; display: block; }
.bundle .b-price { color: var(--ink-3); font-weight: 700; font-size: 14px; margin: 3px 0 14px; }
.promo-strip { background: linear-gradient(92deg, #1d1d1f, #3c3c43); color: #fff; border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 26px 0; }
.promo-strip b { font-size: 19px; letter-spacing: -.4px; }
.promo-strip p { font-size: 13.5px; opacity: .75; margin-top: 3px; }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 20px; align-items: center; background: #fff; border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); margin-top: 30px; flex-wrap: wrap; }
.profile-head .p-ava { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 4px solid #fff;
  box-shadow: var(--shadow-lg); background: #f0f0f4; }
.profile-head .p-ava img { width: 100%; height: 100%; object-fit: cover; }
.profile-head h2 { font-size: 26px; letter-spacing: -.6px; }
.profile-head .p-join { color: var(--ink-3); font-size: 13.5px; font-weight: 600; margin-top: 3px; }
.p-stats { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.p-stats div b { display: block; font-size: 21px; letter-spacing: -.4px; }
.p-stats div span { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.showcase-row { display: flex; gap: 14px; flex-wrap: wrap; }
.showcase-slot { width: 130px; aspect-ratio: 63/88; border-radius: 12px; background: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; overflow: hidden; border: 2px dashed rgba(0,0,0,.14); color: var(--ink-3);
  font-size: 26px; cursor: pointer; transition: all .3s var(--ease); }
.showcase-slot:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--accent); }
.showcase-slot.filled { border-style: solid; border-color: transparent; }
.showcase-slot img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Modals ---------- */
.modal-veil { position: fixed; inset: 0; z-index: 380; background: rgba(0,0,0,.44); backdrop-filter: blur(6px);
  display: none; align-items: flex-end; justify-content: center; }
.modal-veil.open { display: flex; animation: veilIn .3s ease; }
@keyframes veilIn { from { opacity: 0; } }
.modal { background: #fff; border-radius: 24px 24px 0 0; width: 100%; max-width: 480px; max-height: 88vh;
  overflow-y: auto; padding: 28px 24px calc(24px + env(safe-area-inset-bottom)); animation: sheetUp .45s var(--ease); }
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } }
@media (min-width: 640px) {
  .modal-veil { align-items: center; padding: 20px; }
  .modal { border-radius: 24px; padding: 30px; }
}
.modal h3 { font-size: 22px; letter-spacing: -.5px; margin-bottom: 6px; }
.modal .m-sub { color: var(--ink-3); font-size: 14px; margin-bottom: 20px; font-weight: 500; line-height: 1.5; }
.modal input[type=text], .modal input[type=password] { width: 100%; padding: 14px 16px; border-radius: 13px; border: 1.5px solid rgba(0,0,0,.14);
  font-size: 15.5px; margin-bottom: 12px; outline: none; transition: border .25s; font-family: var(--font); }
.modal input[type=text]:focus, .modal input[type=password]:focus { border-color: var(--accent); }
.auth-opt { display: flex; align-items: center; gap: 14px; border: 1.5px solid rgba(0,0,0,.1); border-radius: 16px;
  padding: 16px; margin-bottom: 12px; cursor: pointer; transition: all .25s var(--ease); width: 100%; text-align: left; }
.auth-opt:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.auth-opt .ao-icon { font-size: 26px; }
.auth-opt b { display: block; font-size: 15.5px; }
.auth-opt span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.auth-opt .bonus { margin-left: auto; background: rgba(52,199,89,.13); color: #1d8a3e; font-weight: 800;
  padding: 6px 11px; border-radius: 99px; font-size: 12.5px; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.modal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.pick-card { border-radius: 9px; overflow: hidden; cursor: pointer; transition: transform .2s; position: relative; background: #f0f0f4; }
.pick-card:hover { transform: scale(1.05); }
.pick-card img { width: 100%; display: block; }
.pick-card span { position: absolute; bottom: 0; left: 0; right: 0; font-size: 10px; font-weight: 800; color: #fff;
  background: rgba(0,0,0,.6); padding: 3px 5px; text-align: center; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 70px; right: 16px; z-index: 400; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { background: rgba(29,29,31,.94); color: #fff; padding: 13px 18px; border-radius: 14px; font-size: 14px;
  font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; max-width: 330px;
  animation: toastIn .45s var(--ease); backdrop-filter: blur(10px); }
.toast.out { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastIn { from { transform: translateX(110%); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(110%); opacity: 0; } }
.toast img { width: 30px; height: 30px; object-fit: contain; }
.toast.gold { background: linear-gradient(120deg, #7a5a00, #b8860b); }

/* ---------- Accessories (body themes) ---------- */
body.acc-retro-frame::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 500;
  border: 10px solid #2e3440; border-radius: 0; box-shadow: inset 0 0 0 4px #8fbcbb, inset 0 0 0 8px #2e3440; }
body.acc-holo-bg { background: linear-gradient(120deg, #f5f5f7, #ffe9f0, #e9f2ff, #f0ffe9, #f5f5f7); background-size: 400% 400%;
  animation: holoShift 16s ease infinite; }
@keyframes holoShift { 50% { background-position: 100% 50%; } }
body.acc-ember::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 499;
  box-shadow: inset 0 0 130px rgba(255,94,25,.28); }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; display: none;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0,0,0,.07); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0;
  font-size: 9.5px; font-weight: 700; color: var(--ink-3); padding: 6px 0; border-radius: 12px; transition: color .25s; }
.bottom-nav button .bn-ico { font-size: 20px; line-height: 1; transition: transform .3s var(--ease); }
.bottom-nav button.active { color: var(--accent); }
.bottom-nav button.active .bn-ico { transform: translateY(-2px) scale(1.12); }
.bottom-nav { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .bottom-nav { display: flex; }
  main { padding-bottom: 130px; }
  .trade-cols { grid-template-columns: 1fr; }
  .trade-side + .trade-side { border-left: none; border-top: 1px solid rgba(0,0,0,.06); }
  .p-stats { margin-left: 0; }
  .rip-cards { flex-wrap: wrap; row-gap: 36px; }
  .rcard, .rip-cards.wrap .rcard { width: clamp(76px, 21vw, 110px); }
  .rcard .tag { bottom: -24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* util */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.muted { color: var(--ink-3); }
.hidden { display: none !important; }
