.atlas-games{color-scheme:light;--paper:#f7f6f0;--panel:#fff;--ink:#202d27;--muted:#59685f;--line:#dce1d7;--green:#225e47;--pale:#eaf0e5;--accent:#f1ba86;--wrong:#a53629;--wrong-bg:#fff0eb;--shadow:0 12px 36px #233a2610}
html[data-theme=dark] .atlas-games{color-scheme:dark;--paper:#141c19;--panel:#1b2721;--ink:#e9eee8;--muted:#abbbae;--line:#35483b;--green:#9bd7b2;--pale:#263a2d;--accent:#eabd8f;--wrong:#ffad9b;--wrong-bg:#412923;--shadow:none}
.atlas-games *{box-sizing:border-box}
.atlas-games{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.atlas-games button,.atlas-games input,.atlas-games select{font:inherit}
.atlas-games button,.atlas-games a,.atlas-games input,.atlas-games select{-webkit-tap-highlight-color:transparent}
.atlas-games button{cursor:pointer}
.atlas-games button:disabled{cursor:default}
.atlas-games a{color:var(--green);text-underline-offset:4px}
.atlas-games button:focus-visible,.atlas-games a:focus-visible,.atlas-games input:focus-visible,.atlas-games select:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.atlas-games button[hidden],.atlas-games [hidden]{display:none!important}
.atlas-games .skip{position:absolute;left:15px;top:-100px;background:var(--panel);padding:14px;z-index:5}
.atlas-games .skip:focus{top:10px}
.atlas-games .masthead{padding:19px max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;gap:30px;border-bottom:1px solid var(--line);background:var(--panel)}
.atlas-games .brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:16px;font-weight:800;letter-spacing:.15em;line-height:1.3}
.atlas-games .brandmark{font-size:38px;letter-spacing:-.1em}
.atlas-games .brandmark span{color:var(--green)}
.atlas-games .brand small{display:block;font-size:8px;font-weight:650;letter-spacing:.18em;margin-top:4px}
.atlas-games .masthead nav{display:flex;gap:6px;margin-left:auto}
.atlas-games .masthead nav a{font-size:12px;text-decoration:none;color:var(--muted);padding:9px 13px;border-radius:7px}
.atlas-games .masthead nav a:hover,.atlas-games .masthead nav [aria-current]{background:var(--pale);color:var(--green)}
.atlas-games .icon-button{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:8px;min-width:38px;min-height:38px}
.atlas-games{max-width:1180px;padding:38px 24px 55px;margin:auto}
.atlas-games .hero{display:flex;justify-content:space-between;gap:30px;align-items:center;padding:15px 0 35px}
.atlas-games .eyebrow{font-size:10px;font-weight:750;letter-spacing:.14em;color:var(--green);margin:0 0 10px}
.atlas-games .dot{display:inline-block;width:7px;height:7px;background:var(--green);margin-right:8px}
.atlas-games h1{font-size:clamp(35px,5vw,64px);font-weight:650;letter-spacing:-.055em;line-height:1.12;margin:16px 0 18px}
.atlas-games h1 em{font-family:Georgia,serif;font-weight:400;color:var(--green)}
.atlas-games h2{font-size:25px;line-height:1.2;letter-spacing:-.03em;margin:0 0 12px}
.atlas-games h3{font-size:18px;margin:0 0 10px}
.atlas-games .lead{font-size:16px;color:var(--muted);margin:0}
.atlas-games .catalog-badge{border-left:1px solid var(--line);padding:0 0 0 35px;min-width:190px;display:flex;flex-direction:column}
.atlas-games .catalog-badge strong{font-size:44px;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.atlas-games .catalog-badge span{font-size:12px;color:var(--muted)}
.atlas-games .catalog-badge small{font-size:10px;color:var(--muted);margin-top:12px}
.atlas-games .notice{padding:13px 17px;background:var(--pale);border:1px solid var(--line);border-radius:8px;font-size:12px;margin:0 0 28px;color:var(--green)}
.atlas-games .section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px}
.atlas-games .section-heading h2{margin:0;font-size:23px}
.atlas-games .pill{font-size:11px;border:1px solid var(--line);padding:6px 10px;border-radius:6px;background:var(--panel);font-variant-numeric:tabular-nums}
.atlas-games .filters{display:grid;grid-template-columns:1.5fr .8fr .9fr 1.2fr;gap:13px}
.atlas-games .filters label,.atlas-games .quiz-options label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.09em;font-weight:700;color:var(--muted)}
.atlas-games select,.atlas-games input{display:block;width:100%;padding:11px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:8px;margin-top:6px;font-size:13px;min-width:0}
.atlas-games input::placeholder{color:var(--muted);opacity:1}
.atlas-games .deck-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 25px;color:var(--muted);font-size:11px}
.atlas-games .text-button{color:var(--green);border:0;padding:6px 0;background:transparent;text-decoration:underline;text-underline-offset:4px;font-size:12px;white-space:nowrap}
.atlas-games .mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.atlas-games .mode-card{padding:30px;border:1px solid var(--line);background:var(--panel);border-radius:14px;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:flex-start}
.atlas-games .mode-card h2{font-size:33px;margin-bottom:9px}
.atlas-games .mode-card>p:not(.eyebrow){font-size:14px;color:var(--muted);margin:0 0 20px;max-width:440px}
.atlas-games .mode-icon{display:grid;place-items:center;font-family:Georgia,serif;font-size:25px;background:var(--pale);color:var(--green);width:47px;height:47px;border-radius:10px;margin-bottom:24px}
.atlas-games .match-card .mode-icon{background:#f8ead8;color:#755529}
.atlas-games .quiz-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;margin:0 0 22px}
.atlas-games .quiz-options .wide{grid-column:1/-1}
.atlas-games .button{display:inline-flex;align-items:center;justify-content:center;gap:18px;padding:12px 19px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:13px;font-weight:650;text-decoration:none;min-height:44px}
.atlas-games .button.primary{background:var(--green);color:var(--panel);border-color:var(--green)}
.atlas-games .button.primary:disabled{opacity:.45}
.atlas-games .button:hover:not(:disabled){filter:brightness(.94)}
.atlas-games .mode-card>.button{margin-top:auto;width:100%;justify-content:space-between}
.atlas-games .mode-card>small{margin-top:10px;color:var(--muted);font-size:10px}
.atlas-games .match-preview{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;padding:15px 0}
.atlas-games .match-preview span{padding:18px 22px;border:1px solid var(--line);border-radius:9px;background:var(--paper);font-size:13px;transform:rotate(-3deg)}
.atlas-games .match-preview span:last-child{transform:rotate(3deg)}
.atlas-games .match-preview i{font-style:normal;color:var(--green)}
.atlas-games .rules{font-size:12px;color:var(--muted);margin:8px 0 23px}
.atlas-games .rules p{margin:7px 0}
.atlas-games .rules b{color:var(--ink);font-weight:600}
.atlas-games .play-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 22px}
.atlas-games .play-bar h2{margin:0}
.atlas-games .scoreboard{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.atlas-games .score{font-size:12px;color:var(--muted)}
.atlas-games .timer{font-variant-numeric:tabular-nums;font-size:25px;letter-spacing:-.04em;color:var(--ink);font-weight:650}
.atlas-games .game-panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:32px;box-shadow:var(--shadow)}
.atlas-games .progress{height:5px;background:var(--line);border-radius:9px;overflow:hidden;margin-bottom:28px}
.atlas-games .progress span{display:block;height:100%;background:var(--green)}
.atlas-games .question{font-size:clamp(19px,2.4vw,27px);font-weight:500;line-height:1.5;max-width:850px;margin:15px 0 25px;overflow-wrap:anywhere}
.atlas-games .question small{font-size:13px;font-weight:400;display:block;color:var(--muted)}
.atlas-games .options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.atlas-games .answer{display:flex;gap:13px;align-items:center;text-align:left;min-height:66px;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font-size:14px;overflow-wrap:anywhere}
.atlas-games .answer .key{border:1px solid var(--line);border-radius:5px;display:grid;place-items:center;min-width:25px;height:25px;font-size:11px;color:var(--muted)}
.atlas-games .answer:hover:not(:disabled){border-color:var(--green);background:var(--pale)}
.atlas-games .answer.correct{border:2px solid var(--green);background:var(--pale)}
.atlas-games .answer.wrong{border:2px solid var(--wrong);background:var(--wrong-bg)}
.atlas-games .answer:disabled{opacity:1}
.atlas-games .feedback{margin-top:22px;border-radius:9px;padding:20px;background:var(--pale);border-left:4px solid var(--green);font-size:14px}
.atlas-games .feedback.incorrect{background:var(--wrong-bg);border-color:var(--wrong)}
.atlas-games .feedback p{margin:8px 0}
.atlas-games .feedback h3{font-size:16px}
.atlas-games .feedback .example{color:var(--muted);font-size:13px}
.atlas-games .question-actions{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-top:24px}
.atlas-games .typed{display:flex;gap:12px;align-items:flex-end}
.atlas-games .typed label{flex:1;color:var(--muted);font-size:12px}
.atlas-games .typed input{font-size:17px;padding:14px}
.atlas-games .hint{font-size:11px;color:var(--muted);margin:12px 0}
.atlas-games .match-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}
.atlas-games .tile{min-height:150px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--ink);padding:18px 15px;font-size:13px;line-height:1.5;overflow-wrap:anywhere;box-shadow:var(--shadow);position:relative}
.atlas-games .tile[data-side=term]{font-size:16px;font-weight:650}
.atlas-games .tile:hover:not(:disabled){border-color:var(--green);background:var(--pale)}
.atlas-games .tile[aria-pressed=true]{border:2px solid var(--green);background:var(--pale);box-shadow:0 0 0 2px var(--pale)}
.atlas-games .tile.mismatch{border:2px solid var(--wrong);background:var(--wrong-bg)}
.atlas-games .tile.matched{visibility:hidden;pointer-events:none}
.atlas-games .match-status{min-height:28px;font-size:13px;color:var(--muted);margin:0 0 17px}
.atlas-games .result-panel{text-align:center;padding:40px 28px}
.atlas-games .result-score{font-size:66px;letter-spacing:-.07em;line-height:1.1;color:var(--green);font-weight:650;margin:10px 0}
.atlas-games .result-panel .subtle{color:var(--muted);font-size:14px}
.atlas-games .actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:25px 0 5px}
.atlas-games .review{margin-top:27px}
.atlas-games .review h3{margin-bottom:17px}
.atlas-games .review-item{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:20px;margin:12px 0;font-size:13px}
.atlas-games .review-item .review-title{display:flex;justify-content:space-between;gap:15px;align-items:center}
.atlas-games .review-item h4{font-size:16px;margin:0}
.atlas-games .review-item p{margin:9px 0}
.atlas-games .review-item .subtle{color:var(--muted)}
.atlas-games footer{border-top:1px solid var(--line);padding-top:22px;margin-top:40px;font-size:11px;color:var(--muted)}
.atlas-games footer p{margin:4px 0 10px}
.atlas-games .sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.atlas-games button,.atlas-games select{touch-action:manipulation}
@media(max-width:850px){.atlas-games .masthead{gap:16px;padding:15px 20px}
.atlas-games .masthead nav a{padding:8px;font-size:11px}
.atlas-games .brand small{display:none}
.atlas-games .filters{grid-template-columns:1fr 1fr}
.atlas-games .mode-card{padding:24px}
.atlas-games .match-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.atlas-games .catalog-badge{min-width:155px;padding-left:22px}
.atlas-games .catalog-badge strong{font-size:35px}}
@media(max-width:600px){.atlas-games{padding:25px 16px 40px}
.atlas-games .masthead{padding:12px 16px;flex-wrap:wrap;gap:10px}
.atlas-games .brandmark{font-size:30px}
.atlas-games .masthead nav{order:3;flex-basis:100%;margin:0;justify-content:space-between}
.atlas-games .masthead>.icon-button{margin-left:auto}
.atlas-games .hero{align-items:flex-start;padding:5px 0 25px;gap:15px}
.atlas-games .hero h1{font-size:37px}
.atlas-games .lead{font-size:13px}
.atlas-games .catalog-badge{min-width:auto;width:105px;flex-shrink:0;padding-left:12px;margin-top:35px}
.atlas-games .catalog-badge strong{font-size:29px}
.atlas-games .catalog-badge span{font-size:10px}
.atlas-games .catalog-badge small{font-size:9px}
.atlas-games .eyebrow{font-size:8px}
.atlas-games .section-heading h2{font-size:21px}
.atlas-games .section-heading{gap:10px}
.atlas-games .pill{font-size:10px}
.atlas-games .mode-grid{grid-template-columns:1fr}
.atlas-games .mode-card{padding:23px}
.atlas-games .deck-footer{align-items:flex-start}
.atlas-games .game-panel{padding:20px}
.atlas-games .options{grid-template-columns:1fr}
.atlas-games .question{font-size:20px}
.atlas-games .play-bar{align-items:flex-start;flex-wrap:wrap}
.atlas-games .play-bar h2{font-size:23px}
.atlas-games .match-grid{grid-template-columns:1fr 1fr;gap:9px}
.atlas-games .tile{min-height:135px;padding:13px;font-size:12px}
.atlas-games .tile[data-side=term]{font-size:14px}
.atlas-games .typed{flex-wrap:wrap}
.atlas-games .typed label{min-width:100%}
.atlas-games .result-score{font-size:52px}
.atlas-games .review-item .review-title{align-items:flex-start}
.atlas-games .notice{margin-bottom:24px}
.atlas-games .timer{font-size:22px}}
@media(prefers-reduced-motion:reduce){.atlas-games *,.atlas-games *::before,.atlas-games *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.atlas-games.is-playing .hero,.atlas-games.is-playing #load-status{display:none}
.atlas-games.is-playing{padding-top:28px}
/* The Atlas shell, global theme switch and navigation remain untouched. */
.atlas-games{max-width:none;padding:0;margin:0;background:transparent;min-width:0}
.atlas-games.is-playing{padding:0}
.atlas-games .hero{padding-top:0;min-height:0;background:transparent;border:0;border-radius:0;margin:0;box-shadow:none}
.atlas-games footer{margin-bottom:0}
@media(max-width:600px){.atlas-games{padding:0}.atlas-games .hero{flex-wrap:wrap}.atlas-games .catalog-badge{margin-top:0}}
