/* Dark parchment, restrained bronze inks, edge-to-edge interactive atlas. */
.atlas-immersive{overflow:hidden}.atlas-immersive #app{padding:0!important;max-width:none!important;width:100%!important}.atlas-immersive #admin-rail,.atlas-immersive #mini-messenger-root{display:none!important}.atlas-immersive #site-layout{margin:0!important}.atlas-immersive body>header{box-shadow:0 5px 28px #0008}
.cosmos{position:relative;height:calc(100dvh - var(--site-header-height));min-height:350px;isolation:isolate;overflow:hidden;color:#d6c6a6;background:#050810}
.cosmos::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#050810,#091019 55%,#050710)}
.cosmos::after{content:"";position:absolute;inset:16px;border:1px solid #ac95612b;outline:1px solid #ac95610f;outline-offset:5px;pointer-events:none;z-index:2}.cosmos-vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 160px 30px #070b0bac;z-index:1}
#cosmos-canvas{position:absolute;inset:0;touch-action:none;cursor:grab;outline:none}#cosmos-canvas:active{cursor:grabbing}#cosmos-canvas:focus-visible{outline:1px solid #9e8c62;outline-offset:-8px}#cosmos-canvas canvas{display:block;width:100%;height:100%}
.cosmos-heading{position:absolute;left:clamp(26px,4vw,70px);top:26px;pointer-events:none;max-width:60%;z-index:3}.cosmos-heading h1{font:400 clamp(28px,3.5vw,51px)/1.2 Georgia,serif;color:#d5c49f;margin:9px 0;text-shadow:0 3px 16px #000}.cosmos-heading .atlas-eyebrow{color:#9f947b;font-size:9px;letter-spacing:.23em}.cosmos-back{display:block;width:fit-content;font:12px/1.5 sans-serif;margin-bottom:24px;color:#c3b593!important;text-decoration:none;pointer-events:auto;border-bottom:1px solid #9d885943;padding:5px 0}.cosmos-back:hover{color:#f0dfb7!important}
.cosmos-compass{position:absolute;right:42px;top:34px;font:80px/1 Georgia,serif;color:#b49e6760;text-align:center;pointer-events:none}.cosmos-compass span{display:block;font:8px sans-serif;letter-spacing:.3em;color:#a08d66}
#cosmos-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.cosmos-label{position:absolute;left:0;top:0;pointer-events:auto;background:transparent!important;border:0!important;color:#d6c6a5!important;cursor:pointer;width:max-content;max-width:230px;padding:7px 12px!important;text-align:center;transition:color .2s;text-shadow:0 2px 5px #080b08,0 0 12px #080b08;font-family:Georgia,serif!important}.cosmos-label[hidden]{display:none}.cosmos-world-label{font-size:clamp(23px,2.5vw,35px)!important;letter-spacing:.045em}.cosmos-world-label span{display:block}.cosmos-world-label small{display:block;font:8px/1.6 sans-serif;letter-spacing:.18em;text-transform:uppercase;margin:8px auto 0;max-width:210px;color:#a69d86}.cosmos-world-label::before{content:"";width:55px;height:1px;background:linear-gradient(90deg,transparent,#aa9563,transparent);display:block;margin:0 auto 10px}.cosmos-world-label:hover{color:#f3e1b6!important}.cosmos-place-label{font-size:12px!important;max-width:155px;background:#1118128c!important;border:1px solid #a78d4b40!important;border-radius:2px!important;backdrop-filter:blur(3px);line-height:1.3}.cosmos-place-label:hover,.cosmos-place-label.selected{border-color:#baa374!important;color:#f7e3ae!important;background:#302f24cc!important}
.cosmos button:focus-visible,.cosmos a:focus-visible,.cosmos summary:focus-visible{outline:2px solid #d2b875;outline-offset:4px}.cosmos-bottom{position:absolute;bottom:30px;left:clamp(26px,4vw,70px);right:35px;display:flex;align-items:end;justify-content:space-between;gap:15px;z-index:4;pointer-events:none}.cosmos-bottom>*{pointer-events:auto}.cosmos-help{font:11px/1.6 sans-serif;color:#b2a58b;text-align:center;text-shadow:0 1px 3px #000;pointer-events:none}.cosmos-help small{display:block;font-size:9px;color:#7e806f}.cosmos button,.cosmos summary{border-radius:2px;color:#c6b68f;background:#20241fe8;border:1px solid #75674670;font-size:12px;padding:9px 12px;cursor:pointer}.cosmos-controls{display:flex;gap:4px}.cosmos-controls button{width:40px;height:40px;padding:0;font-size:20px}.cosmos-controls button:hover{background:#3c3b2d}.cosmos-index{position:relative;max-width:290px;min-width:160px}.cosmos-index summary{list-style:none;display:flex;gap:20px;justify-content:space-between;padding:12px 15px;font-size:11px}.cosmos-index-body{position:absolute;bottom:48px;left:0;width:280px;max-height:50dvh;overflow:auto;scrollbar-width:thin;background:#1c201bf5;border:1px solid #77684c;padding:12px}.cosmos-index-body button,.cosmos-index-body a{display:block;border:0;border-bottom:1px solid #6e604629;background:transparent;width:100%;padding:12px 9px;text-align:left;text-decoration:none;color:#c9bea3;font-size:12px}.cosmos-index-body button:hover,.cosmos-index-body a:hover{background:#81774c19}.cosmos-index-body small{display:block;color:#87836f;font-size:10px;margin-top:4px}
.cosmos-reader{position:absolute;right:25px;top:25px;bottom:90px;width:min(370px,38vw);overflow:auto;scrollbar-width:thin;z-index:5;background:linear-gradient(110deg,#272b22f5,#191e1bf7);border:1px solid #8b77516b;box-shadow:-15px 10px 50px #0004,inset 0 0 50px #a98c3d08;padding:35px 28px;backdrop-filter:blur(15px);animation:atlas-reader-in .25s ease-out}.cosmos-reader[hidden]{display:none}.cosmos-reader h2{font:400 30px/1.2 Georgia,serif;color:#e1d0ad;margin:12px 0 18px}.cosmos-reader .wiki-page-content{font-size:14px!important;line-height:1.8!important;color:#bdb5a3}.cosmos-reader .wiki-page-content p{margin-bottom:18px}.cosmos-reader-close{position:absolute;right:7px;top:5px;font-size:24px!important;background:transparent!important;border:0!important}.cosmos-reader>button:not(.cosmos-reader-close){margin:8px 3px 0 0}.cosmos-races{display:flex;gap:5px;flex-wrap:wrap;margin:15px 0 25px}.cosmos-races a{display:inline-flex;gap:4px;align-items:center;font-size:10px;text-decoration:none;color:#c3b28d;border:1px solid #8b79514a;padding:4px 7px}.cosmos-races img{width:18px;height:20px;object-fit:contain;image-rendering:pixelated}.cosmos-draw{position:absolute;top:15px;left:50%;transform:translateX(-50%);z-index:8;background:#242a20f5;border:1px solid #b49b64;padding:15px;max-width:85%;box-shadow:0 6px 30px #0007}.cosmos-draw[hidden]{display:none}.cosmos-draw span{display:block;font-size:12px;margin-bottom:10px}.cosmos-draw button{margin-right:5px}.cosmos-fallback{position:absolute;left:25%;top:45%;max-width:50%;font-size:16px;color:#c7b999;text-align:center}.atlas-loading{padding:50px;color:#bdae8a}
.atlas-race-hero{position:relative;isolation:isolate;min-height:320px;display:flex;align-items:end;margin:10px -25px 0;padding:100px 35px 28px;overflow:hidden;border-bottom:1px solid #70654570;background:#232b25}.atlas-race-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center var(--cover-position,50%);z-index:-2;opacity:.75}.atlas-race-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#171e1f 1%,#171e1f99 28%,transparent 90%);z-index:-1}.atlas-race-hero .atlas-heading{width:100%;margin:0}.atlas-race-hero h1{text-shadow:0 2px 14px #000}.atlas-abilities{border:1px solid #85734b50;background:linear-gradient(130deg,#32342866,#1b211e77);padding:28px 34px;margin:25px 0 40px;position:relative}.atlas-abilities::before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:2px;background:linear-gradient(transparent,#a28c59,transparent)}.atlas-abilities h2{font:400 29px Georgia,serif;color:#d7c7a4}.atlas-abilities .wiki-page-content{font-size:15px}.atlas-abilities li{margin:12px 0;line-height:1.65}.atlas-abilities strong{color:#d9c7a3}.atlas-race-article .atlas-related{margin-top:20px}
@keyframes atlas-reader-in{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:700px){.cosmos-heading{left:24px;top:12px;max-width:75%}.cosmos-heading h1{font-size:29px}.cosmos-back{font-size:11px;margin-bottom:16px}.cosmos-heading .atlas-eyebrow{font-size:7px}.cosmos-compass{right:23px;top:20px;font-size:45px}.cosmos-compass span{font-size:6px}.cosmos::after{inset:9px}.cosmos-bottom{bottom:17px;left:18px;right:18px;gap:6px}.cosmos-help{display:none}.cosmos-controls{gap:2px}.cosmos-controls button{width:33px;height:37px;font-size:17px}.cosmos-index{min-width:0;width:155px}.cosmos-index summary{padding:11px 10px;font-size:10px;gap:5px}.cosmos-index-body{width:265px;max-height:45dvh}.cosmos-world-label{font-size:22px!important;max-width:160px}.cosmos-world-label small{font-size:7px;letter-spacing:.08em;max-width:140px}.cosmos-place-label{font-size:10px!important;padding:6px 8px!important;max-width:115px}.cosmos-reader{left:12px;right:12px;top:auto;bottom:66px;width:auto;max-height:49dvh;padding:23px 22px;animation:none}.cosmos-reader h2{font-size:26px;margin-top:8px}.cosmos-reader .wiki-page-content{font-size:13px!important}.cosmos-draw{top:90px;width:90%;max-width:90%;padding:10px}.cosmos-draw button{font-size:10px;padding:8px}.cosmos-fallback{left:15%;max-width:70%;font-size:13px}.atlas-race-hero{margin:6px -12px 0;min-height:270px;padding:80px 20px 25px}.atlas-race-title{gap:12px}.atlas-race-title img{width:48px;height:65px}.atlas-abilities{padding:20px 18px}.atlas-abilities h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.cosmos-reader,.cosmos-label{animation:none;transition:none}}
.cosmos-biomes{position:absolute;z-index:7;top:50%;right:22px;transform:translateY(-50%);width:min(310px,calc(100vw - 44px));max-height:calc(100% - 110px);overflow:auto;padding:18px;background:linear-gradient(145deg,#26332eea,#192527f5);border:1px solid #86afb3;box-shadow:0 10px 50px #0008,inset 0 0 30px #75c8cb0c;backdrop-filter:blur(12px);font-size:12px;color:#c4d0c6}.cosmos-biomes[hidden]{display:none}.cosmos-biomes header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;background:none;position:static;box-shadow:none;padding:0}.cosmos-biomes header strong{font:24px Georgia,serif;color:#c4d5d2}.cosmos-biomes header button{font-size:20px;border:0;background:transparent}.cosmos-biomes p{line-height:1.5;color:#aebfb8}.cosmos-biomes label{display:block;margin:17px 0 5px;color:#d1d8c7}.cosmos-biomes input[type=range]{display:block;width:100%;accent-color:#85b6a9;margin-top:6px}.cosmos-biomes output{float:right;color:#a7d6cf}.cosmos-palette{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;margin:17px 0 8px}.cosmos-palette button{background:var(--swatch);border:2px solid #8c9e93;width:28px;height:28px;padding:0;border-radius:50%}.cosmos-palette button.selected{box-shadow:0 0 0 3px #a7e2dc}.cosmos-palette label{margin:0}.cosmos-palette input[type=color]{width:28px;height:28px;padding:1px;border:1px solid #9aafa6;background:transparent;border-radius:50%;cursor:pointer}.cosmos-biome-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}.cosmos-biome-actions button{font-size:11px;padding:7px 8px}.cosmos-biome-actions [aria-pressed=true]{border-color:#83c7c7;background:#334845}.cosmos-biomes #biome-status{border-top:1px solid #82999455;padding-top:10px;min-height:31px}
@media(max-width:700px){.cosmos-biomes{top:auto;bottom:65px;right:12px;left:12px;transform:none;width:auto;max-height:52dvh;padding:14px}.cosmos-biomes header strong{font-size:20px}.cosmos-palette button,.cosmos-palette input[type=color]{width:26px;height:26px}}
.cosmos-place-label{background:linear-gradient(135deg,#151d20de,#242b24d9)!important;border-color:#b8a47a73!important;box-shadow:0 4px 14px #0008,0 0 14px #bba36812;padding:9px 13px!important;font-family:Georgia,serif!important;letter-spacing:.02em}.cosmos-place-label::before{content:"";position:absolute;top:-8px;left:50%;width:12px;height:12px;transform:translateX(-50%);border:1px solid #ead09c;border-radius:50%;background:radial-gradient(circle,#fff1bf 0 25%,#b5a175 35% 50%,#1b2223 60%);box-shadow:0 0 0 5px #dfc27c16,0 0 18px #e9ca7f91;animation:poi-pulse 2.8s ease-in-out infinite}.cosmos-place-label.selected::before,.cosmos-place-label:hover::before{box-shadow:0 0 0 7px #dfc27c36,0 0 28px #fff1b3}.cosmos-place-label::after{content:"";position:absolute;left:50%;top:100%;width:1px;height:13px;background:linear-gradient(#c6ae7f99,transparent)}@keyframes poi-pulse{50%{box-shadow:0 0 0 8px #dfc27c08,0 0 25px #e9ca7f70}}
.atlas-race-article>article.wiki-page-content mark[style*="color:blue"],.atlas-race-article>article.wiki-page-content mark[style*="color: blue"]{color:#e9a15a!important;background:transparent!important}
@media(prefers-reduced-motion:reduce){.cosmos-place-label::before{animation:none}}

/* The editor works on the source PNG itself, not on a visual overlay over the globe. */
.cosmos-surface-editor{position:absolute;inset:0;z-index:20;display:grid;grid-template-rows:auto minmax(0,1fr);background:#0b1113;color:#d8d1c0}.cosmos-surface-editor[hidden]{display:none}.surface-editor-head{position:static;display:grid;grid-template-columns:minmax(190px,1fr) minmax(220px,1.5fr) auto;align-items:center;gap:18px;min-height:72px;padding:10px 20px;border-bottom:1px solid #675d45;background:linear-gradient(180deg,#1c211f,#141918);box-shadow:0 7px 25px #0007}.surface-editor-head>div:first-child{display:grid}.surface-editor-head span{color:#a99872;font:9px/1.4 sans-serif;letter-spacing:.24em}.surface-editor-head strong{color:#e4d6b7;font:23px/1.2 Georgia,serif}.surface-editor-head p{margin:0;color:#9f9a8c;font:12px/1.4 sans-serif;text-align:center}.surface-editor-head p.error{color:#dc8375}.surface-editor-head-actions{display:flex;gap:7px}.surface-editor-head button{white-space:nowrap}.surface-editor-head button.primary{border-color:#b79a5e;background:#4a402b;color:#f4dfaf}.surface-editor-head button:disabled{opacity:.42;cursor:default}.surface-editor-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:0}.surface-editor-tools{overflow:auto;padding:20px 18px;border-right:1px solid #4b4639;background:#151b1a;font:12px/1.5 sans-serif}.surface-editor-tools h2{margin:0 0 8px;color:#ddcfaf;font:25px/1.2 Georgia,serif}.surface-editor-tools p{margin:0 0 16px;color:#9f9c90}.surface-editor-tools>label{display:block;margin:17px 0;color:#c8c0ae}.surface-editor-tools output{float:right;color:#e4cf9d}.surface-editor-tools input[type=range]{display:block;width:100%;margin-top:7px;accent-color:#a88d56}.surface-editor-tools ul{margin:18px 0 0;padding-left:18px;color:#85877f}.surface-palette{display:grid;grid-template-columns:1fr 1fr;gap:6px}.surface-palette button{display:flex;align-items:center;gap:8px;padding:7px!important;text-align:left;background:#1e2522!important;border-color:#454b40!important}.surface-palette button[aria-pressed=true]{border-color:#c3a86b!important;background:#323328!important;color:#f2dfb8}.surface-palette i{display:block;width:20px;height:20px;flex:none;border:1px solid #ffffff2b;border-radius:50%;background:var(--swatch)}.surface-palette span{font-size:11px}.surface-custom{display:flex!important;align-items:center;justify-content:space-between}.surface-custom input{width:43px;height:28px;padding:1px;border:1px solid #756b55;background:#111}.surface-mode-note{margin-top:16px;padding:9px;border-left:2px solid #a88d56;background:#a88d560d;color:#bcb39e}.surface-editor-viewport{position:relative;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;background-color:#081014;background-image:linear-gradient(#ffffff07 1px,transparent 1px),linear-gradient(90deg,#ffffff07 1px,transparent 1px);background-size:32px 32px}.surface-editor-map{width:max-content;min-width:100%;min-height:100%;display:grid;place-items:center;padding:28px;box-sizing:border-box}.surface-texture-canvas{display:block;max-width:none;flex:none;border:1px solid #8d805f;box-shadow:0 12px 45px #000c;cursor:crosshair;touch-action:none}.surface-texture-canvas:focus-visible{outline:2px solid #d0af69}.surface-editor-coordinates{position:sticky;left:14px;bottom:12px;width:max-content;margin:0 0 12px 14px;padding:6px 9px;border:1px solid #5d594b;background:#111916df;color:#bfb69e;font:11px/1.2 monospace;pointer-events:none}.surface-editor-open{overflow:hidden}
@media(max-width:850px){.surface-editor-head{grid-template-columns:1fr auto;gap:7px;padding:8px 12px}.surface-editor-head p{display:none}.surface-editor-head strong{font-size:18px}.surface-editor-head-actions button{padding:7px;font-size:10px}.surface-editor-head-actions [data-surface-undo]{font-size:0}.surface-editor-head-actions [data-surface-undo]::after{content:'↶';font-size:16px}.surface-editor-workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.surface-editor-tools{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:8px;overflow:auto;padding:10px;border-right:0;border-bottom:1px solid #4b4639}.surface-editor-tools h2,.surface-editor-tools>p,.surface-editor-tools ul,.surface-mode-note{display:none}.surface-palette{grid-column:1/-1;display:flex;overflow:auto}.surface-palette button{min-width:92px}.surface-editor-tools>label{margin:0}.surface-custom{justify-content:flex-start!important;gap:8px}.surface-editor-map{padding:14px}}
