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

:root {
  --neon-purple: #4cc9f0;
  --neon-blue: #4cc9f0;
  --deep-space: #0a0020;
  --cosmic-pink: #F14F50;
  --neon-yellow: #D0C050;
  --stardust: rgba(255,255,255,0.1);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(18, 16, 16, 0.1) 50%, transparent 50%),
    linear-gradient(90deg, rgba(157, 77, 255, 0.05) 0%, rgba(76, 201, 240, 0.02) 50%, rgba(58, 12, 163, 0.05) 100%);
  background-size: 100% 6px, 8px 100%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Press Start 2P', cursive;
  background: linear-gradient(135deg, #000 0%, #120038 50%, #000 100%);
  background-size: 400% 400%;
  animation: cosmicDrift 20s ease infinite;
  color: #fff;
  line-height: 1.6;
  image-rendering: pixelated;
}

@keyframes cosmicDrift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#galaxy-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 800px;
  margin: 5vh auto;
  padding: 2rem;
  background: rgba(10, 0, 32, 0.9);
  border: 4px solid var(--neon-blue);
  border-radius: 12px;
  box-shadow:     
    8px 8px 0 var(--cosmic-pink),
    8px 8px 0 var(--deep-space);
  box-sizing: border-box;
}

.container h1 {
  text-align: center;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin: 0 0 1rem;
  color: var(--cosmic-pink);
  text-shadow: 
    4px 4px 0 var(--neon-blue),
    6px 6px 0 var(--deep-space);
  letter-spacing: -1px;
  animation: glitch 1.5s linear infinite;
}

.container h3 {
  text-align: center;
  font-size: clamp(0.6rem, 2vw, 1.5rem);
  margin: 0 0 2rem;
  color: var(--neon-blue);
  text-shadow: 
    4px 4px 0 var(--cosmic-pink),
    6px 6px 0 var(--deep-space);
  letter-spacing: -1px;
  animation: glitch 1.5s linear infinite;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-2px, 3px); }
  80% { transform: translate(3px, -1px); }
}

.game-info {
  background: rgba(0, 0, 0, 0.3);
  border: 3px solid var(--neon-blue);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 
    0 0 15px rgba(76, 201, 240, 0.4),
    inset 0 0 10px rgba(76, 201, 240, 0.2);
}

.game-info h2 {
  margin: 0 0 1rem;
  color: var(--neon-blue);
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-shadow: 2px 2px 0 var(--deep-space);
}

.game-info p {
  color: #ffffff;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  line-height: 1.8;
}

.auth-links {
  text-align: center;
  margin: 2rem 0 0.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  display: block;
  margin: 1rem 0 0.5rem;
  color: var(--neon-blue);
  font-size: clamp(0.7rem, 2vw, 0.8rem);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 3px solid var(--neon-purple);
  border-radius: 10px;
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.65rem, 2vw, 0.8rem);
  box-sizing: border-box;
  transition: all 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px var(--neon-blue);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 3.5rem;
}

.toggle-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.pixel-icon {
  width: 24px;
  height: 24px;
  filter: contrast(200%) brightness(1.2);
}

button {
  background: var(--cosmic-pink);
  text-align: center;
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: clamp(0.65rem, 2vw, 0.8rem);
  box-shadow: 
    4px 4px 0 var(--neon-blue),
    6px 6px 0 var(--deep-space);
  transform: translate(0, 0);
  transition: all 0.2s ease-out;
  animation: glitch-effect 2s infinite alternate;
}

button:hover {
  background: var(--neon-blue);
  transform: translate(3px, 3px);
  box-shadow: 
    1px 1px 0 var(--cosmic-pink),
    3px 3px 0 var(--deep-space);
  animation: none;
}

.button-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  margin-top: 2rem; 
  margin-bottom: 1.5rem;
}

@keyframes glitch-effect {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(0, 0); }
  80% { transform: translate(1px, 1px); }
}

.table-wrapper {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 3px solid var(--neon-purple);
  border-radius: 12px;
  box-shadow:
    0 0 20px rgba(157, 77, 255, 0.3),
    inset 0 0 10px rgba(76, 201, 240, 0.2);
  overflow-x: auto;
  margin-bottom: 2rem;
  max-height: 300px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
  background: transparent;
}

table thead {
  background: rgba(76, 201, 240, 0.1);
  color: var(--neon-blue);
  text-shadow: 1px 1px 0 var(--deep-space);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

table th,
table td {
  padding: 1rem;
  text-align: center;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  color: #fff;
  background: transparent;
  border-bottom: 1px solid rgba(76, 201, 240, 0.2);
  word-wrap: break-word;
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover {
  background: rgba(187, 179, 181, 0.08);
}

input[type="password"]::-webkit-password-toggle-button {
  display: none !important;
  -webkit-appearance: none !important;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none !important;
}

input[type="password"] {
  -moz-appearance: textfield !important;
  appearance: none !important;
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
    margin: 3vh auto;
  }
  
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 1rem;
  }

  td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    color: var(--neon-blue);
  }
  
  .button-container {
    flex-direction: column;
    align-items: center;
  }
  
  button {
    width: 100%;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 1rem;
  }
  
  .game-info {
    padding: 1rem;
  }
  
  input[type="text"],
  input[type="password"] {
    padding: 0.8rem;
  }
  
  .toggle-icon {
    right: 0.5rem;
  }
  .subtitle {
    text-align: center;
    color: var(--neon-yellow);
    font-size: 0.8em;
    margin: 0 0 2rem 0;
    text-shadow: 2px 2px 0 var(--deep-space);
  }

  .contributors {
    margin-top: 1.5rem;
  }

  .contributor-category {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--cosmic-pink);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 
      0 0 10px rgba(241, 79, 80, 0.2),
      inset 0 0 5px rgba(76, 201, 240, 0.1);
  }

  .contributor-category h3 {
    color: var(--neon-blue);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 0 var(--deep-space);
  }

  .contributor-category p {
    color: #fff;
    font-size: 0.6em;
    line-height: 1.8;
    margin: 0;
  }

  button {
    background: var(--cosmic-pink);
    text-align: center;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: clamp(0.65em, 1vw, 0.8em);
    box-shadow: 
      4px 4px 0 var(--neon-blue),
      6px 6px 0 var(--deep-space);
    transform: translate(0, 0);
    transition: all 0.2s ease-out;
    animation: glitch-effect 2s infinite alternate;
  }

  button:hover {
    background: var(--neon-blue);
    transform: translate(3px, 3px);
    box-shadow: 
      1px 1px 0 var(--cosmic-pink),
      3px 3px 0 var(--deep-space);
    animation: none;
  }

  .button-container {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
    margin-top: 2rem; 
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    margin: 10% 5%;
    padding: 1.5rem;
  }
  
  .contributor-category h3 {
    font-size: 1rem;
  }
  
  .contributor-category p {
    font-size: 0.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    margin: 10% 4%;
    padding: 1rem;
  }
  
  .container h1 {
    font-size: 1.2em;
  }
  
  .subtitle {
    font-size: 0.7em;
  }
  
  button {
    padding: 0.8rem;
    font-size: 0.7em;
  }
}
.subtitle {
  text-align: center;
  color: var(--neon-yellow);
  font-size: 1.4em;
  margin: 0 0 2rem 0;
  text-shadow: 2px 2px 0 var(--deep-space);
}

.contributors {
  margin-top: 1.5rem;
}

.contributor-category {
  background: rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--cosmic-pink);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 
    0 0 10px rgba(241, 79, 80, 0.2),
    inset 0 0 5px rgba(76, 201, 240, 0.1);
}

.contributor-category h4 {
  color: var(--neon-blue);
  font-size: 1em;
  margin: 0 0 0.5rem 0;
  text-shadow: 2px 2px 0 var(--deep-space);
}

.contributor-category p {
  color: #fff;
  font-size: 0.8em;
  line-height: 1.8;
  margin: 0;
}

.video-section{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  width: 100%;
}

video {
  border: 4px solid var(--cosmic-pink);
  border-radius: 12px;
  box-shadow:
    0 0 20px var(--neon-blue),
    6px 6px 0 var(--deep-space);
  background: #000;
  max-width: 100%;
  max-height: 400px;
  outline: none;
  transition: box-shadow 0.3s;
}

video:focus,
video:hover {
  box-shadow:
    0 0 20px var(--neon-blue),
    8px 8px 0 var(--cosmic-pink);
  border-color: var(--neon-blue);
}

/* Responsywność */
@media (max-width: 768px) {
  video {
    max-height: 220px;
  }
}