:root {
    --bg-color: #F0F8FF;
    /* Alice Blue */
    --text-color: #1E3765;
    /* Dark Blue */
    --primary: #F68616;
    /* Dutch Orange */
    --secondary: #1E3765;
    /* Dark Blue */
    --accent: #e74c3c;
    /* Red remains for contrast */
    --card-bg: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    /* Modern font */
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background: #fff;
    padding: 10px 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.header-controls button {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 5px;
    transition: all 0.2s;
}

.header-controls button:hover {
    background: var(--primary);
    color: #fff;
}

/* Container */
.container {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* Setup Styles */
.setup-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

h2 {
    color: var(--text-color);
    margin-top: 0;
}

.mode-select {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.mode-btn {
    padding: 12px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn.selected {
    background: var(--primary);
    color: #fff;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

input[type="text"],
input[type="number"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fdfdfd;
}

.dealer-select {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.dealer-select.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* Buttons */
.btn-main {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    margin-top: 20px;
    transition: transform 0.1s;
}

.btn-main:active {
    transform: translateY(2px);
}

.btn-secondary {
    background: transparent;
    border: none;
    color: var(--primary);
    margin-top: 15px;
    cursor: pointer;
    text-decoration: underline;
}

/* Game Board */
.game-board {
    display: none;
    flex-direction: column;
    height: 100%;
}

.round-info {
    text-align: center;
    padding: 10px;
    background: #e8f4fc;
    color: var(--primary);
    font-weight: bold;
    border-bottom: 1px solid #dceefb;
}

.scoreboard {
    flex: 1;
    overflow: auto;
    position: relative;
    padding-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th {
    background: #f8f9fa;
    color: #7f8c8d;
    padding: 12px 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-weight: 500;
}

.total-row td {
    border-top: 2px solid var(--primary);
    font-weight: bold;
    color: var(--primary);
    background: #f0f8ff;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.modal.visible {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.dutch-call-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.btn-dutch-toggle {
    background: #eee;
    color: #aaa;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-dutch-toggle.active {
    background: var(--secondary);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.score-hud {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    margin: 15px 0;
}

/* Force Footer Transparent */
.common-footer {
    background: transparent !important;
    box-shadow: none !important;
}