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

/* Navigation Bar */
.navbar {
    width: 100%;
    position: relative;
    z-index: 9000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: visible;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    z-index: 1001;
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

.navbar-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-links a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.navbar-links a.active {
    background: var(--primary);
    color: white;
}

/* Hamburger menu button */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 9999px) {
    .navbar-content {
        padding: 1rem 1.5rem;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 0.75rem 0.75rem;
        z-index: 10000;
    }

    .navbar-links.active {
        max-height: 80vh;
        padding: 1rem 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-links a {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0;
        text-align: left;
    }

    .navbar-links a:hover {
        background: rgba(37, 99, 235, 0.05);
    }

    .navbar-links a.active {
        background: rgba(37, 99, 235, 0.1);
        color: var(--primary);
        font-weight: 600;
    }
    
    .nav-lang-select {
        margin: 0.5rem 1.5rem !important;
        width: calc(100% - 3rem) !important;
    }
}

/* Language Selector Styling */
.nav-lang-select {
    margin-left: auto;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--primary);
    background: white;
    cursor: pointer;
    font-family: inherit;
}


/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInFromBottom 0.4s ease-out;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cookie-consent-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-buttons .btn {
    white-space: nowrap;
    min-width: 140px;
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1.25rem 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-text p {
        font-size: 0.9rem;
    }

    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-consent-buttons .btn {
        width: 100%;
    }
}

/* SEO Hidden Content for Screen Readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    
    /* Nieuwe Design Variabelen */
    --font-kids: 'Nunito', sans-serif;
    --color-bg: #F0F9FF;
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-kids);
    background-color: var(--color-bg);
    background-image: radial-gradient(#cbd5e1 2px, transparent 2px);
    background-size: 30px 30px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.game-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 4px solid white;
    max-width: 750px;
    width: 100%;
    overflow: visible;
}

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-svg {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Subtitel styling */
#headerSubtitle {
    font-family: var(--font-kids);
    font-size: 1.1rem;
    background: white;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    color: #4b5563;
    font-weight: 700;
    margin-top: 0.5rem;
}

.controls {
    padding: 0.75rem 1rem;
    background: var(--background);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.controls-left {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-kids);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: var(--text);
}

select {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    background: white;
}

.game-area {
    padding: 1rem;
}

/* Landscape layout - grid and keypad side by side for larger screens */
@media (orientation: landscape) and (min-width: 600px) {
    .game-area:has(.keypad-container.active) {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1rem;
        align-items: start;
    }

    .game-area:has(.keypad-container.active) .game-content {
        grid-column: 1;
    }

    .keypad-container.active {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        min-width: 280px;
    }

    .keypad {
        width: 100%;
        max-width: none;
    }

    .key {
        font-size: 1.75rem;
    }
}

/* Larger keypad on desktop */
@media (min-width: 1024px) {
    .keypad-container.active {
        min-width: 340px;
    }

    .key {
        font-size: 2.25rem;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .keypad-container.active {
        min-width: 380px;
    }

    .key {
        font-size: 2.5rem;
    }
}

/* For very small landscape screens (phones), keep original layout */
@media (orientation: landscape) and (max-width: 599px) {
    .keypad {
        max-width: 200px;
        margin: 0 auto;
    }
}

.hint-box {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.block {
    background: var(--background);
    border-radius: 20px;
    padding: 0.25rem;
    position: relative;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    overflow: hidden;
}

.block.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.block-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    font-size: 12rem;
    opacity: 0.4;
    color: var(--primary);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.block.active .block-number {
    color: rgba(37, 99, 235, 0.45);
}

.cells-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

.cell {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-kids);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    backdrop-filter: blur(1px);
    overflow: hidden;
    word-break: break-all;
}

.cell:hover:not(.completed) {
    border-color: var(--primary);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.5);
}

.cell.active {
    background: rgba(37, 99, 235, 0.8);
    color: white;
    border-color: var(--primary);
    animation: pulse 1s infinite;
}

.cell.completed {
    background: #dcfce7;
    color: #065f46;
    border-color: #86efac;
    cursor: default;
    font-weight: 900;
    font-size: 1.2rem;
}

.cell.inactive {
    opacity: 0.25;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.15);
}

.cell.error {
    animation: shake 0.5s;
    background: rgba(239, 68, 68, 0.5) !important;
}

.cell.correct-flash {
    animation: correctFlash 0.6s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

@keyframes correctFlash {
    0% { transform: scale(1); }
    25% { transform: scale(1.15) rotate(5deg); }
    50% { transform: scale(1.15) rotate(-5deg); }
    75% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.block {
    animation: slideInUp 0.5s ease-out backwards;
}

.block:nth-child(1) { animation-delay: 0.05s; }
.block:nth-child(2) { animation-delay: 0.1s; }
.block:nth-child(3) { animation-delay: 0.15s; }
.block:nth-child(4) { animation-delay: 0.2s; }
.block:nth-child(5) { animation-delay: 0.25s; }
.block:nth-child(6) { animation-delay: 0.3s; }
.block:nth-child(7) { animation-delay: 0.35s; }
.block:nth-child(8) { animation-delay: 0.4s; }
.block:nth-child(9) { animation-delay: 0.45s; }

.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #fbbf24;
    top: 0;
    opacity: 0;
    z-index: 1000;
    animation: confetti 3s ease-out forwards;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 280px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.keypad.hidden {
    display: none;
}

.keypad-toggle {
    text-align: center;
    margin-bottom: 0.5rem;
}

.keypad-toggle button {
    background: var(--text-light);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.keypad-toggle button:hover {
    background: var(--text);
    transform: translateY(-2px);
}

/* Touch devices (tablets/phones) - always show keypad, hide toggle */
@media (max-width: 1023px) and (pointer: coarse) {
    .keypad-toggle {
        display: none;
    }

    .keypad {
        display: grid !important;
    }

    .keypad.hidden {
        display: grid !important;
    }
}

/* Desktop/non-touch devices - keypad is toggleable and starts hidden */
@media (min-width: 600px) and (pointer: fine) {
    .keypad-container {
        display: none;
    }

    .keypad-container.active {
        display: flex;
    }

    .keypad {
        display: none;
    }

    .keypad.visible {
        display: grid;
    }

    .keypad-toggle {
        display: block;
    }
}

/* Small portrait screens - always show keypad, hide toggle */
@media (max-width: 599px) and (orientation: portrait) {
    .keypad-toggle {
        display: none;
    }

    .keypad {
        display: grid !important;
    }
}

.key {
    aspect-ratio: 1;
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 0 #e2e8f0;
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-kids);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.key:active {
    transform: translateY(4px);
    box-shadow: none;
}

.key.key-0 {
    grid-column: 2;
}

.key.key-delete {
    grid-column: 3;
    background: #fee2e2;
    color: #ef4444;
    box-shadow: 0 4px 0 #fecaca;
    font-size: 1rem;
}

.key.key-delete:hover {
    background: #fee2e2;
}

.start-screen,
.end-screen {
    padding: 3rem 2rem;
    text-align: center;
}

.help-screen {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.help-screen h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.help-screen h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--primary);
}

.help-content {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.help-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.help-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.help-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.help-example {
    background: var(--background);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary);
}

.help-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.start-screen h2,
.end-screen h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.start-screen p,
.end-screen p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mode-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.mode-card {
    background: white;
    border-radius: 24px;
    border: 3px solid transparent;
    box-shadow: var(--shadow-card);
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mode-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.mode-card h3 {
    font-family: var(--font-kids);
    font-weight: 900;
    font-size: 2.2rem;
    margin: 1rem 0;
}

/* Specifieke stijlen voor Plus+ */
.mode-card:nth-child(1) {
    border-color: #10b981;
    background: linear-gradient(to bottom, #ffffff 0%, #f0fdf4 100%);
}
.mode-card:nth-child(1) h3 {
    color: #059669;
}

/* Specifieke stijlen voor Pro */
.mode-card:nth-child(2) {
    border-color: #8b5cf6;
    background: linear-gradient(to bottom, #ffffff 0%, #f5f3ff 100%);
}
.mode-card:nth-child(2) h3 {
    color: #7c3aed;
}

.mode-card .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.badge-easy {
    background-color: #d1fae5;
    color: #047857;
}

.badge-hard {
    background-color: #ede9fe;
    color: #6d28d9;
}

.final-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.final-stat {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
}

.final-stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.final-stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mode-details {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(0,0,0,0.05);
    text-align: left;
}

.mode-details span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    body {
        padding: 0.25rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header {
        padding: 0.75rem 1rem;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .controls-left,
    .stats {
        width: 100%;
        justify-content: center;
    }

    .stats {
        gap: 1rem;
    }

    .game-area {
        padding: 0.5rem;
    }

    .hint-box {
        font-size: 0.85rem;
        padding: 0.5rem;
        min-height: 2rem;
        margin-bottom: 0.5rem;
    }

    .grid-container {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .block {
        padding: 0.3rem;
        border-width: 2px;
    }

    .block-number {
        font-size: 10rem;
    }

    .cell {
        font-size: 0.85rem;
        border-width: 1px;
        min-height: 28px;
    }

    .cell.completed {
        font-size: 1rem;
    }

    .keypad {
        max-width: 220px;
        gap: 0.4rem;
    }

    .key {
        font-size: 1.1rem;
    }

    .start-screen,
    .end-screen,
    .help-screen {
        padding: 1rem 0.75rem;
    }

    .mode-selection {
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .mode-card {
        padding: 1rem 0.75rem;
    }

    .final-stats {
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .final-stat {
        padding: 0.75rem;
    }

    .final-stat-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.25rem;
    }

    .game-container {
        border-radius: 1rem;
    }

    .header h1 {
        font-size: 1.35rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .header {
        padding: 0.5rem 0.75rem;
    }

    .controls {
        padding: 0.5rem;
    }

    .grid-container {
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }

    .block {
        padding: 0.25rem;
    }

    .block-number {
        font-size: 9rem;
    }

    .cell {
        font-size: 0.8rem;
        min-height: 26px;
    }

    .cell.completed {
        font-size: 0.95rem;
    }

    .hint-box {
        font-size: 0.8rem;
        padding: 0.4rem;
        min-height: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .keypad {
        max-width: 200px;
        gap: 0.35rem;
    }

    .key {
        font-size: 1rem;
    }

    .mode-card h3 {
        font-size: 1.15rem;
    }

    .final-stat-value {
        font-size: 1.5rem;
    }

    .final-stat-label {
        font-size: 0.75rem;
    }

    .share-section h3 {
        font-size: 1.1rem;
    }

    .share-options button {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Social Share Section Styling */
.share-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.share-section h3 {
    text-align: center;
    color: var(--text);
}

.share-options {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.share-options button {
    min-width: 120px;
    transition: all 0.2s ease;
}

.share-options button:hover {
    transform: translateY(-2px);
}

#btnShare {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#btnShare:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
}

/* Animations for share interactions */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.sharing {
    animation: pulse 1s ease-in-out infinite;
}

/* Pause blur effect */
.game-area {
    position: relative;
    transition: filter 0.3s ease;
}

.game-area.paused-blur {
    filter: blur(20px);
    pointer-events: none;
    user-select: none;
}

.game-area.paused-blur::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Streak Styling */
.streak-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.streak-badge {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 10px 15px -3px rgba(255, 107, 107, 0.4);
    border: 4px solid white;
    transform: rotate(-2deg);
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Card Icons */
.card-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Action Buttons (zoals kaarten) */
.action-btn {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 1rem 2rem;
    font-family: var(--font-kids);
    font-weight: 800;
    font-size: 1.1rem;
    color: #475569;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: var(--color-primary);
}
