:root {
  --bg: #05070e;
  --surface: #0d1221;
  --surface-2: #12192e;
  --border: rgba(255, 255, 255, 0.09);
  --border-hi: rgba(0, 245, 255, 0.42);
  --text: #eef4ff;
  --muted: #93a3c5;
  --cyan: #00f5ff;
  --green: #39ff14;
  --pink: #ff007f;
  --amber: #ffbe0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at 50% -10%, #141e3d 0%, #070a14 42%, #05070e 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overscroll-behavior-x: none;
}

a { color: inherit; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(5, 7, 14, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  max-width: 1040px; margin: 0 auto;
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 900; font-size: 19px; letter-spacing: -0.4px;
}
.brand-icon {
  width: 34px; height: 34px; border-radius: 10px; display: block;
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.32);
}
.brand-wordmark { display: inline-flex; align-items: baseline; font-weight: 900; letter-spacing: 0.3px; }
.brand-yaso {
  color: #00f5ff;
  text-shadow: 0 0 14px rgba(0, 245, 255, 0.45);
}
.brand-games {
  background: linear-gradient(90deg, #ff8a00 0%, #ff2e7a 55%, #ff007f 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a {
  text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color 0.15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--cyan); }

/* Container */
.container {
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding: 24px 18px 48px; flex: 1;
}
.container-narrow { max-width: 780px; }

/* Quick Find Hero */
.hero {
  text-align: center;
  padding: 10px 0 24px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(0, 245, 255, 0.1); border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(28px, 6vw, 44px); line-height: 1.12; letter-spacing: -0.9px;
  margin-bottom: 10px;
  background: linear-gradient(95deg, #ffffff 10%, var(--cyan) 55%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); font-size: 15px; max-width: 580px; margin: 0 auto 22px; }

.quick-find {
  max-width: 600px; margin: 0 auto;
  background: linear-gradient(160deg, rgba(18, 25, 46, 0.96), rgba(10, 14, 28, 0.98));
  border: 1px solid rgba(0, 245, 255, 0.38);
  border-radius: 20px; padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0, 245, 255, 0.12);
}
.qf-label {
  display: block; text-align: left; font-size: 13px; font-weight: 800;
  color: #fff; margin-bottom: 9px; letter-spacing: 0.2px;
}
.qf-form { display: flex; gap: 8px; }
.qf-input {
  flex: 1; min-width: 0;
  background: #060913; border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff; border-radius: 12px; padding: 12px 14px;
  font-size: 15px; font-weight: 700; outline: none;
}
.qf-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.15); }
.qf-btn {
  border: 0; border-radius: 12px; padding: 12px 20px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  color: #041016; font-weight: 900; font-size: 14px; letter-spacing: 0.4px;
  cursor: pointer; white-space: nowrap; transition: transform 0.14s, filter 0.14s;
}
.qf-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.qf-msg { text-align: left; font-size: 12.5px; color: #ff7ba5; margin-top: 8px; min-height: 0; }

/* Featured Spotlight */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 28px 0 14px;
}
.section-head h2 { font-size: 20px; letter-spacing: -0.3px; }
.section-sub { font-size: 13px; color: var(--muted); }

.featured-card {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; align-items: center;
  background: linear-gradient(145deg, #131c36, #0a0f1f 65%, #160c24);
  border: 1px solid rgba(0, 245, 255, 0.42);
  border-radius: 24px; padding: 22px;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 36px rgba(0, 245, 255, 0.1);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.featured-card:hover {
  transform: translateY(-3px); border-color: var(--cyan);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), 0 0 46px rgba(0, 245, 255, 0.22);
}
@media (max-width: 700px) {
  .featured-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 20px 18px; }
  .featured-meta { justify-content: center; }
}

/* Animated Neon Ring Preview Graphic */
.mini-preview {
  width: 140px; height: 140px; border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, #141c38, #05070e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; place-items: center; position: relative; overflow: hidden;
  flex-shrink: 0;
}
.mini-preview.sm { width: 76px; height: 76px; border-radius: 15px; }
.mini-preview svg { width: 88%; height: 88%; }
.ring-spin-cw { transform-origin: 50px 50px; animation: spinCW 5.5s linear infinite; }
.ring-spin-ccw { transform-origin: 50px 50px; animation: spinCCW 4.2s linear infinite; }
.ball-bob { animation: bob 1.3s ease-in-out infinite alternate; }
@keyframes spinCW { to { transform: rotate(360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }
@keyframes bob { from { transform: translate(-4px, -7px); } to { transform: translate(5px, 8px); } }

.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); color: #dce8ff;
}
.pill-cyan { background: rgba(0, 245, 255, 0.14); color: var(--cyan); border: 1px solid rgba(0, 245, 255, 0.3); }
.pill-pink { background: rgba(255, 0, 127, 0.16); color: #ff79bd; border: 1px solid rgba(255, 0, 127, 0.35); }
.pill-green { background: rgba(57, 255, 20, 0.14); color: #83ff6d; border: 1px solid rgba(57, 255, 20, 0.35); }

.featured-title { font-size: 24px; font-weight: 900; margin-bottom: 6px; letter-spacing: -0.4px; }
.featured-desc { font-size: 14px; color: var(--muted); margin-bottom: 12px; max-width: 520px; }
.play-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px;
  background: linear-gradient(95deg, var(--cyan), var(--pink));
  color: #040812; font-weight: 900; font-size: 14.5px; letter-spacing: 0.4px;
  white-space: nowrap; box-shadow: 0 10px 28px rgba(0, 245, 255, 0.25);
}

/* Games Grid (Crisp 3x2 Desktop / 2x3 Tablet / 1-Col Mobile Showcase) */
.games-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 940px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .games-grid { grid-template-columns: 1fr; }
}
.game-card {
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 20px; padding: 18px;
  text-decoration: none; transition: transform 0.16s, border-color 0.16s;
}
.game-card:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.gc-top { display: flex; align-items: center; gap: 14px; }
.gc-num {
  font-size: 12px; font-weight: 900; color: var(--cyan);
  letter-spacing: 0.6px; margin-bottom: 2px;
}
.gc-title { font-size: 18px; font-weight: 800; line-height: 1.25; }
.gc-desc { font-size: 13px; color: var(--muted); flex: 1; }
.gc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.gc-play {
  padding: 8px 14px; border-radius: 10px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  color: #041016; font-weight: 900; font-size: 12.5px;
}

/* Info / SEO Section & Legal Prose */
.prose-card {
  margin-top: 32px;
  background: rgba(13, 18, 33, 0.85);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 24px;
}
.prose-card h1 { font-size: 28px; margin-bottom: 10px; letter-spacing: -0.5px; }
.prose-card h2 { font-size: 19px; color: #fff; margin: 22px 0 8px; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card p { color: #b5c3df; font-size: 14.5px; margin-bottom: 12px; }
.prose-card ul { margin: 8px 0 14px 20px; color: #b5c3df; font-size: 14.5px; }
.prose-card li { margin-bottom: 6px; }
.prose-card a { color: var(--cyan); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: #dce8ff; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: #060913; border: 1px solid var(--border); color: #fff;
  border-radius: 11px; padding: 11px 13px; font-size: 14px; font-family: inherit; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cyan); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 14, 0.9);
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--cyan); }
