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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    position: relative;
    min-height: 100vh;
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 107, 53, 0.06) 0%, transparent 50%);
    padding: 20px;
    z-index: 1;
}

/* Game page: fill viewport, no body scroll */
.container:has(#gameContainer) {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 8px;
}
.container:has(#gameContainer[style*="flex"]) .game-container {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Animated particles background */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 107, 53, 0.3), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(255, 107, 53, 0.2), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 107, 53, 0.4), transparent),
        radial-gradient(1px 1px at 80px 20px, rgba(255, 107, 53, 0.3), transparent),
        radial-gradient(2px 2px at 30px 80px, rgba(255, 107, 53, 0.25), transparent);
    background-repeat: repeat;
    background-size: 100px 100px;
    animation: particleMove 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

@keyframes particleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-select {
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid #ff6b35;
    border-radius: 12px;
    padding: 10px 20px;
    color: #ff6b35;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff6b35' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.language-select:hover {
    background: rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    border-color: #ff8c5a;
}

.language-select:focus {
    border-color: #ff8c5a;
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.6);
}

.language-select option {
    background: #1a1a1a;
    color: #ff6b35;
    padding: 10px;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    position: relative;
    z-index: 1;
    gap: 20px;
}

.header-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    display: flex;
    align-items: center;
    gap: 3px;
}

.header-title .goonbah-char {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

.divider {
    width: 3px;
    height: 40px;
    background-color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.8), 0 0 40px rgba(255, 107, 53, 0.4);
}

.translation-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    padding: 40px 20px;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.translation-box {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
}

.box-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    display: flex;
    align-items: center;
    gap: 3px;
}

.box-title .goonbah-char {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

.copy-btn {
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid #ff6b35;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.copy-btn:hover {
    background: rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

.copy-btn.copied {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    color: #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.goonbah-display {
    position: relative;
    cursor: text;
}

.goonbah-hidden-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: transparent;
    border: none;
    outline: none;
    color: transparent;
    caret-color: #ff6b35;
    font-size: 16px;
    padding: 24px;
    cursor: text;
    z-index: 10;
    pointer-events: auto;
}

.goonbah-hidden-input::placeholder {
    color: transparent;
}

.text-box {
    background-color: rgba(255, 107, 53, 0.08);
    border-radius: 16px;
    border: 2px solid #ff6b35;
    padding: 24px;
    min-height: 400px;
    height: 400px;
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.4), inset 0 0 20px rgba(255, 107, 53, 0.1);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 3px;
    overflow-y: auto;
    position: relative;
}

.goonbah-display {
    min-height: 400px;
    height: 400px;
}

.input-box {
    color: #ffd4a3;
    font-size: 18px;
    font-family: inherit;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    line-height: 28px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.input-box::placeholder {
    color: #666;
}

#goonbahBox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.goonbah-char {
    width: 32px;
    height: 32px;
    margin: 3px;
    filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.6));
    object-fit: contain;
}

.goonbah-char-text {
    color: #ffd4a3;
    font-size: 26px;
    margin: 3px;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
    font-weight: 500;
}

.space-char {
    width: 12px;
    height: 32px;
    display: inline-block;
}

.newline-char {
    width: 100%;
    height: 20px;
    display: block;
}

.arrow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.arrow {
    font-size: 40px;
    color: #ff6b35;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.8), 0 0 30px rgba(255, 107, 53, 0.4);
}

/* Scrollbar styling */
.text-box::-webkit-scrollbar,
.input-box::-webkit-scrollbar,
#goonbahBox::-webkit-scrollbar {
    width: 8px;
}

.text-box::-webkit-scrollbar-track,
.input-box::-webkit-scrollbar-track,
#goonbahBox::-webkit-scrollbar-track {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 4px;
}

.text-box::-webkit-scrollbar-thumb,
.input-box::-webkit-scrollbar-thumb,
#goonbahBox::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 4px;
}

.text-box::-webkit-scrollbar-thumb:hover,
.input-box::-webkit-scrollbar-thumb:hover,
#goonbahBox::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.7);
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.game-btn {
    background: rgba(255, 107, 53, 0.2);
    border: 3px solid #ff6b35;
    border-radius: 16px;
    padding: 16px 32px;
    cursor: pointer;
    color: #ff6b35;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
    text-decoration: none;
    display: inline-block;
}

.game-btn:hover {
    background: rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
    transform: translateY(-3px);
    border-color: #ff8c5a;
}

.game-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.game-btn-text {
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    display: flex;
    align-items: center;
    gap: 3px;
}

.game-btn-text .goonbah-char {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

/* Game styles */
.game-header {
    margin-bottom: 30px;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.score-label {
    color: #ffd4a3;
    font-size: 16px;
    font-weight: 500;
}

.score-value {
    color: #ff6b35;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

.game-main {
    margin-bottom: 40px;
}

.question-container {
    margin-bottom: 40px;
}

.question-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

.goonbah-symbol-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: rgba(255, 107, 53, 0.1);
    border: 3px solid #ff6b35;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
    margin-bottom: 30px;
}

.question-symbol {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.8));
    object-fit: contain;
}

.answers-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.answer-btn {
    background: rgba(255, 107, 53, 0.2);
    border: 3px solid #ff6b35;
    border-radius: 16px;
    padding: 20px 30px;
    cursor: pointer;
    color: #ff6b35;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
}

.answer-btn:hover:not(:disabled) {
    background: rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.5);
    transform: translateY(-3px);
    border-color: #ff8c5a;
}

.answer-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.answer-btn.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    color: #4caf50;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.5);
}

.answer-btn.wrong {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    color: #f44336;
    box-shadow: 0 0 25px rgba(244, 67, 54, 0.5);
}

.game-feedback {
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.feedback-message {
    font-size: 24px;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 12px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.correct-message {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.wrong-message {
    color: #f44336;
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.4);
}

.alphabet-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.game-controls {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    flex-shrink: 0;
    margin-top: 0;
    padding-left: 0;
}

.game-controls .back-btn {
    display: none; /* Will be positioned separately */
}

/* Back button in top left corner */
.hangman-game .back-btn-top-left {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(255, 107, 53, 0.1));
    border: 3px solid #ff6b35;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    color: #ff6b35;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.5), inset 0 0 15px rgba(255, 107, 53, 0.1);
    text-decoration: none;
    display: inline-block;
    z-index: 1000;
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
}

.hangman-game .back-btn-top-left:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.35), rgba(255, 107, 53, 0.2));
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    transform: translateY(-2px);
    border-color: #ff8c5a;
}

/* Responsive design */
@media (max-width: 768px) {
    .translation-container {
        flex-direction: column;
        padding: 20px 10px;
    }
    
    .translation-box {
        min-width: 100%;
        max-width: 100%;
    }
    
    .text-box {
        min-height: 300px;
        height: 300px;
    }
    
    .arrow-container {
        transform: rotate(90deg);
        padding: 10px 0;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .language-select {
        padding: 8px 16px;
        font-size: 14px;
        padding-right: 40px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header-title {
        font-size: 22px;
    }
    
    .game-btn {
        padding: 14px 28px;
        font-size: 18px;
    }
    
    .footer {
        padding: 30px 20px;
    }
    
    .container {
        padding: 12px;
    }
}

/* Index + Game: very small screens */
@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    .container:has(#gameContainer) {
        padding: 4px;
    }
    .header {
        padding: 12px 8px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .header-title {
        font-size: 18px;
    }
    .text-box {
        min-height: 220px;
        height: 220px;
    }
    .translation-container {
        padding: 12px 6px;
    }
    .footer {
        padding: 16px 12px;
    }
    .game-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    .hangman-game .game-title {
        font-size: 12px;
    }
    .word-letters {
        font-size: 18px;
        letter-spacing: 2px;
    }
    .alphabet-container .consonants-section .letters-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }
    .alphabet-container .vowels-section .letters-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    .letter-btn {
        padding: 8px 2px;
        font-size: 14px;
        min-width: 32px;
    }
}

/* Hangman: Thrage Death Row Game Styles - Clean Modern Design */
.hangman-game {
    max-width: 1600px;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
}

.hangman-game .game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.hangman-game .game-title {
    font-size: 26px;
    color: #00ff41;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow: visible;
    line-height: 1.3;
}

.hangman-game .game-title .goonbah-char {
    width: 50px;
    height: 50px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

.coin-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), rgba(0, 255, 65, 0.05));
    border: 2px solid #00ff41;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    white-space: nowrap;
    overflow: visible;
    min-width: fit-content;
}

.coin-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.8));
}

.coin-label {
    color: #00ff41;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

.coin-value {
    color: #00ff41;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.8);
}

.prisoners-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    row-gap: 14px;
    column-gap: 14px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    overflow: visible;
    flex-shrink: 0;
}

.prisoner-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(138, 43, 226, 0.1));
    border: 2px solid #8a2be2;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin: 0;
    min-height: 52px;
    box-sizing: border-box;
}

.prisoner-card.alive {
    border-color: #00ff41;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 255, 65, 0.08));
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.35);
}

.prisoner-card.executed {
    border-color: #ff0000;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.35), rgba(255, 0, 0, 0.12));
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), inset 0 0 12px rgba(255, 0, 0, 0.08);
    opacity: 0.85;
    transform: scale(0.98);
}

.prisoner-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prisoner-card.alive .prisoner-name {
    color: #00ff41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.prisoner-card.executed .prisoner-name {
    color: #ff0000;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    text-decoration: line-through;
}

.prisoner-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prisoner-card.alive .prisoner-status {
    color: #00ff41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.prisoner-card.executed .prisoner-status {
    color: #ff0000;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
}

.word-display {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 65, 0.05));
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    flex-shrink: 0;
    overflow: visible;
}

.word-letters {
    font-size: 42px;
    font-weight: 700;
    color: #00ff41;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    line-height: 1.2;
    word-break: break-all;
}

.alphabet-container {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 120px;
    max-height: none;
}

/* Custom scrollbar for alphabet container */
.alphabet-container::-webkit-scrollbar {
    width: 8px;
}

.alphabet-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.alphabet-container::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.5);
    border-radius: 4px;
}

.alphabet-container::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.7);
}

/* Custom scrollbar for prisoners list */
.prisoners-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.prisoners-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.prisoners-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.5);
    border-radius: 3px;
}

.prisoners-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 65, 0.7);
}

.section-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    letter-spacing: 1px;
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
    width: 100%;
    padding: 0;
}

.letter-btn {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(138, 43, 226, 0.1));
    border: 2px solid #8a2be2;
    border-radius: 8px;
    padding: 12px 4px;
    cursor: pointer;
    color: #8a2be2;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.letter-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.35), rgba(138, 43, 226, 0.2));
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
    border-color: #9d4edd;
}

.letter-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1.02);
}

.letter-btn:disabled,
.letter-btn.guessed {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.3), rgba(100, 100, 100, 0.15));
    border-color: #666;
    color: #666;
    box-shadow: 0 0 10px rgba(100, 100, 100, 0.3);
}

.letter-btn.guessed.wrong {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.35), rgba(255, 0, 0, 0.15));
    border-color: #ff4444;
    color: #ff6666;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
}

/* Vowel buttons styling */
.letter-btn.vowel {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
    border: 2px solid #ffd700;
    color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.letter-btn.vowel:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.35), rgba(255, 215, 0, 0.2));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    border-color: #ffed4e;
    transform: translateY(-2px);
}

.letter-btn.vowel.no-coins {
    opacity: 0.6;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.25), rgba(255, 100, 0, 0.1));
    border-color: #ff6400;
    color: #ff6400;
    box-shadow: 0 0 8px rgba(255, 100, 0, 0.3);
    filter: grayscale(30%);
}

.letter-btn.vowel.no-coins:hover {
    opacity: 0.8;
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.35), rgba(255, 100, 0, 0.2));
    box-shadow: 0 0 12px rgba(255, 100, 0, 0.5);
    border-color: #ff8533;
    transform: translateY(-2px);
}

.vowels-section {
    margin-top: 20px;
}

.bribe-btn {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(138, 43, 226, 0.1));
    border: 2px solid #8a2be2;
    border-radius: 10px;
    padding: 14px 24px;
    cursor: pointer;
    color: #8a2be2;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    height: fit-content;
}

.bribe-btn:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.35), rgba(138, 43, 226, 0.2));
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
    border-color: #9d4edd;
}

.bribe-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.hangman-game .game-feedback {
    min-height: 50px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    overflow: visible;
    word-wrap: break-word;
}

.hangman-game .game-feedback.success {
    color: #00ff41;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), rgba(0, 255, 65, 0.05));
    border: 3px solid #00ff41;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4), inset 0 0 15px rgba(0, 255, 65, 0.1);
    backdrop-filter: blur(10px);
}

.hangman-game .game-feedback.error {
    color: #ff0000;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(255, 0, 0, 0.05));
    border: 3px solid #ff0000;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4), inset 0 0 15px rgba(255, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hangman-game .game-feedback.info {
    color: #8a2be2;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(138, 43, 226, 0.05));
    border: 3px solid #8a2be2;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4), inset 0 0 15px rgba(138, 43, 226, 0.1);
    backdrop-filter: blur(10px);
}

/* Bribe Modal */
.bribe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Buy Tries modal */
.buy-tries-modal .buy-tries-content {
    max-width: 1100px;
    width: 92%;
    padding: 32px 28px;
}
.buy-tries-cost { margin-bottom: 12px; }
.buy-tries-live-price {
    color: #00ff41;
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}
.packages-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.package-card {
    cursor: pointer;
    border: none;
    border-radius: 16px;
    padding: 12px;
    background: transparent;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.25);
    flex: 1 1 0;
    min-width: 180px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
.package-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4);
    transform: translateY(-4px);
}
/* 325×478 aspect, no background */
.package-card .package-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 325 / 478;
    object-fit: contain;
    object-position: center bottom;
    background: none;
    border-radius: 8px;
    vertical-align: bottom;
}
.package-img-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 325 / 478;
    display: block;
}
.package-img-stack .package-img {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    background: none;
    aspect-ratio: unset;
}
.package-img-stack .package-img-back { opacity: 0.7; transform: rotate(-5deg); }
.package-img-stack .package-img-front { z-index: 1; }
.buy-modal-status {
    text-align: center;
    min-height: 24px;
    margin-bottom: 16px;
    color: #00ff41;
    font-size: 14px;
}

@media (max-width: 900px) {
    .buy-tries-modal .buy-tries-content {
        max-width: 100%;
        width: 96%;
        padding: 24px 16px;
    }
    .packages-grid {
        gap: 20px;
        justify-content: center;
    }
    .package-card {
        min-width: 140px;
        max-width: 220px;
    }
}

@media (max-width: 500px) {
    .buy-tries-modal .buy-tries-content {
        padding: 20px 12px;
    }
    .packages-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .package-card {
        max-width: 280px;
        width: 100%;
    }
}

.modal-content {
    background: #1a1a1a;
    border: none;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.5);
}

.modal-title {
    color: #00ff41;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
}

.modal-text {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.vowels-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.vowel-btn {
    background: rgba(0, 255, 65, 0.2);
    border: 2px solid #00ff41;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    color: #00ff41;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.vowel-btn:hover {
    background: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
    border-color: #33ff66;
}

.modal-close {
    width: 100%;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    color: #ff0000;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* Game Over Screens */
.game-over-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.game-over-content {
    background: #1a1a1a;
    border: 4px solid;
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px;
}

.game-over-screen.win .game-over-content {
    border-color: #00ff41;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.6);
}

.game-over-screen.lose .game-over-content {
    border-color: #ff0000;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.6);
}

.game-over-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.game-over-screen.win .game-over-title {
    color: #00ff41;
    text-shadow: 0 0 30px rgba(0, 255, 65, 0.8);
}

.game-over-screen.lose .game-over-title {
    color: #ff0000;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

.game-over-text {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.game-over-reward {
    color: #ffd700;
    font-size: 18px;
    margin: 12px 0;
}
.game-over-text strong {
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.game-over-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.restart-btn {
    background: rgba(0, 255, 65, 0.2);
    border: 3px solid #00ff41;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    color: #00ff41;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.restart-btn:hover {
    background: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    transform: translateY(-3px);
}

/* Responsive for Hangman game */
@media (max-width: 1440px) {
    .hangman-game {
        max-width: 100%;
        padding: 18px;
        gap: 15px;
    }
    
    .hangman-game .game-title {
        font-size: 24px;
    }
    
    .word-letters {
        font-size: 36px;
        letter-spacing: 6px;
    }
    
    .prisoners-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        row-gap: 12px;
        column-gap: 12px;
        padding: 12px;
    }
    
    .prisoner-name {
        font-size: 13px;
    }
    
}

@media (max-width: 1024px) {
    .hangman-game {
        padding: 15px;
        gap: 15px;
    }
    
    .hangman-game .game-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .hangman-game .game-title {
        font-size: 24px;
        text-align: center;
    }
    
    .coin-counter {
        max-width: 100%;
    }
    
    .prisoners-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        row-gap: 10px;
        column-gap: 10px;
        padding: 12px;
    }
    
    .prisoner-name {
        font-size: 12px;
    }
    
    .prisoner-status {
        font-size: 10px;
    }
    
    .word-display {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .word-letters {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .alphabet-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-controls {
        width: 100%;
        justify-content: center;
    }
    
    .bribe-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .alphabet-container {
        min-height: 140px;
    }
    
    .letters-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 6px;
    }
    
    .letter-btn {
        font-size: 16px;
        padding: 10px 4px;
    }
    
    .hangman-game .game-feedback {
        font-size: 14px;
        padding: 10px 15px;
        min-height: 45px;
    }
    
    .hangman-game .back-btn-top-left {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .container:has(#gameContainer) {
        padding: 8px;
    }
    .hangman-game {
        padding: 8px 12px;
        gap: 10px;
        align-items: center;
    }
    .hangman-game .game-header {
        gap: 10px;
        justify-content: center;
        width: 100%;
    }
    .hangman-game .game-title {
        font-size: 14px;
        margin-bottom: 4px;
        text-align: center;
    }
    .coin-counter {
        padding: 8px 14px;
        max-width: none;
        margin-bottom: 0;
    }
    .coin-icon {
        font-size: 20px;
    }
    .coin-label {
        font-size: 13px;
    }
    .coin-value {
        font-size: 20px;
    }
    .prisoners-list {
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
        row-gap: 10px;
        column-gap: 10px;
        padding: 12px;
        width: 100%;
    }
    .prisoner-card {
        padding: 10px 6px;
    }
    .prisoner-name {
        font-size: 10px;
        margin-bottom: 2px;
    }
    .prisoner-status {
        font-size: 8px;
    }
    .word-display {
        padding: 12px 8px;
        min-height: 52px;
        width: 100%;
        text-align: center;
    }
    .word-letters {
        font-size: 20px;
        letter-spacing: 3px;
    }
    .alphabet-wrapper {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-items: center;
    }
    .game-controls {
        width: 100%;
        justify-content: center;
        flex-shrink: 0;
    }
    .bribe-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 18px;
        font-size: 14px;
    }
    .alphabet-container {
        width: 100%;
        min-height: 80px;
        margin-top: 8px;
        padding: 12px 10px;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .alphabet-container .consonants-section {
        width: 100%;
        min-width: 0;
        margin: 0 auto;
        text-align: center;
    }
    .alphabet-container .vowels-section {
        width: 100%;
        min-width: 0;
        margin: 0 auto;
        margin-top: 14px;
        text-align: center;
    }
    .alphabet-container .consonants-section .letters-grid {
        width: 100%;
        grid-template-columns: repeat(7, 1fr);
        gap: 6px;
        justify-items: center;
    }
    .alphabet-container .vowels-section .letters-grid {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        justify-items: center;
    }
    .section-title {
        font-size: 14px;
        margin-bottom: 10px;
        text-align: center;
    }
    .letter-btn {
        padding: 10px 4px;
        font-size: 15px;
        min-width: 36px;
    }
    .hangman-game .game-feedback {
        font-size: 12px;
        padding: 10px 12px;
        min-height: 38px;
        text-align: center;
    }
    .hangman-game .back-btn-top-left {
        top: 8px;
        left: 8px;
        padding: 8px 14px;
        font-size: 12px;
    }
    .vowels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Arcade Pass modal (translator page - entry to play) */
.arcade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.arcade-modal[aria-hidden="true"] {
    display: none;
}
.arcade-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}
.arcade-modal-box {
    position: relative;
    background: #1a1a1a;
    border: none;
    border-radius: 16px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
}
.arcade-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.arcade-modal-title {
    color: #ff6b35;
    font-size: 22px;
    margin-bottom: 12px;
}
.arcade-modal-cost {
    color: #e0e0e0;
    font-size: 15px;
    margin-bottom: 8px;
}
.arcade-live-price {
    color: #aaa;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.arcade-status {
    margin-bottom: 16px;
    min-height: 1.2em;
    font-size: 0.9rem;
    color: #6f6;
}
.arcade-status.error {
    color: #f66;
}
.arcade-status.success {
    color: #6f6;
}
.arcade-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.arcade-btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #ff6b35;
    transition: all 0.2s;
}
.arcade-btn-primary {
    background: #ff6b35;
    color: #fff;
}
.arcade-btn-primary:hover:not(:disabled) {
    background: #ff8533;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}
.arcade-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.arcade-btn-secondary {
    background: transparent;
    color: #ff6b35;
}
.arcade-btn-secondary:hover {
    background: rgba(255, 107, 53, 0.15);
}

