* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0b091f, #11101d, #01010c);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    flex: 1;
}

h1 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;
}

.subtitle {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #ffd700;
}

.search-container {
    position: relative;
    margin-bottom: 30px;
}

#characterSearch {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #ffd700;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

#characterSearch:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.search-results {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(20, 20, 40, 0.95);
    border: 2px solid #ffd700;
    border-radius: 10px;
    margin-top: 5px;
    z-index: 100;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background: rgba(255, 215, 0, 0.2);
}

.search-result-item strong {
    color: #ffd700;
    font-weight: bold;
}

.search-result-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #ffd700;
}

.guesses-count {
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 35px;
    color: #ffd700;
}

.hints-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hint-btn {
    padding: 15px 25px;
    font-size: 0.9em;
    border: none;
    border-radius: 8px;
    background: rgba(50, 50, 70, 0.8);
    color: rgba(255, 215, 0, 0.5);
    cursor: not-allowed;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hint-btn:not(:disabled) {
    background: linear-gradient(135deg, #f39c12, #ffd700);
    color: #000;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.4);
}

.hint-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.6);
}

.hint-btn:active:not(:disabled) {
    transform: translateY(0);
}

.hint-btn:disabled {
    opacity: 0.4;
}

.hint-btn::after {
    content: attr(data-attempts);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75em;
    color: #888;
    white-space: nowrap;
}

.hint-display {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
    min-height: 60px;
    font-size: 1.2em;
    text-align: center;
    display: none;
}

.hint-display.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guesses-grid {
    margin-top: 50px;
}

.guess-row {
    display: grid;
    grid-template-columns: 100px repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;

}

.header-row {
    margin-bottom: 25px;
    border-bottom: 3px solid #ffd700;
    padding-bottom: 15px;
}

.header-cell {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffd700;
    text-transform: uppercase;
}

.guess-image-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.guess-character-img {
    width: 95px;
    height: 95px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #ffd700;
    transition: transform 0.2s;
}

.guess-character-img:hover {
    transform: scale(1.05);
}

.guess-cell {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.2);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    opacity: 0;
    transform: scale(0.7);
}

.guess-cell.reveal {
    animation: revealCell 0.6s ease forwards;
}

@keyframes revealCell {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.guess-cell.correct {
    background: #2ecc71;
    border-color: #27ae60;
}

.guess-cell.close {
    background: #f39c12;
    border-color: #e67e22;
}

.guess-cell.wrong {
    background: #e74c3c;
    border-color: #c0392b;
}

.guess-row.winning {
    animation: winningRowPulse 1s ease infinite;
}

@keyframes winningRowPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(46, 204, 113, 0);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(46, 204, 113, 0.6);
    }
}

.win-message {
    display: none !important;
}

.hidden {
    display: none;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ffd700;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall 4s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    20% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.index-btn {
    display: block;
    margin: 0 auto 30px;
    padding: 12px 25px;
    font-size: 1em;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.index-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.character-index-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.character-index-modal.show {
    display: flex;
}

.character-index-content {
    background: linear-gradient(135deg, #0b091f, #01010c);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 30px;
    max-width: 95vw;
    width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
}

.character-index-content h2 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 2em;
}

.character-count {
    text-align: center;
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.easy-mode-toggle {
    display: block;
    margin: 0 auto 20px;
    padding: 12px 30px;
    font-size: 1em;
    border: 2px solid rgba(100, 100, 120, 0.5);
    border-radius: 8px;
    background: rgba(100, 100, 120, 0.2);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.easy-mode-toggle:hover {
    background: rgba(100, 100, 120, 0.3);
    border-color: rgba(100, 100, 120, 0.7);
    transform: translateY(-2px);
}

.easy-mode-toggle.active {
    background: rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
    color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}

.easy-mode-toggle.active:hover {
    background: rgba(46, 204, 113, 0.4);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
}

.character-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.character-index-item {
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.character-index-item:hover {
    background: rgba(255, 215, 0, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.character-index-item span {
    font-size: 0.85em;
    text-align: center;
    line-height: 1.2;
}

.character-index-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #ffd700;
}

.character-index-item.crossed-out::before,
.character-index-item.crossed-out::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 38, 38, 0.15);
    pointer-events: none;
    border-radius: 8px;
}

.character-index-item.crossed-out::before {
    background: linear-gradient(
        to bottom right,
        transparent calc(50% - 3px),
        rgba(220, 38, 38, 0.9) calc(50% - 3px),
        rgba(220, 38, 38, 0.9) calc(50% + 3px),
        transparent calc(50% + 3px)
    );
}

.character-index-item.crossed-out::after {
    background: linear-gradient(
        to top right,
        transparent calc(50% - 3px),
        rgba(220, 38, 38, 0.9) calc(50% - 3px),
        rgba(220, 38, 38, 0.9) calc(50% + 3px),
        transparent calc(50% + 3px)
    );
}

.character-index-item.crossed-out {
    opacity: 0.6;
}

.character-index-item.crossed-out:hover {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.character-index-item::before,
.character-index-item::after {
    transition: opacity 0.2s ease;
    opacity: 0;
}

.character-index-item.crossed-out::before,
.character-index-item.crossed-out::after {
    opacity: 1;
}

.close-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(255, 215, 0, 0.4);
}

.appearances-list {
    text-align: center;
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 0.9em;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    line-height: 1.6;
}

.appearances-list strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.close-but-wrong-message {
    background: rgba(243, 156, 18, 0.2);
    border: 2px solid #f39c12;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1em;
    color: #f39c12;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.close-but-wrong-message.show {
    opacity: 1;
    transform: translateY(0);
}

footer {
    margin-top: auto;
    padding: 40px 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.victory-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.victory-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.victory-content {
    background: linear-gradient(135deg, #0b091f, #01010c);
    border: 4px solid #2ecc71;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 0 50px rgba(46, 204, 113, 0.5);
    animation: victoryPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

@keyframes victoryPop {
    0% {
        transform: scale(0.5) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.victory-content h2 {
    color: #2ecc71;
    font-size: 2em;
    margin-bottom: 15px;
}

.victory-character-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    border: 3px solid #ffd700;
    margin: 15px 0;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.victory-content h3 {
    color: #ffd700;
    font-size: 1.5em;
    margin-bottom: 8px;
}

.victory-content p {
    color: #fff;
    font-size: 1em;
    margin-bottom: 15px;
}

.victory-emojis {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin: 15px 0;
    font-size: 1.2em;
    line-height: 1.6;
}

.victory-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.share-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.play-again-btn {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    color: #fff;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.share-btn,
.copy-btn {
    padding: 15px 10px;
    font-size: 0.9em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    color: #fff;
}

.share-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.copy-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

@media (max-width: 600px) {
    .victory-content {
        padding: 20px;
        max-height: 90vh;
    }
    
    .victory-content h2 {
        font-size: 1.6em;
    }
    
    .victory-character-img {
        width: 100px;
        height: 100px;
    }
    
    .share-btn,
    .copy-btn {
        font-size: 0.8em;
        padding: 12px 8px;
    }
}

.mode-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.mode-btn {
    padding: 12px 30px;
    font-size: 1em;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.1);
    color: rgba(255, 215, 0, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.mode-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.mode-btn.active:hover {
    background: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}


.daily-completed {
    background: rgba(255, 215, 0, 0.1);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.daily-completed h2 {
    color: #2ecc71;
    font-size: 2em;
    margin-bottom: 20px;
}

.daily-completed p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #fff;
}

.daily-completed strong {
    color: #ffd700;
}

.next-daily {
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.next-daily p {
    color: #3498db;
    font-size: 1em;
    margin-bottom: 10px;
}

.next-daily h3 {
    color: #3498db;
    font-size: 2em;
    font-weight: bold;
}

.next-daily-timer {
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.next-daily-timer p {
    color: #3498db;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.next-daily-timer h4 {
    color: #3498db;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

@media (max-width: 600px) {
    .mode-toggle {
        flex-direction: column;
        gap: 10px;
    }
    
    .mode-btn {
        width: 100%;
        padding: 15px;
    }
    
    .daily-completed {
        padding: 25px;
    }
    
    .daily-completed h2 {
        font-size: 1.5em;
    }
    
    .next-daily h3 {
        font-size: 1.5em;
    }
}



.home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.home-button img {
    max-width: 60px;
    height: auto;
    transition: all 0.3s ease;
}

.home-button:hover {
    transform: scale(1.15);
}

.home-button:active {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .home-button {
        top: 15px;
        left: 15px;
    }
    
    .home-button img {
        max-width: 50px;
    }
}




@media (max-width: 768px) {
    
    body {
        padding: 10px 5px;
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    
    .subtitle {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    
    .mode-toggle {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .mode-btn {
        flex: 1;
        padding: 10px 8px;
        font-size: 0.8em;
        white-space: nowrap;
    }
    
    .index-btn {
        padding: 8px 15px;
        font-size: 0.85em;
        margin-bottom: 15px;
    }
    
    #characterSearch {
        padding: 10px;
        font-size: 0.95em;
    }
    
    .search-container {
        margin-bottom: 15px;
    }
    
    .guesses-count {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    .hints-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 5px;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .hint-btn {
        flex: 1;
        padding: 10px 5px;
        font-size: 0.7em;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hint-btn::after {
        font-size: 0.65em;
        bottom: -18px;
    }
    
    .hint-display {
        font-size: 0.9em;
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .guesses-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px 10px 10px;
    }
    
    .guess-row {
        display: grid;
        grid-template-columns: 50px repeat(6, 1fr);
        gap: 3px;
        margin-bottom: 8px;
        min-width: 100%;
    }
    
    .header-row {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .header-cell {
        font-size: 0.65em;
        padding: 5px 2px;
        word-break: break-word;
    }
    
    .guess-image-cell {
        padding: 0;
    }
    
    .guess-character-img {
        width: 48px;
        height: 48px;
        border-radius: 6px;
        border-width: 2px;
    }
    
    .guess-cell {
        padding: 8px 3px;
        font-size: 0.65em;
        min-height: 50px;
        word-break: break-word;
    }
    
    footer {
        width: 100vw;
        margin-left: -10px;
        margin-right: -10px;
        padding: 20px 15px;
        font-size: 10px;
        line-height: 1.6;
        margin-top: 30px;
        box-sizing: border-box;
    }
    
    footer p {
        margin: 5px 0;
    }
    
    .home-button {
        top: 8px;
        left: 8px;
    }
    
    .home-button img {
        max-width: 40px;
    }
    
    .victory-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .victory-content h2 {
        font-size: 1.5em;
    }
    
    .victory-character-img {
        width: 100px;
        height: 100px;
    }
    
    .share-btn, .copy-btn {
        font-size: 0.85em;
        padding: 12px 8px;
    }
    
    .character-index-content {
        width: 95%;
        padding: 20px;
    }
    
    .character-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    h1 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 0.8em;
        margin-bottom: 10px;
    }
    
    .mode-toggle {
        margin-bottom: 10px;
    }
    
    .mode-btn {
        padding: 8px 10px;
        font-size: 0.75em;
    }
    
    .hints-container {
        margin-bottom: 15px;
    }
    
    .hint-btn {
        padding: 8px 4px;
        font-size: 0.65em;
    }
    
    .guesses-grid {
        margin-top: 10px;
    }
    
    .guess-row {
        grid-template-columns: 45px repeat(6, 1fr);
        gap: 2px;
        margin-bottom: 6px;
    }
    
    .guess-character-img {
        width: 42px;
        height: 42px;
    }
    
    .guess-cell {
        font-size: 0.6em;
        padding: 6px 2px;
        min-height: 45px;
    }
    
    .header-cell {
        font-size: 0.6em;
        padding: 4px 2px;
    }
    
    footer {
        padding: 15px 10px;
        font-size: 9px;
    }
}

@media (max-width: 375px) {
    h1 {
        font-size: 1.5em;
    }
    
    .mode-btn {
        font-size: 0.75em;
        padding: 8px 5px;
    }
    
    .hint-btn {
        font-size: 0.65em;
        padding: 8px 3px;
    }
    
    .guess-row {
        grid-template-columns: 45px repeat(6, 1fr);
    }
    
    .guess-character-img {
        width: 42px;
        height: 42px;
    }
    
    .guess-cell {
        font-size: 0.6em;
        padding: 6px 2px;
        min-height: 45px;
    }
    
    .header-cell {
        font-size: 0.6em;
    }
}