/* A · 轻快研习 — shared desktop / mobile layout, no external fonts. */
/* Direct language choice: pressed means the current language, never a menu. */
.language-options{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid #e6e1f0;border-radius:12px;background:#eeebf5}.language-options button{background:transparent;color:#777088;border-radius:9px;font-size:11px;min-height:32px;padding:6px 11px;line-height:1.5;white-space:nowrap}.language-options button.selected{background:#fff;color:#7958d6;box-shadow:0 2px 6px #30204d08;font-weight:650}.language-short{display:none}.ui-icon{display:block;width:21px;height:21px;flex-shrink:0}.wordmark{min-width:0}.brand-market{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;padding:21px 23px;border:1px solid #e6e1f0;border-radius:16px;background:#fff}.brand-market>div{min-width:0}.brand-market span{display:block;font-size:11px;color:#777088;margin-bottom:9px}.brand-market strong{display:block;font-size:21px;font-weight:650;line-height:1.55;overflow-wrap:anywhere}.brand-market small{display:block;font-size:10px;color:#777088;line-height:1.8;margin-top:8px}.brand-market .position-badge{font-size:17px;color:#7958d6}
:root{color-scheme:light;--bg:#f5f4fb;--surface:#fff;--ink:#29233e;--muted:#777088;--border:#e6e1f0;--accent:#7958d6;--soft:#eee8fb;--success:#326e5d;--success-bg:#edf7f2;--error:#a13f51;--radius:22px;--shadow:0 12px 40px #37246406;font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #7958d6;outline-offset:4px}a{color:inherit;text-underline-offset:4px}button{border:0}h1,h2,h3,p,figure{margin:0}h1{font-size:38px;font-weight:750;letter-spacing:-.045em;line-height:1.3}h2{font-size:17px;font-weight:650;line-height:1.6}h3{font-size:14px}img{max-width:100%}[hidden]{display:none!important}.app-shell{max-width:1160px;padding:0 48px;margin:auto;min-height:100svh;display:flex;flex-direction:column}.site-header{min-height:94px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--border)}.wordmark{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:20px;font-weight:750;letter-spacing:.01em}.club-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:13px;background:var(--accent);color:#fff;font-size:27px;font-weight:400}.header-actions{display:flex;align-items:center;gap:12px}.language-button{display:flex;align-items:center;justify-content:center;gap:13px;background:transparent;border:1px solid var(--border);border-radius:30px;min-height:36px;padding:7px 14px;font-size:12px}.language-button:hover{background:var(--soft)}.icon-button{display:inline-grid;place-items:center;width:37px;height:37px;min-width:37px;border:1px solid var(--border);border-radius:50%;background:var(--surface);font-size:19px;line-height:1}.icon-button:hover{border-color:var(--accent);color:var(--accent)}.main-nav{display:flex;align-items:center;gap:34px;min-height:69px}.main-nav button{display:flex;align-items:center;justify-content:center;gap:7px;position:relative;min-height:50px;padding:13px 2px;background:transparent;font-size:13px;color:var(--muted);font-weight:600}.main-nav button>span:first-child{font-size:17px;font-weight:400}.main-nav button.active{color:var(--accent)}.main-nav button.active::after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:3px;background:var(--accent)}#main-content{flex:1;padding:20px 0 25px;min-width:0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:71px;margin-bottom:26px}.page-heading>.muted{font-size:12px}.eyebrow{font-size:11px;color:var(--muted);letter-spacing:.06em;font-weight:600;line-height:1.7}.home-heading .eyebrow{display:block;margin-bottom:9px}.count-pill{display:flex;align-items:center;gap:7px;background:var(--soft);color:var(--accent);border-radius:30px;padding:9px 14px;font-size:12px;white-space:nowrap}.count-pill b{font-size:15px;font-weight:650}.setup-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(255px,1fr);gap:26px;align-items:start}.setup-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:33px;box-shadow:var(--shadow)}fieldset{margin:0;padding:0;border:0;min-width:0}fieldset+fieldset{margin-top:30px}legend{padding:0;margin:0 0 15px;font-size:13px;font-weight:600}.segmented{display:flex;flex-wrap:wrap;gap:6px}.segmented button,.filter-chips button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:39px;padding:9px 12px;background:var(--bg);color:var(--muted);border:1px solid transparent;border-radius:10px;font-size:12px;line-height:1.5}.segmented button:hover,.filter-chips button:hover{border-color:var(--border);color:var(--accent)}.segmented button.selected{background:var(--soft);color:var(--accent);border-color:#cab9f0}.segmented button span:last-child:not(:first-child){min-width:17px;height:17px;font-size:10px;display:grid;place-items:center;border-radius:5px;background:#7958d617}.difficulty-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.difficulty-options button{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;min-height:128px;padding:17px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.difficulty-options button:hover:not(:disabled){border-color:var(--accent)}.difficulty-options button.selected{border-color:var(--accent);background:#f7f3ff;box-shadow:inset 0 0 0 1px var(--accent)}.difficulty-icon{font-size:20px;color:var(--accent);height:29px;letter-spacing:-6px;font-weight:400}.difficulty-options strong{font-size:12px;font-weight:650;line-height:1.5}.difficulty-options small{font-size:10px;line-height:1.5;color:var(--muted);white-space:nowrap}.difficulty-options button:disabled{opacity:.45}.start-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:30px;padding-top:23px;border-top:1px solid var(--border)}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:11px 20px;border-radius:12px;font-size:12px;line-height:1.6;font-weight:600;text-decoration:none}.primary-button{background:var(--accent);color:#fff;border:1px solid var(--accent)}.primary-button:hover{background:#6c4ac6}.primary-button:disabled{opacity:.45}.secondary-button{background:var(--surface);color:var(--ink);border:1px solid var(--border)}.secondary-button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.secondary-button:disabled{opacity:.4}.text-button{background:transparent;font-size:12px;line-height:1.7;padding:8px 0;color:var(--muted);text-align:left}.text-button:hover{color:var(--accent)}.danger{color:var(--error)}.muted{color:var(--muted)}.pool-description{font-size:11px;line-height:1.7;margin-top:16px;min-height:19px}.resume-banner{display:flex;align-items:center;gap:15px;padding:12px 19px;background:var(--soft);border:1px solid #d5c9ef;border-radius:14px;margin-bottom:22px;font-size:12px}.resume-banner .text-button{margin-left:auto;color:var(--accent);white-space:nowrap}.resume-banner .icon-button{border:0;background:transparent;font-size:20px;width:28px;min-width:28px;height:28px}
/* Matching board */
#game-screen{max-width:920px;margin:0 auto}.game-topline{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:43px}.game-topline .eyebrow{text-align:center;font-size:10px}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:22px 0 27px}.game-heading h1{font-size:38px;margin-top:8px}.scoreboard{display:flex;align-items:center;gap:26px;text-align:right}.scoreboard>div{min-width:58px}.scoreboard span{display:block;font-size:10px;color:var(--muted);white-space:nowrap}.scoreboard b{display:block;font-variant-numeric:tabular-nums;font-size:25px;font-weight:550;line-height:1.4;margin-top:5px}.scoreboard b>span{display:inline;font-size:13px}.round-progress{height:5px;border-radius:20px;background:var(--border);overflow:hidden;margin-bottom:26px}.round-progress>div{height:100%;border-radius:20px;background:var(--accent);transition:width .2s}.board-caption{display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;gap:10px;margin-bottom:14px;color:var(--muted);font-size:11px}.board-caption>span:nth-child(2){text-align:center;white-space:nowrap;font-size:10px}.board-caption>span:last-child{padding-left:0}.match-board{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);gap:10px}.logo-column,.name-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;grid-auto-rows:minmax(122px,1fr)}.board-center{display:grid;place-items:center;color:#b8b0c9;font-size:17px}.logo-card,.name-card{min-width:0;position:relative;min-height:122px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);transition:border-color .15s,transform .15s,background .15s;user-select:none;-webkit-user-select:none;touch-action:pan-y}.logo-card{padding:24px;display:grid;place-items:center}.logo-card img{width:105px;height:70px;object-fit:contain;pointer-events:none}.card-index{position:absolute;left:13px;top:11px;font-size:9px;color:#91899f;letter-spacing:.06em}.card-check{position:absolute;right:13px;bottom:10px;color:var(--success);font-size:16px}.name-card{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:20px;font-size:14px;font-weight:600;overflow-wrap:anywhere}.name-trail{font-weight:400;color:#a39aac;font-size:17px;flex-shrink:0}.logo-card:hover:not(:disabled),.name-card:hover:not(:disabled){border-color:#bfa7ee;transform:translateY(-2px)}.logo-card.selected,.name-card.selected{background:var(--soft);border:2px solid var(--accent);box-shadow:0 0 0 3px #7958d612}.logo-card.hinted{border:2px dashed var(--accent);background:#f7f3ff}.logo-card.matched,.name-card.matched{background:var(--success-bg);border-color:#c3ded1;box-shadow:none;color:var(--success)}.logo-card.matched img{opacity:.4}.name-card.matched .name-trail{color:var(--success)}.logo-card.wrong,.name-card.wrong{border-color:#d693a1;background:#fff3f4}.name-card.drag-over{border:2px solid var(--accent);background:var(--soft)}.game-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:23px;min-height:44px}#feedback{font-size:12px;color:var(--muted);line-height:1.8}#hint-button{gap:8px;white-space:nowrap}.hint-count{display:inline-grid;place-items:center;background:var(--soft);color:var(--accent);width:20px;height:20px;border-radius:6px;font-size:11px}.learning-panel{margin-top:22px;background:var(--soft);border:1px solid #ded3f5;border-radius:18px;padding:20px 24px}.learning-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.learning-top .eyebrow{color:var(--accent)}.learning-top .icon-button{background:transparent;border:0;width:27px;min-width:27px;height:27px;color:var(--muted)}.learning-panel p{font-size:13px;line-height:1.95;margin-top:7px;max-width:730px}.learning-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:10px}.learning-actions .text-button{color:var(--accent)}.learning-actions small{color:var(--muted);font-size:10px;line-height:1.6}.drag-ghost{position:fixed!important;pointer-events:none!important;z-index:1000;width:120px;height:90px;object-fit:contain;background:#fffffff0;border:2px solid var(--accent);border-radius:14px;box-shadow:0 12px 30px #39236028;padding:15px}
/* Guide and progress */
.atlas-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.search-box{display:flex;align-items:center;gap:10px;min-width:230px;max-width:360px;flex:1;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:0 15px;min-height:44px}.search-box>span{font-size:21px;color:var(--muted)}.search-box input{border:0;outline:none!important;min-width:0;width:100%;height:42px;background:transparent;font-size:12px;color:var(--ink)}.search-box:focus-within{outline:2px solid var(--accent);outline-offset:2px}.search-box input::placeholder{color:#9990a6}.filter-chips{display:flex;flex-wrap:wrap;gap:5px}.filter-chips button{background:transparent;padding:8px 11px;min-height:37px;font-size:11px}.filter-chips button.selected{color:var(--accent);background:var(--soft)}.atlas-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.atlas-card{display:flex;flex-direction:column;align-items:center;position:relative;min-width:0;padding:34px 15px 20px;background:var(--surface);border:1px solid var(--border);border-radius:17px;min-height:178px;box-shadow:var(--shadow)}.atlas-card:hover{border-color:#bfa7ee;transform:translateY(-2px)}.atlas-card img{width:85px;height:59px;object-fit:contain;margin-bottom:18px}.atlas-card strong{font-size:13px;line-height:1.6;font-weight:600;overflow-wrap:anywhere}.atlas-card small{font-size:10px;color:var(--muted);line-height:1.7;margin-top:5px}.brand-status{position:absolute;top:11px;right:11px;font-size:9px;color:var(--accent)}.empty-state{grid-column:1/-1;text-align:center;padding:55px 15px;color:var(--muted);font-size:13px}.progress-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.progress-stat{display:flex;flex-direction:column;align-items:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:24px 23px;min-height:146px}.progress-stat>span{font-size:12px;color:var(--muted)}.progress-stat b{font-size:34px;font-weight:600;letter-spacing:-.04em;line-height:1.5;margin-top:10px;font-variant-numeric:tabular-nums}.progress-stat b small{font-size:13px;font-weight:400;color:var(--muted);letter-spacing:0}.progress-stat>small{font-size:10px;color:var(--muted);line-height:1.7;margin-top:3px}.mastery-panel{border:1px solid var(--border);border-radius:20px;background:var(--surface);padding:25px 28px;margin-top:23px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-heading h2{font-size:15px}.help-details{position:relative;flex-shrink:0}.help-details summary{display:grid;place-items:center;list-style:none;cursor:pointer;width:27px;height:27px;border-radius:50%;border:1px solid var(--border);color:var(--muted);font-size:12px}.help-details p{position:absolute;right:0;top:35px;width:min(310px,70vw);background:var(--surface);padding:18px;border:1px solid var(--border);border-radius:13px;font-size:11px;line-height:1.9;box-shadow:0 8px 26px #37246415;z-index:2}.mastery-track{height:10px;background:var(--border);border-radius:15px;display:flex;overflow:hidden;margin-top:22px}.mastery-track .mastered{background:var(--accent)}.mastery-track .learning{background:#beace7}.mastery-legend{display:flex;flex-wrap:wrap;gap:12px 25px;font-size:10px;line-height:1.8;color:var(--muted);margin-top:15px}.mastery-legend>span:first-child{color:var(--accent)}.progress-review{margin-top:30px}.progress-review>.muted{font-size:12px;margin:20px 0}.review-items{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.review-mini{min-width:130px;max-width:220px;flex:0 1 auto;display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 16px;background:var(--surface);border:1px solid var(--border);border-radius:12px;font-size:12px}.review-mini:hover{border-color:var(--accent)}.review-mini img{width:38px;height:28px;object-fit:contain}.review-mini small{font-size:9px;color:var(--accent)}.backup-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 0 10px;border-top:1px solid var(--border);margin-top:32px}.backup-panel h2{font-size:14px}.backup-actions{display:flex;align-items:center;gap:12px}.backup-actions .text-button{margin-left:9px;font-size:11px}
/* Brand card and focused dialogs */
dialog{color:var(--ink);background:#faf9fd;width:min(860px,calc(100% - 38px));max-height:calc(100svh - 50px);border:1px solid var(--border);border-radius:24px;padding:0;box-shadow:0 28px 100px #23153835;overscroll-behavior:contain}dialog::backdrop{background:#24203066;backdrop-filter:blur(4px)}.dialog-close{position:absolute;z-index:2;right:20px;top:20px;background:#fffffff2;width:35px;height:35px;font-size:23px}#dialog-content{padding:35px 38px}.brand-identity{display:flex;align-items:center;gap:20px;padding-right:30px;margin-bottom:25px;min-height:78px}.brand-emblem{display:grid;place-items:center;width:95px;height:75px;min-width:95px;padding:15px;background:#fff;border:1px solid var(--border);border-radius:16px}.brand-emblem img{width:70px;height:45px;object-fit:contain}.brand-identity h1{font-size:32px;margin-top:5px}.brand-identity .eyebrow{font-size:10px}.vehicle-photo{background:#181b22;border-radius:18px;overflow:hidden;position:relative;margin-bottom:25px;isolation:isolate;aspect-ratio:1.85;min-height:220px}.vehicle-photo>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 50%;z-index:-2}.vehicle-photo::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#111822d9);z-index:-1}.vehicle-photo figcaption{position:absolute;inset:auto 0 0;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:23px 26px;color:#fff}.vehicle-photo strong{font-size:15px;line-height:1.7;font-weight:600}.vehicle-photo small{display:block;font-size:11px;margin-top:5px;opacity:.85}.photo-controls{display:flex;align-items:center;gap:10px;font-size:10px}.photo-button{width:32px;height:32px;border-radius:50%;background:#ffffff17;border:1px solid #ffffff50;color:#fff;font-size:14px}.photo-button:hover{background:#ffffff30}.brand-story{padding:22px 26px 24px;background:var(--soft);border:1px solid #e2d8f7;border-radius:18px;margin-bottom:25px}.brand-story .eyebrow{color:var(--accent);font-size:10px}.brand-story h2{font-size:17px;font-weight:500;line-height:1.9;margin-top:9px}.brand-features{padding:0 1px 24px}.brand-features h2,.brand-explore h2{font-size:15px}.brand-features p{font-size:13px;line-height:1.95;color:var(--muted);margin-top:11px}.brand-explore{padding-top:25px}.reference-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.reference-links a{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 14px;min-height:44px;border:1px solid var(--border);border-radius:10px;background:var(--surface);text-decoration:none;font-size:11px;line-height:1.5}.reference-links a:hover{border-color:var(--accent);color:var(--accent)}.reference-links a:last-child{background:transparent}.confirm-dialog{padding:15px 8px 10px}.confirm-dialog h2{font-size:23px;padding-right:22px;margin-bottom:20px}.confirm-dialog p{font-size:13px;line-height:1.9;color:var(--muted);margin-bottom:23px;max-width:630px}.confirm-dialog .primary-button{margin-right:20px}.confirm-dialog .text-button{margin-top:10px}.image-failed{font-size:12px;text-align:center;padding:20px;line-height:1.8}.vehicle-photo .image-failed{color:white}
/* Round and session results */
.result-screen{text-align:center;padding:36px 20px 25px;max-width:860px;margin:auto}.result-icon{width:58px;height:58px;display:grid;place-items:center;font-size:28px;border-radius:19px;background:var(--soft);color:var(--accent);margin:0 auto 22px}.result-screen h1{font-size:32px;margin-top:9px}.result-screen>p{font-size:12px;color:var(--muted);line-height:1.9;margin-top:15px}.result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:650px;margin:31px auto 25px}.result-stats>div{padding:20px 15px;border:1px solid var(--border);border-radius:17px;background:var(--surface)}.result-stats b{font-size:30px;font-weight:550;display:block;line-height:1.5;font-variant-numeric:tabular-nums}.result-stats span{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:7px}.result-actions{display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;margin-top:30px}.round-brand-list{justify-content:center;margin-top:25px}.review-strip{border-top:1px solid var(--border);padding-top:24px;margin-top:36px;text-align:left}.review-strip h2{font-size:15px}.review-strip .review-items{margin-top:17px}.result-explanation{font-size:10px;color:var(--muted);max-width:550px;margin:auto;line-height:1.8}.result-explanation summary{cursor:pointer;width:fit-content;margin:auto}.result-explanation p{font-size:11px;padding-top:9px}#toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 35px);background:#332a46;color:#fff;font-size:12px;line-height:1.8;padding:12px 20px;border-radius:12px;box-shadow:0 8px 30px #281a3725;z-index:2000}noscript{display:block;margin:25px;padding:20px;background:#fff;color:var(--error)}
@media(min-width:1400px){.app-shell{max-width:1220px;padding:0 58px}#main-content{padding-top:27px}.setup-card{padding:36px}.setup-layout{gap:30px}.logo-column,.name-column{grid-auto-rows:minmax(135px,1fr)}}
@media(max-width:1000px){.app-shell{padding:0 32px}.setup-layout{grid-template-columns:minmax(0,1.6fr) minmax(235px,1fr);gap:20px}.setup-card{padding:26px}.difficulty-options{gap:8px}.difficulty-options button{padding:15px 10px}.difficulty-options small{font-size:9px}.segmented button{padding:8px 10px;font-size:11px}.atlas-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.atlas-toolbar{align-items:flex-start;flex-direction:column;gap:15px}.search-box{width:100%;max-width:none}.progress-stats{gap:12px}.progress-stat{padding:22px 18px}.reference-links{grid-template-columns:repeat(2,minmax(0,1fr))}.game-heading h1{font-size:33px}.scoreboard{gap:20px}.scoreboard b{font-size:23px}}
@media(max-width:760px){.app-shell{padding:0 24px}.site-header{min-height:82px}.wordmark{font-size:18px}.club-mark{width:35px;height:35px;border-radius:11px;font-size:25px}.header-actions{gap:8px}.main-nav{gap:26px;min-height:65px}.main-nav button{font-size:12px}.page-heading{margin-bottom:22px;min-height:64px}h1{font-size:32px}.setup-layout{grid-template-columns:minmax(0,1fr)}.setup-card{padding:28px}.difficulty-options button{padding:18px 16px;min-height:125px}.difficulty-options strong{font-size:13px}.difficulty-options small{font-size:11px}.segmented button{font-size:12px;padding:9px 13px}.atlas-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.progress-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.progress-stat{min-height:137px}.progress-stat b{font-size:32px}.game-heading{gap:15px}.game-heading h1{font-size:30px}.scoreboard{gap:16px}.scoreboard>div{min-width:47px}.scoreboard b{font-size:21px}.scoreboard span{font-size:9px}.logo-column,.name-column{grid-auto-rows:minmax(110px,1fr);gap:11px}.match-board{grid-template-columns:minmax(0,1fr) 15px minmax(0,1fr);gap:9px}.board-caption{grid-template-columns:1fr 15px 1fr;gap:9px}.logo-card,.name-card{min-height:110px;border-radius:14px}.logo-card{padding:22px 13px}.logo-card img{width:90px;height:60px}.name-card{font-size:12px;padding:17px 13px}.name-trail{font-size:13px}.board-center{font-size:13px}.learning-panel{padding:18px 21px}dialog{width:calc(100% - 28px);border-radius:21px;max-height:calc(100svh - 30px)}#dialog-content{padding:29px}.dialog-close{top:16px;right:16px}.brand-story h2{font-size:16px}.vehicle-photo{aspect-ratio:1.65}.result-stats{gap:13px}.result-stats b{font-size:27px}.brand-identity h1{font-size:29px}.brand-emblem{width:84px;height:70px;min-width:84px}.backup-panel{gap:15px}}
@media(max-width:520px){.app-shell{padding:0 20px}.site-header{min-height:77px;gap:10px}.wordmark{font-size:16px;gap:9px}.club-mark{width:32px;height:32px;font-size:23px}.language-button{padding:6px 10px;gap:8px;min-height:34px;font-size:11px}.header-actions{gap:8px}.header-actions .icon-button{width:33px;height:33px;min-width:33px;font-size:17px}.main-nav{gap:27px;min-height:61px}.main-nav button{min-height:46px;font-size:12px;gap:6px}.main-nav button>span:first-child{font-size:16px}#main-content{padding-top:18px}.page-heading{min-height:61px;margin-bottom:21px;gap:12px}h1{font-size:29px}.count-pill{font-size:10px;gap:5px;padding:8px 11px}.count-pill b{font-size:13px}.home-heading .eyebrow{font-size:10px;margin-bottom:6px}.setup-card{padding:23px 20px;border-radius:19px}legend{font-size:12px;margin-bottom:13px}.segmented{gap:6px}.segmented button{font-size:11px;min-height:38px;padding:8px 11px}.difficulty-options{gap:8px}.difficulty-options button{padding:15px 10px;min-height:121px;border-radius:12px;gap:7px}.difficulty-options strong{font-size:12px;line-height:1.6}.difficulty-options small{font-size:9px;white-space:normal;line-height:1.6}.difficulty-icon{font-size:19px;height:27px}fieldset+fieldset{margin-top:26px}.start-row{gap:13px;margin-top:25px;padding-top:21px}.primary-button,.secondary-button{font-size:11px;padding:10px 16px;gap:10px;min-height:42px}.pool-description{font-size:10px;margin-top:15px}.resume-banner{padding:9px 12px;gap:10px;font-size:11px}.resume-banner .text-button{font-size:11px}.game-topline{min-height:37px;gap:10px}.game-topline .text-button{font-size:11px;white-space:nowrap}.game-topline .eyebrow{font-size:9px;line-height:1.8;max-width:140px}.game-heading{display:block;margin:18px 0 23px}.game-heading h1{font-size:29px;margin-top:7px}.game-heading .eyebrow{font-size:10px}.scoreboard{justify-content:space-between;gap:20px;text-align:left;margin-top:24px;padding-top:19px;border-top:1px solid var(--border)}.scoreboard>div{min-width:68px}.scoreboard>div:last-child{text-align:right}.scoreboard span{font-size:10px}.scoreboard b{font-size:23px;margin-top:6px}.scoreboard b>span{font-size:12px}.round-progress{margin-bottom:24px;height:4px}.board-caption{grid-template-columns:1fr 20px 1fr;gap:8px;font-size:10px;margin-bottom:13px}.board-caption>span:nth-child(2){font-size:9px}.match-board{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:8px}.logo-column,.name-column{grid-template-columns:minmax(0,1fr);gap:11px;grid-auto-rows:95px}.logo-card,.name-card{min-height:95px}.logo-card{padding:20px}.logo-card img{width:95px;height:57px}.name-card{font-size:13px;line-height:1.6;padding:17px 15px}.name-trail{font-size:14px}.board-center{font-size:13px}.card-index{font-size:8px;left:10px;top:9px}.card-check{bottom:7px;right:10px;font-size:13px}.game-bottom{gap:15px;margin-top:21px;align-items:flex-start}#feedback{font-size:11px;max-width:190px;padding-top:7px}#hint-button{padding:10px 13px;font-size:11px}.learning-panel{margin-top:19px;padding:17px 19px;border-radius:16px}.learning-panel p{font-size:12px;line-height:1.95}.learning-top .eyebrow{font-size:10px}.learning-actions{align-items:flex-start;gap:12px}.learning-actions .text-button{font-size:11px;white-space:nowrap}.learning-actions small{font-size:9px;max-width:115px;padding-top:11px}.atlas-toolbar{gap:14px;margin-bottom:20px}.filter-chips{gap:3px}.filter-chips button{font-size:10px;padding:7px 10px;min-height:35px}.atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.atlas-card{min-height:170px;padding:31px 11px 18px;border-radius:15px}.atlas-card img{width:80px;height:56px;margin-bottom:16px}.atlas-card strong{font-size:12px}.atlas-card small{font-size:9px}.brand-status{top:10px;right:9px;font-size:9px}.search-box{min-width:0;padding:0 13px}.search-box input{font-size:16px}.progress-stats{gap:11px}.progress-stat{padding:20px 17px;min-height:139px;border-radius:16px}.progress-stat>span{font-size:11px}.progress-stat b{font-size:31px}.progress-stat>small{font-size:9px}.mastery-panel{padding:21px 20px;margin-top:20px;border-radius:17px}.section-heading h2{font-size:14px}.mastery-legend{gap:9px 15px;font-size:9px}.mastery-track{height:8px}.review-items{gap:8px;margin-top:17px}.review-mini{min-width:0;max-width:100%;padding:11px 12px;font-size:11px;gap:8px}.review-mini img{width:33px;height:25px}.review-mini small{font-size:8px}.backup-panel{flex-direction:column;align-items:flex-start;gap:14px;margin-top:28px;padding-top:23px}.backup-panel h2{font-size:13px}.backup-actions{gap:10px;width:100%}.backup-actions .text-button{margin-left:auto;font-size:10px}.progress-review{margin-top:26px}.progress-review>.muted{font-size:11px}dialog{width:calc(100% - 18px);max-height:calc(100svh - 20px);border-radius:20px}#dialog-content{padding:25px 22px}.dialog-close{top:14px;right:14px;width:32px;height:32px;min-width:32px;font-size:21px}.brand-identity{gap:14px;padding-right:18px;margin-bottom:22px;min-height:68px}.brand-emblem{width:76px;min-width:76px;height:64px;padding:12px;border-radius:13px}.brand-emblem img{height:40px;width:58px}.brand-identity h1{font-size:27px;margin-top:4px;overflow-wrap:anywhere}.brand-identity .eyebrow{font-size:9px}.vehicle-photo{aspect-ratio:1.35;min-height:215px;border-radius:15px;margin-bottom:20px}.vehicle-photo figcaption{padding:19px;gap:10px}.vehicle-photo strong{font-size:13px}.vehicle-photo small{font-size:10px}.photo-controls{gap:7px;font-size:9px}.photo-button{width:28px;height:28px;font-size:12px}.brand-story{padding:18px 20px 20px;border-radius:15px;margin-bottom:22px}.brand-story .eyebrow{font-size:9px}.brand-story h2{font-size:15px;line-height:1.95;margin-top:7px}.brand-features{padding-bottom:21px}.brand-features h2,.brand-explore h2{font-size:14px}.brand-features p{font-size:12px;line-height:1.95}.brand-explore{padding-top:23px}.reference-links{gap:8px;margin-top:13px}.reference-links a{font-size:10px;padding:11px 12px;min-height:43px}.confirm-dialog{padding:17px 0 8px}.confirm-dialog h2{font-size:21px;line-height:1.6;margin-bottom:18px}.confirm-dialog p{font-size:12px;line-height:1.95;margin-bottom:21px}.result-screen{padding:27px 0 20px}.result-icon{width:50px;height:50px;font-size:24px;border-radius:16px;margin-bottom:20px}.result-screen h1{font-size:28px}.result-screen>p{font-size:11px;margin-top:13px}.result-stats{gap:10px;margin-top:25px}.result-stats>div{padding:19px 10px;border-radius:14px}.result-stats b{font-size:24px}.result-stats span{font-size:9px}.result-actions{gap:13px;margin-top:25px}.result-explanation{font-size:9px}.result-explanation p{font-size:10px}.review-strip{margin-top:29px;padding-top:23px}#toast{font-size:11px;padding:11px 17px;bottom:18px}}
@media(max-width:360px){.app-shell{padding:0 15px}.main-nav{gap:21px}.main-nav button{font-size:11px}.header-actions{gap:5px}.wordmark{font-size:15px}.setup-card{padding:21px 16px}.difficulty-options{gap:6px}.difficulty-options button{padding:14px 8px}.difficulty-options strong{font-size:11px}.segmented button{font-size:10px;padding:8px 9px}.start-row{gap:10px}.start-row .primary-button{padding:10px 13px}.match-board{grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);gap:7px}.board-caption{grid-template-columns:1fr 12px 1fr;gap:7px}.name-card{font-size:12px;padding:15px 12px}.logo-card{padding:17px}.logo-card img{width:86px}.game-bottom{gap:10px}#feedback{max-width:160px}#dialog-content{padding:23px 18px}.brand-identity{gap:12px}.brand-identity h1{font-size:24px}.brand-emblem{width:68px;min-width:68px;height:60px}}
@media(pointer:coarse){.language-button,.icon-button,.main-nav button,.text-button,.segmented button,.filter-chips button,.primary-button,.secondary-button,.reference-links a,.photo-button{min-height:44px}.icon-button,.photo-button{min-width:44px}.header-actions .icon-button{width:44px;height:44px;min-width:44px}.language-button{padding-left:12px;padding-right:12px}.learning-top .icon-button,.resume-banner .icon-button{min-width:36px;min-height:36px}.dialog-close{width:44px;height:44px;min-width:44px;top:10px;right:10px}.brand-identity{padding-right:35px}.photo-controls{gap:5px}.reference-links a{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:520px){.language-long{display:none}.language-short{display:inline}.language-options{padding:2px;border-radius:10px}.language-options button{font-size:10px;min-height:31px;padding:5px 8px}.site-header{gap:9px}.wordmark>span:last-child{max-width:130px;line-height:1.35}.header-actions{gap:7px}.brand-market{grid-template-columns:1.5fr 1fr;gap:14px;padding:18px}.brand-market strong{font-size:18px}.brand-market .position-badge{font-size:15px}.brand-market span{font-size:10px}.brand-market small{font-size:9px}}
@media(max-width:360px){.wordmark>span:last-child{max-width:87px;font-size:13px}.wordmark{gap:7px}.header-actions{gap:5px}.language-options button{padding:5px 7px}.brand-market{grid-template-columns:1fr;gap:17px}}
@media(pointer:coarse){.language-options button{min-height:44px}.language-options button{min-width:44px}}
.brand-market>div{min-width:0}.brand-market strong,.brand-market small{overflow-wrap:anywhere}
.brand-intro{padding:0 1px 24px}.brand-intro p{font-size:13px;line-height:1.95;color:var(--muted)}
@media(max-width:520px){.brand-intro{padding-bottom:21px}.brand-intro p{font-size:12px}}
/* Keep scrolling within the rounded dialog, with a fixed, centred close icon. */
#app-dialog{--dialog-edge:25px;--dialog-inset:10px;padding:var(--dialog-inset);max-height:calc(100svh - 2 * var(--dialog-edge));overflow:hidden}
#dialog-content{max-height:calc(100svh - 2 * var(--dialog-edge) - 2 * var(--dialog-inset) - 2px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#c5bad9 transparent;border-radius:14px;padding:25px 28px}
#dialog-content::-webkit-scrollbar{width:8px}
#dialog-content::-webkit-scrollbar-track{background:transparent;margin-block:12px}
#dialog-content::-webkit-scrollbar-thumb{background:#c5bad9;border-radius:999px;border:2px solid transparent;background-clip:padding-box}
#dialog-content::-webkit-scrollbar-thumb:hover{background-color:#a998c1}
#app-dialog .dialog-close{display:grid;place-items:center;padding:0;top:18px;right:18px;width:44px;height:44px;min-width:44px;min-height:44px;line-height:0}
#app-dialog .dialog-close svg{display:block;width:20px;height:20px;pointer-events:none}
#dialog-content .brand-identity{padding-right:44px}
.logo-card.matched,.name-card.matched{cursor:pointer}
@media(max-width:760px){#app-dialog{--dialog-edge:15px}#dialog-content{padding:19px;border-radius:11px}}
@media(max-width:520px){#app-dialog{--dialog-edge:10px}#dialog-content{padding:15px 12px;border-radius:10px}#app-dialog .dialog-close{top:12px;right:12px}}
@media(max-width:360px){#dialog-content{padding:13px 8px}}
/* Homepage recommendation and complete-frame photographs. */
.setup-layout{grid-template-columns:minmax(0,1.7fr) minmax(255px,1fr);max-width:none;margin-inline:0}
.start-row{justify-content:flex-end}
.vehicle-photo{aspect-ratio:auto;min-height:0;background:#eeebf4}
.vehicle-photo>img{display:block;position:static;inset:auto;z-index:auto;width:100%;height:auto;max-height:60svh;object-fit:contain;object-position:center}
.vehicle-photo::after{display:none}
.vehicle-photo figcaption{position:static;background:none;color:var(--ink);padding:14px 18px}
.vehicle-photo figcaption small{color:var(--muted)}
.photo-button{color:var(--ink);border-color:var(--border);background:var(--surface)}
.photo-button:hover{background:var(--soft)}
.vehicle-photo .image-failed{color:var(--muted);min-height:120px}

.featured-brand{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}
.featured-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px}
.featured-next{display:flex;align-items:center;gap:6px;min-height:44px;padding:5px 8px;border-radius:8px;background:transparent;color:var(--accent);font-size:11px}
.featured-next:hover{background:#eee8fb}
.featured-next .ui-icon{width:16px;height:16px}
.featured-link{display:block;width:100%;padding:0;background:transparent;text-align:left}
.featured-link:hover strong{color:var(--accent)}
.featured-photo{display:block;aspect-ratio:3/2;background:#eeebf4}
.featured-photo img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.featured-copy{display:flex;align-items:center;gap:12px;padding:20px}
.featured-text{display:block;min-width:0;flex:1}
.featured-copy .featured-brand-emblem{width:64px;min-width:64px;height:56px;padding:8px;border-radius:12px}
.featured-copy .featured-brand-emblem img{width:48px;height:36px;object-fit:contain}
.featured-name{min-width:0;overflow-wrap:anywhere}
.featured-copy strong{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:20px;font-weight:650}
.featured-copy .featured-arrow{color:var(--accent);font-weight:400;flex-shrink:0}
.featured-copy small{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:8px}
.reference-links{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
@media(max-width:760px){.setup-layout{grid-template-columns:minmax(0,1fr)}.featured-link{display:grid;grid-template-columns:minmax(0,40%) minmax(0,1fr);align-items:center}.featured-copy{padding:16px;gap:10px}.featured-copy .featured-brand-emblem{width:44px;min-width:44px;height:44px;padding:5px}.featured-copy .featured-brand-emblem img{width:32px;height:28px}.featured-copy strong{font-size:18px}.featured-top{padding:8px 14px}}
