/**
 * CLIPS & PAPER REWARDPLAY - GALGJE
 * 
 * Huisstijl kleuren:
 * - Primair groen: #1b5e3b
 * - Accent oranje: #e85d04
 * - Achtergrond: #f5f9f6
 * 
 * Font: Inter (Google Fonts)
 * Versie: 2.0
 */

/* ============================================================================
   CSS RESET & VARIABLES
   ============================================================================ */

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

:root {
    --primary: #1b5e3b;
    --primary-dark: #144530;
    --primary-light: #2d7a50;
    --accent: #e85d04;
    --accent-dark: #c44d00;
    --accent-light: #ff7320;
    --background: #f5f9f6;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --success: #4caf50;
    --danger: #e53935;
    --warning: #ffc107;
    --info: #2196f3;
    --shadow: 0 4px 20px rgba(27, 94, 59, 0.1);
    --shadow-hover: 0 8px 30px rgba(27, 94, 59, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* ============================================================================
   SITE HEADER
   ============================================================================ */

.site-header {
    background: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .logo img {
    height: 50px;
    width: auto;
}

.site-header .back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.site-header .back-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================================================
   SITE FOOTER
   ============================================================================ */

.site-footer {
    background: var(--white);
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(27, 94, 59, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-logos img {
    height: 40px;
    width: auto;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(27, 94, 59, 0.1);
}

.footer-powered span {
    color: var(--text-light);
    font-size: 14px;
}

.footer-powered img {
    height: 30px;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 15px;
}

/* ============================================================================
   MAIN CONTAINER
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ============================================================================
   GAME HEADER
   ============================================================================ */

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-header h1 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.game-header .subtitle {
    color: var(--text-light);
    font-size: 18px;
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card, .welcome-box, .setup-box, .game-panel, .lobby-box {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 30px;
    transition: box-shadow 0.3s ease;
}

.card:hover, .welcome-box:hover {
    box-shadow: var(--shadow-hover);
}

.welcome-box, .setup-box, .lobby-box {
    max-width: 500px;
    margin: 0 auto;
}

.setup-box h2, .lobby-box h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.setup-box .subtitle, .lobby-box .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27, 94, 59, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 94, 59, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #388e3c 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #e6a800 100%);
    color: var(--text-dark);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #c62828 100%);
    color: var(--white);
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
    width: 100%;
    margin-bottom: 15px;
}

.btn-large:last-child {
    margin-bottom: 0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-back {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

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

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================================================
   FORMS & INPUTS
   ============================================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(27, 94, 59, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 94, 59, 0.1);
}

input::placeholder {
    color: var(--text-muted);
}

/* ============================================================================
   MODE BUTTONS
   ============================================================================ */

.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

/* ============================================================================
   RULES BOX
   ============================================================================ */

.rules-box {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    border-left: 4px solid var(--primary);
}

.rules-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.rules-box ul {
    list-style: none;
}

.rules-box li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.rules-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ============================================================================
   SCREENS
   ============================================================================ */

.screen {
    animation: fadeIn 0.3s ease;
}

.screen.hidden {
    display: none !important;
}

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

/* ============================================================================
   LOBBY / WACHTKAMER
   ============================================================================ */

.pincode-display {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.pincode-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.pincode {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
}

.pincode-timer {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 10px;
}

/* Share Buttons */
.share-buttons {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--background);
    border-radius: 12px;
}

.share-label {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.share-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-share svg {
    flex-shrink: 0;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

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

.btn-email:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 94, 59, 0.4);
}

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

.btn-copy:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.4);
}

.btn-copy.copied {
    background: var(--success);
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
}

.loading p {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 16px;
}

.spinner {
    border: 4px solid rgba(27, 94, 59, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================================
   GAME CONTAINER
   ============================================================================ */

.game-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.game-area {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ============================================================================
   GALLOWS (GALG)
   ============================================================================ */

.gallows-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.gallows {
    width: 200px;
    height: 250px;
}

.gallows line,
.gallows circle,
.gallows path {
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
}

.gallows .base {
    stroke: var(--primary-dark);
    stroke-width: 6;
}

/* ============================================================================
   WORD DISPLAY
   ============================================================================ */

.word-display {
    text-align: center;
    margin-bottom: 30px;
}

.word-letters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 25px;
}

.letter-box {
    width: 40px;
    height: 50px;
    background: var(--background);
    border: 2px solid var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.letter-box.revealed {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    animation: revealLetter 0.3s ease;
}

@keyframes revealLetter {
    0% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Lange woorden */
.word-letters.long-word .letter-box {
    width: 32px;
    height: 42px;
    font-size: 22px;
}

.word-letters.very-long-word .letter-box {
    width: 26px;
    height: 36px;
    font-size: 18px;
}

/* Geraden letters */
.guessed-letters {
    margin-top: 20px;
}

.guessed-letters h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.letter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.guessed-letter {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.guessed-letter.correct {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
    border: 2px solid var(--success);
}

.guessed-letter.wrong {
    background: rgba(229, 57, 53, 0.15);
    color: var(--danger);
    border: 2px solid var(--danger);
}

/* ============================================================================
   KEYBOARD
   ============================================================================ */

.keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.key {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-family: inherit;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(232, 93, 4, 0.3);
}

.key:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 93, 4, 0.4);
}

.key:active:not(:disabled) {
    transform: translateY(0);
}

.key:disabled {
    cursor: not-allowed;
    transform: none;
}

.key.correct {
    background: linear-gradient(135deg, var(--success) 0%, #388e3c 100%);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.key.wrong {
    background: linear-gradient(135deg, var(--danger) 0%, #c62828 100%);
    opacity: 0.6;
    box-shadow: none;
}

/* ============================================================================
   INFO BOXES
   ============================================================================ */

.info-box {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
}

.info-box h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.info-box .value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.info-box p {
    color: var(--text-light);
    font-size: 14px;
}

/* Scorebord */
#mp-scoreboard .score-entry {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(27, 94, 59, 0.1);
}

#mp-scoreboard .score-entry:last-child {
    border-bottom: none;
}

#mp-scoreboard .score-entry .name {
    font-weight: 500;
}

#mp-scoreboard .score-entry .score {
    font-weight: 700;
    color: var(--accent);
}

/* Players info */
#players-info .player-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

#players-info .player-entry .role-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
}

/* ============================================================================
   CHAT
   ============================================================================ */

.chat-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.chat-header {
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.chat-header small {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    font-weight: normal;
    margin-top: 2px;
}

.chat-messages {
    height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: var(--background);
}

.chat-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chat-message .sender {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 3px;
}

.chat-message .text {
    color: var(--text-dark);
    font-size: 14px;
    word-break: break-word;
}

.chat-message .time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.chat-input {
    display: flex;
    border-top: 1px solid rgba(27, 94, 59, 0.1);
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 0;
    font-size: 14px;
}

.chat-input input:focus {
    box-shadow: none;
}

.chat-input button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.chat-input button:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

/* ============================================================================
   PLAYER ROLE BANNER
   ============================================================================ */

.player-role-banner {
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.player-role-banner.guest-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

/* ============================================================================
   MODALS
   ============================================================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 28px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.word-reveal {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--background);
    border-radius: 12px;
}

/* ============================================================================
   ALERTS
   ============================================================================ */

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.alert-error {
    background: rgba(229, 57, 53, 0.15);
    color: #c62828;
    border: 1px solid rgba(229, 57, 53, 0.3);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #f57f17;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.alert-info {
    background: rgba(33, 150, 243, 0.15);
    color: #1565c0;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

/* ============================================================================
   COUNTDOWN
   ============================================================================ */

.countdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 94, 59, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.countdown-number {
    font-size: 120px;
    font-weight: 700;
    color: var(--white);
    animation: pulse 1s ease-in-out infinite;
}

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

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 900px) {
    .game-container {
        grid-template-columns: 1fr;
    }
    
    .game-info {
        order: 2;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 12px 15px;
    }
    
    .site-header .logo img {
        height: 35px;
    }
    
    .site-header .back-link {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .game-header h1 {
        font-size: 32px;
    }
    
    .card, .welcome-box, .setup-box, .game-panel, .lobby-box, .game-area {
        padding: 20px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .modal-content {
        padding: 25px;
    }
    
    .footer-logos {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Pincode responsive */
    .pincode {
        font-size: 36px;
        letter-spacing: 5px;
    }
    
    .share-row {
        flex-direction: column;
    }
    
    .btn-share {
        width: 100%;
        justify-content: center;
    }
    
    /* Keyboard responsive */
    .key {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .keyboard {
        gap: 5px;
    }
    
    /* Letter boxes responsive */
    .letter-box {
        width: 32px;
        height: 42px;
        font-size: 22px;
    }
    
    .word-letters {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    /* Zeer kleine telefoons */
    .word-letters {
        flex-wrap: nowrap;
        gap: 3px;
    }
    
    .letter-box {
        width: 28px;
        height: 38px;
        font-size: 20px;
    }
    
    .word-letters.long-word .letter-box {
        width: 22px;
        height: 32px;
        font-size: 16px;
    }
    
    .word-letters.very-long-word .letter-box {
        width: 18px;
        height: 28px;
        font-size: 14px;
    }
    
    .key {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    .game-header h1 {
        font-size: 28px;
    }
    
    .info-box .value {
        font-size: 28px;
    }
}

@media (max-width: 375px) {
    /* Extra kleine telefoons (iPhone SE etc) */
    .letter-box {
        width: 24px;
        height: 34px;
        font-size: 18px;
    }
    
    .word-letters.long-word .letter-box {
        width: 20px;
        height: 28px;
        font-size: 14px;
    }
    
    .word-letters.very-long-word .letter-box {
        width: 16px;
        height: 24px;
        font-size: 12px;
    }
    
    .key {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
