:root {
  --night: #101b26;
  --ink: #17202a;
  --paper: #f4ebd8;
  --sand: #dccaa6;
  --gold: #d59f43;
  --red: #a94b42;
  --green: #5e8068;
  --slate: #60727d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--night);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at top, #263b4b 0, var(--night) 52rem); }
button { font: inherit; cursor: pointer; }
.game-shell { width: min(1100px, 100%); margin: auto; padding: 24px clamp(14px, 3vw, 38px) 48px; }
.topbar, .section-heading, .province-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar { color: var(--paper); margin-bottom: 18px; }
h1, h2, p { margin: 0; }
h1 { font-family: Georgia, serif; font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: .025em; line-height: .9; }
h2 { font-family: Georgia, serif; font-size: clamp(1.28rem, 3vw, 1.65rem); }
.eyebrow { color: var(--gold); font-size: .71rem; letter-spacing: .13em; font-weight: 800; }
.topbar .eyebrow { margin-bottom: 6px; }
.primary { border: 0; border-radius: 9px; padding: .78rem 1rem; background: var(--gold); color: #261807; font-weight: 800; box-shadow: 0 3px 0 #8d6426; transition: transform .15s, filter .15s; }
.primary:hover, .primary:focus-visible { filter: brightness(1.08); transform: translateY(-1px); }
.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #8d6426; }
.top-actions { display: flex; align-items: center; gap: 8px; }.ghost { border: 1px solid rgba(244,235,216,.45); background: transparent; color: var(--paper); border-radius: 8px; padding: .63rem .7rem; font-weight: 700; }.ghost:hover, .ghost:focus-visible { background: rgba(244,235,216,.12); }
.status-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: #8a9ca4; border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.status-strip div { min-width: 0; padding: 11px 14px; background: #e7ddc8; }
.status-strip span, .stat-grid span { display: block; color: #667078; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-strip strong { font-size: 1.45rem; font-family: Georgia, serif; }
.status-strip small { color: #5a6268; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .8fr); gap: 18px; }
.panel { background: var(--paper); border: 1px solid #c7b997; border-radius: 12px; padding: clamp(16px, 3vw, 24px); box-shadow: 0 10px 35px rgba(0,0,0,.18); }
.section-heading { margin-bottom: 15px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.hint { color: #717a7c; font-size: .8rem; }
.atlas { margin: 0 0 12px; border: 3px solid #9a8055; border-radius: 10px; overflow: hidden; background: #d0bc91; }.atlas img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; image-rendering: pixelated; }.atlas figcaption { padding: 6px 9px; color: #57482f; font-size: .71rem; font-weight: 700; letter-spacing: .03em; }
.map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; background-color: #b9d1c5; background-image: linear-gradient(rgba(16,27,38,.12), rgba(16,27,38,.12)), url('assets/aurelia-map.png'); background-size: cover; background-position: center; border: 4px solid #799c90; border-radius: 11px; min-height: 385px; overflow: hidden; }
.province { appearance: none; border: 2px solid rgba(255,246,216,.55); border-radius: 11px; padding: 9px; text-align: left; color: #172821; background: rgba(222,228,187,.46); display: flex; flex-direction: column; justify-content: space-between; min-height: 100px; transition: transform .12s, outline .12s; box-shadow: 0 2px 8px rgba(18,37,34,.18); text-shadow: 0 1px 2px rgba(255,248,220,.78); }
.province:hover, .province:focus-visible { transform: translateY(-2px); outline: 3px solid rgba(213,159,67,.62); z-index: 1; }
.province.enemy { background: rgba(217,183,164,.49); color: #421d1b; }.province.owned { background: rgba(175,208,178,.52); }.province.rebel { background: rgba(202,142,132,.58); }
.province.selected { outline: 3px solid var(--gold); }.province.has-legion::after { content: "◆"; color: var(--gold); text-shadow: 0 1px #76551b; align-self: end; font-size: 1.1rem; }
.province-name { font-family: Georgia, serif; font-size: clamp(.92rem, 2.4vw, 1.1rem); font-weight: 800; }.province-meta { font-size: .68rem; opacity: .75; }
.map-note { color: #5f6a68; font-size: .82rem; margin-top: 12px; }
.empty-state { padding: 12px 0; color: #57636a; }.empty-state h2 { color: var(--ink); margin: 6px 0 9px; }.empty-state p:last-child { line-height: 1.55; }
.owner-tag { padding: .38rem .55rem; border-radius: 99px; background: #e5d7b8; color: #6a5835; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #d6c8aa; border-left: 1px solid #d6c8aa; margin: 18px 0; }.stat-grid div { padding: 10px; border-right: 1px solid #d6c8aa; border-bottom: 1px solid #d6c8aa; }.stat-grid strong { font-family: Georgia, serif; font-size: 1.2rem; }.province-text { color: #4d565c; line-height: 1.5; margin-bottom: 16px; }
.actions { display: grid; gap: 8px; }.action { width: 100%; text-align: left; padding: .7rem .8rem; border: 1px solid #b7a989; border-radius: 8px; background: #fff8e9; color: #303a3f; font-weight: 700; }.action:hover, .action:focus-visible { border-color: var(--gold); background: #fffdf6; }.action.danger { color: #852f2d; }.action:disabled { opacity: .45; cursor: not-allowed; }
.log-panel { margin-top: 18px; }.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }.log li { border-left: 3px solid var(--gold); padding-left: 10px; color: #576168; font-size: .89rem; line-height: 1.4; }.log li:first-child { color: var(--ink); font-weight: 650; }
dialog { border: 0; border-radius: 14px; padding: 0; color: var(--ink); max-width: min(92vw, 620px); box-shadow: 0 25px 80px rgba(0,0,0,.5); }dialog::backdrop { background: rgba(8,16,22,.72); backdrop-filter: blur(2px); }.battle-card, .event-card { position: relative; padding: clamp(21px, 5vw, 34px); background: var(--paper); }.close { position: absolute; top: 9px; right: 12px; border: 0; background: transparent; color: #67716f; font-size: 1.7rem; z-index: 2; }.battle-card h2, .event-card h2 { margin: 7px 0 8px; }.battle-copy, .event-card p:not(.eyebrow) { color: #566067; line-height: 1.5; }.battle-scene { width: 100%; display: block; border: 3px solid #9a8055; border-radius: 8px; margin: 17px 0 4px; image-rendering: pixelated; }.doctrines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 20px 0; }.doctrine { border: 1px solid #b7a989; border-radius: 9px; padding: 11px; text-align: left; background: #fff8e9; }.doctrine strong, .doctrine small { display: block; }.doctrine small { color: #647078; margin-top: 4px; line-height: 1.3; }.doctrine.selected { border: 3px solid var(--gold); padding: 9px; background: #fff1cd; }.wide { width: 100%; }.event-card { min-width: min(92vw, 360px); }
@media (max-width: 720px) { .game-shell { padding-top: 16px; }.topbar { align-items: end; }.topbar .primary { font-size: .78rem; padding: .7rem; }.ghost { padding: .62rem .48rem; font-size: .72rem; }.status-strip { grid-template-columns: repeat(3, 1fr); }.status-strip div { padding: 9px 8px; }.status-strip strong { font-size: 1.17rem; }.status-strip small { font-size: .68rem; }.content-grid { grid-template-columns: 1fr; }.map { min-height: 330px; }.province { min-height: 82px; }.province-panel { min-height: 270px; } }
