:root { --paper: #f7f6f0; --ink: #233b31; --green: #28523f; --muted: #7b8276; --line: #dedfd3; --soft: #eeeee4; --lime: #e1e8b3; --orange: #bb6f43; --serif: 'Fraunces', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #a2b75d; outline-offset: 4px; }
.header { max-width: 1220px; margin: auto; height: 100px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 12px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 29px; letter-spacing: -1.6px; }
.brand-dot { color: #a1ae73; }
.brand-mark { width: 38px; height: 38px; stroke: var(--green); stroke-width: 1.4; }
.header nav { display: flex; align-items: center; gap: 32px; font-size: 12px; font-weight: 600; }
.today-link { padding: 11px 0; border-bottom: 1px solid var(--green); }
.nav-button, .icon-button { border: 0; background: transparent; padding: 8px 0; }
.nav-button span { margin-left: 6px; color: var(--muted); }
.icon-button { width: 32px; height: 36px; display: grid; place-items: center; border-radius: 4px; }
.icon-button svg { width: 23px; height: 23px; }
.icon-button:hover { background: var(--soft); }
main { max-width: 1120px; margin: auto; min-height: calc(100vh - 191px); padding: 47px 16px 56px; }
.eyebrow { text-transform: uppercase; font-size: 10px; font-weight: 600; letter-spacing: 1.7px; display: flex; align-items: center; gap: 9px; color: #71806b; }
.eyebrow .live-dot { width: 5px; height: 5px; border-radius: 50%; background: #72915c; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 29px; gap: 20px; }
.intro h1 { margin: 8px 0 6px; font: 500 49px/1.15 var(--serif); letter-spacing: -1.8px; }
.intro h1 em { font-weight: inherit; }
.intro p { margin: 0; color: var(--muted); font-size: 13px; }
.edition { text-align: right; padding-bottom: 4px; }
.edition strong { display: block; font-size: 12px; font-weight: 500; }
.edition span { font-size: 10px; color: var(--muted); }
.landscape-card { display: grid; grid-template-columns: 1.75fr 1fr; overflow: hidden; border-radius: 8px; border: 1px solid #d2d8cb; background: #e0e7d5; }
.landscape-photo { position: relative; min-width: 0; }
.landscape-photo > img { display: block; width: 100%; height: 324px; object-fit: cover; }
.landscape-photo::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, #13291da8); pointer-events: none; }
.landscape-caption { position: absolute; left: 27px; bottom: 22px; z-index: 1; color: white; }
.landscape-caption .eyebrow { color: #eff1df; font-size: 9px; letter-spacing: 1.5px; }
.landscape-caption h2 { font: 500 27px var(--serif); margin: 5px 0 3px; }
.landscape-caption p { font-size: 11px; margin: 0; color: #e6eadc; }
.scene-stamp { position: absolute; top: 19px; left: 22px; border: 1px solid #ffffff6b; background: #243a2e33; border-radius: 30px; color: white; font-size: 9px; letter-spacing: 1.4px; padding: 5px 11px; z-index: 1; }
.map-preview { position: relative; overflow: hidden; }
.map-preview img { width: 100%; height: 324px; object-fit: cover; display: block; }
.map-stamp { position: absolute; bottom: 18px; left: 18px; background: #f7f6edec; border: 1px solid #d3d8c3; border-radius: 3px; padding: 5px 9px; text-transform: uppercase; font-size: 8px; letter-spacing: 1.2px; }
.terrain-meta { display: flex; justify-content: space-between; margin: 12px 0 32px; color: var(--muted); font-size: 10px; }
.terrain-meta span { display: flex; align-items: center; gap: 6px; }
.terrain-meta svg { width: 13px; height: 13px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-heading h2 { font-size: 14px; font-weight: 600; margin: 0; }
.progress-count { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.progress-dots { display: flex; gap: 4px; }
.progress-dots i { display: block; height: 5px; width: 19px; background: #e0e2d5; border-radius: 2px; }
.progress-dots i.done { background: var(--green); }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.mode-card { background: transparent; border: 1px solid var(--line); padding: 19px 19px 14px; border-radius: 6px; text-align: left; display: flex; flex-direction: column; transition: background .16s, transform .16s, border-color .16s; min-height: 190px; }
.mode-card:hover { background: #eef0e5; border-color: #a9b6a0; transform: translateY(-3px); }
.mode-card:first-child { background: #eef1e5; border-color: #cbd5ba; }
.mode-card.complete { border-color: #b3c6ab; }
.mode-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mode-icon { display: inline-flex; }
.mode-icon svg { width: 25px; height: 25px; stroke: var(--green); stroke-width: 1.4; fill: none; }
.pill { border: 1px solid #d7ddca; border-radius: 20px; padding: 2px 9px; font-size: 9px; color: #6c7a5d; }
.mode-card h3 { font-size: 15px; letter-spacing: -.25px; margin: 0 0 4px; font-weight: 600; }
.mode-card p { color: var(--muted); font-size: 11px; margin: 0 0 19px; line-height: 1.65; }
.mode-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px solid #dcdfd0; padding-top: 11px; font-size: 10px; font-weight: 600; }
.mode-bottom .arrow { font-size: 17px; font-weight: 400; }
.home-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 30px 0 0; color: var(--muted); font-size: 10px; }
.home-note svg { width: 13px; height: 13px; }
.footer { max-width: 1220px; margin: auto; border-top: 1px solid var(--line); padding: 23px 12px; display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.footer-spark { color: #83945e; padding-left: 7px; font-size: 18px; vertical-align: middle; }
.skip { position: absolute; left: 12px; top: -50px; background: var(--green); color: white; padding: 10px; z-index: 10; }
.skip:focus { top: 10px; }
.loading { padding: 100px 0; text-align: center; color: var(--muted); }
.loading-mark { display: inline-block; font-size: 42px; animation: spin 3s linear infinite; color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.game-topline { display: flex; justify-content: space-between; align-items: center; margin: -15px 0 30px; }
.back-link { font-size: 11px; color: var(--muted); display: flex; gap: 9px; align-items: center; }
.mode-tabs { display: flex; gap: 5px; }
.mode-tab { border: 0; background: transparent; border-radius: 20px; padding: 5px 12px; color: var(--muted); font-size: 10px; }
.mode-tab.active { background: var(--green); color: #fff; }
.mode-tab.completed::after { content: ' ✓'; }
.game-heading { margin-bottom: 24px; }
.game-heading h1 { font: 500 33px/1.2 var(--serif); letter-spacing: -.8px; margin: 9px 0; }
.game-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.game-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 30px; align-items: start; }
.view-panel, .map-panel { min-width: 0; }
.panel-label { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 500; margin-bottom: 8px; }
.panel-label span { color: var(--muted); font-size: 9px; font-weight: 400; }
.game-view { border: 1px solid #d3d9cc; border-radius: 5px; overflow: hidden; background: #e0e7d5; position: relative; }
.game-view img { display: block; width: 100%; aspect-ratio: 1.76; object-fit: cover; }
.view-caption { display: flex; justify-content: space-between; padding: 11px 13px; border-top: 1px solid #d3d9cc; background: #eeeee3; font-size: 10px; }
.view-caption span { color: var(--muted); }
.observation-note { display: flex; gap: 10px; margin-top: 17px; padding: 15px; background: #eeeee5; border-radius: 5px; font-size: 11px; color: #78816d; }
.observation-note svg { flex-shrink: 0; width: 17px; height: 17px; stroke: #83915f; fill: none; stroke-width: 1.5; margin-top: 2px; }
.observation-note strong { display: block; font-weight: 500; color: #526348; margin-bottom: 3px; }
.map-board { position: relative; overflow: hidden; border: 1px solid #cdd5c0; border-radius: 5px; aspect-ratio: 1; touch-action: manipulation; isolation: isolate; }
.map-board > img { width: 100%; height: 100%; display: block; pointer-events: none; }
.map-board.interactive { cursor: crosshair; }
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-marker { position: absolute; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--green), 0 2px 5px #253f3740; background: var(--green); pointer-events: none; z-index: 2; }
.map-marker.actual { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.marker-label { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 5px; border-radius: 2px; background: #f7f6eded; color: var(--green); font-size: 8px; }
.position-coordinates { font-size: 9px; color: var(--muted); margin: 8px 0 0; display: flex; justify-content: space-between; }
.direction-panel { margin: 22px 0 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 5px; }
.direction-heading { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; }
.bearing-readout { color: var(--green); font-size: 10px; font-variant-numeric: tabular-nums; }
.direction-buttons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 12px 0; }
.direction-button { background: transparent; border: 1px solid #d7dbcd; border-radius: 4px; padding: 8px 0; font-size: 10px; transition: .15s; }
.direction-button:hover { background: #e9eddd; }
.direction-button.selected { color: white; background: var(--green); border-color: var(--green); }
.bearing-range { width: 100%; margin: 3px 0; accent-color: var(--green); height: 18px; }
.direction-fine { font-size: 9px; color: var(--muted); display: flex; justify-content: space-between; }
.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 23px; border-top: 1px solid var(--line); padding-top: 20px; }
.submit-row p { color: var(--muted); font-size: 10px; margin: 0; }
.button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 25px; background: var(--green); color: white; border: 1px solid var(--green); border-radius: 5px; padding: 11px 24px; font-size: 11px; font-weight: 500; }
.button-primary:hover { background: #1d4231; }
.button-primary:disabled { background: #dce1d3; color: #8a9581; border-color: #dce1d3; }
.button-secondary { background: transparent; border: 1px solid #c5cdbb; border-radius: 5px; padding: 10px 19px; font-size: 11px; }
.button-secondary:hover { background: var(--soft); }
.result-card { padding: 22px; background: #edf1e3; border: 1px solid #cbd8ba; border-radius: 6px; margin-top: 22px; }
.result-top { display: flex; justify-content: space-between; align-items: center; }
.result-card h2 { font: 500 25px var(--serif); margin: 4px 0 9px; }
.result-card p { font-size: 11px; color: #6e7a63; margin: 5px 0; }
.score-value { font: 500 32px var(--serif); text-align: right; }
.score-value span { display: block; font: 9px var(--sans); color: var(--muted); margin-top: 2px; }
.result-details { display: flex; gap: 22px; margin: 16px 0; padding: 12px 0; border-top: 1px solid #d0dbc1; border-bottom: 1px solid #d0dbc1; font-size: 11px; }
.result-details strong { display: block; font-size: 14px; font-weight: 500; }
.result-details span { font-size: 9px; color: var(--muted); }
.result-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.map-legend { display: flex; gap: 16px; font-size: 9px; color: var(--muted); margin-top: 10px; }
.map-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; background: var(--green); }
.map-legend i.actual { background: var(--orange); }
.match-layout { display: grid; grid-template-columns: 1.12fr 1fr; gap: 23px; }
.match-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.match-option { padding: 0; border: 2px solid #d4dac9; border-radius: 5px; overflow: hidden; background: #eeeee3; position: relative; }
.match-option img { width: 100%; aspect-ratio: 1; display: block; }
.match-option.selected { border-color: var(--green); box-shadow: 0 0 0 2px #b1c6a788; }
.match-option.correct { border-color: #4e8058; }
.match-option.wrong { border-color: var(--orange); }
.option-letter { position: absolute; left: 9px; bottom: 9px; border-radius: 4px; background: var(--paper); width: 23px; height: 23px; display: grid; place-items: center; font-size: 10px; font-weight: 600; }
.match-option.selected .option-letter { color: white; background: var(--green); }
.selection-status { margin-top: 12px; font-size: 10px; color: var(--muted); }
.summary { background: #e9efde; padding: 23px; border: 1px solid #cbd5bc; border-radius: 6px; margin-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.summary h3 { font: 500 24px var(--serif); margin: 0 0 5px; }
.summary p { font-size: 11px; color: #738067; margin: 0; }
dialog { border: 1px solid #d5dbc9; background: var(--paper); color: var(--ink); border-radius: 9px; padding: 34px; width: min(530px, calc(100vw - 32px)); max-height: calc(100dvh - 50px); box-shadow: 0 20px 100px #15291f25; }
dialog::backdrop { background: #1d332f65; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 11px; right: 13px; font-size: 23px; }
dialog h2 { font: 500 30px var(--serif); margin: 10px 0 12px; }
dialog > div > p { color: var(--muted); font-size: 12px; }
.help-steps { padding: 0; list-style: none; counter-reset: steps; margin: 24px 0; }
.help-steps li { position: relative; padding-left: 36px; margin: 19px 0; font-size: 12px; color: var(--muted); }
.help-steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: 0; border: 1px solid #c3d0b4; border-radius: 50%; width: 23px; height: 23px; display: grid; place-items: center; color: var(--green); font-size: 10px; }
.help-steps strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 3px; }
.help-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 15px; border-radius: 4px; background: var(--soft); font-size: 11px; }
.help-modes strong { display: block; font-size: 10px; margin-bottom: 3px; }
.help-footnote { font-size: 10px !important; border-top: 1px solid var(--line); padding-top: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 25px 0; gap: 10px; text-align: center; }
.stat-grid strong { font: 500 32px var(--serif); display: block; }
.stat-grid span { font-size: 9px; color: var(--muted); }
.stat-row { display: flex; justify-content: space-between; font-size: 11px; border-top: 1px solid var(--line); padding: 12px 0; }
.share-output { width: 100%; font-family: var(--sans); font-size: 12px; resize: none; height: 170px; border: 1px solid #cbd5bb; background: var(--soft); padding: 14px; color: var(--ink); border-radius: 4px; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 20px); background: var(--green); color: white; padding: 10px 19px; border-radius: 5px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 20; font-size: 12px; pointer-events: none; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
.error-card { max-width: 500px; margin: 70px auto; text-align: center; }
.error-card h1 { font: 500 34px var(--serif); }
.error-card p { color: var(--muted); font-size: 13px; }
.fallback-note { margin: 0 0 20px; padding: 10px 14px; background: #eeeee1; border-radius: 4px; color: var(--muted); font-size: 11px; }
@media (min-width: 1500px) { main { padding-top: 60px; } .landscape-photo > img, .map-preview img { height: 365px; } }
@media (max-width: 1250px) { .header, .footer { margin-left: 30px; margin-right: 30px; } main { padding-left: 30px; padding-right: 30px; } }
@media (max-width: 850px) { .header { height: 83px; } main { padding-top: 34px; } .intro h1 { font-size: 42px; } .landscape-card { grid-template-columns: 1.4fr 1fr; } .landscape-photo > img, .map-preview img { height: 285px; } .mode-grid { grid-template-columns: repeat(2, 1fr); } .mode-card { min-height: 170px; } .mode-top { margin-bottom: 13px; } .mode-card p { margin-bottom: 14px; } .game-layout, .match-layout { grid-template-columns: 1fr 1fr; gap: 16px; } .game-view img { aspect-ratio: 1.25; } .direction-buttons { gap: 3px; } .direction-panel { padding: 12px; } .view-caption { flex-wrap: wrap; gap: 3px; } }
@media (max-width: 600px) { .header, .footer { margin-left: 20px; margin-right: 20px; padding-left: 0; padding-right: 0; } .header { height: 76px; } .brand { font-size: 25px; gap: 7px; } .brand-mark { width: 31px; height: 31px; } .header nav { gap: 12px; } .today-link { display: none; } .nav-button { font-size: 10px; } main { padding: 29px 20px 38px; } .intro { align-items: flex-start; margin-bottom: 23px; } .intro h1 { font-size: 37px; letter-spacing: -1.3px; } .intro p { font-size: 11px; } .edition { padding-top: 5px; } .edition strong { font-size: 9px; } .edition span { font-size: 8px; } .eyebrow { font-size: 8px; letter-spacing: 1.3px; } .landscape-card { grid-template-columns: 1fr; } .landscape-photo > img { height: 233px; } .map-preview { display: none; } .landscape-caption { left: 19px; bottom: 18px; } .landscape-caption h2 { font-size: 24px; } .landscape-caption p { font-size: 10px; } .scene-stamp { left: 19px; top: 15px; font-size: 8px; } .terrain-meta { margin-bottom: 24px; font-size: 8px; } .terrain-meta span:last-child { display: none; } .section-heading h2 { font-size: 13px; } .progress-count { font-size: 8px; gap: 5px; } .progress-dots i { width: 12px; } .mode-grid { gap: 10px; } .mode-card { padding: 14px 13px 11px; min-height: 166px; } .mode-card h3 { font-size: 13px; } .mode-card p { font-size: 10px; } .mode-icon svg { height: 23px; width: 23px; } .home-note { font-size: 8px; margin-top: 22px; } .footer { font-size: 8px; } .footer-spark { font-size: 14px; } .game-topline { margin-top: -4px; margin-bottom: 24px; gap: 8px; } .back-link { font-size: 9px; gap: 4px; } .mode-tabs { gap: 1px; } .mode-tab { font-size: 9px; padding: 5px 8px; } .game-heading h1 { font-size: 29px; } .game-heading p { font-size: 11px; } .game-layout, .match-layout { grid-template-columns: 1fr; gap: 23px; } .game-view img { aspect-ratio: 1.7; } .observation-note { display: none; } .map-board { max-height: 420px; max-width: 420px; margin: auto; } .direction-panel { margin-top: 15px; } .submit-row { gap: 10px; } .button-primary { padding: 11px 17px; gap: 15px; } .result-card { padding: 17px; } .result-card h2 { font-size: 22px; } .result-actions { gap: 8px; } .button-secondary { padding: 10px 12px; } .summary { padding: 17px; gap: 12px; } .summary h3 { font-size: 20px; } .summary p { font-size: 10px; } dialog { padding: 26px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
