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

body {
    background: #1a1a2e;
    color: #fff;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-wrapper {
    width: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    background: #2c2c2c;
}

/* ===== HEADER ===== */
#header {
    background: #222;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.header-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
}

.logo-accent {
    color: #e74c3c;
    font-size: 26px;
    margin: 0 2px;
}

.header-right {
    background: #333;
    padding: 6px 18px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.balance-icon {
    background: #555;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* ===== CANVAS ===== */
#pixi-container {
    line-height: 0;
    background: #3a3a3a;
}

#pixi-container canvas {
    width: 100% !important;
    height: auto !important;
}

/* ===== CONTROL PANEL ===== */
#control-panel {
    background: #2a2a2a;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #3a3a3a;
}

.panel-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Left: Bet --- */
.panel-left {
    flex: 0 0 auto;
}

.bet-input {
    background: #3a3a3a;
    border-radius: 8px;
    padding: 6px 16px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.bet-presets {
    display: flex;
    gap: 5px;
}

.bet-btn {
    background: #3a3a3a;
    color: #999;
    border: 2px solid transparent;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.15s;
}

.bet-btn:hover {
    background: #444;
    color: #ccc;
}

.bet-btn.active {
    border-color: #4caf50;
    color: #fff;
}

.bet-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* --- Center: Difficulty --- */
.panel-center {
    flex: 1;
}

.diff-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 4px;
    margin-bottom: 2px;
}

.diff-title {
    font-size: 13px;
    font-weight: bold;
    color: #ccc;
}

.diff-subtitle {
    font-size: 11px;
    color: #777;
}

.diff-buttons {
    display: flex;
    gap: 0;
    background: #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
}

.diff-btn {
    flex: 1;
    background: transparent;
    color: #999;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.15s;
}

.diff-btn:hover {
    background: #444;
    color: #ccc;
}

.diff-btn.active {
    background: #555;
    color: #fff;
}

.diff-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* --- Right: Play / Cash Out --- */
.panel-right {
    flex: 0 0 auto;
    flex-direction: row !important;
    gap: 8px;
}

.btn-play {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 20px 50px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play:hover {
    background: #43a047;
}

.btn-cashout {
    background: #e8b730;
    color: #333;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    text-align: center;
    line-height: 1.4;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.btn-cashout:hover {
    background: #d4a520;
}
