/* =========================================================
   OKTAVIA CGI GAMES - CYBER THEME
   ---------------------------------------------------------
   - cyber専用色
   - HUD / scanline / glitch / neon
   ========================================================= */

body[data-theme="cyber"] {
  --font-body: "Roboto Mono", ui-monospace, monospace;
  --font-title: "Orbitron", "Roboto Mono", monospace;

  --bg: #05000a;
  --text: rgba(245, 250, 255, 0.94);

  --panel-bg-top: rgba(10, 0, 18, 0.60);
  --panel-bg-bottom: rgba(2, 0, 8, 0.88);
  --panel-border: rgba(0, 255, 240, 0.40);
  --panel-shadow-outer: rgba(0, 0, 0, 0.82);
  --panel-inner-line: rgba(255, 255, 255, 0.04);

  --panel-glow-1: rgba(0, 255, 240, 0.22);
  --panel-glow-2: rgba(255, 60, 220, 0.16);
  --panel-glow-3: rgba(170, 90, 255, 0.12);

  --title-color: rgba(235, 255, 255, 0.98);

  --card-border: rgba(0, 255, 240, 0.28);
  --card-bg: rgba(0, 255, 240, 0.055);
  --card-bg-hover: rgba(255, 60, 220, 0.10);

  --accent-strong: rgba(0, 255, 240, 0.95);
  --accent: rgba(255, 60, 220, 0.90);
  --accent-soft: rgba(0, 255, 240, 0.22);

  --menu-label: rgba(0, 255, 240, 0.98);
  --menu-desc: rgba(245, 250, 255, 0.80);
  --menu-textshadow: rgba(0, 255, 240, 0.22);

  --pill-border: rgba(255, 60, 220, 0.45);
  --pill-bg: rgba(255, 60, 220, 0.14);
  --pill-text: rgba(255, 210, 245, 0.96);

  --notice-border: rgba(140, 255, 80, 0.35);
  --notice-bg: rgba(140, 255, 80, 0.07);
  --notice-title: rgba(210, 255, 230, 0.95);
  --notice-body: rgba(245, 250, 255, 0.84);

  --hero-border: rgba(0, 255, 240, 0.34);
  --hero-bg: rgba(0, 255, 240, 0.04);
  --hero-inner: rgba(255, 255, 255, 0.03);

  --footer-small: rgba(245, 250, 255, 0.72);

  text-shadow:
    0 0 6px rgba(0, 255, 240, 0.28),
    0 0 16px rgba(255, 60, 220, 0.14);
}

/* =========================
   1) cyber background overlay
   ========================= */
body[data-theme="cyber"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
  mix-blend-mode: screen;

  background:
    radial-gradient(900px 520px at 18% 14%, rgba(0, 255, 240, 0.22), transparent 60%),
    radial-gradient(900px 520px at 78% 22%, rgba(255, 60, 220, 0.18), transparent 62%),
    radial-gradient(800px 520px at 40% 78%, rgba(170, 90, 255, 0.16), transparent 62%),
    radial-gradient(1200px 900px at 50% 75%, transparent 35%, rgba(0, 0, 0, 0.70) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.040) 0px,
      rgba(255, 255, 255, 0.040) 1px,
      transparent 2px,
      transparent 7px
    ),
    linear-gradient(90deg, rgba(0, 255, 240, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 255, 240, 0.18) 1px, transparent 1px),
    repeating-linear-gradient(
      135deg,
      rgba(255, 60, 220, 0.06) 0px,
      rgba(255, 60, 220, 0.06) 1px,
      transparent 2px,
      transparent 18px
    );

  background-size:
    auto,
    auto,
    auto,
    auto,
    auto,
    52px 52px,
    52px 52px,
    auto;
}

/* =========================
   2) scanlines
   ========================= */
body[data-theme="cyber"] .scanline,
body[data-theme="cyber"] .scanline2 {
  opacity: 1;
}

body[data-theme="cyber"] .scanline {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 255, 234, 0.05) 1px,
    transparent 3px
  );
  animation: scan 6s linear infinite;
}

body[data-theme="cyber"] .scanline2 {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 0, 170, 0.04) 2px,
    transparent 5px
  );
  animation: scan2 9s linear infinite reverse;
}

/* =========================
   3) panels
   ========================= */
body[data-theme="cyber"] .panel {
  isolation: isolate;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.82),
    0 0 26px rgba(0, 255, 240, 0.18),
    0 0 42px rgba(255, 60, 220, 0.14),
    0 0 60px rgba(170, 90, 255, 0.10),
    inset 0 0 0 1px rgba(0, 255, 240, 0.18);
  backdrop-filter: blur(10px);
}

body[data-theme="cyber"] .panel::before {
  background:
    radial-gradient(circle at 14% 16%, rgba(0, 255, 240, 0.28), transparent 44%),
    radial-gradient(circle at 86% 14%, rgba(255, 60, 220, 0.24), transparent 44%),
    radial-gradient(circle at 40% 88%, rgba(170, 90, 255, 0.18), transparent 50%),
    repeating-linear-gradient(
      180deg,
      rgba(0, 255, 240, 0.06) 0px,
      rgba(0, 255, 240, 0.06) 1px,
      transparent 2px,
      transparent 10px
    );
  opacity: 0.88;
}

body[data-theme="cyber"] .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.60;
  background:
    linear-gradient(90deg, rgba(0, 255, 240, 0.95), transparent 24%) top left / 140px 3px no-repeat,
    linear-gradient(180deg, rgba(0, 255, 240, 0.95), transparent 24%) top left / 3px 140px no-repeat,
    linear-gradient(270deg, rgba(255, 60, 220, 0.90), transparent 24%) top right / 140px 3px no-repeat,
    linear-gradient(180deg, rgba(255, 60, 220, 0.90), transparent 24%) top right / 3px 140px no-repeat,
    linear-gradient(90deg, rgba(140, 255, 80, 0.70), transparent 24%) bottom left / 140px 3px no-repeat,
    linear-gradient(0deg, rgba(140, 255, 80, 0.70), transparent 24%) bottom left / 3px 140px no-repeat,
    linear-gradient(270deg, rgba(170, 90, 255, 0.70), transparent 24%) bottom right / 140px 3px no-repeat,
    linear-gradient(0deg, rgba(170, 90, 255, 0.70), transparent 24%) bottom right / 3px 140px no-repeat;
}

/* =========================
   4) titles
   ========================= */
body[data-theme="cyber"] .panel-title {
  letter-spacing: 0.22em;
  animation: cyberTitleFlicker 4.2s infinite steps(1);
  text-shadow:
    0 0 10px rgba(0, 255, 240, 0.60),
    0 0 24px rgba(255, 60, 220, 0.28),
    0 0 40px rgba(170, 90, 255, 0.16);
}

body[data-theme="cyber"] .panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 240, 0.9),
    rgba(255, 60, 220, 0.6),
    transparent
  );
}

body[data-theme="cyber"] .panel-title::after {
  content: attr(data-title);
  position: absolute;
  left: 2px;
  top: 0;
  opacity: 0.45;
  color: rgba(255, 60, 220, 0.88);
  pointer-events: none;
  text-shadow:
    -1px 0 rgba(0, 255, 240, 0.55),
    1px 0 rgba(255, 60, 220, 0.45);
}

/* =========================
   5) animated pulse
   ========================= */
body[data-theme="cyber"] .panel,
body[data-theme="cyber"] .hero-card,
body[data-theme="cyber"] .theme-btn {
  animation: cyberPulse 5.5s ease-in-out infinite;
}

/* =========================
   6) menu effects
   ========================= */
body[data-theme="cyber"] .menu-item {
  box-shadow:
    0 0 0 1px rgba(0, 255, 240, 0.10) inset,
    0 0 18px rgba(0, 255, 240, 0.06);
}

body[data-theme="cyber"] .menu-item::before {
  content: "";
  position: absolute;
  inset: -55% -55%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-55%);
  transition: opacity 180ms ease, transform 360ms ease;
  background: linear-gradient(
    120deg,
    transparent 36%,
    rgba(0, 255, 240, 0.26) 50%,
    rgba(255, 60, 220, 0.18) 58%,
    rgba(140, 255, 80, 0.12) 62%,
    transparent 72%
  );
}

body[data-theme="cyber"] .menu-item::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-25%) scaleX(0.75);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 240, 0),
    rgba(0, 255, 240, 0.85),
    rgba(255, 60, 220, 0.7),
    transparent
  );
}

body[data-theme="cyber"] .menu-item:hover::before {
  opacity: 1;
  transform: translateX(55%);
}

body[data-theme="cyber"] .menu-item:hover::after {
  opacity: 0.95;
  transform: translateX(12%) scaleX(1);
  transition: transform 240ms ease, opacity 180ms ease;
}

body[data-theme="cyber"] .menu-item:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 60, 220, 0.60);
  box-shadow:
    0 0 30px rgba(0, 255, 240, 0.22),
    0 0 28px rgba(255, 60, 220, 0.18),
    0 0 44px rgba(170, 90, 255, 0.14),
    inset 0 0 0 1px rgba(255, 60, 220, 0.12);
}

/* =========================
   7) hero
   ========================= */
body[data-theme="cyber"] .hero-card {
  box-shadow:
    0 0 24px rgba(0, 255, 240, 0.18),
    0 0 42px rgba(255, 60, 220, 0.14),
    inset 0 0 0 1px rgba(0, 255, 240, 0.16);
}

body[data-theme="cyber"] .hero-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  pointer-events: none;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    transparent 20%,
    transparent 80%,
    rgba(0, 255, 240, 0.06)
  );
}

body[data-theme="cyber"] .hero-card img {
  filter: contrast(1.06) saturate(1.12) brightness(1.02);
}

/* =========================
   8) hero nav
   ========================= */
body[data-theme="cyber"] .hero-nav {
  border-radius: 12px;
  border-color: rgba(0, 255, 240, 0.38);
  background: linear-gradient(
    180deg,
    rgba(0, 255, 240, 0.12),
    rgba(255, 60, 220, 0.10)
  );
  box-shadow:
    0 0 16px rgba(0, 255, 240, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-shadow:
    0 0 10px rgba(0, 255, 240, 0.65),
    0 0 18px rgba(255, 60, 220, 0.25);
}

body[data-theme="cyber"] .hero-nav:hover {
  border-color: rgba(255, 60, 220, 0.58);
  box-shadow:
    0 0 24px rgba(0, 255, 240, 0.20),
    0 0 26px rgba(255, 60, 220, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* =========================
   9) theme button
   ========================= */
body[data-theme="cyber"] .theme-btn {
  background: rgba(0, 255, 240, 0.06);
  border-color: rgba(0, 255, 240, 0.34);
  box-shadow:
    0 0 16px rgba(0, 255, 240, 0.14),
    0 0 18px rgba(255, 60, 220, 0.10),
    inset 0 0 0 1px rgba(0, 255, 240, 0.14);
}

body[data-theme="cyber"] .theme-btn:hover {
  border-color: rgba(255, 60, 220, 0.54);
  box-shadow:
    0 0 24px rgba(0, 255, 240, 0.20),
    0 0 24px rgba(255, 60, 220, 0.18),
    0 0 34px rgba(170, 90, 255, 0.14),
    inset 0 0 0 1px rgba(255, 60, 220, 0.12);
}

/* =========================
   10) extra scan bar
   ========================= */
body[data-theme="cyber"]::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9998;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 240, 0.9),
    transparent
  );
  animation: cyberScan 7s linear infinite;
}

/* =========================
   11) reduced motion
   ========================= */
@media (prefers-reduced-motion: reduce) {
  body[data-theme="cyber"] .menu-item::before,
  body[data-theme="cyber"] .menu-item::after {
    transition: none;
  }

  body[data-theme="cyber"] .scanline,
  body[data-theme="cyber"] .scanline2,
  body[data-theme="cyber"] .panel,
  body[data-theme="cyber"] .hero-card,
  body[data-theme="cyber"] .theme-btn,
  body[data-theme="cyber"] .panel-title,
  body[data-theme="cyber"]::after {
    animation: none;
  }
}

/* =========================
   12) keyframes
   ========================= */
@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes scan2 {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes cyberScan {
  0% { top: -5%; }
  100% { top: 105%; }
}

@keyframes cyberPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.035); }
}

@keyframes cyberTitleFlicker {
  0%, 100% { opacity: 1; }
  8% { opacity: 0.96; }
  9% { opacity: 0.82; }
  10% { opacity: 1; }
  48% { opacity: 1; }
  49% { opacity: 0.88; }
  50% { opacity: 1; }
}
