@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0f14;
  --bg-sidebar: #10161d;
  --bg-panel: #151c25;
  --bg-card: #1a222d;
  --bg-card-hover: #212b38;
  --border: #243041;
  --text: #eef2f7;
  --text-muted: #8b9bb4;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --gold: #f5c542;
  --gold-dim: rgba(245, 197, 66, 0.14);
  --danger: #ff6b6b;
  --sidebar-w: 260px;
  --sidebar-collapsed: 76px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Outfit', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input { font: inherit; }

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform var(--ease), width var(--ease);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  min-height: 64px;
}

.brand img { width: auto; height: 32px; }

.sidebar-collapse {
  display: flex;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
}

.sidebar-collapse:hover { color: var(--accent); border-color: var(--accent); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.65rem 1rem;
}

.sidebar-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0.85rem 0.75rem 0.35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--ease), color var(--ease), transform var(--ease);
  margin-bottom: 2px;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--bg-panel);
  color: var(--text);
  transform: translateX(2px);
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-item-sm {
  font-size: 0.82rem;
  padding: 0.5rem 0.65rem;
}

.nav-game-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 0.85rem;
  border-top: 1px solid var(--border);
}

.sidebar-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.badge-18 {
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
  opacity: 0;
  transition: opacity var(--ease);
}

.sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.25rem;
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.35rem;
}

.topbar-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.topbar-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.topbar-search svg { color: var(--text-muted); flex-shrink: 0; }

.topbar-search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  outline: none;
  font-size: 0.88rem;
}

.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.balance-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.25rem 0.7rem;
  line-height: 1.2;
}

.balance-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.balance-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

.pill-18 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #00c98a);
  color: #041510;
  box-shadow: 0 8px 24px rgba(0, 229, 160, 0.25);
}

.btn-accent:hover { box-shadow: 0 12px 28px rgba(0, 229, 160, 0.35); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.8rem; }

.btn-lg { padding: 0.75rem 1.35rem; font-size: 0.95rem; }

.page-content {
  flex: 1;
  animation: pageIn 0.45s ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 58vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.55) 48%, rgba(11, 15, 20, 0.82) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.hero-tag.accent { color: var(--accent); border-color: rgba(0, 229, 160, 0.35); }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 540px;
  color: rgba(238, 242, 247, 0.82);
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 620px;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0 8px 8px 0;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.container {
  width: min(1180px, 94vw);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head.center { text-align: center; }

.section-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 0.45rem;
  max-width: 560px;
}

.section-head.center p { margin-inline: auto; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--ease), border-color var(--ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 160, 0.35);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Game grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  animation: cardIn 0.5s ease both;
}

.game-card:nth-child(2) { animation-delay: 0.06s; }
.game-card:nth-child(3) { animation-delay: 0.12s; }
.game-card:nth-child(4) { animation-delay: 0.18s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 160, 0.4);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 229, 160, 0.15);
}

.game-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.game-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-thumb-wrap img { transform: scale(1.06); }

.game-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity var(--ease);
}

.game-card:hover .game-play-overlay { opacity: 1; }

.play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #041510;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  transition: transform var(--ease);
}

.game-card:hover .play-icon { transform: scale(1); }

.game-body {
  padding: 1rem 1rem 0.85rem;
  flex: 1;
}

.game-provider {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.game-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.2rem 0 0.35rem;
}

.game-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.game-footer {
  padding: 0 1rem 1rem;
}

.game-footer .btn { width: 100%; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color var(--ease);
}

.feature-card:hover { border-color: rgba(0, 229, 160, 0.3); }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Compliance band */
.compliance-band {
  background: linear-gradient(135deg, #121820, #1a2430);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.compliance-band svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.compliance-band p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Page hero inner pages */
.page-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb span:last-child { color: var(--text); }

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 640px;
}

/* Game play page */
.game-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.25rem;
  padding: 1.5rem 0 3rem;
}

.game-frame-wrap {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 420px;
}

.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.info-panel h3 {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.meta-row:last-child { border-bottom: none; }

.meta-row span:first-child { color: var(--text-muted); }

.related-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  padding: 0.45rem 0;
  color: var(--text-muted);
  transition: color var(--ease);
}

.related-link:hover { color: var(--accent); }

.related-link img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.game-content {
  padding-bottom: 3rem;
}

.game-content h2 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.65rem;
}

.game-content p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Prose pages */
.prose {
  padding: 2rem 0 3rem;
  max-width: 760px;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.65rem;
}

.prose p, .prose li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  max-width: 520px;
  margin-top: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: var(--text);
  transition: border-color var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-ok {
  color: var(--accent);
  font-size: 0.88rem;
  margin-top: 0.65rem;
}

.footer-form {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.footer-form input {
  flex: 1;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  color: var(--text);
  font-size: 0.82rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-sidebar);
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-grid {
  width: min(1180px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.65;
}

.site-footer h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.site-footer li { margin-bottom: 0.4rem; }

.site-footer a {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color var(--ease);
}

.site-footer a:hover { color: var(--accent); }

.footer-note { font-size: 0.82rem; color: var(--text-muted); }

.footer-bottom {
  width: min(1180px, 94vw);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-compliance {
  margin-top: 0.35rem;
  color: var(--gold) !important;
}

/* Collapsed sidebar desktop */
body.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed); }
body.sidebar-collapsed .main-column { margin-left: var(--sidebar-collapsed); }
body.sidebar-collapsed .brand img { height: 28px; width: 28px; object-fit: cover; object-position: left; }
body.sidebar-collapsed .sidebar-label,
body.sidebar-collapsed .nav-item span,
body.sidebar-collapsed .sidebar-badge span:last-child,
body.sidebar-collapsed .sidebar-collapse svg { display: none; }
body.sidebar-collapsed .nav-item { justify-content: center; padding: 0.65rem; }
body.sidebar-collapsed .nav-item-sm .nav-game-thumb { margin: 0; }
body.sidebar-collapsed .sidebar-collapse svg { display: block; transform: rotate(180deg); }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.hidden-card { display: none !important; }

/* Responsive */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .game-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: min(280px, 88vw);
  }

  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-overlay { display: block; opacity: 1; }

  .main-column { margin-left: 0; }

  .topbar-menu { display: flex; }
  .sidebar-collapse { display: none; }

  .topbar-search { display: none; }

  .balance-pill { display: none; }

  .hero h1 { max-width: none; }

  .stats-row { grid-template-columns: 1fr 1fr; margin-top: 1rem; }

  .features-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .game-frame-wrap { min-height: 280px; aspect-ratio: auto; height: 56vw; }
}

@media (max-width: 480px) {
  .topbar-actions .btn span { display: none; }
  .stats-row { grid-template-columns: 1fr; }
}
