:root {
  --neon: #37a1ff;
  --neon-soft: #96d0ff;
  --bg1: #071327;
  --bg2: #001020;
  --good: #38ef7d;
  --bad: #ff4266;
  --text: #e9f4ff;
  --radius: 20px;
  --shadow: 0 0 25px rgba(55,161,255,.25),
            inset 0 0 20px rgba(150,208,255,.05);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

/* ========= GLOBAL BODY ========= */
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(80% 60% at 50% -10%, #0b2a55 0%, transparent 60%),
    radial-gradient(80% 60% at 50% 120%, #041022 0%, transparent 60%),
    linear-gradient(var(--bg1), var(--bg2));
  color: var(--text);
  min-height: 100svh;
  overflow-x: hidden;
  padding-top: 120px;
}

/* ========= HEADER ========= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(90deg, #020713dd, #041831dd);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(150, 208, 255, 0.25);
}

.header-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  filter:
    drop-shadow(0 0 10px var(--neon))
    drop-shadow(0 0 22px var(--neon-soft));
}

.howto-btn {
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--neon-soft);
  color: var(--neon-soft);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(55, 161, 255, 0.4);
  transition: .16s;
}

.howto-btn:hover {
  background: var(--neon-soft);
  color: #001020;
}

.header-row2 {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.page-title {
  margin: 0;
  font-size: clamp(16px, 3.4vw, 22px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--neon-soft);
  text-align: center;
  text-shadow:
    0 0 8px var(--neon),
    0 0 18px var(--neon-soft);
}

/* ========= MENU ========= */

#menu-btn {
  background: rgba(0,0,0,.25);
  border: 1.5px solid var(--neon);
  color: var(--neon);
  font-size: 1.3rem;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px var(--neon-soft);
  transition: .18s;
}

#menu-btn:hover {
  background: var(--neon);
  color: #001;
}

.menu-dropdown {
  display: none;
  position: absolute;
  top: 52px;
  left: 12px;
  background: #020818f5;
  border: 1px solid rgba(150, 208, 255, 0.4);
  border-radius: 12px;
  padding: 6px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  min-width: 210px;
  z-index: 200;
}

.menu-dropdown a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.menu-dropdown a:hover {
  background: rgba(55, 161, 255, 0.18);
}

/* ========= LAYOUT ========= */

main {
  display: grid;
  place-items: center;
  padding: 16px 16px 48px;
}

.wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 16px 48px;
}

.card,
.game-card {
  background: var(--bg2);
  border: 1px solid var(--neon);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  max-width: 640px;
  width: 100%;
}

/* ========= BUTTONS & INPUTS ========= */

button,
.btn {
  background: transparent;
  border: 1.5px solid var(--neon);
  color: var(--neon);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 1rem;
  cursor: pointer;
  transition: .18s;
  box-shadow: 0 0 10px rgba(55,161,255,.25);
}

button:hover,
.btn:hover {
  background: var(--neon);
  color: #000;
  box-shadow: 0 0 22px var(--neon);
}

input[type="text"],
input[type="number"],
input[type="email"] {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--neon);
  background: #021527;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

input:focus {
  box-shadow: 0 0 10px var(--neon);
}

/* ========= TEXT & MISC ========= */

h1, h2, h3 {
  text-shadow: 0 0 10px var(--neon-soft);
}

p {
  line-height: 1.5;
}

.feedback {
  min-height: 28px;
  text-align: center;
}

.subtle {
  color: var(--neon-soft);
  text-align: center;
  font-size: .95rem;
  margin-top: 12px;
}

/* ========= QUIZ DESCRIPTION ========= */

.quiz-description {
  text-align: center;
  font-size: 0.88rem;
  color: var(--neon-soft);
  margin: 0 auto 18px;
  max-width: 600px;
  line-height: 1.6;
  padding: 10px 16px;
  border: 1px solid rgba(150, 208, 255, 0.2);
  border-radius: 12px;
  background: rgba(55, 161, 255, 0.06);
}

/* ========= QUESTION SHOUTOUT ========= */

.question-shoutout {
  font-size: 0.75rem;
  opacity: 0.55;
  margin-top: 4px;
  margin-bottom: 6px;
  font-style: italic;
  color: var(--neon-soft);
}

/* ========= QUESTION FUNFACT ========= */

.question-funfact {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 6px;
  font-style: italic;
  color: var(--neon-soft);
}

/* ========= QUESTION FOOTER (skip + check) ========= */

.question-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.btn-skip {
  font-size: 0.72rem;
  opacity: 0.45;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(150, 208, 255, 0.25);
  background: transparent;
  color: var(--neon-soft);
  cursor: pointer;
  box-shadow: none;
  transition: opacity 0.15s;
}

.btn-skip:hover {
  opacity: 0.8;
  background: transparent;
  color: var(--neon-soft);
  box-shadow: none;
}

/* ========= SKIP BUTTON ROW (bottom-right of question card) ========= */

.skip-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ========= MCQ SELECTED STATE ========= */

.option-btn.selected {
  border-color: var(--neon-soft);
  box-shadow: 0 0 12px rgba(55, 161, 255, 0.45);
  background: rgba(55, 161, 255, 0.12);
}

/* ========= FOOTER ========= */

footer {
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--neon-soft);
}

/* ========= RESPONSIVE ========= */

@media (max-width: 480px) {
  body {
    padding-top: 110px;
  }

  .logo-img {
    height: 34px;
  }

  .card,
  .game-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  #menu-btn {
    font-size: 1.2rem;
    padding: 4px 10px;
  }
}
