@charset "UTF-8";
/* R10 camp: scene, copper fittings, linen panels. World scale stays uniform. */
:root{--camp-ink:#213f3d;--camp-paper:#f4edda;--camp-brass:#bd9856}
.r8-scenic{background-image:url('../img/r10-camp.png');background-position:center 46%}
#lobby-screen:before{background:linear-gradient(0deg,#122f36dc,transparent 43%),linear-gradient(180deg,#112f3c60,transparent 24%)}
.r8-lobby-header{position:relative;z-index:2;padding-top:24px}
.r8-lobby-header .r8-nav{background:#173d43d9;border-color:#b6a27380;color:#fff1d2;border-radius:5px;min-width:64px}
.r8-wordmark{letter-spacing:5px;text-shadow:0 2px 5px #17353e;color:#fff3d9}
.camp-caption{position:absolute;left:4vw;top:20vh;color:#fff6da;text-shadow:0 2px 10px #193d43;pointer-events:none}
.camp-caption>span{font-size:11px;letter-spacing:5px;color:#e7d4a4}.camp-caption h1{font:600 clamp(28px,3.2vw,48px)/1.4 KaiTi,STKaiti,serif;letter-spacing:7px;margin:8px 0}
.camp-caption p{font-size:12px;letter-spacing:2px;color:#f1e1be}
#lobby-screen .lobby-body{display:contents}
#lobby-screen .lobby-character{display:flex;align-items:center;gap:20px;left:4vw;bottom:6vh;width:420px;height:auto;min-height:144px;padding:19px 22px;border:1px solid #d7c28c80;border-radius:6px;clip-path:none;background:linear-gradient(115deg,#102f38f0,#193f42e8);box-shadow:0 12px 25px #102a3740;overflow:visible}
#lobby-screen .commander-portrait{position:relative;flex-shrink:0;width:96px;height:112px;border:2px solid #c4a467;border-radius:48% 48% 12px 12px;overflow:hidden;background:#284740;box-shadow:0 0 0 4px #112d35,0 0 0 5px #9f874b70;padding:0}
#lobby-screen .commander-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
#lobby-screen .lobby-character>div:not(.commander-portrait){position:static;background:none;padding:0;min-width:0}
#lobby-screen .lobby-character h2{font-size:25px;letter-spacing:3px;margin:5px 0 7px;color:#fff0ce}
#lobby-screen .lobby-character .r8-kicker{font-size:10px;letter-spacing:3px;color:#cbb47b}
#lobby-screen .lobby-character>div>p:last-child{font-size:12px;line-height:1.65;color:#e5e5d2}
.commander-change{position:absolute;right:12px;top:8px;min-height:44px;padding:6px;background:none;border:0;color:#cdbb8b;font-size:11px;cursor:pointer}
#lobby-screen .lobby-content{right:4vw;bottom:6vh;width:300px}
#lobby-screen .lobby-entries{gap:9px;margin:0}
#lobby-screen .lobby-entry{border-radius:5px;transition:transform .15s,filter .15s}
#lobby-screen .lobby-entry.casual{min-height:88px;background:linear-gradient(135deg,#f5df9c,#d1ac60 65%,#b88c48);border:1px solid #ffe8ae;box-shadow:inset 0 0 0 3px #fff3bf30,0 5px 0 #766036,0 10px 25px #0e2e3855;padding:14px 23px}
#lobby-screen .lobby-entry.casual b{font-size:31px;letter-spacing:12px;font-family:KaiTi,STKaiti,serif}
#lobby-screen .lobby-entry.ranked{min-height:60px;background:#15383fe8;border-color:#bca36e99;padding:10px 23px;color:#f3e8ca}
#lobby-screen .lobby-entry.ranked b{font-size:17px;letter-spacing:3px}
#lobby-screen .lobby-entry small{font-size:11px;letter-spacing:1px;margin-top:5px;opacity:.8}
#lobby-screen .lobby-record{margin-top:16px;padding-top:13px;border-color:#d1bd8d60;color:#e5dabb;justify-content:space-between;font-size:11px}
.lobby-footer{bottom:12px;font-size:9px;opacity:.6}
.camp-atmosphere{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.camp-atmosphere i{position:absolute;left:50%;top:72%;width:3px;height:3px;background:#fff1a8;border-radius:50%;animation:camp-drift 8s ease-in-out infinite;opacity:0}.camp-atmosphere i:nth-child(2){left:24%;top:68%;animation-delay:2.5s}.camp-atmosphere i:nth-child(3){left:78%;top:64%;animation-delay:5s}
@keyframes camp-drift{0%,100%{opacity:0;transform:translate(0,0)}30%,70%{opacity:.65}90%{transform:translate(45px,-95px)}}
#startup-screen:before{background:linear-gradient(#14354140,#14354135 35%,#102f37e8)}
#startup-screen .startup-content{background:radial-gradient(ellipse,#143c3f80,transparent 70%);padding:20px 0;gap:12px}
.ranked-card,.result-card,.rules-card,.r8-modal-card{border-radius:7px;border-color:#bdac7c;background:#f8f1de;box-shadow:0 15px 55px #173f4440}
#ranked-screen:before{background:#102f39b5}.ranked-content>p,.ranked-content h1,.ranked-content .r8-kicker{color:#faedcb}
body[data-page="prepare"]{background:#ede9da url('../img/r10-camp.png') center/cover fixed}
body[data-page="prepare"] #app{background:#f5eedeeF;box-shadow:0 0 80px #153b3c80;min-height:100dvh}
body[data-page="prepare"] .race-spotlight{border-radius:6px}.race-card{transition:transform .12s,border-color .12s}
body[data-page="prepare"] .race-card,body[data-page="prepare"] .mode-panel,body[data-page="prepare"] .mode-buttons button{border-radius:5px}
body[data-page="prepare"] .race-card:hover{transform:translateY(-2px)}
body[data-page="prepare"] .primary-button{background:linear-gradient(135deg,#e8cf8d,#c09a54);color:#213e3d;border:1px solid #b59152;box-shadow:0 3px 0 #a18753}
#map-world .r10-ground{position:absolute;inset:0;overflow:hidden;background:#95b968;z-index:0;pointer-events:none}
.r10-terrain-tile{position:absolute;display:block;max-width:none;pointer-events:none}
#map-world #road-lines [data-road-id]:not(.direct-road):not(.reachable-road){display:none}
#map-world #road-lines .road-edge{stroke-width:1.3;stroke:#1a5a4e;opacity:.65}
#map-world #road-lines .road-center{stroke-width:.65}
#map-world #march-lines{display:none}
#map-world .building{width:calc(110px * var(--city-display-scale,1));height:calc(98px * var(--city-display-scale,1));min-width:calc(44px * var(--label-scale,1));min-height:calc(44px * var(--label-scale,1));--city-base-height:calc(98px * var(--city-display-scale,1))}
#map-world .building.capital{height:calc(110px * var(--city-display-scale,1));--city-base-height:calc(110px * var(--city-display-scale,1))}
#map-world .building.capital{width:calc(132px * var(--city-display-scale,1))}
#map-world .building .building-base{width:100%;height:100%}
#map-world .building.capital .building-base{width:100%;height:100%}
#map-world .building .city-art{width:100%;height:100%;object-fit:contain;transform:none;filter:drop-shadow(0 4px 2px #244a3b45)}
#map-world .building-owner-mark{white-space:nowrap}
#map-world .building .building-count{top:70%;bottom:auto;height:auto;font-size:16px;box-shadow:0 2px 4px #1f443f40;border-color:#faf2d6}
#map-world .building .building-owner-mark{top:calc(100% + 5px * var(--label-scale,1));background:#fff7e2e8;color:#274b42;font-size:10px}
#map-world .building.capital .building-owner-mark{top:calc(100% + 5px * var(--label-scale,1))}
#map-world .building .building-name{top:calc(var(--city-base-height) + 24px * var(--label-scale,1));background:#f7eed7e8;border-radius:3px;padding:2px 5px;font-size:11px}
#map-world[data-lod="far"] .building:not(.selected):not(:hover) .building-owner-mark,#map-world[data-lod="far"] .building-badge,#map-world[data-lod="far"] .town-flag{display:none}
#map-world[data-lod="middle"] .building.allegiance-neutral:not(.selected):not(:hover) .building-owner-mark{display:none}
#map-world .building:hover .building-name{display:block}
#map-world .building.is-offscreen *{animation-play-state:paused!important}
#map-world .building.is-offscreen:before,#map-world .building.is-offscreen:after,#map-world .building.is-offscreen *:before,#map-world .building.is-offscreen *:after{animation-play-state:paused!important}
#map-world .building.selected:before{animation:none;width:90%;height:35%;left:5%;top:65%;box-shadow:0 0 0 3px #fff8dba0}
#map-world[data-lod="far"] .town-flag i,#map-world[data-lod="middle"] .town-flag i{animation:none}
#map-world .building .town-flag{left:62%;top:1%}
#battle-screen .battle-status,#battle-screen .dispatch-panel{background:#f5eedb}
#battle-screen .map-controls{border-radius:5px;padding:2px;background:#fff6e3f2;box-shadow:0 3px 10px #234c3c25}
#battle-screen .map-controls button[data-action="map-home"],#battle-screen .map-controls button[data-action="map-front"],#battle-screen .map-controls button[data-action="map-fit"]{font:600 11px/1 sans-serif;font-size:11px!important;white-space:nowrap;padding:5px 8px}
#battle-screen .ratio-buttons button{border-radius:4px}
@media(max-height:520px) and (orientation:landscape){
 .r8-lobby-header{padding-top:10px}.r8-wordmark{font-size:23px}.r8-lobby-header .r8-nav{min-width:55px;padding:8px 12px}
 .camp-caption{top:22vh;left:4vw}.camp-caption h1{font-size:26px;margin:3px 0}.camp-caption p{font-size:10px}
 #lobby-screen .lobby-character{left:3vw;bottom:7vh;width:295px;min-height:102px;padding:12px;gap:12px}
 #lobby-screen .commander-portrait{width:62px;height:76px;border-width:1px}
 #lobby-screen .lobby-character h2{font-size:20px;margin:4px 0}.commander-change{font-size:10px;right:6px;top:1px}
 #lobby-screen .lobby-character>div>p:last-child{font-size:10px}.lobby-character .r8-kicker{font-size:9px}
 #lobby-screen .lobby-content{right:3vw;bottom:7vh;width:235px}#lobby-screen .lobby-entry.casual{min-height:65px;padding:8px 15px}#lobby-screen .lobby-entry.casual b{font-size:25px;letter-spacing:8px}#lobby-screen .lobby-entry.ranked{min-height:48px;padding:6px 15px}
 #lobby-screen .lobby-entry small{font-size:9px;margin-top:2px}#lobby-screen .lobby-entry.ranked b{font-size:14px}#lobby-screen .lobby-record{margin-top:10px;padding-top:9px;font-size:10px}.lobby-footer{display:none}
 #startup-screen .startup-content{padding:0;gap:7px;margin-top:13px}#startup-screen .startup-content h1{font-size:42px}
 #battle-screen .map-controls{bottom:calc(67px + var(--r3-safe-bottom))}#battle-screen .map-controls #map-zoom{display:none}
}
@media(max-width:580px) and (orientation:portrait){.camp-caption{top:16vh}#lobby-screen .lobby-character{display:flex;left:5vw;bottom:31vh;width:90vw;min-height:120px}#lobby-screen .lobby-content{right:5vw;bottom:5vh;width:90vw}#lobby-screen .commander-portrait{width:72px;height:88px}}
@media(prefers-reduced-motion:reduce){.camp-atmosphere i{animation:none}.lobby-entry,.race-card{transition:none!important}}
