/* ============================================================
   PLAYDEX — Design System
   Premium crypto casino gaming portal
   Twin-accent: electric violet + lime green on charcoal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800;6..12,900&display=swap');

:root {
  /* Surfaces — very dark navy/charcoal */
  --au-void: #06070A;
  --au-bg: #0A0C12;
  --au-surface: #10131C;
  --au-surface-2: #171B27;
  --au-elevated: #1E2333;
  --au-line: rgba(140, 150, 190, 0.10);
  --au-line-strong: rgba(160, 170, 220, 0.22);

  /* Accents — twin: violet primary, lime for pop */
  --au-violet: #A855F7;         /* primary accent */
  --au-violet-hi: #C77DFF;
  --au-violet-dim: rgba(168, 85, 247, 0.16);
  --au-magenta: #E040FB;
  --au-lime: #C0FF3E;           /* second accent, pop */
  --au-lime-hi: #DAFF75;
  --au-lime-dim: rgba(192, 255, 62, 0.14);

  /* Semantic */
  --au-gold: #FFC94A;
  --au-win: #34D399;
  --au-loss: #FB5470;
  --au-live: #FF3B6B;
  --au-warn: #FFB020;

  /* Text */
  --au-text: #EEF0F8;
  --au-text-mid: #9DA5BE;
  --au-text-dim: #626A85;
  --au-text-faint: #454C63;

  /* Type */
  --au-font: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --au-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii — softly rounded per brief */
  --au-r-xs: 8px;
  --au-r-sm: 12px;
  --au-r-md: 14px;
  --au-r-lg: 16px;
  --au-r-xl: 20px;
  --au-r-2xl: 28px;
  --au-r-pill: 999px;

  /* Layout */
  --au-max: 1440px;
  --au-gutter: 32px;
  --au-header-h: 72px;

  /* Shadows */
  --au-glow-violet: 0 0 24px rgba(168, 85, 247, 0.35);
  --au-glow-lime: 0 0 24px rgba(192, 255, 62, 0.35);
  --au-card-hover: 0 20px 40px -12px rgba(168, 85, 247, 0.35), 0 0 0 1px rgba(168, 85, 247, 0.35);
  --au-shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }

body {
  font-family: var(--au-font);
  color: var(--au-text);
  background: var(--au-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-weight: 500;
}

/* Ambient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(168, 85, 247, 0.12), transparent 55%),
    radial-gradient(1000px 700px at 90% 5%, rgba(192, 255, 62, 0.05), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(168, 85, 247, 0.08), transparent 55%),
    linear-gradient(180deg, #06070A 0%, #0A0C12 60%, #06070A 100%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, select, textarea { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.au-h1 { font-size: clamp(40px, 5vw, 68px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
.au-h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.au-h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.au-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--au-violet-hi);
}
.au-mono { font-family: var(--au-mono); }
.au-muted { color: var(--au-text-mid); }
.au-dim { color: var(--au-text-dim); }
.au-lime { color: var(--au-lime); }
.au-violet { color: var(--au-violet-hi); }

/* ============================================================
   LAYOUT
   ============================================================ */
.au-container {
  max-width: var(--au-max);
  margin: 0 auto;
  padding: 0 var(--au-gutter);
}
.au-container-wide {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 var(--au-gutter);
}
@media (max-width: 720px) { :root { --au-gutter: 16px; } }

.au-section { padding: 48px 0; }
.au-section-sm { padding: 28px 0; }

/* ============================================================
   HEADER — sticky, clean, LOGIN only
   ============================================================ */
.au-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--au-header-h);
  background: rgba(10, 12, 18, 0.94);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--au-line-strong);
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.5);
  transition: background .25s;
}
.au-header.scrolled {
  background: rgba(6, 7, 10, 0.98);
  border-bottom-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.6);
}

.au-header-inner {
  height: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 var(--au-gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.au-header-inner > .au-logo { flex-shrink: 0; }
.au-header-inner > .au-nav { flex: 0 1 auto; margin-right: auto; }
.au-header-inner > .au-header-search { flex: 0 1 340px; }
.au-header-inner > .au-header-cta { flex-shrink: 0; }

/* Logo */
.au-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.au-logo-lockup {
  display: block;
  max-width: none;
  flex-shrink: 0;
}

/* Nav (center) */
.au-nav {
  display: flex;
  gap: 2px;
  justify-content: center;
}
.au-nav a {
  padding: 10px 14px;
  border-radius: var(--au-r-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--au-text-mid);
  transition: all .15s;
  position: relative;
  white-space: nowrap;
}
.au-nav a:hover {
  color: var(--au-text);
  background: rgba(168, 85, 247, 0.06);
}
.au-nav a.active {
  color: var(--au-text);
  background: rgba(168, 85, 247, 0.12);
}
.au-nav a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: linear-gradient(90deg, var(--au-violet), var(--au-lime));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}

/* Header search */
.au-header-search {
  width: 320px;
  position: relative;
}
.au-header-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border-radius: var(--au-r-pill);
  background: rgba(30, 35, 51, 0.6);
  border: 1px solid var(--au-line);
  color: var(--au-text);
  font-family: var(--au-font);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
}
.au-header-search input::placeholder { color: var(--au-text-dim); font-weight: 500; }
.au-header-search input:focus {
  outline: none;
  border-color: var(--au-violet);
  background: rgba(30, 35, 51, 0.85);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}
.au-header-search svg {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--au-text-dim);
  pointer-events: none;
}

/* Header LOGIN button */
.au-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--au-r-pill);
  background: linear-gradient(135deg, var(--au-violet), #8B3FE8);
  color: white;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px -8px rgba(168, 85, 247, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all .18s;
}
.au-header-cta:hover {
  background: linear-gradient(135deg, var(--au-violet-hi), var(--au-violet));
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -6px rgba(168, 85, 247, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.au-header-cta:active { transform: translateY(0); }

@media (max-width: 1080px) {
  .au-nav { display: none; }
}
@media (max-width: 720px) {
  .au-header-search { display: none; }
  .au-header-cta { padding: 0 16px; font-size: 13px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.au-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--au-r-pill);
  font-family: var(--au-font);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  position: relative;
}
.au-btn svg { width: 16px; height: 16px; }

.au-btn-primary {
  background: linear-gradient(135deg, var(--au-violet), #7C3AED);
  color: white;
  box-shadow: 0 8px 20px -8px rgba(168, 85, 247, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.au-btn-primary:hover {
  background: linear-gradient(135deg, var(--au-violet-hi), var(--au-violet));
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -6px rgba(168, 85, 247, 0.8);
}

.au-btn-lime {
  background: linear-gradient(135deg, var(--au-lime), #96D420);
  color: #0A1400;
  box-shadow: 0 8px 20px -8px rgba(192, 255, 62, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.au-btn-lime:hover {
  background: linear-gradient(135deg, var(--au-lime-hi), var(--au-lime));
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -6px rgba(192, 255, 62, 0.7);
}

.au-btn-ghost {
  background: rgba(30, 35, 51, 0.6);
  color: var(--au-text);
  border: 1px solid var(--au-line-strong);
  backdrop-filter: blur(8px);
}
.au-btn-ghost:hover { background: rgba(30, 35, 51, 0.9); border-color: var(--au-violet); }

.au-btn-outline {
  background: transparent;
  color: var(--au-text);
  border: 1px solid var(--au-line-strong);
}
.au-btn-outline:hover { border-color: var(--au-violet); color: var(--au-violet-hi); }

.au-btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.au-btn-sm { height: 34px; padding: 0 14px; font-size: 12px; }
.au-btn-block { width: 100%; }

/* ============================================================
   CARDS / SURFACES
   ============================================================ */
.au-surface {
  background: linear-gradient(180deg, rgba(23, 27, 39, 0.6), rgba(16, 19, 28, 0.8));
  border: 1px solid var(--au-line);
  border-radius: var(--au-r-lg);
}
.au-glass {
  background: rgba(23, 27, 39, 0.55);
  border: 1px solid var(--au-line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--au-r-lg);
}

/* Badge chips */
.au-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-family: var(--au-font);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.au-badge-hot { background: linear-gradient(135deg, #FF3B6B, #C81E3E); color: white; box-shadow: 0 0 10px rgba(255, 59, 107, 0.4); }
.au-badge-new { background: linear-gradient(135deg, var(--au-lime), #96D420); color: #0A1400; box-shadow: 0 0 10px rgba(192, 255, 62, 0.4); }
.au-badge-popular { background: linear-gradient(135deg, var(--au-violet), #7C3AED); color: white; box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }
.au-badge-jackpot { background: linear-gradient(135deg, var(--au-gold), #C99320); color: #1A1000; box-shadow: 0 0 10px rgba(255, 201, 74, 0.4); }
.au-badge-live { background: rgba(255, 59, 107, 0.16); color: var(--au-live); border: 1px solid rgba(255, 59, 107, 0.4); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.au-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.au-section-head h2 { margin: 0; }
.au-section-head .sub {
  color: var(--au-text-mid);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
}
.au-section-head .link {
  color: var(--au-violet-hi);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.au-section-head .link:hover { color: var(--au-lime); }
.au-section-head .tools { display: flex; gap: 10px; align-items: center; }

/* Carousel arrows */
.au-arrows { display: flex; gap: 6px; }
.au-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(30, 35, 51, 0.75);
  border: 1px solid var(--au-line-strong);
  color: var(--au-text);
  display: grid; place-items: center;
  transition: all .18s;
}
.au-arrow:hover {
  background: var(--au-violet);
  border-color: var(--au-violet);
  color: white;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

/* Horizontal scroll rail */
.au-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 20px;
  margin: -4px -4px 0;
  scrollbar-width: none;
}
.au-rail::-webkit-scrollbar { display: none; }
.au-rail > * { scroll-snap-align: start; flex-shrink: 0; }

/* ============================================================
   CATEGORY PILL RAIL
   ============================================================ */
.au-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 4px 12px;
  margin: 0 -4px;
}
.au-cats::-webkit-scrollbar { display: none; }
.au-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--au-r-pill);
  background: rgba(30, 35, 51, 0.5);
  border: 1px solid var(--au-line);
  color: var(--au-text-mid);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all .18s;
  cursor: pointer;
}
.au-cat:hover {
  color: var(--au-text);
  border-color: var(--au-line-strong);
  background: rgba(30, 35, 51, 0.85);
}
.au-cat.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(192, 255, 62, 0.1));
  border-color: var(--au-violet);
  color: var(--au-text);
  box-shadow: 0 4px 16px -4px rgba(168, 85, 247, 0.4), inset 0 0 0 1px rgba(168, 85, 247, 0.2);
}
.au-cat .cat-ico {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  color: currentColor;
}
.au-cat.active .cat-ico { color: var(--au-lime); }
.au-cat .cat-cnt {
  font-family: var(--au-mono);
  font-size: 10px;
  color: var(--au-text-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================================
   INPUTS
   ============================================================ */
.au-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: rgba(30, 35, 51, 0.6);
  border: 1px solid var(--au-line-strong);
  border-radius: var(--au-r-md);
  color: var(--au-text);
  font-family: var(--au-font);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
}
.au-input::placeholder { color: var(--au-text-dim); font-weight: 500; }
.au-input:focus {
  outline: none;
  border-color: var(--au-violet);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

/* ============================================================
   FOOTER
   ============================================================ */
.au-footer {
  margin-top: 80px;
  border-top: 1px solid var(--au-line);
  background: linear-gradient(180deg, transparent, rgba(6, 7, 10, 0.6));
  padding: 56px 0 32px;
}
.au-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 900px) { .au-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .au-footer-grid { grid-template-columns: 1fr; } }

.au-footer h4 {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--au-text-dim);
}
.au-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.au-footer a { color: var(--au-text-mid); font-size: 14px; font-weight: 600; transition: color .15s; }
.au-footer a:hover { color: var(--au-lime); }
.au-footer .about p {
  color: var(--au-text-mid);
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
  max-width: 320px;
  font-weight: 500;
}
.au-social { display: flex; gap: 10px; }
.au-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(30, 35, 51, 0.6);
  border: 1px solid var(--au-line);
  display: grid; place-items: center;
  color: var(--au-text-mid);
  transition: all .18s;
}
.au-social a:hover {
  color: var(--au-lime);
  border-color: var(--au-lime);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(192, 255, 62, 0.3);
}
.au-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--au-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--au-text-dim);
  font-weight: 600;
}
.au-18 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--au-r-pill);
  background: rgba(255, 59, 107, 0.08);
  border: 1px solid rgba(255, 59, 107, 0.3);
  color: #FF8A9F;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

/* ============================================================
   MODAL
   ============================================================ */
.au-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}
.au-modal-backdrop.open { display: flex; opacity: 1; }

.au-modal {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, var(--au-surface-2), var(--au-surface));
  border: 1px solid var(--au-line-strong);
  border-radius: var(--au-r-xl);
  box-shadow: var(--au-shadow-lg), 0 0 60px rgba(168, 85, 247, 0.15);
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.au-modal-backdrop.open .au-modal { transform: translateY(0) scale(1); }

.au-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(30, 35, 51, 0.7);
  border: 1px solid var(--au-line);
  color: var(--au-text-mid);
  display: grid; place-items: center;
  transition: all .15s;
  z-index: 3;
}
.au-modal-close:hover { color: var(--au-text); background: rgba(30, 35, 51, 0.9); border-color: var(--au-line-strong); }

.au-modal-large { max-width: 800px; }

/* ============================================================
   UTIL
   ============================================================ */
.au-divider { height: 1px; background: var(--au-line); margin: 24px 0; }
::selection { background: rgba(168, 85, 247, 0.3); color: white; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(140, 150, 190, 0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(140, 150, 190, 0.24); }
:focus-visible { outline: 2px solid var(--au-violet); outline-offset: 2px; border-radius: 6px; }

/* Fade-in on scroll */
.au-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.au-fade-in.visible { opacity: 1; transform: translateY(0); }

/* Skeleton loader */
.au-skel {
  background: linear-gradient(90deg, rgba(30, 35, 51, 0.4) 0%, rgba(30, 35, 51, 0.7) 50%, rgba(30, 35, 51, 0.4) 100%);
  background-size: 200% 100%;
  animation: au-skel 1.4s ease-in-out infinite;
  border-radius: var(--au-r-md);
}
@keyframes au-skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
