:root {
  --bg: #06070d;
  --panel: rgba(22, 26, 44, .72);
  --panel-solid: #141828;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #f2f4ff;
  --dim: #8b92b3;
  --gold: #ffd23f;
  --C: #aab4c6;
  --R: #3fa9ff;
  --E: #b45cff;
  --L: #ffb627;
  --M: #ff3b6b;
  --I: #7dfcff;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
body { min-height: 100vh; padding-bottom: 110px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { -webkit-user-drag: none; user-select: none; }
.hidden { display: none !important; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.2em; }
.ci { display: inline-block; width: 1em; height: 1em; border-radius: 50%; vertical-align: -0.15em; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff7c2, #ffd23f 40%, #c98a00 75%, #8a5a00); box-shadow: inset 0 0 0 .08em #fff5, 0 0 .5em #ffc40055; }
.lg { height: 1.3em; width: auto; vertical-align: -0.3em; object-fit: contain; }

/* ---------- ambient background ---------- */
#bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 600px at 50% -20%, #1a1f45 0%, transparent 60%), var(--bg); }
#bg .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .42; animation: drift 22s ease-in-out infinite alternate; }
#bg .o1 { width: 520px; height: 520px; left: -160px; top: -120px; background: #4b2bd6; }
#bg .o2 { width: 460px; height: 460px; right: -160px; top: 30%; background: #0b7fa8; animation-delay: -8s; }
#bg .o3 { width: 520px; height: 520px; left: 30%; bottom: -300px; background: #a8154a; animation-delay: -14s; opacity: .3; }
#bg .grain { position: absolute; inset: 0; opacity: .05; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 3px 3px; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }

/* ---------- header ---------- */
#top { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); background: linear-gradient(180deg, #06070def, #06070dcc); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; }
.logo { font-family: var(--display); font-size: 34px; letter-spacing: 3px; line-height: 1; background: linear-gradient(100deg, #fff3b0, #ffd23f 25%, #ff8a3d 55%, #ff3b6b 80%, #b45cff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 14px #ff8a3d44); }
.hud { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; background: var(--panel); border: 1px solid var(--line2); border-radius: 999px; font-weight: 800; font-size: 14px; }
.pill.icon-only { width: 38px; padding: 0; justify-content: center; }
.pill.icon-only .ic { width: 18px; height: 18px; }
.coins { font-variant-numeric: tabular-nums; }
.coins .ci { width: 19px; height: 19px; }
.coins.bump { animation: bump .45s; }
@keyframes bump { 35% { transform: scale(1.14); box-shadow: 0 0 20px #ffd23f66; } }
.lvl { position: relative; padding: 0 12px 0 4px; gap: 6px; }
.lvl .ring { width: 30px; height: 30px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #ffffff18; stroke-width: 3.5; }
.ring-fg { fill: none; stroke: #8c9bff; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset .8s; }
.lvl b { position: absolute; left: 4px; width: 30px; text-align: center; font-size: 12px; }
.lvl::after { content: "LVL"; font-size: 10px; color: var(--dim); letter-spacing: 1px; }
.free-btn { color: var(--dim); font-variant-numeric: tabular-nums; }
.free-btn .ic { width: 17px; height: 17px; }
.free-btn.ready { color: #03210f; background: linear-gradient(135deg, #8dffc0, #1fd07f); border-color: transparent; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 #1fd07f55; } 50% { box-shadow: 0 0 0 7px #1fd07f00; } }
@media (max-width: 560px) {
  .logo { font-size: 27px; letter-spacing: 2px; }
  .top-in { padding: 10px 12px; } .hud { gap: 5px; }
  .pill { height: 34px; padding: 0 10px; font-size: 13px; } .pill.icon-only { width: 34px; }
  .lvl::after { display: none; } .lvl { padding: 0 4px; } .free-btn .lbl { display: none; }
}

/* ---------- floating tab bar ---------- */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 12px max(12px, env(safe-area-inset-bottom)); pointer-events: none; }
.tabs-in { pointer-events: auto; max-width: 860px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px; border-radius: 24px; background: rgba(14, 17, 30, .86); border: 1px solid var(--line2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 50px -10px #000c; }
#tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 6px; font-size: 10.5px; font-weight: 700; color: var(--dim); border-radius: 18px; transition: color .2s, background .2s; }
#tabs button .ic { width: 22px; height: 22px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
#tabs button.on { color: #fff; background: linear-gradient(180deg, #ffffff16, #ffffff06); }
#tabs button.on .ic { transform: translateY(-1px) scale(1.1); color: var(--gold); }
#tabs em { position: absolute; top: 3px; left: calc(50% + 7px); font-style: normal; background: var(--M); color: #fff; font-size: 10px; font-weight: 900; min-width: 17px; height: 17px; line-height: 17px; border-radius: 9px; padding: 0 5px; box-shadow: 0 0 0 2px #0e111e; }
#tabs em:empty { display: none; }

/* ---------- layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 14px 16px 30px; }
.page-head { margin: 6px 0 18px; }
h1.page { font-family: var(--display); font-size: 48px; letter-spacing: 1.5px; margin: 0; line-height: .95; }
p.sub { color: var(--dim); margin: 6px 0 0; font-size: 14px; }
h2.sec { font-family: var(--display); font-size: 28px; letter-spacing: 1px; margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
h2.sec .ic { color: var(--gold); width: 22px; height: 22px; }
h2.sec small { font-family: Inter; font-size: 13px; color: var(--dim); letter-spacing: 0; font-weight: 600; margin-left: auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--dim); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 800; font-size: 15px;
  background: #ffffff10; border: 1px solid var(--line2); transition: transform .12s, filter .15s, box-shadow .2s; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.96); }
.btn.gold { background: linear-gradient(180deg, #ffe27a, #ffb81f); color: #2a1a00; border: 0; box-shadow: 0 8px 24px -6px #ffb81f88, inset 0 1px 0 #fff8; }
.btn.go { background: linear-gradient(180deg, #8dffc0, #1fd07f); color: #03210f; border: 0; box-shadow: 0 8px 24px -8px #1fd07f88; }
.btn.hot { background: linear-gradient(135deg, #ff5f8a, #b45cff); color: #fff; border: 0; box-shadow: 0 8px 24px -6px #ff3b6b77; }
.btn.small { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 11px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .38; pointer-events: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; background: #ffffff0a; border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--dim); display: inline-flex; align-items: center; gap: 7px; transition: all .15s; }
.chip:hover { color: #fff; }
.chip.on { color: #0b0d18; background: #fff; border-color: #fff; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip .lg { height: 18px; }
select, input[type=search], textarea { height: 40px; padding: 0 12px; border-radius: 12px; background: #ffffff0a; border: 1px solid var(--line2); color: var(--text); font: inherit; font-size: 14px; }
select option { background: #141828; }
textarea { height: 90px; padding: 10px; width: 100%; resize: vertical; font-size: 12px; }
.bar { height: 7px; background: #ffffff12; border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #1fd07f, #8dffc0); transition: width .7s; }
.bar.gold i { background: linear-gradient(90deg, #ffb81f, #ffe27a); }
.empty { text-align: center; color: var(--dim); padding: 44px 16px; }
.empty .big-ic { width: 54px; height: 54px; color: #ffffff30; margin-bottom: 8px; }
.fade-in { animation: fadeUp .4s cubic-bezier(.2,.8,.3,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* ---------- league picker ---------- */
.leagues { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.league { position: relative; height: 84px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 12px; color: var(--dim); overflow: hidden; transition: transform .15s, border-color .2s; }
.league:hover { transform: translateY(-2px); }
.league img { height: 38px; width: auto; max-width: 70%; object-fit: contain; filter: grayscale(.6) brightness(.85); transition: filter .2s, transform .2s; }
.league.on { color: #fff; border-color: transparent; background: linear-gradient(145deg, var(--s1), var(--s2)); box-shadow: 0 14px 30px -12px var(--s2); }
.league.on img { filter: drop-shadow(0 3px 8px #0008); transform: scale(1.08); }
.league .quad { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 6px; }
.league .quad img { height: 17px; max-width: none; }
@media (max-width: 560px) { .league { height: 70px; font-size: 10.5px; border-radius: 14px; } .league img { height: 30px; } .leagues { gap: 6px; } .league .quad img { height: 14px; } }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 10px; min-height: 250px; padding: 26px 28px; border-radius: 26px; overflow: hidden; margin-bottom: 18px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c1) 85%, #000), #0b0d18 70%); border: 1px solid var(--line2); }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-60deg, transparent 0 22px, #ffffff06 22px 44px); }
.hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 70%; height: 180%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c2) 60%, transparent), transparent); opacity: .55; }
.hero > * { position: relative; z-index: 1; }
.hero .hlogo { height: 58px; width: auto; filter: drop-shadow(0 4px 12px #0009); }
.hero .hquad { display: flex; gap: 10px; } .hero .hquad img { height: 40px; }
.hero h2 { font-family: var(--display); font-size: 54px; line-height: .9; margin: 14px 0 6px; letter-spacing: 1px; }
.hero p { margin: 0 0 14px; color: #d6dafa; font-size: 14px; }
.hero .hbar { max-width: 320px; }
.hero .hbar small { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #d6dafa; margin-bottom: 6px; }
.fan { position: relative; height: 230px; display: flex; justify-content: center; align-items: center; }
.fan .fc { position: absolute; width: 132px; transition: transform .4s cubic-bezier(.2,1.2,.4,1); }
.fan .fc:nth-child(1) { transform: translateX(-78px) rotate(-13deg) translateY(12px); }
.fan .fc:nth-child(2) { transform: translateY(-8px); z-index: 2; width: 150px; }
.fan .fc:nth-child(3) { transform: translateX(78px) rotate(13deg) translateY(12px); }
.hero:hover .fan .fc:nth-child(1) { transform: translateX(-96px) rotate(-17deg) translateY(10px); }
.hero:hover .fan .fc:nth-child(3) { transform: translateX(96px) rotate(17deg) translateY(10px); }
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding: 20px; }
  .hero h2 { font-size: 42px; }
  .fan { height: 190px; margin-top: 4px; } .fan .fc { width: 108px; } .fan .fc:nth-child(2) { width: 124px; }
  .fan .fc:nth-child(1) { transform: translateX(-70px) rotate(-12deg) translateY(10px); } .fan .fc:nth-child(3) { transform: translateX(70px) rotate(12deg) translateY(10px); }
}

/* ---------- store ---------- */
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; margin-bottom: 16px; cursor: pointer; background: linear-gradient(110deg, #3a1d7a, #173a6b 55%, #0d4a3b); border: 1px solid var(--line2); }
.banner .bic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #ffffff18; color: var(--gold); flex: none; }
.banner .bic .ic { width: 22px; height: 22px; }
.banner h3 { margin: 0; font-family: var(--display); font-size: 23px; letter-spacing: .5px; }
.banner p { margin: 0; color: #c9cdea; font-size: 13px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.offer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px 18px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, border-color .2s; }
.offer:hover { transform: translateY(-4px); border-color: var(--line2); }
.offer::before { content: ""; position: absolute; left: 50%; top: -30%; width: 120%; height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow, #ffffff22), transparent); opacity: .45; pointer-events: none; }
.offer .pk-wrap { position: relative; transition: transform .3s cubic-bezier(.2,1.3,.4,1); }
.offer:hover .pk-wrap { transform: translateY(-6px) rotate(-2deg) scale(1.03); }
.offer h3 { font-family: var(--display); font-size: 28px; letter-spacing: 1px; margin: 2px 0 0; }
.offer .desc { font-size: 13px; color: #c3c8e6; text-align: center; min-height: 34px; line-height: 1.35; }
.odds-bar { display: flex; width: 100%; height: 8px; border-radius: 9px; overflow: hidden; gap: 2px; }
.odds-bar i { display: block; min-width: 4px; }
.odds-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 11px; font-weight: 700; color: var(--dim); }
.odds-list span { display: inline-flex; align-items: center; gap: 4px; }
.odds-list i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.offer .tag { position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 900; letter-spacing: 1px; padding: 4px 8px; border-radius: 7px; background: var(--M); color: #fff; z-index: 2; }
.hits { display: grid; grid-auto-flow: column; grid-auto-columns: 118px; gap: 12px; overflow-x: auto; padding: 10px 2px 12px; scrollbar-width: thin; }
.par-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.par-grid .pc { text-align: center; font-size: 12px; font-weight: 700; }
.par-grid .pc .card { max-width: 120px; margin: 0 auto; }
.par-grid .pc b { display: block; font-size: 13px; margin-top: 10px; }
.par-grid .pc span { color: var(--dim); }
@media (max-width: 560px) { .par-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- pack art ---------- */
.pack { --w: 150px; --p1: #0b3d91; --p2: #9fd3ff;
  position: relative; width: var(--w); aspect-ratio: 5 / 8; flex: none; container-type: inline-size; user-select: none;
  background: radial-gradient(90% 60% at 50% 45%, color-mix(in srgb, var(--p2) 55%, transparent), transparent 70%), linear-gradient(165deg, color-mix(in srgb, var(--p1) 80%, #fff 12%), var(--p1) 45%, color-mix(in srgb, var(--p1) 60%, #000));
  clip-path: polygon(0 2.4%, 4% 0, 8% 2.4%, 12% 0, 16% 2.4%, 20% 0, 24% 2.4%, 28% 0, 32% 2.4%, 36% 0, 40% 2.4%, 44% 0, 48% 2.4%, 52% 0, 56% 2.4%, 60% 0, 64% 2.4%, 68% 0, 72% 2.4%, 76% 0, 80% 2.4%, 84% 0, 88% 2.4%, 92% 0, 96% 2.4%, 100% 0, 100% 97.6%, 96% 100%, 92% 97.6%, 88% 100%, 84% 97.6%, 80% 100%, 76% 97.6%, 72% 100%, 68% 97.6%, 64% 100%, 60% 97.6%, 56% 100%, 52% 97.6%, 48% 100%, 44% 97.6%, 40% 100%, 36% 97.6%, 32% 100%, 28% 97.6%, 24% 100%, 20% 97.6%, 16% 100%, 12% 97.6%, 8% 100%, 4% 97.6%, 0 100%); }
.pack .pk-foil { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 25%, #ffffffaa 40%, transparent 48%, transparent 58%, #ffffff66 66%, transparent 74%) 0 0 / 260% 100%; animation: foil 3.8s linear infinite; }
@keyframes foil { from { background-position: 160% 0; } to { background-position: -160% 0; } }
.pack .pk-lines { position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, transparent 0 8cqw, #ffffff08 8cqw 16cqw); }
.pack .pk-crimp { position: absolute; left: 0; right: 0; height: 9%; background: linear-gradient(180deg, #ffffff30, #ffffff08); z-index: 2; }
.pack .pk-crimp.t { top: 0; }
.pack .pk-crimp.b { bottom: 0; transform: scaleY(-1); border-bottom: 1px dashed #ffffff40; }
.pack .pk-brand { position: absolute; top: 12%; left: 0; right: 0; text-align: center; font-family: var(--display); font-size: 15cqw; letter-spacing: 1.4cqw; color: #fff; text-shadow: 0 .6cqw 3cqw #000a; z-index: 2; }
.pack .pk-star { position: absolute; left: -10%; width: 120%; top: 21%; height: 52%; object-fit: cover; object-position: 50% 12%; z-index: 1; filter: drop-shadow(0 3cqw 5cqw #000a);
  -webkit-mask: linear-gradient(180deg, #000 72%, transparent); mask: linear-gradient(180deg, #000 72%, transparent); }
.pack .pk-quad { position: absolute; top: 27%; left: 14%; right: 14%; display: grid; grid-template-columns: 1fr 1fr; gap: 7cqw 6cqw; z-index: 1; }
.pack .pk-quad img { width: 100%; height: 24cqw; object-fit: contain; filter: drop-shadow(0 2cqw 4cqw #000a); }
.pack .pk-lg { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); height: 22cqw; width: auto; max-width: 42cqw; object-fit: contain; z-index: 2; filter: drop-shadow(0 1cqw 3cqw #000c); }
.pack .pk-lg.wc { height: 27cqw; bottom: 16%; }
.pack .pk-tier { position: absolute; left: 0; right: 0; bottom: 10%; text-align: center; z-index: 2; }
.pack .pk-tier span { display: inline-block; font-weight: 900; font-size: 6.8cqw; letter-spacing: 1.2cqw; color: #fff; background: #000a; padding: 1.4cqw 4.5cqw; border-radius: 99px; box-shadow: inset 0 0 0 .5cqw #ffffff30; }
.pack.premium .pk-tier span { background: linear-gradient(90deg, #b45cff, #ff5f8a); }
.pack.elite { --p1: #1a1206 !important; --p2: #ffcf4a !important; }
.pack.elite .pk-brand { color: #ffe9a8; }
.pack.elite .pk-tier span { background: linear-gradient(90deg, #ffe27a, #ffb81f); color: #2a1a00; }
.pack.elite .pk-crimp { background: linear-gradient(180deg, #ffe08a66, #ffe08a11); }
.pack.free { --p1: #0e5e3e !important; --p2: #5dffb0 !important; }
.pk-wrap { filter: drop-shadow(0 18px 26px #000c); }
.pk-wrap.premium { filter: drop-shadow(0 18px 26px #000c) drop-shadow(0 0 22px #b45cff66); }
.pk-wrap.elite { filter: drop-shadow(0 18px 26px #000c) drop-shadow(0 0 26px #ffb62788); }

/* ---------- cards ---------- */
.card { --rc: var(--C); --t1: #333; --t2: #999; --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; width: 100%; aspect-ratio: 5 / 7; border-radius: 6% / 4.3%; transform-style: preserve-3d;
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .15s ease-out; }
.card .face { position: absolute; inset: 0; border-radius: 6% / 4.3%; overflow: hidden; container-type: inline-size; padding: 2.4%;
  background: linear-gradient(145deg, var(--rc), color-mix(in srgb, var(--rc) 30%, #000) 55%, var(--rc)); box-shadow: 0 12px 28px -10px #000d, 0 0 0 1px #0008; }
.card .inner { position: relative; width: 100%; height: 100%; border-radius: 4.5cqw; overflow: hidden;
  background: radial-gradient(110% 65% at 50% 36%, color-mix(in srgb, var(--t1) 75%, #fff 10%), transparent 72%), linear-gradient(172deg, color-mix(in srgb, var(--t1) 88%, #000), #05060c 96%); }
.card .stripe { position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, transparent 0 6cqw, #ffffff07 6cqw 12cqw); }
.card .accent { position: absolute; left: -10%; right: -10%; top: 50%; height: 15cqw; background: var(--t2); opacity: .22; transform: skewY(-12deg); }
.card .bignum { position: absolute; right: 3cqw; top: 22cqw; font-family: var(--display); font-size: 46cqw; line-height: .8; color: #ffffff0f; }
.card .ovr { position: absolute; left: 5.5cqw; top: 4.5cqw; text-align: center; z-index: 3; line-height: .85; }
.card .ovr b { display: block; font-family: var(--display); font-size: 19cqw; color: #fff; text-shadow: 0 1cqw 3cqw #000b; }
.card .ovr span { display: block; font-weight: 900; font-size: 5.8cqw; color: #fff; opacity: .92; letter-spacing: .3cqw; margin-top: 1cqw; }
.card .tlogo { position: absolute; right: 4.5cqw; top: 4.5cqw; width: 19cqw; height: 19cqw; object-fit: contain; z-index: 3; filter: drop-shadow(0 1cqw 2cqw #000a); }
.card .tlogo.flag { height: 13cqw; border-radius: 1.5cqw; object-fit: cover; box-shadow: 0 0 0 .6cqw #fff8; }
.card .photo { position: absolute; left: 0; right: 0; bottom: 25%; height: 70%; display: flex; align-items: flex-end; justify-content: center; z-index: 2; }
.card .photo img { max-width: 118%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 2cqw 4cqw #000c); }
.card .photo.round { bottom: 29%; height: 55%; }
.card .photo.round img { width: 66cqw; height: 66cqw; max-width: none; object-fit: cover; object-position: 50% 18%; border-radius: 50%; border: 1.4cqw solid var(--rc); box-shadow: 0 0 6cqw var(--rc); }
.card .photo.soccer img { height: 92%; }
.card .plate { position: absolute; left: 0; right: 0; bottom: 0; height: 27%; z-index: 3; background: linear-gradient(180deg, transparent, #000e 32%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 5cqw; }
.card .nm { font-family: var(--display); font-size: 11.5cqw; line-height: 1; color: #fff; letter-spacing: .4cqw; text-align: center; padding: 0 4cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.card .nm.long { font-size: 9.5cqw; } .card .nm.xlong { font-size: 8cqw; }
.card .meta { display: flex; align-items: center; gap: 2cqw; margin-top: 1.8cqw; font-size: 4.6cqw; font-weight: 800; color: #ffffffcc; letter-spacing: .3cqw; text-transform: uppercase; }
.card .meta img { height: 6.5cqw; width: auto; }
.card .rtag { padding: .6cqw 2.4cqw; border-radius: 9cqw; background: var(--rc); color: #000; font-weight: 900; }
.card .ptag { position: absolute; top: 27cqw; left: 5.5cqw; z-index: 3; font-size: 4.2cqw; font-weight: 900; padding: .8cqw 2cqw; border-radius: 2cqw; letter-spacing: .3cqw; }
.card.r-R { --rc: var(--R); } .card.r-E { --rc: var(--E); } .card.r-L { --rc: var(--L); } .card.r-M { --rc: var(--M); } .card.r-I { --rc: #fff3c4; }
.card.r-M .face { background: conic-gradient(from var(--spin, 0deg), #ff3b6b, #ffb627, #7dfcff, #b45cff, #ff3b6b); animation: spinBorder 4s linear infinite; }
.card.r-I .face { background: conic-gradient(from var(--spin, 0deg), #fff, #7dfcff, #ffe066, #ff9bd5, #fff); animation: spinBorder 3s linear infinite; }
.card.r-I .inner { background: radial-gradient(120% 70% at 50% 35%, #3a3a52, transparent 70%), linear-gradient(170deg, #1a1a2a, #050508); }
.card.r-I .accent { background: linear-gradient(90deg, #ffe066, #7dfcff); opacity: .3; }
.card.r-L .face { box-shadow: 0 12px 28px -10px #000d, 0 0 16px -3px var(--L); }
.card.r-M .face { box-shadow: 0 12px 28px -10px #000d, 0 0 22px -3px var(--M); }
.card.r-I .face { box-shadow: 0 12px 28px -10px #000d, 0 0 26px 0 #7dfcffaa; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinBorder { to { --spin: 360deg; } }
.card .shine { backface-visibility: hidden; position: absolute; inset: 0; border-radius: 6% / 4.3%; pointer-events: none; z-index: 5; mix-blend-mode: color-dodge; opacity: 0; transition: opacity .3s;
  background: linear-gradient(115deg, transparent 30%, #ffffff66 calc(var(--mx) - 5%), #ffffffaa var(--mx), #ffffff66 calc(var(--mx) + 5%), transparent 70%); }
.card.r-L .shine, .card.r-M .shine, .card.r-I .shine, .card[class*="v-"] .shine, .card.hover .shine { opacity: .55; }
.card.auto .shine { animation: sweep 3.2s ease-in-out infinite; background-size: 300% 100%; background-image: linear-gradient(115deg, transparent 40%, #ffffff99 50%, transparent 60%); }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.card.v-h .shine { opacity: .6; background: repeating-linear-gradient(110deg, #ff3b6b55 0, #ffb62755 6%, #7dffb055 12%, #3fa9ff55 18%, #b45cff55 24%, #ff3b6b55 30%) calc(var(--mx) * 2) var(--my) / 200% 200%; animation: none; }
.card.auto.v-h .shine { animation: holoDrift 5s linear infinite; }
@keyframes holoDrift { to { background-position: 200% 100%; } }
.card.v-g .face { background: linear-gradient(135deg, #7a5200, #ffe38a 25%, #b37700 50%, #fff2b8 75%, #8a5c00); }
.card.v-g .inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(170deg, #ffcf4a22, transparent 50%); }
.card.v-k .face { background: linear-gradient(135deg, #000, #3a3a3a 30%, #000 50%, #555 70%, #000); box-shadow: 0 0 0 3px #ffcf4a inset, 0 12px 28px -10px #000d; }
.card.v-k .inner { background: radial-gradient(120% 70% at 50% 35%, #2a2a2a, transparent 70%), linear-gradient(170deg, #111, #000); }
.card.v-x .face { background: conic-gradient(from var(--spin, 0deg), #ff3bd5, #3b8bff, #7dfcff, #b45cff, #ff3bd5); animation: spinBorder 2.4s linear infinite; }
.card.v-x .inner { background: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent), radial-gradient(2px 2px at 40% 70%, #fff, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 10% 80%, #fff, transparent), radial-gradient(1px 1px at 55% 45%, #fff, transparent), radial-gradient(80% 60% at 30% 30%, #6b1bb5aa, transparent), radial-gradient(80% 60% at 80% 70%, #1b4fb5aa, transparent), #050214; }
.card.v-x .accent, .card.v-k .accent { display: none; }
.ptag.v-h { background: linear-gradient(90deg, #ff3b6b, #ffb627, #7dffb0, #3fa9ff, #b45cff); color: #000; }
.ptag.v-g { background: linear-gradient(90deg, #b37700, #ffe38a); color: #221400; }
.ptag.v-k { background: #000; color: #ffcf4a; box-shadow: 0 0 0 .5cqw #ffcf4a; }
.ptag.v-x { background: linear-gradient(90deg, #ff3bd5, #3b8bff); color: #fff; }
.card .back { position: absolute; inset: 0; border-radius: 6% / 4.3%; transform: rotateY(180deg); container-type: inline-size; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #2b3170, #0b0d1a 72%); box-shadow: inset 0 0 0 5px #1c2046, inset 0 0 0 7px #ffffff26, 0 12px 28px -10px #000d; display: grid; place-items: center; }
.card .back::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #ffffff07 0 8px, transparent 8px 16px), conic-gradient(from 0deg at 50% 42%, transparent, #ffffff10, transparent 30%); }
.card .back .bk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3cqw; }
.card .back .bk-ring { width: 46cqw; height: 46cqw; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #ffffff10, transparent 70%); box-shadow: inset 0 0 0 1.2cqw #ffffff22, 0 0 12cqw #7c5cff44; }
.card .back b { font-family: var(--display); font-size: 17cqw; letter-spacing: 1cqw; background: linear-gradient(100deg, #ffe27a, #ff8a3d, #ff3b6b, #b45cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card .back small { font-weight: 900; font-size: 4.2cqw; letter-spacing: 1.2cqw; color: #ffffff55; }
.card.missing .face { background: #181b2b; box-shadow: none; animation: none !important; }
.card.missing .inner { background: #0f111b; }
.card.missing .photo img { filter: brightness(0) opacity(.35); }
.card.missing .tlogo, .card.missing .meta img { filter: grayscale(1) opacity(.3); }
.card.missing .ovr b, .card.missing .nm { color: #ffffff38; text-shadow: none; }
.card.missing .rtag { background: #ffffff1c; color: #ffffff60; }
.card.missing .meta, .card.missing .ovr span { color: #ffffff40; }
.card.missing .accent, .card.missing .shine, .card.missing .bignum { display: none; }

/* flip (opacity swap mid-rotation — Chrome flattens 3D when blend modes are present) */
.flipper .card { transform: perspective(900px) rotateY(180deg); transition: transform .7s cubic-bezier(.3,1.35,.5,1); }
.flipper.flip .card { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.flipper.settled .card { transition: transform .15s ease-out; }
.flipper.instant .card, .flipper.instant .face, .flipper.instant .back { transition: none !important; }
.flipper .card .face, .flipper .card .back { transition: opacity 0s linear .17s; }
.flipper:not(.flip) .card .face, .flipper:not(.flip) .card .shine { opacity: 0 !important; }
.flipper.flip .card .back { opacity: 0; pointer-events: none; }

.cbox { position: relative; cursor: pointer; }
.cbox .count { position: absolute; top: -7px; right: -7px; z-index: 6; background: #fff; color: #000; font-weight: 900; font-size: 11px; border-radius: 99px; padding: 2px 7px; box-shadow: 0 3px 8px #0008; }
.newtag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 6; background: linear-gradient(90deg, #ff3b6b, #ff8a3d); color: #fff; font-weight: 900; font-size: 10px; border-radius: 6px; padding: 2px 7px; letter-spacing: 1.2px; box-shadow: 0 4px 12px #ff3b6b66; }
@media (hover: hover) { .cbox .card:not(.missing):hover { transform: perspective(800px) translateY(-6px) scale(1.04) rotateX(var(--rx)) rotateY(var(--ry)); } }

/* ---------- collection ---------- */
.coll-top { display: grid; grid-template-columns: 230px 1fr; gap: 14px; margin-bottom: 16px; }
.big-ring { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; cursor: pointer; }
.big-ring.on { border-color: #fff5; }
.big-ring .rwrap { position: relative; width: 124px; height: 124px; }
.big-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.big-ring .rb { fill: none; stroke: #ffffff12; stroke-width: 9; }
.big-ring .rf { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s; filter: drop-shadow(0 0 6px #ffd23f88); }
.big-ring .rt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big-ring .rt b { font-family: var(--display); font-size: 34px; line-height: 1; }
.big-ring .rt span { font-size: 11px; color: var(--dim); font-weight: 700; }
.big-ring .cap { font-weight: 800; font-size: 13px; text-align: center; }
.big-ring .cap small { display: block; color: var(--dim); font-weight: 600; }
.lg-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lstat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, transform .15s; }
.lstat:hover { transform: translateY(-2px); }
.lstat.on { border-color: #fff6; background: #ffffff12; }
.lstat img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.lstat .info { flex: 1; min-width: 0; }
.lstat .info .k { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); font-weight: 700; }
.lstat .info .v { font-family: var(--display); font-size: 24px; margin: 1px 0 5px; }
.lstat .info .v small { font-size: 15px; color: var(--dim); }
@media (max-width: 700px) {
  .coll-top { grid-template-columns: 1fr; }
  .big-ring { flex-direction: row; gap: 16px; justify-content: flex-start; } .big-ring .rwrap { width: 84px; height: 84px; }
  .big-ring .rt b { font-size: 24px; } .big-ring .cap { text-align: left; }
  .lstat { padding: 10px; gap: 8px; } .lstat img { width: 30px; height: 30px; } .lstat .info .v { font-size: 20px; }
}
.toolbar { position: sticky; top: 60px; z-index: 10; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px; margin: 0 -10px 14px; border-radius: 18px; background: rgba(10, 12, 22, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.toolbar .search { position: relative; flex: 1; min-width: 170px; }
.toolbar .search .ic { position: absolute; left: 12px; top: 11px; color: var(--dim); }
.toolbar .search input { width: 100%; padding-left: 36px; }
.toolbar .chips { width: 100%; gap: 6px; }
.toolbar .chip { height: 32px; padding: 0 11px; font-size: 12px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 18px 12px; }
@media (max-width: 560px) { .cgrid { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; } h1.page { font-size: 40px; } .toolbar { top: 54px; } .toolbar .search { flex: 1 1 100%; } .toolbar select { flex: 1 1 0; min-width: 0; } .toolbar #sellAll { flex: 1 1 100%; } }

/* ---------- goals ---------- */
.sets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.set-row:hover { border-color: var(--line2); }
.set-row .sic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #ffffff0c; color: var(--gold); flex: none; }
.set-row .sic .ic { width: 20px; height: 20px; }
.set-row .sic img { width: 30px; height: 30px; object-fit: contain; }
.set-row .sic img.flag { height: 20px; border-radius: 3px; object-fit: cover; }
.set-row .info { flex: 1; min-width: 0; }
.set-row .info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row .info small { color: var(--dim); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.set-row .bar { margin-top: 7px; }
.set-row.done { border-color: #1fd07f55; background: linear-gradient(135deg, #0f2a20cc, var(--panel)); }
.set-row .ok { color: #1fd07f; }
.mission { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; }
.mission .mic { width: 46px; height: 46px; display: grid; place-items: center; background: linear-gradient(145deg, #ffffff14, #ffffff05); border-radius: 14px; flex: none; color: var(--gold); }
.mission .mic .ic { width: 22px; height: 22px; }
.mission .mic img { width: 30px; height: 30px; object-fit: contain; }
.mission .info { flex: 1; min-width: 0; }
.mission .info b { font-size: 15px; }
.mission .info small { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; margin: 3px 0 7px; font-weight: 700; }
.mission.claimed { opacity: .45; }
.mission .ok { color: #1fd07f; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.streak div { text-align: center; padding: 9px 2px; border-radius: 12px; background: #ffffff0a; font-size: 11px; font-weight: 800; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.streak div .ic, .streak div .ci { width: 18px; height: 18px; }
.streak div.got { background: linear-gradient(145deg, #1fd07f30, #1fd07f0c); color: #8dffc0; }
.streak div.today { outline: 2px solid var(--gold); color: #fff; }
.flame { color: #ff8a3d; }

/* ---------- play ---------- */
.game-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.game-card { position: relative; min-height: 230px; padding: 22px; border-radius: 24px; border: 1px solid var(--line2); overflow: hidden; cursor: pointer; transition: transform .2s; display: flex; flex-direction: column; justify-content: flex-end; }
.game-card:hover { transform: translateY(-4px); }
.game-card .gart { position: absolute; right: 8px; top: 16px; display: flex; pointer-events: none; }
.game-card .gart .mini { width: 74px; }
.game-card .gart .mini:nth-child(1) { transform: rotate(-12deg) translate(24px, 10px); }
.game-card .gart .mini:nth-child(2) { transform: rotate(9deg); z-index: 2; }
.game-card .gic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #ffffff1c; margin-bottom: 10px; position: relative; }
.game-card .gic .ic { width: 24px; height: 24px; }
.game-card h3 { font-family: var(--display); font-size: 32px; margin: 0 0 4px; letter-spacing: 1px; position: relative; }
.game-card p { color: #dfe3ff; margin: 0; font-size: 14px; position: relative; max-width: 88%; text-shadow: 0 1px 6px #000a; }
.game-card { padding-top: 120px; }
.game-card .left { margin-top: 10px; font-size: 12px; font-weight: 700; color: #ffffffaa; position: relative; }
.back-btn { margin-bottom: 12px; }
.arena { display: grid; gap: 14px; }
.arena .side { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.arena .vs { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 230px; }
.arena .vs-t { font-family: var(--display); font-size: 44px; color: var(--gold); text-shadow: 0 0 20px #ffd23f66; }
.arena .slot { width: 140px; position: relative; }
.arena .mod { text-align: center; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); font-weight: 800; display: flex; flex-direction: column; align-items: center; }
.arena .mod b { display: inline-flex; gap: 8px; align-items: center; }
.arena .mod small { display: block; color: var(--dim); font-weight: 600; margin-top: 2px; }
.arena .mod.hot { border-color: #ff3b6b88; box-shadow: 0 0 24px -6px #ff3b6b88; }
.score { font-family: var(--display); font-size: 42px; text-align: center; letter-spacing: 2px; }
.score .y { color: #8dffc0; } .score .c { color: #ff6b8a; }
.hand .cbox.used { opacity: .22; pointer-events: none; filter: grayscale(1); }
.pw { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); z-index: 6; background: #000; border: 1px solid #fff4; font-weight: 900; font-size: 12px; border-radius: 8px; padding: 1px 8px; white-space: nowrap; display: flex; align-items: center; gap: 3px; }
.pw .ic { width: 12px; height: 12px; color: var(--gold); }
.pw.static { position: static; transform: none; margin: 10px auto 0; width: max-content; }
.result-ic { width: 72px; height: 72px; }
.tu-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 640px; margin: 0 auto; min-height: 120px; }
.tu-slot { aspect-ratio: 5/7; border-radius: 12px; border: 2px dashed #ffffff22; display: grid; place-items: center; color: #ffffff30; }
@media (max-width: 560px) { .arena .slot { width: 112px; } .arena .vs { gap: 10px; min-height: 200px; } .arena .vs-t { font-size: 32px; } }

/* =================== PACK OPENER =================== */
#opener { position: fixed; inset: 0; z-index: 50; overflow: hidden; touch-action: none; user-select: none; background: #03040a; }
.op-bg { position: absolute; inset: 0; transition: background 1s;
  background: radial-gradient(60% 50% at 50% 48%, color-mix(in srgb, var(--hc, #3b4bd6) 38%, transparent), transparent 70%), radial-gradient(120% 80% at 50% 110%, #1b1f45, #03040a 60%); }
.op-rays { position: absolute; left: 50%; top: 46%; width: 180vmax; height: 180vmax; transform: translate(-50%, -50%); opacity: .1; animation: rot 40s linear infinite;
  background: repeating-conic-gradient(from 0deg, var(--hc, #fff) 0 3deg, transparent 3deg 18deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 50%); mask: radial-gradient(circle, #000 0, transparent 50%); transition: opacity 1s; }
#opener.tease .op-rays { opacity: .3; animation-duration: 10s; }
@keyframes rot { to { transform: translate(-50%, -50%) rotate(360deg); } }
.op-ui { position: absolute; left: 0; right: 0; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 16px 0; pointer-events: none; }
.op-ui > * { pointer-events: auto; }
.op-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; letter-spacing: 1.5px; color: #fff; }
.op-title img { height: 28px; }
.op-hint { position: absolute; left: 0; right: 0; bottom: max(40px, env(safe-area-inset-bottom)); text-align: center; z-index: 20; font-weight: 800; font-size: 13px; letter-spacing: 3px; color: #ffffffbb; animation: blink 1.8s infinite; pointer-events: none; }
@keyframes blink { 50% { opacity: .35; } }
.stage { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }

/* pack on stage */
.pz { position: relative; width: min(58vw, 270px, calc((100dvh - 220px) * .625)); aspect-ratio: 5/8; animation: packIn .9s cubic-bezier(.2,1.25,.4,1) both; }
@keyframes packIn { from { transform: translateY(90vh) rotate(-25deg) scale(.5); } }
.p3d { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .25s ease-out; cursor: grab; }
.p3d .half { position: absolute; inset: 0; }
.p3d .half .pack { --w: 100%; }
.p3d .half.top { clip-path: inset(0 0 90.5% 0); transform-origin: 0% 9.5%; z-index: 2; }
.p3d .half.bot { clip-path: inset(9.5% 0 0 0); }
.pz .shadow { position: absolute; left: 10%; right: 10%; bottom: -8%; height: 8%; border-radius: 50%; background: #000; filter: blur(14px); opacity: .7; }
.pz.idle .p3d { animation: floaty 3.2s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 -12px; } }
.tguide { position: absolute; left: 4%; right: 4%; top: 9.5%; height: 0; border-top: 2px dashed #ffffffaa; z-index: 5; pointer-events: none; }
.tguide::after { content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px #fff, 0 0 30px var(--hc); animation: guide 1.6s ease-in-out infinite; }
@keyframes guide { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 16px); opacity: 0; } }
.tglow { position: absolute; left: 0; top: 9.5%; height: 3px; width: 0; z-index: 4; transform: translateY(-50%); border-radius: 3px; background: #fff; box-shadow: 0 0 10px #fff, 0 0 24px 4px var(--lc, #fff), 0 0 60px 10px var(--lc, #fff); pointer-events: none; }
.pz.shake .p3d { animation: shake .35s; }
@keyframes shake { 20% { transform: translate(-7px, 2px) rotate(-3deg); } 40% { transform: translate(7px, -2px) rotate(3deg); } 60% { transform: translate(-5px, 0) rotate(-2deg); } 80% { transform: translate(5px, 1px) rotate(2deg); } }
.pz.ripped .half.top { transition: transform .8s cubic-bezier(.2,.7,.3,1), opacity .8s; transform: translate(40%, -220%) rotate(-50deg) !important; opacity: 0; }
.pz.ripped .tguide { display: none; }
.pz.drop .half.bot, .pz.drop .shadow { transition: transform .7s cubic-bezier(.5,0,.8,.4), opacity .7s; transform: translateY(90vh) rotate(10deg); opacity: 0; }
.pz.rumble .p3d { animation: rumble .07s linear infinite; }
@keyframes rumble { 0% { transform: translate(1px, -1px); } 25% { transform: translate(-2px, 1px); } 50% { transform: translate(2px, 1px); } 75% { transform: translate(-1px, -2px); } }
.beam { position: absolute; left: 5%; right: 5%; bottom: 90.5%; height: 140vh; z-index: 1; transform-origin: bottom; transform: scaleY(0); opacity: 0; pointer-events: none;
  background: linear-gradient(0deg, #fff, var(--lc, #fff) 12%, color-mix(in srgb, var(--lc, #fff) 30%, transparent) 50%, transparent); filter: blur(6px); }
.pz.ripped .beam { animation: beam 1.3s ease-out forwards; }
@keyframes beam { 10% { opacity: 1; transform: scaleY(1); } 70% { opacity: .8; } 100% { opacity: 0; transform: scaleY(1.1) scaleX(1.3); } }
.flash { position: absolute; inset: 0; z-index: 30; background: var(--fc, #fff); pointer-events: none; animation: flash .6s ease-out forwards; }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
.shaking { animation: scrShake .5s; }
@keyframes scrShake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-7px, 3px); } 40%, 60% { transform: translate(7px, -3px); } }
.shock { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 4px solid var(--sc, #fff); box-shadow: 0 0 30px var(--sc, #fff), inset 0 0 30px var(--sc, #fff); z-index: 3; pointer-events: none; animation: shock .8s ease-out forwards; }
@keyframes shock { from { transform: scale(.3); opacity: 1; } to { transform: scale(9); opacity: 0; } }

/* deck reveal */
.deck-area { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: -40px; }
.deck { --cw: min(64vw, 300px, calc((100dvh - 320px) * .714)); position: relative; width: var(--cw); aspect-ratio: 5/7; }
.dk { position: absolute; inset: 0; transition: transform .5s cubic-bezier(.2,1,.3,1), opacity .4s; cursor: pointer; }
.dk.rise { animation: rise .7s cubic-bezier(.2,1.1,.4,1) backwards; }
@keyframes rise { from { transform: translateY(40vh) scale(.6) rotate(8deg); opacity: 0; } }
.dk.toss-l { transform: translate(-130vw, -20vh) rotate(-40deg) !important; transition: transform .55s cubic-bezier(.5,0,.8,.5); }
.dk.toss-r { transform: translate(130vw, -20vh) rotate(40deg) !important; transition: transform .55s cubic-bezier(.5,0,.8,.5); }
.dk.tease-E:not(.flip) .back { animation: tease 1s ease-in-out infinite; --tc: var(--E); }
.dk.tease-L:not(.flip) .back, .dk.tease-M:not(.flip) .back, .dk.tease-I:not(.flip) .back { animation: tease .5s ease-in-out infinite, wobble .22s linear infinite; --tc: var(--L); }
@keyframes tease { 50% { box-shadow: inset 0 0 0 5px #1c2046, 0 0 50px 10px var(--tc); filter: brightness(1.35); } }
@keyframes wobble { 25% { translate: -2px 0; rotate: -.6deg; } 75% { translate: 2px 0; rotate: .6deg; } }
.deck-info { min-height: 62px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.deck-info .di-tags { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; animation: fadeUp .35s; }
.deck-info .t { font-size: 11px; font-weight: 900; letter-spacing: 1.2px; padding: 4px 9px; border-radius: 8px; background: #ffffff18; }
.deck-info .val { font-weight: 800; font-size: 14px; display: flex; gap: 6px; align-items: center; color: #d6dafa; animation: fadeUp .35s; }
.deck-count { font-family: var(--display); font-size: 20px; letter-spacing: 2px; color: #ffffffaa; }
.tray { position: absolute; left: 0; right: 0; bottom: max(76px, calc(env(safe-area-inset-bottom) + 68px)); display: flex; justify-content: center; gap: 6px; z-index: 15; pointer-events: none; }
.tray .tc { width: 38px; animation: trayIn .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes trayIn { from { transform: translateY(-80px) scale(1.8); opacity: 0; } }
.par-banner { position: absolute; left: -20%; right: -20%; top: 44%; z-index: 12; padding: 10px 0; text-align: center; font-family: var(--display); font-size: 30px; letter-spacing: 6px; color: #fff; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--pb, #ff3bd5) 20%, var(--pb2, #3b8bff) 80%, transparent); animation: parb 1.7s cubic-bezier(.2,.9,.3,1) forwards; text-shadow: 0 2px 10px #0008; }
@keyframes parb { 0% { transform: skewY(-6deg) translateX(-100%); } 20%, 75% { transform: skewY(-6deg) translateX(0); opacity: 1; } 100% { transform: skewY(-6deg) translateX(100%); opacity: 0; } }

/* walkout */
.walk { position: absolute; inset: 0; z-index: 45; display: grid; place-items: center; overflow: hidden; background: #000; }
.walk .w-flood { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; background: radial-gradient(70% 60% at 50% 50%, color-mix(in srgb, var(--tc) 70%, transparent), #000 75%); }
.walk.team .w-flood { opacity: 1; }
.walk .w-glow { position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(closest-side, var(--wc), transparent); opacity: .18; animation: heart 1s ease-in-out infinite; transition: opacity .5s; }
.walk.lit .w-glow { opacity: .5; }
@keyframes heart { 0%, 100% { transform: scale(.9); } 15% { transform: scale(1.12); } 30% { transform: scale(.95); } 45% { transform: scale(1.06); } }
.walk .beams { position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); opacity: 0; transition: opacity .8s; background: repeating-conic-gradient(from 0deg, var(--wc) 0 3deg, transparent 3deg 20deg); -webkit-mask: radial-gradient(circle, #000 4%, transparent 55%); mask: radial-gradient(circle, #000 4%, transparent 55%); animation: rot 16s linear infinite; }
.walk.lit .beams { opacity: .28; }
.walk .spot { position: absolute; bottom: -10%; width: 40vmax; height: 130vh; opacity: 0; transition: opacity .6s; transform-origin: 50% 100%; pointer-events: none;
  background: linear-gradient(0deg, color-mix(in srgb, var(--wc) 80%, #fff), transparent 85%); clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0); filter: blur(4px); mix-blend-mode: screen; }
.walk .spot.l { left: -12vmax; animation: sweepL 3s ease-in-out infinite alternate; }
.walk .spot.r { right: -12vmax; animation: sweepR 3s ease-in-out infinite alternate; }
.walk.lit .spot { opacity: .45; }
@keyframes sweepL { from { transform: rotate(10deg); } to { transform: rotate(45deg); } }
@keyframes sweepR { from { transform: rotate(-10deg); } to { transform: rotate(-45deg); } }
.w-stage { position: relative; z-index: 5; display: grid; place-items: center; text-align: center; }
.clue { animation: slam .55s cubic-bezier(.2,1.5,.4,1); display: flex; flex-direction: column; align-items: center; }
@keyframes slam { from { transform: scale(3.2); opacity: 0; filter: blur(10px); } }
.clue .big { font-family: var(--display); font-size: clamp(100px, 28vw, 220px); line-height: .85; color: #fff; text-shadow: 0 0 40px var(--wc), 0 6px 0 #0006; font-variant-numeric: tabular-nums; }
.clue .lbl { font-weight: 900; letter-spacing: 8px; color: var(--wc); font-size: 14px; margin-top: 14px; text-shadow: 0 0 12px var(--wc); }
.clue img { width: clamp(130px, 36vw, 230px); height: clamp(130px, 36vw, 230px); object-fit: contain; filter: drop-shadow(0 0 30px var(--wc)) drop-shadow(0 10px 20px #000); }
.clue img.flag { height: auto; border-radius: 12px; box-shadow: 0 0 60px var(--wc); }
.w-title { position: absolute; top: max(8%, 60px); left: 0; right: 0; text-align: center; z-index: 6; font-family: var(--display); font-size: clamp(40px, 10vw, 80px); letter-spacing: 4px; color: #fff; text-shadow: 0 0 30px var(--wc), 0 0 60px var(--wc); animation: slam .6s cubic-bezier(.2,1.5,.4,1); line-height: 1; }
.w-hero { width: min(64vw, 300px, calc((100dvh - 280px) * .714)); animation: heroIn 1.1s cubic-bezier(.2,1,.3,1); margin-top: 30px; }
@keyframes heroIn { from { transform: perspective(900px) rotateY(1080deg) scale(.1); opacity: 0; } 50% { opacity: 1; } }
.w-tap { position: absolute; bottom: max(40px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; z-index: 6; color: #fff; font-weight: 800; letter-spacing: 3px; font-size: 13px; animation: blink 1.4s infinite; }

/* summary */
.summary { position: absolute; inset: 0; overflow-y: auto; padding: 76px 16px 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; z-index: 10; touch-action: pan-y; }
.sum-head { text-align: center; }
.sum-head h2 { font-family: var(--display); font-size: 44px; margin: 0; letter-spacing: 3px; background: linear-gradient(90deg, #fff, #ffd23f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sum-stats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.sum-stats span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #ffffff12; font-weight: 800; font-size: 13px; }
.sum-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 12px; width: 100%; max-width: 1100px; }
.sum-grid .sc { width: clamp(100px, 16vw, 170px); position: relative; animation: dealIn .5s backwards cubic-bezier(.2,1.2,.4,1); cursor: pointer; }
.sum-grid .sc.dim { opacity: .3; }
.sum-grid .sc .v { text-align: center; font-size: 12px; color: var(--dim); font-weight: 700; margin-top: 8px; display: flex; gap: 5px; justify-content: center; align-items: center; }
.sum-grid .sc.best .v { color: var(--gold); }
@keyframes dealIn { from { transform: translateY(40vh) rotate(15deg) scale(.5); opacity: 0; } }
.sum-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.big-text { position: fixed; left: 0; right: 0; top: 38%; text-align: center; z-index: 60; font-family: var(--display); font-size: clamp(44px, 11vw, 96px); letter-spacing: 4px; color: #fff; text-shadow: 0 0 30px var(--c, #fff), 0 5px 0 #000; animation: bigText 1.5s forwards; pointer-events: none; }
@keyframes bigText { 0% { transform: scale(3); opacity: 0; } 18% { transform: scale(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: scale(.9) translateY(-40px); opacity: 0; } }

/* ---------- modal ---------- */
#modal { position: fixed; inset: 0; z-index: 70; background: #000b; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.mbox { width: min(600px, 100%); max-height: 92vh; overflow-y: auto; background: linear-gradient(180deg, #1a1e33, #0f1220); border: 1px solid var(--line2); border-radius: 26px; padding: 22px; position: relative; animation: pop .35s cubic-bezier(.2,1.3,.4,1); box-shadow: 0 40px 80px -20px #000; }
@keyframes pop { from { transform: scale(.88) translateY(20px); opacity: 0; } }
.mbox h2 { font-family: var(--display); font-size: 36px; margin: 0 0 6px; letter-spacing: 1px; line-height: 1; padding-right: 40px; }
.mbox h3 { margin: 18px 0 6px; font-size: 15px; }
.mbox .x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #ffffff12; z-index: 2; }
.detail { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.detail .dc { width: 100%; }
@media (max-width: 580px) { .detail { grid-template-columns: 1fr; } .detail .dc { width: min(66vw, 260px); margin: 0 auto; } }
.vrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #ffffff08; margin-bottom: 6px; font-size: 14px; }
.vrow .sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.vrow b { flex: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 12px 0 16px; }
.kv span { color: var(--dim); }
.welcome-lgs { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 18px 0; }
.welcome-lgs img { height: 46px; filter: drop-shadow(0 4px 10px #000a); }
.center { text-align: center; }
.hero-ic { width: 60px; height: 60px; color: var(--gold); }

/* ---------- toasts & fx ---------- */
#toasts { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { display: flex; align-items: center; gap: 8px; background: rgba(24, 28, 48, .96); border: 1px solid var(--line2); padding: 11px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: 0 14px 34px #000a; animation: toastIn .4s cubic-bezier(.2,1.3,.4,1), toastOut .4s 2.6s forwards; }
.toast .ic { color: var(--gold); }
@keyframes toastIn { from { transform: translateY(-20px) scale(.9); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-10px); opacity: 0; } }
#fx { position: fixed; inset: 0; z-index: 80; pointer-events: none; width: 100vw; height: 100vh; }
.coin-fly { position: fixed; z-index: 95; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff7c2, #ffd23f 40%, #c98a00); box-shadow: 0 0 10px #ffd23f; pointer-events: none; transition: transform .75s cubic-bezier(.5,-0.3,.7,1), opacity .75s; }
@media (prefers-reduced-motion: reduce) { #bg .orb, .op-rays, .walk .beams, .pack .pk-foil { animation: none; } }

/* ================= FRIENDS ================= */
input[type=text], input[type=password], input[type=number] { height: 44px; padding: 0 14px; border-radius: 12px; background: #ffffff0a; border: 1px solid var(--line2); color: var(--text); font: inherit; font-size: 15px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #ffd23f88; outline-offset: 1px; }
@media (max-width: 400px) { #tabs button { font-size: 9.5px; } #tabs button .ic { width: 20px; height: 20px; } .tabs-in { padding: 5px; } }
.auth { max-width: 420px; margin: 20px auto; padding: 26px 22px; }
.auth form { display: grid; gap: 14px; margin-top: 16px; }
.auth label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--dim); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: #ffffff0a; border: 1px solid var(--line); }
.seg button { height: 38px; border-radius: 10px; font-weight: 800; color: var(--dim); }
.seg button.on { background: #fff; color: #0b0d18; }
.av { position: relative; flex: none; }
.av .card { pointer-events: none; }
.av-xs { width: 30px; } .av-sm { width: 46px; } .av-md { width: 110px; margin: 0 auto; } .av-lg { width: 84px; } .av-xl { width: 140px; }
.av-ph { width: 100%; aspect-ratio: 5/7; border-radius: 12%; display: grid; place-items: center; font-family: var(--display); font-size: 1.6em; color: #fff; background: linear-gradient(145deg, #4b2bd6, #ff3b6b); }
.av-xs .av-ph { font-size: 14px; } .av-xl .av-ph { font-size: 60px; }
.me-card { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.me-name { font-family: var(--display); font-size: 34px; letter-spacing: 1px; line-height: 1; margin-bottom: 4px; }
.av-btn { position: relative; }
.av-btn > span { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #2a1a00; display: grid; place-items: center; box-shadow: 0 3px 8px #0008; }
.av-btn > span .ic { width: 14px; height: 14px; }
.add-friend { display: flex; gap: 8px; margin-bottom: 6px; }
.add-friend .search { position: relative; flex: 1; }
.add-friend .search .ic { position: absolute; left: 13px; top: 13px; color: var(--dim); }
.add-friend input { padding-left: 40px; }
.friend { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.friend b { display: block; font-size: 15px; }
.friend small { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; font-weight: 700; }
.friend small .dot { width: 8px; height: 8px; border-radius: 50%; background: #555a73; }
.friend small.on { color: #8dffc0; } .friend small.on .dot { background: #1fd07f; box-shadow: 0 0 8px #1fd07f; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin: 14px 0; max-height: 55vh; overflow-y: auto; padding: 8px 4px; }
.av-grid .cbox { position: relative; }

/* ================= TRADE WINDOW ================= */
.tr-wrap { position: fixed; inset: 0; z-index: 58; display: flex; flex-direction: column; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom)); overflow-y: auto;
  background: repeating-linear-gradient(-35deg, transparent 0 34px, #ffffff05 34px 68px), radial-gradient(120% 80% at 50% 0%, #1c2040, #07080f 70%); animation: fadeIn .25s; }
.tr-head { display: flex; align-items: baseline; gap: 12px; }
.tr-head .muted { font-weight: 800; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
.tr-top { display: grid; grid-template-columns: 150px 1fr minmax(280px, 1.5fr) 1fr 150px; gap: 14px; align-items: start; }
.tr-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tr-name { font-family: var(--display); font-size: 28px; letter-spacing: 1px; text-align: center; word-break: break-all; line-height: 1; }
.tr-coins { display: flex; align-items: center; gap: 8px; width: 100%; height: 44px; padding: 0 12px; border-radius: 12px; background: #00000055; border: 1px solid var(--line2); font-weight: 800; }
.tr-coins .ci { width: 20px; height: 20px; }
.tr-coins input { border: 0; background: none; height: 100%; padding: 0; font-weight: 800; font-size: 16px; outline: none; }
.tr-coins.ro { justify-content: flex-end; }
.tr-ready .ok { display: inline-flex; gap: 6px; align-items: center; color: #8dffc0; font-weight: 800; font-size: 13px; padding: 6px 10px; border-radius: 99px; background: #1fd07f22; }
.tr-offer { min-height: 230px; max-height: 330px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; align-content: start; padding: 10px; border-radius: 18px; background: #00000040; border: 1px solid var(--line);
  background-image: linear-gradient(#ffffff08 2px, transparent 2px), linear-gradient(90deg, #ffffff08 2px, transparent 2px); background-size: 50% 50%; }
.tr-inv { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.tr-inv .search { position: relative; }
.tr-inv .search .ic { position: absolute; left: 12px; top: 11px; color: var(--dim); }
.tr-inv .search input { width: 100%; padding-left: 36px; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 7px; max-height: 260px; overflow-y: auto; padding: 4px 2px; align-content: start; }
.tr-item { position: relative; transition: transform .12s; }
.tr-item:hover { transform: translateY(-3px); }
.tr-item:active { transform: scale(.94); }
.tr-n { position: absolute; right: -4px; bottom: -4px; z-index: 6; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--R); color: #fff; font-style: normal; font-size: 11px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 6px #0009; }
.tr-empty { grid-column: 1 / -1; align-self: center; text-align: center; color: #ffffff40; font-size: 13px; font-weight: 700; padding: 30px 6px; }
.tr-chat { flex: 1; min-height: 110px; max-height: 190px; overflow-y: auto; padding: 12px; border-radius: 16px; background: #00000045; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tr-line { display: flex; gap: 10px; align-items: flex-start; }
.tr-line b { font-size: 14px; } .tr-line p { margin: 1px 0 0; color: #d6dafa; font-size: 14px; word-break: break-word; }
.tr-msg { display: flex; gap: 8px; }
.tr-msg .btn { height: 44px; width: 52px; padding: 0; }
.tr-btn { width: 100%; height: 50px; border-radius: 12px; font-size: 18px; font-weight: 800; color: #fff; transition: filter .15s, transform .1s; flex: none; }
.tr-btn:active { transform: scale(.99); }
.tr-btn.accept { background: linear-gradient(180deg, #22b35a, #0f8a3e); box-shadow: 0 6px 18px -6px #1fd07f88; }
.tr-btn.decline { background: linear-gradient(180deg, #ff4d4d, #d11a1a); box-shadow: 0 6px 18px -6px #ff3b3b88; }
.tr-btn:hover { filter: brightness(1.1); }
.tr-over { position: fixed; inset: 0; z-index: 60; background: #000000b8; display: grid; place-items: center; padding: 20px; animation: fadeIn .2s; }
.tr-confirm { max-width: 520px; width: 100%; text-align: center; padding: 26px; background: #1a1e33; }
.tr-confirm h3, .tr-wait h3 { font-size: 22px; margin: 0 0 12px; }
.tr-confirm p { font-size: 17px; margin: 0 0 20px; color: #d6dafa; }
.tr-wait { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid #ffffff22; border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .tr-top { grid-template-columns: 1fr 1fr; grid-template-areas: "me them" "mo to" "inv inv"; gap: 10px; }
  .tr-side.me { grid-area: me; } .tr-side.them { grid-area: them; } #trMine { grid-area: mo; } #trTheirs { grid-area: to; } .tr-inv { grid-area: inv; }
  .av-xl { width: 84px; } .tr-name { font-size: 22px; }
  .tr-offer { min-height: 150px; max-height: 210px; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); }
  .tr-grid { max-height: 210px; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .tr-chat { min-height: 80px; max-height: 120px; }
  .tr-btn { height: 46px; font-size: 16px; }
}

/* ================= SIGN-IN GATE ================= */
body.gated { overflow: hidden; }
body.gated #top, body.gated #tabs, body.gated main { visibility: hidden; }
#gate { position: fixed; inset: 0; z-index: 100; overflow-y: auto; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(900px 500px at 20% 0%, #3b1d7a88, transparent 60%), radial-gradient(800px 500px at 100% 100%, #0b4d6b88, transparent 60%), var(--bg); }
.gate-in { width: min(980px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.gate-hero { text-align: center; }
.gate-tag { color: #d6dafa; font-size: 18px; margin: 6px 0 0; }
.gate-fan { height: 250px; margin-top: 10px; }
#gate .auth { margin: 0; width: 100%; }
@media (max-width: 800px) { .gate-in { grid-template-columns: 1fr; gap: 10px; } .gate-fan { height: 180px; } .gate-fan .fc { width: 100px !important; } }

/* ================= SOCIAL ================= */
.seg3 { grid-template-columns: repeat(3, 1fr); }
.pip { font-style: normal; background: var(--M); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 9px; margin-left: 4px; }
.search.lite { position: relative; } .search.lite .ic { position: absolute; left: 13px; top: 13px; color: var(--dim); } .search.lite input { padding-left: 40px; height: 44px; width: 100%; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.lb-row .rank { width: 38px; text-align: center; font-family: var(--display); font-size: 24px; color: var(--dim); display: flex; flex-direction: column; align-items: center; line-height: 1; }
.lb-row .rank .ic { width: 16px; height: 16px; }
.lb-row.top1 { border-color: #ffd23f88; background: linear-gradient(90deg, #ffd23f22, var(--panel)); } .lb-row.top1 .rank { color: #ffd23f; }
.lb-row.top2 { border-color: #dfe6f288; } .lb-row.top2 .rank { color: #dfe6f2; }
.lb-row.top3 { border-color: #cd7f3288; } .lb-row.top3 .rank { color: #e0955a; }
.lb-row.me { outline: 2px solid #8c9bff; }
.lb-row b { display: block; font-size: 15px; }
.lb-row small, .friend small { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; font-weight: 700; }
.lb-row small .dot { width: 8px; height: 8px; border-radius: 50%; background: #555a73; }
.lb-row small.on { color: #8dffc0; } .lb-row small.on .dot { background: #1fd07f; box-shadow: 0 0 8px #1fd07f; }
.lb-val { font-weight: 900; font-size: 16px; text-align: right; display: flex; align-items: center; gap: 6px; }
.lb-val small { color: var(--dim); font-size: 12px; font-weight: 700; }
.odot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1fd07f; box-shadow: 0 0 6px #1fd07f; vertical-align: middle; }
.ok { color: #1fd07f; }

/* ================= MARKET ================= */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
.mk-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.mk-price { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 17px; margin-top: 4px; }
.mk-seller { font-size: 12px; color: var(--dim); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--dim); margin-bottom: 8px; }
@media (max-width: 560px) { .mk-grid { grid-template-columns: repeat(2, 1fr); } }

/* ================= STORE: your packs ================= */
.stash { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; }
.stash-item { position: relative; flex: none; width: 128px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line2); transition: transform .15s; }
.stash-item:hover { transform: translateY(-3px); }
.stash-item span { font-size: 12px; font-weight: 700; text-align: center; color: #d6dafa; line-height: 1.2; }
.stash-item b { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: #03210f; background: linear-gradient(180deg, #8dffc0, #1fd07f); border-radius: 9px; padding: 4px 12px; }
.stash-item .tr-n { top: 6px; right: 6px; bottom: auto; }
.pack.icon { --p1: #0b3a4a !important; --p2: #7dfcff !important; }
.pack.icon .pk-tier span { background: linear-gradient(90deg, #7dfcff, #ffe066); color: #06202a; }
.pack.reward { --p1: #262b44 !important; --p2: #e3ecff !important; }
.pack.reward .pk-tier span { background: linear-gradient(90deg, #e3ecff, #ff9bd5, #7dfcff); color: #111; }
.pack .pk-crown { position: absolute; top: 26%; left: 0; right: 0; display: grid; place-items: center; z-index: 1; color: #ffe066; filter: drop-shadow(0 0 12px #7dfcff); }
.pack .pk-crown .ic { width: 50cqw; height: 50cqw; }
.pk-wrap.icon { filter: drop-shadow(0 12px 18px #000c) drop-shadow(0 0 18px #7dfcff88); }
.pk-wrap.reward { filter: drop-shadow(0 12px 18px #000c) drop-shadow(0 0 18px #e3ecff88); }

/* ================= TEAM + SPECIAL CARDS ================= */
.card .photo.team { bottom: 30%; height: 50%; align-items: center; }
.card .photo.team img { height: 90%; max-width: 80%; object-fit: contain; filter: drop-shadow(0 3cqw 6cqw #000c); }
.card .photo.team.flag img { height: auto; width: 70cqw; max-width: none; border-radius: 3cqw; box-shadow: 0 0 0 1cqw #fff8, 0 4cqw 8cqw #000a; }
.card .tlogo.lgl { width: 14cqw; height: 14cqw; }
.card.r-T { --rc: var(--T); }
.card.r-T .inner { background: radial-gradient(90% 60% at 50% 40%, color-mix(in srgb, var(--t2) 45%, transparent), transparent 70%), linear-gradient(160deg, var(--t1), #05060c 95%); }
.card.r-T .stripe { background: repeating-conic-gradient(from 0deg at 50% 42%, #ffffff0a 0 6deg, transparent 6deg 18deg); }
.card.r-T .accent { display: none; }
.card.r-S { --rc: #e3ecff; }
.card.r-S .face { background: conic-gradient(from var(--spin, 0deg), #ffffff, #c9d6ff, #ffe066, #ffffff, #ff9bd5, #c9d6ff, #ffffff); animation: spinBorder 3.5s linear infinite; box-shadow: 0 12px 28px -10px #000d, 0 0 26px 0 #e3ecffaa; }
.card.r-S .inner { background: radial-gradient(110% 65% at 50% 36%, color-mix(in srgb, var(--t1) 70%, #fff 18%), transparent 72%), linear-gradient(172deg, color-mix(in srgb, var(--t1) 70%, #000), #030308 96%); }
.card.r-S .inner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(1.5px 1.5px at 15% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 30% 60%, #ffffffcc, transparent), radial-gradient(1px 1px at 88% 58%, #fff, transparent); }
.card.r-S .shine { opacity: .6; }
.card.r-S .rtag { background: linear-gradient(90deg, #fff, #ffe066, #ff9bd5); }
.edtag { position: absolute; left: 50%; top: 25cqw; transform: translateX(-50%); z-index: 4; white-space: nowrap; font-weight: 900; font-size: 4.3cqw; letter-spacing: .5cqw; text-transform: uppercase; padding: 1cqw 3cqw; border-radius: 2cqw; color: #111;
  background: linear-gradient(90deg, #fff, #e3ecff, #fff); box-shadow: 0 1cqw 3cqw #0008; }
.edtag.ed-cup { background: linear-gradient(90deg, #d7dde6, #ffffff, #b8c2cf); }
.edtag.ed-sb { background: linear-gradient(90deg, #c9a24a, #ffe7a3, #c9a24a); }
.edtag.ed-fin { background: linear-gradient(90deg, #ffb627, #ffe066, #ffb627); }
.edtag.ed-wc { background: linear-gradient(90deg, #1fd07f, #ffe066, #1fd07f); }
.edtag.ed-star { background: linear-gradient(90deg, #7dfcff, #ff9bd5, #7dfcff); }

/* ================= LEVEL ROAD ================= */
.road-wrap .bar { margin-bottom: 14px; height: 9px; }
.road { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 8px; }
.stop { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.stop.big { width: 124px; }
.stop .cbox { width: 100%; }
.stop small { font-size: 11px; font-weight: 700; color: #d6dafa; line-height: 1.2; }
.lvl-badge { font-family: var(--display); font-size: 18px; letter-spacing: 1px; color: var(--gold); }

/* ================= NEW GAMES ================= */
.hl-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; max-width: 620px; margin: 10px auto 0; }
.hl-card { width: 100%; max-width: 220px; justify-self: center; }
.hl-mid { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.hl-mid .btn { width: 120px; }
@media (max-width: 560px) { .hl-stage { gap: 8px; } .hl-mid .btn { width: 92px; padding: 0 8px; font-size: 13px; } }
.draft-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 14px; justify-content: center; margin: 10px 0; }
.draft-opts.five { grid-template-columns: repeat(5, minmax(0, 140px)); }
.draft-opts .cbox { position: relative; }
.draft-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 14px 0 18px; text-align: center; }
.draft-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0; }
@media (max-width: 700px) { .draft-vs { grid-template-columns: 1fr; } .draft-opts.five { grid-template-columns: repeat(3, 1fr); } }
.shots { display: flex; gap: 10px; justify-content: center; margin: 10px 0 18px; }
.shots i { width: 16px; height: 16px; border-radius: 50%; background: #ffffff1c; border: 2px solid #ffffff30; }
.shots i.hit { background: #1fd07f; border-color: #8dffc0; } .shots i.perfect { background: var(--gold); border-color: #fff; box-shadow: 0 0 10px var(--gold); } .shots i.miss { background: #ff3b6b; border-color: #ff9bb0; }
.shot-bar { position: relative; height: 56px; max-width: 640px; margin: 0 auto 10px; border-radius: 16px; background: linear-gradient(180deg, #1a1e33, #0d0f1c); border: 1px solid var(--line2); overflow: hidden; }
.shot-zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, #1fd07f66, #1fd07f33); border-left: 2px solid #8dffc0; border-right: 2px solid #8dffc0; }
.shot-zone i { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px #fff; }
.shot-mark { position: absolute; top: -4px; bottom: -4px; width: 6px; margin-left: -3px; background: var(--gold); border-radius: 3px; box-shadow: 0 0 14px var(--gold); left: 0; }
.btn.shoot { height: 64px; padding: 0 44px; font-size: 22px; font-family: var(--display); letter-spacing: 2px; }

/* ================= DAILY WHEEL ================= */
.wheel-card { display: flex; align-items: center; gap: 26px; margin-bottom: 18px; padding: 20px; background: linear-gradient(120deg, #2b1a5c, #10233f 60%, #0f3a2c); border-color: var(--line2); }
.wheel-box { position: relative; width: 210px; height: 210px; flex: none; }
.wheel-spin { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px #ffd23f, 0 0 0 10px #0b0d18, 0 16px 40px #000c, 0 0 40px #ffd23f55; }
.wheel-svg { width: 100%; height: 100%; display: block; }
.wheel-svg .wl { font-family: var(--display); font-size: 17px; fill: #fff; paint-order: stroke; stroke: #0008; stroke-width: 3px; letter-spacing: .5px; }
.wheel-pointer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 2; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid #fff; filter: drop-shadow(0 3px 4px #000a); }
.wheel-info h3 { font-family: var(--display); font-size: 34px; letter-spacing: 1px; margin: 0 0 6px; }
.wheel-info p { margin: 0 0 14px; max-width: 420px; }
.wheel-info .btn { height: 52px; font-size: 17px; padding: 0 28px; }
@media (max-width: 600px) { .wheel-card { flex-direction: column; text-align: center; gap: 18px; } .wheel-box { width: 190px; height: 190px; } .wheel-info p { margin-left: auto; margin-right: auto; } }

/* ================= LIVE FEED / PROFILES / DEALS / ACHIEVEMENTS ================= */
.prof-link { cursor: pointer; text-align: left; }
b.prof-link:hover, button.prof-link:hover { text-decoration: underline; }
.feed { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; }
.feed-item { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: fadeUp .4s; }
.feed-item .cbox { width: 100%; }
.feed-who { font-weight: 800; font-size: 12px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.feed-item small { color: var(--dim); font-size: 11px; font-weight: 600; }
.deals { display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); gap: 14px; margin-bottom: 18px; }
.mk-item.deal { background: linear-gradient(180deg, #2a2210cc, var(--panel)); border-color: #ffd23f44; }
@media (max-width: 560px) { .deals { grid-template-columns: repeat(3, 1fr); gap: 8px; } .mk-item.deal { padding: 7px; } .mk-item.deal .mk-price { font-size: 14px; } }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ach { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.ach .ach-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #ffffff0c; color: #ffffff55; border: 2px solid #ffffff18; }
.ach .ach-ic .ic { width: 22px; height: 22px; }
.ach .info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ach .info b { font-size: 14px; } .ach .info small { color: var(--dim); font-size: 12px; font-weight: 600; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.ach.ready { border-color: #ffd23f88; box-shadow: 0 0 20px -8px #ffd23f; }
.ach.ready .ach-ic { color: var(--gold); border-color: #ffd23f88; }
.ach.got .ach-ic { color: #2a1a00; background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd23f 55%, #c98a00); border-color: #fff6; box-shadow: 0 0 14px #ffd23f66; }
.prof-top { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.prof-status { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; font-weight: 700; margin: 6px 0 8px; }
.prof-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #555a73; }
.prof-status.on { color: #8dffc0; } .prof-status.on .dot { background: #1fd07f; box-shadow: 0 0 8px #1fd07f; }
.prof-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.prof-stats span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; background: #ffffff10; font-weight: 800; font-size: 12px; }
.showcase { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 560px) { .showcase { grid-template-columns: repeat(3, 1fr); } }
.cbox.picked .card { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* ================= GALAXY ================= */
.card.v-x .face { background: conic-gradient(from var(--spin, 0deg), #ff3bd5, #7c3bff, #3b8bff, #7dfcff, #ffffff, #ffe066, #ff3bd5); animation: spinBorder 2s linear infinite; box-shadow: 0 12px 28px -10px #000d, 0 0 30px 2px #b45cffaa, 0 0 60px -4px #3b8bff88; }
.card.v-x .inner { background: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(2px 2px at 72% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 42% 66%, #fff, transparent), radial-gradient(1px 1px at 86% 58%, #fff, transparent), radial-gradient(1.5px 1.5px at 8% 82%, #fff, transparent), radial-gradient(1px 1px at 55% 40%, #fff, transparent), radial-gradient(1px 1px at 28% 38%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 88%, #fff, transparent),
  radial-gradient(70% 55% at 25% 30%, #8a1bd5cc, transparent), radial-gradient(70% 55% at 80% 70%, #1b5fd5cc, transparent), radial-gradient(50% 40% at 60% 20%, #ff3bd566, transparent), #05020f; background-size: 100% 100%; animation: nebulaDrift 9s ease-in-out infinite alternate; }
@keyframes nebulaDrift { to { background-position: 3% 2%, -2% 3%, 2% -2%, -3% 1%, 1% 2%, 2% -1%, -1% 2%, 2% 1%, 12% 8%, -10% -6%, 6% 10%, 0 0; } }
.card.v-x .ovr b { background: linear-gradient(180deg, #fff, #d9b8ff 60%, #7dfcff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 2cqw #b45cff); }
.ptag.v-x { background: linear-gradient(90deg, #ff3bd5, #7c3bff, #3b8bff, #7dfcff); color: #fff; box-shadow: 0 0 3cqw #b45cff; animation: ptagGlow 1.6s ease-in-out infinite; }
@keyframes ptagGlow { 50% { box-shadow: 0 0 5cqw #ff3bd5; } }
.vault { display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); gap: 14px; margin-bottom: 10px; }
.vault-item { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: radial-gradient(120% 80% at 50% 0%, #3a1470aa, #0b0d18); border: 1px solid #b45cff55; box-shadow: 0 0 30px -12px #b45cff; }
.vault-owner { text-align: center; font-size: 12px; color: var(--dim); font-weight: 700; display: flex; gap: 4px; justify-content: center; align-items: center; flex-wrap: wrap; min-height: 18px; }
@media (max-width: 700px) { .vault { grid-template-columns: repeat(2, 1fr); } }
.income { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; background: linear-gradient(110deg, #3a2a05, #1a1e33 60%); border-color: #ffd23f55; }
.income .inc-ic .ci { width: 38px; height: 38px; }
.income b { display: block; font-size: 16px; } .income small { color: #d6dafa; font-size: 13px; }
@media (max-width: 560px) { .income { flex-wrap: wrap; } .income .btn { width: 100%; } }

/* the 15-second Galaxy reveal */
.gx { position: absolute; inset: 0; z-index: 48; overflow: hidden; background: #020108; display: grid; place-items: center; }
.gx-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.gx-neb { position: absolute; inset: -20%; opacity: 0; transition: opacity 1.4s; background: radial-gradient(40% 35% at 30% 40%, #8a1bd5aa, transparent 70%), radial-gradient(45% 40% at 72% 60%, #1b5fd5aa, transparent 70%), radial-gradient(30% 25% at 55% 25%, #ff3bd577, transparent 70%), radial-gradient(35% 30% at 40% 78%, #7dfcff44, transparent 70%); animation: nebSpin 30s linear infinite; mix-blend-mode: screen; }
.gx.nebula .gx-neb { opacity: 1; }
@keyframes nebSpin { to { transform: rotate(360deg) scale(1.15); } }
.gx.warp { animation: warpShake .12s linear infinite; }
@keyframes warpShake { 50% { transform: translate(1px, -1px); } }
.gx-stage, .gx-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 3; text-align: center; pointer-events: none; }
.gx-line { animation: fadeUp .6s; }
.gx-line.whisper { font-weight: 900; letter-spacing: 12px; font-size: 14px; color: #d9b8ff; animation: fadeUp 1s, blink 1.6s infinite; }
.gx-word { display: flex; gap: 1vw; font-family: var(--display); font-size: clamp(70px, 18vw, 190px); line-height: 1; }
.gx-word i { font-style: normal; background: linear-gradient(180deg, #fff, #ff9bf0 45%, #7c3bff 75%, #3b8bff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px #b45cff); animation: letterIn .5s cubic-bezier(.2,1.6,.4,1) backwards; }
@keyframes letterIn { from { transform: translateY(-60px) scale(2.5); opacity: 0; filter: blur(8px); } }
.gx-planet { position: relative; width: clamp(160px, 40vw, 260px); height: clamp(160px, 40vw, 260px); border-radius: 50%; display: grid; place-items: center; animation: slam .7s cubic-bezier(.2,1.5,.4,1);
  background: radial-gradient(circle at 35% 30%, #6b4bd6, #1b0f4a 60%, #05020f); box-shadow: 0 0 80px #b45cff, inset -20px -30px 60px #000a, inset 10px 10px 40px #ff3bd544; }
.gx-planet img { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 0 20px #fff8); }
.gx-planet img.flag { height: auto; border-radius: 8px; }
.gx-orbit { position: absolute; inset: -18%; border-radius: 50%; border: 2px solid #7dfcff88; transform: rotateX(72deg); animation: orbit 3s linear infinite; box-shadow: 0 0 20px #7dfcff; }
.gx-orbit::after { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px #7dfcff, 0 0 30px #fff; }
@keyframes orbit { to { transform: rotateX(72deg) rotateZ(360deg); } }
.gx-sub { margin-top: 18px; font-weight: 900; letter-spacing: 8px; font-size: 14px; color: #7dfcff; text-shadow: 0 0 12px #7dfcff; animation: fadeUp .6s .2s backwards; }
.gx-one { font-family: var(--display); font-size: clamp(90px, 26vw, 260px); line-height: .9; background: linear-gradient(180deg, #fff, #ffe066 40%, #ff3bd5 80%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px #ff3bd5); animation: slam .6s cubic-bezier(.2,1.5,.4,1); }
.gx-title { font-family: var(--display); font-size: clamp(40px, 10vw, 84px); letter-spacing: 6px; background: linear-gradient(90deg, #ff3bd5, #b45cff, #3b8bff, #7dfcff, #ff3bd5); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px #b45cff); animation: slam .6s cubic-bezier(.2,1.5,.4,1), titleShift 3s linear infinite; margin-bottom: 14px; }
@keyframes titleShift { to { background-position: 200% 0; } }
.gx-hero { pointer-events: auto; animation: gxHeroIn 1.6s cubic-bezier(.15,1,.3,1); }
@keyframes gxHeroIn { from { transform: perspective(900px) rotateY(1440deg) rotateZ(-30deg) scale(.02); opacity: 0; filter: brightness(4) blur(6px); } 60% { opacity: 1; } }
.gx .w-tap { z-index: 5; }

/* ================= LIVE CHAT ================= */
#chatFab { position: fixed; right: 16px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 84px); z-index: 62; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #7c5cff, #3b8bff); color: #fff; box-shadow: 0 10px 26px -6px #3b8bffaa, inset 0 1px 0 #fff5; transition: transform .15s; }
#chatFab:hover { transform: scale(1.06); } #chatFab.on { background: linear-gradient(145deg, #ff5f8a, #b45cff); }
#chatFab .ic { width: 24px; height: 24px; }
#chatFab em { position: absolute; top: -3px; right: -3px; font-style: normal; background: var(--M); color: #fff; font-size: 11px; font-weight: 900; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; padding: 0 5px; box-shadow: 0 0 0 2px var(--bg); }
#chatFab em:empty { display: none; }
body.gated #chatFab, body.gated #chatPanel { display: none; }
#chatPanel { position: fixed; right: 16px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 148px); z-index: 62; width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100dvh - 230px));
  display: flex; flex-direction: column; border-radius: 22px; background: rgba(16, 19, 34, .97); border: 1px solid var(--line2); box-shadow: 0 30px 70px -10px #000; backdrop-filter: blur(16px); animation: pop .25s cubic-bezier(.2,1.3,.4,1); overflow: hidden; }
.ch-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ch-head b { display: flex; gap: 8px; align-items: center; font-family: var(--display); font-size: 22px; letter-spacing: 1px; font-weight: 400; }
.ch-head small { flex: 1; color: #8dffc0; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.ch-head .x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #ffffff12; }
.ch-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ch-msg { display: flex; gap: 9px; align-items: flex-start; animation: fadeUp .25s; }
.ch-msg .av-xs { width: 32px; }
.ch-meta { display: flex; gap: 8px; align-items: baseline; } .ch-meta b { font-size: 13px; } .ch-meta small { color: var(--dim); font-size: 11px; }
.ch-msg p { margin: 2px 0 0; font-size: 14px; color: #e3e6ff; word-break: break-word; line-height: 1.35; }
.ch-msg.me .ch-meta b { color: var(--gold); }
.ch-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.ch-form input { height: 42px; }
.ch-form .btn { height: 42px; width: 48px; padding: 0; }
@media (max-width: 560px) { #chatFab { width: 48px; height: 48px; right: 12px; } #chatPanel { right: 8px; left: 8px; width: auto; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 136px); } }

/* ================= SCRATCH CARD + COLLECTOR REQUESTS ================= */
.scratch-card { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; padding: 20px; background: linear-gradient(120deg, #0f3a2c, #10233f 60%, #3a1d5c); border-color: var(--line2); }
.sc-info { flex: 1; min-width: 0; }
.sc-info h3 { font-family: var(--display); font-size: 32px; letter-spacing: 1px; margin: 0 0 6px; }
.sc-info p { margin: 0 0 12px; font-size: 14px; }
.sc-tiles { display: grid; grid-template-columns: repeat(3, 110px); gap: 10px; }
.sc-tile { position: relative; height: 110px; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2b3170, #0b0d1a); border: 2px solid #ffffff22; display: grid; place-items: center; }
.sc-tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.sc-val { display: flex; flex-direction: column; align-items: center; gap: 4px; } .sc-val .ci { width: 26px; height: 26px; } .sc-val b { font-family: var(--display); font-size: 30px; letter-spacing: 1px; }
.sc-tile.open { border-color: #ffd23f88; box-shadow: 0 0 18px -4px #ffd23f; }
.sc-cover { color: #ffffff30; } .sc-cover .ic { width: 34px; height: 34px; }
@media (max-width: 640px) { .scratch-card { flex-direction: column; text-align: center; } .sc-tiles { grid-template-columns: repeat(3, 1fr); width: 100%; } .sc-tile { height: 96px; } }
.mk-item.req { background: linear-gradient(180deg, #0f2a20cc, var(--panel)); border-color: #1fd07f44; }
.mk-item.req.done { opacity: .5; }
.deals { grid-template-columns: repeat(auto-fill, minmax(150px, 190px)); }
@media (max-width: 560px) { .deals { grid-template-columns: repeat(2, 1fr); } }

/* admin gift */
.gift-ic { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd23f 50%, #c98a00); color: #2a1a00; box-shadow: 0 0 40px #ffd23f88; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.gift-ic .ic { width: 42px; height: 42px; }
.gift-amt { font-family: var(--display); font-size: 56px; letter-spacing: 2px; color: var(--gold); display: flex; align-items: center; justify-content: center; gap: 10px; text-shadow: 0 0 24px #ffd23f88; margin: 6px 0; }
.gift-amt .ci { width: 42px; height: 42px; }
.gift-msg { font-size: 16px; line-height: 1.5; color: #e3e6ff; }
.gift-msg a { color: #7dfcff; font-weight: 800; word-break: break-all; }
#updBar { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 95; display: flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 99px; font-weight: 800; color: #03210f; background: linear-gradient(135deg, #8dffc0, #1fd07f); box-shadow: 0 10px 30px #000a; animation: toastIn .4s; }
.seg4 { grid-template-columns: repeat(4, 1fr); } .seg4 button { font-size: 13px; }
.pack.elite .pk-tier span { white-space: nowrap; }
.pack .pk-tier span { max-width: 92%; overflow: hidden; text-overflow: ellipsis; }

/* ================= GOD PACK ================= */
.godp { position: absolute; inset: 0; z-index: 46; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, #5a3a00, #1a0f00 55%, #000 85%); animation: fadeIn .3s; }
.godp-rays { position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, #ffd23f 0 4deg, transparent 4deg 16deg); opacity: .35; animation: rot 10s linear infinite; -webkit-mask: radial-gradient(circle, #000 5%, transparent 55%); mask: radial-gradient(circle, #000 5%, transparent 55%); }
.godp-in { position: relative; text-align: center; }
.godp-small { font-weight: 900; letter-spacing: 10px; color: #fff3b0; font-size: 15px; animation: fadeUp .5s .1s backwards; }
.godp-big { font-family: var(--display); font-size: clamp(80px, 22vw, 220px); line-height: .9; background: linear-gradient(180deg, #fff, #ffe066 40%, #ffb627 70%, #c98a00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px #ffd23f) drop-shadow(0 6px 0 #0008); animation: slam .7s cubic-bezier(.2,1.5,.4,1); }
.godp-sub { font-weight: 900; letter-spacing: 8px; color: #ff3b6b; text-shadow: 0 0 14px #ff3b6b; font-size: 14px; margin-top: 10px; animation: fadeUp .5s .5s backwards; }
.god-note { margin: 18px 0 0; padding: 12px 16px; border-radius: 16px; background: linear-gradient(90deg, #3a2a05, #1a1e33); border: 1px solid #ffd23f55; font-size: 14px; color: #e3e6ff; display: flex; gap: 8px; align-items: center; }
.god-note .ic { color: var(--gold); }
.god-word { background: linear-gradient(90deg, #fff3b0, #ffd23f, #ffb627); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 1px; }

/* ================= LIMITED EVENTS ================= */
.event-box { position: relative; margin: 0 0 18px; padding: 20px; border-radius: 24px; overflow: hidden; border: 1px solid #ff8a3d66;
  background: radial-gradient(90% 120% at 0% 0%, #6b2a0acc, transparent 60%), radial-gradient(80% 120% at 100% 100%, #3a1d7acc, transparent 60%), #10131f; box-shadow: 0 0 40px -14px #ff8a3d; }
.ev-head { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ev-kicker { display: flex; gap: 6px; align-items: center; font-weight: 900; font-size: 12px; letter-spacing: 2px; color: #ffb36b; }
.ev-head h2 { font-family: var(--display); font-size: 44px; margin: 4px 0; letter-spacing: 1px; line-height: 1; }
.ev-head p { margin: 0 0 12px; color: #e3e6ff; max-width: 520px; }
.ev-offer { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 170px; }
.ev-cards { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 4px; }
.ev-cards .cbox { flex: none; width: 96px; }
.pack.event { --p1: #6b2a0a !important; --p2: #ff8a3d !important; }
.pack.event .pk-tier span { background: linear-gradient(90deg, #ff8a3d, #ff3b6b); }
.pk-wrap.event { filter: drop-shadow(0 12px 18px #000c) drop-shadow(0 0 18px #ff8a3d88); }
.edtag.ed-rookie { background: linear-gradient(90deg, #8dffc0, #fff, #8dffc0); }
.edtag.ed-breakout { background: linear-gradient(90deg, #ff8a3d, #ffe066, #ff8a3d); }
.edtag.ed-kings { background: linear-gradient(90deg, #b45cff, #ffb3ff, #b45cff); }
.edtag.ed-playoff { background: linear-gradient(90deg, #3fa9ff, #fff, #3fa9ff); }

/* ================= EVOLUTIONS ================= */
.evotag { position: absolute; left: 50%; top: 2.5cqw; transform: translateX(-50%); z-index: 4; font-weight: 900; font-size: 4cqw; letter-spacing: .4cqw; padding: .6cqw 2.4cqw; border-radius: 2cqw; color: #fff; background: linear-gradient(90deg, #7c3bff, #ff3bd5); box-shadow: 0 0 3cqw #b45cff; white-space: nowrap; }
.card.evo .face { box-shadow: 0 12px 28px -10px #000d, 0 0 14px -2px #b45cff; }
.card.evo3 .face, .card.evo4 .face { box-shadow: 0 12px 28px -10px #000d, 0 0 22px 0 #b45cff, 0 0 40px -6px #ff3bd5; }
.card.evo5 .face { box-shadow: 0 12px 28px -10px #000d, 0 0 28px 2px #ff3bd5, 0 0 60px -4px #ffd23f; }
.card.evo5 .evotag { background: linear-gradient(90deg, #ffd23f, #ff3bd5, #7c3bff); animation: ptagGlow 1.4s infinite; }
.evo-box { margin-top: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #2a1450, #141828); border: 1px solid #b45cff55; }
.evo-stars { color: #ffd23f; letter-spacing: 2px; }

/* ================= TOURNAMENT ================= */
.tourney .t-name { font-family: var(--display); font-size: 30px; letter-spacing: 1px; line-height: 1; }
.tourney .t-me { text-align: center; padding: 8px 14px; border-radius: 14px; background: #ffffff10; }
.tourney .t-me small { display: block; color: var(--dim); font-size: 11px; font-weight: 700; } .tourney .t-me b { font-family: var(--display); font-size: 28px; }
.tourney #tList { margin-top: 12px; }

/* ================= COLLECTION BOOK ================= */
.view-seg { display: inline-grid; grid-template-columns: 1fr 1fr; width: 220px; float: right; margin-top: 6px; }
.view-seg button { display: flex; gap: 6px; align-items: center; justify-content: center; }
@media (max-width: 560px) { .view-seg { float: none; width: 100%; margin-bottom: 8px; } }
.book-nav { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; } .book-nav select { flex: 1; }
.book { perspective: 1600px; }
.book-page { padding: 18px; border-radius: 10px 22px 22px 10px; background: linear-gradient(90deg, #0006 0, transparent 22px), linear-gradient(160deg, color-mix(in srgb, var(--tc) 55%, #10131f), #0c0e19 70%); border: 1px solid var(--line2); box-shadow: inset 6px 0 18px #0008, 0 20px 50px -20px #000; transform-origin: left center; }
.flip-in-r { animation: pageR .5s cubic-bezier(.2,.8,.3,1); } .flip-in-l { animation: pageL .5s cubic-bezier(.2,.8,.3,1); }
@keyframes pageR { from { transform: rotateY(-70deg); opacity: 0; } } @keyframes pageL { from { transform: rotateY(40deg) translateX(-30px); opacity: 0; } }
.bp-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.bp-head img { width: 50px; height: 50px; object-fit: contain; } .bp-head img.flag { height: 34px; border-radius: 4px; object-fit: cover; }
.bp-head .ic { width: 40px; height: 40px; color: var(--gold); }
.bp-head b { display: block; font-family: var(--display); font-size: 28px; letter-spacing: 1px; line-height: 1; } .bp-head small { color: var(--dim); font-weight: 700; }
.pockets { display: grid; grid-template-columns: repeat(3, minmax(0, 170px)); gap: 14px; justify-content: center; }
.pocket { position: relative; border-radius: 10px; padding: 6px; background: linear-gradient(160deg, #ffffff18, #ffffff05); box-shadow: inset 0 0 0 1px #ffffff22; }
.pocket::after { content: ""; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(115deg, transparent 40%, #ffffff14 50%, transparent 60%); pointer-events: none; }
.pocket.empty { aspect-ratio: 5/7; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; border: 2px dashed #ffffff26; background: #00000030; box-shadow: none; }
.pocket.empty .pk-q { font-family: var(--display); font-size: 48px; color: #ffffff22; line-height: 1; }
.pocket.empty b { font-size: 12px; color: #ffffff70; padding: 0 6px; } .pocket.empty small { font-size: 10px; color: #ffffff45; font-weight: 700; }
.pocket.blank { aspect-ratio: 5/7; background: #0000001a; box-shadow: inset 0 0 0 1px #ffffff0c; }
.bp-foot { text-align: center; color: var(--dim); font-size: 12px; font-weight: 700; margin-top: 12px; }
@media (max-width: 560px) { .pockets { gap: 8px; } .book-page { padding: 10px; } }

/* ================= CLUBS ================= */
.cbadge { flex: none; width: 46px; height: 52px; display: grid; place-items: center; font-family: var(--display); font-size: 18px; letter-spacing: .5px; color: #fff;
  background: linear-gradient(160deg, var(--cc), color-mix(in srgb, var(--cc) 40%, #000)); clip-path: polygon(50% 0, 100% 18%, 100% 70%, 50% 100%, 0 70%, 0 18%); text-shadow: 0 1px 3px #000a; }
.cbadge.big { width: 78px; height: 88px; font-size: 28px; }
.club-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: linear-gradient(120deg, color-mix(in srgb, var(--cc) 35%, #10131f), #10131f 70%); }
.club-head h2 { font-family: var(--display); font-size: 36px; margin: 0; letter-spacing: 1px; line-height: 1; }
.club-head small { color: #d6dafa; font-weight: 700; }
.club-form { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.club-form .btn, .club-form .swatches { grid-column: 1 / -1; }
.swatches { display: flex; gap: 8px; } .swatches .sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; }
.swatches .sw.on { border-color: #fff; box-shadow: 0 0 0 2px #000; }
.ctag { display: inline-block; font-size: 10px; font-weight: 900; padding: 1px 5px; border-radius: 5px; margin-right: 5px; color: #fff; background: var(--cc); vertical-align: 1px; letter-spacing: .5px; }

/* ================= CHAT: rooms, reactions, cards ================= */
.ch-rooms { display: flex; gap: 4px; } .ch-rooms button { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #ffffff10; color: var(--dim); }
.ch-rooms button.on { background: #fff; color: #0b0d18; } .ch-rooms em { font-style: normal; background: var(--M); color: #fff; font-size: 10px; padding: 0 5px; border-radius: 8px; }
.ch-head b { font-size: 20px; }
.ch-card { width: 110px; margin-top: 4px; } .ch-card small { display: block; font-size: 11px; font-weight: 700; color: var(--dim); margin-top: 4px; }
.rx-row { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 4px; min-height: 4px; }
.rx { display: inline-flex; gap: 3px; align-items: center; padding: 2px 7px; border-radius: 99px; background: #ffffff12; font-size: 11px; font-weight: 800; color: #d6dafa; }
.rx .ic { width: 13px; height: 13px; } .rx.mine { background: #ffd23f33; color: var(--gold); box-shadow: inset 0 0 0 1px #ffd23f88; }
.rx-add { display: none; gap: 2px; } .ch-msg:hover .rx-add, .ch-msg:focus-within .rx-add { display: inline-flex; }
.rx.ghost { background: transparent; color: #ffffff55; padding: 2px 4px; } .rx.ghost:hover { color: #fff; }
@media (hover: none) { .rx-add { display: inline-flex; } }
.ch-form #chShare { width: 42px; height: 42px; padding: 0; }

/* ================= LIVE MATCHES ================= */
.match .pot { display: inline-flex; gap: 6px; align-items: center; font-weight: 900; padding: 6px 12px; border-radius: 99px; background: #ffd23f22; color: var(--gold); }
.m-vs { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px; }
.m-side { display: flex; gap: 10px; align-items: center; font-size: 16px; } .m-side.r { flex-direction: row; }
.b-score { display: flex; gap: 14px; align-items: center; font-family: var(--display); } .b-score b { font-size: 44px; } .b-score span { color: var(--gold); font-size: 22px; }
.b-board { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.b-col { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; padding: 10px; border-radius: 16px; background: #00000040; border: 1px solid var(--line); align-content: start; }
.m-result { text-align: center; padding: 14px; } .m-result.win .score { color: #8dffc0; } .m-result.lose .score { color: #ff6b8a; }
.d-last { display: grid; grid-template-columns: 130px auto 130px; gap: 16px; align-items: center; justify-content: center; margin: 8px 0; }
.d-res { font-family: var(--display); font-size: 34px; text-align: center; } .d-res small { display: block; font-family: Inter; font-size: 11px; color: var(--dim); }
.d-res.w { color: #8dffc0; } .d-res.l { color: #ff6b8a; }
.d-hand { max-width: 760px; margin: 0 auto; }
@media (max-width: 560px) { .d-last { grid-template-columns: 100px auto 100px; } .b-score b { font-size: 34px; } .b-col { grid-template-columns: repeat(2, 1fr); } }
.event-box .hbar small { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #d6dafa; margin-bottom: 6px; }
.d-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 130px)); gap: 10px; justify-content: center; padding-bottom: 16px; }
.d-hand .cbox { position: relative; }
.d-hand .cbox.used { opacity: .22; pointer-events: none; filter: grayscale(1); }
.d-last > div { width: 130px; }
@media (max-width: 560px) { .d-hand { gap: 6px; } .d-last > div { width: 100px; } }
.sv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sv-col { padding: 12px; border-radius: 14px; background: #ffffff0a; border: 1px solid var(--line2); }
.sv-col > b { font-family: var(--display); font-size: 22px; letter-spacing: 1px; }
.sv-stats { display: grid; gap: 4px; margin: 8px 0; font-size: 13px; font-weight: 700; } .sv-stats span { display: flex; gap: 6px; align-items: center; }
.sv-best { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
@media (max-width: 480px) { .sv-grid { grid-template-columns: 1fr; } }
.gift-cards { max-height: 34vh; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }

/* ================= CRATES ================= */
.crate-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 10px; }
.crate { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 20px; background: var(--panel); border: 2px solid var(--line); transition: transform .15s, border-color .2s; }
.crate:hover { transform: translateY(-3px); }
.crate.on { border-color: var(--c2); box-shadow: 0 0 30px -8px var(--c2); background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 40%, #10131f), #10131f); }
.crate b { font-family: var(--display); font-size: 22px; letter-spacing: 1px; } .crate span { font-weight: 800; font-size: 13px; display: flex; gap: 5px; align-items: center; }
.crate-box { position: relative; width: 84px; height: 70px; }
.crate-body { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; border-radius: 8px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--c1), color-mix(in srgb, var(--c1) 40%, #000)); box-shadow: inset 0 0 0 3px #ffffff30, 0 8px 20px -6px var(--c2); }
.crate-body .ic { width: 26px; height: 26px; opacity: .8; }
.crate-lid { position: absolute; left: -4px; right: -4px; top: 6px; height: 16px; border-radius: 6px; background: linear-gradient(180deg, var(--c2), var(--c1)); box-shadow: 0 0 16px var(--c2); transition: transform .3s; }
.crate.on .crate-lid { transform: translateY(-6px) rotate(-6deg); }
.crate-odds { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; font-weight: 700; color: var(--dim); margin: 6px 0 14px; }
.crate-odds span { display: inline-flex; gap: 5px; align-items: center; } .crate-odds i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.spinner-wrap { position: relative; overflow: hidden; padding: 16px 0; border-radius: 20px; background: linear-gradient(180deg, #0b0d18, #141828); border: 1px solid var(--line2);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.spin-strip { display: flex; gap: 10px; padding: 0 10px; will-change: transform; }
.spin-card { flex: none; width: 120px; position: relative; padding-bottom: 6px; }
.spin-card::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 4px; border-radius: 4px; background: var(--rcl, #aab4c6); }
.spin-card.r-R { --rcl: var(--R); } .spin-card.r-E { --rcl: var(--E); } .spin-card.r-L { --rcl: var(--L); } .spin-card.r-M { --rcl: var(--M); } .spin-card.r-I { --rcl: var(--I); }
.spin-card.won { animation: wonPop .6s cubic-bezier(.2,1.6,.4,1) forwards; z-index: 2; }
@keyframes wonPop { to { transform: scale(1.12); filter: drop-shadow(0 0 20px var(--rcl)); } }
.spin-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; z-index: 3; background: var(--gold); box-shadow: 0 0 16px var(--gold), 0 0 40px var(--gold); }
.spin-line::before, .spin-line::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 10px solid transparent; }
.spin-line::before { top: 0; border-top-color: var(--gold); } .spin-line::after { bottom: 0; border-bottom-color: var(--gold); }
.fast-toggle { display: inline-flex; gap: 6px; align-items: center; margin-left: 14px; font-size: 13px; font-weight: 700; color: var(--dim); cursor: pointer; }
.crate-win { display: flex; gap: 20px; align-items: center; margin-top: 18px; border-color: var(--rc); box-shadow: 0 0 40px -10px var(--rc); animation: pop .4s cubic-bezier(.2,1.3,.4,1); }
.cw-card { width: 150px; flex: none; position: relative; }
.cw-kicker { font-weight: 900; letter-spacing: 4px; font-size: 12px; color: var(--rc); } .crate-win h2 { font-family: var(--display); font-size: 36px; margin: 2px 0 8px; letter-spacing: 1px; }
@media (max-width: 560px) { .spin-card { width: 96px; } .crate b { font-size: 17px; } .crate-box { transform: scale(.8); } .crate-win { flex-direction: column; text-align: center; } }

/* ---------- settings: volume ---------- */
.vol-row { display: flex; align-items: center; gap: 12px; padding: 6px 2px; }
.vol-row span { width: 62px; font-weight: 700; font-size: 14px; color: var(--dim); }
.vol-row input { flex: 1; accent-color: var(--gold); }
.vol-row b { width: 30px; text-align: right; font-size: 13px; }

/* ---------- daily spotlight ---------- */
.spot-box { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; margin-bottom: 16px; border: 1px solid #ffd23f44;
  background: radial-gradient(400px 200px at 0% 50%, color-mix(in srgb, var(--tc) 45%, transparent), transparent 70%), linear-gradient(135deg, #2a2210, #141828); position: relative; overflow: hidden; }
.spot-box::before { content: ""; position: absolute; left: -40px; top: -60px; width: 220px; height: 320px; background: conic-gradient(from 180deg, transparent, #ffe06633, transparent 30%); animation: spotSpin 8s linear infinite; pointer-events: none; }
@keyframes spotSpin { to { transform: rotate(360deg); } }
.spot-card { width: 118px; flex: none; position: relative; }
.spot-box h3 { margin: 2px 0 0; font-size: 22px; }
.spot-tag { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 12px; letter-spacing: .08em; color: var(--gold); }
.spot-tag small { color: var(--dim); font-weight: 700; letter-spacing: 0; margin-left: auto; }
.spot-perks { display: grid; gap: 6px; font-size: 13px; }
.spot-perks > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.spot-perks .done { opacity: .6; }
.spot-q { margin-top: 10px; font-size: 13px; padding: 10px; border-radius: 12px; background: #0006; }
.spot-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (max-width: 560px) { .spot-box { flex-direction: column; align-items: stretch; } .spot-card { width: 120px; margin: 0 auto; } }

/* ---------- crafting ---------- */
.craft-box { background: linear-gradient(135deg, #0b3a48, #141828); border-color: #7dfcff44; }
.dust-n { color: #b9f3ff; }
.craft-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; background: linear-gradient(135deg, #0b3a48cc, var(--panel)); }
.dust-big { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.dust-big .ic { width: 34px; height: 34px; color: #7dfcff; filter: drop-shadow(0 0 10px #7dfcff); }
.dust-big b { font-family: var(--display); font-size: 36px; line-height: 1; color: #b9f3ff; }
.dust-big span { font-size: 12px; color: var(--dim); font-weight: 700; }
.dust-rates { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 700; }
.dust-rates i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* ---------- names, titles, profile themes ---------- */
.uname { font-weight: 800; }
.ptitle { font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: #ffffff14; color: #cfd6ff; border: 1px solid #ffffff22; vertical-align: 2px; white-space: nowrap; }
.ptitle.big { font-size: 12px; }
.nc-gold { color: #ffd23f; text-shadow: 0 0 10px #ffd23f66; }
.nc-ice { color: #9fe8ff; text-shadow: 0 0 10px #7dfcff66; }
.nc-fire { background: linear-gradient(90deg, #ff3b3b, #ffb627); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nc-emerald { color: #3dffa0; text-shadow: 0 0 10px #1fd07f66; }
.nc-violet { color: #c69bff; text-shadow: 0 0 10px #b45cff66; }
.nc-rainbow { background: linear-gradient(90deg, #ff3b6b, #ffb627, #ffe066, #1fd07f, #3fa9ff, #b45cff, #ff3b6b); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbowMove 3s linear infinite; }
.nc-galaxy { background: linear-gradient(90deg, #7dfcff, #b45cff, #ff9bd5, #7dfcff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbowMove 4s linear infinite; filter: drop-shadow(0 0 6px #b45cff88); }
@keyframes rainbowMove { to { background-position: 200% 0; } }
.prof[class*="pth-"] { margin: -8px; padding: 16px; border-radius: 18px; }
.pth-rink { background: linear-gradient(180deg, #dff4ff22, transparent 60%), repeating-linear-gradient(90deg, transparent 0 60px, #ff3b3b22 60px 63px), linear-gradient(135deg, #0b3d91, #0a1b3a); }
.pth-court { background: repeating-linear-gradient(90deg, #b8733a 0 24px, #a8652f 24px 48px); box-shadow: inset 0 0 0 9999px #0007; }
.pth-field { background: repeating-linear-gradient(90deg, #1e6b2c 0 40px, #1a5f27 40px 80px); box-shadow: inset 0 0 0 9999px #0006; }
.pth-pitch { background: radial-gradient(circle at 50% 50%, transparent 58px, #ffffff33 59px 61px, transparent 62px), repeating-linear-gradient(0deg, #1f7a34 0 36px, #1b6d2e 36px 72px); box-shadow: inset 0 0 0 9999px #0006; }
.pth-neon { background: linear-gradient(135deg, #1a0033, #00133a); box-shadow: inset 0 0 40px #ff3bd566, inset 0 0 80px #3fa9ff44; }
.pth-vault { background: radial-gradient(500px 200px at 50% 0%, #ffd23f55, transparent), linear-gradient(135deg, #3a2a00, #141008); }
.pth-inferno { background: radial-gradient(500px 240px at 50% 110%, #ff3b0088, transparent), linear-gradient(180deg, #2a0a0a, #120404); }
.pth-galaxy { background: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 60%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(400px 200px at 30% 20%, #b45cff66, transparent), radial-gradient(400px 200px at 80% 80%, #3fa9ff55, transparent), #07051a; }
.style-prev { margin: 0 0 6px !important; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.sty { padding: 10px; border-radius: 12px; background: #ffffff0c; border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 48px; justify-content: center; }
.sty.on { outline: 2px solid var(--gold); background: #ffd23f14; }
.sty.locked { opacity: .45; cursor: not-allowed; }
.sty small { font-size: 11px; color: var(--dim); display: flex; gap: 4px; align-items: center; }
.sty.th { min-height: 64px; text-shadow: 0 1px 4px #000; }

/* ---------- boss battle ---------- */
.boss-arena { position: relative; padding: 20px 14px 18px; border-radius: 22px; overflow: hidden; border: 1px solid #ff3b3b55;
  background: radial-gradient(600px 260px at 50% 0%, #ff1a1a44, transparent 70%), radial-gradient(400px 200px at 50% 100%, #6a00ff33, transparent), #120408; }
.boss-arena::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #fff, transparent 60%); opacity: 0; pointer-events: none; }
.boss-arena.hit { animation: bossShake .35s; } .boss-arena.hit::after { animation: bossFlash .35s; }
@keyframes bossShake { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 0); } }
@keyframes bossFlash { 0% { opacity: .5; } 100% { opacity: 0; } }
.boss-name { text-align: center; font-family: var(--display); font-size: 34px; letter-spacing: .04em; color: #ff6b6b; text-shadow: 0 0 20px #ff1a1a; display: flex; justify-content: center; align-items: center; gap: 10px; }
.boss-squad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 620px; margin: 10px auto 14px; filter: drop-shadow(0 0 18px #ff1a1a88); }
.boss-arena.dead .boss-squad { filter: grayscale(1) brightness(.6); }
.boss-hp { position: relative; height: 26px; border-radius: 99px; background: #0009; border: 1px solid #ff3b3b66; overflow: hidden; max-width: 620px; margin: 0 auto; }
.boss-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff1a1a, #ff6b3b); box-shadow: 0 0 16px #ff1a1a; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.boss-hp span { position: relative; display: block; text-align: center; font-weight: 900; font-size: 13px; line-height: 26px; text-shadow: 0 1px 3px #000; }
.boss-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px 8px; max-height: 420px; overflow-y: auto; padding: 4px 4px 12px; }
.boss-picks .cbox { position: relative; cursor: pointer; }
.boss-left { font-weight: 800; font-size: 13px; color: #ffb4b4; display: flex; gap: 6px; align-items: center; }
.boss-fly { position: absolute; left: calc(50% - 45px + var(--x)); bottom: -140px; width: 90px; z-index: 5; animation: bossFly .55s cubic-bezier(.5, 0, .9, .4) forwards; }
@keyframes bossFly { to { transform: translateY(-300px) scale(.6) rotate(-12deg); opacity: 0; } }
.dmg-num { position: absolute; top: 30%; z-index: 6; font-family: var(--display); font-size: 42px; color: #ffe066; text-shadow: 0 0 12px #ff3b3b, 0 3px 0 #000; animation: dmgUp 1.2s ease-out forwards; pointer-events: none; }
@keyframes dmgUp { 0% { transform: translateY(10px) scale(.6); opacity: 0; } 20% { transform: translateY(0) scale(1.2); opacity: 1; } 100% { transform: translateY(-60px) scale(1); opacity: 0; } }
@media (max-width: 560px) { .boss-name { font-size: 26px; } }

/* ---------- auctions ---------- */
.au-item.leading { border-color: #1fd07f88; background: linear-gradient(180deg, #0f2a20cc, var(--panel)); }
.au-clock { display: flex; align-items: center; gap: 5px; font-weight: 900; font-size: 13px; color: #cfd6ff; font-variant-numeric: tabular-nums; }
.au-clock:has(.hot), .au-clock.hot { color: #ff6b8a; animation: auPulse 1s infinite; }
@keyframes auPulse { 50% { opacity: .55; } }

/* ---------- penalty shootout ---------- */
.pk-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.pk-board > div:first-child, .pk-board > div:last-child { display: flex; align-items: center; gap: 10px; }
.pk-board > div:last-child { flex-direction: row-reverse; }
.pk-taker { width: 56px; flex: none; }
.pk-round { font-family: var(--display); font-size: 20px; color: var(--gold); text-align: center; }
.pk-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.pk-dots i { width: 16px; height: 16px; border-radius: 50%; background: #ffffff18; border: 1px solid #ffffff33; }
.pk-dots i.g { background: #1fd07f; box-shadow: 0 0 8px #1fd07f; border-color: #1fd07f; }
.pk-dots i.m { background: #ff3b6b; border-color: #ff3b6b; }
.pk-goal { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; margin: 6px auto; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #0a1a3a 0 62%, #1f7a34 62%); }
.pk-net { position: absolute; left: 10%; right: 10%; top: 12%; height: 50%; background: repeating-linear-gradient(90deg, #ffffff18 0 1px, transparent 1px 14px), repeating-linear-gradient(0deg, #ffffff18 0 1px, transparent 1px 14px); }
.pk-post { position: absolute; left: 10%; right: 10%; top: 12%; height: 50%; border: 6px solid #fff; border-bottom: 0; border-radius: 4px 4px 0 0; box-shadow: 0 0 16px #fff6; }
.pk-keeper { position: absolute; left: 50%; top: 26%; width: 13%; height: 36%; margin-left: -6.5%; border-radius: 40% 40% 14% 14%; background: linear-gradient(180deg, #ffd23f, #ff8a3d); box-shadow: 0 0 14px #ffb62788; transition: transform .45s cubic-bezier(.2, .9, .3, 1); }
.pk-keeper::before { content: ""; position: absolute; left: 50%; top: -24%; width: 60%; aspect-ratio: 1; margin-left: -30%; border-radius: 50%; background: #f1c9a5; }
.pk-keeper.dive0 { transform: translateX(-190%) rotate(-70deg); }
.pk-keeper.dive1 { transform: translateY(-18%) scale(1.1); }
.pk-keeper.dive2 { transform: translateX(190%) rotate(70deg); }
.pk-ball { position: absolute; left: 50%; bottom: 6%; width: 8%; aspect-ratio: 1; margin-left: -4%; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 4px 10px #0008; transition: all .5s cubic-bezier(.2, .8, .3, 1); }
.pk-ball .ic { width: 90%; height: 90%; stroke-width: 1.6; }
.pk-ball.go { width: 5%; margin-left: -2.5%; }
.pk-ball.go.to0 { left: 22%; bottom: 60%; }
.pk-ball.go.to1 { left: 50%; bottom: 66%; }
.pk-ball.go.to2 { left: 78%; bottom: 60%; }
.pk-zones { position: absolute; left: 10%; right: 10%; top: 12%; height: 50%; display: grid; grid-template-columns: repeat(3, 1fr); }
.pk-zone { border: 0; background: transparent; display: grid; place-items: center; transition: background .15s; }
.pk-zone span { font-weight: 900; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: #0008; opacity: .9; }
.pk-zone:not(:disabled):hover { background: #ffd23f2a; }
.pk-zone:disabled span { opacity: 0; }
.pk-zone.chosen { background: #ffd23f33; } .pk-zone.chosen span { opacity: 1; }
.pk-banner { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: clamp(48px, 12vw, 90px); opacity: 0; pointer-events: none; transform: scale(.5); transition: all .3s cubic-bezier(.2, 1.4, .4, 1); }
.pk-banner.show { opacity: 1; transform: scale(1); }
.pk-banner.g { color: #ffe066; text-shadow: 0 0 30px #ffb627, 0 4px 0 #000; }
.pk-banner.s { color: #7dfcff; text-shadow: 0 0 30px #3fa9ff, 0 4px 0 #000; }
.pk-help { margin: 6px 0; font-size: 15px; }

/* ---------- sell whole collection ---------- */
.sell-all-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 14px; border-radius: 16px; border: 1px solid #ff3b6b55; background: linear-gradient(135deg, #3a0a1a, #141828); }
.sell-all-box b { display: block; }
.sa-worth { font-weight: 900; font-size: 18px; display: flex; flex-direction: column; align-items: flex-end; }
.sa-worth small { font-size: 11px; color: var(--dim); font-weight: 700; }
.sa-steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.sa-steps i { width: 28px; height: 6px; border-radius: 99px; background: #ffffff1a; }
.sa-steps i.on { background: #ff3b6b; box-shadow: 0 0 8px #ff3b6b; }
.sa-break { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; font-size: 13px; font-weight: 700; }
.sa-break i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.sa-best { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 330px; margin: 10px auto 0; }

/* ---------- card finder ---------- */
.view-seg.seg3 { width: 330px; grid-template-columns: repeat(3, 1fr); }
.favtag { position: absolute; top: -6px; left: -6px; z-index: 7; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #ffd23f; color: #3a2a00; box-shadow: 0 0 10px #ffd23f99; }
.favtag .ic { width: 14px; height: 14px; fill: currentColor; }
.fav-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ffffff10; border: 1px solid var(--line2); vertical-align: middle; margin-left: 6px; color: var(--dim); transition: transform .15s; }
.fav-btn:active { transform: scale(.85); }
.fav-btn.on { color: #ffd23f; background: #ffd23f22; border-color: #ffd23f88; }
.fav-btn.on .ic { fill: currentColor; filter: drop-shadow(0 0 6px #ffd23f); }
.big-search input { height: 54px !important; font-size: 17px; border-radius: 16px; } .big-search .ic { top: 18px !important; }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px 12px; }
.fd-row { display: flex; gap: 12px; overflow-x: auto; padding: 8px 4px 10px; scroll-snap-type: x mandatory; }
.fd-row .fd-card { width: 118px; flex: none; scroll-snap-align: start; }
.fd-card { display: flex; flex-direction: column; gap: 6px; }
.fd-card .cbox { position: relative; }
.fd-miss .card { filter: saturate(.35) brightness(.7); }
.fd-miss:hover .card { filter: none; }
.newtag.need { background: #ff3b6b; color: #fff; }
.how { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 5px 6px; border-radius: 9px; background: #ffffff0c; color: var(--dim); border: 1px solid var(--line); white-space: nowrap; }
.how .ic { width: 13px; height: 13px; }
.how.ok { color: #8dffc0; border-color: #1fd07f44; }
.how.mk { color: #ffe066; border-color: #ffd23f55; background: #ffd23f14; cursor: pointer; }
.fr-list { display: grid; gap: 4px; padding: 8px; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; transition: background .15s; }
.fr-row:hover { background: #ffffff08; }
.fr-row.on { background: color-mix(in srgb, var(--rc) 12%, transparent); border-color: color-mix(in srgb, var(--rc) 45%, transparent); }
.fr-dot { width: 14px; height: 14px; border-radius: 5px; background: var(--rc); box-shadow: 0 0 10px var(--rc); flex: none; }
.fr-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.fr-top span { color: var(--dim); font-weight: 700; font-size: 13px; }
.fr-miss { color: #ff8aa5; }
.fr-row .bar { position: relative; margin: 6px 0 4px; }
.fr-row .bar em { position: absolute; top: -3px; width: 2px; height: calc(100% + 6px); background: #ffffff55; transform: translateX(-1px); }
.fr-row .bar em.got { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.fr-acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.fill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fill-pack { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: 18px; text-align: center; border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent);
  background: radial-gradient(160px 100px at 50% 0%, color-mix(in srgb, var(--rc) 30%, transparent), transparent), var(--panel); }
.fp-art { position: relative; width: 64px; height: 84px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, var(--rc), #0b0d18); box-shadow: 0 6px 20px #0008, inset 0 0 0 2px #ffffff33; }
.fp-art .ic { width: 30px; height: 30px; color: #fff; }
.fp-art b { position: absolute; bottom: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #0b0d18; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.fill-pack small { font-size: 12px; min-height: 30px; }
@media (max-width: 560px) { .view-seg.seg3 { width: 100%; } .fd-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } .fr-row { flex-wrap: wrap; } .fr-acts { flex-direction: row; width: 100%; justify-content: flex-end; } }

/* ---------- bans ---------- */
#bannedScreen { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: radial-gradient(600px 400px at 50% 30%, #3a0a14, #06070d); text-align: center; padding: 20px; }
#bannedScreen h1 { font-family: var(--display); font-size: 48px; margin: 10px 0 6px; color: #ff6b8a; }
#bannedScreen p { color: var(--dim); max-width: 340px; margin: 0 auto 18px; }
.ban-pick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow-y: auto; margin-bottom: 12px; }
.gl-list { display: grid; gap: 8px; max-height: 55vh; overflow-y: auto; }
.gl-row { display: grid; gap: 5px; padding: 10px 12px; border-radius: 12px; background: #ffffff08; border: 1px solid var(--line); }
.gl-names { display: flex; flex-wrap: wrap; gap: 4px; }
.gl-names span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #ffffff12; }
.gl-names span.hit { background: var(--gold); color: #1a1400; }
.gl-msg { font-style: italic; }

/* ---------- badges ---------- */
.bdg { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; margin-left: 4px; border-radius: 6px; vertical-align: -3px;
  background: color-mix(in srgb, var(--bc) 22%, transparent); color: var(--bc); border: 1px solid color-mix(in srgb, var(--bc) 55%, transparent); }
.bdg .ic { width: 12px; height: 12px; }
.bdg.age { font-size: 10px; font-weight: 900; letter-spacing: .02em; }
.bchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.bchip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800;
  background: color-mix(in srgb, var(--bc) 18%, transparent); color: var(--bc); border: 1px solid color-mix(in srgb, var(--bc) 55%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--bc) 25%, transparent); }
.bchip .ic { width: 14px; height: 14px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.badge-opt { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: #ffffff0a; border: 1px solid var(--line); color: var(--dim); text-align: left; }
.badge-opt .ic { color: var(--bc); }
.badge-opt.on { color: #fff; background: color-mix(in srgb, var(--bc) 20%, transparent); border-color: var(--bc); box-shadow: 0 0 14px color-mix(in srgb, var(--bc) 35%, transparent); }

/* ---------- announcements ---------- */
#annBar { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 9000; width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: linear-gradient(135deg, #2a1f5a, #141828); border: 1px solid #8c9bff88;
  box-shadow: 0 12px 40px #000a, 0 0 30px #7c5cff55; animation: annIn .45s cubic-bezier(.2, 1.3, .4, 1); }
#annBar.admin { background: linear-gradient(135deg, #5a1024, #2a1a05); border-color: #ffd23f99; box-shadow: 0 12px 40px #000a, 0 0 30px #ffd23f55; }
#annBar.out { animation: annOut .35s forwards; }
@keyframes annIn { from { transform: translate(-50%, -140%); opacity: 0; } }
@keyframes annOut { to { transform: translate(-50%, -140%); opacity: 0; } }
#annBar .ann-ic { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #ffd23f; color: #2a1a00; animation: annShake 1s ease-in-out 2; }
@keyframes annShake { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
#annBar small { display: block; font-size: 12px; color: var(--dim); }
#annBar b { display: block; font-size: 15px; line-height: 1.3; word-break: break-word; }
#annBar .x { position: static; flex: none; }

/* ---------- luck boosters ---------- */
.boost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 18px; }
.boost-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--b2) 45%, transparent);
  background: radial-gradient(260px 140px at 0% 50%, color-mix(in srgb, var(--b1) 55%, transparent), transparent), var(--panel); flex-wrap: wrap; }
.boost-card.on { box-shadow: 0 0 0 2px var(--b2), 0 0 30px color-mix(in srgb, var(--b2) 40%, transparent); }
.boost-card h3 { margin: 0 0 4px; font-size: 17px; }
.boost-card p { margin: 0; font-size: 12px; color: var(--dim); line-height: 1.45; }
.boost-card .btn { margin-left: auto; }
.boost-orb { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), conic-gradient(from 0deg, var(--b1), var(--b2), var(--b1)); box-shadow: 0 0 24px color-mix(in srgb, var(--b2) 60%, transparent); animation: orbSpin 6s linear infinite; }
.boost-orb b { font-family: var(--display); font-size: 28px; color: #fff; text-shadow: 0 2px 6px #0009; animation: orbSpin 6s linear infinite reverse; }
.boost-orb.big { width: 96px; height: 96px; margin: 0 auto 12px; } .boost-orb.big b { font-size: 42px; }
@keyframes orbSpin { to { transform: rotate(360deg); } }
.boost-pill { display: flex; align-items: center; gap: 4px; color: #1a1400; background: linear-gradient(135deg, #ffe066, #7dffb0); font-weight: 900; box-shadow: 0 0 16px #ffe06688; animation: boostGlow 2s ease-in-out infinite; }
.boost-pill span { font-size: 11px; font-weight: 800; opacity: .8; }
@keyframes boostGlow { 50% { box-shadow: 0 0 26px #7dffb0aa; } }
@media (max-width: 560px) { .boost-pill span { display: none; } .boost-card .btn { width: 100%; } }

/* ---------- spam packs ---------- */
.spam-btn { margin: 14px 0 4px; height: 54px; font-size: 17px; }
.spam-btn small { font-size: 12px; opacity: .8; font-weight: 700; margin-left: 6px; }
.spam-prog { height: 14px; border-radius: 99px; background: #ffffff12; overflow: hidden; margin: 10px 0; }
.spam-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff3b6b, #ffd23f); transition: width .1s; }
.spam-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; margin-bottom: 12px; }
.spam-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; font-size: 15px; }
.spam-best { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px 8px; max-height: 50vh; overflow-y: auto; padding: 4px; }
.spam-best .cbox { position: relative; cursor: pointer; }

/* ---------- Ocean Edition cards ---------- */
.card.ocean { --rc: #5ff3ff; }
.card.ocean .face { background: conic-gradient(from var(--spin, 0deg), #00e0ff, #0a4dff, #7dffe0, #ffffff, #00b3ff, #00e0ff); box-shadow: 0 12px 28px -10px #000d, 0 0 28px #29d9ffaa; }
.card.ocean .inner { background: linear-gradient(180deg, #1aa6d9 0%, #0a5f9e 32%, #053a6e 62%, #021833 100%); }
.card.ocean .inner::before { background: linear-gradient(100deg, transparent 20%, #ffffff22 28%, transparent 36%, transparent 50%, #ffffff18 58%, transparent 66%); animation: oceanRays 7s ease-in-out infinite alternate; }
@keyframes oceanRays { to { transform: translateX(12%); } }
.card.ocean .stripe, .card.ocean .accent { opacity: .25; }
.sea { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.sea .caustic { position: absolute; inset: -20%; opacity: .35; mix-blend-mode: screen;
  background: radial-gradient(12% 8% at 20% 30%, #9ff 0, transparent 70%), radial-gradient(10% 7% at 60% 20%, #9ff 0, transparent 70%), radial-gradient(14% 9% at 80% 55%, #9ff 0, transparent 70%), radial-gradient(9% 6% at 35% 65%, #9ff 0, transparent 70%);
  animation: caustic 9s ease-in-out infinite alternate; }
@keyframes caustic { to { transform: translate(6%, 4%) scale(1.15) rotate(8deg); } }
.sea .creature { position: absolute; left: -6cqw; top: 20cqw; width: 100cqw; opacity: .9; filter: drop-shadow(0 0 3cqw #00e0ff88); animation: swim 6s ease-in-out infinite; }
.sea .creature svg { width: 100%; height: auto; display: block; }
@keyframes swim { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(8cqw, 4cqw) rotate(3deg); } }
.sea .bub { position: absolute; bottom: -6cqw; width: 3cqw; height: 3cqw; border-radius: 50%; border: .5cqw solid #ffffffaa; background: radial-gradient(circle at 30% 30%, #ffffffaa, transparent 60%); animation: bubUp 5s linear infinite; }
.sea .b1 { left: 12%; animation-delay: 0s; } .sea .b2 { left: 34%; width: 2cqw; height: 2cqw; animation-delay: 1.4s; } .sea .b3 { left: 70%; animation-delay: 2.6s; } .sea .b4 { left: 88%; width: 4cqw; height: 4cqw; animation-delay: 3.7s; }
@keyframes bubUp { to { transform: translate(3cqw, -150cqw); opacity: 0; } }
.edtag.ed-ocean { background: linear-gradient(90deg, #00e0ff, #ffffff, #00e0ff); box-shadow: 0 0 3cqw #00e0ff; }
.card.ocean .rtag { background: linear-gradient(90deg, #7dffe0, #00e0ff, #fff); }

/* ---------- Ocean reveal (big animation) ---------- */
#oceanFx { position: fixed; inset: 0; z-index: 9500; overflow: hidden; background: #01060f; cursor: pointer; }
#oceanFx .water { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, #1ab3e6, #0a5f9e 30%, #042a55 70%, #010b1c); transition: height 1.3s cubic-bezier(.3, .8, .3, 1); }
#oceanFx.flood .water { height: 100%; }
#oceanFx .wave { position: absolute; left: -10%; width: 120%; top: -38px; height: 40px; animation: waveMove 2s linear infinite; }
@keyframes waveMove { to { transform: translateX(-8%); } }
#oceanFx .rays { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; background: repeating-linear-gradient(105deg, transparent 0 60px, #ffffff10 60px 90px, transparent 90px 170px); animation: oceanRays 6s ease-in-out infinite alternate; }
#oceanFx.deep .rays { opacity: 1; }
#oceanFx .obub { position: absolute; bottom: -30px; border-radius: 50%; border: 2px solid #ffffff99; background: radial-gradient(circle at 30% 30%, #ffffffaa, transparent 60%); animation: oBub linear forwards; }
@keyframes oBub { to { transform: translate(var(--dx), -115vh); opacity: .2; } }
#oceanFx .whale { position: absolute; top: 28%; left: 110%; width: min(900px, 140vw); opacity: .9; filter: drop-shadow(0 0 30px #00e0ff66); }
#oceanFx .whale svg { width: 100%; height: auto; }
#oceanFx.swim .whale { animation: whaleSwim 4.2s cubic-bezier(.4, .1, .5, 1) forwards; }
@keyframes whaleSwim { 0% { left: 110%; transform: rotate(4deg); } 50% { transform: rotate(-4deg) translateY(30px); } 100% { left: -150%; transform: rotate(3deg); } }
#oceanFx .otext { position: absolute; left: 0; right: 0; top: 14%; text-align: center; font-family: var(--display); color: #bff6ff; font-size: clamp(22px, 5vw, 44px); letter-spacing: .08em; text-shadow: 0 0 20px #00e0ff; opacity: 0; transition: opacity .6s; padding: 0 16px; }
#oceanFx .otext.show { opacity: 1; }
#oceanFx .otitle { position: absolute; left: 0; right: 0; top: 3%; text-align: center; font-family: var(--display); font-size: clamp(40px, 9vw, 92px); line-height: .9; color: #fff; opacity: 0; transform: scale(.4);
  background: linear-gradient(180deg, #ffffff, #7dfcff 50%, #00a6ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 30px #00e0ff); transition: all .7s cubic-bezier(.2, 1.5, .4, 1); }
#oceanFx .otitle.show { opacity: 1; transform: scale(1); }
#oceanFx .ocard { position: absolute; left: 50%; top: 58%; width: min(260px, 58vw); transform: translate(-50%, 120vh) rotate(-8deg); transition: transform 1.4s cubic-bezier(.2, 1.1, .3, 1); }
#oceanFx .ocard.show { transform: translate(-50%, -45%) rotate(0); animation: ocardFloat 4s ease-in-out 1.4s infinite; }
@keyframes ocardFloat { 50% { transform: translate(-50%, -48%) rotate(1.5deg); } }
#oceanFx .oname { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-weight: 900; font-size: clamp(18px, 4vw, 26px); color: #fff; opacity: 0; transition: opacity .6s .8s; text-shadow: 0 2px 10px #000; }
#oceanFx .oname small { display: block; font-size: 13px; color: #bff6ff; font-weight: 700; margin-top: 4px; }
#oceanFx .oname.show { opacity: 1; }
#oceanFx .oflash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, #fff, #7dfcff 30%, transparent 70%); opacity: 0; pointer-events: none; }
#oceanFx .oflash.go { animation: oFlash .9s ease-out; }
@keyframes oFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
#oceanFx .otap { position: absolute; bottom: 14px; right: 16px; color: #bff6ff88; font-size: 12px; font-weight: 800; letter-spacing: .1em; }

/* ---------- DMs ---------- */
.seg5 { grid-template-columns: repeat(5, 1fr); } .seg5 button { font-size: 12px; padding: 0 2px; }
.dm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dm-head small { font-size: 12px; }
.dm-thread { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; min-height: 200px; overflow-y: auto; padding: 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.dm-msg { max-width: 78%; align-self: flex-start; }
.dm-msg p { margin: 0; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: #ffffff14; word-break: break-word; }
.dm-msg small { display: block; font-size: 10px; color: var(--dim); margin: 3px 6px 0; }
.dm-msg.me { align-self: flex-end; text-align: right; }
.dm-msg.me p { background: linear-gradient(135deg, #7c5cff, #3fa9ff); border-radius: 16px 16px 4px 16px; text-align: left; }
.dm-form { margin-top: 10px; }
.dm-row { width: 100%; }
.dm-row.unread { border-color: #8c9bff88; background: linear-gradient(90deg, #7c5cff22, var(--panel)); }
.dm-prev { display: block; color: var(--dim); font-size: 12px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.dm-pick { display: grid; gap: 6px; max-height: 55vh; overflow-y: auto; margin-top: 10px; }
@media (max-width: 560px) { .seg5 button { font-size: 11px; } }

/* ---------- Plus, shop, designer ---------- */
#tabs button.design-tab .ic { color: #ffd23f; }
.plus-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 20px; margin-bottom: 12px; border: 1px solid #ffd23f66;
  background: radial-gradient(300px 140px at 0% 50%, #ffd23f33, transparent), linear-gradient(135deg, #2a1f05, #141828); }
.plus-banner.on { border-color: #ffd23f; box-shadow: 0 0 24px #ffd23f33; }
.plus-banner h3 { margin: 0 0 2px; } .plus-banner p { margin: 0; font-size: 13px; color: var(--dim); }
.plus-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; flex: none; color: #2a1a00;
  background: linear-gradient(135deg, #fff3b0, #ffd23f 45%, #e09a00); box-shadow: 0 0 20px #ffd23f66; }
.plus-logo .ic { width: 22px; height: 22px; } .plus-logo b { font-family: var(--display); font-size: 17px; line-height: 1; letter-spacing: .05em; }
.plus-logo.big { width: 90px; height: 90px; margin: 0 auto 10px; border-radius: 24px; } .plus-logo.big .ic { width: 34px; height: 34px; } .plus-logo.big b { font-size: 26px; }
.plus-pack { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 20px; margin-bottom: 18px; border: 1px solid #ffd23f44; background: var(--panel); }
.plus-pack.locked { opacity: .85; }
.plus-pack h3 { margin: 0 0 4px; display: flex; gap: 6px; align-items: center; } .plus-pack h3 small { color: var(--dim); font-size: 12px; font-weight: 700; }
.plus-pack p { margin: 0 0 4px; font-size: 13px; color: var(--dim); }
.pp-art { width: 64px; position: relative; flex: none; } .pp-q { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 40px; color: #ffd23f; text-shadow: 0 0 12px #000; }
.pp-list { font-size: 12px; font-weight: 800; line-height: 1.5; }
.coin-shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.coin-offer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px 14px; border-radius: 18px; background: linear-gradient(180deg, #2a2210, var(--panel)); border: 1px solid #ffd23f44; transition: transform .15s; }
.coin-offer:hover { transform: translateY(-2px); border-color: #ffd23f; }
.coin-offer .tag { position: absolute; top: -9px; font-size: 10px; font-weight: 900; padding: 2px 8px; border-radius: 99px; background: #ff3b6b; color: #fff; }
.co-stack { font-size: 20px; letter-spacing: -6px; } .coin-offer b { font-size: 17px; }
.co-price { font-weight: 900; padding: 4px 16px; border-radius: 99px; background: var(--gold); color: #1a1400; font-size: 15px; }
.perk-list { display: grid; gap: 8px; } .perk-list > div { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.perk-list .ic { color: var(--gold); flex: none; } .perk-list.small > div { font-size: 12px; }
.dz-preview-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; } .dz-demo { width: 140px; } .dz-demo:nth-child(2) { transform: translateY(-10px); }
.dz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.dz-opt { padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 8px; }
.dz-opt h3 { margin: 0; display: flex; gap: 8px; align-items: center; } .dz-opt p { margin: 0; color: var(--dim); font-size: 13px; }
.dz-opt.plus { border-color: #ffd23f88; background: radial-gradient(300px 150px at 100% 0%, #ffd23f22, transparent), var(--panel); }
.dz-price { font-size: 24px; font-weight: 900; margin-top: auto; }
.dz-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
@media (max-width: 760px) { .dz-wrap { grid-template-columns: 1fr; } .dz-right { order: -1; } }
.dz-right { position: sticky; top: 80px; display: grid; gap: 10px; } .dz-card { width: 220px; margin: 0 auto; }
.dz-fields input[type=color] { width: 100%; height: 40px; border: 0; background: none; padding: 0; }
.dz-fields input[type=range] { width: 100%; accent-color: var(--gold); }
.dz-results { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dz-ai { padding: 12px; } .dz-chat { max-height: 220px; overflow-y: auto; display: grid; gap: 6px; margin: 8px 0; }
.dz-msg p { margin: 0; padding: 7px 11px; border-radius: 14px; background: #ffffff12; font-size: 13px; } .dz-msg .btn { margin-top: 4px; }
.dz-msg.me { justify-self: end; } .dz-msg.me p { background: linear-gradient(135deg, #7c5cff, #3fa9ff); }
.dz-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; } .dz-m { display: grid; gap: 4px; text-align: center; }
.dz-st { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #ffffff14; }
.dz-st.pending { color: #ffe066; } .dz-st.approved { color: #8dffc0; } .dz-st.rejected { color: #ff8aa5; }
.admin-tabs { margin: 10px 0 14px; } .adm-designs { display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; }
.adm-d { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: #ffffff08; border: 1px solid var(--line); } .adm-d .cbox { width: 100px; flex: none; }
.adm-d.pending { border-color: #ffe06688; } .adm-note { width: 100%; margin-top: 6px; }
.gl-row.done { opacity: .5; }
.bdg.plusb { width: auto; padding: 0 5px; font-size: 9px; font-weight: 900; letter-spacing: .05em; --bc: #ffd23f; background: linear-gradient(135deg, #fff3b0, #ffd23f); color: #2a1a00; border: 0; }
.nc-plusgold { background: linear-gradient(90deg, #ffd23f, #fff3b0, #ffb627, #ffd23f); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbowMove 3s linear infinite; filter: drop-shadow(0 0 5px #ffd23f66); }
/* custom cards */
.card.custom { --rc: var(--t2); }
.card.custom .face { background: conic-gradient(from var(--spin, 0deg), var(--t1), var(--t2), #ffffff, var(--t2), var(--t1)); box-shadow: 0 12px 28px -10px #000d, 0 0 26px color-mix(in srgb, var(--t2) 60%, transparent); }
.card.custom .inner { background: radial-gradient(110% 65% at 50% 36%, color-mix(in srgb, var(--t2) 45%, transparent), transparent 72%), linear-gradient(172deg, var(--t1), color-mix(in srgb, var(--t1) 30%, #000) 70%, #030308); }
.card.custom .rtag { background: linear-gradient(90deg, var(--t2), #fff); }
.edtag.ed-custom { background: linear-gradient(90deg, var(--t2), #ffffff, var(--t2)); }
.card .photo.art { left: 6%; right: 6%; bottom: 27%; top: 30cqw; height: auto; }
.card .photo.art img { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 3cqw; border: .8cqw solid color-mix(in srgb, var(--t2) 70%, #fff); }
.fxl { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.fxl i { position: absolute; bottom: -10cqw; width: 4cqw; height: 4cqw; animation: fxUp 3.5s linear infinite; opacity: .9; }
.fxl i:nth-child(1) { left: 8%; animation-delay: 0s; } .fxl i:nth-child(2) { left: 25%; animation-delay: .6s; } .fxl i:nth-child(3) { left: 45%; animation-delay: 1.2s; }
.fxl i:nth-child(4) { left: 62%; animation-delay: 1.8s; } .fxl i:nth-child(5) { left: 80%; animation-delay: 2.4s; } .fxl i:nth-child(6) { left: 92%; animation-delay: 3s; }
@keyframes fxUp { to { transform: translateY(-160cqw) rotate(200deg); opacity: 0; } }
.fx-sparkle i { background: radial-gradient(circle, #fff, var(--t2) 40%, transparent 70%); border-radius: 50%; }
.fx-flames i { width: 6cqw; height: 9cqw; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff3b0, #ffb627 40%, #ff3b00 70%, transparent 72%); animation-duration: 2s; filter: blur(.3cqw); }
.fx-lightning { animation: fxFlash 3s infinite; } .fx-lightning i { display: none; }
@keyframes fxFlash { 0%, 88%, 100% { background: transparent; } 90% { background: #ffffff55; } 92% { background: transparent; } 94% { background: #ffffff33; } }
.fx-snow i { background: #fff; border-radius: 50%; width: 2.5cqw; height: 2.5cqw; animation-name: fxDown; top: -6cqw; bottom: auto; animation-duration: 4.5s; }
@keyframes fxDown { to { transform: translate(6cqw, 160cqw); } }
.fx-galaxy { background: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 50% 60%, #fff, transparent), radial-gradient(60% 40% at 30% 30%, #b45cff44, transparent), radial-gradient(60% 40% at 80% 70%, #3fa9ff33, transparent); }
.fx-galaxy i { background: #fff; border-radius: 50%; width: 1.5cqw; height: 1.5cqw; animation: twinkle 2s ease-in-out infinite; bottom: auto; top: calc(var(--k, 1) * 10%); }
.fx-galaxy i:nth-child(2) { top: 40%; } .fx-galaxy i:nth-child(3) { top: 20%; } .fx-galaxy i:nth-child(4) { top: 55%; } .fx-galaxy i:nth-child(5) { top: 8%; } .fx-galaxy i:nth-child(6) { top: 32%; }
@keyframes twinkle { 50% { opacity: .1; transform: scale(.5); } }
.fx-bubbles i { border-radius: 50%; border: .5cqw solid #ffffffaa; background: radial-gradient(circle at 30% 30%, #ffffffaa, transparent 60%); }
.fx-hearts i { background: #ff5c8a; transform: rotate(45deg); border-radius: 0 0 0 0; clip-path: path("M 2 1 C 2 0 4 0 4 1.4 C 4 2.6 2 3.6 2 4 C 2 3.6 0 2.6 0 1.4 C 0 0 2 0 2 1 Z"); width: 4cqw; height: 4cqw; }
.fx-matrix { background: repeating-linear-gradient(90deg, transparent 0 6cqw, #00ff6a18 6cqw 7cqw); animation: matrix 2s linear infinite; } .fx-matrix i { display: none; }
@keyframes matrix { to { background-position: 0 40cqw; } }
@media (max-width: 560px) { .coin-shop { grid-template-columns: repeat(3, 1fr); gap: 6px; } .coin-offer b { font-size: 13px; } .co-price { padding: 3px 10px; font-size: 13px; } }

/* ---------- Clutch Pass ---------- */
.pass-panel { padding: 16px; border-radius: 22px; margin-bottom: 16px; border: 1px solid #7dfcff55;
  background: radial-gradient(400px 160px at 0% 0%, #3fa9ff33, transparent), radial-gradient(400px 160px at 100% 100%, #b45cff33, transparent), var(--panel); }
.pass-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pass-top h3 { margin: 0 0 6px; } .pass-top h3 small { color: var(--dim); font-size: 12px; font-weight: 700; margin-left: 6px; }
.pass-logo { width: 70px; height: 70px; border-radius: 18px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #3fa9ff, #b45cff); box-shadow: 0 0 22px #7c5cff66; }
.pass-logo b { font-family: var(--display); font-size: 17px; line-height: 1; } .pass-logo span { font-family: var(--display); font-size: 24px; line-height: 1; color: #ffe066; }
.pass-bar { position: relative; height: 22px; border-radius: 99px; background: #0008; overflow: hidden; margin-bottom: 6px; border: 1px solid #ffffff22; }
.pass-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3fa9ff, #b45cff, #ffe066); transition: width .6s; }
.pass-bar span { position: relative; display: block; text-align: center; line-height: 22px; font-size: 12px; font-weight: 900; text-shadow: 0 1px 3px #000; }
.pass-next { margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; background: #ffffff0a; font-size: 12px; color: var(--dim); display: flex; gap: 6px; align-items: center; }
.pass-next b { color: #fff; }
.pass-track { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 6px; scroll-behavior: smooth; }
.pass-tier { flex: none; width: 118px; display: grid; gap: 6px; opacity: .55; }
.pass-tier.open { opacity: 1; } .pass-tier.next { opacity: .85; }
.pass-num { text-align: center; font-family: var(--display); font-size: 20px; color: var(--dim); } .pass-tier.open .pass-num { color: #7dfcff; }
.pass-rw { min-height: 92px; padding: 8px 6px; border-radius: 14px; background: #ffffff0a; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 800; }
.pass-rw.plus { background: linear-gradient(180deg, #ffd23f18, #ffffff06); border-color: #ffd23f44; }
.pass-rw.ready { border-color: #8dffc0; box-shadow: 0 0 12px #1fd07f44; } .pass-rw.plus.ready { border-color: #ffd23f; box-shadow: 0 0 12px #ffd23f55; }
.pass-rw.got { opacity: .55; }
.pass-card { display: block; width: 62px; }
.pass-lock { color: var(--dim); font-size: 11px; display: flex; gap: 4px; align-items: center; }

/* ---------- update screen + Haunted season ---------- */
#updFull { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; text-align: center; padding: 20px;
  background: radial-gradient(600px 400px at 50% 40%, #3a1b7a, #06070d 70%); }
.uf-kicker { font-weight: 900; letter-spacing: .2em; color: var(--gold); font-size: 13px; }
#updFull h1 { font-family: var(--display); font-size: clamp(44px, 10vw, 96px); line-height: .95; margin: 10px 0; }
#updFull h1 span { background: linear-gradient(90deg, #7a2cff, #39ff88, #ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
#updFull p { color: var(--dim); margin: 0 0 20px; } #updFull .btn { height: 56px; font-size: 18px; padding: 0 36px; }
.wn-list { display: grid; gap: 10px; max-height: 55vh; overflow-y: auto; } .wn-list > div { display: flex; gap: 10px; align-items: flex-start; } .wn-list .ic { color: var(--gold); margin-top: 2px; }
.wn-warn { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #ff3b6b22; border: 1px solid #ff3b6b66; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.card.ed-haunted .inner, .card.ed-phantom .inner { background: radial-gradient(110% 60% at 50% 30%, #39ff8833, transparent 70%), linear-gradient(175deg, #2a0f4a, #0d0418 70%); }
.card.ed-haunted .face, .card.ed-phantom .face { background: conic-gradient(from var(--spin, 0deg), #7a2cff, #39ff88, #ff8a00, #7a2cff); box-shadow: 0 12px 28px -10px #000d, 0 0 26px #7a2cffaa; }
.edtag.ed-haunted { background: linear-gradient(90deg, #ff8a00, #ffe066, #ff8a00); } .edtag.ed-phantom { background: linear-gradient(90deg, #39ff88, #fff, #39ff88); }
.spook { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.spook .fog { position: absolute; left: -20%; right: -20%; bottom: 18%; height: 30cqw; background: radial-gradient(50% 50% at 30% 50%, #c9b3ff33, transparent 70%), radial-gradient(40% 50% at 70% 50%, #b3ffd033, transparent 70%); animation: fogMove 6s ease-in-out infinite alternate; }
@keyframes fogMove { to { transform: translateX(12%); } }
.spook .bat { position: absolute; width: 8cqw; height: 4cqw; background: #0a0010; clip-path: polygon(0 20%, 20% 60%, 35% 30%, 50% 60%, 65% 30%, 80% 60%, 100% 20%, 90% 90%, 50% 70%, 10% 90%); animation: batFly 5s linear infinite; top: 34cqw; left: -10cqw; }
.spook .b2 { top: 44cqw; animation-delay: 1.7s; transform: scale(.7); } .spook .b3 { top: 28cqw; animation-delay: 3.3s; }
@keyframes batFly { 0% { left: -10cqw; } 50% { transform: translateY(-4cqw); } 100% { left: 110cqw; } }
.spook .ghost { position: absolute; right: 6%; top: 32cqw; width: 14cqw; height: 18cqw; border-radius: 50% 50% 20% 20%; background: radial-gradient(circle at 35% 35%, #111 8%, transparent 9%), radial-gradient(circle at 65% 35%, #111 8%, transparent 9%), #ffffffcc; filter: drop-shadow(0 0 3cqw #39ff88); animation: ghostFloat 3s ease-in-out infinite; opacity: .85; }
@keyframes ghostFloat { 50% { transform: translateY(-4cqw); opacity: .5; } }
.pass-panel.th-haunted { border-color: #7a2cff88; background: radial-gradient(400px 160px at 0% 0%, #7a2cff44, transparent), radial-gradient(400px 160px at 100% 100%, #39ff8822, transparent), var(--panel); }
.season-intro .si-kicker { font-weight: 900; letter-spacing: .2em; color: #39ff88; font-size: 12px; }
.season-intro .si-title { font-family: var(--display); font-size: 44px; padding: 0; margin: 4px 0 12px; background: linear-gradient(90deg, #7a2cff, #39ff88, #ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.si-cards { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; } .si-cards > div { width: 100px; }

/* ---------- chat pictures ---------- */
.ch-img { position: relative; max-width: 220px; margin-top: 4px; border-radius: 12px; overflow: hidden; cursor: pointer; border: 1px solid var(--line2); }
.ch-img img { display: block; width: 100%; max-height: 260px; object-fit: cover; transition: filter .25s; }
.ch-img span { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 13px; background: #0006; }
.ch-img.blur img { filter: blur(18px) brightness(.8); } .ch-img.blur span { display: flex; }
.img-view { position: fixed; inset: 0; z-index: 9800; background: #000e; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.img-view img { max-width: 100%; max-height: 90vh; border-radius: 12px; } .img-view .x { position: absolute; top: 16px; right: 16px; }
.wn-warn.ok { background: #1fd07f22; border-color: #1fd07f66; }

/* ---------- chat tab, labels, bought colors, 99¢ deals, claim all ---------- */
#chatPanel.in-page { position: relative; right: auto; bottom: auto; left: auto; width: 100%; height: min(70vh, 680px); z-index: 1; display: flex; }
#chatPanel.in-page #chClose { display: none; }
#chatFab.hidden { display: none; }
@media (max-width: 420px) { #tabs button { font-size: 8.5px; } #tabs button .ic { width: 19px; height: 19px; } }
.bdg.txtb { width: auto; padding: 0 5px; font-size: 9px; font-weight: 900; letter-spacing: .05em; border: 0; }
.bdg.tb-owner { background: linear-gradient(135deg, #fff3b0, #ffd23f, #ff8a1f); color: #2a1400; box-shadow: 0 0 8px #ffd23f88; }
.bdg.tb-admin { background: linear-gradient(135deg, #ff6b8a, #ff3b6b); color: #fff; }
.nc-red { color: #ff4d4d; text-shadow: 0 0 10px #ff4d4d55; } .nc-orange { color: #ff9a3d; text-shadow: 0 0 10px #ff9a3d55; } .nc-yellow { color: #ffe44d; text-shadow: 0 0 10px #ffe44d55; }
.nc-green { color: #4dff88; text-shadow: 0 0 10px #4dff8855; } .nc-blue { color: #4db8ff; text-shadow: 0 0 10px #4db8ff55; } .nc-purple { color: #b77dff; text-shadow: 0 0 10px #b77dff55; } .nc-pink { color: #ff7ad9; text-shadow: 0 0 10px #ff7ad955; }
.sty.buyc { border-style: dashed; } .sty.buyc small { color: var(--gold); font-weight: 800; }
.deal99 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
@media (max-width: 640px) { .deal99 { grid-template-columns: repeat(2, 1fr); } }
.d99 { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 18px; text-align: center; background: linear-gradient(180deg, #1b2a4a, var(--panel)); border: 1px solid #3fa9ff44; transition: transform .15s; }
.d99:hover { transform: translateY(-2px); border-color: #3fa9ff; }
.d99-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #3fa9ff22; font-size: 22px; } .d99-ic .ic { width: 22px; height: 22px; color: #7dfcff; }
.d99 b { font-size: 14px; } .d99 small { color: var(--dim); font-size: 11px; min-height: 28px; }
.claim-all { height: 50px; font-size: 16px; margin-bottom: 14px; }

/* ---------- Premium tab ---------- */
#tabs button[data-tab="premium"] { color: #ffd23f; } #tabs button[data-tab="premium"] .ic { color: #ffd23f; filter: drop-shadow(0 0 6px #ffd23f88); }
@media (max-width: 520px) { .tabs-in { grid-auto-columns: minmax(52px, 1fr); overflow-x: auto; scrollbar-width: none; } .tabs-in::-webkit-scrollbar { display: none; } #tabs button span { font-size: 8.5px; } }
.prem-link { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; border-radius: 20px; margin-bottom: 12px; border: 1px solid #ffd23f66;
  background: radial-gradient(300px 140px at 0% 50%, #ffd23f33, transparent), linear-gradient(135deg, #2a1f05, #141828); }
.prem-link b { display: block; font-size: 17px; } .prem-link small { color: var(--dim); font-size: 13px; } .prem-link > .ic { color: var(--gold); }
.plus-banner.big { align-items: flex-start; padding: 18px; } .plus-banner.big h3 { font-size: 20px; margin-bottom: 10px; }
.perk-list.two { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.deal99.three { grid-template-columns: repeat(3, 1fr); } @media (max-width: 640px) { .deal99.three { grid-template-columns: 1fr; } }
.d99.bundle { position: relative; background: linear-gradient(180deg, #3a1b5a, var(--panel)); border-color: #b45cff55; } .d99.bundle:hover { border-color: #b45cff; }
.d99 .tag { position: absolute; top: -9px; font-size: 10px; font-weight: 900; padding: 2px 8px; border-radius: 99px; background: #ff3b6b; color: #fff; }

/* ---------- Early Access + Club Bank ---------- */
#tabs button[data-tab="early"] { color: #ffd23f; } #tabs button[data-tab="early"] .ic { color: #ffd23f; filter: drop-shadow(0 0 6px #ffd23f88); }
.ea-head { margin-bottom: 14px; } .ea-badge { display: inline-flex; gap: 6px; align-items: center; font-weight: 900; font-size: 12px; letter-spacing: .12em; padding: 4px 10px; border-radius: 99px; background: linear-gradient(135deg, #fff3b0, #ffd23f); color: #2a1a00; }
.ea-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; margin-bottom: 12px; border: 1px solid #ffd23f55; background: radial-gradient(300px 140px at 0% 0%, #ffd23f22, transparent), var(--panel); }
.ea-card h2 { margin: 2px 0 4px; font-size: 22px; } .ea-card p { margin: 0; color: var(--dim); font-size: 13px; }
.ea-kicker { font-size: 11px; font-weight: 900; letter-spacing: .15em; color: var(--gold); }
.ea-card.haunted-card { border-color: #7a2cff88; background: radial-gradient(300px 140px at 0% 0%, #7a2cff44, transparent), radial-gradient(300px 140px at 100% 100%, #39ff8822, transparent), var(--panel); }
.ea-card.haunted-card.on { box-shadow: 0 0 0 2px #39ff88, 0 0 24px #7a2cff66; }
.ea-switch { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: #ffffff14; border: 1px solid var(--line2); font-weight: 800; }
.ea-switch i { width: 44px; height: 26px; border-radius: 99px; background: #555a73; position: relative; transition: background .2s; }
.ea-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.ea-switch.on i { background: linear-gradient(90deg, #7a2cff, #39ff88); } .ea-switch.on i::after { left: 21px; }
.ea-locked { padding: 26px; }
.bk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px; border-radius: 20px; margin-bottom: 12px; border: 1px solid #ffd23f66; background: linear-gradient(135deg, #2a1f05, #141828); }
.bk-top small { font-weight: 900; letter-spacing: .15em; color: var(--dim); font-size: 11px; }
.bk-bal { display: block; font-family: var(--display); font-size: 44px; line-height: 1; color: #ffe066; }
.bk-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .bk-flag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: #ffffff14; display: inline-flex; gap: 4px; align-items: center; }
.bk-flag.green { background: #1fd07f22; color: #8dffc0; } .bk-flag.red { background: #ff3b6b33; color: #ff8aa5; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 640px) { .bk-grid { grid-template-columns: 1fr; } }
#bankBox .panel { margin-bottom: 12px; } #bankBox h3 { margin: 0 0 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } #bankBox h3 small { font-size: 12px; font-weight: 600; }
#bankBox .small { font-size: 12px; } #bankBox input { min-width: 0; }
.bk-invs { display: grid; gap: 6px; margin-top: 10px; } .bk-inv { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #ffffff08; } .bk-inv span { color: var(--dim); font-size: 12px; flex: 1; }
.bk-log { display: grid; gap: 4px; max-height: 300px; overflow-y: auto; } .bk-l { display: grid; grid-template-columns: 110px 110px 1fr; gap: 8px; font-size: 12px; padding: 5px 8px; border-radius: 8px; background: #ffffff06; }
.bk-l b { text-align: right; } .bk-l small { color: var(--dim); } .bk-l.k-deposit b, .bk-l.k-interest b, .bk-l.k-payout b { color: #8dffc0; } .bk-l.k-withdraw b, .bk-l.k-upgrade b, .bk-l.k-invest b { color: #ff8aa5; } .bk-l.k-failed span { color: #ff8aa5; }
@media (max-width: 560px) { .bk-l { grid-template-columns: 1fr auto; } .bk-l small { grid-column: 1 / -1; } }
.d99.snack { background: linear-gradient(180deg, #0f3a2a, var(--panel)); border-color: #1fd07f55; } .d99.snack:hover { border-color: #1fd07f; }
.cl-scroll { max-height: 60vh; overflow-y: auto; display: grid; gap: 14px; } .cl-upd-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; } .cl-upd-h b { font-size: 16px; color: var(--gold); }
.cl-scroll .wn-list { max-height: none; }

/* ================= SEASON 2: HALLOWEEN / FALL THEME ================= */
body.theme-haunted { --gold: #ff8a1f; --bg: #0a0510; --panel: rgba(34, 18, 40, .74); --line: rgba(255, 138, 31, .12); --line2: rgba(255, 138, 31, .22); }
body.theme-haunted #bg { background: radial-gradient(1200px 600px at 50% -20%, #3a1450 0%, transparent 60%), radial-gradient(900px 500px at 50% 120%, #4a1a05 0%, transparent 60%), #0a0510; }
body.theme-haunted #bg .o1 { background: #ff6a00; opacity: .28; }
body.theme-haunted #bg .o2 { background: #7a2cff; opacity: .34; }
body.theme-haunted #bg .o3 { background: #39ff88; opacity: .12; }
body.theme-haunted #top { background: linear-gradient(180deg, #120616f2, #120616cc); border-bottom-color: #ff8a1f33; }
body.theme-haunted .logo { background: linear-gradient(100deg, #ffe0a3, #ff8a1f 30%, #ff5a1f 55%, #b45cff 85%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 16px #ff6a0066); }
body.theme-haunted .tabs-in { background: rgba(24, 10, 28, .9); border-color: #ff8a1f44; box-shadow: 0 20px 50px -10px #000c, 0 0 24px #ff6a0022; }
body.theme-haunted #tabs button.on .ic { color: #ff8a1f; }
body.theme-haunted .panel, body.theme-haunted .mk-item, body.theme-haunted .game-card { border-color: #ff8a1f22; }
body.theme-haunted .btn.gold { background: linear-gradient(135deg, #ffb45a, #ff8a1f 50%, #e8501b); color: #2a0e00; box-shadow: 0 6px 20px -6px #ff6a00aa; }
body.theme-haunted .btn.hot { background: linear-gradient(135deg, #b45cff, #7a2cff); }
body.theme-haunted h1.page { background: linear-gradient(90deg, #fff, #ffb45a 60%, #b45cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.theme-haunted h2.sec .ic, body.theme-haunted .sec .ic { color: #ff8a1f; }
body.theme-haunted .pill { border-color: #ff8a1f33; }
#fallFx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
body.theme-haunted #view { position: relative; z-index: 1; }
#fallFx .moon { position: absolute; right: 6%; top: 90px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #fff6d6, #ffd98a 45%, #e0a24a 75%); box-shadow: 0 0 60px #ffcf7a88, 0 0 140px #ff8a1f44; opacity: .55; }
#fallFx .moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 60% 60%, #0000 55%, #c47a2a33 56%), radial-gradient(circle at 30% 65%, #b8742a44 8%, transparent 9%), radial-gradient(circle at 62% 30%, #b8742a33 6%, transparent 7%); }
#fallFx .leaf { position: absolute; top: -40px; width: calc(18px * var(--s)); height: calc(18px * var(--s)); background: var(--c); border-radius: 0 80% 0 80%; opacity: .55; animation-name: leafFall, leafSway; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; animation-direction: normal, alternate; }
#fallFx .leaf::after { content: ""; position: absolute; left: 50%; top: 10%; width: 1px; height: 80%; background: #0003; transform: rotate(45deg); }
@keyframes leafFall { to { top: 105vh; } }
@keyframes leafSway { from { transform: translateX(-30px) rotate(-40deg); } to { transform: translateX(30px) rotate(60deg); } }
#fallFx .bat-fly { position: absolute; width: 60px; animation: batAcross 16s linear infinite; opacity: .8; }
#fallFx .bat-fly svg { width: 100%; animation: batFlap .25s ease-in-out infinite alternate; }
#fallFx .f1 { top: 18%; animation-delay: -3s; } #fallFx .f2 { top: 34%; width: 40px; animation-duration: 22s; animation-delay: -12s; }
@keyframes batAcross { 0% { left: -80px; transform: translateY(0); } 50% { transform: translateY(-40px); } 100% { left: 110vw; transform: translateY(10px); } }
@keyframes batFlap { to { transform: scaleY(.55); } }
#fallFx .fog { position: absolute; left: -20%; right: -20%; bottom: 0; height: 180px; background: radial-gradient(40% 70% at 25% 100%, #b49ad833, transparent 70%), radial-gradient(40% 70% at 70% 100%, #ffb45a22, transparent 70%); animation: fogMove 10s ease-in-out infinite alternate; }
@media (max-width: 560px) { #fallFx .moon { width: 70px; height: 70px; top: 70px; } #fallFx .f2 { display: none; } }
@media (prefers-reduced-motion: reduce) { #fallFx .leaf, #fallFx .bat-fly { animation: none; display: none; } }

/* ================= SEASON 2 CONTENT ================= */
/* Monster rarity + special cards */
.card.r-N { --rc: #39ff88; }
.card.r-N .face { background: conic-gradient(from var(--spin, 0deg), #39ff88, #7a2cff, #ff8a1f, #111, #39ff88); animation: spinBorder 2.5s linear infinite; box-shadow: 0 12px 28px -10px #000d, 0 0 32px #39ff88aa; }
.card.r-N .inner { background: radial-gradient(110% 60% at 50% 30%, #39ff8840, transparent 70%), linear-gradient(175deg, #0f2a14, #050806 75%); }
.card.r-N .photo img { filter: drop-shadow(0 0 3cqw #39ff88) saturate(.8) contrast(1.15); }
.card.mon-zombie .photo img { filter: drop-shadow(0 0 3cqw #39ff88) hue-rotate(70deg) saturate(.7); }
.card.mon-vampire .photo img { filter: drop-shadow(0 0 3cqw #ff0033) saturate(.6) brightness(.9); }
.card.mon-skeleton .photo img { filter: grayscale(1) contrast(1.4) drop-shadow(0 0 3cqw #fff); }
.card.mon-mummy .photo img { filter: sepia(.8) drop-shadow(0 0 3cqw #e8dcc0); }
.card.r-N .rtag { background: linear-gradient(90deg, #39ff88, #7a2cff); color: #fff; }
.edtag.ed-monster { background: linear-gradient(90deg, #39ff88, #fff, #39ff88); }
.edtag.ed-hourly { background: linear-gradient(90deg, #ffd23f, #fff, #ffd23f); }
.card.ed-hourly .face { background: conic-gradient(from var(--spin, 0deg), #ffd23f, #111, #ffd23f, #fff, #ffd23f); box-shadow: 0 12px 28px -10px #000d, 0 0 26px #ffd23faa; }
.card.ed-hourly .inner { background: radial-gradient(110% 60% at 50% 30%, #ffd23f33, transparent 70%), linear-gradient(175deg, #2a2005, #070605 75%); }
.edtag.ed-costume { background: linear-gradient(90deg, #ff8a1f, #ffe066, #ff8a1f); }
.card.ed-costume .inner { background: radial-gradient(110% 60% at 50% 30%, #ff8a1f44, transparent 70%), linear-gradient(175deg, #3a1450, #0d0418 75%); }
.edtag.ed-trophy2 { background: linear-gradient(90deg, #ffd23f, #fff, #ff8a1f); } .edtag.ed-hnight { background: linear-gradient(90deg, #ff8a1f, #111, #ff8a1f); color: #fff; }
.card.ed-hnight .inner, .card.ed-trophy2 .inner { background: radial-gradient(110% 60% at 50% 30%, #ff8a1f44, transparent 70%), linear-gradient(175deg, #1a0a2a, #050208 75%); }
.s2ov { position: absolute; z-index: 3; pointer-events: none; left: 50%; transform: translateX(-50%); }
.s2ov.top { top: 20cqw; width: 52cqw; } .s2ov.face { top: 42cqw; width: 44cqw; opacity: .9; } .s2ov svg { width: 100%; height: auto; display: block; }
.s2ov.ov-vampire { top: auto; bottom: 25%; width: 90cqw; } .s2ov.ov-mummy { top: 36cqw; width: 70cqw; opacity: .7; }
/* Haunted Pack */
.pack.haunted-pack { background: linear-gradient(170deg, #3a1450, #1a0620 60%, #ff6a0033); }
.haunted-pack .hp-moon { position: absolute; top: 14%; right: 14%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #fff6d6, #ffcf7a 60%, #e0a24a); box-shadow: 0 0 18px #ffcf7a; }
.haunted-pack .hp-bats i { position: absolute; width: 16%; height: 6%; background: #0a0010; clip-path: polygon(0 20%, 20% 60%, 35% 30%, 50% 60%, 65% 30%, 80% 60%, 100% 20%, 90% 90%, 50% 70%, 10% 90%); animation: batFlap .3s ease-in-out infinite alternate; }
.haunted-pack .hp-bats i:nth-child(1) { top: 24%; left: 14%; } .haunted-pack .hp-bats i:nth-child(2) { top: 32%; left: 40%; transform: scale(.7); } .haunted-pack .hp-bats i:nth-child(3) { top: 18%; left: 52%; transform: scale(.55); }
.haunted-pack .hp-pumpkins { position: absolute; left: 0; right: 0; bottom: 20%; display: flex; justify-content: center; align-items: flex-end; gap: 2%; }
.haunted-pack .hp-pumpkins span { display: block; aspect-ratio: 1.15; border-radius: 45%; background: radial-gradient(circle at 35% 30%, #ffb45a, #ff8a1f 50%, #c24a0a); box-shadow: inset 0 -3px 0 #0003, 0 0 12px #ff6a0088; position: relative; }
.haunted-pack .hp-pumpkins span::before { content: ""; position: absolute; left: 25%; right: 25%; top: 30%; height: 35%; background: linear-gradient(90deg, #2a0e00 20%, transparent 20% 80%, #2a0e00 80%); clip-path: polygon(0 0, 30% 40%, 0 50%, 100% 50%, 70% 40%, 100% 0, 100% 60%, 50% 100%, 0 60%); opacity: .9; }
.haunted-pack .pk1 { width: 26%; } .haunted-pack .pk2 { width: 36%; } .haunted-pack .pk3 { width: 22%; }
.haunted-pack .hp-web { position: absolute; top: 0; left: 0; width: 34%; aspect-ratio: 1; background: repeating-radial-gradient(circle at 0 0, transparent 0 10px, #ffffff22 10px 11px), repeating-conic-gradient(from 0deg at 0 0, transparent 0 14deg, #ffffff22 14deg 15deg); opacity: .6; }
.haunted-pack .pk-brand { color: #ffe0a3; text-shadow: 0 0 10px #ff6a00; }
/* Hourly Icon box */
.hr-box { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 22px; margin-bottom: 14px; border: 2px solid #ffd23f; background: radial-gradient(400px 200px at 0% 50%, #ffd23f33, transparent), linear-gradient(135deg, #2a2005, #120616); box-shadow: 0 0 30px #ffd23f33; }
.hr-box.soon { border-style: dashed; box-shadow: none; }
.hr-card { width: 140px; flex: none; position: relative; } .hr-q { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 64px; color: #ffd23f; text-shadow: 0 0 20px #000; }
.hr-kicker { font-weight: 900; font-size: 12px; letter-spacing: .1em; color: #ffd23f; display: flex; gap: 6px; align-items: center; }
.hr-box h2 { margin: 4px 0; font-size: 26px; } .hr-box p { margin: 0 0 10px; color: var(--dim); font-size: 13px; }
@media (max-width: 560px) { .hr-box { flex-direction: column; text-align: center; } .hr-kicker { justify-content: center; } }
/* Trick-or-Treat */
.tot-box { margin-bottom: 16px; } .tot-row { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; scroll-behavior: smooth; }
.tot-door { flex: none; width: 84px; min-height: 104px; border-radius: 16px 16px 8px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #ff8a1f44; background: linear-gradient(180deg, #3a1450, #1a0620); color: var(--dim); }
.tot-door b { font-family: var(--display); font-size: 28px; color: #ffb45a; } .tot-door small { font-size: 10px; line-height: 1.3; color: #fff; }
.tot-door.ready { border-color: #ff8a1f; box-shadow: 0 0 16px #ff8a1f88; animation: totPulse 1.4s ease-in-out infinite; color: #fff; } .tot-door.ready span { font-weight: 900; font-size: 12px; color: #ffd23f; }
@keyframes totPulse { 50% { transform: translateY(-3px); } }
.tot-door.open { background: linear-gradient(180deg, #2a1a05, #140a02); opacity: .85; } .tot-door.big { width: 110px; border-color: #39ff88; }
/* Halloween Night */
.hn-box { text-align: center; padding: 18px; border-radius: 22px; margin-bottom: 14px; border: 2px solid #ff8a1f; background: radial-gradient(500px 200px at 50% 0%, #ff6a0055, transparent), linear-gradient(180deg, #2a0a3a, #0a0510); }
.hn-kicker { font-weight: 900; letter-spacing: .15em; font-size: 12px; color: #39ff88; } .hn-box h2 { margin: 6px 0 12px; }
/* Ghost Hunt */
#ghostFx { position: fixed; z-index: 70; width: 64px; height: 76px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 0 14px #b49ad8); animation: ghostFloat 2.2s ease-in-out infinite, ghostIn .5s ease-out; }
#ghostFx svg { width: 100%; height: 100%; } #ghostFx.caught { animation: ghostCaught .5s forwards; } #ghostFx.gone { animation: ghostOut .5s forwards; }
@keyframes ghostIn { from { opacity: 0; transform: scale(.4); } } @keyframes ghostCaught { to { transform: scale(1.8); opacity: 0; } } @keyframes ghostOut { to { opacity: 0; transform: translateY(-30px); } }
/* Pumpkin King */
.pk-arena { position: relative; text-align: center; padding: 20px; border-radius: 22px; border: 1px solid #ff8a1f55; background: radial-gradient(500px 240px at 50% 30%, #ff6a0033, transparent), #120616; overflow: hidden; }
.pk-king { width: min(300px, 70%); margin: 0 auto 12px; filter: drop-shadow(0 0 30px #ff6a00aa); animation: ghostFloat 3s ease-in-out infinite; } .pk-king svg { width: 100%; }
.pk-king.hit { animation: bossShake .35s; } .pk-arena.dead .pk-king { filter: grayscale(1) brightness(.5); }
.pk-hp i { background: linear-gradient(90deg, #ff6a00, #ffd23f); box-shadow: 0 0 16px #ff6a00; }
/* Haunted Mansion */
.mansion-hero { text-align: center; padding: 30px; border-radius: 22px; border: 1px solid #7a2cff66; background: radial-gradient(400px 200px at 50% 0%, #7a2cff44, transparent), #120616; }
.hm-floor { padding: 20px; border-radius: 22px; background: linear-gradient(180deg, #1a0a2a, #0a0510); border: 1px solid #7a2cff55; }
.hm-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 520px; margin: 0 auto; }
.hm-door { position: relative; aspect-ratio: .6; border-radius: 60px 60px 8px 8px; border: 3px solid #5a3a1a; background: linear-gradient(180deg, #4a2a10, #2a1405); transition: transform .2s; display: grid; place-items: center; }
.hm-door:not(:disabled):hover { transform: translateY(-4px); box-shadow: 0 0 20px #ff8a1f66; }
.hm-door i { position: absolute; right: 16%; top: 55%; width: 10%; aspect-ratio: 1; border-radius: 50%; background: #ffd23f; }
.hm-door span { color: #ffb45a; opacity: .5; } .hm-door.opening { transform: perspective(400px) rotateY(-50deg); transition: transform .6s; } .hm-door.ghost { background: #f4f0ff; }
.hm-loot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; } .hm-loot span { font-weight: 800; } .hm-loot .btn { margin-left: auto; }
.hm-log { margin-top: 10px; font-size: 13px; color: var(--dim); display: grid; gap: 4px; }
#jumpFx { position: fixed; inset: 0; z-index: 9900; display: grid; place-items: center; background: radial-gradient(circle, #300, #000); animation: jumpIn .15s ease-out; }
#jumpFx svg { width: min(60vw, 420px); animation: jumpGrow .5s ease-out; } #jumpFx b { position: absolute; bottom: 12%; font-family: var(--display); font-size: 90px; color: #fff; text-shadow: 0 0 30px #f00; }
#jumpFx.out { opacity: 0; transition: opacity .4s; } @keyframes jumpIn { from { opacity: 0; } } @keyframes jumpGrow { from { transform: scale(.3); } to { transform: scale(1.1); } }
/* Monster reveal */
#monFx { position: fixed; inset: 0; z-index: 9500; overflow: hidden; background: #020403; cursor: pointer; }
#monFx .mf-sky { position: absolute; inset: 0; background: radial-gradient(600px 400px at 50% 30%, #0f3a1a, transparent 70%), radial-gradient(400px 300px at 50% 100%, #2a0a3a, transparent); }
#monFx .mf-flash { position: absolute; inset: 0; background: #d8ffe8; opacity: 0; } #monFx .mf-flash.go { animation: mfFlash .6s ease-out; }
@keyframes mfFlash { 0%, 30% { opacity: .9; } 15% { opacity: .1; } 100% { opacity: 0; } }
#monFx .mf-eyes { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); display: flex; gap: 60px; opacity: 0; transition: opacity 1s; } #monFx .mf-eyes.show { opacity: 1; }
#monFx .mf-eyes i { width: 34px; height: 18px; border-radius: 50%; background: #39ff88; box-shadow: 0 0 30px #39ff88, 0 0 60px #39ff88; }
#monFx .mf-text { position: absolute; top: 16%; width: 100%; text-align: center; font-family: var(--display); font-size: clamp(22px, 5vw, 40px); color: #9fe8b8; opacity: 0; transition: opacity .6s; letter-spacing: .1em; } #monFx .mf-text.show { opacity: 1; }
#monFx .mf-title { position: absolute; top: 5%; width: 100%; text-align: center; font-family: var(--display); font-size: clamp(56px, 14vw, 130px); color: #39ff88; text-shadow: 0 0 40px #39ff88, 0 6px 0 #000; opacity: 0; transform: scale(2); transition: all .5s cubic-bezier(.2, 1.4, .4, 1); } #monFx .mf-title.show { opacity: 1; transform: scale(1); }
#monFx .mf-card { position: absolute; left: 50%; top: 58%; width: min(260px, 58vw); transform: translate(-50%, 120vh); transition: transform 1s cubic-bezier(.2, 1.2, .3, 1); } #monFx .mf-card.show { transform: translate(-50%, -45%); }
#monFx .mf-name { position: absolute; bottom: 6%; width: 100%; text-align: center; font-weight: 900; font-size: 20px; opacity: 0; transition: opacity .6s; } #monFx .mf-name.show { opacity: 1; }
#monFx .otap { position: absolute; bottom: 14px; right: 16px; color: #9fe8b888; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
/* ranked + intro list */
.s2-rank { margin-bottom: 14px; border-color: #ffd23f44; } .s2-rank h3 { margin: 0 0 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .s2-rank h3 small { font-size: 12px; font-weight: 600; }
.si-list { text-align: left; display: grid; gap: 8px; margin: 6px 0 10px; font-size: 13px; } .si-list > div { display: flex; gap: 8px; } .si-list .ic { color: #ff8a1f; flex: none; margin-top: 2px; }
/* scarier Monsters: claw marks + glowing eyes aura */
.card.r-N .inner::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .75;
  background: linear-gradient(118deg, transparent 58%, #39ff88cc 58.6%, transparent 59.4%), linear-gradient(118deg, transparent 63%, #39ff88cc 63.6%, transparent 64.4%), linear-gradient(118deg, transparent 68%, #39ff88cc 68.6%, transparent 69.4%);
  -webkit-mask: linear-gradient(180deg, transparent 18%, #000 30%, #000 62%, transparent 72%); mask: linear-gradient(180deg, transparent 18%, #000 30%, #000 62%, transparent 72%); filter: drop-shadow(0 0 4px #39ff88); }
.card.r-N .photo { animation: monPulse 2.4s ease-in-out infinite; } @keyframes monPulse { 50% { filter: drop-shadow(0 0 5cqw #39ff88); } }
/* Night Terrors: Graveyard, Spectral, Blood Moon */
.edtag.ed-graveyard { background: linear-gradient(90deg, #8a9aa8, #fff, #8a9aa8); }
.card.ed-graveyard .inner { background: radial-gradient(120% 40% at 50% 100%, #c8d4dc55, transparent 70%), linear-gradient(175deg, #1c2430, #06080b 75%); }
.card.ed-graveyard .photo img { filter: grayscale(.6) contrast(1.2) drop-shadow(0 0 3cqw #c8d4dc); }
.card.ed-graveyard .face { background: conic-gradient(from var(--spin, 0deg), #5a6a78, #e8eef4, #2a323c, #5a6a78); box-shadow: 0 12px 28px -10px #000d, 0 0 22px #c8d4dc88; }
.edtag.ed-spectral { background: linear-gradient(90deg, #7dfcff, #fff, #b45cff); }
.card.ed-spectral .inner { background: radial-gradient(110% 60% at 50% 30%, #7dfcff33, transparent 70%), linear-gradient(175deg, #0a2236, #04060f 75%); }
.card.ed-spectral .photo img { opacity: .78; filter: drop-shadow(0 0 4cqw #7dfcff) saturate(.5) brightness(1.15); animation: specFloat 3s ease-in-out infinite; }
.card.ed-spectral .face { background: conic-gradient(from var(--spin, 0deg), #7dfcff, #b45cff, #fff, #7dfcff); box-shadow: 0 12px 28px -10px #000d, 0 0 26px #7dfcffaa; }
@keyframes specFloat { 50% { transform: translateY(-2cqw); opacity: .6; } }
.edtag.ed-bloodmoon { background: linear-gradient(90deg, #ff0033, #300, #ff0033); color: #fff; }
.card.ed-bloodmoon .inner { background: radial-gradient(60% 34% at 50% 26%, #ff0033aa, transparent 70%), linear-gradient(175deg, #3a0008, #080002 75%); }
.card.ed-bloodmoon .face { background: conic-gradient(from var(--spin, 0deg), #ff0033, #111, #ff0033, #ff8a8a, #ff0033); box-shadow: 0 12px 28px -10px #000d, 0 0 34px #ff0033cc; }
.card.ed-bloodmoon .photo img { filter: drop-shadow(0 0 4cqw #ff0033) saturate(.8) contrast(1.2); }

/* Testing tab: only testers see it */
#tabs button[data-tab="testing"] { display: none; color: #1fd07f; } body.is-tester #tabs button[data-tab="testing"] { display: flex; }
#tabs button[data-tab="testing"] .ic { color: #1fd07f; filter: drop-shadow(0 0 6px #1fd07f88); }
.ts-head { border: 1px solid #1fd07f55; background: radial-gradient(120% 90% at 0 0, #1fd07f22, transparent 60%), var(--panel, #12152a); border-radius: 22px; padding: 18px; margin-bottom: 14px; }
.ts-badge { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 900; letter-spacing: .12em; color: #06140c; background: #1fd07f; padding: 4px 10px; border-radius: 99px; }
.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-bottom: 14px; }
.ts-card { border: 1px solid var(--line2); border-radius: 18px; padding: 14px; background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 8px; }
.ts-card h3 { margin: 0; } .ts-card p { margin: 0; color: var(--dim); font-size: 13px; }
.ts-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 14px; cursor: pointer; }
.ts-check input { margin-top: 3px; accent-color: #1fd07f; width: 18px; height: 18px; } .ts-check.done span { color: var(--dim); text-decoration: line-through; }
.ts-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 45%), 1fr)); gap: 10px; }
.rc-own { font-size: 12px; text-align: center; margin-top: 4px; color: var(--dim); } .rc-own b { color: #ffd700; }
/* ROOKIE 1/1: gold + rainbow, rarer than Galaxy */
.card.r-O .rtag { background: linear-gradient(90deg, #ffd700, #ff3b6b, #7dfcff, #ffd700); color: #111; }
.edtag.ed-rc { background: linear-gradient(90deg, #ffd700, #fff, #ffd700); color: #111; }
.card.ed-rc .face { background: conic-gradient(from var(--spin, 0deg), #ffd700, #ff3b6b, #b45cff, #7dfcff, #39ff88, #ffd700); box-shadow: 0 12px 28px -10px #000d, 0 0 36px #ffd700cc; animation: rcGlow 2.4s ease-in-out infinite; }
.card.ed-rc .inner { background: radial-gradient(110% 60% at 50% 30%, #ffd70055, transparent 70%), repeating-linear-gradient(135deg, #2a2005 0 6px, #1a1403 6px 12px); }
.card.ed-rc .photo img { filter: drop-shadow(0 0 4cqw #ffd700) contrast(1.1); }
@keyframes rcGlow { 50% { box-shadow: 0 12px 28px -10px #000d, 0 0 60px #ffd700; } }
#rcFx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9999; background: #000; overflow: hidden; cursor: default; }
#rcFx .rc-shake { position: absolute; inset: 0; }
#rcFx .rc-shake.s1 { animation: rcShake .35s linear; } #rcFx .rc-shake.s2 { animation: rcShake .6s linear; } #rcFx .rc-shake.s3 { animation: rcShakeBig .9s linear; }
@keyframes rcShake { 20% { transform: translate(-4px, 3px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-3px, -4px); } 80% { transform: translate(3px, 4px); } }
@keyframes rcShakeBig { 10% { transform: translate(-12px, 6px) rotate(-.6deg); } 30% { transform: translate(10px, -9px) rotate(.6deg); } 50% { transform: translate(-8px, -6px); } 70% { transform: translate(9px, 8px) rotate(.4deg); } 90% { transform: translate(-4px, 3px); } }
#rcFx .rc-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
#rcFx .rc-team { position: absolute; inset: 0; opacity: 0; transition: opacity 2s; background: radial-gradient(70% 50% at 20% 100%, var(--t1), transparent 70%), radial-gradient(70% 50% at 80% 0%, var(--t2), transparent 70%); mix-blend-mode: screen; }
#rcFx.team .rc-team { opacity: .45; } #rcFx.p3 .rc-team { opacity: .3; }
#rcFx .rc-rays { position: absolute; inset: -60%; background: repeating-conic-gradient(#ffd70030 0 7deg, transparent 7deg 14deg); opacity: 0; transition: opacity 1.2s; animation: rcSpin 14s linear infinite; }
#rcFx.p2 .rc-rays { opacity: .7; animation-duration: 5s; } #rcFx.p3 .rc-rays { opacity: 1; animation-duration: 18s; }
#rcFx .rc-spot { position: absolute; left: 50%; top: -10%; width: 70vmin; height: 120vh; transform: translateX(-50%); background: linear-gradient(180deg, #fff8d0aa, transparent 80%); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity .8s; filter: blur(6px); }
#rcFx.p2 .rc-spot { opacity: .55; } #rcFx.p3 .rc-spot { opacity: .35; }
#rcFx .rc-msg { position: absolute; left: 0; right: 0; top: 46%; text-align: center; font: 800 clamp(18px, 4.6vw, 34px)/1.2 Inter, system-ui; color: #ffe9a8; letter-spacing: .04em; opacity: 0; padding: 0 20px; }
#rcFx .rc-msg.on { animation: rcMsg 1.8s ease forwards; }
@keyframes rcMsg { 0% { opacity: 0; transform: translateY(14px); filter: blur(6px); } 25% { opacity: 1; transform: none; filter: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
#rcFx .rc-word { position: absolute; left: 0; right: 0; top: 38%; display: flex; justify-content: center; gap: 1vw; font: 400 clamp(54px, 17vw, 190px)/1 "Bebas Neue", Impact, system-ui; transition: all .5s; }
#rcFx .rc-word i { font-style: normal; color: #ffd700; text-shadow: 0 0 30px #ffd700, 0 0 80px #ff9d00; opacity: 0; transform: scale(3.5) translateY(-30px); }
#rcFx .rc-word i.on { animation: rcSlam .35s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes rcSlam { to { opacity: 1; transform: none; } }
#rcFx.word-out .rc-word { opacity: 0; transform: scale(1.6); filter: blur(10px); }
#rcFx .rc-flip { position: absolute; left: 50%; top: 50%; width: min(60vw, 270px, 40vh); perspective: 1200px; opacity: 0; transform: translate(-50%, -50%) scale(.3); transition: opacity .6s, transform 1s cubic-bezier(.2, 1.3, .3, 1); }
#rcFx .rc-flip.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#rcFx .rc-in { position: relative; aspect-ratio: 5 / 8; transform-style: preserve-3d; animation: rcTurn 2.2s linear infinite; }
#rcFx .rc-flip.fast .rc-in { animation-duration: .9s; } #rcFx .rc-flip.faster .rc-in { animation-duration: .32s; }
#rcFx .rc-flip.land .rc-in { animation: rcLand 1.3s cubic-bezier(.15, 1.4, .3, 1) forwards; }
#rcFx .rc-flip.land { transform: translate(-50%, -50%) scale(1); }
@keyframes rcTurn { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes rcLand { from { transform: rotateY(-540deg) scale(.6); } to { transform: rotateY(0deg) scale(1); } }
#rcFx .rc-back, #rcFx .rc-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
#rcFx .rc-front { display: flex; align-items: center; opacity: 0; } #rcFx .rc-flip.land .rc-front { opacity: 1; }
#rcFx .rc-flip:not(.land) .rc-back { transform: none; backface-visibility: visible; -webkit-backface-visibility: visible; } #rcFx .rc-flip.land .rc-back { transition: opacity .3s .4s; opacity: 0; } #rcFx .rc-front .card { --w: 100%; }
#rcFx .rc-back { transform: rotateY(180deg); border-radius: 6% / 4%; background: radial-gradient(circle at 50% 40%, #fff6c8, #ffd700 30%, #a87400 70%, #4a3300); border: 3px solid #fff3b0; box-shadow: 0 0 50px #ffd700, inset 0 0 40px #0006; display: grid; place-items: center; align-content: center; gap: 4px; overflow: hidden; }
#rcFx .rc-back b { font: 400 clamp(60px, 18vw, 110px)/1 "Bebas Neue", Impact, system-ui; color: #3a2700; text-shadow: 0 2px 0 #fff8; }
#rcFx .rc-back small { font: 900 14px/1 Inter, system-ui; letter-spacing: .4em; color: #3a2700; }
#rcFx .rc-crack { position: absolute; inset: 0; opacity: 0; background: linear-gradient(115deg, transparent 46%, #fff 48%, transparent 50%), linear-gradient(60deg, transparent 58%, #fff 59.5%, transparent 61%), linear-gradient(150deg, transparent 30%, #fff 31%, transparent 32.5%); filter: drop-shadow(0 0 8px #fff); }
#rcFx .rc-crack.on { animation: rcCrack 2s ease forwards; } @keyframes rcCrack { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 1; filter: drop-shadow(0 0 20px #fff); } }
#rcFx .rc-white { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
#rcFx .rc-white.on { animation: rcWhite 1.4s ease-out forwards; } @keyframes rcWhite { 0% { opacity: 0; } 15% { opacity: 1; } 45% { opacity: 1; } 100% { opacity: 0; } }
#rcFx .rc-stamp { position: absolute; left: 50%; top: 5%; z-index: 2; transform: translateX(-50%) rotate(-8deg) scale(4); opacity: 0; font: 400 clamp(40px, min(11vw, 9vh), 100px)/1 "Bebas Neue", Impact, system-ui; color: #ffd700; border: 5px solid #ffd700; border-radius: 14px; padding: 4px 20px 0; text-shadow: 0 0 24px #ffd700; box-shadow: 0 0 30px #ffd70088, inset 0 0 20px #ffd70055; background: #0008; }
#rcFx .rc-stamp.on { animation: rcStamp .45s cubic-bezier(.2, 1.5, .4, 1) forwards; } @keyframes rcStamp { to { opacity: 1; transform: translateX(-50%) rotate(-8deg) scale(1); } }
#rcFx .rc-name { position: absolute; left: 0; right: 0; bottom: 5%; text-align: center; opacity: 0; transform: translateY(20px); transition: all .7s; padding: 0 16px; }
#rcFx .rc-name.on { opacity: 1; transform: none; }
#rcFx .rc-name b { display: block; font: 400 clamp(32px, 8vw, 64px)/1 "Bebas Neue", Impact, system-ui; color: #fff; letter-spacing: .04em; text-shadow: 0 0 20px #ffd700; }
#rcFx .rc-name span { display: block; margin-top: 6px; font-weight: 800; color: #ffe9a8; }
#rcFx .rc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #ffffff14; } #rcFx .rc-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff9d00, #ffd700, #fff); animation: rcBar 20s linear forwards; }
@keyframes rcBar { to { width: 100%; } }
#rcFx.out { animation: rcOut .7s ease-in forwards; } @keyframes rcOut { to { opacity: 0; } }
@keyframes rcSpin { to { transform: rotate(360deg); } }
/* Store layout: jump bar + numbered steps so new players find packs and leagues */
.st-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; } .st-nav::-webkit-scrollbar { display: none; }
.st-nav button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line2); font-weight: 800; font-size: 13px; color: #fff; }
.st-nav button:first-child { background: linear-gradient(135deg, #ffd23f, #ff9d00); color: #1a1000; border-color: transparent; }
.st-nav .ic { width: 16px; height: 16px; }
.st-packs { border: 1px solid var(--line2); border-radius: 24px; padding: 16px; margin-bottom: 18px; background: radial-gradient(120% 60% at 50% 0, #ffd23f12, transparent 70%), rgba(255,255,255,.02); }
.st-step { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 12px; }
.st-step i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #1a1000; background: linear-gradient(135deg, #ffd23f, #ff9d00); box-shadow: 0 0 16px #ffd23f55; }
.st-step b { font-size: 20px; font-weight: 900; } .st-step small { color: var(--dim); font-weight: 600; flex-basis: 100%; padding-left: 40px; margin-top: -4px; }
.st-packs .leagues { margin-bottom: 20px; } .st-packs .store-grid { margin-bottom: 12px; }
.st-title { font-size: 24px; font-weight: 900; margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; scroll-margin-top: 80px; } .st-title small { font-size: 13px; color: var(--dim); font-weight: 600; }
@media (max-width: 560px) { .st-packs { padding: 12px; border-radius: 18px; } .st-step b { font-size: 18px; } .st-title { font-size: 21px; } }
/* Mega Pack: Mythic red + purple */
.pack.mega { --p1: #2a0614 !important; --p2: #ff3b6b !important; }
.pack.mega .pk-brand { color: #ffd0dc; }
.pack.mega .pk-tier span { background: linear-gradient(90deg, #ff3b6b, #b45cff); color: #fff; white-space: nowrap; }
.pack.mega .pk-crimp { background: linear-gradient(180deg, #ff9bb566, #ff9bb511); }
.pk-wrap.mega { filter: drop-shadow(0 18px 26px #000c) drop-shadow(0 0 30px #ff3b6baa); }
/* Giveaways */
.seg6 { grid-template-columns: repeat(6, 1fr); } .seg6 button { font-size: 12px; padding: 0 2px; }
@media (max-width: 560px) { .seg6 { grid-template-columns: repeat(3, 1fr); } .seg6 button { font-size: 11.5px; } }
.ga-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; background: radial-gradient(120% 120% at 0 0, #ff3b6b22, transparent 60%), var(--panel); }
.ga-head h2 { display: flex; align-items: center; gap: 8px; }
.ga-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.ga-item { border: 1px solid var(--line2); border-radius: 20px; padding: 14px; background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 12px; }
.ga-item.in { border-color: #39ff8855; box-shadow: 0 0 20px #39ff8818; }
.ga-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .ga-top .prof-link { text-align: left; }
.ga-time { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13px; color: #ffd23f; background: #ffd23f14; border-radius: 99px; padding: 5px 10px; white-space: nowrap; }
.ga-prize { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .ga-prize .cbox { --w: 84px; width: 84px; position: relative; }
.ga-coins { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 84px; height: 118px; border-radius: 12px; background: radial-gradient(circle, #ffd23f33, #ffd23f08); border: 1px solid #ffd23f44; font-size: 22px; } .ga-coins b { font-size: 15px; color: #ffd23f; }
.ga-wins { display: grid; gap: 8px; } .ga-win { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line2); font-size: 14px; } .ga-win > .ic { color: #ffd23f; }
.ga-sel { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .ga-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 99px; background: #ffd23f22; color: #ffe9a8; } .ga-chip .ic { width: 12px; height: 12px; }
.ga-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; max-height: 280px; overflow-y: auto; margin-top: 8px; padding: 2px; }
.ga-pick .cbox { --w: 100%; position: relative; border-radius: 10px; outline: 2px solid transparent; } .ga-pick .cbox.on { outline-color: #ffd23f; }
/* Early Access: new card ideas + the Retro concept look */
.ea-card.idea { display: block; } .idea-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 45%), 1fr)); gap: 10px; margin-top: 12px; }
.edtag.ed-retro { background: linear-gradient(90deg, #e8c48a, #fff3d6, #e8c48a); color: #3a2410; }
.card.ed-retro .face { background: repeating-linear-gradient(90deg, #7a4a24 0 3px, #8b5a2e 3px 7px, #6a3e1c 7px 9px); box-shadow: 0 12px 28px -10px #000d, 0 0 0 2px #e8c48a inset; }
.card.ed-retro .inner { background: linear-gradient(175deg, #f3e2c0, #d9c094 80%); }
.card.ed-retro .photo img { filter: sepia(.55) saturate(.8) contrast(1.05); }
.card.ed-retro .name, .card.ed-retro .ovr { color: #3a2410; text-shadow: none; }
/* concept editions shown in Early Access → New card ideas */
.edtag.ed-frost { background: linear-gradient(90deg, #bfeaff, #fff, #bfeaff); color: #06324a; }
.card.ed-frost .face { background: conic-gradient(from var(--spin, 0deg), #bfeaff, #fff, #5ac8ff, #e8f8ff, #bfeaff); box-shadow: 0 12px 28px -10px #000d, 0 0 26px #8fdcffaa; }
.card.ed-frost .inner { background: radial-gradient(circle at 20% 15%, #fff8 0 2px, transparent 3px) 0 0 / 22px 22px, radial-gradient(circle at 70% 60%, #fff6 0 1.5px, transparent 2.5px) 0 0 / 30px 30px, linear-gradient(175deg, #2a6f9a, #0a2236 75%); }
.card.ed-frost .photo img { filter: saturate(.6) brightness(1.1) hue-rotate(-10deg) drop-shadow(0 0 3cqw #bfeaff); }
.edtag.ed-neon { background: linear-gradient(90deg, #ff2bd6, #2bf3ff); color: #fff; }
.card.ed-neon .face { background: linear-gradient(135deg, #ff2bd6, #2bf3ff); box-shadow: 0 0 10px #ff2bd6, 0 0 30px #2bf3ffaa, 0 12px 28px -10px #000d; animation: neonFlick 3s infinite; }
.card.ed-neon .inner { background: radial-gradient(80% 50% at 50% 30%, #ff2bd633, transparent 70%), #07030f; }
.card.ed-neon .photo img { filter: drop-shadow(0 0 2cqw #ff2bd6) drop-shadow(0 0 4cqw #2bf3ff) contrast(1.15); }
@keyframes neonFlick { 0%, 92%, 96%, 100% { filter: none; } 94% { filter: brightness(.6); } }
.edtag.ed-goldrush { background: linear-gradient(90deg, #8a6200, #fff3b0, #8a6200); color: #2a1a00; }
.card.ed-goldrush .face { background: linear-gradient(135deg, #8a6200, #ffe27a 30%, #b8860b 55%, #fff3b0 75%, #8a6200); box-shadow: 0 0 30px #ffd23f99, 0 12px 28px -10px #000d; }
.card.ed-goldrush .inner { background: linear-gradient(135deg, #b8860b, #ffe9a0 40%, #c9971a 70%, #fff3b0); }
.card.ed-goldrush .photo img { filter: sepia(1) saturate(2.4) hue-rotate(-8deg) brightness(1.05) contrast(1.1); }
.card.ed-goldrush .name, .card.ed-goldrush .ovr { color: #3a2400; text-shadow: 0 1px 0 #fff8; }
.edtag.ed-glitch { background: #111; color: #39ff88; }
.card.ed-glitch .face { background: linear-gradient(90deg, #ff0040, #111 30%, #111 70%, #00e5ff); }
.card.ed-glitch .inner { background: repeating-linear-gradient(0deg, #0a0a0a 0 3px, #141414 3px 4px); }
.card.ed-glitch .photo img { animation: glitchImg 2.2s steps(1) infinite; filter: drop-shadow(-1.2cqw 0 0 #ff0040aa) drop-shadow(1.2cqw 0 0 #00e5ffaa); }
@keyframes glitchImg { 0%, 85%, 100% { transform: none; } 87% { transform: translate(-2cqw, 1cqw) skewX(6deg); } 90% { transform: translate(2cqw, -1cqw); } 93% { transform: translate(-1cqw, 0) skewX(-4deg); } }
.edtag.ed-comic { background: #ffe14a; color: #111; border: 1px solid #111; }
.card.ed-comic .face { background: #111; box-shadow: 0 0 0 2px #ffe14a inset, 0 12px 28px -10px #000d; }
.card.ed-comic .inner { background: radial-gradient(circle, #ff3b3b 30%, transparent 32%) 0 0 / 3.2cqw 3.2cqw, #ffd23f; }
.card.ed-comic .photo img { filter: contrast(1.5) saturate(1.6) drop-shadow(0.8cqw 0.8cqw 0 #111); }
.card.ed-comic .name { color: #111; text-shadow: none; }
.edtag.ed-lava { background: linear-gradient(90deg, #ff3b00, #ffb300, #ff3b00); color: #1a0500; }
.card.ed-lava .face { background: conic-gradient(from var(--spin, 0deg), #ff3b00, #1a0500, #ffb300, #1a0500, #ff3b00); box-shadow: 0 0 30px #ff5a00aa, 0 12px 28px -10px #000d; }
.card.ed-lava .inner { background: linear-gradient(115deg, transparent 40%, #ff6a0099 42%, transparent 44%), linear-gradient(60deg, transparent 62%, #ffb30088 63.5%, transparent 65%), radial-gradient(70% 40% at 50% 100%, #ff3b0088, transparent 70%), #1a0805; }
.card.ed-lava .photo img { filter: drop-shadow(0 0 3cqw #ff5a00) contrast(1.15) saturate(1.2); }
.edtag.ed-aurora { background: linear-gradient(90deg, #39ff88, #2bd9ff, #b45cff); color: #04140c; }
.card.ed-aurora .face { background: linear-gradient(135deg, #39ff88, #2bd9ff, #b45cff); box-shadow: 0 0 26px #2bd9ff88, 0 12px 28px -10px #000d; }
.card.ed-aurora .inner { background: linear-gradient(170deg, #39ff8855, transparent 35%), linear-gradient(195deg, #b45cff55, transparent 45%), linear-gradient(180deg, #06142a, #020610); background-size: 200% 200%; animation: aurora 6s ease-in-out infinite alternate; }
@keyframes aurora { to { background-position: 100% 50%; } }
.edtag.ed-pixel { background: #3a3aff; color: #fff; font-family: monospace; }
.card.ed-pixel .face { background: repeating-conic-gradient(#3a3aff 0 25%, #8a8aff 0 50%) 0 0 / 4cqw 4cqw; }
.card.ed-pixel .inner { background: repeating-linear-gradient(0deg, #0b0b3a 0 2cqw, #10104a 2cqw 4cqw); }
.card.ed-pixel .photo img { image-rendering: pixelated; filter: contrast(1.3) saturate(1.5); }
.edtag.ed-glass { background: linear-gradient(90deg, #ff3b6b, #ffd23f, #39ff88, #3fa9ff, #b45cff); color: #111; }
.card.ed-glass .face { background: #1a1a1a; box-shadow: 0 0 22px #ffffff33, 0 12px 28px -10px #000d; }
.card.ed-glass .inner { background: conic-gradient(from 20deg at 30% 30%, #ff3b6b88, #ffd23f88, #39ff8888, #3fa9ff88, #b45cff88, #ff3b6b88), repeating-linear-gradient(45deg, transparent 0 9cqw, #111 9cqw 9.8cqw), repeating-linear-gradient(-45deg, transparent 0 11cqw, #111 11cqw 11.8cqw), #222; background-blend-mode: normal; }
/* ===== Co-op Boss Raids ===== */
.new-pill { font-size: 10px; font-weight: 900; background: #ff3b6b; color: #fff; padding: 2px 7px; border-radius: 99px; vertical-align: middle; letter-spacing: .06em; }
.raid-tile .gart .mini { transform: scale(1.15) rotate(-4deg); }
.raid-boss-card { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 22px; margin-bottom: 14px; border: 1px solid #ff3b6b44; background: radial-gradient(120% 120% at 0 0, #ff3b6b26, transparent 60%), var(--panel); }
.raid-boss-card.weekly { border-color: #b45cff66; background: radial-gradient(120% 120% at 0 0, #b45cff30, transparent 60%), var(--panel); }
.raid-boss-card h2 { margin: 4px 0; font-size: 26px; } .raid-boss-card p { color: var(--dim); font-size: 13px; margin: 0 0 10px; }
.rb-art { width: 120px; flex: none; transform: rotate(-3deg); } .rb-art .card { --w: 120px; }
.raid-open { display: grid; gap: 8px; } .raid-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line2); }
.raid-lobby { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 8px; } .rl-boss { width: 150px; flex: none; } .rl-boss .card { --w: 150px; }
.rl-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px; margin-top: 10px; }
.rl-slot { display: flex; gap: 8px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); font-size: 14px; }
.rl-slot.empty { justify-content: center; color: var(--dim); border-style: dashed; min-height: 56px; }
.rl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 4px; }
.rl-pick .cbox { --w: 100%; position: relative; border-radius: 10px; outline: 3px solid transparent; opacity: .75; } .rl-pick .cbox.on { outline-color: #ffd23f; opacity: 1; box-shadow: 0 0 18px #ffd23f66; }
.rp-pow { position: absolute; z-index: 6; top: -6px; left: -6px; font-style: normal; font-size: 11px; font-weight: 900; background: #ff3b6b; color: #fff; padding: 2px 6px; border-radius: 8px; }
.raid-actions { gap: 8px; margin-top: 14px; flex-wrap: wrap; } .raid-actions .btn { height: 50px; }
@media (max-width: 560px) { .raid-boss-card, .raid-lobby { flex-direction: column; align-items: stretch; } .rb-art, .rl-boss { margin: 0 auto; } }
.raid-fight { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 0 auto; padding-bottom: 90px; user-select: none; -webkit-user-select: none; }
.rf-top { display: flex; justify-content: space-between; align-items: center; } .rf-name { font: 400 30px/1 var(--display, Impact); letter-spacing: .03em; color: #ff6b8a; } .raid-fight.weekly .rf-name { color: #c99bff; }
.rf-timer { font-weight: 900; font-size: 20px; background: #ffffff10; padding: 6px 12px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.rf-hp { position: relative; height: 26px; border-radius: 13px; background: #2a0a12; border: 2px solid #ff3b6b66; overflow: hidden; }
.rf-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff3b6b, #ff8a3d); transition: width .25s; box-shadow: 0 0 20px #ff3b6b; }
.rf-hp span { position: relative; z-index: 1; display: block; text-align: center; font-weight: 900; font-size: 13px; line-height: 22px; text-shadow: 0 1px 2px #000; }
.rf-stage { position: relative; height: min(34vh, 300px); display: grid; place-items: center; border-radius: 24px; overflow: hidden; background: radial-gradient(60% 60% at 50% 60%, #ff3b6b33, transparent 70%), radial-gradient(circle at 50% 120%, #ff8a1f22, transparent 60%), #0a0610; }
.rf-boss { width: min(36vw, 170px, 22vh); transition: transform .2s; filter: drop-shadow(0 0 40px #ff3b6b88); animation: rfBreathe 2.4s ease-in-out infinite; } .rf-boss .card { --w: 100%; }
@keyframes rfBreathe { 50% { transform: scale(1.04) translateY(-6px); } }
.rf-boss.hit { animation: rfHit .25s; } @keyframes rfHit { 30% { transform: translateX(-8px) rotate(-2deg); filter: brightness(2) drop-shadow(0 0 40px #fff); } 70% { transform: translateX(6px) rotate(1deg); } }
.rf-boss.charge { animation: rfCharge .3s infinite; filter: drop-shadow(0 0 60px #ff0000) brightness(1.3); } @keyframes rfCharge { 50% { transform: scale(1.08); } }
.rf-boss.smash { animation: rfSmash .6s; } @keyframes rfSmash { 30% { transform: scale(1.35) translateY(30px); } }
.rf-fx { position: absolute; inset: 0; pointer-events: none; }
.rf-num { position: absolute; font-weight: 900; font-size: 22px; color: #fff; text-shadow: 0 2px 6px #000, 0 0 12px #ff3b6b; animation: rfNum 1.1s ease-out forwards; white-space: nowrap; }
.rf-num small { display: block; font-size: 11px; opacity: .8; } .rf-num.mine { color: #ffe066; } .rf-num.combo { color: #7dffb0; font-size: 28px; } .rf-num.special { color: #ff9bd5; font-size: 40px; }
@keyframes rfNum { from { opacity: 1; transform: translateY(0) scale(1.3); } to { opacity: 0; transform: translateY(-70px) scale(1); } }
.rf-warn { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-weight: 900; font-size: 18px; color: #fff; background: #ff0033; padding: 6px 14px; border-radius: 99px; opacity: 0; transition: opacity .15s; box-shadow: 0 0 30px #ff0033; white-space: nowrap; }
.rf-warn.on { opacity: 1; animation: rfFlash .3s infinite alternate; } @keyframes rfFlash { to { background: #ff7a00; } }
.rf-count { position: absolute; font: 400 120px/1 var(--display, Impact); color: #ffd23f; text-shadow: 0 0 40px #ffd23f; opacity: 0; } .rf-count.on { opacity: 1; }
.rf-team { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 12px; color: #7dfcff; }
.rf-thp { flex: 1; height: 12px; border-radius: 6px; background: #0a2230; overflow: hidden; } .rf-thp i { display: block; height: 100%; background: linear-gradient(90deg, #39ff88, #7dfcff); transition: width .3s; } .rf-thp i.low { background: linear-gradient(90deg, #ff3b6b, #ff8a3d); }
.rf-dmg { display: grid; gap: 4px; } .rf-drow { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 8px; border-radius: 8px; } .rf-drow.me { background: #ffd23f14; } .rf-drow span { width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-dbar { flex: 1; height: 6px; border-radius: 3px; background: #ffffff12; overflow: hidden; } .rf-dbar i { display: block; height: 100%; background: #ffd23f; }
.rf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 130px)); justify-content: center; gap: 10px; }
.rf-card { position: relative; border-radius: 14px; overflow: hidden; padding: 0; touch-action: manipulation; } .rf-card .cbox { --w: 100%; pointer-events: none; }
.rf-card.tap { animation: rfTap .2s; } @keyframes rfTap { 50% { transform: scale(.92); } }
.rf-cd { position: absolute; left: 0; right: 0; bottom: 0; background: #000a; pointer-events: none; }
.rf-card b { position: absolute; top: 6px; right: 6px; z-index: 3; font-size: 12px; background: #ff3b6b; color: #fff; padding: 2px 6px; border-radius: 8px; }
.rf-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rf-block, .rf-special { height: 58px; font-size: 18px; font-weight: 900; position: relative; overflow: hidden; }
.rf-block.ready { background: #ff0033; color: #fff; animation: rfFlash .25s infinite alternate; box-shadow: 0 0 30px #ff0033; } .rf-block.done { background: #39ff88; color: #04140c; }
.rf-special i { position: absolute; left: 0; bottom: 0; height: 5px; background: #ff9bd5; transition: width .2s; } .rf-special span { position: relative; }
.rf-special.ready { background: linear-gradient(135deg, #ff3b6b, #b45cff); color: #fff; box-shadow: 0 0 30px #ff3b6b; animation: rfCharge .6s infinite; }
.raid-end { text-align: center; } .re-boss { width: 160px; margin: 10px auto; } .re-boss .card { --w: 160px; } .raid-end.lost .re-boss { filter: grayscale(.4); } .raid-end.won h1 { color: #ffd23f; } .raid-end.lost h1 { color: #ff6b8a; }
.raid-end .rf-dmg { max-width: 420px; margin: 0 auto; text-align: left; }
/* chat: light avatars (a small photo instead of a full animated card) */
.av-lite { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; background: #1a1f35; box-shadow: 0 0 0 2px var(--rc, #445); display: grid; place-items: center; }
.av-lite img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; } .av-lite.ph { font-weight: 900; color: var(--dim); }
.bdg.txtb.tb-tester { --bc: #1fd07f; background: linear-gradient(135deg, #7dffb0, #1fd07f); color: #04140c; }
/* ===== Stadium ===== */
.stad-scene { position: relative; height: 230px; border-radius: 24px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line2); background: #0b1428; }
.ss-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #4fa3ff, #9fd3ff 55%, #cfe9ff); }
.stad-scene.night .ss-sky { background: linear-gradient(180deg, #050816, #121a3a 60%, #1f2a55); }
.stad-scene.t0 .ss-sky { background: linear-gradient(180deg, #7cc4ff, #d6f0ff); }
.ss-stands { position: absolute; left: 4%; right: 4%; bottom: 34%; display: flex; flex-direction: column-reverse; gap: 2px; }
.ss-row { display: flex; justify-content: space-evenly; gap: 2px; padding: 2px 0; background: linear-gradient(180deg, #2a3350, #1a2036); border-radius: calc(var(--r) * 6px + 6px) calc(var(--r) * 6px + 6px) 0 0; margin: 0 calc(var(--r) * -1.5%); }
.ss-row i { width: 6px; height: 7px; border-radius: 3px 3px 1px 1px; background: hsl(var(--h) 70% 60%); animation: ssCheer 1.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ssCheer { 50% { transform: translateY(-2px); } }
.stad-scene.t4 .ss-stands, .stad-scene.t5 .ss-stands { bottom: 32%; } .stad-scene.t5 .ss-row { background: linear-gradient(180deg, #4a2a6a, #24123a); }
.stad-scene.t4 .ss-sky::after, .stad-scene.t5 .ss-sky::after { content: ""; position: absolute; left: -5%; right: -5%; top: -60%; height: 95%; border-radius: 50%; border-bottom: 10px solid #c9d6ea55; } /* dome roof */
.ss-field { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: repeating-linear-gradient(90deg, #2f9e4a 0 8%, #37b356 8% 16%); }
.ss-line { position: absolute; left: 50%; top: 10%; bottom: 10%; width: 3px; background: #ffffffcc; } .ss-circle { position: absolute; left: 50%; top: 50%; width: 60px; height: 30px; transform: translate(-50%, -50%); border: 3px solid #ffffffcc; border-radius: 50%; }
.ss-pole { position: absolute; bottom: 34%; width: 6px; height: 62%; background: #2a2f45; } .ss-pole.l { left: 3%; } .ss-pole.r { right: 3%; }
.ss-pole::before { content: ""; position: absolute; top: -8px; left: -12px; width: 30px; height: 14px; border-radius: 4px; background: #e8eef8; box-shadow: 0 0 10px #fff; }
.stad-scene.night .ss-pole::before { box-shadow: 0 0 30px 10px #fff8c0, 0 30px 80px 30px #fff6c855; }
.ss-jumbo { position: absolute; top: 8%; left: 50%; transform: translateX(-50%); background: #0a0a14; border: 3px solid #333a55; border-radius: 8px; padding: 4px 14px; text-align: center; z-index: 2; box-shadow: 0 0 20px #3fa9ff66; }
.ss-jumbo b { display: block; font: 400 16px/1 var(--display, Impact); color: #ffd23f; letter-spacing: .05em; } .ss-jumbo span { font-size: 11px; font-weight: 800; color: #7dfcff; }
.ss-shop { position: absolute; right: 6%; bottom: 6%; width: 34px; height: 34px; border-radius: 8px; background: #ff3b6b; display: grid; place-items: center; color: #fff; box-shadow: 0 4px 10px #0006; }
.stad-bank { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .stad-bank .bar { margin: 8px 0 4px; }
.sb-rate { font-size: 15px; } .sb-rate b { font-size: 22px; color: var(--gold, #ffd23f); } .sb-store { font-size: 14px; margin-top: 4px; } .sb-store span { font-weight: 900; font-size: 18px; }
.sb-night { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 900; color: #1a1000; background: #ffe066; padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.stad-ups { display: grid; gap: 8px; } .stad-up { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line2); }
.stad-up small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; } .stad-up.max { opacity: .75; }
.su-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #ffd23f22; color: #ffd23f; flex: none; }
.su-pips { display: flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; } .su-pips i { width: 10px; height: 5px; border-radius: 3px; background: #ffffff18; } .su-pips i.on { background: #ffd23f; }
.stad-roster { display: grid; grid-template-columns: repeat(5, minmax(0, 120px)); gap: 10px; justify-content: center; } .stad-roster .cbox { --w: 100%; }
.sr-empty { aspect-ratio: 5 / 8; border: 2px dashed #ffffff22; border-radius: 12px; display: grid; place-items: center; color: #ffffff40; }
.ss-row i.e { background: #3a4260; animation: none; }
/* ===== F1 Grand Prix ===== */
.card.f1 .stripe { background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 6cqw 6cqw; opacity: .5; }
.card.f1 .accent { background: linear-gradient(90deg, #e10600, var(--t2)); }
.card.f1 .meta img { height: 3.4cqw; border-radius: 1cqw; }
.pack.f1 { --p1: #15151e !important; --p2: #e10600 !important; }
.pack.f1 .pk-brand { color: #fff; } .pack.f1 .pk-tier span { background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 8px 8px; color: #e10600; text-shadow: 0 0 3px #fff, 0 0 3px #fff; font-weight: 900; }
.pack.f1.elite { --p2: #ffd23f !important; }
.f1-box { border-radius: 22px; padding: 16px; margin-bottom: 14px; border: 1px solid #e1060055; background: radial-gradient(120% 120% at 0 0, #e1060026, transparent 60%), var(--panel); }
.f1-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; } .f1-head h2 { margin: 4px 0; font-size: 26px; } .f1-head p { color: var(--dim); font-size: 13px; margin: 0 0 8px; }
.f1-flag { width: 54px; height: 54px; flex: none; border-radius: 12px; background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 18px 18px; box-shadow: 0 0 20px #e1060066; animation: f1Wave 2s ease-in-out infinite; }
@keyframes f1Wave { 50% { transform: rotate(-6deg) skewY(4deg); } }
.gp-setup { display: grid; gap: 14px; } .gp-setup h3 { margin: 0 0 8px; }
.gp-pick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.gp-opt { flex: none; width: 108px; padding: 8px; border-radius: 14px; border: 2px solid var(--line2); background: rgba(255,255,255,.03); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; }
.gp-opt img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; } .gp-opt small { color: #ffd23f; font-weight: 900; } .gp-opt.on { border-color: #e10600; box-shadow: 0 0 16px #e1060055; }
.tyre { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 3px solid; vertical-align: -2px; } .tyre.tS { border-color: #ff2b2b; } .tyre.tM { border-color: #ffd23f; } .tyre.tH { border-color: #fff; }
.gp-race { max-width: 760px; margin: 0 auto; } .gp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .gp-top b { font: 400 28px/1 var(--display, Impact); } .gp-top span { color: #ffd23f; font-weight: 800; }
.gp-board { display: grid; gap: 4px; } .gp-row { display: grid; grid-template-columns: 40px 150px 1fr 64px; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.03); font-size: 13px; }
.gp-row.me { background: #e1060026; outline: 1px solid #e10600; } .gp-pos { font-weight: 900; } .gp-row small { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
.gp-who { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; } .gp-who img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex: none; }
.gp-lane { position: relative; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #2a2a35, #2a2a35 99%, #fff 99%); }
.gp-car { position: absolute; top: 1px; width: 26px; height: 12px; margin-left: -26px; border-radius: 6px 10px 10px 6px; background: linear-gradient(90deg, var(--c1), var(--c1) 70%, var(--c2)); box-shadow: 0 0 6px #0008; transition: left .12s linear; }
@media (max-width: 560px) { .gp-row { grid-template-columns: 34px 96px 1fr 52px; font-size: 11px; } }
.gp-podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 14px 0; } .gp-podium .pd { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 90px; padding: 8px; border-radius: 12px 12px 0 0; background: #ffffff10; font-size: 12px; }
.gp-podium .pd img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; } .gp-podium .p1 { order: 2; min-height: 130px; background: #ffd23f22; } .gp-podium .p2 { order: 1; min-height: 110px; } .gp-podium .p3 { order: 3; min-height: 95px; }
.f1-box .hbar small { display: flex; justify-content: space-between; color: var(--dim); } .card.f1 .stripe { opacity: .28; }
/* Event tab (only shows while an event is on) */
#tabs button[data-tab="event"] { display: none; color: #ff4d4d; } body.ev-on #tabs button[data-tab="event"] { display: flex; }
#tabs button[data-tab="event"] .ic { color: #ff4d4d; filter: drop-shadow(0 0 6px #e10600aa); }
.ev-stars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 45%), 1fr)); gap: 10px; margin-bottom: 8px; } .ev-stars .cbox { --w: 100%; text-align: center; } .ev-stars small { display: block; margin-top: 4px; font-weight: 800; color: #ffd23f; font-size: 11px; }
.f1-ann { text-align: center; } .f1-ann h2 { font: 400 44px/1 var(--display, Impact); margin: 4px 0 8px; color: #fff; text-shadow: 0 0 20px #e10600; } .f1-ann p { color: var(--dim); }
.f1-flag.big { width: 70px; height: 70px; margin: 0 auto 8px; border-radius: 14px; background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 23px 23px; animation: f1Wave 2s ease-in-out infinite; }
.f1-ann-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0; flex-wrap: wrap; } .f1-ann-cards { display: flex; gap: 8px; } .f1-ann-cards .cbox { --w: 96px; width: 96px; }
.f1-ann-end { font-size: 15px; } .f1-ann-end b { color: #ff4d4d; }
