/*
  Dark theme, responsive layout, and component styles
  - Color system uses CSS variables for easy theming
  - Mobile-first; desktop enhancements via media queries
*/

:root {
  --bg: #0b1020;
  --bg-elev: #121a33;
  --text: #e7eaf6;
  --muted: #a6b0cf;
  --primary: #59b7ff;
  --primary-contrast: #07111e;
  --cta: #00df76;
  --cta-contrast: #04150c;
  --border: #253153;
  --overlay: rgba(7, 17, 30, 0.6);
}

/* Base reset and typography */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: .5rem; background: var(--primary); color: #001; }

/* Layout containers */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,16,32,0.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { height: 40px; width: auto; }
.nav-list { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; }
.btn-primary { background: var(--primary); color: var(--primary-contrast); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-cta { background: var(--cta); color: var(--cta-contrast); font-size: 1.125rem; padding: 12px 20px; }
.btn-cta:hover { filter: brightness(1.05); }

/* Breadcrumbs */
.breadcrumbs { background: var(--bg-elev); border-bottom: 1px solid var(--border); }
.breadcrumbs .container { display: flex; gap: 8px; padding: 8px 16px; }
.breadcrumbs ol { list-style: none; margin: 0; padding-left: 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Hero */
.hero { position: relative; aspect-ratio: 16/6; background: var(--bg-elev); overflow: hidden; display: grid; place-items: center; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: relative; display: inline-flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; background: transparent; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(2px); }
.hero-title { margin: 0 0 8px; font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.hero-subtitle { margin: 0 0 16px; color: var(--muted); }

/* Mobile-optimized hero banner */
@media (max-width: 640px) {
  .hero { aspect-ratio: 16/9; min-height: 48dvh; place-items: end center; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,17,30,.55), rgba(7,17,30,.25) 40%, rgba(7,17,30,0) 70%); pointer-events: none; }
  .hero-img { object-position: center 30%; }
  .hero-overlay { width: calc(100% - 24px); gap: 10px; padding: 12px 14px; border-radius: 12px; border-color: rgba(255,255,255,0.08); }
  .hero-title { font-size: clamp(1.25rem, 5.5vw, 1.75rem); margin: 0; }
  .hero-subtitle { font-size: .95rem; margin: 0; }
  .hero-cta { padding: 10px 14px; border-radius: 12px; }
  .btn-cta { font-size: 1rem; padding: 12px 18px; min-height: 44px; }
}

/* CTA backdrop inside the hero */
.hero-cta { background: rgba(7, 17, 30, 0.6); padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.35); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }

/* Content */
.content { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.content h1, .content h2, .content h3 { line-height: 1.3; }
.content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.content th, .content td { border: 1px solid var(--border); padding: 8px; text-align: left; }
.content thead { background: #0e1731; }

/* Responsive table: stack cells on narrow screens */
@media (max-width: 640px) {
  .content table thead { display: none; }
  .content table, .content tbody, .content tr, .content td { display: block; width: 100%; }
  .content tr { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
  .content td { position: relative; padding-left: 50%; border: none; border-bottom: 1px solid var(--border); }
  .content td:last-child { border-bottom: none; }
  .content td::before {
    content: attr(data-label);
    position: absolute; left: 12px; top: 8px; width: calc(50% - 24px); color: var(--muted); font-weight: 600;
  }
}

/* Slots grid: 12 items, 6 per row on desktop, 3 per row on tablet, 2 per row on mobile */
.slots-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; padding: 0; }
.slot-card { display: block; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.slot-card img { display: block; width: 100%; height: auto; border-radius: 12px; }
.slot-card .slot-meta { padding: 10px; display: flex; align-items: center; justify-content: space-between; }
.slot-card .slot-name { font-size: .95rem; color: var(--text); }
.slot-card .slot-play { font-size: .9rem; }

@media (min-width: 640px) { .slots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .slots-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #0b1020; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.footer-links { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }

/* Payment logos */
.pay-logos-wrap { width: 100%; margin-top: 12px; }
.pay-logos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 0; margin: 10px 0 0; align-items: center; }
.pay-logos li { display: flex; align-items: center; justify-content: center; padding: 8px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; }
.pay-logos img { max-height: 26px; width: auto; filter: saturate(0.9) brightness(0.95); }
@media (min-width: 640px) { .pay-logos { grid-template-columns: repeat(6, minmax(0,1fr)); } }
@media (min-width: 1024px) { .pay-logos { grid-template-columns: repeat(8, minmax(0,1fr)); } }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Mobile viewport fix: lock body during viewport resize to reduce layout shift on mobile address bar show/hide */
@supports (height: 100dvh) {
  .hero { min-height: 40dvh; }
}


