* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* ===== SETUP ===== */
#setup h1 {
    text-align: center;
    margin-bottom: 16px;
}

#setup label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

#setup input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#playerInputs input {
    margin-top: 8px;
}

/* ===== GAME ===== */
#game {
    text-align: center;
}

canvas {
    display: block;
    margin: 12px auto;
    max-width: 100%;
}

/* ===== RESULT ===== */
#result h1 {
    font-size: 22px;
    margin: 12px 0;
}

#result h2 {
    font-size: 18px;
    margin: 8px 0;
    color: #444;
}

/* ===== ACTION BUTTONS ===== */
#actions {
    display: none;
    gap: 12px;
    margin-top: 12px;
}

#actions button {
    flex: 1;
}

/* ===== BUTTON STYLE ===== */
button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    margin-top: 12px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

button:active {
    transform: scale(0.97);
}

.primary {
    background: #ff5722;
    color: white;
}

.success {
    background: #4caf50;
    color: white;
}

.danger {
    background: #f44336;
    color: white;
}

/* ===== MOBILE TOUCH FRIENDLY ===== */
@media (max-width: 480px) {
    button {
        font-size: 20px;
        padding: 16px;
    }

    #result h1 {
        font-size: 24px;
    }
}
