/* BGameStore.com - Midnight Indigo Idle, Clicker & Alchemy Suite */
:root {
  --bg: #0b1120;
  --panel: #0f172a;
  --card: #1e293b;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --emerald: #10b981;
  --amber: #f59e0b;
  --sky: #38bdf8;
  --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #1e1b4b 0%, var(--bg) 65%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 14px; }

.site-header {
  background: rgba(11, 17, 32, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: #fff; }
.brand-badge {
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: #052e16;
  padding: 2px 8px;
  border-radius: 7px;
  font-size: 0.88rem;
}
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-link { color: var(--muted); padding: 6px 11px; border-radius: 7px; font-size: 0.9rem; font-weight: 600; }
.nav-link:hover, .nav-link.active { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.nav-link.active { border: 1px solid rgba(16, 185, 129, 0.5); color: var(--emerald); }

.ad-slot { margin: 12px auto; display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; }
.ad-leaderboard { min-height: 90px; max-width: 970px; }
.ad-rectangle { min-height: 250px; max-width: 728px; }
.ad-placeholder {
  width: 100%;
  min-height: inherit;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-shell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}
.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.game-title-wrap h1 { margin: 0; font-size: 1.38rem; }
.game-subtitle { margin: 2px 0 0; font-size: 0.84rem; color: var(--muted); }
.hud-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.84rem;
  color: var(--muted);
}
.stat-pill strong { color: #fff; margin-left: 4px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--card);
  color: #fff;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover:not(:disabled) { background: #334155; }
.btn:disabled { opacity: 0.42; cursor: not-allowed; }
.btn-emerald { background: var(--emerald); color: #052e16; border-color: #34d399; }
.btn-emerald:hover:not(:disabled) { background: #34d399; }
.btn-amber { background: var(--amber); color: #451a03; border-color: #fbbf24; }
.btn-amber:hover:not(:disabled) { background: #fbbf24; }
.toast { min-height: 24px; font-size: 0.88rem; font-weight: 600; color: var(--amber); margin-bottom: 10px; }

/* Spacebar Clicker */
.clicker-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}
.tap-arena {
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.big-counter { font-size: 2.4rem; font-weight: 900; color: var(--emerald); line-height: 1.1; }
.sub-rate { color: var(--muted); font-size: 0.9rem; margin: 4px 0 18px; }
.spacebar-btn {
  width: 100%;
  max-width: 340px;
  height: 82px;
  border-radius: 14px;
  border: 2px solid #475569;
  border-bottom: 8px solid #334155;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
  transition: transform 0.05s ease, border-bottom-width 0.05s ease;
}
.spacebar-btn.pressed, .spacebar-btn:active {
  transform: translateY(4px);
  border-bottom-width: 4px;
  background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
}
.float-pop {
  position: absolute;
  pointer-events: none;
  font-weight: 800;
  color: #34d399;
  animation: floatUp 0.7s ease-out forwards;
}
@keyframes floatUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-48px); }
}

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 460px;
  overflow-y: auto;
}
.shop-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.shop-item strong { display: block; font-size: 0.9rem; }
.shop-item span { font-size: 0.78rem; color: var(--muted); }

/* Tiny Fishing */
.fish-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 16px;
  align-items: start;
}
.fish-canvas-wrap { display: flex; justify-content: center; }
#fish-canvas {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 22%, #0369a1 50%, #0c4a6e 80%, #082f49 100%);
  border: 2px solid #334155;
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  touch-action: none;
  cursor: pointer;
}
.fish-side {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.upg-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

/* Alchemy */
.alch-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}
.alch-workbench {
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.alch-slots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.alch-slot {
  width: 126px;
  height: 86px;
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.alch-slot.filled {
  border-style: solid;
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.14);
}
.alch-tray-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.alch-search {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--panel);
  color: #fff;
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.alch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}
.elem-chip {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--panel);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.elem-chip:hover { border-color: var(--emerald); background: rgba(16, 185, 129, 0.14); }
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--card);
  overflow: hidden;
  margin-top: 6px;
}
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--emerald), var(--sky)); width: 4%; transition: width 0.2s ease; }

.section-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin: 18px 0;
}
.section-card h2 { margin-top: 0; font-size: 1.28rem; color: var(--emerald); }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.variant-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  color: #fff;
}
.variant-card:hover { border-color: var(--emerald); text-decoration: none; }
.variant-card p { margin: 6px 0 0; font-size: 0.86rem; color: var(--muted); }
.faq-item { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq-item:last-child { border-bottom: none; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 14px 36px;
  margin-top: 24px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

@media (max-width: 820px) {
  .clicker-layout, .fish-layout, .alch-layout { grid-template-columns: 1fr; }
}

/* Quick-Start Bar, Tutorial Modal, Catalog Grid & New Idle/Lab Games */
.quickstart-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-bottom: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
}
.qs-item { font-size: 0.8rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.qs-num {
  background: var(--emerald); color: #052e16; font-weight: 800; border-radius: 50%;
  width: 18px; height: 18px; min-width: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; margin-top: 2px;
}
.qs-item strong { color: #fff; }

.tut-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 14px;
}
.tut-backdrop.open { display: flex; }
.tut-modal {
  background: var(--panel); color: var(--ink); border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 16px; max-width: 560px; width: 100%; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  max-height: 90vh; overflow-y: auto;
}
.tut-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.tut-head h2 { margin: 4px 0 2px; font-size: 1.3rem; color: var(--emerald); }
.tut-sub { margin: 0; font-size: 0.84rem; color: var(--muted); }
.tut-badge { background: rgba(16,185,129,0.18); color: var(--emerald); padding: 2px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; }
.tut-close { background: transparent; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.tut-goal { background: var(--card); border-left: 3px solid var(--emerald); padding: 8px 12px; border-radius: 6px; font-size: 0.88rem; margin-bottom: 12px; }
.tut-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.tut-step { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,0.04); padding: 9px 11px; border-radius: 9px; }
.tut-num { background: var(--emerald); color: #052e16; font-weight: 800; width: 22px; height: 22px; min-width: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.tut-step p { margin: 2px 0 0; font-size: 0.82rem; color: var(--muted); }
.tut-box { font-size: 0.84rem; margin-bottom: 10px; }
.tut-box ul { margin: 4px 0 0 18px; padding: 0; color: var(--muted); }
.tut-tip { background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.35); padding: 8px 11px; border-radius: 8px; font-size: 0.84rem; margin-bottom: 14px; }
.tut-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }
.tut-check { font-size: 0.82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; cursor: pointer; }
.tut-start { background: var(--emerald); color: #052e16; border: none; padding: 9px 18px; border-radius: 8px; font-weight: 800; cursor: pointer; font-size: 0.9rem; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 10px; }
.catalog-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: #fff;
}
.catalog-card:hover { border-color: var(--emerald); text-decoration: none; }
.catalog-card.current { border-color: var(--emerald); background: rgba(16,185,129,0.14); }
.catalog-card p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.badge-pill { display: inline-block; align-self: flex-start; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(16,185,129,0.2); color: var(--emerald); }

/* Clickers, Miner, Babel, Idle Breakout, Reaction Lab */
.hero-clicker-btn {
  width: 170px; height: 170px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.2);
  background: radial-gradient(circle at 35% 30%, #334155, #0f172a); font-size: 4.5rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: transform 0.06s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45); position: relative;
}
.hero-clicker-btn:active { transform: scale(0.93); }
.golden-pop {
  position: absolute; top: 12px; right: 12px; background: var(--amber); color: #451a03;
  border: 2px solid #fde047; border-radius: 999px; padding: 6px 12px; font-weight: 800; cursor: pointer;
}
.layer-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.babel-stack { display: flex; flex-direction: column-reverse; gap: 3px; max-height: 240px; overflow-y: auto; padding: 8px; background: #090d16; border-radius: 10px; margin: 10px 0; }
.babel-floor { height: 18px; border-radius: 4px; background: linear-gradient(90deg, #f59e0b, #d97706); font-size: 0.7rem; color: #451a03; font-weight: 800; text-align: center; line-height: 18px; }
#ib-canvas { background: #090d16; border: 2px solid #334155; border-radius: 10px; max-width: 100%; height: auto; cursor: crosshair; touch-action: none; }
.react-pad {
  height: 240px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 800; cursor: pointer; user-select: none; border: 2px solid rgba(255,255,255,0.16);
}
.react-wait { background: #991b1b; }
.react-go { background: #16a34a; }
.react-idle { background: #1e293b; }

@media (max-width: 820px) {
  .quickstart-bar { grid-template-columns: 1fr; }
}

/* Batch Expansion: +15 Idle, Tycoon, Sim & Arcade Games */
.bgs-grid-2 { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; }
.bgs-canvas-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bgs-canvas {
  background: #090d16; border: 2px solid #334155; border-radius: 12px;
  max-width: 100%; height: auto; display: block; touch-action: none; cursor: pointer;
}
.bgs-panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.bgs-subpanel { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.bgs-meter { height: 12px; border-radius: 999px; background: #090d16; border: 1px solid var(--border); overflow: hidden; }
.bgs-meter-fill { height: 100%; background: linear-gradient(90deg, var(--emerald), var(--sky)); transition: width 0.15s ease; width: 0%; }
.bgs-meter-fill.amber { background: linear-gradient(90deg, #f59e0b, #ef4444); }

.ht-queue {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 46px; padding: 8px 10px;
  background: #090d16; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 12px;
}
.ht-guest {
  background: rgba(56, 189, 248, 0.16); border: 1px solid rgba(56, 189, 248, 0.45); color: #fff;
  border-radius: 8px; padding: 5px 10px; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.ht-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ht-room {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; gap: 6px; transition: border-color 0.15s ease, transform 0.1s ease;
}
.ht-room.dirty { border-color: var(--amber); background: rgba(245, 158, 11, 0.13); cursor: pointer; }
.ht-room.dirty:hover { transform: translateY(-2px); }
.ht-room.occupied { border-color: var(--sky); }
.ht-room.ready { border-color: var(--emerald); }
.ht-room.locked { opacity: 0.78; border-style: dashed; }

.cc-res-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.cc-res-box { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; }

.dc-strata-card {
  border-radius: 14px; padding: 18px; border: 2px solid rgba(255, 255, 255, 0.16);
  text-align: center; transition: background 0.3s ease;
}

.evo-eras { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.evo-era-pill {
  padding: 4px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  border: 1px solid var(--border); background: var(--panel); color: var(--muted);
}
.evo-era-pill.unlocked { color: #fff; }
.evo-era-pill.active { border-color: var(--emerald); color: var(--emerald); background: rgba(16, 185, 129, 0.14); }

.lm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; margin-bottom: 12px; }
.lm-weather {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 12px; padding: 12px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.lm-log {
  background: #090d16; border: 1px solid var(--border); border-radius: 10px; padding: 10px;
  max-height: 220px; overflow-y: auto; font-size: 0.82rem; color: var(--muted); line-height: 1.6;
}

.mk-tickers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.mk-ticker-btn {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; color: #fff; cursor: pointer; text-align: left;
}
.mk-ticker-btn.active { border-color: var(--emerald); background: rgba(16, 185, 129, 0.14); }
.mk-up { color: #34d399; font-weight: 700; }
.mk-down { color: #f87171; font-weight: 700; }

.plk-history { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.plk-pill {
  padding: 3px 8px; border-radius: 999px; font-size: 0.76rem; font-weight: 800;
  background: var(--panel); border: 1px solid var(--border); color: var(--ink);
}
.plk-pill.big { background: rgba(245, 158, 11, 0.22); border-color: var(--amber); color: var(--amber); }

@media (max-width: 820px) {
  .bgs-grid-2 { grid-template-columns: 1fr; }
  .mk-tickers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-res-bar { grid-template-columns: 1fr; }
}

/* Batch Expansion 2: +10 Idle, Clicker & Tycoon Games */
.fm-seeds, .gf-blades { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fm-plot {
  appearance: none; background: var(--card); border: 1px solid var(--border); color: var(--ink);
  border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; cursor: pointer; font-size: 0.78rem; transition: transform 0.08s ease, border-color 0.15s ease;
}
.fm-plot:hover { transform: translateY(-2px); border-color: var(--emerald); }
.fm-plot.watered { border-color: var(--sky); background: rgba(56, 189, 248, 0.12); }
.fm-plot.ready { border-color: var(--amber); background: rgba(245, 158, 11, 0.16); }
.fm-plot-ico { font-size: 1.9rem; line-height: 1.1; }
.fm-plot span { color: var(--muted); font-size: 0.74rem; }

.zoo-grid, .arc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; }
.zoo-hab, .arc-cab {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 11px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
}
.zoo-hab.unlocked, .arc-cab.active { border-color: rgba(16, 185, 129, 0.5); }
.zoo-hab.locked, .arc-cab.locked { opacity: 0.78; border-style: dashed; }
.arc-cab.broken { border-color: var(--amber); background: rgba(245, 158, 11, 0.14); }
.zoo-hab-top { display: flex; align-items: center; gap: 9px; }
.zoo-ico { font-size: 1.95rem; line-height: 1; }

.pz-oven-btn {
  width: 170px; height: 170px; border-radius: 50%; border: 4px solid rgba(245, 158, 11, 0.65);
  background: radial-gradient(circle at 35% 30%, #9a3412, #431407); color: #fff; font-size: 3.4rem;
  cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.35); transition: transform 0.06s ease;
}
.pz-oven-btn:active { transform: scale(0.94); }

.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sc-mod-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; opacity: 0.72;
}
.sc-mod-card.active { opacity: 1; border-color: rgba(56, 189, 248, 0.45); }

.gf-timing-track {
  position: relative; height: 22px; border-radius: 999px; background: #090d16;
  border: 1px solid var(--border); overflow: hidden; margin: 10px 0 12px;
}
.gf-timing-sweet {
  position: absolute; top: 0; bottom: 0; left: 36%; width: 28%;
  background: rgba(16, 185, 129, 0.38); border-left: 2px solid var(--emerald); border-right: 2px solid var(--emerald);
}
.gf-timing-cursor {
  position: absolute; top: 0; bottom: 0; width: 6%; border-radius: 4px;
  background: #fde047; box-shadow: 0 0 8px rgba(253, 224, 71, 0.85);
}

@media (max-width: 600px) {
  .fm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Batch Expansion 3: +10 Idle, Clicker & Tycoon Games */
.bgs3-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bgs3-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.bgs3-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 11px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
}
.bgs3-card.active { border-color: rgba(16, 185, 129, 0.55); }
.bgs3-card.warm { border-color: rgba(245, 158, 11, 0.55); background: rgba(245, 158, 11, 0.1); }
.bgs3-card.hot { border-color: #ef4444; background: rgba(239, 68, 68, 0.14); }
.bgs3-card.locked { opacity: 0.76; border-style: dashed; }
.bgs3-hero-btn {
  width: 164px; height: 164px; border-radius: 50%; border: 4px solid rgba(251, 191, 36, 0.65);
  background: radial-gradient(circle at 35% 30%, #78350f, #271206); color: #fff; font-size: 3.3rem;
  cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32); transition: transform 0.06s ease;
}
.bgs3-hero-btn:active { transform: scale(0.94); }
.bgs3-cauldron-btn {
  width: 164px; height: 164px; border-radius: 50%; border: 4px solid rgba(56, 189, 248, 0.6);
  background: radial-gradient(circle at 35% 30%, #312e81, #0f172a); color: #fff; font-size: 3.3rem;
  cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.28); transition: transform 0.06s ease;
}
.bgs3-cauldron-btn:active { transform: scale(0.94); }
.bgs3-select-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.bgs3-select-label { font-size: 0.78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.bgs3-patron-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.bgs3-patron {
  background: var(--panel); border: 1px solid rgba(56, 189, 248, 0.45); border-radius: 10px; padding: 9px;
  display: flex; flex-direction: column; gap: 5px; align-items: center; text-align: center; cursor: pointer;
}
.bgs3-patron:hover { border-color: var(--emerald); background: rgba(16, 185, 129, 0.12); }
.bgs3-history { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; margin-top: 10px; }
.bgs3-hist-row {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; gap: 8px;
}
.bgs3-rack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 8px; margin-top: 10px; }
.bgs3-rack {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 9px;
  display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem;
}
.bgs3-rack.online { border-color: rgba(16, 185, 129, 0.55); }
.bgs3-rack.throttled { border-color: #ef4444; background: rgba(239, 68, 68, 0.12); }

/* Batch Expansion 4: +10 Idle, Clicker & Tycoon Games */
.bgs4-mint-btn {
  width: 164px; height: 164px; border-radius: 50%; border: 4px solid rgba(250, 204, 21, 0.72);
  background: radial-gradient(circle at 35% 30%, #ca8a04, #422006); color: #fff; font-size: 3.3rem;
  cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(234, 179, 8, 0.34); transition: transform 0.06s ease;
}
.bgs4-mint-btn:active { transform: scale(0.94); }
.bgs4-geode-btn {
  width: 164px; height: 164px; border-radius: 50%; border: 4px solid rgba(167, 139, 250, 0.72);
  background: radial-gradient(circle at 35% 30%, #5b21b6, #1e1b4b); color: #fff; font-size: 3.3rem;
  cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.35); transition: transform 0.06s ease;
}
.bgs4-geode-btn:active { transform: scale(0.94); }
.bgs4-triage-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 48px; padding: 8px 10px;
  background: #090d16; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 10px;
}
.bgs4-patient {
  background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.48); color: #fff;
  border-radius: 8px; padding: 5px 10px; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.bgs4-patient.urgent { border-color: #ef4444; background: rgba(239, 68, 68, 0.2); }
.bgs4-patient:hover { transform: translateY(-1px); border-color: var(--amber); }
.bgs4-weather-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.38); border-radius: 12px; padding: 12px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.bgs4-stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px;
}
.bgs4-stat-box {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 9px; text-align: center;
}
.bgs4-stat-box small { display: block; color: var(--muted); font-size: 0.74rem; }
.bgs4-stat-box strong { font-size: 1.02rem; color: var(--ink); }
.bgs4-meter-fill-sky { height: 100%; background: linear-gradient(90deg, #38bdf8, #a78bfa); transition: width 0.15s ease; width: 0%; }


