body {
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #081225 0%, #0f172a 100%);
    color: #e2e8f0;
    margin: 0;
}

.hud-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #17243b;
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 22px;
}

.hud-header h1 {
    margin: 0;
    font-size: 30px;
}

.hud-subtitle {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 14px;
}

.hud-header-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hud-badge {
    background: #22314d;
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
}

.gold-badge {
    background: #6b4f12;
    color: #fde68a;
}

.hud-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 22px;
}

.panel {
    background: #1a2740;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.player-panel {
    grid-column: 1 / 2;
}

.action-panel,
.info-panel {
    grid-column: 2 / 3;
}

.info-panel {
    margin-top: -2px;
}

.player-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.avatar-box {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.player-meta h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.player-meta p {
    margin: 0;
    color: #94a3b8;
}

.stat-block {
    margin-bottom: 22px;
}

.stat-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #cbd5e1;
}

.hp-bar {
    width: 100%;
    height: 22px;
    background: #334155;
    border-radius: 999px;
    overflow: hidden;
}

.hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mini-stat {
    background: #22314d;
    border-radius: 14px;
    padding: 16px;
}

.mini-stat-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-title-row h3 {
    margin: 0;
    font-size: 22px;
}

.panel-hint {
    color: #94a3b8;
    font-size: 13px;
}

.action-grid {
    display: grid;
    gap: 12px;
}

.action-form {
    margin: 0;
}

.hud-btn,
.action-form button {
    width: 100%;
    display: block;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.hud-btn:hover,
.action-form button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #22314d;
    border-radius: 12px;
    padding: 14px 16px;
}

.info-row span {
    color: #94a3b8;
}

.player {
    border: 1px solid #065f46;
}

.enemy {
    border: 1px solid #7c2d12;
}

.card,
.container,
button.action-btn {
    all: unset;
}

@media (max-width: 900px) {
    .hud-grid {
        grid-template-columns: 1fr;
    }

    .player-panel,
    .action-panel,
    .info-panel {
        grid-column: auto;
    }

    .info-panel {
        margin-top: 0;
    }

    .mini-stats {
        grid-template-columns: 1fr;
    }

    .hud-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.admin-form-grid input,
.admin-form-grid button {
    box-sizing: border-box;
}

.admin-table {
    display: grid;
    gap: 10px;
}

.admin-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: center;
    background: #22314d;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
}

.admin-head {
    background: #334155;
    font-weight: bold;
}

.admin-small-btn {
    width: auto;
    padding: 8px 12px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-row {
        grid-template-columns: 1fr;
    }
}

.inventory-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.shop-list {
    display: grid;
    gap: 12px;
}

.shop-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #22314d;
    border-radius: 12px;
    padding: 14px 16px;
}

.shop-buy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-price {
    font-weight: bold;
    color: #fde68a;
}