:root {
    --bg: #0d0d1a;
    --card: #16162a;
    --card-hover: #1e1e38;
    --border: #2a2a45;
    --primary: #ff6b35;
    --primary-glow: rgba(255, 107, 53, 0.2);
    --purple: #8b5cf6;
    --pink: #f472b6;
    --green: #34d399;
    --text: #f1f1f8;
    --text-sec: #9898b8;
    --text-muted: #8a8aa8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-decoration: none;
}
.logo-foxy { color: var(--primary); }
.logo-games { color: var(--text); }

h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-sec);
    margin-bottom: 40px;
}

.games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 960px;
    width: 100%;
}

.games--top {
    grid-template-columns: repeat(3, 1fr);
}

.games--bottom {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
}

.game {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.game:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}

.game:hover::before { opacity: 1; }

.game--quiz::before { background: linear-gradient(90deg, var(--primary), #fbbf24); }
.game--music::before { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.game--act::before { background: linear-gradient(90deg, var(--pink), var(--purple)); }
.game--explore::before { background: linear-gradient(90deg, var(--green), #22d3ee); }
.game--cards::before { background: linear-gradient(90deg, #f59e0b, var(--primary)); }
.game--hunt::before { background: linear-gradient(90deg, #a78bfa, #7c3aed); }
.game--lingo::before { background: linear-gradient(90deg, #06b6d4, var(--green)); }

.game--quiz:hover { border-color: var(--primary); }
.game--music:hover { border-color: var(--purple); }
.game--act:hover { border-color: var(--pink); }
.game--explore:hover { border-color: var(--green); }
.game--cards:hover { border-color: #f59e0b; }
.game--hunt:hover { border-color: #a78bfa; }
.game--lingo:hover { border-color: #06b6d4; }

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-sec);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 40px 0 20px;
    width: 100%;
    max-width: 960px;
    text-align: center;
}

.games--single {
    grid-template-columns: minmax(260px, 320px);
    justify-content: center;
}

.game__emoji { font-size: 3rem; margin-bottom: 14px; }
.game__name { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.game__desc { font-size: 0.9rem; color: var(--text-sec); margin-bottom: 14px; }

.game__status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status--beta {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.status--live {
    background: rgba(52, 211, 153, 0.1);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.status--soon {
    background: rgba(152, 152, 184, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.lang-switch {
    position: fixed;
    top: 16px;
    right: 16px;
    color: var(--text-sec);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.lang-switch__active { color: var(--primary); }

.footer {
    margin-top: 48px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.footer a {
    color: var(--text-sec);
    text-decoration: none;
}

.footer a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .games--top { grid-template-columns: 1fr; }
    .games--bottom { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .games { grid-template-columns: 1fr; }
}

.lang-switch a { color: var(--text-sec); text-decoration: none; }
.lang-switch a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid #ff8c5a; outline-offset: 3px; }

/* ===== FOXY ADVENTURES ===== */
.games--adv { grid-template-columns: repeat(3, 1fr); }
.game--adv { padding: 26px 22px 28px; display: flex; flex-direction: column; align-items: center; }
.game__art { display: block; height: 118px; width: auto; margin: 0 auto 14px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.game__art-wrap { position: relative; display: block; }
.game__age {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.game__age--pip { background: #23784a; }
.game__age--foxy { background: #4767a0; }
.game--pip::before { background: linear-gradient(90deg, #23784a, #34d399); }
.game--foxyadv::before { background: linear-gradient(90deg, var(--primary), #fbbf24); }
.game--pip:hover { border-color: #34d399; }
.game--foxyadv:hover { border-color: var(--primary); }
.game--locked { cursor: default; }
.game--locked:hover { transform: none; box-shadow: none; }
.game--locked .game__art { filter: grayscale(1) brightness(0.5); }
.game__lock {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(20, 20, 40, 0.88);
    border: 3px solid #fff;
    display: grid;
    place-items: center;
}
.game__lock svg { width: 20px; height: 20px; fill: #fff; }

@media (max-width: 768px) {
    .games--adv { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .game--adv { padding: 20px 12px 22px; }
    .game--adv .game__name { font-size: 1.05rem; }
}

@media (max-width: 640px) {
    /* taalkeuze niet meer vast over het logo */
    .lang-switch { position: static; margin: 0 auto 18px; }
    .games--adv { grid-template-columns: 1fr; }
    .game--adv { flex-direction: row; text-align: left; align-items: center; gap: 16px; padding: 18px; }
    .game--adv .game__art, .game--adv .game__art-wrap { flex: 0 0 auto; margin: 0; }
    .game--adv .game__art { height: 84px; }
    .game__text { flex: 1 1 auto; min-width: 0; }
}

/* SVG-iconen in plaats van emoji (img/icons.svg = Phosphor duotone, MIT), zelfde stijl als foxygames.be */
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; fill: currentColor; }
.game__emoji {
    --ic: 255, 107, 53;
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 18px;
    font-size: 34px;
    color: rgb(var(--ic));
    background: rgba(var(--ic), 0.12);
    border: 1px solid rgba(var(--ic), 0.28);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.3);
}
.game:hover .game__emoji { transform: translateY(-3px) rotate(-6deg) scale(1.05); }
.game--music .game__emoji { --ic: 139, 92, 246; }
.game--act .game__emoji { --ic: 244, 114, 182; }
.game--explore .game__emoji { --ic: 52, 211, 153; }
.game--cards .game__emoji { --ic: 245, 158, 11; }
.game--hunt .game__emoji { --ic: 167, 139, 250; }
.game--lingo .game__emoji { --ic: 6, 182, 212; }
@media (prefers-reduced-motion: reduce) { .game__emoji { transition: none; } }
