:root {
  --bg-deep: #050a14;
  --bg-panel: rgba(12, 28, 58, 0.72);
  --bg-card: linear-gradient(145deg, rgba(20, 45, 90, 0.55), rgba(8, 18, 40, 0.9));
  --cyan: #2ecbff;
  --blue: #1b6cff;
  --blue-soft: #4d8dff;
  --gold: #e8f4ff;
  --text: #e6f1ff;
  --muted: #8fb3d9;
  --border-glow: rgba(46, 203, 255, 0.45);
  --shadow-neon: 0 0 24px rgba(27, 108, 255, 0.35), 0 0 48px rgba(46, 203, 255, 0.15);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 80% at 20% -20%, rgba(27, 108, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 100% 60% at 100% 30%, rgba(46, 203, 255, 0.2), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(15, 40, 90, 0.9), var(--bg-deep));
  animation: bg-shift 18s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(12deg) brightness(1.05); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(46, 203, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 203, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  animation: grid-drift 40s linear infinite;
  pointer-events: none;
}

@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-48px, -48px); }
}

.floating-suits {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.12;
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--cyan);
}

.floating-suits span {
  position: absolute;
  animation: float-suit 14s ease-in-out infinite;
  text-shadow: 0 0 20px var(--blue);
}

.floating-suits span:nth-child(1) { left: 8%; top: 15%; animation-delay: 0s; }
.floating-suits span:nth-child(2) { right: 12%; top: 25%; animation-delay: -2s; }
.floating-suits span:nth-child(3) { left: 20%; bottom: 20%; animation-delay: -4s; }
.floating-suits span:nth-child(4) { right: 25%; bottom: 30%; animation-delay: -6s; }
.floating-suits span:nth-child(5) { left: 45%; top: 8%; animation-delay: -1s; font-size: 0.7em; }

@keyframes float-suit {
  0%, 100% { transform: translateY(0) rotate(-5deg); opacity: 0.1; }
  50% { transform: translateY(-24px) rotate(5deg); opacity: 0.2; }
}

.wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.ref-banner {
  position: relative;
  z-index: 110;
  background: linear-gradient(90deg, rgba(8, 22, 48, 0.98), rgba(12, 40, 88, 0.95));
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.ref-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
}

.ref-banner-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

.ref-banner-count {
  display: inline-block;
  min-width: 1.25em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.btn-ref-now {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(5, 12, 28, 0.92), rgba(5, 12, 28, 0.75));
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease-out), filter 0.35s;
}

.brand:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 12px rgba(46, 203, 255, 0.5));
}

.brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
  border: 1px solid rgba(46, 203, 255, 0.35);
  box-shadow: 0 0 16px rgba(27, 108, 255, 0.2);
}

.brand-text strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shimmer 4s ease infinite;
}

@keyframes text-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

.brand-text small {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-main {
  display: flex;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-main a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}

.nav-main a:hover {
  color: var(--cyan);
  background: rgba(46, 203, 255, 0.08);
  box-shadow: 0 0 16px rgba(46, 203, 255, 0.15);
}

.nav-main .nav-btn {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}

.nav-main .nav-btn:hover {
  color: var(--cyan);
  background: rgba(46, 203, 255, 0.08);
  box-shadow: 0 0 16px rgba(46, 203, 255, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.btn-primary {
  color: #021018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: var(--shadow-neon);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%) rotate(25deg);
  animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
  0% { transform: translateX(-100%) rotate(25deg); }
  40%, 100% { transform: translateX(200%) rotate(25deg); }
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 32px rgba(46, 203, 255, 0.45), 0 8px 24px rgba(27, 108, 255, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border-glow);
}

.btn-ghost:hover {
  background: rgba(46, 203, 255, 0.12);
  border-color: var(--cyan);
}

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  animation: hero-in 1s var(--ease-out) both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
  animation: hero-in 1s 0.1s var(--ease-out) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: hero-in 1s 0.2s var(--ease-out) both;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  animation: hero-in 1s 0.25s var(--ease-out) both;
}

.slot-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 2px solid var(--border-glow);
  box-shadow: var(--shadow-neon), inset 0 0 60px rgba(27, 108, 255, 0.08);
  overflow: hidden;
}

.slot-reels {
  display: flex;
  gap: 0.5rem;
  padding: 1.25rem;
  justify-content: center;
  align-items: stretch;
  height: 100%;
}

.slot-reel {
  flex: 1;
  max-width: 72px;
  background: linear-gradient(180deg, #0a1628, #061020);
  border-radius: 12px;
  border: 1px solid rgba(46, 203, 255, 0.25);
  overflow: hidden;
  position: relative;
}

.slot-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  animation: reel-spin 6s linear infinite;
}

.slot-reel:nth-child(2) .slot-strip {
  animation-duration: 7s;
  animation-direction: reverse;
  animation-delay: -1s;
}

.slot-reel:nth-child(3) .slot-strip {
  animation-delay: -2s;
}

@keyframes reel-spin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.slot-symbol {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(46, 203, 255, 0.2);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--cyan);
  box-shadow: 0 20px 50px rgba(27, 108, 255, 0.25), 0 0 0 1px var(--border-glow);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.game-card:hover img {
  transform: scale(1.08);
}

.game-card .meta {
  padding: 1rem 1.15rem 1.25rem;
}

.game-card .meta h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--gold);
}

.game-card .meta p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.prose {
  background: var(--bg-panel);
  border: 1px solid rgba(46, 203, 255, 0.15);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--cyan);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
  color: #c5daf0;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-glow);
  transition: transform 0.35s var(--ease-out), filter 0.35s;
  animation: pop-in 0.8s var(--ease-out) both;
}

.gallery-strip img:nth-child(odd) { animation-delay: 0.05s; }
.gallery-strip img:nth-child(3n) { animation-delay: 0.1s; }

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-strip img:hover {
  transform: scale(1.06) rotate(-2deg);
  filter: brightness(1.1);
}

.chips-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
}

.chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(46, 203, 255, 0.2), rgba(27, 108, 255, 0.15));
  border: 1px solid var(--border-glow);
  font-size: 0.85rem;
  font-weight: 600;
  animation: chip-pulse 3s ease-in-out infinite;
}

.chip:nth-child(2) { animation-delay: 0.5s; }
.chip:nth-child(3) { animation-delay: 1s; }
.chip:nth-child(4) { animation-delay: 1.5s; }

@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 203, 255, 0.25); }
  50% { box-shadow: 0 0 20px 4px rgba(46, 203, 255, 0.15); }
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid rgba(46, 203, 255, 0.12);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item.is-open {
  border-color: var(--border-glow);
  box-shadow: 0 0 24px rgba(27, 108, 255, 0.12);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.faq-q span.icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(46, 203, 255, 0.15);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out);
  color: var(--cyan);
}

.faq-item.is-open .faq-q span.icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}

.faq-a-inner {
  padding: 0 1.25rem 1.25rem;
  color: #b8d0ea;
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(46, 203, 255, 0.15);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--cyan);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 2.5s ease-in-out infinite;
  pointer-events: none;
  box-shadow: 0 0 10px var(--cyan);
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  30% { opacity: 0.9; transform: scale(1); }
  60% { opacity: 0; }
}

.hero .sparkle:nth-of-type(1) { top: 20%; left: 15%; animation-delay: 0s; }
.hero .sparkle:nth-of-type(2) { top: 60%; left: 80%; animation-delay: 0.8s; }
.hero .sparkle:nth-of-type(3) { top: 40%; left: 50%; animation-delay: 1.5s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
