/* theme-outrun.css: Synthwave Outrun Cockpit HUD */

body[data-theme-layout="outrun"],
[data-theme-layout="outrun"] body {
  background-color: #05021a;
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(255, 42, 133, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.16) 0%, transparent 50%),
    linear-gradient(180deg, #05021a 0%, #0d0426 50%, #150638 100%);
  background-attachment: fixed;
  color: #e0f4ff;
  min-height: 100vh;
  box-sizing: border-box;
}

body[data-theme-layout="outrun"] .bg .floatcat,
body[data-theme-layout="outrun"] .bg #city,
body[data-theme-layout="outrun"]::before {
  display: none !important;
}

body[data-theme-layout="outrun"]::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 52vh;
  background-image:
    linear-gradient(to bottom, transparent 0%, rgba(255, 42, 133, 0.6) 100%),
    repeating-linear-gradient(90deg, rgba(0, 240, 255, 0.45) 0px, rgba(0, 240, 255, 0.45) 2px, transparent 2px, transparent 40px),
    repeating-linear-gradient(0deg, rgba(255, 42, 133, 0.5) 0px, rgba(255, 42, 133, 0.5) 2px, transparent 2px, transparent 40px);
  background-size: 100% 100%, 40px 100%, 100% 40px;
  transform-origin: 50% 100%;
  transform: perspective(300px) rotateX(60deg);
  animation: outrun-grid 1.6s linear infinite;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 30%, transparent 100%);
}

@keyframes outrun-grid {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 0, 0 40px; }
}

body[data-theme-layout="outrun"] main,
[data-theme-layout="outrun"] body main {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.2rem 1.4rem 13.5rem;
}

body[data-theme-layout="outrun"] .player {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

body[data-theme-layout="outrun"] #sun {
  display: block !important;
  width: 260px;
  height: 260px;
  top: -44px;
  filter: drop-shadow(0 0 25px rgba(255, 42, 133, 0.8)) drop-shadow(0 0 10px rgba(255, 230, 0, 0.9));
  opacity: 0.95;
}

body[data-theme-layout="outrun"] #moon {
  display: none !important;
}

body[data-theme-layout="outrun"] .avatar-slot {
  width: 108px;
  height: 108px;
  background: rgba(19, 9, 46, 0.88);
  border: 2px solid #00f0ff;
  box-shadow:
    0 0 16px rgba(0, 240, 255, 0.65),
    inset 0 0 12px rgba(255, 42, 133, 0.45);
  border-radius: 4px;
  margin-bottom: 1.2rem;
  animation: none;
}

body[data-theme-layout="outrun"] .avatar-slot img,
body[data-theme-layout="outrun"] .avatar-slot canvas {
  width: 96px;
  height: 96px;
  filter: contrast(1.1) drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}

body[data-theme-layout="outrun"] h1 {
  font-family: 'Press Start 2P', monospace;
  color: #ffe600;
  font-size: clamp(1.8rem, 6vw, 2.35rem);
  letter-spacing: 0.08em;
  text-shadow:
    0 0 12px rgba(255, 230, 0, 0.8),
    -3px -3px 0 #ff2a85,
    3px 3px 0 #00f0ff;
  margin: 0.3rem 0;
}

body[data-theme-layout="outrun"] .kana {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.85);
  letter-spacing: 0.35em;
  font-size: 1.05rem;
}

body[data-theme-layout="outrun"] .tagline {
  color: #ff9ec6;
  text-shadow: 0 0 8px rgba(255, 42, 133, 0.65);
  font-size: 1.12rem;
  margin-bottom: 1.5rem;
}

body[data-theme-layout="outrun"] .socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body[data-theme-layout="outrun"] .slot-btn {
  width: 50px;
  height: 50px;
  background: rgba(19, 9, 46, 0.92);
  border: 2px solid #ff2a85;
  box-shadow: 0 0 10px rgba(255, 42, 133, 0.55), inset 0 0 6px rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease;
}

body[data-theme-layout="outrun"] .slot-btn:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.9), inset 0 0 10px rgba(255, 230, 0, 0.5);
  transform: scale(1.08);
}

body[data-theme-layout="outrun"] .slot-btn:active {
  transform: scale(0.96);
  box-shadow: 0 0 6px rgba(255, 42, 133, 0.8);
}

body[data-theme-layout="outrun"] .divider {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.85);
  margin-bottom: 1.6rem;
}

body[data-theme-layout="outrun"] .divider::before,
body[data-theme-layout="outrun"] .divider::after {
  border-top: 2px solid #ff2a85;
  box-shadow: 0 0 6px #ff2a85;
  opacity: 0.9;
}

body[data-theme-layout="outrun"] .worlds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 680px) {
  body[data-theme-layout="outrun"] .worlds {
    grid-template-columns: 1fr;
  }
}

body[data-theme-layout="outrun"] .world {
  position: relative;
  background: rgba(19, 9, 46, 0.92);
  border: 2px solid #00f0ff;
  border-left: 6px solid #ff2a85;
  box-shadow:
    0 0 16px rgba(0, 240, 255, 0.35),
    inset 0 0 12px rgba(19, 9, 46, 0.8);
  border-radius: 4px;
  padding: 1rem 1.15rem;
  color: #e0f4ff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
  animation: none;
}

body[data-theme-layout="outrun"] .world:hover,
body[data-theme-layout="outrun"] .world:focus-visible {
  border-color: #ff2a85;
  border-left-color: #ffe600;
  box-shadow:
    0 0 24px rgba(255, 42, 133, 0.7),
    0 0 12px rgba(255, 230, 0, 0.5),
    inset 0 0 16px rgba(255, 42, 133, 0.25);
  transform: translateY(-3px) scale(1.01);
}

body[data-theme-layout="outrun"] .world::before {
  content: "HUD // TELEMETRY: ACTIVE  ·  STATUS: ONLINE";
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  color: #ffe600;
  text-shadow: 0 0 6px rgba(255, 230, 0, 0.85);
  margin-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.4);
  padding-bottom: 0.35rem;
}

body[data-theme-layout="outrun"] .icon-slot {
  background: rgba(5, 2, 26, 0.85);
  border: 2px solid #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.55);
}

body[data-theme-layout="outrun"] .icon-slot canvas {
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.8));
}

body[data-theme-layout="outrun"] .wname {
  color: #ffffff;
  font-size: 0.82rem;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

body[data-theme-layout="outrun"] .badge {
  background: #ff2a85;
  color: #05021a;
  font-weight: 700;
  border: 1px solid #ffffff;
  box-shadow: 0 0 8px rgba(255, 42, 133, 0.85);
  font-size: 0.52rem;
}

body[data-theme-layout="outrun"] .blurb {
  color: #d0f8ff;
  font-size: 0.98rem;
  line-height: 1.45;
}

body[data-theme-layout="outrun"] .chip {
  border: 1px solid #00f0ff;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.35);
  font-size: 0.72rem;
}

body[data-theme-layout="outrun"] footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(13, 4, 38, 0.96) 0%, #05021a 100%);
  border-top: 3px solid #ff2a85;
  box-shadow: 0 -4px 20px rgba(255, 42, 133, 0.45), inset 0 1px 0 rgba(0, 240, 255, 0.55);
  padding: 0.8rem 1rem 0.7rem;
  z-index: 100;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body[data-theme-layout="outrun"] footer::before {
  content: "SPD: [ 88 MPH ]   ///   TACH: [ 7,200 RPM ]   ///   COMMS: ONLINE";
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: #ffe600;
  text-shadow: 0 0 10px rgba(255, 230, 0, 0.9), 0 0 20px rgba(255, 42, 133, 0.65);
  margin-bottom: 0.45rem;
  padding: 0.35rem 0.9rem;
  background: rgba(5, 2, 26, 0.85);
  border: 1px solid #00f0ff;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

body[data-theme-layout="outrun"] footer .press {
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.85);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
}

body[data-theme-layout="outrun"] footer p:last-child {
  color: #ff9ec6;
  font-size: 0.85rem;
  margin: 0;
}

body[data-theme-layout="outrun"] a:focus-visible,
body[data-theme-layout="outrun"] button:focus-visible {
  outline: 3px solid #00f0ff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 12px #00f0ff, 0 0 20px #ff2a85 !important;
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme-layout="outrun"]::after {
    animation: none !important;
  }
  body[data-theme-layout="outrun"] *,
  body[data-theme-layout="outrun"] *::before,
  body[data-theme-layout="outrun"] *::after {
    animation: none !important;
    transition: none !important;
  }
}
