/* ═══════════════════════════════════════════════════
   MineFury Pokédex Store — Main Stylesheet
   For use with the Tebex Webstore Twig theme.
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Silkscreen:wght@400;700&family=Jersey+15&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --shell:        #dc0a2d;
  --shell-dark:   #9a0820;
  --shell-light:  #f04657;
  --shell-shadow: #5e0512;
  --screen:       #0c1205;
  --screen-light: #e8f1d3;
  --screen-grid:  #141f0c;
  --screen-line:  #0a1005;
  --screen-ink:   #c8d6a8;
  --led-blue:     #2b76d4;
  --led-blue-hi:  #c8dffb;
  --led-red:      #ff4d4d;
  --led-yellow:   #f5c518;
  --led-green:    #2da14a;
  --ink:          #c8d6a8;
  --paper:        #0c1205;
  --gold:         #f7c843;
  color-scheme:   dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  background:
    radial-gradient(1400px 700px at 50% 110%, #1a3260 0%, rgba(26,50,96,0) 60%),
    linear-gradient(180deg, #06081a 0%, #0e1340 50%, #1a2056 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Night scene ── */
.scene-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.scene-bg svg { width: 100%; height: 100%; display: block; }
.stage { position: relative; z-index: 1; }
.star { animation: starTwinkle 3s ease-in-out infinite; transform-origin: center; }
.star.s2 { animation-duration: 4.2s; animation-delay: -1.1s; }
.star.s3 { animation-duration: 2.6s; animation-delay: -2.3s; }
.star.s4 { animation-duration: 5s;   animation-delay: -0.7s; }
.star.s5 { animation-duration: 3.5s; animation-delay: -3.2s; }
@keyframes starTwinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.shooting-star { transform-origin: 0 0; animation: shootingStar 9s ease-in infinite; opacity: 0; }
@keyframes shootingStar {
  0% { opacity: 0; transform: translate(0, 0); }
  1% { opacity: 1; }
  8% { opacity: 1; }
  10%, 100% { opacity: 0; transform: translate(300px, 140px); }
}
.moon-glow { animation: moonPulse 6s ease-in-out infinite; transform-origin: center; }
@keyframes moonPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.85; } }
.firefly { animation: fireflyFloat 14s ease-in-out infinite; transform-origin: center; }
.firefly.f2 { animation-duration: 18s; animation-delay: -3s; }
.firefly.f3 { animation-duration: 12s; animation-delay: -7s; }
.firefly.f4 { animation-duration: 16s; animation-delay: -2s; }
@keyframes fireflyFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  25%  { transform: translate(140px, -80px); opacity: 1; }
  50%  { transform: translate(260px, 40px); opacity: 0.55; }
  75%  { transform: translate(80px, -130px); opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .star, .shooting-star, .moon-glow, .firefly { animation: none; }
}

/* ── Type helpers ── */
.pixel  { font-family: 'Press Start 2P', monospace; letter-spacing: 0.02em; }
.display{ font-family: 'Jersey 15', sans-serif; }
.silk   { font-family: 'Silkscreen', monospace; letter-spacing: 0.04em; }
.mono   { font-family: 'JetBrains Mono', monospace; }

.stage { max-width: 1320px; margin: 0 auto; padding: 28px 24px 80px; }

/* ── Pokédex device ── */
.dex {
  position: relative;
  background: linear-gradient(180deg, var(--shell-light) 0%, var(--shell) 30%, var(--shell-dark) 100%);
  border: 4px solid #000;
  border-radius: 24px 24px 24px 80px;
  padding: 28px 28px 24px;
  box-shadow:
    0 18px 0 var(--shell-shadow), 0 22px 0 #000,
    inset 0 -10px 0 rgba(0,0,0,0.18), inset 0 4px 0 rgba(255,255,255,0.18);
}
.dex .grille {
  display: none; position: absolute; left: 16px; bottom: 12px;
  width: 80px; height: 16px;
  background: repeating-linear-gradient(180deg, transparent 0 4px, rgba(0,0,0,0.55) 4px 6px);
  border: 2px solid #000; border-radius: 4px; pointer-events: none;
}
.dex .hinge {
  position: absolute; top: 18px; right: -8px; width: 16px; height: 56%;
  background: var(--shell-dark); border: 2px solid #000; border-radius: 4px;
  box-shadow: inset 2px 0 0 rgba(255,255,255,0.18);
}
.dex-top {
  display: grid; grid-template-columns: auto auto 1fr auto;
  align-items: center; gap: 18px; margin-bottom: 22px; padding-right: 16px;
}
.led-big {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0 6%, var(--led-blue-hi) 14%, var(--led-blue) 60%, #143b78 100%);
  border: 3px solid #000;
  box-shadow: 0 0 0 6px #ffffff, 0 0 0 9px #000, inset 0 2px 0 rgba(255,255,255,0.4);
}
.led-small-row { display: flex; flex-direction: column; gap: 4px; }
.led-small { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #000; }
.led-small.r { background: radial-gradient(circle at 40% 35%, #ff9999, var(--led-red), #8a0000); }
.led-small.y { background: radial-gradient(circle at 40% 35%, #fff0a0, var(--led-yellow), #8a6800); }
.led-small.g { background: radial-gradient(circle at 40% 35%, #90ff90, var(--led-green), #0a4a1e); }
.dex-title {
  font-family: 'Press Start 2P', monospace; font-size: 12px;
  color: #fff; text-shadow: 2px 2px 0 #000; line-height: 1.6;
}
.dex-title small {
  display: block; font-size: 11px; color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em; margin-top: 4px;
}
.dex-crumbs {
  text-align: right; font-family: 'Silkscreen', monospace;
  font-size: 11px; color: rgba(255,255,255,0.65); letter-spacing: 0.06em;
}
.dex-crumbs b { color: #fff; }

/* Trainer chip */
.trainer-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 2px 10px 2px 3px;
  font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,255,255,0.85);
}
.trainer-chip img { width: 20px; height: 20px; border-radius: 50%; image-rendering: pixelated; }
.trainer-chip .name { color: #fff; font-weight: bold; }
.trainer-chip .logout { color: #fbd9dd; cursor: pointer; text-decoration: underline; }

/* ── Pokédex screen ── */
.dex-screen {
  position: relative; border: 8px solid #000; border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 4px #2a2a2a, inset 0 0 0 6px #1a1a1a, 0 4px 16px rgba(0,0,0,0.6);
}
.scr-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 14px; background: #1a1a1a; border-bottom: 2px solid #000;
  font-family: 'Silkscreen', monospace; font-size: 12px; color: #88bb66;
  letter-spacing: 0.06em;
}
.scr-bar .left, .scr-bar .right { display: flex; align-items: center; gap: 8px; }
.scr-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--led-green); border: 1px solid #000;
  animation: ledPulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--led-green);
}
@keyframes ledPulse { 0%,100%{opacity:0.7;} 50%{opacity:1;} }
.ip-copy {
  cursor: pointer; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 4px;
  padding: 1px 6px; transition: background 0.15s;
}
.ip-copy:hover { background: rgba(255,255,255,0.15); }
.ip-copy.copied { background: rgba(45,161,74,0.3); border-color: var(--led-green); }
.cart-icon-btn {
  background: var(--shell); border: 2px solid #000; border-radius: 4px;
  color: #fff; font-family: 'Silkscreen', monospace; font-size: 12px;
  padding: 2px 8px; cursor: pointer; transition: background 0.15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.cart-icon-btn:hover { background: var(--shell-light); }
.badge {
  display: inline-block; background: #fff; color: var(--shell);
  font-size: 11px; font-weight: bold; border-radius: 50%;
  width: 14px; height: 14px; line-height: 14px; text-align: center;
  vertical-align: middle; margin-left: 3px;
}
.clock { font-family: 'JetBrains Mono', monospace; }

/* Page content area */
.scr-panel {
  background: var(--screen);
  background-image:
    repeating-linear-gradient(0deg,   rgba(0,0,0,0) 0, rgba(0,0,0,0) 7px, rgba(255,255,255,0.025) 7px, rgba(255,255,255,0.025) 8px),
    repeating-linear-gradient(90deg,  rgba(0,0,0,0) 0, rgba(0,0,0,0) 7px, rgba(255,255,255,0.025) 7px, rgba(255,255,255,0.025) 8px);
  min-height: 500px;
}
.scr-panel.pk-clean {
  background: var(--screen);
  background-image: none;
}

/* ── D-Pad controls ── */
.dex-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px 8px; gap: 16px;
}
.dpad {
  position: relative; width: 80px; height: 80px;
  background: transparent; border: none;
}
/* Vertical arm */
.dpad::before {
  content: ""; position: absolute;
  left: 26px; top: 0; width: 28px; height: 80px;
  background: #2a0a0a;
  box-shadow: 0 0 0 2px #000;
  border-radius: 3px;
  z-index: 1;
}
/* Horizontal arm — z-index 0 so vertical sits on top at center */
.dpad::after {
  content: ""; position: absolute;
  top: 26px; left: 0; width: 80px; height: 28px;
  background: #2a0a0a;
  box-shadow: 0 0 0 2px #000;
  border-radius: 3px;
  z-index: 0;
}
.dpad-btn {
  position: absolute; background: transparent; border: none; cursor: pointer;
  z-index: 3; padding: 0; transition: background 0.08s;
}
.dpad-btn:hover { background: rgba(255,255,255,0.12); border-radius: 2px; }
.dpad-btn.up    { top: 2px;  left: 28px; width: 24px; height: 24px; }
.dpad-btn.down  { bottom: 2px; left: 28px; width: 24px; height: 24px; }
.dpad-btn.left  { top: 28px; left: 2px;  width: 24px; height: 24px; }
.dpad-btn.right { top: 28px; right: 2px; width: 24px; height: 24px; }
.dpad-btn.center { top: 30px; left: 30px; width: 20px; height: 20px; z-index: 4; }
.ctrl-meta {
  text-align: center; color: #fff; font-family: 'Silkscreen', monospace;
  font-size: 12px; text-shadow: 1px 1px 0 rgba(0,0,0,0.4); letter-spacing: 0.08em;
}
.ab-pair { display: flex; gap: 12px; align-items: center; }
.ab {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid #000;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace; font-size: 14px; color: #fff;
  box-shadow: inset 2px 3px 0 rgba(255,255,255,0.25), 0 3px 0 #000;
  cursor: pointer;
}
.ab.a { background: var(--gold); color: #2a0306; }
.ab.b { background: #1a1a1a; }

/* ── Shell theme variants ── */
.theme-blue  { --shell:#1c5fb8; --shell-dark:#0d3a78; --shell-light:#4a86d4; --shell-shadow:#082146; }
.theme-gold  { --shell:#d4a017; --shell-dark:#8e6a0a; --shell-light:#f0c441; --shell-shadow:#4a3705; }
.theme-green { --shell:#2d8a3e; --shell-dark:#1a5226; --shell-light:#4ab259; --shell-shadow:#0c2c12; }

/* ── DS-style tabs ── */
.ds-menu { position: relative; }
.ds-menu-statusbar {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px; background: #2a2a2a; border-bottom: 2px solid #000;
  font-family: 'Silkscreen', monospace; font-size: 12px; color: #a0a080;
  letter-spacing: 0.06em;
}
.ds-menu-statusbar .indicators { display: flex; gap: 8px; flex: 1; justify-content: center; }
.ds-menu-statusbar .indicators span { opacity: 0.7; }
.ds-menu-statusbar .battery { opacity: 0.5; }
.ds-menu-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; background: #2a2a2a; border-top: 2px solid #000;
  font-family: 'Silkscreen', monospace; font-size: 12px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}
.x-btn { color: rgba(255,200,200,0.7); cursor: pointer; }
.ds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }

a.ds-tab, a.ds-tab:visited { text-decoration: none; color: inherit; }
.ds-tab {
  position: relative; border-radius: 0; border: 3px solid #000;
  height: 96px; padding: 0 14px 0 90px; cursor: pointer;
  display: flex; align-items: center; justify-content: flex-start; text-decoration: none;
  overflow: hidden; transition: filter 0.15s, transform 0.1s;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  animation: tabCascade 0.35s both; animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes tabCascade {
  from { opacity: 0; transform: translateX(-12px) brightness(1.4); }
  to   { opacity: 1; transform: translateX(0) brightness(1); }
}
.ds-tab::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,0.18); z-index: 0;
  transition: opacity 0.15s; opacity: 0;
}
/* Default: dark tile */
.ds-tab {
  background: #111 !important;
  border-color: rgba(255,255,255,0.08) !important;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
/* Hover/active: reveal type color */
.ds-tab:hover, .ds-tab.active, .ds-tab.is-focused {
  background: var(--pk-bg, #333) !important;
  border-color: rgba(255,255,255,0.2) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), inset 0 0 16px rgba(255,255,255,0.06);
}
.ds-tab:hover::before, .ds-tab.active::before { opacity: 1; }
.ds-tab:active { transform: scale(0.97); }
.ds-tab.is-launching { animation: tabLaunch 0.18s ease-out both; }
@keyframes tabLaunch {
  0%  { background: #111 !important; transform: scale(1); }
  40% { background: var(--pk-bg) !important; transform: scale(0.97); }
  100%{ background: var(--pk-bg) !important; transform: scale(1); }
}
.ds-tab.is-focused { outline: 3px solid rgba(255,255,255,0.5); outline-offset: -3px; }

/* Icon: type color when dark, white on hover */
.ds-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.12); border-radius: 3px;
  background: rgba(255,255,255,0.04); z-index: 1;
  color: var(--pk-color, #aaa);
  transition: color 0.15s;
}
.ds-tab:hover .ds-icon, .ds-tab.active .ds-icon { color: #fff; border-color: rgba(255,255,255,0.3); }
.ds-icon svg { width: 36px; height: 36px; color: inherit;
  filter: drop-shadow(0 0 5px currentColor); }
.ds-label {
  font-family: 'Press Start 2P', monospace; font-size: 15px; color: #fff;
  text-shadow: 2px 2px 0 #000, 0 0 8px currentColor; position: relative; z-index: 1;
}
.ds-meta {
  position: absolute; bottom: 8px; left: 90px;
  font-family: 'Silkscreen', monospace; font-size: 11px;
  color: rgba(255,255,255,0.6); letter-spacing: 0.06em; z-index: 1;
}
.ds-id {
  position: absolute; top: 6px; right: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: rgba(255,255,255,0.4); z-index: 1;
}
.ds-tab.full-width { grid-column: span 2; }

/* Type colors */
.t-red     { --pk:#dc2626; --pk-deep:#991b1b; --pk-color:#f87171; --pk-bg:linear-gradient(135deg,#dc2626,#7f1d1d); background:linear-gradient(135deg,#dc2626,#7f1d1d); color:#fff; }
.t-orange  { --pk:#ea580c; --pk-deep:#9a3412; --pk-color:#fb923c; --pk-bg:linear-gradient(135deg,#ea580c,#7c2d12); background:linear-gradient(135deg,#ea580c,#7c2d12); color:#fff; }
.t-yellow  { --pk:#ca8a04; --pk-deep:#713f12; --pk-color:#facc15; --pk-bg:linear-gradient(135deg,#ca8a04,#78350f); background:linear-gradient(135deg,#ca8a04,#78350f); color:#fff; }
.t-green   { --pk:#16a34a; --pk-deep:#14532d; --pk-color:#4ade80; --pk-bg:linear-gradient(135deg,#16a34a,#052e16); background:linear-gradient(135deg,#16a34a,#052e16); color:#fff; }
.t-cyan    { --pk:#0891b2; --pk-deep:#164e63; --pk-color:#22d3ee; --pk-bg:linear-gradient(135deg,#0891b2,#083344); background:linear-gradient(135deg,#0891b2,#083344); color:#fff; }
.t-blue    { --pk:#2563eb; --pk-deep:#1e3a8a; --pk-color:#60a5fa; --pk-bg:linear-gradient(135deg,#2563eb,#1e3a8a); background:linear-gradient(135deg,#2563eb,#1e3a8a); color:#fff; }
.t-pink    { --pk:#db2777; --pk-deep:#831843; --pk-color:#f472b6; --pk-bg:linear-gradient(135deg,#db2777,#500724); background:linear-gradient(135deg,#db2777,#500724); color:#fff; }
.t-purple  { --pk:#9333ea; --pk-deep:#581c87; --pk-color:#c084fc; --pk-bg:linear-gradient(135deg,#9333ea,#3b0764); background:linear-gradient(135deg,#9333ea,#3b0764); color:#fff; }
.t-dark    { --pk:#374151; --pk-deep:#111827; --pk-color:#9ca3af; --pk-bg:linear-gradient(135deg,#374151,#030712); background:linear-gradient(135deg,#374151,#030712); color:#fff; }

/* ── Back bar ── */
.pk-back-bar {
  display: flex; gap: 8px; padding: 8px 12px;
  background: rgba(0,0,0,0.1); border-bottom: 2px solid rgba(0,0,0,0.15);
}
.pk-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--shell); color: #fff; border: 2px solid #000;
  padding: 6px 12px; font-family: 'Press Start 2P', monospace; font-size: 11px;
  cursor: pointer; border-radius: 3px;
  box-shadow: 0 2px 0 var(--shell-dark), 0 3px 0 #000;
  transition: filter 0.12s, transform 0.1s;
}
.pk-back-btn svg { width: 14px; height: 14px; }
.pk-back-btn:hover { filter: brightness(1.2); }
.pk-back-btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--shell-dark); }

/* ── Homepage ── */
.pk-hero {
  background: linear-gradient(135deg, var(--shell) 0%, var(--shell-dark) 100%);
  padding: 20px 20px 14px; border-bottom: 3px solid #000;
}
.pk-hero h1 {
  font-family: 'Press Start 2P', monospace; font-size: 14px;
  color: #fff; text-shadow: 3px 3px 0 #000; line-height: 1.7;
  margin: 0 0 14px;
}
.pk-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.25);
  border-radius: 4px; padding: 6px 12px; transition: background 0.15s, border-color 0.15s;
}
.pk-search.is-focused { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }
.pk-search .mag { font-size: 18px; color: rgba(255,255,255,0.7); }
.pk-search input {
  flex: 1; background: none; border: none; outline: none;
  font-family: 'VT323', monospace; font-size: 18px; color: #fff;
}
.pk-search input::placeholder { color: rgba(255,255,255,0.45); }
.pk-search-clear {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 14px; padding: 0;
}
.pk-search-results {
  background: #fff; border: 2px solid #000; border-top: none;
  max-height: 280px; overflow-y: auto; position: relative; z-index: 20;
}
.pk-search-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; width: 100%; background: none; border: none;
  border-bottom: 1px solid #f0ede6; cursor: pointer; text-align: left;
  transition: background 0.1s;
}
.pk-search-row:hover { background: rgba(200,214,168,0.08); }
.pk-search-kind {
  font-family: 'Silkscreen', monospace; font-size: 11px;
  padding: 2px 6px; border-radius: 3px; background: #e0ddd5; color: #5a5248;
}
.pk-search-kind.k-rank    { background: #fdecd0; color: #8a4a10; }
.pk-search-kind.k-category{ background: #dbeafe; color: #1d4ed8; }
.pk-search-kind.k-external{ background: #d1fae5; color: #065f46; }
.pk-search-kind.k-page    { background: #ede9fe; color: #5b21b6; }
.pk-search-kind.k-term    { background: #fce7f3; color: #9d174d; }
.pk-search-label { font-family: 'Press Start 2P', monospace; font-size: 12px; flex: 1; color: var(--screen-ink); }
.pk-search-sub { font-family: 'VT323', monospace; font-size: 15px; color: #6a7a4a; }
.pk-search-arrow { color: var(--shell); font-size: 14px; }
.pk-search-empty { padding: 12px 14px; font-family: 'VT323', monospace; font-size: 16px; color: #8a7a5a; }
.pk-page-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 2px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.5);
}
.pk-page-head h2 { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--screen-ink); margin: 0; }
.pk-page-sub { font-family: 'Silkscreen', monospace; font-size: 11px; color: #6a7a4a; letter-spacing: 0.06em; }
.pk-chip {
  display: inline-block; font-family: 'Silkscreen', monospace; font-size: 11px;
  padding: 3px 8px; border-radius: 3px; background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.12); color: var(--screen-ink);
}

/* ── Rank comparison table ── */
.rank-compare-wrap { padding: 14px; overflow-x: auto; }
.rc-title {
  font-family: 'Press Start 2P', monospace; font-size: 12px;
  color: var(--screen-ink); margin: 0 0 4px;
}
.rc-sub { font-family: 'Silkscreen', monospace; font-size: 11px; color: #6a7a4a; margin-bottom: 14px; }
.rc-table {
  width: 100%; border-collapse: collapse; min-width: 700px;
  border: 2px solid rgba(0,0,0,0.15);
}
.rc-table th, .rc-table td {
  border: 1px solid rgba(0,0,0,0.1); padding: 6px 8px;
  font-family: 'VT323', monospace; font-size: 16px; text-align: center;
  vertical-align: middle;
}
.rc-table th:first-child, .rc-table td:first-child { text-align: left; min-width: 160px; }
.rc-rank-head { vertical-align: top; padding: 8px 6px; }
.rc-rank-head.col-hover { background: rgba(0,0,0,0.04); }
.rc-table td.col-hover { background: rgba(0,0,0,0.03); }
.rc-rank-card { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rc-popular-tag {
  font-family: 'Silkscreen', monospace; font-size: 11px; background: var(--shell);
  color: #fff; padding: 2px 5px; border-radius: 2px; white-space: nowrap;
}
.rc-rank-art {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; border: 2px solid #000;
  box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}
.rc-rank-name { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--screen-ink); }
.rc-rank-price { font-family: 'Jersey 15', sans-serif; font-size: 20px; color: var(--screen-ink); }
.rc-rank-price.popular { color: var(--shell); font-size: 22px; }
.rc-buy {
  background: #1e2d12; color: #e8f1d3;
  border: 2px solid #000; padding: 4px 8px;
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  cursor: pointer; border-radius: 2px; transition: background 0.12s;
  white-space: nowrap;
}
.rc-buy:hover { background: var(--shell); }
.rc-buy.in-cart { background: var(--led-green); }
.rc-section td {
  background: var(--shell); color: #fff;
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  letter-spacing: 0.06em; padding: 6px 10px;
}
.rc-row-name { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.rc-row-name .info {
  width: 16px; height: 16px; border-radius: 50%; background: #ddd;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  cursor: help; color: #666;
}
.rc-yes { color: var(--led-green); font-weight: bold; font-size: 18px; }
.rc-no  { color: var(--led-red);   opacity: 0.7;    font-size: 18px; }
.rc-text { color: var(--screen-ink); }
.rc-text.upgrade { color: var(--shell); font-weight: bold; }
.rc-view-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--shell); color: #fff; border: 2px solid #000;
  padding: 6px 12px; font-family: 'Press Start 2P', monospace; font-size: 11px;
  cursor: pointer; border-radius: 3px;
  box-shadow: 0 2px 0 var(--shell-dark), 0 3px 0 #000;
  transition: filter 0.12s;
}
.rc-view-toggle svg { width: 14px; height: 14px; }
.rc-view-toggle:hover { filter: brightness(1.2); }

/* Upgrade table specifics */
.upg-fromto { display: flex; align-items: center; gap: 4px; font-family: 'Silkscreen', monospace; font-size: 11px; }
.upg-ft-from { color: rgba(255,255,255,0.7); }
.upg-ft-arrow { color: #fff; }
.upg-ft-to { color: #fff; font-weight: bold; }
.upg-price-stack-h { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.upg-price-orig-h { font-family: 'VT323', monospace; font-size: 13px; color: rgba(0,0,0,0.4); text-decoration: line-through; }
.upg-save-h { font-family: 'Silkscreen', monospace; font-size: 11px; color: var(--led-green); }

/* ── Rank detail (package.twig) ── */
.p4-hero {
  position: relative; height: 110px; padding: 0 22px 0 110px;
  display: flex; align-items: center; gap: 16px; cursor: default;
}
.p4-hero-meta { font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,255,255,0.7); }
.p4-pop-pill {
  background: var(--gold); color: #2a0306; border-radius: 3px;
  padding: 1px 6px; font-family: 'Silkscreen', monospace; font-size: 11px;
}
.p4-hero-name { font-family: 'Press Start 2P', monospace; font-size: 18px; color: #fff; text-shadow: 2px 2px 0 #000; }
.p4-hero-price { font-family: 'Jersey 15', sans-serif; font-size: 28px; color: var(--gold); margin-left: auto; }
.p4-hero-price span { font-size: 14px; opacity: 0.7; }
.p4-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.p4-perk-section { border: 1px solid rgba(0,0,0,0.1); padding: 10px 12px; }
.p4-perk-head {
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
  color: #fff; padding: 4px 8px; margin: -10px -12px 8px;
}
.p4-perk-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.p4-perk-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.p4-perk-list li { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.p4-perk-label { color: var(--screen-ink); }
.p4-perk-val { font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.p4-perk-val.yes { color: var(--led-green); }
.p4-perk-val.no  { color: rgba(0,0,0,0.25); }
.p4-perk-val.num { color: var(--shell); font-weight: bold; }
.p4-buy {
  background: rgba(255,255,255,0.7); border-top: 2px solid rgba(0,0,0,0.1);
  padding: 14px 16px;
}
.p4-buy-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.p4-buy-field label { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #888; display: block; margin-bottom: 6px; }
.p4-total { font-family: 'Jersey 15', sans-serif; font-size: 32px; color: var(--screen-ink); }
.p4-buy-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.p4-purchase {
  flex: 1; padding: 12px 18px; border: 3px solid #000;
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  color: #fff; cursor: pointer; border-radius: 2px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.5);
  transition: filter 0.12s, transform 0.1s; background: var(--pk, #ea580c);
}
.p4-purchase:hover { filter: brightness(1.2); }
.p4-purchase:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,0.5); }
.p4-back {
  padding: 12px 14px; border: 2px solid #000; background: #ddd;
  font-family: 'Press Start 2P', monospace; font-size: 11px; cursor: pointer;
}

/* ── Checkout / basket styles ── */
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; padding: 14px; }
.checkout-col { display: flex; flex-direction: column; gap: 12px; }
.ck-card {
  background: #fff; border-radius: 8px; border: 2px solid rgba(0,0,0,0.1);
  overflow: hidden;
}
.ck-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(0,0,0,0.03); border-bottom: 1px solid rgba(0,0,0,0.08);
  font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--screen-ink);
}
.ck-step-num {
  background: var(--shell); color: #fff; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: bold; padding: 2px 6px; border-radius: 3px;
}
.ck-card-head h3 { margin: 0; font-size: 11px; }
.ck-clear {
  margin-left: auto; background: none; border: none;
  font-family: 'Silkscreen', monospace; font-size: 11px; color: var(--shell);
  cursor: pointer; text-decoration: underline;
}
.ck-items { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ck-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px; padding: 8px 10px;
}
.ck-item-art {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; border: 2px solid #000; flex-shrink: 0;
}
.ck-item-body { flex: 1; }
.ck-item-name { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--screen-ink); margin-bottom: 3px; }
.ck-item-sub { font-family: 'Silkscreen', monospace; font-size: 11px; color: #6a7a4a; }
.ck-item-kind {
  font-family: 'Silkscreen', monospace; font-size: 11px;
  background: #e8f1d3; color: #3a5a1a; padding: 1px 5px; border-radius: 2px;
}
.ck-item-price { font-family: 'Jersey 15', sans-serif; font-size: 22px; color: var(--screen-ink); }
.ck-item-remove {
  background: none; border: none; color: #c44; cursor: pointer;
  font-size: 14px; padding: 4px; border-radius: 3px;
}
.ck-item-remove:hover { background: rgba(200,40,40,0.1); }
.ck-trainer { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.ck-trainer img { width: 48px; height: 48px; image-rendering: pixelated; border: 2px solid #000; }
.ck-trainer-label { font-family: 'Silkscreen', monospace; font-size: 11px; color: #6a7a4a; margin-bottom: 2px; }
.ck-trainer-name { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--screen-ink); }
.ck-trainer-sub { font-family: 'VT323', monospace; font-size: 15px; color: #8a7a5a; }
.ck-link { color: var(--shell); cursor: pointer; text-decoration: underline; }
.ck-field { padding: 6px 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.ck-field label { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #888; }
.ck-field input, .ck-field select {
  border: 2px solid rgba(0,0,0,0.15); border-radius: 4px; padding: 8px 10px;
  font-family: 'VT323', monospace; font-size: 18px; color: var(--screen-ink);
  background: #fafaf5; outline: none; width: 100%;
}
.ck-field input:focus { border-color: var(--shell); }
.ck-field.full { grid-column: span 2; }
.ck-pay-grid { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.ck-pay {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border: 2px solid rgba(0,0,0,0.1); border-radius: 6px; cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.ck-pay.on { border-color: var(--shell); background: rgba(220,10,45,0.04); }
.ck-pay-icon {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; font-weight: bold;
}
.ck-pay-body { flex: 1; }
.ck-pay-name { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--screen-ink); }
.ck-pay-sub { font-family: 'Silkscreen', monospace; font-size: 11px; color: #888; }
.ck-pay-radio span {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #ccc; transition: border-color 0.12s;
}
.ck-pay-radio span.on { border-color: var(--shell); box-shadow: inset 0 0 0 4px var(--shell); }
.ck-redirect-note {
  margin: 8px 14px; padding: 8px 12px;
  background: rgba(0,0,0,0.04); border-radius: 4px;
  font-family: 'VT323', monospace; font-size: 16px; color: #888;
}
.ck-card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0 8px 8px; }
.ck-summary-card .ck-summary-rows { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.ck-sum-row { display: flex; justify-content: space-between; font-family: 'VT323', monospace; font-size: 18px; }
.ck-sum-row.promo { color: var(--led-green); }
.ck-sum-row.muted { color: #888; }
.ck-sum-row.total { font-family: 'Press Start 2P', monospace; font-size: 14px; color: var(--screen-ink); }
.ck-sum-row.total small { font-size: 12px; color: #888; }
.ck-sum-divider { border-top: 2px solid rgba(0,0,0,0.1); margin: 4px 0; }
.ck-promo { padding: 8px 14px; border-top: 1px solid rgba(0,0,0,0.08); }
.ck-promo-label { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #888; margin-bottom: 6px; }
.ck-promo-input { display: flex; gap: 6px; }
.ck-promo-input input {
  flex: 1; border: 2px solid rgba(0,0,0,0.15); border-radius: 4px;
  padding: 6px 10px; font-family: 'JetBrains Mono', monospace; font-size: 14px;
  text-transform: uppercase; background: #fafaf5; outline: none;
}
.ck-promo-input button {
  background: #1e2d12; color: #e8f1d3; border: 2px solid #000;
  padding: 6px 12px; font-family: 'Press Start 2P', monospace; font-size: 11px;
  cursor: pointer; border-radius: 3px;
}
.ck-promo-error { font-family: 'Silkscreen', monospace; font-size: 11px; color: var(--shell); margin-top: 4px; }
.ck-promo-ok { font-family: 'Silkscreen', monospace; font-size: 11px; color: var(--led-green); margin-top: 4px; }
.ck-promo-hint { font-family: 'Silkscreen', monospace; font-size: 11px; color: #aaa; margin-top: 4px; }
.pix-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #2a3d1a; color: #e8f1d3; border: 2px solid rgba(200,214,168,0.25);
  padding: 10px 18px; font-family: 'Press Start 2P', monospace; font-size: 11px;
  cursor: pointer; border-radius: 3px; box-shadow: 0 3px 0 rgba(0,0,0,0.4);
  transition: filter 0.12s, transform 0.1s; text-decoration: none;
}
.pix-btn:hover { filter: brightness(1.25); }
.pix-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.4); }
.pix-btn.gold { background: var(--gold); color: #2a0306; border-color: rgba(0,0,0,0.2); }
.pix-btn.ghost { background: rgba(255,255,255,0.06); color: var(--screen-ink); border-color: rgba(200,214,168,0.15); }
.ck-place-order { width: calc(100% - 28px); margin: 10px 14px; font-size: 12px; }
.ck-trust-row {
  display: flex; justify-content: center; gap: 10px;
  padding: 8px 14px; font-family: 'Silkscreen', monospace; font-size: 11px; color: #888;
}
.ck-help-card .ck-help-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ck-help-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--shell); color: #fff; font-family: 'Press Start 2P', monospace;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #000;
}
.ck-help-title { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--screen-ink); margin-bottom: 3px; }
.ck-help-sub { font-family: 'VT323', monospace; font-size: 15px; color: #6a7a4a; }

.cart-empty { display: flex; flex-direction: column; align-items: center; padding: 40px 20px; gap: 12px; }
.cart-empty-art { color: #aaa; }
.cart-empty-art svg { width: 64px; height: 64px; }
.cart-empty h3 { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--screen-ink); margin: 0; }
.cart-empty-sub { font-family: 'VT323', monospace; font-size: 18px; color: #888; text-align: center; }

/* Checkout success / error / processing */
.checkout-success, .checkout-error, .checkout-processing {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 24px; gap: 12px; text-align: center;
}
.cs-icon, .ce-icon { width: 80px; height: 80px; }
.cs-icon svg, .ce-icon svg { width: 100%; height: 100%; }
.cs-icon svg circle { stroke: var(--led-green); fill: rgba(45,161,74,0.1); }
.cs-icon svg polyline { stroke: var(--led-green); }
.ce-icon svg circle { stroke: var(--shell); fill: rgba(220,10,45,0.1); }
.ce-icon svg line { stroke: var(--shell); }
.checkout-success h2, .checkout-error h2, .checkout-processing h2 {
  font-family: 'Press Start 2P', monospace; font-size: 14px; color: var(--screen-ink); margin: 0;
}
.cs-sub { font-family: 'VT323', monospace; font-size: 18px; color: #6a7a4a; }
.cs-receipt {
  background: #fff; border: 2px solid rgba(0,0,0,0.1); border-radius: 8px;
  padding: 16px; width: 100%; max-width: 480px; text-align: left;
}
.cs-receipt-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.cs-receipt-label { font-family: 'Silkscreen', monospace; font-size: 11px; color: #888; }
.cs-receipt-value { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: bold; color: var(--screen-ink); }
.cs-total { color: var(--shell) !important; font-size: 18px !important; }
.cs-next { background: rgba(0,0,0,0.04); border-radius: 6px; padding: 10px 12px; margin-top: 10px; }
.cs-next-title { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #888; margin-bottom: 8px; }
.cs-next ol { padding-left: 20px; margin: 0; font-family: 'VT323', monospace; font-size: 16px; color: var(--screen-ink); line-height: 1.8; }
.cs-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cp-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.1); border-top-color: var(--shell);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cp-dots { display: flex; gap: 8px; }
.cp-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--shell); animation: dotPulse 1.2s ease-in-out infinite; }
.cp-dots span:nth-child(2) { animation-delay: 0.2s; }
.cp-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse { 0%,80%,100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

/* ── Fury Coins ── */
.fc-hero {
  display: flex; align-items: center; gap: 16px;
  margin: 0 14px 14px; padding: 18px 20px 18px 88px;
  position: relative; border-radius: 10px; min-height: 80px;
  background: linear-gradient(135deg, #431407, #7c2d12, #431407);
  border: 1px solid rgba(251,146,60,0.4);
  box-shadow: 0 0 24px rgba(234,88,12,0.15);
}
.fc-hero-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 40px; width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3); border: 2px solid rgba(251,146,60,0.35); border-radius: 6px;
}
.fc-hero-title { font-family: 'Press Start 2P', monospace; font-size: 18px; color: #fff6e8; margin-bottom: 8px; text-shadow: 2px 2px 0 #000, 0 0 12px rgba(255,120,20,0.4); }
.fc-hero-desc { font-family: 'VT323', monospace; font-size: 17px; color: rgba(255,220,180,0.8); line-height: 1.5; }
.fc-list { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.fc-item {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(20,8,2,0.95), rgba(12,5,2,0.98));
  border: 1px solid rgba(255,130,30,0.2); border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s; overflow: hidden;
}
.fc-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #ff922b, #ff5e00); border-radius: 10px 0 0 10px;
}
.fc-item:hover { border-color: rgba(255,130,30,0.5); box-shadow: 0 0 20px rgba(234,88,12,0.15); transform: translateY(-1px); }
.fc-item-sale { border-color: rgba(255,200,50,0.35); }
.fc-item-sale::before { background: linear-gradient(180deg, #facc15, #f59e0b); }
.fc-sale-badge {
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; font-family: 'Silkscreen', monospace; font-size: 11px;
  padding: 3px 8px; border-radius: 4px; letter-spacing: 0.06em;
}
.fc-item-img {
  width: 64px; height: 64px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,100,0,0.08); border: 1px solid rgba(255,130,30,0.2);
  border-radius: 8px; overflow: hidden;
}
.fc-item-img img { width: 100%; height: 100%; object-fit: contain; }
.fc-item-body { flex: 1; min-width: 0; }
.fc-item-name { font-family: 'Press Start 2P', monospace; font-size: 13px; color: #fff6e8; margin-bottom: 6px; line-height: 1.5; text-shadow: 1px 1px 0 rgba(0,0,0,0.5); }
.fc-item-sub { font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,160,80,0.5); letter-spacing: 0.06em; }
.fc-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.fc-item-price { text-align: right; }
.fc-btn {
  padding: 10px 18px; border: 0; border-radius: 8px;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff; font-family: 'Press Start 2P', monospace; font-size: 11px;
  cursor: pointer; letter-spacing: 0.04em; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(234,88,12,0.35); transition: filter 0.15s, transform 0.1s;
}
.fc-btn:hover { filter: brightness(1.15); transform: scale(1.02); }
.fc-btn:active { transform: scale(0.97); }
@media (max-width: 600px) {
  .fc-item { flex-wrap: wrap; }
  .fc-item-right { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── Modpacks ── */
.mp-hero {
  margin: 0 14px 4px; border-radius: 8px;
  background: linear-gradient(135deg, #1e3a5f, #1e3460, #0c1a35);
  border: 1px solid rgba(59,130,246,0.4); padding: 18px 22px 18px 90px;
  position: relative; min-height: 80px; display: flex; flex-direction: column; justify-content: center;
}
.mp-hero-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #93c5fd; text-shadow: 0 0 12px currentColor, 2px 2px 0 #000;
  border: 2px solid rgba(147,197,253,0.3); border-radius: 4px; background: rgba(0,0,0,0.25);
}
.mp-hero-sup { font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.08em; margin-bottom: 8px; }
.mp-hero-title { font-family: 'Press Start 2P', monospace; font-size: 16px; color: #fff6e8; margin-bottom: 8px; text-shadow: 2px 2px 0 #000; }
.mp-hero-desc { font-family: 'VT323', monospace; font-size: 16px; color: rgba(200,220,255,0.75); }
.mp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 14px 0; }
.mp-tab {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 10px; padding: 0 16px 0 14px;
  border: 2px solid rgba(255,255,255,0.1); border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  background: #111; cursor: pointer; color: rgba(255,255,255,0.45);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  height: 64px; animation: tabCascade 0.35s both; animation-delay: calc(var(--i, 0) * 50ms); text-align: left;
}
.mp-tab:hover { color: rgba(255,255,255,0.85); }
.mp-tab:active { transform: scale(0.97); }
.mp-tab-glyph { font-size: 20px; font-family: monospace; color: inherit; line-height: 1; flex-shrink: 0; }
.mp-tab-info { display: flex; flex-direction: column; gap: 4px; }
.mp-tab-label { font-family: 'Press Start 2P', monospace; font-size: 12px; letter-spacing: 0.04em; color: inherit; line-height: 1; }
.mp-tab-sub { font-family: 'Silkscreen', monospace; font-size: 11px; letter-spacing: 0.06em; color: inherit; opacity: 0.6; line-height: 1; }
.mp-tab.t-orange.active, .mp-tab.t-orange:hover { background: #7c2d12; border-color: #ea580c; color: #fdba74; }
.mp-tab.t-green.active,  .mp-tab.t-green:hover  { background: #14532d; border-color: #16a34a; color: #86efac; }
.mp-tab.t-pink.active,   .mp-tab.t-pink:hover   { background: #831843; border-color: #db2777; color: #f9a8d4; }
.mp-tab.t-orange.active .mp-tab-glyph { color: #fb923c; }
.mp-tab.t-green.active .mp-tab-glyph  { color: #4ade80; }
.mp-tab.t-pink.active .mp-tab-glyph   { color: #f472b6; }
.mp-content { padding: 14px; }
.mp-intro {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; margin-bottom: 12px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
}
.mp-intro-glyph {
  font-size: 24px; width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid; border-radius: 4px; background: rgba(0,0,0,0.25);
}
.mp-intro-body { flex: 1; }
.mp-intro-name { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #fff6e8; margin-bottom: 5px; }
.mp-intro-text { font-family: 'VT323', monospace; font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.mp-intro-btn {
  padding: 9px 14px; border: 2px solid; border-radius: 4px;
  font-family: 'Press Start 2P', monospace; font-size: 11px; color: #fff;
  text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: filter 0.15s;
}
.mp-intro-btn:hover { filter: brightness(1.2); }
.mp-steps { display: flex; flex-direction: column; gap: 10px; }
.mp-step { display: flex; gap: 14px; padding: 12px; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; }
.mp-step-num {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace; font-size: 11px; color: #fff;
  flex-shrink: 0; margin-top: 2px;
}
.mp-step-body { flex: 1; }
.mp-step-title { font-family: 'Press Start 2P', monospace; font-size: 12px; color: #fff6e8; margin-bottom: 6px; line-height: 1.6; }
.mp-step-desc { font-family: 'VT323', monospace; font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.mp-step-cta {
  display: inline-block; margin-top: 8px; padding: 7px 12px;
  border: 2px solid rgba(0,0,0,0.2); border-radius: 3px; color: #fff;
  font-family: 'Press Start 2P', monospace; font-size: 11px; text-decoration: none; transition: filter 0.12s;
}
.mp-step-cta:hover { filter: brightness(1.2); }
.mp-pack-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mp-pack {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 160px; padding: 10px 12px;
  background: var(--pk-bg, #222); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; text-decoration: none; color: #fff; transition: filter 0.12s;
}
.mp-pack:hover { filter: brightness(1.15); }
.mp-pack-icon { font-size: 18px; opacity: 0.85; flex-shrink: 0; }
.mp-pack-body { flex: 1; }
.mp-pack-label { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #fff6e8; margin-bottom: 3px; }
.mp-pack-meta { font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }
.mp-step-note, .mp-step-warn {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 8px;
  padding: 8px 10px; border-radius: 4px; font-family: 'VT323', monospace; font-size: 16px;
}
.mp-step-note { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); color: #93c5fd; }
.mp-step-warn { background: rgba(202,138,4,0.12); border: 1px solid rgba(202,138,4,0.3); color: #fde047; }
.mp-note-icon {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace; font-size: 11px; font-weight: bold; flex-shrink: 0;
}
.mp-step-note .mp-note-icon { background: #3b82f6; color: #fff; }
.mp-step-warn .mp-note-icon { background: #ca8a04; color: #fff; }
.mp-step-badge {
  display: inline-block; margin-top: 10px; padding: 7px 12px;
  background: rgba(22,163,74,0.15); border: 1px solid rgba(22,163,74,0.3);
  border-radius: 4px; font-family: 'Press Start 2P', monospace; font-size: 11px;
  color: #4ade80; letter-spacing: 0.04em;
}
.mp-connect {
  display: flex; align-items: center; gap: 14px; margin-top: 12px;
  padding: 14px 16px; background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
}
.mp-connect-glyph { font-size: 22px; color: var(--shell); }
.mp-connect-body { flex: 1; }
.mp-connect-label { font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; margin-bottom: 5px; }
.mp-connect-ip { font-family: 'Press Start 2P', monospace; font-size: 13px; color: #fff6e8; }
.mp-connect-copy {
  padding: 9px 14px; border: 2px solid rgba(255,255,255,0.2); border-radius: 4px;
  background: rgba(255,255,255,0.08); color: #fff6e8; cursor: pointer;
  font-family: 'Press Start 2P', monospace; font-size: 11px; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.mp-connect-copy:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }

/* ── Tournament ── */
.tn-countdown {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 14px 18px; margin: 10px; gap: 14px;
}
.tn-countdown-left { display: flex; flex-direction: column; gap: 4px; }
.tn-countdown-label { font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.08em; text-transform: uppercase; }
.tn-countdown-name { font-family: 'Press Start 2P', monospace; font-size: 12px; color: #fff6e8; line-height: 1.5; }
.tn-countdown-date { font-family: 'VT323', monospace; font-size: 16px; color: rgba(255,255,255,0.55); }
.tn-countdown-grid { display: flex; gap: 8px; }
.tn-seg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tn-val {
  font-family: 'Press Start 2P', monospace; font-size: 22px; color: var(--shell);
  background: rgba(0,0,0,0.5); border: 2px solid rgba(255,80,0,0.35);
  border-radius: 4px; width: 58px; text-align: center; padding: 8px 4px;
  box-shadow: 0 0 12px rgba(255,80,0,0.2);
}
.tn-unit { font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; }
.tn-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px 14px; }
.tn-tab {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 8px; padding: 0 14px;
  border: 2px solid rgba(255,255,255,0.1); border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  background: #111; cursor: pointer; color: rgba(255,255,255,0.45);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  height: 52px; min-height: unset;
}
.tn-tab:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.85); }
.tn-tab:active { transform: scale(0.97); }
.tn-tab-icon { font-size: 15px; font-family: monospace; color: inherit; line-height: 1; flex-shrink: 0; }
.tn-tab-label { font-family: 'Press Start 2P', monospace; font-size: 11px; letter-spacing: 0.04em; color: inherit; line-height: 1.4; text-align: left; }
/* Active color variants */
.tn-tab.tn-blue.active,   .tn-tab.tn-blue:hover   { background: #1e3a5f; border-color: #3b82f6; color: #93c5fd; }
.tn-tab.tn-red.active,    .tn-tab.tn-red:hover    { background: #991b1b; border-color: #dc2626; color: #fca5a5; }
.tn-tab.tn-pink.active,   .tn-tab.tn-pink:hover   { background: #9d174d; border-color: #db2777; color: #f9a8d4; }
.tn-tab.tn-yellow.active, .tn-tab.tn-yellow:hover { background: #78350f; border-color: #ca8a04; color: #fde047; }
.tn-tab.tn-green.active,  .tn-tab.tn-green:hover  { background: #14532d; border-color: #16a34a; color: #86efac; }
.tn-tab.tn-blue.active .tn-tab-icon   { color: #60a5fa; }
.tn-tab.tn-red.active .tn-tab-icon    { color: #f87171; }
.tn-tab.tn-pink.active .tn-tab-icon   { color: #f472b6; }
.tn-tab.tn-yellow.active .tn-tab-icon { color: #facc15; }
.tn-tab.tn-green.active .tn-tab-icon  { color: #4ade80; }
.tn-hero {
  margin: 0 14px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #991b1b, #450a0a);
  border: 1px solid rgba(220,38,38,0.5); padding: 18px 22px 18px 90px;
  position: relative; min-height: 80px; display: flex; flex-direction: column; justify-content: center;
}
.tn-hero-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #f87171; text-shadow: 0 0 12px currentColor, 2px 2px 0 #000;
  border: 2px solid rgba(248,113,113,0.3); border-radius: 4px;
  background: rgba(0,0,0,0.25);
}
.tn-hero-sup { font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.08em; margin-bottom: 8px; }
.tn-hero-title { font-family: 'Press Start 2P', monospace; font-size: 16px; color: #fff6e8; margin-bottom: 8px; text-shadow: 2px 2px 0 #000; }
.tn-hero-desc { font-family: 'VT323', monospace; font-size: 16px; color: rgba(255,230,200,0.75); line-height: 1.5; }
.tn-content { padding: 14px; }
.tn-card { background: rgba(10,10,10,0.85); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; }
.tn-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; background: var(--shell); color: #fff;
}
.tn-card-tag {
  font-family: 'Silkscreen', monospace; font-size: 11px;
  background: rgba(255,255,255,0.25); padding: 2px 6px; border-radius: 2px;
}
.tn-card-title { font-family: 'Press Start 2P', monospace; font-size: 12px; flex: 1; }
.tn-card-count { font-family: 'JetBrains Mono', monospace; font-size: 12px; opacity: 0.7; }
.tn-card-desc, .tn-card-sub { padding: 8px 14px; font-family: 'VT323', monospace; font-size: 17px; color: rgba(255,255,255,0.55); }
.tn-card-sub { font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,255,255,0.35); padding-top: 12px; letter-spacing: 0.06em; }
.tn-list { padding: 0 14px 12px 28px; margin: 0; font-family: 'VT323', monospace; font-size: 17px; color: rgba(255,255,255,0.8); line-height: 1.9; }
.tn-list li::marker { color: var(--shell); }
.tn-pill-grid { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 14px; }
.tn-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.3);
  color: #fff6e8; border-radius: 3px; padding: 3px 8px;
  font-family: 'VT323', monospace; font-size: 16px;
  animation: pillIn 0.2s both; animation-delay: calc(var(--i, 0) * 15ms);
}
@keyframes pillIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.tn-pill-x { color: var(--shell); font-size: 14px; }
.tn-form-grid { display: flex; flex-direction: column; gap: 4px; padding: 8px 14px 14px; }
.tn-form {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 4px;
  background: rgba(219,39,119,0.08); border: 1px solid rgba(219,39,119,0.2);
  font-family: 'VT323', monospace; font-size: 17px; color: rgba(255,255,255,0.85);
  animation: pillIn 0.2s both; animation-delay: calc(var(--i, 0) * 12ms);
}
.tn-item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 14px 14px; }
.tn-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(202,138,4,0.1); border: 1px solid rgba(202,138,4,0.25);
  border-radius: 4px; padding: 8px 10px;
  animation: pillIn 0.2s both; animation-delay: calc(var(--i, 0) * 20ms);
}
.tn-item-glyph { color: #facc15; font-size: 18px; }
.tn-item-name { font-family: 'VT323', monospace; font-size: 17px; color: rgba(255,255,255,0.85); }
.tn-clauses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px 14px; }
.tn-clause {
  background: rgba(10,20,12,0.8); border: 1px solid rgba(22,163,74,0.25); border-radius: 6px;
  padding: 12px; display: flex; gap: 10px;
  animation: pillIn 0.25s both; animation-delay: calc(var(--i, 0) * 30ms);
}
.tn-clause-num {
  font-family: 'Press Start 2P', monospace; font-size: 14px; color: #4ade80;
  min-width: 26px; padding-top: 2px;
}
.tn-clause-title { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #fff6e8; margin-bottom: 8px; line-height: 1.6; }
.tn-clause ul { padding-left: 16px; margin: 0; font-family: 'VT323', monospace; font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.tn-clause ul li::marker { color: #4ade80; }

/* ── Vote ── */
.vote-note-card {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 10px; padding: 10px 14px;
  background: rgba(202,138,4,0.1); border: 1px solid rgba(202,138,4,0.3); border-radius: 6px;
}
.vote-note-icon {
  width: 22px; height: 22px; border-radius: 50%; background: #ca8a04; color: #fff;
  font-family: 'Press Start 2P', monospace; font-size: 12px; font-weight: bold;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vote-note-title { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #fff6e8; margin-bottom: 4px; }
.vote-note-text { font-family: 'VT323', monospace; font-size: 17px; color: rgba(255,220,150,0.8); line-height: 1.5; }
.vote-section-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.25);
}
.vote-section-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: bold;
  background: var(--shell); color: #fff; padding: 2px 7px; border-radius: 3px;
}
.vote-section-title { font-family: 'Press Start 2P', monospace; font-size: 12px; color: #fff6e8; flex: 1; }
.vote-section-count { font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,255,255,0.4); }
.vote-grid { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; }
.vote-tab { text-decoration: none; display: block; position: relative; }
.vote-tab .ds-label { position: absolute; top: 12px; left: 60px; z-index: 1; }
.vote-tab .ds-meta  { position: absolute; bottom: 8px; left: 60px; z-index: 1; }
.vote-tab .ds-id    { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); z-index: 1; }
/* Pending state: pulsing border to show the vote site is open */
.vote-tab.vote-pending {
  border-color: rgba(251,191,36,0.6) !important;
  animation: votePulse 1.5s ease-in-out infinite;
}
@keyframes votePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.3); }
  50% { box-shadow: 0 0 0 4px rgba(251,191,36,0.1); }
}
.vote-progress { padding: 10px 14px; }
.vote-progress-text { display: flex; justify-content: space-between; margin-bottom: 8px; }
.vote-progress-label { font-family: 'Press Start 2P', monospace; font-size: 11px; color: rgba(255,255,255,0.4); }
.vote-progress-count { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: bold; color: #fff6e8; }
.vote-progress-bar {
  position: relative; height: 12px; background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; overflow: visible;
}
.vote-progress-fill {
  height: 100%; background: var(--led-green); border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(74,222,128,0.4);
}
.vote-progress-tick {
  position: absolute; top: -3px; width: 2px; height: 18px;
  background: rgba(255,255,255,0.15); transform: translateX(-50%);
}
.vote-progress-tick.on { background: var(--led-green); box-shadow: 0 0 4px var(--led-green); }
.vote-progress-done {
  margin-top: 8px; font-family: 'Press Start 2P', monospace; font-size: 11px;
  color: var(--led-green); text-align: center;
}

/* ── Gift Cards ── */
.gc-notice {
  display: flex; align-items: flex-start; gap: 10px; margin: 10px;
  padding: 10px 14px; background: rgba(220,10,45,0.06);
  border: 2px solid rgba(220,10,45,0.2); border-radius: 6px;
}
.gc-notice-icon {
  width: 22px; height: 22px; border-radius: 50%; background: var(--shell); color: #fff;
  font-family: 'Press Start 2P', monospace; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gc-notice-title { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--shell); margin-bottom: 4px; }
.gc-notice-text { font-family: 'VT323', monospace; font-size: 17px; color: #5a1a28; }
.gc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 14px; }
.gc-card { overflow: hidden; cursor: default; }
.gc-tag {
  font-family: 'Silkscreen', monospace; font-size: 11px; text-align: center;
  padding: 4px 8px; background: rgba(0,0,0,0.2); color: #fff;
}
.gc-tag.sale { background: var(--shell); }
.gc-card-art {
  position: relative; padding: 16px 14px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.gc-amount { font-family: 'Press Start 2P', monospace; font-size: 24px; color: #fff; text-shadow: 2px 2px 0 #000; }
.gc-glyph { font-size: 16px; color: rgba(255,255,255,0.6); }
.gc-mini { font-family: 'Silkscreen', monospace; font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.gc-card-stripe { display: flex; gap: 2px; margin-top: 8px; }
.gc-card-stripe span { width: 8px; height: 4px; background: rgba(0,0,0,0.2); border-radius: 1px; }
.gc-card-body { padding: 10px 12px; background: rgba(255,255,255,0.9); }
.gc-name { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--screen-ink); margin-bottom: 6px; }
.gc-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.gc-price-old { font-family: 'VT323', monospace; font-size: 16px; color: #aaa; text-decoration: line-through; }
.gc-price-new { font-family: 'Jersey 15', sans-serif; font-size: 22px; color: var(--screen-ink); }
.gc-price-new.sale { color: var(--shell); }
.gc-buy {
  width: 100%; padding: 6px; border: 2px solid #000;
  background: #1e2d12; color: #e8f1d3;
  font-family: 'Press Start 2P', monospace; font-size: 11px; cursor: pointer;
  border-radius: 2px; transition: background 0.12s;
}
.gc-buy:hover { background: var(--shell); }
.gc-buy.in-cart { background: var(--led-green); }
.gc-section-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px 6px; }
.gc-section-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: bold;
  background: var(--shell); color: #fff; padding: 2px 7px; border-radius: 3px;
}
.gc-section-title { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--screen-ink); flex: 1; }
.gc-section-count { font-family: 'Silkscreen', monospace; font-size: 11px; color: #888; }
.gc-howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 6px 14px 14px; }
.gc-howto { background: rgba(255,255,255,0.6); border: 2px solid rgba(0,0,0,0.08); border-radius: 6px; padding: 12px; }
.gc-howto-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--shell); color: #fff;
  font-family: 'Press Start 2P', monospace; font-size: 11px; border: 2px solid #000;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.gc-howto-title { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--screen-ink); margin-bottom: 6px; }
.gc-howto-text { font-family: 'VT323', monospace; font-size: 16px; color: #4a5a2a; line-height: 1.5; }
.gc-faq { padding: 4px 14px 14px; }
.gc-faq-row { border-top: 1px solid rgba(0,0,0,0.08); padding: 10px 0; }
.gc-faq-q { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--screen-ink); margin-bottom: 6px; }
.gc-faq-a { font-family: 'VT323', monospace; font-size: 17px; color: #4a5a2a; }

/* ── Support ── */
.sup-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
.sup-contact { text-decoration: none; }
.sup-contact-handle { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.sup-card {
  margin: 0 10px 10px; position: relative; overflow: hidden;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  animation: tabCascade 0.35s both; animation-delay: calc(var(--i, 0) * 60ms);
}
.sup-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--shell); border-radius: 8px 0 0 8px;
}
.sup-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sup-card-tag {
  font-family: 'Silkscreen', monospace; font-size: 11px;
  padding: 3px 8px; border-radius: 3px; background: var(--shell); color: #fff; flex-shrink: 0;
}
.sup-card-title { font-family: 'Press Start 2P', monospace; font-size: 12px; flex: 1; color: #fff6e8; }
.sup-card-count { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.4); }
.sup-lede { padding: 12px 14px; font-family: 'VT323', monospace; font-size: 18px; color: rgba(200,214,168,0.85); line-height: 1.6; }
.sup-list {
  padding: 4px 14px 14px 28px; margin: 0;
  font-family: 'VT323', monospace; font-size: 18px; color: rgba(200,214,168,0.75); line-height: 2;
}
.sup-list li::marker { color: var(--shell); }
.sup-coin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 14px 12px; }
.sup-coin { cursor: default; }
.sup-coin-desc { font-family: 'VT323', monospace; font-size: 15px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.sup-coin-note {
  display: flex; align-items: flex-start; gap: 10px; margin: 4px 14px 12px;
  padding: 10px 12px; background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.2); border-radius: 6px;
  font-family: 'VT323', monospace; font-size: 17px; color: rgba(245,197,24,0.85);
}
.sup-coin-note-icon {
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #2a0306;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace; font-size: 11px; flex-shrink: 0; margin-top: 2px;
}
.sup-faq { padding: 4px 14px 14px; }
.sup-faq-row {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 12px 0;
  transition: background 0.12s;
}
.sup-faq-row:first-child { border-top: none; }
.sup-faq-q {
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  color: var(--screen-ink); margin-bottom: 6px; line-height: 1.7;
}
.sup-faq-a { font-family: 'VT323', monospace; font-size: 18px; color: rgba(200,214,168,0.7); line-height: 1.6; }

/* ── Page transition ── */
.page-enter {
  animation: pageEnter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px) brightness(1.3); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0) brightness(1); }
}

/* ── Mobile ── */
@media (max-width: 720px) {
  .stage { padding: 12px 8px 40px; }
  .dex { border-radius: 18px 18px 18px 40px; padding: 14px 14px 12px; }
  .dex .hinge { display: none; }
  .dex .grille { display: block; }
  .dex-top { gap: 10px; margin-bottom: 12px; grid-template-columns: auto auto 1fr; }
  .led-big { width: 44px; height: 44px; }
  .led-small { width: 9px; height: 9px; }
  .dex-title { font-size: 11px; }
  .dex-controls { padding: 10px 14px 6px; }
  .dpad, .ctrl-meta { display: none; }
  .dex-screen { border-width: 5px; }
  .ds-grid { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
  .ds-tab { height: 72px; }
  .ds-label { font-size: 11px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .rank-compare-wrap { overflow-x: scroll; }
  .rc-table { min-width: 600px; }
  .tn-nav { grid-template-columns: repeat(3, 1fr); }
  .tn-clauses { grid-template-columns: 1fr; }
  .gc-grid { grid-template-columns: 1fr 1fr; }
  .gc-howto-grid { grid-template-columns: 1fr; }
  .vote-streak { grid-template-columns: repeat(4, 1fr); }
  .sup-contact-grid { grid-template-columns: 1fr; }
  .p4-perks { grid-template-columns: 1fr; }
  .scr-bar { flex-wrap: wrap; gap: 4px; font-size: 11px; }
  .pk-hero h1 { font-size: 11px; }
}
@media (max-width: 480px) {
  /* Single column tiles so labels aren't crushed */
  .ds-grid { grid-template-columns: 1fr; gap: 5px; padding: 6px; }
  /* Tighten icon area so label has room */
  .ds-tab { height: 64px; padding: 0 12px 0 68px; }
  .ds-icon { left: 8px; width: 44px; height: 44px; font-size: 18px; }
  .ds-label { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ds-meta { font-size: 9px; }
  .gc-grid { grid-template-columns: 1fr; }
  .vote-streak { grid-template-columns: repeat(3, 1fr); }
  .tn-countdown { flex-direction: column; }
  .tn-nav { grid-template-columns: repeat(3, 1fr); }
  .tn-tab { height: 44px; }
  .tn-item-grid { grid-template-columns: 1fr; }
  .mp-tabs { grid-template-columns: 1fr; }
  .mp-tab { height: 52px; }
  .fc-item { flex-wrap: wrap; }
  .fc-item-right { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ═══════════════════════════════════════════════════
   TEBEX COMPATIBILITY LAYER
   These classes are required by js.tebex.io and main.js
   ═══════════════════════════════════════════════════ */

/* Basket popup (Tebex-managed) */
.basket-popup, .basket-popup-overlay {
  font-family: 'VT323', monospace;
}
.basket-popup .basket-header {
  background: var(--shell); color: #fff; padding: 10px 14px;
  font-family: 'Press Start 2P', monospace; font-size: 11px;
}
.basket-popup .basket-title {
  font-family: 'Press Start 2P', monospace; font-size: 11px; margin: 0;
}
.basket-popup .basket-item {
  border-bottom: 1px solid rgba(0,0,0,0.1); padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
}
.basket-popup .basket-item .title a { color: var(--screen-ink); text-decoration: none; font-family: 'Press Start 2P', monospace; font-size: 11px; }
.basket-popup .basket-item .price { font-family: 'Jersey 15', sans-serif; font-size: 20px; }
.basket-popup .basket-item .remove { background: none; border: none; color: var(--shell); cursor: pointer; font-size: 16px; margin-left: auto; }
.basket-popup .basket-checkout { padding: 12px 14px; background: rgba(0,0,0,0.04); border-top: 2px solid rgba(0,0,0,0.1); }
.basket-popup .basket-checkout h3 { font-family: 'Press Start 2P', monospace; font-size: 12px; margin-bottom: 8px; }
.basket-popup .basket-checkout .total { font-family: 'Jersey 15', sans-serif; font-size: 22px; display:inline; margin-left:8px; }

/* Tebex toast */
.site-toast, [data-toast] .site-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: #1e2d12; color: #e8f1d3;
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  padding: 10px 16px; border: 2px solid #000; border-radius: 4px;
  box-shadow: 0 4px 0 #000;
  animation: toastIn 0.25s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes toastIn {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
.site-toast.success { background: var(--led-green); }
.site-toast.error   { background: var(--shell); }

/* Tebex options popup */
.package-options-popup input, .package-options-popup select, .package-options-popup textarea {
  border: 2px solid rgba(0,0,0,0.15); border-radius: 4px; padding: 8px 10px;
  font-family: 'VT323', monospace; font-size: 18px; width: 100%;
  background: #fafaf5; outline: none;
}
.package-options-popup input:focus, .package-options-popup select:focus { border-color: var(--shell); }
.package-options-popup label { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #888; display:block; margin-bottom:5px; }
.package-options-popup .btn-primary {
  background: var(--shell); color: #fff; border: 2px solid #000;
  padding: 10px 18px; font-family: 'Press Start 2P', monospace; font-size: 12px;
  cursor: pointer; border-radius: 3px; width: 100%; margin-top: 12px;
}

/* Generic Tebex button classes (used by main.js) */
.btn-primary {
  background: var(--shell); color: #fff; border: 2px solid #000;
  padding: 8px 16px; font-family: 'Press Start 2P', monospace; font-size: 11px;
  cursor: pointer; border-radius: 3px; display:inline-block; text-decoration:none;
  box-shadow: 0 2px 0 var(--shell-dark), 0 3px 0 #000;
  transition: filter 0.12s;
}
.btn-primary:hover { filter: brightness(1.15); }
.btn-secondary {
  background: rgba(0,0,0,0.08); color: var(--screen-ink); border: 2px solid rgba(0,0,0,0.2);
  padding: 8px 16px; font-family: 'Press Start 2P', monospace; font-size: 11px;
  cursor: pointer; border-radius: 3px; display:inline-block; text-decoration:none;
}
.btn-tertiary {
  background: none; border: none; color: var(--shell); cursor: pointer;
  font-family: 'Silkscreen', monospace; font-size: 12px; text-decoration: underline;
}
.btn-small  { font-size: 11px; padding: 5px 10px; }
.btn-xsmall { font-size: 11px; padding: 3px 8px; }
.btn-glyph::before { content: '▸ '; }
.btn-glyph-text { display:inline-flex; align-items:center; gap:6px; }
.wide { width: 100%; }
.half { width: calc(50% - 4px); }
.disabled, [disabled] { opacity: 0.45; pointer-events: none; cursor: not-allowed; }
[hidden] { display: none !important; }

/* Countdown spans rendered by Tebex package countdown */
.countdown {
  font-family: 'Silkscreen', monospace; font-size: 11px; background: var(--shell);
  color: #fff; padding: 2px 5px; border-radius: 2px; vertical-align: middle;
  margin-left: 6px;
}

/* Quantity field used inside basket popup #}
.quantity-field { display:flex; align-items:center; gap:4px; }
.quantity-field input { width:40px; text-align:center; border:2px solid rgba(0,0,0,0.2); border-radius:3px; padding:2px; font-family:'JetBrains Mono',monospace; font-size:13px; }
.quantity-field .adjust { width:24px; height:24px; display:flex; align-items:center; justify-content:center; border:2px solid #000; background:#ddd; cursor:pointer; font-family:'Press Start 2P',monospace; font-size:11px; border-radius:2px; }
.quantity-field .adjust:hover { background: #ccc; }

/* Login prompt link */
.login-prompt {
  opacity: 0.7; color: rgba(255,255,255,0.8); font-family: 'Silkscreen',monospace;
  font-size: 11px; text-decoration: none;
}
.login-prompt:hover { opacity: 1; }

/* Popup scr (basket/package popup wrapper) */
.popup-scr {
  background: var(--screen); min-height: 100vh;
  font-family: 'VT323', monospace;
}

/* Misc layout resets */
.site-content { display: block; }
.store-text.text-content { padding: 14px; font-family: 'VT323', monospace; font-size: 18px; line-height: 1.6; color: var(--screen-ink); }
.store-text.text-content h2 { font-family: 'Press Start 2P', monospace; font-size: 14px; margin-bottom: 12px; }
.text-content a { color: var(--shell); }
.no-products { font-family: 'VT323', monospace; font-size: 18px; padding: 20px 14px; color: #888; }

/* ═══════════════════════════════════════════════════
   HOME EXTRAS — Recent Payments · Community Goal · Gift Card
   ═══════════════════════════════════════════════════ */

.home-extras {
  padding: 0 14px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
/* Payments card spans full width */
.home-extras .widget-recent { grid-column: 1 / -1; }

.home-extras .widget {
  background: #0d1126;
  border: 1px solid #2a345e;
  border-radius: 14px;
  padding: 16px 20px 18px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.35);
}
.home-extras .widget-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #f7c843;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  text-align: center;
  text-shadow: 0 0 8px rgba(247,200,67,0.4);
  border: none;
  padding: 0;
  background: none;
}

/* Recent Payments */
.home-extras .purchases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  justify-items: center;
}
.home-extras .purchase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.home-extras .purchase .avatar {
  width: 44px; height: 44px;
  image-rendering: pixelated;
  border: 2px solid #2a345e;
  border-radius: 4px;
  background: #0a0e1e;
  display: block;
}
.home-extras .purchase .info { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.home-extras .purchase h6.username {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  word-break: break-word;
  max-width: 80px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-extras .purchase p { display: none; } /* hide package/price — clean look */
.home-extras .purchase time { display: none; }
.home-extras .empty {
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: #6a7196;
  text-align: center;
  padding: 8px 0;
}

/* Community goal */
.home-extras .widget-community-goal .descr {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  margin-bottom: 10px;
}
.home-extras .widget-community-goal .goal-image { display: none; }
.home-extras .widget-community-goal p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #c8ccdc;
  margin: 0 0 10px;
}
.home-extras .widget-community-goal p strong {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #f7c843;
  text-shadow: 0 0 8px rgba(247,200,67,0.4);
}
.home-extras .progress {
  height: 14px;
  background: #06091a;
  border: 1px solid #2a345e;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 10px;
}
.home-extras .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #5fc97a, #f7c843, #f04657);
  box-shadow: 0 0 10px rgba(95,201,122,0.45);
  transition: width 0.5s cubic-bezier(.2,.8,.2,1);
  border-radius: 7px;
}
.home-extras .widget-community-goal > .widget-content > p:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #a3aac4;
  margin: 0;
}

/* Gift card balance checker */
.home-extras .widget-gift-card .widget-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.home-extras .gift-card-input {
  background: #06091a;
  border: 1px solid #2a345e;
  border-radius: 6px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 12px 14px;
  outline: none;
  width: 100%;
}
.home-extras .gift-card-input:focus { border-color: #f7c843; }
.home-extras .gift-card-input::placeholder { color: #6a7196; }
.home-extras .widget-gift-card .check {
  background: linear-gradient(180deg, #f7891e, #d4671d) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 12px !important;
  cursor: pointer !important;
  letter-spacing: 0.08em !important;
  box-shadow: 0 3px 0 #8a4310 !important;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.35) !important;
  width: 100% !important;
  margin: 0 !important;
  transition: transform 0.08s, box-shadow 0.08s !important;
}
.home-extras .widget-gift-card .check:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #8a4310 !important; }
.home-extras .widget-gift-card .check:active { transform: translateY(2px); box-shadow: 0 1px 0 #8a4310 !important; }
.home-extras .alert {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.home-extras .alert-danger {
  background: rgba(240,70,87,0.15);
  border: 1px solid rgba(240,70,87,0.5);
  color: #ffb7be;
}
.home-extras .alert-warning {
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.3);
  color: #fde68a;
}
.home-extras .alert-success, .home-extras .alert-info {
  background: rgba(95,201,122,0.15);
  border: 1px solid rgba(95,201,122,0.5);
  color: #b6f0c4;
}
/* Hide the default "no card found" strong wrapper, style the p */
.home-extras .widget-gift-card p { margin: 0; }

/* Discord chip in scr-bar */
.discord-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: #5865F2;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.discord-chip:hover { background: #4752c4; transform: scale(1.1); }
.discord-chip svg { width: 13px; height: 13px; fill: #fff; display: block; }

@media (max-width: 720px) {
  .home-extras { grid-template-columns: 1fr; }
  .home-extras .widget-recent { grid-column: 1; }
  .home-extras .purchases { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Home extras refinements ─────────────────────── */

/* Hide the textbox/about-the-store module if it renders inside home-extras */
.home-extras .widget-textbox,
.home-extras .widget-text-box { display: none !important; }

/* Price under payment username */
.home-extras .purchase .pay-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #5fc97a;
  margin: 0;
  text-align: center;
}

/* DS tile label — allow slightly longer names without forcing wrap */
.ds-label {
  font-size: 13px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 90px); /* leave room for icon */
}

/* DS tile ds-id — always top-right corner, never overlaps label */
.ds-id {
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  z-index: 2;
}

/* Ensure payment avatar uses face-crop ratio */
.home-extras .purchase .avatar {
  width: 44px !important;
  height: 44px !important;
  object-fit: cover;
  object-position: top center;
}

/* ── Server hub section label in DS grid ── */
.ds-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.ds-section-label:first-child { border-top: none; margin-top: 0; }

/* ── Rank table info tooltip ── */
.rc-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.18);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  cursor: help; color: #6a7a4a; vertical-align: middle; margin-left: 4px;
  flex-shrink: 0;
}
.rc-info:hover { background: var(--shell); color: #fff; border-color: var(--shell); }

/* Rank art card in comparison header */
.rc-rank-art {
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 2px solid rgba(0,0,0,0.3);
  box-shadow: 0 3px 0 rgba(0,0,0,0.4);
  color: #fff; font-size: 20px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

/* ── Tebex injected footer ── */
.webstore-footer,
#tebex-footer,
.tebex-footer,
footer.tebex,
[class*="tebex-footer"],
[id*="tebex-footer"] {
  background: #06081a !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.35) !important;
  font-family: 'Silkscreen', monospace !important;
  font-size: 11px !important;
}
.webstore-footer a,
#tebex-footer a,
.tebex-footer a,
footer.tebex a {
  color: rgba(255,255,255,0.4) !important;
  text-decoration: none !important;
}
.webstore-footer a:hover,
#tebex-footer a:hover {
  color: rgba(255,255,255,0.7) !important;
}