:root {
    color-scheme: light;
    --ink: #17202a;
    --muted: #667085;
    --line: #d9e2dc;
    --panel: #fbfcf7;
    --field: #eef6f4;
    --accent: #0f766e;
    --accent-strong: #114b5f;
    --danger: #a43f35;
    --gold: #d89b2b;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--panel);
}

button {
    font: inherit;
}

.shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    min-height: 100vh;
}

.arena {
    min-height: 100vh;
    background: var(--field);
}

.map {
    width: 100%;
    height: 100%;
    min-height: 520px;
}

.panel {
    border-left: 1px solid var(--line);
    background: rgba(251, 252, 247, 0.96);
    padding: 22px;
    overflow: auto;
    max-height: 100vh;
}

.region-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
}

.tower-count {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--accent-strong);
    color: white;
    font-weight: 800;
}

.notice {
    margin: 18px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    line-height: 1.35;
}

.success {
    background: #dff3ed;
    color: #07594e;
}

.error {
    background: #f8dfdc;
    color: var(--danger);
}

.primary-action {
    width: 100%;
    min-height: 48px;
    margin: 18px 0;
    border: 0;
    border-radius: 8px;
    color: white;
    background: var(--accent);
    font-weight: 800;
    cursor: pointer;
}

.primary-action:hover {
    background: var(--accent-strong);
}

.tower-list {
    display: grid;
    gap: 10px;
}

.tower-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 66px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: left;
    color: var(--ink);
    background: white;
    cursor: pointer;
}

.tower-row:hover {
    border-color: var(--accent);
}

.tower-row strong,
.tower-row small {
    display: block;
}

.tower-row strong {
    font-size: 14px;
    line-height: 1.2;
}

.tower-row small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    text-transform: capitalize;
}

.tower-row i {
    flex: 0 0 auto;
    color: var(--gold);
    font-style: normal;
    font-weight: 800;
}

.empty-state {
    margin: 10px 0;
    color: var(--muted);
}

.tower-marker {
    width: 22px;
    height: 22px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 10px rgba(23, 32, 42, 0.32);
}

.tower-marker.landmark {
    background: var(--gold);
}

.tower-marker.park {
    background: #348f50;
}

.tower-marker.transit {
    background: #4c63b6;
}

@media (max-width: 820px) {
    .shell {
        grid-template-columns: 1fr;
        grid-template-rows: 58vh auto;
    }

    .arena {
        min-height: 58vh;
    }

    .map {
        min-height: 58vh;
    }

    .panel {
        max-height: none;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 18px;
    }
}
