/* ==========================================================================
   RETRO ARCADE SKIN (#music, #visuals, #platforms, #contact)
   Same colorway as the rest of the site (ink white on black, REC red, cyan),
   rebuilt as 8-bit game UI: pixel fonts, notched pixel borders, menu cursors.
   Loaded after styles.css so these rules win without !important.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --font-pixel: 'Press Start 2P', 'JetBrains Mono', monospace;
  --font-crt: 'VT323', 'JetBrains Mono', monospace;
  --px: 4px;
  --arcade-red: #ff3344;
  --arcade-cyan: #00f0ff;
}

/* Notched pixel border: four hard shadows leave the corners cut out */
.music-section,
.video-showcase-section,
.platforms-section,
.contact-section {
  --pixel-edge: var(--text-primary);
}

/* ---------- Shared: section headers ---------- */

:is(#music, #visuals, #platforms, #contact) .section-header-row {
  border-bottom: var(--px) dashed var(--border-color);
  align-items: flex-end;
}

:is(#music, #visuals, #platforms, #contact) .section-title-large {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-shadow: var(--px) var(--px) 0 var(--arcade-red);
}

/* Blinking block cursor after each title */
:is(#music, #visuals, #platforms, #contact) .section-title-large::after {
  content: '';
  display: inline-block;
  width: 0.55em;
  height: 0.8em;
  margin-left: 0.35em;
  background: var(--text-primary);
  vertical-align: baseline;
  animation: arcadeBlink 1s steps(1) infinite;
}

@keyframes arcadeBlink {
  50% { opacity: 0; }
}

/* ==========================================================================
   MUSIC: SOUND TEST SCREEN
   ========================================================================== */

#music .player-suite-container {
  border: none;
  border-radius: 0;
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--pixel-edge),
    0 var(--px) 0 0 var(--pixel-edge),
    calc(var(--px) * -1) 0 0 0 var(--pixel-edge),
    var(--px) 0 0 0 var(--pixel-edge),
    calc(var(--px) * 3) calc(var(--px) * 3) 0 0 var(--arcade-red);
  margin: var(--px);
  overflow: hidden;
}

/* Faint CRT scanlines over the whole screen */
#music .player-suite-container::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
}

#music .player-status-badge,
#music .tracklist-header {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#music .player-status-badge .rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--arcade-red);
  animation: arcadeBlink 1s steps(1) infinite;
}

#music .now-playing-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

#music .now-playing-artist {
  font-family: var(--font-crt);
  font-size: 1.6rem;
  line-height: 1;
}

#music .track-credits-tag {
  font-family: var(--font-crt);
  font-size: 1.1rem;
  border-radius: 0;
  border: 2px solid var(--border-color);
}

#music .spotify-full-link {
  font-family: var(--font-crt);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

#music .waveform-container {
  height: 96px;
  border-radius: 0;
  border: 2px solid var(--border-color);
  background: #000;
}

/* Sliders: chunky square track + square thumb */
#music .progress-slider,
#music .volume-slider {
  height: 8px;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, var(--border-color) 0 6px, transparent 6px 8px);
}

#music .progress-slider::-webkit-slider-thumb,
#music .volume-slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: var(--text-primary);
  box-shadow: 3px 3px 0 var(--arcade-red);
}

#music .progress-slider::-moz-range-thumb,
#music .volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 0;
  background: var(--text-primary);
  box-shadow: 3px 3px 0 var(--arcade-red);
}

#music .time-readout-row {
  font-family: var(--font-pixel);
  font-size: 10px;
  margin-top: 10px;
}

/* Controller buttons */
#music .ctrl-btn {
  border-radius: 0;
  border: 2px solid var(--text-primary);
  box-shadow: 3px 3px 0 var(--border-color);
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
}

#music .ctrl-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--text-primary);
}

#music .ctrl-btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

#music .ctrl-btn-play {
  background: var(--text-primary);
  color: #000;
  box-shadow: 4px 4px 0 var(--arcade-red);
}

#music .ctrl-btn-play:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--arcade-red);
}

#music .ctrl-btn-play:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

/* Tracklist: level-select menu */
#music .tracklist-container {
  border-left: 2px dashed var(--border-hairline);
}

#music .track-items-wrapper {
  gap: 6px;
  scrollbar-color: var(--text-primary) transparent;
}

#music .track-item {
  position: relative;
  border-radius: 0;
  border: 2px solid transparent;
  background: transparent;
  padding-left: 34px;
  transition: none;
}

/* Menu cursor */
#music .track-item::before {
  content: '▶';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--arcade-red);
  opacity: 0;
}

#music .track-item:hover {
  transform: none;
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}

#music .track-item:hover::before {
  opacity: 0.6;
}

#music .track-item.active-track {
  border-color: var(--text-primary);
  background: var(--bg-card-hover);
}

#music .track-item.active-track::before {
  opacity: 1;
  animation: arcadeBlink 0.8s steps(1) infinite;
}

#music .track-item:focus-visible {
  outline: 2px dashed var(--arcade-red);
}

#music .track-num,
#music .track-duration {
  font-family: var(--font-pixel);
  font-size: 10px;
}

#music .track-name-bold {
  font-family: var(--font-crt);
  font-size: 1.65rem;
  line-height: 1;
}

#music .track-prod-sub {
  font-family: var(--font-crt);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  #music .tracklist-container {
    border-left: none;
    border-top: 2px dashed var(--border-hairline);
  }
}

/* ==========================================================================
   MEDIA: ARCADE CABINET SCREEN
   ========================================================================== */

#visuals .camcorder-chassis {
  border: none;
  border-radius: 0;
  background: #000;
  padding: 44px 20px 20px;
  margin: var(--px);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--pixel-edge),
    0 var(--px) 0 0 var(--pixel-edge),
    calc(var(--px) * -1) 0 0 0 var(--pixel-edge),
    var(--px) 0 0 0 var(--pixel-edge),
    calc(var(--px) * 3) calc(var(--px) * 3) 0 0 var(--arcade-red);
}

/* Marquee strip across the top of the cabinet */
#visuals .camcorder-chassis::before {
  content: '1P  ▸  NOW SHOWING';
  position: absolute;
  top: 14px;
  left: 20px;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #fff;
}

#visuals .camcorder-chassis::after {
  content: 'INSERT COIN';
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--arcade-red);
  animation: arcadeBlink 1.2s steps(1) infinite;
}

#visuals .camcorder-viewport {
  border-radius: 0;
  outline: 2px solid rgba(255, 255, 255, 0.25);
  outline-offset: 4px;
}

#visuals .camcorder-viewport::after {
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0 2px, transparent 2px 4px);
  background-size: auto;
  opacity: 0.3;
}

@media (max-width: 520px) {
  #visuals .camcorder-chassis {
    padding: 40px 12px 12px;
  }
  #visuals .camcorder-chassis::before {
    content: '1P';
    left: 12px;
  }
  #visuals .camcorder-chassis::after {
    right: 12px;
  }
}

/* ==========================================================================
   LINKS: WARP ZONE (item blocks)
   ========================================================================== */

#platforms .platform-icons-grid {
  gap: 20px;
  padding: var(--px);
}

#platforms .platform-icon-tile {
  background: var(--bg-secondary);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--border-color),
    0 var(--px) 0 0 var(--border-color),
    calc(var(--px) * -1) 0 0 0 var(--border-color),
    var(--px) 0 0 0 var(--border-color);
  transition: transform 90ms steps(2), box-shadow 90ms steps(2), color 90ms steps(2);
}

#platforms .platform-icon-tile svg {
  width: clamp(28px, 2.6vw, 40px);
  height: clamp(28px, 2.6vw, 40px);
  transition: none;
}

/* Hover: block hops and lights up in the platform's brand color */
#platforms .platform-icon-tile:hover,
#platforms .platform-icon-tile:focus-visible {
  outline: none;
  transform: translateY(-8px);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--brand, var(--text-primary)),
    0 var(--px) 0 0 var(--brand, var(--text-primary)),
    calc(var(--px) * -1) 0 0 0 var(--brand, var(--text-primary)),
    var(--px) 0 0 0 var(--brand, var(--text-primary)),
    0 16px 0 0 rgba(0, 0, 0, 0.5);
}

#platforms .platform-icon-tile:hover svg,
#platforms .platform-icon-tile:focus-visible svg {
  transform: none;
}

#platforms .platform-icon-tile:active {
  transform: translateY(-2px);
}

/* Name tag: pixel speech box */
#platforms .platform-icon-tile::after {
  top: calc(100% + 14px);
  padding: 6px 8px;
  border-radius: 0;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.1em;
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 3px 3px 0 var(--arcade-red);
  transition: none;
}

/* ==========================================================================
   CONTACT: RPG DIALOG BOX
   ========================================================================== */

#contact .rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.14em;
}

#contact .rec-indicator .rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--arcade-red);
  animation: arcadeBlink 1s steps(1) infinite;
}

#contact .contact-tagline {
  font-family: var(--font-crt);
  font-size: 1.55rem;
  line-height: 1.25;
}

#contact .contact-detail-item {
  position: relative;
  padding-left: 24px;
}

#contact .contact-detail-item::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 10px;
  color: var(--arcade-red);
}

#contact .detail-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

#contact .detail-value {
  font-family: var(--font-crt);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
}

/* The form card: double-rule dialog box */
#contact .contact-form-card {
  border-radius: 0;
  border: 2px solid var(--text-primary);
  outline: 2px solid var(--text-primary);
  outline-offset: 5px;
  margin: 7px;
  box-shadow: 14px 14px 0 0 var(--arcade-red);
}

#contact .form-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  margin-bottom: 10px;
}

#contact .form-input,
#contact .form-select,
#contact .form-textarea {
  border-radius: 0;
  border: 2px solid var(--border-color);
  font-family: var(--font-crt);
  font-size: 1.35rem;
  padding: 10px 14px;
  caret-color: var(--arcade-red);
  transition: none;
}

#contact .form-input::placeholder,
#contact .form-textarea::placeholder {
  color: var(--text-muted);
}

#contact .form-input:focus,
#contact .form-select:focus,
#contact .form-textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 4px 4px 0 var(--arcade-red);
}

/* SEND reads as the game's start button */
#contact .form-submit-btn {
  border-radius: 0;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.2em;
  padding: 18px;
  box-shadow: 6px 6px 0 var(--arcade-red);
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
}

#contact .form-submit-btn::before {
  content: '▶ ';
  animation: arcadeBlink 1s steps(1) infinite;
}

#contact .form-submit-btn:hover {
  opacity: 1;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--arcade-red);
}

#contact .form-submit-btn:active {
  transform: translate(6px, 6px);
  box-shadow: none;
}

#contact .form-toast {
  border-radius: 0;
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  background: #000;
  border: 2px solid var(--arcade-cyan);
  color: var(--arcade-cyan);
}

@media (max-width: 600px) {
  #contact .contact-form-card {
    padding: 1.75rem 1.25rem;
    box-shadow: 8px 8px 0 0 var(--arcade-red);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#music, #visuals, #platforms, #contact) .section-title-large::after,
  :is(#music, #visuals, #platforms, #contact) *,
  :is(#music, #visuals, #platforms, #contact) *::before,
  :is(#music, #visuals, #platforms, #contact) *::after {
    animation: none !important;
  }
}
