:root {
  --palette-bg: #120458;
  --palette-primary: #ff2a6d;
  --palette-secondary: #05d9e8;
  --palette-accent: #fee440;
  --palette-button: #d61c4e;
  --scan-tint: rgba(254, 228, 64, 0.09);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, monospace;
  transition: background-color 0.65s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.55;
  background-color: var(--palette-bg);
  color: #fff;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.65s ease, color 0.45s ease;
}

/* CRT stack: solid attract bg + scanlines + vignette (ArcadeLayout idea) */
.crt {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.crt__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent calc(100% / 28 - 1px),
    var(--scan-tint) calc(100% / 28 - 1px),
    var(--scan-tint) calc(100% / 28)
  );
  opacity: 0.65;
}

.crt__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 70% at 50% 45%,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 62%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.header,
.main,
.footer {
  position: relative;
  z-index: 1;
}

/* Cabinet frame + pulse glow (ArcadeCabinetFrame) */
.cabinet {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.cabinet--hero {
  max-width: 32rem;
}

.cabinet--panel {
  max-width: 28rem;
}

.cabinet__glow {
  position: absolute;
  inset: -6px;
  border-radius: 10px;
  border: 2px solid var(--palette-accent);
  opacity: 0.55;
  pointer-events: none;
  animation: cabinet-pulse 1.6s ease-in-out infinite;
  transition: border-color 0.65s ease, opacity 0.45s ease;
}

.cabinet__frame {
  position: relative;
  border: 3px solid var(--palette-accent);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: border-color 0.65s ease, box-shadow 0.65s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 18px 50px rgba(0, 0, 0, 0.45);
}

@keyframes cabinet-pulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.008);
  }
}

.header {
  padding: clamp(1.25rem, 5vw, 2.5rem) clamp(1rem, 4vw, 1.5rem) 0;
}

.cabinet--hero .cabinet__frame {
  padding: clamp(1rem, 4vw, 1.35rem) clamp(1rem, 4vw, 1.25rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand__icon {
  flex-shrink: 0;
  border-radius: 16px;
  border: 2px solid var(--palette-secondary);
  box-shadow: 0 0 22px color-mix(in srgb, var(--palette-secondary) 40%, transparent);
  transition: border-color 0.65s ease, box-shadow 0.65s ease;
}

.brand__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.85rem, 5.5vw, 3rem);
  letter-spacing: 0.18em;
  line-height: 1.1;
  color: var(--palette-primary);
  text-shadow: 0 0 22px color-mix(in srgb, var(--palette-primary) 55%, transparent);
  transition: color 0.65s ease, text-shadow 0.65s ease;
}

.brand__tag {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.main {
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 1.5rem)
    clamp(2.5rem, 6vw, 3.5rem);
}

.cabinet--panel .cabinet__frame {
  padding: clamp(1.1rem, 3.5vw, 1.5rem) clamp(1rem, 3.5vw, 1.15rem);
}

.panel__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--palette-secondary);
  transition: color 0.65s ease;
}

.panel__lead {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.platform-block {
  margin-top: 0;
}

.platform-block--next {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--palette-accent) 32%, transparent);
  transition: border-color 0.65s ease;
}

.platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.platform__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.78);
}

.platform__text {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.68);
}

.avail-badge {
  flex-shrink: 0;
  padding: 0.28rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--palette-bg);
  background: var(--palette-secondary);
  border-radius: 3px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--palette-secondary) 45%, transparent);
  transition: background-color 0.65s ease, color 0.65s ease, box-shadow 0.65s ease;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--palette-button) 0%,
    color-mix(in srgb, var(--palette-button) 72%, #000) 100%
  );
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 26px color-mix(in srgb, var(--palette-button) 50%, transparent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--palette-accent);
  outline-offset: 3px;
}

.btn__icon {
  font-size: 1.05rem;
}

.soon-badge {
  flex-shrink: 0;
  padding: 0.28rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--palette-bg);
  background: var(--palette-accent);
  border-radius: 3px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--palette-accent) 45%, transparent);
  transition: background-color 0.65s ease, color 0.65s ease, box-shadow 0.65s ease;
}

.features {
  margin-top: 1.75rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  justify-content: center;
}

.feature-list__item {
  padding: 0.38rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border: 1px solid color-mix(in srgb, var(--palette-accent) 38%, transparent);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.65s ease;
}

.footer {
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cabinet__glow {
    animation: none;
    opacity: 0.5;
  }

  :root {
    transition: none;
  }

  body,
  .cabinet__frame,
  .brand__title,
  .brand__icon,
  .panel__title {
    transition: none;
  }

  .btn--primary:hover {
    transform: none;
  }
}
