:root {
  --eb2-bg: #f4efe4;
  --eb2-surface: rgba(255, 255, 255, 0.82);
  --eb2-surface-strong: #ffffff;
  --eb2-ink: #13261f;
  --eb2-muted: #547168;
  --eb2-primary: #157f5c;
  --eb2-primary-dark: #0f5b42;
  --eb2-accent: #ef9f27;
  --eb2-danger: #db4d52;
  --eb2-success: #19995f;
  --eb2-shadow: 0 20px 50px rgba(17, 37, 30, 0.14);
  --eb2-radius-xl: 32px;
  --eb2-radius-lg: 24px;
  --eb2-radius-md: 18px;
  --eb2-radius-sm: 12px;
  --eb2-category-primary: #157f5c;
  --eb2-category-secondary: #ef9f27;
  --eb2-category-dark: #13261f;
  --eb2-category-soft: #edf5ef;
  --eb2-category-accent: #fff8ef;
}

body {
  background:
    radial-gradient(circle at top left, rgba(239, 159, 39, 0.20), transparent 22%),
    radial-gradient(circle at top right, rgba(21, 127, 92, 0.18), transparent 30%),
    linear-gradient(180deg, #f8f4ea 0%, #edf5ef 100%);
  color: var(--eb2-ink);
}

.eb2-app {
  min-height: 100vh;
  padding: 2.5rem 0 4rem;
}

.eb2-screen {
  display: none;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.eb2-screen-active {
  display: block;
}

.eb2-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.eb2-hero-copy,
.eb2-hero-panel,
.eb2-side-card,
.eb2-question-card,
.eb2-feedback-card,
.eb2-chart-card,
.eb2-summary-card,
.eb2-mechanic-card,
.eb2-modal,
.eb2-category-card,
.eb2-review-card,
.eb2-results-hero {
  background: var(--eb2-surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--eb2-shadow);
}

.eb2-hero-copy {
  border-radius: var(--eb2-radius-xl);
  padding: 3rem;
  background:
    linear-gradient(135deg, rgba(19, 38, 31, 0.92), rgba(21, 127, 92, 0.82)),
    url("../images/tools/parallaxEcoBrainiac.jpg") center/cover;
  color: #fff8ef;
}

.eb2-hero-copy h1 {
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: inherit;
}

.eb2-hero-copy p {
  font-size: 1.08rem;
  color: rgba(255, 248, 239, 0.88);
  margin-bottom: 1.75rem;
}

.eb2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.eb2-hero-actions,
.eb2-results-actions,
.eb2-modal-actions,
.eb2-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.eb2-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.eb2-btn:hover {
  transform: translateY(-2px);
}

.eb2-btn-primary {
  background: linear-gradient(135deg, var(--eb2-accent), #f4ba3b);
  color: #1d221f;
  box-shadow: 0 14px 28px rgba(239, 159, 39, 0.28);
}

.eb2-btn-secondary {
  background: linear-gradient(135deg, var(--eb2-primary), #36a67d);
  color: white;
  box-shadow: 0 14px 28px rgba(21, 127, 92, 0.22);
}

.eb2-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  border: 1px solid rgba(19, 38, 31, 0.12);
}

.eb2-hero-panel {
  border-radius: var(--eb2-radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(233,241,236,0.96));
}

.eb2-brand-lockup {
  text-align: center;
}

.eb2-logo {
  width: min(100%, 340px);
  display: block;
  margin: 0 auto 1rem;
}

.eb2-powered {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  color: var(--eb2-muted);
  font-weight: 600;
}

.eb2-powered img {
  width: 140px;
}

.eb2-stat-grid,
.eb2-results-summary,
.eb2-chart-grid,
.eb2-mechanics,
.eb2-badge-grid {
  display: grid;
  gap: 1rem;
}

.eb2-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.eb2-stat-card,
.eb2-summary-card {
  padding: 1rem 1.1rem;
  border-radius: var(--eb2-radius-md);
  background: var(--eb2-surface-strong);
  box-shadow: inset 0 0 0 1px rgba(19, 38, 31, 0.05);
}

.eb2-stat-card strong,
.eb2-summary-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  margin-top: 0.35rem;
}

.eb2-stat-label,
.eb2-summary-card span {
  color: var(--eb2-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.eb2-section {
  margin-bottom: 2rem;
}

.eb2-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.eb2-section-head p {
  max-width: 520px;
  color: var(--eb2-muted);
  margin-bottom: 0;
}

.eb2-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.eb2-category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--eb2-radius-xl);
  padding: 1.25rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: white;
}

.eb2-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--category-dark) 12%, transparent) 0%, color-mix(in srgb, var(--category-dark) 52%, transparent) 40%, color-mix(in srgb, var(--category-dark) 94%, transparent) 100%);
}

.eb2-category-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--category-accent) 50%, transparent) 0%, transparent 28%),
    radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--category-secondary) 30%, transparent) 0%, transparent 30%),
    linear-gradient(145deg, var(--category-primary), var(--category-secondary));
  transform: scale(1.02);
}

.eb2-category-content {
  position: relative;
  z-index: 1;
}

.eb2-graphic {
  position: absolute;
  inset: 0;
}

.eb2-graphic * {
  position: absolute;
  display: block;
}

.eb2-graphic-solar .eb2-orb {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  top: 32px;
  right: 34px;
  background: radial-gradient(circle at 30% 30%, #fff8d6, var(--category-secondary) 55%, color-mix(in srgb, var(--category-primary) 78%, #c17400) 100%);
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--category-accent) 28%, transparent);
}

.eb2-graphic-solar .eb2-ray {
  width: 160px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, white 65%, var(--category-secondary));
  opacity: 0.75;
  top: 86px;
  right: 18px;
}

.eb2-graphic-solar .eb2-ray-a {
  transform: rotate(28deg);
}

.eb2-graphic-solar .eb2-ray-b {
  transform: rotate(-28deg);
}

.eb2-graphic-solar .eb2-panel-grid {
  left: 32px;
  bottom: 110px;
  width: 165px;
  height: 104px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  transform: skew(-16deg);
}

.eb2-graphic-solar .eb2-panel-grid span {
  position: relative;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.52), rgba(7,45,87,0.72));
  border: 1px solid rgba(255,255,255,0.32);
}

.eb2-graphic-wind .eb2-swoosh {
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, white 72%, var(--category-soft));
  opacity: 0.82;
}

.eb2-graphic-wind .eb2-swoosh-a {
  width: 180px;
  top: 60px;
  left: 30px;
}

.eb2-graphic-wind .eb2-swoosh-b {
  width: 130px;
  top: 102px;
  left: 80px;
}

.eb2-graphic-wind .eb2-turbine {
  position: absolute;
  left: 48px;
  bottom: 92px;
  width: 140px;
  height: 170px;
}

.eb2-turbine-post {
  width: 12px;
  height: 110px;
  left: 60px;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(207,243,255,0.65));
  border-radius: 999px;
}

.eb2-turbine-hub {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  left: 55px;
  top: 38px;
  background: white;
}

.eb2-turbine-blade {
  width: 14px;
  height: 72px;
  border-radius: 999px;
  left: 59px;
  top: -2px;
  transform-origin: center 50px;
  background: linear-gradient(180deg, white, color-mix(in srgb, var(--category-soft) 76%, transparent));
}

.eb2-blade-a {
  transform: rotate(0deg);
}

.eb2-blade-b {
  transform: rotate(120deg);
}

.eb2-blade-c {
  transform: rotate(240deg);
}

.eb2-graphic-organic .eb2-stem {
  width: 16px;
  height: 132px;
  left: 106px;
  bottom: 92px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--category-dark) 68%, #1f5c24);
}

.eb2-graphic-organic .eb2-leaf {
  width: 106px;
  height: 66px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--category-soft) 75%, white), var(--category-secondary));
  border-radius: 100% 0 100% 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18);
}

.eb2-leaf-a {
  left: 34px;
  bottom: 162px;
  transform: rotate(-30deg);
}

.eb2-leaf-b {
  left: 104px;
  bottom: 118px;
  transform: rotate(22deg) scaleX(-1);
}

.eb2-graphic-organic .eb2-seed {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--category-accent) 55%, white);
}

.eb2-seed-a {
  left: 58px;
  top: 48px;
}

.eb2-seed-b {
  left: 84px;
  top: 74px;
}

.eb2-graphic-efficiency .eb2-bulb {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  left: 36px;
  top: 40px;
  background: radial-gradient(circle at 35% 35%, white, color-mix(in srgb, var(--category-secondary) 76%, white) 55%, var(--category-primary) 100%);
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--category-accent) 28%, transparent);
}

.eb2-graphic-efficiency .eb2-bulb::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 28px;
  left: 34px;
  bottom: -14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--category-dark) 70%, white);
}

.eb2-graphic-efficiency .eb2-bar {
  width: 24px;
  bottom: 102px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, color-mix(in srgb, white 70%, var(--category-secondary)), var(--category-primary));
}

.eb2-bar-a { left: 190px; height: 52px; }
.eb2-bar-b { left: 220px; height: 78px; }
.eb2-bar-c { left: 250px; height: 104px; }
.eb2-bar-d { left: 280px; height: 132px; }

.eb2-graphic-hydrogen .eb2-atom-ring {
  width: 190px;
  height: 86px;
  left: 68px;
  top: 74px;
  border: 4px solid color-mix(in srgb, white 62%, var(--category-soft));
  border-radius: 50%;
  opacity: 0.85;
}

.eb2-ring-b {
  transform: rotate(60deg);
}

.eb2-ring-c {
  transform: rotate(-60deg);
}

.eb2-atom-core {
  width: 44px;
  height: 44px;
  left: 142px;
  top: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, white, var(--category-secondary));
  box-shadow: 0 0 0 14px color-mix(in srgb, var(--category-accent) 24%, transparent);
}

.eb2-electron {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--category-accent) 20%, transparent);
}

.eb2-electron-a {
  left: 78px;
  top: 112px;
}

.eb2-electron-b {
  right: 78px;
  top: 112px;
}

.eb2-graphic-home .eb2-house-base {
  width: 136px;
  height: 108px;
  left: 54px;
  bottom: 92px;
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, white 58%, var(--category-secondary)), var(--category-primary));
}

.eb2-graphic-home .eb2-house-roof {
  width: 154px;
  height: 154px;
  left: 44px;
  bottom: 128px;
  background: color-mix(in srgb, var(--category-dark) 78%, #883829);
  transform: rotate(45deg);
  border-radius: 18px;
}

.eb2-house-door {
  width: 32px;
  height: 58px;
  left: 106px;
  bottom: 92px;
  border-radius: 14px 14px 0 0;
  background: rgba(255,255,255,0.66);
}

.eb2-house-window {
  width: 34px;
  height: 34px;
  left: 72px;
  bottom: 138px;
  border-radius: 10px;
  background: rgba(255,255,255,0.78);
  box-shadow: 52px 0 0 rgba(255,255,255,0.78);
}

.eb2-house-leaf {
  width: 64px;
  height: 40px;
  right: 56px;
  top: 56px;
  border-radius: 100% 0 100% 0;
  transform: rotate(18deg);
  background: linear-gradient(135deg, color-mix(in srgb, white 65%, var(--category-soft)), var(--category-secondary));
}

.eb2-graphic-mobility .eb2-road {
  left: 24px;
  right: 24px;
  bottom: 94px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.38);
}

.eb2-graphic-mobility .eb2-road::after {
  content: "";
  position: absolute;
  left: 48px;
  right: 48px;
  top: 5px;
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.85) 0 18px, transparent 18px 34px);
}

.eb2-car-body {
  width: 144px;
  height: 52px;
  left: 86px;
  bottom: 108px;
  border-radius: 22px 24px 18px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, white 44%, var(--category-secondary)), var(--category-primary));
}

.eb2-car-top {
  width: 76px;
  height: 32px;
  left: 126px;
  bottom: 148px;
  border-radius: 18px 18px 10px 10px;
  background: rgba(255,255,255,0.64);
}

.eb2-wheel {
  width: 34px;
  height: 34px;
  bottom: 92px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--category-dark) 84%, black);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.5);
}

.eb2-wheel-a { left: 110px; }
.eb2-wheel-b { left: 186px; }

.eb2-motion {
  width: 80px;
  height: 10px;
  left: 34px;
  bottom: 132px;
  border-radius: 999px;
  background: color-mix(in srgb, white 75%, var(--category-soft));
  box-shadow: 0 24px 0 color-mix(in srgb, white 62%, var(--category-soft));
}

.eb2-category-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.eb2-category-index,
.eb2-category-stars,
.eb2-pill,
.eb2-hud-chip,
.eb2-question-badge,
.eb2-reward-item,
.eb2-review-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
}

.eb2-category-card h3 {
  color: white;
  margin-bottom: 0.4rem;
  font-size: 1.55rem;
}

.eb2-category-card p {
  color: rgba(255,255,255,0.86);
  margin-bottom: 1rem;
}

.eb2-category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.eb2-category-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.eb2-difficulty-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.eb2-difficulty-btn {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  color: white;
  font-weight: 700;
}

.eb2-difficulty-btn.is-active {
  background: #fff8ef;
  color: #163128;
}

.eb2-play-btn {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, #fff8ef, #ffd77d);
  color: #11251e;
  font-weight: 800;
  cursor: pointer;
}

.eb2-mechanics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eb2-mechanic-card {
  border-radius: var(--eb2-radius-lg);
  padding: 1.5rem;
}

.eb2-mechanic-card h3 {
  margin-bottom: 0.75rem;
}

.eb2-mechanic-card p {
  color: var(--eb2-muted);
  margin-bottom: 0;
}

.eb2-hud {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.eb2-hud-main,
.eb2-hud-side {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.eb2-hud-chip {
  background: color-mix(in srgb, var(--eb2-category-primary) 16%, white);
  color: var(--eb2-category-dark);
  border: 1px solid color-mix(in srgb, var(--eb2-category-primary) 22%, white);
}

.eb2-hud-score {
  min-width: 110px;
  padding: 0.7rem 0.9rem;
  border-radius: 18px;
  background: var(--eb2-surface);
  box-shadow: var(--eb2-shadow);
  text-align: center;
}

.eb2-hud-score span {
  display: block;
  color: var(--eb2-muted);
  font-size: 0.82rem;
}

.eb2-hud-score strong {
  display: block;
  font-size: 1.25rem;
}

.eb2-progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.eb2-progress-track {
  height: 16px;
  background: rgba(19, 38, 31, 0.09);
  border-radius: 999px;
  overflow: hidden;
}

.eb2-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--eb2-category-primary), var(--eb2-category-secondary));
  border-radius: inherit;
  transition: width 0.25s ease;
}

.eb2-timer-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.eb2-timer-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, white 48%, transparent 49%),
    conic-gradient(var(--eb2-category-primary) 0deg, var(--eb2-category-secondary) 270deg, rgba(19, 38, 31, 0.12) 360deg);
  box-shadow: var(--eb2-shadow);
}

.eb2-timer-ring strong {
  font-size: 1.2rem;
}

.eb2-game-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1rem;
}

.eb2-side-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eb2-side-card,
.eb2-question-card,
.eb2-feedback-card,
.eb2-chart-card,
.eb2-results-hero,
.eb2-review-card {
  border-radius: var(--eb2-radius-xl);
}

.eb2-side-card {
  padding: 1.25rem;
}

.eb2-side-card h3 {
  margin-bottom: 0.6rem;
}

.eb2-side-card p,
.eb2-side-card li {
  color: var(--eb2-muted);
}

.eb2-reward-preview {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.eb2-question-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eb2-question-card,
.eb2-feedback-card {
  padding: 2rem;
}

.eb2-question-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--eb2-category-soft) 42%, white), #ffffff 36%),
    #ffffff;
  border: 1px solid color-mix(in srgb, var(--eb2-category-primary) 12%, white);
}

.eb2-question-card h2 {
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  margin: 0.75rem 0 1.5rem;
}

.eb2-options {
  display: grid;
  gap: 0.85rem;
}

.eb2-option-btn {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 22px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--eb2-category-soft) 38%, white));
  color: var(--eb2-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--eb2-category-primary) 8%, rgba(19, 38, 31, 0.06));
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-size: 1rem;
}

.eb2-option-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(19, 38, 31, 0.10);
}

.eb2-option-btn.is-correct {
  background: linear-gradient(135deg, rgba(25, 153, 95, 0.16), rgba(25, 153, 95, 0.28));
  box-shadow: inset 0 0 0 2px rgba(25, 153, 95, 0.6);
}

.eb2-option-btn.is-wrong {
  background: linear-gradient(135deg, rgba(219, 77, 82, 0.12), rgba(219, 77, 82, 0.24));
  box-shadow: inset 0 0 0 2px rgba(219, 77, 82, 0.45);
}

.eb2-option-btn:disabled {
  cursor: default;
  opacity: 0.9;
}

.eb2-feedback-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.eb2-feedback-verdict {
  font-size: 1.2rem;
  font-weight: 800;
}

.eb2-feedback-verdict.is-correct {
  color: var(--eb2-success);
}

.eb2-feedback-verdict.is-wrong {
  color: var(--eb2-danger);
}

.eb2-feedback-points {
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: color-mix(in srgb, var(--eb2-category-primary) 12%, white);
  color: var(--eb2-category-dark);
  font-weight: 800;
}

.eb2-feedback-body p {
  margin-bottom: 0.65rem;
}

.eb2-results-hero {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.eb2-results-copy h2 {
  margin-bottom: 0.5rem;
}

.eb2-results-copy p {
  color: var(--eb2-muted);
}

.eb2-medal-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.eb2-medal {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  color: #4d2e00;
  background: radial-gradient(circle at top, #fff8d5, #f7b733);
  box-shadow: 0 18px 30px rgba(247, 183, 51, 0.28);
}

.eb2-star-row {
  display: flex;
  gap: 0.35rem;
  font-size: 2rem;
  color: #f6bd43;
}

.eb2-results-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eb2-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eb2-chart-card {
  padding: 1.5rem;
}

.eb2-chart-card h3 {
  margin-bottom: 1rem;
}

.eb2-badge-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.eb2-badge-card {
  padding: 1rem 1.1rem;
  border-radius: var(--eb2-radius-md);
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(244, 244, 228, 0.96));
  box-shadow: var(--eb2-shadow);
}

.eb2-badge-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.eb2-badge-card span {
  color: var(--eb2-muted);
}

.eb2-review-list {
  display: grid;
  gap: 0.9rem;
}

.eb2-review-card {
  padding: 1.2rem 1.25rem;
}

.eb2-review-card.is-correct {
  border-left: 8px solid rgba(25, 153, 95, 0.9);
}

.eb2-review-card.is-wrong {
  border-left: 8px solid rgba(219, 77, 82, 0.9);
}

.eb2-review-card h4 {
  margin-bottom: 0.5rem;
}

.eb2-review-card p {
  color: var(--eb2-muted);
  margin-bottom: 0.45rem;
}

.eb2-modal-shell {
  position: fixed;
  inset: 0;
  background: rgba(8, 21, 18, 0.65);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.eb2-modal {
  width: min(680px, 100%);
  border-radius: var(--eb2-radius-xl);
  padding: 2rem;
  position: relative;
  text-align: center;
}

.eb2-modal-brand img {
  width: min(280px, 80%);
  display: block;
  margin: 0 auto 1rem;
}

.eb2-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(19, 38, 31, 0.08);
  color: var(--eb2-ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.eb2-terms-copy {
  max-width: 540px;
  margin: 1rem auto 1.5rem;
  color: var(--eb2-muted);
}

@media screen and (max-width: 1024px) {
  .eb2-hero,
  .eb2-game-layout,
  .eb2-results-hero,
  .eb2-chart-grid,
  .eb2-mechanics {
    grid-template-columns: 1fr;
  }

  .eb2-side-panel {
    order: 2;
  }

  .eb2-question-shell {
    order: 1;
  }
}

@media screen and (max-width: 720px) {
  .eb2-app {
    padding-top: 1rem;
  }

  .eb2-screen {
    width: min(100%, calc(100% - 1rem));
  }

  .eb2-hero-copy,
  .eb2-hero-panel,
  .eb2-question-card,
  .eb2-feedback-card,
  .eb2-results-hero,
  .eb2-chart-card,
  .eb2-modal {
    padding: 1.25rem;
  }

  .eb2-hud,
  .eb2-progress-wrap,
  .eb2-section-head,
  .eb2-category-footer,
  .eb2-feedback-head {
    flex-direction: column;
    align-items: stretch;
  }

  .eb2-stat-grid,
  .eb2-results-summary {
    grid-template-columns: 1fr;
  }

  .eb2-timer-box {
    justify-content: center;
  }

  .eb2-hero-copy h1 {
    font-size: 2rem;
  }
}

.eb2-stat-card,
.eb2-summary-card,
.eb2-chart-card,
.eb2-mechanic-card,
.eb2-side-card,
.eb2-feedback-card,
.eb2-question-card,
.eb2-review-card,
.eb2-results-hero {
  color: var(--eb2-ink);
}

.eb2-stat-card strong,
.eb2-summary-card strong,
.eb2-chart-card h3,
.eb2-mechanic-card h3,
.eb2-side-card h3,
.eb2-question-card h2,
.eb2-results-hero h2,
.eb2-review-card h4 {
  color: var(--eb2-ink);
}

.eb2-brand-lockup,
.eb2-powered,
.eb2-hero-panel .eb2-stat-label {
  color: #25443a;
}

.eb2-hero-panel .eb2-stat-card {
  background: rgba(255, 255, 255, 0.96);
}

.eb2-category-card {
  min-height: 390px;
}

.eb2-category-stars,
.eb2-category-index,
.eb2-pill,
.eb2-review-meta {
  background: color-mix(in srgb, var(--category-dark) 42%, transparent);
  color: #fff7eb;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.eb2-question-badge {
  background: linear-gradient(135deg, var(--eb2-category-dark), color-mix(in srgb, var(--eb2-category-primary) 68%, var(--eb2-category-dark)));
  color: #fffaf4;
  border: 1px solid color-mix(in srgb, var(--eb2-category-primary) 35%, white);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--eb2-category-primary) 16%, transparent);
}

.eb2-question-top {
  margin-bottom: 0.35rem;
}

.eb2-feedback-card {
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--eb2-category-soft) 24%, white));
  border: 1px solid color-mix(in srgb, var(--eb2-category-primary) 10%, white);
}

.eb2-hud-score {
  border: 1px solid color-mix(in srgb, var(--eb2-category-primary) 10%, white);
}

.eb2-side-card {
  border: 1px solid color-mix(in srgb, var(--eb2-category-primary) 8%, white);
}

.eb2-difficulty-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fffaf2;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.eb2-difficulty-btn.is-active {
  background: #f4ba3b;
  color: #1c241f;
  border-color: transparent;
}

.eb2-play-btn {
  background: var(--category-accent);
  color: var(--category-dark);
}

.eb2-section-head h2,
.eb2-section-head h3,
.eb2-section-head p,
.eb2-feedback-body p,
.eb2-review-card p,
.eb2-mechanic-card p,
.eb2-side-card p {
  color: var(--eb2-ink);
}

.eb2-chart-card {
  background: #ffffff;
}

.eb2-chart-card canvas {
  width: 100% !important;
  height: 320px !important;
}

#resultsBreakdownChart {
  max-width: 420px;
  margin: 0 auto;
}

.eb2-modal-shell,
.eb2-modal,
.eb2-close,
.eb2-modal-actions,
.eb2-modal-brand,
.eb2-terms-copy {
  display: none !important;
}

#terminosyCond {
  display: block;
}

#terminosyCond .modal {
  display: block;
}

#terminosyCond .modal-content {
  background: #ffffff;
  color: #202b26;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 2rem 2.25rem;
  border: 1px solid rgba(19, 38, 31, 0.08);
}

#terminosyCond .modal-content h3,
#terminosyCond .modal-content p,
#terminosyCond .modal-content strong,
#terminosyCond .modal-content a:not(.button) {
  color: #202b26;
}

#terminosyCond .close {
  color: #2c3f37;
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
}

#toggleTermsText {
  font-weight: 700;
  text-decoration: underline;
}

#accept.button,
#cancel.button {
  margin-top: 0.6rem;
  margin-right: 0.5rem;
}

.eb2-footer,
.eb2-footer section,
.eb2-footer header,
.eb2-footer h2,
.eb2-footer p,
.eb2-footer a,
.eb2-footer .byline,
.eb2-footer span {
  background: transparent;
  color: #d7d7d7;
}

.eb2-footer {
  background: #2b2b2b;
}

.eb2-footer a:hover {
  color: #ffffff;
}
