:root {
  --ink: #252432;
  --paper: #fcfdf8;
  --blue: #3979ed;
  --coral: #ff6982;
  --yellow: #ffe17c;
  --muted: #646773;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: 'Arial Rounded MT Bold', 'Trebuchet MS', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background-image: linear-gradient(#a8d9c777 1.5px, transparent 1.5px), linear-gradient(90deg,#a8d9c777 1.5px,transparent 1.5px),linear-gradient(#c6e6da66 1px,transparent 1px),linear-gradient(90deg,#c6e6da66 1px,transparent 1px); background-size: 140px 140px,140px 140px,28px 28px,28px 28px; background-position: -1px -1px; }
button,input { font: inherit; }
button { color: inherit; cursor: pointer; touch-action: manipulation; }
button,a,input,summary { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .6; }
a { color: #245ab7; text-underline-offset: 4px; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline: 3px solid #1967cb; outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: var(--ink); color: white; z-index: 20; }
.skip-link:focus { width: auto; height: auto; clip-path: none; padding: 12px 20px; }
.site-header { max-width: 1240px; margin: auto; padding: 23px 32px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.mini-brand { display: flex; align-items: center; gap: 9px; background: none; padding: 0; border: 0; text-align: left; line-height: .98; font-size: 11px; font-weight: 900; letter-spacing: .2px; }
.mini-brand b { display: inline-block; margin-top: 4px; font-size: 17px; letter-spacing: 2px; }
.mini-brand img { transition: transform .3s var(--ease); }
.mini-brand:hover img { transform: rotate(-12deg); }
.game-settings { display: flex; align-items: center; gap: 9px; }
.setting-button, .language-picker { background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); }
.setting-button { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 11px; font-size: 11px; font-weight: 800; transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.setting-button:hover { background: #fff3c9; transform: translateY(-1px); }
.setting-button:active { transform: translateY(3px); box-shadow: none; }
.setting-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.setting-button[aria-pressed="true"] { background: var(--yellow); }
.how-button > span:first-child { font-size: 16px; font-weight: 900; }
.motion-icon { font-size: 19px; line-height: 1; }
.language-picker { display: flex; overflow: hidden; }
.language-picker button { border: 0; background: transparent; min-height: 34px; min-width: 39px; padding: 5px 8px; font-size: 11px; font-weight: 800; }
.language-picker button[aria-pressed="true"] { background: var(--yellow); }
main { width: min(940px,calc(100% - 40px)); margin: 0 auto; }
.lobby-screen { min-height: calc(100dvh - 158px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 31px 0 20px; }
.edition-pill { display: flex; gap: 12px; font-size: 10px; letter-spacing: 2px; font-weight: 900; margin: 0 0 16px; background: #fffef5; border: 1.5px solid var(--ink); border-radius: 20px; padding: 7px 15px; }
.edition-pill > span:first-child, .edition-pill > span:last-child { color: #d74665; }
.game-title { margin: 0; font-family: 'Arial Black', 'Microsoft YaHei', sans-serif; font-weight: 950; font-size: clamp(52px,6.5vw,84px); line-height: .92; letter-spacing: -4px; transform: rotate(-3deg); position: relative; z-index: 1; }
.game-title > span { display: block; color: var(--coral); -webkit-text-stroke: 1px var(--ink); text-shadow: 0 5px 0 var(--ink); margin: 0 0 12px; }
.game-title > strong { display: block; color: white; background: var(--ink); letter-spacing: 8px; border-radius: 8px; padding: 4px 19px 9px 27px; font-size: .83em; box-shadow: 0 6px 0 var(--coral); position: relative; }
.title-star { color: var(--yellow); position: absolute; top: -14px; right: -30px; font-size: .62em; -webkit-text-stroke: 2px var(--ink); transform: rotate(10deg); }
.lobby-tagline { font-size: 17px; font-weight: 900; margin: 26px 0 0; }
.lobby-cards-wrap { width: 490px; height: 237px; max-width: 100%; position: relative; margin: 10px 0 6px; }
.lobby-cards { display: flex; align-items: center; justify-content: center; padding-top: 28px; height: 218px; }
.lobby-cards .country-card { width: 136px; height: 180px; flex-shrink: 0; animation: deal .7s var(--ease) both; box-shadow: 0 5px 0 var(--ink); }
.lobby-cards .country-card:first-child { transform: rotate(-14deg) translateX(17px) translateY(7px); }
.lobby-cards .country-card:nth-child(2) { transform: rotate(2deg) translateY(-8px); z-index: 1; animation-delay: .06s; }
.lobby-cards .country-card:nth-child(3) { transform: rotate(15deg) translateX(-15px) translateY(7px); animation-delay: .12s; }
.doodle { position: absolute; font-family: 'Arial Black', sans-serif; z-index: 2; pointer-events: none; }
.doodle-star { font-size: 34px; color: var(--coral); -webkit-text-stroke: 1.3px var(--ink); top: 57px; left: 21px; transform: rotate(-12deg); }
.doodle-arrow { font-size: 48px; color: var(--ink); right: 10px; top: 113px; transform: rotate(42deg); }
.fan-caption { position: absolute; bottom: 0; left: 0; right: 0; font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.lobby-description { font-size: 13px; line-height: 1.75; max-width: 420px; margin: 9px 0 11px; color: #4e5260; }
.play-facts { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.play-facts span { background: #fff; border: 1.5px solid var(--ink); border-radius: 5px; padding: 5px 9px; font-size: 10px; font-weight: 800; }
.arcade-button { border: 2.5px solid var(--ink); border-radius: 13px; box-shadow: 0 6px 0 var(--ink); background: var(--blue); color: white; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 23px; font-size: 19px; font-weight: 900; letter-spacing: .3px; min-height: 60px; transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease); }
.arcade-button:hover { background: #2667df; transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.arcade-button:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.start-button { width: 330px; max-width: 100%; }
.start-button > span:first-child { font-size: 16px; }
.start-button > span:last-child { font-size: 24px; }
.start-hint { margin: 18px 0 0; font-size: 11px; font-weight: 800; color: #454957; }
.example-hint { font-size: 10px; margin: 8px 0 0; color: var(--muted); }
.site-footer { width: min(1000px,calc(100% - 40px)); margin: 15px auto 0; padding: 0 0 19px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: #626875; font-size: 10px; }
.site-footer p { margin: 0; line-height: 2.6; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer button { background: none; border: none; color: inherit; padding: 5px 0; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.play-screen { width: min(790px,100%); margin: 32px auto 0; animation: screen-in .4s var(--ease); }
.hud { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 14px; }
.hud-left { display: flex; flex-direction: column; gap: 9px; }
.world-badge { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 1px; font-weight: 900; }
.world-badge > span:first-child { font-size: 24px; line-height: 1; }
#round-counter { font-size: 11px; font-weight: 800; color: var(--muted); }
.hud-score { display: grid; grid-template-columns: 1fr 33px; align-items: center; text-align: right; column-gap: 10px; }
.hud-score > span:first-child { grid-column: 1; font-size: 9px; color: #d94067; font-weight: 900; letter-spacing: 1px; }
#total-score { grid-column: 1; font-size: 38px; line-height: 1.05; font-weight: 900; font-variant-numeric: tabular-nums; }
.score-star { grid-column: 2; grid-row: 1 / 3; color: var(--yellow); font-size: 34px; -webkit-text-stroke: 1.5px var(--ink); transform: rotate(8deg); }
.progress-steps { display: flex; gap: 7px; list-style: none; padding: 0; margin: 0 0 20px; }
.progress-steps li { height: 10px; flex: 1; border: 1.5px solid var(--ink); background: #fff; border-radius: 3px; transition: background .25s var(--ease); }
.progress-steps .current { background: var(--yellow); }
.progress-steps .answered { background: var(--blue); }
.progress-steps .skipped { background: #b9bfc8; }
.game-stage { position: relative; }
.game-stage h2[tabindex="-1"]:focus { outline: none; }
.stage-content { background: white; border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 0 7px 0 var(--ink); padding: 30px 34px 24px; animation: screen-in .35s var(--ease); position: relative; }
.question-topline, .result-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.question-number { font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.question-tag, .result-status { margin-left: auto; background: #e5f7ee; border: 1.5px solid var(--ink); padding: 5px 9px; border-radius: 5px; font-size: 9px; letter-spacing: .7px; font-weight: 900; }
.question-symbol { display: grid; place-items: center; font-size: 24px; font-weight: 900; width: 38px; height: 38px; color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); box-shadow: 2px 3px 0 var(--ink); transform: rotate(7deg); }
.question-title { font-size: clamp(25px,3.4vw,36px); font-weight: 900; line-height: 1.27; letter-spacing: -.9px; margin: 28px 0 14px; }
.question-scope { font-size: 11px; color: #686c76; margin: 0 0 26px; }
.answer-form label { font-size: 12px; font-weight: 900; display: block; margin-bottom: 9px; }
.answer-input-wrap { position: relative; }
.answer-input-wrap input { height: 58px; width: 100%; border: 2px solid var(--ink); border-radius: 10px; padding: 0 42px 0 16px; color: var(--ink); background: #fffdf3; font-size: 17px; transition: box-shadow .15s var(--ease), background .15s var(--ease); }
.answer-input-wrap input:focus { outline: none; box-shadow: 0 0 0 4px #cfe0ff; background: white; }
.answer-input-wrap input[aria-invalid="true"] { border-color: #b43e56; }
.answer-input-wrap input::placeholder { color: #808391; font-size: 14px; }
.answer-input-wrap > span { position: absolute; right: 16px; top: 16px; color: #777c87; }
.answer-hint { font-size: 11px; line-height: 1.6; color: #646976; margin: 10px 0 20px; }
.primary-button { width: 100%; background: var(--coral); color: var(--ink); font-size: 17px; min-height: 57px; }
.primary-button:hover { background: #ff86a0; }
.primary-button > span:last-child { font-size: 22px; }
.skip-button { background: transparent; border: none; min-height: 44px; display: flex; align-items: center; gap: 13px; margin: 14px auto -7px; font-size: 11px; color: #686d78; font-weight: 700; }
.skip-button:hover { color: var(--ink); text-decoration: underline; }
.answer-feedback { padding: 12px 14px; border: 1.5px solid #a9495b; border-radius: 8px; background: #fff0f1; margin: 0 0 17px; animation: nudge .25s var(--ease); }
.answer-feedback p { color: #8c3042; font-size: 12px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.suggestions:empty { display: none; }
.suggestions button { margin-top: 9px; padding: 9px 11px; border: 1.5px solid var(--ink); border-radius: 6px; background: white; font-size: 12px; font-weight: 700; }
.collection { margin: 30px 0 27px; }
.collection-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.collection-heading h2 { font-size: 11px; font-weight: 900; letter-spacing: 1px; margin: 0; }
.collection-heading > span { color: var(--muted); font-size: 10px; }
.round-notes { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.round-notes li { min-width: 0; }
.card-slot { height: 158px; border: 2px dashed #8eaa9e; background: #f4fbf5b3; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; }
.card-slot > strong { font-size: 39px; color: #8aaba0; font-weight: 900; }
.card-slot > small { font-size: 10px; font-weight: 700; color: #6b7d77; }
.card-slot.current { border-color: var(--ink); background: #fff5c2; }
.card-slot.current > strong { color: #b19631; }
.collected-card { padding: 0; border: 0; background: none; width: 100%; text-align: initial; display: block; transition: transform .2s var(--ease); border-radius: 9px; }
.collected-card:hover { transform: translateY(-6px) rotate(-2deg); }
.country-card { --card-color: #bfe7da; --card-soft: #eefbf6; display: flex; flex-direction: column; min-width: 0; height: 100%; background: var(--card-soft); border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); padding: 8px; overflow: hidden; position: relative; color: var(--ink); }
.country-card.rare, .rare { --card-color: #a8c8ff; --card-soft: #edf3ff; }
.country-card.superRare, .superRare { --card-color: #ffe17c; --card-soft: #fff7d7; }
.card-top { display: flex; align-items: center; gap: 5px; position: relative; z-index: 1; }
.tier-code { background: var(--ink); color: var(--card-color); border-radius: 4px; font-weight: 900; font-size: 10px; padding: 3px 5px; }
.tier-name { font-size: 7px; font-weight: 900; letter-spacing: .5px; }
.card-spark { margin-left: auto; font-size: 13px; }
.card-illustration { display: grid; place-items: center; flex: 1; position: relative; overflow: hidden; margin: 7px 0; background-color: var(--card-color); background-image: radial-gradient(#fff8 1px,transparent 1px); background-size: 7px 7px; border: 1.5px solid var(--ink); border-radius: 7px; min-height: 45px; }
.country-code { font-family: 'Arial Black',sans-serif; font-weight: 900; font-size: 45px; letter-spacing: -3px; line-height: 1; z-index: 1; color: var(--ink); text-shadow: 2px 3px 0 #ffffffd9; transform: rotate(-6deg); }
.card-orbit { width: 110px; height: 50px; border: 1px solid #fff8; border-radius: 50%; position: absolute; transform: rotate(-32deg); }
.orbit-two { transform: rotate(42deg); width: 100px; height: 95px; }
.card-star { position: absolute; font-size: 17px; color: white; -webkit-text-stroke: .5px var(--ink); }
.star-one { left: 8px; top: 5px; }
.star-two { right: 5px; bottom: 4px; font-size: 23px; }
.card-nameplate { text-align: center; z-index: 1; }
.country-name { display: block; font-size: 11px; line-height: 1.18; font-weight: 900; overflow-wrap: anywhere; }
.country-region { display: block; font-size: 7px; font-weight: 700; color: #616775; margin-top: 3px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; padding-top: 5px; border-top: 1px solid #25243226; gap: 4px; }
.card-series { font-size: 5px; letter-spacing: .3px; font-weight: 800; }
.card-points { font-size: 12px; font-weight: 900; }
.round-notes .country-card { height: 158px; padding: 7px; border-radius: 10px; }
.round-notes .tier-name { font-size: 6px; }
.round-notes .country-code { font-size: 33px; }
.round-notes .country-name { font-size: 10px; }
.round-notes .country-region { display: none; }
.result-content { overflow: hidden; }
.result-status { background: var(--yellow); }
.reward-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 34px; align-items: center; margin: 27px 0 24px; }
.reward-card-slot { perspective: 1000px; min-width: 0; }
.reward-card-slot .country-card { height: 291px; padding: 11px; box-shadow: 3px 7px 0 var(--ink); transform: rotate(-3deg); animation: card-reveal .75s var(--ease); }
.reward-card-slot .tier-code { font-size: 16px; padding: 5px 8px; }
.reward-card-slot .tier-name { font-size: 9px; }
.reward-card-slot .country-code { font-size: 79px; }
.reward-card-slot .country-name { font-size: 18px; }
.reward-card-slot .country-region { font-size: 9px; }
.reward-card-slot .card-series { font-size: 7px; }
.reward-card-slot .card-points { font-size: 19px; }
.reward-card-slot .card-orbit { width: 200px; height: 110px; }
.reward-card-slot .orbit-two { width: 135px; height: 160px; }
.result-prompt { font-size: 12px; color: #666b78; line-height: 1.6; margin: 0 0 17px; }
.result-cheer { margin: 0 0 9px; font-family: 'Arial Black','Microsoft YaHei',sans-serif; font-size: clamp(26px,3.2vw,39px); line-height: 1.1; font-weight: 900; letter-spacing: -1.7px; color: #e64c6d; transform: rotate(-3deg); }
.points-burst { display: flex; align-items: baseline; gap: 9px; margin: 15px 0; }
.result-points { font: 900 63px/.98 'Arial Black',sans-serif; letter-spacing: -5px; }
.points-burst > span:last-child { font-size: 13px; font-weight: 900; }
.result-explanation { font-size: 12px; color: #545b68; line-height: 1.7; margin: 16px 0 0; }
.rating-explanation { font-size: 10px; color: #656b77; background: #f6f7f9; border-radius: 6px; padding: 10px 12px; line-height: 1.6; text-align: center; margin: 0 0 17px; }
.answer-list-details { border-top: 1.5px solid #e3e5e9; border-bottom: 1.5px solid #e3e5e9; margin: 0 0 22px; }
.answer-list-details summary { display: flex; align-items: center; gap: 8px; padding: 14px 0; font-size: 11px; font-weight: 800; list-style: none; cursor: pointer; }
.answer-list-details summary::-webkit-details-marker { display: none; }
.answer-list-details summary > span:last-child { margin-left: auto; font-size: 19px; line-height: 1; transition: transform .25s var(--ease); }
.answer-list-details[open] summary > span:last-child { transform: rotate(45deg); }
.answer-count { background: #edf1f7; border-radius: 4px; padding: 2px 5px; font-size: 9px; }
.accepted-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 15px; max-height: 210px; overflow: auto; padding-right: 4px; animation: screen-in .3s var(--ease); }
.accepted-country { display: flex; justify-content: space-between; align-items: start; gap: 8px; border-bottom: 1px solid #eee; padding: 6px 0; font-size: 11px; }
.accepted-country > span { overflow-wrap: anywhere; }
.accepted-country strong { padding: 1px 5px; border-radius: 3px; font-size: 10px; background: #fff0b2; }
.answer-source { font-size: 10px; color: var(--muted); margin: 12px 0; }
.reward-card-slot .card-slot { min-height: 291px; background: #eaf0ef; }
.reward-card-slot .card-slot > strong { font-size: 80px; }
.result-content.is-skipped .confetti { display: none; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.confetti i { position: absolute; width: 8px; height: 16px; background: var(--coral); top: 30%; left: 8%; opacity: 0; animation: confetti 1.2s var(--ease) .1s; }
.confetti i:nth-child(2n) { background: var(--blue); width: 6px; height: 12px; }
.confetti i:nth-child(3n) { background: var(--yellow); border-radius: 50%; width: 12px; height: 12px; }
.confetti i:nth-child(2) { left: 16%; animation-delay: .2s; }
.confetti i:nth-child(3) { left: 24%; top: 12%; }
.confetti i:nth-child(4) { left: 32%; top: 20%; animation-delay: .15s; }
.confetti i:nth-child(5) { left: 40%; top: 3%; }
.confetti i:nth-child(6) { left: 47%; top: 18%; animation-delay: .3s; }
.confetti i:nth-child(7) { left: 56%; top: 2%; }
.confetti i:nth-child(8) { left: 64%; top: 13%; animation-delay: .15s; }
.confetti i:nth-child(9) { left: 72%; top: 9%; }
.confetti i:nth-child(10) { left: 80%; top: 19%; animation-delay: .2s; }
.confetti i:nth-child(11) { left: 88%; top: 7%; }
.confetti i:nth-child(12) { left: 94%; top: 20%; animation-delay: .25s; }
.summary-content { text-align: center; padding-bottom: 27px; margin-bottom: 32px; }
.complete-banner { display: inline-flex; align-items: center; gap: 14px; padding: 7px 15px; border: 2px solid var(--ink); background: var(--yellow); box-shadow: 0 3px 0 var(--ink); transform: rotate(-3deg); font-size: 12px; font-weight: 900; margin: 7px 0 20px; border-radius: 5px; }
.summary-content h2 { font-size: 25px; letter-spacing: -.5px; margin: 3px 0 12px; font-weight: 900; }
.summary-score { margin: 10px 0 0; }
.summary-score strong { font: 900 70px/1.1 'Arial Black',sans-serif; letter-spacing: -4px; color: var(--blue); -webkit-text-stroke: 1px var(--ink); text-shadow: 0 3px 0 var(--ink); }
.summary-score > span { font-size: 18px; font-weight: 900; color: #747983; margin-left: 9px; }
.summary-cheer { font-size: 13px; font-weight: 800; margin: 11px 0 21px; color: #cc3d5e; }
.summary-cards { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin: 27px 0 22px; }
.summary-cards .country-card { height: 174px; padding: 7px; }
.summary-cards .card-slot { height: 174px; }
.summary-cards > :nth-child(odd) { transform: rotate(-3deg); }
.summary-cards > :nth-child(even) { transform: rotate(3deg) translateY(-5px); }
.summary-caption { font-size: 11px; color: var(--muted); margin: 0 0 23px; }
.again-button { width: 340px; max-width: 100%; margin: 0 auto; }
.summary-note { font-size: 10px; color: var(--muted); margin: 19px 0 0; }
.notice { background: #fff1bb; border: 2px solid #78602a; border-radius: 8px; padding: 12px 16px; font-size: 12px; line-height: 1.6; margin: 20px 0 0; }
dialog { width: min(550px,calc(100% - 28px)); max-height: calc(100dvh - 40px); border: 2.5px solid var(--ink); border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 8px 0 var(--ink); padding: 23px 28px 28px; }
dialog[open] { animation: dialog-in .3s var(--ease); }
dialog::backdrop { background: #25243280; backdrop-filter: blur(2px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.dialog-brand { font-size: 9px; font-weight: 900; letter-spacing: 2px; color: #787d88; }
.close-button { border: 2px solid var(--ink); background: #fff0bd; border-radius: 9px; width: 42px; height: 42px; box-shadow: 0 3px 0 var(--ink); font-size: 23px; font-weight: 900; }
dialog h2 { font-size: 25px; font-weight: 900; line-height: 1.3; margin: 24px 0 20px; letter-spacing: -.5px; }
#dialog-body { font-size: 13px; line-height: 1.75; }
.how-steps { list-style: none; counter-reset: step; padding: 0; }
.how-steps li { counter-increment: step; padding-left: 45px; position: relative; margin-bottom: 23px; }
.how-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 7px; box-shadow: 0 2px 0 var(--ink); text-align: center; font-size: 16px; font-weight: 900; background: var(--yellow); }
.how-steps strong { font-size: 14px; }
.how-steps p { color: #616773; margin: 5px 0; }
.dialog-callout { background: #edf5ff; border: 1.5px solid #9fbbdf; border-radius: 7px; padding: 12px 15px; font-size: 11px; }
.rating-scale { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 25px 0; }
.rating-scale > div { --card-color: #bfe7da; padding: 13px; display: flex; flex-direction: column; align-items: center; border: 2px solid var(--ink); border-radius: 10px; background: var(--card-color); box-shadow: 0 4px 0 var(--ink); }
.rating-scale .rare { --card-color: #a8c8ff; }
.rating-scale .superRare { --card-color: #ffe17c; }
.rating-scale b { font-size: 11px; }
.rating-scale strong { font: 900 30px 'Arial Black',sans-serif; }
.rating-scale span { font-size: 8px; font-weight: 900; }
.source-links { padding-left: 20px; }
.dialog-card { width: 220px; height: 280px; margin: 0 auto 24px; }
.dialog-card .country-code { font-size: 70px; }
.dialog-card .country-name { font-size: 17px; }
.dialog-card .country-region { font-size: 10px; }
@keyframes screen-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes deal { from { opacity: 0; translate: 0 28px; scale: .92; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes card-reveal { 0% { opacity: 0; transform: rotateY(85deg) rotate(-3deg) scale(.85); } 65% { opacity: 1; transform: rotateY(-10deg) rotate(-3deg) scale(1.04); } 100% { opacity: 1; transform: rotateY(0) rotate(-3deg) scale(1); } }
@keyframes confetti { 0% { opacity: 0; transform: translateY(-20px) rotate(-25deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(230px) rotate(220deg); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes nudge { 0% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 100% { transform: translateX(0); } }
@media (max-width: 700px) {
  .site-header { padding: 16px 20px 0; }
  .game-settings { gap: 7px; }
  .setting-button { width: 37px; height: 37px; padding: 7px; justify-content: center; min-height: 37px; }
  .setting-button > span:last-child { display: none; }
  .how-button > span:first-child { display: block; }
  .language-picker button { min-width: 35px; }
  .lobby-screen { padding-top: 33px; min-height: calc(100dvh - 151px); }
  .game-title { font-size: 66px; }
  .title-star { right: -10px; }
  .edition-pill { font-size: 8px; letter-spacing: 1.3px; margin-bottom: 19px; }
  .lobby-tagline { font-size: 14px; margin-top: 24px; }
  .lobby-cards-wrap { width: 370px; height: 224px; margin: 9px 0 2px; }
  .lobby-cards { height: 206px; padding-top: 23px; }
  .lobby-cards .country-card { width: 113px; height: 161px; padding: 7px; }
  .lobby-cards .country-code { font-size: 37px; }
  .lobby-cards .country-name { font-size: 10px; }
  .lobby-cards .tier-name { font-size: 6px; }
  .lobby-cards .country-region { font-size: 6px; }
  .doodle-star { top: 24px; left: 7px; font-size: 25px; }
  .doodle-arrow { right: 0; top: 145px; font-size: 30px; }
  .fan-caption { font-size: 8px; letter-spacing: 1px; }
  .lobby-description { font-size: 12px; max-width: 325px; margin: 7px 0 13px; }
  .play-facts { gap: 5px; margin-bottom: 18px; }
  .play-facts span { font-size: 9px; padding: 5px 7px; }
  .start-button { width: 300px; min-height: 58px; font-size: 19px; }
  .site-footer { display: block; text-align: center; font-size: 9px; margin-top: 11px; }
  .site-footer nav { justify-content: center; gap: 15px; }
  .site-footer button { font-size: 9px; }
  .play-screen { margin-top: 28px; }
  .hud { margin-bottom: 13px; }
  .hud-left { gap: 5px; }
  .world-badge { font-size: 8px; }
  #total-score { font-size: 32px; }
  .hud-score { column-gap: 6px; grid-template-columns: 1fr 26px; }
  .score-star { font-size: 27px; }
  .hud-score > span:first-child { font-size: 8px; }
  .progress-steps { margin-bottom: 17px; }
  .stage-content { padding: 23px 22px 20px; border-radius: 16px; }
  .question-title { margin-top: 26px; font-size: 28px; letter-spacing: -.5px; }
  .question-tag { font-size: 8px; padding: 5px 6px; }
  .question-symbol { width: 32px; height: 32px; font-size: 21px; }
  .question-number { font-size: 10px; }
  .primary-button { font-size: 15px; min-height: 56px; padding: 14px 16px; border-radius: 11px; }
  .answer-hint { font-size: 10px; line-height: 1.7; margin-bottom: 18px; }
  .question-scope { font-size: 10px; margin-bottom: 24px; }
  .collection { margin-top: 27px; }
  .collection-heading > span { display: none; }
  .round-notes { gap: 7px; }
  .round-notes .country-card { padding: 4px; height: 113px; border-width: 1.5px; border-radius: 7px; box-shadow: 0 3px 0 var(--ink); }
  .round-notes .card-top { gap: 0; }
  .round-notes .tier-code { font-size: 7px; padding: 2px 4px; }
  .round-notes .tier-name, .round-notes .card-spark, .round-notes .card-series { display: none; }
  .round-notes .card-illustration { min-height: 25px; margin: 4px 0; border-width: 1px; border-radius: 4px; }
  .round-notes .country-code { font-size: 22px; letter-spacing: -1px; }
  .round-notes .country-name { font-size: 7px; line-height: 1.2; }
  .round-notes .card-bottom { justify-content: center; padding-top: 3px; margin-top: 3px; }
  .round-notes .card-points { font-size: 9px; }
  .round-notes .card-star { display: none; }
  .card-slot { height: 113px; border-radius: 8px; gap: 8px; }
  .card-slot > strong { font-size: 28px; }
  .card-slot > small { font-size: 7px; }
  .reward-layout { grid-template-columns: 145px minmax(0,1fr); gap: 20px; margin: 25px 0; }
  .reward-card-slot .country-card { height: 215px; padding: 7px; border-width: 2px; border-radius: 10px; box-shadow: 2px 5px 0 var(--ink); }
  .reward-card-slot .tier-code { font-size: 11px; padding: 4px 5px; }
  .reward-card-slot .tier-name { font-size: 6px; }
  .reward-card-slot .country-code { font-size: 52px; letter-spacing: -3px; }
  .reward-card-slot .country-name { font-size: 13px; }
  .reward-card-slot .country-region { font-size: 7px; }
  .reward-card-slot .card-series { font-size: 5px; }
  .reward-card-slot .card-points { font-size: 14px; }
  .result-prompt { font-size: 11px; margin-bottom: 15px; }
  .result-cheer { font-size: 23px; line-height: 1.1; letter-spacing: -.8px; }
  .result-points { font-size: 43px; letter-spacing: -3px; }
  .points-burst { gap: 5px; margin: 12px 0; }
  .points-burst > span:last-child { font-size: 9px; }
  .result-explanation { font-size: 11px; line-height: 1.7; margin-top: 11px; }
  .rating-explanation { font-size: 9px; padding: 9px; }
  .reward-card-slot .card-slot { min-height: 215px; }
  .reward-card-slot .card-slot > strong { font-size: 60px; }
  .summary-content { padding: 23px 15px; }
  .summary-content h2 { font-size: 20px; line-height: 1.4; }
  .summary-score strong { font-size: 60px; }
  .summary-score > span { font-size: 16px; }
  .summary-cards { gap: 6px; }
  .summary-cards .country-card { height: 118px; padding: 4px; border-width: 1.5px; border-radius: 6px; }
  .summary-cards .country-code { font-size: 23px; letter-spacing: -1px; }
  .summary-cards .country-name { font-size: 7px; }
  .summary-cards .card-illustration { min-height: 26px; margin: 4px 0; }
  .summary-cards .tier-code { font-size: 7px; padding: 2px 4px; }
  .summary-cards .tier-name, .summary-cards .card-spark, .summary-cards .country-region, .summary-cards .card-series, .summary-cards .card-star { display: none; }
  .summary-cards .card-bottom { justify-content: center; padding-top: 3px; margin-top: 4px; }
  .summary-cards .card-points { font-size: 9px; }
  .summary-cards .card-slot { height: 118px; }
  .again-button { font-size: 17px; min-height: 55px; }
}
@media (max-width: 370px) {
  main,.site-footer { width: calc(100% - 28px); }
  .site-header { padding: 14px 14px 0; gap: 10px; }
  .mini-brand img { width: 29px; height: 29px; }
  .mini-brand span { display: none; }
  .game-title { font-size: 59px; }
  .lobby-cards-wrap { width: 300px; }
  .lobby-cards .country-card { width: 102px; height: 151px; }
  .lobby-cards .tier-name { display: none; }
  .lobby-tagline { font-size: 12px; }
  .lobby-description { font-size: 11px; max-width: 282px; }
  .stage-content { padding: 21px 17px 18px; }
  .question-title { font-size: 25px; }
  .reward-layout { grid-template-columns: 126px minmax(0,1fr); gap: 16px; }
  .reward-card-slot .country-card { height: 199px; }
  .reward-card-slot .tier-name { display: none; }
  .reward-card-slot .country-name { font-size: 12px; }
  .result-cheer { font-size: 20px; }
  .result-points { font-size: 39px; }
  dialog { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .confetti { display: none; }
}
html[data-motion="reduced"] *,html[data-motion="reduced"] *::before,html[data-motion="reduced"] *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html[data-motion="reduced"] .confetti { display: none; }

[data-start-on-load] .site-header { padding-top: 14px; }
[data-start-on-load] .play-screen { margin-top: 22px; }
.atlas-top, .atlas-footer { width: min(980px, calc(100% - 36px)); margin: auto; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.atlas-top nav, .atlas-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.atlas-top a, .atlas-footer a { color: var(--ink); font-size: 14px; }
.atlas-brand { font-weight: 900; text-decoration: none; letter-spacing: 1px; }
.atlas-main { width: min(800px, calc(100% - 36px)); }
.atlas-main h1 { margin: 13px 0 0; text-align: center; font-family: 'Arial Black', sans-serif; font-size: clamp(35px, 7vw, 65px); color: var(--coral); -webkit-text-stroke: 1px var(--ink); text-shadow: 0 4px var(--ink); line-height: 1.1; }
.atlas-main h1 span { color: var(--ink); text-shadow: 0 4px var(--yellow); }
.atlas-intro { text-align: center; margin: 14px 0 21px; font-weight: 800; }
.atlas-stage { position: relative; min-height: 368px; overflow: hidden; background: #fcfdf8; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 5px var(--ink); }
.atlas-stage iframe { display: block; position: absolute; inset: 0; border: 0; width: 100%; height: 100%; }
.atlas-stage[data-gf-state='playing'] { height: 840px; }
.atlas-stage:fullscreen { width: 100%; height: 100%; }
.atlas-cover { min-height: 366px; display: grid; justify-items: center; align-content: center; gap: 18px; background: repeating-linear-gradient(0deg, #b6dfd666 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, #b6dfd666 0 1px, #f3f9f2 1px 24px); }
.atlas-cover p { margin: 0; font-size: 12px; font-weight: 800; }
.atlas-cover button { width: min(310px, calc(100% - 34px)); }
.atlas-sample { display: flex; justify-content: center; margin: 5px 0 13px; }
.atlas-sample > span { width: clamp(79px, 20vw, 111px); height: clamp(122px, 30vw, 156px); padding: 8px; background: #c6f0df; border: 2px solid var(--ink); border-radius: 9px; box-shadow: 0 5px var(--ink); transform: rotate(-12deg); display: grid; align-content: space-between; font-size: 10px; text-align: center; font-weight: 800; }
.atlas-sample > span:nth-child(2) { background: #bdd7ff; transform: translateY(-4px); z-index: 1; }
.atlas-sample > span:nth-child(3) { background: var(--yellow); transform: rotate(12deg); }
.atlas-sample b { justify-self: start; background: var(--ink); color: white; padding: 3px 5px; border-radius: 3px; font-size: 9px; }
.atlas-sample strong { font-size: clamp(34px, 7vw, 45px); letter-spacing: -1px; }
.atlas-loading { display: none; position: absolute; inset: 0; place-content: center; text-align: center; gap: 12px; font-weight: 800; }
.atlas-stage[data-gf-state='loading'] .atlas-loading { display: grid !important; }
.atlas-stage[data-gf-state='playing'] .atlas-loading { display: none !important; }
.atlas-loading span { font-size: 34px; color: var(--coral); animation: deal .7s var(--ease) infinite alternate; }
.atlas-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }
.atlas-actions button, .atlas-feedback button { border: 2px solid var(--ink); border-radius: 7px; padding: 8px 12px; background: white; font-size: 13px; font-weight: 800; }
.atlas-actions button[aria-pressed='true'] { background: var(--coral); }
.atlas-reading { background: white; border: 2px solid var(--ink); border-radius: 13px; margin: 0 0 20px; padding: 19px 24px; line-height: 1.65; }
.atlas-reading h2 { margin: 14px 0 6px; }
.atlas-reading ol { padding-left: 24px; }
.atlas-reading li { margin: 7px 0; }
.atlas-reading details { border-top: 1px solid #e3e5e9; padding: 8px 0; }
.atlas-reading summary { cursor: pointer; font-weight: 700; }
.atlas-feedback { display: grid; gap: 7px; max-width: 550px; }
.atlas-feedback label { font-weight: 700; }
.atlas-feedback input, .atlas-feedback textarea { border: 1px solid var(--ink); border-radius: 6px; padding: 8px; font: inherit; width: 100%; }
.atlas-feedback button { justify-self: start; background: var(--yellow); }
.atlas-legal h1 { font: 900 clamp(30px, 5vw, 42px) 'Arial Black', sans-serif; }
.atlas-legal { margin-top: 20px; }
@media (max-width: 600px) {
  .atlas-cover, .atlas-stage { min-height: 320px; }
  .atlas-top { min-height: 53px; }
  .atlas-top a, .atlas-footer a { font-size: 12px; }
  .atlas-reading { padding: 15px; }
  .atlas-stage[data-gf-state='playing'] { height: 820px; }
}
