/*!
 * ==============================================
 * GROETJES UIT DE STUDIO VAN JEFF
 * https://www.destudiovanjeff.nl
 *
 * Copyright © 2026 Jeffrey Dral | De studio van Jeff
 * All rights reserved.
 *
 * Versie zonder database en zonder cookies.
 * ==============================================
 */

@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400..900&display=swap');

/* ============================================
   BASE STYLES & RESET
   ============================================ */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    position: fixed;
    top: 0;
    background-color: #69C7E9;
    left: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

body {
    font-family: 'Gabarito', sans-serif;
    color: #1e3a8a;
    line-height: 1.4;
    background: #ffffff;
}

/* ============================================
   GLOBAL ELEMENTS - LOGO & MUTE BUTTON
   Always visible in top corners
   ============================================ */
.blauwgras-logo {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    width: 120px;
    height: auto;
    z-index: 9998;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.blauwgras-logo:hover {
    opacity: 0.8;
}

.mute-button {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #1e3a8a;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.mute-button .mute-icon {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.mute-button:hover {
    transform: scale(1.1);
    background: white;
}

.mute-button:active {
    transform: scale(0.95);
}

.mobile-viewport {
    width: 100vw;
    height: 100vh;
    overflow: hidden !important;
    position: fixed;
    top: 0;
    left: 0;
}

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.loader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loader-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.loader-title {
    width: 60%;
    height: auto;
    margin: 0 auto 30px auto;
    display: block;
}

.loader-progress-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.loader-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #1e3a8a;
}

.loader-progress-fill {
    height: 100%;
    background: linear-gradient(89.7deg, #df0000 2.7%, #d65b00 15.1%, #e9f500 29.5%, #17ff11 45.8%, #1dffff 61.5%, #0511ff 76.4%, #ca00fd 92.4%);
    width: 0%;
    transition: width 0.3s ease;
}

.loader-bus {
    position: absolute;
    top: -40px;
    left: 0%;
    transition: left 0.3s ease;
    z-index: 15;
}

.loader-bus-image {
    width: 80px;
    height: auto;
    display: block;
}

.loader-percentage {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a8a;
}

.loader-status {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    font-style: italic;
}

#loaderContinueBtn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    background: #ef4444;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 40px;
    min-width: 250px;
    height: 55px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loader-fade-out {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* ============================================
   MAIN MENU SCREEN
   ============================================ */
#main-menu-screen,
.main-menu-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 95;
    overflow: hidden;
}

.main-menu-content {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.main-menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #87CEEB 0%, #98D8F4 100%);
    z-index: 1;
}

.main-menu-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-menu-bg-1 {
    z-index: 1;
}

.main-menu-bg-2 {
    z-index: 2;
    opacity: 0;
    transition: opacity 900ms ease-in-out;
}

.main-menu-bg-2.is-visible {
    opacity: 1;
}

.main-menu-buttons.is-entering {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease-out 2s, transform 600ms ease-out 2s;
    pointer-events: none;
}

.main-menu-buttons.is-entering.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.clouds-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 4096px;
    height: 100%;
    background-image: url('https://jeffreydral.com/defantastischebus/images/wolken.png');
    background-size: 4096px auto;
    background-repeat: no-repeat;
    background-position: left center;
    animation: moveCloudsSlow 120s linear infinite;
    opacity: 0.7;
    z-index: 3;
}

@keyframes moveCloudsSlow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(100vw - 4096px));
    }
}

.flying-plane {
    position: absolute;
    width: 160px;
    height: auto;
    z-index: 4;
    opacity: 0;
}

.flying-plane img {
    width: 100%;
    height: auto;
}

.main-menu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 80px 20px 20px 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-menu-logo-center {
    width: 90%;
    max-width: 400px;
    margin-bottom: 30px;
    margin-top: -30px;
}

.main-menu-logo-center img {
    width: 100%;
    height: auto;
    display: block;
}

.main-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90%;
    max-width: 300px;
    margin-top: -10px;
}

.main-menu-button {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #1e3a8a;
    border-radius: 40px;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #1e3a8a;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 55px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-menu-button:hover {
    color: white;
    background: #1e3a8a;
}

.main-menu-button.main-button {
    background: #ef4444;
    color: white;
    border: none;
}

.main-menu-button.main-button:hover {
    background: #dc2626;
}

#gamesButton:hover {
    background: linear-gradient(89.7deg, #ff8a8a 2.7%, #ffa95e 15.1%, #fff16a 29.5%, #7aff7a 45.8%, #6eeeff 61.5%, #7f9bff 76.4%, #d77aff 92.4%);
    background-size: 200% 100%;
    animation: gamesButtonRainbow 3s linear infinite;
    color: white;
    border-color: transparent;
}

@keyframes gamesButtonRainbow {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.order-book-bottom {
    background: white;
    border: 3px solid #1e3a8a;
    border-radius: 50px;
    padding: 12px 24px 12px 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.order-book-bottom img {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease;
    position: absolute;
    left: -10px;
    border: 3px solid #1e3a8a;
    border-radius: 8px;
    background: white;
}

.order-book-bottom-text {
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-book-bottom:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.order-book-bottom:hover .order-book-bottom-text {
    color: white;
}

.order-book-bottom:hover img {
    border-color: #1e3a8a;
}

/* ============================================
   ENTER SCREEN
   ============================================ */
#enter-screen,
.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 100;
    overflow: hidden;
}

.enter-screen-content {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.enter-screen-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    background-image: url('https://jeffreydral.com/defantastischebus/images/enter-screen-bg-1.png');
}

.enter-screen-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 80px 20px 20px 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.enter-screen-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    padding-top: 20px;
}

.enter-screen-header-title {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-bottom: 15px;
}

.enter-screen-header-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 90%;
}

.enter-screen-main-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 0;
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.enter-screen-enter-button {
    background: #ef4444;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 40px;
    cursor: pointer;
    min-width: 250px;
    height: 55px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enter-screen-enter-button:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.enter-screen-enter-button:active {
    transform: translateY(0) scale(0.98);
}

.enter-screen-back-button {
    background: white;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enter-screen-back-button:hover {
    background: #1e3a8a;
    color: white;
}

/* ============================================
   GAME SCREEN
   ============================================ */
#gameScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden !important;
    background-image: url('https://jeffreydral.com/defantastischebus/images/game-screen-mobile.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding: 80px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.header {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 20px;
    text-align: center;
}

.header-title {
    display: block;
    width: 80%;
    max-width: 320px;
    margin: 0 auto 12px;
    height: auto;
}

.header-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    margin-top: 10px;
    padding: 0 20px;
}

.header-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-text {
    font-size: 22px;
    font-weight: 400;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.counter-text .counter-number {
    font-weight: 700;
    font-size: 28px;
}

.how-it-works-button {
    background: white;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    align-self: center;
    width: auto;
}

.how-it-works-button:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-1px);
}

.how-it-works-button:active {
    transform: translateY(0) scale(0.98);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.wrenches-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 800px;
    height: 60vh;
    max-height: 500px;
    pointer-events: none;
    z-index: 90;
}

.wrench-tool {
    position: absolute;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 8px rgba(225, 225, 225, 0.3));
    z-index: 91;
}

.wrench-tool img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.wrench-small {
    width: 48px;
    height: 48px;
}

.wrench-medium {
    width: 80px;
    height: 80px;
}

.wrench-large {
    width: 120px;
    height: 120px;
}

.wrench-tool:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

.wrench-tool.clicking {
    animation: wrenchClick 0.4s ease-out;
}

@keyframes wrenchClick {
    0% {
        transform: rotate(var(--rotation)) scale(1);
    }

    25% {
        transform: rotate(calc(var(--rotation) + 20deg)) scale(1.2);
    }

    50% {
        transform: rotate(calc(var(--rotation) - 10deg)) scale(1.1);
    }

    75% {
        transform: rotate(calc(var(--rotation) + 5deg)) scale(1.05);
    }

    100% {
        transform: rotate(var(--rotation)) scale(1);
    }
}

.wrench-tool.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.wrench-tool.special {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 10px rgba(239, 68, 68, 0));
    }

    50% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 20px rgba(239, 68, 68, 0.6));
    }
}

.build-button {
    display: none !important;
}

#nav-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 380px;
    z-index: 100;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.nav-button {
    flex: 1;
    max-width: 180px;
    background: white;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-button:last-child {
    background: #1e3a8a;
    color: white;
}

.nav-button:first-child:hover {
    background: #1e3a8a;
    color: white;
}

.nav-button:last-child:hover {
    background: #1e3370;
}

.nav-link-container {
    text-align: center;
    padding-top: 10px;
}

.nav-link {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
}

.nav-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Week Prize Popup - Won State */
.week-prize-won h3 {
    color: #ef4444;
}

.week-prize-won .popup-text {
    color: #64748b;
}

.next-week-date {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f0fdf4;
    border-radius: 8px;
    color: #15803d !important;
    font-weight: 600;
    font-size: 13px;
}

@media (min-width: 1024px) {
    .next-week-date {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* Week Prize Image */
.week-prize-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 15px auto;
    display: block;
    border-radius: 12px;
    background: #f9fafb;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .week-prize-image {
        width: 180px;
        height: 180px;
    }
}

/* Week Prize Popup States */
.week-prize-won,
.week-prize-ended {
    text-align: center;
}

.week-prize-won h3,
.week-prize-ended h3 {
    color: #6b7280;
    font-size: 24px;
    margin-bottom: 15px;
}

.week-prize-ended h3 {
    font-size: 48px;
    margin-bottom: 20px;
}

.next-week-date {
    font-weight: 700;
    color: #10b981 !important;
    font-size: 16px !important;
    margin-top: 15px !important;
}

.prize-name {
    font-weight: 600;
    font-size: 18px;
    color: #1e3a8a;
}

.week-prize-ended a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.week-prize-ended a:hover {
    opacity: 0.7;
    text-decoration: underline;
}
/* ============================================
   POPUPS
   ============================================ */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.popup-content {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    max-width: 90%;
    width: 350px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
    opacity: 1;
}

.popup-title {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.popup-text {
    font-size: 14px;
    color: #1e3a8a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.popup-close-x {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    color: #1e3a8a;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close-x::before {
    content: '×';
}

.close-popup {
    background: #ef4444;
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: #dc2626;
}

.popup-buttons-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.meer-info-op-blauwgraswebsite {
    background: white;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meer-info-op-blauwgraswebsite:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-1px);
}

.book-info-popup-content,
.author-popup-content {
    width: auto;
    max-width: 90%;
}

.book-info-cover {
    width: 150px !important;
    margin-bottom: 12px !important;
}

.book-info-title {
    font-size: 20px !important;
    margin-bottom: 5px !important;
    text-align: center !important;
}

.book-info-meta {
    font-size: 14px !important;
    margin-top: -5px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

.book-info-description,
.book-info-highlight,
.book-info-words,
.book-info-author-note {
    font-size: 14px !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

.book-info-translator {
    font-size: 13px !important;
    margin-bottom: 10px !important;
}

.maker-link {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.maker-link:hover {
    color: #ef4444;
}

.book-info-popup-content {
    max-height: 95vh !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

.book-info-popup-content .book-details {
    margin-bottom: 15px !important;
}

#bookInfoPopup.popup {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 10vh 20px 20px 20px !important;
}

#bookInfoPopup.popup[style*="display: flex"],
#bookInfoPopup.popup[style*="display:flex"] {
    display: flex !important;
}

.book-details {
    text-align: center;
    padding: 0 10px;
}

.author-popup-content {
    max-height: 95vh !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

.author-popup-content .popup-title {
    width: 180px !important;
    margin-bottom: 8px !important;
}

.author-popup-content .foto-copyright {
    font-size: 10px !important;
    display: block;
    margin-bottom: 12px !important;
}

.author-popup-content .author-info h3 {
    font-size: 20px !important;
    margin-bottom: 10px !important;
}

.author-popup-content .author-info .popup-text {
    font-size: 14px !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

#authorPopup.popup {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 10vh 20px 20px 20px !important;
}

#authorPopup.popup[style*="display: flex"],
#authorPopup.popup[style*="display:flex"] {
    display: flex !important;
}

.foto-copyright {
    font-size: 11px;
    color: #1e3a8a;
    margin-bottom: 15px;
    display: block;
    font-style: italic;
}

.rate-limit-popup {
    z-index: 20000 !important;
}

.rate-limit-popup .popup-content {
    background: #fbbf24;
    color: #1e3a8a;
    transform: scale(1) !important;
    opacity: 1 !important;
}

.rate-limit-timer {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
    text-align: center;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.thank-you-popup .popup-content {
    background: #ef4444;
    color: white;
}

.thank-you-popup .popup-text {
    color: white;
}

.thank-you-popup .close-popup {
    background: white;
    color: #ef4444;
}

.winner-popup .popup-content {
    background: #10b981;
    color: white;
}

.winner-popup .popup-text,
.winner-popup .popup-instruction {
    color: white;
}

.winner-code {
    background: #10b981;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 15px 0;
}

.instructions-title {
    color: #1e3a8a;
    font-size: 1.4em;
    margin: 5px 0 10px 0;
    font-weight: bold;
    text-align: center;
}

.instructions-content {
    text-align: left;
    padding: 0 15px 10px 15px;
    max-width: 450px;
    margin: 0 auto;
}

.instruction-step {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 0.9em;
}

.popup-wrenches-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px auto;
    height: 60px;
}

.popup-wrench-small {
    width: 35px;
}

.popup-wrench-large {
    width: 55px;
}

.popup-wrench-left {
    transform: rotate(-25deg);
}

.popup-wrench-center {
    transform: rotate(8deg);
}

.popup-wrench-right {
    transform: rotate(35deg);
}

.external-link-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 30000;
    padding: 20px;
}

.external-link-modal-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.external-link-icon {
    width: calc(100% - 40px);
    max-width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.external-link-modal h3 {
    font-size: 20px;
    color: #1e3a8a;
    margin-bottom: 12px;
    font-weight: 700;
}

.external-link-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.external-link-cancel,
.external-link-continue {
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Gabarito', sans-serif;
}

.external-link-cancel {
    background: #e5e7eb;
    color: #374151;
}

.external-link-cancel:hover {
    background: #d1d5db;
}

.external-link-continue {
    background: #1e3a8a;
    color: white;
}

.external-link-continue:hover {
    background: #1e3370;
    transform: translateY(-1px);
}

/* Win code button - verbeterde styling */
.win-code-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 3px solid white;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    margin: 15px auto;
    display: block;
    text-align: center;
    max-width: 90%;
    z-index: 99999999999;
}

.win-code-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.win-code-button:active {
    transform: translateY(0) scale(0.98);
}

@media (min-width: 1024px) {
    .win-code-button {
        font-size: 14px;
        padding: 14px 30px;
        max-width: 450px;
    }
}

.mail-now-button {
    background: #20fab1;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px auto;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (min-width: 1024px) {
    .mail-now-button {
        font-size: 18px;
        padding: 18px 40px;
    }
}

.mail-now-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.mail-now-button:active {
    transform: translateY(0) scale(0.98);
}

.winner-popup .close-popup {
    background: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    margin-top: 10px;
}

.winner-popup .close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (min-width: 1024px) {
    .winner-popup .close-popup {
        font-size: 14px;
    }
}

/* ============================================
   SPECIAL WORD ANIMATIONS
   ============================================ */
.special-word {
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.word-groot {
    color: #FF6B6B;
}

.word-dik {
    color: #4ECDC4;
}

.word-prachtig {
    color: #FFD93D;
}

.word-grappig {
    color: #95E77E;
}

.word-spannend {
    color: #A8E6CF;
}

.word-ontroerend {
    color: #FFB6C1;
}

.word-groot:hover,
.word-groot.active {
    transform: scale(1.5);
}

.word-dik:hover,
.word-dik.active {
    transform: scaleX(1.8);
}

.word-prachtig:hover,
.word-prachtig.active {
    animation: sparkle 1s ease infinite;
    text-shadow: 0 0 10px gold, 0 0 20px gold, 0 0 30px gold;
}

@keyframes sparkle {

    0%,
    100% {
        text-shadow: 0 0 10px gold, 0 0 20px gold, 0 0 30px gold;
        filter: brightness(1.2);
    }

    50% {
        text-shadow: 0 0 20px gold, 0 0 30px gold, 0 0 40px gold;
        filter: brightness(1.5);
    }
}

.word-grappig span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.word-grappig:hover span,
.word-grappig.active span {
    animation: letterDance 0.5s ease infinite;
}

.word-grappig span:nth-child(1) {
    animation-delay: 0s;
}

.word-grappig span:nth-child(2) {
    animation-delay: 0.1s;
}

.word-grappig span:nth-child(3) {
    animation-delay: 0.2s;
}

.word-grappig span:nth-child(4) {
    animation-delay: 0.3s;
}

.word-grappig span:nth-child(5) {
    animation-delay: 0.4s;
}

.word-grappig span:nth-child(6) {
    animation-delay: 0.5s;
}

.word-grappig span:nth-child(7) {
    animation-delay: 0.6s;
}

@keyframes letterDance {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.word-spannend:hover,
.word-spannend.active {
    animation: tremble 0.1s ease infinite;
    filter: blur(0.5px);
}

@keyframes tremble {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-1px);
    }

    50% {
        transform: translateX(1px);
    }

    75% {
        transform: translateX(-1px);
    }

    100% {
        transform: translateX(0);
    }
}

.word-ontroerend:hover,
.word-ontroerend.active {
    animation: heartbeat 1s ease infinite;
}

.word-ontroerend:hover::after,
.word-ontroerend.active::after {
    content: '♥';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFB6C1;
    font-size: 12px;
    animation: floatHeart 2s ease infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* ============================================
   FLYING ANIMATIONS
   ============================================ */
.flying-tools-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 500000;
    overflow: hidden !important;
}

.flying-tool {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.flying-tool img {
    object-fit: contain;
}

.flying-tool.tool-sleutel img {
    width: 300px;
    height: auto;
}

.flying-tool.tool-moer img {
    width: 35px;
    height: auto;
}

.flying-tool.tool-plug img {
    width: 150px;
    height: auto;
}

/* Flying animations - GECORRIGEERD */
@keyframes flyAcross {
    0% {
        opacity: 0;
        transform: translateX(var(--start-x)) translateY(var(--start-y)) rotate(0deg) scale(0.8);
    }

    5% {
        opacity: 1;
    }

    15% {
        opacity: 1;
        transform: translateX(var(--start-x)) translateY(var(--start-y)) rotate(0deg) scale(1);
    }

    85% {
        opacity: 1;
        transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(var(--rotation)) scale(1);
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(var(--rotation)) scale(0.8);
    }
}

@keyframes flyWithGravity {
    0% {
        opacity: 0;
        transform: translateX(var(--start-x)) translateY(var(--start-y)) rotate(0deg) scale(0.8);
    }

    5% {
        opacity: 1;
    }

    10% {
        opacity: 1;
        transform: translateX(var(--start-x)) translateY(var(--start-y)) rotate(0deg) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(var(--rotation)) scale(1);
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(var(--rotation)) scale(0.8);
    }
}

@keyframes flyLinear {
    0% {
        opacity: 0;
        transform: translateX(var(--start-x)) translateY(var(--start-y)) rotate(0deg) scale(0.9);
    }

    5% {
        opacity: 1;
    }

    8% {
        opacity: 1;
        transform: translateX(var(--start-x)) translateY(var(--start-y)) rotate(0deg) scale(1);
    }

    92% {
        opacity: 1;
        transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(var(--rotation)) scale(1);
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(var(--rotation)) scale(0.9);
    }
}

@keyframes flyPattern1 {
    0% {
        transform: translate(-100px, 20vh) scaleX(1);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translate(calc(100vw + 100px), 20vh) scaleX(1);
        opacity: 0;
    }
}

@keyframes flyPattern2 {
    0% {
        transform: translate(calc(100vw + 100px), 60vh) scaleX(-1);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translate(-100px, 60vh) scaleX(-1);
        opacity: 0;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.honeypot {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 10px;
    margin: 10px 0;
    display: none;
    font-size: 13px;
}

.loading {
    opacity: 0.6;
}

::-webkit-scrollbar {
    display: none;
}

.popup-content::-webkit-scrollbar {
    display: block;
    width: 6px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* ============================================
   RESPONSIVE - MOBILE (<768px)
   ============================================ */
@media (max-width: 767px) {
    .main-menu-container {
        justify-content: flex-start;
        padding-top: 100px;
    }

    .main-menu-logo-center {
        margin-top: 0;
    }
}

/* ============================================
   RESPONSIVE - TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
    .blauwgras-logo {
        width: 140px;
    }

    .main-menu-logo-center {
        margin-top: -40px;
    }

    .main-menu-buttons {
        margin-top: -15px;
    }

    .order-book-bottom {
        max-width: 450px;
        padding: 14px 28px 14px 60px;
    }

    .order-book-bottom img {
        width: 90px;
        left: -12px;
    }

    .order-book-bottom-text {
        font-size: 16px;
        letter-spacing: 0.8px;
    }

    .enter-screen-main-content {
        margin-bottom: 60px;
    }

    .book-info-cover {
        width: 250px !important;
        margin-bottom: 20px !important;
    }

    .book-info-title {
        font-size: 24px !important;
    }

    .book-info-meta {
        font-size: 15px !important;
        margin-bottom: 15px !important;
    }

    .book-info-description,
    .book-info-highlight,
    .book-info-words,
    .book-info-author-note {
        font-size: 15px !important;
        margin-bottom: 15px !important;
    }

    .book-info-translator {
        font-size: 14px !important;
    }

    .author-popup-content .popup-title {
        width: 250px !important;
        margin-bottom: 15px !important;
    }

    .author-popup-content .foto-copyright {
        font-size: 12px !important;
        margin-bottom: 15px !important;
    }

    .author-popup-content .author-info h3 {
        font-size: 24px !important;
    }

    .author-popup-content .author-info .popup-text {
        font-size: 15px !important;
        margin-bottom: 15px !important;
    }

   .instructions-title {
       font-size: 1.6em;
       margin: 10px 0 15px 0;
   }

   .instructions-content {
       padding: 0 20px 15px 20px;
   }

   .instruction-step {
       padding: 12px;
       font-size: 1em;
       margin-bottom: 12px;
   }

   .popup-wrenches-container {
       gap: 15px;
       height: 80px;
   }

   .popup-wrench-small {
       width: 45px;
   }

   .popup-wrench-large {
       width: 70px;
   }

    #gameScreen {
        background-image: url('https://jeffreydral.com/defantastischebus/images/game-screen-tablet.png');
    }

    .popup-wrenches-container {
        gap: 10px;
        height: 80px;
    }
    
    .popup-wrench-small {
        width: 40px;
    }
    
    .popup-wrench-large {
       width: 70px;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .blauwgras-logo {
        width: 150px;
    }

    .mute-button {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .main-menu-container,
    .enter-screen-container,
    .container {
        padding: 100px 40px 40px 40px;
    }

    .main-menu-logo-center {
        max-width: 600px;
        margin-bottom: 50px;
    }

    .main-menu-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .main-menu-button {
        font-size: 16px;
        padding: 20px 30px;
        min-height: 70px;
    }

    .main-menu-button:nth-child(3),
    #gamesButton {
        grid-column: 1 / -1;
        max-width: none;
        margin: 0;
    }

    .order-book-bottom {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .enter-screen-header-title {
        max-width: 500px;
        margin-bottom: 25px;
    }

    .enter-screen-header-subtitle {
        font-size: 18px;
        max-width: 600px;
    }

    .enter-screen-main-content {
        flex-direction: row;
        gap: 20px;
        bottom: 120px;
        justify-content: center;
    }

    .enter-screen-enter-button {
        font-size: 16px;
        padding: 18px 50px;
        min-width: 320px;
        height: 65px;
    }

    .enter-screen-back-button {
        font-size: 14px;
        padding: 14px 30px;
    }

    #gameScreen {
        background-image: url('https://jeffreydral.com/defantastischebus/images/game-screen-desktop.png');
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
        max-width: 1500px;
        margin: 0 auto 30px;
    }

    .header-title {
        max-width: 1000px;
        margin: 0 auto 10px;
    }

    .header-left-column {
        align-items: center;
    }

    .counter-text {
        font-size: 28px;
        font-weight: 700;
        margin-top: 8px;
        margin-bottom: 0;
        text-align: center;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 1),
            0 0 30px rgba(0, 0, 0, 0.9),
            0 0 50px rgba(0, 0, 0, 0.8);
    }

    .counter-text .counter-number {
        font-size: 40px;
    }

    .header-subtitle {
        font-size: 18px;
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
        display: flex;
        align-items: center;
        gap: 15px;
        justify-content: center;
    }

    .how-it-works-button {
        margin-top: 0;
    }

    .wrenches-container {
        width: 70vw;
        max-width: 1000px;
        height: 50vh;
        max-height: 600px;
    }

    .wrench-small {
        width: 64px;
        height: 64px;
    }

    .wrench-medium {
        width: 110px;
        height: 110px;
    }

    .wrench-large {
        width: 160px;
        height: 160px;
    }

    #nav-buttons {
        bottom: 30px;
        max-width: 600px;
    }

    .nav-button {
        font-size: 14px;
        padding: 12px 25px;
        max-width: 200px;
    }

    .nav-link {
        font-size: 14px;
    }

    .popup-content {
        max-width: 500px;
        padding: 40px 35px;
    }

    .popup-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .book-info-popup-content,
    .author-popup-content {
        max-width: 800px;
    }

    .close-popup {
        font-size: 14px;
        padding: 12px 25px;
    }

    .book-details {
        padding: 0 20px;
    }

    .loader-content {
        max-width: 500px;
    }

    .loader-bus-image {
        width: 100px;
    }

    .loader-status {
        font-size: 16px;
    }

    .rate-limit-timer {
        font-size: 36px;
        margin: 20px 0;
    }

    .winner-code {
        font-size: 28px;
        padding: 18px;
        letter-spacing: 3px;
    }

    .external-link-modal-content {
        max-width: 400px;
        padding: 30px;
        border-radius: 20px;
    }

    .external-link-icon {
        width: calc(100% - 60px);
        max-width: 280px;
        margin-bottom: 25px;
    }

    .external-link-modal h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .external-link-cancel,
    .external-link-continue {
        padding: 12px 25px;
        font-size: 15px;
        border-radius: 18px;
    }

    .flying-tool.tool-sleutel img {
        width: 400px;
    }

    .flying-tool.tool-moer img {
        width: 50px;
    }

    .flying-tool.tool-plug img {
        width: 200px;
    }

 #instructionsPopup .popup-content {
     max-width: 650px !important;
     width: 650px;
 }

 .instructions-title {
     font-size: 1.8em;
     margin: 10px 0 20px 0;
 }

 .instructions-content {
     padding: 0 25px 20px 25px;
 }

 .instruction-step {
     padding: 15px;
     font-size: 1.05em;
     margin-bottom: 15px;
     line-height: 1.6;
 }

 .popup-wrenches-container {
     gap: 20px;
     height: 120px;
     margin: 30px auto;
 }

 .popup-wrench-small {
     width: 60px;
 }

 .popup-wrench-large {
     width: 110px;
 }
}

/* ============================================
   RESPONSIVE - ULTRAWIDE (1921px+)
   ============================================ */
@media (min-width: 1921px) {
    #gameScreen {
        background-image: url('https://jeffreydral.com/defantastischebus/images/game-screen-ultrawide.png');
    }
}

/* ============================================
   GAMES OVERLAY (spelletjes)
   ============================================ */
.games-screen {
    position: fixed;
    inset: 0;
    background-color: #69C7E9;
    background-image: url('https://jeffreydral.com/defantastischebus/images/bus-blauwprint.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 500;
    overflow: hidden;
}

.games-screen-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 24px;
    overflow-y: auto;
}

#games-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 720px;
    width: 100%;
}

.games-screen-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.games-tile {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #1e3a8a;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.games-tile:hover {
    background: #1e3a8a;
    color: white;
}

.games-tile:hover .games-tile-info h3,
.games-tile:hover .games-tile-info p {
    color: white;
}

.games-tile-thumb {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: #1e3a8a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.games-tile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(-18deg);
}

.games-tile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.games-tile-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: 0.5px;
}

.games-tile-info p {
    font-size: 14px;
    color: #1e3a8a;
    line-height: 1.45;
}

.games-back-button {
    background: white;
    color: #1e3a8a;
    border: 3px solid #1e3a8a;
    border-radius: 40px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-family: inherit;
}

.games-back-button:hover {
    background: #1e3a8a;
    color: white;
}

/* ============================================
   FIND WRENCHES GAME
   ============================================ */
.game-find-wrenches {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #69C7E9;
}

.game-topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    padding-top: 80px;
    gap: 12px;
    flex-shrink: 0;
    z-index: 2;
}

.game-topbar-button {
    background: white;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-family: inherit;
    white-space: nowrap;
}

.game-topbar-button:hover {
    background: #1e3a8a;
    color: white;
}

.game-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #1e3a8a;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: 0.3px;
}

#fw-counter {
    font-weight: 800;
    font-size: 14px;
}

.game-playfield {
    flex: 1;
    position: relative;
    margin: 0 16px 45px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #1e3a8a;
    background: #2a2a2e;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

#fw-canvas,
#fb-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    touch-action: manipulation;
}

#fb-counter,
#fb-flowers {
    font-weight: 800;
    font-size: 14px;
}

#fb-flowers-label {
    margin-left: 4px;
}

.game-win-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 24px;
}

.game-win-content {
    background: white;
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.game-win-content h3 {
    font-size: 24px;
    color: #1e3a8a;
    font-weight: 800;
}

.game-win-content p {
    font-size: 15px;
    color: #1e3a8a;
    line-height: 1.5;
}

.coloring-playfield {
    background: #ffffff !important;
    box-shadow: none !important;
    border-color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.games-tile-thumb img[src*="kleurplaat"] {
    background: #ffffff;
    border-radius: 4px;
    padding: 4px;
    transform: rotate(-4deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.spelletjes-transition {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

.spelletjes-transition-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.28s ease-out;
}

.spelletjes-transition-layer.visible {
    opacity: 1;
}

.coloring-stage {
    position: relative;
    background: #ffffff;
    max-width: 100%;
    max-height: 100%;
}

#cp-canvas {
    display: block;
    cursor: crosshair;
    touch-action: none;
    background: #ffffff;
}

.coloring-lineart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.color-palette {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 0 16px 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #1e3a8a;
    border-radius: 30px;
}

.color-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(30, 58, 138, 0.2);
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.color-dot:hover {
    transform: scale(1.12);
    border-color: rgba(30, 58, 138, 0.6);
}

.color-dot.selected {
    border-color: #1e3a8a;
    transform: scale(1.18);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.color-dot-white {
    border-color: rgba(30, 58, 138, 0.5);
}

.palette-separator {
    width: 2px;
    height: 30px;
    background: rgba(30, 58, 138, 0.2);
    border-radius: 1px;
    margin: 0 4px;
}

.brush-size {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(30, 58, 138, 0.2);
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.brush-size span {
    display: block;
    background: #1e3a8a;
    border-radius: 50%;
}

.brush-size:hover {
    transform: scale(1.08);
    border-color: rgba(30, 58, 138, 0.6);
}

.brush-size.selected {
    border-color: #1e3a8a;
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

@media (max-width: 480px) {
    .color-palette {
        gap: 6px;
        padding: 8px 10px;
        margin: 0 10px 8px;
    }
    .color-dot {
        width: 28px;
        height: 28px;
        border-width: 2px;
    }
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr 1fr;
    }
    .games-tile {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .games-tile-thumb {
        width: 140px;
        height: 140px;
    }
    .games-tile-info {
        align-items: center;
    }
    .games-screen-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .game-topbar {
        padding: 76px 12px 12px;
        gap: 8px;
    }
    .game-topbar-button {
        padding: 7px 14px;
        font-size: 11px;
    }
    .game-status {
        padding: 7px 12px;
        font-size: 12px;
    }
    .game-playfield {
        margin: 0 10px 38px;
    }
}

/* Credit link - De Studio van Jeff (linksonder) */
#credit {
    position: fixed;
    bottom: 12px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #1D1D1B;
    pointer-events: auto;
    z-index: 9000;
    text-decoration: none;
    opacity: 0;
    animation: creditFadeIn 1s ease 6s forwards;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes creditFadeIn {
    to { opacity: 0.85; }
}

#credit:hover {
    opacity: 1;
    transform: translateY(-1px);
}

#credit img {
    height: 11px;
    width: auto;
}

@media (max-width: 480px) {
    #credit {
        bottom: 8px;
        left: 10px;
        font-size: 8px;
    }
    #credit img {
        height: 10px;
    }
}