body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #eaf3ff;
    background:
        radial-gradient(circle at 20% 10%, rgba(104, 176, 255, 0.2), transparent 35%),
        radial-gradient(circle at 82% 25%, rgba(100, 255, 195, 0.2), transparent 40%),
        linear-gradient(145deg, #0f2235, #182a45);
}

#game {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px;
}

.top h1 {
    margin: 0;
}

.top p {
    margin: 6px 0 0;
    color: #afc6e9;
}

.stats {
    margin-top: 14px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 8px;
}

.stat-card strong {
    display: block;
    color: #fff5b7;
    margin-top: 3px;
    font-size: 1.1rem;
}

.controls {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.action-group {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px;
}

.action-group h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.action-group button {
    width: 100%;
    margin-bottom: 6px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    background: linear-gradient(135deg, #67d4ff, #62f1cc);
    color: #062a31;
    font-weight: 700;
    transition: transform 0.15s ease;
}

.action-group button:hover {
    transform: translateY(-1px);
}

.plan-wrap {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 10px;
}

.plan-wrap h2 {
    margin: 0;
    font-size: 1rem;
}

.plan-wrap p {
    margin: 4px 0 8px;
    color: #b9d1f2;
    font-size: 0.88rem;
}

.city-plan {
    display: grid;
    grid-template-columns: repeat(8, minmax(22px, 1fr));
    gap: 6px;
}

.plan-cell {
    min-height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(13, 30, 49, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #e6f2ff;
    font-weight: 700;
}

.plan-cell.type-house {
    background: rgba(72, 177, 255, 0.35);
}

.plan-cell.type-workshop {
    background: rgba(255, 194, 78, 0.35);
}

.plan-cell.type-park {
    background: rgba(120, 238, 150, 0.35);
}

.plan-cell.type-clinic {
    background: rgba(255, 132, 158, 0.35);
}

.plan-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    color: #cbddf8;
    font-size: 0.82rem;
}

.log-wrap {
    margin-top: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 10px;
}

.log-wrap h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.event-log {
    max-height: 200px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-item {
    font-size: 0.92rem;
    color: #d8e6ff;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px;
}
