* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(90deg, #0b1a2a, #02060a);
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

[data-section="topbar"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d1117;
    padding: 12px 16px;
    border-bottom: 1px solid #1f2937;
}

[data-block="player"] {
    font-size: 14px;
    font-weight: bold;
}

[data-block="top-actions"] a {
    color: #9fd0ff;
}

[data-block="message"] {
    margin: 14px 16px 0 16px;
    padding: 10px 12px;
    background: #1a2230;
    border: 1px solid #334155;
    border-radius: 6px;
}

[data-layout="game"] {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px;
}

main[data-section="map"] {
    flex: 0 0 auto;
}

aside[data-section="sidebar"] {
    width: 320px;
    max-width: 320px;
}

[data-panel] {
    margin-bottom: 18px;
}

[data-panel] h3 {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.1;
}

[data-op] {
    background: #0f172a;
    border: 1px solid #263244;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

[data-upgrade-list] {
    display: grid;
    gap: 10px;
}

[data-upgrade-card] {
    background: #0f172a;
    border: 1px solid #263244;
    border-radius: 8px;
    padding: 10px;
}

[data-upgrade-head] {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
}

[data-upgrade-meta] {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 8px;
}

[data-preview] {
    background: #101827;
    border: 1px solid #2c3b52;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

[data-preview-head] {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
}

[data-preview-row] {
    font-size: 13px;
    line-height: 1.45;
}

form {
    margin: 0;
}

input[type="hidden"] {
    display: none;
}

button {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #3b82f6;
    background: #1d4ed8;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #2563eb;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

[data-variant="danger"] {
    margin-top: 8px;
    border-color: #b91c1c;
    background: #991b1b;
}

[data-variant="danger"]:hover {
    background: #b91c1c;
}

[data-inline-form="1"] {
    margin-top: 8px;
}

[data-countdown] {
    display: inline-block;
    min-width: 56px;
    font-weight: bold;
    color: #93c5fd;
}

@media (max-width: 1100px) {
    [data-layout="game"] {
        flex-direction: column;
    }

    aside[data-section="sidebar"] {
        width: 100%;
        max-width: none;
    }
}