@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');*{box-sizing:border-box}body{margin:0;background:#f6f5eb;color:#193d31;font-family:'DM Sans',sans-serif}header{height:70px;background:#fff;display:flex;align-items:center;padding:0 6%;gap:35px;border-bottom:1px solid #e3e9df}header b{letter-spacing:1px}header b span,em{color:#d98751}header small{border-left:1px solid #dce4d6;padding-left:34px;color:#9baaa0;font-size:9px;letter-spacing:2px}header button{margin-left:auto;background:none;border:0;color:#193d31;font-weight:700;cursor:pointer}main{max-width:1500px;margin:auto;padding:50px 6%}.intro{display:flex;justify-content:space-between;align-items:end;margin-bottom:30px}label{font-size:10px;font-weight:700;letter-spacing:2px;color:#d48755}h1{font:700 clamp(42px,5vw,66px)/1.05 'Playfair Display',serif;letter-spacing:-2px;margin:10px 0}p{color:#849488;font-size:13px;line-height:1.6}.edition{text-align:right;color:#91a195;font-size:9px;letter-spacing:1.5px;line-height:2}.edition strong{font:700 27px 'Playfair Display';color:#3a5c4a}.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.game,.scorecard,.how{background:white;border:1px solid #e1e9de;border-radius:6px}.game{padding:28px}.top{display:flex;justify-content:space-between}h2{font:700 28px 'Playfair Display';margin:8px 0 0}.top p{margin:6px 0}.inning{text-align:right;color:#94a49a;font-size:9px;letter-spacing:1.5px}.inning strong{font:700 24px 'Playfair Display';color:#193d31}.hits{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:25px 0}.hits button{display:grid;gap:5px;text-align:left;background:#f8faf5;border:1px solid #e0e9dc;border-radius:5px;padding:13px;color:#193d31;cursor:pointer}.hits button:hover,.hits button.selected{background:#e5f0df;border-color:#83a88a}.hits small,.hits span{color:#91a294;font-size:10px}.hits b{font-size:14px}.maphead{display:flex;justify-content:space-between;padding:13px 0;font-size:9px;letter-spacing:1.3px;color:#8da192;font-weight:700}.mapwrap{position:relative;background:#e8f2e8;border:1px solid #dce9dd;border-radius:4px;overflow:hidden}svg{display:block;width:100%;touch-action:none}.country{fill:#a9c6a7;stroke:#e8f2e8;stroke-width:.65;cursor:crosshair}.country:hover{fill:#739f79}.country.correct{fill:#edaa6c}.graticule{fill:none;stroke:#cfe1d0;stroke-width:.5}#note{position:absolute;bottom:14px;left:14px;background:#fffff1e8;padding:10px;font-size:11px;color:#6d8371;pointer-events:none}#feedback{min-height:24px;color:#bd6e38;font-weight:700;font-size:14px}.cardtitle{background:#204b38;color:white;padding:19px;font-size:10px;letter-spacing:1.5px;font-weight:700}.cardtitle span{float:right;color:#b1d3af;font-size:8px}.score{display:flex;justify-content:space-between;padding:25px 23px 10px}.score small{display:block;color:#96a79a;font-size:9px;letter-spacing:1px}.score strong{display:block;font:700 55px/1 'Playfair Display'}.outs{text-align:right}.outs div{display:flex;gap:6px;margin:13px 0 8px}.outs i{width:12px;height:12px;border-radius:50%;background:#e1e9df}.outs i.on{background:#e68c4e}.diamond{height:180px;position:relative;margin:0 25px}.field{position:absolute;width:105px;height:105px;border:1px solid #c9d9c9;transform:rotate(45deg);top:27px;left:calc(50% - 52px);background:#f4f8f1}.base{position:absolute;width:15px;height:15px;background:#dce8d9;transform:rotate(45deg);z-index:1}.base.on{background:#e7975c}.second{top:18px;left:calc(50% - 7px)}.first{top:91px;left:calc(50% + 66px)}.third{top:91px;left:calc(50% - 80px)}.home{position:absolute;top:150px;left:calc(50% - 8px);font-size:19px;color:#6e9371}.fieldlabel{position:absolute;top:90px;left:0;right:0;text-align:center;color:#b0c2af;font-size:9px;letter-spacing:2px}.key{border-top:1px solid #edf1eb;padding:16px 22px;font-size:9px;letter-spacing:1px;color:#a3b0a3}.how{margin-top:18px;padding:22px}.how h3{font:700 22px 'Playfair Display';margin:8px 0}.how ol{padding-left:20px;color:#829185;font-size:12px;line-height:1.6}.how li{padding-left:5px;margin:12px 0}.how b{color:#42654c}.how p{border-top:1px solid #edf1eb;padding-top:14px;font-size:11px}@media(max-width:850px){main{padding:35px 4%}.layout{grid-template-columns:1fr}.edition,header small{display:none}aside{display:grid;grid-template-columns:1fr 1fr;gap:15px}.how{margin:0}}@media(max-width:500px){.game{padding:16px}.hits{gap:5px}.hits button{padding:9px 6px}.hits b{font-size:11px}aside{display:block}.how{margin-top:15px}.maphead span:last-child{display:none}}
/* A larger, clearer field with a compact playbook below it. */
@media (min-width:851px){.layout{grid-template-columns:minmax(0,1fr) minmax(330px,380px)}}
.scorecard{overflow:hidden}.diamond{height:auto;aspect-ratio:1/1;width:calc(100% - 32px);max-width:340px;margin:8px auto 12px;position:relative;isolation:isolate}.outfield{position:absolute;inset:4%;border-radius:50%;background:repeating-radial-gradient(circle at center,#e7f0df 0 25px,#edf5e8 26px 50px);border:1px solid #d4e4d2}.field{width:54%;height:54%;top:23%;left:23%;background:#f2e3c7;border:2px solid #fffaf1;box-shadow:0 0 0 1px #d6c7a9}.base{width:19px;height:19px;border:3px solid white;box-shadow:0 1px 4px #59735f66;background:#d0ddce;z-index:2;transition:background .2s,box-shadow .2s}.base.on{background:#ef8c4a;box-shadow:0 0 0 5px #f2bb7b77,0 1px 4px #59735f66}.second{top:11.8%;left:50%;transform:translate(-50%,-50%) rotate(45deg)}.first{top:50%;left:88.2%;transform:translate(-50%,-50%) rotate(45deg)}.third{top:50%;left:11.8%;transform:translate(-50%,-50%) rotate(45deg)}.home{top:88.2%;left:50%;transform:translate(-50%,-50%);font-size:0;width:20px;height:18px;background:#fff;border:1px solid #c2cbbd;clip-path:polygon(0 0,100% 0,100% 55%,50% 100%,0 55%);z-index:2}.fieldlabel{top:50%;transform:translateY(-50%);font-size:10px;letter-spacing:2px;color:#a99b80}.key{color:#84968a}.how{padding:0;overflow:hidden}.how summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;list-style:none;padding:17px 21px}.how summary::-webkit-details-marker{display:none}.how summary span:first-child{display:grid;gap:5px}.how summary strong{font:700 18px 'Playfair Display',serif}.chevron{font-size:22px;color:#66866c;transition:transform .2s}.how[open] .chevron{transform:rotate(180deg)}.playbook-content{padding:0 21px 15px}.how ol{margin-top:2px}.how summary:focus-visible{outline:3px solid #d98751;outline-offset:-3px}@media(max-width:850px){aside{display:block}.scorecard{max-width:none}.how{margin-top:15px}.diamond{max-width:330px}}
.game-settings{margin:22px 0 0;display:flex;align-items:center;gap:18px;padding:14px 16px;background:#f6f9f3;border:1px solid #e1eadf;border-radius:5px}.game-settings>div{display:grid;gap:6px;flex:0 0 145px}.game-settings label{font-size:9px;letter-spacing:1.3px;color:#718b78}.game-settings select{font:700 14px 'DM Sans',sans-serif;color:#193d31;background:#fff;border:1px solid #cbdacb;border-radius:4px;padding:8px 10px;cursor:pointer}.game-settings select:disabled{opacity:.7;cursor:not-allowed}.game-settings p{margin:0;font-size:11px;line-height:1.5;color:#6e8472}.hits{margin-top:16px}.hits button:disabled{opacity:.48;cursor:not-allowed;background:#f3f5f0}.hits button:focus-visible,.game-settings select:focus-visible{outline:3px solid #d98751;outline-offset:2px}.record{border-top:1px solid #edf1eb;padding:16px 22px;display:flex;align-items:baseline;gap:8px;color:#92a398;font-weight:700;letter-spacing:1px;font-size:9px}.record strong{margin-left:auto;font:700 23px 'Playfair Display',serif;color:#234f3b}.record span:last-child{font-size:8px}@media(max-width:500px){.game-settings{align-items:start;flex-direction:column;gap:8px}.game-settings>div{flex-basis:auto;width:100%}}

/* Keep the game state legible, including scores with several digits. */
.inning{flex:none;align-self:flex-start;min-width:104px;margin-left:16px;padding:11px 14px;text-align:center;background:#eaf2e6;border:1px solid #cbdcc8;border-radius:6px;color:#547260;font-size:10px;font-weight:700;line-height:1.35;letter-spacing:1.6px}
.inning strong{display:block;margin-top:3px;color:#173f2d;font:700 25px/1.1 'Playfair Display',serif;letter-spacing:0;white-space:nowrap}
.score{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px;padding:22px 22px 12px}
.score>div:first-child{min-width:0}.score small{font-weight:700;line-height:1.4}.score strong{max-width:100%;margin:4px 0;color:#173f2d;font:700 clamp(38px,4vw,55px)/1 'Playfair Display',serif;overflow-wrap:anywhere}.outs{min-width:94px}.outs div{justify-content:flex-end}.record{flex-wrap:wrap}.record strong{overflow-wrap:anywhere;max-width:100%}
.game-ball{position:absolute;left:50%;top:88.2%;width:16px;height:16px;border:1px solid #c7c7bd;border-radius:50%;background:linear-gradient(105deg,transparent 35%,#c86d61 36% 40%,transparent 41% 59%,#c86d61 60% 64%,transparent 65%),#fff;box-shadow:0 2px 4px #24493255;transform:translate(-50%,-50%);z-index:4;opacity:0;pointer-events:none}
@media(max-width:500px){.inning{min-width:82px;padding:9px;margin-left:10px}.inning strong{font-size:21px}.score strong{font-size:48px}}
@media(prefers-reduced-motion:reduce){.game-ball{display:none}.base,.chevron{transition:none}}

/* Give the reset action a clear, touch-friendly home in the header. */
header button{padding:10px 16px;border:1px solid #204b38;border-radius:5px;background:#204b38;color:#fff;font:700 12px 'DM Sans',sans-serif;letter-spacing:.2px;box-shadow:0 2px 5px #193d3120;transition:background .2s,box-shadow .2s}header button:hover{background:#32674d;box-shadow:0 3px 8px #193d3135}header button:focus-visible{outline:3px solid #d98751;outline-offset:3px}

/* The answer's flag becomes the runner and stays on its base. */
.game-ball{display:none}
.runner-layer{position:absolute;inset:0;z-index:5;pointer-events:none}
.flag-runner{position:absolute;width:36px;height:27px;display:grid;place-items:center;transform:translate(-50%,-50%);background:#fff;border:2px solid #fff;border-radius:3px;box-shadow:0 2px 7px #193d3166;color:#42654c;font-size:16px;overflow:hidden}
.flag-runner img{display:block;width:100%;height:100%;object-fit:cover}
.confetti-piece{position:absolute;z-index:6;left:var(--x);top:-5%;width:7px;height:11px;background:var(--color);pointer-events:none;animation:confetti-fall 1.65s ease-in var(--delay) both}
.confetti-piece:nth-child(3n){width:5px;height:8px;border-radius:50%}
@keyframes confetti-fall{from{opacity:1;transform:translate(0,0) rotate(0deg)}to{opacity:0;transform:translate(var(--drift),340px) rotate(var(--spin))}}
@media(prefers-reduced-motion:reduce){.confetti-piece{display:none}}
/* Give the world and its country boundaries a clearer edge. */
.globe-outline{fill:#e4f0e4;stroke:#6d9878;stroke-width:1.8;vector-effect:non-scaling-stroke;pointer-events:none}.country{stroke:#78a280;stroke-width:.8;vector-effect:non-scaling-stroke}.graticule{stroke:#c5ddc7;pointer-events:none}

/* A ballpark-style diamond: grass, dirt basepaths, and clear raised bags. */
.outfield{inset:3%;border:5px solid #e3ebd9;background:repeating-linear-gradient(135deg,#bdd5ad 0 24px,#cce0bc 24px 48px);box-shadow:inset 0 0 0 1px #9dbd96,0 3px 12px #24493217}
.field{background:#d5aa78;border:3px solid #fff7e6;box-shadow:0 0 0 1px #bd9162,0 4px 10px #35563827}
.field::before{content:"";position:absolute;inset:15%;border-radius:7%;background:repeating-linear-gradient(135deg,#91b983 0 22px,#9fc491 22px 44px);box-shadow:inset 0 0 0 1px #80a877}
.field::after{content:"";position:absolute;left:50%;top:50%;width:20%;height:20%;transform:translate(-50%,-50%);border:3px solid #e3bf92;border-radius:50%;background:#c99a68;box-shadow:0 0 0 1px #b68558}
.base{width:38px;height:38px;border:3px solid #fff;background:#f8f7ee;box-shadow:0 2px 5px #294b3970,inset 0 0 0 1px #d9e3d5}
.base.on{background:#fff6df;box-shadow:0 0 0 4px #f2bb7b99,0 2px 5px #294b3970,inset 0 0 0 1px #e8c38f}
.home{width:31px;height:28px;background:#fff;border:0;filter:drop-shadow(0 2px 2px #294b3977)}
.fieldlabel{display:none}
@media(max-width:380px){.base{width:34px;height:34px}.flag-runner{width:32px;height:24px}}

.country-marker.correct { fill: #edaa6c; stroke: #fff; }
