@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.9ef356ea553a.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.ada540c0e24a.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 106.25%;
  line-height: 1.5;
  color: #203341;
  background: #f8f7f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #203341;
  --muted: #50616b;
  --teal: #176473;
  --teal-dark: #104c58;
  --teal-soft: #e7f1ef;
  --paper: #f8f7f2;
  --line: #d8ddd9;
  --gold: #e8bb55;
  --error: #a33131;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 280px; min-height: 100vh; margin: 0; background: var(--paper); }
a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #bd6531; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 1.2em; height: 1.2em; flex: none; vertical-align: -.18em; }
.skip-link { position: absolute; top: 8px; left: -9999px; z-index: 10; padding: 10px 16px; border-radius: var(--radius-sm); background: #fff; }
.skip-link:focus { left: 8px; }
.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }

.site-header { border-top: 4px solid var(--teal); border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif; font-size: 1.24rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand strong { color: var(--teal); font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--radius-sm); background: var(--teal); color: #fff; }
.brand-mark .icon { width: 22px; height: 22px; }
.header-nav { display: flex; align-items: center; gap: var(--space-2); }
.header-link { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; text-decoration: none; }
.header-link:hover { background: var(--teal-soft); }
.main-content { min-height: calc(100vh - 152px); padding: var(--space-8) 0 var(--space-16); }
.site-footer { padding: var(--space-6) 0; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); }
.footer-brand { color: var(--ink); font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; }

h1, h2, h3 { margin: 0 0 .55em; color: var(--ink); font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif; font-weight: 700; line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
p { margin: .4em 0 1em; }
.lead { max-width: 65ch; color: var(--muted); font-size: 1.08rem; }
.eyebrow { margin: 0 0 var(--space-2); color: var(--teal-dark); font-size: .87rem; font-weight: 700; letter-spacing: 0; }
.eyebrow-light { color: #eaf5f3; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); color: var(--muted); font-size: .9rem; }
.breadcrumb a { min-height: 28px; }
.muted, .small-note, .hint { color: var(--muted); }
.small-note { margin-top: var(--space-6); font-size: .91rem; }

.home-intro { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); margin-bottom: var(--space-12); padding: var(--space-6) 0 var(--space-8); border-bottom: 3px solid var(--teal); }
.home-intro-copy { max-width: 690px; }
.home-overline { margin: 0 0 var(--space-3); color: var(--teal-dark); font-size: .85rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.home-overline span { margin: 0 var(--space-2); color: #a47533; }
.home-intro h1 { max-width: 16ch; margin-bottom: var(--space-4); font-size: clamp(2.45rem, 6vw, 4.15rem); line-height: 1.06; }
.home-intro-copy > p:not(.home-overline) { max-width: 59ch; margin-bottom: var(--space-6); color: var(--muted); font-size: 1.09rem; }
.home-jump { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; color: var(--teal-dark); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }
.home-jump:hover { gap: var(--space-3); }
.home-date { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 190px; min-height: 174px; flex: none; padding: var(--space-6); border: 1px solid #b89b55; background: #f7dd92; box-shadow: 6px 6px 0 #1b6570; color: var(--ink); transform: rotate(3deg); }
.home-date-label { color: #65511f; font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.home-date strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 4rem; line-height: 1; font-weight: 700; }
.home-date span:last-child { font-size: .94rem; font-weight: 600; }
.activity-board { scroll-margin-top: var(--space-6); }
.board-header { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 2px solid var(--ink); }
.board-label { margin: 0 0 var(--space-1); color: var(--teal-dark); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.board-header h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.board-count { padding: 4px 10px; border-radius: var(--radius-sm); background: var(--teal-soft); color: var(--teal-dark); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: var(--space-6); padding: var(--space-6) var(--space-3); border-bottom: 1px solid var(--line); background: #fff; }
.activity-item:nth-child(even) { background: #f2f6f3; }
.activity-number { align-self: start; display: grid; place-items: center; width: 54px; height: 54px; background: #f4d38b; color: #513b18; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.25rem; font-weight: 700; }
.activity-item:nth-child(even) .activity-number { background: #c8e0d7; color: #124d50; }
.activity-type { margin: 0 0 var(--space-1); color: var(--teal-dark); font-size: .85rem; font-weight: 700; }
.activity-type span { margin: 0 3px; color: var(--muted); }
.activity-main h3 { margin-bottom: var(--space-2); font-size: clamp(1.3rem, 3vw, 1.6rem); overflow-wrap: anywhere; }
.activity-description { max-width: 65ch; margin: 0 0 var(--space-3); color: var(--muted); }
.activity-due { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: #4c5e65; font-size: .88rem; }
.activity-due .icon { width: 17px; height: 17px; }
.activity-open { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 46px; padding: 8px 12px; border: 1px solid var(--teal); border-radius: var(--radius-sm); color: var(--teal-dark); font-size: .94rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.activity-open:hover { background: var(--teal); color: #fff; }
.activity-open .icon { width: 18px; height: 18px; }
.board-empty { display: flex; align-items: center; gap: var(--space-4); min-height: 170px; padding: var(--space-8) var(--space-4); border-bottom: 1px solid var(--line); background: #fff; }
.board-empty-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: none; background: #f4d38b; color: #513b18; }
.board-empty-icon .icon { width: 30px; height: 30px; }
.board-empty h3 { margin-bottom: var(--space-2); }
.board-empty p { max-width: 56ch; margin: 0; color: var(--muted); }
.section-heading { margin-bottom: var(--space-6); scroll-margin-top: var(--space-6); }
.section-heading h2 { margin: 0; }

.card { margin-bottom: var(--space-4); padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 2px 8px rgba(32, 51, 65, .045); }
.card p:last-child { margin-bottom: 0; }
.narrow { max-width: 740px; margin-inline: auto; }
.activity-meta { display: flex; align-items: flex-start; gap: var(--space-2); margin: auto 0 var(--space-4); color: var(--muted); font-size: .89rem; }
.activity-meta .icon { margin-top: .1em; }
.tip-strip { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); padding: var(--space-4) 0; color: #264d4c; }
.tip-strip p { margin: 0; }
.tip-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; color: var(--teal); }
.tip-icon .icon { width: 22px; height: 22px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 50px; padding: 11px 19px; border: 1px solid var(--teal); border-radius: var(--radius-sm); background: var(--teal); color: #fff; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.2; }
.button .icon { width: 19px; height: 19px; }
.button:hover { border-color: var(--teal-dark); background: var(--teal-dark); color: #fff; }
.button:disabled:hover { border-color: var(--teal); background: var(--teal); }
.button-secondary { border-color: #91b1b6; background: #fff; color: var(--teal-dark); }
.button-secondary:hover { border-color: var(--teal-dark); background: var(--teal-soft); color: var(--teal-dark); }
.button-wide { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.button-row .button:last-child { flex: 1; }
.field { margin: var(--space-6) 0; }
.field label { display: block; margin-bottom: var(--space-2); font-weight: 700; }
.field input { width: 100%; max-width: 510px; min-height: 50px; padding: 10px 13px; border: 1px solid #82959a; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--teal); }
.field-error input { border: 2px solid var(--error); }
.hint { margin: 0 0 var(--space-2); font-size: .94rem; }
.error-text { margin: var(--space-2) 0; color: var(--error); font-weight: 600; }
.error-summary { margin: var(--space-4) 0; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--error); background: #fff0ed; color: #862a2a; }
.notice { margin: var(--space-6) 0; padding: var(--space-4); border-left: 3px solid #bb842d; background: #fff7e6; color: #4b3b23; }
.notice-error { border-left-color: var(--error); background: #fff0ed; color: #862a2a; }
.notice-success { border-left-color: #327953; background: #ebf6ed; color: #235039; }
.notice p:last-child { margin-bottom: 0; }
.instructions { margin: var(--space-6) 0; padding: var(--space-4); border-left: 3px solid var(--teal); background: var(--teal-soft); }
.instructions p:last-child { margin-bottom: 0; }
.recovery-note { border-left-color: #327953; background: #ebf6ed; color: #244d3b; }
.recovery-details { max-width: 740px; margin: 0 auto var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .91rem; }
.recovery-details summary { min-height: 40px; color: var(--teal-dark); font-weight: 700; cursor: pointer; }
.recovery-details p { margin: var(--space-2) 0; }
.recovery-details .recovery-code { color: var(--teal-dark); }
.recovery-copy { min-height: 40px; padding: 8px 12px; font-size: .9rem; }
.recovery-save-status { color: #315c4c; font-size: .86rem; }
.recovery-code { margin: var(--space-3) 0; color: var(--teal-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(1rem, 4.4vw, 1.24rem); font-weight: 700; letter-spacing: .025em; overflow-wrap: anywhere; }

.quiz-start-card { padding: 0; overflow: hidden; }
.quiz-start-card > :not(.quiz-cover) { margin-left: var(--space-8); margin-right: var(--space-8); }
.quiz-start-card > :last-child { margin-bottom: var(--space-8); }
.quiz-cover { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 174px; padding: var(--space-8); border-bottom: 2px solid var(--teal); background: #eaf1ed; color: var(--ink); }
.quiz-cover h1 { max-width: 540px; margin: 0 0 var(--space-2); color: var(--ink); font-size: clamp(2rem, 4.5vw, 2.75rem); overflow-wrap: anywhere; }
.quiz-cover p:last-child { max-width: 56ch; margin-bottom: 0; color: var(--muted); }
.quiz-cover .eyebrow-light { color: var(--teal-dark); }
.quiz-cover-symbol { display: grid; place-items: center; width: 62px; height: 62px; flex: none; border: 1px solid #af9b65; border-radius: var(--radius-sm); background: #f4d38b; color: #513b18; }
.quiz-cover-symbol .icon { width: 36px; height: 36px; }
.step-list { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); padding: 0 0 var(--space-6); border-bottom: 1px solid var(--line); font-size: .91rem; font-weight: 600; }
.step-list span { display: inline-flex; align-items: center; gap: var(--space-2); }
.step-list b { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: var(--radius-sm); background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; }

.question-card { border-top: 3px solid var(--teal); }
.question-topline { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-6); }
.question-kicker { color: var(--teal-dark); font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.question-count { flex: none; font-size: .91rem; font-weight: 700; }
.progress-label { display: flex; justify-content: space-between; gap: var(--space-3); color: var(--muted); font-size: .85rem; }
progress { display: block; width: 100%; height: 10px; margin: var(--space-2) 0 var(--space-8); overflow: hidden; border: 0; border-radius: var(--radius-sm); background: #dfe9e6; accent-color: var(--teal); }
progress::-webkit-progress-bar { background: #dfe9e6; }
progress::-webkit-progress-value { background: var(--teal); }
progress::-moz-progress-bar { background: var(--teal); }
.question-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.question-card legend { width: 100%; padding: 0; }
.question-card legend h1 { margin: 0; font-size: clamp(1.55rem, 3.7vw, 2.1rem); line-height: 1.24; overflow-wrap: anywhere; }
.question-hint { margin: var(--space-3) 0 0; color: var(--muted); }
.options { display: grid; gap: var(--space-3); margin: var(--space-6) 0; counter-reset: answer; }
.option { display: flex; align-items: center; gap: var(--space-3); min-height: 68px; padding: var(--space-3) var(--space-4); border: 1px solid #bfcac8; border-radius: var(--radius-md); background: #fff; color: var(--ink); cursor: pointer; counter-increment: answer; }
.option:hover { border-color: var(--teal); }
.option:focus-within { outline: 3px solid #bd6531; outline-offset: 2px; }
.option:has(input:checked) { border: 2px solid var(--teal); background: #edf5f2; }
.option input { order: 3; width: 21px; height: 21px; flex: none; margin-left: auto; accent-color: var(--teal); }
.option-marker { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border: 1px solid #c8dcda; border-radius: var(--radius-sm); background: #edf5f2; color: var(--teal-dark); font-weight: 700; }
.option-marker::before { content: counter(answer, upper-alpha); }
.option input:checked ~ .option-marker { border-color: var(--teal); background: var(--teal); color: #fff; }
.option-text { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.save-status { min-height: 24px; margin-bottom: var(--space-2); color: #315c4c; font-size: .94rem; }

.review-header { display: flex; align-items: center; gap: var(--space-4); }
.review-header h1 { margin-bottom: var(--space-1); }
.review-header p:last-child { margin: 0; color: var(--muted); }
.review-icon { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border: 1px solid #b9d8d4; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--teal); }
.review-icon .icon { width: 28px; height: 28px; }
.review-list { list-style: none; margin: var(--space-8) 0; padding: 0; border-top: 1px solid var(--line); }
.review-list li { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.review-list li.review-missing { background: #fffaf0; }
.review-list li > div { flex: 1; min-width: 0; }
.review-list strong { overflow-wrap: anywhere; }
.review-list p { margin: var(--space-1) 0 0; color: var(--muted); }
.review-list a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; white-space: nowrap; }
.review-number { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: var(--radius-sm); background: var(--teal-soft); color: var(--teal-dark); font-size: .85rem; font-weight: 700; }

.result-card { text-align: center; }
.result-celebration { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto var(--space-4); border: 1px solid #dec07c; border-radius: var(--radius-md); background: #fff5da; color: #956121; }
.result-celebration .icon { width: 34px; height: 34px; }
.result-card h1 { max-width: 600px; margin-inline: auto; }
.result-card > p:not(.eyebrow):not(.reference) { color: var(--muted); }
.result-score { display: grid; gap: var(--space-1); place-items: center; margin: var(--space-6) 0; padding: var(--space-6); border: 1px solid #c5dbd5; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--teal-dark); }
.result-score strong { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(2.7rem, 8vw, 4rem); font-weight: 700; line-height: 1.1; }
.result-score-label { font-size: .9rem; font-weight: 600; }
.rank-callout { padding: var(--space-3) var(--space-4); border-left: 3px solid var(--gold); background: #fff9e9; color: var(--ink) !important; }
.rank-callout strong { color: var(--teal-dark); }
.result-time { margin: var(--space-4) 0; color: var(--muted); }
.result-time strong { color: var(--ink); }
.reference { margin-top: var(--space-6); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.result-card .recovery-note { text-align: left; }
.ranking-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-6); }
.ranking-header h1 { margin-bottom: var(--space-2); }
.ranking-header p:last-child { max-width: 65ch; margin: 0; color: var(--muted); }
.ranking-own { display: grid; place-items: center; min-width: 104px; padding: var(--space-3); border: 1px solid #c5dbd5; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--teal-dark); text-align: center; white-space: nowrap; }
.ranking-own span { font-size: .82rem; }
.ranking-own strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.9rem; font-weight: 700; line-height: 1.15; }
.ranking-refresh { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); font-size: .9rem; }
.ranking-refresh p { margin: 0; color: var(--muted); }
.ranking-refresh a { min-height: 32px; font-weight: 700; }
.rank-position { display: inline-grid; place-items: center; min-width: 38px; min-height: 34px; padding: 4px; border-radius: var(--radius-sm); background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; }
.recover-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-4); border: 1px solid #b9d8d4; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--teal); }
.recover-icon .icon { width: 30px; height: 30px; }

.table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { width: 100%; min-width: 440px; border-collapse: collapse; text-align: left; }
th, td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: #f1f5f3; color: var(--teal-dark); font-size: .87rem; font-weight: 700; }
td { overflow-wrap: anywhere; }
.my-row { background: #fff9e9; }
.badge { display: inline-block; margin-left: 4px; padding: 2px 6px; border-radius: var(--radius-sm); background: var(--teal-soft); color: var(--teal-dark); font-size: .76rem; font-weight: 600; }
.dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.filter-form { display: flex; align-items: end; gap: var(--space-4); flex-wrap: wrap; }
.filter-form .field { margin: 0; }
.filter-form .field input { width: 180px; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: var(--space-3); margin: var(--space-4) 0 var(--space-6); }
.metric { padding: var(--space-4); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--radius-md); background: #fff; }
.metric span { display: block; min-height: 42px; color: var(--muted); font-size: .86rem; }
.metric strong { display: block; color: var(--ink); font-family: "Bricolage Grotesque", sans-serif; font-size: 1.55rem; font-weight: 700; }
.dashboard-columns { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-4); }

@media (max-width: 760px) {
  .dashboard-columns { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, 1080px); }
  .main-content { padding-top: var(--space-6); }
  .home-intro { align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-8); padding-top: var(--space-2); }
  .home-intro h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .home-date { width: 118px; min-height: 126px; padding: var(--space-3); box-shadow: 4px 4px 0 #1b6570; }
  .home-date strong { font-size: 2.75rem; }
  .home-date span:last-child { font-size: .76rem; }
  .activity-item { grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) var(--space-2); }
  .activity-number { width: 42px; height: 42px; font-size: 1rem; }
  .activity-open { grid-column: 2; justify-self: start; }
  .card { padding: var(--space-6); }
  .quiz-start-card { padding: 0; }
  .quiz-start-card > :not(.quiz-cover) { margin-left: var(--space-6); margin-right: var(--space-6); }
  .quiz-cover { padding: var(--space-6); }
  .button-row .button { flex: 1; }
  .progress-label span:last-child { display: none; }
  .filter-form .field, .filter-form .field input, .filter-form .button { width: 100%; }
}
@media (max-width: 410px) {
  .home-intro { flex-wrap: wrap; }
  .home-date { width: auto; min-height: auto; flex-direction: row; align-items: baseline; gap: var(--space-2); padding: var(--space-2) var(--space-3); transform: rotate(0); }
  .home-date strong { font-size: 1.7rem; }
  .board-header { align-items: flex-start; flex-wrap: wrap; }
  .header-inner { min-height: 62px; gap: var(--space-1); }
  .brand { gap: var(--space-2); font-size: 1.03rem; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-mark .icon { width: 19px; height: 19px; }
  .header-nav { gap: 0; }
  .header-link { padding: 8px; font-size: .86rem; }
  .quiz-cover-symbol { width: 48px; height: 48px; }
  .quiz-cover-symbol .icon { width: 29px; height: 29px; }
  .step-list { flex-wrap: wrap; justify-content: flex-start; }
  .review-header { align-items: flex-start; }
  .review-list li { flex-wrap: wrap; }
  .review-list li > div { flex-basis: calc(100% - 40px); }
  .review-list a { margin-left: 40px; }
  .ranking-header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 340px) { .header-nav .header-link:first-child { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Student game flow */
.home-intro { justify-content: flex-start; gap: var(--space-4); margin-bottom: var(--space-6); padding: var(--space-3) 0; border: 0; }
.home-intro-mark { display: grid; place-items: center; width: 64px; height: 64px; flex: none; background: #f4d05c; color: #263238; transform: rotate(-5deg); }
.home-intro-mark .icon { width: 34px; height: 34px; }
.home-overline { margin-bottom: var(--space-1); font-size: .78rem; }
.home-intro h1 { max-width: none; margin: 0; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.1; }
.home-intro-copy > p:not(.home-overline) { margin: var(--space-2) 0 0; font-size: 1rem; }
.activity-board { max-width: 820px; }
.board-header { align-items: center; padding-bottom: var(--space-3); border-bottom-width: 2px; }
.board-header h2 { font-size: 1.4rem; }
.activity-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--space-4); min-height: 112px; padding: var(--space-4); border: 1px solid #d9dfdc; border-bottom-width: 2px; border-radius: var(--radius-md); background: #fff; }
.activity-item:nth-child(even) { background: #fff; }
.activity-item + .activity-item { margin-top: var(--space-3); }
.activity-number { display: grid; place-items: center; width: 46px; height: 46px; align-self: start; background: #f4d05c; color: #263238; }
.activity-item:nth-child(even) .activity-number { background: #93d7bd; color: #124b3a; }
.activity-number .icon { width: 24px; height: 24px; }
.activity-main h3 { margin: 0; font-size: 1.25rem; }
.activity-description { margin: var(--space-1) 0; font-size: .94rem; }
.activity-due { margin-top: var(--space-2); font-size: .82rem; }
.activity-open { min-width: 104px; min-height: 48px; border: 0; border-radius: var(--radius-sm); background: #176473; color: #fff; }
.activity-item:nth-child(even) .activity-open { background: #b63e3e; color: #fff; }
.activity-open:hover { filter: brightness(.92); }
.home-save-note { display: flex; align-items: center; gap: var(--space-2); max-width: 820px; margin: var(--space-4) 0 0; color: var(--muted); font-size: .88rem; }
.home-save-note .icon { color: #16754b; }
.board-empty { min-height: 126px; padding: var(--space-5) var(--space-3); }
.student-back { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; margin-bottom: var(--space-3); font-weight: 700; text-decoration: none; }
.student-back .icon { transform: rotate(90deg); }
.quiz-start-card { box-shadow: 0 4px 0 #dae3df; }
.quiz-cover { min-height: 142px; padding: var(--space-6); border-bottom-width: 3px; background: #e1f3ec; }
.quiz-cover .eyebrow-light { margin-bottom: var(--space-1); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.quiz-cover h1 { font-size: clamp(1.8rem, 5vw, 2.45rem); }
.quiz-cover-symbol { width: 52px; height: 52px; }
.quiz-cover-symbol .icon { width: 30px; height: 30px; }
.quiz-start-card > :not(.quiz-cover) { margin-left: var(--space-6); margin-right: var(--space-6); }
.quiz-start-card > :last-child { margin-bottom: var(--space-6); }
.quiz-start-card .activity-meta { margin: var(--space-4) var(--space-6); }
.quiz-start-card .field { margin: var(--space-4) 0; }
.quiz-start-card .field input { max-width: none; }
.game-help { margin: var(--space-4) var(--space-6); color: var(--muted); font-size: .89rem; }
.game-help summary { min-height: 40px; color: var(--teal-dark); font-weight: 700; cursor: pointer; }
.game-help p { margin: var(--space-2) 0; }
.game-start-button { border-color: #b63e3e; background: #c74640; font-size: 1.08rem; }
.game-start-button:hover { border-color: #9e302d; background: #a93632; }
.quiz-playing .main-content { width: min(100% - 24px, 820px); padding-top: var(--space-4); }
.quiz-playing .header-nav, .quiz-playing .site-footer, .quiz-reviewing .site-footer { display: none; }
.quiz-playing .header-inner { min-height: 54px; }
.question-card { padding: clamp(18px, 4vw, 36px); border: 0; border-top: 5px solid #176473; border-radius: var(--radius-md); box-shadow: 0 4px 0 #d9e2de; }
.play-progress { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); color: var(--teal-dark); font-size: .94rem; font-weight: 700; }
.play-progress span:last-child { color: var(--muted); font-size: .84rem; }
.question-card progress { height: 12px; margin: var(--space-2) 0 var(--space-6); border-radius: 20px; background: #e0e8e4; accent-color: #e4b73e; }
.question-card progress::-webkit-progress-bar { border-radius: 20px; background: #e0e8e4; }
.question-card progress::-webkit-progress-value { border-radius: 20px; background: #e4b73e; }
.question-card progress::-moz-progress-bar { border-radius: 20px; background: #e4b73e; }
.question-card legend h1 { max-width: 35ch; font-size: clamp(1.65rem, 4.2vw, 2.25rem); }
.options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-6) 0; }
.option { position: relative; min-height: 82px; padding: var(--space-4); border: 0; border-radius: var(--radius-sm); color: #fff; box-shadow: 0 4px 0 rgba(25, 38, 45, .2); transition: transform .12s ease, filter .12s ease, box-shadow .12s ease; }
.option:nth-child(4n + 1) { background: #bd3939; color: #fff; }
.option:nth-child(4n + 2) { background: #2463a6; color: #fff; }
.option:nth-child(4n + 3) { background: #f2c23f; color: #263238; }
.option:nth-child(4n + 4) { background: #16754b; color: #fff; }
.option:hover { border-color: transparent; filter: brightness(1.05); transform: translateY(-2px); }
.option:has(input:checked) { border: 0; outline: 4px solid #203341; outline-offset: 2px; box-shadow: 0 2px 0 rgba(25, 38, 45, .18); transform: translateY(2px); }
.option:focus-within { outline: 4px solid #203341; outline-offset: 3px; }
.option input { order: 3; width: 24px; height: 24px; margin-left: auto; accent-color: #fff; }
.option-marker { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); color: inherit; }
.option:nth-child(4n + 2) .option-marker { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 7px; }
.option:nth-child(4n + 3) .option-marker { border-radius: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.option:nth-child(4n + 4) .option-marker { border-radius: 2px; }
.option-text { font-size: 1.02rem; font-weight: 700; }
.save-status { min-height: 0; margin: 0; color: var(--teal-dark); font-size: .88rem; }
.button-row { margin-top: var(--space-4); }
.button-row .game-next-button { min-height: 56px; border-color: #176473; background: #176473; font-size: 1.04rem; }
.button-row .button:last-child { flex: 1; }
.quiz-playing .recovery-details { margin-top: var(--space-3); font-size: .86rem; }
.review-card { box-shadow: 0 4px 0 #d9e2de; }
.review-header { margin-bottom: var(--space-5); }
.review-header h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.review-icon { border: 0; background: #f4d05c; color: #263238; }
.review-list { margin: var(--space-4) 0; }
.review-list li { align-items: center; gap: var(--space-3); padding: var(--space-3) 0; }
.review-list li > div { font-size: .92rem; }
.review-list p { margin-top: 2px; }
.review-final-note { margin: var(--space-4) 0; color: var(--muted); font-size: .88rem; }
.result-score { border: 0; background: #fff3cc; color: #533c11; }
.result-score strong { color: #263238; }
.result-score strong small { font-family: "Source Sans 3", sans-serif; font-size: .48em; font-weight: 600; }
.result-reference, .ranking-rules { margin-top: var(--space-4); color: var(--muted); text-align: left; font-size: .88rem; }
.result-reference summary, .ranking-rules summary { min-height: 36px; color: var(--teal-dark); font-weight: 700; cursor: pointer; }
.result-reference p, .ranking-rules p { margin: var(--space-2) 0; }
.ranking-card { padding: clamp(18px, 3vw, 32px); }
.ranking-card table { min-width: 0; }
.ranking-card th, .ranking-card td { padding: var(--space-2) var(--space-3); }
.ranking-header { gap: var(--space-4); }
.ranking-header h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.ranking-header p:last-child { font-size: .92rem; }
.ranking-own { min-width: 78px; border: 0; background: #fff3cc; }
.ranking-refresh { font-size: .82rem; }
@media (max-width: 620px) {
  .home-intro { align-items: center; margin-bottom: var(--space-4); padding: 0; }
  .home-intro h1 { font-size: 2rem; }
  .home-intro-mark { width: 52px; height: 52px; }
  .home-intro-mark .icon { width: 28px; height: 28px; }
  .activity-item { grid-template-columns: 42px minmax(0, 1fr); gap: var(--space-3); min-height: 0; padding: var(--space-3); }
  .activity-number { width: 40px; height: 40px; }
  .activity-open { grid-column: 2; justify-self: start; min-width: 112px; }
  .quiz-start-card > :not(.quiz-cover) { margin-left: var(--space-4); margin-right: var(--space-4); }
  .quiz-start-card .activity-meta { margin-inline: var(--space-4); }
  .game-help { margin-inline: var(--space-4); }
  .options { grid-template-columns: 1fr; gap: var(--space-3); margin: var(--space-5) 0; }
  .option { min-height: 72px; }
  .question-card { padding: var(--space-4); }
  .ranking-header { align-items: center; }
  .ranking-card th, .ranking-card td { padding: 8px 5px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { .option { transition: none; } }

/* Adaptação da identidade visual e dos fluxos mobile do Stitch. */
:root {
  --ink: #131b2e;
  --muted: #475569;
  --teal: #2563eb;
  --teal-dark: #1d4ed8;
  --teal-soft: #dbeafe;
  --paper: #faf8ff;
  --line: #dbe2f8;
  --gold: #f59e0b;
  --error: #ba1a1a;
  --quiz-coral: #b54435;
  --quiz-blue: #315f9d;
  --quiz-amber: #8b6510;
  --quiz-green: #26724c;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  color: var(--ink);
  background: var(--paper);
}

html, body { background: var(--paper); color: var(--ink); }
.site-header { border-top-color: var(--teal); border-bottom-color: #e6edff; }
.brand-mark { background: var(--teal); }
.header-link:hover { background: #eff6ff; }
.student-home .main-content, .quiz-playing .main-content, .quiz-result .main-content, .student-ranking .main-content { width: min(100% - 32px, 660px); padding-top: 24px; }
.student-home .activity-board { max-width: none; }
.home-intro { gap: 16px; margin-bottom: 24px; padding: 8px 0; }
.home-intro-mark { display: grid; place-items: center; border-radius: 16px; background: #dbeafe; color: #1d4ed8; transform: none; }
.home-overline, .board-kicker { margin: 0 0 4px; color: #1d4ed8; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.home-intro h1 { color: var(--ink); font-size: clamp(2rem, 6vw, 2.65rem); }
.home-intro-copy > p:not(.home-overline) { color: var(--muted); }
.resume-section { margin: 0 0 26px; }
.resume-heading, .result-ranking-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.resume-heading h2, .result-ranking-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.24rem; }
.resume-heading h2 .icon { color: var(--teal); }
.resume-heading > span, .result-ranking-heading > span { flex: none; padding: 5px 10px; border-radius: 999px; background: #dbeafe; color: #1e40af; font-size: .8rem; font-weight: 700; }
.resume-list { display: grid; gap: 14px; }
.resume-card { padding: 16px; border: 1px solid #dbeafe; border-radius: 16px; background: #fff; box-shadow: 0 5px 16px rgba(37, 99, 235, .07); }
.resume-card-top { display: flex; align-items: center; gap: 12px; }
.resume-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: #dbeafe; color: #1d4ed8; }
.resume-title { min-width: 0; flex: 1; }
.resume-title h3 { margin: 0; font-size: 1.12rem; overflow-wrap: anywhere; }
.resume-title p { margin: 3px 0 0; color: var(--muted); font-size: .88rem; }
.resume-percent { color: #2563eb; font-weight: 700; font-variant-numeric: tabular-nums; }
.resume-card progress { height: 10px; margin: 12px 0 16px; border-radius: 999px; background: #e8f0fe; accent-color: var(--teal); }
.resume-card progress::-webkit-progress-bar { border-radius: 999px; background: #e8f0fe; }
.resume-card progress::-webkit-progress-value, .resume-card progress::-moz-progress-bar { border-radius: 999px; background: var(--teal); }
.resume-button { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: #047857; box-shadow: 0 3px 0 #065f46; }
.resume-button:hover { border: 0; background: #065f46; }
.board-header { align-items: end; padding: 0 2px 12px; border-bottom: 1px solid #dbe2f8; }
.board-header h2 { font-size: 1.45rem; }
.board-kicker { margin-bottom: 3px; }
.activity-list { display: grid; gap: 14px; margin-top: 14px; }
.activity-item, .activity-item:nth-child(even) { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; min-height: 0; padding: 16px; border: 1px solid #e4eaff; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(31, 65, 130, .055); }
.activity-item + .activity-item { margin-top: 0; }
.activity-number, .activity-item:nth-child(even) .activity-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #e5edff; color: #2563eb; }
.activity-main { min-width: 0; }
.activity-main h3 { margin: 0; color: var(--ink); font-size: 1.16rem; line-height: 1.25; }
.activity-description { margin: 4px 0 8px; color: var(--muted); font-size: .9rem; }
.activity-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: #475569; font-size: .82rem; }
.activity-facts span { display: inline-flex; align-items: center; gap: 5px; }
.activity-facts .icon { width: 16px; height: 16px; color: #2563eb; }
.activity-open { min-width: 112px; min-height: 46px; padding-inline: 13px; border: 0; border-radius: 11px; background: #2563eb; box-shadow: 0 3px 0 #1d4ed8; color: #fff; }
.activity-open:hover { background: #1d4ed8; color: #fff; }
.activity-completed { background: #f4f8ff !important; }
.activity-completed-link { background: #eff6ff; box-shadow: none; color: #1d4ed8; }
.activity-completed-link:hover { background: #dbeafe; color: #1d4ed8; }
.board-empty { gap: 16px; border: 1px solid #e4eaff; border-radius: 16px; background: #fff; }
.board-empty-icon { display: grid; place-items: center; border-radius: 14px; background: #dbeafe; color: #1d4ed8; }
.home-save-note { margin-top: 16px; }
.home-save-note .icon { color: #059669; }

.quiz-playing .main-content { padding-top: 18px; }
.quiz-playing .site-footer { display: none; }
.quiz-playing .header-nav { display: none; }
.quiz-playing .header-inner { min-height: 56px; }
.quiz-progress-panel { margin: 0 auto 14px; padding: 14px 16px 12px; border: 1px solid #e0e9ff; border-radius: 16px; background: #fff; box-shadow: 0 3px 12px rgba(37, 99, 235, .055); }
.quiz-progress-top, .quiz-progress-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quiz-session-title { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: #475569; font-size: .8rem; font-weight: 700; overflow-wrap: anywhere; }
.quiz-session-title .icon { color: #2563eb; }
.quiz-save-hint { flex: none; color: #047857; font-size: .75rem; font-weight: 700; }
.quiz-progress-label { margin-top: 12px; color: #475569; font-size: .86rem; }
.quiz-progress-label strong, .quiz-progress-label span:last-child { color: #2563eb; font-weight: 700; }
.quiz-progress-panel progress { height: 10px; margin: 7px 0 0; border-radius: 999px; background: #e8f0fe; accent-color: var(--teal); }
.quiz-progress-panel progress::-webkit-progress-bar { border-radius: 999px; background: #e8f0fe; }
.quiz-progress-panel progress::-webkit-progress-value, .quiz-progress-panel progress::-moz-progress-bar { border-radius: 999px; background: var(--teal); }
.question-card { padding: clamp(18px, 4vw, 26px); border: 1px solid #e3eaff; border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(31, 65, 130, .055); }
.question-card legend h1 { max-width: none; color: var(--ink); font-size: clamp(1.45rem, 4.8vw, 1.9rem); line-height: 1.32; }
.question-instruction { margin: 12px 0 0; color: var(--muted); font-size: .91rem; }
.options { grid-template-columns: 1fr; gap: 12px; margin: 20px 0 14px; }
.option { position: relative; gap: 13px; min-height: 68px; padding: 13px 14px; border: 1.5px solid #e0e7ff; border-radius: 13px; background: #fff; color: var(--ink); box-shadow: 0 2px 5px rgba(15, 27, 46, .035); transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease; }
.option:nth-child(n) { background: #fff; color: var(--ink); }
.option:hover { border-color: #9cbcff; background: #f8faff; filter: none; transform: none; }
.option:has(input:checked) { border: 2px solid #2563eb; outline: 0; background: #eff6ff; box-shadow: 0 2px 7px rgba(37, 99, 235, .09); transform: none; }
.option:focus-within { outline: 3px solid #7c3aed; outline-offset: 2px; }
.option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.option-marker { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: #e2e8f8; color: #27395b; font-size: .98rem; }
.option-marker::before { content: counter(answer, upper-alpha); }
.option:nth-child(n) .option-marker { clip-path: none; padding: 0; border-radius: 10px; background: #e2e8f8; color: #27395b; }
.option-text { flex: 1; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.option-selected-mark { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #e2e8f8; color: transparent; }
.option-selected-mark .icon { width: 16px; height: 16px; }
.option:has(input:checked) .option-marker, .option:has(input:checked) .option-selected-mark { background: #2563eb; color: #fff; }
.option:has(input:checked) .option-text { color: #132b5b; font-weight: 700; }
.save-status { min-height: 0; margin: 0; padding: 0; color: #475569; font-size: .86rem; }
.save-status:not(:empty) { margin: 10px 0 0; padding: 9px 11px; border-radius: 9px; background: #eff6ff; color: #1e40af; text-align: left; }
.button-row { gap: 12px; margin-top: 18px; }
.button-row .button:last-child { flex: 1; }
.button-row .game-next-button { min-height: 52px; border: 0; border-radius: 12px; background: #2563eb; box-shadow: 0 3px 0 #1d4ed8; font-size: .98rem; }
.button-row .game-next-button:hover { background: #1d4ed8; }
.button-row .button-secondary { border-color: #dbe2f8; background: #e9efff; color: #1e293b; }
.button-row .button-secondary .icon { transform: rotate(180deg); }
.quiz-playing .recovery-details { margin-top: 14px; }

.result-page { display: grid; gap: 16px; }
.result-hero { padding: 20px 16px 16px; border: 1px solid #deebff; border-radius: 20px; background: #eff6ff; text-align: center; }
.result-celebration { width: 56px; height: 56px; margin: 0 auto 12px; border: 0; border-radius: 16px; background: #2563eb; color: #fff; box-shadow: 0 5px 13px rgba(37, 99, 235, .2); }
.result-celebration .icon { width: 30px; height: 30px; }
.result-hero .eyebrow { margin-bottom: 4px; color: #1d4ed8; }
.result-hero h1 { margin: 0 0 6px; color: var(--ink); font-size: clamp(1.65rem, 5vw, 2.05rem); }
.result-hero > p:last-child { margin: 0; color: var(--muted); }
.result-summary-panel { padding: 16px; border: 1px solid #e3eaff; border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(31, 65, 130, .055); }
.result-score-main { display: flex; align-items: center; gap: 16px; padding: 15px; border: 1px solid #e0e9ff; border-radius: 15px; background: #f2f7ff; }
.result-score-value { display: flex; align-items: baseline; gap: 2px; flex: none; color: #1d4ed8; font-family: "Bricolage Grotesque", sans-serif; }
.result-score-value strong { font-size: 2.45rem; line-height: 1; }
.result-score-value span { color: #475569; font-size: 1rem; font-weight: 700; }
.result-score-copy { display: grid; gap: 3px; min-width: 0; }
.result-score-copy > span { color: #64748b; font-size: .73rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.result-score-copy > strong { color: var(--ink); font-size: 1rem; }
.result-score-copy progress { width: 100%; height: 8px; margin: 3px 0 0; border-radius: 999px; background: #dbeafe; accent-color: #2563eb; }
.result-score-copy progress::-webkit-progress-bar { border-radius: 999px; background: #dbeafe; }
.result-score-copy progress::-webkit-progress-value, .result-score-copy progress::-moz-progress-bar { border-radius: 999px; background: #2563eb; }
.result-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.result-metric { display: grid; justify-items: center; gap: 3px; min-height: 92px; padding: 11px; border: 1px solid #e5edff; border-radius: 14px; background: #f8faff; text-align: center; }
.result-metric-icon { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 2px; border-radius: 50%; background: #dbeafe; color: #2563eb; }
.result-rank-metric .result-metric-icon { background: #fff0c2; color: #9a5b00; }
.result-metric strong { color: var(--ink); font-family: "Bricolage Grotesque", sans-serif; font-size: 1.08rem; }
.result-rank-metric strong { color: #9a5b00; }
.result-metric > span:last-child { color: #64748b; font-size: .75rem; text-transform: uppercase; }
.result-ranking-preview { padding: 4px 0 0; }
.result-ranking-heading { margin-bottom: 12px; }
.result-ranking-heading .eyebrow { margin-bottom: 2px; font-size: .72rem; }
.result-ranking-heading h2 { font-size: 1.25rem; }
.rank-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.rank-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid #e4eaff; border-radius: 14px; background: #fff; box-shadow: 0 2px 7px rgba(31, 65, 130, .04); }
.rank-position { display: inline-grid; place-items: center; width: 38px; height: 38px; min-width: 38px; min-height: 38px; padding: 0; border-radius: 11px; background: #e8efff; color: #33456c; font-size: .9rem; font-weight: 800; }
.rank-position-1 { background: #fff0c2; color: #865500; }
.rank-position-2 { background: #e6ebf3; color: #4b5563; }
.rank-position-3 { background: #f8e3d1; color: #7a4825; }
.rank-person { display: grid; gap: 3px; min-width: 0; flex: 1; }
.rank-person strong { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--ink); font-size: .94rem; overflow-wrap: anywhere; }
.rank-person > span { color: #64748b; font-size: .8rem; }
.rank-you { display: inline-flex; padding: 2px 7px; border-radius: 999px; background: #dbeafe; color: #1e40af; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.rank-card-me { border-color: #2563eb; background: #2563eb; box-shadow: 0 5px 14px rgba(37, 99, 235, .19); }
.rank-card-me .rank-position { background: rgba(255, 255, 255, .2); color: #fff; }
.rank-card-me .rank-person strong, .rank-card-me .rank-person > span { color: #fff; }
.rank-card-me .rank-you { background: #fff; color: #1d4ed8; }
.rank-empty { padding: 15px; border: 1px solid #e4eaff; border-radius: 14px; background: #fff; color: var(--muted); }
.your-rank-label { margin: 14px 0 7px; color: #64748b; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.result-ranking-button { margin-top: 14px; border: 0; border-radius: 12px; background: #2563eb; box-shadow: 0 3px 0 #1d4ed8; }
.result-home-link { display: block; padding: 13px; border: 1px solid #c8dcff; border-radius: 12px; background: #eff6ff; color: #1d4ed8; font-weight: 700; text-align: center; text-decoration: none; }
.result-reference { margin: 0; }
.result-reference summary, .ranking-rules summary { color: #1d4ed8; }

.student-ranking .main-content { padding-top: 14px; }
.student-ranking .student-back { min-height: 40px; margin-bottom: 9px; color: #1d4ed8; }
.student-ranking .student-back .icon { transform: rotate(180deg); }
.ranking-card { padding: 18px; border-color: #e3eaff; border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(31, 65, 130, .055); }
.ranking-header { align-items: flex-start; margin-bottom: 16px; }
.ranking-header .eyebrow { margin-bottom: 3px; color: #1d4ed8; }
.ranking-header h1 { margin-bottom: 5px; font-size: clamp(1.55rem, 5vw, 1.9rem); }
.ranking-header p:last-child { color: var(--muted); font-size: .9rem; }
.ranking-own { min-width: 76px; padding: 9px; border: 1px solid #dbeafe; border-radius: 13px; background: #eff6ff; color: #1d4ed8; }
.ranking-own strong { color: #1d4ed8; font-size: 1.45rem; }
.ranking-list { gap: 10px; }
.ranking-list .rank-card { min-height: 66px; }
.ranking-rules { margin-top: 15px; }
.ranking-refresh { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5edff; }
.ranking-refresh a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; background: #eff6ff; color: #1d4ed8; }

@media (max-width: 620px) {
  .student-home .main-content, .quiz-playing .main-content, .quiz-result .main-content, .student-ranking .main-content { width: min(100% - 24px, 660px); }
  .student-home .main-content { padding-top: 18px; }
  .home-intro-mark { width: 50px; height: 50px; flex: none; }
  .home-intro h1 { font-size: 1.95rem; }
  .resume-card { padding: 14px; }
  .activity-item, .activity-item:nth-child(even) { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 14px; }
  .activity-number, .activity-item:nth-child(even) .activity-number { width: 38px; height: 38px; }
  .activity-main h3 { font-size: 1.04rem; }
  .activity-open { grid-column: 2; justify-self: start; min-width: 126px; }
  .activity-facts { gap: 5px 11px; font-size: .78rem; }
  .question-card { padding: 17px; }
  .quiz-progress-panel { padding: 12px 13px; }
  .option { min-height: 66px; padding: 12px; }
  .result-page { gap: 13px; }
  .result-hero { padding: 17px 12px 14px; }
  .result-summary-panel { padding: 12px; }
  .result-score-main { gap: 12px; padding: 12px; }
  .result-score-value strong { font-size: 2.15rem; }
  .result-metrics { gap: 8px; }
  .result-metric { min-height: 86px; padding: 9px; }
  .ranking-card { padding: 14px; }
  .ranking-header { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .resume-button, .activity-open, .option { transition: none; }
}


/* 0.4.0 — identificação na entrada, avatar e botões azul-escuros */
[hidden] { display: none !important; }
.header-nav { gap: 10px; }
.quiz-playing .header-nav { display: flex; }
.quiz-playing .header-link { display: none; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #1e40af; color: #fff; font-family: "Bricolage Grotesque", sans-serif; font-size: .95rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; box-shadow: 0 2px 6px rgba(30, 64, 175, .25); }
.avatar:hover { background: #1e3a8a; color: #fff; }

.home-intro { display: block; margin-bottom: 20px; padding: 4px 0 0; }
.home-intro h1 { margin: 0; }

.game-start-button, .game-submit-button { border: 0; border-radius: 12px; background: #1e40af; box-shadow: 0 3px 0 #172554; color: #fff; font-size: 1.05rem; }
.game-start-button:hover, .game-submit-button:hover { border: 0; background: #1e3a8a; color: #fff; }
.game-submit-button:disabled:hover { background: #1e40af; }

.identify-card { margin-top: 8px; padding: clamp(20px, 5vw, 28px); border: 1px solid #e3eaff; border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(31, 65, 130, .055); }
.identify-card h1 { margin: 0 0 6px; font-size: clamp(1.9rem, 6vw, 2.4rem); }
.identify-lead { margin: 0 0 18px; color: var(--muted); }
.identify-card .field input { width: 100%; max-width: none; min-height: 52px; padding: 12px 14px; border: 1.5px solid #c7d6fb; border-radius: 12px; background: #fff; font-size: 1.05rem; }
.identify-card .field input:focus { border-color: #2563eb; outline: 3px solid #bfdbfe; outline-offset: 0; }
.identify-card .button { margin-top: 14px; }
.identify-back { display: block; margin-top: 14px; color: #1d4ed8; font-weight: 600; text-align: center; }

.result-celebration-soft { background: #e0e7ff; color: #1e40af; box-shadow: none; }
