:root {
    --bg: #0b1f17;
    --felt: #0f3d2e;
    --felt-light: #145c43;
    --gold: #d4af37;
    --text: #f1ece0;
    --muted: #9db8a8;
    --red: #e0554f;
    --danger: #c0392b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(circle at top, #123527, var(--bg));
    color: var(--text);
    min-height: 100vh;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

h1 {
    text-align: center;
    color: var(--gold);
    letter-spacing: 1px;
}

a {
    color: var(--gold);
}

.wallet-buttons,
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 32px auto;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--gold);
    background: #0a2b20;
    color: var(--text);
    font-size: 15px;
}

.form-error {
    text-align: center;
    color: var(--danger);
    min-height: 20px;
    font-size: 14px;
}

button {
    background: var(--felt-light);
    color: var(--text);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s ease;
}

button:hover:not(:disabled) {
    background: var(--gold);
    color: #16210f;
}

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

.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 8px;
}

.hud strong {
    color: var(--gold);
}

.table {
    background: var(--felt);
    border: 6px solid #0a2b20;
    border-radius: 16px;
    padding: 24px;
}

.dealer-area,
.player-area {
    text-align: center;
    margin: 16px 0;
}

.dealer-area h3,
.player-area h3 {
    margin: 0 0 12px;
    color: var(--muted);
    font-weight: normal;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-height: 90px;
    flex-wrap: wrap;
}

.card {
    width: 56px;
    height: 80px;
    background: #fdfaf3;
    color: #111;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.card.red {
    color: var(--red);
}

.card.back {
    background: repeating-linear-gradient(45deg, var(--felt-light), var(--felt-light) 6px, #0a2b20 6px, #0a2b20 12px);
    border: 2px solid var(--gold);
}

.result {
    text-align: center;
    min-height: 24px;
    margin: 16px 0;
    color: var(--gold);
    font-weight: bold;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.controls input {
    width: 100px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--gold);
    background: #0a2b20;
    color: var(--text);
}

.hint {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--felt-light);
}

th {
    color: var(--gold);
    font-weight: normal;
}
