:root {
  color-scheme: light;
  --ink: #172044;
  --muted: #5b6280;
  --paper: #fffefb;
  --page: #f2f3ff;
  --blue: #3347f0;
  --blue-dark: #2131ba;
  --lemon: #ffe96b;
  --orange: #ff7043;
  --mint: #a9f1df;
  --lilac: #dedcff;
  --green: #16805a;
  --red: #c94d37;
  --line: #dfe2f2;
  --shadow: 0 18px 45px rgba(35, 47, 138, .12);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 6%, rgba(255, 233, 107, .36), transparent 17rem),
    radial-gradient(circle at 2% 38%, rgba(169, 241, 223, .32), transparent 16rem),
    var(--page);
}
button { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.app-shell { min-height: 100svh; }
.boot { padding: 4rem 1rem; text-align: center; color: var(--muted); }
.page-wrap { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 1rem; }
.header-tools, .quiz-header-tools { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; }
.language-toggle { position: relative; z-index: 2; min-width: 42px; min-height: 36px; padding: .35rem .55rem; border: 1.5px solid rgba(23,32,68,.2); border-radius: 11px; background: var(--lemon); color: var(--ink); cursor: pointer; font-size: .76rem; font-weight: 950; }
.language-toggle:hover { transform: translateY(-1px); }
.brand { display: inline-flex; align-items: center; gap: .62rem; color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 950; letter-spacing: .065em; text-transform: uppercase; }
.brand-mark { display: block; flex: 0 0 36px; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 12px; object-fit: cover; box-shadow: 3px 3px 0 var(--ink); }
.local-pill, .question-tag { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .78rem; border: 1px solid rgba(23, 32, 68, .12); border-radius: 999px; background: rgba(255, 254, 251, .76); color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .035em; }
.local-dot { width: 8px; height: 8px; border-radius: 50%; background: #1eaa76; }
.hero { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 1.5rem; align-items: center; min-height: 420px; padding: clamp(1.5rem, 5vw, 3.5rem); overflow: hidden; border: 3px solid var(--ink); border-radius: 34px; color: #fff; background: var(--blue); box-shadow: 8px 9px 0 var(--ink); }
.hero::before { position: absolute; top: -80px; right: 33%; width: 220px; height: 220px; border: 2px solid rgba(255, 255, 255, .16); border-radius: 50%; content: ""; }
.hero-copy { position: relative; z-index: 1; max-width: 540px; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem; color: var(--lemon); font-size: .77rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 18px; height: 3px; background: currentColor; content: ""; }
h1, h2, p { margin-top: 0; }
.hero h1 { max-width: 9ch; margin-bottom: 1rem; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(3.4rem, 7.7vw, 6.2rem); font-weight: 500; letter-spacing: .005em; line-height: .91; text-transform: uppercase; }
.hero h1 span { color: var(--lemon); }
.hero-copy > p { max-width: 42ch; margin-bottom: 1.5rem; color: rgba(255,255,255,.84); font-size: 1.05rem; line-height: 1.6; }
.hero-action-row { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; }
.primary-button, .secondary-button, .next-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: .65rem; padding: .8rem 1.2rem; border: 2px solid var(--ink); border-radius: 15px; background: var(--lemon); color: var(--ink); box-shadow: 3px 4px 0 var(--ink); cursor: pointer; font-weight: 950; transition: transform .15s ease, box-shadow .15s ease; }
.primary-button:hover, .secondary-button:hover, .next-button:hover { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--ink); }
.primary-button:active, .secondary-button:active, .next-button:active { transform: translate(3px, 4px); box-shadow: none; }
.hero-note { color: rgba(255,255,255,.78); font-size: .8rem; font-weight: 700; }
.hero-art { position: relative; z-index: 1; width: 100%; max-width: 360px; justify-self: center; overflow: visible; transform: rotate(2deg); }
.hero-art img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border: 7px solid var(--paper); border-radius: 28px; background: var(--mint); box-shadow: 8px 9px 0 rgba(14, 22, 78, .52); }
.art-sticker { position: absolute; right: -22px; bottom: -15px; display: grid; width: 92px; aspect-ratio: 1; align-content: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 950; line-height: 1.05; text-align: center; transform: rotate(9deg); box-shadow: 3px 4px 0 var(--ink); }
.art-sticker strong { display: block; font-family: Impact, Haettenschweiler, sans-serif; font-size: 1.75rem; }
.home-lower { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; margin: 2rem 0 3.5rem; }
.info-card, .best-card { padding: 1.4rem 1.5rem; border: 1.5px solid var(--line); border-radius: 22px; background: rgba(255,254,251,.88); box-shadow: 0 5px 0 rgba(23,32,68,.04); }
.info-card h2, .best-card h2 { margin-bottom: .55rem; font-size: 1rem; }
.info-card p, .best-card p { margin-bottom: 0; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.info-line { display: flex; align-items: center; gap: .6rem; }
.info-icon { display: grid; width: 32px; aspect-ratio: 1; flex: none; place-items: center; border-radius: 10px; background: var(--mint); font-weight: 900; }
.best-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.best-value { color: var(--blue); font-family: Impact, Haettenschweiler, sans-serif; font-size: 2.7rem; }
.home-footer { padding: 0 0 1.8rem; color: #727891; font-size: .76rem; text-align: center; }
.quiz-topbar { display: grid; grid-template-columns: 1fr minmax(160px, 400px) 1fr; align-items: center; gap: 1rem; min-height: 80px; }
.quiz-topbar .brand { justify-self: start; }
.progress-area { display: grid; gap: .4rem; }
.progress-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .74rem; font-weight: 900; }
.progress-track { height: 9px; overflow: hidden; border-radius: 99px; background: #dfe2f5; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--orange); transition: width .25s ease; }
.leave-button { justify-self: end; padding: .55rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: .8rem; font-weight: 850; }
.quiz-header-tools { justify-self: end; }
.quiz-main { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(380px, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding: 1.5rem 0 3rem; }
.question-art { position: sticky; top: 1rem; padding: .8rem; border: 2px solid var(--ink); border-radius: 27px; background: var(--paper); box-shadow: 6px 7px 0 var(--ink); transform: rotate(-1.1deg); }
.question-art img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 17px; background: var(--lilac); }
.art-caption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem .25rem .1rem; }
.art-caption span { color: var(--muted); font-size: .72rem; font-weight: 800; }
.image-number { color: var(--blue) !important; letter-spacing: .08em; }
.question-panel { padding: .25rem 0; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.question-tag { background: var(--lemon); border-color: transparent; color: var(--ink); }
.question-number { color: var(--muted); font-size: .76rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.question-prompt { margin-bottom: 1.35rem; font-size: clamp(1.45rem, 2.7vw, 2rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.23; }
.answers { display: grid; gap: .7rem; }
.answer-button { display: grid; grid-template-columns: 40px 1fr 22px; gap: .8rem; align-items: center; width: 100%; min-height: 62px; padding: .62rem .85rem; border: 1.5px solid var(--line); border-radius: 16px; background: rgba(255,254,251,.9); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.answer-button:hover:not(:disabled) { border-color: var(--blue); background: #fff; transform: translateX(3px); }
.answer-letter { display: grid; width: 38px; aspect-ratio: 1; place-items: center; border-radius: 12px; background: var(--lilac); color: var(--blue-dark); font-weight: 950; }
.answer-copy { font-size: .94rem; font-weight: 800; line-height: 1.35; }
.answer-icon { visibility: hidden; font-size: 1.1rem; font-weight: 950; }
.answer-button:disabled { cursor: default; }
.answer-button.is-correct { border-color: var(--green); background: #e9f8f0; }
.answer-button.is-correct .answer-letter { background: #c6eedb; color: #075b3c; }
.answer-button.is-correct .answer-icon { visibility: visible; color: var(--green); }
.answer-button.is-wrong { border-color: var(--red); background: #fff0eb; }
.answer-button.is-wrong .answer-letter { background: #ffd9cc; color: #963a28; }
.answer-button.is-wrong .answer-icon { visibility: visible; color: var(--red); }
.answer-button.is-reveal { border-color: var(--green); }
.answer-button.is-reveal .answer-icon { visibility: visible; color: var(--green); }
.answer-feedback { margin-top: 1rem; padding: 1rem 1.1rem; border-left: 5px solid var(--blue); border-radius: 0 15px 15px 0; background: #e9ebff; }
.answer-feedback.is-right { border-color: var(--green); background: #e9f8f0; }
.answer-feedback.is-wrong { border-color: var(--orange); background: #fff0e8; }
.feedback-title { margin: 0 0 .3rem; font-weight: 950; }
.feedback-copy { margin: 0; color: #414967; font-size: .91rem; line-height: 1.55; }
.next-row { display: flex; justify-content: flex-end; margin-top: 1rem; }
.next-button { min-width: 190px; min-height: 48px; border-radius: 13px; background: var(--blue); color: #fff; }
.next-button:hover { background: var(--blue-dark); }
.next-button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 3px 4px 0 var(--ink); }
.quiz-footnote { margin: 1.2rem 0 0; color: #7b8097; font-size: .74rem; text-align: center; }
.results-wrap { width: min(840px, calc(100% - 36px)); margin: 3rem auto 4rem; }
.result-card { padding: clamp(1.5rem, 5vw, 3.2rem); border: 3px solid var(--ink); border-radius: 32px; background: var(--paper); box-shadow: 8px 9px 0 var(--ink); text-align: center; }
.result-confetti { margin-bottom: .6rem; color: var(--orange); font-size: 2rem; letter-spacing: .35em; }
.result-card h1 { margin-bottom: .65rem; font-family: Impact, Haettenschweiler, sans-serif; font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 500; line-height: .98; text-transform: uppercase; }
.result-message { max-width: 48ch; margin: 0 auto 1.6rem; color: var(--muted); line-height: 1.6; }
.result-score { display: flex; align-items: baseline; justify-content: center; gap: .4rem; margin: .3rem 0 1.2rem; color: var(--blue); font-family: Impact, Haettenschweiler, sans-serif; }
.result-score strong { font-size: clamp(4.5rem, 12vw, 7.5rem); font-weight: 500; line-height: 1; }
.result-score span { color: var(--muted); font-size: 1.5rem; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }
.secondary-button { background: var(--mint); }
.review { margin-top: 1.5rem; text-align: left; }
.review summary { padding: 1rem; border-radius: 14px; background: #f1f2ff; cursor: pointer; font-weight: 900; }
.review-list { display: grid; gap: .7rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.review-item { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.review-item strong { display: block; margin-bottom: .4rem; font-size: .91rem; line-height: 1.4; }
.review-item p { margin: .2rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.result-footer { margin-top: 1.2rem; color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) {
  .page-wrap { width: min(100% - 26px, 560px); }
  .topbar { min-height: 68px; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; min-height: unset; padding: 1.6rem 1.35rem 2rem; border-radius: 26px; box-shadow: 5px 6px 0 var(--ink); }
  .hero h1 { max-width: 10ch; font-size: clamp(3.25rem, 15vw, 5.1rem); }
  .hero-copy > p { font-size: .96rem; }
  .hero-art { width: min(76%, 270px); }
  .art-sticker { right: -18px; width: 78px; }
  .home-lower { grid-template-columns: 1fr; margin-top: 1.4rem; }
  .quiz-topbar { grid-template-columns: 1fr auto; gap: .7rem; padding: .35rem 0; }
  .quiz-topbar .brand { grid-column: 1; grid-row: 1; }
  .quiz-topbar .progress-area { grid-column: 1 / -1; grid-row: 2; }
  .quiz-topbar .quiz-header-tools { grid-column: 2; grid-row: 1; }
  .quiz-main { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 1rem; }
  .question-art { position: relative; top: auto; width: min(100%, 410px); justify-self: center; padding: .6rem; border-radius: 22px; box-shadow: 4px 5px 0 var(--ink); }
  .question-art img { border-radius: 15px; }
  .question-panel { padding: 0 .1rem; }
  .question-prompt { font-size: clamp(1.35rem, 6vw, 1.8rem); }
  .answer-button { min-height: 58px; }
  .results-wrap { width: min(100% - 26px, 560px); margin-top: 1.5rem; }
}
@media (max-width: 390px) {
  .brand { font-size: .78rem; }
  .local-pill { padding: .4rem .58rem; font-size: .68rem; }
  .hero-action-row { align-items: flex-start; flex-direction: column; }
  .answer-button { grid-template-columns: 34px 1fr 18px; gap: .6rem; padding: .55rem .65rem; }
  .answer-letter { width: 34px; }
}

.review-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 1rem; align-items: start; }
.review-item > img { display: block; width: 104px; aspect-ratio: 1; object-fit: contain; border-radius: 13px; background: var(--lilac); }
.review-item .question-tag { display: table; margin: 0 0 .65rem; }
.review-item strong { line-height: 1.5; }
.load-error { width: min(560px, calc(100% - 32px)); margin: 12vh auto; padding: 2rem; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: 6px 7px 0 var(--ink); }
.load-error h1 { font-family: Impact, Haettenschweiler, sans-serif; font-size: 2.3rem; font-weight: 500; text-transform: uppercase; }
.load-error p { color: var(--muted); line-height: 1.6; }
.load-error code { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .review-item { grid-template-columns: 1fr; }
  .review-item > img { width: min(100%, 220px); justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Master prototype direction: a tall paper quiz card with a cobalt masthead. */
body {
  background:
    radial-gradient(circle at 15% 18%, rgba(222, 220, 255, .58), transparent 16rem),
    radial-gradient(circle at 92% 72%, rgba(169, 241, 223, .24), transparent 18rem),
    #efefff;
}
.page-wrap, .results-wrap {
  width: min(520px, calc(100% - 28px));
  min-height: 100svh;
  padding: 0 18px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 32, 68, .022) .55px, transparent .7px);
  background-size: 5px 5px;
  box-shadow: 0 0 50px rgba(35, 47, 138, .09);
}
.topbar, .quiz-topbar {
  position: relative;
  z-index: 1;
  min-height: 74px;
  margin: 0 -18px 1.2rem;
  padding: .65rem 18px .95rem;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 91%, 92% 96%, 82% 91%, 70% 100%, 58% 92%, 46% 98%, 32% 91%, 20% 97%, 10% 91%, 0 96%);
}
.topbar .brand, .quiz-topbar .brand { position: relative; z-index: 1; color: #fff; }
.topbar .brand-mark, .quiz-topbar .brand-mark {
  box-shadow: 2px 3px 0 var(--ink);
}
.topbar .local-pill, .quiz-topbar .local-pill {
  position: relative;
  z-index: 1;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.94);
  color: var(--ink);
}
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 0;
  padding: .35rem 0 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.hero::before { display: none; }
.hero-copy { display: contents; }
.hero .eyebrow { grid-row: 1; color: var(--blue); }
.hero h1 {
  grid-row: 2;
  max-width: 11ch;
  margin-bottom: .7rem;
  color: var(--ink);
  font-size: clamp(2.9rem, 11vw, 4.15rem);
  line-height: .96;
  text-transform: none;
}
.hero h1 span {
  display: inline-block;
  padding: 0 .1em .035em;
  background: var(--lemon);
  color: var(--ink);
  clip-path: polygon(1% 5%, 99% 0, 100% 92%, 3% 100%);
}
.hero-copy > p { grid-row: 3; margin-bottom: .8rem; color: var(--muted); font-size: .97rem; }
.hero-art {
  grid-row: 4;
  width: 100%;
  max-width: none;
  margin: .25rem 0 .8rem;
  transform: none;
}
.hero-art img {
  width: 100%;
  aspect-ratio: 1.13;
  object-fit: contain;
  border: 0;
  border-radius: 18px;
  background: var(--mint);
  box-shadow: none;
}
.art-sticker { right: 8px; bottom: 4px; width: 76px; box-shadow: 2px 3px 0 var(--ink); }
.hero-action-row {
  grid-row: 5;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: .65rem;
  margin: .1rem 0 1.1rem;
}
.hero-action-row .primary-button { width: 100%; min-height: 58px; border-radius: 16px; }
.hero-note {
  justify-self: center;
  padding: .38rem .75rem;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--ink);
  font-size: .77rem;
}
.hero-action-row .secondary-button { width: 100%; }
.home-lower { grid-template-columns: 1fr; gap: .7rem; margin: .7rem 0 1.3rem; }
.info-card, .best-card { padding: 1rem; border-radius: 16px; box-shadow: none; }
.info-card h2, .best-card h2 { font-size: .93rem; }
.info-card p, .best-card p { font-size: .82rem; }
.best-value { font-size: 2.4rem; }
.home-footer { padding: 0 0 1.2rem; font-size: .7rem; }
.quiz-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .4rem .7rem;
  min-height: 112px;
  padding-top: .65rem;
  padding-bottom: 1.05rem;
}
.quiz-topbar .brand { grid-column: 1; grid-row: 1; }
.quiz-topbar .progress-area { grid-column: 1 / -1; grid-row: 2; }
.quiz-topbar .leave-button { grid-column: 2; grid-row: 1; }
.progress-labels { color: rgba(255,255,255,.95); }
.progress-track { background: rgba(255,255,255,.3); }
.progress-fill { background: var(--lemon); }
.leave-button { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.95); }
.quiz-main { display: block; padding: .4rem 0 2rem; }
.question-art {
  position: relative;
  top: auto;
  width: 100%;
  margin: 0 0 1.15rem;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 4px 0 rgba(23,32,68,.06);
  transform: none;
}
.question-art img { aspect-ratio: 1; border-radius: 15px; }
.art-caption { padding: .55rem .25rem .1rem; }
.question-meta { margin-bottom: .75rem; }
.question-prompt { font-size: clamp(1.35rem, 6vw, 1.8rem); }
.answer-button {
  min-height: 57px;
  padding: .55rem .65rem;
  border-color: #d7d9e9;
  border-radius: 13px;
  background: rgba(255,255,255,.92);
}
.answer-letter { border-radius: 10px; }
.next-button { width: 100%; background: var(--lemon); color: var(--ink); }
.next-button:hover { background: #f3d94f; }
.quiz-footnote { margin-bottom: .5rem; }
.results-wrap { margin: 0 auto; padding-bottom: 2rem; }
.result-card {
  padding: 1rem 0 1.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.result-mascot { display: grid; place-items: center; margin: .2rem 0 .5rem; }
.result-mascot img { width: 78px; height: 78px; border: 3px solid var(--paper); border-radius: 23px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.result-confetti { margin-bottom: .3rem; font-size: 1.3rem; }
.result-card .eyebrow { color: var(--blue); }
.result-card h1 { font-size: clamp(2.8rem, 10vw, 4.1rem); text-transform: none; }
.result-score strong { font-size: clamp(4.8rem, 15vw, 7rem); }
.result-actions { display: grid; grid-template-columns: 1fr; }
.result-actions .primary-button, .result-actions .secondary-button { width: 100%; }
.review summary { border: 1px solid var(--line); background: #f4f2ff; }
@media (min-width: 761px) {
  .page-wrap, .results-wrap { margin-top: 1rem; margin-bottom: 1rem; border-radius: 24px; overflow: hidden; }
  .hero { padding-top: .7rem; }
}
@media (max-width: 390px) {
  .page-wrap, .results-wrap { width: calc(100% - 18px); padding-right: 13px; padding-left: 13px; }
  .topbar, .quiz-topbar { margin-right: -13px; margin-left: -13px; padding-right: 13px; padding-left: 13px; }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 3.4rem); }
}

.selection-card, .resume-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fffefb;
}
.selection-card { margin-bottom: .7rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.section-heading .eyebrow { margin-bottom: .35rem; color: var(--blue); font-size: .65rem; }
.section-heading h2, .resume-card h2 { margin-bottom: .2rem; font-size: 1.05rem; }
.match-count { color: var(--muted); font-size: .72rem; font-weight: 800; text-align: right; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin: .85rem 0; }
.filter-grid label { display: grid; gap: .35rem; color: var(--muted); font-size: .73rem; font-weight: 800; }
.filter-grid select { width: 100%; min-height: 44px; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; font-size: .79rem; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-bottom: .7rem; padding: .25rem; border-radius: 13px; background: #f1f1ff; }
.mode-tabs button { min-height: 42px; padding: .45rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: .76rem; font-weight: 850; }
.mode-tabs button.is-selected { background: var(--blue); color: #fff; box-shadow: 0 2px 5px rgba(23,32,68,.18); }
.start-button { width: 100%; min-height: 49px; border-radius: 12px; }
.start-button:disabled { opacity: .5; cursor: not-allowed; }
.selection-note { margin: .65rem 0 0; color: var(--muted); font-size: .72rem; text-align: center; }
.resume-card { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: .7rem 0; background: #f1fff9; }
.resume-card .question-tag { padding: .28rem .55rem; font-size: .65rem; }
.resume-card h2 { margin-top: .45rem; }
.resume-card p { margin: 0; color: var(--muted); font-size: .76rem; }
.resume-card .secondary-button { flex: 0 0 auto; min-height: 42px; padding: .55rem .75rem; font-size: .78rem; }
.answer-button.is-eliminated { border-style: dashed; background: #f2f2f4; color: #777d8f; text-decoration: line-through; opacity: .68; }
.answer-button.is-eliminated .answer-letter { background: #e1e2e7; color: #686d7a; }
.answer-button.is-eliminated .answer-icon { visibility: visible; color: #8f5360; }
.reward-offer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: .8rem; padding: .75rem; border: 1px solid #ead986; border-radius: 13px; background: #fff9d9; }
.reward-offer > div { display: grid; gap: .2rem; }
.reward-offer strong { font-size: .78rem; }
.reward-offer span { color: #60637b; font-size: .69rem; line-height: 1.35; }
.reward-offer button { min-height: 40px; flex: 0 0 auto; padding: .45rem .65rem; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--lemon); color: var(--ink); cursor: pointer; font-size: .72rem; font-weight: 900; }
.ad-dialog-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(15, 21, 55, .68); }
.ad-dialog { width: min(420px, 100%); padding: 1.35rem; border: 2px solid var(--ink); border-radius: 20px; background: var(--paper); box-shadow: 6px 7px 0 var(--ink); }
.ad-dialog h2 { margin: .8rem 0 .45rem; font-size: 1.35rem; line-height: 1.15; }
.ad-dialog p { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.dialog-actions { display: grid; gap: .6rem; }
.dialog-actions button { width: 100%; min-height: 48px; }
.toast { position: fixed; z-index: 30; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); left: 1rem; width: min(480px, calc(100% - 2rem)); margin: auto; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: .82rem; line-height: 1.45; text-align: center; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; margin-top: .7rem; font-size: .78rem; }
.legal-links a, .legal-links button { min-height: 36px; padding: .45rem .6rem; border: 0; border-radius: 9px; background: transparent; color: var(--blue); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.legal-links a:focus-visible, .legal-links button:focus-visible { outline: 3px solid #f0c84a; outline-offset: 2px; }
.home-footer > p { margin: 0; }
.native-ad-choices[hidden] { display: none; }
html.ad-playing { overflow: hidden; }
html.ad-playing #app,
html.ad-request-pending #app { pointer-events: none; user-select: none; }
@media (max-width: 390px) {
  .resume-card { align-items: flex-start; flex-direction: column; }
  .resume-card .secondary-button { width: 100%; }
  .reward-offer { align-items: stretch; flex-direction: column; }
}
