* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #1a4d8f 0%, #0a2540 50%, #000814 100%);
    color: #fff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) and (orientation: landscape) {
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .volume-control {
        display: none;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 223, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 100, 100, 0.08) 0%, transparent 50%);
    animation: backgroundShift 15s ease infinite;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 223, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 223, 0, 0.4);
    border-radius: 50px;
    text-decoration: none;
    color: #ffdf00;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    transform: translateX(-5px) scale(1.05);
    background: rgba(255, 223, 0, 0.3);
    box-shadow: 0 6px 20px rgba(255, 223, 0, 0.5);
}

.back-icon {
    font-size: 1.5rem;
}

.game-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    height: -webkit-fill-available;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 223, 0, 0.3);
    flex-shrink: 0;
}

.score-display, .high-score-display, .coins-display, .volume-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.score-display .label, .high-score-display .label, .coins-display .label, .volume-control .label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-display .value, .high-score-display .value, .coins-display .value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#gameCanvas {
    display: block;
    width: 100%;
    flex: 1;
    min-height: 0;
    background: linear-gradient(180deg, #87ceeb 0%, #e0f6ff 100%);
    cursor: pointer;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.overlay-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.overlay-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.screen-content {
    text-align: center;
    padding: 40px;
    max-width: 600px;
}

.game-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 50%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.game-subtitle {
    font-size: 1.5rem;
    color: #ffdf00;
    margin-bottom: 40px;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.controls-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.key {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(255, 223, 0, 0.2);
    border: 2px solid rgba(255, 223, 0, 0.4);
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffdf00;
    min-width: 60px;
}

.action {
    font-size: 1rem;
    color: #9ca3af;
}

.game-over-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffdf00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.final-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.final-score .label {
    font-size: 1.2rem;
    color: #9ca3af;
    font-weight: 600;
}

.final-score .value {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.new-high-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffdf00;
    margin-bottom: 20px;
    animation: celebrate 0.5s ease-in-out;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.game-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 223, 0, 0.4);
    margin: 10px;
}

.game-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 223, 0, 0.6);
}

.game-button.secondary {
    background: rgba(255, 223, 0, 0.2);
    color: #ffdf00;
    border: 2px solid rgba(255, 223, 0, 0.4);
}

.game-button.secondary:hover {
    background: rgba(255, 223, 0, 0.3);
}

.leaderboard-content {
    max-width: 700px;
}

.leaderboard-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.leaderboard-list {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.leaderboard-entry.top-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.leaderboard-entry.top-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(192, 192, 192, 0.1) 100%);
    border: 2px solid rgba(192, 192, 192, 0.5);
}

.leaderboard-entry.top-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(205, 127, 50, 0.1) 100%);
    border: 2px solid rgba(205, 127, 50, 0.5);
}

.entry-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffdf00;
    min-width: 50px;
}

.entry-info {
    flex: 1;
    text-align: left;
    padding: 0 20px;
}

.entry-date {
    font-size: 0.9rem;
    color: #9ca3af;
}

.entry-score {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leaderboard-empty {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .game-container {
        width: 95%;
        border-radius: 15px;
    }

    .game-header {
        padding: 15px 20px;
    }

    .score-display .value, .high-score-display .value, .coins-display .value {
        font-size: 1.5rem;
    }

    #gameCanvas {
        height: 100%;
    }

    .game-title {
        font-size: 2.5rem;
    }

    .game-subtitle {
        font-size: 1.2rem;
    }

    .controls-info {
        flex-direction: column;
        gap: 15px;
    }

    .back-button .back-text {
        display: none;
    }

    .leaderboard-entry {
        padding: 12px 15px;
    }

    .entry-rank {
        font-size: 1.2rem;
        min-width: 40px;
    }

    .entry-score {
        font-size: 1.4rem;
    }
}

.name-input-container {
    margin: 30px 0;
}

.name-input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 223, 0, 0.4);
    border-radius: 15px;
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

.name-input:focus {
    outline: none;
    border-color: rgba(255, 223, 0, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 223, 0, 0.3);
}

.name-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.difficulty-selector {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.difficulty-btn {
    flex: 1;
    min-width: 150px;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 223, 0, 0.3);
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.difficulty-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 223, 0, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(255, 223, 0, 0.3);
}

.difficulty-btn.active {
    border-color: rgba(255, 223, 0, 0.8);
    background: rgba(255, 223, 0, 0.2);
    box-shadow: 0 0 30px rgba(255, 223, 0, 0.4);
}

.diff-icon {
    font-size: 2rem;
}

.diff-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffdf00;
}

.diff-desc {
    font-size: 0.85rem;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .difficulty-selector {
        flex-direction: column;
    }
    
    .difficulty-btn {
        min-width: 100%;
    }
    
    .name-input {
        font-size: 1rem;
    }
}

.entry-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffdf00;
    margin-bottom: 5px;
}

.entry-details {
    font-size: 0.85rem;
    color: #9ca3af;
}

.fullscreen-warning {
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid rgba(255, 107, 107, 0.6);
    border-radius: 15px;
    padding: 15px 25px;
    margin: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6b6b;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.fullscreen-warning.hidden {
    display: none;
}

.fullscreen-exit-image {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    animation: bounce 1s ease-in-out infinite;
}

.fullscreen-exit-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.fullscreen-exit-text {
    font-size: 1.3rem;
    color: #d1d5db;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.fullscreen-exit-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.credits {
    position: fixed;
    bottom: 10px;
    right: 15px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    z-index: 5;
    pointer-events: none;
    text-align: right;
}

.coins-value-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 223, 0, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 223, 0, 0.5);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.coin-sprite {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.game-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    width: 60px;
    height: 60px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#orientationWarning {
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
}

.rotate-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: rotate 2s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
}

.orientation-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.orientation-text {
    font-size: 1.3rem;
    color: #d1d5db;
}

.mobile-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: space-between;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    z-index: 100;
    pointer-events: none;
}

.mobile-controls.active {
    display: flex;
}

.mobile-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 223, 0, 0.6);
    background: rgba(255, 223, 0, 0.2);
    backdrop-filter: blur(10px);
    color: #ffdf00;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-btn:active {
    transform: scale(0.85);
    background: rgba(255, 223, 0, 0.5);
    border-color: rgba(255, 223, 0, 1);
    box-shadow: 0 0 20px rgba(255, 223, 0, 0.6);
}

.btn-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.btn-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.duck-btn {
    margin-left: 20px;
}

.jump-btn {
    margin-right: 20px;
}

@media (max-width: 768px) and (orientation: portrait) {
    #orientationWarning {
        display: flex !important;
    }
    
    .mobile-controls {
        display: none !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    html, body {
        width: 100%;
        height: 100%;
        position: fixed;
    }
    
    .game-container {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        overflow: hidden;
    }
    
    #gameCanvas {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw;
        max-height: 100vh;
        object-fit: contain;
    }
    
    .overlay-screen {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .screen-content {
        padding: 8px 15px !important;
        max-height: none !important;
        min-height: 100vh !important;
        overflow-y: visible !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .game-header {
        padding: 2px 8px;
        min-height: 28px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .score-display,
    .high-score-display,
    .coins-display {
        gap: 1px;
    }
    
    .score-display .value,
    .high-score-display .value,
    .coins-display .value {
        font-size: 0.8rem;
    }
    
    .score-display .label,
    .high-score-display .label,
    .coins-display .label {
        font-size: 0.48rem;
    }
    
    .coin-sprite {
        width: 11px;
        height: 11px;
    }
    
    .coins-value-container {
        gap: 2px;
    }
    
    .mobile-controls {
        padding: 12px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    
    .mobile-btn {
        width: 70px;
        height: 70px;
    }
    
    .btn-icon {
        font-size: 1.4rem;
    }
    
    .btn-label {
        font-size: 0.55rem;
    }
    
    .game-title {
        font-size: 1.2rem !important;
        margin-bottom: 3px !important;
    }
    
    .title-icon {
        width: 22px !important;
        height: 22px !important;
    }
    
    .game-subtitle {
        font-size: 0.7rem !important;
        margin-bottom: 5px !important;
    }
    
    .name-input-container {
        margin: 8px 0 !important;
    }
    
    .name-input {
        font-size: 0.75rem !important;
        padding: 8px 12px !important;
    }
    
    .difficulty-selector {
        gap: 5px !important;
        margin: 8px 0 !important;
        flex-direction: column !important;
    }
    
    .difficulty-btn {
        padding: 8px 10px !important;
        min-width: 100% !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }
    
    .diff-icon {
        font-size: 1.1rem !important;
    }
    
    .diff-name {
        font-size: 0.75rem !important;
    }
    
    .diff-desc {
        font-size: 0.5rem !important;
    }
    
    .game-button {
        padding: 10px 25px !important;
        font-size: 0.9rem !important;
        margin: 8px 0 !important;
        width: 100% !important;
    }
    
    .mobile-fullscreen-btn {
        padding: 8px 20px !important;
        font-size: 0.85rem !important;
        margin: 8px 0 !important;
        width: 100% !important;
    }
    
    .fullscreen-warning {
        display: none !important;
    }
    
    .game-over-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .final-score {
        margin-bottom: 12px;
    }
    
    .final-score .label {
        font-size: 0.85rem;
    }
    
    .final-score .value {
        font-size: 2rem;
    }
    
    .new-high-score {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .leaderboard-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .leaderboard-list {
        max-height: 40vh;
        margin-bottom: 12px;
    }
    
    .leaderboard-entry {
        padding: 8px 10px;
        margin-bottom: 5px;
    }
    
    .entry-rank {
        font-size: 0.9rem;
        min-width: 32px;
    }
    
    .entry-name {
        font-size: 0.8rem;
    }
    
    .entry-details {
        font-size: 0.65rem;
    }
    
    .entry-score {
        font-size: 1.1rem;
    }
    
    .orientation-title {
        font-size: 1.8rem;
    }
    
    .orientation-text {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .mobile-controls {
        display: none !important;
    }
    
    #orientationWarning {
        display: none !important;
    }
}

.mobile-fullscreen-btn {
    display: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    margin: 20px auto;
}

.mobile-fullscreen-btn:active {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6);
}

.mobile-fullscreen-btn.hidden {
    display: none;
}

@media (max-width: 768px) {
    .mobile-fullscreen-btn {
        display: block;
    }
    
    .controls-info {
        display: none;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .screen-content {
        padding: 15px;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .game-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .title-icon {
        width: 28px;
        height: 28px;
    }
    
    .game-subtitle {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .name-input-container {
        margin: 15px 0;
    }
    
    .name-input {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .difficulty-selector {
        gap: 8px;
        margin: 15px 0;
    }
    
    .difficulty-btn {
        padding: 8px 5px;
        min-width: 90px;
    }
    
    .diff-icon {
        font-size: 1.3rem;
    }
    
    .diff-name {
        font-size: 0.85rem;
    }
    
    .diff-desc {
        font-size: 0.6rem;
    }
    
    .game-button {
        padding: 10px 25px;
        font-size: 1rem;
        margin: 10px;
    }
    
    .mobile-fullscreen-btn {
        padding: 12px 30px;
        font-size: 1rem;
        margin: 15px auto;
    }
    
    .fullscreen-warning {
        display: none;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .screen-content {
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}
