@font-face {
  font-family: 'Press Start 2P';
  src: url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
}

:root {
  --primary: #00ff00;
  --secondary: #ff00ff;
  --background: #000000;
  --text: #33ff33;
  --accent: #ffff00;
  --border: #33ff33;
}

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

body {
  font-family: 'Press Start 2P', monospace;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  text-shadow: 2px 2px 0px #003300;
  background-image: 
    linear-gradient(0deg, transparent 24%, 
      rgba(32, 255, 32, 0.05) 25%, 
      rgba(32, 255, 32, 0.05) 26%, 
      transparent 27%, transparent 74%, 
      rgba(32, 255, 32, 0.05) 75%, 
      rgba(32, 255, 32, 0.05) 76%, transparent 77%),
    linear-gradient(90deg, transparent 24%, 
      rgba(32, 255, 32, 0.05) 25%, 
      rgba(32, 255, 32, 0.05) 26%, 
      transparent 27%, transparent 74%, 
      rgba(32, 255, 32, 0.05) 75%, 
      rgba(32, 255, 32, 0.05) 76%, transparent 77%);
  background-size: 50px 50px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  background: linear-gradient(to right, #000000, #001100);
  padding: 2rem 0;
  margin-bottom: 4rem;
  border-bottom: 4px solid var(--border);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
  text-shadow: 
    3px 3px 0 #003300,
    -2px -2px 0 #00ff00,
    2px -2px 0 #00ff00,
    -2px 2px 0 #00ff00,
    2px 2px 0 #00ff00;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { 
    text-shadow: 
      0 0 5px #00ff00,
      0 0 10px #00ff00,
      0 0 15px #00ff00;
  }
  to { 
    text-shadow: 
      0 0 10px #00ff00,
      0 0 20px #00ff00,
      0 0 30px #00ff00;
  }
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  color: #33ff33;
}

.prize {
  font-size: 2rem;
  color: var(--accent);
  margin: 2rem 0;
  text-shadow: 
    2px 2px 0 #330000,
    -1px -1px 0 #ffff00,
    1px -1px 0 #ffff00,
    -1px 1px 0 #ffff00,
    1px 1px 0 #ffff00;
  animation: prizeGlow 1.5s ease-in-out infinite alternate;
}

@keyframes prizeGlow {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.section {
  margin: 4rem 0;
  border: 2px solid var(--border);
  padding: 2rem;
  background: rgba(0, 255, 0, 0.05);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.jury-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.jury-member {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 255, 0, 0.05);
  border: 2px solid var(--border);
  image-rendering: pixelated;
}

.jury-member:hover {
  transform: translateY(-5px);
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.jury-member img {
  width: 100px;
  height: 100px;
  border: 2px solid var(--border);
  margin-bottom: 1rem;
  image-rendering: pixelated;
}

.jury-member h3 {
  color: var(--text);
  font-size: 0.8rem;
}

.sponsors {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

.sponsor-logo {
  height: 60px;
  opacity: 0.8;
  transition: all 0.3s;
  filter: brightness(0) invert(1) sepia(100%) saturate(1000%) hue-rotate(100deg);
}

.sponsor-logo:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: none;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--background);
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--border);
  text-transform: uppercase;
  transition: all 0.2s;
  margin-top: 2rem;
  text-shadow: none;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: var(--accent);
  transform: scale(1.05);
  box-shadow: 
    0 0 10px rgba(0, 255, 0, 0.5),
    0 0 20px rgba(0, 255, 0, 0.3),
    0 0 30px rgba(0, 255, 0, 0.1);
}

.cta-button:active {
  transform: scale(0.95);
}

.deadline {
  text-align: center;
  margin: 4rem 0;
  padding: 2rem;
  border: 2px solid var(--border);
  background: rgba(0, 255, 0, 0.05);
  position: relative;
}

.deadline h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.deadline span {
  color: var(--accent);
  font-weight: bold;
  display: block;
  margin-top: 1rem;
}

.countdown-game {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  background: rgba(0, 0, 0, 0.8);
  margin: 2rem 0;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

.player {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 20px;
  background: var(--accent);
  cursor: pointer;
}

.player::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--accent);
}

.bullet {
  position: absolute;
  width: 4px;
  height: 10px;
  background: var(--primary);
  transition: top 0.3s linear;
}

.number {
  position: absolute;
  font-size: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  animation: float 2s infinite alternate ease-in-out;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.game-instructions {
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.game-score {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: var(--accent);
}

.countdown-revealed {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 1rem;
  min-height: 2em;
}

.revealed-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-size: 1.2rem;
  text-align: center;
  text-shadow: 0 0 10px var(--accent);
  animation: glow 1.5s ease-in-out infinite alternate;
}

.play-again-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--background);
  color: var(--primary);
  border: 2px solid var(--accent);
  padding: 0.5rem 1rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-again-button:hover {
  background: var(--accent);
  color: var(--background);
  text-shadow: none;
}

footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 255, 0, 0.05);
  margin-top: 4rem;
  border-top: 4px solid var(--border);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  color: var(--primary);
}

.game-submit-section {
  margin: 4rem 0;
  padding: 2rem;
  border: 2px solid var(--border);
  background: rgba(0, 255, 0, 0.05);
  text-align: center;
}

.game-submit-section h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.game-submit-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.game-url-input {
  width: 100%;
  padding: 1rem;
  background: var(--background);
  border: 2px solid var(--border);
  color: var(--text);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
}

.game-url-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.submit-button {
  background: var(--primary);
  border: 2px solid var(--border);
  color: var(--background);
  padding: 1rem 2rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-button:hover {
  background: var(--accent);
  transform: scale(1.05);
  box-shadow: 
    0 0 10px rgba(0, 255, 0, 0.5),
    0 0 20px rgba(0, 255, 0, 0.3);
}

.submit-button:active {
  transform: scale(0.95);
}

#jury-feedback {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.loading-text {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 2rem 0;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.jury-feedback-item {
  background: rgba(0, 255, 0, 0.05);
  border: 2px solid var(--border);
  padding: 1.5rem;
  text-align: left;
}

.jury-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.jury-header img {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  image-rendering: pixelated;
}

.jury-header h4 {
  color: var(--accent);
  font-size: 0.8rem;
  margin: 0;
}

.jury-comment {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
  min-height: 3em;
}

.desktop-controls,
.mobile-controls {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--accent);
}

/* Control instructions visibility */
@media (hover: hover) and (pointer: fine) {
  .mobile-controls {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .desktop-controls {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.8rem;
  }
  
  .prize {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 1rem;
  }
  
  .game-submit-form {
    padding: 0 1rem;
  }
  
  .game-url-input,
  .submit-button {
    font-size: 0.7rem;
    padding: 0.8rem;
  }
  
  .jury-comment {
    font-size: 0.7rem;
  }
  
  .countdown-game {
    height: 180px;
  }

  .number {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
  }

  .player {
    width: 24px;
    height: 16px;
  }

  .player::before {
    height: 8px;
  }

  .bullet {
    width: 3px;
    height: 8px;
  }

  .game-instructions {
    font-size: 0.7rem;
    line-height: 1.4;
    padding: 0 1rem;
  }
}

.submit-cta {
  margin-top: 3rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}

.cta-text {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px var(--accent);
  animation: glow 1.5s ease-in-out infinite alternate;
}

.submit-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  color: var(--background);
  background: var(--primary);
  border: 2px solid var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-button:hover {
  background: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent);
}

.submit-button:active {
  transform: scale(0.98);
}

/* Add shine effect on hover */
.submit-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.submit-button:hover::after {
  animation: shine 1s forwards;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

@media (max-width: 768px) {
  .submit-cta {
    margin-top: 2rem;
  }
  
  .cta-text {
    font-size: 1.2rem;
  }
  
  .submit-button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}
