:root{font-family:"Trebuchet MS","Segoe UI",sans-serif;color:#194e59;background:#d4efea;font-synthesis:none;--teal:#146571;--yellow:#ffd067;--pink:#d65178;--paper:#fff8e6;--ink:#194e59}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 70% 20%,#effbdf 0,transparent 45%),#d4efea;min-height:100vh}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible,a:focus-visible{outline:5px solid #d65178;outline-offset:5px}button:disabled{cursor:default}button:not(:disabled):active,a:active{transform:translateY(3px)}.toolbar{height:126px;display:flex;align-items:center;gap:14px;padding:5px 28px;background:#146571;color:var(--paper);box-shadow:0 7px 0 #104f5b;position:relative;z-index:5}.brand{font-size:32px;font-weight:900;letter-spacing:-1.3px;flex:1;text-align:center}.tool{min-width:120px;height:116px;padding:15px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:transparent;color:inherit;text-decoration:none;font-size:32px;border-radius:16px}.tool span{font-size:18px;font-weight:700}.tool:hover{background:#ffffff10}#app{position:relative;min-height:calc(100vh - 126px)}h1,h2,p{margin:0}h1{font-size:66px;letter-spacing:-2.7px;line-height:1.05;font-weight:900}h2{font-size:40px;letter-spacing:-1px}.map-screen{max-width:1720px;margin:auto;padding:34px 50px 24px}.map-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 16px}.map-intro p{font-size:27px;margin-top:12px}.trail-seal{background:var(--yellow);width:155px;height:155px;border-radius:50%;transform:rotate(8deg);display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:6px 8px 0 #dfaf4d;color:#5f4721;flex-shrink:0;font-size:21px}.trail-seal strong{font-size:48px;line-height:1}.gallery{position:relative;margin:18px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px 30px;padding:10px 12px}.gallery:before{content:"";position:absolute;inset:20px -40px 10px;border-radius:50%;background:radial-gradient(ellipse,#91b9ab44,transparent 68%);pointer-events:none}.gallery canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}.level-card{position:relative;height:284px;padding:0;background:transparent;border-radius:24px;text-align:left;isolation:isolate}.frame-preview{display:block;position:absolute;inset:7px 10px 84px;background:#f8e4ae;border:13px solid #f8e4ae;border-radius:12px;box-shadow:0 12px 0 #aa7d52,5px 17px 15px #245e6130;overflow:hidden;transform:rotate(-1deg)}.level-card:nth-of-type(even) .frame-preview{transform:rotate(1deg)}.frame-preview svg{height:100%;width:100%;display:block;object-fit:cover}.has-webgl .frame-preview{visibility:hidden}.card-copy{position:absolute;bottom:0;left:10px;right:10px;z-index:2;padding:10px 14px;background:var(--paper);border-radius:7px 7px 17px 17px;border-bottom:5px solid #a9c8b6}.card-title{font-size:27px;font-weight:900;display:block;letter-spacing:-.6px}.card-note{font-size:18px;display:block;margin-top:4px}.level-number{position:absolute;top:0;left:0;z-index:3;width:65px;height:65px;display:grid;place-items:center;border-radius:50%;background:var(--yellow);border:5px solid var(--paper);box-shadow:1px 5px 0 #c49648;font-size:30px;font-weight:900}.level-stars{position:absolute;right:20px;top:16px;z-index:3;letter-spacing:4px;font-size:30px;color:#fff5c8;text-shadow:0 2px 3px #35565e,0 0 5px #35565e}.level-stars .earned{color:var(--yellow)}.level-card:disabled .card-copy{background:#deebe3}.level-card:disabled .frame-preview{filter:saturate(.4)}.lock-label{position:absolute;top:93px;left:50%;transform:translateX(-50%);z-index:3;border-radius:25px;background:#194e59df;color:white;padding:10px 23px;font-size:21px;white-space:nowrap}.map-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:20px 15px 0;font-size:20px}.quiet{background:transparent;text-decoration:underline;font-size:17px;min-height:52px;padding:12px}.quiet:focus-visible{outline-offset:0}.play-screen{padding:24px 30px 16px;max-width:1920px;margin:auto}.round-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 5px 20px}.round-heading h1{font-size:42px;letter-spacing:-1.3px}.round-heading p{font-size:24px;margin-top:5px}.round-badge{background:var(--paper);border-radius:40px;min-width:200px;text-align:center;padding:17px 25px;font-size:27px;font-weight:800;box-shadow:0 5px 0 #aac8b7}.pair{display:grid;grid-template-columns:1fr 1fr;gap:26px}.picture-wrap{position:relative;background:#f4d59a;border:15px solid #f9e5b6;border-bottom:20px solid #c89b63;border-right-color:#e2b77d;border-radius:16px;box-shadow:0 12px 18px #245e6126;overflow:hidden;touch-action:none;user-select:none;aspect-ratio:1000/620}.picture{width:100%;height:100%;display:block;touch-action:none}.picture-tag{position:absolute;left:15px;bottom:12px;border-radius:20px;padding:5px 18px;background:#fff9e5df;font-size:18px;pointer-events:none}.ring{fill:#fffbc719;stroke:#fff9d3;stroke-width:8;filter:drop-shadow(0 2px 0 #146571);animation:ring-in .28s cubic-bezier(.2,1.6,.5,1)}.ring-inner{fill:none;stroke:#138873;stroke-width:4;stroke-dasharray:11 5}.hint-ring{fill:#ffd06755;stroke:#fff8c4;stroke-width:10;animation:hint 0.6s ease-in-out infinite alternate}.play-footer{display:flex;align-items:center;gap:24px;margin-top:24px}.progress-copy{flex:1}.progress-copy strong{font-size:32px;display:block}.progress-copy p{font-size:22px;margin-top:6px}.progress-dots{display:flex;gap:9px;margin-top:12px}.progress-dots i{width:20px;height:20px;background:#a4c9bd;border-radius:50%;border:3px solid #87b3a7}.progress-dots i.found{background:var(--yellow);border-color:#bb913a}.primary,.secondary,.hint-button{min-width:180px;min-height:120px;border-radius:22px;padding:16px 30px;font-size:27px;font-weight:900;box-shadow:0 7px 0 #0c4b57;background:var(--teal);color:var(--paper)}.secondary{background:var(--paper);color:var(--teal);box-shadow:0 7px 0 #aec6af}.hint-button{background:var(--yellow);color:#665027;box-shadow:0 7px 0 #c89b4c}.hint-button small{font-size:18px;font-weight:400;display:block;margin-top:7px}.seed{display:flex;align-items:center;gap:8px;font-size:15px;color:#466c6a;margin:20px 6px 0}.seed button{font-size:16px;text-decoration:underline;background:transparent;padding:10px}.seed input{width:138px;font:inherit;background:#ffffff70;border:1px solid #80aaa5;border-radius:7px;padding:8px;color:var(--ink)}.shake{animation:shake .28s}.boop{position:absolute;width:44px;height:44px;border:5px solid #fff5dc;border-radius:50%;pointer-events:none;animation:boop .6s forwards}.race-screen .round-heading{margin-bottom:12px}.racers{display:grid;grid-template-columns:1fr 1fr;gap:40px}.racer{padding:15px 20px 20px;background:#b4d8d1;border-radius:25px;border:3px solid #7fb5ad}.racer:nth-child(2){background:#f4dfaa;border-color:#d9b66a}.racer h2{display:flex;justify-content:space-between;font-size:30px;margin-bottom:12px}.race-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.race-pair .picture-wrap{border-width:9px;border-bottom-width:13px;border-radius:10px}.race-pair .picture-tag{font-size:13px;bottom:4px;left:4px;padding:3px 9px}.race-description{font-size:22px;line-height:1.4;margin-bottom:20px}.racer .race-pair{grid-template-columns:1fr;max-width:620px;margin:auto}.racer .picture-wrap{max-height:290px;aspect-ratio:1000/620}.race-footer{display:flex;align-items:center;justify-content:space-between;margin-top:16px;font-size:23px}.race-footer .hint-button{min-height:120px;font-size:24px;min-width:155px;padding:12px 20px}.race-screen{padding-top:18px}.race-screen .seed{margin-top:10px}.celebration{min-height:calc(100vh - 126px);display:flex;align-items:center;justify-content:center;text-align:center;position:relative;overflow:hidden}.celebration canvas{position:absolute;inset:0;pointer-events:none}.celebrate-copy{position:relative;z-index:2;padding:35px;max-width:1000px}.celebrate-copy h1{font-size:76px}.celebrate-copy p{font-size:30px;margin-top:22px;line-height:1.4}.big-stars{font-size:112px;letter-spacing:20px;margin:18px 0 28px;color:#d6e4c2;filter:drop-shadow(0 7px 0 #bd924b)}.big-stars span{display:inline-block}.big-stars .lit{color:var(--yellow);animation:star-in .65s backwards cubic-bezier(.15,1.5,.4,1)}.big-stars span:nth-child(2){animation-delay:.25s}.big-stars span:nth-child(3){animation-delay:.5s}.celebrate-actions{display:flex;justify-content:center;gap:25px;margin-top:35px}.paper-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.paper-confetti i{position:absolute;width:15px;height:26px;top:-50px;animation:confetti 4s linear infinite}.scene-complete{position:absolute;inset:0;z-index:4;background:#d4efeaeF;display:flex;align-items:center;justify-content:center;text-align:center}.scene-complete h2{font-size:60px}.scene-complete p{font-size:28px;margin:20px 0 30px}.scene-complete .complete-seal{font-size:70px;color:#1c8577;margin-bottom:16px}#notice{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);padding:16px 30px;border-radius:22px;background:var(--teal);color:white;font-size:22px;z-index:20;pointer-events:none;opacity:0;transition:opacity .2s}#notice.visible{opacity:1}dialog{max-width:750px;border:0;border-radius:30px;background:var(--paper);color:var(--ink);padding:40px;box-shadow:0 20px 100px #143e5060}dialog::backdrop{background:#194e59ad}dialog p{font-size:25px;line-height:1.5;margin:20px 0 30px}.dialog-actions{display:flex;gap:25px}.dialog-actions button{min-height:120px;border-radius:18px;background:var(--teal);color:white;padding:20px;font-size:24px}#confirm-reset{background:#a94f66}.water{animation:shimmer 4s ease-in-out infinite}.saving-note{font-size:19px;color:#8c3651;margin-top:15px}@keyframes shimmer{50%{opacity:.45}}@keyframes ring-in{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}@keyframes star-in{from{transform:scale(.1) rotate(-70deg);opacity:0}to{transform:scale(1);opacity:1}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@keyframes hint{to{opacity:.3}}@keyframes boop{to{opacity:0;transform:scale(1.7)}}@keyframes confetti{to{transform:translateY(110vh) rotate(540deg)}}
@media(min-width:1600px){.racer .picture-wrap{max-height:320px}.racer .race-pair{max-width:520px}.gallery{margin-top:25px;gap:25px 38px}.level-card{height:295px}.map-footer{margin-top:18px}.play-footer{margin-top:30px}}
@media(max-width:1400px){.toolbar{height:120px;padding:0 14px;gap:0}.brand{font-size:27px}.tool{min-width:120px}.tool span{font-size:16px}.map-screen{padding:24px 38px 10px}h1{font-size:50px}.map-intro p{font-size:23px}.trail-seal{height:120px;width:120px;font-size:17px}.trail-seal strong{font-size:38px}.gallery{gap:12px 24px;margin-top:10px}.level-card{height:220px}.frame-preview{inset:7px 7px 78px;border-width:9px}.card-copy{left:7px;right:7px;padding:9px 12px}.card-title{font-size:21px}.card-note{font-size:15px}.level-number{width:56px;height:56px;font-size:25px}.level-stars{font-size:25px;right:12px}.lock-label{top:69px;font-size:18px}.map-footer{font-size:17px;margin-top:12px}.play-screen{padding:20px}.round-heading h1{font-size:34px}.round-heading p{font-size:22px}.picture-wrap{border-width:10px;border-bottom-width:15px}.pair{gap:22px}.play-footer{margin-top:20px;gap:20px}.progress-copy strong{font-size:28px}.progress-copy p{font-size:20px}.seed{margin-top:10px}.racers{gap:24px}.racer{padding:12px}.racer h2{font-size:26px}.racer .race-pair{max-width:420px}.racer .picture-wrap{max-height:205px}.race-footer{margin-top:10px;font-size:20px}.race-screen .round-heading{margin-bottom:10px}.race-description{font-size:20px}.celebrate-copy h1{font-size:64px}}
@media(max-width:850px){.brand{font-size:20px}.toolbar{gap:0;padding:0 3px}.tool{min-width:80px;flex:1}.tool span{font-size:12px}.map-screen{padding:20px 15px}.map-intro{padding:0}h1{font-size:36px}.map-intro p{font-size:18px}.trail-seal{display:none}.gallery{grid-template-columns:repeat(2,1fr)}.level-card{height:220px}.card-title{font-size:19px}.card-note{font-size:13px}.map-footer{flex-direction:column}.pair{grid-template-columns:1fr}.round-heading{align-items:flex-start}.round-heading h1{font-size:27px}.round-badge{font-size:20px;min-width:115px;padding:13px}.play-footer{flex-wrap:wrap}.progress-copy{flex-basis:100%}.primary,.secondary,.hint-button{font-size:23px;min-width:130px}.racers{gap:12px}.racer h2{font-size:19px}.race-footer{flex-wrap:wrap}.racer .race-pair{max-width:none}.race-description{font-size:17px}.celebrate-copy h1{font-size:43px}.celebrate-copy p{font-size:24px}.big-stars{font-size:70px;letter-spacing:10px}.celebrate-actions{flex-wrap:wrap}}
.toolbar .tool{height:120px}
html{overflow-x:clip}
.gallery:before{left:-28px;right:-28px}
.tool:disabled{opacity:.4}
.marker-stroke{fill:none;stroke:#fff2ae;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 1px #436955aa);vector-effect:non-scaling-stroke}
.marker-success{stroke:#d8ffae;transition:opacity .28s}
.stroke-fade{opacity:0;transition:opacity .5s}
.touch-sparkle{fill:#ffeaa1;stroke:#fff9dc;stroke-width:3;animation:sparkle .4s forwards}
.picture-wrap{cursor:crosshair}
.ring{stroke:#fff3af;filter:drop-shadow(0 0 5px #fce7a1);fill:#fff3af0b}
.ring-inner{stroke:#408578;stroke-dasharray:none}
.race-status{max-width:70%;font-size:20px}
@keyframes sparkle{to{opacity:0;r:23}}
.racer{position:relative}
.racer .race-pair{transform:translateX(-65px)}
.race-footer{min-height:30px}
.race-footer .hint-button{position:absolute;right:20px;top:calc(50% - 60px)}
.ambient-light{animation:soft-light 7s ease-in-out infinite alternate}
@keyframes soft-light{to{opacity:.5}}
.map-screen{height:calc(100vh - 126px);display:flex;flex-direction:column}
.map-intro,.map-footer{flex-shrink:0}
.gallery{flex:1;width:100%;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr))}
.level-card{height:auto;min-height:170px;z-index:2}
.gallery canvas{z-index:1}
.has-webgl .frame-preview{visibility:visible;background:transparent;box-shadow:none;border-color:transparent}
.trail-seal strong{white-space:nowrap;letter-spacing:-2px;font-size:39px}
@media(max-width:1400px) and (min-width:851px){
  .map-screen{height:calc(100vh - 120px);padding-top:18px}
  .map-intro h1{font-size:40px;letter-spacing:-1.8px}.map-intro h1 br{display:none}
  .map-intro p{font-size:21px;margin-top:8px}.trail-seal{width:100px;height:100px;font-size:14px}.trail-seal strong{font-size:29px;letter-spacing:-1.4px}
  .map-footer{margin-top:6px}.level-card{height:auto;min-height:170px}
  .racer{position:relative}.racer .race-pair{width:calc(100% - 142px);margin-left:0;max-width:none}
  .racer .picture-wrap{max-height:195px}.racer .race-pair{transform:none}
  .race-footer .hint-button{position:absolute;right:12px;top:calc(50% - 60px);width:130px;min-width:120px;padding:12px 8px}
  .race-footer{min-height:24px}.race-footer .hint-button small{font-size:15px}
}
@media(max-width:850px){.map-screen{height:auto;min-height:calc(100vh - 120px)}.gallery{grid-template-rows:none;flex:none}.level-card{height:220px}.trail-seal{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Board layout: spend the available height on the two paintings. */
@media(min-width:851px){
  body{overflow:hidden;overscroll-behavior:none}
  .toolbar{height:120px;padding:0 16px;gap:8px}
  #app,.celebration{min-height:calc(100dvh - 120px)}
  .map-screen{height:calc(100dvh - 120px)}
  .quiet{min-width:144px;min-height:120px;font-size:20px}
  .play-screen{height:calc(100dvh - 120px);padding:8px 16px 10px;display:grid;grid-template-rows:44px minmax(0,1fr) 120px 18px;gap:8px;max-width:none}
  .round-heading,.race-screen .round-heading{height:44px;min-width:0;margin:0;gap:14px;align-items:center}
  .round-heading>div:first-child{display:flex;align-items:baseline;gap:20px;min-width:0}
  .round-heading h1{font-size:32px;letter-spacing:-1px;white-space:nowrap}
  .round-heading p{font-size:23px;margin:0;white-space:nowrap}
  .round-heading>.round-badge{min-width:0;padding:7px 18px;font-size:25px;white-space:nowrap;box-shadow:none}
  .pair{height:100%;min-height:0;gap:16px}
  .play-screen .picture-wrap{height:100%;min-height:0;width:100%;max-height:none;aspect-ratio:auto;border-width:8px;border-bottom-width:12px;border-radius:12px;box-shadow:0 6px 10px #245e6120}
  .picture-tag{font-size:20px;bottom:10px;left:10px}
  .play-footer{height:120px;min-height:0;margin:0;gap:20px;align-items:center}
  .progress-copy{display:grid;grid-template-columns:max-content 1fr;grid-template-rows:auto auto;align-content:center;align-items:center;gap:7px 22px;min-width:0}
  .progress-copy strong{font-size:30px;grid-column:1;grid-row:1}
  .progress-copy p{font-size:24px;margin:0;grid-row:2;grid-column:1/-1}
  .progress-dots{grid-row:1;grid-column:2;margin:0;gap:8px}
  .progress-dots i{width:20px;height:20px;flex-shrink:0}
  .play-footer .hint-button{height:120px;min-height:120px;min-width:180px;padding:12px 24px;font-size:26px}
  .play-footer>.round-badge{min-width:160px;padding:12px 18px;font-size:34px}
  .seed,.race-screen .seed{margin:0;height:18px;font-size:14px;white-space:nowrap;line-height:18px}
  .race-screen{grid-template-rows:44px minmax(0,1fr) 18px}
  .racers{height:100%;min-height:0;gap:20px}
  .racer{display:grid;grid-template-columns:minmax(0,1fr) 128px;grid-template-rows:40px minmax(0,1fr) 32px;gap:8px 12px;min-height:0;padding:10px}
  .racer h2{grid-column:1/-1;grid-row:1;font-size:30px;margin:0;align-items:center;line-height:1}
  .racer .race-pair{grid-column:1;grid-row:2;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr));height:100%;min-height:0;width:100%;max-width:none;margin:0;transform:none;gap:10px}
  .race-pair .picture-tag{font-size:17px;padding:4px 10px;bottom:5px;left:5px}
  .race-footer{display:contents}
  .race-footer .hint-button{position:static;grid-column:2;grid-row:2;align-self:center;justify-self:stretch;width:128px;min-width:120px;height:120px;min-height:120px;padding:10px 8px;font-size:26px}
  .race-footer .hint-button small{font-size:17px}
  .race-status{grid-column:1/-1;grid-row:3;align-self:center;max-width:none;font-size:23px;line-height:1}
}
@media(min-width:851px) and (max-width:1400px){
  .toolbar{padding:0 10px;gap:0}
  .play-screen{padding:8px 12px 10px}
  .round-heading>div:first-child{gap:14px}
  .round-heading h1{font-size:29px}
  .round-heading p{font-size:22px}
  .round-heading>.round-badge{font-size:23px;padding:7px 13px}
  .progress-copy strong{font-size:28px}
  .progress-copy p{font-size:23px}
  .progress-copy{gap:7px 15px}
  .progress-dots{gap:6px}
  .progress-dots i{width:18px;height:18px}
  .play-footer{gap:16px}
  .racer{padding:8px;gap:6px 10px;grid-template-rows:36px minmax(0,1fr) 32px}
  .racer h2{font-size:28px}
  .race-status{font-size:22px}
  .celebrate-copy{padding:22px}
  .celebrate-copy h1{font-size:50px}
  .celebrate-copy h2{font-size:32px}
  .celebrate-copy p{font-size:24px;line-height:1.25;margin-top:12px}
  .big-stars{font-size:76px;line-height:1.15;margin:10px 0 16px;letter-spacing:14px}
  .celebrate-actions{margin-top:20px;gap:16px}
}

/* Two sides of the same picture trail. */
.map-actions{display:flex;align-items:center;gap:32px}
#two-players{display:flex;align-items:center;justify-content:center;gap:18px;white-space:nowrap;background:var(--yellow);color:#514018;box-shadow:0 8px 0 #bd8a33;font-size:34px}
#two-players span{font-size:42px;letter-spacing:2px}
.race-setup{min-height:calc(100dvh - 120px);display:grid;align-content:center;justify-items:center;gap:28px;padding:20px 24px;text-align:center}
.race-setup header p{font-size:28px;margin-top:8px}
.setup-sides,.race-scorecards{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.setup-side{--side-ink:#125863;--side-paper:#eaf9f2;--side-shadow:#7cac9e;background:#b4d8d1;color:var(--side-ink);border:3px solid var(--side-shadow);border-bottom-width:9px;border-radius:26px;padding:20px}
.setup-side:nth-child(2){--side-ink:#6a4218;--side-paper:#fff7df;--side-shadow:#cb9f55;background:#f4dfaa}
.setup-side h2{font-size:44px;margin-bottom:14px}
.difficulty-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.difficulty-grid button{grid-column:span 2;min-width:120px;min-height:120px;padding:10px 5px;background:var(--side-paper);border:3px solid transparent;border-radius:17px;box-shadow:0 5px 0 var(--side-shadow)}
.difficulty-grid button:nth-child(n+4){grid-column:span 3}
.difficulty-grid button[aria-pressed=true]{background:var(--side-ink);color:white;border-color:var(--side-paper)}
.difficulty-grid strong,.difficulty-grid span{display:block}
.difficulty-grid strong{font-size:31px}
.difficulty-grid span{font-size:23px;margin-top:4px}
#start-race{min-width:min(100%,320px);font-size:33px}
.racer-finished{border-color:#287f70}
.racer-finished:nth-child(2){border-color:#aa7733}
.race-screen .picture-tag{display:none}
.finish-burst{grid-column:2;grid-row:2;align-self:center;justify-self:center;display:grid;justify-items:center;gap:3px;width:120px;padding:12px 0;background:var(--paper);color:var(--ink);border:3px solid var(--yellow);border-radius:20px;font-size:23px;font-weight:900;text-align:center;box-shadow:0 6px 0 #bd8a33;animation:star-in .55s cubic-bezier(.15,1.5,.4,1)}
.finish-burst span{font-size:48px;line-height:1;color:#9b6418;filter:drop-shadow(2px 2px 0 #ffdb83)}
.race-results{width:min(100%,1200px);max-width:none}
.race-results h1{font-size:clamp(40px,4vw,76px)}
.race-scorecards{margin-top:20px}
.race-scorecards h2{margin-bottom:6px}
.race-scorecards strong,.race-scorecards span{display:block;font-size:25px}
.race-scorecards span{margin-top:4px}
.scene-firsts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;list-style:none;margin:16px 0 0;padding:0}
.scene-firsts li{padding:9px;background:var(--paper);border-radius:12px;font-size:20px}
.scene-firsts strong{display:block;font-size:24px}
.race-results .trail-result{font-size:22px;margin-top:12px}

@media(max-width:1400px){
  .map-actions{gap:16px}
  #two-players{font-size:28px;padding:12px 18px}
  #two-players span{font-size:34px}
  .race-setup{gap:16px}
  .setup-side{padding:12px}
  .setup-side h2{font-size:36px;margin-bottom:8px}
}
@media(max-width:850px){
  .map-intro{flex-wrap:wrap}
  .setup-sides,.race-scorecards{gap:10px}
  .race-setup{padding:16px 10px}
  .difficulty-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
  .difficulty-grid button,.difficulty-grid button:nth-child(n+4){grid-column:auto}
  .race-footer .hint-button{position:static}
  .racer .race-pair{transform:none}
}
