/* Apex Arcade Club — mobile-first styles */
:root {
  --bg: #000;
  --bg-2: #05070d;
  --surface: #0b0f1a;
  --surface-2: #111729;
  --line: rgba(80, 140, 255, 0.18);
  --blue: #0a6cff;
  --blue-2: #3d8bff;
  --cyan: #29d3ff;
  --text: #eef3ff;
  --muted: #9aa7c2;
  --radius: 18px;
  --fb: #166fe5;
  --font-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--blue-2); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #2a86ff 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(10,108,255,.6), 0 8px 28px rgba(10,108,255,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(61,139,255,.9), 0 10px 36px rgba(10,108,255,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost {
  background: rgba(10,108,255,.08); color: var(--text); border-color: rgba(61,139,255,.55);
}
.btn-ghost:hover { background: rgba(10,108,255,.18); border-color: var(--blue-2); }
.btn-fb { background: var(--fb); color: #fff; box-shadow: 0 6px 22px rgba(24,119,242,.35); }
.btn-fb:hover { background: #1464d6; box-shadow: 0 0 0 1px rgba(61,139,255,.7), 0 8px 30px rgba(24,119,242,.6); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(61,139,255,.35), 0 0 18px rgba(10,108,255,.35); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.nav-fb) { display: none; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-fb {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff !important; background: var(--fb); min-height: 40px;
}
.nav-fb span { display: none; }
.nav-fb:hover { background: #1464d6 !important; box-shadow: 0 0 18px rgba(24,119,242,.55); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; text-align: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image:
    linear-gradient(rgba(10,108,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,108,255,.35) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
  animation: floor 6s linear infinite;
  opacity: .55;
}
@keyframes floor { to { background-position: 0 48px, 0 0; } }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.glow-1 { width: 420px; height: 420px; left: 50%; top: 4%; transform: translateX(-50%); background: rgba(10,108,255,.38); }
.glow-2 { width: 260px; height: 260px; right: -60px; bottom: 10%; background: rgba(41,211,255,.16); }

.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  width: 120px; height: 120px; border-radius: 28px; margin-bottom: 22px;
  box-shadow: 0 0 0 1px rgba(61,139,255,.45), 0 0 40px rgba(10,108,255,.55), 0 0 90px rgba(10,108,255,.25);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(61,139,255,.45), 0 0 40px rgba(10,108,255,.5), 0 0 90px rgba(10,108,255,.22); }
  50% { box-shadow: 0 0 0 1px rgba(61,139,255,.7), 0 0 56px rgba(10,108,255,.75), 0 0 120px rgba(10,108,255,.35); }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); padding: 6px 14px; border: 1px solid rgba(41,211,255,.35); border-radius: 999px;
  background: rgba(41,211,255,.06); margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22e07a; box-shadow: 0 0 10px #22e07a; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2rem, 8.4vw, 4rem); font-weight: 900; max-width: 14ch; text-transform: uppercase; }
.neon {
  color: #fff;
  text-shadow: 0 0 6px var(--blue-2), 0 0 18px var(--blue), 0 0 38px var(--blue), 0 0 70px rgba(10,108,255,.8);
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 36rem; margin: 18px auto 28px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 340px; }
.cta-row .btn { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; scroll-margin-top: 64px; }
.section-alt {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(10,108,255,.14), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-head { text-align: center; margin-bottom: 32px; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); font-weight: 800; text-transform: uppercase; }
.section-sub { color: var(--muted); margin-top: 10px; }

/* ---------- Game grid ---------- */
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.game-grid > li { --c: hsl(var(--hue, 215) 95% 60%); min-width: 0; }

.game-tile {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  border-radius: 20px;
  -webkit-tap-highlight-color: transparent;
}
.tile-media {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
  border-radius: 20px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px hsl(var(--hue, 215) 90% 60% / .28), 0 10px 30px rgba(0,0,0,.6), 0 0 24px hsl(var(--hue, 215) 90% 50% / .18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tile-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .45s ease, filter .3s ease;
}
/* soft top sheen */
.tile-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 35%, transparent 70%, rgba(0,0,0,.35));
}
.tile-play {
  position: absolute; z-index: 1; right: 8px; top: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 6px; border-radius: 999px;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .25s ease, border-color .25s ease;
}
.tile-name {
  font-family: var(--font-display); font-weight: 800; font-size: .9rem;
  letter-spacing: .06em; text-transform: uppercase; text-align: center;
  transition: color .25s ease, text-shadow .25s ease;
}

.game-tile:hover .tile-media,
.game-tile:focus-visible .tile-media {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--c), 0 14px 36px rgba(0,0,0,.6), 0 0 36px hsl(var(--hue, 215) 95% 55% / .6);
}
.game-tile:hover .tile-media img,
.game-tile:focus-visible .tile-media img { transform: scale(1.07); filter: saturate(1.12) brightness(1.06); }
.game-tile:hover .tile-play,
.game-tile:focus-visible .tile-play { background: var(--blue); border-color: var(--blue-2); }
.game-tile:hover .tile-name,
.game-tile:focus-visible .tile-name { color: #fff; text-shadow: 0 0 12px var(--c); }
.game-tile:focus-visible { outline: none; }
.game-tile:active .tile-media { transform: scale(.98); }

/* Account / Facebook tile */
.cta-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 12px; text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(10,108,255,.55), transparent 62%),
    repeating-linear-gradient(0deg, rgba(10,108,255,.10) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(10,108,255,.10) 0 1px, transparent 1px 22px),
    linear-gradient(160deg, #0a1a3d, #03060f 75%);
  transition: transform .45s ease;
}
.tile-media .cta-face-logo {
  width: 32%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 22%; flex-shrink: 0;
  transform: none; filter: none;
  box-shadow: 0 0 0 1px rgba(61,139,255,.55), 0 0 26px rgba(10,108,255,.6);
}
.cta-face-text { font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
.cta-face-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--fb); color: #fff; font-weight: 700; font-size: .82rem; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(24,119,242,.45);
}
.cta-face-btn svg { flex-shrink: 0; }
.game-tile--cta:hover .cta-face,
.game-tile--cta:focus-visible .cta-face { transform: scale(1.04); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: none; }
.step {
  position: relative; padding: 26px 22px 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.step-num {
  position: absolute; right: 14px; top: 2px;
  font-family: var(--font-display); font-weight: 900; font-size: 4.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(61,139,255,.35);
}
.step-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--blue), #2a86ff);
  box-shadow: 0 0 24px rgba(10,108,255,.5); margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.step p { color: var(--muted); }
.how-cta { display: flex; justify-content: center; margin-top: 32px; }
.how-cta .btn { width: 100%; max-width: 360px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .25s ease;
}
.faq-item[open] { border-color: rgba(61,139,255,.5); box-shadow: 0 0 24px rgba(10,108,255,.15); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none; border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover h3 { color: #fff; }
.faq-item h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); line-height: 1.35; }
.faq-icon {
  position: relative; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(10,108,255,.14); border: 1px solid rgba(61,139,255,.45);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: var(--blue-2); transform: translate(-50%, -50%); transition: transform .25s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p { padding: 0 20px 20px; color: var(--muted); }
.faq-item p a { color: var(--blue-2); text-underline-offset: 3px; }
.faq-item p a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { padding: 44px 0 calc(28px + env(safe-area-inset-bottom)); background: #000; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; text-align: left; }
.footer-brand img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(61,139,255,.35), 0 0 20px rgba(10,108,255,.35); }
.footer-name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.footer-tag { color: var(--muted); font-size: .9rem; }
.footer-legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; text-align: center; }
.rg { color: var(--muted); font-size: .85rem; max-width: 46rem; margin: 0 auto; }
.badge-18 {
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; margin-right: 6px;
  border: 2px solid #ff4d6d; color: #ff4d6d; border-radius: 6px; font-weight: 800; font-size: .75rem; vertical-align: middle;
}
.copy { color: #6c7894; font-size: .8rem; }

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  .nav-fb span { display: inline; }
  .cta-row { flex-direction: row; max-width: none; width: auto; }
  .cta-row .btn { width: auto; }
}
@media (min-width: 720px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .tile-name { font-size: 1rem; }
  .cta-face { gap: 14px; }
  .cta-face-text { font-size: .95rem; }
  .cta-face-btn { font-size: .95rem; padding: 9px 18px; }
  .tile-play { font-size: .74rem; right: 12px; top: 12px; gap: 5px; padding: 5px 11px 5px 9px; }
  .container { padding: 0 28px; }
  .nav a:not(.nav-fb) { display: inline-block; }
  .brand-name { font-size: 1.1rem; }
  .hero { padding: 72px 0 96px; }
  .hero-logo { width: 148px; height: 148px; border-radius: 34px; }
  .lead { font-size: 1.15rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .section { padding: 88px 0; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1024px) {
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
