* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
font-family: Arial, Helvetica, sans-serif;
background:
radial-gradient(circle at top, #2a3f57 0%, #1a2432 45%, #0f1720 100%);
color: #f4ead2;
}
body {
image-rendering: auto;
}
.game-shell {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
padding: 14px;
gap: 12px;
}
.top-bar {
min-height: 84px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 18px;
border-radius: 18px;
background: linear-gradient(180deg, #6f5630 0%, #4e391f 100%);
border: 3px solid #caa56a;
box-shadow:
0 8px 20px rgba(0, 0, 0, 0.35),
inset 0 2px 0 rgba(255, 237, 180, 0.3);
}
.logo-box {
display: flex;
align-items: center;
gap: 14px;
}
.logo-icon {
font-size: 34px;
width: 56px;
height: 56px;
display: grid;
place-items: center;
border-radius: 14px;
background: rgba(255, 226, 154, 0.14);
border: 2px solid rgba(255, 233, 170, 0.35);
}
.logo-box h1 {
margin: 0;
font-size: 26px;
letter-spacing: 1px;
color: #fff1c9;
}
.logo-box p {
margin: 4px 0 0;
font-size: 13px;
color: #f0ddb4;
}
.top-controls {
display: flex;
align-items: center;
gap: 10px;
}
.top-controls button {
min-width: 58px;
height: 44px;
border: 2px solid #e1bf79;
border-radius: 12px;
background: linear-gradient(180deg, #8b6b3d 0%, #5f4725 100%);
color: #fff4d7;
font-size: 18px;
font-weight: bold;
cursor: pointer;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
transition: transform 0.15s ease, filter 0.15s ease;
}
.top-controls button:hover {
transform: translateY(-1px);
filter: brightness(1.08);
}
.main-layout {
flex: 1;
display: grid;
grid-template-columns: 1fr 300px;
gap: 12px;
min-height: 0;
}
.map-panel,
.side-panel {
min-height: 0;
}
.map-frame {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
border-radius: 20px;
border: 4px solid #caa56a;
background:
linear-gradient(180deg, rgba(42, 56, 72, 0.95), rgba(20, 28, 37, 0.98));
box-shadow:
0 10px 24px rgba(0, 0, 0, 0.32),
inset 0 2px 0 rgba(255, 234, 181, 0.22);
}
.map-viewport {
width: 100%;
height: 100%;
overflow: hidden;
cursor: grab;
position: relative;
background:
radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 60%),
linear-gradient(180deg, #203040, #111b25);
}
.map-viewport.dragging {
cursor: grabbing;
}
.world-map {
position: absolute;
top: 50%;
left: 50%;
width: 1400px;
max-width: none;
user-select: none;
transform: translate(-50%, -50%) scale(1);
transform-origin: center center;
filter:
saturate(1.05)
contrast(1.03)
drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
pointer-events: none;
}
.map-overlay {
position: absolute;
z-index: 5;
display: flex;
gap: 8px;
}
.map-overlay.top-left {
top: 14px;
left: 14px;
flex-wrap: wrap;
}
.map-overlay.bottom-left {
left: 14px;
bottom: 14px;
}
.chip {
padding: 8px 12px;
border-radius: 999px;
background: rgba(55, 39, 20, 0.85);
border: 2px solid rgba(231, 193, 121, 0.9);
color: #ffefc6;
font-size: 13px;
font-weight: bold;
}
.legend-box {
min-width: 170px;
padding: 14px;
border-radius: 16px;
background: rgba(27, 22, 16, 0.88);
border: 2px solid rgba(219, 183, 111, 0.9);
backdrop-filter: blur(4px);
}
.legend-box h3 {
margin: 0 0 10px;
font-size: 16px;
color: #ffe9b7;
}
.legend-box ul {
list-style: none;
padding: 0;
margin: 0;
}
.legend-box li {
display: flex;
align-items: center;
gap: 9px;
margin-bottom: 8px;
font-size: 14px;
color: #f5e6c7;
}
.dot {
width: 12px;
height: 12px;
border-radius: 50%;
display: inline-block;
}
.dot.mountain {
background: #bdb7a0;
}
.dot.river {
background: #57b8ff;
}
.dot.city {
background: #f4b04a;
}
.dot.coast {
background: #69dbc0;
}
.side-panel {
display: flex;
flex-direction: column;
gap: 12px;
}
.info-card {
background: linear-gradient(180deg, #5b4425 0%, #392816 100%);
border: 3px solid #cda56d;
border-radius: 18px;
padding: 16px;
box-shadow:
0 8px 16px rgba(0, 0, 0, 0.25),
inset 0 2px 0 rgba(255, 235, 185, 0.22);
}
.info-card h2 {
margin: 0 0 10px;
font-size: 18px;
color: #fff0c5;
}
.info-card p,
.info-card li {
color: #f2e0b8;
line-height: 1.5;
font-size: 14px;
}
.info-card ul {
padding-left: 18px;
margin: 0;
}
.city-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.city-tags span {
display: inline-block;
padding: 7px 10px;
border-radius: 999px;
background: rgba(255, 226, 151, 0.12);
border: 1px solid rgba(255, 225, 145, 0.35);
color: #fff0c8;
font-size: 13px;
}
.mini-status p {
font-size: 24px;
font-weight: bold;
margin: 0;
color: #fff5d8;
}
@media (max-width: 1100px) {
.main-layout {
grid-template-columns: 1fr;
}
.side-panel {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 700px) {
.top-bar {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.side-panel {
grid-template-columns: 1fr;
}
.world-map {
width: 1100px;
}
}