/* =========================================================
   SPYREX · Design System v1
   Dark Gaming · Black + Acid Neon · No external assets
   ========================================================= */

:root {
  --bc-bg: #04070a;
  --bc-bg-soft: #070c10;
  --bc-panel: rgba(13, 20, 22, 0.82);
  --bc-panel-solid: #0b1213;
  --bc-panel-2: #0e1719;
  --bc-elevated: #111c1e;
  --bc-line: rgba(120, 255, 190, 0.12);
  --bc-line-strong: rgba(120, 255, 190, 0.26);

  --bc-acid: #39ff88;
  --bc-acid-bright: #7dffb0;
  --bc-acid-dim: #16b35b;
  --bc-lime: #c8ff3d;
  --bc-cyan: #35e6ff;
  --bc-violet: #a78bfa;
  --bc-gold: #ffd166;
  --bc-red: #ff5577;
  --bc-pink: #ff5ea8;

  --bc-text: #e9fff4;
  --bc-text-soft: #a7c2b8;
  --bc-muted: #6f8c83;
  --bc-black: #010304;

  --bc-radius: 18px;
  --bc-radius-sm: 12px;
  --bc-radius-lg: 26px;
  --bc-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --bc-glow: 0 0 0 1px rgba(57, 255, 136, 0.18), 0 0 34px rgba(57, 255, 136, 0.14);
  --bc-font: "SF Pro Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bc-mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, monospace;
  --bc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bc-sidebar: 264px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.bc-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 82% -10%, rgba(57, 255, 136, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 105%, rgba(53, 230, 255, 0.07), transparent 60%),
    var(--bc-bg);
  color: var(--bc-text);
  font-family: var(--bc-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.bc-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(57, 255, 136, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 136, 0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
body.bc-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.16;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.35) 2px 4px);
  mix-blend-mode: multiply;
}
::selection { background: var(--bc-acid); color: #052012; }

a { color: var(--bc-acid); text-decoration: none; }
a:hover { color: var(--bc-acid-bright); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.bc-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--bc-sidebar) minmax(0, 1fr);
  min-height: 100vh;
}
.bc-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  border-right: 1px solid var(--bc-line);
  background: linear-gradient(180deg, rgba(8, 14, 15, 0.96), rgba(5, 9, 11, 0.92));
  backdrop-filter: blur(18px);
  z-index: 40;
}
.bc-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 2px;
  color: var(--bc-text);
}
.bc-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(57, 255, 136, 0.22), rgba(57, 255, 136, 0.03));
  border: 1px solid rgba(57, 255, 136, 0.4);
  box-shadow: inset 0 0 20px rgba(57, 255, 136, 0.18), 0 0 24px rgba(57, 255, 136, 0.16);
  font-family: var(--bc-mono);
  font-weight: 900;
  font-size: 19px;
  color: var(--bc-acid);
  position: relative;
  overflow: hidden;
}
.bc-brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: bc-sheen 5.5s var(--bc-ease) infinite;
}
.bc-brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.12em;
  font-weight: 900;
}
.bc-brand small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: var(--bc-muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.bc-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.bc-nav-group {
  margin: 14px 10px 5px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bc-muted);
}
.bc-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--bc-text-soft);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--bc-ease), border-color 0.2s;
}
.bc-nav a .bc-nav-ico {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  transition: background 0.2s;
}
.bc-nav a:hover {
  color: var(--bc-text);
  background: rgba(57, 255, 136, 0.06);
  border-color: rgba(57, 255, 136, 0.10);
  transform: translateX(2px);
}
.bc-nav a.active {
  color: var(--bc-black);
  background: linear-gradient(100deg, var(--bc-acid), var(--bc-lime));
  box-shadow: 0 8px 30px rgba(57, 255, 136, 0.28);
}
.bc-nav a.active .bc-nav-ico { background: rgba(0, 0, 0, 0.14); }
.bc-nav a .bc-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--bc-red);
  color: #fff;
}
.bc-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.bc-side-card {
  border: 1px solid var(--bc-line);
  background: linear-gradient(150deg, rgba(57, 255, 136, 0.07), transparent 70%);
  border-radius: 14px;
  padding: 13px;
  font-size: 12px;
  color: var(--bc-text-soft);
}
.bc-side-card strong { display: block; color: var(--bc-text); font-size: 13px; margin-bottom: 2px; }
.bc-side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--bc-muted);
  font-size: 12px;
}
.bc-side-link:hover { background: rgba(255,255,255,0.04); color: var(--bc-text); }

.bc-main { min-width: 0; display: flex; flex-direction: column; }
.bc-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--bc-line);
  background: rgba(4, 8, 10, 0.78);
  backdrop-filter: blur(20px) saturate(1.25);
}
.bc-menu-btn, .bc-icon-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--bc-line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  place-items: center;
  color: var(--bc-text);
}
.bc-icon-btn { display: grid; }
.bc-page-head { min-width: 0; }
.bc-eyebrow {
  font-family: var(--bc-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bc-acid);
  opacity: 0.8;
}
.bc-page-head h1 { font-size: clamp(19px, 2.2vw, 25px); margin-top: 2px; }
.bc-page-head p { font-size: 12.5px; color: var(--bc-muted); margin-top: 1px; }
.bc-top-stats { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.bc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid var(--bc-line);
  background: rgba(255, 255, 255, 0.028);
  font-size: 12.5px;
  color: var(--bc-text-soft);
  white-space: nowrap;
}
.bc-chip strong { color: var(--bc-text); font-family: var(--bc-mono); font-size: 12.5px; }
.bc-chip.coins strong { color: var(--bc-gold); }
.bc-chip.cookies strong { color: var(--bc-lime); }
.bc-chip.xp strong { color: var(--bc-acid); }
.bc-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 11px 5px 5px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--bc-line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: var(--bc-text);
}
.bc-user:hover { border-color: var(--bc-line-strong); }
.bc-user > span:last-child { display: grid; gap: 1px; line-height: 1.15; min-width: 0; }
.bc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(57, 255, 136, 0.3), rgba(53, 230, 255, 0.18));
  border: 1px solid rgba(57, 255, 136, 0.35);
  font-size: 16px;
}
.bc-user-name { font-size: 12.5px; font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.bc-user-lvl { font-family: var(--bc-mono); font-size: 9px; color: var(--bc-acid); }

.bc-content {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px clamp(16px, 3vw, 34px) 60px;
  flex: 1;
}
.bc-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  padding: 18px clamp(16px, 3vw, 34px) 26px;
  border-top: 1px solid var(--bc-line);
  color: var(--bc-muted);
  font-size: 11.5px;
}
.bc-footer a { color: var(--bc-muted); }
.bc-footer a:hover { color: var(--bc-acid); }

/* ---------- Typography helpers ---------- */
.bc-h2 { font-size: clamp(18px, 2vw, 23px); }
.bc-h3 { font-size: 16px; }
.bc-sub { color: var(--bc-muted); font-size: 12.5px; }
.bc-mono { font-family: var(--bc-mono); }
.bc-acid { color: var(--bc-acid); }
.bc-gold { color: var(--bc-gold); }
.bc-red { color: var(--bc-red); }
.bc-cyan { color: var(--bc-cyan); }
.bc-muted { color: var(--bc-muted); }
.bc-tiny { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bc-muted); }
.bc-center { text-align: center; }

/* ---------- Cards ---------- */
.bc-card {
  position: relative;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  background: linear-gradient(165deg, rgba(15, 24, 26, 0.9), rgba(7, 12, 14, 0.88));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}
.bc-card-pad { padding: 20px; }
.bc-card-hover { transition: transform 0.3s var(--bc-ease), border-color 0.3s, box-shadow 0.3s; }
.bc-card-hover:hover { transform: translateY(-3px); border-color: var(--bc-line-strong); box-shadow: 0 18px 50px rgba(0,0,0,0.45), 0 0 26px rgba(57,255,136,0.07); }
.bc-card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(57,255,136,0.45), transparent 40%, transparent 60%, rgba(53,230,255,0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.bc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.bc-card-head h2, .bc-card-head h3 { font-size: 15px; }
.bc-section { margin-top: 26px; }
.bc-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.bc-section-head h2 { font-size: clamp(17px, 1.9vw, 21px); }
.bc-section-head p { color: var(--bc-muted); font-size: 12px; }
.bc-grid { display: grid; gap: 16px; }
.bc-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bc-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bc-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bc-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bc-stack { display: flex; flex-direction: column; gap: 16px; }
.bc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Hero ---------- */
.bc-hero {
  position: relative;
  padding: clamp(22px, 3.4vw, 38px);
  border-radius: var(--bc-radius-lg);
  border: 1px solid var(--bc-line-strong);
  background:
    radial-gradient(120% 160% at 85% 0%, rgba(57, 255, 136, 0.16), transparent 55%),
    radial-gradient(80% 140% at 0% 100%, rgba(53, 230, 255, 0.09), transparent 55%),
    linear-gradient(160deg, #0d1717, #060b0c 70%);
  overflow: hidden;
  box-shadow: var(--bc-shadow);
}
.bc-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 255, 136, 0.22), transparent 65%);
  filter: blur(10px);
  animation: bc-float 9s ease-in-out infinite;
}
.bc-hero::after {
  content: "SPYREX";
  position: absolute;
  right: -8px;
  bottom: -24px;
  font-family: var(--bc-mono);
  font-weight: 900;
  font-size: clamp(50px, 10vw, 130px);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(57, 255, 136, 0.10);
  pointer-events: none;
  user-select: none;
}
.bc-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); gap: 26px; align-items: center; }
.bc-hero h1 { font-size: clamp(27px, 4vw, 46px); line-height: 1.02; max-width: 16ch; }
.bc-hero h1 span { color: var(--bc-acid); text-shadow: 0 0 40px rgba(57,255,136,0.45); }
.bc-hero p.bc-hero-lead { color: var(--bc-text-soft); margin-top: 12px; max-width: 52ch; font-size: 14px; }
.bc-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.bc-hero-art { position: relative; min-height: 230px; display: grid; place-items: center; }
.bc-hero-orb {
  width: clamp(170px, 22vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(57, 255, 136, 0.35);
  background:
    radial-gradient(circle at 35% 30%, rgba(57, 255, 136, 0.5), transparent 40%),
    radial-gradient(circle at 65% 75%, rgba(53, 230, 255, 0.28), transparent 45%),
    #071111;
  box-shadow: inset 0 0 60px rgba(57, 255, 136, 0.25), 0 0 70px rgba(57, 255, 136, 0.18);
  display: grid;
  place-items: center;
  font-size: clamp(64px, 9vw, 96px);
  animation: bc-float 7s ease-in-out infinite;
}
.bc-hero-orb::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(57, 255, 136, 0.25);
  animation: bc-spin 26s linear infinite;
}

/* ---------- Buttons ---------- */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--bc-line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--bc-text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s var(--bc-ease), background 0.18s, box-shadow 0.18s, border-color 0.18s;
  white-space: nowrap;
  user-select: none;
}
.bc-btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(120, 255, 190, 0.4); transform: translateY(-1px); }
.bc-btn:active { transform: translateY(0) scale(0.985); }
.bc-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.bc-btn.primary {
  background: linear-gradient(100deg, var(--bc-acid), var(--bc-lime));
  color: #04140b;
  border-color: transparent;
  box-shadow: 0 10px 34px rgba(57, 255, 136, 0.26);
}
.bc-btn.primary:hover { box-shadow: 0 14px 40px rgba(57, 255, 136, 0.4); }
.bc-btn.ghost { background: transparent; }
.bc-btn.danger { border-color: rgba(255, 85, 119, 0.4); color: var(--bc-red); background: rgba(255, 85, 119, 0.07); }
.bc-btn.cyan { background: linear-gradient(100deg, var(--bc-cyan), #7af8ff); color: #04191c; border-color: transparent; }
.bc-btn.sm { min-height: 34px; padding: 0 12px; font-size: 11.5px; border-radius: 9px; }
.bc-btn.lg { min-height: 50px; padding: 0 26px; font-size: 14.5px; border-radius: 14px; }
.bc-btn.block { width: 100%; }
.bc-icon-btn.sm { width: 32px; height: 32px; font-size: 13px; }
.bc-link-btn { border: 0; background: none; color: var(--bc-acid); cursor: pointer; font-size: 12px; font-weight: 700; padding: 0; }
.bc-link-btn:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.bc-field { display: flex; flex-direction: column; gap: 6px; }
.bc-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bc-muted); }
.bc-input, .bc-select, .bc-textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid var(--bc-line);
  background: rgba(3, 8, 9, 0.7);
  color: var(--bc-text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bc-input::placeholder, .bc-textarea::placeholder { color: #52665f; }
.bc-input:focus, .bc-select:focus, .bc-textarea:focus { border-color: rgba(57, 255, 136, 0.55); box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.12); }
.bc-textarea { min-height: 100px; resize: vertical; }
.bc-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bc-acid) 50%), linear-gradient(135deg, var(--bc-acid) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.bc-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--bc-text-soft); }
.bc-toggle input { appearance: none; width: 40px; height: 22px; border-radius: 99px; background: #16221f; border: 1px solid var(--bc-line); position: relative; cursor: pointer; transition: background 0.2s; flex: 0 0 40px; }
.bc-toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--bc-muted); transition: transform 0.2s var(--bc-ease), background 0.2s; }
.bc-toggle input:checked { background: rgba(57, 255, 136, 0.22); border-color: rgba(57, 255, 136, 0.5); }
.bc-toggle input:checked::after { transform: translateX(18px); background: var(--bc-acid); }
.bc-search { position: relative; flex: 1; min-width: 160px; }
.bc-search .bc-input { padding-left: 36px; }
.bc-search > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bc-muted); font-size: 13px; }
.bc-segment { display: inline-flex; padding: 3px; gap: 3px; border-radius: 11px; border: 1px solid var(--bc-line); background: rgba(3, 8, 9, 0.6); flex-wrap: wrap; }
.bc-segment button { border: 0; background: transparent; color: var(--bc-muted); padding: 7px 13px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; }
.bc-segment button.active { background: rgba(57, 255, 136, 0.14); color: var(--bc-acid); box-shadow: inset 0 0 0 1px rgba(57,255,136,0.25); }
.bc-range { width: 100%; accent-color: var(--bc-acid); }

/* ---------- Chips, badges, progress ---------- */
.bc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  color: var(--bc-text-soft);
  border: 1px solid var(--bc-line);
}
.bc-tag.acid { color: var(--bc-acid); background: rgba(57,255,136,0.1); border-color: rgba(57,255,136,0.3); }
.bc-tag.gold { color: var(--bc-gold); background: rgba(255,209,102,0.1); border-color: rgba(255,209,102,0.3); }
.bc-tag.red { color: var(--bc-red); background: rgba(255,85,119,0.1); border-color: rgba(255,85,119,0.3); }
.bc-tag.cyan { color: var(--bc-cyan); background: rgba(53,230,255,0.1); border-color: rgba(53,230,255,0.3); }
.bc-tag.violet { color: var(--bc-violet); background: rgba(167,139,250,0.12); border-color: rgba(167,139,250,0.3); }
.bc-progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; position: relative; }
.bc-progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bc-acid-dim), var(--bc-acid), var(--bc-lime)); box-shadow: 0 0 14px rgba(57,255,136,0.5); transition: width 0.6s var(--bc-ease); }
.bc-progress.thin { height: 5px; }
.bc-progress.gold > i { background: linear-gradient(90deg, #b8860b, var(--bc-gold)); box-shadow: 0 0 14px rgba(255,209,102,0.4); }
.bc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bc-acid); box-shadow: 0 0 10px var(--bc-acid); display: inline-block; }
.bc-dot.red { background: var(--bc-red); box-shadow: 0 0 10px var(--bc-red); }
.bc-kbd { font-family: var(--bc-mono); font-size: 10px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--bc-line); background: rgba(255,255,255,0.04); }

/* ---------- Stats ---------- */
.bc-stat {
  padding: 16px 18px;
  border-radius: var(--bc-radius);
  border: 1px solid var(--bc-line);
  background: linear-gradient(160deg, rgba(16, 26, 26, 0.9), rgba(7, 12, 13, 0.85));
  position: relative;
  overflow: hidden;
}
.bc-stat::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(57,255,136,0.12), transparent 70%); }
.bc-stat-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bc-muted); display: flex; align-items: center; gap: 6px; }
.bc-stat-value { font-family: var(--bc-mono); font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; margin-top: 7px; letter-spacing: -0.02em; }
.bc-stat-foot { font-size: 11px; color: var(--bc-muted); margin-top: 4px; }
.bc-stat.coin .bc-stat-value { color: var(--bc-gold); }
.bc-stat.xp .bc-stat-value { color: var(--bc-acid); }
.bc-stat.cookie .bc-stat-value { color: var(--bc-lime); }
.bc-stat.cyan .bc-stat-value { color: var(--bc-cyan); }

/* ---------- Tables ---------- */
.bc-table-wrap { overflow-x: auto; border-radius: var(--bc-radius-sm); }
.bc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bc-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bc-muted);
  border-bottom: 1px solid var(--bc-line);
  white-space: nowrap;
}
.bc-table td { padding: 11px 12px; border-bottom: 1px solid rgba(120, 255, 190, 0.055); color: var(--bc-text-soft); }
.bc-table tr:last-child td { border-bottom: 0; }
.bc-table tbody tr { transition: background 0.15s; }
.bc-table tbody tr:hover { background: rgba(57, 255, 136, 0.035); }
.bc-table .num { font-family: var(--bc-mono); text-align: right; white-space: nowrap; }
.bc-table .name { color: var(--bc-text); font-weight: 700; }
.bc-rank { font-family: var(--bc-mono); font-weight: 800; color: var(--bc-muted); }
.bc-rank.top1 { color: var(--bc-gold); }
.bc-rank.top2 { color: #d8e6e1; }
.bc-rank.top3 { color: #e29a5b; }
.bc-rowuser { display: flex; align-items: center; gap: 9px; }
.bc-rowuser .bc-avatar { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }

/* ---------- Game cards ---------- */
.bc-games { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.bc-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--bc-line);
  background: linear-gradient(160deg, rgba(16, 26, 27, 0.92), rgba(7, 11, 13, 0.9));
  color: var(--bc-text);
  overflow: hidden;
  transition: transform 0.28s var(--bc-ease), border-color 0.28s, box-shadow 0.28s;
  min-height: 168px;
}
.bc-game-card::before {
  content: "";
  position: absolute;
  width: 150px; height: 150px;
  right: -55px; top: -55px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--game-accent, rgba(57,255,136,0.2)), transparent 70%);
  transition: transform 0.4s var(--bc-ease);
}
.bc-game-card:hover { transform: translateY(-4px); border-color: rgba(120,255,190,0.35); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.bc-game-card:hover::before { transform: scale(1.3); }
.bc-game-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: rgba(255,255,255,0.045); border: 1px solid var(--bc-line); position: relative; z-index: 1; }
.bc-game-card h3 { font-size: 14.5px; margin-top: auto; position: relative; z-index: 1; }
.bc-game-card p { font-size: 11.5px; color: var(--bc-muted); line-height: 1.4; position: relative; z-index: 1; }
.bc-game-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; position: relative; z-index: 1; }
.bc-game-play { position: absolute; right: 14px; top: 14px; font-size: 11px; font-weight: 800; color: var(--bc-acid); opacity: 0; transform: translateX(-4px); transition: 0.25s; z-index: 1; }
.bc-game-card:hover .bc-game-play { opacity: 1; transform: none; }

.bc-list { display: flex; flex-direction: column; gap: 2px; }
.bc-list-row { display: flex; align-items: center; gap: 11px; padding: 10px 8px; border-radius: 10px; transition: background 0.15s; color: var(--bc-text-soft); }
.bc-list-row:hover { background: rgba(255,255,255,0.03); }
.bc-list-row .ico { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,0.04); border: 1px solid var(--bc-line); }
.bc-list-row .txt { min-width: 0; flex: 1; }
.bc-list-row .txt strong { display: block; color: var(--bc-text); font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-list-row .txt small { display: block; color: var(--bc-muted); font-size: 10.5px; }
.bc-empty { padding: 28px 18px; text-align: center; color: var(--bc-muted); font-size: 12.5px; border: 1px dashed var(--bc-line); border-radius: 12px; }
.bc-empty .big { font-size: 30px; display: block; margin-bottom: 6px; opacity: 0.7; }

/* ---------- Shop / inventory ---------- */
.bc-rarity-normal { --rarity: #9fb6ad; }
.bc-rarity-rare { --rarity: #35e6ff; }
.bc-rarity-epic { --rarity: #a78bfa; }
.bc-rarity-legendary { --rarity: #ffd166; }
.bc-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--rarity, #9fb6ad) 32%, transparent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--rarity, #9fb6ad) 8%, #0b1213), #070b0c);
  overflow: hidden;
  transition: transform 0.25s var(--bc-ease), box-shadow 0.25s;
}
.bc-item:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.bc-item::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--rarity, #9fb6ad) 18%, transparent), transparent 70%); pointer-events: none; }
.bc-item-ico {
  width: 100%;
  aspect-ratio: 1.5;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 42px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rarity, #9fb6ad) 25%, transparent), rgba(0,0,0,0.25));
  border: 1px solid color-mix(in srgb, var(--rarity, #9fb6ad) 25%, transparent);
  position: relative;
  z-index: 1;
}
.bc-item h3 { font-size: 13px; position: relative; z-index: 1; }
.bc-item p { font-size: 10.5px; color: var(--bc-muted); line-height: 1.4; position: relative; z-index: 1; min-height: 29px; }
.bc-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; position: relative; z-index: 1; }
.bc-price { font-family: var(--bc-mono); font-size: 12.5px; font-weight: 800; color: var(--bc-gold); display: inline-flex; align-items: center; gap: 4px; }
.bc-price s { color: var(--bc-muted); font-size: 10px; }
.bc-owned { position: absolute; top: 9px; right: 9px; z-index: 2; }

/* ---------- Casino ---------- */
.bc-casino-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 13px; }
.bc-casino-card {
  display: flex; flex-direction: column; gap: 7px; padding: 15px;
  border-radius: 14px; border: 1px solid var(--bc-line);
  background: linear-gradient(160deg, rgba(20,16,10,0.85), rgba(8,10,10,0.9));
  color: var(--bc-text); position: relative; overflow: hidden;
  transition: transform 0.25s var(--bc-ease), border-color 0.25s;
}
.bc-casino-card:hover { transform: translateY(-3px); border-color: rgba(255,209,102,0.4); }
.bc-casino-card .ico { font-size: 26px; }
.bc-casino-card h3 { font-size: 13.5px; }
.bc-casino-card p { font-size: 10.5px; color: var(--bc-muted); }
.bc-casino-card .bc-tag { align-self: flex-start; margin-top: auto; }

.bc-casino { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
.bc-casino-stage {
  position: relative;
  min-height: 440px;
  padding: clamp(16px, 3vw, 28px);
  border-radius: var(--bc-radius-lg);
  border: 1px solid rgba(255, 209, 102, 0.18);
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(255, 209, 102, 0.09), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(57, 255, 136, 0.05), transparent 70%),
    linear-gradient(170deg, #0d1110, #05080a 75%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bc-casino-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.16;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 78%);
}
.bc-casino-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.bc-casino-top h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.bc-casino-stage .bc-table-result {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 14px;
}
.bc-casino-side { display: flex; flex-direction: column; gap: 14px; }
.bc-casino-result {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid var(--bc-line);
  background: rgba(0,0,0,0.35);
  font-size: 13px;
  color: var(--bc-text-soft);
  position: relative; z-index: 1;
  min-height: 52px;
  display: flex; align-items: center; gap: 10px;
}
.bc-casino-result.win { border-color: rgba(57,255,136,0.4); color: var(--bc-acid); background: rgba(57,255,136,0.07); }
.bc-casino-result.lose { border-color: rgba(255,85,119,0.3); color: #ff8aa2; background: rgba(255,85,119,0.05); }
.bc-casino-result .big { font-family: var(--bc-mono); font-weight: 800; font-size: 16px; }
.bc-bet-box { padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.bc-bet-input { display: flex; gap: 8px; }
.bc-bet-input .bc-input { font-family: var(--bc-mono); font-weight: 800; font-size: 15px; text-align: right; }
.bc-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bc-quick button { border: 1px solid var(--bc-line); background: rgba(255,255,255,0.03); color: var(--bc-text-soft); border-radius: 8px; padding: 7px 0; font-size: 10.5px; cursor: pointer; font-family: var(--bc-mono); }
.bc-quick button:hover { border-color: var(--bc-acid); color: var(--bc-acid); }
.bc-choice-row { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.bc-choice {
  min-height: 38px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--bc-line); background: rgba(255,255,255,0.035);
  color: var(--bc-text-soft); font-weight: 700; font-size: 12px;
  transition: 0.18s;
}
.bc-choice:hover { border-color: var(--bc-line-strong); color: var(--bc-text); }
.bc-choice.active { background: rgba(57,255,136,0.14); border-color: rgba(57,255,136,0.5); color: var(--bc-acid); }
.bc-choice.red.active { background: rgba(255,85,119,0.18); border-color: rgba(255,85,119,0.55); color: #ff8aa2; }
.bc-choice.gold.active { background: rgba(255,209,102,0.16); border-color: rgba(255,209,102,0.55); color: var(--bc-gold); }

.bc-reels { display: flex; gap: 14px; justify-content: center; }
.bc-reel {
  width: clamp(74px, 12vw, 112px); aspect-ratio: 0.86; border-radius: 15px;
  border: 1px solid rgba(255,209,102,0.3);
  background: linear-gradient(180deg, #f7f0d8, #d8cba6);
  color: #1a1408; display: grid; place-items: center; font-size: clamp(38px, 7vw, 58px);
  box-shadow: inset 0 0 24px rgba(120, 80, 0, 0.25), 0 10px 30px rgba(0,0,0,0.45);
  overflow: hidden;
}
.bc-reel.spin { animation: bc-reel 0.3s linear infinite; }
.bc-coin {
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd166 45%, #a86e00 100%);
  border: 4px solid #ffe9a3; display: grid; place-items: center;
  color: #4a3100; font-weight: 900; font-size: 15px;
  box-shadow: 0 14px 40px rgba(255, 209, 102, 0.3), inset 0 0 22px rgba(140,90,0,0.4);
  transform-style: preserve-3d;
}
.bc-coin.flip { animation: bc-coinflip 1.4s var(--bc-ease); }
.bc-card-hand { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bc-playing-card {
  width: 66px; height: 94px; border-radius: 9px; background: linear-gradient(160deg, #fbfbf5, #dfe4d6);
  color: #111; display: flex; flex-direction: column; justify-content: space-between;
  padding: 7px; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.6); font-size: 15px;
}
.bc-playing-card.red { color: #c31b3d; }
.bc-playing-card .pip { font-size: 26px; align-self: center; line-height: 1; }
.bc-playing-card.back { background: repeating-linear-gradient(45deg, #0f3d2b 0 6px, #0a2a1e 6px 12px); border-color: #1f7a55; }
.bc-dice-row { display: flex; gap: 14px; justify-content: center; }
.bc-die {
  width: 66px; height: 66px; border-radius: 13px; background: linear-gradient(150deg, #f7fff9, #cfd8d0);
  color: #0a1410; display: grid; place-items: center; font-size: 38px; font-weight: 900;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(255,255,255,0.6);
  font-family: var(--bc-mono);
}
.bc-die.roll { animation: bc-roll 0.5s var(--bc-ease); }
.bc-mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 360px; margin: 0 auto; width: 100%; }
.bc-mine-tile {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--bc-line);
  background: linear-gradient(160deg, #122022, #0a1112); color: var(--bc-text);
  display: grid; place-items: center; font-size: 22px; cursor: pointer; transition: 0.18s;
}
.bc-mine-tile:hover { border-color: var(--bc-acid); transform: translateY(-2px); }
.bc-mine-tile.revealed { background: rgba(57, 255, 136, 0.1); border-color: rgba(57,255,136,0.4); }
.bc-mine-tile.bomb { background: rgba(255, 85, 119, 0.18); border-color: rgba(255,85,119,0.5); }
.bc-mine-tile:disabled { cursor: default; }
.bc-wheel-wrap { position: relative; width: clamp(210px, 30vw, 290px); aspect-ratio: 1; margin: 0 auto; }
.bc-wheel-disc {
  width: 100%; height: 100%; border-radius: 50%;
  border: 8px solid #16231f;
  background: conic-gradient(#ff5577 0 30deg, #111 30deg 60deg, #ff5577 60deg 90deg, #111 90deg 120deg, #ff5577 120deg 150deg, #111 150deg 180deg, #39ff88 180deg 210deg, #111 210deg 240deg, #ff5577 240deg 270deg, #111 270deg 300deg, #ff5577 300deg 330deg, #111 330deg 360deg);
  box-shadow: 0 0 40px rgba(0,0,0,0.6), inset 0 0 60px rgba(0,0,0,0.5);
  transition: transform 4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.bc-wheel-pin { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); font-size: 22px; color: var(--bc-acid); z-index: 3; text-shadow: 0 0 10px rgba(57,255,136,0.6); }
.bc-wheel-center { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--bc-mono); font-size: 17px; font-weight: 900; color: var(--bc-text); pointer-events: none; }
.bc-wheel-center span { background: rgba(4,8,10,0.9); padding: 14px 16px; border-radius: 50%; border: 1px solid var(--bc-line-strong); }

.bc-multiplier { font-family: var(--bc-mono); font-weight: 900; font-size: clamp(40px, 8vw, 68px); letter-spacing: -0.04em; color: var(--bc-acid); text-shadow: 0 0 34px rgba(57,255,136,0.4); }
.bc-multiplier.crashed { color: var(--bc-red); text-shadow: 0 0 34px rgba(255,85,119,0.4); }
.bc-plinko { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bc-plinko-row { display: flex; gap: 4px; }
.bc-plinko-pin { width: 10px; height: 10px; border-radius: 50%; background: rgba(57,255,136,0.25); box-shadow: 0 0 8px rgba(57,255,136,0.25); }
.bc-plinko-slots { display: flex; gap: 4px; margin-top: 8px; }
.bc-plinko-slot { min-width: 30px; padding: 4px 5px; text-align: center; border-radius: 6px; font-size: 9.5px; font-family: var(--bc-mono); background: rgba(57,255,136,0.08); border: 1px solid var(--bc-line); color: var(--bc-acid); }
.bc-horse-track { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 520px; margin: 0 auto; }
.bc-horse-lane { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bc-horse-lane .lane { flex: 1; height: 26px; border-radius: 7px; background: rgba(255,255,255,0.04); border: 1px solid var(--bc-line); position: relative; overflow: hidden; }
.bc-horse-lane .runner { position: absolute; top: 2px; left: 0; font-size: 18px; transition: left 0.25s linear; }
.bc-horse-lane .lane::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: repeating-linear-gradient(0deg, #fff 0 4px, #000 4px 8px); opacity: 0.5; }
.bc-keno-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; max-width: 440px; margin: 0 auto; width: 100%; }
.bc-keno-num { aspect-ratio: 1; border-radius: 7px; border: 1px solid var(--bc-line); background: rgba(255,255,255,0.03); color: var(--bc-text-soft); font-family: var(--bc-mono); font-size: 11px; cursor: pointer; }
.bc-keno-num.picked { background: rgba(57,255,136,0.18); color: var(--bc-acid); border-color: rgba(57,255,136,0.5); }
.bc-keno-num.drawn { background: rgba(53,230,255,0.16); color: var(--bc-cyan); border-color: rgba(53,230,255,0.45); }
.bc-keno-num.hit { background: rgba(255,209,102,0.2); color: var(--bc-gold); border-color: rgba(255,209,102,0.55); }
.bc-bingo-card { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; max-width: 320px; margin: 0 auto; width: 100%; }
.bc-bingo-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,0.035); border: 1px solid var(--bc-line); font-family: var(--bc-mono); font-size: 12px; }
.bc-bingo-cell.marked { background: rgba(57,255,136,0.16); color: var(--bc-acid); border-color: rgba(57,255,136,0.5); }
.bc-scratch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 270px; margin: 0 auto; width: 100%; }
.bc-scratch-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(150deg, #20302c, #0b1212); border: 1px solid var(--bc-line); font-size: 32px; }
.bc-scratch-cell.revealed { background: rgba(57,255,136,0.08); border-color: rgba(57,255,136,0.35); animation: bc-pop 0.4s var(--bc-ease); }

/* ---------- Modals, toast, notifications ---------- */
.bc-modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 18px; background: rgba(1, 3, 4, 0.75); backdrop-filter: blur(8px);
  animation: bc-fade 0.2s ease;
}
.bc-modal-card {
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  border-radius: var(--bc-radius-lg); border: 1px solid var(--bc-line-strong);
  background: linear-gradient(165deg, #0e181a, #070b0c);
  box-shadow: var(--bc-shadow); padding: 22px; position: relative;
  animation: bc-pop 0.28s var(--bc-ease);
}
.bc-modal-card.wide { width: min(920px, 100%); }
.bc-modal-close { position: absolute; top: 12px; right: 12px; }
.bc-modal h2 { font-size: 18px; margin-bottom: 4px; padding-right: 30px; }
.bc-modal p.bc-sub { margin-bottom: 14px; }
.bc-modal-foot { display: flex; gap: 9px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

.bc-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.bc-toast {
  display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--bc-line-strong);
  background: rgba(10, 18, 19, 0.96); color: var(--bc-text); font-size: 12.5px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5); animation: bc-slide 0.3s var(--bc-ease);
}
.bc-toast.success { border-color: rgba(57,255,136,0.45); }
.bc-toast.error { border-color: rgba(255,85,119,0.45); }
.bc-toast .ico { font-size: 16px; }
.bc-toast strong { display: block; font-size: 12px; }
.bc-toast small { color: var(--bc-muted); font-size: 11px; }

.bc-notice {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 12px; border: 1px solid rgba(53,230,255,0.3);
  background: rgba(53,230,255,0.06); color: var(--bc-text-soft); font-size: 12px;
  margin-bottom: 16px;
}
.bc-notice.acid { border-color: rgba(57,255,136,0.3); background: rgba(57,255,136,0.06); }

/* ---------- Tabs ---------- */
.bc-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--bc-line); margin-bottom: 18px; scrollbar-width: none; }
.bc-tabs::-webkit-scrollbar { display: none; }
.bc-tabs button {
  border: 0; background: transparent; color: var(--bc-muted); cursor: pointer;
  padding: 10px 14px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: 0.2s;
}
.bc-tabs button:hover { color: var(--bc-text); }
.bc-tabs button.active { color: var(--bc-acid); border-bottom-color: var(--bc-acid); }

/* ---------- Auth / landing ---------- */
.bc-landing { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }
.bc-land-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(18px, 4vw, 52px); }
.bc-land-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px clamp(18px, 4vw, 52px) 70px; }
.bc-land-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 4vw, 56px) 0; }
.bc-land-title { font-size: clamp(40px, 6.6vw, 84px); line-height: 0.94; letter-spacing: -0.045em; font-weight: 900; }
.bc-land-title span { color: var(--bc-acid); text-shadow: 0 0 60px rgba(57,255,136,0.35); }
.bc-land-lead { color: var(--bc-text-soft); font-size: clamp(13px, 1.3vw, 16px); max-width: 50ch; margin-top: 18px; }
.bc-land-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.bc-land-stats { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.bc-land-stat strong { display: block; font-family: var(--bc-mono); font-size: 22px; color: var(--bc-acid); }
.bc-land-stat span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bc-muted); }
.bc-auth-card {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--bc-radius-lg);
  border: 1px solid var(--bc-line-strong);
  background: linear-gradient(165deg, rgba(15, 25, 26, 0.96), rgba(6, 10, 11, 0.96));
  box-shadow: var(--bc-shadow), 0 0 60px rgba(57,255,136,0.06);
  position: relative;
  overflow: hidden;
}
.bc-auth-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--bc-acid), transparent); }
.bc-auth-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,0.35); border: 1px solid var(--bc-line); margin: 14px 0 18px; }
.bc-auth-tabs button { flex: 1; border: 0; background: transparent; color: var(--bc-muted); padding: 9px; border-radius: 9px; font-weight: 800; font-size: 12px; cursor: pointer; }
.bc-auth-tabs button.active { background: rgba(57,255,136,0.14); color: var(--bc-acid); }
.bc-auth-form { display: flex; flex-direction: column; gap: 11px; }
.bc-auth-form .bc-input { min-height: 46px; }
.bc-auth-message { min-height: 20px; font-size: 11.5px; color: var(--bc-red); }
.bc-auth-message.ok { color: var(--bc-acid); }
.bc-auth-note { font-size: 10.5px; color: var(--bc-muted); line-height: 1.5; }
.bc-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bc-feature { padding: 16px; border-radius: 14px; border: 1px solid var(--bc-line); background: rgba(255,255,255,0.02); }
.bc-feature .ico { font-size: 22px; }
.bc-feature h3 { font-size: 13.5px; margin: 8px 0 3px; }
.bc-feature p { font-size: 11px; color: var(--bc-muted); }

/* ---------- Misc ---------- */
.bc-loading { position: fixed; inset: 0; display: grid; place-items: center; z-index: 500; background: var(--bc-bg); gap: 14px; }
.bc-spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(57,255,136,0.16); border-top-color: var(--bc-acid); animation: bc-spin 0.85s linear infinite; }
.bc-skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: bc-shimmer 1.4s infinite; border-radius: 8px; min-height: 12px; }
.bc-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 35; backdrop-filter: blur(3px); }
.bc-mobile-only { display: none; }
.bc-desktop-only { display: initial; }
.bc-hide { display: none !important; }
.bc-scroll-x { overflow-x: auto; }
.bc-nowrap { white-space: nowrap; }
.bc-grow { flex: 1; min-width: 0; }
.bc-divider { height: 1px; background: var(--bc-line); margin: 14px 0; }
.bc-pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-icon-lg { font-size: 28px; line-height: 1; }
.bc-avatar-lg { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; background: linear-gradient(135deg, rgba(57,255,136,0.25), rgba(53,230,255,0.15)); border: 1px solid rgba(57,255,136,0.35); }
.bc-cover { height: 96px; border-radius: 14px; background: linear-gradient(110deg, rgba(57,255,136,0.25), rgba(53,230,255,0.12), transparent); position: relative; overflow: hidden; }
.bc-cover::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.3) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.3; }

.bc-float { animation: bc-float 6s ease-in-out infinite; }
.bc-pulse { animation: bc-pulse 2s ease-in-out infinite; }
.bc-shine { position: relative; overflow: hidden; }
.bc-shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.12), transparent); transform: translateX(-120%); animation: bc-sheen 4.5s var(--bc-ease) infinite; }

/* ---------- Animations ---------- */
@keyframes bc-sheen { 0%, 55% { transform: translateX(-140%); } 90%, 100% { transform: translateX(260%); } }
@keyframes bc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bc-spin { to { transform: rotate(360deg); } }
@keyframes bc-shimmer { to { background-position: -200% 0; } }
@keyframes bc-fade { from { opacity: 0; } }
@keyframes bc-pop { from { opacity: 0; transform: scale(0.94) translateY(8px); } }
@keyframes bc-slide { from { opacity: 0; transform: translateY(12px); } }
@keyframes bc-reel { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
@keyframes bc-coinflip { 0% { transform: rotateY(0); } 50% { transform: rotateY(1440deg) translateY(-40px); } 100% { transform: rotateY(2880deg); } }
@keyframes bc-roll { 0% { transform: rotate(0); } 50% { transform: rotate(200deg) scale(1.1); } 100% { transform: rotate(360deg); } }
@keyframes bc-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes bc-glowPulse { 0%,100% { box-shadow: 0 0 20px rgba(57,255,136,0.18); } 50% { box-shadow: 0 0 46px rgba(57,255,136,0.4); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .bc-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bc-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-casino { grid-template-columns: 1fr; }
  .bc-casino-side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .bc-shell { grid-template-columns: 1fr; }
  .bc-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw);
    transform: translateX(-102%); transition: transform 0.32s var(--bc-ease);
    box-shadow: 30px 0 60px rgba(0,0,0,0.5);
  }
  .bc-sidebar.open { transform: none; }
  .bc-menu-btn { display: grid; }
  .bc-hero-inner { grid-template-columns: 1fr; }
  .bc-hero-art { display: none; }
  .bc-top-stats .bc-chip.xp { display: none; }
}
@media (max-width: 760px) {
  .bc-topbar { padding: 11px 14px; gap: 10px; }
  .bc-content { padding: 18px 14px 50px; }
  .bc-grid.cols-2, .bc-grid.cols-3, .bc-grid.cols-4, .bc-grid.cols-5 { grid-template-columns: 1fr; }
  .bc-grid.cols-2.tight { grid-template-columns: 1fr 1fr; }
  .bc-land-grid { grid-template-columns: 1fr; }
  .bc-land-title { font-size: clamp(38px, 12vw, 58px); }
  .bc-casino-side { grid-template-columns: 1fr; }
  .bc-casino-stage { min-height: 380px; }
  .bc-top-stats .bc-chip.cookies, .bc-top-stats .bc-chip.level, .bc-chip.streak { display: none; }
  .bc-user-name, .bc-user-lvl { display: none; }
  .bc-user { padding: 4px; height: 40px; }
  .bc-page-head p { display: none; }
  .bc-hide-mobile { display: none !important; }
  .bc-table th, .bc-table td { padding: 8px 9px; }
  .bc-reel { width: 72px; }
  .bc-keno-grid { grid-template-columns: repeat(6, 1fr); }
  .bc-toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (max-width: 460px) {
  .bc-quick { grid-template-columns: repeat(2, 1fr); }
  .bc-card-pad { padding: 15px; }
  .bc-land-stats { gap: 14px; }
  .bc-modal-card { padding: 18px; }
  .bc-reels { gap: 8px; }
  .bc-reel { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   SPYREX v18 · Page components
   ========================================================= */
.bc-daily-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 16px 0; }
.bc-daily-day {
  position: relative; border-radius: 10px; border: 1px solid var(--bc-line);
  background: rgba(255,255,255,0.025); padding: 9px 6px; text-align: center;
  display: flex; flex-direction: column; gap: 2px; min-height: 74px; justify-content: center;
}
.bc-daily-day span { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bc-muted); }
.bc-daily-day strong { font-family: var(--bc-mono); font-size: 11px; color: var(--bc-gold); }
.bc-daily-day small { font-size: 9px; color: var(--bc-muted); }
.bc-daily-day.claimed { border-color: rgba(57,255,136,0.3); background: rgba(57,255,136,0.06); }
.bc-daily-day.claimable { border-color: rgba(57,255,136,0.6); box-shadow: 0 0 22px rgba(57,255,136,0.18); animation: bc-glowPulse 2.4s ease-in-out infinite; }
.bc-daily-day em { position: absolute; top: 4px; right: 6px; font-style: normal; color: var(--bc-acid); font-size: 10px; }
.bc-challenge {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 12px; border: 1px solid var(--bc-line); background: rgba(255,255,255,0.02);
}
.bc-challenge.done { opacity: 0.65; }
.bc-challenge-ico { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(57,255,136,0.09); border: 1px solid var(--bc-line); font-size: 19px; }
.bc-challenge strong { font-size: 12.5px; }
.bc-challenge p { font-size: 10.5px; color: var(--bc-muted); margin: 1px 0 5px; }
.bc-challenge small { font-size: 9.5px; color: var(--bc-muted); display: block; margin-top: 4px; }
.bc-list-ava { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,0.04); border: 1px solid var(--bc-line); font-size: 16px; }
.bc-list-row .txt small { display: block; font-size: 10px; color: var(--bc-muted); }
.bc-rank.top { color: var(--bc-acid); }

/* Cookie Clicker */
.bc-cookie-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 18px; align-items: start; }
.bc-cookie-stage {
  position: relative; min-height: 420px; padding: 26px; border-radius: var(--bc-radius-lg);
  border: 1px solid var(--bc-line-strong);
  background: radial-gradient(90% 90% at 50% 20%, rgba(255,209,102,0.12), transparent 60%), linear-gradient(170deg, #121a15, #070b0a);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
}
.bc-cookie-stage::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 30px 30px; opacity: 0.18; pointer-events: none; }
.bc-cookie-count { font-family: var(--bc-mono); font-weight: 900; font-size: clamp(28px, 5vw, 46px); letter-spacing: -0.03em; color: #ffe9a3; text-shadow: 0 0 34px rgba(255,209,102,0.3); z-index: 1; }
.bc-cookie-rate { font-size: 12px; color: var(--bc-muted); z-index: 1; }
.bc-cookie-btn {
  position: relative; z-index: 2; width: clamp(180px, 24vw, 230px); aspect-ratio: 1; border: 0; background: transparent;
  cursor: pointer; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.55)); transition: transform 0.08s ease;
}
.bc-cookie-btn:active { transform: scale(0.94); }
.bc-cookie-btn span { font-size: clamp(96px, 14vw, 150px); line-height: 1; display: block; animation: bc-float 5s ease-in-out infinite; }
.bc-cookie-btn.crit span { animation: bc-pulse 0.4s ease infinite; filter: drop-shadow(0 0 26px rgba(255,209,102,0.8)); }
.bc-cookie-burst { position: absolute; font-family: var(--bc-mono); font-weight: 900; color: #ffe9a3; pointer-events: none; animation: bc-burst 0.85s ease-out forwards; z-index: 5; }
@keyframes bc-burst { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-70px) scale(1.25); } }
.bc-cookie-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 16px; z-index: 1; }
.bc-cookie-stat { text-align: center; padding: 8px; border-radius: 10px; border: 1px solid var(--bc-line); background: rgba(0,0,0,0.28); }
.bc-cookie-stat strong { display: block; font-family: var(--bc-mono); font-size: 13px; color: var(--bc-gold); }
.bc-cookie-stat span { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bc-muted); }
.bc-cookie-side { display: flex; flex-direction: column; gap: 14px; }
.bc-cookie-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: rgba(0,0,0,0.35); border: 1px solid var(--bc-line); }
.bc-cookie-tabs button { flex: 1; border: 0; background: transparent; color: var(--bc-muted); padding: 7px; border-radius: 8px; font-size: 11px; font-weight: 800; cursor: pointer; }
.bc-cookie-tabs button.active { background: rgba(255,209,102,0.14); color: var(--bc-gold); }
.bc-build-list { display: flex; flex-direction: column; gap: 7px; max-height: 460px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-right: 2px; scrollbar-width: thin; }
@media (max-width: 760px) {
  /* Auf Mobilgeräten scrollt die Seite statt einer verschachtelten Liste. */
  .bc-build-list { max-height: none; overflow: visible; overscroll-behavior: auto; padding-right: 0; }
}
.bc-build-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 11px;
  border: 1px solid var(--bc-line); background: rgba(255,255,255,0.02); cursor: pointer; text-align: left; width: 100%; color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.bc-build-row:hover:not(:disabled) { border-color: rgba(255,209,102,0.4); background: rgba(255,209,102,0.05); }
.bc-build-row:disabled { opacity: 0.45; cursor: not-allowed; }
.bc-build-row .ico { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,0.04); font-size: 18px; }
.bc-build-row .txt { flex: 1; min-width: 0; }
.bc-build-row .txt strong { font-size: 11.5px; display: block; }
.bc-build-row .txt small { font-size: 9.5px; color: var(--bc-muted); display: block; }
.bc-build-row .cost { font-family: var(--bc-mono); font-size: 10.5px; color: var(--bc-gold); white-space: nowrap; }
.bc-build-row .owned { font-family: var(--bc-mono); font-size: 12px; font-weight: 800; color: var(--bc-acid); min-width: 26px; text-align: right; }
.bc-golden {
  position: fixed; z-index: 90; width: 94px; height: 94px; border-radius: 50%; border: 3px solid #ffe9a3;
  background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd166 45%, #b87900); cursor: pointer;
  box-shadow: 0 0 44px rgba(255,209,102,0.65); display: grid; place-items: center; font-size: 44px;
  animation: bc-goldenPulse 1.2s ease-in-out infinite;
}
@keyframes bc-goldenPulse { 0%,100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.09) rotate(4deg); } }
.bc-prestige-ring { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; border: 6px solid rgba(57,255,136,0.25); background: radial-gradient(circle, rgba(57,255,136,0.14), transparent 70%); margin: 0 auto 10px; }
.bc-prestige-ring strong { font-family: var(--bc-mono); font-size: 25px; color: var(--bc-acid); }
.bc-prestige-ring span { font-size: 9px; letter-spacing: 0.12em; color: var(--bc-muted); text-transform: uppercase; }

/* Shop / inventory filters */
.bc-filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.bc-filterbar .bc-search { flex: 1; min-width: 180px; }
.bc-search { position: relative; }
.bc-search input { width: 100%; padding-left: 34px; }
.bc-search::before { content: "🔍"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 12px; opacity: 0.6; }
.bc-item .bc-item-foot { margin-top: auto; }
.bc-item-fav { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0,0,0,0.4); border: 1px solid var(--bc-line); color: var(--bc-muted); border-radius: 8px; width: 27px; height: 27px; cursor: pointer; font-size: 12px; }
.bc-item-fav.active { color: var(--bc-gold); border-color: rgba(255,209,102,0.5); }
.bc-price s { color: var(--bc-muted); font-weight: 400; }

/* Leaderboard */
.bc-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; margin-bottom: 18px; }
.bc-podium-card { text-align: center; padding: 16px 12px; border-radius: 16px; border: 1px solid var(--bc-line); background: linear-gradient(170deg, rgba(255,209,102,0.08), rgba(255,255,255,0.01)); }
.bc-podium-card.first { padding-top: 26px; border-color: rgba(255,209,102,0.45); box-shadow: 0 0 50px rgba(255,209,102,0.12); }
.bc-podium-card .bc-avatar { width: 52px; height: 52px; font-size: 25px; margin: 0 auto 8px; }
.bc-podium-card strong { display: block; font-size: 13px; }
.bc-podium-card .val { font-family: var(--bc-mono); font-size: 17px; color: var(--bc-gold); margin-top: 3px; }
.bc-podium-card .medal { font-size: 24px; }

/* Profile */
.bc-profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bc-profile-head .bc-avatar { width: 78px; height: 78px; font-size: 38px; border-radius: 22px; }
.bc-profile-meta { flex: 1; min-width: 180px; }
.bc-profile-meta h2 { font-size: 22px; }
.bc-profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.bc-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bc-ach { padding: 11px; border-radius: 11px; border: 1px solid var(--bc-line); background: rgba(255,255,255,0.02); }
.bc-ach.locked { opacity: 0.4; filter: grayscale(0.7); }
.bc-ach strong { font-size: 11.5px; display: block; }
.bc-ach small { font-size: 9.5px; color: var(--bc-muted); }
.bc-ach .ico { font-size: 19px; }

/* Admin */
.bc-admin-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: start; }
.bc-admin-nav { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 14px; }
.bc-admin-nav button { text-align: left; border: 1px solid transparent; background: transparent; color: var(--bc-muted); padding: 8px 11px; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; gap: 8px; }
.bc-admin-nav button:hover { color: var(--bc-text); background: rgba(255,255,255,0.04); }
.bc-admin-nav button.active { color: var(--bc-acid); background: rgba(57,255,136,0.1); border-color: rgba(57,255,136,0.25); }
.bc-admin-panel { min-width: 0; }
.bc-admin-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.bc-admin-bar .bc-search { flex: 1; min-width: 180px; }
.bc-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 10px; }
.bc-chart i { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--bc-acid), rgba(57,255,136,0.15)); opacity: 0.75; }
.bc-chart i:hover { opacity: 1; }
.bc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bc-form-grid .full { grid-column: 1 / -1; }

/* Casino helpers */
.bc-casino-stage { display: flex; flex-direction: column; }
.bc-casino-table { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; min-height: 250px; }
.bc-roulette-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; width: 100%; max-width: 560px; }
.bc-roulette-num { aspect-ratio: 1; border-radius: 5px; display: grid; place-items: center; font-family: var(--bc-mono); font-size: 10px; border: 1px solid rgba(255,255,255,0.12); cursor: pointer; }
.bc-roulette-num.red { background: rgba(255,85,119,0.2); }
.bc-roulette-num.black { background: rgba(255,255,255,0.07); }
.bc-roulette-num.green { background: rgba(57,255,136,0.22); }
.bc-roulette-num.active { outline: 2px solid var(--bc-gold); }
.bc-roulette-ball { font-size: 40px; animation: bc-spin 1.6s linear; }
.bc-casino-history { display: flex; flex-direction: column; gap: 5px; max-height: 250px; overflow-y: auto; }
.bc-casino-history .row { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,0.025); border: 1px solid var(--bc-line); }
.bc-casino-history .row.win { border-color: rgba(57,255,136,0.25); }
.bc-casino-history .row.lose { border-color: rgba(255,85,119,0.18); }
.bc-hilo-cards { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.bc-slot-machine { display: flex; gap: 8px; justify-content: center; }
.bc-baccarat-cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.bc-baccarat-hand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bc-sicbo-dice { display: flex; gap: 10px; justify-content: center; }
.bc-keno-info { font-size: 11px; color: var(--bc-muted); text-align: center; }

@media (max-width: 900px) {
  .bc-cookie-wrap { grid-template-columns: 1fr; }
  .bc-admin-grid { grid-template-columns: 1fr; }
  .bc-admin-nav { flex-direction: row; overflow-x: auto; position: static; }
  .bc-admin-nav button { white-space: nowrap; }
  .bc-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bc-daily-track { grid-template-columns: repeat(4, 1fr); }
  .bc-podium { gap: 7px; }
  .bc-podium-card { padding: 12px 6px; }
  .bc-podium-card .bc-avatar { width: 42px; height: 42px; font-size: 20px; }
  .bc-cookie-stats { grid-template-columns: 1fr; }
  .bc-roulette-grid { grid-template-columns: repeat(7, 1fr); }
  .bc-admin-bar .bc-search { min-width: 120px; }
}

/* Memory / Reaction / Settings */
.bc-memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 340px; margin: 0 auto; }
.bc-memory-card { aspect-ratio: 1; border-radius: 11px; border: 1px solid var(--bc-line-strong); background: linear-gradient(160deg, #162421, #0a1112); color: var(--bc-text); font-size: 26px; cursor: pointer; transition: 0.18s; }
.bc-memory-card:hover { border-color: rgba(57,255,136,0.5); }
.bc-memory-card.open, .bc-memory-card.matched { background: rgba(57,255,136,0.12); border-color: rgba(57,255,136,0.45); }
.bc-memory-card.matched { opacity: 0.55; }
.bc-reaction { transition: background 0.15s; }
.bc-theme-choice { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--bc-line); background: rgba(255,255,255,0.02); color: var(--bc-text); cursor: pointer; }
.bc-theme-choice.active { border-color: rgba(57,255,136,0.55); box-shadow: 0 0 24px rgba(57,255,136,0.12); }
.bc-theme-choice strong { font-size: 13px; }
.bc-theme-choice small { font-size: 10px; color: var(--bc-muted); }
.bc-theme-preview { height: 64px; border-radius: 9px; border: 1px solid var(--bc-line); margin-bottom: 6px; }
.bc-theme-preview.dark { background: radial-gradient(circle at 30% 30%, rgba(57,255,136,0.35), transparent 60%), #04070a; }
.bc-theme-preview.light { background: linear-gradient(135deg, #e8f3ec, #ffffff); }
html[data-theme="light"] {
  --bc-bg: #eef4ef; --bc-bg-2: #e2ebe4; --bc-panel: #ffffff; --bc-panel-2: #f5faf6;
  --bc-line: rgba(10, 40, 25, 0.12); --bc-line-strong: rgba(10, 40, 25, 0.24);
  --bc-text: #08120d; --bc-text-soft: #2c4036; --bc-muted: #61766b;
  --bc-acid: #0a8f4d; --bc-acid-dim: #0a6b3d; --bc-gold: #a87400; --bc-cyan: #087d93;
  --bc-shadow: 0 20px 50px rgba(10, 40, 25, 0.14);
}
html[data-theme="light"] body, html[data-theme="light"] .bc-body { background: var(--bc-bg); color: var(--bc-text); }
html[data-theme="light"] .bc-sidebar, html[data-theme="light"] .bc-topbar, html[data-theme="light"] .bc-card,
html[data-theme="light"] .bc-stat, html[data-theme="light"] .bc-game-card, html[data-theme="light"] .bc-casino-card,
html[data-theme="light"] .bc-item, html[data-theme="light"] .bc-casino-stage, html[data-theme="light"] .bc-cookie-stage {
  background: #ffffff !important; color: var(--bc-text);
}
html[data-theme="light"] .bc-input, html[data-theme="light"] .bc-select, html[data-theme="light"] .bc-textarea { background: #f4f8f5; color: var(--bc-text); }

/* Admin additions */
.bc-tag.danger { color: var(--bc-red); background: rgba(255,85,119,0.1); border-color: rgba(255,85,119,0.3); }
.bc-chart.cyan i { background: linear-gradient(180deg, var(--bc-cyan), rgba(53,230,255,0.12)); }
.bc-code-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bc-code-list .bc-tag { font-size: 13px; padding: 7px 10px; letter-spacing: 0.08em; }
.bc-admin-panel > .bc-card-pad .bc-table-wrap { margin-top: 2px; }
.bc-admin-nav .bc-side-card { padding: 10px; font-size: 11px; }
@media (max-width: 900px) {
  .bc-admin-nav .bc-side-card { display: none; }
}

/* =========================================================
   SPYREX · Kosmetik (Rahmen, Effekte, Designs)
   ========================================================= */

.bc-avatar {
  transition: box-shadow 0.25s var(--bc-ease), border-color 0.25s var(--bc-ease), transform 0.25s var(--bc-ease);
  background-size: cover;
}

/* Rahmen */
.frame-gold, .bc-avatar.frame-gold { border-color: #ffd166 !important; box-shadow: 0 0 22px rgba(255, 209, 102, 0.6); }
.frame-neon, .bc-avatar.frame-neon { border-color: #35e6ff !important; box-shadow: 0 0 24px rgba(53, 230, 255, 0.65); }
.frame-frost, .bc-avatar.frame-frost { border-color: #bfe9ff !important; box-shadow: 0 0 22px rgba(191, 233, 255, 0.6); }
.frame-lava, .bc-avatar.frame-lava { border-color: #ff7a59 !important; box-shadow: 0 0 26px rgba(255, 85, 119, 0.7); }
.frame-royal, .bc-avatar.frame-royal { border-color: #a78bfa !important; box-shadow: 0 0 26px rgba(167, 139, 250, 0.7); }
.frame-cyber, .bc-avatar.frame-cyber { border-color: #35e6ff !important; box-shadow: 0 0 0 1px rgba(53,230,255,0.5), 0 0 26px rgba(53,230,255,0.45); }
.frame-ember, .bc-avatar.frame-ember { border-color: #ff8a3d !important; box-shadow: 0 0 24px rgba(255, 138, 61, 0.65); }
.frame-void, .bc-avatar.frame-void { border-color: #6d28d9 !important; box-shadow: 0 0 30px rgba(109, 40, 217, 0.8), inset 0 0 18px rgba(0,0,0,0.8); }
.frame-holo, .bc-avatar.frame-holo {
  border-color: transparent !important;
  background-image: linear-gradient(var(--bc-panel-solid), var(--bc-panel-solid)), linear-gradient(120deg, #35e6ff, #a78bfa, #ff5ea8, #ffd166);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 26px rgba(167, 139, 250, 0.5);
}
.frame-candy, .bc-avatar.frame-candy { border-color: #ff9ad5 !important; box-shadow: 0 0 24px rgba(255, 154, 213, 0.6); }
.frame-matrix, .bc-avatar.frame-matrix { border-color: #39ff88 !important; box-shadow: 0 0 26px rgba(57, 255, 136, 0.7); }
.frame-sakura, .bc-avatar.frame-sakura { border-color: #ffb7d5 !important; box-shadow: 0 0 24px rgba(255, 183, 213, 0.65); }
.frame-eternal, .bc-avatar.frame-eternal {
  border-color: transparent !important;
  background-image: linear-gradient(var(--bc-panel-solid), var(--bc-panel-solid)), conic-gradient(from 0deg, #39ff88, #35e6ff, #a78bfa, #ffd166, #39ff88);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 32px rgba(57, 255, 136, 0.55);
  animation: bc-eternal-spin 6s linear infinite;
}
@keyframes bc-eternal-spin { to { filter: hue-rotate(360deg); } }

/* Effekte */
.effect-glow, .bc-avatar.effect-glow { box-shadow: 0 0 30px var(--bc-acid) !important; }
.effect-sparkle, .bc-avatar.effect-sparkle { animation: bc-sparkle 2.6s ease-in-out infinite; }
.effect-aurora, .bc-avatar.effect-aurora {
  border-color: transparent !important;
  box-shadow: 0 0 26px rgba(57,255,136,0.4), 0 0 30px rgba(167,139,250,0.4);
  animation: bc-aurora 5s ease-in-out infinite;
}
.effect-cyber, .bc-avatar.effect-cyber { animation: bc-cyber 1.6s ease-in-out infinite; }
.effect-fire, .bc-avatar.effect-fire { animation: bc-fire 2.1s ease-in-out infinite; }
.effect-void, .bc-avatar.effect-void { animation: bc-void 4s ease-in-out infinite; }
.effect-rain, .bc-avatar.effect-rain { animation: bc-rain 2.4s linear infinite; }
.effect-confetti, .bc-avatar.effect-confetti { animation: bc-confetti 1.8s ease-in-out infinite; }
.effect-galaxy, .bc-avatar.effect-galaxy { animation: bc-galaxy 6s linear infinite; }

@keyframes bc-sparkle {
  0%, 100% { box-shadow: 0 0 14px rgba(57,255,136,0.4); }
  50% { box-shadow: 0 0 34px rgba(57,255,136,0.85); }
}
@keyframes bc-aurora {
  0%, 100% { box-shadow: 0 0 20px rgba(57,255,136,0.45); }
  50% { box-shadow: 0 0 32px rgba(167,139,250,0.65); }
}
@keyframes bc-cyber {
  0%, 100% { box-shadow: 0 0 16px rgba(53,230,255,0.4); }
  50% { box-shadow: 0 0 30px rgba(53,230,255,0.9); }
}
@keyframes bc-fire {
  0%, 100% { box-shadow: 0 0 18px rgba(255,122,89,0.5); }
  50% { box-shadow: 0 0 34px rgba(255,85,119,0.85); }
}
@keyframes bc-void {
  0%, 100% { box-shadow: 0 0 22px rgba(109,40,217,0.55), inset 0 0 14px rgba(0,0,0,0.6); }
  50% { box-shadow: 0 0 34px rgba(109,40,217,0.95), inset 0 0 22px rgba(0,0,0,0.9); }
}
@keyframes bc-rain {
  0%, 100% { box-shadow: 0 0 20px rgba(255,209,102,0.45); }
  50% { box-shadow: 0 0 30px rgba(255,209,102,0.8); }
}
@keyframes bc-confetti {
  0%, 100% { box-shadow: 0 0 18px rgba(255,94,168,0.5); }
  50% { box-shadow: 0 0 32px rgba(57,255,136,0.7); }
}
@keyframes bc-galaxy {
  to { filter: hue-rotate(360deg); box-shadow: 0 0 30px rgba(167,139,250,0.7); }
}

/* Profil-Akzentfarben */
.bc-accent { border: 1px solid var(--bc-line); box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 24px 60px -40px rgba(0,0,0,0.9); }
[data-accent="emerald"] { --bc-user-accent: #39ff88; }
[data-accent="sapphire"] { --bc-user-accent: #38bdf8; }
[data-accent="amethyst"] { --bc-user-accent: #a78bfa; }
[data-accent="crimson"] { --bc-user-accent: #ff5577; }
[data-accent="gold"] { --bc-user-accent: #ffd166; }
[data-accent="turquoise"] { --bc-user-accent: #2dd4bf; }
[data-accent="sunset"] { --bc-user-accent: #fb923c; }
[data-accent="rose"] { --bc-user-accent: #ff9ad5; }
[data-accent="cyber"] { --bc-user-accent: #35e6ff; }
[data-accent="ember"] { --bc-user-accent: #ff8a3d; }
[data-accent="void"] { --bc-user-accent: #8b5cf6; }
[data-accent="holo"] { --bc-user-accent: #ff5ea8; }
[data-accent="candy"] { --bc-user-accent: #ff9ad5; }
[data-accent="matrix"] { --bc-user-accent: #39ff88; }
.bc-accent[data-accent] { border-color: color-mix(in srgb, var(--bc-user-accent) 45%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bc-user-accent) 20%, transparent), 0 26px 70px -42px var(--bc-user-accent); }
.bc-accent[data-accent] .bc-cover { background: radial-gradient(700px 240px at 12% 0%, color-mix(in srgb, var(--bc-user-accent) 28%, transparent), transparent 70%), var(--bc-panel-2); }

/* Cookie Clicker · Forschung, Quests & Fähigkeiten */
.bc-cookie-tabs { flex-wrap: wrap; }
.bc-cookie-tabs button { flex: 1 1 30%; }
.bc-quest-bar { display: block; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.08); margin: 5px 0; overflow: hidden; }
.bc-quest-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bc-acid), #35e6ff); transition: width 0.3s var(--bc-ease); }

/* Inventar · Kosmetik-Vorschau */
.bc-item-ico.bc-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  border-radius: 11px;
  font-size: 42px;
  border-width: 2px;
}
.bc-item[data-accent] { border-color: color-mix(in srgb, var(--bc-user-accent) 45%, var(--bc-line)); }
.bc-item[data-accent] .bc-item-ico { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bc-user-accent) 65%, transparent), 0 0 22px -8px var(--bc-user-accent); }
.effect-bubbles, .bc-avatar.effect-bubbles { animation: bc-bubbles 3.2s ease-in-out infinite; }
@keyframes bc-bubbles {
  0%, 100% { box-shadow: 0 0 16px rgba(53, 230, 255, 0.45); transform: translateY(0); }
  50% { box-shadow: 0 0 30px rgba(53, 230, 255, 0.85); transform: translateY(-2px); }
}

/* Version im Footer */
.bc-version {
  display: inline-block;
  font-family: var(--bc-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--bc-line-strong);
  color: var(--bc-acid);
  background: rgba(57, 255, 136, 0.08);
  vertical-align: 1px;
}

/* Einheitliches Regelwerk / „So geht's“ */
.bc-help {
  margin-top: 16px;
  border: 1px solid var(--bc-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(57,255,136,0.04), rgba(0,0,0,0.18));
  overflow: hidden;
}
.bc-help > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--bc-text);
  list-style: none;
  user-select: none;
}
.bc-help > summary::-webkit-details-marker { display: none; }
.bc-help > summary:hover { background: rgba(57,255,136,0.05); }
.bc-help > summary .bc-help-caret { margin-left: auto; color: var(--bc-acid); transition: transform 0.2s var(--bc-ease); }
.bc-help[open] > summary .bc-help-caret { transform: rotate(180deg); }
.bc-help-body { padding: 2px 16px 16px; border-top: 1px solid var(--bc-line); }
.bc-help-intro { color: var(--bc-muted); font-size: 13px; line-height: 1.6; margin: 12px 0 4px; }
.bc-help-sec { margin-top: 13px; }
.bc-help-sec > strong { display: block; color: var(--bc-acid); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.bc-help-sec > p, .bc-help-sec li { color: var(--bc-muted); font-size: 13px; line-height: 1.65; }
.bc-help-sec > p { margin: 0; }
.bc-help-sec ul { margin: 4px 0 0; padding-left: 18px; }
.bc-help-sec li + li { margin-top: 3px; }
.bc-help-foot { margin: 16px 0 0; padding-top: 11px; border-top: 1px dashed var(--bc-line); color: var(--bc-muted); font-size: 11px; }
.bc-help-teaser {
  display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap;
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--bc-line);
  background: rgba(255,255,255,0.02); margin-top: 16px;
}
.bc-help-teaser p { margin: 0; color: var(--bc-muted); font-size: 13px; }
