/**
 * Relief Wings Game - CSS Styles
 * Cánh Chim Cứu Trợ
 */

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Container chính - Responsive */
.relief-wings-container {
    position: relative;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    max-width: 100%;
    touch-action: manipulation; /* Tối ưu touch */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Mobile: Full width */
@media (max-width: 850px) {
    .relief-wings-container {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/5;
        min-height: 500px;
        max-height: 90vh;
        border-radius: 0;
    }
    
    .relief-wings-wrapper {
        width: 100% !important;
        padding: 0 !important;
    }
}

/* Loading screen */
.relief-wings-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    z-index: 100;
}

.relief-wings-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Game canvas container */
.relief-wings-game {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Background layers */
.game-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Rain effect */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.raindrop {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(174, 194, 224, 0.5));
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Water effect */
.water-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.9), rgba(59, 130, 246, 0.6));
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Bird styles */
.bird {
    position: absolute;
    width: 40px;
    height: 40px;
    transition: transform 0.1s ease-out;
    z-index: 10;
}

.bird-body {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #FFD700;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bird-wing {
    position: absolute;
    width: 60%;
    height: 40%;
    background: #e6b800;
    border-radius: 50%;
    left: 10%;
    top: 40%;
    transition: transform 0.15s ease;
}

.bird.flapping .bird-wing {
    transform: rotate(-20deg);
    top: 20%;
}

.bird-eye {
    position: absolute;
    width: 25%;
    height: 25%;
    background: white;
    border-radius: 50%;
    right: 15%;
    top: 25%;
}

.bird-eye::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    background: black;
    border-radius: 50%;
    right: 20%;
    top: 30%;
}

.bird-beak {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid #FF9800;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    right: -10px;
    top: 45%;
}

/* Invincible effect */
.bird.invincible {
    animation: glow 0.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px gold);
    }
    to {
        filter: drop-shadow(0 0 15px gold);
    }
}

/* Supply items */
.supply-item {
    position: absolute;
    font-size: 30px;
    animation: float 1s ease-in-out infinite;
    z-index: 5;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Obstacles */
.obstacle {
    position: absolute;
    font-size: 40px;
    z-index: 5;
}

.obstacle.lightning {
    animation: flash 0.3s ease-in-out infinite;
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.obstacle.whirlpool {
    animation: spin 1s linear infinite;
}

/* Delivery points */
.delivery-point {
    position: absolute;
    font-size: 50px;
    z-index: 4;
}

.delivery-point.needs-supply {
    animation: pulse 1s ease-in-out infinite;
}

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

/* Collectibles */
.collectible {
    position: absolute;
    font-size: 24px;
    animation: sparkle 1s ease-in-out infinite;
    filter: drop-shadow(0 0 5px gold);
    z-index: 5;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

/* Particles */
.particle {
    position: absolute;
    font-size: 20px;
    pointer-events: none;
    z-index: 20;
    animation: particle-fade 0.5s ease-out forwards;
}

@keyframes particle-fade {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.5);
    }
}

/* HUD */
.game-hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 50;
    pointer-events: none;
}

.hud-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
}

.hud-panel h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
}

.hud-panel p {
    margin: 3px 0;
    font-size: 14px;
}

.feather-display {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}

.feather-icon {
    font-size: 20px;
}

.feather-icon.empty {
    opacity: 0.3;
}

/* Thank you message */
.thank-you-message {
    position: absolute;
    background: #22c55e;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    animation: thank-you-pop 2s ease-out forwards;
    z-index: 30;
}

@keyframes thank-you-pop {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    20% {
        transform: translateY(-10px) scale(1);
        opacity: 1;
    }
    80% {
        transform: translateY(-30px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(0.8);
        opacity: 0;
    }
}

/* Menu screens */
.game-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.menu-screen {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    justify-content: flex-start !important;
    padding-top: 20px !important;
}

.game-over-screen {
    background: rgba(0, 0, 0, 0.8);
}

.level-complete-screen {
    background: rgba(0, 0, 0, 0.7);
}

.victory-screen {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
}

.cutscene-screen {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    cursor: pointer;
}

/* Screen content */
.screen-title {
    font-size: 38px;
    font-weight: bold;
    color: white;
    margin-bottom: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.screen-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-style: italic;
}

.screen-emoji {
    font-size: 50px;
    margin-bottom: 5px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Buttons */
.game-button {
    padding: 12px 35px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 4px;
}

.game-button:hover {
    transform: scale(1.05);
}

.game-button.primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.game-button.secondary {
    background: rgba(255, 255, 255, 0.2);
}

.game-button.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Level selector - 24 levels (6 columns x 4 rows) */
.level-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    margin: 10px 0;
    max-width: 100%;
}

.level-button {
    padding: 6px 4px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.level-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.level-button:disabled {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* Skin selector */
.skin-selector {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
}

.skin-selector-title {
    color: white;
    font-size: 12px;
    margin-bottom: 6px;
}

.skin-options {
    display: flex;
    gap: 8px;
}

.skin-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skin-option:hover:not(:disabled) {
    transform: scale(1.1);
}

.skin-option.selected {
    border-color: #fbbf24;
}

.skin-option:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Quote box */
.quote-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 15px;
    max-width: 350px;
    text-align: center;
    margin-top: 8px;
}

.quote-text {
    color: white;
    font-style: italic;
    font-size: 12px;
    line-height: 1.3;
}

/* Internal Ad Banner */
.internal-ad-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin-top: 15px;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.internal-ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    filter: brightness(1.1);
}

/* Gameplay Ad Banner with Shine Effect */
.gameplay-ad-banner {
    position: absolute;
    bottom: 80px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.5), 0 2px 5px rgba(0,0,0,0.2);
    z-index: 9999;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer !important;
    pointer-events: auto !important;
}

.gameplay-ad-banner:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.7), 0 4px 10px rgba(0,0,0,0.3);
}

.gameplay-ad-banner .ad-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.gameplay-ad-banner .ad-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.gameplay-ad-banner .ad-title {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.gameplay-ad-banner .ad-subtitle {
    font-size: 11px;
    color: rgba(0,0,0,0.7);
}

.gameplay-ad-banner .ad-arrow {
    font-size: 18px;
    font-weight: bold;
    animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Shine Effect */
.gameplay-ad-banner .shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 60%,
        transparent 100%
    );
    animation: shineMove 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shineMove {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Stats panel */
.stats-panel {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    text-align: center;
}

.stats-panel p {
    margin: 8px 0;
    font-size: 16px;
}

/* Cutscene */
.cutscene-content {
    text-align: center;
    max-width: 500px;
    padding: 20px;
}

.cutscene-title {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
}

.cutscene-emoji {
    font-size: 100px;
    margin-bottom: 30px;
    animation: bounce 1s ease-in-out infinite;
}

.cutscene-text {
    font-size: 20px;
    color: white;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cutscene-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.cutscene-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.cutscene-dot.active {
    background: #fbbf24;
}

.cutscene-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-top: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Night mode overlay */
.night-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 8;
}

/* Flash effect */
.flash-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    opacity: 0.8;
    pointer-events: none;
    z-index: 100;
    animation: flash-fade 0.1s ease-out forwards;
}

@keyframes flash-fade {
    to {
        opacity: 0;
    }
}

/* Controls hint */
.controls-hint {
    position: absolute;
    bottom: 110px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 12px;
    z-index: 40;
}

.controls-hint p {
    margin: 3px 0;
}

/* Carried supply indicator */
.carried-supply {
    position: absolute;
    top: 100px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 40;
}

.carried-supply-emoji {
    font-size: 24px;
}

.carried-supply-name {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 850px) {
    .relief-wings-container {
        max-width: 100%;
        border-radius: 0;
    }
    
    .screen-title {
        font-size: 36px;
    }
    
    .screen-emoji {
        font-size: 60px;
    }
    
    .game-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .level-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Instructions section (below game) */
.relief-wings-instructions {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.relief-wings-instructions h3 {
    color: #1e40af;
    margin-bottom: 15px;
}

.relief-wings-instructions ul {
    list-style: none;
    padding: 0;
}

.relief-wings-instructions li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.relief-wings-instructions li:last-child {
    border-bottom: none;
}

/* ==========================================
   AD BANNER STYLES
   ========================================== */

/* Wrapper for game + ad */
.relief-wings-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
}

.relief-wings-wrapper-vertical {
    flex-direction: column;
    align-items: stretch;
}

.relief-wings-wrapper-horizontal {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
}

.relief-wings-wrapper-horizontal.relief-wings-ad-right {
    flex-direction: row-reverse;
}

/* Ad Banner Base Styles */
.relief-wings-ad-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 60px;
    box-sizing: border-box;
    width: 100%;
}

.relief-wings-ad-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.relief-wings-ad-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.relief-wings-ad-banner:hover::before {
    left: 100%;
}

/* Ad Label */
.relief-wings-ad-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 5px;
}

/* Ad Text */
.relief-wings-ad-text {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
}

/* Ad Image */
.relief-wings-ad-image {
    max-width: 100%;
    max-height: 150px;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

/* Ad CTA */
.relief-wings-ad-cta {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.8;
    animation: ad-pulse 1.5s ease-in-out infinite;
}

@keyframes ad-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Position: Top */
.relief-wings-ad-top {
    width: 100%;
}

.relief-wings-ad-top .relief-wings-ad-label {
    margin-right: 15px;
    font-size: 11px;
    opacity: 0.8;
}

.relief-wings-ad-top .relief-wings-ad-cta {
    margin-left: auto;
}

/* Position: Bottom */
.relief-wings-ad-bottom {
    width: 100%;
}

.relief-wings-ad-bottom .relief-wings-ad-label {
    margin-right: 15px;
    font-size: 11px;
    opacity: 0.8;
}

.relief-wings-ad-bottom .relief-wings-ad-cta {
    margin-left: auto;
}

/* Position: Left/Right */
.relief-wings-ad-left,
.relief-wings-ad-right {
    width: 160px;
    min-height: 300px;
    flex-direction: column;
    padding: 20px 15px;
}

.relief-wings-ad-left .relief-wings-ad-image,
.relief-wings-ad-right .relief-wings-ad-image {
    max-width: 130px;
    max-height: 200px;
}

.relief-wings-ad-left .relief-wings-ad-text,
.relief-wings-ad-right .relief-wings-ad-text {
    font-size: 14px;
}

/* Special animated border effect */
.relief-wings-ad-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ad-border-glow 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.relief-wings-ad-banner:hover::after {
    opacity: 1;
}

@keyframes ad-border-glow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive */
@media (max-width: 850px) {
    .relief-wings-wrapper-horizontal {
        flex-direction: column;
    }
    
    .relief-wings-wrapper-horizontal.relief-wings-ad-right {
        flex-direction: column;
    }
    
    .relief-wings-ad-left,
    .relief-wings-ad-right {
        width: 100%;
        max-width: 728px;
        min-height: auto;
        flex-direction: row;
        gap: 15px;
    }
    
    .relief-wings-ad-left .relief-wings-ad-image,
    .relief-wings-ad-right .relief-wings-ad-image {
        max-width: 100px;
        max-height: 80px;
    }
}

@media (max-width: 500px) {
    .relief-wings-ad-banner {
        padding: 12px 15px;
    }
    
    .relief-wings-ad-text {
        font-size: 14px;
    }
    
    .relief-wings-ad-top,
    .relief-wings-ad-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .relief-wings-ad-top .relief-wings-ad-cta,
    .relief-wings-ad-bottom .relief-wings-ad-cta {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

/* Mobile Game Screen */
@media (max-width: 850px) {
    /* Menu Screen */
    .menu-screen .screen-title {
        font-size: 28px !important;
    }
    
    .menu-screen .screen-subtitle {
        font-size: 14px !important;
    }
    
    .menu-screen .screen-emoji {
        font-size: 50px !important;
    }
    
    /* Buttons larger for touch */
    .game-button {
        padding: 15px 30px !important;
        font-size: 18px !important;
        min-height: 50px;
        min-width: 150px;
    }
    
    .game-button.primary {
        padding: 18px 40px !important;
        font-size: 20px !important;
    }
    
    /* Level grid - 4 columns on mobile for 24 levels */
    .level-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
    }
    
    .level-button {
        padding: 8px 4px !important;
        font-size: 9px !important;
        min-height: 40px;
    }
    
    /* Skin options larger */
    .skin-option {
        width: 38px !important;
        height: 38px !important;
    }
    
    /* HUD panels */
    .hud-panel {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    .hud-panel h3 {
        font-size: 13px !important;
    }
    
    .hud-panel p {
        font-size: 11px !important;
    }
    
    /* Feather display smaller */
    .feather-display span {
        font-size: 14px !important;
    }
    
    /* Controls hint */
    .controls-hint {
        padding: 6px 10px !important;
        font-size: 11px !important;
        bottom: auto !important;
        top: 85px !important;
    }
    
    /* Quote box */
    .quote-box {
        padding: 10px 15px !important;
        margin: 10px 0 !important;
    }
    
    .quote-text {
        font-size: 12px !important;
    }
    
    /* Gameplay banner */
    .gameplay-ad-banner {
        padding: 8px 12px !important;
        bottom: 60px !important;
        left: 10px !important;
        max-width: 200px;
    }
    
    .gameplay-ad-banner .ad-icon {
        font-size: 18px !important;
    }
    
    .gameplay-ad-banner .ad-title {
        font-size: 12px !important;
    }
    
    .gameplay-ad-banner .ad-subtitle {
        font-size: 9px !important;
    }
    
    /* Bird size */
    .bird {
        transform: scale(0.9);
    }
    
    /* Sound toggle */
    .sound-toggle {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* Extra small screens (phones) */
@media (max-width: 500px) {
    .menu-screen .screen-title {
        font-size: 24px !important;
    }
    
    .level-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .level-button {
        padding: 8px 5px !important;
        font-size: 10px !important;
    }
    
    .game-button {
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    
    .hud-panel {
        padding: 6px 8px !important;
    }
    
    .controls-hint {
        display: none !important; /* Hide on very small screens */
    }
    
    .gameplay-ad-banner {
        bottom: 50px !important;
        padding: 6px 10px !important;
    }
}

/* Mobile touch feedback */
@media (hover: none) and (pointer: coarse) {
    .game-button:active,
    .level-button:active,
    .skin-option:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    .gameplay-ad-banner:active {
        transform: scale(0.98);
    }
}

/* Landscape mobile */
@media (max-width: 850px) and (orientation: landscape) {
    .relief-wings-container {
        aspect-ratio: 16/9 !important;
        max-height: 85vh;
    }
    
    .menu-screen {
        padding: 10px !important;
    }
    
    .menu-screen .screen-emoji {
        font-size: 40px !important;
        margin-bottom: 5px !important;
    }
    
    .menu-screen .screen-title {
        font-size: 22px !important;
        margin-bottom: 5px !important;
    }
    
    .level-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        margin: 8px 0 !important;
    }
    
    .quote-box {
        display: none !important;
    }
}

/* Mobile touch area - larger hit targets */
.mobile-touch-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 100px;
    z-index: 5;
}

/* Prevent zoom on double tap */
* {
    touch-action: manipulation;
}
