:root { color-scheme: dark; font-family: "Segoe UI", system-ui, sans-serif; color: #eee9df; --gold: #d0b583; --muted: #aeb6b4; --line: #e4e4ce21; --panel: #151e20e8; }
* { box-sizing: border-box; }
html, body, #app { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: #132127; }
button, select, input { font: inherit; }
button, select { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .55; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
a { color: var(--gold); text-underline-offset: 4px; }
[hidden] { display: none !important; }
#world { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#10181975, transparent 24%, transparent 65%, #0c121bb3); }
.topbar { position: absolute; top: 0; left: 0; right: 0; height: 105px; padding: 27px 38px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; z-index: 4; }
.topbar button { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 13px; background: none; border: none; text-align: left; padding: 0; }
.brand-symbol { font-family: Georgia, serif; font-size: 48px; line-height: 1; color: var(--gold); }
.brand strong { font-family: Georgia, serif; display: block; font-size: 23px; letter-spacing: 6px; font-weight: 400; }
.brand small { display: block; font-size: 9px; letter-spacing: 3.6px; margin-top: 5px; color: #c5bfae; }
.top-right { display: flex; gap: 12px; align-items: center; }
.archive-tag { font-size: 9px; letter-spacing: 2px; padding-right: 15px; color: #e0dfd3; }
.icon-button { border: 1px solid #eee9df33; background: #14202370; width: 34px; height: 34px; border-radius: 50%; font-size: 19px; }
.icon-button:hover { border-color: var(--gold); color: var(--gold); }
#loading { position: absolute; z-index: 5; top: 101px; left: 50%; transform: translateX(-50%); width: min(320px, 80vw); text-align: center; font-size: 11px; letter-spacing: 1px; color: #fff4da; text-shadow: 0 1px 4px #000; }
.loading-track { height: 2px; background: #ffffff30; margin-top: 10px; overflow: hidden; }
#loading-fill { display: block; background: var(--gold); width: 0; height: 100%; transition: width .2s; }
.welcome { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 105px 25px 55px; text-align: center; background: radial-gradient(ellipse at center, #102024a6, #101b218c 58%, #131b2080); backdrop-filter: blur(1.5px); z-index: 2; }
.eyebrow { color: var(--gold); font-size: 10px; letter-spacing: 4px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.eyebrow span { width: 30px; height: 1px; background: #d0b58366; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(43px, 4.8vw, 76px); font-weight: 400; line-height: 1.08; letter-spacing: -2px; margin: 13px 0 20px; text-shadow: 0 4px 35px #0005; }
h1 em { font-weight: 400; color: #e3d1aa; }
.intro { font-size: 13px; line-height: 1.8; color: #ced4cf; margin: 0 0 29px; }
.region-cards { display: flex; gap: 12px; margin-bottom: 24px; }
.region-card { position: relative; overflow: hidden; width: 190px; height: 115px; text-align: left; padding: 19px 19px; border: 1px solid #e6e2ce30; background: #142329dd; border-radius: 3px; transition: border-color .2s, transform .2s, background .2s; }
.region-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--map) center / cover; opacity: .16; }
.region-card:hover { border-color: #cfbc98aa; transform: translateY(-3px); }
.region-card.selected { border-color: var(--gold); background: #3a4035d9; }
.region-number { display: block; font-size: 9px; letter-spacing: 2px; color: var(--gold); margin-bottom: 10px; }
.region-card strong { display: block; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.region-card small { display: block; margin-top: 7px; color: #bbc2b8; font-size: 10px; }
.region-check { position: absolute; right: 16px; top: 17px; color: var(--gold); font-size: 17px; opacity: .45; }
.selected .region-check { opacity: 1; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-width: 240px; padding: 15px 22px; border: 1px solid #e1c99e; background: #d0b583; color: #232a25; font-size: 12px; font-weight: 600; letter-spacing: .5px; border-radius: 2px; }
.primary:hover { background: #e3cda4; }
.primary span:last-child { font-size: 19px; }
.welcome-hint { font-size: 8px; letter-spacing: 1.8px; margin-top: 18px; color: #aeb8b4; }
.welcome-hint span { color: #e1c99e99; padding: 0 10px; }
.welcome-credit { color: #9faeac; font-size: 10px; line-height: 1.8; margin: 20px 0 0; }
.welcome-credit a { text-decoration: none; }
.panel { position: absolute; left: 30px; top: 122px; width: 254px; background: var(--panel); border: 1px solid #eee9df28; border-radius: 4px; backdrop-filter: blur(18px); box-shadow: 0 8px 30px #0002; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 17px 19px; letter-spacing: 2px; font-size: 9px; color: var(--gold); }
.panel-heading span:last-child { font-size: 16px; line-height: 10px; }
#panel-content { padding: 4px 19px 11px; }
.field-label { display: block; color: #adb7b3; font-size: 8px; letter-spacing: 1.5px; margin: 15px 0 8px; }
select { border: 1px solid #c6d2c42e; border-radius: 2px; padding: 9px 10px; width: 100%; font-size: 12px; background: #26302e; text-overflow: ellipsis; }
.section-line { height: 1px; background: var(--line); margin: 17px 0; }
.field-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
output { color: var(--gold); font-variant-numeric: tabular-nums; font-size: 12px; }
output small { font-size: 9px; color: #aab4b0; }
input[type="range"] { display: block; appearance: none; width: 100%; height: 3px; border-radius: 2px; background: #d5d3ba40; margin: 16px 0 11px; accent-color: var(--gold); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border: 2px solid #e5d3af; border-radius: 50%; background: #bfa377; box-shadow: 0 0 0 4px #c8b18a18; }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #e5d3af; border-radius: 50%; background: #bfa377; }
.range-labels { display: flex; justify-content: space-between; font-size: 8px; color: #96a3a0; }
.subtle-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: none; font-size: 10px; padding: 9px; margin-top: 14px; border-radius: 2px; }
.subtle-button:hover, .small-button:hover { border-color: var(--gold); }
#cycle-icon { font-size: 13px; color: var(--gold); }
.button-row { display: flex; gap: 8px; margin-top: 11px; }
.small-button { flex: 1; background: none; border: 1px solid var(--line); border-radius: 2px; padding: 8px 4px; font-size: 9px; }
.share-button { border: none; justify-content: space-between; padding: 4px 0 3px; font-size: 10px; color: var(--gold); }
.map-panel { position: absolute; left: 30px; bottom: 57px; background: #152024d9; border: 1px solid #eee9df25; border-radius: 3px; width: 178px; padding: 10px; }
.map-heading { display: flex; justify-content: space-between; font-size: 8px; letter-spacing: 1px; margin-bottom: 8px; color: #d6d4c4; }
#minimap { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 1.4; overflow: hidden; background: #1c3c46; }
#map-image { display: block; width: 100%; height: 100%; object-fit: fill; opacity: .85; }
#map-marker { position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 12px solid #fff5ce; transform-origin: 50% 60%; filter: drop-shadow(0 1px 2px #000); }
.map-hint { display: block; margin-top: 7px; text-align: center; color: #adb7b0; font-size: 8px; }
.fly-hint { position: absolute; bottom: 77px; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; text-shadow: 0 1px 4px #000; white-space: nowrap; }
.fly-hint strong { display: block; font-family: Georgia, serif; font-weight: 400; font-size: 19px; margin-bottom: 13px; }
.fly-hint span { font-size: 10px; color: #d2d9d4; }
.fly-hint b { font-weight: 400; padding: 0 7px; color: #a2aaa5; }
kbd { font: inherit; font-size: 9px; border: 1px solid #fff4; border-radius: 3px; padding: 3px 5px; margin-right: 3px; }
#crosshair { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-weight: 200; color: #fff9; pointer-events: none; }
.world-status { position: absolute; right: 30px; bottom: 61px; text-align: right; font-size: 9px; color: #d3d6c9; text-shadow: 0 1px 3px #000; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #b6c996; margin-right: 6px; }
#coordinates { display: block; margin-top: 7px; font-size: 8px; color: #c2c5be; font-variant-numeric: tabular-nums; letter-spacing: .7px; }
#credit { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px 20px; text-align: center; color: #aeb7b3; font-size: 9px; letter-spacing: .15px; z-index: 3; background: linear-gradient(transparent, #10171b55); }
#credit a { color: #d6c8ab; text-decoration: none; }
#credit span { margin: 0 5px; }
#notice { position: absolute; z-index: 20; top: 105px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; align-items: center; max-width: min(600px, 90vw); padding: 14px 18px; background: #252b28; border: 1px solid var(--gold); border-radius: 4px; box-shadow: 0 10px 40px #0005; font-size: 12px; }
#notice button { border: 0; background: none; color: var(--gold); }
#dismiss-notice { font-size: 20px; }
dialog { width: min(520px, 90vw); max-height: 85vh; padding: 37px; border: 1px solid #bca57977; border-radius: 4px; background: #192325; color: #d9ded7; line-height: 1.7; box-shadow: 0 20px 90px #0008; }
dialog::backdrop { background: #0b161cbf; backdrop-filter: blur(4px); }
dialog .eyebrow { justify-content: flex-start; font-size: 8px; }
dialog h2 { font-family: Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.3; color: #e8d8b8; }
dialog p { font-size: 12px; }
dialog dl { display: grid; grid-template-columns: 95px 1fr; gap: 9px; font-size: 11px; margin: 25px 0; }
dialog dt { color: var(--gold); }
dialog dd { margin: 0; }
.help-note { color: #a5b2af; font-size: 11px; }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 24px; }
#touch-controls { display: none; }
@media (max-height: 850px) and (min-width: 701px) { .panel { top: 104px; } .map-panel { left: auto; right: 30px; bottom: 110px; } .section-line { margin: 12px 0; } .field-label { margin-top: 12px; } h1 { font-size: 56px; margin: 7px 0 15px; } .welcome-credit { margin-top: 12px; } }
@media (max-width: 900px) { .archive-tag { display: none; } .fly-hint span { display: none; } .fly-hint { bottom: 65px; } .map-panel { left: auto; right: 22px; bottom: 120px; width: 144px; } .topbar { padding: 24px; } }
@media (max-width: 700px) {
	.topbar { height: 84px; padding: 20px; } .brand strong { font-size: 19px; letter-spacing: 4px; } .brand small { font-size: 7px; letter-spacing: 3px; } .brand-symbol { font-size: 37px; }
	.welcome { padding: 95px 20px 75px; overflow-y: auto; } h1 { font-size: 46px; margin: 11px 0 17px; } .intro { font-size: 11px; margin-bottom: 18px; } .region-cards { gap: 7px; width: 100%; margin-bottom: 20px; } .region-card { flex: 1; width: auto; height: 98px; padding: 12px; } .region-card strong { font-size: 17px; } .region-card small { font-size: 8px; line-height: 1.4; } .region-number { margin-bottom: 9px; } .region-check { right: 10px; top: 10px; font-size: 13px; }
	.welcome-hint { letter-spacing: 1px; font-size: 7px; } .welcome-hint span { padding: 0 5px; } .welcome-credit { font-size: 9px; max-width: 330px; } .eyebrow { font-size: 8px; }
	.panel { left: 14px; top: 94px; width: 224px; max-height: calc(100dvh - 270px); overflow: auto; } #panel-content { padding: 3px 15px 12px; } .panel-heading { padding: 14px 15px; } .map-panel { width: 110px; right: 14px; top: 94px; bottom: auto; padding: 7px; } .map-hint { font-size: 7px; } .map-heading { font-size: 7px; }
	#credit { font-size: 7px; padding: 13px; line-height: 1.6; } #credit span { display: none; } #credit a { white-space: nowrap; } .world-status { right: 15px; bottom: 60px; font-size: 8px; } .fly-hint { bottom: 94px; } .fly-hint strong { font-size: 14px; } #loading { top: 82px; font-size: 9px; }
}
@media (pointer: coarse) { #touch-controls { display: flex; justify-content: space-between; position: absolute; left: 22px; right: 22px; bottom: 85px; pointer-events: none; } #touch-controls button { width: 43px; height: 43px; background: #142126b5; border: 1px solid #ddd6b540; border-radius: 6px; font-size: 23px; pointer-events: auto; touch-action: none; } #touch-controls button:active { background: #7c7455; } .touch-pad { display: grid; grid-template-columns: repeat(3, 43px); gap: 5px; } .touch-pad button:first-child { grid-column: 2; } .touch-pad button:nth-child(2) { grid-column: 1; grid-row: 2; } .touch-pad button:nth-child(3) { grid-column: 2; grid-row: 2; } .touch-pad button:nth-child(4) { grid-column: 3; grid-row: 2; } .touch-height { display: flex; flex-direction: column; gap: 5px; } .fly-hint { display: none; } .world-status { bottom: 58px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
