﻿:root {
  --bg-a: #0f1f46;
  --bg-b: #0a1430;
  --card: rgba(18, 30, 62, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef4ff;
  --muted: #a8b5d6;
  --ok: #2ecc71;
  --bad: #ff8b8b;
  --accent: #ffc248;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
}

body {
  background: radial-gradient(circle at 20% 10%, #1d356e, var(--bg-a) 40%, var(--bg-b) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("images/bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.75;
}

.bg {
  min-height: 100vh;
  padding: 88px 20px 22px;
  position: relative;
  z-index: 1;
}

.app {
  max-width: 980px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.brand {
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  cursor: pointer;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffc248, #ff9f45);
  font-size: 26px;
}

.brand-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
}

.brand-sub {
  color: #d2dcff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.stats {
  display: flex;
  gap: 8px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.05);
  min-width: 96px;
}

.pill-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.pill-value {
  font-size: 18px;
  font-weight: 800;
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.screen.hidden,
.hidden {
  display: none !important;
}

.headline {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.02;
}

.lead {
  margin-top: 10px;
  color: #dae5ff;
  font-size: clamp(16px, 2.1vw, 20px);
}

.tiny {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: #112040;
  background: linear-gradient(135deg, #ffd86f, #ffb84f);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

#btnBackHome {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.question-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.question-emoji {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 30px;
}

.question-text {
  font-size: 22px;
  font-weight: 800;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.option-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--text);
  padding: 14px;
  min-height: 64px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.option-btn.is-correct {
  border-color: rgba(46, 204, 113, 0.8);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.25) inset;
}

.option-btn.is-wrong {
  border-color: rgba(255, 139, 139, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 139, 139, 0.25) inset;
}

.footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.feedback {
  min-height: 22px;
  font-size: 16px;
  font-weight: 700;
}

.feedback.ok {
  color: var(--ok);
}

.feedback.bad {
  color: var(--bad);
}

.result-emoji {
  font-size: 52px;
}

.result-box {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.result-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.result-stat-label {
  color: var(--muted);
  font-size: 13px;
}

.result-stat-value {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 800;
}

.result-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

@media (max-width: 720px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}
/* HPM professional cleanup: emoji placeholders are intentionally hidden. */
.question-emoji,.result-emoji,.learn-emoji,.missed-emoji{display:none!important}
