/* self-hosted fonts for the Signal look (no Google round-trip) */
@font-face { font-family: "Saira"; src: url(/static/fonts/saira-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira"; src: url(/static/fonts/saira-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira"; src: url(/static/fonts/saira-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira"; src: url(/static/fonts/saira-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira"; src: url(/static/fonts/saira-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Michroma"; src: url(/static/fonts/michroma-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url(/static/fonts/chakra-petch-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url(/static/fonts/chakra-petch-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url(/static/fonts/chakra-petch-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "VT323"; src: url(/static/fonts/vt323-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url(/static/fonts/share-tech-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url(/static/fonts/permanent-marker-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Anton"; src: url(/static/fonts/anton-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --bg: #120d0a;
  --ink: #f7f1e6;
  --muted: #b7a893;
  --gold: #ffcb05;
  --gold-2: #ffb347;
  --glass: rgba(26, 19, 15, .62);
  --glass-hi: rgba(255, 235, 200, .08);
  --line: rgba(255, 214, 150, .16);
  --red: #ef5350;
  --blue: #42a5f5;
  --green: #66bb6a;
  --purple: #ab47bc;
  --r: 18px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--line) inset;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
#scene { position: fixed; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: -3; }
.vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(5, 3, 2, .85) 100%); }
.shafts { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.shafts i { position: absolute; top: -20%; width: 18vw; height: 140%; transform: skewX(-24deg);
  background: linear-gradient(180deg, rgba(255, 226, 160, .28), rgba(255, 210, 140, .06) 60%, transparent);
  filter: blur(18px); animation: shaft 9s ease-in-out infinite; }
.shafts i:nth-child(1) { left: 6%; animation-delay: -2s; }
.shafts i:nth-child(2) { left: 30%; width: 10vw; animation-delay: -5s; opacity: .7; }
.shafts i:nth-child(3) { left: 58%; width: 14vw; animation-delay: -7s; opacity: .55; }
@keyframes shaft { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.glass { background: linear-gradient(160deg, var(--glass-hi), transparent 40%), var(--glass);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-radius: var(--r); box-shadow: var(--shadow); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 14px 28px;
  background: linear-gradient(180deg, rgba(12, 8, 6, .85), rgba(12, 8, 6, 0)); }
.logo { height: 44px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-3px); } }
.live { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(102, 187, 106, .7);
  animation: pulse 2s infinite; }
.dot.off { background: var(--red); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(102, 187, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(102, 187, 106, 0); } }
.chips { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.chip { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); white-space: nowrap; }
.chip b { color: var(--ink); font-weight: 800; }

/* layout */
.layout { display: grid; grid-template-columns: 290px 1fr; gap: 26px; padding: 8px 28px 40px; max-width: 1400px; margin: 0 auto; }
.menu { position: sticky; top: 86px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.menu-title { font: 700 12px Silkscreen, monospace; letter-spacing: .2em; color: var(--gold); margin: 6px 4px; }
.group { overflow: hidden; }
.group > button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 16px; background: none;
  border: 0; color: var(--ink); font: 700 15px Inter; cursor: pointer; text-align: left; position: relative; }
.group > button .ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 10%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 25%, transparent) inset; font-size: 17px; }
.group > button .chev { margin-left: auto; transition: transform .35s cubic-bezier(.2, .9, .2, 1); color: var(--muted); }
.group.open > button .chev { transform: rotate(180deg); color: var(--gold); }
.group > button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 220, 150, .12), transparent);
  transform: translateX(-100%); transition: transform .6s; }
.group > button:hover::after { transform: translateX(100%); }
.drop { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .9, .2, 1); }
.group.open .drop { grid-template-rows: 1fr; }
.drop > div { overflow: hidden; }
.item { display: flex; align-items: center; gap: 10px; width: calc(100% - 20px); margin: 0 10px 8px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, .03); color: var(--ink);
  font: 600 13px Inter; cursor: pointer; text-align: left; transition: background .2s, border-color .2s, transform .2s; }
.item:hover { background: color-mix(in srgb, var(--gold) 8%, transparent); border-color: color-mix(in srgb, var(--gold) 30%, transparent); transform: translateX(3px); }
.item small { margin-left: auto; color: var(--muted); font-weight: 600; }
.item img { width: 28px; height: 39px; object-fit: cover; border-radius: 4px; }

/* hero */
.hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero-card { padding: 20px; min-height: 170px; position: relative; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 16%, transparent), transparent); pointer-events: none; }
.kicker { font: 700 11px Silkscreen, monospace; letter-spacing: .18em; color: var(--gold); }
.hero-card h3 { margin: 8px 0 6px; font-size: 22px; line-height: 1.2; }
.hero-card p { margin: 0; color: var(--muted); font-size: 13px; }
.hero-card .art { position: absolute; right: 14px; bottom: 12px; width: 78px; border-radius: 6px; transform: rotate(6deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .6); }

.section-title { font: 700 16px Silkscreen, monospace; letter-spacing: .06em; margin: 34px 0 14px; display: flex; gap: 10px; align-items: center; }
.section-title span { filter: drop-shadow(0 0 10px rgba(255, 180, 60, .6)); }

/* cards */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.tcg { position: relative; border-radius: 12px; cursor: pointer; transform-style: preserve-3d; perspective: 800px;
  animation: rise .7s both cubic-bezier(.2, .9, .2, 1); }
.tcg .face { position: relative; border-radius: 12px; overflow: hidden; transition: transform .25s ease, box-shadow .25s;
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .8); aspect-ratio: 245 / 342; background: #2a211b; }
.tcg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcg .shine { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), transparent 45%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity .25s; }
.tcg:hover .shine { opacity: 1; }
.tcg .meta { padding: 8px 2px 0; font-size: 12px; }
.tcg .meta b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcg .meta span { color: var(--muted); }
.price { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 999px; font: 800 12px Inter;
  background: rgba(10, 8, 6, .8); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.t5 .face { box-shadow: 0 0 0 2px #ec407a, 0 0 28px rgba(236, 64, 122, .55), 0 18px 30px -12px #000; }
.t4 .face { box-shadow: 0 0 0 2px #ff9800, 0 0 22px rgba(255, 152, 0, .45), 0 18px 30px -12px #000; }
.t3 .face { box-shadow: 0 0 0 2px #ab47bc, 0 0 18px rgba(171, 71, 188, .4), 0 18px 30px -12px #000; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.96); } }

/* feed */
.feed { display: grid; gap: 12px; }
.fight { display: grid; grid-template-columns: 54px 1fr auto 1fr 54px; align-items: center; gap: 14px; padding: 12px 16px;
  animation: rise .6s both; cursor: pointer; transition: transform .2s; }
.fight:hover { transform: translateY(-2px); }
.fight img { width: 54px; height: 75px; object-fit: cover; border-radius: 6px; }
.fight .vs { font: 700 18px Silkscreen, monospace; color: var(--gold); text-shadow: 0 0 14px rgba(255, 180, 40, .6); }
.fight .who b { display: block; }
.fight .who span { color: var(--muted); font-size: 12px; }
.fight .right { text-align: right; }
.win { color: var(--green); }

/* window */
.window-layer { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px;
  background: rgba(6, 4, 3, .55); backdrop-filter: blur(6px); animation: fade .3s both; }
.window-layer[hidden] { display: none; }
.window { width: min(920px, 100%); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
  animation: pop .45s both cubic-bezier(.2, 1.2, .3, 1); position: relative; }
.window::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 190, .18) 50%, transparent 65%);
  transform: translateX(-120%); animation: sweep 1.2s .15s both ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.88) translateY(30px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sweep { to { transform: translateX(120%); } }
.window-bar { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.window-title { font: 700 16px Silkscreen, monospace; letter-spacing: .06em; color: var(--gold); }
.close { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--ink); cursor: pointer; font-size: 15px; transition: background .2s, transform .2s; }
.close:hover { background: rgba(239, 83, 80, .25); transform: rotate(90deg); }
.window-body { padding: 20px; overflow: auto; }

/* tables / rows */
.rank { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; margin-bottom: 8px;
  background: rgba(255, 255, 255, .035); animation: rise .5s both; }
.rank .pos { width: 34px; font: 700 18px Silkscreen, monospace; color: var(--muted); text-align: center; }
.rank:nth-child(1) .pos { color: var(--gold); }
.rank:nth-child(2) .pos { color: #cfd8dc; }
.rank:nth-child(3) .pos { color: #ffab91; }
.rank .av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #3a2d24; }
.rank .val { margin-left: auto; font-weight: 800; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.box h4 { margin: 0 0 10px; font: 700 13px Silkscreen, monospace; letter-spacing: .06em; color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.stat small { color: var(--muted); display: block; font-size: 12px; }
.stat b { font-size: 20px; }
.search { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3);
  color: var(--ink); font: 600 14px Inter; margin-bottom: 14px; outline: none; }
.search:focus { border-color: color-mix(in srgb, var(--gold) 50%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 12%, transparent); }
.empty { color: var(--muted); padding: 20px; text-align: center; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
.flash { animation: flash 1s; }
@keyframes flash { 30% { box-shadow: 0 0 0 2px var(--gold), 0 0 30px color-mix(in srgb, var(--gold) 50%, transparent); } }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; padding: 8px 16px 30px; }
  .menu { position: static; }
  .hero { grid-template-columns: 1fr; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .chips { margin-left: 0; justify-content: flex-start; }
  .fight { grid-template-columns: 40px 1fr auto 1fr 40px; gap: 8px; }
  .fight img { width: 40px; height: 56px; }
}

/* ---------- live & interactive layer ---------- */
#scene { transform: scale(1.03); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.spot { position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 30%), rgba(255, 220, 160, .09), transparent 70%); }
.chip { transition: border-color .4s, background .4s; }
.chip.bump { animation: bump .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes bump { 20% { transform: translateY(-2px) scale(1.06); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); } }
.arrive { animation: arrive 1.1s cubic-bezier(.2, .9, .2, 1) both !important; }
@keyframes arrive {
  0% { opacity: 0; transform: translateY(-30px) scale(.8) rotate(-4deg); filter: brightness(2.2); }
  55% { opacity: 1; transform: translateY(4px) scale(1.05); filter: brightness(1.4); box-shadow: 0 0 0 2px var(--gold), 0 0 50px color-mix(in srgb, var(--gold) 55%, transparent); }
  100% { transform: none; filter: none; }
}
.scene-btn { margin-left: 4px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  background: rgba(255, 255, 255, .06); color: var(--ink); font: 600 13px Inter, sans-serif; transition: background .2s, transform .2s; }
.scene-btn:hover { background: color-mix(in srgb, var(--gold) 16%, transparent); transform: translateY(-1px); }

.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; cursor: pointer; position: relative; overflow: hidden;
  animation: toastIn .55s cubic-bezier(.2, .9, .2, 1.15); transition: opacity .45s, transform .45s; }
.toast::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 240, 200, .22) 50%, transparent 70%);
  transform: translateX(-120%); animation: sweep 1.2s .25s ease-out forwards; pointer-events: none; }
.toast img { width: 42px; height: 58px; object-fit: cover; border-radius: 5px; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.toast .emo { width: 42px; font-size: 28px; text-align: center; }
.toast small { display: block; font: 700 10px Silkscreen, monospace; letter-spacing: .12em; color: var(--gold); }
.toast b { display: block; font-size: 14px; line-height: 1.3; }
.toast span { display: block; color: var(--muted); font-size: 12px; }
.toast.t3, .toast.t4, .toast.t5, .toast.k-pot { box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent) inset, 0 0 26px color-mix(in srgb, var(--gold) 18%, transparent); }
.toast.out { opacity: 0; transform: translateX(40px); }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(.94); } }

.big-hit { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; text-align: center; cursor: pointer;
  background: radial-gradient(circle at 50% 45%, rgba(40, 24, 8, .55), rgba(8, 5, 3, .82)); animation: fade .35s; transition: opacity .6s; }
.big-hit.out { opacity: 0; }
.big-hit img { width: 220px; border-radius: 14px; position: relative; z-index: 1; animation: hitCard 1s cubic-bezier(.2, .9, .2, 1.2);
  box-shadow: 0 0 0 2px var(--gold), 0 0 80px rgba(255, 190, 60, .6), 0 30px 60px rgba(0, 0, 0, .7); }
.big-hit .emo { font-size: 110px; position: relative; z-index: 1; animation: hitCard 1s cubic-bezier(.2, .9, .2, 1.2); }
.big-hit h2 { margin: 22px 0 4px; font: 700 34px Silkscreen, monospace; color: var(--gold); text-shadow: 0 0 30px rgba(255, 180, 40, .8); position: relative; z-index: 1;
  animation: rise .7s .25s both; }
.big-hit p { margin: 0; color: var(--ink); font-size: 17px; position: relative; z-index: 1; animation: rise .7s .4s both; }
.big-hit .burst { position: absolute; left: 50%; top: 45%; width: 900px; height: 900px; margin: -450px 0 0 -450px; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 210, 120, .13) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 62%); mask: radial-gradient(circle, #000 10%, transparent 62%);
  animation: spin 14s linear infinite, fade .8s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hitCard { 0% { opacity: 0; transform: scale(.3) rotate(-12deg); filter: brightness(3); } 60% { opacity: 1; transform: scale(1.08) rotate(2deg); } 100% { transform: none; filter: none; } }

.coin { position: fixed; z-index: 45; width: 10px; height: 10px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff4b0, var(--gold) 45%, #b07800); box-shadow: 0 0 8px color-mix(in srgb, var(--gold) 70%, transparent);
  animation: coin 1.3s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes coin { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: 1; }
  45% { transform: translate(calc(var(--dx) * .6), calc(var(--dy) * -.5)) scale(1); } 100% { transform: translate(var(--dx), var(--dy)) scale(.8); opacity: 0; } }

.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.scene-tile { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .04); color: var(--ink); font: inherit; transition: transform .2s, border-color .2s, box-shadow .2s; }
.scene-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.scene-tile.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 24px color-mix(in srgb, var(--gold) 25%, transparent); }
.scene-tile canvas { width: 100%; aspect-ratio: 16 / 9; border-radius: 9px; image-rendering: pixelated; background: #000; }
.scene-tile small { color: var(--muted); font-size: 12px; }
.scene-tile.upload .plus { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 9px; font-size: 34px; color: var(--gold);
  border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent); background: color-mix(in srgb, var(--gold) 5%, transparent); }
.hint { color: var(--muted); margin-top: 16px; }
@media (max-width: 900px) { .scene-btn span { display: none; } .toasts { right: 16px; bottom: 16px; } }

/* ================= play on the web ================= */
.window { width: min(1100px, 100%); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .07); color: var(--ink); font: 700 14px Inter, sans-serif;
  transition: transform .15s, background .2s, box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.gold { background: linear-gradient(180deg, #ffd84a, #f2a900); color: #2a1a00; border-color: transparent; box-shadow: 0 8px 24px -8px rgba(255, 190, 40, .7); }
.btn.gold:hover { box-shadow: 0 12px 30px -8px rgba(255, 190, 40, .9); }
.btn.ghost { background: transparent; }
.btn.big { padding: 14px 28px; font-size: 17px; letter-spacing: .08em; }
.btn.armed { border-color: var(--red); background: rgba(239, 83, 80, .18); }
.btn small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gold { color: var(--gold); }

.pill { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 6px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); margin-left: auto; }
.pill img { width: 30px; height: 30px; border-radius: 50%; }
.pill b { font-size: 14px; }
.pill #pill-coins { font-weight: 800; color: var(--gold); padding-right: 4px; }
.pill .mini { border: 0; background: rgba(255, 255, 255, .08); color: var(--muted); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.pill.bump { animation: bump .8s; }
.login-btn { border: 0; cursor: pointer; padding: 8px 16px; border-radius: 999px; font: 700 14px Inter, sans-serif; color: #2a1a00;
  background: linear-gradient(180deg, #ffd84a, #f2a900); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); animation: callme 2.4s infinite; }
@keyframes callme { 70% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--gold) 0%, transparent); } }
.chips { margin-left: 0; }

.dock { margin-bottom: 26px; }
.dock-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.dock-head .daily { color: var(--gold); font-weight: 700; font-size: 14px; animation: rise .6s both; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px; border-radius: var(--r);
  cursor: pointer; color: var(--ink); font: inherit; text-align: left; border: 0; animation: rise .6s both;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1.2), box-shadow .25s; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 220, 150, .16), transparent 60%); opacity: 0; transition: opacity .3s; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent) inset, 0 18px 40px -16px rgba(255, 180, 60, .45); }
.tile:hover::before { opacity: 1; }
.tile .te { font-size: 30px; margin-bottom: 6px; transition: transform .3s; }
.tile:hover .te { transform: scale(1.15) rotate(-6deg); }
.tile b { font-size: 16px; }
.tile small { color: var(--muted); }
.tile.hot { box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent) inset; }
.tile.hot::after { content: ""; position: absolute; top: 14px; right: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: pulse 1.8s infinite; box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); }
.dock-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r); }
.dock-cta h3 { margin: 4px 0; font-size: 22px; }
.dock-cta p { margin: 0; color: var(--muted); }
.login-steps { display: grid; gap: 12px; }
.login-steps .step { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.login-steps .step span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--gold); color: #2a1a00; font-weight: 800; }
.login-steps p { margin: 0; }

/* packs */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; margin-top: 16px; }
.pack-slot { animation: rise .5s both; transition: opacity .4s, transform .4s; }
.pack-slot.gone { opacity: 0; transform: scale(.8); pointer-events: none; }
.pack { position: relative; aspect-ratio: 5 / 7.4; border-radius: 10px 10px 14px 14px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 14px; text-align: center; background: linear-gradient(160deg, #3a2a52, #1d1530 60%, #120d1e);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08) inset; transition: transform .3s; }
.pack::before, .pack::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 4px, transparent 4px 8px); }
.pack::before { top: 0; } .pack::after { bottom: 0; }
.pack .foil { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .22) 45%, rgba(255, 220, 150, .15) 52%, transparent 70%);
  background-size: 250% 100%; animation: foil 4s linear infinite; mix-blend-mode: screen; }
@keyframes foil { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.pack img { max-width: 86%; max-height: 38%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); position: relative; }
.pack b { position: relative; font-size: 13px; line-height: 1.25; }
.pack .tag { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font: 700 9px Silkscreen, monospace; letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; background: var(--gold); color: #2a1a00; font-style: normal; text-transform: uppercase; white-space: nowrap; }
.pack .mq { font: 700 60px Silkscreen, monospace; color: var(--gold); position: relative; text-shadow: 0 0 24px rgba(255, 190, 40, .7); }
.pack-slot:hover .pack, .shop-item:hover .pack { transform: translateY(-6px) rotate(-1.5deg); }
.opening { display: grid; place-items: center; min-height: 460px; }
.tear-zone { width: 240px; cursor: pointer; text-align: center; }
.tear-zone .pack.big { width: 240px; animation: hover 2.4s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-10px) rotate(1deg); } }
.hint-tap { color: var(--muted); animation: fade 1s .5s both; }
.tear-zone.tearing .pack { animation: shake .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake { 10%, 90% { transform: translateX(-2px) rotate(-1deg); } 20%, 80% { transform: translateX(4px) rotate(2deg); } 30%, 50%, 70% { transform: translateX(-8px) rotate(-3deg); } 40%, 60% { transform: translateX(8px) rotate(3deg); } }
.tear-zone.burst .pack { animation: tearOut .35s ease-in forwards; }
@keyframes tearOut { to { transform: scale(1.4); opacity: 0; filter: brightness(3); } }
.cback { width: 100%; height: 100%; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 40%, #3b2b1b, #1a120b 70%); border: 4px solid #6b4a24; box-shadow: inset 0 0 0 2px #2a1b0e, inset 0 0 30px rgba(255, 190, 80, .15); }
.cback span { font-size: 40px; filter: drop-shadow(0 0 10px rgba(255, 200, 80, .5)); }
.cback b { font: 700 9px Silkscreen, monospace; letter-spacing: .12em; color: var(--gold); }
.reveal .godline { text-align: center; font: 700 28px Silkscreen, monospace; margin: 0 0 14px; background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bff95, #6bc7ff, #c56bff); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .6s both; }
.spread { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.spread.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.flip { perspective: 900px; cursor: pointer; text-align: center; animation: deal .55s cubic-bezier(.2, .9, .2, 1.1) both; }
@keyframes deal { from { opacity: 0; transform: translateY(-80px) rotate(-12deg) scale(.6); } }
.flip .inner { position: relative; aspect-ratio: 63 / 88; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.flip:hover .inner { transform: translateY(-4px) rotateY(8deg); }
.flip.on .inner { transform: rotateY(180deg); }
.flip .side { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 10px; overflow: hidden; }
.flip .side.f { transform: rotateY(180deg); background: #000; }
.flip .side.f img { width: 100%; height: 100%; object-fit: cover; }
.flip .side .price { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 7px; background: rgba(0, 0, 0, .75); color: var(--gold); font-weight: 800; font-size: 12px; }
.flip .new, .flip .rev { position: absolute; top: 6px; font: 700 9px Silkscreen, monospace; padding: 3px 6px; border-radius: 5px; font-style: normal; }
.flip .new { left: 6px; background: var(--green); color: #062b09; } .flip .rev { right: 6px; background: var(--blue); color: #021a2e; }
.flip small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; opacity: 0; transition: opacity .4s .3s; }
.flip.on small { opacity: 1; }
.flip.hit.on .inner { animation: hitglow 1.6s ease-out; }
.flip.hit.on .side.f.t3 { box-shadow: 0 0 0 2px var(--purple), 0 0 30px rgba(171, 71, 188, .6); }
.flip.hit.on .side.f.t4 { box-shadow: 0 0 0 2px var(--gold), 0 0 36px color-mix(in srgb, var(--gold) 70%, transparent); }
.flip.hit.on .side.f.t5 { box-shadow: 0 0 0 2px #ff6b6b, 0 0 40px rgba(255, 107, 107, .8); }
@keyframes hitglow { 0% { filter: brightness(2.6); } 100% { filter: none; } }
.reveal-bar { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
#rev-sum b { color: var(--gold); }
.bulk .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 16px; }
.bulk .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd84a, #ff9f1a); transition: width .3s; box-shadow: 0 0 14px rgba(255, 190, 40, .8); }

/* collection & shop */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .search { flex: 1; min-width: 180px; width: auto; }
.sel { padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink); font: inherit; }
.tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 9px; cursor: pointer; font: 700 13px Inter, sans-serif; transition: background .2s, color .2s; }
.tabs button.on { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--ink); }
.shelf.grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.grade-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.grade-row .btn { flex-direction: column; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.shop-item { padding: 12px; border-radius: 16px; animation: rise .5s both; }
.shop-item.feat { box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent) inset; }
.shop-item.mystery .pack { background: linear-gradient(160deg, #5a3a10, #2b1a06 60%, #140c03); }
.shop-item.bought { animation: bought .9s; }
@keyframes bought { 30% { transform: scale(1.04); box-shadow: 0 0 0 2px var(--green), 0 0 30px rgba(102, 187, 106, .5); } }
.shop-item .row-btns .btn { padding: 8px 10px; font-size: 13px; }

/* grading */
.grading { display: grid; place-items: center; gap: 14px; padding: 10px 0; }
.slab-case { width: 250px; padding: 12px; border-radius: 14px; background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .25) inset, 0 30px 60px -20px rgba(0, 0, 0, .8); animation: slabIn .8s cubic-bezier(.2, .9, .2, 1.1); }
@keyframes slabIn { from { transform: translateY(-120px) rotate(-8deg); opacity: 0; } }
.slab-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; margin-bottom: 10px; border-radius: 8px; background: #f4f1ea; color: #b71c1c; font-weight: 800; }
.slab-top .gnum { font: 700 26px Silkscreen, monospace; color: #1a1a1a; }
.slab-case img { width: 100%; border-radius: 8px; display: block; }
.slab-case.great { box-shadow: 0 0 0 2px var(--gold) inset, 0 0 60px color-mix(in srgb, var(--gold) 55%, transparent); }
.slab-case.bad { filter: saturate(.6); }
#g-txt { text-align: center; }

/* battle */
.arena { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; min-height: 440px; padding: 10px; }
.arena.shake { animation: shake .4s; }
.fighter { position: relative; text-align: center; transition: transform .3s, filter .4s, opacity .4s; }
.fighter img, .fighter .cback-wrap { width: min(230px, 100%); aspect-ratio: 63 / 88; border-radius: 12px; object-fit: cover; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9); }
.fighter .cback-wrap { display: inline-block; }
.fighter img.pop { animation: hitCard .7s cubic-bezier(.2, .9, .2, 1.2); }
.fighter b { display: block; margin-top: 8px; }
.hp { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 0 auto 12px; width: min(230px, 100%); }
.hp i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #5be37d, #a6f06b); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.hp.low i { background: linear-gradient(90deg, #ff5a4f, #ff9a3c); }
.lunge-r { animation: lungeR .45s cubic-bezier(.3, .7, .3, 1); } .lunge-l { animation: lungeL .45s cubic-bezier(.3, .7, .3, 1); }
@keyframes lungeR { 40% { transform: translateX(46px) rotate(4deg) scale(1.05); } }
@keyframes lungeL { 40% { transform: translateX(-46px) rotate(-4deg) scale(1.05); } }
.hurt img { animation: hurt .45s; }
@keyframes hurt { 30% { filter: brightness(2.2) sepia(1) hue-rotate(-40deg) saturate(5); transform: translateX(-6px); } 60% { transform: translateX(6px); } }
.dmg { position: absolute; left: 50%; top: 35%; font: 700 30px Silkscreen, monospace; color: #ff5a4f; text-shadow: 0 3px 0 #000, 0 0 18px rgba(255, 80, 60, .7); pointer-events: none; animation: dmg 1s ease-out forwards; }
.dmg.miss { color: #cfd8dc; text-shadow: 0 3px 0 #000; }
@keyframes dmg { from { transform: translate(-50%, 0) scale(.6); opacity: 0; } 20% { transform: translate(-50%, -10px) scale(1.2); opacity: 1; } to { transform: translate(-50%, -70px) scale(1); opacity: 0; } }
.vsbig { font: 700 44px Silkscreen, monospace; color: var(--gold); text-shadow: 0 0 26px rgba(255, 170, 40, .8); animation: pulseText 1.6s infinite; }
@keyframes pulseText { 50% { transform: scale(1.12); } }
.fighter.champ img { box-shadow: 0 0 0 3px var(--gold), 0 0 60px color-mix(in srgb, var(--gold) 60%, transparent); transform: scale(1.05); }
.fighter.ko { filter: grayscale(1) brightness(.6); transform: rotate(-6deg) translateY(10px); }
.log { grid-column: 1 / -1; max-height: 90px; overflow: hidden; color: var(--muted); font-size: 13px; text-align: center; }
.log p { margin: 2px 0; animation: rise .4s both; }
.result { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; border-radius: 16px;
  background: radial-gradient(circle, rgba(20, 12, 6, .7), rgba(10, 6, 3, .92)); animation: fade .4s; }
.result h2 { margin: 0; font: 700 48px Silkscreen, monospace; animation: hitCard .7s both; }
.result.win h2 { color: var(--gold); text-shadow: 0 0 40px rgba(255, 190, 40, .8); }
.result.lose h2 { color: #ff8a80; }
.result p { max-width: 520px; }

/* casino */
.casino-box { text-align: center; }
.reels { display: flex; justify-content: center; gap: 10px; margin: 14px 0 18px; }
.reel { width: 86px; height: 96px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #0d0906, #241910 50%, #0d0906);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent), inset 0 10px 20px rgba(0, 0, 0, .8); display: grid; place-items: center; }
.reel .strip { font-size: 46px; display: flex; flex-direction: column; align-items: center; }
.reel .strip span { height: 96px; display: grid; place-items: center; }
.reel .strip.spin { animation: reel .25s linear infinite; filter: blur(1.5px); }
@keyframes reel { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.reel .land { animation: land .4s cubic-bezier(.2, .9, .2, 1.4); }
@keyframes land { from { transform: translateY(-40px); } }
.coin3d { position: relative; width: 110px; height: 110px; margin: 10px auto 22px; transform-style: preserve-3d; }
.coin3d .cf { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font: 700 42px Silkscreen, monospace; backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #fff4b0, var(--gold) 45%, #9c6b00); color: #5a3a00; box-shadow: inset 0 0 0 6px rgba(120, 80, 0, .45); }
.coin3d .cf.b { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #f0f0f0, #b0b0b0 45%, #5a5a5a); color: #333; }
.coin3d.land-a { animation: flipA 1.6s cubic-bezier(.2, .7, .2, 1) forwards; }
.coin3d.land-b { animation: flipB 1.6s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes flipA { 0% { transform: translateY(0) rotateY(0); } 40% { transform: translateY(-80px) rotateY(1080deg); } 100% { transform: translateY(0) rotateY(1800deg); } }
@keyframes flipB { 0% { transform: translateY(0) rotateY(0); } 40% { transform: translateY(-80px) rotateY(1080deg); } 100% { transform: translateY(0) rotateY(1980deg); } }

/* quests */
.quests { display: grid; gap: 12px; }
.quest { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; animation: rise .5s both; }
.quest small { display: block; color: var(--gold); }
.qbar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.qbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd84a, #ff9f1a); border-radius: 99px; animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.quest.done { opacity: .75; }
.quest.done .qbar i { background: linear-gradient(90deg, #5be37d, #a6f06b); }
@media (max-width: 900px) {
  .arena { grid-template-columns: 1fr 1fr; } .vsbig { display: none; }
  .quest { grid-template-columns: 1fr; } .pill b { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* bright daytime scenes get a soft shade so panels and text stay crisp */
body[data-scene="beach"] .vignette::after, body[data-scene="route"] .vignette::after, body[data-scene="custom"] .vignette::after {
  content: ""; position: absolute; inset: 0; background: rgba(14, 10, 7, .38); }
body[data-scene="japan"] .vignette::after { content: ""; position: absolute; inset: 0; background: rgba(14, 10, 7, .2); }

/* sealed products */
.prod-btn { width: 100%; margin-top: 8px; font-size: 13px; padding: 8px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.prod { padding: 14px; border-radius: 16px; text-align: center; animation: rise .5s both; }
.prod p { color: var(--muted); font-size: 13px; min-height: 36px; }
.pbox { position: relative; height: 170px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px;
  background: linear-gradient(160deg, #2b3f6b, #15203a); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1); overflow: hidden; transition: transform .3s; }
.pbox::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .18) 48%, transparent 66%); background-size: 250% 100%; animation: foil 5s linear infinite; }
.pbox .lid { position: absolute; left: 0; right: 0; top: 0; height: 26%; background: rgba(255, 255, 255, .1); border-bottom: 2px solid rgba(0, 0, 0, .35); transform-origin: top; transition: transform .6s cubic-bezier(.5, -.4, .3, 1.4); }
.pbox .pe { font-size: 34px; position: relative; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.pbox img { max-width: 80%; max-height: 34%; object-fit: contain; position: relative; }
.pbox b { position: relative; font-size: 14px; }
.pbox.k-etb { background: linear-gradient(160deg, #7b2ff7, #2a0f5c); }
.pbox.k-premium { background: linear-gradient(160deg, #b8860b, #4a3300); }
.pbox.k-exbox { background: linear-gradient(160deg, #c2185b, #4a0a24); }
.pbox.k-poster { background: linear-gradient(160deg, #00897b, #003d36); }
.pbox.k-tin { background: linear-gradient(160deg, #78909c, #263238); border-radius: 40px; }
.prod:hover .pbox { transform: translateY(-6px) rotate(-1.5deg); }
.unbox { width: 280px; cursor: pointer; text-align: center; }
.unbox .pbox { height: 240px; animation: hover 2.4s ease-in-out infinite; }
.unbox.opening-lid .pbox { animation: shake .5s both; }
.unbox.opening-lid .lid { transform: rotateX(110deg) translateY(-30px); transition-delay: .45s; }
.boxline { text-align: center; font: 700 24px Silkscreen, monospace; color: var(--gold); margin: 0 0 12px; animation: rise .5s both; }
.box-packs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.mini-pack { width: 34px; height: 50px; border-radius: 5px; background: linear-gradient(160deg, #3a2a52, #1d1530); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), 0 6px 14px rgba(0, 0, 0, .5); animation: deal .5s both; }
.spread.promos { grid-template-columns: repeat(auto-fit, minmax(150px, 200px)); justify-content: center; }
.flip .rev.promo { background: var(--gold); color: #2a1a00; }

/* ================= live chat, pranks & live pulls ================= */
.chat-fab { position: fixed; right: 22px; top: 50%; z-index: 25; transform: translateY(-50%); display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; color: var(--ink); font: 700 14px Inter, sans-serif;
  background: rgba(26, 19, 15, .85); backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: transform .2s, background .2s; }
.chat-fab:hover { transform: translateY(-50%) scale(1.05); background: rgba(60, 42, 20, .9); }
.chat-fab.on { opacity: 0; pointer-events: none; }
.chat-fab.game { animation: callme 1.6s infinite; border-color: var(--gold); }
.chat-fab .badge { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff;
  font: 800 11px/20px Inter, sans-serif; font-style: normal; text-align: center; animation: bump .6s; }
.chat { position: fixed; right: 16px; top: 84px; bottom: 16px; z-index: 26; width: min(380px, calc(100vw - 32px)); display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden; animation: chatIn .35s cubic-bezier(.2, .9, .2, 1.1); background: rgba(22, 16, 12, .9); backdrop-filter: blur(16px); }
@keyframes chatIn { from { opacity: 0; transform: translateX(40px); } }
.chat header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat header small { color: var(--green); font-weight: 700; }
.chat header .close { margin-left: auto; }
.msgs { flex: 1; overflow-y: auto; padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.msg { display: flex; gap: 9px; animation: msgIn .35s cubic-bezier(.2, .9, .2, 1.1); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.msg .av { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: 13px; }
.msg .mb { min-width: 0; flex: 1; }
.msg .mh { display: flex; gap: 8px; align-items: baseline; }
.msg .who { font-weight: 800; font-size: 13px; color: var(--gold); cursor: pointer; text-decoration: none; }
.msg .who:hover { text-decoration: underline; }
.msg .who.sys { color: var(--green); cursor: default; }
.msg time { color: var(--muted); font-size: 11px; }
.msg p { margin: 2px 0 0; word-wrap: break-word; font-size: 14px; }
.msg.mine .mb p:not(.fxline) { color: #fff6dc; }
.fxline { color: #ffcf8a; font-style: italic; } .sysline { color: var(--muted); } .winline { color: var(--gold); font-weight: 700; } .wtpline b { color: var(--gold); }
.muted { color: var(--muted); }
.msg .btn { margin-top: 6px; padding: 7px 12px; font-size: 13px; }
.flexcard { width: 110px; border-radius: 7px; margin-top: 6px; cursor: pointer; transition: transform .2s; box-shadow: 0 10px 20px rgba(0, 0, 0, .5); }
.flexcard:hover { transform: rotate(-3deg) scale(1.05); }
.flexcard.t3 { box-shadow: 0 0 0 2px var(--purple), 0 0 20px rgba(171, 71, 188, .5); } .flexcard.t4, .flexcard.t5 { box-shadow: 0 0 0 2px var(--gold), 0 0 22px color-mix(in srgb, var(--gold) 50%, transparent); }
.sil { width: 110px; margin-top: 6px; border-radius: 8px; filter: brightness(0) drop-shadow(0 0 10px rgba(120, 190, 255, .6)); background: radial-gradient(circle, #6ab0ff, #1d3f8a); }
.reveal-img { width: 110px; margin-top: 6px; border-radius: 8px; animation: hitCard .7s both; }
.wtp { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(60, 120, 255, .18), transparent); animation: msgIn .4s; }
.wtp .sil { width: 54px; margin: 0; }
.wtp b { display: block; color: #9fd0ff; font: 700 12px Silkscreen, monospace; }
.wtp small { color: var(--muted); }
.tbar { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.tbar i { display: block; height: 100%; background: linear-gradient(90deg, #6ab0ff, #b388ff); transition: width .25s linear; }
.quick { display: flex; gap: 4px; padding: 8px 10px 0; flex-wrap: wrap; }
.quick button { border: 1px solid var(--line); background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 6px 8px; font-size: 16px; cursor: pointer; transition: transform .15s, background .2s; }
.quick button:hover { transform: translateY(-2px) scale(1.1); background: color-mix(in srgb, var(--gold) 15%, transparent); }
#chat-form { display: flex; gap: 8px; padding: 10px; }
#chat-in { flex: 1; min-width: 0; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--ink); font: inherit; outline: none; }
#chat-in:focus { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.pmenu { position: fixed; z-index: 60; width: 260px; padding: 12px; border-radius: 14px; background: rgba(28, 20, 14, .97); animation: pop .2s; display: grid; gap: 8px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pgrid button { font-size: 22px; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); cursor: pointer; transition: transform .15s; }
.pgrid button:hover { transform: scale(1.15) rotate(-6deg); background: color-mix(in srgb, var(--gold) 15%, transparent); }
.prow { display: flex; gap: 6px; }
.prow input { width: 80px; min-width: 0; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--ink); }
.prow .btn { flex: 1; padding: 8px; font-size: 13px; }
.btn.wide { width: 100%; font-size: 13px; }
.proj { position: fixed; z-index: 70; left: 0; top: 0; font-size: 46px; pointer-events: none; animation: proj 1.2s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes proj { 0% { transform: translate(var(--sx), var(--sy)) rotate(0); } 55% { transform: translate(50vw, 30vh) rotate(540deg) scale(1.4); } 100% { transform: translate(50vw, 48vh) rotate(720deg) scale(2.6); opacity: 0; } }
.splat { position: fixed; inset: 0; z-index: 65; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: auto; cursor: pointer; transition: opacity .7s; }
.splat span { font-size: 180px; animation: splat .5s cubic-bezier(.2, .9, .2, 1.3); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.splat p { margin: 0; padding: 10px 18px; border-radius: 12px; background: rgba(0, 0, 0, .7); font-weight: 800; font-size: 18px; animation: rise .5s .2s both; }
.splat.s-tomato span, .splat.s-pie span, .splat.s-slime span, .splat.s-berry span { animation: splat .5s cubic-bezier(.2, .9, .2, 1.3), drip 2.6s .5s ease-in forwards; }
.splat.out { opacity: 0; }
@keyframes splat { from { transform: scale(3); opacity: 0; } 60% { transform: scale(.9) rotate(-8deg); opacity: 1; } }
@keyframes drip { to { transform: translateY(40px) scaleY(1.25); } }
body.quake { animation: quake .9s; }
@keyframes quake { 10%, 50%, 90% { transform: translate(-10px, 6px); } 30%, 70% { transform: translate(10px, -6px); } }
.conf { position: fixed; top: -20px; z-index: 66; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; font-size: 22px; animation: conf 2.4s ease-in forwards; }
@keyframes conf { to { transform: translateY(110vh) rotate(720deg); } }
.pullfeed { margin-bottom: 26px; }
.live-tag { color: var(--red); font: 700 11px Silkscreen, monospace; letter-spacing: .1em; animation: shaft 1.4s infinite; margin-left: 6px; }
.pf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px; padding: 12px; border-radius: var(--r); max-height: 300px; overflow-y: auto; }
.pfr { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid transparent; }
.pfr img { width: 30px; height: 42px; object-fit: cover; border-radius: 4px; flex: none; }
.pfr div { min-width: 0; flex: 1; }
.pfr b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfr small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pfr .who { color: var(--ink); cursor: pointer; font-weight: 700; }
.pfr .pp { font-weight: 800; font-size: 13px; color: var(--muted); flex: none; white-space: nowrap; }
.pfr.t3 { border-color: rgba(171, 71, 188, .4); } .pfr.t3 .pp { color: #d58ae6; }
.pfr.t4, .pfr.t5 { border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: color-mix(in srgb, var(--gold) 7%, transparent); } .pfr.t4 .pp, .pfr.t5 .pp { color: var(--gold); }
.pfr.fresh { animation: pfIn .7s cubic-bezier(.2, .9, .2, 1.1); }
@keyframes pfIn { 0% { opacity: 0; transform: translateX(-30px); background: color-mix(in srgb, var(--gold) 30%, transparent); } 100% { transform: none; } }
.tiles { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1300px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .chat-fab { top: auto; bottom: 16px; right: 16px; transform: none; } .chat-fab:hover { transform: scale(1.05); } .chat { top: 70px; } .chat-fab span { display: none; } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
[hidden] { display: none !important; }

/* ================= performance pass: everything below animates on the GPU (transform / opacity only) ================= */
.glass { backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(160deg, rgba(255, 235, 200, .07), transparent 45%), rgba(22, 16, 12, .8); }
.chat, .chat-fab { backdrop-filter: none; -webkit-backdrop-filter: none; }
.chat { background: rgba(20, 14, 10, .95); }
.window-layer { backdrop-filter: blur(4px); }
#scene { transition: none; will-change: transform; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; will-change: transform; }
.shafts { mix-blend-mode: normal; z-index: -2; }
.shafts i { filter: none; width: 22vw; transform: skewX(-24deg) translateZ(0); will-change: opacity, transform;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 160, .14) 35%, rgba(255, 236, 190, .2) 50%, rgba(255, 226, 160, .14) 65%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  animation: shaft2 11s ease-in-out infinite; }
@keyframes shaft2 { 0%, 100% { opacity: .45; transform: skewX(-24deg) translateX(-2vw); } 50% { opacity: 1; transform: skewX(-21deg) translateX(2vw); } }
body[data-scene="beach"] .shafts, body[data-scene="route"] .shafts { opacity: .5; }
.spot { position: fixed; left: 0; top: 0; right: auto; bottom: auto; inset: auto; width: 900px; height: 900px; z-index: -1; pointer-events: none; will-change: transform;
  background: radial-gradient(circle, rgba(255, 220, 160, .1), rgba(255, 220, 160, .03) 40%, transparent 70%); }
/* foil sheen: a moving gradient strip (transform), only while hovered - not 150 packs repainting forever */
.pack .foil { inset: 0 -100%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .28) 49%, rgba(255, 220, 150, .18) 52%, transparent 58%);
  background-size: auto; mix-blend-mode: normal; transform: translateX(-35%); animation: foil2 2.4s linear infinite paused; }
.pack-slot:hover .pack .foil, .shop-item:hover .pack .foil, .tear-zone .pack .foil { animation-play-state: running; }
@keyframes foil2 { to { transform: translateX(35%); } }
.pbox::after { inset: 0 -100%; background-size: auto; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .22) 50%, transparent 58%);
  transform: translateX(-35%); animation: foil2 3s linear infinite paused; }
.prod:hover .pbox::after, .unbox .pbox::after { animation-play-state: running; }
/* pulsing rings via transform instead of animating box-shadow */
.login-btn { animation: none; position: relative; }
.login-btn::after, .chat-fab.game::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid color-mix(in srgb, var(--gold) 70%, transparent);
  animation: ring 2s ease-out infinite; pointer-events: none; }
.chat-fab.game { animation: none; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.tile.hot::after { box-shadow: none; animation: dotpulse 1.8s ease-in-out infinite; }
@keyframes dotpulse { 50% { transform: scale(1.6); opacity: .5; } }
.tile, .tcg .face, .pack, .pbox, .btn, .flip .inner { backface-visibility: hidden; }
/* no will-change on hover: it made the browser stretch a picture of the card for the tilt + zoom (blurry) instead of redrawing it sharp */
#pulls, #feed, .pullfeed { content-visibility: auto; contain-intrinsic-size: 700px; }
.reel .strip.spin { filter: none; }
/* real booster-pack photos */
.pack.has-art { background: none; box-shadow: none; overflow: visible; padding: 0; }
.pack.has-art::before, .pack.has-art::after { display: none; }
.pack.has-art .fallback { display: none; }
.pack .fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; text-align: center; }
.packimg { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .65)); }
.pack.has-art b.pname { position: absolute; left: 0; right: 0; bottom: -22px; font-size: 12px; color: var(--muted); }
.pack-slot { padding-bottom: 6px; }
.pack-slot .row-btns, .shop-item .row-btns { margin-top: 26px; }

.qty { margin-top: 26px; display: grid; gap: 8px; }
.stepper { display: flex; align-items: stretch; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.stepper button { border: 0; background: transparent; color: var(--ink); font: 800 16px Inter, sans-serif; width: 34px; cursor: pointer; transition: background .15s; }
.stepper button:hover { background: color-mix(in srgb, var(--gold) 15%, transparent); }
.stepper .mx { width: auto; padding: 0 9px; font-size: 11px; letter-spacing: .06em; color: var(--gold); border-left: 1px solid var(--line); }
.stepper input { flex: 1; min-width: 0; width: 40px; text-align: center; border: 0; background: transparent; color: var(--ink); font: 800 15px Inter, sans-serif; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn.cant { opacity: .55; }
.shop-item .qty .btn { padding: 9px 10px; font-size: 13px; }

.pack .foil { opacity: 0; transition: opacity .3s; }
.pack-slot:hover .pack .foil, .shop-item:hover .pack .foil, .tear-zone .pack .foil { opacity: 1; }
.pack.has-art { transition: transform .35s cubic-bezier(.2, .8, .2, 1.2), filter .35s; }
.pack-slot:hover .pack.has-art, .shop-item:hover .pack.has-art { filter: brightness(1.12); }
.pbox::after { opacity: 0; transition: opacity .3s; }
.prod:hover .pbox::after, .unbox .pbox::after { opacity: 1; }

/* =====================================================================================
   v2 DESIGN LAYER - readable, crisp, professional. Pixel font only for display moments.
   ===================================================================================== */
:root { --muted: #cdbfa9; --ink: #fbf6ec; --line: rgba(255, 220, 170, .14); --panel: rgba(20, 14, 10, .86); --r: 16px; }
body { font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: .005em; }
.glass { background: linear-gradient(180deg, rgba(255, 238, 210, .055), rgba(255, 238, 210, 0) 60%), var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9); }
.section-title { font: 800 19px/1.2 Inter, sans-serif; letter-spacing: -.01em; color: var(--ink); margin: 6px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title span { font-size: 18px; }
.kicker, .toast small, .wtp b, .menu-title, .live-tag { font: 800 11px/1.2 Inter, sans-serif !important; letter-spacing: .14em; text-transform: uppercase; }
.kicker { color: var(--gold); }
.hero-card h3 { font: 800 21px/1.25 Inter, sans-serif; letter-spacing: -.01em; }
.hero-card p, .hint, small { color: var(--muted); }
.hint { font-size: 14px; }
.hint.center, .center { text-align: center; }
.hint.lead { margin-top: 0; }
kbd { display: inline-block; padding: 1px 6px; margin-left: 4px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .25); border-bottom-width: 2px; font: 700 11px/1.5 Inter, sans-serif; color: inherit; opacity: .8; }
.tile kbd { position: absolute; right: 12px; bottom: 12px; opacity: .35; margin: 0; }
.tile:hover kbd { opacity: .7; }
.daily { font-size: 14px !important; }

/* windows: snappy spring in, readable header */
.window { animation: winIn .26s cubic-bezier(.2, .9, .3, 1.04) both; background: rgba(18, 13, 9, .97); border: 1px solid var(--line); }
@keyframes winIn { from { opacity: 0; transform: translateY(14px) scale(.975); } }
.window-layer { animation: fade .18s both; background: rgba(6, 4, 3, .62); }
.window-bar { padding: 16px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 220, 160, .05), transparent); }
.window-title { font: 800 18px/1.2 Inter, sans-serif !important; letter-spacing: -.01em; color: var(--ink) !important; }
.window-body { padding: 22px 24px 26px; }
.box { padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.box h4, h4 { margin: 0 0 12px; font: 800 12px/1.2 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
h4.mt { margin-top: 20px; }
.stat small { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.stat b { font-size: 20px; letter-spacing: -.01em; }
.stat b.sm { font-size: 15px; }
.btn { font-weight: 700; letter-spacing: .01em; min-height: 40px; }
.btn kbd { border-color: currentColor; }
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state span { font-size: 54px; display: block; }
.empty-state h3 { margin: 8px 0 4px; font-size: 20px; }
.empty-state p { color: var(--muted); margin: 0 0 16px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.skeleton-grid i { aspect-ratio: 63 / 88; border-radius: 12px; background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 70%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton-grid.tall i { aspect-ratio: 3 / 4; }
@keyframes shimmer { to { background-position: -150% 0; } }
.muted { color: var(--muted); }
.sumline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px; font-size: 16px; }
.sumline b { color: var(--gold); font-size: 20px; }
.sumline .dot { color: var(--muted); }
.card-detail { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .card-detail { grid-template-columns: 1fr; } }
.tcg .meta b { font-size: 13.5px; }
.tcg .meta span { font-size: 12.5px; }

/* FX layers */
.fx-overlay { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; }
.fx-flash { position: fixed; inset: 0; z-index: 79; pointer-events: none; mix-blend-mode: screen; }
.fx-rays { position: fixed; z-index: 78; width: 900px; height: 900px; pointer-events: none; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(rgba(var(--c), .2) 0 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 60%); mask: radial-gradient(circle, #000 8%, transparent 60%); }
.fx-coin { position: fixed; left: 0; top: 0; z-index: 81; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff6c0, var(--gold) 45%, #a87000); box-shadow: 0 0 10px rgba(255, 200, 40, .8); }
.spot-card { position: fixed; inset: 0; z-index: 77; display: grid; place-items: center; cursor: pointer; background: radial-gradient(circle, rgba(30, 18, 6, .55), rgba(6, 4, 2, .9)); }
.spot-card .sc-inner { text-align: center; perspective: 1000px; }
.spot-card img { width: min(300px, 70vw); border-radius: 16px; box-shadow: 0 0 0 2px var(--gold), 0 0 90px rgba(255, 190, 60, .55), 0 40px 80px rgba(0, 0, 0, .8); }
.spot-card h2 { margin: 22px 0 4px; font: 700 38px/1 Silkscreen, monospace; color: var(--gold); text-shadow: 0 0 30px rgba(255, 180, 40, .8); animation: rise .6s .25s both; }
.spot-card p { margin: 0; font-size: 18px; animation: rise .6s .35s both; }
.spot-card p b { color: var(--gold); }
.fly-ghost { position: fixed; z-index: 76; pointer-events: none; margin: 0; }

/* ---------- pack opening ---------- */
.opening { position: relative; min-height: 500px; display: grid; align-content: start; gap: 18px; }
.tear-stage { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; z-index: 2; }
.tear { position: relative; width: 250px; aspect-ratio: 5 / 7.4; cursor: pointer; animation: hover 2.6s ease-in-out infinite; }
.tear .half { position: absolute; inset: 0; will-change: transform; }
.tear .half .pack { width: 100%; height: 100%; }
.tear .half.top { clip-path: inset(0 0 80% 0); z-index: 2; }
.tear .half.bot { clip-path: inset(20% 0 0 0); }
.tear .aura { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 120, .35), transparent 60%); opacity: .6; transform: scale(.8); transition: opacity .4s, transform .6s; pointer-events: none; }
.tear.god .aura { background: radial-gradient(circle, rgba(255, 140, 220, .45), rgba(120, 180, 255, .2) 40%, transparent 65%); opacity: .9; }
.tear .leak { position: absolute; left: 4%; right: 4%; top: 20%; height: 3px; margin-top: -1px; border-radius: 3px; z-index: 3; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff6d0, #ffd56a, #fff6d0, transparent); box-shadow: 0 0 18px 6px rgba(255, 214, 120, .7); transition: opacity .5s; }
.tear.charging { animation: none; }
.tear.charging .aura { opacity: 1; transform: scale(1.25); }
.tear.charging .leak { opacity: 1; }
.tear.ripped { animation: none; }
.tear.ripped .leak, .tear.ripped .aura { opacity: 0; }
.hint-tap { margin-top: 34px; color: var(--muted); animation: fade 1s .4s both; }
.spread { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; perspective: 1400px; }
.spread.small { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.godline { grid-column: 1 / -1; text-align: center; font: 700 30px Silkscreen, monospace; margin: 0; background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bff95, #6bc7ff, #c56bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rcard { cursor: pointer; text-align: center; will-change: transform; }
.rc-inner { position: relative; aspect-ratio: 63 / 88; transform-style: preserve-3d; transition: transform .25s; }
.rcard:not(.on):hover .rc-inner { transform: translateY(-6px) rotateY(10deg); }
.rc-back, .rc-front { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 11px; overflow: hidden; }
.rc-front { transform: rotateY(180deg); background: #000; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .9); }
.rc-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcard.on.t3 .rc-front { box-shadow: 0 0 0 2px rgb(190, 110, 255), 0 0 34px rgba(190, 110, 255, .55); }
.rcard.on.t4 .rc-front { box-shadow: 0 0 0 2px var(--gold), 0 0 42px color-mix(in srgb, var(--gold) 65%, transparent); }
.rcard.on.t5 .rc-front { box-shadow: 0 0 0 2px #ff6b5a, 0 0 46px rgba(255, 107, 90, .75); }
.rc-back::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(var(--tc), .65), transparent 70%); }
.rcard.tease .rc-back::after { animation: tease 1.1s ease-in-out infinite; }
.rcard.tease .rc-back { animation: wiggle 2.4s ease-in-out infinite; }
@keyframes tease { 50% { opacity: 1; } }
@keyframes wiggle { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-2deg); } 90% { transform: rotate(2deg); } 95% { transform: rotate(-1deg); } }
.badge { position: absolute; top: 7px; font: 800 9.5px/1 Inter, sans-serif; letter-spacing: .08em; padding: 4px 6px; border-radius: 5px; font-style: normal; }
.badge.new { left: 7px; background: var(--green); color: #052a09; }
.badge.rev { right: 7px; background: var(--blue); color: #021a2e; }
.badge.promo { right: 7px; background: var(--gold); color: #2a1a00; }
.rc-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 12.5px; opacity: 0; transition: opacity .3s .2s; }
.rcard.on .rc-meta { opacity: 1; }
.rc-meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.rc-price { color: var(--gold); font-weight: 800; }
.reveal-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.bulk-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 15px; }
.bulk-head b { color: var(--gold); }
.bulk .bar i { width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .3s; }

/* ---------- slab reveal ---------- */
.grading { display: grid; justify-items: center; gap: 18px; padding: 6px 0; }
.slabx { width: 270px; padding: 12px; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .07));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28), 0 30px 60px -20px rgba(0, 0, 0, .85); transition: box-shadow .5s; }
.slab-label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 10px; border-radius: 8px; background: #f4f1ea; color: #222; }
.slab-label .co { font-weight: 900; color: #b71c1c; font-size: 14px; }
.slab-label .desc { font-size: 11px; font-weight: 700; line-height: 1.2; overflow: hidden; }
.slab-label .desc small { display: block; color: #666; font-weight: 600; }
.slab-label .g { text-align: center; line-height: 1; }
.slab-label .g b { display: block; font: 700 26px Silkscreen, monospace; color: #111; }
.slab-label .g small { font-size: 8px; font-weight: 800; letter-spacing: .1em; color: #666; }
.slab-win { position: relative; overflow: hidden; border-radius: 8px; }
.slab-win img { width: 100%; display: block; }
.slab-win .scan { position: absolute; left: 0; right: 0; top: 0; height: 10%; opacity: 0; background: linear-gradient(180deg, transparent, rgba(120, 220, 255, .7), transparent); box-shadow: 0 0 20px rgba(120, 220, 255, .8); }
.slabx.great { box-shadow: inset 0 0 0 2px var(--gold), 0 0 70px color-mix(in srgb, var(--gold) 50%, transparent), 0 30px 60px -20px rgba(0, 0, 0, .85); }
.slabx.bad { filter: saturate(.55) brightness(.9); }
.g-result { min-height: 90px; text-align: center; }

/* ---------- battle ---------- */
.battle-intro { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.battle-intro h3 { margin: 0 0 4px; font-size: 20px; }
.battle-intro p { margin: 0; color: var(--muted); max-width: 640px; }
.meter { width: 180px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, #ffd84a, #ff9f1a); }
.arena2 { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 20px; min-height: 520px; padding: 6px 4px 0; overflow: hidden; }
.side { display: grid; justify-items: center; gap: 10px; }
.hpw { width: min(250px, 100%); }
.hpn { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.hpn span { font-weight: 800; font-variant-numeric: tabular-nums; }
.hpbar { position: relative; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .09); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); }
.hpbar i { position: absolute; inset: 0; transform-origin: left; border-radius: inherit; }
.hpbar .ghost { background: rgba(255, 255, 255, .75); transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.hpbar .hp { background: linear-gradient(90deg, #4fd672, #a6f06b); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.hpbar .hp.low { background: linear-gradient(90deg, #ff5a4f, #ff9a3c); }
.fcard { position: relative; width: min(230px, 100%); aspect-ratio: 63 / 88; border-radius: 12px; will-change: transform; }
.fcard img, .fcard .cback { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .95); display: block; }
.hitflash { position: absolute; inset: 0; border-radius: 12px; background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 120, 80, .5)); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.fname { font-weight: 700; font-size: 14px; }
.vs2 span { display: block; font: 700 46px Silkscreen, monospace; color: var(--gold); text-shadow: 0 0 26px rgba(255, 170, 40, .8); }
.callout { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font: 700 34px Silkscreen, monospace; color: #fff; opacity: 0; pointer-events: none; white-space: nowrap; text-shadow: 0 4px 0 #000, 0 0 30px rgba(255, 140, 60, .9); z-index: 3; }
.callout.crit { color: #ffb347; } .callout.ko { color: #ff6b5a; font-size: 54px; }
.dmg2 { position: fixed; left: 0; top: 0; z-index: 82; pointer-events: none; font: 700 34px Silkscreen, monospace; color: #ff5a4f; text-shadow: 0 3px 0 #000, 0 0 18px rgba(255, 80, 60, .8); }
.dmg2.crit { color: var(--gold); font-size: 44px; }
.dmg2.miss { color: #e0e6ea; font-size: 26px; }
.blog { grid-column: 1 / -1; height: 66px; overflow: hidden; text-align: center; color: var(--muted); font-size: 13px; }
.blog p { margin: 2px 0; }
.arena2 .result { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; text-align: center; background: radial-gradient(circle, rgba(20, 12, 6, .72), rgba(10, 6, 3, .93)); }
.arena2 .result h2 { margin: 0; font: 700 54px Silkscreen, monospace; }
.arena2 .result.win h2 { color: var(--gold); text-shadow: 0 0 40px rgba(255, 190, 40, .8); }
.arena2 .result.lose h2 { color: #ff8a80; }
.arena2 .result p { max-width: 520px; font-size: 16px; }

/* ---------- casino ---------- */
.casino-stage { display: grid; place-items: center; min-height: 420px; padding: 6px 0 4px; }
.slotm, .flipm, .wheelm, .slabm { display: grid; justify-items: center; gap: 18px; width: 100%; max-width: 520px; }
.slot-top { font: 700 14px Silkscreen, monospace; letter-spacing: .12em; color: var(--gold); padding: 8px 18px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 8%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.reels2 { position: relative; display: flex; gap: 12px; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, #2a1c10, #120c07); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent), 0 24px 50px -20px rgba(0, 0, 0, .9); transition: box-shadow .3s; }
.reels2.tension { box-shadow: inset 0 0 0 2px #ff9f1a, 0 0 40px rgba(255, 159, 26, .55), 0 24px 50px -20px rgba(0, 0, 0, .9); }
.reel2 { width: 104px; height: 104px; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, #0b0806, #2b1f14 50%, #0b0806); box-shadow: inset 0 12px 18px rgba(0, 0, 0, .8), inset 0 -12px 18px rgba(0, 0, 0, .8); }
.strip2 { display: flex; flex-direction: column; will-change: transform; }
.strip2 span { height: 104px; display: grid; place-items: center; font-size: 54px; }
.payline { position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: rgba(255, 90, 70, .5); pointer-events: none; }
.slotm.won .reels2 { box-shadow: inset 0 0 0 2px var(--gold), 0 0 50px color-mix(in srgb, var(--gold) 55%, transparent), 0 24px 50px -20px rgba(0, 0, 0, .9); }
.slotm.won .payline { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.coin-stage { position: relative; height: 300px; width: 220px; display: grid; place-items: end center; perspective: 800px; }
.coin4 { position: relative; width: 130px; height: 130px; margin-bottom: 30px; transform-style: preserve-3d; will-change: transform; }
.cf4 { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font: 700 50px Silkscreen, monospace; backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #fff4b0, var(--gold) 45%, #9c6b00); color: #5a3a00; box-shadow: inset 0 0 0 8px rgba(120, 80, 0, .45), inset 0 0 0 11px rgba(255, 240, 180, .5); }
.cf4.b { transform: rotateX(180deg); background: radial-gradient(circle at 35% 30%, #f6f6f6, #b4b4b4 45%, #555); color: #2d2d2d; box-shadow: inset 0 0 0 8px rgba(60, 60, 60, .4), inset 0 0 0 11px rgba(255, 255, 255, .5); }
.cshadow { position: absolute; bottom: 14px; width: 120px; height: 18px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .6), transparent 70%); opacity: .5; }
.wheel-wrap { position: relative; width: 320px; height: 320px; }
.wheel { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 8px #2a1c10, 0 0 0 10px color-mix(in srgb, var(--gold) 50%, transparent), 0 30px 60px -20px rgba(0, 0, 0, .9); will-change: transform; }
.wheel span { position: absolute; left: 50%; top: 50%; width: 110px; margin-left: -55px; margin-top: -10px; text-align: center; font: 800 12px/1.1 Inter, sans-serif; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .8); transform-origin: 50% 50%; }
.wheel .hub { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: radial-gradient(circle, #3a2814, #1a1009); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 60%, transparent); }
.pointer { position: absolute; left: 50%; top: -14px; z-index: 2; width: 0; height: 0; transform: translateX(-50%); transform-origin: 50% 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 30px solid var(--gold); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.crate { width: 280px; padding: 34px 20px; border-radius: 20px; text-align: center; background: linear-gradient(160deg, #6b4a1a, #2e1d08); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 40%, transparent), 0 30px 60px -20px rgba(0, 0, 0, .9); }
.crate span { font-size: 70px; display: block; animation: hover 2.4s ease-in-out infinite; }
.crate b { display: block; font: 700 18px Silkscreen, monospace; color: var(--gold); margin-top: 8px; }
.crate small { color: var(--muted); }
.qbar i { width: 100% !important; transform-origin: left; animation: none; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }

/* product unbox */
.unbox { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; z-index: 2; }
.unbox .pbox { width: 280px; height: 240px; cursor: pointer; }
.unboxed { display: grid; gap: 12px; }
.mini-pack { will-change: transform; }

@media (max-width: 760px) {
  .arena2 { grid-template-columns: 1fr 1fr; min-height: 460px; } .vs2 { display: none; }
  .reel2 { width: 84px; height: 84px; } .strip2 span { height: 84px; font-size: 44px; }
  .wheel-wrap { width: 270px; height: 270px; } .wheel span { transform-origin: 50% 50%; font-size: 11px; }
  .tear { width: 210px; }
}
/* (effects stay on even with reduced motion - Windows turns that on by default on many PCs) */
.wheel-wrap { --rad: 118px; }
@media (max-width: 760px) { .wheel-wrap { --rad: 96px; } }
.window-layer .window { width: min(1100px, 100%); }
.opening .unbox { width: auto; }
.opening { place-items: stretch; justify-items: stretch; }

/* ================= 3D ARENA (mobile-first) ================= */
body.arena-open { overflow: hidden; }
body.arena-open .chat-fab, body.arena-open .topbar, body.arena-open .navbar { visibility: hidden; }
#arena { position: fixed; inset: 0; z-index: 60; background: radial-gradient(130% 90% at 50% 40%, rgba(10, 6, 4, .05) 0%, rgba(10, 6, 4, .35) 60%, rgba(6, 4, 3, .7) 100%); color: var(--ink);
  font-family: Inter, system-ui, sans-serif; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
#a3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.a-top { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); }
.a-brand { font: 700 18px Silkscreen, monospace; color: var(--gold); letter-spacing: .08em; text-shadow: 0 2px 0 #3a2a05, 0 0 16px rgba(255, 190, 60, .4); }
.a-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20, 14, 10, .8); color: var(--ink); font-size: 18px; cursor: pointer; flex: none; }
.a-icon:active { transform: scale(.92); }
.a-streak { padding: 5px 10px; border-radius: 99px; background: rgba(255, 120, 40, .18); border: 1px solid rgba(255, 140, 60, .5); font-weight: 800; font-size: 13px; }
.a-streak:empty { display: none; }
.a-pips { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.a-pips i { display: inline-flex; gap: 3px; margin-right: 6px; }
.a-pips i b { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); }
.a-pips i b.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px var(--gold); }
.a-plate { position: absolute; z-index: 4; width: min(280px, calc(50vw - 18px)); padding: 9px 12px 10px; border-radius: 14px; background: rgba(18, 12, 8, .86); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.a-plate.foe { left: max(12px, env(safe-area-inset-left)); top: calc(66px + env(safe-area-inset-top)); }
.a-plate.you { right: max(12px, env(safe-area-inset-right)); bottom: calc(var(--amh, 120px) + 16px + env(safe-area-inset-bottom)); }
.pl-row { display: flex; align-items: center; gap: 8px; }
.pl-name { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pl-type, .tchip { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: var(--tc); color: #14100c; white-space: nowrap; }
.tchip { margin-left: 0; }
.pl-bar { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 7px; }
.pl-bar i { position: absolute; inset: 0; transform-origin: left; border-radius: inherit; }
.pl-bar .g { background: rgba(255, 255, 255, .7); transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.pl-bar .h { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.pl-hp { font-size: 12px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.a-backs { position: absolute; z-index: 4; right: max(12px, env(safe-area-inset-right)); top: calc(70px + env(safe-area-inset-top)); display: flex; }
.a-backs i { width: 26px; aspect-ratio: 5 / 7; border-radius: 4px; margin-left: -10px; border: 2px solid #c79a3c; background: radial-gradient(circle, #4a3218, #140c06); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.a-backs i:first-child { margin-left: 0; }
.a-log { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); top: calc(66px + env(safe-area-inset-top)); max-width: min(420px, calc(100vw - 32px));
  padding: 8px 16px; border-radius: 99px; background: rgba(10, 7, 5, .7); border: 1px solid var(--line); font-weight: 700; font-size: 14px; text-align: center; text-wrap: balance; pointer-events: none; }
.a-log:empty { display: none; }
.a-banner { position: absolute; z-index: 6; left: 50%; top: 40%; transform: translate(-50%, -50%); font: 700 40px Silkscreen, monospace; color: #fff; opacity: 0; pointer-events: none; white-space: nowrap;
  text-shadow: 0 4px 0 #000, 0 0 30px rgba(255, 160, 60, .9); }
.a-banner.eff { color: #ffd166; } .a-banner.crit { color: #ff8a4c; } .a-banner.win { color: var(--gold); font-size: 56px; } .a-banner.lose { color: #ff8a80; font-size: 56px; }
.a-dmg { position: absolute; font: 700 32px Silkscreen, monospace; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .7), 0 0 16px rgba(255, 120, 60, .8); white-space: nowrap; pointer-events: none; }
.a-dmg.eff { color: #ffd166; font-size: 38px; } .a-dmg.crit { color: #ff8a4c; font-size: 42px; } .a-dmg.miss { color: #e3e8ee; font-size: 26px; } .a-dmg.guard { color: #9fd0ff; font-size: 22px; }
.a-fx { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.a-moves { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(720px, calc(100vw - 24px));
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a-move { position: relative; min-height: 86px; text-align: left; cursor: pointer; border-radius: 14px; padding: 10px 12px; color: var(--ink); font: inherit;
  background: linear-gradient(180deg, color-mix(in oklab, var(--tc) 32%, #1e150e), #120c08); border: 1px solid color-mix(in oklab, var(--tc) 65%, transparent);
  display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: transform .14s, box-shadow .14s; }
.a-move:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 10px 26px color-mix(in oklab, var(--tc) 45%, transparent); }
.a-move:active:not(:disabled) { transform: scale(.96); }
.a-move:disabled { opacity: .45; cursor: not-allowed; }
.a-move .mn { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-move .ms { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.a-move .mt { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.a-move.strong .mt { color: #5be08a; } .a-move.strong { box-shadow: 0 0 0 1px #5be08a66, 0 0 22px #5be08a33; }
.a-move kbd { position: absolute; right: 8px; top: 8px; }
.a-tray { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; max-height: calc(100% - 70px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 26px max(14px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: linear-gradient(180deg, transparent, rgba(12, 8, 5, .92) 18%, rgba(12, 8, 5, .98)); transition: transform .42s cubic-bezier(.3, .8, .3, 1), opacity .3s; }
.a-tray.closed { transform: translateY(105%); opacity: 0; pointer-events: none; }
.a-tray h2 { margin: 0; text-align: center; font: 700 clamp(20px, 4vw, 28px) Silkscreen, monospace; color: var(--gold); }
.a-tray p { margin: 6px auto 14px; text-align: center; color: var(--muted); font-size: 14px; max-width: 60ch; }
.a-hand { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; perspective: 900px; }
.a-card { width: clamp(132px, 22vw, 176px); padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); font: inherit; text-align: left; transition: transform .2s cubic-bezier(.3, .8, .3, 1); }
.a-card img { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 10px; display: block; box-shadow: 0 0 0 2px color-mix(in oklab, var(--tc) 70%, transparent), 0 14px 30px rgba(0, 0, 0, .6); }
.a-card:hover { transform: translateY(-10px) rotateX(6deg) scale(1.03); }
.a-card:active { transform: scale(.96); }
.ac-meta { display: grid; gap: 1px; padding: 7px 2px 0; }
.ac-meta b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-meta small { font-size: 12px; color: var(--muted); }
.ac-meta em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ac-meta .good { color: #5be08a; } .ac-meta .bad { color: #ff8a5b; }
.a-fly { position: fixed; z-index: 70; pointer-events: none; margin: 0; }
.a-lobby, .a-result { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; overflow-y: auto; padding: calc(64px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom)); background: rgba(10, 6, 4, .55); }
.al-box, .ar-box { width: min(1000px, 100%); padding: 20px; border-radius: 20px; background: rgba(18, 12, 8, .94); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.al-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.al-head h2 { margin: 0 0 4px; font-size: 24px; }
.al-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.al-rank { min-width: 210px; }
.al-rank b { font-size: 16px; }
.ar-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 6px 0 4px; }
.ar-bar i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, #ffd84a, #ff9f1a); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.al-sel { display: grid; grid-template-columns: repeat(4, minmax(0, 92px)); gap: 10px; justify-content: center; margin: 18px 0 14px; }
.al-slot { aspect-ratio: 63 / 88; border-radius: 10px; border: 2px dashed rgba(255, 220, 170, .25); display: grid; place-items: center; color: var(--muted); font-weight: 800; background: rgba(255, 255, 255, .03); padding: 0; overflow: hidden; }
.al-slot.on { border: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--tc), 0 10px 24px rgba(0, 0, 0, .5); animation: pop .3s cubic-bezier(.2, .9, .3, 1.3); }
.al-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-bottom: 14px; }
.al-actions .btn { min-height: 48px; padding: 0 20px; }
.al-actions .hint { flex-basis: 100%; text-align: center; margin: 0; font-size: 13px; }
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; max-height: 46vh; overflow-y: auto; padding: 4px; -webkit-overflow-scrolling: touch; }
.al-card { padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: transform .15s; }
.al-card img { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 9px; display: block; box-shadow: 0 8px 18px rgba(0, 0, 0, .5); transition: box-shadow .2s, filter .2s; }
.al-card span { display: grid; padding-top: 5px; }
.al-card b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-card small { font-size: 11px; color: var(--muted); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.al-card.on img { box-shadow: 0 0 0 3px var(--gold), 0 0 24px color-mix(in srgb, var(--gold) 50%, transparent); filter: brightness(1.08); }
.al-card:active { transform: scale(.95); }
.al-board { margin-top: 16px; display: grid; gap: 6px; }
.al-board > div { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.al-board span { color: var(--gold); font-weight: 800; }
.al-board small { color: var(--muted); }
.ar-box { max-width: 520px; text-align: center; }
.ar-box h2 { margin: 0; font: 700 46px Silkscreen, monospace; }
.ar-box.win h2 { color: var(--gold); text-shadow: 0 0 30px rgba(255, 190, 40, .6); }
.ar-box.lose h2 { color: #ff8a80; }
.ar-score { font-size: 22px; font-weight: 800; margin: 4px 0 10px; }
.ar-box ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.ar-box li { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.ar-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ar-stats div { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.ar-stats small { display: block; font-size: 11px; color: var(--muted); }
.ar-stats b { font-size: 17px; }
.ar-rank { margin-bottom: 16px; }
.ar-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ar-btns .btn { min-height: 48px; }
@media (max-width: 760px) {
  .a-brand { display: none; }
  .a-plate { padding: 7px 10px 8px; }
  .pl-name { font-size: 13px; }
  .a-log { top: auto; bottom: calc(var(--amh, 120px) + 74px + env(safe-area-inset-bottom)); font-size: 13px; }
  .a-moves { gap: 6px; }
  .a-move { min-height: 80px; padding: 9px; }
  .a-move .mn { font-size: 13.5px; }
  .a-banner { font-size: 28px; } .a-banner.win, .a-banner.lose { font-size: 40px; }
  .a-dmg { font-size: 26px; }
  .al-box { padding: 14px; } .al-head h2 { font-size: 20px; }
  .al-grid { grid-template-columns: repeat(3, 1fr); max-height: 40vh; }
  .a-hand { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .a-card { flex: 0 0 auto; width: 40vw; scroll-snap-align: center; }
}
@media (max-width: 760px) { .a-log { bottom: auto; top: calc(128px + env(safe-area-inset-top)); max-width: calc(100vw - 24px); } }

/* icons */
.ic { width: 1.18em; height: 1.18em; display: inline-block; vertical-align: -.22em; flex: none; overflow: visible; }
.pill-coin { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--gold); padding-right: 4px; }
.pill-coin .ic { width: 18px; height: 18px; }
.strip2 span .ic, .reel .ic { width: 64px; height: 64px; }
.te .ic { width: 34px; height: 34px; }
.empty-state span .ic { width: 64px; height: 64px; }
.crate span .ic { width: 80px; height: 80px; }
.toast .emo .ic { width: 30px; height: 30px; }
.big-hit .emo .ic { width: 120px; height: 120px; }
.pbox .pe .ic { width: 40px; height: 40px; }
.wheel .hub .ic { width: 34px; height: 34px; }
.a-icon .ic { width: 20px; height: 20px; }

/* ================= navigation ================= */
.topbar { position: relative; }
.navbar { position: sticky; top: 0; z-index: 12; display: flex; justify-content: center; gap: 4px; padding: 8px 16px; margin: 0 0 6px;
  background: linear-gradient(180deg, rgba(14, 10, 7, .92), rgba(14, 10, 7, .78)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.navbar button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 0; background: transparent; color: var(--muted);
  font: 700 14.5px Inter, sans-serif; cursor: pointer; transition: background .18s, color .18s, transform .15s; }
.navbar button .ic { width: 20px; height: 20px; }
.navbar button:hover { background: rgba(255, 220, 160, .08); color: var(--ink); }
.navbar button.on { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
.navbar button:active { transform: scale(.96); }
.tabbar { display: none; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.more-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035); color: var(--ink); font: 700 14px Inter, sans-serif; cursor: pointer; transition: transform .15s, background .15s; }
.more-item .ic { width: 30px; height: 30px; }
.more-item:hover { background: color-mix(in srgb, var(--gold) 10%, transparent); transform: translateY(-2px); }

/* bigger, easier packs */
.packs { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pack .fallback b, .pack b.pname { font-size: 14px; }
.tear { width: 290px; }
.pack-slot .row-btns .btn, .qty .btn { min-height: 44px; font-size: 14px; }

@media (max-width: 900px) {
  .navbar { display: none; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(6, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(14, 10, 7, .96); border-top: 1px solid var(--line); }
  .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: 700 10.5px Inter, sans-serif; cursor: pointer; min-height: 52px; }
  .tabbar button .ic { width: 24px; height: 24px; }
  .tabbar button.on { color: var(--gold); }
  .tabbar button:active { transform: scale(.92); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .chat-fab { display: none !important; }
  .chat { bottom: calc(72px + env(safe-area-inset-bottom)); top: 12px; right: 8px; left: 8px; width: auto; }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .window-layer { padding: 10px 8px calc(78px + env(safe-area-inset-bottom)); align-items: start; }
  .window { max-height: calc(100dvh - 100px); }
  .packs { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tear { width: 230px; }
  body.arena-open .tabbar { display: none; }
}

/* ================= chat: docked sidebar on wide screens, shares & hype ================= */
@media (min-width: 1280px) {
  body.chat-docked .layout, body.chat-docked .navbar, body.chat-docked .foot { margin-right: 400px; }
  body.chat-docked .chat { top: 0; bottom: 0; right: 0; width: 400px; border-radius: 0; border-left: 1px solid var(--line); animation: none; }
  body.chat-docked .toasts { right: 420px; }
}
.chat header b { font-size: 16px; }
.chat-sync { padding: 6px 16px; font-size: 12px; font-weight: 700; color: #8ab4ff; background: rgba(88, 101, 242, .12); border-bottom: 1px solid var(--line); }
.msg p { font-size: 14.5px; line-height: 1.45; }
.dc-tag { font-style: normal; font: 800 9px/1 Inter, sans-serif; letter-spacing: .08em; padding: 3px 5px; border-radius: 4px; background: #5865f2; color: #fff; vertical-align: 2px; margin-right: 4px; }
.share-post { position: relative; margin-top: 6px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 6%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
.share-post.trending { border-color: #ff5ab0; background: linear-gradient(160deg, rgba(255, 90, 176, .14), color-mix(in srgb, var(--gold) 6%, transparent)); box-shadow: 0 0 24px rgba(255, 90, 176, .18); }
.sh-title { margin: 0 0 8px !important; font-weight: 700; }
.sh-title b { color: var(--gold); }
.sh-cards { display: flex; gap: 6px; margin-bottom: 8px; }
.sh-cards img { width: 72px; margin: 0; }
.share-post .sh-cards img:first-child { width: 96px; }
.hype-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(255, 90, 176, .5);
  background: rgba(255, 90, 176, .1); color: var(--ink); font: 700 14px Inter, sans-serif; cursor: pointer; transition: background .2s, transform .15s; }
.hype-btn b { font-variant-numeric: tabular-nums; }
.hype-btn:hover { background: rgba(255, 90, 176, .22); }
.hype-btn.on { background: #ff5ab0; color: #2a0a1c; border-color: #ff5ab0; cursor: default; }
.trend-tag { position: absolute; top: 8px; right: 10px; font: 800 10px/1 Inter, sans-serif; letter-spacing: .1em; color: #ff8ac8; }
.share-btn { gap: 6px; }
.al-tabs { display: flex; width: fit-content; margin: 16px auto 4px; }
.al-tabs button { padding: 10px 16px; font-size: 14px; }
.al-invite { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 12px; margin: 10px 0; border-radius: 12px; background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); animation: pop .3s; }
.al-players { display: grid; gap: 8px; max-height: 44vh; overflow-y: auto; margin-top: 10px; }
.al-player { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.al-player img, .al-player .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-weight: 800; }
.al-player .btn { min-height: 42px; }
.pvp-panel { max-width: 640px; text-align: center; }
.pvp-panel h2 { margin: 0 0 6px; }
.pvp-panel p { color: var(--muted); }
.pvp-wait { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.pvp-wait i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); animation: bounceDot 1s ease-in-out infinite; }
.pvp-wait i:nth-child(2) { animation-delay: .15s; } .pvp-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes bounceDot { 50% { transform: translateY(-10px); opacity: .5; } }
.sets-list { display: grid; gap: 10px; }
.set-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; animation: rise .4s both; }
.set-row img { width: 70px; height: 34px; object-fit: contain; }
.sr-main b { display: block; margin-bottom: 6px; }
.sr-main small { color: var(--muted); }
.sr-tag { text-align: right; font-weight: 800; color: var(--gold); white-space: nowrap; }
.sr-tag small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); }
.set-row.done { box-shadow: inset 0 0 0 1px rgba(102, 187, 106, .5); } .set-row.master { box-shadow: inset 0 0 0 1px var(--gold), 0 0 24px color-mix(in srgb, var(--gold) 20%, transparent); }
.tu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tu { padding: 14px; border-radius: 14px; display: grid; gap: 6px; }
.tu small { color: var(--muted); }
.tu-anim { display: grid; justify-items: center; gap: 18px; padding: 10px 0; }
.tu-used { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tu-used img { width: 56px; border-radius: 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.tu-anim .rcard { width: 200px; }
@media (max-width: 760px) { .set-row { grid-template-columns: 50px 1fr; } .set-row img { width: 50px; } .sr-tag { grid-column: 1 / -1; text-align: left; } }
.window-bar { display: flex; align-items: center; gap: 12px; }
.window-bar .back { flex: none; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06);
  color: var(--ink); font: 700 14px Inter, sans-serif; cursor: pointer; transition: background .15s, transform .15s; }
.window-bar .back:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.window-bar .back:active { transform: scale(.95); }
.window-bar .close { margin-left: auto; }

/* the arena sits on top of the website's own background (scene + particles) - hide the page content under it */
body.arena-open .layout, body.arena-open .topbar, body.arena-open .navbar, body.arena-open aside.chat, body.arena-open .chat-fab,
body.arena-open .spot, body.arena-open .tabbar, body.arena-open footer { visibility: hidden; }

/* health plates sit next to their own card: yours bottom-left (your card is on the left), the foe's top-right */
.a-plate { background: rgba(14, 9, 6, .92); border: 1px solid rgba(255, 210, 120, .28); backdrop-filter: none; }
.a-plate.foe { left: auto; right: max(12px, env(safe-area-inset-right)); top: calc(66px + env(safe-area-inset-top)); }
.a-plate.you { right: auto; left: max(12px, env(safe-area-inset-left)); }
.a-plate.you { border-color: rgba(120, 200, 255, .45); }
.a-plate.foe { border-color: rgba(255, 120, 100, .45); }
.pl-bar { height: 14px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.pl-hp { color: #f3e6cf; font-weight: 700; font-size: 13px; }
.pl-name { font-size: 16px; text-shadow: 0 1px 0 #000; }
.a-backs { top: calc(150px + env(safe-area-inset-top)); }
@media (max-width: 700px) {
  .a-log { top: auto; bottom: calc(var(--amh, 120px) + 96px + env(safe-area-inset-bottom)); font-size: 13px; }
  .a-backs { top: calc(136px + env(safe-area-inset-top)); }
}

.casino-bal { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: -4px 0 12px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 8%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); }
.casino-bal small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.casino-bal b { font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }
.under-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; margin: 0 0 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.under-bar .chk { display: flex; gap: 6px; align-items: center; font-size: 13px; }
body.arena-open .toasts { z-index: 70; }
/* phones: one small toast at the top, out of the way of the controls; swipe/tap to dismiss */
@media (max-width: 760px) {
  .toasts { top: calc(8px + env(safe-area-inset-top)); bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); }
  .toast { padding: 8px 10px; gap: 8px; font-size: 13px; }
  .toast img { width: 34px; height: auto; }
  .toast span:not(.emo) { display: none; }
}
.al-card { position: relative; }
.al-grade { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: linear-gradient(135deg, #ffe08a, #d8a24a); color: #1a1208; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }

/* ================= social-first home: the chat is the page ================= */
body.social-home .menu { display: none; }
body.social-home .shafts { display: none; }
body.social-home .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; max-width: 1320px; padding: 4px 20px 24px; }
body.social-home .stage { min-width: 0; }
.home-social { display: flex; flex-direction: column; gap: 10px; }
.quickbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.quickbar button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(22, 16, 11, .92); color: var(--ink); font: 700 14px Inter, system-ui, sans-serif; cursor: pointer; }
.quickbar button:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: rgba(34, 24, 15, .95); }
.quickbar button:active { transform: scale(.97); }
.quickbar .ic { width: 20px; height: 20px; }
.chat.embedded { position: relative; inset: auto; top: auto; right: auto; bottom: auto; left: auto; width: auto; z-index: 1;
  height: calc(100dvh - 190px); min-height: 420px; border-radius: 16px; animation: none; background: rgba(16, 11, 8, .94); }
.chat.embedded header .close { display: none; }
body.social-home .chat-fab { display: none !important; }
.rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; position: sticky; top: 64px; align-self: start; max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.rail-title { margin: 2px 0 0; font: 800 12px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rail .hero { grid-template-columns: 1fr; gap: 10px; }
.rail .hero-card { padding: 12px; }
.rail .section-title { font-size: 14px; margin: 6px 0 0; }
.rail .section-title span { display: none; }
.rail .shelf { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.rail .shelf > * { flex: 0 0 120px; scroll-snap-align: start; }
.rail .pf { max-height: 300px; overflow-y: auto; }
.rail .feed { max-height: 260px; overflow-y: auto; }
/* calmer look: flat panels, fewer glows */
body.social-home .glass { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
body.social-home .vignette { opacity: .6; }
.section-title { text-shadow: none; }
@media (max-width: 1100px) {
  body.social-home .layout { grid-template-columns: 1fr; }
  .rail { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 900px) {
  body.social-home .layout { padding: 4px 10px 16px; }
  .quickbar { gap: 6px; }
  .quickbar button { flex-direction: column; gap: 3px; min-height: 54px; font-size: 11px; padding: 6px 2px; }
  .chat.embedded { height: calc(100dvh - 210px - env(safe-area-inset-bottom)); min-height: 340px; border-radius: 14px; }
  body.social-home .topbar { padding: 8px 12px; gap: 10px; }
  body.social-home .topbar .logo { height: 30px; width: auto; }
  body.social-home .topbar .live { display: none; }
  .chat.embedded .quick { overflow-x: auto; flex-wrap: nowrap; }
  .chat.embedded .quick button { flex: none; }
  .chat.embedded #chat-in { font-size: 16px; }   /* stops iPhone zooming in on focus */
}
/* mobile sizing pass: nothing wider than the screen, readable text, comfy tap targets */
@media (max-width: 600px) {
  html, body { overflow-x: hidden; }
  .window { width: 100% !important; border-radius: 16px; }
  .window-body { padding: 14px 12px; }
  .window-title { font-size: 15px; }
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .toolbar .tabs { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; }
  .toolbar .tabs button { flex: none; }
  .search, .sel { min-width: 0; flex: 1 1 140px; font-size: 16px; }
  .btn { min-height: 42px; }
  .grid, .shelf.grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important; gap: 10px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat b { font-size: 16px; }
  .stat small { font-size: 10px; }
  .al-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .al-tabs button { flex: none; }
  .al-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .row-btns { flex-wrap: wrap; }
  .casino-bal b { font-size: 19px; }
}
/* arena lobby additions */
.al-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 10px 0; }
.al-big { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(30, 21, 14, .92); color: var(--ink); text-align: left; cursor: pointer; font: inherit; min-height: 64px; }
.al-big b { font-size: 15px; }
.al-big small { color: var(--muted); font-size: 12px; }
.al-big.gold { background: linear-gradient(180deg, #ffd84a, #e3a91b); color: #1a1208; border-color: #ffd84a; }
.al-big.gold small { color: #4a3510; }
.al-big:disabled { opacity: .6; }
.al-big:active { transform: scale(.98); }
.al-sec { margin: 12px 0; }
.al-sec h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.al-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green, #4fd672); display: inline-block; }
.al-online { display: flex; flex-wrap: wrap; gap: 8px; }
.al-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); cursor: pointer; font: inherit; }
.al-chip img, .al-chip .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #3a2a1c; font-weight: 800; }
.al-chip small { color: var(--gold); font-size: 11px; }
.al-chip.busy small { color: var(--muted); }
.al-live { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); margin-bottom: 6px; }
.al-live b:nth-of-type(2) { text-align: right; }
.al-live span { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.al-live.done { grid-template-columns: 1fr auto 1fr; opacity: .85; }
.al-perks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.al-perks span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); }
.al-seg { display: flex; gap: 6px; justify-content: center; margin: 8px 0; }
.al-seg button { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); font: 700 13px Inter, sans-serif; cursor: pointer; }
.al-seg button.on { background: var(--gold); color: #1a1208; border-color: var(--gold); }
.btn.sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.arena-post { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 8%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.arena-post p { margin: 0; font-weight: 700; }
/* pack / slab battle reveal */
.vs-box { max-width: 760px; }
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 10px; }
.vs-side { display: flex; flex-direction: column; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.vs-side.win { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.vs-tot { font: 800 24px Inter, sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; }
.vs-vs { font: 700 20px Silkscreen, monospace; color: var(--gold); font-style: normal; }
.vs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vs-col { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; align-content: start; min-height: 120px; }
.vs-card { display: flex; flex-direction: column; align-items: center; gap: 2px; perspective: 600px; }
.vs-card img { width: 100%; border-radius: 6px; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.vs-card small { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vs-card.t3 img, .vs-card.t4 img, .vs-card.t5 img { box-shadow: 0 0 0 2px var(--gold), 0 0 16px color-mix(in srgb, var(--gold) 50%, transparent); }
.vs-res { font-size: 17px; font-weight: 800; margin: 14px 0 4px; }
@media (max-width: 600px) { .vs-col { grid-template-columns: repeat(2, 1fr); } .vs-tot { font-size: 19px; } .al-live { grid-template-columns: 1fr auto 1fr; } .al-live .btn { grid-column: 1 / -1; } }
/* cards look like real cards everywhere: 63x88mm with rounded corners */
.tcg, .tcg img, .tcg .face, .al-card img, .al-slot img, .vs-card img, .a-card, .a-card img, .flexcard, .pfr img, .reveal-img, .spread img { border-radius: 4.8% / 3.5%; }
.tcg img, .al-card img, .vs-card img, .a-card img { aspect-ratio: 63 / 88; object-fit: cover; }
.lb { display: flex; flex-direction: column; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 34px 32px minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; }
.lb-row .lb-n { grid-row: 1 / 3; font-weight: 800; text-align: center; font-size: 15px; }
.lb-row img, .lb-row .av { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #3a2a1c; font-weight: 800; }
.lb-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row small { grid-column: 3; color: var(--muted); font-size: 12px; }
.lb-row em { grid-row: 1 / 3; grid-column: 4; font-style: normal; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-row .btn { grid-row: 1 / 3; grid-column: 5; }
.lb-row.me { border-color: rgba(120, 200, 255, .5); background: rgba(120, 200, 255, .08); }
.lb-row.top1 { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.linkbtn { margin-left: auto; background: none; border: 0; color: var(--gold); font: 700 12px Inter, sans-serif; cursor: pointer; text-transform: none; letter-spacing: 0; }
.al-board h4 { display: flex; align-items: center; }
@media (max-width: 600px) { .al-seg { flex-wrap: wrap; } .lb-row { grid-template-columns: 26px 28px minmax(0, 1fr) auto; } .lb-row .btn { display: none; } }
/* phones: the server stats chips push the chat down - hide them (the coin balance stays) */
@media (max-width: 600px) {
  body.social-home #chips { display: none; }
  body.social-home .topbar { flex-wrap: nowrap; justify-content: space-between; }
  body.social-home .topbar .logo { height: 28px; }
  .chat.embedded { height: calc(100dvh - 190px - env(safe-area-inset-bottom)); }
}
/* "Play" tiles in the side rail: roomy rows instead of six squished columns */
.rail .tiles { grid-template-columns: 1fr; gap: 8px; }
.rail .tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 12px 14px; min-height: 62px; animation: none; }
.rail .tile .te { grid-row: 1 / 3; font-size: 26px; margin: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.rail .tile .te .ic { width: 24px; height: 24px; }
.rail .tile b { font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .tile small { font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .tile kbd { display: none; }
.rail .tile:hover { transform: translateX(3px); }
.rail .tile.hot::after { top: 50%; right: 14px; transform: translateY(-50%); }
.rail .dock-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rail .daily { font-size: 12px; }
@media (max-width: 1100px) { .rail .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .rail .tiles { grid-template-columns: 1fr; } }
/* crack-a-slab minigame */
.crack-game { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.crackx { position: relative; }
.crackx .cracks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.crackx .cracks path { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: .7; filter: drop-shadow(0 0 1px #000); }
.crackx.cracked .slab-label, .crackx.cracked .cracks { animation: shatter .7s forwards; }
.crackx.cracked .slab-win { box-shadow: 0 0 0 3px var(--gold), 0 0 40px color-mix(in srgb, var(--gold) 60%, transparent); background: none; }
.crackx.destroyed img { filter: grayscale(1) brightness(.5) contrast(1.4); transform: rotate(-4deg) scale(.96); transition: all .5s; }
@keyframes shatter { to { opacity: 0; transform: translateY(40px) rotate(8deg) scale(1.1); } }
.cmeter { position: relative; width: min(420px, 100%); height: 22px; border-radius: 99px; background: linear-gradient(90deg, #5a1f16, #3a2a1c 30%, #3a2a1c 70%, #5a1f16); border: 1px solid var(--line); overflow: hidden; }
.cmeter .zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, #ffe08a, #e3a91b); opacity: .9; transition: left .25s, width .25s; }
.cmeter .needle { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 8px #fff; border-radius: 2px; }
/* crack minigame feedback: where each hit landed, a PERFECT / GOOD / MISS call-out, red flash + red cracks on a miss */
.cmeter .chit-mark { position: absolute; top: 3px; bottom: 3px; width: 3px; margin-left: -1.5px; border-radius: 2px; pointer-events: none; opacity: .95; animation: chitIn .25s ease-out; }
.cmeter .chit-mark.perfect { background: #fff6c8; box-shadow: 0 0 6px #ffe08a; } .cmeter .chit-mark.good { background: #7dff9a; box-shadow: 0 0 5px #4fd16a; } .cmeter .chit-mark.miss { background: #ff4a3d; box-shadow: 0 0 6px #ff2a1a; }
@keyframes chitIn { from { transform: scaleY(2.2); opacity: 0; } }
.cmeter.miss { animation: cmMiss .45s ease-out; } .cmeter.perfect { animation: cmPerfect .45s ease-out; }
@keyframes cmMiss { 0%, 40% { box-shadow: 0 0 0 2px #ff3b2f, 0 0 18px rgba(255, 50, 40, .8); border-color: #ff3b2f; } }
@keyframes cmPerfect { 0%, 40% { box-shadow: 0 0 0 2px #ffe08a, 0 0 18px rgba(255, 215, 120, .85); } }
.cjudge { height: 22px; margin: 6px auto 0; text-align: center; font: 900 17px/22px Inter, sans-serif; letter-spacing: .08em; opacity: 0; }
.cjudge.show { animation: cjPop .75s ease-out forwards; } .cjudge.perfect { color: #ffe08a; text-shadow: 0 0 12px rgba(255, 215, 120, .8); } .cjudge.good { color: #7dff9a; } .cjudge.miss { color: #ff4a3d; text-shadow: 0 0 10px rgba(255, 40, 30, .7); }
@keyframes cjPop { 0% { opacity: 0; transform: scale(.6); } 18% { opacity: 1; transform: scale(1.18); } 35% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.crackx.miss::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; animation: crackMiss .55s ease-out forwards; }
@keyframes crackMiss { 0% { box-shadow: inset 0 0 0 3px #ff3b2f, inset 0 0 50px rgba(255, 30, 20, .55); background: rgba(255, 30, 20, .22); } 100% { box-shadow: inset 0 0 0 0 transparent; background: transparent; } }
.crackx .cracks path.bad { stroke: #ff4a3d; stroke-width: .9; filter: drop-shadow(0 0 1.5px rgba(255, 40, 30, .9)); }
@media (prefers-reduced-motion: reduce) { .cjudge.show { animation: none; opacity: 1; } .crackx.miss::after, .cmeter.miss, .cmeter.perfect { animation-duration: .01s; } }
.crack-info { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.crack-info b { color: var(--ink); font-variant-numeric: tabular-nums; }
.row-btns.center { justify-content: center; }
.under-custom { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.under-custom input { width: 90px; min-height: 38px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--ink); font: 600 16px Inter, sans-serif; }
/* how-battles-work guide */
.howto h2 { margin: 0 0 12px; }
.ht-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ht-step > b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1a1208; font-weight: 800; }
.ht-step h4 { margin: 4px 0 6px; font-size: 16px; }
.ht-step p, .ht-step li { margin: 4px 0; line-height: 1.45; color: var(--ink); }
.ht-step ul { margin: 0; padding-left: 18px; }
.ht-tip { color: var(--gold) !important; font-weight: 600; }

/* custom scrollbars: thin, warm and rounded instead of the grey browser default */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--gold) 45%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(255, 216, 74, .55), rgba(227, 169, 27, .45)); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffd84a, #e3a91b); background-clip: padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }
.toolbar .tabs::-webkit-scrollbar, .al-tabs::-webkit-scrollbar, .quick::-webkit-scrollbar { height: 0; }
/* "waiting for a challenger" pill - you keep using the site */
.bg-wait { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: 99px; background: rgba(20, 14, 10, .96); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-weight: 700; font-size: 14px; animation: rise .4s both; }
.bg-wait .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 1.6s infinite; }
.bg-wait button { min-height: 34px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--ink); font: 700 13px Inter, sans-serif; cursor: pointer; }
.bg-wait .bw-open { background: var(--gold); color: #1a1208; border-color: var(--gold); }
@media (max-width: 900px) { .bg-wait { bottom: calc(80px + env(safe-area-inset-bottom)); font-size: 13px; } }
body.arena-open .bg-wait { display: none; }
/* slabs in chat showcases look like graded cases */
.mini-slab { display: inline-flex; flex-direction: column; width: 92px; padding: 4px; border-radius: 8px; background: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08)); border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); cursor: pointer; vertical-align: top; margin-right: 6px; }
.mini-slab .ms-label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3px; padding: 2px 4px; margin-bottom: 4px; border-radius: 4px; background: #f3efe6; color: #1a1208; font-size: 8px; line-height: 1.1; }
.mini-slab .ms-label b { color: #c0281b; font-size: 8px; }
.mini-slab .ms-label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.mini-slab .ms-label em { font-style: normal; font-weight: 900; font-size: 13px; }
.mini-slab img { width: 100%; border-radius: 4.8% / 3.5%; display: block; }
.mini-slab.g10 { box-shadow: 0 0 0 2px #ffd36a, 0 0 18px rgba(255, 211, 106, .55); }
.mini-slab.g9 { box-shadow: 0 0 0 1px #ffe8a8, 0 6px 16px rgba(0, 0, 0, .45); }
/* chat polish: grouped messages, mentions, links, new-message pill, command hints */
.msg.cont { margin-top: -6px; }
.msg.cont > .av { visibility: hidden; height: 0; }
.msg.cont .mh { display: none; }
.msg.mention .mb { background: color-mix(in srgb, var(--gold) 10%, transparent); border-left: 3px solid var(--gold); border-radius: 8px; padding-left: 8px; }
.msg .at { color: var(--gold); font-weight: 700; }
.msg a[href] { color: #8cc8ff; text-decoration: underline; word-break: break-all; }
.chat .msgs { position: relative; }
.new-pill { position: relative; align-self: center; margin: -44px auto 8px; z-index: 3; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--gold); background: rgba(20, 14, 10, .96); color: var(--gold); font: 700 13px Inter, sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.new-pill b { color: var(--ink); }
.cmd-hints { display: flex; flex-direction: column; gap: 2px; padding: 6px; margin: 0 10px 6px; border-radius: 12px; background: rgba(10, 7, 5, .96); border: 1px solid var(--line); max-height: 220px; overflow-y: auto; }
.cmd-hints button { display: flex; gap: 10px; align-items: baseline; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 13px Inter, sans-serif; cursor: pointer; }
.cmd-hints button:hover { background: rgba(255, 255, 255, .06); }
.cmd-hints b { color: var(--gold); white-space: nowrap; }
.cmd-hints span { color: var(--muted); }
/* login with a code */
.login-code { text-align: center; padding: 6px 4px 2px; }
.login-code h3 { margin: 0 0 6px; }
.login-code form { display: flex; gap: 8px; justify-content: center; margin: 12px 0 6px; flex-wrap: wrap; }
.login-code input { width: 180px; min-height: 52px; text-align: center; font: 800 26px Inter, sans-serif; letter-spacing: .14em; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--gold) 50%, transparent); background: rgba(0, 0, 0, .35); color: var(--ink); }
.login-code input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.login-code .btn { min-height: 52px; padding: 0 22px; }
.lc-msg { min-height: 20px; font-weight: 700; color: var(--gold); margin: 4px 0; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* chat reactions */
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reacts:empty { display: none; }
.rc { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--ink); font: 13px Inter, sans-serif; cursor: pointer; }
.rc b { font-size: 12px; }
.rc.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.msg .mb { position: relative; }
.react-add { position: absolute; top: -6px; right: 4px; opacity: 0; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line); background: rgba(20, 14, 10, .95); color: var(--muted); font: 700 11px Inter, sans-serif; cursor: pointer; transition: opacity .15s; }
.msg:hover .react-add, .react-add:focus { opacity: 1; }
@media (hover: none) { .react-add { opacity: .55; position: static; margin-top: 4px; } }
.react-pick { position: fixed; z-index: 80; display: flex; gap: 2px; padding: 6px; border-radius: 99px; background: rgba(20, 14, 10, .98); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.react-pick button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 22px; cursor: pointer; transition: transform .12s; }
.react-pick button:hover { transform: scale(1.25); background: rgba(255, 255, 255, .06); }
.online-pop { position: fixed; z-index: 80; min-width: 200px; max-height: 320px; overflow-y: auto; padding: 8px; border-radius: 14px; background: rgba(20, 14, 10, .98); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 2px; }
.online-pop h4 { margin: 2px 6px 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.online-pop .who { text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 600 14px Inter, sans-serif; cursor: pointer; }
.online-pop .who:hover { background: rgba(255, 255, 255, .06); }
#online { color: var(--green, #4fd672); }

/* live battle chat */
.a-watch { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line); white-space: nowrap; }
#a-chatbtn { position: relative; }
.a-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #e53935; color: #fff; font: 800 11px/18px Inter, sans-serif; font-style: normal; }
.a-chat { position: absolute; z-index: 6; left: max(12px, env(safe-area-inset-left)); top: calc(70px + env(safe-area-inset-top)); width: min(300px, calc(100vw - 24px)); max-height: min(380px, 48vh);
  display: flex; flex-direction: column; border-radius: 14px; background: rgba(14, 9, 6, .9); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.ac-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ac-x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ac-feed { flex: 1; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 60px; }
.ac-line { margin: 0; font-size: 13px; line-height: 1.35; word-break: break-word; }
.ac-line b { margin-right: 4px; }
.ac-line.r-you b { color: #8cc8ff; }
.ac-line.r-foe b { color: #ff9a8a; }
.ac-line.r-fan b { color: var(--gold); }
.ac-empty { margin: 0; font-size: 12px; color: var(--muted); }
.ac-quick { display: flex; gap: 4px; padding: 6px 8px 0; overflow-x: auto; scrollbar-width: none; }
.ac-quick button { flex: none; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--ink); font: 700 12px Inter, sans-serif; cursor: pointer; }
.ac-quick button:active { transform: scale(.94); }
#ac-form { display: flex; gap: 6px; padding: 8px; }
#ac-in { flex: 1; min-width: 0; min-height: 36px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--ink); font: 15px Inter, sans-serif; }
.a-bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.a-bub { position: absolute; max-width: min(240px, 60vw); padding: 8px 12px; border-radius: 14px; background: #fff; color: #1a1208; font: 700 14px Inter, sans-serif; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.a-bub small { display: block; font-size: 10px; color: #8a6a2a; }
.a-bub.b-you { left: max(14px, env(safe-area-inset-left)); bottom: calc(var(--amh, 120px) + 110px + env(safe-area-inset-bottom)); border-bottom-left-radius: 4px; }
.a-bub.b-foe { right: max(14px, env(safe-area-inset-right)); top: calc(150px + env(safe-area-inset-top)); border-top-right-radius: 4px; }
.a-bub.b-fan { left: 50%; top: 40%; transform: translateX(-50%); background: rgba(255, 216, 74, .95); }
@media (max-width: 700px) {
  .a-chat { top: auto; bottom: calc(var(--amh, 120px) + 20px + env(safe-area-inset-bottom)); max-height: 42vh; }
  .a-watch { display: none; }
  .a-bub.b-foe { top: calc(150px + env(safe-area-inset-top)); }
}
.chat-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chat-imgs img { max-width: min(260px, 100%); max-height: 220px; border-radius: 10px; display: block; object-fit: cover; border: 1px solid var(--line); }
.msg img.av { object-fit: cover; }
/* trainer levels */
.pill-lvl { display: inline-flex; flex-direction: column; gap: 2px; align-items: stretch; min-width: 48px; padding: 2px 8px; border-radius: 8px; background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); cursor: pointer; }
.pill-lvl b { font-size: 11px; color: var(--gold); line-height: 1.1; }
.pill-lvl i { display: block; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.pill-lvl i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--k, 0)); background: var(--gold); transition: transform .6s; }
.lvl-tag { margin-left: 6px; padding: 1px 6px; border-radius: 6px; font: 800 10px Inter, sans-serif; font-style: normal; background: rgba(255, 255, 255, .08); color: var(--muted); vertical-align: 1px; }
.lvl-tag.l1 { color: #b9e3ff; background: rgba(120, 200, 255, .14); }
.lvl-tag.l2 { color: #c9b3ff; background: rgba(170, 130, 255, .16); }
.lvl-tag.l3, .lvl-tag.l4, .lvl-tag.l5 { color: #1a1208; background: linear-gradient(90deg, #ffe08a, #e3a91b); }
.lvl-me { padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 8%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.lvl-me b { font-size: 22px; color: var(--gold); }
.lvl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lvl-xp { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.lvl-xp li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); font-size: 14px; }
.lvl-xp b { color: var(--gold); }
@media (max-width: 700px) { .lvl-cols { grid-template-columns: 1fr; } .pill-lvl { min-width: 40px; } }
/* slabs look like real graded cases everywhere cards are shown */
.tcg.slabbed { padding: 6px 6px 8px; border-radius: 10px; background: linear-gradient(160deg, rgba(255, 255, 255, .34), rgba(220, 225, 235, .12) 40%, rgba(255, 255, 255, .22));
  border: 1px solid rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .5); }
.tcg.slabbed .slab-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px; padding: 4px 6px; margin-bottom: 6px; border-radius: 5px; background: #f6f2ea; color: #1a1208; min-height: 30px; }
.tcg.slabbed .st-co { font: 900 10px Inter, sans-serif; letter-spacing: .04em; color: #c0281b; }
.tcg.slabbed .st-co.c-beckett { color: #1d4fa8; }
.tcg.slabbed .st-co.c-cgc { color: #0b7a4b; }
.tcg.slabbed .st-name { font: 700 9px Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcg.slabbed .st-g { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.tcg.slabbed .st-g b { font: 900 17px Inter, sans-serif; }
.tcg.slabbed .st-g small { font: 800 6px Inter, sans-serif; letter-spacing: .04em; }
.tcg.slabbed .face { border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.tcg.slabbed.g10 { border-color: #ffd36a; box-shadow: 0 0 0 2px rgba(255, 211, 106, .7), 0 0 26px rgba(255, 211, 106, .45), 0 10px 24px rgba(0, 0, 0, .5); }
.tcg.slabbed.g10 .slab-top { background: linear-gradient(90deg, #fff4cf, #ffe08a); }
.tcg.slabbed.g9 { border-color: rgba(255, 240, 200, .8); }
/* a glow instead of filter: brightness() - a filter flattens the slab, its label and the tilting card into one stretched image (blurry text) */
.tcg.slabbed.glow, .tcg.slabbed:hover { border-color: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .16), 0 0 0 1px rgba(255, 255, 255, .25), 0 12px 28px rgba(0, 0, 0, .55); }
.tcg.slabbed.g10.glow, .tcg.slabbed.g10:hover { box-shadow: 0 0 0 2px rgba(255, 211, 106, .9), 0 0 32px rgba(255, 211, 106, .6), 0 12px 28px rgba(0, 0, 0, .55); }
.al-card.is-slab { background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .5) !important; }
.al-card.is-slab img { outline: 3px solid rgba(255, 255, 255, .35); outline-offset: 2px; }
/* chat beside every window - only when there's room. It scales with the screen and never covers the window. */
:root { --dockw: clamp(300px, 24vw, 380px); }
body.dock-win .window-layer { right: calc(var(--dockw) + 16px); }
.chat.docked:not(.sheet) { position: fixed !important; top: 12px; right: 12px; bottom: 12px; left: auto; width: var(--dockw); height: auto !important; min-height: 0; z-index: 19;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6); transform: none; }
.chat.docked:not(.sheet) header .close { display: none; }
/* smaller screens + phones: a chat button floats over windows and pulls the chat up as a sheet (closed by default) */
body.social-home .chat-fab.show, .chat-fab.show { display: flex !important; position: fixed; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); top: auto; transform: none; z-index: 26; }
@media (min-width: 901px) { body.social-home .chat-fab.show, .chat-fab.show { bottom: 20px; } }
.chat.sheet { position: fixed !important; left: auto; right: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); top: auto; width: min(420px, calc(100vw - 16px)); height: min(62dvh, 560px) !important; min-height: 0; z-index: 27;
  border-radius: 18px; transform: translateY(calc(100% + 140px)); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s; box-shadow: 0 -10px 40px rgba(0, 0, 0, .6); }
@media (min-width: 901px) { .chat.sheet { bottom: 76px; } }
.chat.sheet.sheet-open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.chat.sheet header .close { display: block !important; }
/* windows always fit the space they're given, and the title bar + close button stay on screen */
.window { max-width: 100% !important; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; }
.window-body { overflow-y: auto; min-height: 0; }
.window-bar { position: sticky; top: 0; z-index: 5; flex: none; }
@media (max-width: 900px) { .window { max-height: calc(100dvh - 96px - env(safe-area-inset-bottom)); } }
/* sell straight from a pack opening */
.sell-row { margin-top: 8px; align-items: center; }
.rcard { position: relative; }
.qsell { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); z-index: 3; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); background: rgba(20, 14, 10, .95); color: var(--ink); font: 700 11px Inter, sans-serif; cursor: pointer; white-space: nowrap; opacity: .9; }
.qsell:hover { border-color: var(--gold); opacity: 1; }
.qsell.armed { background: #e53935; border-color: #e53935; }
.rcard.sold { opacity: .35; filter: grayscale(.8); transition: opacity .3s, filter .3s; }
.rcard.sold::after { content: "SOLD"; position: absolute; inset: 40% 0 auto; text-align: center; font: 900 18px Inter, sans-serif; color: #fff; text-shadow: 0 2px 6px #000; transform: rotate(-12deg); }
.egg-wrap { position: fixed; right: 16px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 90; width: min(320px, 80vw); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); border: 2px solid var(--gold); }
.egg-wrap iframe { width: 100%; height: 100%; border: 0; }
.egg-wrap button { position: absolute; top: 4px; right: 4px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; }
/* GIF picker */
#chat-form { position: relative; }
.gif-btn { flex: none; min-width: 46px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--gold); font: 900 12px Inter, sans-serif; letter-spacing: .06em; cursor: pointer; }
.gif-btn:hover { border-color: var(--gold); }
.gif-pick { margin: 0 10px 6px; padding: 8px; border-radius: 14px; background: rgba(10, 7, 5, .97); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; max-height: 340px; }
.gif-pick input { min-height: 38px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--ink); font: 15px Inter, sans-serif; }
.gif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; overflow-y: auto; min-height: 80px; }
.gif-grid button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .05); cursor: pointer; aspect-ratio: 1; }
.gif-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-grid button:hover { outline: 2px solid var(--gold); }
.gif-credit { color: var(--muted); font-size: 10px; text-align: right; }
/* one-tap battle emotes - right side, above the move buttons */
.a-emotes { position: absolute; z-index: 6; right: max(12px, env(safe-area-inset-right)); bottom: calc(var(--amh, 120px) + 18px + env(safe-area-inset-bottom)); display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: rgba(14, 9, 6, .82); border: 1px solid var(--line); }
.a-emotes button { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .06); color: var(--ink); font: 800 14px Inter, sans-serif; cursor: pointer; }
.a-emotes button:active { transform: scale(.9); }
.a-emotes .ae-chat { background: var(--gold); color: #1a1208; }
@media (min-width: 701px) { .a-emotes .ae-chat { display: none; } }
@media (max-width: 420px) { .a-emotes button { min-width: 34px; height: 34px; padding: 0 7px; font-size: 13px; } }
/* deck picker search */
.al-find { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.al-find .search { width: 100%; font-size: 16px; }
.al-types { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.al-types button { flex: none; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); font: 700 12px Inter, sans-serif; cursor: pointer; }
.al-types button[style] { border-color: color-mix(in srgb, var(--tc) 60%, transparent); }
.al-types button.on { background: var(--gold); color: #1a1208; border-color: var(--gold); }
#al-morewrap { margin: 10px 0; }
/* live pack openings in chat */
.live-open { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.live-open.big { border-color: color-mix(in srgb, var(--gold) 60%, transparent); background: color-mix(in srgb, var(--gold) 9%, transparent); }
.live-open.god { border-image: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bff95, #6bc7ff, #c56bff) 1; }
.lo-title { margin: 0 0 8px; font-weight: 700; }
.lo-cards { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.lo-card { width: 58px; perspective: 500px; cursor: pointer; text-align: center; }
.lo-in { position: relative; aspect-ratio: 63 / 88; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2, .8, .3, 1.2); transform: rotateY(180deg); }
.lo-card.shown .lo-in { transform: none; }
.lo-back, .lo-face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 4.8% / 3.5%; backface-visibility: hidden; object-fit: cover; }
.lo-back { transform: rotateY(180deg); background: radial-gradient(circle at 50% 50%, #3a6fd8 0 18%, #1b3c8c 19% 40%, #0f2257 41%); border: 2px solid #f2d27a; }
.lo-card small { font-size: 10px; font-weight: 700; color: var(--muted); }
.lo-card.t3 .lo-face, .lo-card.t4 .lo-face, .lo-card.t5 .lo-face { box-shadow: 0 0 0 2px var(--gold), 0 0 14px color-mix(in srgb, var(--gold) 55%, transparent); }
.lo-card.t3 small, .lo-card.t4 small, .lo-card.t5 small { color: var(--gold); }
/* free chest */
.quickbar { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.qb-chest { position: relative; }
.qb-chest span { font-variant-numeric: tabular-nums; }
.qb-chest.ready { background: linear-gradient(180deg, #ffd84a, #e3a91b) !important; color: #1a1208 !important; border-color: #ffd84a !important; animation: chestPulse 1.6s ease-in-out infinite; }
.qb-chest b { font-weight: 900; }
@keyframes chestPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }
.chest-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.chest { position: relative; width: 150px; height: 120px; margin-top: 20px; }
.chest .box { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; border-radius: 10px; background: linear-gradient(180deg, #a4652b, #6b3c17); border: 4px solid #3a200b; box-shadow: inset 0 0 0 4px #e3a91b; }
.chest .lid { position: absolute; left: -4px; right: -4px; top: 6px; height: 46px; border-radius: 40px 40px 8px 8px; background: linear-gradient(180deg, #c07a35, #8a4f1f); border: 4px solid #3a200b; box-shadow: inset 0 0 0 4px #e3a91b; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.2, .9, .3, 1.3); z-index: 2; }
.chest .glow { position: absolute; left: 10%; right: 10%; top: 30px; height: 40px; border-radius: 50%; background: radial-gradient(#fff6c2, transparent 70%); opacity: 0; transition: opacity .4s; }
.chest.ready .lid { animation: lidWiggle 2s ease-in-out infinite; }
.chest.shake { animation: chestShake .15s linear infinite; }
.chest.open .lid { transform: translateY(-30px) rotate(-28deg); animation: none; }
.chest.open .glow { opacity: 1; }
@keyframes lidWiggle { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-4deg); } 90% { transform: rotate(4deg); } }
@keyframes chestShake { 0% { transform: translateX(-3px) rotate(-2deg); } 50% { transform: translateX(3px) rotate(2deg); } 100% { transform: translateX(-3px); } }
.streak-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.sd { width: 52px; padding: 6px 0; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); opacity: .55; }
.sd.on { opacity: 1; border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.sd.big { border-style: dashed; }
.sd small { display: block; font-size: 10px; color: var(--muted); }
.chest-loot { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.loot { padding: 8px 16px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 700; animation: rise .4s both; }
.loot.k-bundle, .loot.k-slab { background: color-mix(in srgb, var(--gold) 20%, transparent); border-color: var(--gold); }
@media (max-width: 600px) { .quickbar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* boss raid */
.raid-strip { display: grid; grid-template-columns: auto 1fr minmax(90px, 30%); align-items: center; gap: 12px; padding: 8px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, #e53935 60%, transparent); background: linear-gradient(90deg, rgba(120, 20, 20, .55), rgba(40, 10, 10, .6)); color: var(--ink); cursor: pointer; text-align: left; font: inherit; animation: raidGlow 2.4s ease-in-out infinite; }
@keyframes raidGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, .4); } 50% { box-shadow: 0 0 18px 2px rgba(229, 57, 53, .35); } }
.rs-boss { font-size: 28px; }
.rs-txt b { display: block; font-size: 14px; }
.rs-txt small { color: #ffb4a8; font-size: 12px; }
.rs-hp { position: relative; height: 14px; border-radius: 99px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.rs-hp i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, #ff5a4f, #ff9a3c); transition: transform .8s; }
.rs-hp small { position: relative; display: block; text-align: center; font: 800 10px/14px Inter, sans-serif; }
.raid-top { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; position: relative; }
.raid-boss { font-size: 96px; line-height: 1; filter: drop-shadow(0 10px 20px rgba(229, 57, 53, .55)); animation: bossFloat 3s ease-in-out infinite; }
.raid-boss.idle { filter: none; opacity: .6; }
@keyframes bossFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.raid-meta { flex: 1; min-width: 0; }
.raid-meta h2 { margin: 0 0 4px; }
.raid-meta p { margin: 4px 0; }
.raid-hpwrap { position: relative; height: 24px; border-radius: 99px; background: rgba(0, 0, 0, .55); overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); margin: 8px 0; }
.raid-hpwrap i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, #e53935, #ff9a3c); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.raid-hpwrap span { position: relative; display: block; text-align: center; font: 800 13px/24px Inter, sans-serif; text-shadow: 0 1px 2px #000; }
.raid-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.raid-energy { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.raid-energy i { width: 22px; height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.raid-energy i.on { background: linear-gradient(90deg, #4fd672, #a6f06b); }
.raid-energy small { color: var(--muted); margin-left: 6px; }
.raid-cards { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.rc-card { width: 54px; padding: 2px; border-radius: 8px; border: 2px solid transparent; background: none; cursor: pointer; color: var(--muted); }
.rc-card img { width: 100%; border-radius: 4.8% / 3.5%; display: block; }
.rc-card small { font-size: 9px; }
.rc-card.on { border-color: var(--gold); }
.raid-dmg { position: absolute; left: 30px; top: 0; font: 900 26px Inter, sans-serif; color: #fff; text-shadow: 0 2px 6px #000; animation: dmgUp 1.2s forwards; pointer-events: none; }
.raid-dmg.crit { color: var(--gold); font-size: 32px; }
.raid-dmg.super { color: #7fe3ff; }
@keyframes dmgUp { from { transform: translateY(20px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-60px); opacity: 0; } }
.raid-empty, .raid-res { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px; }
@media (max-width: 700px) { .raid-cols { grid-template-columns: 1fr; } .raid-boss { font-size: 70px; } .raid-top { gap: 12px; } }
.pulls-toggle { margin-left: 6px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); cursor: pointer; font-size: 13px; }
.pulls-toggle.off { opacity: .45; text-decoration: line-through; }
.chat.hide-pulls .msg.k-open { display: none; }
.lo-card { width: 50px; }
/* rivalries + featured set */
.ar-h2h { margin: 2px 0 8px; color: var(--muted); }
.ar-h2h b { color: var(--ink); }
.al-rival { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); margin-bottom: 6px; }
.al-rival img, .al-rival .av { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #3a2a1c; font-weight: 800; object-fit: cover; }
.al-rival small { grid-column: 2; color: var(--muted); font-size: 12px; }
.rv-rec { grid-row: 1 / 3; grid-column: 3; font: 900 18px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.rv-rec.up { color: #6be38a; } .rv-rec.down { color: #ff8a7a; }
.al-rival .btn { grid-row: 1 / 3; grid-column: 4; }
.feat-week { padding: 12px; border-radius: 14px; }
.fw-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.fw-head .kicker { color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.fw-head small { color: var(--muted); }
.fw-body { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: start; }
.fw-art { width: 70px; border-radius: 8px; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.fw-body p { margin: 2px 0 6px; font-size: 12px; }
.fw-top { display: flex; gap: 4px; margin-bottom: 8px; }
.fw-top img { width: 34px; border-radius: 4.8% / 3.5%; }
/* market: auctions + trades */
.mk-tabs { margin-bottom: 12px; }
.mk-auctions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mk-auc { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.mk-auc.leading { border-color: #4fd672; }
.mk-auc.mine { border-style: dashed; }
.mk-auc img { width: 80px; border-radius: 4.8% / 3.5%; cursor: pointer; }
.mk-ainfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mk-ainfo small { color: var(--muted); font-size: 12px; }
.mk-bid .lead { color: #6be38a; font-weight: 700; font-size: 12px; }
.mk-bidrow { display: flex; gap: 6px; margin-top: 4px; }
.mk-bidrow input, .mk-list input, .mk-list select, .mk-coinin input { width: 110px; min-height: 36px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--ink); font: 600 15px Inter, sans-serif; }
.mk-list { display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
.mk-list img { width: 160px; border-radius: 4.8% / 3.5%; }
.mk-list label { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.mk-offer { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 10px; }
.mk-oh { display: flex; justify-content: space-between; margin-bottom: 6px; }
.mk-oh small { color: var(--muted); }
.mk-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.mk-arrow { font-size: 22px; color: var(--gold); }
.mk-side { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.mk-thumb { position: relative; width: 46px; }
.mk-thumb img { width: 100%; border-radius: 4.8% / 3.5%; display: block; }
.mk-thumb.slab img { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 1px; }
.mk-thumb i { position: absolute; top: -4px; left: -4px; padding: 0 4px; border-radius: 5px; background: #f6f2ea; color: #c0281b; font: 900 9px/14px Inter, sans-serif; font-style: normal; }
.mk-thumb b { position: absolute; bottom: -4px; right: -4px; padding: 0 4px; border-radius: 5px; background: var(--gold); color: #1a1208; font: 900 10px/14px Inter, sans-serif; }
.mk-coins { padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 15%, transparent); font-weight: 800; align-self: center; }
.mk-build { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mk-picked { display: flex; flex-wrap: wrap; gap: 6px; min-height: 64px; padding: 8px; border-radius: 12px; border: 1px dashed var(--line); background: rgba(0, 0, 0, .2); }
.mk-chip { position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
.mk-chip span { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #e53935; color: #fff; font: 900 11px/18px Inter, sans-serif; }
.mk-coinin { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; max-height: 340px; overflow-y: auto; padding: 2px; }
.mk-pick { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 8px; border: 1px solid transparent; background: rgba(255, 255, 255, .03); color: var(--muted); cursor: pointer; font: 600 10px Inter, sans-serif; }
.mk-pick:hover { border-color: var(--gold); }
.mk-pick .mk-thumb { width: 100%; }
@media (max-width: 700px) { .mk-build { grid-template-columns: 1fr; } .mk-list { grid-template-columns: 1fr; } .mk-list img { width: 120px; } .mk-sides { grid-template-columns: 1fr; } .mk-arrow { transform: rotate(90deg); justify-self: center; } }
.wb { display: contents; }
/* pricier cards shine harder everywhere ($20+ / $60+ / $150+) */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.tcg.lux2 .face, .tcg.lux3 .face, .tcg.lux4 .face { position: relative; }
.tcg.lux2 .face { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 0 18px rgba(160, 220, 255, .45); }
.tcg.lux3 .face { box-shadow: 0 0 0 2px var(--gold), 0 0 26px color-mix(in srgb, var(--gold) 60%, transparent); }
.tcg.lux4 .face { box-shadow: 0 0 0 3px #ffd36a, 0 0 34px rgba(255, 211, 106, .75), 0 0 70px rgba(255, 140, 60, .35); }
.tcg.lux3 .face::after, .tcg.lux4 .face::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--ang), #ff6b6b, #ffd93d, #6bff95, #6bc7ff, #c56bff, #ff6b6b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: luxSpin 3s linear infinite; opacity: .9; }
.tcg.lux4 .face::after { animation-duration: 1.8s; }
@keyframes luxSpin { to { --ang: 360deg; } }
.tcg.lux2 .shine, .tcg.lux3 .shine, .tcg.lux4 .shine { opacity: .5; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, rgba(255, 220, 255, .35) 50%, transparent 65%); background-size: 250% 100%; animation: luxShine 3.2s ease-in-out infinite; }
@keyframes luxShine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }
.tcg.lux4 .price { background: linear-gradient(90deg, #ffd36a, #ff9a3c) !important; color: #1a1208 !important; }
/* chat performance: off-screen messages skip layout/paint, the panel is isolated from the rest of the page */
.chat .msgs { overscroll-behavior: contain; overflow-anchor: none; }
.window-layer { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.msg.pending { opacity: .6; }
#chat-in { will-change: auto; }
/* top cosmetic tiers: $400 GRAIL (cosmic violet) · $1,000 LEGEND (molten gold) · $2,000+ MYTHIC (living rainbow) */
.tcg.lux5 .face { box-shadow: 0 0 0 3px #9a7bff, 0 0 30px rgba(154, 123, 255, .8), 0 0 70px rgba(90, 60, 255, .4); }
.tcg.lux5 .face::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; mix-blend-mode: screen; opacity: .55;
  background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 80%, #cdbfff, transparent), radial-gradient(1px 1px at 85% 15%, #fff, transparent), radial-gradient(1px 1px at 55% 40%, #fff, transparent);
  background-size: 100% 100%; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .15; } }
.tcg.lux6 .face { box-shadow: 0 0 0 3px #ffb02e, 0 0 36px rgba(255, 176, 46, .9), 0 0 90px rgba(255, 110, 20, .5); animation: molten 2.2s ease-in-out infinite; }
@keyframes molten { 50% { box-shadow: 0 0 0 3px #ffd36a, 0 0 46px rgba(255, 200, 80, 1), 0 0 110px rgba(255, 120, 30, .6); } }
.tcg.lux6::before { content: "👑"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 20px; z-index: 5; filter: drop-shadow(0 2px 6px rgba(255, 180, 40, .9)); animation: bossFloat 2.4s ease-in-out infinite; pointer-events: none; }
.tcg.lux7 .face { animation: mythic 3s linear infinite; }
@keyframes mythic { 0% { box-shadow: 0 0 0 3px #ff5ad8, 0 0 40px #ff5ad8, 0 0 100px rgba(255, 90, 216, .5); } 33% { box-shadow: 0 0 0 3px #5ad8ff, 0 0 40px #5ad8ff, 0 0 100px rgba(90, 216, 255, .5); } 66% { box-shadow: 0 0 0 3px #ffe05a, 0 0 40px #ffe05a, 0 0 100px rgba(255, 224, 90, .5); } 100% { box-shadow: 0 0 0 3px #ff5ad8, 0 0 40px #ff5ad8, 0 0 100px rgba(255, 90, 216, .5); } }
.tcg.lux7 .face::after { animation-duration: 1s; inset: -5px; padding: 5px; }
.tcg.lux7::before { content: "🌌 MYTHIC"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 1px 8px; border-radius: 99px; font: 900 10px Inter, sans-serif; letter-spacing: .1em; color: #fff;
  background: linear-gradient(90deg, #ff5ad8, #5ad8ff, #ffe05a, #ff5ad8); background-size: 300% 100%; animation: mythBar 2s linear infinite; pointer-events: none; white-space: nowrap; }
@keyframes mythBar { to { background-position: 300% 0; } }
.tcg.lux5, .tcg.lux6, .tcg.lux7 { position: relative; }
/* pack opening v2: bigger pack, 3D tilt, light sheen, clean rip + light beam */
.tear-stage { perspective: 1200px; }
.tear-tilt { transform-style: preserve-3d; will-change: transform; }
.tear { width: clamp(240px, 38vh, 380px) !important; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); will-change: transform; }
@media (max-width: 600px) { .tear { width: min(68vw, 300px) !important; } }
.tear .packimg { image-rendering: auto; }
.tear .sheen { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: 6px; mix-blend-mode: screen; opacity: .55;
  background: radial-gradient(60% 40% at var(--sx, 50%) 30%, rgba(255, 255, 255, .45), transparent 70%), linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .25) 48%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0); }
.tear.ripped .sheen { opacity: 0; transition: opacity .2s; }
.tear .beam { position: absolute; left: 50%; bottom: 78%; width: 70%; height: 140%; transform: translateX(-50%) scaleY(.1); transform-origin: 50% 100%; opacity: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(255, 244, 200, .95), rgba(255, 220, 140, .5) 40%, transparent); filter: blur(6px); border-radius: 50% 50% 0 0; }
.tear.god .beam { background: linear-gradient(0deg, rgba(255, 200, 255, .95), rgba(160, 200, 255, .5) 40%, transparent); }
.tear.charging .aura { opacity: 1; transform: scale(1.35); transition: opacity .7s, transform .76s ease-in; }
.tear.charging .leak { box-shadow: 0 0 18px 6px rgba(255, 230, 160, .9); }
.hint-tap { margin-top: 18px; }
/* card reveal: smoother flips */
.rc-inner { will-change: transform; backface-visibility: hidden; }
.rc-front, .rc-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.spread { contain: layout style; }
/* pack pictures fill their frame everywhere (a logo rule was shrinking them to 38%) */
.pack .packimg { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.pack.has-art { overflow: visible; }
/* quick-sell button on revealed cards: top-right corner, not over the name */
.qsell { left: auto; right: 6px; top: 6px; bottom: auto; transform: none; padding: 3px 8px; }
/* chat name colours by trainer level: 5 green · 10 blue · 15 purple · 20 gold glow · 30 fire · 40 rainbow · 50 mythic */
.msg.lt2 .who { color: #7fe08a; }
.msg.lt3 .who { color: #6cc4ff; }
.msg.lt4 .who { color: #c39bff; text-shadow: 0 0 6px rgba(195, 155, 255, .45); }
.msg.lt5 .who { color: #ffd36a; text-shadow: 0 0 8px rgba(255, 211, 106, .7); }
.msg.lt5 > .av { box-shadow: 0 0 0 2px #ffd36a; }
.msg.lt6 .who { background: linear-gradient(90deg, #ff6a2a, #ffd36a, #ff6a2a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nameFlow 2.4s linear infinite; filter: drop-shadow(0 0 5px rgba(255, 120, 40, .7)); }
.msg.lt6 > .av { box-shadow: 0 0 0 2px #ff8a3a, 0 0 12px rgba(255, 120, 40, .7); }
.msg.lt7 .who, .msg.lt8 .who { background: linear-gradient(90deg, #ff5a5a, #ffd93d, #6bff95, #6bc7ff, #c56bff, #ff5a5a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nameFlow 3s linear infinite; font-weight: 900; }
.msg.lt7 > .av { box-shadow: 0 0 0 2px #c56bff, 0 0 14px rgba(197, 107, 255, .7); animation: avHue 4s linear infinite; }
.msg.lt8 > .av { box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255, 255, 255, .8); animation: avHue 2.5s linear infinite; }
.msg.lt8 .mb { position: relative; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 90, 216, .08), rgba(90, 216, 255, .08)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); padding: 2px 8px; }
.msg.lt8 .mh::after { content: " ✨"; }
@keyframes nameFlow { to { background-position: 300% 0; } }
@keyframes avHue { to { filter: hue-rotate(360deg); } }
.msg.lt5 .lvl-tag, .msg.lt6 .lvl-tag { color: #1a1208; background: linear-gradient(90deg, #ffe08a, #e3a91b); }
.msg.lt7 .lvl-tag, .msg.lt8 .lvl-tag { color: #fff; background: linear-gradient(90deg, #ff5ad8, #5ad8ff); }
.lvl-colors .rb { background: linear-gradient(90deg, #ff5a5a, #ffd93d, #6bff95, #6bc7ff, #c56bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* volume button + panel */
.vol-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20, 14, 10, .7); color: var(--ink); font-size: 17px; cursor: pointer; flex: none; }
.vol-pop { position: fixed; z-index: 95; width: 260px; padding: 12px 14px; border-radius: 16px; background: rgba(18, 12, 9, .98); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 10px; }
.vol-pop h4 { margin: 0; font-size: 14px; }
.vol-pop label { display: grid; grid-template-columns: 86px 1fr 30px; align-items: center; gap: 8px; font-size: 13px; }
.vol-pop input[type=range] { width: 100%; accent-color: var(--gold); }
.vol-pop b { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
/* volume button + panel */
.vol-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20, 14, 10, .7); color: var(--ink); font-size: 17px; cursor: pointer; flex: none; }
.vol-pop { position: fixed; z-index: 95; width: 260px; padding: 12px 14px; border-radius: 16px; background: rgba(18, 12, 9, .98); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 10px; }
.vol-pop h4 { margin: 0; font-size: 14px; }
.vol-pop label { display: grid; grid-template-columns: 86px 1fr 30px; align-items: center; gap: 8px; font-size: 13px; }
.vol-pop input[type=range] { width: 100%; accent-color: var(--gold); }
.vol-pop b { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
/* backgrounds: fixed-size pixel art scaled to cover the screen + a lighter overlay so they actually show */
#scene, #scene-anim { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; pointer-events: none; }
#scene { z-index: -4; }
#scene-anim { z-index: -3; will-change: transform; }
.vignette { background: radial-gradient(130% 100% at 50% 35%, transparent 55%, rgba(5, 3, 2, .55) 100%) !important; }
body[data-scene="beach"] .vignette::after, body[data-scene="route"] .vignette::after, body[data-scene="custom"] .vignette::after { background: rgba(14, 10, 7, .2) !important; }
body[data-scene="japan"] .vignette::after { background: rgba(14, 10, 7, .1) !important; }
body.social-home .shafts { display: none; }
/* let the scene breathe around the chat: slightly see-through panels */
body.social-home .chat.embedded { background: rgba(14, 10, 8, .84); }
.rail .glass, .rail .tile { background: rgba(14, 10, 8, .78); }

/* ---- v31: drag-to-rip ---- */
.tear { touch-action: none; user-select: none; -webkit-user-select: none; }
.tear img { -webkit-user-drag: none; pointer-events: none; }
.tearline { position: absolute; top: 20%; left: 0; width: 0; height: 4px; margin-top: -2px; z-index: 5; pointer-events: none; border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,240,190,.2), #fff 50%, rgba(255,240,190,.2));
  box-shadow: 0 0 calc(8px + var(--p, 0) * 22px) calc(2px + var(--p, 0) * 6px) rgba(255, 214, 120, .95), 0 0 2px 1px #fff; }
.tear.god .tearline { box-shadow: 0 0 calc(8px + var(--p, 0) * 22px) calc(2px + var(--p, 0) * 6px) rgba(255, 150, 230, .95), 0 0 2px 1px #fff; }
.tear.tearing { animation: none; }
.tear.tearing .half.top { transform: translateY(calc(var(--rip, 0) * -5px)) rotate(calc(var(--rip, 0) * -1.5deg)); }
.tear.tearing .aura { opacity: calc(.6 + var(--rip, 0) * .4); transform: scale(calc(.8 + var(--rip, 0) * .5)); }
.hint-tap b { color: var(--gold, #ffd36a); }

/* ---- v32: owner stats window ---- */
.ostats { display: grid; gap: 16px; }
.st-range { display: flex; gap: 8px; flex-wrap: wrap; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.st-tile { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.st-tile b { font-size: 24px; color: var(--ink, #f6ead2); font-variant-numeric: tabular-nums; }
.st-tile span { color: var(--muted); font-size: 13px; }
.st-tile small { color: var(--muted); font-size: 11px; opacity: .8; }
.st-tiles.small .st-tile b { font-size: 18px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.st-spark { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.st-sh { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.st-sh b { color: var(--ink, #f6ead2); font-variant-numeric: tabular-nums; }
.st-spark svg { width: 100%; height: 70px; display: block; }
.st-spark .hit { fill: transparent; }
.st-spark .col { fill: var(--gold); opacity: .85; }
.st-spark g:hover .col { opacity: 1; }
.st-spark g:hover .hit { fill: rgba(255, 255, 255, .05); }
.st-spark line { stroke: var(--line); stroke-width: 1; }
.st-ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }
.st-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.st-cols h3 { font-size: 15px; margin: 4px 0 8px; }
.st-bars { display: grid; gap: 6px; margin-bottom: 12px; }
.st-bar { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.st-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.st-track { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.st-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--gold); }
.st-bar b { font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: right; }

/* ---- v33: three new top tiers - $3,500 COSMIC · $6,000 DIVINE · $10,000 GODLIKE (looks only) ---- */
.tcg.lux8::before { content: "🪐 COSMIC"; background: linear-gradient(90deg, #2a5bff, #7ad0ff, #d6a0ff, #2a5bff); background-size: 300% 100%; }
.tcg.lux8 .face { animation: cosmic 4s linear infinite; }
@keyframes cosmic { 0%, 100% { box-shadow: 0 0 0 3px #7ad0ff, 0 0 44px #3a7bff, 0 0 120px rgba(120, 90, 255, .55); } 50% { box-shadow: 0 0 0 3px #d6a0ff, 0 0 54px #a06bff, 0 0 130px rgba(60, 160, 255, .6); } }
.tcg.lux8 .face::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; mix-blend-mode: screen; opacity: .7;
  background: radial-gradient(1.5px 1.5px at 15% 25%, #fff, transparent), radial-gradient(1px 1px at 72% 18%, #cfe8ff, transparent), radial-gradient(2px 2px at 45% 70%, #fff, transparent), radial-gradient(1px 1px at 85% 80%, #e8d0ff, transparent), radial-gradient(1.5px 1.5px at 30% 55%, #fff, transparent), radial-gradient(1px 1px at 60% 40%, #fff, transparent);
  animation: twinkle 1.6s ease-in-out infinite; }
.tcg.lux9::before { content: "🔱 DIVINE"; color: #3a2a08; background: linear-gradient(90deg, #fff6d8, #ffd36a, #fff, #fff6d8); background-size: 300% 100%; }
.tcg.lux9 .face { animation: divine 2.6s ease-in-out infinite; }
@keyframes divine { 0%, 100% { box-shadow: 0 0 0 3px #fff3c4, 0 0 50px rgba(255, 240, 190, .95), 0 0 140px rgba(255, 210, 120, .6); } 50% { box-shadow: 0 0 0 3px #ffffff, 0 0 70px rgba(255, 255, 230, 1), 0 0 170px rgba(255, 220, 140, .75); } }
/* the rays spin by turning the gradient, not the box: a rotating square box grew and shrank the page as it turned (at 45° it's 1.4x wider),
   so the scrollbars bounced and the window pulsed on pages with $6,000+ cards (top slabs, a big slab). The box is also trimmed to where the
   rays fade out (176% instead of 200%, same radii in px), so the look is identical but it pokes out less. */
@property --ray { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tcg.lux9::after, .tcg.lux10::after { content: ""; position: absolute; left: 50%; top: 42%; width: 176%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; border-radius: 50%;
  background: repeating-conic-gradient(from var(--ray), rgba(255, 244, 200, .45) 0deg 6deg, transparent 6deg 20deg); -webkit-mask: radial-gradient(circle closest-side, #000 32.2%, transparent 99.7%); mask: radial-gradient(circle closest-side, #000 32.2%, transparent 99.7%); animation: raysSpin 14s linear infinite; }
@keyframes raysSpin { to { --ray: 360deg; } }
.tcg.lux10::before { content: "⚡ GODLIKE"; background: linear-gradient(90deg, #1a0030, #b06bff, #ff4fd8, #1a0030); background-size: 300% 100%; text-shadow: 0 0 6px #fff; }
.tcg.lux10 .face { animation: godlike 1.4s steps(2) infinite, mythic 3s linear infinite; }
@keyframes godlike { 0%, 100% { filter: none; } 50% { filter: brightness(1.15) saturate(1.3) drop-shadow(0 0 14px #b06bff); } }
.tcg.lux10::after { background: conic-gradient(from var(--ray), transparent, rgba(176, 107, 255, .7), transparent 30%, rgba(255, 79, 216, .6), transparent 60%, rgba(122, 208, 255, .6), transparent 85%); -webkit-mask: radial-gradient(circle closest-side, transparent 28.9%, #000 38.6%, transparent 96.4%); mask: radial-gradient(circle closest-side, transparent 28.9%, #000 38.6%, transparent 96.4%); animation-duration: 3s; animation-direction: reverse; }
.tcg.lux8, .tcg.lux9, .tcg.lux10 { position: relative; z-index: 1; }
.tcg.lux9, .tcg.lux10 { isolation: isolate; }

/* ---- v33: 3D raid stage ---- */
.raid-top:has(.raid-stage) { flex-direction: column; align-items: stretch; }
.raid-stage { position: relative; width: 100%; height: clamp(260px, 44vh, 420px); border-radius: 18px; overflow: hidden; cursor: pointer;
  background: radial-gradient(ellipse at 50% 70%, rgba(var(--line-rgb, 255, 200, 140), .12), rgba(0, 0, 0, .35) 70%); border: 1px solid var(--line); touch-action: manipulation; }
.raid-stage canvas.raid3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.raid-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 110px; animation: bossFloat 3s ease-in-out infinite; }
.raid-stage.live .raid-fallback { display: none; }
.raid-tap { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 4px 12px; border-radius: 99px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; pointer-events: none; opacity: .85; }

/* ---- v33: cosmetics (titles, badges, name effects, frames) + the Locker ---- */
.cbadges { margin-left: 4px; font-size: 13px; letter-spacing: 1px; }
.ctitle { display: block; width: 100%; font-size: 11px; font-weight: 700; color: var(--gold); opacity: .85; letter-spacing: .02em; margin-top: -1px; }
.msg .mh { flex-wrap: wrap; }
.nfx-gold { background: linear-gradient(90deg, #ffe7a0, #ffc23a, #fff2c8, #ffc23a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: nfxSlide 3s linear infinite; }
.nfx-fire { background: linear-gradient(0deg, #ff3a1a, #ff9a2a, #ffe36a); -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 4px rgba(255, 110, 30, .8)); animation: nfxFlick 1.2s steps(3) infinite; }
.nfx-ice { background: linear-gradient(90deg, #bfefff, #7ad0ff, #ffffff, #7ad0ff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 4px rgba(120, 210, 255, .7)); animation: nfxSlide 4s linear infinite; }
.nfx-rainbow { background: linear-gradient(90deg, #ff5a5a, #ffb03a, #ffe45a, #5aff8a, #5ad8ff, #a06bff, #ff5ad8, #ff5a5a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: nfxSlide 3s linear infinite; }
.nfx-galaxy { background: linear-gradient(90deg, #1a0040, #a06bff, #ff5ad8, #5ad8ff, #a06bff, #1a0040); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 6px rgba(160, 107, 255, .9)); animation: nfxSlide 2.4s linear infinite; }
@keyframes nfxSlide { to { background-position: -200% 0; } }
@keyframes nfxFlick { 50% { filter: drop-shadow(0 0 7px rgba(255, 150, 40, 1)); } }
.msg.fr-bronze > .av { box-shadow: 0 0 0 2px #c98a4a, 0 0 8px rgba(201, 138, 74, .6); }
.msg.fr-silver > .av { box-shadow: 0 0 0 2px #dfe6f0, 0 0 10px rgba(220, 230, 255, .7); }
.msg.fr-gold > .av { box-shadow: 0 0 0 2px #ffcb05, 0 0 12px rgba(255, 203, 5, .8); }
.msg.fr-holo > .av { box-shadow: 0 0 0 2px #fff, 0 0 12px #a06bff; animation: frHolo 3s linear infinite; }
.msg.fr-dragon > .av { box-shadow: 0 0 0 2px #ff6a3a, 0 0 0 4px #3a1a0a, 0 0 14px rgba(255, 106, 58, .9); }
@keyframes frHolo { 0% { box-shadow: 0 0 0 2px #ff5ad8, 0 0 12px #ff5ad8; } 33% { box-shadow: 0 0 0 2px #5ad8ff, 0 0 12px #5ad8ff; } 66% { box-shadow: 0 0 0 2px #ffe05a, 0 0 12px #ffe05a; } 100% { box-shadow: 0 0 0 2px #ff5ad8, 0 0 12px #ff5ad8; } }
.locker { display: grid; gap: 14px; }
.lk-head { display: grid; grid-template-columns: 1fr minmax(240px, 1.2fr); gap: 14px; align-items: center; }
.lk-head > div > b { font-size: 26px; }
.lk-preview { margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.lk-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.lk-tabs button { flex: 0 0 auto; display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: inherit; font-weight: 700; cursor: pointer; }
.lk-tabs button small { font-weight: 500; color: var(--muted); font-size: 11px; }
.lk-tabs button.on { background: var(--gold); color: #1a1208; border-color: transparent; }
.lk-tabs button.on small { color: #3a2a08; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lk-item { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.lk-item:hover { transform: translateY(-2px); border-color: var(--gold); }
.lk-item.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 18px var(--glow); }
.lk-item.locked { opacity: .55; cursor: default; filter: grayscale(.6); }
.lk-item.locked:hover { transform: none; border-color: var(--line); }
.lk-ic { font-size: 34px; line-height: 1.1; font-weight: 900; }
.lk-item b { font-size: 14px; }
.lk-item small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.lk-item em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold); }
.lk-bar { width: 80%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lk-bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
@media (max-width: 640px) { .lk-head { grid-template-columns: 1fr; } .lk-grid { grid-template-columns: repeat(2, 1fr); } }

/* ======== v33 visual revamp: a cozy pixel shell - one clean header row, pixel headings, tactile buttons ======== */
.topbar { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; padding: 10px max(18px, env(safe-area-inset-right, 0px)) 10px max(18px, env(safe-area-inset-left, 0px)); min-height: 64px;
  background: linear-gradient(180deg, rgba(var(--panel-rgb, 18, 12, 9), .92), rgba(var(--panel-rgb, 18, 12, 9), .78)); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; pointer-events: none;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--gold) 55%, transparent) 0 6px, transparent 6px 12px); opacity: .45; }
.topbar .logo { height: 40px; flex: none; }
.topbar .live { flex: none; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .25); font: 700 11px Silkscreen, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.topbar .chips { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; gap: 6px; justify-content: center; overflow: hidden; margin: 0; }
.topbar .chip { flex: none; padding: 5px 10px; font-size: 12px; border-radius: 10px; background: rgba(0, 0, 0, .22); }
.topbar .pill { flex: none; max-width: 420px; padding: 4px 6px; gap: 8px; border-radius: 14px; background: rgba(0, 0, 0, .28); }
.topbar .pill b { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.pill-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 30%, #000); font-weight: 800; }
.pill.fr-bronze img, .pill.fr-bronze .pill-av { box-shadow: 0 0 0 2px #c98a4a; } .pill.fr-silver img, .pill.fr-silver .pill-av { box-shadow: 0 0 0 2px #dfe6f0; }
.pill.fr-gold img, .pill.fr-gold .pill-av { box-shadow: 0 0 0 2px #ffcb05, 0 0 10px rgba(255, 203, 5, .7); } .pill.fr-holo img, .pill.fr-holo .pill-av { animation: frHolo 3s linear infinite; }
.pill.fr-dragon img, .pill.fr-dragon .pill-av { box-shadow: 0 0 0 2px #ff6a3a, 0 0 12px rgba(255, 106, 58, .8); }
.topbar .scene-btn { flex: none; padding: 8px 12px; border-radius: 12px; }
@media (max-width: 1500px) { .topbar .chip[data-k="cards"], .topbar .chip[data-k="slabs"] { display: none; } }
@media (max-width: 1250px) { .topbar .chip[data-k="pot"], .topbar .chip[data-k="value"] { display: none; } }
@media (max-width: 1020px) { .topbar .chips { display: none; } }
@media (max-width: 700px) { .topbar { gap: 8px; min-height: 56px; } .topbar .logo { height: 32px; } .topbar .live { display: none; } .topbar .scene-btn span { display: none; } .topbar .pill b { max-width: 80px; } }
/* pixel headings: the cozy game voice, used with restraint (titles only - body text stays easy to read) */
.window-title, .section-title, .rail h3, .menu-title, .lk-head > div > b, .raid-meta h2 { font-family: Silkscreen, Inter, monospace; letter-spacing: .03em; font-weight: 700; }
.window-title { font-size: 17px; }
.window { border-radius: 18px; }
.window-bar { position: relative; }
.window-bar::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); }
/* tactile buttons: a little pixel ledge underneath, pressed down when you click */
.btn { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28), 0 2px 0 rgba(0, 0, 0, .2); }
.btn:active { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .28); transform: translateY(2px) scale(.99); }
.btn.gold { box-shadow: inset 0 -3px 0 rgba(120, 60, 0, .45), 0 8px 22px -10px rgba(255, 190, 40, .8); }
.quickbar button { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); }
/* the chat when it's quiet: a friendly welcome instead of an empty box */
.chat-welcome { margin: auto; max-width: 420px; text-align: center; padding: 24px 18px; display: grid; gap: 10px; justify-items: center; color: var(--muted); }
.chat-welcome .cw-dino { font-size: 46px; animation: bossFloat 3s ease-in-out infinite; }
.chat-welcome b { font: 700 16px Silkscreen, Inter, monospace; color: var(--ink); }
.chat-welcome .cw-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 700px) {
  .quickbar { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; padding-bottom: 2px; margin-inline: -2px; }
  .quickbar::-webkit-scrollbar { display: none; }
  .quickbar button { flex: none; flex-direction: row; gap: 6px; min-height: 42px; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
  .chat.embedded { height: calc(100dvh - 56px - 50px - 64px - 34px - env(safe-area-inset-bottom)) !important; min-height: 320px; }
  .topbar .pill b, .topbar .pill .mini { display: none !important; }
  .topbar .pill { gap: 6px; padding: 3px 8px 3px 4px; }
  .topbar .scene-btn { padding: 8px 10px; }
  .topbar .logo { height: 28px !important; }
}
@media (max-width: 700px) {
  .topbar .logo { flex: 0 1 auto; min-width: 0; max-width: 42vw; object-fit: contain; }
  .topbar .pill { flex: 0 1 auto; min-width: 0; margin-left: auto; }
  .topbar .pill .pill-lvl { display: none; }
  .topbar .scene-btn { display: none; }
  .topbar .vol-btn { width: 36px; height: 36px; }
}

/* =====================================================================================================
   v35 REVAMP - "warm analog": 70s film colour, dappled sunlight, plants & brass, early-2000s magazine energy.
   Light falls across the whole site (UI sunbeams), everything wears a fine film grain, the odd light leak drifts
   in from the edge, panels are warm smoked glass with a brass hairline, and big moments shout like a tuner mag.
   ===================================================================================================== */
:root { --amber: #ffb347; --olive: #9aa63a; --cream: #f6ead2; --brass: #d8a858; --rust: #e0602a;
  --glass: rgba(30, 20, 13, .66); --glass-hi: rgba(255, 220, 160, .10); --line: rgba(255, 206, 140, .18); }
.window { border-radius: 22px; }
/* buttons: warm amber, chunky, with a sunlit top edge */
.btn.gold { background: linear-gradient(180deg, #ffe08a 0%, #ffbf3a 45%, #f29a16 100%); color: #2a1600; text-shadow: 0 1px 0 rgba(255, 240, 200, .6); }
.quickbar button { background: linear-gradient(180deg, rgba(255, 220, 160, .08), rgba(0, 0, 0, .1)), rgba(var(--panel-rgb, 30, 20, 13), .85); }
.quickbar .qb-chest { background: linear-gradient(180deg, #ffe08a, #f2a20e) !important; color: #2a1600; }
/* the cozy pixel voice for titles + the magazine voice for BIG moments */
.big-hit h2.mag, .a-banner { font-family: "Dela Gothic One", Silkscreen, Impact, sans-serif !important; letter-spacing: .02em; }
.big-hit h2.mag { margin: 18px 0 6px; font-size: clamp(34px, 7vw, 68px); line-height: 1; transform: rotate(-4deg) skewX(-8deg); color: #ffe23a;
  -webkit-text-stroke: 3px #2a0e00; paint-order: stroke fill; text-shadow: 5px 5px 0 #e0402a, 9px 9px 0 rgba(0, 0, 0, .55); text-transform: uppercase; animation: magIn .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes magIn { 0% { transform: rotate(-14deg) skewX(-8deg) scale(2.4); opacity: 0; } 100% { transform: rotate(-4deg) skewX(-8deg) scale(1); opacity: 1; } }
.big-hit .jp-stamp { position: absolute; right: 8vw; top: 14vh; z-index: 0; font: 400 clamp(40px, 9vw, 110px) "Dela Gothic One", sans-serif; color: rgba(255, 70, 40, .85); writing-mode: vertical-rl;
  -webkit-text-stroke: 2px #1a0600; paint-order: stroke fill; text-shadow: 4px 4px 0 rgba(0, 0, 0, .5); transform: rotate(6deg); animation: stampIn .5s .15s cubic-bezier(.2, 1.6, .4, 1) both; pointer-events: none; }
@keyframes stampIn { 0% { opacity: 0; transform: rotate(18deg) scale(1.8); } 100% { opacity: 1; transform: rotate(6deg) scale(1); } }
.big-hit .halftone { position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background: radial-gradient(circle, rgba(255, 210, 120, .9) 1.4px, transparent 1.6px) 0 0 / 10px 10px; -webkit-mask: radial-gradient(circle at 50% 45%, #000 0, transparent 60%); mask: radial-gradient(circle at 50% 45%, #000 0, transparent 60%); }
.big-hit p { font-weight: 800; padding: 6px 14px; background: #1a0e06; border: 2px solid #ffe23a; transform: rotate(-2deg); box-shadow: 4px 4px 0 #e0402a; }
.a-banner { -webkit-text-stroke: 2px #1a0800; paint-order: stroke fill; text-shadow: 4px 4px 0 rgba(224, 64, 42, .9), 7px 7px 0 rgba(0, 0, 0, .5); font-style: italic; }
.a-banner.crit { color: #ffe23a; } .a-banner.eff { color: #9affb0; } .a-banner.win { color: #ffe23a; } .a-banner.lose { color: #ffb0a0; }
/* toasts: little tilted magazine stickers */
.toast.big, .toast.t4, .toast.t5 { border: 2px solid #ffe23a; box-shadow: 4px 4px 0 #e0402a, 0 16px 30px -12px rgba(0, 0, 0, .7) !important; }
.toast small { font-family: "Dela Gothic One", Inter, sans-serif !important; letter-spacing: .06em !important; font-weight: 400 !important; }
/* the 3D arena and raid boss get the same film colour as the backgrounds */

/* windows open with a soft focus-pull */
.window { animation: winIn .32s cubic-bezier(.2, .9, .3, 1.05); }
@keyframes winIn { 0% { opacity: 0; transform: translateY(14px) scale(.97); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: none; } }

/* ---- v36: season pass + weekly raid trophies + season frame ---- */
.season { display: grid; gap: 14px; }
.sp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.sp-head h2 { margin: 2px 0 4px; font: 400 26px "Dela Gothic One", Silkscreen, sans-serif; color: #ffe23a; -webkit-text-stroke: 1.5px #2a0e00; paint-order: stroke fill; text-shadow: 3px 3px 0 #e0402a; transform: skewX(-6deg); }
.sp-kicker { font: 700 11px Silkscreen, monospace; letter-spacing: .14em; color: var(--muted); }
.sp-tier { text-align: center; padding: 8px 16px; border-radius: 16px; background: #1a0e06; border: 2px solid #ffe23a; box-shadow: 4px 4px 0 #e0402a; transform: rotate(3deg); }
.sp-tier b { display: block; font: 400 34px "Dela Gothic One", Silkscreen, sans-serif; color: #ffe23a; line-height: 1; }
.sp-tier small { color: var(--muted); font-weight: 700; }
.sp-bar { position: relative; height: 22px; border-radius: 11px; background: rgba(0, 0, 0, .35); overflow: hidden; border: 1px solid var(--line); }
.sp-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #f29a16, #ffe08a); box-shadow: 0 0 18px rgba(255, 200, 80, .6); transition: width .6s; }
.sp-bar span { position: relative; display: block; text-align: center; font: 800 12px/22px Inter, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
.sp-track { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x proximity; }
.sp-node { scroll-snap-align: center; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 12px 8px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: inherit; cursor: default; min-height: 140px; align-content: start; }
.sp-node .sp-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 400 15px "Dela Gothic One", Inter, sans-serif; background: rgba(255, 255, 255, .08); }
.sp-node .sp-r { font-size: 12px; line-height: 1.35; }
.sp-node em { font-style: normal; font: 700 11px Inter, sans-serif; color: var(--muted); margin-top: auto; }
.sp-node.big { border-color: rgba(255, 226, 58, .5); background: linear-gradient(180deg, rgba(255, 210, 90, .12), rgba(255, 255, 255, .03)); }
.sp-node.big .sp-n { background: #ffe23a; color: #2a0e00; }
.sp-node.ready { cursor: pointer; border: 2px solid #ffe23a; box-shadow: 0 0 22px rgba(255, 210, 80, .45); animation: spPulse 1.6s ease-in-out infinite; }
.sp-node.ready em { color: #ffe23a; }
.sp-node.claimed { opacity: .55; }
.sp-node.claimed .sp-n { background: #3a8a3a; color: #fff; }
.sp-node.locked { opacity: .7; }
@keyframes spPulse { 50% { transform: translateY(-3px); box-shadow: 0 0 30px rgba(255, 210, 80, .7); } }
.raid-week { display: grid; gap: 4px; margin-bottom: 10px; }
.rw { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.rw.me { background: color-mix(in srgb, var(--gold) 16%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.rw em { font-style: normal; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.msg.fr-season > .av, .pill.fr-season img, .pill.fr-season .pill-av { animation: frSeason 2.4s linear infinite; }
@keyframes frSeason { 0% { box-shadow: 0 0 0 2px #ffe23a, 0 0 12px #ffe23a; } 50% { box-shadow: 0 0 0 2px #5ad0c8, 0 0 14px #5ad0c8; } 100% { box-shadow: 0 0 0 2px #ffe23a, 0 0 12px #ffe23a; } }
@media (min-width: 701px) { .quickbar { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important; } }
.film-toggle { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); cursor: pointer; }
.film-toggle input { width: 18px; height: 18px; accent-color: var(--gold); }
.film-toggle small { color: var(--muted); }
.scenes .scene-tile canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; image-rendering: pixelated; border-radius: 10px; }


/* =====================================================================================================
   v38 THEME - "Packasaurus Print": a 70s/2000s print-magazine look. Square, crisp panels with hard offset
   shadows; 70s racing stripes (rust / amber / cream) as accents; magazine header bands; warm amber, rust and
   olive on deep brown. Everything that moves animates transform/opacity only (silky 60fps).
   ===================================================================================================== */
:root { --r: 6px; --rs: 3px; --rust: #d9541e; --amber: #ffb02e; --cream: #f6e7c8; --olive: #8a9a3a; --ink: #f6ead2; --muted: #c2ad8c;
  --stripe: linear-gradient(180deg, #d9541e 0 33%, #ffb02e 33% 66%, #f6e7c8 66% 100%);
  --panelc: rgba(var(--panel-rgb, 26, 17, 10), .93); --edge: rgba(246, 231, 200, .16); --hard: 5px 5px 0 rgba(0, 0, 0, .45); }
/* -- panels -- */
.glass, .window, .chat.embedded, .rail section, .feat-week, .chat, .hero-card { border-radius: var(--r) !important; background: var(--panelc) !important;
  border: 1px solid var(--edge) !important; box-shadow: var(--hard) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* -- window: a magazine header band with racing stripes underneath -- */
.window { animation: winIn2 .22s cubic-bezier(.2, .9, .3, 1.05); }
@keyframes winIn2 { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.window-bar { background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .1)) !important; border-bottom: 0 !important; padding: 12px 16px !important; position: relative; }
.window-bar::after { content: "" !important; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; background: var(--stripe) !important; opacity: 1 !important; pointer-events: none; }
.window-body { padding-top: 22px !important; }
.window-title { font: 400 18px "Dela Gothic One", Silkscreen, Impact, sans-serif !important; letter-spacing: .02em !important; text-transform: uppercase; color: var(--cream); }
.window-bar .close, .window-bar .back { border-radius: var(--rs) !important; }
/* -- topbar + nav: dark band, stripe underline -- */
.topbar { background: rgba(var(--panel-rgb, 18, 12, 8), .96) !important; box-shadow: 0 4px 0 rgba(0, 0, 0, .35) !important; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; background: var(--stripe); opacity: .95 !important; pointer-events: none; }
.navbar { background: rgba(var(--panel-rgb, 18, 12, 8), .88) !important; margin-top: 9px; }
.navbar button { border-radius: 0 !important; text-transform: uppercase; font: 800 12.5px/1 Inter, sans-serif !important; letter-spacing: .06em; position: relative; }
.navbar button::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 2px; height: 3px; background: var(--amber); transform: scaleX(0); transition: transform .2s cubic-bezier(.2, .9, .3, 1.2); }
.navbar button:hover::after, .navbar button.on::after { transform: scaleX(1); }
.chip, .topbar .chip { border-radius: var(--rs) !important; background: rgba(0, 0, 0, .3) !important; border: 1px solid var(--edge) !important; }
.topbar .pill { border-radius: var(--r) !important; border: 1px solid var(--edge) !important; background: rgba(0, 0, 0, .3) !important; }
.topbar .live { border-radius: var(--rs) !important; }
.scene-btn, .vol-btn { border-radius: var(--r) !important; }
/* -- buttons: chunky, square, printed -- */
.btn { border-radius: var(--rs) !important; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 13px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .45) !important; transition: transform .12s ease, box-shadow .12s ease, background .2s !important; transform: none; }
.btn:hover { transform: translate(-1px, -1px) !important; box-shadow: 4px 4px 0 rgba(0, 0, 0, .5) !important; }
.btn:active { transform: translate(2px, 2px) !important; box-shadow: 1px 1px 0 rgba(0, 0, 0, .5) !important; }
.btn.gold { background: linear-gradient(180deg, #ffd25a, #ffa915) !important; color: #2a1400 !important; border: 1px solid #1a0c00 !important; }
.btn.big { font-size: 15px; letter-spacing: .06em; }
.btn small { text-transform: none; letter-spacing: 0; }
/* -- home quickbar: printed tiles -- */
.quickbar button { border-radius: var(--rs) !important; border: 1px solid var(--edge) !important; background: var(--panelc) !important; box-shadow: 3px 3px 0 rgba(0, 0, 0, .45) !important;
  text-transform: uppercase; font: 800 12px/1.1 Inter, sans-serif !important; letter-spacing: .05em; transition: transform .12s, box-shadow .12s, border-color .2s !important; }
.quickbar button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(0, 0, 0, .5) !important; border-color: var(--amber) !important; }
.quickbar button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .5) !important; }
.quickbar .qb-chest { background: linear-gradient(180deg, #ffd25a, #ffa915) !important; color: #2a1400 !important; border-color: #1a0c00 !important; }
/* -- chat: section band header, flat rows -- */
.chat header { background: rgba(0, 0, 0, .3); border-bottom: 0 !important; position: relative; }
.chat header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--stripe); }
.chat header b { font: 400 15px "Dela Gothic One", Inter, sans-serif !important; text-transform: uppercase; letter-spacing: .03em; }
.chat .msgs { padding-top: 14px !important; }
#chat-in { border-radius: var(--rs) !important; }
.chat .quick button, .reacts button, .msg .react-add { border-radius: var(--rs) !important; }
.lvl-tag { border-radius: 2px !important; }
/* -- rail -- */
.rail .section-title, .rail h3, .section-title { font: 400 13px "Dela Gothic One", Inter, sans-serif !important; text-transform: uppercase; letter-spacing: .06em; color: var(--cream); }
.rail .section-title::before, .section-title::before { content: ""; display: inline-block; width: 18px; height: 9px; margin-right: 8px; background: var(--stripe); vertical-align: middle; }
/* -- tiles, lists, tabs, inputs: square it all up -- */
.tile, .scene-tile, .lk-item, .sp-node, .more-item, .al-card, .rank, .rw, .shop-item, .pack-slot .row-btns .btn, .st-tile, .st-spark, .toast, .lk-tabs button, .tabs button, .al-tabs button, .raid-stage, .lk-preview, .film-toggle, .sp-tier, input, select, textarea { border-radius: var(--rs) !important; }
.tabs, .al-tabs { border-radius: var(--rs) !important; }
.tabs button.on, .al-tabs button.on, .lk-tabs button.on { background: var(--amber) !important; color: #2a1400 !important; }
.shop-item { box-shadow: var(--hard) !important; border: 1px solid var(--edge) !important; background: var(--panelc) !important; }
.toast { border-radius: var(--rs) !important; box-shadow: 4px 4px 0 rgba(0, 0, 0, .5) !important; }
/* -- motion: only transform/opacity, and only where it helps -- */
.pack.has-art { transition: transform .28s cubic-bezier(.2, .9, .3, 1.25) !important; will-change: transform; filter: none !important; }
.pack-slot:hover .pack.has-art, .shop-item:hover .pack.has-art { filter: none !important; transform: translateY(-8px) rotate(-1.5deg) scale(1.03); }
.packimg { filter: none !important; }
.pack.has-art::before { display: block !important; content: ""; position: absolute; left: 12%; right: 12%; bottom: -6px; height: 14px; top: auto; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(6px); z-index: -1; transition: transform .28s, opacity .28s; }
.pack-slot:hover .pack.has-art::before, .shop-item:hover .pack.has-art::before { transform: scale(.85); opacity: .7; }
.scene-tile, .lk-item, .al-card, .more-item, .sp-node { transition: transform .16s cubic-bezier(.2, .9, .3, 1.3), border-color .16s !important; will-change: transform; }
.jr-hover.scene-tile, .jr-hover.lk-item:not(.locked), .jr-hover.al-card, .jr-hover.more-item, .jr-hover.sp-node { transform: translate(-2px, -2px); border-color: var(--amber) !important; }
.jr-clip { position: fixed; overflow: hidden; pointer-events: none; z-index: 9000; }
.jr-ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 190, .55), rgba(255, 200, 120, .18) 45%, transparent 70%); will-change: transform, opacity; }

/* -- dimmer, moodier: the scene sits back behind the UI -- */
.vignette { background: radial-gradient(120% 95% at 50% 35%, rgba(8, 5, 3, .22) 30%, rgba(5, 3, 2, .82) 100%) !important; opacity: 1 !important; }
body.social-home .vignette { opacity: 1 !important; }
:root { --gold: #f2a52a; --gold-2: #e08a2a; }
.btn.gold, .quickbar .qb-chest { background: linear-gradient(180deg, #f2b84a, #e08a14) !important; }
/* ---- 3D pack opening ---- */
.tear-stage canvas.pack3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; touch-action: none; cursor: grab; }
.tear-stage canvas.pack3d:active { cursor: grabbing; }
.tear-stage.is3d .hint-tap { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); z-index: 4; white-space: nowrap; pointer-events: none; }
.tearline { display: none; }
.tear:focus, .tear-stage:focus { outline: none; }
/* no pale shine rectangles around pack art (the art has transparent edges, the shine didn't) */
.pack.has-art .foil, .tear .sheen, .tear .leak { display: none !important; }
.pack.has-art::before { display: none !important; }

/* ---- v40: friendlier retro - rounded corners back, Righteous (a rounded 70s/80s face) for titles, buttons and nav ---- */
:root { --r: 14px; --rs: 11px; --display: "Righteous", "Dela Gothic One", Inter, sans-serif; }
.window-title, .chat header b, .section-title, .rail .section-title, .rail h3, .lk-head > div > b, .raid-meta h2, .sp-head h2 { font-family: var(--display) !important; text-transform: none !important; letter-spacing: .01em !important; font-weight: 400 !important; }
.window-title { font-size: 21px !important; }
.chat header b { font-size: 18px !important; }
.rail .section-title, .section-title { font-size: 16px !important; }
.btn, .quickbar button, .navbar button, .tabs button, .al-tabs button, .lk-tabs button { font-family: var(--display) !important; text-transform: none !important; letter-spacing: .01em !important; font-weight: 400 !important; }
.btn { font-size: 15px !important; padding: 10px 18px; }
.btn.big { font-size: 17px !important; }
.quickbar button { font-size: 14px !important; }
.navbar button { font-size: 15px !important; }
.btn, .quickbar button, .chip, .topbar .chip, .tabs, .tabs button, .al-tabs button, .lk-tabs button, #chat-in, .window-bar .close, .window-bar .back, .scene-tile, .lk-item, .sp-node, .more-item, .al-card, .rank, .rw, .toast, .st-tile, .st-spark, .film-toggle, .sp-tier, .raid-stage, input, select, textarea { border-radius: var(--rs) !important; }
.glass, .window, .chat.embedded, .rail section, .feat-week, .chat, .hero-card, .shop-item, .topbar .pill { border-radius: var(--r) !important; }
.window { overflow: hidden; }
.window-bar { border-radius: var(--r) var(--r) 0 0; }
.navbar button::after { border-radius: 3px; }

/* ---- v41 polish: printed-paper panels, glossy amber buttons, icon badges, warm scrollbars, sticker tags ---- */
:root { --paper: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .7  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
/* a faint, still paper grain on every panel - the printed look, zero animation */
.glass, .window, .chat.embedded, .rail section, .feat-week, .shop-item, .hero-card { background-image: var(--paper), linear-gradient(180deg, rgba(255, 220, 160, .05), transparent 40%) !important; background-color: rgba(var(--panel-rgb, 26, 17, 10), .93) !important; }
/* window header: warm gradient band, title with a little sun-stamp */
.window-bar { background: linear-gradient(90deg, rgba(217, 84, 30, .22), rgba(255, 176, 46, .08) 45%, rgba(0, 0, 0, .15)) !important; }
.window-title::before { content: "✦"; color: var(--amber); margin-right: 8px; font-size: .8em; vertical-align: .1em; }
/* gold buttons: a glossy top highlight + a warm glow on hover */
.btn.gold { position: relative; overflow: hidden; }
.btn.gold::before { content: ""; position: absolute; left: 6%; right: 6%; top: 2px; height: 42%; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); pointer-events: none; }
.btn.gold:hover { box-shadow: 4px 4px 0 rgba(0, 0, 0, .5), 0 0 18px rgba(255, 176, 46, .45) !important; }
.btn:not(.gold) { background: linear-gradient(180deg, rgba(255, 230, 190, .09), rgba(0, 0, 0, .12)), rgba(var(--panel-rgb, 26, 17, 10), .9); border: 1px solid var(--edge); }
.btn:not(.gold):hover { border-color: rgba(255, 176, 46, .55); }
/* home buttons: icons sit in little round badges */
.quickbar button .ic, .quickbar button > span:first-child:not(:only-child) { flex: none; }
.quickbar button .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255, 176, 46, .14); box-shadow: inset 0 0 0 1px rgba(255, 176, 46, .3); }
.quickbar .qb-chest .ic, .quickbar .qb-chest { }
/* list rows + chat: soft hover tint, no jumpy borders */
.rank, .rw, .more-item { transition: background .15s, transform .16s; }
.rank:hover, .more-item:hover { background: rgba(255, 210, 150, .07); }
.msg { border-radius: 10px; transition: background .15s; }
.msg:hover { background: rgba(255, 220, 170, .045); }
.msg .who { font-family: var(--display); font-weight: 400 !important; letter-spacing: .01em; }
/* sticker tags: chips + level tags + type tags with a slight tilt and a hard shadow */
.lvl-tag, .pl-type, .badge.new, .tag { box-shadow: 2px 2px 0 rgba(0, 0, 0, .4); }
.badge.new { transform: rotate(-4deg); }
.chip b, .topbar .chip b { color: var(--cream); }
/* warm scrollbars everywhere */
* { scrollbar-color: rgba(255, 176, 46, .45) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(255, 176, 46, .55), rgba(217, 84, 30, .5)); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
/* inputs: warm inset fields */
input.search, #chat-in, .window input[type=text], .window input[type=number], .window select { background: rgba(0, 0, 0, .32) !important; border: 1px solid var(--edge) !important; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25); transition: border-color .15s, box-shadow .15s; }
input.search:focus, #chat-in:focus, .window input:focus, .window select:focus { border-color: rgba(255, 176, 46, .7) !important; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25), 0 0 0 3px rgba(255, 176, 46, .18) !important; outline: none; }
/* topbar coin counter reads like a scoreboard */
.pill-coin { font-family: var(--display); font-weight: 400 !important; letter-spacing: .02em; }
/* section headers in the rail get a little breathing room + a hairline */
.rail .section-title { padding-bottom: 6px; border-bottom: 1px dashed rgba(246, 231, 200, .14); }
/* the home welcome card + empty states feel warmer */
.chat-welcome b { font-family: var(--display) !important; font-weight: 400 !important; font-size: 20px !important; color: var(--cream); }
.empty, .hint.center { color: var(--muted); }
/* pack slots: a soft light pool under each pack */
.pack-slot { position: relative; }
.pack-slot::after { content: ""; position: absolute; left: 18%; right: 18%; top: 62%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 110, .18), transparent); pointer-events: none; z-index: -1; }
.quickbar button { white-space: nowrap; font-size: 13.5px !important; gap: 8px; padding: 8px 10px !important; }
.quickbar button .ic { width: 26px; height: 26px; padding: 5px; }

/* ======== v42 MOBILE: windows become full-height slide-up sheets, compact controls, nothing floating over content ======== */
@media (max-width: 700px) {
  .window-layer[hidden] { display: none !important; }
  .window-layer:not([hidden]) { inset: 0 0 calc(58px + env(safe-area-inset-bottom)) 0 !important; padding: 0 !important; display: flex !important; align-items: flex-end; background: rgba(6, 4, 3, .78); }
  .window, .window-layer .window { width: 100% !important; max-width: 100% !important; height: calc(100% - 6px) !important; max-height: none !important; margin: 0 !important;
    border-radius: 18px 18px 0 0 !important; border-bottom: 0 !important; box-shadow: 0 -10px 30px rgba(0, 0, 0, .55) !important; animation: sheetUp .26s cubic-bezier(.2, .9, .3, 1) !important; }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
  .window-bar { padding: 10px 12px !important; gap: 8px !important; border-radius: 18px 18px 0 0 !important; }
  .window-bar::before { content: ""; position: absolute; left: 50%; top: 5px; width: 38px; height: 4px; margin-left: -19px; border-radius: 3px; background: rgba(246, 231, 200, .25); }
  .window-title { font-size: 18px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
  .window-title::before { display: none; }
  .window-bar .back { padding: 7px 10px !important; font-size: 13px; }
  .window-bar .close { width: 36px; height: 36px; flex: none; }
  .window-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 20px 12px calc(20px + env(safe-area-inset-bottom)) !important; }
  /* the chat bubble never floats over an open window */
  body:has(#layer:not([hidden])) .chat-fab { display: none !important; }
  /* packs: Open is the big button, Seal + Sell share a row */
  .pack-slot .row-btns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px !important; margin-top: 22px !important; }
  .pack-slot .row-btns .btn { padding: 8px 6px !important; font-size: 13px !important; width: 100%; }
  .pack-slot .row-btns .btn:first-child { grid-column: 1 / -1; background: linear-gradient(180deg, #f2b84a, #e08a14) !important; color: #2a1400 !important; }
  .packs { gap: 14px 10px !important; }
  /* shop + lists: comfortable two-up grids, no squeezing */
  .shop-grid, .packs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .shop-item { padding: 10px !important; }
  .shop-item .row-btns .btn, .shop-item .qty .btn { font-size: 13px !important; }
  /* toolbars wrap into tidy rows; search goes full width */
  .toolbar { gap: 8px !important; }
  .toolbar .search, .toolbar input.search { flex: 1 1 100% !important; order: -1; }
  /* collection grid: 3 across, readable names */
  .shelf.grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
  .tcg .meta b { font-size: 12px; }
  /* tabs scroll sideways instead of wrapping */
  .lk-tabs, .al-tabs, .tabs { overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; }
  .lk-tabs::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  /* stats/locker/season: tighter */
  .lk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .lk-item { padding: 12px 8px 10px !important; }
  .sp-head { flex-direction: row; } .sp-head h2 { font-size: 22px !important; }
  .sp-track { grid-auto-columns: 118px !important; }
  .ostats .st-grid, .st-cols { grid-template-columns: 1fr !important; }
  /* big tap targets on the tab bar, a soft top edge, active tab highlighted */
  .tabbar { background: rgba(var(--panel-rgb, 18, 12, 8), .97) !important; border-top: 1px solid var(--edge); box-shadow: 0 -6px 20px rgba(0, 0, 0, .45); }
  .tabbar button { font: 400 11px var(--display, Inter), sans-serif !important; letter-spacing: .02em; }
  .tabbar button.on { color: var(--amber) !important; }
  .tabbar button.on .ic { filter: drop-shadow(0 0 6px rgba(255, 176, 46, .7)); }
  /* toasts sit above the tab bar, narrower */
  .toasts, #toasts { bottom: calc(70px + env(safe-area-inset-bottom)) !important; left: 10px !important; right: 10px !important; }
  /* pack opening: the pack fills the sheet nicely */
  .opening { min-height: calc(100% - 10px); }
  .tear-stage.is3d .hint-tap { bottom: 2%; font-size: 13px; }
  /* home: the rail sections below chat get breathing room */
  body.social-home .rail { position: static !important; max-height: none !important; overflow: visible !important; margin-top: 10px; }
  /* raid stage a bit shorter on phones */
  .raid-stage { height: clamp(220px, 36vh, 320px) !important; }
}
.toasts, #toasts { pointer-events: none !important; }
.toasts > *, #toasts > * { pointer-events: auto; }
@media (max-width: 700px) { .pack-slot .row-btns .btn { white-space: nowrap; font-size: 12.5px !important; } .pack-slot .row-btns .btn .ic { width: 14px; height: 14px; } }
@media (max-width: 700px) { .window, .window-layer .window { background-color: rgb(var(--panel-rgb, 26, 17, 10)) !important; } }

.window-layer[hidden] { display: none !important; }

/* ======== v44 accounts ======== */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.auth-tabs button { border: 0; background: transparent; color: var(--muted, #c9b48f); padding: 10px 6px; border-radius: 11px; font: 600 13.5px var(--display, inherit); cursor: pointer; transition: background .15s, color .15s; }
.auth-tabs button.on { background: linear-gradient(180deg, #f2b84a, #e08a14); color: #2a1400; }
.auth-pane h3 { margin: 4px 0 6px; }
.auth-form { display: grid; gap: 12px; margin-top: 12px; }
.auth-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted, #c9b48f); }
.auth-form input { font-size: 16px !important; padding: 12px 14px; border-radius: 12px; color: inherit; width: 100%; box-sizing: border-box; }
.auth-form .btn { padding: 13px; font-size: 16px; }
.auth-form .lc-msg { min-height: 1.2em; margin: 0; }
.al-findrow { display: flex; gap: 8px; }
.al-findrow .search { flex: 1 1 auto; min-width: 0; }
.al-findrow select { flex: none; max-width: 46%; padding: 8px 10px; border-radius: 11px; background: rgba(0, 0, 0, .35); color: inherit; border: 1px solid var(--edge, rgba(255, 220, 160, .2)); font: inherit; font-size: 14px; }
.al-card { position: relative; }
.al-price { position: absolute; top: 6px; right: 6px; z-index: 2; font-style: normal; font: 700 11px/1 var(--display, inherit); padding: 4px 6px; border-radius: 8px; background: rgba(12, 8, 5, .82); color: #ffd98a; border: 1px solid rgba(255, 200, 110, .35); pointer-events: none; }
.al-price.hot { color: #2a1400; background: linear-gradient(180deg, #ffd56a, #f0a02a); border-color: transparent; box-shadow: 0 0 12px rgba(255, 190, 80, .55); }
/* chat title sits inline next to the name, as a small chip */
.ctitle { display: inline-flex !important; width: auto !important; align-items: center; margin: 0 0 0 6px !important; padding: 1px 7px; border-radius: 999px; font-size: 10.5px !important; line-height: 1.5; vertical-align: 1px; white-space: nowrap;
  background: rgba(255, 190, 90, .12); border: 1px solid rgba(255, 190, 90, .28); opacity: 1 !important; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
/* arena lobby never wider than the phone */
#a-lobby, #a-lobby .al-box { min-width: 0; max-width: 100%; box-sizing: border-box; }
#a-lobby .al-box > *, #a-lobby #al-body, #a-lobby #al-deck { min-width: 0; max-width: 100%; }
#a-lobby .al-tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
#a-lobby .al-tabs::-webkit-scrollbar { display: none; }
#a-lobby .al-tabs > * { flex: none; }
@media (max-width: 700px) {
  #a-lobby .al-actions { flex-wrap: wrap; }
  #a-lobby .al-actions .btn { flex: 1 1 140px; }
  #a-lobby .al-sel { gap: 6px; }
  #a-lobby .al-slot { min-width: 0; }
  #a-lobby .al-types { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  #a-lobby .al-types > * { flex: none; }
}

/* ======== GOD PACK takeover ======== */
.god-take { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; cursor: pointer; overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, rgba(60, 20, 70, .55), rgba(5, 2, 10, .92) 70%); }
.god-take .gt-rays { position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255, 90, 160, .35) 0 6deg, transparent 6deg 12deg, rgba(255, 210, 90, .3) 12deg 18deg, transparent 18deg 24deg, rgba(110, 190, 255, .3) 24deg 30deg, transparent 30deg 36deg);
  animation: gtSpin 9s linear infinite; mask-image: radial-gradient(circle, #000 10%, transparent 60%); -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 60%); }
.god-take .gt-beam { position: absolute; left: 50%; top: -10%; bottom: -10%; width: 34vmin; margin-left: -17vmin; filter: blur(14px);
  background: linear-gradient(90deg, transparent, rgba(255, 140, 220, .55), rgba(255, 255, 255, .85), rgba(140, 210, 255, .55), transparent); animation: gtBeam 1.2s ease-in-out infinite alternate; }
.god-take .gt-text { position: relative; text-align: center; display: grid; gap: 4px; }
.god-take .gt-jp { font: 400 clamp(22px, 5vw, 40px) "Dela Gothic One", var(--display), sans-serif; color: #fff; letter-spacing: .1em; text-shadow: 0 0 18px #ff5ac8; }
.god-take .gt-text b { font: 400 clamp(56px, 15vw, 150px)/0.9 var(--display, sans-serif); letter-spacing: .02em;
  background: linear-gradient(90deg, #ff5a7a, #ffb84a, #fff36a, #6af08a, #5ac8ff, #b07aff, #ff5ac8, #ff5a7a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #2a0830) drop-shadow(0 0 24px rgba(255, 120, 220, .7)); animation: gtRainbow 1.4s linear infinite; }
.god-take .gt-text small { font: 700 clamp(12px, 3vw, 18px) var(--display, sans-serif); letter-spacing: .3em; color: #ffe9a8; }
@keyframes gtSpin { to { transform: rotate(360deg); } }
@keyframes gtBeam { from { opacity: .6; transform: scaleX(.8); } to { opacity: 1; transform: scaleX(1.15); } }
@keyframes gtRainbow { to { background-position: 200% 0; } }
.spread.is-god .rcard.god .rc-inner { box-shadow: 0 0 0 3px transparent; }
.spread.is-god .rcard.god::before { content: ""; position: absolute; inset: -5px; border-radius: 14px; z-index: -1;
  background: conic-gradient(from var(--ga, 0deg), #ff5a7a, #ffb84a, #fff36a, #6af08a, #5ac8ff, #b07aff, #ff5a7a); filter: blur(3px); animation: gtRing 2.4s linear infinite; }
.spread.is-god .rcard { position: relative; }
@property --ga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes gtRing { to { --ga: 360deg; } }
.godline { text-align: center; font: 400 clamp(28px, 6vw, 48px) var(--display, sans-serif); background: linear-gradient(90deg, #ff5a7a, #ffb84a, #fff36a, #6af08a, #5ac8ff, #b07aff); -webkit-background-clip: text; background-clip: text; color: transparent; grid-column: 1 / -1; }
.god-txt { background: linear-gradient(90deg, #ff5a7a, #ffb84a, #5ac8ff, #b07aff); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* god packs in your pack list glow too */
.pack-slot:has(.tag) .pack { }

/* ======== special finishes: Shiny / Iridescent / Gold Foil / Cosmic ======== */
.fin-tag { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 3; font-style: normal; white-space: nowrap; pointer-events: none;
  font: 700 10px/1 var(--display, sans-serif); letter-spacing: .06em; padding: 4px 7px; border-radius: 999px; color: #1c1004; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.fin-shiny .fin-tag { background: linear-gradient(90deg, #fff4b8, #ffd34a, #fff4b8); }
.fin-iridescent .fin-tag { background: linear-gradient(90deg, #ffd1f0, #c7f0ff, #d9ffd1, #ffd1f0); background-size: 200% 100%; animation: finSlide 3s linear infinite; }
.fin-gold .fin-tag { background: linear-gradient(90deg, #b8860b, #ffe08a, #b8860b); color: #2a1800; }
.fin-first .fin-tag { background: linear-gradient(90deg, #f4f1e6, #ffffff, #f4f1e6); color: #111; border: 1px solid #111; }
.fin-first .face::after { display: none; }
.fin-cosmic .fin-tag { background: linear-gradient(90deg, #2a1060, #7a4aff, #ff5ac8, #2a1060); background-size: 200% 100%; color: #fff; animation: finSlide 2.4s linear infinite; }
.fin .face, .rcard.fin .rc-front { position: relative; overflow: hidden; }
.fin .face::after, .rcard.fin.on .rc-front::after, .slabx.fin .slab-win::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5; border-radius: inherit; }
.fin-shiny .face::after, .rcard.fin-shiny.on .rc-front::after, .slabx.fin-shiny .slab-win::after { background: radial-gradient(circle at 20% 30%, #fff 0 1.5px, transparent 2px) 0 0/22px 22px, radial-gradient(circle at 70% 60%, #ffe28a 0 1px, transparent 1.5px) 0 0/17px 17px; animation: finTw 2.2s ease-in-out infinite; }
.fin-iridescent .face::after, .rcard.fin-iridescent.on .rc-front::after, .slabx.fin-iridescent .slab-win::after { background: linear-gradient(115deg, #ff9ad5, #9ae6ff, #b6ff9a, #ffe79a, #ff9ad5); background-size: 300% 300%; opacity: .45; animation: finIri 5s linear infinite; }
.fin-gold .face::after, .rcard.fin-gold.on .rc-front::after, .slabx.fin-gold .slab-win::after { background: linear-gradient(120deg, transparent 30%, rgba(255, 220, 120, .9) 45%, rgba(255, 250, 220, 1) 50%, rgba(255, 220, 120, .9) 55%, transparent 70%) 0 0/250% 100%, linear-gradient(#c9952a, #f2d27a); opacity: .42; animation: finSweep 2.6s ease-in-out infinite; }
.fin-cosmic .face::after, .rcard.fin-cosmic.on .rc-front::after, .slabx.fin-cosmic .slab-win::after { background: radial-gradient(circle at 30% 20%, #fff 0 1px, transparent 1.5px) 0 0/19px 19px, radial-gradient(circle at 60% 70%, #c9b0ff 0 1px, transparent 1.6px) 0 0/27px 27px, linear-gradient(135deg, #3a1a8a, #b04aff, #ff5ac8, #4a8aff); opacity: .55; animation: finIri 6s linear infinite; }
.tcg.fin-gold, .rcard.fin-gold, .slabx.fin-gold .slab-win { filter: drop-shadow(0 0 10px rgba(255, 200, 80, .55)); }
.tcg.fin-cosmic, .rcard.fin-cosmic, .slabx.fin-cosmic .slab-win { filter: drop-shadow(0 0 14px rgba(170, 110, 255, .7)); }
@keyframes finSlide { to { background-position: 200% 0; } }
@keyframes finTw { 50% { opacity: .2; } }
@keyframes finIri { to { background-position: 300% 300%; } }
@keyframes finSweep { from { background-position: 120% 0, 0 0; } to { background-position: -120% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .fin .face::after, .fin-tag { animation: none !important; } }
.nfx-master { background: linear-gradient(90deg, #fff1b8, #ffc23a, #fff8e0, #e8a21a, #fff1b8); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 5px rgba(255, 190, 60, .8)); animation: nfxSlide 3s linear infinite; }
.msg.fr-master > .av, .pill.fr-master img, .pill.fr-master .pill-av { box-shadow: 0 0 0 2px #ffd56a, 0 0 0 4px #6a3a08, 0 0 14px rgba(255, 200, 80, .8); }

/* ======== Master sets page ======== */
.ms-tab { color: #ffd56a !important; }
.ms-hero { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 18px; margin-bottom: 14px; border-radius: var(--r, 14px); overflow: hidden;
  background: radial-gradient(ellipse at 15% 20%, rgba(255, 200, 90, .28), transparent 60%), linear-gradient(135deg, #3a2208, #1c1006 60%, #2a1a08); border: 1px solid rgba(255, 200, 100, .4); box-shadow: inset 0 1px 0 rgba(255, 230, 170, .2), 0 10px 30px rgba(0, 0, 0, .4); }
.ms-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 240, 200, .12) 50%, transparent 60%) 0 0/250% 100%; animation: finSweep 5s ease-in-out infinite; }
.ms-crown { font-size: 54px; filter: drop-shadow(0 4px 12px rgba(255, 190, 60, .7)); animation: msBob 3s ease-in-out infinite; }
@keyframes msBob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.ms-copy h2 { margin: 2px 0; font: 400 clamp(26px, 5vw, 38px) var(--display, sans-serif); color: #ffe39a; text-shadow: 0 2px 0 #4a2a06; }
.ms-copy p { margin: 0; color: var(--cream, #f3e3c3); }
.ms-rewards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.ms-rewards > div { padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 200, 100, .22); text-align: center; }
.ms-rewards b { display: block; font: 400 18px var(--display, sans-serif); color: #ffd56a; }
.ms-rewards small { color: var(--muted, #c9b48f); font-size: 11.5px; }
.ms-mine { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
.ms-mine b { font: 400 28px var(--display, sans-serif); color: #fff; }
.ms-list { display: grid; gap: 10px; }
.ms-row { padding: 12px; animation: winIn2 .3s both; }
.ms-row.master { border-color: rgba(255, 200, 90, .7) !important; box-shadow: 0 0 0 1px rgba(255, 200, 90, .4), 0 0 24px rgba(255, 180, 60, .2); }
.ms-top { display: flex; align-items: center; gap: 12px; }
.ms-top > img { width: 64px; height: 30px; object-fit: contain; }
.ms-name { flex: 1; min-width: 0; display: grid; }
.ms-name b { font-family: var(--display, inherit); font-weight: 400; font-size: 16px; }
.ms-name small { color: var(--muted, #c9b48f); }
.ms-trophy { position: relative; width: 44px; flex: none; }
.ms-trophy img { width: 100%; border-radius: 4px; box-shadow: 0 0 0 2px #d8dde4, 0 4px 10px rgba(0, 0, 0, .5); }
.ms-trophy i { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font: 700 8.5px/1 sans-serif; padding: 2px 4px; border-radius: 4px; background: #cc2027; color: #fff; font-style: normal; white-space: nowrap; }
.ms-bars { display: grid; grid-template-columns: 104px 1fr; gap: 6px 10px; align-items: center; margin: 10px 0 8px; }
.ms-bars label { font-size: 12px; color: var(--muted, #c9b48f); display: flex; justify-content: space-between; gap: 4px; }
.ms-bars label span { color: var(--cream, #f3e3c3); }
.qbar.gold i { background: linear-gradient(90deg, #e8a21a, #ffe08a) !important; }
.ms-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted, #c9b48f); }
.ms-foot b { color: #ffd56a; }
.ms-missing { margin-top: 10px; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
.ms-card { display: grid; gap: 2px; text-align: center; font-size: 11px; }
.ms-card img { width: 100%; border-radius: 4px; filter: grayscale(.7) brightness(.7); }
.ms-card b { color: #ffd56a; font-size: 11px; }
@media (max-width: 700px) { .ms-hero { padding: 14px; } .ms-crown { font-size: 40px; } .ms-rewards { grid-template-columns: repeat(2, 1fr); } }

/* ======== Plinko + Crash ======== */
.plinko, .crashm { display: grid; gap: 12px; justify-items: center; }
#pk-cv { width: min(520px, 100%); aspect-ratio: 1 / .82; display: block; }
.pk-slots { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; width: min(520px, 100%); margin-top: -8px; }
.pk-s { text-align: center; font: 700 10.5px/1 var(--display, sans-serif); padding: 7px 0; border-radius: 6px; color: #1c1004; transition: transform .15s; }
.pk-s.mhi { background: linear-gradient(#ff7a9a, #e0405f); color: #fff; } .pk-s.mmid { background: linear-gradient(#ffc45a, #e8901a); } .pk-s.mok { background: linear-gradient(#e8d6a8, #c9b07a); } .pk-s.mlo { background: linear-gradient(#6a5a48, #4a3c2e); color: #e8d6b8; }
.pk-s.hit { animation: pkHit .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pkHit { 0% { transform: translateY(0); } 30% { transform: translateY(6px) scale(1.15); filter: brightness(1.6); } 100% { transform: none; } }
.cr-screen { position: relative; width: min(560px, 100%); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 30% 110%, rgba(255, 150, 60, .18), transparent 60%), linear-gradient(#120c18, #1c1208); border: 1px solid var(--edge, rgba(255, 220, 160, .2)); }
#cr-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.cr-mult { position: absolute; left: 0; right: 0; top: 18%; text-align: center; font: 400 clamp(40px, 10vw, 72px)/1 var(--display, sans-serif); color: #f3e3c3; text-shadow: 0 4px 0 rgba(0, 0, 0, .4); pointer-events: none; font-variant-numeric: tabular-nums; }
.cr-mult.hot { color: #ffd36a; text-shadow: 0 0 24px rgba(255, 190, 70, .6), 0 4px 0 rgba(0, 0, 0, .4); }
.cr-mult.bust { color: #ff6a4a; }
.cr-rocket { position: absolute; left: 0; top: 0; font-size: 34px; will-change: transform; pointer-events: none; filter: drop-shadow(0 0 10px rgba(255, 170, 60, .7)); }
.cr-ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cr-auto { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted, #c9b48f); }
.cr-auto input { width: 84px; padding: 9px 10px; border-radius: 10px; font-size: 16px; }
#ctabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } #ctabs > * { flex: none; }
.paytable { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: min(460px, 100%); margin: 4px auto 0; }
.paytable span { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid var(--edge, rgba(255, 220, 160, .15)); font-size: 14px; }
.paytable b { font: 400 13px var(--display, sans-serif); color: #ffd36a; }

/* ======== one-at-a-time pack reveal ======== */
.stackrev { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; align-items: center; padding: calc(16px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 45%, rgba(70, 40, 16, .75), rgba(8, 5, 3, .94) 70%); touch-action: none; user-select: none; -webkit-user-select: none; }
.stackrev.god { background: radial-gradient(ellipse at 50% 45%, rgba(90, 30, 90, .75), rgba(8, 3, 12, .95) 70%); }
.sr-count { font: 400 18px var(--display, sans-serif); color: var(--muted, #c9b48f); } .sr-count b { color: #fff; font-size: 24px; }
.sr-deck { position: relative; width: min(68vw, 300px, 46vh); aspect-ratio: 63 / 88; }
.sr-card { position: absolute; inset: 0; transform: translate(calc(var(--k) * 1px), calc(var(--k) * -1.2px)); will-change: transform; cursor: grab; }
.sr-card:not(.top) { pointer-events: none; }
.sr-in { position: absolute; inset: 0; transform-style: preserve-3d; }
.sr-front, .sr-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 4.5% / 3.3%; overflow: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.sr-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-back { transform: rotateY(180deg); background: #2a1a10; }
.sr-back > * { width: 100%; height: 100%; }
.sr-card.down .sr-in { transform: rotateY(180deg); }
.sr-card.down.top { filter: drop-shadow(0 0 18px var(--glow, rgba(255, 200, 90, .8))); }
.sr-card.t3 { --glow: rgba(190, 110, 255, .85); } .sr-card.t4 { --glow: rgba(255, 200, 60, .9); } .sr-card.t5 { --glow: rgba(255, 90, 70, .9); }
.sr-card.fin { --glow: rgba(255, 140, 230, .95); }
.sr-tag { position: absolute; left: 0; right: 0; bottom: -46px; display: grid; justify-items: center; gap: 2px; opacity: 0; transition: opacity .2s; }
.sr-card.top:not(.down) .sr-tag { opacity: 1; }
.sr-tag b { font: 400 16px var(--display, sans-serif); color: #fff; } .sr-tag span { font: 700 15px var(--display, sans-serif); color: #ffd36a; }
.sr-val { margin-top: 54px; display: flex; gap: 10px; align-items: baseline; color: var(--muted, #c9b48f); } .sr-val b { font: 400 26px var(--display, sans-serif); color: #ffd36a; font-variant-numeric: tabular-nums; }
.sr-hint { color: var(--muted, #c9b48f); font-size: 13px; display: flex; gap: 8px; align-items: center; }
/* perf: in big grids, finishes are a still sheen (no blend-mode animation on dozens of cards) */
.shelf .fin .face::after, .spread.small .fin .face::after, .ms-grid .fin .face::after { animation: none !important; mix-blend-mode: normal; opacity: .28; }
.shelf .fin-tag, .spread.small .fin-tag { animation: none !important; }
@media (hover: hover) { .shelf .tcg.fin:hover .face::after { animation: finIri 5s linear infinite !important; } }

/* ======== quickbar: final word - nothing spills out of its button ======== */
.quickbar { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)) !important; gap: 8px !important; margin-inline: 0 !important; overflow: visible !important; }
.quickbar button { min-width: 0 !important; width: 100% !important; justify-content: flex-start !important; gap: 8px !important; padding: 7px 12px 7px 8px !important; min-height: 46px !important; flex-direction: row !important; }
.quickbar button > span:not(.ic) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; text-align: left; }
.quickbar .qb-chest { justify-content: center !important; }
@media (max-width: 700px) {
  .quickbar { display: flex !important; overflow-x: auto !important; scrollbar-width: none; padding: 2px 2px 6px !important; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .quickbar::-webkit-scrollbar { display: none; }
  .quickbar button { flex: none !important; width: auto !important; scroll-snap-align: start; }
  .quickbar button > span:not(.ic) { overflow: visible; }
}
.rail-title { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(var(--panel-rgb, 26, 17, 10), .85); border: 1px solid var(--edge, rgba(255, 220, 160, .2)); }

/* ======== invite friends ======== */
.inv { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.inv-hero { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r, 14px);
  background: radial-gradient(ellipse at 10% 20%, rgba(255, 200, 90, .25), transparent 60%), linear-gradient(135deg, #3a2208, #1c1006); border: 1px solid rgba(255, 200, 100, .35); }
.inv-gift { font-size: 50px; animation: msBob 3s ease-in-out infinite; }
.inv-hero h2 { margin: 0 0 4px; font: 400 26px var(--display, sans-serif); color: #ffe39a; }
.inv-hero p { margin: 0; }
.inv-link { display: flex; gap: 8px; }
.inv-link input { flex: 1; min-width: 0; font-size: 15px !important; padding: 12px; border-radius: 12px; color: inherit; }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.inv-stats > div { text-align: center; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--edge, rgba(255, 220, 160, .15)); }
.inv-stats b { display: block; font: 400 24px var(--display, sans-serif); color: #ffd36a; }
.inv-stats small { color: var(--muted, #c9b48f); font-size: 12px; }
.inv h4 { margin: 4px 0 0; }
.inv-list { display: grid; gap: 8px; }
.inv-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); }
.inv-row span { color: var(--muted, #c9b48f); font-size: 13px; }
.inv-row .qbar { grid-column: 1 / -1; }
.row-btns.center { justify-content: center; }

/* ======== first-time tour ======== */
.tour { position: fixed; inset: 0; z-index: 150; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(6, 4, 2, .72), 0 0 0 3px #ffd36a, 0 0 30px rgba(255, 200, 90, .6); transition: all .32s cubic-bezier(.3, .8, .3, 1); pointer-events: none; }
.tour-card { position: fixed; left: 50%; transform: translateX(-50%); width: min(380px, calc(100vw - 32px)); padding: 18px; border-radius: 16px;
  background: rgb(var(--panel-rgb, 26, 17, 10)); border: 1px solid rgba(255, 200, 100, .45); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); transition: top .32s cubic-bezier(.3, .8, .3, 1); }
.tour-card.center { top: 50% !important; transform: translate(-50%, -50%); }
.tour-card h3 { margin: 6px 0; font: 400 22px var(--display, sans-serif); color: #ffe39a; }
.tour-card p { margin: 0 0 14px; line-height: 1.45; }
.tour-btns { display: flex; justify-content: space-between; gap: 10px; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(246, 231, 200, .25); }
.tour-dots i.on { background: #ffd36a; width: 18px; border-radius: 4px; }

/* ======== Elite packs ======== */
.elite-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px; padding: 12px 14px; border-radius: var(--r, 14px); cursor: pointer; text-align: left; color: #fff3d0;
  background: linear-gradient(115deg, #1a1208, #3a2608 40%, #1a1208); border: 1px solid rgba(255, 200, 90, .55); box-shadow: inset 0 1px 0 rgba(255, 230, 170, .2), 0 0 24px rgba(255, 180, 60, .15); position: relative; overflow: hidden; }
.elite-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 235, 180, .18) 50%, transparent 60%) 0 0/250% 100%; animation: finSweep 4s ease-in-out infinite; pointer-events: none; }
.elite-banner .eb-crown { font-size: 30px; } .elite-banner b { display: block; font: 400 18px var(--display, sans-serif); color: #ffd56a; } .elite-banner small { color: #e8d6a8; }
.elite-banner em { margin-left: auto; font-style: normal; color: #ffd56a; white-space: nowrap; }
.pack.elite { box-shadow: 0 0 0 2px #ffd56a, 0 0 22px rgba(255, 190, 70, .55) !important; }
.tag.elite-tag { background: linear-gradient(180deg, #ffe08a, #d9921a) !important; color: #2a1400 !important; }
.el-hero { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; margin-bottom: 12px; border-radius: var(--r, 14px); background: radial-gradient(ellipse at 10% 20%, rgba(255, 200, 90, .25), transparent 60%), linear-gradient(135deg, #2a1a06, #120a04); border: 1px solid rgba(255, 200, 100, .4); }
.el-crown { font-size: 52px; filter: drop-shadow(0 4px 12px rgba(255, 190, 60, .7)); animation: msBob 3s ease-in-out infinite; }
.el-hero h2 { margin: 0 0 4px; font: 400 28px var(--display, sans-serif); color: #ffe39a; } .el-hero p { margin: 4px 0; }
.el-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 12px; }
.el-item { display: grid; gap: 6px; justify-items: center; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 200, 100, .25); }
.el-item .pack { width: 110px; }
.el-name { font: 400 14px var(--display, sans-serif); text-align: center; } .el-price { color: #ffd56a; font-weight: 700; }
.el-item .row-btns { display: grid; gap: 6px; width: 100%; } .el-item .btn { width: 100%; font-size: 13px !important; }

/* ======== Grail hunts ======== */
.gh-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.gh-head h2 { margin: 2px 0; font: 400 30px var(--display, sans-serif); color: #ffe39a; }
.gh-life { text-align: center; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 200, 100, .3); max-width: 190px; }
.gh-life b { display: block; font: 400 30px var(--display, sans-serif); color: #ffd56a; } .gh-life small { color: var(--muted, #c9b48f); font-size: 11.5px; }
.gh-list { display: grid; gap: 10px; }
.gh { padding: 12px 14px; border-radius: 14px; background: rgba(var(--panel-rgb, 26, 17, 10), .9); border: 1px solid var(--edge, rgba(255, 220, 160, .18)); display: grid; gap: 8px; }
.gh.leg { border-color: rgba(255, 200, 90, .6); background: radial-gradient(ellipse at 0 0, rgba(255, 190, 80, .18), transparent 60%), rgba(var(--panel-rgb, 26, 17, 10), .92); box-shadow: 0 0 22px rgba(255, 180, 60, .12); }
.gh.done:not(.claimed) { box-shadow: 0 0 0 2px #ffd56a, 0 0 24px rgba(255, 200, 80, .35); }
.gh.claimed { opacity: .65; }
.gh-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .gh-top b { font: 400 16px var(--display, sans-serif); }
.gh-leg { font-style: normal; font: 700 10px var(--display, sans-serif); letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; background: linear-gradient(90deg, #ffe08a, #e8a21a); color: #2a1400; }
.gh-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted, #c9b48f); }
.gh-rw { color: #ffd56a; } .gh-foot .btn, .gh-foot em { margin-left: auto; font-style: normal; }
@media (max-width: 600px) { .gh-head { grid-template-columns: 1fr; } .gh-life { max-width: none; } }

/* ======== The Vault ======== */
.v-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin-bottom: 14px; }
.v-head .av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #3a2a1a; font: 700 22px var(--display, sans-serif); }
.v-head h2 { margin: 0; font: 400 24px var(--display, sans-serif); color: #ffe39a; }
.v-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.vault { --wood1: #6b4423; --wood2: #3d2412; --wall: #1e140c; padding: 18px 14px 6px; border-radius: 16px; background: radial-gradient(ellipse at 50% 0, rgba(255, 210, 140, .16), transparent 60%), var(--wall); box-shadow: inset 0 0 60px rgba(0, 0, 0, .6); }
.vault.theme-velvet { --wood1: #5a1a1a; --wood2: #2a0a0a; --wall: radial-gradient(#3a0c14, #1a0408); background: radial-gradient(ellipse at 50% 0, rgba(255, 180, 160, .14), transparent 60%), linear-gradient(#3a0c14, #1a0408); }
.vault.theme-marble { --wood1: #cfc8bc; --wood2: #8f877a; background: radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(135deg, #e9e4da, #bdb5a6); }
.vault.theme-neon { --wood1: #2a2a3a; --wood2: #0a0a14; background: radial-gradient(ellipse at 50% 0, rgba(160, 110, 255, .25), transparent 60%), #0c0a18; }
.vault.theme-neon .v-plank { box-shadow: 0 0 14px #b07aff, 0 -2px 0 #ff5ac8 inset !important; }
.v-shelf { margin-bottom: 26px; }
.v-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 0 6px; min-height: 60px; }
.v-plank { height: 14px; margin-top: -2px; border-radius: 3px; background: linear-gradient(var(--wood1), var(--wood2)); box-shadow: 0 8px 14px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .15); }
.v-item { position: relative; display: grid; gap: 6px; cursor: pointer; transition: transform .2s; }
.v-item:hover { transform: translateY(-4px); }
.v-light { position: absolute; left: 10%; right: 10%; top: -18px; height: 60%; background: radial-gradient(ellipse at 50% 0, rgba(255, 230, 180, .28), transparent 70%); pointer-events: none; }
.v-case { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, .55); }
.v-case img { width: 100%; display: block; aspect-ratio: 63 / 88; object-fit: cover; }
.v-item.slab .v-case { padding: 22px 5px 5px; background: linear-gradient(#e8edf2, #c9d1da); border: 1px solid #fff; }
.v-label { position: absolute; left: 5px; right: 5px; top: 4px; height: 14px; border-radius: 2px; background: #cc2027; color: #fff; font: 700 9px/14px sans-serif; text-align: center; }
.v-plaque { text-align: center; display: grid; } .v-plaque b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .v-plaque span { font-size: 11px; color: #ffd56a; }
.theme-marble .v-plaque b { color: #2a2016; } .theme-marble .v-plaque span { color: #7a4a00; }
.ve-top { display: grid; gap: 10px; margin-bottom: 10px; }
.ve-sel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ve-slot { aspect-ratio: 63 / 88; border-radius: 6px; border: 2px dashed rgba(246, 231, 200, .25); display: grid; place-items: center; color: var(--muted, #c9b48f); font-size: 12px; background: rgba(0, 0, 0, .2); padding: 0; overflow: hidden; }
.ve-slot.on { border: 2px solid #ffd56a; cursor: pointer; } .ve-slot img { width: 100%; height: 100%; object-fit: cover; }
.ve-themes { display: flex; gap: 6px; flex-wrap: wrap; } .ve-themes button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--edge, rgba(255, 220, 160, .2)); background: rgba(0, 0, 0, .25); color: inherit; cursor: pointer; }
.ve-themes button.on { background: linear-gradient(180deg, #f2b84a, #e08a14); color: #2a1400; }
.ve-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.ve-card { padding: 4px; border-radius: 8px; border: 2px solid transparent; background: rgba(0, 0, 0, .2); cursor: pointer; display: grid; gap: 3px; color: inherit; }
.ve-card.on { border-color: #ffd56a; box-shadow: 0 0 12px rgba(255, 200, 80, .5); } .ve-card img { width: 100%; border-radius: 4px; } .ve-card small { font-size: 10.5px; color: #ffd56a; }
.vb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.vb-row { display: grid; grid-template-columns: 26px 36px 1fr auto; gap: 4px 10px; align-items: center; width: 100%; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--edge, rgba(255, 220, 160, .15)); background: rgba(0, 0, 0, .22); color: inherit; cursor: pointer; text-align: left; }
.vb-row img { width: 36px; border-radius: 3px; grid-row: span 2; } .vb-row .vb-n { grid-row: span 2; font: 400 18px var(--display, sans-serif); color: #ffd56a; }
.vb-row small { grid-column: 3; color: var(--muted, #c9b48f); font-size: 12px; } .vb-row em { grid-column: 4; grid-row: 1 / span 2; font-style: normal; color: #ffd56a; }
@media (max-width: 600px) { .v-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ve-sel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* background picker: a half-height sheet so you SEE the scene change behind it */
.scene-tip { display: none; }
@media (max-width: 700px) {
  .window-layer.half:not([hidden]) { background: linear-gradient(transparent 40%, rgba(6, 4, 3, .5)) !important; }
  .window-layer.half .window { height: 54% !important; }
  .window-layer.half .scene-tip { display: block; margin: 0 0 8px; text-align: center; }
  .window-layer.half .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .window-layer.half .scene-tile small { display: none; }
  .window-layer.half .scene-tile { padding: 6px !important; }
}
.more-h { margin: 16px 2px 8px; font: 400 15px var(--display, sans-serif); color: var(--muted, #c9b48f); letter-spacing: .02em; }
.more-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.more-quick .more-item { padding: 12px 4px !important; font-size: 12.5px; background: linear-gradient(180deg, rgba(255, 200, 100, .12), rgba(0, 0, 0, .1)); border-color: rgba(255, 200, 100, .35) !important; }
@media (max-width: 700px) {
  .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .more-item { padding: 14px 6px !important; gap: 6px !important; font-size: 12.5px; text-align: center; }
  .more-item .ic { width: 26px !important; height: 26px !important; }
}
/* installed app: room for the phone's status bar, no accidental text selection */
.is-app .topbar { padding-top: calc(6px + env(safe-area-inset-top)) !important; }
.is-app body, html.is-app { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.is-app input, .is-app textarea { -webkit-user-select: text; user-select: text; }
.inst { max-width: 420px; margin: 0 auto; text-align: center; display: grid; gap: 10px; justify-items: center; }
.inst-ic img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.inst h3 { margin: 4px 0; font: 400 22px var(--display, sans-serif); color: #ffe39a; }
.inst-steps { text-align: left; display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.inst-steps li { line-height: 1.45; }
.inst-k { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-weight: 700; }
/* bigger, friendlier tap targets on phones */
@media (max-width: 700px) {
  .btn { min-height: 42px; }
  .window-bar .close { width: 42px !important; height: 42px !important; }
  .window-bar .back { min-height: 40px; }
  .tabbar button { min-height: 54px; }
}
@media (max-width: 700px) { .toasts { left: 12px !important; right: 12px !important; transform: none !important; width: auto !important; top: calc(8px + env(safe-area-inset-top)) !important; bottom: auto !important; } }

/* ======== Living Pokédex / pop report / weekly event ======== */
.dx-head { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; position: relative; margin-bottom: 14px; }
.dx-ring { width: 140px; height: 140px; transform: rotate(-90deg); } .dx-ring circle { fill: none; stroke-width: 12; } .dx-ring .bg { stroke: rgba(255, 255, 255, .08); } .dx-ring .fg { stroke: #ffd56a; stroke-linecap: round; transition: stroke-dashoffset 1s ease-out; filter: drop-shadow(0 0 6px rgba(255, 200, 80, .6)); }
.dx-num { position: absolute; left: 0; top: 0; width: 140px; height: 140px; display: grid; place-content: center; text-align: center; } .dx-num b { font: 400 34px var(--display, sans-serif); color: #fff; } .dx-num small { color: var(--muted, #c9b48f); font-size: 11px; }
.dx-head h2 { margin: 0 0 4px; font: 400 26px var(--display, sans-serif); color: #ffe39a; }
.dx-ms { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.dx-m { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--edge, rgba(255, 220, 160, .15)); overflow: hidden; }
.dx-m b { font: 400 26px var(--display, sans-serif); } .dx-m small { color: var(--muted, #c9b48f); font-size: 11px; } .dx-m span { color: #ffd56a; font-size: 13px; }
.dx-m.done { border-color: rgba(255, 200, 90, .6); } .dx-m.claimed { opacity: .6; } .dx-m em { font-style: normal; }
.dx-m i { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--k) * 100%); background: linear-gradient(90deg, #e8a21a, #ffe08a); }
@media (max-width: 560px) { .dx-head { grid-template-columns: 1fr; justify-items: center; text-align: center; } .dx-num { left: 50%; margin-left: -70px; } }
.pop { margin-top: 12px; } .pop h4 { margin: 0 0 6px; } .pop h4 small { color: var(--muted, #c9b48f); font-weight: 400; font-size: 12px; }
.pop-row { display: flex; flex-wrap: wrap; gap: 6px; } .pop-row span { display: grid; justify-items: center; padding: 6px 9px; border-radius: 10px; background: rgba(0, 0, 0, .28); font-size: 11px; color: var(--muted, #c9b48f); }
.pop-row span b { font: 400 17px var(--display, sans-serif); color: #fff; } .pop-row span.ten { box-shadow: inset 0 0 0 1px #ffd56a; } .pop-row span.ten b { color: #ffd56a; }
.event-strip { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 0 10px; align-items: center; width: 100%; margin: 8px 0 0; padding: 9px 12px; border-radius: var(--r, 14px); cursor: pointer; text-align: left; color: #fff3d0;
  background: linear-gradient(100deg, rgba(120, 50, 140, .55), rgba(60, 30, 80, .55) 50%, rgba(140, 70, 20, .5)); border: 1px solid rgba(255, 180, 230, .4); }
.event-strip .es-tag { grid-row: span 2; font: 700 10px var(--display, sans-serif); letter-spacing: .1em; padding: 4px 7px; border-radius: 8px; background: rgba(255, 255, 255, .15); }
.event-strip b { font: 400 15px var(--display, sans-serif); } .event-strip small { grid-column: 2; color: #f0dcc0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-strip em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-size: 12px; color: #ffd56a; white-space: nowrap; }
.ev-win { text-align: center; max-width: 440px; margin: 0 auto; } .ev-win h2 { font: 400 30px var(--display, sans-serif); color: #ffe39a; }
/* perf: blur-behind effects re-render every frame over the animated background - phones and battles skip them */
@media (pointer: coarse), (max-width: 760px) { *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }
body.arena-open *:not(#arena *) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.arena-open .layout, body.arena-open footer { content-visibility: hidden; }

.fx-overlay { z-index: 140 !important; }

/* ======== daily calendar ======== */
.cal-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.cal-head h2 { margin: 2px 0; font: 400 28px var(--display, sans-serif); color: #ffe39a; }
.cal-prog { text-align: center; padding: 8px 16px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 200, 100, .3); } .cal-prog b { font: 400 30px var(--display, sans-serif); color: #ffd56a; } .cal-prog small { color: var(--muted, #c9b48f); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.cal-day { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 3px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid var(--edge, rgba(255, 220, 160, .14)); text-align: center; min-height: 78px; }
.cal-day .cd-n { font: 400 11px var(--display, sans-serif); color: var(--muted, #c9b48f); } .cal-day .cd-ic { font-size: 20px; } .cal-day small { font-size: 9.5px; line-height: 1.2; color: var(--cream, #f3e3c3); }
.cal-day.big { background: radial-gradient(ellipse at 50% 0, rgba(255, 200, 90, .3), rgba(0, 0, 0, .25)); border-color: rgba(255, 200, 90, .5); }
.cal-day.got { opacity: .55; } .cd-tick { position: absolute; top: 3px; right: 5px; font-style: normal; color: #7fe08a; font-weight: 900; }
.cal-day.today { opacity: 1; border-color: #ffd56a; box-shadow: 0 0 0 2px #ffd56a, 0 0 22px rgba(255, 200, 80, .5); animation: calGlow 1.6s ease-in-out infinite; }
@keyframes calGlow { 50% { box-shadow: 0 0 0 2px #ffd56a, 0 0 34px rgba(255, 200, 80, .8); } }
@media (max-width: 600px) { .cal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cal-head { grid-template-columns: 1fr; } }
.quickbar button.has-dot { position: relative; } .quickbar button.has-dot::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #ff5a4a; box-shadow: 0 0 8px #ff5a4a; animation: calGlow 1.4s infinite; }
/* ======== live pull pop-up ======== */
.pullpop { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; z-index: 125; width: min(440px, calc(100vw - 24px)); display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px;
  background: rgb(var(--panel-rgb, 26, 17, 10)); border: 1px solid rgba(255, 200, 90, .6); box-shadow: 0 12px 34px rgba(0, 0, 0, .6), 0 0 26px rgba(255, 180, 60, .25); }
.pullpop.god { border-color: #ff9ae0; box-shadow: 0 12px 34px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 120, 220, .45); } .pullpop.friend { border-color: #5ad0c8; }
.pullpop > img { width: 48px; border-radius: 4px; } .pp-ic { font-size: 30px; }
.pp-txt small { font: 700 10px var(--display, sans-serif); letter-spacing: .1em; color: #ffd56a; } .pp-txt b { display: block; font-size: 13.5px; line-height: 1.3; }
.pp-r { display: flex; gap: 6px; margin-top: 6px; } .pp-r button { font-size: 20px; width: 40px; height: 34px; border-radius: 10px; border: 1px solid var(--edge, rgba(255, 220, 160, .2)); background: rgba(0, 0, 0, .3); cursor: pointer; transition: transform .12s; }
.pp-r button:active, .pp-r button.on { transform: scale(1.2); background: rgba(255, 200, 90, .25); }
.pp-x { align-self: start; border: 0; background: none; color: var(--muted, #c9b48f); font-size: 16px; cursor: pointer; padding: 4px; }
/* ======== friends ======== */
.fr-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; } .fr-head h2 { margin: 0; font: 400 26px var(--display, sans-serif); color: #ffe39a; }
.fr-stats { display: flex; gap: 8px; } .fr-stats div { text-align: center; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); } .fr-stats b { display: block; font: 400 22px var(--display, sans-serif); color: #ffd56a; } .fr-stats small { font-size: 11px; color: var(--muted, #c9b48f); }
.fr-list { display: grid; gap: 8px; margin-top: 12px; }
.fr-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--edge, rgba(255, 220, 160, .14)); }
.fr-who { position: relative; border: 0; background: none; padding: 0; cursor: pointer; } .fr-who img, .fr-who .av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #3a2a1a; color: #fff; font-weight: 700; }
.fr-who .dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #6a5a48; border: 2px solid #1a120a; } .fr-row.on .dot { background: #4fd16a; box-shadow: 0 0 6px #4fd16a; }
.fr-main { min-width: 0; display: grid; gap: 2px; } .fr-main small { color: var(--muted, #c9b48f); font-size: 12px; } .fr-mut { font-style: normal; font-size: 11px; color: #5ad0c8; margin-left: 6px; }
.fr-best { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cream, #f3e3c3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fr-best img { width: 18px; border-radius: 2px; }
.fr-act { display: flex; gap: 6px; } .btn.sm { padding: 6px 10px !important; min-height: 36px; }
.follow-btn { margin-right: 6px; }
/* ======== pity bar ======== */
.pity { position: relative; margin-bottom: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 220, 120, .25); overflow: hidden; font-size: 13px; }
.pity b { color: #ffd56a; } .pity i { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--k) * 100%); background: linear-gradient(90deg, #ffe07a, #ff9ae0, #9ae6ff); }
@media (min-width: 761px) { .pullpop { left: auto; right: 16px; top: 78px; transform: none !important; } }

/* ======== #1 Arena Champion - chat flair ======== */
.nfx-champ { background: linear-gradient(90deg, #ffd56a, #ff6a3a, #fff3c0, #ff3a5a, #ffd56a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 0 6px rgba(255, 120, 60, .85)); animation: nfxSlide 2s linear infinite; font-weight: 800 !important; }
.ctitle.champ-chip { background: linear-gradient(90deg, #3a0a0a, #8a1a10, #3a0a0a) !important; color: #ffe08a !important; border: 1px solid #ffd56a !important; position: relative; overflow: hidden; letter-spacing: .04em; }
.ctitle.champ-chip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 200, .6) 50%, transparent 70%) 0 0/250% 100%; animation: finSweep 2.4s ease-in-out infinite; }
.msg.is-champ { background: linear-gradient(90deg, rgba(255, 120, 40, .12), transparent 70%); border-left: 3px solid #ffb43a; border-radius: 10px; }
.msg.fr-champ > .av, .pill.fr-champ img, .pill.fr-champ .pill-av { box-shadow: 0 0 0 2px #ffd56a, 0 0 0 4px #b0201a, 0 0 16px rgba(255, 120, 40, .9) !important; animation: champRing 2s ease-in-out infinite; }
@keyframes champRing { 50% { box-shadow: 0 0 0 2px #fff3c0, 0 0 0 4px #ff3a2a, 0 0 24px rgba(255, 160, 60, 1); } }
.gh-slots { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(90, 208, 200, .15); color: #8fe8e0; } .gh-slots.full { background: rgba(255, 90, 70, .15); color: #ff9a8a; }
.gh-win { color: var(--muted, #c9b48f); font-size: 12px; }
.pp-hint { align-self: center; font-size: 11px; color: var(--muted, #c9b48f); margin-left: 2px; }
/* set / master set complete */
.done-take .gt-text b { font-size: clamp(46px, 12vw, 120px) !important; }
.done-take .dt-pack { width: min(120px, 26vw); margin: 0 auto 8px; display: block; filter: drop-shadow(0 0 24px rgba(255, 200, 80, .9)); animation: msBob 2.4s ease-in-out infinite; }
.done-take:not(.master) .gt-rays { opacity: .35; }
.dt-rw { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.dt-rw span { padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 210, 120, .5); color: #ffe39a; font-weight: 700; font-size: 14px; }
.done-take em { display: block; margin-top: 12px; font-style: normal; color: #f3e3c3; opacity: .85; }
.complete-post { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: linear-gradient(100deg, rgba(255, 200, 80, .16), rgba(0, 0, 0, .1)); border: 1px solid rgba(255, 200, 80, .5); }
.complete-post.master { background: linear-gradient(100deg, rgba(255, 120, 220, .18), rgba(255, 200, 80, .14)); border-color: #ffd56a; box-shadow: 0 0 18px rgba(255, 190, 70, .25); }
.complete-post img { width: 42px; } .complete-post b { font: 400 16px var(--display, sans-serif); color: #ffd56a; } .complete-post p { margin: 2px 0; } .complete-post small { color: var(--muted, #c9b48f); }

/* ======== SIMPLE MODE: just packs, cards, shop, chat - big and friendly ======== */
body.simple .quickbar button:not(#qb-chest):not([data-go="calendar"]):not([data-go="packs"]):not([data-go="invite"]) { display: none !important; }
body.simple .event-strip, body.simple .rail, body.simple .pity, body.simple .elite-banner, body.simple .raid-strip { display: none !important; }
body.simple .navbar [data-k="casino"], body.simple .navbar [data-k="market"], body.simple .navbar [data-k="raid"], body.simple .navbar [data-k="quests"], body.simple .navbar [data-k="boards"], body.simple .navbar [data-k="arena"] { display: none !important; }
body.simple .tabbar [data-k="casino"], body.simple .tabbar [data-k="arena"] { display: none !important; }
body.simple .more-h, body.simple .more-grid { display: none; }
body.simple .more-grid:has(.more-item[data-fn="collection"]) { display: grid; }
body.simple .more-grid .more-item:not([data-fn="collection"]):not([data-fn="sets"]):not([data-fn="account"]):not([data-fn="simple"]) { display: none; }
body.simple .more-grid:has(.more-item[data-fn="account"]) { display: grid; }
body.simple .pack-slot .row-btns .btn:not(:first-child) { display: none !important; }
body.simple .pack-slot .row-btns { grid-template-columns: 1fr !important; }
body.simple .quickbar button, body.simple .btn { font-size: 16px !important; }
body.simple .quickbar button { min-height: 56px !important; }
.more-simple { margin-bottom: 12px; } .more-simple .btn { width: 100%; }
body.simple .chat .quick-emojis, body.simple .cw-row button:not(:first-child) { display: none !important; }
.done-take { background: radial-gradient(ellipse at 50% 55%, rgba(60, 30, 10, .7), rgba(5, 3, 2, .97) 70%) !important; }
/* final smoothness pass: off-screen cards in big grids aren't laid out or painted until you scroll to them */
.shelf.grid > .tcg, .ve-grid > .ve-card, .ms-grid > .ms-card, .el-grid > .el-item, .lk-grid > .lk-item { content-visibility: auto; contain-intrinsic-size: auto 260px; }
.window-body { contain: layout paint; }
.mk-slab { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: #cc2027; color: #fff; margin-left: 4px; }
.bg-top { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bg-sum { position: sticky; top: -20px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgb(var(--panel-rgb, 26, 17, 10)); border: 1px solid rgba(255, 200, 100, .35); margin-bottom: 8px; }
.bg-wait { text-align: center; padding: 40px 0; }
.bg-res-h { text-align: center; } .bg-res-h h2 { font: 400 30px var(--display, sans-serif); color: #ffe39a; margin: 4px 0; } .bg-res-h .up { color: #7fe08a; } .bg-res-h .down { color: #ff8a7a; }
.msg.fr-gladiator > .av, .pill.fr-gladiator img, .pill.fr-gladiator .pill-av { box-shadow: 0 0 0 2px #c0c8d8, 0 0 0 4px #3a4458, 0 0 12px rgba(160, 190, 255, .7); }
.al-shoptab b { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 210, 90, .2); color: #ffd56a; }
.ts-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.ts-bal { text-align: center; padding: 10px 16px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 210, 90, .45); } .ts-bal small { font-size: 10px; letter-spacing: .12em; color: var(--muted, #c9b48f); } .ts-bal b { display: block; font: 400 32px var(--display, sans-serif); color: #ffd56a; }
.ts-how { font-size: 13px; } .ts-how em { color: #7fe08a; font-style: normal; }
.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ts-item { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .1); } .ts-item small { color: var(--muted, #c9b48f); font-size: 12px; } .ts-item.can { border-color: rgba(255, 210, 90, .5); } .ts-item.owned { opacity: .6; }
@media (max-width: 600px) { .ts-head { grid-template-columns: 1fr; } }

/* =====================================================================================================
   SIGNAL v2 - late-80s computer graphics / AutoCAD neon wireframes / LED readouts / CRT phosphor / rave poster.
   Black void, thin glowing CAD lines in red-yellow-green-cyan-magenta, heavy red condensed headlines with 。,
   a blue marker tag, mono annotations. Scoped to html.th-signal (More → Style switches back to Warm 70s).
   Rules of thumb here: no clip-path on buttons (it cut borders + badges), no global h3/b recolouring (card names),
   no uppercase on long labels (it overflowed tiles). Glow = box-shadow/text-shadow only (cheap, static, 60fps).
   ===================================================================================================== */
html.th-signal {
  --bg: #020308; --ink: #e8f0ff; --muted: #8592ad; --cream: #e8f0ff;
  --cy: #3ff0ff; --gr: #39ff7a; --rd: #ff3b30; --yl: #ffd23f; --mg: #ff4fd8; --bl: #3b5bff; --or: #ff8a3f; --wh: #f4f7ff;
  --gold: #ffd23f; --gold-2: #ff8a3f; --amber: #3ff0ff;
  --panel-rgb: 4, 6, 12; --panelc: rgba(4, 6, 12, .92); --edge: rgba(63, 240, 255, .42); --line: rgba(63, 240, 255, .3);
  --g-cy: 0 0 0 1px rgba(63, 240, 255, .55), 0 0 12px rgba(63, 240, 255, .32), 0 0 34px rgba(63, 240, 255, .12), inset 0 0 22px rgba(63, 240, 255, .07);
  --g-rd: 0 0 0 1px rgba(255, 59, 48, .8), 0 0 14px rgba(255, 59, 48, .55), 0 0 36px rgba(255, 59, 48, .22);
  --g-yl: 0 0 0 1px rgba(255, 210, 63, .75), 0 0 14px rgba(255, 210, 63, .4);
  --g-mg: 0 0 0 1px rgba(255, 79, 216, .75), 0 0 14px rgba(255, 79, 216, .45);
  --t-rd: 0 0 6px rgba(255, 59, 48, .85), 0 0 18px rgba(255, 59, 48, .45);
  --t-cy: 0 0 5px rgba(63, 240, 255, .9), 0 0 16px rgba(63, 240, 255, .4);
  --t-yl: 0 0 5px rgba(255, 210, 63, .9), 0 0 14px rgba(255, 140, 40, .45);
  --t-gr: 0 0 5px rgba(57, 255, 122, .9), 0 0 14px rgba(57, 255, 122, .4);
  --hard: var(--g-cy);
  --stripe: linear-gradient(90deg, #ff3b30 0 20%, #ff8a3f 20% 40%, #ffd23f 40% 60%, #39ff7a 60% 80%, #3ff0ff 80% 100%);
  --paper: none;
  --poster: "Anton", "Chakra Petch", Impact, sans-serif;
  --display: "Chakra Petch", "Share Tech Mono", Inter, sans-serif;
  --mono: "Share Tech Mono", "VT323", ui-monospace, monospace;
  --led: "VT323", "Share Tech Mono", monospace;
  --r: 0px; --rs: 0px;
}
html.th-signal body { background: #020308 !important; color: var(--ink); font-family: "Chakra Petch", Inter, system-ui, sans-serif; }
/* CAD drafting grid + CRT scanlines + a phosphor vignette (all static) */
html.th-signal body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(63, 240, 255, .05) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(90deg, rgba(63, 240, 255, .05) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(rgba(57, 255, 122, .025) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(57, 255, 122, .025) 1px, transparent 1px) 0 0 / 24px 24px; }
html.th-signal .layout, html.th-signal .stage { position: relative; z-index: 2; }
html.th-signal .vignette, html.th-signal .shafts { display: none !important; }

/* ---------------- type ---------------- */
html.th-signal .window-title, html.th-signal .ms-copy h2, html.th-signal .el-hero h2, html.th-signal .gh-head h2, html.th-signal .cal-head h2, html.th-signal .fr-head h2,
html.th-signal .dx-head h2, html.th-signal .inv-hero h2, html.th-signal .al-head h2, html.th-signal .ar-box h2, html.th-signal .chat-welcome b, html.th-signal .section-title, html.th-signal .ts-head h3 {
  font-family: var(--poster) !important; font-weight: 400 !important; letter-spacing: .01em !important; text-transform: uppercase; color: var(--rd) !important; text-shadow: var(--t-rd) !important; }
html.th-signal .window-title::after, html.th-signal .ms-copy h2::after, html.th-signal .el-hero h2::after, html.th-signal .gh-head h2::after, html.th-signal .cal-head h2::after,
html.th-signal .fr-head h2::after, html.th-signal .dx-head h2::after, html.th-signal .inv-hero h2::after, html.th-signal .al-head h2::after, html.th-signal .chat-welcome b::after { content: "。"; margin-left: -.05em; }
html.th-signal .kicker, html.th-signal .es-tag, html.th-signal small.kicker, html.th-signal .more-h, html.th-signal .al-sec h4, html.th-signal .rail-title {
  font-family: var(--mono) !important; letter-spacing: .14em !important; text-transform: uppercase; color: var(--gr) !important; text-shadow: var(--t-gr); font-weight: 400 !important; }
html.th-signal .hint { color: var(--muted); }

/* ---------------- top bar ---------------- */
html.th-signal .topbar { background: rgba(2, 3, 8, .97) !important; border-bottom: 0 !important; box-shadow: 0 1px 0 rgba(63, 240, 255, .25), 0 8px 30px rgba(0, 0, 0, .6) !important; }
html.th-signal .topbar .logo { display: none !important; }
html.th-signal .wordmark { display: inline-flex !important; }
.wordmark { display: none; align-items: flex-start; font: 400 30px/1 "Anton", "Chakra Petch", Impact, sans-serif; letter-spacing: .01em; color: #ff3b30; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 0 6px rgba(255, 59, 48, .9), 0 0 22px rgba(255, 59, 48, .45); }
.wordmark i { font-style: normal; color: #ff3b30; margin-left: -.12em; }
.wordmark em { font: 400 17px "Permanent Marker", cursive; color: #3b5bff; transform: rotate(-10deg) translate(-2px, -6px); margin-left: 2px; text-transform: lowercase;
  text-shadow: 0 0 8px rgba(59, 91, 255, .8); }
html.th-signal .topbar::after { height: 3px !important; bottom: -3px !important; background: var(--stripe) !important; box-shadow: 0 0 12px rgba(255, 210, 63, .45); }
html.th-signal .live .dot { background: var(--gr) !important; box-shadow: 0 0 8px var(--gr); }
html.th-signal #live-text { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--gr); text-shadow: var(--t-gr); }
html.th-signal .pill, html.th-signal .topbar .pill, html.th-signal .chip, html.th-signal .vol-btn, html.th-signal .scene-btn {
  background: #03050b !important; border: 1px solid rgba(63, 240, 255, .4) !important; border-radius: 0 !important; box-shadow: 0 0 10px rgba(63, 240, 255, .14), inset 0 0 12px rgba(63, 240, 255, .06) !important; }
html.th-signal .chip { font-family: var(--mono); color: var(--muted); }
html.th-signal .chip b { font-family: var(--led); font-size: 1.3em; color: var(--cy); text-shadow: var(--t-cy); font-weight: 400; }
html.th-signal #pill-coins { font-family: var(--led) !important; font-size: 1.45em; color: var(--yl) !important; text-shadow: var(--t-yl); }
html.th-signal .topbar .pill:hover { box-shadow: var(--g-cy) !important; }
html.th-signal .pill-menu { color: var(--cy) !important; background: transparent !important; border: 0 !important; font-size: 14px; }

/* ---------------- panels: CRT monitors with CAD corner marks + coordinates ---------------- */
html.th-signal .glass, html.th-signal .window, html.th-signal .chat.embedded, html.th-signal .rail section, html.th-signal .feat-week, html.th-signal .chat, html.th-signal .hero-card, html.th-signal .al-box, html.th-signal .ar-box {
  background: var(--panelc) !important; background-image: none !important; border: 1px solid rgba(63, 240, 255, .4) !important; border-radius: 0 !important;
  box-shadow: 0 0 14px rgba(63, 240, 255, .16), 0 0 44px rgba(63, 240, 255, .06), inset 0 0 40px rgba(63, 240, 255, .05), 0 20px 50px rgba(0, 0, 0, .55) !important; }
html.th-signal .window, html.th-signal .chat.embedded, html.th-signal .al-box { position: relative; }
html.th-signal .window::before, html.th-signal .chat.embedded::before, html.th-signal .al-box::before { content: ""; position: absolute; inset: -4px; pointer-events: none; z-index: 6;
  --c: var(--cy);
  background: linear-gradient(var(--c), var(--c)) 0 0 / 18px 2px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 2px 18px no-repeat,
              linear-gradient(var(--c), var(--c)) 100% 0 / 18px 2px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 2px 18px no-repeat,
              linear-gradient(var(--c), var(--c)) 0 100% / 18px 2px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 2px 18px no-repeat,
              linear-gradient(var(--c), var(--c)) 100% 100% / 18px 2px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 2px 18px no-repeat; }
html.th-signal .window::after { content: "X 0240.00  Y 0118.50  Z 0.000  ∠30°  LAYER: PK-MAIN"; position: absolute; right: 14px; bottom: 4px; z-index: 6; pointer-events: none;
  font: 400 9.5px var(--mono); letter-spacing: .12em; color: rgba(63, 240, 255, .45); white-space: nowrap; }
html.th-signal .window-bar { background: #02040a !important; border-bottom: 0 !important; position: relative; }
html.th-signal .window-bar::after, html.th-signal .chat header::after { height: 2px !important; bottom: -2px !important; background: var(--stripe) !important; box-shadow: 0 0 10px rgba(255, 210, 63, .4); }
html.th-signal .window-title { font-size: 26px !important; line-height: 1 !important; display: inline-flex; align-items: center; gap: 0; }
html.th-signal .window-title .ic, html.th-signal .window-title img { margin-right: 8px; }
html.th-signal .window-title::before { content: "▌SYS//"; margin-right: 10px; font: 400 11px var(--mono); color: var(--gr); letter-spacing: .1em; text-shadow: var(--t-gr); }
html.th-signal .win-jp { font: 700 12px var(--display); color: var(--mg); letter-spacing: .25em; text-shadow: 0 0 8px rgba(255, 79, 216, .7); margin-left: 10px; white-space: nowrap; }
html.th-signal .window-body { background: transparent; }
html.th-signal .window-layer:not(.half) { background: rgba(1, 2, 6, .8) !important; }
html.th-signal .close, html.th-signal .back { background: transparent !important; border: 1px solid rgba(255, 59, 48, .55) !important; color: var(--rd) !important; border-radius: 0 !important; box-shadow: 0 0 10px rgba(255, 59, 48, .25) !important; }
html.th-signal .back { border-color: rgba(63, 240, 255, .5) !important; color: var(--cy) !important; box-shadow: 0 0 10px rgba(63, 240, 255, .2) !important; }
@media (max-width: 700px) {
  html.th-signal .window { background-color: #03050b !important; }
  html.th-signal .window::after { display: none; }
  html.th-signal .window-title { font-size: 22px !important; }
  html.th-signal .win-jp { display: none; }
}

/* ---------------- buttons: square, neon outline, glow; primary = poster red ---------------- */
html.th-signal .btn, html.th-signal .quickbar button, html.th-signal .tabs button, html.th-signal .al-tabs button, html.th-signal .more-item, html.th-signal .lk-tabs button, html.th-signal .me-item {
  border-radius: 0 !important; font-family: var(--display) !important; font-weight: 600 !important; letter-spacing: .02em !important; }
html.th-signal .btn { background: rgba(3, 5, 11, .9) !important; border: 1px solid rgba(63, 240, 255, .45) !important; color: var(--ink) !important;
  box-shadow: 0 0 8px rgba(63, 240, 255, .14), inset 0 0 10px rgba(63, 240, 255, .06) !important; transition: box-shadow .15s, color .15s, border-color .15s !important; }
html.th-signal .btn:hover:not(:disabled) { border-color: var(--cy) !important; color: var(--cy) !important; box-shadow: var(--g-cy) !important; text-shadow: var(--t-cy); }
html.th-signal .btn.gold, html.th-signal .quickbar .qb-chest, html.th-signal .pack-slot .row-btns .btn:first-child, html.th-signal .btn.primary {
  background: linear-gradient(180deg, #ff5040, #e62a20) !important; border-color: #ff6a5a !important; color: #fff6ee !important; text-shadow: 0 0 6px rgba(255, 255, 255, .35) !important; box-shadow: var(--g-rd), inset 0 1px 0 rgba(255, 255, 255, .25) !important; }
html.th-signal .btn.gold:hover:not(:disabled) { background: linear-gradient(180deg, #ff6450, #ff3b30) !important; color: #fff !important; box-shadow: 0 0 0 1px #ff8a7a, 0 0 22px rgba(255, 59, 48, .75), 0 0 50px rgba(255, 59, 48, .3) !important; }
html.th-signal .btn.ghost { background: transparent !important; box-shadow: none !important; border-color: rgba(133, 146, 173, .45) !important; }
html.th-signal .btn:disabled { opacity: .45; box-shadow: none !important; }
html.th-signal .btn.gold::before, html.th-signal .btn.gold::after { display: none !important; }
html.th-signal .tabs, html.th-signal .al-tabs, html.th-signal .al-seg { background: #02040a !important; border: 1px solid rgba(63, 240, 255, .35) !important; border-radius: 0 !important; box-shadow: inset 0 0 14px rgba(63, 240, 255, .06); }
html.th-signal .tabs button, html.th-signal .al-tabs button, html.th-signal .al-seg button { color: var(--muted) !important; }
html.th-signal .tabs button.on, html.th-signal .al-tabs button.on, html.th-signal .al-seg button.on, html.th-signal .auth-tabs button.on, html.th-signal .ve-themes button.on, html.th-signal .al-types button.on {
  background: var(--cy) !important; color: #01060a !important; box-shadow: 0 0 16px rgba(63, 240, 255, .6), 0 0 34px rgba(63, 240, 255, .2) !important; text-shadow: none !important; }

/* ---------------- nav ---------------- */
html.th-signal .navbar { background: rgba(2, 3, 8, .92) !important; border-bottom: 1px solid rgba(63, 240, 255, .2) !important; }
html.th-signal .navbar button { font-family: var(--mono) !important; text-transform: uppercase; letter-spacing: .1em; color: var(--muted) !important; }
html.th-signal .navbar button.on, html.th-signal .navbar button:hover { color: var(--cy) !important; text-shadow: var(--t-cy); }
html.th-signal .navbar button::after { background: var(--cy) !important; height: 2px !important; box-shadow: 0 0 8px var(--cy); }
html.th-signal .tabbar { background: #020308 !important; border-top: 1px solid rgba(63, 240, 255, .3) !important; box-shadow: 0 -6px 24px rgba(63, 240, 255, .08); }
html.th-signal .tabbar button span { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
html.th-signal .tabbar button.on { color: var(--cy) !important; text-shadow: var(--t-cy); }
html.th-signal .tabbar button.on .ic { filter: drop-shadow(0 0 5px rgba(63, 240, 255, .9)); }

/* ---------------- home ---------------- */
html.th-signal .quickbar button { background: rgba(3, 5, 11, .9) !important; border: 1px solid rgba(63, 240, 255, .35) !important; box-shadow: 0 0 10px rgba(63, 240, 255, .1), inset 0 0 14px rgba(63, 240, 255, .05) !important;
  color: var(--ink) !important; font-size: 12.5px !important; justify-content: flex-start; overflow: visible; }
html.th-signal .quickbar button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.th-signal .quickbar button:hover { border-color: var(--cy) !important; color: var(--cy) !important; box-shadow: var(--g-cy) !important; transform: none !important; }
html.th-signal .quickbar button .ic { background: rgba(63, 240, 255, .08) !important; box-shadow: inset 0 0 0 1px rgba(63, 240, 255, .45), 0 0 8px rgba(63, 240, 255, .25) !important; border-radius: 0 !important; flex: none; }
html.th-signal .quickbar .qb-chest .ic { background: rgba(255, 255, 255, .15) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5) !important; }
@media (max-width: 760px) { html.th-signal .quickbar button { justify-content: center; } }
html.th-signal .event-strip { background: rgba(10, 2, 10, .9) !important; border: 1px solid var(--mg) !important; border-radius: 0 !important; box-shadow: var(--g-mg) !important; }
html.th-signal .event-strip b { font-family: var(--poster); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: var(--mg); text-shadow: 0 0 8px rgba(255, 79, 216, .8); font-size: 1.15em; }
html.th-signal .event-strip .es-tag { background: var(--mg) !important; color: #05070d !important; border-radius: 0 !important; text-shadow: none !important; box-shadow: 0 0 12px rgba(255, 79, 216, .7); }
html.th-signal .event-strip small { color: var(--muted); }
html.th-signal .event-strip em { font-family: var(--led); font-style: normal; color: var(--yl) !important; text-shadow: var(--t-yl); font-size: 1.25em; }
html.th-signal .rail-title { background: transparent !important; border: 0 !important; border-left: 3px solid var(--gr) !important; border-radius: 0 !important; padding: 2px 10px !important; }
html.th-signal .rail section h2, html.th-signal .feat-week h2 { font-family: var(--mono) !important; text-transform: uppercase; letter-spacing: .12em; font-size: 13px !important; color: var(--cy) !important; text-shadow: var(--t-cy) !important; font-weight: 400 !important; }
html.th-signal .rail section h2::after { content: none !important; }
html.th-signal .section-title { font-size: 26px !important; }

/* ---------------- chat: green-screen terminal ---------------- */
html.th-signal .chat header { background: #02040a !important; }
html.th-signal .chat header b, html.th-signal .chat header h2 { font-family: var(--poster) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .03em; color: var(--rd) !important; text-shadow: var(--t-rd); font-size: 1.15em; }
html.th-signal #online { font-family: var(--mono); color: var(--gr) !important; text-shadow: var(--t-gr); }
html.th-signal .msg time { font-family: var(--mono); color: var(--gr) !important; opacity: .65; }
html.th-signal .msg .who { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
html.th-signal .msg .who:not([class*="nfx-"]) { color: var(--cy) !important; text-shadow: 0 0 6px rgba(63, 240, 255, .5); }
html.th-signal .msg .txt, html.th-signal .msg p { font-family: var(--display); }
html.th-signal .msg .lvl-tag { font-family: var(--mono); border-radius: 0 !important; }
html.th-signal #chat-in, html.th-signal input.search, html.th-signal .window input[type=text], html.th-signal .window input[type=number], html.th-signal .window input[type=password], html.th-signal .window select, html.th-signal .auth-form input, html.th-signal .sel, html.th-signal #al-sort {
  background: #01030a !important; border: 1px solid rgba(63, 240, 255, .4) !important; border-radius: 0 !important; color: var(--ink) !important; font-family: var(--mono); box-shadow: inset 0 0 12px rgba(63, 240, 255, .06) !important; }
html.th-signal #chat-in:focus, html.th-signal input:focus, html.th-signal select:focus { border-color: var(--cy) !important; box-shadow: 0 0 0 1px var(--cy), 0 0 14px rgba(63, 240, 255, .35) !important; outline: none; }
html.th-signal .chat-welcome b { font-size: 30px !important; }
html.th-signal .chat-welcome .cw-dino { filter: drop-shadow(0 0 10px rgba(57, 255, 122, .8)); }
html.th-signal .ctitle { border-radius: 0 !important; background: rgba(59, 91, 255, .14) !important; border-color: rgba(59, 91, 255, .7) !important; color: #a9b8ff !important; font-family: var(--mono); box-shadow: 0 0 8px rgba(59, 91, 255, .35); }
html.th-signal .quick button { border-radius: 0 !important; background: #03050b !important; border: 1px solid rgba(63, 240, 255, .3) !important; }
html.th-signal .quick button:hover { box-shadow: var(--g-cy) !important; }

/* ---------------- toasts, pop-ups ---------------- */
html.th-signal .toast { background: rgba(3, 5, 11, .97) !important; border: 1px solid rgba(63, 240, 255, .45) !important; border-left: 3px solid var(--cy) !important; border-radius: 0 !important;
  box-shadow: 0 0 18px rgba(63, 240, 255, .25), 0 12px 30px rgba(0, 0, 0, .6) !important; }
html.th-signal .toast small { font-family: var(--mono); letter-spacing: .14em; color: var(--cy) !important; text-shadow: var(--t-cy); }
html.th-signal .pullpop { background: rgba(3, 5, 11, .97) !important; border-radius: 0 !important; border-color: var(--rd) !important; box-shadow: var(--g-rd) !important; }
html.th-signal .pp-txt small { font-family: var(--mono); color: var(--rd) !important; text-shadow: var(--t-rd); }

/* ---------------- LED readouts ---------------- */
html.th-signal .stat b, html.th-signal .ts-bal b, html.th-signal .gh-life b, html.th-signal .cal-prog b, html.th-signal .ms-mine b, html.th-signal .inv-stats b, html.th-signal .fr-stats b,
html.th-signal .dx-num b, html.th-signal .sr-val b, html.th-signal #bulk-v, html.th-signal .cr-mult, html.th-signal .el-price, html.th-signal .price, html.th-signal .rc-price, html.th-signal .me-stats b, html.th-signal .sr-count {
  font-family: var(--led) !important; letter-spacing: .03em; font-weight: 400 !important; }
html.th-signal .stat b, html.th-signal .ts-bal b, html.th-signal .gh-life b, html.th-signal .cal-prog b, html.th-signal .me-stats b, html.th-signal .sr-val b { color: var(--yl) !important; text-shadow: var(--t-yl); font-size: 1.55em; }
html.th-signal .stat small, html.th-signal .me-stats small { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--cy); }
html.th-signal .stat { background: #02040a !important; border: 1px solid rgba(63, 240, 255, .3) !important; border-radius: 0 !important; box-shadow: inset 0 0 18px rgba(63, 240, 255, .05) !important; }
html.th-signal .qbar { background: #08101c !important; border-radius: 0 !important; box-shadow: inset 0 0 0 1px rgba(63, 240, 255, .2); }
html.th-signal .qbar i { background: linear-gradient(90deg, var(--gr), var(--cy)) !important; border-radius: 0 !important; box-shadow: 0 0 10px rgba(63, 240, 255, .6); }
html.th-signal .qbar.gold i { background: linear-gradient(90deg, var(--yl), var(--rd)) !important; box-shadow: 0 0 10px rgba(255, 140, 40, .6); }

/* ---------------- feature screens ---------------- */
html.th-signal .ms-hero, html.th-signal .el-hero, html.th-signal .inv-hero, html.th-signal .elite-banner {
  background: #02040a !important; border: 1px solid rgba(255, 210, 63, .5) !important; border-radius: 0 !important; box-shadow: 0 0 16px rgba(255, 210, 63, .18), inset 0 0 30px rgba(255, 210, 63, .05) !important; }
html.th-signal .ms-rewards > div, html.th-signal .dt-rw span, html.th-signal .cal-day, html.th-signal .gh, html.th-signal .ts-item, html.th-signal .fr-row, html.th-signal .inv-row, html.th-signal .dx-m, html.th-signal .el-item,
html.th-signal .ms-row, html.th-signal .vb-row, html.th-signal .more-item, html.th-signal .me-item, html.th-signal .al-invite, html.th-signal .al-live, html.th-signal .al-rival, html.th-signal .al-player, html.th-signal .lk-item, html.th-signal .sp-tier, html.th-signal .shop-item, html.th-signal .q-row, html.th-signal .quest {
  background: rgba(2, 4, 10, .92) !important; border: 1px solid rgba(63, 240, 255, .28) !important; border-radius: 0 !important; box-shadow: inset 0 0 16px rgba(63, 240, 255, .04) !important; }
html.th-signal .more-item, html.th-signal .me-item { text-transform: none; transition: box-shadow .15s, border-color .15s; }
html.th-signal .more-item span { font-size: 12px; line-height: 1.15; overflow-wrap: normal; word-break: normal; hyphens: auto; }
@media (max-width: 600px) { html.th-signal .more-item span { font-size: 10.5px; letter-spacing: 0; } }
html.th-signal .more-item:hover, html.th-signal .me-item:hover, html.th-signal .gh:hover, html.th-signal .cal-day:hover { border-color: var(--cy) !important; box-shadow: var(--g-cy) !important; }
html.th-signal .more-quick .more-item { border-color: rgba(255, 59, 48, .55) !important; box-shadow: 0 0 10px rgba(255, 59, 48, .2) !important; }
html.th-signal .cal-day.today, html.th-signal .gh.done:not(.claimed) { border-color: var(--rd) !important; box-shadow: var(--g-rd) !important; }
html.th-signal .gh.leg, html.th-signal .cal-day.big { border-color: var(--yl) !important; box-shadow: 0 0 12px rgba(255, 210, 63, .25) !important; }
html.th-signal .gh-leg { background: var(--yl) !important; color: #05070d !important; border-radius: 0 !important; font-family: var(--mono); box-shadow: 0 0 10px rgba(255, 210, 63, .7); }
html.th-signal .vault { border-radius: 0 !important; }

/* ---------------- pack reveal + big moments ---------------- */
html.th-signal .stackrev { background: radial-gradient(ellipse at 50% 45%, rgba(10, 30, 50, .55), rgba(1, 2, 6, .97) 70%) !important; }
html.th-signal .stackrev::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(63, 240, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(63, 240, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px;
  opacity: .7; }
html.th-signal .sr-count { color: var(--cy); text-shadow: var(--t-cy); font-size: 22px !important; }
html.th-signal .sr-hint { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; }
html.th-signal .sr-tag b { color: var(--wh) !important; font-family: var(--display); text-shadow: 0 0 8px rgba(255, 255, 255, .35); }
html.th-signal .sr-tag span { font-family: var(--led); font-size: 1.35em; color: var(--yl); text-shadow: var(--t-yl); }
html.th-signal .gt-text b, html.th-signal .done-take .gt-text b { font-family: var(--poster) !important; font-weight: 400 !important; text-shadow: var(--t-rd); }
html.th-signal .god-take .gt-jp { font-family: var(--mono); }
html.th-signal .godline { font-family: var(--poster); }

/* ---------------- the blue marker tag ---------------- */
html.th-signal .ms-copy h2::before, html.th-signal .al-head h2::before { content: "pk!"; position: absolute; left: -6px; top: -16px; transform: rotate(-12deg);
  font: 400 22px "Permanent Marker", cursive; color: var(--bl); text-shadow: 0 0 10px rgba(59, 91, 255, .8); text-transform: none; pointer-events: none; }
html.th-signal .ms-copy h2, html.th-signal .al-head h2 { position: relative; }

/* ---------------- the "You" menu ---------------- */
html.th-signal .me-card { background: #02040a !important; border: 1px solid rgba(255, 59, 48, .5) !important; border-radius: 0 !important; box-shadow: 0 0 18px rgba(255, 59, 48, .18), inset 0 0 30px rgba(255, 59, 48, .05) !important; }
html.th-signal .me-av { border-radius: 0 !important; }
html.th-signal .me-card:not([class*="fr-"]) .me-av { box-shadow: 0 0 0 1px var(--cy), 0 0 14px rgba(63, 240, 255, .5) !important; }
html.th-signal .me-id > b { font-family: var(--poster); font-weight: 400; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
html.th-signal .me-lvl span { font-family: var(--led); color: var(--gr); text-shadow: var(--t-gr); font-size: 18px; }
html.th-signal .me-lvl i { border-radius: 0 !important; background: #08101c !important; } html.th-signal .me-lvl i::after { border-radius: 0 !important; background: linear-gradient(90deg, var(--gr), var(--cy)) !important; box-shadow: 0 0 8px rgba(63, 240, 255, .7); }
html.th-signal .me-stats > div { background: #02040a !important; border: 1px solid rgba(63, 240, 255, .3) !important; border-radius: 0 !important; }
html.th-signal .me-out { border-color: rgba(255, 59, 48, .5) !important; color: var(--rd) !important; }

/* ---------------- arena lobby + HUD ---------------- */
html.th-signal .al-big { background: rgba(2, 4, 10, .92) !important; border: 1px solid rgba(63, 240, 255, .4) !important; border-radius: 0 !important; color: var(--ink) !important; box-shadow: 0 0 10px rgba(63, 240, 255, .12) !important; }
html.th-signal .al-big b { font-family: var(--display); color: var(--cy); text-shadow: var(--t-cy); }
html.th-signal .al-big.gold { background: linear-gradient(180deg, rgba(255, 59, 48, .22), rgba(255, 59, 48, .06)) !important; border-color: var(--rd) !important; box-shadow: var(--g-rd) !important; }
html.th-signal .al-big.gold b { color: #fff3ea; text-shadow: var(--t-rd); }
html.th-signal .al-big small { color: var(--muted) !important; }
html.th-signal .al-big:hover { box-shadow: var(--g-cy) !important; }
html.th-signal .al-rank { background: #02040a; border: 1px solid rgba(255, 210, 63, .45); padding: 8px 12px; box-shadow: 0 0 12px rgba(255, 210, 63, .15); }
html.th-signal .al-rank b { font-family: var(--display); color: var(--yl); text-shadow: var(--t-yl); }
html.th-signal .ar-bar { border-radius: 0 !important; background: #08101c !important; } html.th-signal .ar-bar i { border-radius: 0 !important; background: linear-gradient(90deg, var(--yl), var(--rd)) !important; box-shadow: 0 0 8px rgba(255, 140, 40, .7); }
html.th-signal .al-card img { border-radius: 4px !important; }
html.th-signal .al-card.on img { box-shadow: 0 0 0 2px var(--cy), 0 0 22px rgba(63, 240, 255, .7) !important; }
html.th-signal .al-slot { border-radius: 0 !important; border: 1px dashed rgba(63, 240, 255, .45) !important; background: rgba(63, 240, 255, .04) !important; color: var(--cy) !important; font-family: var(--led); font-size: 22px; }
html.th-signal .al-slot.on { border-style: solid !important; box-shadow: var(--g-cy) !important; }
html.th-signal .al-price { border-radius: 0 !important; font-family: var(--mono); }
html.th-signal .al-types button { border-radius: 0 !important; font-family: var(--mono); }
html.th-signal .a-plate { background: rgba(2, 4, 10, .9) !important; border: 1px solid rgba(63, 240, 255, .45) !important; border-radius: 0 !important; box-shadow: 0 0 14px rgba(63, 240, 255, .2), inset 0 0 20px rgba(63, 240, 255, .05) !important; }
html.th-signal .a-plate b { font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; }
html.th-signal .a-icon { border-radius: 0 !important; background: rgba(2, 4, 10, .85) !important; border-color: rgba(63, 240, 255, .4) !important; }
html.th-signal .a-log { border-radius: 0 !important; background: rgba(2, 4, 10, .9) !important; border: 1px solid rgba(57, 255, 122, .45) !important; color: var(--gr) !important; font-family: var(--mono); text-shadow: var(--t-gr); box-shadow: 0 0 14px rgba(57, 255, 122, .18) !important; }
html.th-signal .a-banner { font-family: var(--poster) !important; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 0 10px currentColor, 0 0 30px currentColor !important; }
html.th-signal .a-moves button, html.th-signal .a-move { border-radius: 0 !important; }
html.th-signal .ar-box h2 { font-size: 34px !important; }

/* scrollbars */
html.th-signal ::-webkit-scrollbar-thumb { background: rgba(63, 240, 255, .4) !important; border-radius: 0 !important; box-shadow: 0 0 6px rgba(63, 240, 255, .6); }
html.th-signal ::-webkit-scrollbar-track { background: #020308 !important; }
@media (max-width: 700px) { .wordmark { font-size: 24px !important; } .wordmark em { display: none; } html.th-signal .topbar .pill b { display: none; } html.th-signal #pill-coins { font-size: 1.25em; } }

/* ---------------- "You" menu layout (both themes) ---------------- */
.me-win { display: grid; gap: 12px; }
.me-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r, 14px); background: rgba(0, 0, 0, .3); border: 1px solid var(--line, rgba(255, 255, 255, .12)); }
.me-av { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #222; display: grid; place-items: center; font: 800 26px Inter, sans-serif; }
.me-av img { width: 100%; height: 100%; object-fit: cover; }
.me-id { display: grid; gap: 3px; min-width: 0; } .me-id > b { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-title { color: var(--muted); }
.me-lvl { display: flex; align-items: center; gap: 8px; } .me-lvl small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.me-lvl i { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; max-width: 220px; }
.me-lvl i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--k)); background: var(--gold, #ffcb05); border-radius: 3px; }
.me-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.me-stats > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r, 12px); background: rgba(0, 0, 0, .25); border: 1px solid var(--line, rgba(255, 255, 255, .1)); min-width: 0; }
.me-stats small { font-size: 11px; color: var(--muted); } .me-stats b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.me-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 56px; border-radius: var(--r, 12px); background: rgba(0, 0, 0, .25); border: 1px solid var(--line, rgba(255, 255, 255, .1)); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.me-item .ic { width: 22px; height: 22px; flex: none; } .me-item span { display: grid; min-width: 0; } .me-item b { font-size: 14px; } .me-item small { font-size: 11.5px; color: var(--muted); }
.me-out { justify-self: center; min-width: 180px; }
@media (max-width: 600px) { .me-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .me-card { grid-template-columns: auto 1fr; } .me-card .btn { grid-column: 1 / -1; } .me-grid { grid-template-columns: 1fr 1fr; } .me-item { min-height: 60px; } }

/* update / reconnect banner */
.upd-banner { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 400; display: flex; align-items: center; gap: 12px;
  width: min(560px, calc(100vw - 24px)); padding: 12px 16px; background: rgba(8, 6, 4, .96); border: 1px solid var(--gold, #ffcb05); border-radius: var(--r, 12px); color: var(--ink, #fff); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.upd-banner[hidden] { display: none; }
.upd-banner span { display: grid; gap: 2px; } .upd-banner b { font-size: 15px; } .upd-banner small { color: var(--muted, #bbb); font-size: 12.5px; }
.upd-spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--gold, #ffcb05); animation: updspin .8s linear infinite; }
@keyframes updspin { to { transform: rotate(360deg); } }
html.th-signal .upd-banner { background: rgba(2, 4, 10, .97); border-color: var(--cy); border-radius: 0; box-shadow: var(--g-cy); }
html.th-signal .upd-banner b { font-family: var(--poster); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; color: var(--rd); text-shadow: var(--t-rd); font-size: 18px; }
html.th-signal .upd-banner small { font-family: var(--mono); }
html.th-signal .upd-spin { border-radius: 0; border-color: rgba(63, 240, 255, .2); border-top-color: var(--cy); }

/* ---- battle classes ---- */
.cls-tag { display: inline-flex; align-items: center; padding: 1px 7px; font: 700 10.5px/1.6 "Share Tech Mono", ui-monospace, monospace; letter-spacing: .1em; font-style: normal; color: var(--cc, #aaa);
  border: 1px solid var(--cc, #aaa); border-radius: 3px; box-shadow: 0 0 8px color-mix(in srgb, var(--cc, #aaa) 40%, transparent); vertical-align: middle; white-space: nowrap; }
.cls-tag.open { --cc: #c9c9d6; }
.cls-pick { display: grid; gap: 8px; margin: 6px 0 4px; }
.cls-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; } .cls-head b { font-size: 15px; } .cls-head small { color: var(--muted); }
.cls-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.cls-row button { --cc: #c9c9d6; display: grid; place-items: center; gap: 0; padding: 8px 4px; min-height: 54px; background: rgba(0, 0, 0, .35); border: 1px solid color-mix(in srgb, var(--cc) 45%, transparent); border-radius: var(--r, 10px);
  color: var(--cc); cursor: pointer; font: inherit; transition: box-shadow .15s, background .15s; }
.cls-row button b { font: 400 24px/1 "Anton", "Chakra Petch", Impact, sans-serif; } .cls-row button small { font: 400 10px "Share Tech Mono", monospace; color: var(--muted); }
.cls-row button.on { background: color-mix(in srgb, var(--cc) 18%, transparent); border-color: var(--cc); box-shadow: 0 0 0 1px var(--cc), 0 0 18px color-mix(in srgb, var(--cc) 55%, transparent); text-shadow: 0 0 8px var(--cc); }
.cls-row button:disabled { opacity: .3; cursor: not-allowed; }
.al-rate { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin-bottom: 8px; font-size: 13px; min-height: 24px; }
.al-rate b { font: 400 20px "VT323", monospace; color: var(--gold, #ffd23f); } .al-rate small { color: var(--muted); }
.al-over { color: #ff6b5e; font-weight: 700; } .al-ok { color: #39ff7a; font-weight: 700; }
.al-pwr { font-family: "Share Tech Mono", monospace !important; color: var(--cc) !important; letter-spacing: .06em; }
.cls-board { margin-bottom: 12px; } .cb-h { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; } .cb-h small { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.cb-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cb-col { display: grid; gap: 3px; align-content: start; padding: 8px; border: 1px solid color-mix(in srgb, var(--cc) 45%, transparent); border-radius: var(--r, 10px); background: rgba(0, 0, 0, .3); min-width: 0; font-size: 12px; }
.cb-col > b { font: 400 16px "Anton", Impact, sans-serif; color: var(--cc); text-shadow: 0 0 8px color-mix(in srgb, var(--cc) 60%, transparent); letter-spacing: .04em; }
.cb-col div { display: flex; gap: 5px; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; } .cb-col div span { color: var(--muted); } .cb-col em { margin-left: auto; font-style: normal; color: var(--cc); }
.cb-col small { color: var(--muted); }
@media (max-width: 600px) { .cls-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html.th-signal .cls-tag, html.th-signal .cls-row button, html.th-signal .cb-col { border-radius: 0; }

/* lean mode: switched on automatically when a device can't hold a smooth frame rate */
html.lowfx #fx, html.lowfx .spot, html.lowfx body::after, html.lowfx .shafts { display: none !important; }
html.lowfx .glass, html.lowfx .window, html.lowfx .chat, html.lowfx .rail section, html.lowfx .btn, html.lowfx .quickbar button, html.lowfx .al-box, html.lowfx .toast { box-shadow: none !important; text-shadow: none !important; }
html.lowfx * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* Signal panels are near-opaque, so background blur buys nothing - and blurring an animated background every frame is the #1 GPU cost */
html.th-signal .glass, html.th-signal .window, html.th-signal .window-layer, html.th-signal .chat, html.th-signal .chat.embedded, html.th-signal .topbar, html.th-signal .navbar, html.th-signal .tabbar,
html.th-signal .rail section, html.th-signal .toast, html.th-signal .al-box, html.th-signal .a-plate, html.th-signal .hero-card, html.th-signal .feat-week, html.th-signal .pill, html.th-signal .chat-fab { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.th-signal .topbar { background: #020308 !important; } html.th-signal .navbar { background: #020308 !important; }

/* ---- most-used first: the Open packs tile is the big primary, with a live count ---- */
.quickbar .qb-packs { position: relative; background: linear-gradient(180deg, #ff5a3c, #d9281c) !important; border-color: #ff7a5c !important; color: #fff !important; font-weight: 800; }
.quickbar .qb-packs .ic { filter: brightness(0) invert(1); }
.qb-n, .nb { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 11px; background: #fff; color: #d9281c;
  font: 800 12px/1 Inter, system-ui, sans-serif; font-style: normal; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); pointer-events: none; z-index: 2; }
.qb-n[hidden], .nb[hidden] { display: none; }
.tabbar button, .navbar button { position: relative; }
.navbar .nb { top: -2px; right: -16px; transform: scale(.8); }
.tabbar .nb { top: 2px; right: calc(50% - 26px); }
.tabbar [data-k="packs"] .ic { transform: scale(1.12); }
html.th-signal .quickbar .qb-packs { background: linear-gradient(180deg, #ff5040, #e62a20) !important; border-color: #ff6a5a !important; box-shadow: var(--g-rd) !important; text-shadow: 0 0 6px rgba(255, 255, 255, .4); }
html.th-signal .quickbar .qb-packs .ic { background: rgba(255, 255, 255, .15) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55) !important; }
html.th-signal .qb-n, html.th-signal .nb { border-radius: 0; background: var(--yl); color: #05070d; font-family: var(--led); font-size: 16px; font-weight: 400; box-shadow: 0 0 10px rgba(255, 210, 63, .8); }
html.th-signal .quickbar .qb-chest { background: rgba(3, 5, 11, .9) !important; border-color: var(--yl) !important; color: var(--yl) !important; box-shadow: var(--g-yl) !important; text-shadow: var(--t-yl); }
html.th-signal .quickbar .qb-chest .ic { background: rgba(255, 210, 63, .1) !important; box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .6) !important; }

/* profile picture upload */
.me-av { position: relative; cursor: pointer; }
.me-av-edit { position: absolute; right: 2px; bottom: 2px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gold, #ffcb05); font-style: normal; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.me-av.busy { opacity: .5; pointer-events: none; }
html.th-signal .me-av-edit { border-radius: 0; background: var(--cy); }

/* saved decks */
.al-decks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-bottom: 8px; }
.ad-h { font: 700 11px "Share Tech Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.ad-deck { position: relative; display: grid; gap: 2px; padding: 8px 26px 8px 12px; text-align: left; background: rgba(0,0,0,.35); border: 1px solid var(--line, rgba(255,255,255,.15)); border-radius: var(--r, 10px); color: var(--ink); cursor: pointer; font: inherit; }
.ad-deck b { font-size: 13px; } .ad-deck small { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.ad-deck:hover { border-color: var(--cy, var(--gold)); }
.ad-deck.gone { opacity: .55; } .ad-deck.over { border-color: rgba(255, 90, 80, .6); }
.ad-x { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 11px; color: var(--muted); padding: 2px; }
.ad-x:hover { color: #ff6b5e; }
html.th-signal .ad-deck { border-radius: 0; background: rgba(2,4,10,.92); border-color: rgba(63,240,255,.35); }

.inst.pitch { text-align: center; } .inst-perks { list-style: none; padding: 0; margin: 12px auto; display: grid; gap: 8px; max-width: 380px; text-align: left; }
.inst-perks li { padding: 10px 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: var(--r, 10px); }
html.th-signal .inst-perks li { border-radius: 0; border-color: rgba(63,240,255,.3); }

.as-list { display: grid; gap: 4px; margin-top: 8px; } .as-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: var(--r, 8px); }
.as-row small { grid-column: 1; color: var(--muted); font-size: 11px; } .as-row em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: 12px; color: #ff9a8a; } .as-row.ok em { color: #39ff7a; }

/* ---- new name effects ---- */
.nfx-neon { color: #3ff0ff !important; text-shadow: 0 0 4px #3ff0ff, 0 0 12px rgba(63, 240, 255, .8), 0 0 24px rgba(63, 240, 255, .4); animation: nfxFlicker 4s steps(1) infinite; }
@keyframes nfxFlicker { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } 97% { opacity: 1; } }
.nfx-toxic { background: linear-gradient(90deg, #6aff3a, #c8ff5a, #2aff9a, #6aff3a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 5px rgba(100, 255, 80, .8)); animation: nfxSlide 2.5s linear infinite; }
.nfx-sakura { background: linear-gradient(90deg, #ffd6ec, #ff8ac4, #fff0f7, #ff8ac4); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 4px rgba(255, 140, 200, .7)); animation: nfxSlide 4s linear infinite; }
.nfx-glitch { color: #fff !important; text-shadow: -2px 0 #ff2a6a, 2px 0 #2af0ff; animation: nfxGlitch 2.2s steps(2) infinite; }
@keyframes nfxGlitch { 0%, 80%, 100% { text-shadow: -2px 0 #ff2a6a, 2px 0 #2af0ff; transform: none; } 85% { text-shadow: 3px 0 #ff2a6a, -3px 0 #2af0ff; transform: translateX(1px) skewX(-8deg); } 90% { text-shadow: -1px 0 #ff2a6a, 1px 0 #2af0ff; transform: translateX(-1px); } }
.nfx-holo { background: linear-gradient(110deg, #ff9ad5, #9ad8ff, #c8ffb0, #ffe89a, #c79aff, #ff9ad5); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .7)); animation: nfxSlide 3s linear infinite; }
.nfx-lava { background: linear-gradient(0deg, #6a0a00, #ff3a00, #ffb000, #ff3a00); background-size: 100% 200%; -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 6px rgba(255, 70, 0, .85)); animation: nfxRise 2s linear infinite; }
@keyframes nfxRise { to { background-position: 0 -200%; } }
.nfx-shadow { color: #d8c8ff !important; text-shadow: 0 0 6px #3a0a6a, 0 0 14px #1a0040, 2px 2px 0 #2a0a4a; }
.nfx-plasma { background: linear-gradient(90deg, #b04aff, #ff4ad8, #4a8aff, #b04aff); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 6px rgba(190, 80, 255, .9)); animation: nfxSlide 1.6s linear infinite; }
.nfx-vapor { background: linear-gradient(90deg, #ff71ce, #01cdfe, #05ffa1, #b967ff, #fffb96, #ff71ce); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 4px rgba(255, 113, 206, .7)); animation: nfxSlide 5s linear infinite; font-style: italic; }
/* ---- new frames ---- */
.msg.fr-neon > .av, .pill.fr-neon img, .pill.fr-neon .pill-av { box-shadow: 0 0 0 2px #3ff0ff, 0 0 12px rgba(63, 240, 255, .9), 0 0 24px rgba(63, 240, 255, .4); }
.msg.fr-sakura > .av, .pill.fr-sakura img, .pill.fr-sakura .pill-av { box-shadow: 0 0 0 2px #ffb6dc, 0 0 0 4px #7a2a52, 0 0 14px rgba(255, 140, 200, .8); }
.msg.fr-circuit > .av, .pill.fr-circuit img, .pill.fr-circuit .pill-av { box-shadow: 0 0 0 2px #39ff7a, 0 0 0 4px #02130a, 0 0 0 5px #39ff7a, 0 0 12px rgba(57, 255, 122, .7); }
.msg.fr-plasma > .av, .pill.fr-plasma img, .pill.fr-plasma .pill-av { box-shadow: 0 0 0 2px #c46aff, 0 0 16px rgba(190, 80, 255, .95); animation: frPlasma 1.4s ease-in-out infinite; }
@keyframes frPlasma { 50% { box-shadow: 0 0 0 2px #ff6ad8, 0 0 22px rgba(255, 80, 220, .95); } }
.me-card.fr-neon .me-av, .me-card.fr-plasma .me-av, .me-card.fr-circuit .me-av, .me-card.fr-sakura .me-av { outline: 2px solid currentColor; }
/* ---- daily battle goals ---- */
.ts-goals { display: grid; gap: 6px; margin: 10px 0; } .ts-goals h4 { margin: 0 0 2px; }
.tg { display: grid; grid-template-columns: 1fr 120px auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: var(--r, 10px); background: rgba(0,0,0,.25); font-size: 13px; }
.tg i { position: relative; height: 6px; background: rgba(255,255,255,.1); overflow: hidden; border-radius: 3px; } .tg i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--k)); background: linear-gradient(90deg, #39ff7a, #3ff0ff); }
.tg small { color: var(--muted); white-space: nowrap; } .tg.done { opacity: .65; }
@media (max-width: 600px) { .tg { grid-template-columns: 1fr auto; } .tg i { grid-column: 1 / -1; grid-row: 2; } }
html.th-signal .tg { border-radius: 0; border-color: rgba(63,240,255,.3); } html.th-signal .tg i, html.th-signal .tg i::after { border-radius: 0; }

/* deck builder */
.db-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; } .db-head h3 { margin: 0 0 4px; }
.db-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 12px; }
.db-deck { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: var(--r, 12px); background: rgba(0,0,0,.28); }
.db-top { display: flex; align-items: center; gap: 8px; } .db-top b { font-size: 15px; } .db-top small { color: var(--muted); margin-left: auto; }
.db-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .db-cards img { width: 100%; aspect-ratio: 63/88; object-fit: cover; border-radius: 5px; }
.db-gone { display: grid; place-items: center; aspect-ratio: 63/88; border: 1px dashed var(--line, #555); color: var(--muted); font-size: 11px; border-radius: 5px; }
.db-act { display: flex; gap: 6px; } .db-edit { display: grid; gap: 10px; } .db-name { display: grid; gap: 4px; max-width: 320px; font-size: 13px; color: var(--muted); }
.db-name input { padding: 10px 12px; font: inherit; color: var(--ink); background: rgba(0,0,0,.35); border: 1px solid var(--line, rgba(255,255,255,.2)); border-radius: var(--r, 8px); }
html.th-signal .db-deck, html.th-signal .db-cards img, html.th-signal .db-name input { border-radius: 0; } html.th-signal .db-deck { border-color: rgba(63,240,255,.35); background: rgba(2,4,10,.92); }


/* =====================================================================================================
   SIGNAL v3 - closer to the references:
   * poster type: heavy Eurostile-style red headlines (Saira 800) ending in 。, wide "pres." label (Michroma), blue marker tag
   * 80s CG collage: panels are CRT MONITORS - graphite plastic bezel, rounded screen, phosphor inside (not flat neon boxes)
   * data reads in AMBER LED (like the orange line graphs); cyan = interactive; green = live/status; red = headline + primary
   * glow is reserved for what's active or important, so the screen calms down and the highlights pop
   ===================================================================================================== */
html.th-signal {
  --void: #05060a; --bezel: #17191f; --bezel-hi: #2a2d36; --screen: #070a10;
  --amber: #ffb000; --amber-dim: rgba(255, 176, 0, .55); --cy: #43e8ff; --gr: #39ff7a; --rd: #ff3b30; --bl: #2e4bff;
  --poster: "Saira", "Chakra Petch", "Arial Narrow", sans-serif;
  --display: "Saira", "Chakra Petch", Inter, sans-serif;
  --wide: "Michroma", "Saira", sans-serif;
  --led-grad: linear-gradient(180deg, #ff4d3a 0%, #ff9a1f 35%, #ffd23f 62%, #7dff4a 100%);
  --t-am: 0 0 6px rgba(255, 176, 0, .55);
}
html.th-signal body { font-family: "Saira", "Chakra Petch", Inter, system-ui, sans-serif; background: var(--void) !important; }
/* the page grid gets quieter (the monitors carry the scanlines now) */
html.th-signal body::after { background:
    radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(0, 0, 0, .6) 100%),
    linear-gradient(rgba(67, 232, 255, .035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(90deg, rgba(67, 232, 255, .035) 1px, transparent 1px) 0 0 / 96px 96px; }

/* ---- type: Eurostile-ish poster headlines ---- */
html.th-signal .window-title, html.th-signal .ms-copy h2, html.th-signal .el-hero h2, html.th-signal .gh-head h2, html.th-signal .cal-head h2, html.th-signal .fr-head h2,
html.th-signal .dx-head h2, html.th-signal .inv-hero h2, html.th-signal .al-head h2, html.th-signal .ar-box h2, html.th-signal .chat-welcome b, html.th-signal .section-title,
html.th-signal .ts-head h3, html.th-signal .chat header b, html.th-signal .event-strip b, html.th-signal .me-id > b:not([class*="nfx-"]), html.th-signal .upd-banner b, html.th-signal .a-banner {
  font-family: var(--poster) !important; font-weight: 800 !important; letter-spacing: -.01em !important; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 59, 48, .35) !important; }
html.th-signal .window-title { font-size: 24px !important; }
html.th-signal .chat-welcome b { font-size: 28px !important; }
html.th-signal .event-strip b { color: var(--mg) !important; text-shadow: 0 0 8px rgba(255, 79, 216, .5) !important; }
html.th-signal .me-id > b:not([class*="nfx-"]) { color: var(--ink) !important; text-shadow: none !important; }
html.th-signal .me-id > b[class*="nfx-"] { font-family: var(--poster) !important; font-weight: 800 !important; text-transform: uppercase; }
/* the wordmark: poster red + a wide blue "pres." like the flyer's top-left */
.wordmark { font: 800 28px/1 "Saira", "Anton", sans-serif !important; letter-spacing: -.01em !important; text-shadow: 0 0 10px rgba(255, 59, 48, .45) !important; }
.wordmark em { font: 400 13px "Michroma", sans-serif !important; color: #2e4bff !important; transform: none !important; margin: 0 0 0 10px !important; letter-spacing: .02em; text-shadow: none !important; align-self: flex-start; }
/* small labels: sentence case, quieter - only the green status ones stay mono */
html.th-signal .kicker, html.th-signal .more-h, html.th-signal .al-sec h4, html.th-signal .stat small, html.th-signal .me-stats small {
  font-family: var(--display) !important; text-transform: none !important; letter-spacing: .01em !important; font-weight: 600 !important; text-shadow: none !important; }
html.th-signal .kicker, html.th-signal .more-h, html.th-signal .al-sec h4 { color: var(--amber) !important; }
html.th-signal .stat small, html.th-signal .me-stats small { color: var(--muted) !important; }

/* ---- panels = CRT monitors: graphite bezel, rounded screen, phosphor scanlines inside ---- */
html.th-signal .glass, html.th-signal .window, html.th-signal .chat.embedded, html.th-signal .rail section, html.th-signal .feat-week, html.th-signal .chat, html.th-signal .hero-card,
html.th-signal .al-box, html.th-signal .ar-box {
  border-radius: 14px !important; border: 1px solid #000 !important;
  background: radial-gradient(ellipse at 50% 0%, rgba(67, 232, 255, .05), transparent 60%), var(--screen) !important;
  box-shadow: 0 0 0 6px var(--bezel), 0 0 0 7px var(--bezel-hi), 0 18px 40px rgba(0, 0, 0, .6), inset 0 0 40px rgba(67, 232, 255, .05), inset 0 0 0 1px rgba(255, 255, 255, .04) !important; }
html.th-signal .window, html.th-signal .chat.embedded, html.th-signal .al-box { overflow: hidden; }
html.th-signal .window-body, html.th-signal .chat .msgs { background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px) !important; }
html.th-signal .window::before, html.th-signal .chat.embedded::before, html.th-signal .al-box::before { display: none !important; }   /* bezel replaces the corner brackets */
html.th-signal .window::after { content: "PKS-1987  ·  CH 03" !important; color: rgba(255, 176, 0, .45) !important; font-family: var(--wide) !important; font-size: 8px !important; letter-spacing: .2em !important; }
html.th-signal .window-bar { background: linear-gradient(180deg, #11141b, #080a10) !important; }
html.th-signal .window-bar::after, html.th-signal .chat header::after { height: 2px !important; box-shadow: none !important; }
html.th-signal .rail section, html.th-signal .feat-week, html.th-signal .hero-card { border-radius: 10px !important; box-shadow: 0 0 0 4px var(--bezel), 0 0 0 5px var(--bezel-hi), 0 10px 24px rgba(0, 0, 0, .5) !important; }
@media (max-width: 700px) {
  html.th-signal .window { border-radius: 16px 16px 0 0 !important; box-shadow: 0 0 0 4px var(--bezel), 0 -10px 30px rgba(0, 0, 0, .6) !important; }
  html.th-signal .chat.embedded { box-shadow: 0 0 0 3px var(--bezel), 0 10px 24px rgba(0, 0, 0, .5) !important; border-radius: 12px !important; }
}

/* ---- buttons = keyboard keycaps (like the desk console): graphite key, legend glows only when it matters ---- */
html.th-signal .btn { border-radius: 6px !important; background: linear-gradient(180deg, #252831, #15171d) !important; border: 1px solid #000 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -2px 0 rgba(0, 0, 0, .5), 0 2px 0 #000 !important; color: #dfe8f5 !important; text-shadow: none !important; }
html.th-signal .btn:hover:not(:disabled) { color: var(--cy) !important; border-color: #000 !important; text-shadow: 0 0 6px rgba(67, 232, 255, .6) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -2px 0 rgba(0, 0, 0, .5), 0 2px 0 #000, 0 0 12px rgba(67, 232, 255, .18) !important; }
html.th-signal .btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 0 #000 !important; }
html.th-signal .btn.gold, html.th-signal .quickbar .qb-packs, html.th-signal .pack-slot .row-btns .btn:first-child, html.th-signal .btn.primary {
  border-radius: 6px !important; background: linear-gradient(180deg, #ff5a45, #d92a1c) !important; border: 1px solid #5a0a04 !important; color: #fff7f0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(90, 10, 4, .6), 0 2px 0 #3a0603, 0 0 18px rgba(255, 59, 48, .35) !important; text-shadow: 0 1px 0 rgba(90, 10, 4, .6) !important; }
html.th-signal .btn.ghost { background: transparent !important; box-shadow: inset 0 0 0 1px rgba(223, 232, 245, .2) !important; }
html.th-signal .tabs, html.th-signal .al-tabs, html.th-signal .al-seg { border-radius: 8px !important; background: #0b0d12 !important; border: 1px solid #000 !important; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .04) !important; }
html.th-signal .tabs button, html.th-signal .al-tabs button, html.th-signal .al-seg button { border-radius: 5px !important; }
html.th-signal .tabs button.on, html.th-signal .al-tabs button.on, html.th-signal .al-seg button.on, html.th-signal .auth-tabs button.on, html.th-signal .al-types button.on {
  background: linear-gradient(180deg, #2a2e38, #1a1d24) !important; color: var(--cy) !important; text-shadow: 0 0 8px rgba(67, 232, 255, .7) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(67, 232, 255, .35) !important; }
/* home tiles become console keys */
html.th-signal .quickbar button { border-radius: 8px !important; background: linear-gradient(180deg, #1d2028, #111319) !important; border: 1px solid #000 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -3px 0 rgba(0, 0, 0, .45), 0 2px 0 #000 !important; }
html.th-signal .quickbar button .ic { border-radius: 5px !important; background: rgba(67, 232, 255, .06) !important; box-shadow: inset 0 0 0 1px rgba(67, 232, 255, .25) !important; }
html.th-signal .quickbar .qb-chest { background: linear-gradient(180deg, #2a2210, #16120a) !important; border-color: #000 !important; color: var(--amber) !important; box-shadow: inset 0 1px 0 rgba(255, 220, 140, .15), inset 0 -3px 0 rgba(0, 0, 0, .45), 0 2px 0 #000, 0 0 14px rgba(255, 176, 0, .2) !important; text-shadow: var(--t-am) !important; }

/* ---- data reads in amber LED; the big coin counter gets the rainbow LED column look ---- */
html.th-signal .stat b, html.th-signal .ts-bal b, html.th-signal .gh-life b, html.th-signal .cal-prog b, html.th-signal .me-stats b, html.th-signal .sr-val b, html.th-signal .price, html.th-signal .el-price, html.th-signal .rc-price,
html.th-signal .chip b, html.th-signal .sr-tag span, html.th-signal .al-rate b {
  font-family: "VT323", var(--mono) !important; color: var(--amber) !important; text-shadow: var(--t-am) !important; font-weight: 400 !important; }
html.th-signal #pill-coins { background: var(--led-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; text-shadow: none !important;
  filter: drop-shadow(0 0 4px rgba(255, 140, 30, .55)); font-size: 1.55em !important; }
html.th-signal .stat { border-radius: 8px !important; background: #06080d !important; border: 1px solid #000 !important; box-shadow: inset 0 0 0 1px rgba(255, 176, 0, .14), inset 0 0 18px rgba(255, 176, 0, .04) !important; }
html.th-signal .qbar i { background: linear-gradient(90deg, var(--amber), #ffd23f) !important; box-shadow: 0 0 8px rgba(255, 176, 0, .5) !important; }

/* ---- list rows / tiles: dark screen insets, no outline glow until hovered ---- */
html.th-signal .ms-rewards > div, html.th-signal .dt-rw span, html.th-signal .cal-day, html.th-signal .gh, html.th-signal .ts-item, html.th-signal .fr-row, html.th-signal .inv-row, html.th-signal .dx-m, html.th-signal .el-item,
html.th-signal .ms-row, html.th-signal .vb-row, html.th-signal .more-item, html.th-signal .me-item, html.th-signal .al-invite, html.th-signal .al-live, html.th-signal .al-rival, html.th-signal .al-player, html.th-signal .lk-item,
html.th-signal .sp-tier, html.th-signal .shop-item, html.th-signal .q-row, html.th-signal .quest, html.th-signal .tg, html.th-signal .db-deck, html.th-signal .ad-deck, html.th-signal .al-big, html.th-signal .cb-col, html.th-signal .as-row {
  border-radius: 8px !important; background: #090c12 !important; border: 1px solid rgba(255, 255, 255, .06) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03) !important; }
html.th-signal .more-item:hover, html.th-signal .me-item:hover, html.th-signal .gh:hover, html.th-signal .cal-day:hover, html.th-signal .al-big:hover, html.th-signal .ad-deck:hover, html.th-signal .lk-item:hover {
  border-color: rgba(67, 232, 255, .45) !important; box-shadow: 0 0 14px rgba(67, 232, 255, .15) !important; }
html.th-signal .al-big.gold { background: linear-gradient(180deg, rgba(255, 59, 48, .2), rgba(255, 59, 48, .05)) !important; border-color: rgba(255, 59, 48, .6) !important; box-shadow: 0 0 18px rgba(255, 59, 48, .2) !important; }
html.th-signal .cal-day.today, html.th-signal .gh.done:not(.claimed) { border-color: var(--rd) !important; box-shadow: 0 0 0 1px var(--rd), 0 0 16px rgba(255, 59, 48, .35) !important; }
html.th-signal .gh.leg, html.th-signal .cal-day.big { border-color: rgba(255, 176, 0, .6) !important; box-shadow: 0 0 12px rgba(255, 176, 0, .2) !important; }
html.th-signal .event-strip { border-radius: 10px !important; background: linear-gradient(90deg, rgba(255, 79, 216, .12), rgba(9, 12, 18, .95) 40%) !important; border: 1px solid rgba(255, 79, 216, .55) !important; box-shadow: 0 0 16px rgba(255, 79, 216, .2) !important; }
html.th-signal .event-strip .es-tag { border-radius: 4px !important; }
html.th-signal .toast { border-radius: 10px !important; border: 1px solid #000 !important; border-left: 3px solid var(--cy) !important; background: linear-gradient(180deg, #12151c, #090b10) !important; box-shadow: 0 0 0 3px var(--bezel), 0 12px 30px rgba(0, 0, 0, .6) !important; }
html.th-signal .pill, html.th-signal .topbar .pill, html.th-signal .chip, html.th-signal .vol-btn, html.th-signal .scene-btn { border-radius: 8px !important; background: linear-gradient(180deg, #171a21, #0c0e13) !important; border: 1px solid #000 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important; }
html.th-signal #chat-in, html.th-signal input.search, html.th-signal .window input[type=text], html.th-signal .window input[type=email], html.th-signal .window input[type=number], html.th-signal .window input[type=password], html.th-signal .window select, html.th-signal .auth-form input, html.th-signal .sel, html.th-signal #al-sort, html.th-signal .db-name input {
  border-radius: 6px !important; background: #04060a !important; border: 1px solid #000 !important; box-shadow: inset 0 1px 4px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .05) !important; }
html.th-signal #chat-in:focus, html.th-signal input:focus, html.th-signal select:focus { box-shadow: inset 0 1px 4px rgba(0, 0, 0, .9), 0 0 0 1px var(--cy), 0 0 12px rgba(67, 232, 255, .3) !important; }
html.th-signal .msg .who:not([class*="nfx-"]) { color: #9fdcff !important; text-shadow: none !important; }
html.th-signal .navbar button.on, html.th-signal .navbar button:hover { color: var(--amber) !important; text-shadow: var(--t-am) !important; }
html.th-signal .navbar button::after { background: var(--amber) !important; box-shadow: 0 0 6px rgba(255, 176, 0, .7) !important; }
html.th-signal .tabbar button.on { color: var(--amber) !important; text-shadow: var(--t-am) !important; }
/* ---- the poster's blue marker tag, now on window titles' corner + lobby ---- */
html.th-signal .al-head h2::before, html.th-signal .ms-copy h2::before { color: var(--bl) !important; text-shadow: none !important; font-size: 24px !important; }
html.lowfx.th-signal .glass, html.lowfx.th-signal .window, html.lowfx.th-signal .chat { box-shadow: 0 0 0 4px var(--bezel) !important; }
html.th-signal .me-card { border-radius: 10px !important; background: linear-gradient(90deg, rgba(255, 59, 48, .12), #090c12 55%) !important; border: 1px solid rgba(255, 59, 48, .4) !important; box-shadow: none !important; }
html.th-signal .me-av { border-radius: 8px !important; }
html.th-signal .me-stats > div { border-radius: 8px !important; background: #06080d !important; border: 1px solid #000 !important; box-shadow: inset 0 0 0 1px rgba(255, 176, 0, .14) !important; }
html.th-signal .rail-title, html.th-signal .rail section h2, html.th-signal .feat-week h2, html.th-signal .feat-week .kicker { font-family: var(--display) !important; text-transform: none !important; letter-spacing: .01em !important; font-weight: 700 !important; color: var(--amber) !important; text-shadow: var(--t-am) !important; font-size: 14px !important; border-left-color: var(--amber) !important; }
html.th-signal .navbar button { font-family: var(--display) !important; font-weight: 600; letter-spacing: .04em; font-size: 13px; }
html.th-signal .tabbar button span { font-family: var(--display) !important; font-weight: 600; letter-spacing: .03em; }
html.th-signal .close, html.th-signal .back { border-radius: 6px !important; background: linear-gradient(180deg, #252831, #15171d) !important; border: 1px solid #000 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 2px 0 #000 !important; }
html.th-signal .close { color: #ff7a6e !important; } html.th-signal .back { color: var(--cy) !important; }
html.th-signal .window-title::before { content: "CH" !important; font-family: var(--wide) !important; font-size: 9px !important; color: var(--amber) !important; text-shadow: none !important; letter-spacing: .1em !important; padding: 3px 5px; border: 1px solid rgba(255, 176, 0, .45); border-radius: 3px; }
html.th-signal .window::after { content: "PKS-1987 CH-03" !important; }
html.th-signal .live .dot { background: var(--gr) !important; }
html.th-signal #live-text { font-family: var(--display) !important; letter-spacing: .08em !important; font-weight: 600; }
html.th-signal .chip { font-family: var(--display) !important; font-size: 12px; }
html.th-signal .sr-count { color: var(--amber) !important; text-shadow: var(--t-am) !important; }

/* your coins in every window's title bar */
.win-coins { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line, rgba(255,255,255,.14)); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.win-coins[hidden] { display: none; }
.wc-ic { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3b0, #ffcb05 45%, #c78a00); box-shadow: inset 0 0 0 1.5px rgba(120, 70, 0, .6); flex: none; }
.window-bar .close { margin-left: 0 !important; }
html.th-signal .win-coins { border-radius: 6px; background: #04060a; border-color: #000; box-shadow: inset 0 1px 3px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.05); }
html.th-signal .win-coins b { font: 400 20px/1 "VT323", monospace; background: var(--led-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 3px rgba(255, 140, 30, .5)); }
@media (max-width: 700px) { .win-coins { padding: 3px 8px; margin-right: 8px; } html.th-signal .win-coins b { font-size: 18px; }
  html.th-signal .wordmark { font-size: 21px !important; } html.th-signal .win-jp { display: none; } }

/* ---- locker cosmetics: every frame shows everywhere (chat, top bar, the You window), in both styles ---- */
.msg.fr-grail > .av, .pill.fr-grail img, .pill.fr-grail .pill-av { box-shadow: 0 0 0 2px #e8c27a, 0 0 0 4px #4a2a0a, 0 0 14px rgba(232, 194, 122, .85); }
.me-card.fr-bronze .me-av, html.th-signal .me-card.fr-bronze .me-av { box-shadow: 0 0 0 3px #c98a4a, 0 0 12px rgba(201, 138, 74, .6) !important; }
.me-card.fr-silver .me-av, html.th-signal .me-card.fr-silver .me-av { box-shadow: 0 0 0 3px #dfe6f0, 0 0 14px rgba(220, 230, 255, .7) !important; }
.me-card.fr-gold .me-av, html.th-signal .me-card.fr-gold .me-av { box-shadow: 0 0 0 3px #ffcb05, 0 0 16px rgba(255, 203, 5, .8) !important; }
.me-card.fr-holo .me-av, html.th-signal .me-card.fr-holo .me-av { animation: frHolo 3s linear infinite; box-shadow: 0 0 0 3px #fff, 0 0 16px #a06bff; }
.me-card.fr-dragon .me-av, html.th-signal .me-card.fr-dragon .me-av { box-shadow: 0 0 0 3px #ff6a3a, 0 0 0 6px #3a1a0a, 0 0 18px rgba(255, 106, 58, .9) !important; }
.me-card.fr-master .me-av, html.th-signal .me-card.fr-master .me-av { box-shadow: 0 0 0 3px #ffd56a, 0 0 0 6px #6a3a08, 0 0 18px rgba(255, 200, 80, .8) !important; }
.me-card.fr-grail .me-av, html.th-signal .me-card.fr-grail .me-av { box-shadow: 0 0 0 3px #e8c27a, 0 0 0 6px #4a2a0a, 0 0 18px rgba(232, 194, 122, .85) !important; }
.me-card.fr-gladiator .me-av, html.th-signal .me-card.fr-gladiator .me-av { box-shadow: 0 0 0 3px #c0c8d8, 0 0 0 6px #3a4458, 0 0 16px rgba(160, 190, 255, .7) !important; }
.me-card.fr-season .me-av, html.th-signal .me-card.fr-season .me-av { animation: frSeason 2.4s linear infinite; }
.me-card.fr-neon .me-av, html.th-signal .me-card.fr-neon .me-av { outline: 0; box-shadow: 0 0 0 3px #3ff0ff, 0 0 16px rgba(63, 240, 255, .9), 0 0 30px rgba(63, 240, 255, .4) !important; }
.me-card.fr-sakura .me-av, html.th-signal .me-card.fr-sakura .me-av { outline: 0; box-shadow: 0 0 0 3px #ffb6dc, 0 0 0 6px #7a2a52, 0 0 18px rgba(255, 140, 200, .8) !important; }
.me-card.fr-circuit .me-av, html.th-signal .me-card.fr-circuit .me-av { outline: 0; box-shadow: 0 0 0 3px #39ff7a, 0 0 0 6px #02130a, 0 0 0 7px #39ff7a, 0 0 16px rgba(57, 255, 122, .7) !important; }
.me-card.fr-plasma .me-av, html.th-signal .me-card.fr-plasma .me-av { outline: 0; animation: frPlasma 1.4s ease-in-out infinite; box-shadow: 0 0 0 3px #c46aff, 0 0 20px rgba(190, 80, 255, .95); }
.me-card.fr-champ .me-av, html.th-signal .me-card.fr-champ .me-av { animation: champRing 2s ease-in-out infinite; box-shadow: 0 0 0 3px #ffd56a, 0 0 0 6px #b0201a, 0 0 20px rgba(255, 120, 40, .9) !important; }

/* ---- grading: crack / crack & regrade right after the reveal ---- */
.regrade-box { display: grid; gap: 6px; justify-items: center; margin: 10px 0 6px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px dashed rgba(255, 213, 106, .35); }
.card-detail .regrade-box { justify-items: start; }
.card-detail .tcg.cracked { filter: saturate(.6); }

/* ---- My cards: select several and sell them together ---- */
.sel-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--panel, #1d1611) 92%, #000); border: 1px solid rgba(255, 213, 106, .45); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.sel-bar > span { margin-right: auto; } .sel-bar small.hint { flex-basis: 100%; }
/* select bar layout: summary + Select all / Clear / Done on top, the actions in an even row underneath */
.sel-bar .sel-top { display: flex; align-items: center; gap: 8px; flex-basis: 100%; flex-wrap: wrap; }
.sel-bar .sel-sum { margin-right: auto; font-size: 15px; }
.sel-bar .sel-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.sel-bar .sel-tools .btn { padding: 7px 12px; font-size: 13px; }
.sel-bar .sel-acts { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; flex-basis: 100%; }
.sel-bar .sel-acts > .btn, .sel-bar .sel-regrade { flex: 1 1 190px; min-width: 0; }
.sel-bar.sel-slabs .sel-acts { display: grid; grid-template-columns: auto auto minmax(0, 1fr); }
@media (max-width: 760px) { .sel-bar.sel-slabs .sel-acts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sel-bar.sel-slabs .sel-regrade { grid-column: 1 / -1; } }
.sel-bar .sel-acts > .btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-bar .sel-acts > .chk { align-self: center; }
/* Crack & regrade + its company picker read as one control */
.sel-bar .sel-regrade { display: flex; align-items: stretch; flex-grow: 1.4; }
.sel-bar .sel-regrade > .btn { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.sel-bar .sel-co-wrap { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 3px 8px 4px 10px; flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .18); border-left: 0; border-radius: 0 10px 10px 0; background: rgba(0, 0, 0, .28); cursor: pointer; }
.sel-bar .sel-co-wrap small { font: 700 9px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.sel-bar .sel-co-wrap select { appearance: auto; width: auto !important; max-width: 118px; background: transparent !important; border: 0 !important; color: inherit; font: 700 13px Inter, sans-serif; padding: 0 2px 0 0 !important; margin: 0; box-shadow: none !important; cursor: pointer; min-height: 0 !important; height: auto !important; }
.sel-bar .sel-co-wrap select option { background: #14110e; color: #f3eadb; }
.sel-bar .sel-co-wrap:focus-within { outline: 2px solid rgba(255, 213, 106, .6); outline-offset: -2px; }
html.th-signal .sel-bar .sel-co-wrap { border-color: rgba(63, 240, 255, .28); }
@media (max-width: 560px) { .sel-bar .sel-acts > .btn, .sel-bar .sel-regrade { flex-basis: 100%; } .sel-bar.sel-slabs .sel-acts { grid-template-columns: minmax(0, 1fr); } .sel-bar .sel-tools { width: 100%; } .sel-bar .sel-tools .btn { flex: 1; } }
#sel-mode.on { background: var(--gold, #ffcb05); color: #1a1205; }
#cg.selecting .tcg { cursor: pointer; } #cg.selecting .tcg:not(.picked) { opacity: .62; }
#cg .tcg.picked { opacity: 1; outline: 3px solid var(--gold, #ffcb05); outline-offset: 2px; border-radius: 12px; }
#cg .tcg.picked .meta b::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%;
  background: var(--gold, #ffcb05); color: #1a1205; font: 900 12px/1 Inter, sans-serif; vertical-align: 1px; }

/* ---- master sets: every set as a binder page, collected cards lit up ---- */
.ms-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ms-binder .ms-name h3 { margin: 0; font: 400 20px var(--display, inherit); color: #ffe39a; line-height: 1.15; }
.ms-cards { margin-top: 10px; min-height: 40px; }
.msb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.msb { position: relative; border-radius: 7px; padding: 3px 3px 2px; background: rgba(0, 0, 0, .25); text-align: center; transition: transform .15s; }
.msb img { display: block; width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 5px; }
.msb small { display: block; font-size: 10.5px; color: var(--muted, #c9b48f); margin-top: 2px; }
.msb small { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 4px; line-height: 1.25; }
.msb-price { font-weight: 700; color: #ffd56a; font-variant-numeric: tabular-nums; white-space: nowrap; }
html.th-signal .msb-price { color: var(--cy, #3ff0ff); }
.msb.miss img { filter: grayscale(1) brightness(.45) contrast(.9); }
.msb.miss { opacity: .7; }
.msb.have { background: linear-gradient(180deg, rgba(255, 213, 106, .32), rgba(255, 213, 106, .08)); box-shadow: 0 0 0 2px #ffd56a, 0 0 12px rgba(255, 200, 80, .45); }
.msb.have:hover { transform: translateY(-2px); }
.msb-rev { position: absolute; top: 5px; left: 5px; padding: 1px 4px; border-radius: 4px; font: 800 9px/1.3 Inter, sans-serif; font-style: normal; background: #5ad8ff; color: #04202a; }
.msb-ok { position: absolute; top: 5px; right: 5px; padding: 1px 5px; border-radius: 9px; font: 800 10px/1.4 Inter, sans-serif; font-style: normal; background: #4fd16a; color: #062a10; }
.ms-binder[hidden] { display: none !important; }
html.th-signal .msb.have { box-shadow: 0 0 0 2px var(--cy, #3ff0ff), 0 0 12px rgba(63, 240, 255, .45); background: rgba(63, 240, 255, .14); }
@media (max-width: 600px) { .msb-grid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; } }

/* ---- owner: give a card ---- */
.ag { display: grid; gap: 14px; }
.ag-step { padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--edge, rgba(255, 220, 160, .14)); display: grid; gap: 8px; }
.ag-step h4 { margin: 0; }
.ag-players, .ag-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; max-height: 260px; overflow: auto; }
.ag-p, .ag-c { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 6px 8px; border-radius: 10px;
  border: 1px solid transparent; background: rgba(255, 255, 255, .05); color: inherit; cursor: pointer; font: inherit; }
.ag-p img, .ag-p .av { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #3a2a1a; }
.ag-c img { grid-row: span 3; width: 40px; border-radius: 4px; }
.ag-p small, .ag-c small { color: var(--muted, #c9b48f); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-c em { font-style: normal; font-size: 12px; color: #ffd56a; }
.ag-p.on, .ag-c.on { border-color: var(--gold, #ffcb05); background: rgba(255, 203, 5, .12); }
.ag-preview { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start; }
.ag-preview img { width: 100%; border-radius: 8px; }
.ag-preview > div { display: grid; gap: 8px; }
.ag-preview label:not(.chk) { display: grid; gap: 4px; font-size: 13px; }
.ag-preview input[type=number] { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--edge, rgba(255, 220, 160, .25)); background: rgba(0, 0, 0, .3); color: inherit; font: inherit; }
.ag-sum { font-size: 14px; }
.ag-ov { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ag-ov small { color: var(--muted, #c9b48f); }
@media (max-width: 600px) { .ag-preview { grid-template-columns: 90px 1fr; } }
.ms-toggle { margin-left: auto; }
.ms-binder .ms-foot { align-items: center; }
/* bulk grade results: pick slabs to crack & regrade */
.bg-pick { display: grid; gap: 8px; justify-items: center; margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px dashed rgba(255, 213, 106, .35); text-align: center; }
#bg-res.selecting .tcg:not(.picked) { opacity: .62; }
#bg-res .tcg.picked { opacity: 1; outline: 3px solid var(--gold, #ffcb05); outline-offset: 2px; border-radius: 12px; }
#bg-res .tcg.picked .meta b::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%; background: var(--gold, #ffcb05); color: #1a1205; font: 900 12px/1 Inter, sans-serif; vertical-align: 1px; }
/* ======== v64 PHONES: keep everything below the status bar / notch so the top buttons (X, back) can be tapped ======== */
/* env(safe-area-inset-top) is the height of the clock/notch area; it's 0 on computers, so desktop is unchanged */
.topbar { padding-top: calc(10px + env(safe-area-inset-top, 0px)) !important; }
.chat.docked:not(.sheet) { top: calc(12px + env(safe-area-inset-top, 0px)) !important; }
@media (max-width: 900px) {
  .chat { top: calc(12px + env(safe-area-inset-top, 0px)); }
  .window-layer { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .window { max-height: calc(100dvh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 700px) {
  body.social-home .topbar { padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important; }
  /* popup sheets start just under the status bar instead of behind it */
  .window-layer:not([hidden]) { padding-top: env(safe-area-inset-top, 0px) !important; }
  /* a slightly bigger X that's easier to hit with a thumb */
  .window-bar .close { width: 42px !important; height: 42px !important; font-size: 17px; }
}

/* 🔒 locked cards & slabs: a small padlock on the card, and selling switched off on its page */
.tcg .lock-tag { position: absolute; left: 6px; bottom: 6px; z-index: 3; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-style: normal; font-size: 13px; background: rgba(10, 8, 6, .82); border: 1px solid rgba(255, 213, 106, .65); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); pointer-events: none; }
.lock-btn.on { background: linear-gradient(180deg, #ffe08a, #e3a91b) !important; color: #1a1205 !important; border-color: #e3a91b !important; }
.actions .is-locked { opacity: .45; cursor: not-allowed; }
.lock-note { flex-basis: 100%; font: 700 13px Inter, sans-serif; color: #ffd56a; }
html.th-signal .tcg .lock-tag { border-color: rgba(63, 240, 255, .6); }
html.th-signal body.rx-design .window-layer .lock-btn.on { background: linear-gradient(180deg, #ffe08a, #e3a91b) !important; color: #1a1205 !important; border-color: #e3a91b !important; }

/* ---- slab cases: each one is a thick, unmistakable BORDER around the slab (the inside stays the normal clear case) ----
   Drawn as the border-box layer of the background, so card finishes / rarity effects on the card itself are untouched. */
.tcg.slabbed[class*="case-"] { --cb: 6px; border-width: var(--cb) !important; border-style: solid !important; border-color: transparent !important; }
.slabx[class*="case-"], .v-item .v-case[class*="case-"], .mini-slab[class*="case-"] { --cb: 9px; border: var(--cb) solid transparent !important; position: relative; }
.tcg.slabbed.case-galaxy { --cb: 11px; } .slabx.case-galaxy, .v-item .v-case.case-galaxy, .mini-slab.case-galaxy { --cb: 15px; } .cp-prev.case-galaxy { --cb: 3px; }
/* the normal clear glass inside every case */
.tcg.slabbed[class*="case-"], .slabx[class*="case-"], .v-item .v-case[class*="case-"], .mini-slab[class*="case-"] { --glass: linear-gradient(160deg, #565b66, #2c2f37 40%, #3e424c); }   /* solid, so the fancy edge never bleeds behind the text */
.tcg.slabbed.case-prism { --cb: 7px; }
/* BASIC - smoked: dark tinted acrylic edge */
.tcg.slabbed.case-smoked, .slabx.case-smoked, .v-item .v-case.case-smoked, .mini-slab.case-smoked { background: var(--glass) padding-box, linear-gradient(160deg, #6b707c, #23262e 40%, #4a4f5a 70%, #1a1c22) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 26px rgba(0, 0, 0, .6) !important; }
/* BASIC - frost: icy white-blue edge with a frosted sparkle */
.tcg.slabbed.case-frost, .slabx.case-frost, .v-item .v-case.case-frost, .mini-slab.case-frost { background: var(--glass) padding-box, linear-gradient(160deg, #ffffff, #bfe6ff 30%, #e8f8ff 50%, #8fcaf5 75%, #ffffff) border-box;
  box-shadow: 0 0 14px rgba(160, 220, 255, .55), inset 0 0 8px rgba(190, 235, 255, .5), 0 12px 26px rgba(0, 0, 0, .5) !important; }
/* RARE - gold trim: polished metal edge with a moving glint */
.tcg.slabbed.case-gold, .slabx.case-gold, .v-item .v-case.case-gold, .mini-slab.case-gold { background: var(--glass) padding-box, linear-gradient(115deg, #8a5a10, #f6d77a 18%, #fff4c2 24%, #c9902a 36%, #f2c75a 55%, #fff6d0 62%, #a8701c 80%, #f6d77a) border-box;
  background-size: 100% 100%, 220% 100%; box-shadow: 0 0 16px rgba(255, 200, 80, .5), 0 12px 26px rgba(0, 0, 0, .55) !important; animation: goldGlint 4s linear infinite; }
@keyframes goldGlint { to { background-position: 0 0, -220% 0; } }
/* RARE - neon edge: dark rim with a bright magenta + cyan tube that pulses */
.tcg.slabbed.case-neon, .slabx.case-neon, .v-item .v-case.case-neon, .mini-slab.case-neon { background: var(--glass) padding-box, linear-gradient(#120a24, #120a24) border-box;
  box-shadow: inset 0 0 0 2px #3fe6ff, 0 0 0 2px #ff3fd0, 0 0 14px #ff3fd0, 0 0 28px rgba(63, 230, 255, .55), 0 12px 26px rgba(0, 0, 0, .55) !important; animation: neonPulse 1.8s ease-in-out infinite; }
@keyframes neonPulse { 50% { box-shadow: inset 0 0 0 2px #3fe6ff, 0 0 0 2px #ff3fd0, 0 0 22px #ff3fd0, 0 0 42px rgba(63, 230, 255, .75), 0 12px 26px rgba(0, 0, 0, .55); } }
/* EPIC - carbon: woven carbon-fibre edge with a red racing line */
.tcg.slabbed.case-carbon, .slabx.case-carbon, .v-item .v-case.case-carbon, .mini-slab.case-carbon { background: var(--glass) padding-box, repeating-linear-gradient(45deg, #15161a 0 3px, #33353d 3px 4px, #1d1f24 4px 7px) border-box;
  box-shadow: inset 0 0 0 1.5px #e3302a, 0 0 0 1px #000, 0 0 12px rgba(227, 48, 42, .35), 0 12px 26px rgba(0, 0, 0, .6) !important; }
/* EPIC - holo: soft rainbow edge that shimmers round */
.tcg.slabbed.case-holo, .slabx.case-holo, .v-item .v-case.case-holo, .mini-slab.case-holo { background: var(--glass) padding-box, conic-gradient(from var(--holo-a, 0deg), #ffb3e6, #ffe6a3, #b3ffd9, #a3e1ff, #d0b3ff, #ffb3e6) border-box;
  box-shadow: 0 0 16px rgba(200, 170, 255, .45), 0 12px 26px rgba(0, 0, 0, .55) !important; animation: holoSpin 6s linear infinite; }
/* LEGENDARY - prismatic: vivid spinning rainbow edge, white-hot glints and a big rainbow glow */
.tcg.slabbed.case-prism, .slabx.case-prism, .v-item .v-case.case-prism, .mini-slab.case-prism { background: var(--glass) padding-box,
  radial-gradient(3px 3px at 10% 8%, #fff, transparent 70%) border-box, radial-gradient(3px 3px at 92% 30%, #fff, transparent 70%) border-box, radial-gradient(3px 3px at 6% 70%, #fff, transparent 70%) border-box, radial-gradient(3px 3px at 88% 94%, #fff, transparent 70%) border-box,
  conic-gradient(from var(--holo-a, 0deg), #ff2a2a, #ff9a1a, #fff21a, #2aff5a, #1ad8ff, #5a2aff, #ff1ad8, #ff2a2a) border-box;
  box-shadow: 0 0 18px rgba(255, 90, 200, .6), 0 0 36px rgba(90, 200, 255, .45), 0 0 60px rgba(255, 240, 90, .25), 0 12px 26px rgba(0, 0, 0, .55) !important; animation: holoSpin 2.4s linear infinite, prismGlow 3s ease-in-out infinite; }
@keyframes prismGlow { 50% { filter: brightness(1.15) saturate(1.25); } }
/* LEGENDARY - galaxy: the edge is deep space - an evenly spread star field drifting together with a light wobble over
   purple and blue nebula, two vortexes and a solar eclipse crossing behind the card, and four meteors streaking past at
   random-feeling moments. All of it is part of the case's own border background, so it can only ever appear on the case,
   never over the card. */
@property --gx-e { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --gx-v1 { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --gx-v2 { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --gx-sx { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --gx-sy { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --gx-wa { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --gx-wb { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --gx-m1 { syntax: "<number>"; inherits: false; initial-value: -0.2; }
@property --gx-m2 { syntax: "<number>"; inherits: false; initial-value: -0.2; }
@property --gx-m3 { syntax: "<number>"; inherits: false; initial-value: -0.2; }
@property --gx-m4 { syntax: "<number>"; inherits: false; initial-value: -0.2; }
.tcg.slabbed.case-galaxy, .slabx.case-galaxy, .v-item .v-case.case-galaxy, .mini-slab.case-galaxy, .cp-prev.case-galaxy { --vxa: 0deg; --gx-e: 0; --gx-v1: 0; --gx-v2: 0; --gx-sx: 0.00px; --gx-sy: 0.00px; --gx-wa: 0px; --gx-wb: 0px; --gx-m1: -0.2; --gx-m2: -0.2; --gx-m3: -0.2; --gx-m4: -0.2;
  background: var(--glass) padding-box,
  radial-gradient(circle, #05030c 0 5px, #fff8dc 5.6px 6.6px, rgba(255, 214, 122, .95) 7.6px, rgba(255, 150, 60, .55) 10px, rgba(255, 110, 40, .2) 12.5px, transparent 15px) border-box no-repeat, radial-gradient(circle, #fff 0 1.6px, rgba(235, 205, 255, .95) 2.6px, transparent 3.6px, rgba(200, 150, 255, .8) 4.8px, transparent 6.4px, rgba(160, 120, 255, .55) 8.4px, transparent 10.5px, rgba(130, 110, 255, .3) 12.5px, transparent 15px) border-box no-repeat, radial-gradient(circle, #fff 0 1.2px, rgba(205, 235, 255, .95) 2px, transparent 3px, rgba(120, 200, 255, .8) 4px, transparent 5.6px, rgba(90, 170, 255, .5) 7.4px, transparent 9.5px, rgba(80, 150, 255, .28) 11px, transparent 12.5px) border-box no-repeat,
  radial-gradient(44px 2.6px at 60px 50%, #fff, #fff 8%, rgba(215, 235, 255, .95) 20%, rgba(150, 190, 255, .55) 55%, transparent) border-box no-repeat,
  radial-gradient(44px 2.6px at 4px 50%, #fff, #fff 8%, rgba(215, 235, 255, .95) 20%, rgba(150, 190, 255, .55) 55%, transparent) border-box no-repeat,
  radial-gradient(44px 2.6px at 60px 50%, #fff, #fff 8%, rgba(215, 235, 255, .95) 20%, rgba(150, 190, 255, .55) 55%, transparent) border-box no-repeat,
  radial-gradient(44px 2.6px at 60px 50%, #fff, #fff 8%, rgba(215, 235, 255, .95) 20%, rgba(150, 190, 255, .55) 55%, transparent) border-box no-repeat,
  radial-gradient(1.4px 1.4px at 4.8px 6.7px, #fff 55%, transparent) border-box,
  radial-gradient(1.0px 1.0px at 27.7px 3.8px, #d8e6ff 55%, transparent) border-box,
  radial-gradient(1.6px 1.6px at 43.9px 21.9px, #ffe9ff 55%, transparent) border-box,
  radial-gradient(1.1px 1.1px at 14.3px 28.6px, #fff 55%, transparent) border-box,
  radial-gradient(1.3px 1.3px at 35.3px 39.1px, #e6f0ff 55%, transparent) border-box,
  radial-gradient(1.0px 1.0px at 6.7px 45.8px, #fff3e0 55%, transparent) border-box,
  radial-gradient(ellipse at 15% 18%, rgba(225, 95, 255, .95), transparent 48%) border-box,
  radial-gradient(ellipse at 85% 82%, rgba(40, 175, 255, .95), transparent 48%) border-box,
  radial-gradient(ellipse at 80% 20%, rgba(255, 90, 170, .55), transparent 40%) border-box,
  linear-gradient(160deg, #18063f, #030222) border-box;
  background-size: 100% 100%, 30px 30px, 32px 32px, 24px 24px, 64px 10px, 64px 10px, 64px 10px, 64px 10px, 51.5px 51.5px, 51.5px 51.5px, 51.5px 51.5px, 51.5px 51.5px, 51.5px 51.5px, 51.5px 51.5px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, calc(-40px + (100% + 80px) * var(--gx-e)) 22%, calc(100% + 40px - (100% + 80px) * var(--gx-v1)) 74%, calc(-34px + (100% + 68px) * var(--gx-v2)) calc(-34px + (100% + 68px) * var(--gx-v2)),
    calc(-64px + (100% + 128px) * var(--gx-m1)) calc(-2px + (3px - -2px) * var(--gx-m1)), calc(100% + 64px - (100% + 128px) * var(--gx-m2)) calc(30% + (52% - 30%) * var(--gx-m2)), calc(-64px + (100% + 128px) * var(--gx-m3)) calc(100% + 1px - 4px * var(--gx-m3)), calc(-64px + (100% + 128px) * var(--gx-m4)) calc(62% + (80% - 62%) * var(--gx-m4)),
    calc(var(--gx-sx) + var(--gx-wa)) calc(var(--gx-sy) + var(--gx-wb)), calc(var(--gx-sx) - var(--gx-wb)) calc(var(--gx-sy) + var(--gx-wa)), calc(var(--gx-sx) + var(--gx-wb)) calc(var(--gx-sy) - var(--gx-wa)), calc(var(--gx-sx) - var(--gx-wa)) calc(var(--gx-sy) - var(--gx-wb)), calc(var(--gx-sx) + var(--gx-wa)) calc(var(--gx-sy) - var(--gx-wb)), calc(var(--gx-sx) - var(--gx-wb)) calc(var(--gx-sy) - var(--gx-wa)), 0 0, 0 0, 0 0, 0 0;
  box-shadow: 0 0 0 1px #c49aff, 0 0 22px rgba(160, 100, 255, .75), 0 0 44px rgba(40, 150, 255, .45), 0 12px 26px rgba(0, 0, 0, .6) !important;
  animation: galaxyOrbit 24s linear infinite, vxSpin 3s linear infinite, galaxyTwinkle 3.2s ease-in-out infinite, var(--gx-meteors); }
:root { --gx-meteors: gxMeteor1 9.7s linear -1.3s infinite, gxMeteor2 13.3s linear -7.9s infinite, gxMeteor3 16.1s linear -4.4s infinite, gxMeteor4 11.9s linear -10.2s infinite; }
@property --vxa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes vxSpin { to { --vxa: 360deg; } }
@keyframes galaxyOrbit {
  0% { --gx-e: 0.0000; --gx-v1: 0.0000; --gx-v2: 0.0000; --gx-sx: 0.00px; --gx-sy: 0.00px; --gx-wa: 0.00px; --gx-wb: 1.28px; }
  2.5% { --gx-e: 0.0250; --gx-v1: 0.0500; --gx-v2: 0.0250; --gx-sx: 2.58px; --gx-sy: 1.29px; --gx-wa: 0.73px; --gx-wb: 1.14px; }
  5% { --gx-e: 0.0500; --gx-v1: 0.1000; --gx-v2: 0.0500; --gx-sx: 5.15px; --gx-sy: 2.58px; --gx-wa: 1.29px; --gx-wb: 0.75px; }
  7.5% { --gx-e: 0.0750; --gx-v1: 0.1500; --gx-v2: 0.0750; --gx-sx: 7.72px; --gx-sy: 3.86px; --gx-wa: 1.58px; --gx-wb: 0.20px; }
  10% { --gx-e: 0.1000; --gx-v1: 0.2000; --gx-v2: 0.1000; --gx-sx: 10.30px; --gx-sy: 5.15px; --gx-wa: 1.52px; --gx-wb: -0.40px; }
  12.5% { --gx-e: 0.1250; --gx-v1: 0.2500; --gx-v2: 0.1250; --gx-sx: 12.88px; --gx-sy: 6.44px; --gx-wa: 1.13px; --gx-wb: -0.91px; }
  15% { --gx-e: 0.1500; --gx-v1: 0.3000; --gx-v2: 0.1500; --gx-sx: 15.45px; --gx-sy: 7.72px; --gx-wa: 0.49px; --gx-wb: -1.22px; }
  17.5% { --gx-e: 0.1750; --gx-v1: 0.3500; --gx-v2: 0.1750; --gx-sx: 18.02px; --gx-sy: 9.01px; --gx-wa: -0.25px; --gx-wb: -1.26px; }
  20% { --gx-e: 0.2000; --gx-v1: 0.4000; --gx-v2: 0.2000; --gx-sx: 20.60px; --gx-sy: 10.30px; --gx-wa: -0.94px; --gx-wb: -1.04px; }
  22.5% { --gx-e: 0.2250; --gx-v1: 0.4500; --gx-v2: 0.2250; --gx-sx: 23.18px; --gx-sy: 11.59px; --gx-wa: -1.43px; --gx-wb: -0.58px; }
  25% { --gx-e: 0.2500; --gx-v1: 0.5000; --gx-v2: 0.2500; --gx-sx: 25.75px; --gx-sy: 12.88px; --gx-wa: -1.60px; --gx-wb: -0.00px; }
  27.5% { --gx-e: 0.2750; --gx-v1: 0.5500; --gx-v2: 0.2750; --gx-sx: 28.32px; --gx-sy: 14.16px; --gx-wa: -1.43px; --gx-wb: 0.58px; }
  30% { --gx-e: 0.3000; --gx-v1: 0.6000; --gx-v2: 0.3000; --gx-sx: 30.90px; --gx-sy: 15.45px; --gx-wa: -0.94px; --gx-wb: 1.04px; }
  32.5% { --gx-e: 0.3250; --gx-v1: 0.6500; --gx-v2: 0.3250; --gx-sx: 33.48px; --gx-sy: 16.74px; --gx-wa: -0.25px; --gx-wb: 1.26px; }
  35% { --gx-e: 0.3500; --gx-v1: 0.7000; --gx-v2: 0.3500; --gx-sx: 36.05px; --gx-sy: 18.02px; --gx-wa: 0.49px; --gx-wb: 1.22px; }
  37.5% { --gx-e: 0.3750; --gx-v1: 0.7500; --gx-v2: 0.3750; --gx-sx: 38.62px; --gx-sy: 19.31px; --gx-wa: 1.13px; --gx-wb: 0.91px; }
  40% { --gx-e: 0.4000; --gx-v1: 0.8000; --gx-v2: 0.4000; --gx-sx: 41.20px; --gx-sy: 20.60px; --gx-wa: 1.52px; --gx-wb: 0.40px; }
  42.5% { --gx-e: 0.4250; --gx-v1: 0.8500; --gx-v2: 0.4250; --gx-sx: 43.77px; --gx-sy: 21.89px; --gx-wa: 1.58px; --gx-wb: -0.20px; }
  45% { --gx-e: 0.4500; --gx-v1: 0.9000; --gx-v2: 0.4500; --gx-sx: 46.35px; --gx-sy: 23.18px; --gx-wa: 1.29px; --gx-wb: -0.75px; }
  47.5% { --gx-e: 0.4750; --gx-v1: 0.9500; --gx-v2: 0.4750; --gx-sx: 48.92px; --gx-sy: 24.46px; --gx-wa: 0.73px; --gx-wb: -1.14px; }
  49.99% { --gx-e: 0.5000; --gx-v1: 1.0000; --gx-v2: 0.5000; --gx-sx: 51.50px; --gx-sy: 25.75px; --gx-wa: 0.00px; --gx-wb: -1.28px; }
  50% { --gx-e: 0.5000; --gx-v1: 0.0000; --gx-v2: 0.5000; --gx-sx: 51.50px; --gx-sy: 25.75px; --gx-wa: 0.00px; --gx-wb: -1.28px; }
  52.5% { --gx-e: 0.5250; --gx-v1: 0.0500; --gx-v2: 0.5250; --gx-sx: 54.08px; --gx-sy: 27.04px; --gx-wa: -0.73px; --gx-wb: -1.14px; }
  55% { --gx-e: 0.5500; --gx-v1: 0.1000; --gx-v2: 0.5500; --gx-sx: 56.65px; --gx-sy: 28.32px; --gx-wa: -1.29px; --gx-wb: -0.75px; }
  57.5% { --gx-e: 0.5750; --gx-v1: 0.1500; --gx-v2: 0.5750; --gx-sx: 59.23px; --gx-sy: 29.61px; --gx-wa: -1.58px; --gx-wb: -0.20px; }
  60% { --gx-e: 0.6000; --gx-v1: 0.2000; --gx-v2: 0.6000; --gx-sx: 61.80px; --gx-sy: 30.90px; --gx-wa: -1.52px; --gx-wb: 0.40px; }
  62.5% { --gx-e: 0.6250; --gx-v1: 0.2500; --gx-v2: 0.6250; --gx-sx: 64.38px; --gx-sy: 32.19px; --gx-wa: -1.13px; --gx-wb: 0.91px; }
  65% { --gx-e: 0.6500; --gx-v1: 0.3000; --gx-v2: 0.6500; --gx-sx: 66.95px; --gx-sy: 33.48px; --gx-wa: -0.49px; --gx-wb: 1.22px; }
  67.5% { --gx-e: 0.6750; --gx-v1: 0.3500; --gx-v2: 0.6750; --gx-sx: 69.53px; --gx-sy: 34.76px; --gx-wa: 0.25px; --gx-wb: 1.26px; }
  70% { --gx-e: 0.7000; --gx-v1: 0.4000; --gx-v2: 0.7000; --gx-sx: 72.10px; --gx-sy: 36.05px; --gx-wa: 0.94px; --gx-wb: 1.04px; }
  72.5% { --gx-e: 0.7250; --gx-v1: 0.4500; --gx-v2: 0.7250; --gx-sx: 74.67px; --gx-sy: 37.34px; --gx-wa: 1.43px; --gx-wb: 0.58px; }
  75% { --gx-e: 0.7500; --gx-v1: 0.5000; --gx-v2: 0.7500; --gx-sx: 77.25px; --gx-sy: 38.62px; --gx-wa: 1.60px; --gx-wb: 0.00px; }
  77.5% { --gx-e: 0.7750; --gx-v1: 0.5500; --gx-v2: 0.7750; --gx-sx: 79.83px; --gx-sy: 39.91px; --gx-wa: 1.43px; --gx-wb: -0.58px; }
  80% { --gx-e: 0.8000; --gx-v1: 0.6000; --gx-v2: 0.8000; --gx-sx: 82.40px; --gx-sy: 41.20px; --gx-wa: 0.94px; --gx-wb: -1.04px; }
  82.5% { --gx-e: 0.8250; --gx-v1: 0.6500; --gx-v2: 0.8250; --gx-sx: 84.97px; --gx-sy: 42.49px; --gx-wa: 0.25px; --gx-wb: -1.26px; }
  85% { --gx-e: 0.8500; --gx-v1: 0.7000; --gx-v2: 0.8500; --gx-sx: 87.55px; --gx-sy: 43.77px; --gx-wa: -0.49px; --gx-wb: -1.22px; }
  87.5% { --gx-e: 0.8750; --gx-v1: 0.7500; --gx-v2: 0.8750; --gx-sx: 90.12px; --gx-sy: 45.06px; --gx-wa: -1.13px; --gx-wb: -0.91px; }
  90% { --gx-e: 0.9000; --gx-v1: 0.8000; --gx-v2: 0.9000; --gx-sx: 92.70px; --gx-sy: 46.35px; --gx-wa: -1.52px; --gx-wb: -0.40px; }
  92.5% { --gx-e: 0.9250; --gx-v1: 0.8500; --gx-v2: 0.9250; --gx-sx: 95.28px; --gx-sy: 47.64px; --gx-wa: -1.58px; --gx-wb: 0.20px; }
  95% { --gx-e: 0.9500; --gx-v1: 0.9000; --gx-v2: 0.9500; --gx-sx: 97.85px; --gx-sy: 48.92px; --gx-wa: -1.29px; --gx-wb: 0.75px; }
  97.5% { --gx-e: 0.9750; --gx-v1: 0.9500; --gx-v2: 0.9750; --gx-sx: 100.42px; --gx-sy: 50.21px; --gx-wa: -0.73px; --gx-wb: 1.14px; }
  100% { --gx-e: 1.0000; --gx-v1: 1.0000; --gx-v2: 1.0000; --gx-sx: 103.00px; --gx-sy: 51.50px; --gx-wa: -0.00px; --gx-wb: 1.28px; }
}
@keyframes gxMeteor1 { 0% { --gx-m1: -0.05; } 16.49% { --gx-m1: 1.05; } 16.50%, 100% { --gx-m1: -0.2; } }
@keyframes gxMeteor2 { 0% { --gx-m2: -0.05; } 12.03% { --gx-m2: 1.05; } 12.04%, 100% { --gx-m2: -0.2; } }
@keyframes gxMeteor3 { 0% { --gx-m3: -0.05; } 9.94% { --gx-m3: 1.05; } 9.95%, 100% { --gx-m3: -0.2; } }
@keyframes gxMeteor4 { 0% { --gx-m4: -0.05; } 13.45% { --gx-m4: 1.05; } 13.46%, 100% { --gx-m4: -0.2; } }
@keyframes galaxyTwinkle { 50% { filter: brightness(1.14) saturate(1.15); } }
/* cards in the collection also keep their entry animation */
.tcg.slabbed.case-gold { animation: rise .7s both cubic-bezier(.2, .9, .2, 1), goldGlint 4s linear infinite; }
.tcg.slabbed.case-neon { animation: rise .7s both cubic-bezier(.2, .9, .2, 1), neonPulse 1.8s ease-in-out infinite; }
.tcg.slabbed.case-holo { animation: rise .7s both cubic-bezier(.2, .9, .2, 1), holoSpin 6s linear infinite; }
.tcg.slabbed.case-prism { animation: rise .7s both cubic-bezier(.2, .9, .2, 1), holoSpin 2.4s linear infinite, prismGlow 3s ease-in-out infinite; }
.tcg.slabbed.case-galaxy { animation: rise .7s both cubic-bezier(.2, .9, .2, 1), galaxyOrbit 24s linear infinite, galaxyTwinkle 3.2s ease-in-out infinite, var(--gx-meteors); }
@property --holo-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes holoSpin { to { --holo-a: 360deg; } }
/* cases also show on slabs in the vault and in chat brags (thinner edge, they're small) */
.v-item .v-case[class*="case-"], .mini-slab[class*="case-"] { --cb: 4px; }
.v-item .v-case.case-galaxy, .mini-slab.case-galaxy { --cb: 6px; }
@media (prefers-reduced-motion: reduce) { .tcg.slabbed[class*="case-"], .slabx[class*="case-"], .v-case[class*="case-"], .mini-slab[class*="case-"] { animation: none !important; } }
/* the case picker on a slab's page */
.case-picker { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--gold, #ffcb05) 35%, transparent); background: rgba(0, 0, 0, .22); }
.case-picker h4 { margin: 0 0 4px; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 10px; }
.cp-item { display: grid; justify-items: center; gap: 3px; padding: 10px 6px 8px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; font: inherit; }
.cp-item:hover:not([disabled]) { border-color: color-mix(in srgb, var(--gold, #ffcb05) 60%, transparent); transform: translateY(-2px); }
.cp-item.on { border-color: #4fd16a; background: rgba(79, 209, 106, .1); cursor: default; }
.cp-item b { font-size: 12px; line-height: 1.2; text-align: center; } .cp-item em { font-style: normal; font: 800 12px Inter, sans-serif; color: var(--gold, #ffcb05); } .cp-item.on em { color: #4fd16a; }
.cp-tier { font: 800 9px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.cp-item.tier-mid .cp-tier { color: #6ab8ff; opacity: 1; } .cp-item.tier-decent .cp-tier { color: #c88aff; opacity: 1; } .cp-item.tier-legend .cp-tier { color: #ffb43b; opacity: 1; }
.cp-item.tier-legend { border-color: rgba(255, 180, 60, .45); box-shadow: 0 0 14px rgba(255, 180, 60, .18); }
.cp-prev { display: grid !important; grid-template-rows: 6px 1fr; gap: 3px; width: 46px; height: 64px; padding: 4px !important; border-radius: 6px; animation: none; cursor: inherit; }
.cp-prev .cp-lbl { display: block; border-radius: 2px; background: #f4f1ea; } .cp-prev img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; }
.cp-prev.case-holo, .cp-prev.case-prism { animation: holoSpin 4s linear infinite !important; } .cp-prev.case-galaxy { animation: galaxyOrbit 24s linear infinite, var(--gx-meteors) !important; } .cp-prev.case-gold { animation: goldGlint 4s linear infinite !important; } .cp-prev.case-neon { animation: neonPulse 1.8s ease-in-out infinite !important; }
html.th-signal body.rx-design .window-layer .case-btn { white-space: nowrap; }
/* profile showcase shelf + the button on a card's page */
.showcase-box { border-color: color-mix(in srgb, var(--gold, #ffcb05) 45%, transparent) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold, #ffcb05) 25%, transparent), 0 10px 30px rgba(0, 0, 0, .35); margin-bottom: 16px; }
.showcase-box h4 { color: var(--gold, #ffcb05); }
.showcase-shelf { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.showcase-empty { margin: 4px 0 12px; }
.show-btn.on { background: linear-gradient(180deg, #ffe08a, #e3a91b) !important; color: #1a1205 !important; border-color: #e3a91b !important; }
html.th-signal body.rx-design .window-layer .show-btn.on { background: linear-gradient(180deg, #ffe08a, #e3a91b) !important; color: #1a1205 !important; border-color: #e3a91b !important; }
.cp-prev[class*="case-"] { border-width: 3px !important; }

/* livelier basic / rare / epic edges */
.tcg.slabbed.case-smoked, .slabx.case-smoked { background: var(--glass) padding-box, radial-gradient(ellipse 40% 60% at 20% 30%, rgba(160, 165, 180, .45), transparent 70%) border-box, radial-gradient(ellipse 50% 40% at 80% 70%, rgba(140, 145, 160, .4), transparent 70%) border-box, linear-gradient(160deg, #6b707c, #23262e 40%, #4a4f5a 70%, #1a1c22) border-box;
  background-size: 100% 100%, 200% 200%, 200% 200%, 100% 100%; animation: smokeDrift 12s ease-in-out infinite alternate; }
@keyframes smokeDrift { to { background-position: 0 0, 100% 80%, 0% 20%, 0 0; } }
.tcg.slabbed.case-frost, .slabx.case-frost { background: var(--glass) padding-box, radial-gradient(1.2px 1.2px at 3px 3px, #fff 60%, transparent) 0 0 / 9px 11px border-box, linear-gradient(160deg, #ffffff, #bfe6ff 30%, #e8f8ff 50%, #8fcaf5 75%, #ffffff) border-box;
  animation: frostGlint 6s linear infinite; }
@keyframes frostGlint { 50% { filter: brightness(1.12); } to { background-position: 0 0, 0 22px, 0 0; } }
.tcg.slabbed.case-carbon, .slabx.case-carbon { background: var(--glass) padding-box, linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%) border-box, repeating-linear-gradient(45deg, #15161a 0 3px, #33353d 3px 4px, #1d1f24 4px 7px) border-box;
  background-size: 100% 100%, 250% 100%, auto; animation: carbonSheen 5s ease-in-out infinite; }
@keyframes carbonSheen { from { background-position: 0 0, 150% 0, 0 0; } to { background-position: 0 0, -150% 0, 0 0; } }
.tcg.slabbed.case-smoked { animation: rise .7s both cubic-bezier(.2, .9, .2, 1), smokeDrift 12s ease-in-out infinite alternate; }
.tcg.slabbed.case-frost { animation: rise .7s both cubic-bezier(.2, .9, .2, 1), frostGlint 6s linear infinite; }
.tcg.slabbed.case-carbon { animation: rise .7s both cubic-bezier(.2, .9, .2, 1), carbonSheen 5s ease-in-out infinite; }

/* deck picker: a slab in a bought case gets that case's colour round it, so you can spot it */
.al-card.is-slab[class*="case-"] img { box-shadow: 0 0 0 3px var(--case-c, #fff), 0 0 14px var(--case-g, rgba(255, 255, 255, .4)), 0 8px 18px rgba(0, 0, 0, .5); }
:is(.al-card, .mk-thumb).case-smoked { --case-c: #4a4f5a; --case-g: rgba(0, 0, 0, .5); } :is(.al-card, .mk-thumb).case-frost { --case-c: #bfe6ff; --case-g: rgba(160, 220, 255, .55); }
:is(.al-card, .mk-thumb).case-gold { --case-c: #f2c75a; --case-g: rgba(255, 200, 80, .55); } :is(.al-card, .mk-thumb).case-neon { --case-c: #ff3fd0; --case-g: rgba(63, 230, 255, .6); }
:is(.al-card, .mk-thumb).case-carbon { --case-c: #e3302a; --case-g: rgba(227, 48, 42, .35); } :is(.al-card, .mk-thumb).case-holo { --case-c: #d0b3ff; --case-g: rgba(200, 170, 255, .5); }
:is(.al-card, .mk-thumb).case-prism { --case-c: #ff9a1a; --case-g: rgba(255, 90, 200, .6); } :is(.al-card, .mk-thumb).case-galaxy { --case-c: #a06bff; --case-g: rgba(40, 150, 255, .6); }
.mk-thumb[class*="case-"] img { box-shadow: 0 0 0 2px var(--case-c, #fff), 0 0 10px var(--case-g, rgba(255, 255, 255, .4)); }

/* case picker: trying a case on before buying it */
.cd-art { position: relative; }
.cd-art .case-try-tag { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); z-index: 5; white-space: nowrap; padding: 4px 10px; border-radius: 999px;
  font: 700 12px Inter, sans-serif; font-style: normal; color: #1a1205; background: linear-gradient(180deg, #ffe08a, #e3a91b); box-shadow: 0 4px 12px rgba(0, 0, 0, .45); pointer-events: none; }
.cp-try-hint { margin-top: 8px; }
.case-picker .cp-stage { display: grid; justify-items: center; gap: 8px; margin: 6px 0 12px; pointer-events: none; }
.case-picker .cp-stage .tcg { width: min(190px, 46vw); animation-delay: 0ms !important; }
.case-picker .cp-stage .tcg .meta { display: none; }
.case-picker .cp-stage-lbl { font: 700 13px Inter, sans-serif; color: #ffd56a; }
/* the try-on slab stays in view while you scroll down the list of cases */
.case-picker .cp-stage { position: sticky; top: 0; z-index: 4; padding: 8px 0 10px; border-radius: 12px; background: rgba(8, 12, 10, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 700px) { .case-picker .cp-stage .tcg { width: min(118px, 30vw); } }
.case-picker .cp-item.owned em { color: #6fe08a; }
/* a case never changes the size of the card inside it: the thicker case edge takes the place of the slab's normal padding,
   and anything thicker than that grows outward instead of squeezing the card */
.tcg.slabbed[class*="case-"] { padding: max(0px, calc(7px - var(--cb))) max(0px, calc(7px - var(--cb))) max(0px, calc(9px - var(--cb))); margin: calc(-1 * max(0px, calc(var(--cb) - 7px))); }
.slabx[class*="case-"] { padding: max(0px, calc(12px - var(--cb))); }
.slabx.case-galaxy { --cb: 12px; }
.v-item .v-case[class*="case-"] { padding: max(0px, calc(23px - var(--cb))) max(0px, calc(6px - var(--cb))) max(0px, calc(6px - var(--cb))); }
.mini-slab[class*="case-"] { padding: max(0px, calc(4px - var(--cb))); margin: calc(-1 * max(0px, calc(var(--cb) - 4px))); }
.tcg.slabbed[class*="case-"] { max-width: calc(100% + 2 * max(0px, calc(var(--cb) - 7px))) !important; }

/* DIVINE (1,000,000): ivory marble with separate gold fissures (kintsugi-style) that glow and sparkle, a thin shiny gold rim, a yellow shine
   sweeping across, and a huge radiant
   halo of light around the slab. Like every case it's the slab's own border + glow, so it never covers the card. */
.tcg.slabbed.case-divine { --cb: 9px; } .slabx.case-divine { --cb: 12px; } .cp-prev.case-divine { --cb: 3px; } .v-item .v-case.case-divine, .mini-slab.case-divine { --cb: 5px; }
.tcg.slabbed.case-divine, .slabx.case-divine, .v-item .v-case.case-divine, .mini-slab.case-divine, .cp-prev.case-divine { --dvs: 160%; --dvx: 0%;
  background: var(--glass) padding-box,
    linear-gradient(112deg, transparent 34%, rgba(255, 196, 30, 0) 37%, rgba(255, 200, 40, .75) 44%, rgba(255, 236, 120, .95) 48%, rgba(255, 255, 235, 1) 50%, rgba(255, 236, 120, .95) 52%, rgba(255, 196, 40, .75) 56%, rgba(255, 190, 30, 0) 63%, transparent 66%) border-box no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 140' preserveAspectRatio='none'%3E%3Cstyle%3E.g%7Banimation:p 3.2s ease-in-out infinite%7D.s%7Bopacity:0;animation:t 5.8s ease-in-out infinite%7D@keyframes p%7B0%,100%%7Bstroke-opacity:.12%7D50%%7Bstroke-opacity:.32%7D%7D@keyframes t%7B0%,70%,100%%7Bopacity:0%7D78%%7Bopacity:1%7D86%%7Bopacity:0%7D%7D%3C/style%3E%3Cpath class='g' d='M0.0,3.6 L5.2,1.2 L10.9,4.3 L11.6,4.7 L12.2,3.5 L16.0,1.3 L20.2,5.9 L32.6,1.3 L46.4,4.9 L50.0,3.6 M0.0,135.5 L5.6,134.4 L11.1,134.0 L16.7,134.5 L22.2,134.1 L27.8,134.4 L33.3,136.1 L38.9,136.2 L44.4,135.1 L50.0,135.5 M0.0,58.0 L4.0,61.3 L8.5,64.0 L12.8,67.0 L17.0,70.0 L21.2,66.5 L23.4,61.3 L28.0,58.1 L31.0,53.5 L34.0,49.0 L37.8,51.6 L42.6,52.5 L46.5,54.9 L50.0,58.0 M9.0,-6.0 L11.8,1.1 L12.3,8.6 L12.0,16.3 L13.7,23.6 L15.2,30.9 L18.8,37.8 L18.5,45.5 L19.7,52.8 L22.0,60.0 L22.0,68.7 L22.9,77.3 L25.8,85.7 L26.6,94.3 L25.6,103.1 L26.7,111.7 L27.1,120.3 L29.4,128.8 L28.9,137.5 L31.0,146.0 M41.0,-6.0 L41.5,2.1 L38.6,9.9 L38.3,17.9 L39.3,26.0 L39.5,34.1 L37.6,42.0 L36.7,50.0 L37.1,58.0 L37.3,66.1 L36.2,74.0 L35.0,82.0 L35.2,91.3 L38.4,100.1 L37.2,109.6 L40.3,118.5 L41.5,127.6 L42.9,136.7 L43.0,146.0 M20.2,5.9 L21.9,8.1 L24.6,9.4 L25.9,12.0 M10.9,4.3 L12.8,6.1 L13.7,8.8 L16.0,10.3 M5.2,1.2 L3.6,4.3 L2.0,7.3 M13.7,23.6 L18.0,23.9 L22.1,25.6 L26.4,26.1 M25.8,85.7 L23.0,88.1 L19.8,90.1 L16.3,91.4 M37.6,42.0 L33.9,43.8 L29.7,43.3 L25.9,44.9 M37.2,109.6 L40.1,110.5 L42.3,112.7 L45.1,113.9 M27.8,134.4 L29.5,131.5 L30.2,128.2 L31.4,125.1 M23.4,61.3 L25.6,58.8 L27.1,55.7 L29.6,53.4' vector-effect='non-scaling-stroke' fill='none' stroke-linejoin='round' stroke-linecap='round' stroke='%23fff3b0' stroke-width='4'/%3E%3Cpath d='M0.0,3.6 L5.2,1.2 L10.9,4.3 L11.6,4.7 L12.2,3.5 L16.0,1.3 L20.2,5.9 L32.6,1.3 L46.4,4.9 L50.0,3.6 M0.0,135.5 L5.6,134.4 L11.1,134.0 L16.7,134.5 L22.2,134.1 L27.8,134.4 L33.3,136.1 L38.9,136.2 L44.4,135.1 L50.0,135.5 M0.0,58.0 L4.0,61.3 L8.5,64.0 L12.8,67.0 L17.0,70.0 L21.2,66.5 L23.4,61.3 L28.0,58.1 L31.0,53.5 L34.0,49.0 L37.8,51.6 L42.6,52.5 L46.5,54.9 L50.0,58.0 M9.0,-6.0 L11.8,1.1 L12.3,8.6 L12.0,16.3 L13.7,23.6 L15.2,30.9 L18.8,37.8 L18.5,45.5 L19.7,52.8 L22.0,60.0 L22.0,68.7 L22.9,77.3 L25.8,85.7 L26.6,94.3 L25.6,103.1 L26.7,111.7 L27.1,120.3 L29.4,128.8 L28.9,137.5 L31.0,146.0 M41.0,-6.0 L41.5,2.1 L38.6,9.9 L38.3,17.9 L39.3,26.0 L39.5,34.1 L37.6,42.0 L36.7,50.0 L37.1,58.0 L37.3,66.1 L36.2,74.0 L35.0,82.0 L35.2,91.3 L38.4,100.1 L37.2,109.6 L40.3,118.5 L41.5,127.6 L42.9,136.7 L43.0,146.0 M20.2,5.9 L21.9,8.1 L24.6,9.4 L25.9,12.0 M10.9,4.3 L12.8,6.1 L13.7,8.8 L16.0,10.3 M5.2,1.2 L3.6,4.3 L2.0,7.3 M13.7,23.6 L18.0,23.9 L22.1,25.6 L26.4,26.1 M25.8,85.7 L23.0,88.1 L19.8,90.1 L16.3,91.4 M37.6,42.0 L33.9,43.8 L29.7,43.3 L25.9,44.9 M37.2,109.6 L40.1,110.5 L42.3,112.7 L45.1,113.9 M27.8,134.4 L29.5,131.5 L30.2,128.2 L31.4,125.1 M23.4,61.3 L25.6,58.8 L27.1,55.7 L29.6,53.4' vector-effect='non-scaling-stroke' fill='none' stroke-linejoin='round' stroke-linecap='round' stroke='%23a8821c' stroke-opacity='.7' stroke-width='1.7'/%3E%3Cpath d='M12.2,3.5 L16.0,1.3 M16.0,1.3 L20.2,5.9 M27.8,134.4 L33.3,136.1 M16.7,134.5 L22.2,134.1 M21.2,66.5 L23.4,61.3 M21.2,66.5 L23.4,61.3 M22.0,60.0 L22.0,68.7 M19.7,52.8 L22.0,60.0 M40.3,118.5 L41.5,127.6 M36.7,50.0 L37.1,58.0' vector-effect='non-scaling-stroke' fill='none' stroke-linejoin='round' stroke-linecap='round' stroke='%23c99a24' stroke-width='2.6'/%3E%3Cpath d='M0.0,3.6 L5.2,1.2 L10.9,4.3 L11.6,4.7 L12.2,3.5 L16.0,1.3 L20.2,5.9 L32.6,1.3 L46.4,4.9 L50.0,3.6 M0.0,135.5 L5.6,134.4 L11.1,134.0 L16.7,134.5 L22.2,134.1 L27.8,134.4 L33.3,136.1 L38.9,136.2 L44.4,135.1 L50.0,135.5 M0.0,58.0 L4.0,61.3 L8.5,64.0 L12.8,67.0 L17.0,70.0 L21.2,66.5 L23.4,61.3 L28.0,58.1 L31.0,53.5 L34.0,49.0 L37.8,51.6 L42.6,52.5 L46.5,54.9 L50.0,58.0 M9.0,-6.0 L11.8,1.1 L12.3,8.6 L12.0,16.3 L13.7,23.6 L15.2,30.9 L18.8,37.8 L18.5,45.5 L19.7,52.8 L22.0,60.0 L22.0,68.7 L22.9,77.3 L25.8,85.7 L26.6,94.3 L25.6,103.1 L26.7,111.7 L27.1,120.3 L29.4,128.8 L28.9,137.5 L31.0,146.0 M41.0,-6.0 L41.5,2.1 L38.6,9.9 L38.3,17.9 L39.3,26.0 L39.5,34.1 L37.6,42.0 L36.7,50.0 L37.1,58.0 L37.3,66.1 L36.2,74.0 L35.0,82.0 L35.2,91.3 L38.4,100.1 L37.2,109.6 L40.3,118.5 L41.5,127.6 L42.9,136.7 L43.0,146.0 M20.2,5.9 L21.9,8.1 L24.6,9.4 L25.9,12.0 M10.9,4.3 L12.8,6.1 L13.7,8.8 L16.0,10.3 M5.2,1.2 L3.6,4.3 L2.0,7.3 M13.7,23.6 L18.0,23.9 L22.1,25.6 L26.4,26.1 M25.8,85.7 L23.0,88.1 L19.8,90.1 L16.3,91.4 M37.6,42.0 L33.9,43.8 L29.7,43.3 L25.9,44.9 M37.2,109.6 L40.1,110.5 L42.3,112.7 L45.1,113.9 M27.8,134.4 L29.5,131.5 L30.2,128.2 L31.4,125.1 M23.4,61.3 L25.6,58.8 L27.1,55.7 L29.6,53.4' vector-effect='non-scaling-stroke' fill='none' stroke-linejoin='round' stroke-linecap='round' stroke='%23e8c24e' stroke-width='1.1'/%3E%3Cpath d='M0.0,3.6 L5.2,1.2 L10.9,4.3 L11.6,4.7 L12.2,3.5 L16.0,1.3 L20.2,5.9 L32.6,1.3 L46.4,4.9 L50.0,3.6 M0.0,135.5 L5.6,134.4 L11.1,134.0 L16.7,134.5 L22.2,134.1 L27.8,134.4 L33.3,136.1 L38.9,136.2 L44.4,135.1 L50.0,135.5 M0.0,58.0 L4.0,61.3 L8.5,64.0 L12.8,67.0 L17.0,70.0 L21.2,66.5 L23.4,61.3 L28.0,58.1 L31.0,53.5 L34.0,49.0 L37.8,51.6 L42.6,52.5 L46.5,54.9 L50.0,58.0 M9.0,-6.0 L11.8,1.1 L12.3,8.6 L12.0,16.3 L13.7,23.6 L15.2,30.9 L18.8,37.8 L18.5,45.5 L19.7,52.8 L22.0,60.0 L22.0,68.7 L22.9,77.3 L25.8,85.7 L26.6,94.3 L25.6,103.1 L26.7,111.7 L27.1,120.3 L29.4,128.8 L28.9,137.5 L31.0,146.0 M41.0,-6.0 L41.5,2.1 L38.6,9.9 L38.3,17.9 L39.3,26.0 L39.5,34.1 L37.6,42.0 L36.7,50.0 L37.1,58.0 L37.3,66.1 L36.2,74.0 L35.0,82.0 L35.2,91.3 L38.4,100.1 L37.2,109.6 L40.3,118.5 L41.5,127.6 L42.9,136.7 L43.0,146.0 M20.2,5.9 L21.9,8.1 L24.6,9.4 L25.9,12.0 M10.9,4.3 L12.8,6.1 L13.7,8.8 L16.0,10.3 M5.2,1.2 L3.6,4.3 L2.0,7.3 M13.7,23.6 L18.0,23.9 L22.1,25.6 L26.4,26.1 M25.8,85.7 L23.0,88.1 L19.8,90.1 L16.3,91.4 M37.6,42.0 L33.9,43.8 L29.7,43.3 L25.9,44.9 M37.2,109.6 L40.1,110.5 L42.3,112.7 L45.1,113.9 M27.8,134.4 L29.5,131.5 L30.2,128.2 L31.4,125.1 M23.4,61.3 L25.6,58.8 L27.1,55.7 L29.6,53.4' vector-effect='non-scaling-stroke' fill='none' stroke-linejoin='round' stroke-linecap='round' stroke='%23fff7cf' stroke-width='.45'/%3E%3Cpath d='M12.2,3.5 L16.0,1.3 M16.0,1.3 L20.2,5.9 M27.8,134.4 L33.3,136.1 M16.7,134.5 L22.2,134.1 M21.2,66.5 L23.4,61.3 M21.2,66.5 L23.4,61.3 M22.0,60.0 L22.0,68.7 M19.7,52.8 L22.0,60.0 M40.3,118.5 L41.5,127.6 M36.7,50.0 L37.1,58.0' vector-effect='non-scaling-stroke' fill='none' stroke-linejoin='round' stroke-linecap='round' stroke='%23fff3b8' stroke-width='.9'/%3E%3Cg class='s' style='animation-delay:0.00s'%3E%3Cpath d='M17.6,37.8 L20.0,37.8 M18.8,36.2 L18.8,39.4' vector-effect='non-scaling-stroke' fill='none' stroke='%23fffef4' stroke-width='1.1'/%3E%3C/g%3E%3Cg class='s' style='animation-delay:0.97s'%3E%3Cpath d='M36.1,66.1 L38.5,66.1 M37.3,64.5 L37.3,67.7' vector-effect='non-scaling-stroke' fill='none' stroke='%23fffef4' stroke-width='1.1'/%3E%3C/g%3E%3Cg class='s' style='animation-delay:1.94s'%3E%3Cpath d='M11.0,3.5 L13.4,3.5 M12.2,1.9 L12.2,5.1' vector-effect='non-scaling-stroke' fill='none' stroke='%23fffef4' stroke-width='1.1'/%3E%3C/g%3E%3Cg class='s' style='animation-delay:2.91s'%3E%3Cpath d='M15.5,134.5 L17.9,134.5 M16.7,132.9 L16.7,136.1' vector-effect='non-scaling-stroke' fill='none' stroke='%23fffef4' stroke-width='1.1'/%3E%3C/g%3E%3Cg class='s' style='animation-delay:3.88s'%3E%3Cpath d='M15.8,70.0 L18.2,70.0 M17.0,68.4 L17.0,71.6' vector-effect='non-scaling-stroke' fill='none' stroke='%23fffef4' stroke-width='1.1'/%3E%3C/g%3E%3Cg class='s' style='animation-delay:4.85s'%3E%3Cpath d='M25.5,111.7 L27.9,111.7 M26.7,110.1 L26.7,113.3' vector-effect='non-scaling-stroke' fill='none' stroke='%23fffef4' stroke-width='1.1'/%3E%3C/g%3E%3C/svg%3E") border-box repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M56.0,149.8 L55.6,162.8 L57.1,172.4 L59.7,184.1 L63.1,194.5 L68.4,204.4 L74.0,215.3 L76.3,225.2 L78.9,235.1 L79.7,244.0 L83.7,254.1 M15.9,96.4 L24.4,98.8 L31.7,107.7 L38.9,118.1 L47.6,126.5 L56.4,131.7 L62.4,143.7 L67.0,154.5 L76.5,163.7 L86.6,168.8 L100.5,175.0 M70.1,113.2 L58.1,116.8 L43.3,119.5 L29.1,116.8 L16.9,115.5 L4.9,120.6 L-8.8,125.1 L-19.9,132.2 L-30.7,132.6 L-41.0,132.9 L-55.1,137.3 M95.6,6.8 L91.7,21.2 L88.3,34.1 L81.6,48.2 L78.0,61.7 L70.6,71.3 L65.1,78.9 L54.4,85.5 L45.9,97.5 L37.5,108.5 L29.0,116.7 M19.0,28.9 L23.0,40.4 L24.7,50.5 L34.2,59.2 L42.8,64.7 L50.5,71.8 L58.1,84.8 L65.1,97.9 L73.4,107.0 L75.0,117.7 L76.7,128.7 M17.8,50.8 L17.6,60.4 L15.6,73.3 L11.6,83.9 L3.9,94.9 L-6.6,101.5 L-17.2,107.4 L-28.0,109.6 L-36.0,118.8 L-45.4,125.8 L-54.2,134.7 M64.6,67.1 L49.9,68.2 L37.2,69.5 L25.5,67.7 L16.7,65.6 L5.1,60.7 L-5.6,58.1 L-19.1,51.6 L-31.0,42.5 L-39.4,34.6 L-48.5,25.7 M47.2,87.0 L50.6,97.1 L53.9,108.5 L59.7,120.8 L63.9,128.2 L63.4,138.5 L63.0,153.4 L58.2,165.5 L54.2,179.9 L56.4,194.0 L55.3,204.8 M69.2,13.3 L56.5,14.3 L46.4,10.5 L34.3,11.5 L20.4,17.5 L7.8,20.3 L-3.1,23.1 L-17.8,25.1 L-32.1,25.1 L-43.8,25.6 L-58.7,29.2 M66.9,123.4 L67.1,133.7 L64.2,145.5 L62.1,155.9 L56.8,168.7 L57.8,181.7 L54.8,191.2 L54.9,200.5 L61.3,210.9 L69.6,219.0 L78.3,227.1 M75.3,47.1 L73.6,58.9 L68.6,68.8 L62.1,81.0 L60.0,91.8 L57.9,106.7 L61.1,120.3 L67.3,130.0 L72.4,139.2 L75.6,147.4 L84.6,155.6 M36.5,141.9 L26.1,148.6 L19.3,160.0 L11.3,168.8 L5.5,182.1 L-0.5,190.3 L-3.6,203.0 L-7.9,213.5 L-12.0,226.8 L-15.7,239.5 L-17.4,248.1' vector-effect='non-scaling-stroke' fill='none' stroke-linejoin='round' stroke-linecap='round' stroke='%23c9c9c6' stroke-opacity='.55' stroke-width='3'/%3E%3Cpath d='M56.0,149.8 L55.6,162.8 L57.1,172.4 L59.7,184.1 L63.1,194.5 L68.4,204.4 L74.0,215.3 L76.3,225.2 L78.9,235.1 L79.7,244.0 L83.7,254.1 M15.9,96.4 L24.4,98.8 L31.7,107.7 L38.9,118.1 L47.6,126.5 L56.4,131.7 L62.4,143.7 L67.0,154.5 L76.5,163.7 L86.6,168.8 L100.5,175.0 M70.1,113.2 L58.1,116.8 L43.3,119.5 L29.1,116.8 L16.9,115.5 L4.9,120.6 L-8.8,125.1 L-19.9,132.2 L-30.7,132.6 L-41.0,132.9 L-55.1,137.3 M95.6,6.8 L91.7,21.2 L88.3,34.1 L81.6,48.2 L78.0,61.7 L70.6,71.3 L65.1,78.9 L54.4,85.5 L45.9,97.5 L37.5,108.5 L29.0,116.7 M19.0,28.9 L23.0,40.4 L24.7,50.5 L34.2,59.2 L42.8,64.7 L50.5,71.8 L58.1,84.8 L65.1,97.9 L73.4,107.0 L75.0,117.7 L76.7,128.7 M17.8,50.8 L17.6,60.4 L15.6,73.3 L11.6,83.9 L3.9,94.9 L-6.6,101.5 L-17.2,107.4 L-28.0,109.6 L-36.0,118.8 L-45.4,125.8 L-54.2,134.7 M64.6,67.1 L49.9,68.2 L37.2,69.5 L25.5,67.7 L16.7,65.6 L5.1,60.7 L-5.6,58.1 L-19.1,51.6 L-31.0,42.5 L-39.4,34.6 L-48.5,25.7 M47.2,87.0 L50.6,97.1 L53.9,108.5 L59.7,120.8 L63.9,128.2 L63.4,138.5 L63.0,153.4 L58.2,165.5 L54.2,179.9 L56.4,194.0 L55.3,204.8 M69.2,13.3 L56.5,14.3 L46.4,10.5 L34.3,11.5 L20.4,17.5 L7.8,20.3 L-3.1,23.1 L-17.8,25.1 L-32.1,25.1 L-43.8,25.6 L-58.7,29.2 M66.9,123.4 L67.1,133.7 L64.2,145.5 L62.1,155.9 L56.8,168.7 L57.8,181.7 L54.8,191.2 L54.9,200.5 L61.3,210.9 L69.6,219.0 L78.3,227.1 M75.3,47.1 L73.6,58.9 L68.6,68.8 L62.1,81.0 L60.0,91.8 L57.9,106.7 L61.1,120.3 L67.3,130.0 L72.4,139.2 L75.6,147.4 L84.6,155.6 M36.5,141.9 L26.1,148.6 L19.3,160.0 L11.3,168.8 L5.5,182.1 L-0.5,190.3 L-3.6,203.0 L-7.9,213.5 L-12.0,226.8 L-15.7,239.5 L-17.4,248.1' vector-effect='non-scaling-stroke' fill='none' stroke-linejoin='round' stroke-linecap='round' stroke='%238f9093' stroke-opacity='.45' stroke-width='.8'/%3E%3C/svg%3E") border-box no-repeat,
    radial-gradient(ellipse at 22% 16%, rgba(255, 255, 255, 1), transparent 45%) border-box,
    radial-gradient(ellipse at 80% 86%, rgba(226, 226, 224, .9), transparent 50%) border-box,
    linear-gradient(140deg, #fbfbf9, #ececea 35%, #fafaf8 55%, #e3e3e0 80%, #f6f6f4) border-box;
  background-size: 100% 100%, 260% 100%, 50% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, var(--dvs) 0, var(--dvx) 0, 0 0, 0 0, 0 0, 0 0;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 170, .9), 0 0 0 1px #fff3c0, 0 0 0 2.5px #e3ad2c, 0 0 0 3.5px #8a5a10, 0 0 16px 5px rgba(255, 214, 110, .85), 0 0 50px 16px rgba(255, 196, 80, .5), 0 0 110px 38px rgba(255, 226, 150, .38), 0 0 180px 60px rgba(255, 244, 210, .2), 0 12px 26px rgba(0, 0, 0, .5) !important;
  animation: divineGlint 4.2s cubic-bezier(.45, 0, .3, 1) infinite, divineDrift 9s linear infinite, divineHalo 3.6s ease-in-out infinite; }
.tcg.slabbed.case-divine { animation: rise .7s both cubic-bezier(.2, .9, .2, 1), divineGlint 4.2s cubic-bezier(.45, 0, .3, 1) infinite, divineDrift 9s linear infinite, divineHalo 3.6s ease-in-out infinite; }
.cp-prev.case-divine { animation: divineGlint 4.2s cubic-bezier(.45, 0, .3, 1) infinite, divineDrift 9s linear infinite, divineHalo 3.6s ease-in-out infinite !important; background-size: 100% 100%, 260% 100%, 50% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%; }
@property --dvs { syntax: "<percentage>"; inherits: false; initial-value: 160%; }
@property --dvx { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes divineGlint { 0% { --dvs: 160%; } 55%, 100% { --dvs: -60%; } }   /* a bright yellow sheen sweeps all the way across (starting and ending fully off the slab), then rests */
@keyframes divineDrift { to { --dvx: 100%; } }   /* the cracks slide across and loop seamlessly */


@keyframes divineHalo { 50% { box-shadow: inset 0 0 0 1px rgba(255, 246, 200, 1), 0 0 0 1px #fffbe0, 0 0 0 2.5px #f6cf5a, 0 0 0 3.5px #a06c14, 0 0 24px 7px rgba(255, 222, 130, .95), 0 0 70px 24px rgba(255, 204, 90, .6), 0 0 150px 52px rgba(255, 230, 160, .45), 0 0 240px 80px rgba(255, 246, 216, .26), 0 12px 26px rgba(0, 0, 0, .5); } }
.cp-item.tier-divine .cp-tier { color: #fff0b0; opacity: 1; text-shadow: 0 0 8px rgba(255, 200, 80, .8); }
.cp-item.tier-divine { border-color: rgba(255, 226, 140, .7); box-shadow: 0 0 18px rgba(255, 210, 100, .35), inset 0 0 12px rgba(255, 230, 160, .12); }
.al-card.case-divine, .mk-thumb.case-divine { --case-c: #ffe7a0; --case-g: rgba(255, 210, 90, .8); }
@media (prefers-reduced-motion: reduce) { .case-divine { animation: none !important; } }

/* arena lobby / results: centred when they fit, but a tall panel (e.g. Practice with lots of cards) starts at the top and scrolls,
   instead of being centred off the top of the screen where it can't be reached */
.a-lobby, .a-result { align-items: start; }
.a-lobby > *, .a-result > * { margin-top: auto; margin-bottom: auto; }

/* raid: pick your raid cards */
.rc-card { position: relative; }
.rc-card small { display: block; text-align: center; font-weight: 700; color: var(--ink, #eee); }
.rc-card.sup { box-shadow: 0 0 0 1px rgba(90, 220, 140, .5); }
.rc-card i { position: absolute; top: 2px; right: 2px; font: 800 9px Inter, sans-serif; font-style: normal; padding: 1px 4px; border-radius: 6px; background: #2fbf6a; color: #04170c; }
.rc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: -2px 0 10px; }
.rc-bar small { color: var(--muted); }
#rc-chooser { margin: 0 0 12px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .1); }
.rc-head { display: grid; gap: 2px; margin-bottom: 8px; } .rc-head small { color: var(--muted); }
.rc-sel { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-bottom: 10px; }
.rc-slot { aspect-ratio: 63 / 88; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, .25); display: grid; place-items: center; font-weight: 800; color: var(--muted); background: none; padding: 0; overflow: hidden; }
.rc-slot.on { border: 2px solid var(--gold, #ffcb05); cursor: pointer; } .rc-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-tools { display: flex; gap: 8px; margin-bottom: 8px; } .rc-tools .search { flex: 1; min-width: 0; }
.rc-types { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.rc-types button { padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: none; color: inherit; font-size: 12px; cursor: pointer; }
.rc-types button.on { background: var(--gold, #ffcb05); color: #1a1205; border-color: transparent; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 340px; overflow-y: auto; padding-right: 2px; }
.rc-pick { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center; text-align: left; padding: 5px; border-radius: 9px; border: 2px solid transparent; background: rgba(255, 255, 255, .05); color: inherit; cursor: pointer; }
.rc-pick img { width: 40px; border-radius: 4px; display: block; }
.rc-pick span { display: grid; gap: 1px; min-width: 0; } .rc-pick b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-pick small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rc-pick em { font-style: normal; font-size: 11px; font-weight: 700; color: #ffd56a; }
.rc-pick.sup em { color: #6fe08a; }
.rc-pick.on { border-color: var(--gold, #ffcb05); background: rgba(255, 203, 5, .12); }
#rc-chooser .row-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 10px; }
@media (max-width: 520px) { .rc-sel { gap: 4px; } .rc-slot { font-size: 11px; border-radius: 4px; } .rc-grid { grid-template-columns: 1fr 1fr; max-height: 300px; } }

/* bulk grading: "how many do you want to bulk grade?" for stacks */
.bg-grid .ve-card { position: relative; }
.bg-grid .bg-n { position: absolute; top: 4px; right: 4px; z-index: 2; font: 800 11px Inter, sans-serif; font-style: normal; padding: 2px 6px; border-radius: 999px; background: var(--gold, #ffcb05); color: #1a1205; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.bg-ask { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); }
.bg-ask-box { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; width: min(440px, 100%); padding: 16px; border-radius: 14px; background: #121614; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.bg-ask-box > img { width: 90px; border-radius: 6px; display: block; }
.bg-ask-main h3 { margin: 0 0 4px; font-size: 17px; } .bg-ask-main .hint { margin: 0 0 10px; }
.bg-step { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.bg-step button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: inherit; font-size: 22px; font-weight: 800; cursor: pointer; }
.bg-step input { width: 80px; height: 40px; text-align: center; font: 800 20px Inter, sans-serif; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .35); color: inherit; }
.bg-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bg-quick button { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: none; color: inherit; cursor: pointer; font-weight: 700; }
.bg-quick button.rm { border-color: rgba(255, 90, 90, .5); color: #ff8a8a; }
.bg-ask .row-btns { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 420px) { .bg-ask-box { grid-template-columns: 1fr; } .bg-ask-box > img { width: 70px; } }
#g-any-co { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .35); color: inherit; font: inherit; }

/* grading/regrade buttons you can't afford yet */
.btn.broke, .btn.broke:hover { filter: grayscale(1) brightness(.75); opacity: .6; cursor: not-allowed; }

/* speed: cards scrolled out of view in the collection pause their animations (play.js pauseOffscreen) */
.pk-off, .pk-off *, .pk-off::before, .pk-off::after, .pk-off *::before, .pk-off *::after { animation-play-state: paused !important; }

/* profile header: the player's Locker look, laid out like their name in chat */
.prof-id { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.prof-id .av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; object-fit: cover; font-weight: 800; }
.prof-id .mh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.prof-id .who { font-size: 18px; font-weight: 800; }
.lk-champ { color: #ffd56a; }

/* finish on the big slab views (grading reveal, crack game): the label names it, the card window carries the foil tag */
.slab-label .desc .slab-fin { font-style: normal; font-weight: 900; font-size: 9px; letter-spacing: .06em; margin-left: 4px; padding: 1px 5px; border-radius: 4px; color: #1a1208; background: linear-gradient(90deg, #ffe7a0, #ffc04a); vertical-align: 1px; }
.slabx.fin-cosmic .slab-label .desc .slab-fin { color: #fff; background: linear-gradient(90deg, #3a1a7a, #8a5aff, #3a1a7a); }
.slabx.fin-iridescent .slab-label .desc .slab-fin { background: linear-gradient(90deg, #ffd1f0, #c7f0ff, #d9ffd1); }
.slabx.fin-first .slab-label .desc .slab-fin { color: #fff; background: #222; }
.slab-win .fin-tag { bottom: 8px; }
.slabx.fin-first .slab-win::after { display: none; }
.slab-win .fin-tag { z-index: 3; }

/* ---------- Prestige (level 100: Continue or Prestige, then the skill tree) ---------- */
.pres-star { font-style: normal; font-weight: 900; color: #e7c8ff; text-shadow: 0 0 8px rgba(190, 120, 255, .9); margin-right: 3px; }
.lvl-tag.pres { background: linear-gradient(90deg, #3a1a6a, #7a3ac8) !important; color: #fff !important; border-color: #c79aff !important; }
.prs { display: grid; gap: 14px; }
.prs-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: radial-gradient(circle at 15% 50%, rgba(160, 90, 255, .35), transparent 60%), rgba(255, 255, 255, .04); border: 1px solid rgba(200, 150, 255, .4); }
.prs-head b { display: block; font-size: 18px; } .prs-head small { color: var(--muted, #aaa); }
.prs-star { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 900 18px var(--display, sans-serif); color: #fff;
  background: conic-gradient(from 0deg, #7a3ac8, #ff5ac8, #ffd56a, #5ad8ff, #7a3ac8); box-shadow: 0 0 22px rgba(170, 100, 255, .7); }
.prs-tok { font: 900 20px var(--display, sans-serif); color: #e7c8ff; white-space: nowrap; }
.prs-tabs { display: flex; gap: 8px; } .prs-tabs button { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: inherit; font-weight: 800; cursor: pointer; }
.prs-tabs button.on { background: linear-gradient(90deg, #4a1f8a, #7a3ac8); border-color: #c79aff; color: #fff; }
.prs-choice h3 { margin: 0 0 6px; } .prs-choice p { margin: 0; line-height: 1.5; }
.prs-bar { position: relative; height: 22px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.prs-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #7a3ac8, #ff5ac8); }
.prs-bar span { position: relative; display: block; text-align: center; font: 800 12px/22px sans-serif; }
.prs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.prs-box { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.prs-box h4 { margin: 0 0 8px; } .prs-box.lose { border-color: rgba(255, 90, 90, .45); } .prs-box.gain { border-color: rgba(200, 150, 255, .55); }
.prs-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; } .prs-row.tot { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; font-weight: 900; }
.prs-big { font: 900 30px var(--display, sans-serif); color: #e7c8ff; margin: 4px 0 8px; } .prs-big small { font-size: 13px; font-weight: 700; }
.prs-why { padding: 10px 14px; border-radius: 10px; background: rgba(255, 180, 60, .08); border: 1px solid rgba(255, 180, 60, .4); } .prs-why p { margin: 4px 0; }
.prs-confirm { padding: 14px; border-radius: 12px; border: 2px solid #ff5a5a; background: rgba(255, 60, 60, .08); text-align: center; }
.prs-confirm input { width: 150px; text-align: center; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.prs-tier { padding: 12px; border-radius: 14px; border: 1px solid rgba(200, 150, 255, .35); background: rgba(120, 60, 200, .06); }
.prs-tier.locked { opacity: .6; filter: saturate(.5); }
.prs-tier-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; } .prs-tier-h small { color: var(--muted, #aaa); }
.prs-buffs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.prs-buff { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.prs-buff.has { border-color: #c79aff; box-shadow: 0 0 14px rgba(170, 100, 255, .25); }
.prs-buff.max { border-color: #ffd56a; box-shadow: 0 0 16px rgba(255, 200, 80, .35); }
.pb-top { display: flex; align-items: center; gap: 8px; } .pb-top b { flex: 1; } .pb-top em { font-style: normal; font-weight: 900; color: #e7c8ff; }
.pb-ic { font-size: 20px; }
.pb-pips { display: flex; gap: 3px; } .pb-pips i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); } .pb-pips i.on { background: linear-gradient(90deg, #a06bff, #ff5ac8); }
.pb-now { margin: 0; font-size: 13px; } .pb-next { margin: 0; font-size: 12px; color: var(--muted, #aaa); } .pb-maxed { font-weight: 900; color: #ffd56a; text-align: center; }
/* prestige skill tree board (Pay-the-Bills style): nodes on lines growing out from the core */
.pt-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid rgba(200, 150, 255, .35);
  background: radial-gradient(circle at 50% 53%, rgba(150, 80, 255, .28), transparent 55%), repeating-linear-gradient(0deg, transparent 0 39px, rgba(200, 160, 255, .05) 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(200, 160, 255, .05) 40px), #0b0716; }
.pt-board { position: relative; width: 100%; min-width: 640px; aspect-ratio: 1000 / 640; }
.pt-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pt-lines line { stroke: rgba(255, 255, 255, .14); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pt-lines line.ready { stroke: rgba(200, 160, 255, .55); stroke-dasharray: 6 8; animation: ptDash 1.2s linear infinite; }
.pt-lines line.lit { stroke: #c79aff; stroke-width: 5; filter: drop-shadow(0 0 6px rgba(190, 120, 255, .9)); }
@keyframes ptDash { to { stroke-dashoffset: -28; } }
.pt-core { position: absolute; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: conic-gradient(from 0deg, #7a3ac8, #ff5ac8, #ffd56a, #5ad8ff, #7a3ac8); box-shadow: 0 0 34px rgba(170, 100, 255, .8); color: #fff; z-index: 2; }
.pt-core::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #170c2c; z-index: -1; }
.pt-core b { font: 900 22px var(--display, sans-serif); } .pt-core small { font-weight: 800; font-size: 12px; color: #e7c8ff; }
.pt-node { position: absolute; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; color: #fff; z-index: 3;
  background: #1a1030; display: grid; place-items: center; transition: transform .15s ease; }
.pt-node:hover { transform: translate(-50%, -50%) scale(1.08); }
.pt-ring { position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--c, #c79aff) calc(var(--k) * 360deg), rgba(255, 255, 255, .12) 0);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); }
.pt-ic { font-size: 28px; line-height: 1; }
.pt-rk { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font: 900 11px/1 sans-serif; padding: 3px 7px; border-radius: 99px; background: #2a1650; border: 1px solid #7a5ab0; white-space: nowrap; }
.pt-nm { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-weight: 800; font-size: 11px; color: #d9c8f5; text-shadow: 0 1px 3px #000; pointer-events: none; }
.pt-node.t1 { --c: #8ad8ff; } .pt-node.t2 { --c: #7affb0; } .pt-node.t3 { --c: #ffb05a; } .pt-node.t4 { --c: #ff5ad8; }
.pt-node.locked { filter: grayscale(1) brightness(.6); cursor: pointer; }
.pt-node.open { box-shadow: 0 0 0 2px rgba(200, 160, 255, .5); }
.pt-node.afford { animation: ptPulse 1.6s ease-in-out infinite; }
@keyframes ptPulse { 50% { box-shadow: 0 0 0 3px #c79aff, 0 0 22px rgba(190, 120, 255, .9); } }
.pt-node.own { box-shadow: 0 0 16px color-mix(in srgb, var(--c) 60%, transparent); }
.pt-node.max { box-shadow: 0 0 0 3px #ffd56a, 0 0 24px rgba(255, 200, 80, .8); } .pt-node.max .pt-rk { background: #6a4a10; border-color: #ffd56a; }

.pt-detail { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(200, 150, 255, .45); background: rgba(120, 60, 200, .08); }
.ptd-head { display: flex; align-items: center; gap: 12px; } .ptd-head b { display: block; font-size: 17px; } .ptd-head small { color: var(--muted, #aaa); }
.ptd-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: #1a1030; box-shadow: 0 0 0 2px var(--c, #c79aff); }
.ptd-ic.t1 { --c: #8ad8ff; } .ptd-ic.t2 { --c: #7affb0; } .ptd-ic.t3 { --c: #ffb05a; } .ptd-ic.t4 { --c: #ff5ad8; }
@media (max-width: 700px) { .pt-node { width: 56px; height: 56px; } .pt-ic { font-size: 22px; } .pt-core { width: 78px; height: 78px; } }
.prs { grid-template-columns: minmax(0, 1fr); }   /* the tree board scrolls sideways inside its box on phones instead of widening the window */
.pt-node.pt-sel { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 8px rgba(255, 255, 255, .22), 0 0 22px rgba(255, 255, 255, .35); }

/* My cards: the Prestige tile (optional - just opens the Prestige window) */
.prs-stat { cursor: pointer; text-align: left; font: inherit; color: inherit; border: 1px solid rgba(200, 150, 255, .45) !important; background: linear-gradient(135deg, rgba(120, 60, 200, .25), rgba(255, 90, 200, .08)) !important; }
.prs-stat.ready { box-shadow: 0 0 0 1px #c79aff, 0 0 16px rgba(170, 100, 255, .45); }
.prs-stat:hover { filter: brightness(1.15); }
html .stats .stat.prs-stat, html.th-signal body .stats .stat.prs-stat { border: 1px solid #a070ff !important; background: linear-gradient(135deg, #2a1250, #4a1f7a 60%, #6a2a6a) !important; }
html .stats .stat.prs-stat b, html.th-signal body .stats .stat.prs-stat b { color: #f0dcff !important; text-shadow: 0 0 10px rgba(190, 120, 255, .8) !important; }
html .stats .stat.prs-stat small, html.th-signal body .stats .stat.prs-stat small { color: #d8c0ff !important; }
html .stats .stat.prs-stat.ready, html.th-signal body .stats .stat.prs-stat.ready { box-shadow: 0 0 0 1px #c79aff, 0 0 18px rgba(170, 100, 255, .55) !important; }

/* skill tree hover card */
.pt-tip { position: absolute; z-index: 10; width: 230px; transform: translate(-50%, -100%); padding: 10px 12px; border-radius: 12px; pointer-events: none;
  background: rgba(16, 9, 32, .97); border: 1px solid #a070ff; box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 18px rgba(160, 100, 255, .35); font-size: 12.5px; line-height: 1.35; color: #eee; }
.pt-tip.below { transform: translate(-50%, 0); }
.pt-tip b { display: block; font-size: 14px; } .pt-tip small { display: block; color: #b9a6dc; margin-bottom: 6px; }
.pt-tip p { margin: 4px 0 0; } .pt-tip .tt-next { color: #c9b8ea; } .pt-tip .tt-max { color: #ffd56a; font-weight: 800; }
.pt-tip .tt-lock { color: #ffb07a; font-weight: 700; } .pt-tip .tt-cost { font-weight: 800; color: #c7b0ff; } .pt-tip .tt-cost.ok { color: #9dffb8; }
@media (hover: none) { .pt-tip { display: none; } }

/* You window: Prestige sits between your XP bar and View profile - a grey button with a pulsing yellow halo */
.me-card:has(.me-prs) { grid-template-columns: auto minmax(0, 1.25fr) minmax(170px, 1fr) auto; }
html body .window-body .me-card .btn.me-prs, html.th-signal body.rx-design .window-layer .window-body .me-card .btn.me-prs {
  justify-self: center; position: relative !important; overflow: visible !important; isolation: isolate; padding: 12px 26px !important; font-size: 16px !important; font-weight: 900 !important;
  letter-spacing: .02em; color: #f4f1e6 !important; text-shadow: 0 1px 2px #000 !important; border: 1px solid #6b6f78 !important; border-radius: 10px !important;
  background: linear-gradient(180deg, #4a4e57, #2d3037 60%, #24262c) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 0 #121317 !important; }
.me-card .btn.me-prs::after { content: ""; position: absolute; inset: -5px; border-radius: 14px; pointer-events: none; z-index: -1;
  box-shadow: 0 0 0 2px rgba(255, 214, 80, .85), 0 0 16px 3px rgba(255, 200, 40, .75), 0 0 36px 8px rgba(255, 180, 0, .35); animation: mePrsHalo 1.8s ease-in-out infinite; }
.me-card .btn.me-prs.ready::after { animation-duration: 1.1s; }
.me-card .btn.me-prs:hover { filter: brightness(1.15); }
@keyframes mePrsHalo { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .me-card .btn.me-prs::after { animation: none; opacity: .85; } }
@media (max-width: 600px) { .me-card:has(.me-prs) { grid-template-columns: auto 1fr; } .me-card .btn.me-prs { grid-column: 1 / -1; justify-self: stretch !important; } }

/* the prestige moment (full screen) */
.prs-cine { position: fixed; inset: 0; z-index: 99990; background: radial-gradient(circle at 50% 50%, #1a0b33, #05020c 70%); overflow: hidden; cursor: pointer; }
.prs-cine canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-core { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; border-radius: 50%; transform: translate(-50%, -50%) scale(.1);
  background: radial-gradient(circle, #fff 0 18%, #ffe28a 30%, #ff5ad8 55%, rgba(160, 90, 255, .0) 72%); filter: blur(1px); box-shadow: 0 0 80px 30px rgba(190, 120, 255, .7); }
.pc-star { position: absolute; left: 50%; top: 42%; width: 220px; height: 220px; transform: translate(-50%, -50%); display: grid; place-items: center; }
.pc-star b { position: relative; z-index: 2; font: 900 76px/1 var(--display, sans-serif); color: #fff; text-shadow: 0 0 18px #ffd56a, 0 0 42px #c79aff, 0 0 80px #ff5ad8; }
.pc-star::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: conic-gradient(from 0deg, #7a3ac8, #ff5ac8, #ffd56a, #5ad8ff, #7a3ac8); filter: blur(2px); animation: pcSpin 4s linear infinite; box-shadow: 0 0 60px rgba(255, 200, 80, .8); }
.pc-star::after { content: ""; position: absolute; inset: 30px; border-radius: 50%; background: #12062a; }
.pc-star > b { z-index: 3; }
.pc-rays { position: absolute; inset: -260px; border-radius: 50%; z-index: 0; background: repeating-conic-gradient(from 0deg, rgba(255, 230, 150, .32) 0deg 5deg, transparent 5deg 16deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%); animation: pcSpin 18s linear infinite; }
@keyframes pcSpin { to { transform: rotate(360deg); } }
.pc-text { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); text-align: center; color: #fff; white-space: nowrap; }
.pc-text h2 { margin: 0; font: 900 clamp(42px, 9vw, 92px)/1 var(--display, sans-serif); letter-spacing: .18em; background: linear-gradient(90deg, #ffd56a, #fff4c8, #ff9ad5, #c79aff, #ffd56a); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: pcSlide 2.6s linear infinite; filter: drop-shadow(0 0 18px rgba(255, 200, 80, .6)); }
@keyframes pcSlide { to { background-position: 300% 0; } }
.pc-text p { margin: 10px 0 0; font: 800 22px var(--display, sans-serif); color: #e7c8ff; } .pc-text small { display: block; margin-top: 14px; opacity: .55; }
body:has(.prs-cine) .fx-overlay { z-index: 99995 !important; }   /* sparks, shockwaves and the flash play on top of the prestige moment */
body:has(.prs-cine) .fx-flash { z-index: 99994 !important; }
.prs-row.sub { font-size: 12px; color: var(--muted, #aaa); padding-top: 0; }
/* ---- the big prestige skill tree (v122): pan + zoom board ---- */
.pt-top { display: grid; grid-template-columns: 1fr minmax(200px, 320px); gap: 10px; align-items: center; }
.pt-prog { position: relative; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(200, 150, 255, .3); font-size: 13px; overflow: hidden; }
.pt-prog i { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #a06bff, #ff5ad8, #ffd56a); }
.pt-search { width: 100%; }
.pt-view { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid rgba(200, 150, 255, .35); cursor: grab; touch-action: none; user-select: none;
  background: radial-gradient(circle at 50% 50%, rgba(150, 80, 255, .22), transparent 60%), repeating-linear-gradient(0deg, transparent 0 47px, rgba(200, 160, 255, .045) 48px), repeating-linear-gradient(90deg, transparent 0 47px, rgba(200, 160, 255, .045) 48px), #0a0614; }
.pt-view.dragging { cursor: grabbing; }
.pt-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.pt-world .pt-lines { position: absolute; inset: 0; overflow: visible; }
.pt-orbit { fill: none; stroke: rgba(200, 160, 255, .07); stroke-width: 2; stroke-dasharray: 4 14; }
.pt-world .pt-lines line { stroke: rgba(255, 255, 255, .12); stroke-width: 5; stroke-linecap: round; vector-effect: none; }
.pt-world .pt-lines line.ready { stroke: color-mix(in srgb, var(--bc) 70%, transparent); stroke-dasharray: 10 12; animation: ptDash 1.2s linear infinite; }
.pt-world .pt-lines line.lit { stroke: var(--bc); stroke-width: 7; filter: drop-shadow(0 0 8px var(--bc)); }
.pt-blabel { position: absolute; transform: translate(-50%, -50%); font: 900 64px/1 var(--display, sans-serif); letter-spacing: .12em; text-transform: uppercase; opacity: .22; pointer-events: none; white-space: nowrap; text-shadow: 0 0 30px currentColor; }
.pt-world .pt-core { width: 130px; height: 130px; } .pt-world .pt-core b { font-size: 30px; } .pt-world .pt-core small { font-size: 14px; }
.pt-world .pt-node { width: 76px; height: 76px; }
.pt-world .pt-node .pt-ring { background: conic-gradient(var(--bc) calc(var(--k) * 360deg), rgba(255, 255, 255, .12) 0); }
.pt-world .pt-node.own { box-shadow: 0 0 18px color-mix(in srgb, var(--bc) 65%, transparent); }
.pt-world .pt-node.key { width: 108px; height: 108px; background: radial-gradient(circle, #2a1650, #120a24); }
.pt-world .pt-node.key .pt-ic { font-size: 44px; }
.pt-world .pt-node.key::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--bc) 70%, transparent); animation: pcSpin 12s linear infinite; }
.pt-world .pt-node.key.max { box-shadow: 0 0 0 4px #ffd56a, 0 0 40px rgba(255, 200, 80, .9); }
.pt-world .pt-nm { font-size: 13px; }
.pt-world.far .pt-nm, .pt-world.far .pt-rk { display: none; }
.pt-node.pt-dim { opacity: .25; filter: grayscale(.8); }
.pt-node.pt-hit { box-shadow: 0 0 0 4px #fff, 0 0 28px #fff !important; z-index: 5; }
.pt-view .pt-tip { z-index: 20; }
.pt-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 15; }
.pt-zoom button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(200, 160, 255, .5); background: rgba(20, 10, 40, .85); color: #fff; font: 900 18px/1 sans-serif; cursor: pointer; }
.pt-zoom button:hover { background: rgba(80, 40, 140, .9); }
.pt-hint { position: absolute; left: 12px; bottom: 10px; font-size: 11px; color: #b9a6dc; opacity: .7; pointer-events: none; }
.pt-bottom { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.pt-sum { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(200, 150, 255, .3); background: rgba(255, 255, 255, .03); max-height: 260px; overflow: auto; }
.pt-sum h4 { margin: 0 0 6px; } .pt-sum p { margin: 3px 0; font-size: 13px; } .pt-sum p.capped { color: #ffd56a; } .pt-sum p em { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 4px; background: #6a4a10; color: #ffe8a8; }
.ptd-ic { box-shadow: 0 0 0 2px var(--bc, #c79aff) !important; }
.ptd-key { font-style: normal; font-size: 10px; letter-spacing: .1em; padding: 2px 6px; border-radius: 4px; background: linear-gradient(90deg, #ffd56a, #ff9a3c); color: #2a1800; vertical-align: 2px; }
.pb-pips i.on { background: var(--bc, #c79aff) !important; }
@media (max-width: 700px) { .pt-top, .pt-bottom { grid-template-columns: 1fr; } .pt-blabel { font-size: 48px; } }
/* more name effects and frames (Locker) */
.nfx-mint { background: linear-gradient(90deg, #b8ffe0, #4affb0, #e8fff4, #4affb0); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: nfxShift 5s linear infinite; }
.nfx-sunset { background: linear-gradient(90deg, #ff6a3a, #ff3a7a, #ffb03a, #ff6a3a); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: nfxShift 6s linear infinite; }
.nfx-aurora { background: linear-gradient(90deg, #5affb0, #5ab8ff, #b05aff, #5affb0); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: nfxShift 7s linear infinite; }
.nfx-chrome { background: linear-gradient(180deg, #ffffff, #9aa4ae 45%, #e8eef2 55%, #6a747e); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
@keyframes nfxShift { to { background-position: 200% 0; } }
.msg.fr-oak > .av, .pill.fr-oak img, .pill.fr-oak .pill-av, .me-card.fr-oak .me-av { box-shadow: 0 0 0 3px #8a5a2e, 0 0 0 4px #3a2412 !important; }
.msg.fr-ruby > .av, .pill.fr-ruby img, .pill.fr-ruby .pill-av, .me-card.fr-ruby .me-av { box-shadow: 0 0 0 2px #ff2a4a, 0 0 12px rgba(255, 42, 74, .8) !important; }
.msg.fr-ice > .av, .pill.fr-ice img, .pill.fr-ice .pill-av, .me-card.fr-ice .me-av { box-shadow: 0 0 0 2px #c8f0ff, 0 0 12px rgba(160, 230, 255, .8) !important; }
.msg.fr-ivy > .av, .pill.fr-ivy img, .pill.fr-ivy .pill-av, .me-card.fr-ivy .me-av { box-shadow: 0 0 0 2px #3a8a3e, 0 0 0 4px #1a3a1c, 0 0 10px rgba(80, 200, 90, .5) !important; }
/* bulk grading: bigger 1 / Half / All / Remove buttons (easier to tap) */
.bg-quick { gap: 10px; margin-bottom: 14px; }
.bg-quick button { flex: 1 1 0; min-width: 76px; min-height: 48px; padding: 12px 20px; font-size: 17px; font-weight: 800; border-radius: 14px; border-width: 2px; }
.bg-quick button:hover { background: rgba(255, 255, 255, .08); }
.bg-quick button:active { transform: scale(.96); }
/* god pack showcase: every card from the god pack in one big pop-up */
.god-show { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: start center; padding: 16px; background: radial-gradient(circle at 50% 40%, rgba(120, 40, 160, .55), rgba(5, 2, 12, .9)); overflow: auto; }
.gs-box { position: relative; width: min(1000px, 100%); margin: auto 0; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; padding: 22px 20px 18px; border-radius: 22px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(40, 14, 60, .96), rgba(14, 6, 26, .97)); border: 2px solid transparent;
  background-clip: padding-box; box-shadow: 0 0 0 2px #ff9ad5, 0 0 40px rgba(255, 120, 220, .6), 0 0 90px rgba(140, 200, 255, .35); }
.gs-box::before { content: ""; position: absolute; inset: -2px; border-radius: 22px; padding: 3px; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), #ff5a5a, #ffb02e, #ffe05a, #5aff8a, #5ad8ff, #a06bff, #ff5ad8, #ff5a5a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: luxSpin 3s linear infinite; }
.gs-rays { position: absolute; left: 50%; top: 18%; width: 1400px; height: 1400px; transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 255, .12) 0deg 5deg, transparent 5deg 16deg); -webkit-mask: radial-gradient(circle, #000 10%, transparent 55%); mask: radial-gradient(circle, #000 10%, transparent 55%); animation: pcSpin 30s linear infinite; }
.gs-head, .gs-cards, .gs-box .row-btns { position: relative; z-index: 1; }
.gs-head, .gs-box .row-btns { flex-shrink: 0; }
.gs-head .gt-jp { display: block; font-weight: 900; letter-spacing: .3em; color: #ffd6f2; opacity: .8; }
.gs-head h2 { margin: 2px 0 4px; font: 900 clamp(34px, 6vw, 60px)/1 var(--display, sans-serif); letter-spacing: .06em;
  background: linear-gradient(90deg, #ff5a5a, #ffb02e, #ffe05a, #5aff8a, #5ad8ff, #a06bff, #ff5ad8); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pcSlide 3s linear infinite; filter: drop-shadow(0 0 14px rgba(255, 150, 230, .7)); }
.gs-head p { margin: 0; color: #f0e2ff; } .gs-head .gs-val { color: #ffe08a; font-size: 1.15em; } .gs-head small { display: block; margin-top: 4px; color: #c9b0ea; }
.gs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 18px 0; perspective: 900px; min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 4px; overscroll-behavior: contain; }
.gs-card { position: relative; border-radius: 12px; padding: 6px; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 2px rgba(255, 170, 230, .55), 0 0 22px rgba(255, 120, 220, .45); }
.gs-card img { width: 100%; display: block; border-radius: 8px; aspect-ratio: 63 / 88; object-fit: cover; }
.gs-card .fin-tag { bottom: 46px; }
.gs-card .gs-new { position: absolute; top: 10px; left: 10px; font-style: normal; font: 900 10px/1 sans-serif; padding: 3px 6px; border-radius: 6px; background: #ff3a5a; color: #fff; }
.gs-meta { display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: 6px 2px 0; font-size: 12px; }
.gs-meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; } .gs-meta span { color: #ffe08a; font-weight: 800; white-space: nowrap; }
.gs-card.fin-cosmic, .gs-card.fin-gold { box-shadow: 0 0 0 2px #ffe08a, 0 0 28px rgba(255, 200, 80, .7); }
@media (max-width: 600px) { .gs-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .gs-meta { flex-direction: column; align-items: flex-start; } }
