:root {
  color-scheme: dark;
  --pays-ink: #f5efe4;
  --pays-muted: rgba(245,239,228,.58);
  --pays-gold: #e1b875;
  --pays-gold-bright: #ffd99a;
  --pays-panel: rgba(10,9,7,.84);
  --pays-line: rgba(225,184,117,.28);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #030302; }
body { color: var(--pays-ink); }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
#paysExperience { position: relative; width: 100%; height: 100%; min-height: 520px; overflow: hidden; isolation: isolate; background: #030302; }
#paysScene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; background: radial-gradient(circle at 58% 43%, #17130e 0, #080706 42%, #020202 78%); }
.pays-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 56% 49%, transparent 35%, rgba(0,0,0,.2) 67%, rgba(0,0,0,.7) 100%); }
.pays-header { position: absolute; z-index: 10; top: 0; left: 0; right: 0; height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 34px; border-bottom: 1px solid rgba(255,255,255,.11); background: linear-gradient(180deg, rgba(3,3,2,.94), rgba(3,3,2,.76)); backdrop-filter: blur(14px); }
.pays-brand { justify-self: start; color: var(--pays-ink); text-decoration: none; font-size: 23px; font-weight: 800; letter-spacing: -.08em; }
.pays-brand i { color: var(--pays-gold); font-style: normal; }
.pays-title { text-align: center; }
.pays-title p, .pays-kicker, .town-card > p { margin: 0 0 5px; color: var(--pays-gold); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.pays-title h1 { margin: 0; font: 500 24px/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.pays-actions { justify-self: end; display: flex; gap: 8px; }
.pays-actions button, .pays-compass, .town-card button { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); color: var(--pays-ink); background: rgba(18,16,12,.88); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.pays-actions button { width: 42px; height: 42px; border-radius: 50%; }
.pays-actions button:hover, .pays-compass:hover, .town-card button:hover { border-color: rgba(225,184,117,.65); background: rgba(54,43,27,.86); }
.pays-actions button:active, .pays-compass:active { transform: scale(.95); }
.pays-actions svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pays-intro { position: absolute; z-index: 8; top: 132px; left: 34px; width: 250px; padding-left: 15px; border-left: 1px solid var(--pays-line); }
.pays-intro > p:not(.pays-kicker) { margin: 11px 0 22px; color: var(--pays-muted); font-size: 13px; line-height: 1.55; }
.pays-intro label { display: block; margin-bottom: 7px; color: rgba(245,239,228,.56); font-size: 11px; }
#townSelect { width: 100%; min-height: 42px; padding: 0 35px 0 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 0; color: var(--pays-ink); background: rgba(11,10,8,.82); outline: none; cursor: pointer; }
#townSelect:focus { border-color: var(--pays-gold); }
.town-card { position: absolute; z-index: 12; right: 34px; top: 127px; width: min(320px, calc(100vw - 48px)); padding: 24px 28px 25px; border: 1px solid var(--pays-line); background: var(--pays-panel); box-shadow: 0 24px 70px rgba(0,0,0,.45); backdrop-filter: blur(18px); }
.town-card[hidden] { display: none; }
.town-card h2 { margin: 8px 0 9px; font: 500 27px/1.05 Georgia, serif; }
.town-card span { color: var(--pays-muted); font-size: 13px; }
.town-card button { position: absolute; top: 11px; right: 11px; width: 31px; height: 31px; border-radius: 50%; font-size: 21px; }
.town-markers { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.town-marker { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); opacity: 0; transition: opacity .18s; }
.town-marker.visible { opacity: 1; pointer-events: auto; }
.town-marker button { position: relative; padding: 4px 7px; border: 0; color: rgba(255,245,225,.82); background: rgba(5,5,4,.7); font-size: 10px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; cursor: pointer; backdrop-filter: blur(5px); }
.town-marker button::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 10px; background: linear-gradient(var(--pays-gold), transparent); }
.town-marker i { width: 5px; height: 5px; margin-top: 10px; border: 1px solid #fff; border-radius: 50%; background: var(--pays-gold); box-shadow: 0 0 10px rgba(225,184,117,.8); }
.town-marker.active button, .town-marker button:hover { color: #171008; background: var(--pays-gold-bright); }
.pays-legend { position: absolute; z-index: 6; left: 34px; bottom: 44px; display: flex; gap: 17px; color: rgba(245,239,228,.53); font-size: 10px; }
.pays-legend span { display: flex; align-items: center; gap: 6px; }
.pays-legend i { width: 8px; height: 8px; border-radius: 50%; background: #c99d61; }
.pays-legend .forest { background: #31533a; }
.pays-legend .water { background: #395d6f; }
.pays-hints { position: absolute; z-index: 6; left: 34px; bottom: 18px; margin: 0; color: rgba(245,239,228,.36); font-size: 10px; }
.pays-compass { position: absolute; z-index: 6; right: 36px; bottom: 38px; width: 44px; height: 44px; border-radius: 50%; }
.pays-compass span { position: absolute; top: 4px; left: 17px; color: rgba(255,255,255,.64); font-size: 9px; }
.pays-compass i { position: absolute; left: 17px; top: 14px; width: 9px; height: 22px; background: linear-gradient(180deg, var(--pays-gold) 0 50%, rgba(255,255,255,.24) 50%); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.pays-credits { position: absolute; z-index: 6; right: 34px; bottom: 15px; margin: 0; color: rgba(245,239,228,.29); font-size: 9px; }
.pays-loading { position: absolute; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; background: #030302; transition: opacity .65s, visibility .65s; }
.pays-loading.done { opacity: 0; visibility: hidden; }
.pays-loading > div { font-size: 30px; letter-spacing: -.08em; }
.pays-loading > div i { color: var(--pays-gold); font-style: normal; }
.pays-loading > span { width: 190px; height: 1px; margin-top: 24px; overflow: hidden; background: rgba(255,255,255,.13); }
.pays-loading > span i { display: block; width: 8%; height: 100%; background: var(--pays-gold); box-shadow: 0 0 12px var(--pays-gold); transition: width .25s; }
.pays-loading p { color: var(--pays-muted); font-size: 11px; letter-spacing: .07em; }
.pays-noscript { position: absolute; z-index: 120; inset: 50% auto auto 50%; transform: translate(-50%,-50%); padding: 15px; background: #4e2d20; }

@media (max-width: 760px) {
  #paysExperience { min-height: 480px; }
  .pays-header { height: 72px; padding: 0 14px; grid-template-columns: 1fr auto; gap: 8px; }
  .pays-brand { font-size: 20px; }
  .pays-title { display: none; }
  .pays-actions { gap: 5px; }
  .pays-actions button { width: 38px; height: 38px; }
  .pays-intro { top: 86px; left: 14px; width: calc(100vw - 28px); padding: 0; border: 0; }
  .pays-intro .pays-kicker, .pays-intro > p:not(.pays-kicker), .pays-intro label { display: none; }
  #townSelect { width: min(255px, calc(100vw - 28px)); min-height: 42px; background: rgba(8,7,6,.9); }
  .town-card { top: auto; right: 14px; bottom: 22px; width: calc(100vw - 28px); padding: 19px 22px 20px; }
  .town-card h2 { font-size: 23px; }
  .town-marker.secondary { display: none; }
  .town-marker button { font-size: 9px; padding: 3px 5px; }
  .pays-legend, .pays-hints, .pays-credits { display: none; }
  .pays-compass { right: 15px; bottom: 18px; }
  .town-card:not([hidden]) ~ .pays-compass { display: none; }
}

@media (max-height: 620px) and (min-width: 761px) {
  .pays-header { height: 72px; }
  .pays-intro { top: 92px; }
  .town-card { top: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
