:root{--paper:#f5f5ee;--white:#fff;--ink:#1b2a22;--muted:#5c685e;--line:#d9ded4;--green:#1d5e43;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--ink);background:var(--paper);font-family:Montserrat,Segoe UI,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{min-width:0;min-height:100svh;margin:0}button,input,select,textarea{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid var(--green);outline-offset:4px}::selection{color:var(--ink);background:#e5e4b0}h1,h2,h3,p{margin:0}h1{letter-spacing:-1.4px;font-size:clamp(32px,5vw,44px);font-weight:750;line-height:1.12}h1:focus{outline:none}h2{letter-spacing:-.4px;font-size:22px;font-weight:700;line-height:1.3}strong{color:var(--ink);font-weight:650}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important}}.app-shell{max-width:1040px;margin:0 auto;padding:0 32px}.app-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;min-height:100px;display:flex}.brand{letter-spacing:-1.2px;align-items:center;gap:12px;font-size:30px;font-weight:800;display:flex}.brand-mark{width:28px;height:28px;color:var(--green);flex-shrink:0}.brand-credit{letter-spacing:1px;color:var(--muted);margin-left:12px;font-size:11px;font-weight:600}.icon{flex-shrink:0;width:20px;height:20px}.download-link{color:var(--ink);text-underline-offset:5px;align-items:center;gap:8px;padding:12px 0;font-size:14px;text-decoration-thickness:1px;display:inline-flex}.download-link:hover{color:var(--green)}.page-content{padding:46px 0 40px}.page-heading{margin-bottom:30px}.page-label{color:var(--green);margin-bottom:10px;font-size:13px;font-weight:650}.page-heading h1{margin-bottom:12px}.page-heading>p:last-child{color:var(--muted)}.setup-layout{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start;gap:50px;display:grid}.setup-panel{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:30px}.section-note{color:var(--muted);margin-top:8px;font-size:15px}.answer-picker{border:0;min-width:0;margin:28px 0 0;padding:0}.answer-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.answer-a{--answer-color:#f6ded5}.answer-b{--answer-color:#dbeaf2}.answer-c{--answer-color:#f4e9ba}.answer-d{--answer-color:#dfebd7}.answer-choice{background:var(--answer-color);cursor:pointer;border:2px solid #0000;border-radius:5px;justify-content:center;align-items:center;min-height:88px;font-size:32px;font-weight:750;display:flex;position:relative}.answer-choice:hover{border-color:var(--muted)}.answer-choice.is-selected{border-color:var(--ink)}.answer-choice:has(input:focus-visible){outline:3px solid var(--green);outline-offset:4px}.answer-picker:disabled .answer-choice{cursor:default;opacity:.6}.choice-check{line-height:0;position:absolute;top:4px;right:5px}.choice-check .icon{width:15px;height:15px}.selection-note{color:var(--muted);min-height:22px;margin:16px 0 24px;font-size:14px}.button{cursor:pointer;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;gap:10px;min-height:48px;padding:12px 20px;font-size:15px;font-weight:650;line-height:1.35;display:inline-flex}.button-primary{background:var(--green);color:#fff}.button-primary:hover:not(:disabled){background:#123f2e}.button:disabled{color:#647163;cursor:not-allowed;background:#e3e7e1}.button-secondary{background:var(--white);border-color:var(--line);color:var(--ink)}.button-secondary:hover{background:var(--paper)}.start-button{width:100%}.error-message{color:#823520;background:#fff1eb;border-left:3px solid #a53d29;margin-bottom:20px;padding:10px 12px;font-size:14px}.error-message strong{color:inherit}.error-message p{margin-top:4px}.how-to{padding-top:4px}.how-to h2{max-width:23ch;font-size:20px}.card-example{align-items:center;gap:20px;margin:24px 0;display:flex}.card-example svg{border:1px solid var(--line);width:132px;height:132px;color:var(--ink);border-radius:3px;flex-shrink:0}.card-example p{max-width:12ch;color:var(--muted);font-size:14px}.card-letter{fill:var(--muted);font-size:10px;font-weight:650}.chosen-letter{fill:var(--green);font-size:12px;font-weight:800}.card-number{fill:var(--ink);font-size:9px;font-weight:700}.how-to ol{color:var(--muted);margin:0;padding-left:21px;font-size:15px}.how-to li{margin-bottom:12px;padding-left:5px}.how-to li::marker{color:var(--green);font-weight:650}.how-to-note{color:var(--muted);margin-top:18px;font-size:13px}.scanner-screen{max-width:780px;margin:0 auto}.scan-status-row{justify-content:space-between;align-items:center;gap:12px;padding:0 0 12px;font-size:14px;display:flex}.scan-status{align-items:center;gap:7px;font-weight:600;display:inline-flex}.scan-status>span{background:var(--green);border-radius:50%;width:7px;height:7px}.camera-stage{background:#18271f;border-radius:6px;width:100%;position:relative;overflow:hidden}.camera-feed,.camera-overlay{width:100%;height:100%;position:absolute;inset:0}.camera-feed{object-fit:cover}.camera-overlay{pointer-events:none}.match-tag{color:#fff;border:2px solid #fff;border-radius:2px;position:absolute}.match-tag.is-correct{border-color:#61e6a1}.match-tag.is-wrong{border-color:#ffb299}.match-tag span{color:#fff;white-space:nowrap;background:#17251e;border-radius:3px 3px 0 0;padding:2px 6px;font-size:13px;font-weight:700;position:absolute;bottom:100%;left:-2px}.scan-actions{z-index:2;background:var(--paper);padding:18px 0 max(18px, env(safe-area-inset-bottom));border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;display:flex;position:sticky;bottom:0}.capture-count{color:var(--muted);font-size:15px}.capture-count strong{font-variant-numeric:tabular-nums;margin-right:5px;font-size:27px}.captured-list{margin-top:24px}.captured-list h2{margin-bottom:12px;font-size:15px}.captured-list ul{flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;display:flex}.captured-list li{background:var(--white);border:1px solid var(--line);color:var(--muted);border-radius:3px;padding:5px 9px;font-size:14px}.captured-list li strong{margin-left:8px}.scan-hint{color:var(--muted);margin-top:20px;font-size:14px}.summary-divider{color:#899287;margin:0 10px}.results-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.result-column{border-top:6px solid var(--answer-color);background:var(--white);border-radius:5px;padding:18px}.result-column.is-correct-group{outline:2px solid var(--green);outline-offset:-2px}.result-column header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:22px;display:flex}.result-column h2{font-size:27px}.correct-label{color:var(--green);align-items:center;gap:3px;font-size:12px;font-weight:650;display:inline-flex}.correct-label .icon{width:15px;height:15px}.result-count{color:var(--muted);font-size:13px}.result-count strong{font-variant-numeric:tabular-nums;margin-right:5px;font-size:32px;font-weight:650;line-height:1}.result-bar{background:#eff1ec;border-radius:2px;height:4px;margin:14px 0 18px;overflow:hidden}.result-bar span{background:var(--green);height:100%;display:block}.result-column ul{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.result-column li{border:1px solid var(--line);text-align:center;font-variant-numeric:tabular-nums;border-radius:3px;min-width:28px;padding:3px 6px;font-size:13px}.no-cards{color:var(--muted);font-size:13px}.next-question-row{justify-content:space-between;align-items:center;gap:20px;padding:24px 0 30px;display:flex}.next-question-row>p{color:var(--muted);font-size:15px}.empty-state{background:var(--white);border:1px solid var(--line);border-radius:5px;padding:30px}.empty-state p{color:var(--muted);margin-top:12px}.leaderboard{border-top:1px solid var(--line);padding-top:28px}.leaderboard-heading{justify-content:space-between;align-items:baseline;gap:15px;margin-bottom:20px;display:flex}.leaderboard-heading>p{color:var(--muted);font-size:14px}.leaderboard table{border-collapse:collapse;width:100%;font-size:15px}.leaderboard th,.leaderboard td{text-align:left;border-bottom:1px solid var(--line);padding:12px 16px}.leaderboard thead th{color:var(--muted);font-size:12px;font-weight:600}.leaderboard td:first-child{width:66px;color:var(--muted);font-variant-numeric:tabular-nums}.leaderboard td:last-child,.leaderboard th:last-child{text-align:right;font-variant-numeric:tabular-nums}.leaderboard tbody td:last-child{font-weight:700}.leaderboard tbody tr:first-child{background:#eeeccf}.no-points{color:var(--muted);font-size:15px}.game-footer{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:24px;margin-top:30px;padding-top:20px;font-size:13px;display:flex}.text-button{color:var(--ink);text-underline-offset:4px;cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:10px 0;font-size:14px;font-weight:600;text-decoration:underline}.text-button:hover{color:var(--green)}.reset-dialog{border:1px solid var(--line);background:var(--white);width:calc(100% - 32px);max-width:440px;color:var(--ink);border-radius:8px;padding:28px}.reset-dialog::backdrop{background:#141f1880}.reset-dialog>p{color:var(--muted);margin:14px 0 26px}.reset-dialog form{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.processing-canvas{display:none}@media (width<=760px){.app-shell{padding:0 20px}.app-header{min-height:78px}.brand{gap:9px;font-size:27px}.brand-credit{display:none}.brand-mark{width:24px;height:24px}.page-content{padding-top:30px}.page-heading{margin-bottom:24px}.setup-layout{grid-template-columns:1fr;gap:32px}.setup-panel{padding:24px}.how-to{border-top:1px solid var(--line);padding-top:24px}.how-to h2{max-width:none}.card-example{float:right;flex-direction:column;gap:10px;width:110px;margin:22px 0 0 18px}.card-example svg{width:100px;height:100px}.card-example p{text-align:center;max-width:none;font-size:12px}.how-to ol{margin-top:22px}.how-to-note{clear:both}.results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.leaderboard-heading{display:block}.leaderboard-heading p{margin-top:6px}}@media (width<=460px){.app-shell{padding:0 16px}.download-link{gap:6px;font-size:13px}.download-link .icon{width:17px;height:17px}.setup-panel{padding:22px 18px}.answer-options{gap:8px}.answer-choice{min-height:78px;font-size:29px}.scan-status-row{font-size:12px}.is-scanning .app-header{min-height:64px}.is-scanning .page-content{padding-top:20px}.scanner-screen .page-heading{margin-bottom:16px}.scanner-screen .page-heading h1{letter-spacing:-.8px;font-size:26px}.scanner-screen .page-heading>p:last-child{font-size:14px}.scan-actions{padding:12px 0 max(12px, env(safe-area-inset-bottom));gap:12px}.capture-count{flex-shrink:0;width:90px;font-size:12px}.capture-count strong{margin:0;font-size:27px;line-height:1.1;display:block}.scan-actions .button{flex:1;gap:8px;padding:12px 10px;font-size:14px}.next-question-row{flex-direction:column;align-items:stretch;gap:16px}.next-question-row .button{width:100%}.result-column{padding:15px}.result-column header{margin-bottom:18px}.game-footer{align-items:flex-start;gap:18px}.game-footer p{max-width:27ch}.empty-state{padding:22px}}@media (width<=360px){.app-header{gap:8px}.brand{gap:8px;font-size:25px}.brand-mark{width:22px;height:22px}.download-link{gap:5px;font-size:12px}.scanner-screen .page-heading h1{font-size:24px}}
