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

:root {
  font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color-scheme: light dark;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1f2b56, #0c0f1f);
  color: #f5f7ff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body.theme-corporation,
body.theme-couch {
  background: #03030c;
}

body.theme-corporation::before,
body.theme-corporation::after,
body.theme-couch::before,
body.theme-couch::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body.theme-corporation::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(82, 113, 255, 0.55), transparent 52%),
    radial-gradient(circle at 80% 5%, rgba(0, 231, 255, 0.4), transparent 48%),
    linear-gradient(120deg, #02030a, #050d26 60%, #030311);
  background-size: 180% 180%;
  animation: corpAurora 30s ease-in-out infinite;
  opacity: 1;
}

body.theme-corporation::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%238AD6FF' stroke-opacity='0.25' stroke-width='0.6'%3E%3Cpath d='M0 80h320M0 160h320M0 240h320M80 0v320M160 0v320M240 0v320'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 320px;
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: corpGridDrift 55s linear infinite;
}

body.theme-couch::before {
  background:
    radial-gradient(circle at 10% 15%, rgba(253, 91, 174, 0.45), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(255, 185, 82, 0.35), transparent 50%),
    linear-gradient(150deg, #04031a, #220636 65%, #090016);
  background-size: 220% 220%;
  animation: couchAurora 38s ease-in-out infinite;
  opacity: 1;
}

body.theme-couch::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke-width='2'%3E%3Ccircle cx='60' cy='60' r='28' stroke='%23ff7edb' stroke-opacity='0.35'/%3E%3Ccircle cx='360' cy='120' r='36' stroke='%23ffd166' stroke-opacity='0.35'/%3E%3Cpath d='M20 200 C80 120 160 280 220 200 S360 240 400 160' stroke='%23ff7edb' stroke-opacity='0.25'/%3E%3Cpath d='M0 340 Q120 300 200 360 T420 320' stroke='%23ffd166' stroke-opacity='0.25'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 520px;
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: couchDrift 48s linear infinite;
  transform-origin: center;
}

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

@keyframes corpGridDrift {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 120px 160px;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes couchAurora {
  0% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
  100% {
    background-position: 0% 40%;
  }
}

@keyframes couchDrift {
  0% {
    background-position: 0 0;
    transform: scale(1);
  }
  50% {
    background-position: 160px 200px;
    transform: scale(1.05);
  }
  100% {
    background-position: 0 0;
    transform: scale(1);
  }
}

.hero,
main,
footer {
  width: min(900px, 90vw);
  margin: 0 auto;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.85rem;
  color: #8ad6ff;
}

.brand-title {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(2.1rem, 5vw, 3rem);
  letter-spacing: 0.25rem;
  margin: 0.75rem 0 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.highlight {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(40, 19, 59, 0.8);
}

.card {
  background: rgba(15, 18, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
}

button,
input,
textarea {
  font: inherit;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 0.85rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

button {
  background: linear-gradient(120deg, #ff6fd8, #3813c2);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

a {
  color: #8ad6ff;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1rem;
}

.status {
  font-size: 0.95rem;
  min-height: 1.5rem;
  color: #f3b774;
}

.helper-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0.25rem 0 1rem;
}

.link-barcode {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.link-barcode img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
  padding: 0.4rem;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.theme-label {
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: 0.85rem;
  color: #f3b774;
  margin: 1rem 0 0.5rem;
}

.theme-display {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #8ad6ff;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 720px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  background: rgba(15, 18, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.game-card__body {
  padding: 1.5rem;
}

.game-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.game-card__actions button {
  flex: 1 1 140px;
  width: auto;
}

.game-card__note {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.game-card.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.25);
}

.list {
  list-style: none;
  padding-left: 1rem;
}

.list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
