:root {
  --bg: #09111c;
  --card: rgba(10, 20, 34, 0.84);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #9bb0c9;
  --accent: #efb100;
  --accent-strong: #ff7b00;
  --success: #4fd38a;
  --danger: #ff5d73;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 177, 0, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(39, 199, 255, 0.18), transparent 32%),
    linear-gradient(145deg, #07101a 0%, #112138 45%, #07101a 100%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
}

.arena-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.42;
  pointer-events: none;
}

.arena-glow-left {
  top: -120px;
  left: -100px;
  background: rgba(255, 123, 0, 0.35);
}

.arena-glow-right {
  right: -120px;
  bottom: -140px;
  background: rgba(79, 211, 138, 0.28);
}

.app-card {
  position: relative;
  width: min(100%, 860px);
  padding: 32px;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.badge,
.question-tag,
.result-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 0.9;
}

h2 {
  font-size: clamp(2rem, 7vw, 3.3rem);
  line-height: 1;
}

.hero-text,
.helper-text,
.result-summary,
.topbar-label {
  color: var(--muted);
}

.hero-text,
.result-summary {
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.7;
}

.intro-form,
.answer-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-weight: 700;
}

input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

input:focus {
  border-color: rgba(239, 177, 0, 0.8);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

input::placeholder {
  color: rgba(245, 247, 251, 0.42);
}

button {
  border: 0;
  border-radius: 16px;
  padding: 16px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

.primary-button {
  color: #0c1420;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 24px rgba(255, 145, 0, 0.28);
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.topbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.topbar > div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.topbar-label {
  margin: 0 0 6px;
  font-size: 0.82rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #efb100, #4fd38a);
  transition: width 0.3s ease;
}

.question-card {
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(3, 10, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.feedback-box.success {
  background: rgba(79, 211, 138, 0.16);
  color: #d8ffe8;
}

.feedback-box.error {
  background: rgba(255, 93, 115, 0.15);
  color: #ffd9de;
}

.result-panel {
  text-align: center;
  padding: 32px 12px 8px;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .app-card {
    padding: 22px;
    border-radius: 24px;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .question-card {
    padding: 22px;
  }
}
