/* BitcoinCanada.casino — Dark Crypto Casino Lobby UI */
:root {
  --bg: #0e1422;
  --sidebar: #131b2e;
  --surface: #172136;
  --surface-2: #1d2942;
  --border: #23314f;
  --text: #f8fafc;
  --muted: #94a3b8;
  --prose: #cbd5e1;
  --blue: #2185ff;
  --blue-hover: #1a73e8;
  --green: #22c55e;
  --green-hover: #16a34a;
  --gold: #f59e0b;
  --radius: 10px;
  --sidebar-w: 232px;
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Shell Layout */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Left Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
  transition: transform 0.2s ease;
}
.sb-top {
  height: var(--topbar-h);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  width: 100%;
}
.sb-switch a {
  text-align: center;
  padding: 6px 8px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.sb-switch a.is-active {
  background: var(--blue);
  color: #ffffff;
}
.sb-switch a:hover:not(.is-active) { color: #ffffff; }

.sb-welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 13px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.sb-welcome:hover { background: rgba(255, 255, 255, 0.03); }
.sb-ticket {
  width: 24px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(245, 184, 61, 0.25));
}
.sb-welcome-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.sb-welcome-txt strong {
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.sb-welcome-txt span {
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #facc15;
  margin-top: 2px;
}
.sb-welcome-tag {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 6px;
  background: #1b2232;
  border: 1px solid #475569;
  border-bottom: 2px solid #facc15;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  font-style: italic;
  white-space: nowrap;
}

.sb-races {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.sb-race-item {
  text-align: center;
  padding: 4px 2px;
  border-radius: 6px;
  transition: background 0.15s;
}
.sb-race-item:hover { background: rgba(255, 255, 255, 0.04); }
.sb-race-item span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #7c8ba1;
}
.sb-race-item strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  color: #ffffff;
  margin-top: 2px;
}

.sb-nav {
  padding: 4px 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sb-section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 12px 10px 5px;
}
.sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  transition: background 0.15s, color 0.15s;
}
.sb-link svg { width: 16px; height: 16px; flex-shrink: 0; color: #64748b; }
.sb-link:hover, .sb-link.is-active {
  background: var(--surface-2);
  color: #ffffff;
}
.sb-link.is-active svg, .sb-link:hover svg { color: var(--blue); }
.sb-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(33, 133, 255, 0.18);
  color: #60a5fa;
  text-transform: uppercase;
}
.sb-tag-gold {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

/* Main Column */
.main-col {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: rgba(19, 27, 46, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 30;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 2px 0;
}
.brand-script {
  font-family: "Pacifico", "Brush Script MT", cursive;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  user-select: none;
}
.brand-i {
  position: relative;
  display: inline-block;
}
.brand-crown {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 11px;
  height: 8px;
  transform: translateX(-35%) rotate(12deg);
  pointer-events: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.icon-btn:hover { border-color: var(--blue); color: #ffffff; }
.btn-login {
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s;
}
.btn-login:hover { background: #263656; }
.btn-register {
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.15s, transform 0.1s;
}
.btn-register:hover { background: var(--blue-hover); }

/* Content Wrapper */
.lobby-wrap {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 22px 24px 48px;
}

/* Rainbet-Style Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: stretch;
  background: #131c31;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 16px;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-left h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.hero-sub {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--prose);
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.btn-hero-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9px;
  background: #16a34a;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  transition: background 0.15s, transform 0.1s;
}
.btn-hero-green:hover { background: #15803d; color: #ffffff; }
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
}
.btn-hero-secondary:hover { border-color: var(--blue); }

.hero-coins {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-coin-pill {
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(14, 20, 34, 0.7);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-feature {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2b3c60;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.hero-feature:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}
.hero-feature-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px;
  opacity: 0.78;
}
.hero-feature-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.hero-feature-bar {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(14, 20, 34, 0) 0%, rgba(14, 20, 34, 0.94) 36%, #11192b 100%);
  padding: 26px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-feature-bar strong {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}
.hero-feature-bar div span {
  display: block;
  font-size: 11.5px;
  color: #93c5fd;
  font-weight: 600;
}
.hero-feature-bar .hero-arrow {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--blue);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  flex-shrink: 0;
}

/* Live Wins Strip (Rainbet-style Mini Cover Row) */
.live-wins-wrap {
  margin-bottom: 26px;
}
.live-wins-head {
  margin-bottom: 10px;
}
.live-wins-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}
.live-wins-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.live-wins-row::-webkit-scrollbar { display: none; }
.lw-card {
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.15s ease;
}
.lw-card:hover { transform: translateY(-3px); }
@keyframes lwSlideIn {
  from { opacity: 0; transform: translateX(-18px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.lw-card.is-new { animation: lwSlideIn 0.35s ease-out; }
.lw-thumb {
  width: 92px;
  height: 106px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1120;
  margin-bottom: 6px;
}
.lw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lw-user {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.2;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lw-amount {
  font-size: 11.5px;
  font-weight: 800;
  color: #4ade80;
  margin-top: 2px;
}

/* Lobby Shelves */
.shelf {
  margin-bottom: 28px;
}
.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.shelf-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}
.shelf-title svg { width: 18px; height: 18px; color: var(--blue); }
.shelf-all {
  font-size: 12.5px;
  font-weight: 700;
  color: #60a5fa;
  padding: 5px 11px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.shelf-all:hover { border-color: var(--blue); color: #ffffff; }

/* Slot Cards Grid (7 cols desktop) */
.games-grid-7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.game-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.game-tile:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}
.game-art {
  position: relative;
  overflow: hidden;
  background: #0b1120;
}
.game-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 214;
  object-fit: cover;
}
.game-art-tall img {
  aspect-ratio: 210 / 276;
}
.game-art-orig img {
  aspect-ratio: 210 / 240;
}
.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 20, 34, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.game-tile:hover .game-overlay { opacity: 1; }
.play-pill {
  padding: 7px 14px;
  border-radius: 7px;
  background: #16a34a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}
.game-meta {
  padding: 8px 9px 9px;
}
.game-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-playing {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}
.game-playing::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* Originals Grid (6 colorful cards like Rainbet) */
.originals-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.orig-card {
  border-radius: 10px;
  padding: 20px 14px 14px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 164px;
  justify-content: space-between;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.orig-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.orig-crash  { background: #172a54; }
.orig-plinko { background: #2c1e54; }
.orig-mines  { background: #103b31; }
.orig-dice   { background: #4a2414; }
.orig-limbo  { background: #4a1936; }
.orig-keno   { background: #12364d; }
.orig-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.orig-icon svg { width: 32px; height: 32px; }
.orig-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 10px;
}
.orig-rtp {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

/* Crypto Banking Strip */
.pay-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 32px;
}
.pay-coins {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.coin-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
}
.c-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
}
.c-btc  { background: #f7931a; }
.c-eth  { background: #627eea; }
.c-ltc  { background: #345d9d; }
.c-usdt { background: #26a17b; }
.c-usdc { background: #2775ca; }
.c-bch  { background: #0ac18e; }
.c-doge { background: #c2a633; }
.c-sol  { background: #7c3aed; }
.c-cad  { background: #dc2626; }

/* SEO EMD Article Panel */
.seo-panel {
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 32px;
  margin-bottom: 28px;
}
.seo-panel h2 {
  margin: 28px 0 12px;
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.seo-panel h2:first-child { margin-top: 0; }
.seo-panel h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
}
.seo-panel p {
  margin: 0 0 14px;
  color: var(--prose);
  font-size: 14.5px;
  line-height: 1.68;
}
.seo-panel ul, .seo-panel ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--prose);
}
.seo-panel li {
  margin-bottom: 7px;
  font-size: 14.5px;
  line-height: 1.62;
}
.seo-panel a.inline-cta {
  color: #60a5fa;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seo-panel a.inline-cta:hover { color: #93c5fd; }

/* Dark Tables */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.seo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  font-size: 13.5px;
}
.seo-table th {
  text-align: left;
  padding: 11px 13px;
  background: var(--surface-2);
  color: #ffffff;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.seo-table td {
  padding: 10px 13px;
  color: var(--prose);
  border-bottom: 1px solid var(--border);
}
.seo-table tr:last-child td { border-bottom: 0; }
.seo-table tbody tr:hover { background: rgba(33, 133, 255, 0.05); }

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.faq-q:hover { background: var(--surface-2); }
.faq-icon {
  font-size: 18px;
  color: #60a5fa;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 16px 14px;
  color: var(--prose);
  font-size: 14px;
  line-height: 1.65;
}
.faq-a[hidden] { display: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--sidebar);
  padding: 24px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a:hover { color: #ffffff; }

/* Sidebar Backdrop for Mobile */
.sb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 35;
}
.sb-backdrop.is-open { display: block; }

/* Responsive */
@media (max-width: 1180px) {
  .games-grid-7 { grid-template-columns: repeat(4, 1fr); }
  .originals-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.is-open { transform: translateX(0); }
  .main-col { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; padding: 20px; }
  .hero-left h1 { font-size: 26px; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 14px; }
  .lobby-wrap { padding: 14px 14px 36px; }
  .games-grid-7 { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .originals-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .hero-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-feature { min-height: 150px; }
  .seo-panel { padding: 20px 16px; }
  .icon-btn { display: none; }
}
