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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Retro Background */
.retro-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a0033 0%, #330066 25%, #ff00ff 50%, #ff6600 75%, #ffcc00 100%);
    z-index: 0;
}

.grid-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    perspective: 600px;
    z-index: 1;
    overflow: hidden;
}

.retro-grid {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(255, 0, 255, 0.3) 25%, rgba(255, 0, 255, 0.3) 26%, transparent 27%, transparent 74%, rgba(255, 0, 255, 0.3) 75%, rgba(255, 0, 255, 0.3) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 0, 255, 0.3) 25%, rgba(255, 0, 255, 0.3) 26%, transparent 27%, transparent 74%, rgba(255, 0, 255, 0.3) 75%, rgba(255, 0, 255, 0.3) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    transform: rotateX(75deg) translateY(0);
    animation: gridScroll 10s linear infinite;
}

@keyframes gridScroll {
    0% { transform: rotateX(75deg) translateY(0); }
    100% { transform: rotateX(75deg) translateY(50px); }
}

.sun {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    background: linear-gradient(180deg, #ff00ff 0%, #ff6600 50%, #ffcc00 100%);
    border-radius: 50%;
    box-shadow: 0 0 100px #ff00ff, 0 0 200px #ff6600;
    z-index: 1;
    animation: sunPulse 3s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.sun::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 8px,
        rgba(0, 0, 0, 0.3) 8px,
        rgba(0, 0, 0, 0.3) 12px
    );
    border-radius: 50%;
}

.content {
    position: relative;
    z-index: 10;
}

.vhs-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    animation: vhsDistortion 0.5s infinite;
}

@keyframes vhsDistortion {
    0% { transform: translateX(0); }
    33% { transform: translateX(2px); }
    66% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.main-event {
    text-align: center;
    padding: 60px 20px 40px;
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 5px solid #ff00ff;
    box-shadow: 0 5px 0 #00ffff;
}

.event-title {
    font-size: 2.5em;
    letter-spacing: 4px;
    color: #ff00ff;
    text-shadow: 
        3px 3px 0 #00ffff,
        6px 6px 0 #ffcc00,
        -2px -2px 0 #ff6600;
    margin-bottom: 30px;
    animation: titleGlitch 2s infinite;
    line-height: 1.4;
}

@keyframes titleGlitch {
    0%, 90%, 100% { transform: translate(0, 0); }
    92% { transform: translate(-4px, 2px); }
    94% { transform: translate(4px, -2px); }
    96% { transform: translate(-2px, -4px); }
    98% { transform: translate(2px, 4px); }
}

.subtitle {
    font-size: 1em;
    letter-spacing: 3px;
    color: #00ffff;
    text-shadow: 2px 2px 0 #ff00ff;
    padding: 15px;
    border: 3px solid #00ffff;
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
}

.countdown-container {
    background: #000;
    padding: 40px;
    margin: 40px auto;
    max-width: 900px;
    border: 5px solid #ff00ff;
    box-shadow: 
        0 0 0 3px #00ffff,
        8px 8px 0 0 #ffcc00;
    position: relative;
}

.countdown-label {
    font-size: 1.2em;
    color: #ffcc00;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #ff00ff;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: #1a0033;
    padding: 20px;
    border: 3px solid #ff00ff;
    box-shadow: 
        inset 0 0 20px rgba(255, 0, 255, 0.3),
        0 0 20px rgba(255, 0, 255, 0.5);
}

.countdown-value {
    font-size: 3em;
    color: #00ffff;
    text-shadow: 2px 2px 0 #ff00ff;
    display: block;
    min-width: 100px;
    animation: digitFlicker 4s infinite;
}

@keyframes digitFlicker {
    0%, 95%, 100% { opacity: 1; }
    97% { opacity: 0.8; }
}

.countdown-unit {
    font-size: 0.6em;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.versus-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.fighter {
    flex: 1;
}

.fighter-card {
    padding: 30px;
    background: #000;
    position: relative;
}

.fighter-left .fighter-card {
    border: 5px solid #ff0066;
    box-shadow: 
        0 0 0 3px #ff00ff,
        10px 10px 0 0 #ff0066;
}

.fighter-right .fighter-card {
    border: 5px solid #00ff00;
    box-shadow: 
        0 0 0 3px #00ffff,
        10px 10px 0 0 #00ff00;
}

.fighter-number {
    font-size: 8em;
    text-align: center;
    line-height: 1;
    animation: numberBounce 2s ease-in-out infinite;
}

@keyframes numberBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.1) translateY(-10px); }
}

.fighter-left .fighter-number {
    color: #ff0066;
    text-shadow: 
        4px 4px 0 #ff00ff,
        8px 8px 0 #330066;
}

.fighter-right .fighter-number {
    color: #00ff00;
    text-shadow: 
        4px 4px 0 #00ffff,
        8px 8px 0 #003333;
}

.fighter-name {
    font-size: 2em;
    text-align: center;
    margin: 30px 0;
    letter-spacing: 4px;
    padding: 15px;
    background: #1a0033;
}

.fighter-left .fighter-name {
    color: #ff00ff;
    border: 3px solid #ff0066;
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.5);
}

.fighter-right .fighter-name {
    color: #00ffff;
    border: 3px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.steps-container {
    background: #1a0033;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.fighter-left .steps-container {
    border: 4px dashed #ff00ff;
}

.fighter-right .steps-container {
    border: 4px dashed #00ffff;
}

.steps-label {
    font-size: 0.8em;
    margin-bottom: 15px;
    letter-spacing: 2px;
    color: #ffcc00;
}

.steps-count {
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    animation: stepsPulse 1.5s ease-in-out infinite;
    text-shadow: 2px 2px 0 #ff00ff, 4px 4px 0 #00ffff;
}

@keyframes stepsPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.retro-bars {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    height: 60px;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    width: 30px;
    background: linear-gradient(180deg, #ff00ff, #00ffff);
    animation: barDance 1s ease-in-out infinite;
    border: 2px solid #fff;
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }
.bar:nth-child(6) { animation-delay: 0.5s; }

@keyframes barDance {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

.profile-card {
    background: #000;
    padding: 25px;
    margin-top: 30px;
}

.fighter-left .profile-card {
    border: 3px solid #ff00ff;
}

.fighter-right .profile-card {
    border: 3px solid #00ffff;
}

.profile-title {
    font-size: 1em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffcc00;
    letter-spacing: 2px;
    padding: 10px;
    background: #1a0033;
    border: 2px solid #ffcc00;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    margin: 10px 0;
    background: #1a0033;
    border-left: 4px solid #ff00ff;
}

.profile-label {
    font-size: 0.6em;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-value {
    font-size: 0.7em;
    color: #fff;
    text-align: right;
    text-shadow: 1px 1px 0 #ff00ff;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    position: relative;
}

.vs-text {
    font-size: 6em;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffcc00, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vsRotate 3s ease-in-out infinite;
    text-shadow: 5px 5px 0 rgba(255, 0, 255, 0.3);
    position: relative;
}

@keyframes vsRotate {
    0%, 100% { transform: rotate(-15deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.2); }
}

.vs-text::before {
    content: 'VS';
    position: absolute;
    top: 3px;
    left: 3px;
    color: #ff00ff;
    z-index: -1;
    -webkit-text-fill-color: #ff00ff;
}

.vs-text::after {
    content: 'VS';
    position: absolute;
    top: 6px;
    left: 6px;
    color: #00ffff;
    z-index: -2;
    -webkit-text-fill-color: #00ffff;
}

.challenge-info {
    text-align: center;
    padding: 40px;
    background: #000;
    border-top: 5px solid #ff00ff;
    border-bottom: 5px solid #00ffff;
    margin-top: 40px;
}

.challenge-info h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #ffcc00;
    letter-spacing: 4px;
    text-shadow: 3px 3px 0 #ff00ff;
}

.challenge-info p {
    font-size: 1em;
    letter-spacing: 3px;
    color: #00ffff;
    text-shadow: 2px 2px 0 #ff00ff;
    padding: 15px;
    border: 3px dashed #ff00ff;
    display: inline-block;
    background: #1a0033;
}

.cassette {
    width: 100px;
    height: 60px;
    background: #ff00ff;
    border: 3px solid #00ffff;
    margin: 20px auto;
    position: relative;
    box-shadow: 5px 5px 0 #ffcc00;
}

.cassette::before,
.cassette::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: #000;
    border: 2px solid #00ffff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.cassette::before {
    left: 15px;
    animation: spin 2s linear infinite;
}

.cassette::after {
    right: 15px;
    animation: spin 2s linear infinite reverse;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

@media (max-width: 1200px) {
    .versus-container {
        flex-direction: column;
    }
    
    .vs-divider {
        min-width: auto;
        padding: 40px 0;
    }
    
    .vs-text {
        font-size: 5em;
    }

    .event-title {
        font-size: 1.5em;
    }

    .fighter-number {
        font-size: 5em;
    }
}

@media (max-width: 768px) {
    .event-title {
        font-size: 1em;
        letter-spacing: 2px;
    }

    .countdown-value {
        font-size: 2em;
    }

    .fighter-number {
        font-size: 4em;
    }

    .fighter-name {
        font-size: 1.2em;
    }

    .steps-count {
        font-size: 1.5em;
    }

    .profile-label,
    .profile-value {
        font-size: 0.5em;
    }
}

.profile-image {
    width: 100%; /* Full width of the container */
    aspect-ratio: 1 / 1; /* Maintain a square aspect ratio */
    object-fit: cover; /* Crop the image to fit */
}

/* Base link styles */
a {
    color: orange;
    text-decoration: none;
    position: relative;
    transition: color .3s ease, background-color .3s ease, text-shadow .3s ease, letter-spacing .3s ease, transform .25s ease;
    will-change: transform, text-shadow, background-position;
}

/* Underline */
a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, hotpink, fuchsia, magenta);
    background-size: 200% 100%;
    transition: width .35s ease;
}

/* Shine sweep overlay */
a::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -30%;
    width: 40%;
    height: 140%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    opacity: 0;
    pointer-events: none;
}

/* Super-epic hover/focus */
a:hover,
a:focus-visible {
    color: transparent;                 /* reveal animated gradient text */
    background-color: black;            /* dark neon backdrop */
    background-image: linear-gradient(90deg, #ff7bd3, #ff00ff, #ff1493, #ff7bd3);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 8px hotpink, 0 0 20px rgba(255,105,180,.75), 0 0 32px rgba(255,20,147,.7);
    letter-spacing: 0.6px;
    transform: translateY(-1px) scale(1.04) skewX(0.6deg);
    animation: neonPulse 1.4s ease-in-out infinite alternate, gradientShift 2.8s linear infinite;
}

a:hover::after,
a:focus-visible::after {
    width: 100%;
    animation: underlineShimmer 1.6s linear infinite;
}

a:hover::before,
a:focus-visible::before {
    opacity: 1;
    animation: shine 1.2s ease-in-out;
}

a:active {
    transform: translateY(0) scale(1.02);
    filter: brightness(1.1);
}

/* Animations */
@keyframes neonPulse {
    0%  { text-shadow: 0 0 6px hotpink, 0 0 14px rgba(255,105,180,.6); }
    100%{ text-shadow: 0 0 14px hotpink, 0 0 30px rgba(255,105,180,.9); }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
@keyframes underlineShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
@keyframes shine {
    0%   { left: -30%; opacity: 0; }
    40%  { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    a { transition: none; }
    a:hover, a:focus-visible { animation: none; }
    a::after { transition: none; }
}

/* Audio control UI */
#audio-ctl {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  z-index: 2000;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  user-select: none;
}
#mute-toggle {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: yellow;
  padding: 6px 10px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
#mute-toggle:hover { border-color: hotpink; box-shadow: 0 0 10px rgba(255,105,180,.35); }
#mute-icon { font-size: 18px; line-height: 1; }

/* Animated waveform (pure CSS so it animates even while muted) */
.waves {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 16px;
}
.waves .bar {
  width: 3px;
  background: linear-gradient(180deg, #ff7bd3, hotpink);
  border-radius: 2px;
  transform-origin: bottom center;
  animation: waveBounce 1s ease-in-out infinite;
  height: 40%;
}
.waves .bar:nth-child(2) { animation-delay: .1s; height: 70%; }
.waves .bar:nth-child(3) { animation-delay: .2s; height: 55%; }
.waves .bar:nth-child(4) { animation-delay: .3s; height: 85%; }
.waves .bar:nth-child(5) { animation-delay: .4s; height: 60%; }

@keyframes waveBounce {
  0%, 100% { transform: scaleY(0.6); filter: brightness(0.9); }
  50%      { transform: scaleY(1.2); filter: brightness(1.15); }
}

/* Optional: when unmuted, make waves brighter */
#audio-ctl.unmuted .bar { filter: saturate(1.3) brightness(1.15); }

/* Make "Music Muted" label bright pink when muted, except when showing "Play music" */
#audio-ctl:not(.unmuted) #mute-toggle span:nth-child(2):not(.play-text) {
  color: hotpink;
  text-shadow: 0 0 6px rgba(255, 0, 255, 0.45);
}

/* Turn "Play music" yellow on hover/focus */
#audio-ctl #mute-toggle:hover .play-text,
#audio-ctl #mute-toggle:focus-visible .play-text {
  color: yellow;
}

/* Hotpink when label says "Mute music" */
#audio-ctl #mute-toggle:hover .mute-text,
#audio-ctl #mute-toggle:focus-visible .mute-text {
  color: hotpink;
  text-shadow: 0 0 6px rgba(255,105,180,.6);
}

/* Make everything inside the audio control 3× larger, anchored to top-right */
#audio-ctl {
  transform: scale(1.15);
  transform-origin: top right;
}