:root {
  --bg-top: #121a31;
  --bg-bottom: #1f355f;
  --surface: rgba(14, 27, 52, 0.9);
  --surface-soft: rgba(23, 44, 82, 0.78);
  --line: rgba(123, 182, 255, 0.35);
  --text: #f4f8ff;
  --text-soft: #c8d8f5;
  --accent: #ffb347;
  --accent-dark: #cb7f19;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  padding: 20px 12px 0;
  font-family: "Work Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 179, 71, 0.18), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(123, 182, 255, 0.2), transparent 34%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.hero {
  width: min(1120px, 96vw);
  height: 250px;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  border: 3px solid var(--accent);
  border-bottom: none;
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1)),
    url("assets/images/baniere.png");
  background-size: cover;
  background-position: center;
}

main {
  width: min(1120px, 96vw);
  margin: 0 auto;
}

.panel {
  border: 3px solid var(--accent);
  border-top: none;
  background: linear-gradient(160deg, rgba(11, 21, 41, 0.94), rgba(19, 39, 74, 0.88));
  box-shadow: var(--shadow);
}

#section-1 {
  border-radius: 0 0 16px 16px;
  padding: 24px 14px;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.badge {
  margin: 0;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 71, 0.5);
  background: rgba(255, 179, 71, 0.16);
  color: #ffe5bd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 6px 0;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(1.05rem, 2.4vw, 1.7rem);
  text-align: center;
  line-height: 1.6;
}

.intro {
  margin: 0 0 8px;
  text-align: center;
  color: var(--text-soft);
}

.games-grid {
  list-style: none;
  width: min(980px, 100%);
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.games-grid li {
  margin: 0;
}

.games-grid a {
  display: block;
  text-decoration: none;
  color: #f7fbff;
  font-weight: 700;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface-soft);
  transition: transform 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
}

.games-grid a:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  border-color: rgba(255, 179, 71, 0.7);
}

#section-2 {
  margin-top: 14px;
  margin-bottom: 34px;
  border-radius: 16px;
  padding: 16px 14px;
}

.newsletter {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.newsletter label {
  font-weight: 700;
}

.newsletter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  min-height: 44px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #f8fbff;
  color: #1d2a45;
  padding: 10px 12px;
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: #7bb6ff;
}

button {
  border: none;
  border-radius: 10px;
  min-width: 180px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f1f1f;
  background: linear-gradient(180deg, #ffcb80, var(--accent));
  box-shadow: 0 6px 0 var(--accent-dark);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

button:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--accent-dark);
}

footer {
  width: min(1120px, 96vw);
  margin: 0 auto 18px;
  padding: 8px 12px;
  border-radius: 12px;
  border-top: 3px solid var(--accent);
  display: flex;
  justify-content: flex-end;
  background: rgba(12, 27, 52, 0.78);
}

#contact {
  margin: 0;
  color: #dbe7ff;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(123, 182, 255, 0.2);
}

#contact a {
  color: #ffd7a1;
}

#contact a:hover {
  color: #ffebcd;
}

@media (max-width: 760px) {
  .hero {
    height: 170px;
    border-radius: 18px 18px 0 0;
  }

  #section-1,
  #section-2 {
    border-radius: 0 0 14px 14px;
    padding: 14px 8px;
  }

  .newsletter-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
    min-width: 0;
  }
}