@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&family=Nunito:wght@400;600;700&display=swap");

:root {
  --hulk-green: #1faa59;
  --hulk-dark: #0e7a3b;
  --hulk-purple: #6c3db6;
  --hulk-purple-dark: #4d2a83;
  --ink: #172026;
  --bg: #0f1317;
  --card: #10181f;
  --muted: #9fb3c8;
  --ok: #2ecc71;
  --bad: #ff6b6b;
  --gold: #ffcc33;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: white;
  background: radial-gradient(
      1200px 800px at 70% -20%,
      rgba(31, 170, 89, 0.25),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 10%,
      rgba(108, 61, 182, 0.22),
      transparent 60%
    ),
    var(--bg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 16px 24px;
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero h1 {
  font-family: "Baloo 2", cursive;
  font-size: 44px;
  line-height: 1;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.hero h2 {
  margin: 0;
  font-weight: 600;
  color: #dfe8f1;
  opacity: 0.9;
}
.logo {
  font-size: 44px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
      600px 300px at 10% 10%,
      rgba(31, 170, 89, 0.5),
      transparent 70%
    ),
    radial-gradient(
      700px 400px at 90% -20%,
      rgba(108, 61, 182, 0.45),
      transparent 70%
    );
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.card + .card {
  margin-top: 18px;
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.col-12 {
  grid-column: span 12;
}
.col-6 {
  grid-column: span 6;
}
.col-4 {
  grid-column: span 4;
}
@media (max-width: 900px) {
  .col-6,
  .col-4 {
    grid-column: span 12;
  }
}

.input,
.btn,
select {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: white;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
}
.btn {
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.06s ease;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}
.btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.btn.primary {
  background: linear-gradient(90deg, var(--hulk-green), var(--hulk-purple));
  border: none;
  font-weight: 700;
}
.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}
.btn.ok {
  background: var(--ok);
  border: none;
  color: #07220f;
  font-weight: 800;
}
.btn.bad {
  background: var(--bad);
  border: none;
}

.title {
  font-family: "Baloo 2", cursive;
  letter-spacing: 0.3px;
}
.subtitle {
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.game-card {
  position: relative;
  overflow: hidden;
}
.game-card h3 {
  margin: 0 0 6px;
}
.game-card .tag {
  display: inline-block;
  font-size: 12px;
  opacity: 0.9;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hulk-glow {
  box-shadow: 0 0 0 1px rgba(31, 170, 89, 0.25) inset,
    0 0 32px rgba(31, 170, 89, 0.25);
}
.smash {
  animation: smash 280ms ease;
}
@keyframes smash {
  0% {
    transform: scale(1);
    filter: saturate(1);
  }
  35% {
    transform: scale(1.06) rotate(-0.5deg);
    filter: saturate(1.2);
  }
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.port {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.quiz {
  display: grid;
  gap: 12px;
}
.options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.option {
  text-align: left;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.option.correct {
  background: rgba(46, 204, 113, 0.18);
  border-color: rgba(46, 204, 113, 0.6);
}
.option.wrong {
  background: rgba(255, 107, 107, 0.18);
  border-color: rgba(255, 107, 107, 0.6);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
}
.leaderboard th,
.leaderboard td {
  text-align: left;
  padding: 10px;
}
.leaderboard tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.04);
}

.drag-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.drag-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.chunk.stretch {
  width: 100%;
}
.chunk {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  cursor: grab;
}
.chunk.dragging {
  opacity: 0.6;
}
