
:root {
  --primary: #0e3029;
  --primary-light: #16473d;
  --accent: #c9ef54;
  --accent-hover: #b5db44;
  --bg: #091f1a;
  --surface: #113830;
  --surface-card: #184c42;
  --text: #ffffff;
  --text-muted: #a3bbb5;
  --line: rgba(201, 239, 84, 0.2);
  
  /* Kahoot answer colors */
  --red: #e21b3c;
  --blue: #1368ce;
  --yellow: #d89e00;
  --green: #26890c;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
body { background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }

/* Navbar */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px; background: rgba(14, 48, 41, 0.9);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; }
.brand-badge {
  background: var(--accent); color: var(--primary);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 13px;
}
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 14px; font-weight: 600; }
.nav-btn {
  background: var(--accent); color: var(--primary);
  padding: 9px 20px; border-radius: 50px; font-weight: 700; transition: 0.2s;
}
.nav-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* Containers */
.container { width: min(1100px, 92%); margin: 40px auto; flex: 1; }

/* Hero / Pin box */
.hero-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 50px 30px; text-align: center;
  max-width: 540px; margin: 30px auto; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.hero-box h1 { font-size: 38px; margin-bottom: 10px; color: var(--text); }
.hero-box h1 span { color: var(--accent); }
.hero-box p { color: var(--text-muted); font-size: 16px; margin-bottom: 30px; }

.pin-input {
  width: 100%; font-size: 32px; font-weight: 800; letter-spacing: 8px;
  text-align: center; padding: 16px; border-radius: 16px;
  border: 2px solid var(--line); background: #061814; color: var(--accent);
  margin-bottom: 20px; outline: none; transition: 0.2s;
}
.pin-input:focus { border-color: var(--accent); box-shadow: 0 0 20px rgba(201, 239, 84, 0.3); }

.nick-input {
  width: 100%; font-size: 20px; font-weight: 600;
  text-align: center; padding: 14px; border-radius: 16px;
  border: 2px solid var(--line); background: #061814; color: white;
  margin-bottom: 20px; outline: none;
}

.btn-main {
  width: 100%; padding: 18px; font-size: 18px; font-weight: 800;
  background: var(--accent); color: var(--primary);
  border: none; border-radius: 16px; cursor: pointer; transition: 0.2s;
}
.btn-main:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(201, 239, 84, 0.3); }

/* Quick Cards */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 50px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 28px; border-radius: 20px; transition: 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--accent); }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* 4 Colored Answer Buttons */
.answers-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 24px; width: 100%;
}
.answer-btn {
  min-height: 120px; border-radius: 18px; border: none;
  font-size: 22px; font-weight: 800; color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.3); transition: transform 0.1s, filter 0.2s;
}
.answer-btn:active { transform: translateY(4px); box-shadow: none; }
.answer-btn:hover { filter: brightness(1.1); }
.btn-red { background: var(--red); }
.btn-blue { background: var(--blue); }
.btn-yellow { background: var(--yellow); }
.btn-green { background: var(--green); }

/* Leaderboard */
.leaderboard-list {
  list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px;
}
.leaderboard-item {
  background: var(--surface-card); border-radius: 14px; padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 700; border-left: 6px solid var(--accent);
}
.leaderboard-item:first-child { border-left-color: #ffd700; background: #264a40; }

/* Podium */
.podium-wrap { display: flex; justify-content: center; align-items: flex-end; gap: 20px; margin-top: 60px; height: 320px; }
.podium-col { text-align: center; width: 160px; display: flex; flex-direction: column; justify-content: flex-end; }
.podium-step { border-radius: 16px 16px 0 0; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 900; color: rgba(0,0,0,0.5); }
.step-1 { height: 220px; background: linear-gradient(to top, #c9ef54, #e2fa7a); color: var(--primary); }
.step-2 { height: 160px; background: linear-gradient(to top, #a3bbb5, #d2e4df); color: var(--primary); }
.step-3 { height: 110px; background: linear-gradient(to top, #d89e00, #ffc736); color: var(--primary); }
.podium-name { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.podium-score { color: var(--accent); font-size: 14px; font-weight: 700; }
