/* version nr 20260122-01 */
:root {
    --bg-dark: #0f172a;
    --navy: #1e293b;
    --orange: #f59e0b;
    --green: #10b981;
    --red: #ef4444;
    --blue: #3b82f6;
    --white: #ffffff;
}

* { box-sizing: border-box; }
body, html {
    margin: 0; padding: 0; height: 100vh; width: 100vw;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow: hidden; background: #f1f5f9;
}

/* SCHERM BEHEER */
.screen-container { display: none; width: 100vw; height: 100vh; flex-direction: column; }
.active-screen { display: flex !important; }

/* STARTSCHERM LAYOUT */
#welcome-screen { align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-dark) 0%, var(--navy) 100%); }
.main-layout { display: flex; width: 94vw; height: 82vh; background: var(--white); border-radius: 40px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.panel-left { flex: 1.2; padding: 40px; background: #fafafa; border-right: 1px solid #eee; display: flex; flex-direction: column; justify-content: center; }
.panel-right { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; background: #fff; }
.title-wrapper { display: flex; align-items: center; gap: 15px; }
.logo-small { height: 40px; }
.title-wrapper h1 { font-size: 3.2rem; color: var(--navy); margin: 0; letter-spacing: -2px; }
.btn-i { background: var(--blue); color: white; border: none; border-radius: 50%; width: 35px; height: 35px; font-weight: 900; cursor: pointer; }
.promo-img { width: 100%; max-height: 280px; object-fit: contain; margin: 5px 0; }
.promo-text { color: #64748b; font-size: 1.2rem; font-style: italic; }
.badge-2026 { background: var(--orange); color: white; padding: 5px 15px; border-radius: 50px; font-weight: 450; align-self: flex-start; }
.settings-header { display: flex; justify-content: space-between; align-items: center; }
.btn-gear { background: #fef08a; border: 2px solid #facc15; border-radius: 50%; width: 45px; height: 45px; font-size: 1.4rem; cursor: pointer; }
.input-box { margin-bottom: 15px; }
.input-box label { display: block; font-weight: 800; color: #475569; margin-bottom: 5px; }
.input-box select { width: 100%; padding: 12px; border-radius: 12px; border: 2px solid #e2e8f0; font-size: 1rem; }
.check-box-row { background: #f1f5f9; padding: 15px; border-radius: 15px; border: 1px solid #e2e8f0; margin-bottom: 15px; }
.btn-start-strijd { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: none; padding: 20px; font-size: 1.8rem; font-weight: 900; border-radius: 20px; box-shadow: 0 10px 0 #064e3b; cursor: pointer; }
.btn-start-strijd:active { transform: translateY(6px); box-shadow: 0 4px 0 #064e3b; }

/* SPEELVELD LAYOUT */
.game-top-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; background: #fff; border-bottom: 2px solid #ddd; }
.nav-btn { border: none; color: white; padding: 10px 25px; border-radius: 12px; font-weight: 900; cursor: pointer; }
.btn-orange { background: var(--orange); }
.btn-green { background: var(--green); }
.btn-red { background: var(--red); }
.nav-right { display: flex; gap: 10px; }
#duel-container { display: flex; flex: 1; gap: 20px; padding: 20px; overflow: hidden; }
.player-zone { flex: 1; display: flex; flex-direction: column; }
.player-info { font-weight: 900; font-size: 1.3rem; margin-bottom: 5px; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; background: #e2e8f0; padding: 10px; border-radius: 20px; flex: 1; margin-bottom: 8px; }
.single-player .game-grid { grid-template-columns: repeat(4, 1fr); }

/* Hier is 'text-transform: uppercase' verwijderd */
.tile, .drop-zone { 
    background: #fff; 
    border: 2px solid #94a3b8; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    font-weight: 800; 
    cursor: pointer; 
    padding: 5px; 
    font-size: 1.2rem; 
}

.tile.selected { border-color: var(--orange); background: #fffbeb; }
.tile.hidden { visibility: hidden; }
.drop-zone.filled { border-color: var(--green); color: var(--green); background: #f0fdf4; }

/* FOOTER FIXED */
.footer-fixed { text-align: center; padding: 10px; color: #94a3b8; font-size: 0.85rem; width: 100%; position: absolute; bottom: 0; left: 0; background: transparent; }

/* MODALS ALGEMEEN */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; display: none; align-items: center; justify-content: center; }
.modal-box { background: white; padding: 30px; border-radius: 30px; max-width: 500px; width: 90%; text-align: center; }

/* AANPASSINGEN EIND SCHERM */
#end-screen { 
    background: rgba(255, 255, 224, 0.98); 
}

.trophy-img {
    width: 140px; 
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Ook hier is 'text-transform: uppercase' verwijderd */
#win-message {
    font-size: 5.5rem; 
    color: var(--orange); 
    font-weight: 900;
    margin: 10px 0;
}

.win-card {
    background: white;
    padding: 40px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    border: 4px solid #fef08a;
}