/* US Capitals — "State House & Road Atlas": vintage Americana. The card is a walnut wainscot panel
   from a state-house corridor, trimmed in brass. Each question is a page torn from an old road
   atlas: the state's outline on parchment with the capital starred, and the progress on a little
   green mileage sign. The answers are engraved brass name plates, screwed to the wood, that press
   in. Right = pale verdigris plate + ✓, wrong = dark oxblood + ✗ (they differ in lightness AND mark).
   Linked after cb-arcade.css. */
body.cb-uscaps {
  --cbx-accent: #8a2f1d;
  --wd-hi: #6b3f24; --wd: #4a2916; --wd-d: #33190c; --wd-dd: #1f0e05;
  --pa-0: #fbf3dc; --pa-1: #f3e5c0; --pa-2: #e5cf9c; --pa-3: #c9a96a; --pa-ink: #4a2e14;
  --br-hi: #fff0b8; --br: #d9ad4c; --br-m: #b7892d; --br-d: #8a611a; --br-dd: #553a0c;
  --vg-hi: #eafbf2; --vg: #b5e5cc; --vg-d: #5cae88; --vg-dd: #1d5e42;
  --ox-hi: #a8402f; --ox: #7c2418; --ox-d: #561510; --ox-dd: #340a06;
  --hwy: #0d6b3d; --hwy-d: #084a2a; --rust: #9b3a1f;
  --engr: 'Cinzel', 'Fraunces', Georgia, serif;
  --sign: 'Overpass', 'Nunito', system-ui, sans-serif;
}
body.cbx.cb-uscaps main { display: block; }
/* the page body is a flex column (sticky footer); auto side margins would shrink these to fit */
.cbx .usc-wrap, .cbx .usc-stage { width: 100%; }
/* the kit's `.cbx a` accent colour would otherwise paint the dark site header/footer links */
.cbx .cb-header a, .cbx .cb-nav a, .cbx .cb-menu-trigger { color: #fff; }
.cbx .cb-footer a { color: inherit; }
.cb-uscaps .cbx-title em { color: var(--hwy); }
.cb-uscaps .cbx-kicker { color: var(--rust); }

.cbx .usc-wrap { padding-bottom: 0; }
.cbx .usc-stage { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ---------- the walnut panel (game card) ---------- */
.cbx .cbx-card.usc-card {
  --cbx-full-pad: 12px;
  scroll-margin-top: 10px; padding: 14px 16px 16px; isolation: isolate; color: var(--pa-0);
  border: 5px solid transparent; border-radius: 24px;
  background:
    radial-gradient(80% 45% at 50% 0%, rgba(255,210,150,.16), transparent 70%) padding-box,
    repeating-linear-gradient(91deg, rgba(0,0,0,0) 0 9px, rgba(0,0,0,.06) 9px 10px, rgba(255,220,180,.03) 10px 17px, rgba(0,0,0,.04) 17px 19px, rgba(0,0,0,0) 19px 31px) padding-box,
    linear-gradient(88deg, rgba(0,0,0,.12), transparent 18%, rgba(255,200,150,.06) 46%, transparent 64%, rgba(0,0,0,.14)) padding-box,
    linear-gradient(180deg, var(--wd-hi), var(--wd) 40%, var(--wd-d)) padding-box,
    linear-gradient(150deg, var(--br-hi), var(--br) 22%, var(--br-d) 50%, var(--br) 74%, var(--br-dd)) border-box;
  box-shadow: inset 0 2px 0 rgba(255,220,170,.18), inset 0 0 0 1px rgba(0,0,0,.45), inset 0 -10px 24px -10px rgba(0,0,0,.5),
    0 1px 0 var(--br-d), 0 3px 0 var(--br-dd), 0 28px 50px -24px rgba(31,14,5,.65), 0 10px 22px -12px rgba(31,14,5,.35);
  transform-origin: 50% 0;
  animation: usc-card-in .8s cubic-bezier(.2,.9,.25,1) backwards;
}
@keyframes usc-card-in { from { opacity: 0; transform: perspective(1200px) rotateX(14deg) translateY(18px) scale(.97); } }
/* wood grain noise */
.cbx .cbx-card.usc-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 19px; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .1 0 0 0 0 .04 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cbx .usc-card :where(p, li) { color: inherit; }
.cbx .usc-card :focus-visible { outline: 3px solid var(--br-hi); outline-offset: 3px; }

/* ---------- start: three vintage postcards pinned to the panel ---------- */
.cbx .usc-start { text-align: center; }
.cbx .usc-cards { display: flex; justify-content: center; gap: 10px; margin: 10px auto 20px; perspective: 800px; }
.cbx .usc-postcard {
  position: relative; flex: 0 1 150px; min-width: 0; padding: 16px 8px 12px; border-radius: 6px; color: var(--pa-ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(155,58,31,.07) 13px 14px),
    radial-gradient(120% 90% at 30% 10%, var(--pa-0), var(--pa-1) 60%, var(--pa-2));
  box-shadow: inset 0 0 0 4px var(--pa-0), inset 0 0 0 5px rgba(155,58,31,.35), 0 1px 0 var(--pa-3), 0 2px 0 #b8975b, 0 16px 22px -10px rgba(0,0,0,.65);
  display: grid; gap: 3px; text-align: center;
  transform: rotate(var(--r)); animation: usc-bob 5s ease-in-out infinite, usc-deal .6s cubic-bezier(.2,1.2,.4,1) backwards; animation-delay: var(--d), var(--dd);
}
/* the stamp, perforated */
.cbx .usc-postcard::before { content: ''; position: absolute; top: 7px; right: 7px; width: 14px; height: 17px; border-radius: 1px;
  background: radial-gradient(circle at 50% 46%, #fff 0 2.2px, transparent 2.7px), linear-gradient(180deg, #2f4f93, #22396e);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.15); }
/* the pin */
.cbx .usc-postcard::after { content: ''; position: absolute; top: -5px; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--br-hi), var(--br) 45%, var(--br-d)); box-shadow: 0 2px 2px rgba(0,0,0,.5); }
.cbx .usc-postcard span { font: 800 10.5px var(--sign); letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.cbx .usc-postcard b { font: 800 clamp(13px, 3.8vw, 19px)/1.1 var(--engr); color: var(--hwy-d); }
.cbx .usc-postcard i { font: 800 12px var(--cbx-body); font-style: normal; color: var(--ox); text-decoration: line-through; text-decoration-thickness: 2px; }
.cbx .usc-postcard:nth-child(1) { --r: -6deg; --d: -1.2s; --dd: .2s; margin-top: 8px; }
.cbx .usc-postcard:nth-child(2) { --r: 2deg; --d: -2.6s; --dd: .3s; }
.cbx .usc-postcard:nth-child(3) { --r: 7deg; --d: 0s; --dd: .4s; margin-top: 8px; }
@media (max-width: 400px) { .cbx .usc-postcard { padding-inline: 4px; } .cbx .usc-postcard b { font-size: 12.5px; } .cbx .usc-postcard span { font-size: 9.5px; letter-spacing: .06em; } }
@keyframes usc-bob { 50% { transform: translateY(-5px) rotate(var(--r)); } }
@keyframes usc-deal { from { opacity: 0; transform: translateY(-30px) rotateX(50deg) rotate(calc(var(--r) * -2)); } }
.cbx .usc-start .cbx-pills { justify-content: center; margin-bottom: 14px; }
.cb-uscaps .cbx-pill { font: 800 12px/1 var(--sign); letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px 6px; color: var(--pa-1);
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.2)); box-shadow: inset 0 1px 3px rgba(0,0,0,.6), 0 1px 0 rgba(255,220,170,.15); }
.cb-uscaps .cbx-pill.accent { color: #fff; background: var(--hwy); box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 1px var(--hwy-d), 0 2px 0 var(--hwy-d); }

/* ---------- buttons: a brass push plate (start / share) and a highway-green Next ---------- */
.cb-uscaps .usc-card .cbx-btn {
  min-height: 54px; border-radius: 12px; font: 800 18px/1 var(--engr); letter-spacing: .1em; padding-top: 14px;
  color: var(--br-dd); text-shadow: 0 1px 0 rgba(255,255,255,.55);
  background: linear-gradient(180deg, var(--br-hi), var(--br) 45%, var(--br-m) 80%, var(--br-d));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 0 0 1px rgba(85,58,12,.4),
    0 1px 0 var(--br-d), 0 2px 0 #7b5614, 0 3px 0 #6b4a10, 0 4px 0 var(--br-dd), 0 12px 16px -6px rgba(0,0,0,.6);
  transition: transform .1s, box-shadow .1s;
}
.cb-uscaps .usc-card .cbx-btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 0 0 1px rgba(85,58,12,.4), 0 1px 0 var(--br-dd), 0 3px 6px -3px rgba(0,0,0,.6); }
.cb-uscaps .usc-card .cbx-btn.ink { font: 900 18px/1 var(--sign); letter-spacing: .06em; padding-top: 16px; color: #fff; text-shadow: none;
  background: linear-gradient(180deg, #14814b, var(--hwy) 50%, #0a5a33);
  box-shadow: inset 0 0 0 3px var(--hwy), inset 0 0 0 5px #fff, inset 0 1px 0 6px rgba(255,255,255,.12),
    0 1px 0 var(--hwy-d), 0 2px 0 #073f24, 0 3px 0 #06361f, 0 4px 0 #042a18, 0 12px 16px -6px rgba(0,0,0,.6); }
.cb-uscaps .usc-card .cbx-btn.ink::after { content: ' \2192'; }
.cb-uscaps .usc-card .cbx-btn.ink:active { box-shadow: inset 0 0 0 3px var(--hwy), inset 0 0 0 5px #fff, 0 1px 0 #042a18, 0 3px 6px -3px rgba(0,0,0,.6); }

/* ---------- playing: the road-atlas page ---------- */
.cbx .usc-atlas {
  position: relative; margin: 0 0 14px; padding: 10px 12px 12px; border-radius: 6px; color: var(--pa-ink);
  background:
    radial-gradient(circle at 92% 88%, transparent 0 20px, rgba(155,58,31,.22) 20px 21px, transparent 21px),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(13,107,61,.09) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(13,107,61,.09) 27px 28px),
    radial-gradient(130% 100% at 30% 10%, var(--pa-0), var(--pa-1) 55%, var(--pa-2));
  box-shadow: inset 0 0 0 5px var(--pa-0), inset 0 0 0 6px rgba(155,58,31,.4), inset 0 0 30px rgba(150,105,40,.25),
    0 1px 0 var(--pa-3), 0 2px 0 #b8975b, 0 3px 0 #a5824a, 0 18px 24px -12px rgba(0,0,0,.7);
  transform: rotate(-.6deg);
  animation: usc-page-in .55s cubic-bezier(.2,1.1,.4,1) backwards;
}
/* paper fibre */
.cbx .usc-atlas::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .2 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes usc-page-in { from { opacity: 0; transform: perspective(900px) rotateX(-24deg) translateY(-8px) rotate(-.6deg); } }
.cbx .usc-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 0; }
.cbx .usc-head h2 { margin: 6px 0 0; font: 800 13px var(--sign); letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }

/* progress: a green mileage sign on two posts */
.cbx #progressRing { position: relative; flex: none; width: auto; height: auto; margin: 2px 2px 18px 0; padding: 7px 11px 5px; border-radius: 7px; text-align: center;
  background: linear-gradient(180deg, #13814a, var(--hwy) 60%, #0b5f36);
  box-shadow: inset 0 0 0 2px var(--hwy), inset 0 0 0 3.5px #f4f8f2, 0 1px 0 var(--hwy-d), 0 2px 0 #063b21, 0 6px 8px -3px rgba(0,0,0,.45);
  transform: rotate(1.5deg); }
.cbx #progressRing svg { display: none; }
.cbx #progressRing::before { content: 'State'; display: block; font: 800 9.5px/1 var(--sign); letter-spacing: .16em; text-transform: uppercase; color: #dff0e4; }
.cbx #progressRing::after { content: ''; position: absolute; z-index: -1; top: 100%; left: 22%; right: 22%; height: 18px;
  background: linear-gradient(90deg, #6b6f74, #c8ccd0 45%, #6b6f74) left / 4px 100% no-repeat, linear-gradient(90deg, #6b6f74, #c8ccd0 45%, #6b6f74) right / 4px 100% no-repeat; }
.cbx #progressText { position: static; display: block; font: 900 22px/1.05 var(--sign); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.cbx #qText { position: relative; margin: 4px 0 0; font: 800 clamp(20px, 5.4vw, 26px)/1.2 var(--cbx-display); color: var(--pa-ink); }
.cbx #qText em { font-style: normal; color: var(--rust); }

/* the state's outline, raised off the page, with a starred capital as on an old road map */
.cbx .usc-map { margin: 0; flex: 1; min-width: 0; }
.cbx .usc-map:not([hidden]) ~ .progress-ring { align-self: flex-start; }
.cbx .usc-head:has(.usc-map:not([hidden])) h2 { display: none; }
.cbx .usc-map svg { display: block; width: 100%; max-width: 240px; height: auto; max-height: clamp(92px, calc(100svh - 540px), 150px); overflow: visible; }
@supports not (height: 1svh) { .cbx .usc-map svg { max-height: clamp(92px, calc(100vh - 540px), 150px); } }
.cbx .usc-map #uscShape { fill: #e8cf96; stroke: var(--rust); stroke-width: 1.6; stroke-linejoin: round;
  filter: drop-shadow(0 1.5px 0 #b48a4c) drop-shadow(0 4px 3px rgba(74,46,20,.35)); animation: usc-shape-in .5s .1s ease-out backwards; }
.cbx .usc-map .usc-star { fill: #c0392b; stroke: #fff6e0; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.cbx .usc-map .usc-cap { font: 800 15px var(--engr); letter-spacing: .02em; fill: var(--pa-ink); paint-order: stroke; stroke: var(--pa-0); stroke-width: 5px; stroke-linejoin: round; animation: usc-fade .35s ease-out backwards; }
.cbx .usc-map figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes usc-shape-in { from { opacity: 0; transform: scale(.94); transform-origin: 50% 50%; } }
@keyframes usc-fade { from { opacity: 0; } }

/* ---------- answers: engraved brass name plates, two screws each ---------- */
.cbx #choices { margin: 0; padding: 0; gap: 9px; perspective: 900px; }
@media (min-width: 560px) { .cbx #choices { grid-template-columns: 1fr 1fr; gap: 12px; } }
.cbx #choices > li { animation: usc-plate-in .45s cubic-bezier(.2,1.1,.4,1) forwards; transform-origin: 50% 0; }
@keyframes usc-plate-in { from { opacity: 0; transform: rotateX(-60deg) translateY(-6px); } to { opacity: 1; transform: none; } }
.cbx #choices > li > button {
  position: relative; min-height: 62px; justify-content: center; text-align: center; padding: 10px 40px; border: 0; border-radius: 6px;
  font: 800 19px/1.15 var(--engr); letter-spacing: .04em; color: #4a3008;
  text-shadow: 0 1px 0 rgba(255,246,210,.75), 0 -1px 0 rgba(90,60,10,.35);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.0) 0 2px, rgba(255,255,255,.07) 2px 3px, rgba(120,80,10,.05) 3px 5px),
    linear-gradient(180deg, var(--br-hi) 0%, #f0cf74 18%, var(--br) 48%, var(--br-m) 82%, #a37722);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 0 0 1px rgba(85,58,12,.55), inset 0 0 0 4px rgba(255,240,190,.18), inset 0 0 0 5px rgba(85,58,12,.25),
    0 1px 0 var(--br-d), 0 2px 0 #7b5614, 0 3px 0 #6b4a10, 0 4px 0 #5c3f0d, 0 5px 0 var(--br-dd), 0 12px 16px -8px rgba(0,0,0,.7);
  transition: transform .1s, box-shadow .1s, filter .2s;
}
/* screws: slotted brass heads, one each end (the left one becomes the ✓ / ✗ when answered) */
.cbx #choices > li > button::before, .cbx #choices > li > button::after {
  content: ''; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; -webkit-mask: none; mask: none;
  background: linear-gradient(45deg, transparent 44%, rgba(70,45,8,.75) 44% 56%, transparent 56%), radial-gradient(circle at 35% 30%, #fff3c4, var(--br) 55%, var(--br-d));
  box-shadow: inset 0 0 0 1px rgba(85,58,12,.5), 0 1px 0 rgba(255,250,220,.6);
}
.cbx #choices > li > button::before { left: 14px; }
.cbx #choices > li > button::after { right: 14px; transform: rotate(70deg); }
@media (hover: hover) {
  .cbx #choices > li > button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); border-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 0 0 1px rgba(85,58,12,.55), inset 0 0 0 4px rgba(255,240,190,.18), inset 0 0 0 5px rgba(85,58,12,.25),
      0 1px 0 var(--br-d), 0 2px 0 #7b5614, 0 3px 0 #6b4a10, 0 4px 0 #5c3f0d, 0 6px 0 var(--br-dd), 0 14px 18px -8px rgba(0,0,0,.7); }
}
.cbx #choices > li > button:active:not(:disabled) { transform: translateY(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 0 0 1px rgba(85,58,12,.55), inset 0 3px 6px rgba(85,58,12,.45), 0 1px 0 var(--br-dd), 0 3px 6px -3px rgba(0,0,0,.7); }
/* the plates nobody picked tarnish */
.cbx #choices > li > button:disabled:not(.correct):not(.wrong) { opacity: 1; filter: saturate(.3) brightness(.7); transform: translateY(2px);
  box-shadow: inset 0 0 0 1px rgba(85,58,12,.55), 0 1px 0 var(--br-d), 0 2px 0 #6b4a10, 0 3px 0 var(--br-dd), 0 8px 12px -8px rgba(0,0,0,.6); }
/* right: pale verdigris plate, dark green engraving, ✓ */
.cbx #choices > li > button.correct {
  color: var(--vg-dd); text-shadow: 0 1px 0 rgba(255,255,255,.7);
  background: repeating-linear-gradient(90deg, transparent 0 2px, rgba(255,255,255,.12) 2px 3px), linear-gradient(180deg, var(--vg-hi), var(--vg) 55%, #94d2b3);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(29,94,66,.55), inset 0 0 0 4px rgba(255,255,255,.3), inset 0 0 0 5px rgba(29,94,66,.25),
    0 1px 0 #3d8a66, 0 2px 0 #2f7354, 0 3px 0 #255f45, 0 4px 0 #1d5e42, 0 5px 0 #133f2c, 0 0 0 4px rgba(181,229,204,.35), 0 12px 18px -8px rgba(0,0,0,.7);
  animation: usc-right .5s cubic-bezier(.3,1.6,.5,1);
}
.cbx #choices > li > button.wrong {
  color: #ffe3da; text-shadow: 0 -1px 0 rgba(0,0,0,.5);
  background: repeating-linear-gradient(90deg, transparent 0 2px, rgba(255,255,255,.04) 2px 3px), linear-gradient(180deg, var(--ox-hi), var(--ox) 50%, var(--ox-d));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(0,0,0,.5), inset 0 3px 8px rgba(0,0,0,.35),
    0 1px 0 var(--ox-d), 0 2px 0 var(--ox-dd), 0 6px 10px -6px rgba(0,0,0,.7);
  transform: translateY(3px);
  animation: usc-wrong .45s ease;
}
/* the ✓ / ✗ stamped where the left screw was */
.cbx #choices > li > button.correct::before, .cbx #choices > li > button.wrong::before {
  left: 10px; width: 24px; height: 24px; margin-top: -12px; box-shadow: none;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat;
}
.cbx #choices > li > button.correct::before { background: var(--vg-dd);
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11'/%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23fff'/%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='24' height='24' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23fff'/%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='24' height='24' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.cbx #choices > li > button.wrong::before { background: #ffe3da;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23fff'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='24' height='24' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23fff'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='24' height='24' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.cbx #choices > li > button.correct.reveal { animation: usc-right .5s cubic-bezier(.3,1.6,.5,1), usc-glow 1s .5s ease 2; }
@keyframes usc-right { 0% { transform: translateY(4px) scale(.98); } 55% { transform: translateY(-3px) scale(1.025); } 100% { transform: none; } }
@keyframes usc-wrong { 0%, 100% { translate: 0; } 20% { translate: -7px; } 40% { translate: 6px; } 60% { translate: -4px; } 80% { translate: 3px; } }
@keyframes usc-glow { 50% { filter: brightness(1.12) drop-shadow(0 0 8px rgba(181,229,204,.8)); } }
.cbx #nextButton { margin-top: 14px; text-align: center; animation: usc-rise .3s ease-out backwards; }
@keyframes usc-rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- results: the score on a big green highway sign ---------- */
.cbx #results { animation: usc-rise .5s ease-out backwards; }
.cbx #results .cbx-kicker { font: 800 13px var(--sign); letter-spacing: .2em; color: var(--br); }
.cbx #results .cbx-big {
  position: relative; display: inline-block; margin: 8px auto 26px; padding: 14px 30px 10px; border-radius: 12px;
  font: 900 clamp(48px, 14vw, 66px)/1 var(--sign); letter-spacing: 0; color: #fff;
  background: linear-gradient(180deg, #14814b, var(--hwy) 55%, #0a5a33);
  box-shadow: inset 0 0 0 4px var(--hwy), inset 0 0 0 7px #f4f8f2, 0 1px 0 var(--hwy-d), 0 2px 0 #073f24, 0 3px 0 #06361f, 0 4px 0 #042a18, 0 18px 24px -10px rgba(0,0,0,.7);
  animation: usc-sign .7s .15s cubic-bezier(.3,1.5,.5,1) backwards;
}
.cbx #results .cbx-big::after { content: ''; position: absolute; z-index: -1; top: 100%; left: 26%; right: 26%; height: 24px;
  background: linear-gradient(90deg, #5c6065, #c8ccd0 45%, #5c6065) left / 6px 100% no-repeat, linear-gradient(90deg, #5c6065, #c8ccd0 45%, #5c6065) right / 6px 100% no-repeat; }
@keyframes usc-sign { from { opacity: 0; transform: perspective(600px) rotateX(-80deg); transform-origin: 50% 0; } }
.cbx #results .cbx-big small { font: 900 .42em var(--sign); color: #cfe8d8; }
.cbx #results .cbx-verdict { font: 800 19px var(--engr); letter-spacing: .03em; color: var(--br-hi); }
.cbx #res-grid { font-size: 22px; line-height: 1.25; white-space: pre-line; margin: 4px 0 0; }
.cbx #results .cbx-chips > * { color: #e8d4b4; border-radius: 10px; font-weight: 800;
  background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.22)); box-shadow: inset 0 2px 5px rgba(0,0,0,.6), 0 1px 0 rgba(255,220,170,.14); }
.cbx #results .cbx-chips b { color: var(--br-hi); }
.cbx #res-countdown { font-weight: 900; font-size: 14px; color: #9fe0bc; margin: 6px 0 0; }
.cbx #res-countdown:empty { display: none; }
.cbx #shareBtn { margin-top: 14px; text-align: center; }
.cbx .usc-locked { text-align: center; color: var(--pa-1); }

/* ---------- the how-to card and the more-games panel ---------- */
.cbx .content-card {
  max-width: 688px; margin: 18px auto 0; padding: 18px 20px; border: 0; border-radius: 16px; color: var(--cbx-ink-2);
  background: radial-gradient(130% 100% at 30% 0%, var(--pa-0), #f8edd2);
  box-shadow: inset 0 0 0 1px var(--pa-2), 0 1px 0 var(--pa-3), 0 14px 34px rgba(42,29,23,.08);
}
.cbx .content-card h2 { font: 900 22px/1.15 var(--cbx-display); color: var(--hwy-d); margin: 0 0 8px; }
.cbx .content-card h3 { font: 800 16px var(--engr); letter-spacing: .04em; color: var(--rust); margin: 16px 0 4px; }
.cbx .content-card p, .cbx .content-card li { line-height: 1.6; }
.cbx .content-card ol, .cbx .content-card ul { padding-left: 20px; margin: 6px 0 0; }
.cbx .content-card li + li { margin-top: 4px; }
.cbx .content-card strong { font-weight: 900; color: var(--cbx-ink); }
.cbx .muted { color: var(--cbx-ink-2); }
.cbx .divider { height: 2px; margin: 14px 0; border: 0; background: repeating-linear-gradient(90deg, var(--pa-3) 0 10px, transparent 10px 18px); }
.cbx .content-card a { color: var(--rust); }
.cbx #postGameLinks { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .cbx #choices > li { opacity: 1; transform: none; }
}
