@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Noto+Sans+Symbols+2&display=swap');

:root{color-scheme:light;--ink:#20342b;--paper:#f5f0e5;--green:#172c27;--gold:#e8bb70;--line:#d7cdb6;font:16px 'DM Sans','Noto Sans Symbols 2',sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink)}
button,a{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid #b0522b;outline-offset:4px}
.wrap{width:min(1240px,calc(100% - 80px));margin-inline:auto}
.top{background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}
.top-inner{display:flex;align-items:center;gap:14px;padding-block:12px}
.brand{display:block;width:104px;height:auto}
.edition{border-left:1px solid var(--line);padding-left:18px;font-size:13px}
.layout{display:grid;grid-template-columns:minmax(320px, .83fr) minmax(0,1.17fr);gap:22px;align-items:start;padding-block:clamp(30px,6vw,86px) 30px}
.panel,.atlas{border-radius:16px;padding:clamp(23px,3vw,42px)}
.panel{border:1px solid var(--line);background:#fffaf0;min-height:458px}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.17em;margin:0 0 14px;text-transform:uppercase}
.panel>.eyebrow{color:#78522e}
h1,h2{font-family:'Instrument Serif','Noto Sans Symbols 2',Georgia,serif;font-weight:400;margin:0}
h1{font-size:clamp(45px,5.7vw,83px);letter-spacing:-.035em;line-height:.97}
h1 em{color:#815437}
.question{font-size:clamp(32px,4vw,50px);line-height:1.04;margin:20px 0}
.intro{line-height:1.65;margin:22px 0 27px;max-width:32ch}
button{font:inherit;cursor:pointer}
.primary{background:var(--green);color:#fff8e8;border:0;border-radius:8px;padding:13px 20px;font-weight:700;min-height:48px}
@media (hover:hover){.primary:hover{background:#2e4a3d}}
.atlas{background:var(--green);color:#fbefd8;min-width:0}
.atlas-header{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:24px}
.atlas .eyebrow{color:var(--gold);margin-bottom:5px}
.atlas h2{font-size:42px;line-height:1}
#pinCount{margin:0;color:#f4cf8e;font-size:13px;text-align:right;max-width:18ch}
.map{position:relative;aspect-ratio:1200/605;background:#203b33;border:1px solid #53665a;border-radius:10px}
canvas{width:100%;height:100%;display:block;border-radius:inherit}

.marker{position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%);border:1px solid #1d3329;border-radius:50%;background:#fff7e8;color:var(--green);width:36px;height:36px;padding:0;overflow:hidden;box-shadow:0 0 0 2px var(--gold),0 2px 6px rgba(0,0,0,.35);z-index:2;transition:transform .15s}
.marker img{width:100%;height:100%;object-fit:cover;transform:scale(1.25);pointer-events:none}
.marker:focus-visible{z-index:5;transform:translate(-50%,-50%) scale(1.5)}
@media (hover:hover){.marker:hover{z-index:5;transform:translate(-50%,-50%) scale(1.5)}}
.map-detail{color:#f8dfb6;font-size:13px;min-height:20px;margin:14px 0 0}
.stops{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:6px}
.stops:not(:empty){margin-top:12px}
.stops button{border:1px solid #66786a;background:none;color:#fff2d7;border-radius:99px;padding:4px 9px;min-height:32px;font-size:12px}
.stats{display:flex;justify-content:space-between;gap:10px;font-size:13px;font-weight:700}
progress{display:block;width:100%;height:8px;margin:10px 0 0;accent-color:#7e542f}
.answers{display:grid;gap:8px}
.answer{text-align:left;padding:10px 12px;min-height:44px;border:1px solid var(--line);border-radius:7px;background:#fffdf6;color:var(--ink)}
@media (hover:hover){.answer:not(:disabled):hover{background:#f4ecda;border-color:#89623f}}
.answer:disabled{cursor:default}
.answer.correct{background:#e2eddb;border-color:#56774a}
.answer.wrong{background:#f6e4dd;border-color:#a45c4c}
.feedback{margin:16px 0 10px;line-height:1.5}
.result-score{display:block;font:clamp(68px,9vw,112px)/1 'Instrument Serif','Noto Sans Symbols 2',Georgia,serif;color:#815437;margin-top:15px}
footer{border-top:1px solid var(--line);padding:15px 0 25px;display:flex;justify-content:space-between;gap:10px;font-size:12px}
footer a{color:inherit}
@media(max-width:850px){.wrap{width:calc(100% - 36px)}.layout{grid-template-columns:1fr;gap:14px}.panel{min-height:0}.atlas{padding:18px}.atlas-header{margin-bottom:15px}.atlas h2{font-size:34px}}

/* The compass echoes the navigation mark on the quiz map. */
.edition {
  display: flex;
  align-items: center;
  gap: 9px;
  font: italic clamp(25px, 4vw, 37px)/1 'Instrument Serif','Noto Sans Symbols 2',Georgia,serif;
}
.edition-motif { color: #95662e; font: 17px/1 'Noto Sans Symbols 2', Georgia, serif; }
.results-layout .panel {
  border-top: 4px solid #a5834f;
  min-height: 0;
}
.results-layout .panel h1 { font-size: clamp(45px, 5.8vw, 80px); }
.results-layout .intro { max-width: 46ch; }
.result-motif {
  color: #9b6a32;
  font-size: 21px;
  letter-spacing: .18em;
  margin-bottom: 14px;
}
.result-score { animation: score-in .45s ease-out both; }
@keyframes score-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.result-actions .primary { display: inline-flex; align-items: center; text-decoration: none; }
.replay { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.landmarks { margin-bottom: 30px; }
.landmarks h2 { font-size: clamp(39px, 5vw, 59px); margin-bottom: 16px; }
.landmark-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(195px, 100%), 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.landmark-gallery li {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 6px;
  padding: 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf0;
  font-size: 13px;
}
.landmark-gallery strong { font-size: 16px; line-height: 1.3; }
.landmark-gallery li > :not(img) { margin-inline: 4px; }
.landmark-art { display: block; width: 100%; height: auto; border-radius: 6px; margin-bottom: 7px; background: #eadbc1; }
.landmark-status { font-weight: 700; color: #78522e; margin-top: auto; }
#landmark-gallery li.landmark-locked { justify-content: center; align-items: center; gap: 10px; min-height: 220px; color: #78522e; background: #eadbc1; text-align: center; }
.landmark-locked .landmark-status { margin-top: 0; }
@media(max-width:480px) {
  .wrap { width: calc(100% - 24px); }
  .top-inner { gap: 5px; padding-block: 9px; }
  .brand { width: 86px; }
  .edition { padding-left: 12px; font-size: 26px; }
  .layout { padding-block: 16px 20px; gap: 12px; }
  .panel { padding: 24px 20px; border-radius: 14px; }
  .atlas { padding: 16px; border-radius: 14px; }
  .atlas-header { align-items: center; }
  .atlas h2 { font-size: 30px; white-space: nowrap; }
  #pinCount { font-size: 12px; }
  .marker { width: 26px; height: 26px; }
  .answer { min-height: 52px; padding: 12px 14px; font-size: 16px; }
  .primary { width: 100%; }
  .result-actions .primary { justify-content: center; width: 100%; text-align: center; padding-inline: 14px; }
  footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .landmark-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(prefers-reduced-motion: reduce) {
  .result-score { animation: none; }
}

