:root {
  --e5b-ink: #101010;
  --e5b-paper: #f6f1e7;
  --e5b-card: #fffaf0;
  --e5b-white: #ffffff;
  --e5b-yellow: #efc63e;
  --e5b-yellow-soft: #f8df82;
  --e5b-magenta: #ed3daf;
  --e5b-magenta-soft: #f7b7df;
  --e5b-muted: #5f5a53;
  --e5b-line: #101010;
  --e5b-shadow: 7px 7px 0 #101010;
  --e5b-shadow-sm: 4px 4px 0 #101010;
  --e5b-radius-lg: 26px;
  --e5b-radius-md: 18px;
  --e5b-radius-sm: 12px;
}

.e5b-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 32px auto;
  background: var(--e5b-paper);
  color: var(--e5b-ink);
  border: 2px solid var(--e5b-line);
  border-radius: var(--e5b-radius-lg);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--e5b-ink);
  font-family: "Rajdhani", "Arial Narrow", Arial, sans-serif;
}

.e5b-shell *,
.e5b-shell *::before,
.e5b-shell *::after { box-sizing: border-box; }
.e5b-shell button,
.e5b-shell input,
.e5b-shell select { font: inherit; }
.e5b-shell button:focus-visible,
.e5b-shell a:focus-visible,
.e5b-shell input:focus-visible,
.e5b-shell select:focus-visible {
  outline: 4px solid var(--e5b-magenta);
  outline-offset: 3px;
}

.e5b-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  background: var(--e5b-ink);
  color: var(--e5b-white);
  border-bottom: 2px solid var(--e5b-ink);
}
.e5b-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .025em;
  font-size: 1.05rem;
}
.e5b-brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 42px;
  padding: 4px 10px;
  background: var(--e5b-yellow);
  color: var(--e5b-ink);
  border: 2px solid var(--e5b-white);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--e5b-magenta);
  font-size: 1.45rem;
  font-weight: 700;
}
.e5b-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.e5b-nav-btn,
.e5b-nav-link {
  appearance: none;
  border: 2px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.82);
  cursor: pointer;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  transition: transform .14s ease, background .14s ease, color .14s ease, border-color .14s ease;
}
.e5b-nav-btn:hover,
.e5b-nav-link:hover {
  color: var(--e5b-white);
  border-color: var(--e5b-white);
  transform: translateY(-1px);
}
.e5b-nav-btn.is-active {
  color: var(--e5b-ink);
  background: var(--e5b-magenta);
  border-color: var(--e5b-white);
}

.e5b-view { display: none; }
.e5b-view.is-active { display: block; }
.e5b-hero,
.e5b-section,
.e5b-exam-screen { padding: 58px clamp(24px, 5vw, 72px); }
.e5b-hero {
  position: relative;
  background:
    linear-gradient(90deg, transparent 0 97%, rgba(16,16,16,.055) 97% 100%),
    linear-gradient(0deg, transparent 0 97%, rgba(16,16,16,.055) 97% 100%),
    var(--e5b-paper);
  background-size: 36px 36px;
}
.e5b-section { border-top: 2px solid var(--e5b-line); background: var(--e5b-paper); }
.e5b-section-wide { min-height: 650px; }
.e5b-kicker {
  display: inline-flex;
  padding: 8px 14px;
  background: var(--e5b-yellow);
  color: var(--e5b-ink);
  border: 2px solid var(--e5b-line);
  border-radius: 999px;
  box-shadow: var(--e5b-shadow-sm);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
}
.e5b-eyebrow {
  display: inline-block;
  margin: 30px 0 10px;
  padding: 5px 9px;
  background: var(--e5b-magenta);
  color: var(--e5b-ink);
  border: 2px solid var(--e5b-line);
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.e5b-shell h1,
.e5b-shell h2,
.e5b-shell h3 {
  color: var(--e5b-ink);
  line-height: .97;
  margin-top: 0;
  font-family: "Rajdhani", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
}
.e5b-shell h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -.045em;
  max-width: 940px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.e5b-shell h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.e5b-shell h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
}
.e5b-lead {
  max-width: 790px;
  color: var(--e5b-muted);
  font-size: clamp(1.08rem, 2vw, 1.4rem);
  line-height: 1.52;
  font-weight: 500;
}
.e5b-lead-small { font-size: 1.08rem; }

.e5b-exam-card {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1.35fr .8fr;
  gap: 30px;
  padding: 34px;
  background: var(--e5b-card);
  border: 2px solid var(--e5b-line);
  border-radius: var(--e5b-radius-lg);
  box-shadow: var(--e5b-shadow);
}
.e5b-exam-card h2 { margin-bottom: 18px; }
.e5b-exam-card p { line-height: 1.5; }
.e5b-timer-block {
  background: var(--e5b-yellow);
  color: var(--e5b-ink);
  border: 2px solid var(--e5b-line);
  border-radius: var(--e5b-radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-shadow: var(--e5b-shadow-sm);
}
.e5b-timer-block span {
  font-size: .76rem;
  letter-spacing: .12em;
  font-weight: 700;
  text-transform: uppercase;
}
.e5b-timer-block strong {
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  line-height: .9;
  margin: 12px 0 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.e5b-timer-block small { margin-top: 14px; font-weight: 600; }

.e5b-primary,
.e5b-secondary,
.e5b-tertiary {
  border: 2px solid var(--e5b-line);
  border-radius: 12px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.e5b-primary {
  background: var(--e5b-magenta);
  color: var(--e5b-ink);
  box-shadow: var(--e5b-shadow-sm);
}
.e5b-primary:hover {
  background: var(--e5b-magenta-soft);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--e5b-ink);
}
.e5b-secondary {
  background: var(--e5b-card);
  color: var(--e5b-ink);
  box-shadow: var(--e5b-shadow-sm);
}
.e5b-secondary:hover {
  background: var(--e5b-yellow);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--e5b-ink);
}
.e5b-tertiary {
  background: var(--e5b-white);
  color: var(--e5b-ink);
  padding: 8px 13px;
  box-shadow: 3px 3px 0 var(--e5b-ink);
}
.e5b-tertiary:hover { background: var(--e5b-yellow-soft); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--e5b-ink); }
.e5b-primary:disabled,
.e5b-secondary:disabled,
.e5b-tertiary:disabled { opacity: .48; cursor: default; transform: none; }

.e5b-section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.e5b-competency-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin-top: 34px;
}
.e5b-competency {
  text-align: left;
  border: 2px solid var(--e5b-line);
  background: var(--e5b-card);
  border-radius: var(--e5b-radius-md);
  padding: 20px;
  min-height: 168px;
  cursor: pointer;
  color: var(--e5b-ink);
  display: flex;
  flex-direction: column;
  box-shadow: var(--e5b-shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.e5b-competency:nth-child(4n+2),
.e5b-competency:nth-child(4n+4) { background: #fff4fb; }
.e5b-competency:hover {
  background: var(--e5b-yellow-soft);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--e5b-ink);
}
.e5b-competency span { font-size: 1.18rem; font-weight: 700; text-transform: uppercase; }
.e5b-competency small { display: block; color: var(--e5b-muted); line-height: 1.4; margin-top: 8px; font-weight: 500; }
.e5b-competency em {
  margin-top: auto;
  padding-top: 20px;
  color: var(--e5b-ink);
  font-size: .77rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.e5b-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.e5b-stats span {
  border: 2px solid var(--e5b-line);
  border-radius: 999px;
  background: var(--e5b-white);
  padding: 8px 12px;
  font-weight: 600;
}
.e5b-stats strong { color: var(--e5b-ink); }

.e5b-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--e5b-line);
  background: var(--e5b-ink);
}
.e5b-note > div {
  padding: 32px clamp(24px,5vw,70px);
  border-right: 2px solid var(--e5b-line);
}
.e5b-note > div:first-child { background: var(--e5b-yellow); }
.e5b-note > div:last-child { background: var(--e5b-magenta); border-right: 0; }
.e5b-note p { color: var(--e5b-ink); line-height: 1.5; font-weight: 550; }

.e5b-exam-screen { background: var(--e5b-paper); }
.e5b-exam-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.e5b-exam-clock {
  min-width: 190px;
  padding: 18px 22px;
  border: 2px solid var(--e5b-line);
  border-radius: var(--e5b-radius-md);
  background: var(--e5b-yellow);
  color: var(--e5b-ink);
  box-shadow: var(--e5b-shadow-sm);
  text-align: right;
}
.e5b-exam-clock span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.e5b-exam-clock strong { display: block; font-size: 2.35rem; font-variant-numeric: tabular-nums; margin-top: 4px; }
.e5b-missions { margin-top: 32px; display: grid; gap: 18px; }
.e5b-mission {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 20px;
  background: var(--e5b-card);
  border: 2px solid var(--e5b-line);
  border-radius: var(--e5b-radius-md);
  padding: 22px;
  box-shadow: var(--e5b-shadow-sm);
}
.e5b-mission:nth-child(even) { background: #fff4fb; }
.e5b-mission-number {
  display: grid;
  place-items: center;
  align-self: start;
  min-height: 62px;
  border: 2px solid var(--e5b-line);
  border-radius: 12px;
  background: var(--e5b-yellow);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.e5b-mission span { font-size: .75rem; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
.e5b-mission p { font-size: 1.08rem; line-height: 1.52; margin-bottom: 14px; font-weight: 500; }
.e5b-mission-check { display: inline-flex; gap: 8px; align-items: center; font-size: .95rem; font-weight: 700; }
.e5b-mission-check input { width: 20px; height: 20px; accent-color: var(--e5b-magenta); }
.e5b-exam-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.e5b-time-up #e5b-exam-time { color: var(--e5b-magenta); }

.e5b-filters { display: flex; gap: 12px; margin: 30px 0; flex-wrap: wrap; }
.e5b-filters select {
  min-width: 230px;
  border: 2px solid var(--e5b-line);
  border-radius: 12px;
  background: var(--e5b-white);
  color: var(--e5b-ink);
  padding: 12px 40px 12px 15px;
  box-shadow: var(--e5b-shadow-sm);
  font-weight: 600;
}
.e5b-exercise-list { display: grid; gap: 18px; }
.e5b-exercise-card {
  background: var(--e5b-card);
  border: 2px solid var(--e5b-line);
  border-radius: var(--e5b-radius-md);
  padding: 24px;
  box-shadow: var(--e5b-shadow-sm);
}
.e5b-exercise-card:nth-child(even) { background: #fff4fb; }
.e5b-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.e5b-tags span {
  background: var(--e5b-yellow);
  border: 2px solid var(--e5b-line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
}
.e5b-tags span + span { background: var(--e5b-magenta); }
.e5b-instruction { color: var(--e5b-muted); line-height: 1.58; font-weight: 500; }
.e5b-exercise-actions { display: flex; gap: 9px; margin-top: 19px; flex-wrap: wrap; }
.e5b-reveal {
  margin-top: 18px;
  border: 2px solid var(--e5b-line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--e5b-yellow-soft);
  box-shadow: 3px 3px 0 var(--e5b-ink);
}
.e5b-reveal p { margin-bottom: 0; }
.e5b-empty {
  background: var(--e5b-white);
  border: 2px dashed var(--e5b-line);
  border-radius: var(--e5b-radius-md);
  padding: 30px;
}
.e5b-card-status,
.e5b-status { color: var(--e5b-ink); font-weight: 700; min-height: 1.25em; }

.e5b-profile-form {
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
  padding: 26px;
  background: var(--e5b-card);
  border: 2px solid var(--e5b-line);
  border-radius: var(--e5b-radius-lg);
  box-shadow: var(--e5b-shadow);
}
.e5b-profile-form label { font-weight: 700; font-size: .98rem; text-transform: uppercase; letter-spacing: .025em; }
.e5b-profile-form input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 2px solid var(--e5b-line);
  background: var(--e5b-white);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--e5b-ink);
  box-shadow: 3px 3px 0 var(--e5b-ink);
  font-weight: 600;
  text-transform: none;
}
.e5b-consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
  font-weight: 600 !important;
  text-transform: none !important;
}
.e5b-consent input { margin-top: 3px; accent-color: var(--e5b-magenta); }
.e5b-form-actions,
.e5b-status { grid-column: 1 / -1; }
.e5b-form-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 6px; }

.e5b-footer {
  padding: 22px 28px;
  background: var(--e5b-ink);
  color: var(--e5b-white);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .88rem;
  font-weight: 600;
  border-top: 2px solid var(--e5b-line);
}
.e5b-footer strong { color: var(--e5b-yellow); text-transform: uppercase; }
.e5b-footer span { opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .e5b-shell *, .e5b-shell *::before, .e5b-shell *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 900px) {
  .e5b-topbar,
  .e5b-section-heading,
  .e5b-exam-head { align-items: flex-start; flex-direction: column; }
  .e5b-nav { justify-content: flex-start; }
  .e5b-exam-card { grid-template-columns: 1fr; }
  .e5b-competency-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .e5b-exam-clock { text-align: left; }
}

@media (max-width: 620px) {
  .e5b-shell { width: 100%; margin: 0; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .e5b-topbar { padding: 18px; }
  .e5b-brand { align-items: flex-start; flex-direction: column; }
  .e5b-hero,
  .e5b-section,
  .e5b-exam-screen { padding: 40px 20px; }
  .e5b-shell h1 { font-size: 3rem; }
  .e5b-competency-grid,
  .e5b-note,
  .e5b-profile-form { grid-template-columns: 1fr; }
  .e5b-note > div { border-right: 0; border-bottom: 2px solid var(--e5b-line); }
  .e5b-note > div:last-child { border-bottom: 0; }
  .e5b-mission { grid-template-columns: 54px 1fr; }
  .e5b-mission-number { min-height: 48px; font-size: 1.8rem; }
  .e5b-footer { flex-direction: column; }
  .e5b-primary, .e5b-secondary { width: 100%; }
}
