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

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.game-title {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.daily-puzzle-number {
    color: white;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center; flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0 1rem;
    width: 100%;
}

.tab-btn {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: white;
    border: 2px solid #2E7D32;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tab-btn:hover {
    background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border-color: #4CAF50;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
    z-index: 1;
}

.tab-content.active {
    display: block;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.tab-header h2 {
    margin: 0;
    color: #1f2937;
}

.close-tab-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center; flex-wrap: nowrap;
    transition: all 0.2s ease;
}

.close-tab-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
    transform: scale(1.1);
}

.close-tab-btn:active {
    transform: scale(0.95);
}

/* Help Section Styles */
.help-section {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.help-section h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
    border-bottom: 2px solid #2E7D32;
    padding-bottom: 0.5rem;
    text-align: center;
}

.help-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.help-section ol, .help-section ul {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.help-section li {
    margin-bottom: 0.5rem;
}

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

.score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 10px;
    border-left: 4px solid #2E7D32;
}

.score-icon {
    font-size: 2rem;
    min-width: 50px;
}

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

.bonus-item {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bonus-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.bonus-item small {
    opacity: 0.9;
    font-size: 0.85rem;
}

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

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    display: block;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Game Container */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Score Display */
.score-display {
    display: flex;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.current-score, .current-over {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* Game Board */
.game-board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.game-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.game-tile {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center; flex-wrap: nowrap;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.game-tile.filled {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    animation: tilePop 0.2s ease;
}

.game-tile.green {
    background: #6aaa64;
    border-color: #6aaa64;
    color: white;
    animation: tileFlip 0.6s ease;
}

.game-tile.yellow {
    background: #c9b458;
    border-color: #c9b458;
    color: white;
    animation: tileFlip 0.6s ease;
}

.game-tile.gray {
    background: #787c7e;
    border-color: #787c7e;
    color: white;
    animation: tileFlip 0.6s ease;
}

/* Keyboard */
.keyboard {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
}

.keyboard-row { align-items: center;
    display: flex;
    justify-content: center; flex-wrap: nowrap;
    gap: 0.5rem;
}

.key {
    padding: 0.8rem 0.6rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 35px;
    text-transform: uppercase;
}

.key:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.key.wide {
    min-width: 65px;
}

.key.green {
    background: #6aaa64;
    color: white;
}

.key.yellow {
    background: #c9b458;
    color: white;
}

.key.gray {
    background: #787c7e;
    color: white;
}

/* Game Controls */
.game-controls {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Statistics Panel */
.stats-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stats-panel h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(103, 126, 234, 0.1);
    border-radius: 10px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.over-score {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.bonus-score {
    font-size: 1rem;
    font-weight: bold;
    color: #2E7D32;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 6px;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    justify-content: center; flex-wrap: nowrap;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100000;
}

.modal-header {
    position: relative;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: #333;
    margin: 0;
    font-size: 1.8rem;
}

.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; flex-wrap: nowrap;
    transition: all 0.3s ease;
    color: #666;
}

.close-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: scale(1.1);
}

.final-word {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
}

.scorecard {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.scorecard h3 {
    color: #333;
    margin-bottom: 1rem;
}

#scorecardDetails {
    margin-bottom: 1rem;
    text-align: left;
}

.total-score {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 1.5rem 0;
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Animations */
@keyframes tilePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes tileFlip {
    0% { transform: rotateX(0); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0); }
}

/* Already Played Modal */
.already-played-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    justify-content: center; flex-wrap: nowrap;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.already-played-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.already-played-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.already-played-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center; flex-wrap: nowrap;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.already-played-body {
    padding: 2rem;
}

.come-back-message {
    text-align: center;
    margin-bottom: 2rem;
}

.come-back-message p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

.todays-results {
    margin-bottom: 2rem;
}

.todays-results h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

.result-summary {
    display: flex;
    justify-content: center; flex-wrap: nowrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.result-score, .result-attempts {
    text-align: center;
    min-width: 120px;
}

.result-score {
    font-size: 2rem;
    font-weight: bold;
    color: #2E7D32;
}

.result-attempts {
    font-size: 1.2rem;
    color: #6b7280;
}

.overs-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.over-score {
    text-align: center;
    padding: 0.5rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #374151;
}

.emoji-result {
    text-align: center;
    font-family: monospace;
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 1rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.stats-summary h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

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

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2E7D32;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center; flex-wrap: nowrap;
}

.share-btn {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.share-btn:hover {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background: #6b7280;
    color: white;
    border: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .daily-puzzle-number {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .tab-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        flex: 1;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .game-container {
        gap: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .score-display {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 1.5rem;
    }
    
    .current-score, .current-over {
        font-size: 1rem;
    }
    
    .game-board {
        gap: 0.05rem;
        padding: 0.4rem 0.1rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .game-row {
        gap: 0.05rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .game-tile {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        border-width: 2px;
    }
    
    .keyboard {
        gap: 0.05rem;
        padding: 0.5rem 0.2rem;
        max-max-width: 90vw;
        margin: 0 auto;
        box-sizing: border-box;
        max-width: 90vw;
    }
    
    .keyboard-row { align-items: center;
        gap: 0.05rem;
        max-width: 100%;
        margin: 0 auto;
        justify-content: center; flex-wrap: nowrap;
    }
    
    .key {
        padding: 0.3rem 0.2rem;
        font-size: 0.8rem;
        min-width: 12px;
        border-radius: 5px;
    }
    
    .key.wide {
        min-width: 48px;
    }
    
    .already-played-content {
        width: 95%;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .content-container {
        padding: 1.5rem;
    }
    
    .help-section {
        padding: 1rem;
    }
    
    .help-section h3 {
        font-size: 1.1rem;
    }
    
    .help-section p, .help-section li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .puzzle-number {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
    
    .new-game-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .game-tile {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        border-width: 2px;
    }
    
    .key {
        padding: 1rem 0.5rem;
        font-size: 1rem;
        min-width: 35px;
        border-radius: 6px;
    }
    
    .key.wide {
        min-width: 60px;
    }
    
    .score-display {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .current-score, .current-over {
        font-size: 0.9rem;
    }
    
    .game-controls {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .new-game-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Responsive tiles that fit screen */
    .game-tile {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        border-width: 2px;
    }
    
    /* Responsive keyboard that fits screen */
    .key {
        padding: 0.7rem 0.4rem;
        font-size: 0.85rem;
        min-width: 28px;
        border-radius: 5px;
    }
    
    .key.wide {
        min-width: 50px;
    }
    
    /* Responsive gaps and padding */
    .game-board {
        gap: 0.05rem;
        padding: 0.4rem 0.1rem;
        max-width: 50vw;
        box-sizing: border-box;
    }
    
    .game-row {
        gap: 0.05rem;
        max-width: 100%;
    }
    
    .keyboard {
        gap: 0.05rem;
        padding: 0.4rem 0.1rem;
        max-width: 50vw;
        box-sizing: border-box;
    }
    
    .keyboard-row { align-items: center;
        gap: 0.05rem;
        max-width: 100%;
    }
    
    /* Adjust game container for very small screens */
    .game-container {
        gap: 0.8rem;
        max-width: 50vw;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    
    .score-display {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .current-score, .current-over {
        font-size: 0.9rem;
    }
    
    /* Modal adjustments for very small screens */
    .already-played-content {
        width: 95%;
        margin: 0.5rem;
        padding: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    /* Stats grid for very small screens */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .tab-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .close-tab-btn {
        align-self: flex-end;
    }
    
    .scoring-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .bonus-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .tab-btn, .btn, .key {
        min-height: 44px;
        min-width: 44px;
    }
    
    .game-tile {
        min-width: 35px;
        min-height: 35px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .game-tile {
        border-width: 1px;
    }
    
    .key {
        border-width: 1px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .main-content {
        padding: 0.5rem;
    }
    
    .tab-navigation {
        padding: 0.25rem;
    }
    
    .game-container {
        gap: 1rem;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .tab-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 60px;
    }
    
    .game-tile {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .key {
        padding: 0.4rem 0.2rem;
        font-size: 0.5rem;
        min-width: 20px;
    }
    
    .content-container {
        padding: 0.5rem;
    }
    
    .bonus-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}
