* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #1c120c;
  color: #f4e4be;
  font-family: Georgia, 'Times New Roman', serif;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 2px solid #8b6332;
  background: linear-gradient(180deg, #3a2316, #20130d);
}
h1 { margin: 0; letter-spacing: .06em; text-transform: uppercase; }
p { margin: 4px 0 0; opacity: .75; }
.badge {
  padding: 8px 12px;
  border: 1px solid #b9914e;
  background: #120b08;
  color: #ffd98a;
}
.layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  padding: 14px;
}
.map-card, .panel, .log-box {
  border: 2px solid #7e572a;
  background: #2a1a11;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.map-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #7e572a;
  background: #3a2417;
}
.map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #415d78;
}
.province {
  position: absolute;
  border: 1px solid rgba(20, 12, 7, .75);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  color: #1c120c;
  cursor: pointer;
  user-select: none;
}
.province:hover { outline: 3px solid #ffe29b; z-index: 5; }
.province.selected { outline: 4px solid #fff4c0; z-index: 6; }
.army {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid #080808;
  background: white;
  z-index: 10;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.army.selected { outline: 2px solid #ffe29b; }
.route {
  position: absolute;
  height: 2px;
  background: #8ab4ff;
  transform-origin: left center;
  pointer-events: none;
  z-index: 8;
  box-shadow: 0 0 3px rgba(0,0,0,.8);
}
.panel {
  padding: 12px;
  max-height: calc(100vh - 105px);
  overflow: auto;
}
h2 {
  margin: 12px 0 8px;
  color: #ffd98a;
  font-size: 16px;
  border-bottom: 1px solid #76522a;
  padding-bottom: 4px;
}
button, select, input {
  width: 100%;
  margin: 4px 0 8px;
  padding: 9px;
  border: 1px solid #8b6332;
  background: #130c08;
  color: #f4e4be;
}
button {
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
}
button:hover { background: #4d2e1b; }
label { display: block; font-size: 13px; opacity: .9; }
.info {
  border: 1px solid #6d4a24;
  padding: 8px;
  background: #160e09;
  min-height: 42px;
  font-size: 13px;
  line-height: 1.45;
}
.log-box { margin: 0 14px 14px; padding: 12px; }
#log { max-height: 160px; overflow: auto; font-family: Consolas, monospace; font-size: 12px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .panel { max-height: none; }
}
