/* ============================================================
   PILOTCONFIG LANDING — DARK FUTURISTIC THEME
   PilotConfig.com | style.css
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --bg:          #030308;
  --surface:     #080812;
  --surface-2:   #0d0d1e;
  --cyan:        #00c8ff;
  --cyan-dim:    rgba(0, 200, 255, 0.15);
  --cyan-glow:   rgba(0, 200, 255, 0.35);
  --purple:      #7b2fff;
  --purple-dim:  rgba(123, 47, 255, 0.18);
  --pink:        #ff2d78;
  --text:        #dce8ff;
  --text-soft:   #7a88aa;
  --border:      rgba(0, 200, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.06);

  --font-display: 'Orbitron', 'Courier New', monospace;
  --font-body:    'Heebo', system-ui, sans-serif;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

::selection { background: transparent; }
a { text-decoration: none; }

/* Prevent text selection and text cursor on all elements */
body, body * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default !important;
}

a, button { cursor: default !important; }

/* ── CANVAS BG ──────────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── OVERLAY GRADIENTS ──────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(123,47,255,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 95% 95%,  rgba(0,200,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 5%  60%,  rgba(255,45,120,0.07) 0%, transparent 55%);
}

/* ── GRID MESH ──────────────────────────────────────────────── */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,200,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ── SCANLINES ──────────────────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.035) 2px,
    rgba(0,0,0,0.035) 4px
  );
}

/* ── LOADER ─────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden { opacity: 0; visibility: hidden; }

.loader-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(0,200,255,0.12);
  border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 20px rgba(0,200,255,0.3);
}

.loader-text {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--text-soft);
  animation: blink-text 1.2s ease-in-out infinite;
}

/* ── PAGE WRAP ──────────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.8rem 2.5rem;
  opacity: 0;
}

.page-wrap.visible { opacity: 1; }

/* ── HEADER ─────────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(-16px);
}

.logo-hex {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0,200,255,0.6));
  animation: hex-pulse 2.5s ease-in-out infinite;
}

.logo-name {
  font-size: 1.25rem;
  color: var(--text);
  text-transform: uppercase;
}

.logo-tld {
  font-size: 0.85rem;
  color: var(--cyan);
  opacity: 0.75;
}

/* Header status */
.header-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(0,200,255,0.04);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-16px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink-dot 1.4s ease-in-out infinite;
}

.status-text {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.4rem;
  padding: 2rem 0 3rem;
  position: relative;
}

/* Corner brackets */
.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.corner--tl { top: 0;    right: 0;   border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.corner--tr { top: 0;    left: 0;    border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.corner--bl { bottom: 0; right: 0;   border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.corner--br { bottom: 0; left: 0;    border-bottom: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }

/* Eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--text-soft);
  opacity: 0;
  transform: translateY(20px);
}

.eyebrow-bracket { color: var(--cyan); opacity: 0.7; }
.eyebrow-label   { text-transform: uppercase; }

/* ── HEADLINE ───────────────────────────────────────────────── */
.headline-block {
  opacity: 0;
  transform: translateY(40px);
}

.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(3.8rem, 11vw, 9rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hl-line { display: block; }

.hl-plain { color: var(--text); }

.hl-gradient {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--purple) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* Glow under gradient text */
.hl-gradient::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(24px);
  opacity: 0.35;
  z-index: -1;
}

.sub-headline {
  margin-top: 1.3rem;
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

.sub-headline strong { color: var(--text); font-weight: 700; }

/* ── AI DIVIDER ─────────────────────────────────────────────── */
.ai-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 480px;
  opacity: 0;
  transform: scaleX(0.4);
}

.divider-arm {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.ai-ring-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-ring {
  position: absolute;
  border-radius: 50%;
}

.ai-ring--outer {
  inset: 0;
  border: 1px solid rgba(0,200,255,0.25);
  animation: ring-spin 8s linear infinite;
}

.ai-ring--inner {
  inset: 8px;
  border: 1px solid rgba(123,47,255,0.35);
  border-top-color: var(--purple);
  animation: ring-spin 4s linear infinite reverse;
}

.ai-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
  z-index: 1;
}

/* ── UPDATE BLOCK ───────────────────────────────────────────── */
.update-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(24px);
}

.update-main {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.progress-track {
  position: relative;
  width: 320px;
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: visible;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 100px;
  transition: width 2.4s var(--ease-expo);
  position: relative;
  z-index: 1;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--cyan);
}

.progress-glow {
  position: absolute;
  inset: -6px;
  background: linear-gradient(90deg, var(--purple-dim), var(--cyan-dim));
  border-radius: 100px;
  filter: blur(8px);
  pointer-events: none;
}

.update-sub {
  font-size: 0.88rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

/* ── STATS STRIP ────────────────────────────────────────────── */
.stats-strip {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1.4rem 2.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(28px);
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on the strip */
.stats-strip::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,200,255,0.04), transparent);
  animation: shimmer 3s ease-in-out infinite 2s;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.stat-val {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,200,255,0.5);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,200,255,0.5);
}

.stat-key {
  font-size: 0.72rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-sep {
  width: 1px;
  height: 42px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── FLOATING TAGS ──────────────────────────────────────────── */
.float-tag {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
}

.float-tag--1 { top: 18%;  right: -2%;  animation: float-anim 5s ease-in-out infinite 0.0s; }
.float-tag--2 { top: 32%;  left: -2%;   animation: float-anim 6s ease-in-out infinite 0.8s; }
.float-tag--3 { bottom: 22%; right: 0%; animation: float-anim 5.5s ease-in-out infinite 0.4s; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.78rem;
  color: var(--text-soft);
  opacity: 0;
  transform: translateY(12px);
}

.brand-name { color: var(--cyan); }

.footer-email {
  color: var(--text-soft);
  transition: color 0.3s ease;
  direction: ltr;
}

.footer-email:hover { color: var(--cyan); }

/* ── KEYFRAME ANIMATIONS ────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes hex-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0,200,255,0.6)); }
  50%       { filter: drop-shadow(0 0 20px rgba(0,200,255,0.9)); }
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

@keyframes blink-text {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

@keyframes float-anim {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33%       { transform: translateY(-8px) translateX(3px); }
  66%       { transform: translateY(4px) translateX(-2px); }
}

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet — 768px */
@media (max-width: 768px) {
  .page-wrap {
    padding: 1.2rem 1.4rem;
    gap: 0;
  }

  /* Header */
  .header {
    padding-bottom: 1rem;
  }
  .header-status { display: none; }
  .logo-name { font-size: 1.1rem; }

  /* Hero */
  .hero {
    gap: 1.8rem;
    padding: 1.5rem 0 2rem;
  }
  .corner { display: none; }
  .float-tag { display: none; }

  /* Eyebrow */
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.16em; }

  /* Headline */
  .sub-headline { margin-top: 0.9rem; }

  /* Divider */
  .ai-divider { max-width: 340px; }
  .ai-ring-wrap { width: 48px; height: 48px; }

  /* Progress */
  .progress-track { width: 100%; max-width: 280px; }
  .update-main { font-size: 1.3rem; }

  /* Stats */
  .stats-strip {
    padding: 1rem 1.2rem;
    gap: 0;
    width: 100%;
  }
  .stat-val    { font-size: 1.4rem; }
  .stat-suffix { font-size: 0.85rem; }
  .stat-key    { font-size: 0.65rem; }

  /* Footer */
  .footer {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    padding-top: 1rem;
  }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  .page-wrap { padding: 1rem 1.1rem; }

  /* Logo */
  .logo-name { font-size: 1rem; }
  .logo-tld  { font-size: 0.75rem; }
  .logo-hex svg { width: 22px; height: 22px; }

  /* Hero */
  .hero { gap: 1.5rem; padding: 1rem 0 1.5rem; }

  /* Headline — prevent overflow on very small screens */
  .headline {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }
  .sub-headline {
    font-size: 1rem;
    margin-top: 0.7rem;
    padding: 0 0.5rem;
  }

  /* Divider */
  .ai-divider { max-width: 260px; gap: 0.7rem; }
  .ai-ring-wrap { width: 42px; height: 42px; }
  .ai-label { font-size: 0.62rem; }

  /* Update block */
  .update-main { font-size: 1.1rem; letter-spacing: 0.02em; }
  .progress-track { width: 90vw; max-width: 260px; }
  .update-sub { font-size: 0.8rem; padding: 0 0.5rem; text-align: center; }

  /* Stats — wrap to 2x grid */
  .stats-strip {
    flex-wrap: wrap;
    gap: 1rem 0;
    justify-content: space-around;
    padding: 1rem;
    border-radius: 14px;
  }
  .stat-sep { display: none; }
  .stat {
    flex: 0 0 44%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
  }
  /* Remove bottom border from last row */
  .stat:nth-child(5),
  .stat:nth-child(6) { border-bottom: none; padding-bottom: 0; }
  .stat-val    { font-size: 1.5rem; }
  .stat-suffix { font-size: 0.9rem; }

  /* Eyebrow */
  .eyebrow { font-size: 0.58rem; gap: 0.3rem; }

  /* Footer */
  .footer { font-size: 0.72rem; }
}

/* Very small screens — 360px */
@media (max-width: 360px) {
  .headline { font-size: clamp(2.4rem, 15vw, 3rem); }
  .update-main { font-size: 1rem; }
  .stats-strip { padding: 0.8rem; }
  .stat-val { font-size: 1.3rem; }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    gap: 1.2rem;
    padding: 0.5rem 0 1rem;
  }
  .headline { font-size: clamp(2rem, 8vw, 3.5rem); }
  .stats-strip { padding: 0.8rem 1.5rem; }
  .stat-val { font-size: 1.2rem; }
  .update-block { gap: 0.7rem; }
  .update-main { font-size: 1rem; }
  .ai-divider { display: none; }
}
}


/* ============================================================
   GAME — AI DODGE
   ============================================================ */

/* ── Launch Button ─────────────────────────────────────────── */
.game-launcher {
  opacity: 0;
  transform: translateY(20px);
}

.launch-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.8rem;
  background: rgba(123, 47, 255, 0.08);
  border: 1px solid rgba(123, 47, 255, 0.35);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-body);
  cursor: default !important;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-expo), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: right;
}

.launch-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(123,47,255,0.1), rgba(0,200,255,0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.launch-btn:hover {
  background: rgba(123, 47, 255, 0.14);
  border-color: rgba(123, 47, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -8px rgba(123,47,255,0.35);
}

.launch-btn:hover::before { opacity: 1; }

.launch-icon {
  font-size: 1.5rem;
  color: var(--purple);
  text-shadow: 0 0 14px var(--purple);
  flex-shrink: 0;
  animation: hex-pulse 2s ease-in-out infinite;
}

.launch-texts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  direction: rtl;
}

.launch-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.launch-sub {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--purple);
  text-transform: uppercase;
}

.launch-arrow {
  font-size: 0.9rem;
  color: var(--purple);
  margin-right: auto;
  margin-left: 0.5rem;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.launch-btn:hover .launch-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* ── Game Overlay ──────────────────────────────────────────── */
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(3, 3, 8, 0.88);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 1rem;
}

.game-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Game Panel ────────────────────────────────────────────── */
.game-panel {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid rgba(123,47,255,0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,200,255,0.06),
    0 30px 80px -20px rgba(0,0,0,0.8),
    0 0 60px -20px rgba(123,47,255,0.2);
  display: flex;
  flex-direction: column;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.4s var(--ease-expo);
}

.game-overlay.active .game-panel {
  transform: scale(1) translateY(0);
}

/* ── Top Bar ───────────────────────────────────────────────── */
.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.game-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.game-brand-accent {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,200,255,0.5);
  margin-left: 0.15em;
}

.game-ver {
  font-size: 0.6rem;
  color: var(--text-soft);
  opacity: 0.5;
  letter-spacing: 0.1em;
}

.game-hud {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.hud-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0,200,255,0.5);
  line-height: 1;
}

.close-game-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.85rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  cursor: default !important;
  flex-shrink: 0;
}

.close-game-btn:hover {
  background: rgba(255,45,120,0.15);
  border-color: rgba(255,45,120,0.3);
  color: var(--pink);
}

/* ── Canvas Wrap ───────────────────────────────────────────── */
.canvas-wrap {
  position: relative;
  flex: 1;
  background: #050510;
  overflow: hidden;
  line-height: 0;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Screens (start / over) ────────────────────────────────── */
.gscreen {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 16, 0.92);
  backdrop-filter: blur(4px);
  direction: rtl;
}

.gscreen.visible {
  display: flex;
}

.gscreen-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.gscreen-icon {
  font-size: 3rem;
  color: var(--purple);
  text-shadow: 0 0 30px var(--purple), 0 0 60px rgba(123,47,255,0.3);
  animation: hex-pulse 2s ease-in-out infinite;
}

.gscreen-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.over-title {
  background: linear-gradient(120deg, var(--pink), var(--purple)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.gscreen-sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  direction: rtl;
}

.action-btn {
  margin-top: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--purple), rgba(0,200,255,0.6));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: default !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  box-shadow: 0 8px 24px -6px rgba(123,47,255,0.5);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -6px rgba(123,47,255,0.7);
}

.action-btn:active {
  transform: translateY(0);
  opacity: 0.85;
}

.ctrl-hints {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  opacity: 0.6;
}

.hint-sep { opacity: 0.4; }

/* Final score box */
.final-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255,45,120,0.25);
  border-radius: 12px;
  background: rgba(255,45,120,0.06);
}

.fs-label {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--text-soft);
}

.fs-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--pink);
  text-shadow: 0 0 20px rgba(255,45,120,0.5);
  line-height: 1;
}

/* ── Bottom Bar ────────────────────────────────────────────── */
.game-bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.lives-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.life-icon {
  font-size: 1rem;
  transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
}

.life-icon.active {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.life-icon.lost {
  color: rgba(255,255,255,0.12);
  transform: scale(0.8);
}

.level-tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--purple);
  text-shadow: 0 0 8px var(--purple);
}

/* ── Game Responsive ───────────────────────────────────────── */
@media (max-width: 480px) {
  .game-panel { border-radius: 16px; max-width: 100%; }
  .gscreen-title { font-size: 1.3rem; }
  .gscreen-icon  { font-size: 2.2rem; }
  .action-btn    { font-size: 0.7rem; padding: 0.65rem 1.5rem; }
  .ctrl-hints    { font-size: 0.5rem; }
  .game-topbar   { padding: 0.7rem 1rem; }
  .hud-val       { font-size: 0.85rem; }
}

@media (max-height: 700px) and (orientation: portrait) {
  .gscreen-inner { gap: 0.6rem; padding: 1.2rem; }
  .gscreen-icon  { font-size: 1.8rem; }
  .gscreen-sub   { font-size: 0.8rem; }
}
