/* Shared with the Wails frontend. Original game brass artwork, the approved
   Atlas medallion, and fine leather at a fixed scale, never stretched. */
@font-face{font-family:Atlas Lora;src:url('/assets/atlas/lora.ttf') format('truetype');font-weight:400 700;font-style:normal;font-display:swap}
:root{
  --bg:#1b140e;--base:#1b140e;--panel:#2b2117;--ink:#f2e8d4;--text:#f2e8d4;
  --muted:#c9bba5;--line:#715838;--accent:#f0c863;--amber:#f0c863;--hover:#3c2d1d;
  --atlas-leather:url('/assets/atlas/fine-leather.webp');--atlas-medallion:url('/assets/atlas/medallion.webp');
  --atlas-up:url('/assets/atlas/button-up.png');--atlas-down:url('/assets/atlas/button-down.png');
  --atlas-ground:#25231f;--atlas-selected:#c99b49;--atlas-selected-ink:#20170c;
  --atlas-title:'Atlas Lora',Georgia,serif;
  color:var(--ink);background:var(--bg);color-scheme:dark;
}
body{color:var(--ink);background:var(--bg);scrollbar-color:#89704b var(--bg)}
::selection{background:#755929;color:#fff5dc}
h1,h2,h3,.brand{font-family:var(--atlas-title);font-weight:500;letter-spacing:0;color:var(--accent)}
button,.button{font-family:var(--atlas-title)}
:is(.atlas-web,.shell) button:where(:not(.discord):not(.discord-button):not(.switch-row)),.atlas-web a.button:where(:not(.discord-button)),.download-button{
  color:var(--ink);background:transparent;
  border-image:var(--atlas-up) 7 fill / 7px / 0 stretch;
  border-radius:2px;text-shadow:0 1px 1px #000;font-weight:500;
}
:is(.atlas-web,.shell) button:where(:not(.discord):not(.discord-button):not(.switch-row)):hover:not(:disabled),.atlas-web a.button:where(:not(.discord-button)):hover{
  color:#fff7e6;background:transparent;filter:brightness(1.13);
}
:is(.atlas-web,.shell) button:where(:not(.discord):not(.discord-button):not(.switch-row)):active:not(:disabled){border-image-source:var(--atlas-down)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{
  outline:2px solid #ffe5a3;outline-offset:3px;
}
input,select,textarea{color:var(--ink);background:#17110c;border-color:var(--line);caret-color:var(--accent)}
input::placeholder,textarea::placeholder{color:#b3a48f}
:is(.atlas-web,.shell) button:is([aria-pressed=true],[aria-selected=true],[aria-current]){
  border-image:var(--atlas-up) 7 fill / 7px / 0 stretch;
  background:transparent;color:#ffe09a;text-shadow:0 1px 1px #000;font-weight:500;filter:brightness(1.12);
}
.atlas-web .admin-tabs a[aria-current=page],.atlas-web .usage-tabs a[aria-current=page]{
  border-image:none;border:1px solid #e5bd70;
  background:var(--atlas-selected);color:var(--atlas-selected-ink);text-shadow:none;font-weight:600;
}
:is(.atlas-web,.shell) button:is([aria-pressed=true],[aria-selected=true],[aria-current]):hover:not(:disabled){background:transparent;color:#ffe09a}
:is(.atlas-web,.shell) button:is([aria-pressed=true],[aria-selected=true],[aria-current]):active:not(:disabled){border-image-source:var(--atlas-down)}
button:disabled{filter:saturate(.35);opacity:.55}
.discord,.discord-button{font-family:inherit;text-shadow:none;border-image:none;background:#5865f2;color:#fff}
.discord:hover:not(:disabled),.discord-button:hover{background:#4752c4;color:#fff;filter:none}

/* Companion: preserve all three layouts and their existing usable hit boxes. */
.shell{background:var(--atlas-ground) var(--atlas-leather) left top / 512px 512px repeat;background-blend-mode:soft-light;box-shadow:inset 0 0 0 1px var(--line)}
.shell .rail{background:#19130eef;border-right:1px solid var(--line)}
.shell .content{scrollbar-color:#89704b var(--bg)}
.shell .page-heading{position:relative;padding-right:64px}
.shell .page-heading::after{content:'';position:absolute;right:0;top:-5px;width:52px;height:52px;background:var(--atlas-medallion) center / contain no-repeat;pointer-events:none}
.shell .page-heading h1{font-size:29px}
.shell h2{font-size:18px}
.shell .rail nav button{border:1px solid transparent;border-image:var(--atlas-up) 7 fill / 7px / 0 stretch;background:transparent;color:var(--ink)}
.shell .rail nav button[aria-current],.shell .rail nav button[aria-current]:hover{color:#ffe09a;background:transparent}
.shell .rail nav button:hover{color:#fff7e6;background:transparent}
.shell .rail nav button:active:not(:disabled){border-image-source:var(--atlas-down)}
.shell .rail-account{color:var(--muted)}
.shell footer{background:#19130eef;border-top:1px solid var(--line)}
.shell.tabbed .rail{border-right:0;border-bottom:1px solid var(--line)}
.shell.compact .rail{border-right:0;border-top:1px solid var(--line)}
.shell .select>button{border-image:none;border-color:var(--line);background:#1d160f;font-family:inherit;text-shadow:none}
.shell .select>button:hover:not(:disabled){background:#2c2117;filter:none}
.shell .select.open>button{border-bottom-color:transparent;border-image:none;border-color:var(--line)}
.shell .select>ul{background:#21180f;border-color:var(--line)}
.shell .select li.highlight{background:#49351d;color:#ffe09a}
.shell .select li[aria-selected=true]{color:var(--accent)}
.shell .switch-row{font-family:inherit;text-shadow:none;filter:none;color:var(--muted);border-image:none}
.shell .switch-track{background:#251d14;border-color:#947548}
.shell .switch-track>span{background:#e5d9c4}
.shell .switch-row[aria-checked=true] .switch-track{background:#b88b35;border-color:#efca79}
.shell .switch-row[aria-checked=true] .switch-track>span{background:#21180e}
.shell .update-notice,.shell .notice{background:#21190ff2}
.shell .notice.error{background:#3e1b16;color:#ffccb7;border-color:#bd795a}
.shell .icon-button{background:transparent}
dialog{background:var(--atlas-ground) var(--atlas-leather) left top / 512px 512px repeat;background-blend-mode:soft-light;color:var(--ink);border:1px solid #a4834e;box-shadow:0 12px 32px #0009;}
.atlas-mark{width:46px;height:46px;background:var(--atlas-medallion) center / contain no-repeat;clip-path:none}

/* Website chrome is distinct from the terrain canvas. No filters or fixed
   background layers: preserve sharp iOS Home Screen rendering and hit testing. */
.atlas-web body{min-height:100dvh;background:var(--atlas-ground) var(--atlas-leather) left top / 512px 512px repeat;background-blend-mode:soft-light}
.atlas-web body>header,.atlas-web .site-header{border-color:#9a7846}
.atlas-web body>header>a:first-child{font-family:var(--atlas-title);color:var(--accent);display:inline-flex;align-items:center;gap:10px}
.atlas-web body>header>a:first-child::before{content:'';width:40px;height:40px;flex-shrink:0;background:var(--atlas-medallion) center / contain no-repeat}
.atlas-web .brand img{width:50px;height:50px}
.atlas-web .site-header .brand{font-family:var(--atlas-title);font-weight:500;letter-spacing:0;color:var(--accent)}
.atlas-web .intro h1{font-size:clamp(34px,4.2vw,58px);letter-spacing:-.025em;line-height:1.15}
.atlas-web .map-preview{border-color:#96713e;background:#1a140f;border-radius:3px}
.atlas-web figcaption{background:#20180f}
.atlas-web .feature-buttons{gap:8px}
.atlas-web .feature-buttons button{padding:14px 12px;border:1px solid transparent;border-image:var(--atlas-up) 7 fill / 7px / 0 stretch}
.atlas-web .feature-buttons button[aria-pressed=true],.atlas-web .feature-buttons button[aria-pressed=true]:hover:not(:disabled){border-image:var(--atlas-up) 7 fill / 7px / 0 stretch;background:transparent;color:#ffe09a;text-shadow:0 1px 1px #000;filter:brightness(1.12)}
.atlas-web .feature-buttons button[aria-pressed=true]:active:not(:disabled){border-image-source:var(--atlas-down)}
.atlas-web .community,.atlas-web .setup,.atlas-web footer{border-color:var(--line)}
.atlas-web .card,.atlas-web .device,.atlas-web .admin-row{border-color:var(--line)}
.atlas-web .admin-tabs a,.atlas-web .usage-tabs a{border:1px solid var(--line);border-radius:2px;font-family:var(--atlas-title);background:#251c12;color:var(--muted)}
.atlas-web .admin-tabs a:hover,.atlas-web .usage-tabs a:hover{color:var(--accent);background:#3a2a19}
.atlas-web .table-scroll{scrollbar-color:#89704b var(--bg)}
.atlas-web .map-panel,.atlas-web #sidebar{background:var(--bg)}
.atlas-web .map-heading,.atlas-web #sidebar,.atlas-web .map-panel>footer{background:#261c13}
.atlas-web .map-heading{border-bottom-color:#947246}
.atlas-web .map-panel>footer{border-top-color:#947246}
.atlas-web #zone{font-family:var(--atlas-title);font-size:22px;color:var(--accent)}
.atlas-web #zone::before{content:'';display:inline-block;width:30px;height:30px;background:var(--atlas-medallion) center / contain no-repeat;vertical-align:middle;margin-right:8px}
.atlas-web #viewport{background:#100e0b}
.atlas-web #viewport #empty{background:var(--bg)}
.atlas-web .map-tools button{background:transparent;color:var(--ink)}
.atlas-web .map-tools #follow[aria-pressed=true]{background:transparent;color:#ffe09a}
.atlas-web .zoom-tools{gap:3px}
.atlas-web .zoom-tools button:last-child{border-left:1px solid transparent}
.atlas-web button.pin{border-image:none;background:transparent;font-family:inherit;text-shadow:none;color:var(--ink)}
.atlas-web button.pin.tracked,.atlas-web button.pin:hover:not(:disabled){background:#44341e;filter:none}
.atlas-web .quest-zone{color:#d7c398}
.atlas-web #quest-filters,.atlas-web #layer-panel,.atlas-web .loading-notice,.atlas-web #display-notice{background:#251c12;color:var(--ink);border-color:#9a7846}
.atlas-web .layer-category,.atlas-web #layer-results button,.atlas-web #gathering-results button{border-image:none;background:transparent;font-family:inherit;text-shadow:none}
.atlas-web .settings-tabs button{font-family:var(--atlas-title)}
.atlas-web #map-only-tools button{background:transparent}
.atlas-web #map-only-tools button[aria-pressed=true],.atlas-web #map-only-tools button[aria-pressed=true]:hover{background:transparent;color:#ffe09a}
.atlas-web #first-setup .download-button{color:var(--ink);border:1px solid transparent;border-image:var(--atlas-up) 7 fill / 7px / 0 stretch}
@media(max-width:700px){
  .atlas-web #zone{font-size:19px}.atlas-web #zone::before{width:26px;height:26px;margin-right:6px}
  .atlas-web .brand img{width:42px;height:42px}.atlas-web .site-header .brand{font-size:21px}
  .shell .page-heading h1{font-size:25px}.shell .page-heading::after{width:44px;height:44px}
  .shell .page-heading{padding-right:52px}
}
@media(prefers-reduced-motion:reduce){button{transition:none}}
