* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #eee6d2;
    background: #101820;
    font-family: Georgia, serif;
}

.topbar {
    min-height: 82px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #182635;
    border-bottom: 2px solid #8c7042;
}

.brand-title {
    font-size: 27px;
    letter-spacing: 5px;
    color: #e6c887;
    font-weight: bold;
}

.brand-subtitle {
    font-size: 10px;
    letter-spacing: 3px;
    color: #a99a7c;
    margin-top: 4px;
}

.resources {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: #e6d9bd;
}

.day {
    padding: 10px 18px;
    border: 1px solid #8c7042;
    border-radius: 5px;
    color: #e6c887;
}

main {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 16px;
}

.game-panel {
    overflow: hidden;
    background: #1a2935;
    border: 1px solid #806b47;
    border-radius: 8px;
    box-shadow: 0 12px 40px #0008;
}

.map-heading {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    color: #e6c887;
    border-bottom: 1px solid #574a36;
}

canvas {
    display: block;
    width: 100%;
    background: #243b38;
    cursor: pointer;
}

.hint {
    padding: 13px;
    text-align: center;
    color: #b9ad96;
    font-size: 14px;
}

@media (max-width: 650px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .resources {
        gap: 10px;
        font-size: 13px;
    }
}
.turn-controls {
    display: flex;
    justify-content: center;
    padding: 12px 12px 20px;
}

#endTurn {
    padding: 12px 28px;
    color: #f2dfb2;
    background: #72552e;
    border: 1px solid #c6a568;
    border-radius: 5px;
    font-family: Georgia, serif;
    font-size: 15px;
    cursor: pointer;
}

#endTurn:hover {
    background: #92703b;
}
