/* HS&E Test Practice: the app's "Site sign" look. Hi-vis yellow and near-black, system fonts only. */
:root {
  --hivis: #FFD200;
  --deep-yellow: #D9A400;
  --ink: #1A1A1A;
  --board: #141414;
  --panel: #262626;
  --text-dark: #F2F2F2;
  --muted-dark: #C8C8C8;
  --paper: #FFFFFF;
  --page: #F2F2EF;
  --body: #2B2B2B;
  --muted: #555;
  --line: #D6D6D2;
  --right: #00733A;
  --right-tint: #E3F2EA;
  --wrong: #C42121;
  --wrong-tint: #FBE9E9;
  --help: #33619A;
  --sign: "Futura-CondensedExtraBold", "Futura Condensed ExtraBold", "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Gurmukhi", "Helvetica Neue", Arial, sans-serif;
}
[hidden] { display: none !important; }
a { color: #0B4F8A; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[lang="pa"] { line-height: 1.7; }

/* Header */
.bar { position: sticky; top: 0; z-index: 20; background: var(--hivis); border-bottom: 3px solid var(--ink); }
.bar-in { max-width: 560px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); min-width: 0; }
.hat { width: 56px; height: auto; flex: none; }
.hat.small { width: 30px; }
.brand-name { font-family: var(--sign); font-weight: 800; font-stretch: condensed; font-size: clamp(24px, 7.4vw, 34px); letter-spacing: .01em; line-height: .95; white-space: normal; text-transform: uppercase; }
.bar-cta {
  flex: none; border: 0; border-radius: 10px; background: var(--ink); color: var(--hivis);
  font-weight: 700; font-size: 13px; line-height: 1.15; font-family: inherit; padding: 8px 10px; cursor: pointer; max-width: 118px; text-align: center;
}

/* First screen */
.board { background: var(--board); color: var(--text-dark); padding-top: 22px; }
h1 { font-size: 31px; line-height: 1.12; margin: 0 0 10px; letter-spacing: -.01em; color: #fff; font-weight: 800; }
.promise { margin: 0 0 18px; color: var(--hivis); font-size: 19px; font-weight: 700; }
.start-card { background: var(--paper); color: var(--body); border-radius: 18px; padding: 16px; }
.indep { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--ink); }
.facts { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.big {
  display: block; width: 100%; min-height: 60px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--hivis); color: var(--ink); font-weight: 800; font-size: 21px; line-height: 1.2; font-family: inherit;
  box-shadow: 0 4px 0 var(--deep-yellow); padding: 12px 16px;
}
.big:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--deep-yellow); }
.big:disabled { opacity: .55; }
.start-card .big { box-shadow: 0 4px 0 var(--deep-yellow), 0 0 0 2px var(--ink) inset; }
.langs { padding: 16px 0 4px; }
.langs-h { margin: 0 0 8px; font-weight: 700; font-size: 16px; }
.langs-h span { font-weight: 400; color: var(--muted-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid #555; background: var(--panel); color: var(--text-dark); border-radius: 999px;
  padding: 7px 13px; font-weight: 600; font-size: 15px; line-height: 1.2; font-family: inherit; cursor: pointer; min-height: 38px;
}
.chip.on { background: var(--hivis); color: var(--ink); border-color: var(--hivis); }
.stripes { height: 14px; background: repeating-linear-gradient(-45deg, var(--hivis) 0 14px, var(--ink) 14px 28px); }

/* Taster */
.quiz { padding-bottom: 110px; }
.quiz-top { background: var(--ink); color: var(--text-dark); padding: 8px 0 10px; }
.quiz-top-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qcount { font-weight: 800; font-size: 17px; }
.lang-pick select {
  background: var(--panel); color: var(--text-dark); border: 1.5px solid #555; border-radius: 10px;
  font-weight: 600; font-size: 15px; font-family: inherit; padding: 6px 8px; min-height: 36px;
}
.segs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 8px; }
.seg { height: 6px; border-radius: 3px; background: #4A4A4A; }
.seg.right { background: #3DBA75; }
.seg.wrong { background: #F06A6A; }
.seg.now { background: var(--hivis); }
.qcard { margin-top: 12px; }
.qhead { display: flex; gap: 12px; align-items: flex-start; }
.sign { flex: none; width: 104px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px; }
.sign svg { display: block; width: 100%; height: auto; }
.qcard.done .sign { width: 84px; }
.qwords { min-width: 0; }
.area { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.qtext { margin: 0; font-size: 20px; line-height: 1.3; color: var(--ink); }
.help { color: var(--help); margin: 4px 0 0; font-size: 15px; }
.qhelp { font-size: 16px; }
.opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 12px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--paper); border: 1.5px solid #BDBDB8; border-radius: 14px; padding: 10px 12px; min-height: 58px;
  font: inherit; color: var(--body);
}
.opt:hover:not(:disabled) { border-color: var(--ink); }
.badge {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #8A8A85; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: var(--ink);
}
.otext { display: flex; flex-direction: column; min-width: 0; }
.oen { font-size: 17px; }
.ohelp { margin: 2px 0 0; font-size: 14px; }
.onote { font-size: 14px; font-weight: 800; margin-top: 2px; }
.opt:disabled { cursor: default; color: var(--body); }
.opt.right-chosen, .opt.right-missed { background: var(--right-tint); border: 3px solid var(--right); }
.opt.right-chosen .badge, .opt.right-missed .badge { background: var(--right); border-color: var(--right); color: #fff; }
.opt.right-chosen .onote, .opt.right-missed .onote { color: var(--right); }
.opt.wrong-chosen { background: var(--wrong-tint); border: 3px solid var(--wrong); }
.opt.wrong-chosen .badge { background: var(--wrong); border-color: var(--wrong); color: #fff; }
.opt.wrong-chosen .onote { color: var(--wrong); }
.opt.other { min-height: 42px; padding: 6px 12px; border-color: #E0E0DC; color: #666; }
.opt.other .badge { width: 26px; height: 26px; font-size: 14px; border-color: #C8C8C4; color: #777; }
.opt.other .oen { font-size: 15px; }
.qcard.done .oen { font-size: 16px; }
.qcard.done .qtext { font-size: 18px; }
.qcard.done .opt:not(.other) { min-height: 50px; padding: 8px 12px; }
.feedback { margin-top: 12px; background: var(--paper); border-radius: 14px; padding: 12px 14px; border-left: 6px solid var(--right); }
.feedback.is-wrong { border-left-color: var(--wrong); }
.verdict { margin: 0 0 6px; font-weight: 800; font-size: 19px; color: var(--right); }
.is-wrong .verdict { color: var(--wrong); }
.why { margin-top: 6px; }
.why-h { margin: 0; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.why-t { margin: 2px 0 0; font-size: 16px; }
.why-after { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 10px; }
.source { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.next-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--page); transform: translateZ(0);
  border-top: 1px solid var(--line); padding: 10px 0 calc(12px + env(safe-area-inset-bottom));
}
.next-bar .big { box-shadow: 0 4px 0 var(--deep-yellow), 0 0 0 2px var(--ink) inset; }

/* Score */
.score { padding-top: 16px; }
.score-card { background: var(--ink); color: var(--text-dark); border-radius: 18px; padding: 18px 16px; text-align: center; }
.score-big { margin: 0; font-size: 34px; font-weight: 800; color: var(--hivis); }
.score-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.dot { width: 18px; height: 18px; border-radius: 50%; }
.dot.right { background: #3DBA75; }
.dot.wrong { background: #F06A6A; }
.score-note { margin: 0 0 10px; font-size: 16px; color: var(--muted-dark); }
.again {
  background: transparent; border: 1.5px solid currentColor; color: inherit; border-radius: 12px;
  padding: 8px 14px; font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer;
}

/* Sign-up */
.signup { padding-top: 18px; padding-bottom: 26px; scroll-margin-top: 70px; }
.signup-card { background: var(--paper); border-radius: 18px; padding: 16px; border-top: 8px solid var(--hivis); box-shadow: 0 1px 0 var(--line); }
.signup-head { display: flex; align-items: center; gap: 10px; }
.signup h2 { margin: 0; font-size: 23px; line-height: 1.2; color: var(--ink); }
.signup-card > p { margin: 10px 0 4px; font-size: 16px; }
.field { display: block; margin-top: 12px; font-weight: 700; font-size: 16px; color: var(--ink); }
.field .optl { font-weight: 400; color: var(--muted); }
.field input, .field select {
  display: block; width: 100%; margin-top: 5px; font-weight: 400; font-size: 17px; font-family: inherit; color: var(--ink);
  border: 1.5px solid #9A9A95; border-radius: 12px; padding: 12px; min-height: 50px; background: #fff;
}
.field input:focus, .field select:focus { outline: 3px solid var(--hivis); outline-offset: 1px; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.layer1 { font-size: 15px; margin: 14px 0; color: var(--body); }
.signup .big { box-shadow: 0 4px 0 var(--deep-yellow), 0 0 0 2px var(--ink) inset; }
.indep.under { margin: 12px 0 0; }
.thanks { margin: 12px 0 0; font-weight: 700; color: var(--right); }
.err { display: block; color: var(--wrong); font-weight: 700; font-size: 15px; margin-top: 6px; }
.notice { margin-top: 16px; border-top: 2px solid var(--line); padding-top: 8px; font-size: 15px; scroll-margin-top: 70px; }
.notice h3 { font-size: 20px; margin: 6px 0; color: var(--ink); }
.notice ul { padding-left: 20px; }

/* Footer */
.foot { background: var(--board); color: var(--muted-dark); font-size: 14px; padding: 18px 0 28px; }
.foot a { color: var(--hivis); }
.foot-brand { display: flex; align-items: center; gap: 8px; font-family: var(--sign); font-weight: 800; font-stretch: condensed; font-size: 20px; color: var(--hivis); text-transform: uppercase; margin: 0 0 8px; }
.foot-brand .hat { background: var(--hivis); border-radius: 7px; padding: 3px 4px; width: 38px; }
.credits { color: #A8A8A8; }

/* Round 2: the mock */
.nowrap { white-space: nowrap; }
.big small, .second small { display: block; font-size: 14px; font-weight: 600; margin-top: 2px; opacity: .8; }
.second {
  display: block; width: 100%; margin-top: 12px; min-height: 52px; border: 2px solid var(--ink); border-radius: 16px; cursor: pointer;
  background: var(--paper); color: var(--ink); font-weight: 800; font-size: 18px; line-height: 1.2; font-family: inherit; padding: 9px 14px;
}
.second:active { background: #F4F4F0; }
.pool { margin: 12px 0 0; padding-bottom: 8px; font-size: 15px; color: var(--muted-dark); }
.pool b { color: #fff; }
.timer { font-weight: 800; font-size: 17px; color: var(--hivis); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timer.low { color: #FF8A8A; }
.segs.fifty { grid-template-columns: repeat(25, 1fr); gap: 3px; }
.segs.fifty .seg { height: 5px; }
.seg.done { background: #BFBFBF; }
.opt.chosen { background: #FFF6C7; border: 3px solid var(--ink); }
.opt.chosen .badge { background: var(--ink); border-color: var(--ink); color: var(--hivis); }
.mock-hint { margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.next-bar .two { display: flex; gap: 10px; }
.next-bar .two .big { flex: 1; }
.back {
  flex: none; width: 96px; min-height: 60px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper);
  color: var(--ink); font-weight: 800; font-size: 18px; font-family: inherit; cursor: pointer;
}
.back:disabled { opacity: .35; }
.finish-link { display: block; margin: 6px auto 0; background: none; border: 0; color: var(--ink); text-decoration: underline; font: 600 15px/1.3 inherit; font-family: inherit; cursor: pointer; padding: 4px; }
#mock { padding-bottom: 140px; }
.confirm { margin-top: 16px; background: var(--paper); border-radius: 16px; padding: 16px; border-top: 8px solid var(--hivis); }
.confirm h2 { margin: 0 0 6px; color: var(--ink); font-size: 22px; }
.confirm p { margin: 0 0 10px; }
.confirm .again { display: block; margin: 12px auto 0; color: var(--ink); }
.jumps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.jump { min-width: 40px; min-height: 40px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; font: 700 16px/1 inherit; font-family: inherit; cursor: pointer; }
.timeup { margin: 0 0 4px; font-weight: 800; color: #FF8A8A; }
.score-need { margin: 4px 0 12px; font-size: 17px; font-weight: 700; color: #fff; }
.topics { display: grid; gap: 7px; margin: 0 0 14px; text-align: left; }
.trow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; font-size: 14px; }
.tname { color: var(--text-dark); font-weight: 600; }
.tcells { display: flex; gap: 2px; }
.tcell { width: 9px; height: 14px; border-radius: 2px; background: #F06A6A; }
.tcell.ok { background: #3DBA75; }
.tnum { font-weight: 700; color: var(--muted-dark); min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; }
.score-card .big { margin: 4px 0 12px; }
.score-more { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rnum { margin: 12px 0 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: var(--text-dark); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); font-size: 15px; border-top: 3px solid var(--hivis); }
.consent p { margin: 0 0 10px; }
.consent-btns { display: flex; gap: 8px; align-items: center; }
.cbtn { flex: 1; min-height: 46px; border-radius: 12px; border: 2px solid var(--hivis); background: var(--hivis); color: var(--ink); font: 800 17px/1 inherit; font-family: inherit; cursor: pointer; }
#cDeny { background: var(--hivis); }
.clink { background: none; border: 0; color: var(--hivis); text-decoration: underline; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }

.pool + .pool { padding-bottom: 20px; }

/* Privacy page */
.doc { background: var(--paper); border-radius: 18px; padding: 16px; margin: 16px auto 28px; }
.doc h1 { color: var(--ink); font-size: 26px; }

@media (min-width: 600px) {
  h1 { font-size: 40px; }
  .board { padding-top: 36px; }
}
