* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    display: flex;
    justify-content: center;
    padding: 20px;
}

#app {
    width: 100%;
    max-width: 900px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #1e293b;
    border-radius: 12px;
    margin-bottom: 20px;
}

.logo {
    font-size: 1.5rem;
    color: #38bdf8;
}

.user-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    background: #334155;
    font-size: 0.9rem;
}

.badge.name { background: #0284c7; }
.badge.role { background: #9333ea; }
.badge.balance { background: #eab308; color: #000; }

.card {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #334155;
}

.game-container {
    text-align: center;
}

.game-instruction {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.canvas-wrapper {
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

canvas {
    background: #065f46;
    border: 12px solid #78350f;
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6), 0 10px 25px rgba(0,0,0,0.5);
    cursor: crosshair;
}

.game-controls {
    margin-top: 15px;
}

.center-box {
    max-width: 400px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #fff;
}

.form-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-inline input, .form-inline select {
    flex: 1;
    min-width: 140px;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.btn-primary { background: #0284c7; color: white; }
.btn-primary:hover { background: #0369a1; }
.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: #dc2626; color: white; }
.btn-block { width: 100%; }

.topup-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.item-card {
    background: #0f172a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #334155;
    text-align: center;
}

.item-card.equipped {
    border-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.rarity {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: bold;
}

.rarity.Common { background: #64748b; }
.rarity.Rare { background: #2563eb; }
.rarity.Epic { background: #9333ea; }
.rarity.Legendary { background: #d97706; }

.hidden { display: none !important; }
