/* ============================================================
   OSAKA X-GAMING LAB — Common Stylesheet
   Next-gen esports event company site
   ============================================================ */

:root {
  --color-bg: #05060f;
  --color-bg-alt: #0a0d1c;
  --color-surface: #10142a;
  --color-surface-2: #151a35;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #eef0fb;
  --color-text-dim: #a9adc7;
  --color-text-mute: #767ba0;
  --color-primary: #7c5cff;
  --color-primary-2: #b06bff;
  --color-cyan: #29e7ff;
  --color-magenta: #ff3d9a;
  --color-lime: #c6ff3d;
  --gradient-main: linear-gradient(135deg, #7c5cff 0%, #29e7ff 50%, #ff3d9a 100%);
  --gradient-vertical: linear-gradient(180deg, rgba(124,92,255,0.25), rgba(41,231,255,0.05));
  --font-heading: 'Orbitron', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', 'Inter', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 40px rgba(124, 92, 255, 0.35);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.35; margin: 0; letter-spacing: 0.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background FX ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,92,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,255,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.bg-orb--1 { width: 480px; height: 480px; top: -120px; left: -120px; background: var(--color-primary); }
.bg-orb--2 { width: 420px; height: 420px; top: 40%; right: -160px; background: var(--color-cyan); opacity: 0.25; }
.bg-orb--3 { width: 380px; height: 380px; bottom: -100px; left: 30%; background: var(--color-magenta); opacity: 0.2; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 6, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #05060f;
  box-shadow: 0 0 18px rgba(124,92,255,0.6);
  transition: transform 0.2s ease;
}
.brand-mark:hover { transform: scale(1.08) rotate(-4deg); }
.brand-mark.spin { animation: coinSpin 0.7s ease; }
@keyframes coinSpin {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(360deg) scale(1.15); box-shadow: 0 0 30px rgba(198,255,61,0.8); }
  100% { transform: rotateY(720deg) scale(1); }
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--color-text-mute);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.nav-desktop { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-desktop a {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--color-text-dim);
  border-radius: 999px;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
}
.nav-desktop a:hover, .nav-desktop a.active {
  color: var(--color-text);
  background: rgba(124, 92, 255, 0.15);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta .btn { padding: 10px 20px; font-size: 0.86rem; }
.header-cta .btn-controller { padding-left: 44px; padding-right: 48px; }
.btn-primary {
  background: var(--gradient-main);
  color: #05060f;
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124, 92, 255, 0.6); }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--color-cyan); color: var(--color-cyan); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; flex-shrink: 0; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,6,15,0.55) 0%, rgba(5,6,15,0.75) 55%, var(--color-bg) 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.1);
  color: var(--color-cyan);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 28px;
}
.eyebrow::before { content: "●"; color: var(--color-magenta); font-size: 0.6rem; }

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  font-weight: 900;
  margin-bottom: 24px;
}
.hero h1 .grad {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--color-text-dim);
  max-width: 720px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.stat-card {
  padding: 22px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.78rem; color: var(--color-text-mute); margin-top: 6px; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--color-text-mute);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  animation: bounce 2.4s infinite;
}
.scroll-cue .line { width: 1px; height: 30px; background: linear-gradient(var(--color-primary), transparent); }
@keyframes bounce { 0%,100%{ transform: translate(-50%, 0);} 50%{ transform: translate(-50%, 8px);} }

/* ---------- Section base ---------- */
section { position: relative; padding: 110px 0; z-index: 1; }
.section-tight { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--color-cyan);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 18px;
}
.section-desc { color: var(--color-text-dim); font-size: 1rem; }

.bg-alt { background: var(--color-bg-alt); }
.bg-panel {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: linear-gradient(180deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124, 92, 255, 0.15);
  color: var(--color-cyan);
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.card p { color: var(--color-text-dim); font-size: 0.94rem; }

/* Merit cards number badge */
.merit-card { position: relative; padding-top: 46px; }
.merit-num {
  position: absolute; top: -18px; left: 30px;
  font-family: var(--font-heading);
  font-size: 2.6rem; font-weight: 900;
  color: rgba(124,92,255,0.35);
}

/* ---------- Flow / Steps ---------- */
.flow-list { display: flex; flex-direction: column; gap: 0; }
.flow-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.flow-step:last-child { border-bottom: none; }
.flow-step-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-primary-2);
  align-self: start;
}
.flow-step-body h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--color-text); }
.flow-step-body p { color: var(--color-text-dim); }
.flow-step-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--color-cyan);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  background: radial-gradient(circle at 30% 20%, rgba(124,92,255,0.35), transparent 60%), var(--color-surface);
  border: 1px solid rgba(124,92,255,0.35);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; }
.cta-band p { color: var(--color-text-dim); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: #030309;
  border-top: 1px solid var(--color-border);
  padding: 72px 0 28px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--color-text-mute); font-size: 0.9rem; margin-top: 16px; }
.footer-col h4 { font-size: 0.9rem; color: var(--color-text); margin-bottom: 18px; letter-spacing: 0.05em; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--color-text-dim); font-size: 0.88rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--color-cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-mute);
  font-size: 0.8rem;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-dim);
  transition: all 0.2s ease;
}
.social-row a:hover { border-color: var(--color-cyan); color: var(--color-cyan); }

/* ---------- Breadcrumb / page header ---------- */
.page-hero {
  padding: 150px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(124,92,255,0.12), transparent);
}
.page-hero .section-tag { margin-bottom: 14px; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-text-mute);
  margin-top: 18px;
}
.breadcrumb a { color: var(--color-text-dim); }
.breadcrumb a:hover { color: var(--color-cyan); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; color: var(--color-text-dim); font-weight: 600; }
.form-field label .req { color: var(--color-magenta); margin-left: 4px; font-size: 0.75rem; }
.form-field input, .form-field select, .form-field textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
.form-note { font-size: 0.8rem; color: var(--color-text-mute); margin-top: 24px; }
.form-status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: rgba(198,255,61,0.12); color: var(--color-lime); border: 1px solid rgba(198,255,61,0.3); }
.form-status.error { background: rgba(255,61,154,0.12); color: var(--color-magenta); border: 1px solid rgba(255,61,154,0.3); }

/* ---------- Contact info cards ---------- */
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {
  display: flex; gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.02);
}
.contact-info-item .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(41,231,255,0.12); color: var(--color-cyan);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 6px; }
.contact-info-item p, .contact-info-item a { color: var(--color-text-dim); font-size: 0.9rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.tag-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-text-dim);
}

.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,92,255,0.6), transparent);
  margin: 60px 0;
}

table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th, table.data-table td {
  padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
table.data-table th { color: var(--color-cyan); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; }
table.data-table td { color: var(--color-text-dim); }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
}
.faq-q .plus { color: var(--color-cyan); font-size: 1.3rem; transition: transform 0.3s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--color-text-dim);
  font-size: 0.92rem;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 22px; }

.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.value-list li {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--color-cyan);
  font-size: 0.92rem;
  color: var(--color-text-dim);
}

.img-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

.company-table td:first-child { width: 180px; color: var(--color-text-mute); font-weight: 600; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: none;
  padding: 12px 16px;
  background: rgba(5,6,15,0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-outline { display: none; }
  .header-inner { padding: 12px 16px; gap: 8px; }
  .header-cta { gap: 6px; }
  .brand-text { font-size: 0.95rem; }
  .brand-text small { display: none; }
  .header-cta .btn-controller { padding-left: 34px; padding-right: 16px; }
  .header-cta .btn-controller::after { display: none; }
  .header-cta .btn { padding-top: 9px; padding-bottom: 9px; font-size: 0.78rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .flow-step { grid-template-columns: 1fr; gap: 12px; }
  .value-list { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  body { padding-bottom: 70px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 70px 0; }
  .hero { padding-top: 120px; }
  .cta-band { padding: 44px 22px; }
}

/* ============================================================
   PLAYFUL FX — controller button, floating icons, confetti,
   count-up stats, particle sparks, card shine, easter egg
   ============================================================ */

/* ---- Eyebrow pulse dot ---- */
.eyebrow::before { animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.5); }
}

/* ---- Stat card bounce ---- */
.stat-card { transition: transform 0.25s ease, border-color 0.25s ease; }
.stat-card:hover { transform: translateY(-6px) scale(1.04); border-color: rgba(124,92,255,0.5); }

/* ---- Card loot-box shine sweep ---- */
.card { overflow: hidden; }
.card::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 35%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 1;
}
.card:hover::after { left: 130%; }

/* ---- Floating decorative game icons (hero) ---- */
.floaty {
  position: absolute;
  pointer-events: none;
  font-size: 1.7rem;
  color: rgba(124, 92, 255, 0.45);
  filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.5));
  animation: floatDrift 6.5s ease-in-out infinite;
  z-index: 0;
}
.floaty-1 { top: 20%; left: 7%; color: rgba(41, 231, 255, 0.55); animation-delay: 0s; }
.floaty-2 { top: 26%; right: 9%; color: rgba(255, 61, 154, 0.5); font-size: 1.3rem; animation-delay: 1.1s; }
.floaty-3 { bottom: 32%; left: 12%; font-size: 1.5rem; animation-delay: 2.3s; }
.floaty-4 { bottom: 22%; right: 14%; color: rgba(198, 255, 61, 0.5); font-size: 1.2rem; animation-delay: 0.7s; }
.floaty-5 { top: 55%; left: 4%; color: rgba(255, 61, 154, 0.35); font-size: 1.1rem; animation-delay: 1.8s; display: none; }
@keyframes floatDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}
@media (min-width: 900px) { .floaty-5 { display: block; } }

/* ---- PRESS START blinking scroll cue ---- */
.scroll-cue .blink { animation: blinkText 1.1s steps(1) infinite; font-family: var(--font-heading); letter-spacing: 0.15em; }
@keyframes blinkText { 50% { opacity: 0.15; } }

/* ---- CTA band twinkling particles ---- */
.cta-band { overflow: hidden; }
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 18% 25%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(2px 2px at 68% 55%, rgba(41,231,255,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 78%, rgba(255,61,154,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 22%, rgba(198,255,61,0.7), transparent 60%),
    radial-gradient(2px 2px at 52% 42%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 75%, rgba(124,92,255,0.7), transparent 60%);
  background-repeat: no-repeat;
  animation: driftParticles 7s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta-band h2, .cta-band p, .cta-band .cta-actions { position: relative; z-index: 1; }
@keyframes driftParticles {
  0% { transform: translate(0, 0); opacity: 0.6; }
  100% { transform: translate(8px, -16px); opacity: 1; }
}

/* ---- Game controller-style CTA button ---- */
.btn-controller {
  position: relative;
  padding-left: 52px;
  padding-right: 56px;
  box-shadow:
    0 6px 22px rgba(124, 92, 255, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-controller.btn-lg { padding-left: 60px; padding-right: 64px; }
.btn-controller.btn-block { padding-left: 52px; padding-right: 56px; }

/* D-pad (left cross) */
.btn-controller::before {
  content: "";
  position: absolute;
  left: 24px; top: 50%;
  width: 4px; height: 4px;
  background: rgba(5, 6, 15, 0.6);
  border-radius: 1px;
  box-shadow:
    0 -6px 0 0 rgba(5, 6, 15, 0.6),
    0 6px 0 0 rgba(5, 6, 15, 0.6),
    -6px 0 0 0 rgba(5, 6, 15, 0.6),
    6px 0 0 0 rgba(5, 6, 15, 0.6);
  transform: translateY(-50%);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
/* ABXY buttons (right diamond) */
.btn-controller::after {
  content: "";
  position: absolute;
  right: 30px; top: 50%;
  width: 5px; height: 5px;
  background: transparent;
  border-radius: 50%;
  box-shadow:
    0 -8px 0 0 rgba(5, 6, 15, 0.6),
    8px 0 0 0 rgba(5, 6, 15, 0.6),
    0 8px 0 0 rgba(5, 6, 15, 0.6),
    -8px 0 0 0 rgba(5, 6, 15, 0.6);
  transform: translateY(-50%);
  transition: box-shadow 0.25s ease;
}
.btn-controller:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 28px rgba(124, 92, 255, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.22);
}
.btn-controller:hover::after {
  box-shadow:
    0 -8px 0 0 #ffd23d,
    8px 0 0 0 #ff5d5d,
    0 8px 0 0 #4dff88,
    -8px 0 0 0 #4dd2ff;
}
.btn-controller:active {
  transform: translateY(1px) scale(0.97);
  box-shadow:
    0 3px 12px rgba(124, 92, 255, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* ---- Confetti burst ---- */
.confetti-piece {
  position: fixed;
  z-index: 400;
  border-radius: 2px;
  pointer-events: none;
  animation-name: confettiFly;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1);
  animation-fill-mode: forwards;
}
@keyframes confettiFly {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ---- Easter egg toast ---- */
.easter-egg-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  max-width: min(92vw, 460px);
  background: linear-gradient(135deg, rgba(124,92,255,0.95), rgba(41,231,255,0.9));
  color: #05060f;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 500;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.easter-egg-toast.show { opacity: 1; transform: translate(-50%, 0); }
.easter-egg-toast i { margin-right: 8px; }

/* ---- Count-up number ---- */
.count-target { font-variant-numeric: tabular-nums; }

/* ---------- Mobile nav drawer ---------- */
.nav-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: min(80vw, 340px);
  height: 100vh;
  background: var(--color-bg-alt);
  border-left: 1px solid var(--color-border);
  z-index: 200;
  padding: 100px 32px 32px;
  transition: right 0.35s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.nav-drawer.open { right: 0; }
.nav-drawer a { padding: 16px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--color-border); color: var(--color-text-dim); }
.nav-drawer a:hover { color: var(--color-cyan); }
.nav-drawer-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: var(--color-text); font-size: 1.6rem;
}
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 199; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ============================================================
   FPS-STYLE CROSSHAIR CURSOR
   Replaces the default pointer with a HUD-like reticle that
   tracks the mouse, tightens over clickable elements, and
   "fires" (flash + recoil) on click — fine pointers only.
   ============================================================ */
body.fps-cursor-active,
body.fps-cursor-active a,
body.fps-cursor-active button,
body.fps-cursor-active .card,
body.fps-cursor-active input,
body.fps-cursor-active select,
body.fps-cursor-active textarea,
body.fps-cursor-active label,
body.fps-cursor-active .faq-q {
  cursor: none;
}

.fps-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}

.fps-cursor-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border: 1.5px solid var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(41, 231, 255, 0.5), inset 0 0 6px rgba(41, 231, 255, 0.25);
  transition: width 0.18s ease, height 0.18s ease, margin 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.fps-cursor-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(41, 231, 255, 0.9);
  transition: background 0.18s ease;
}

.fps-cursor-tick {
  position: absolute;
  background: var(--color-cyan);
  opacity: 0.85;
  transition: background 0.18s ease, opacity 0.15s ease, transform 0.15s ease;
}
.fps-cursor-tick--n, .fps-cursor-tick--s { width: 1.5px; height: 8px; left: 50%; margin-left: -0.75px; }
.fps-cursor-tick--e, .fps-cursor-tick--w { height: 1.5px; width: 8px; top: 50%; margin-top: -0.75px; }
.fps-cursor-tick--n { top: 50%; margin-top: -25px; }
.fps-cursor-tick--s { top: 50%; margin-top: 17px; }
.fps-cursor-tick--e { left: 50%; margin-left: 17px; }
.fps-cursor-tick--w { left: 50%; margin-left: -25px; }

/* Target-lock state: reticle tightens + turns magenta over clickable elements */
.fps-cursor--target .fps-cursor-ring {
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-color: var(--color-magenta);
  box-shadow: 0 0 14px rgba(255, 61, 154, 0.65), inset 0 0 8px rgba(255, 61, 154, 0.3);
  transform: rotate(45deg);
}
.fps-cursor--target .fps-cursor-dot { background: var(--color-magenta); box-shadow: 0 0 10px rgba(255, 61, 154, 0.9); }
.fps-cursor--target .fps-cursor-tick { background: var(--color-magenta); }
.fps-cursor--target .fps-cursor-tick--n { margin-top: -16px; }
.fps-cursor--target .fps-cursor-tick--s { margin-top: 8px; }
.fps-cursor--target .fps-cursor-tick--e { margin-left: 8px; }
.fps-cursor--target .fps-cursor-tick--w { margin-left: -16px; }

/* Fire state: quick recoil flash on mousedown */
.fps-cursor--fire .fps-cursor-ring {
  transform: scale(0.82) rotate(45deg);
  border-color: #ffd23d;
  box-shadow: 0 0 20px rgba(255, 210, 61, 0.85);
}
.fps-cursor--fire .fps-cursor-dot { background: #ffd23d; box-shadow: 0 0 14px rgba(255, 210, 61, 1); }
.fps-cursor--fire .fps-cursor-tick { background: #ffd23d; }

@media (max-width: 960px), (pointer: coarse) {
  .fps-cursor { display: none; }
  body.fps-cursor-active,
  body.fps-cursor-active a,
  body.fps-cursor-active button,
  body.fps-cursor-active .card,
  body.fps-cursor-active input,
  body.fps-cursor-active select,
  body.fps-cursor-active textarea,
  body.fps-cursor-active label,
  body.fps-cursor-active .faq-q {
    cursor: auto;
  }
}
