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

body {
    background: #0a0a0f;
    color: #e8e8e8;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    overflow: hidden;
    touch-action: none;
}

#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    overflow-y: auto;
    z-index: 100;
    gap: 0;
}

#loadingScreen.hidden {
    display: none;
}

.title {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: #e94560;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 0 10px #e94560, 0 0 20px #e94560, 0 0 40px #e94560;
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

.subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #f5d042;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #f5d042;
}

.story-container {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #e94560;
    border-radius: 10px;
    padding: 20px;
    max-width: 700px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
    max-height: 30vh;
    overflow-y: auto;
    width: 100%;
}

.story-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #e94560;
    margin-bottom: 15px;
    text-align: center;
}

.story-text {
    font-size: 12px;
    line-height: 1.6;
    text-align: justify;
}

.story-text .highlight {
    color: #f5d042;
}

.instructions {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #f5d042;
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(245, 208, 66, 0.3);
}

.instructions-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #f5d042;
    margin-bottom: 15px;
    text-align: center;
}

.control-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.keys {
    display: flex;
    gap: 5px;
    margin-right: 12px;
}

.key {
    background: linear-gradient(180deg, #3a3a3a 0%, #2d2d2d 100%);
    border: 2px solid #555;
    border-radius: 5px;
    padding: 6px 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #fff;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 3px 0 #1a1a1a;
}

.key.space {
    min-width: 80px;
}

.start-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    background: linear-gradient(180deg, #e94560 0%, #c73e54 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 40px;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 5px 0 #a33347, 0 10px 20px rgba(233, 69, 96, 0.4);
    transition: all 0.1s;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #a33347, 0 15px 30px rgba(233, 69, 96, 0.6);
}

.start-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #a33347, 0 5px 10px rgba(233, 69, 96, 0.4);
}

#gameContainer {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    width: 100%;
    height: 100vh;
}

#gameContainer.active {
    display: flex;
}

#hud {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin-bottom: 10px;
    padding: 8px 15px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #e94560;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 5px;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
}

.hearts {
    display: flex;
    gap: 3px;
}

.heart {
    width: 20px;
    height: 20px;
    background: #e94560;
    clip-path: path('M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z');
    transform: scale(1);
}

.heart.empty {
    background: #333;
}

.keys-display {
    color: #f5d042;
}

.level-display {
    color: #e94560;
}

.game-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    max-width: 100%;
}

#gameCanvas {
    border: 3px solid #e94560;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
    max-width: 100%;
    max-height: calc(100vh - 120px);
}

#mobileControls {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 20px;
    justify-content: space-between;
    pointer-events: none;
    z-index: 30;
}

#mobileControls.visible {
    display: flex;
}

.dpad {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(3, 60px);
    gap: 5px;
    pointer-events: auto;
}

.dpad-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.dpad-btn:active {
    background: rgba(233, 69, 96, 0.5);
    border-color: #e94560;
}

.dpad-btn.up { grid-column: 2; grid-row: 1; }
.dpad-btn.left { grid-column: 1; grid-row: 2; }
.dpad-btn.down { grid-column: 2; grid-row: 2; }
.dpad-btn.right { grid-column: 3; grid-row: 2; }

.action-btns {
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.action-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.action-btn.attack {
    background: rgba(233, 69, 96, 0.3);
    border-color: #e94560;
}

.action-btn.attack:active {
    background: rgba(233, 69, 96, 0.6);
}

.action-btn.pickup {
    background: rgba(245, 208, 66, 0.3);
    border-color: #f5d042;
}

.action-btn.pickup:active {
    background: rgba(245, 208, 66, 0.6);
}

#gameOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
    padding: 20px;
    text-align: center;
}

#gameOverlay.active {
    display: flex;
}

.mobile-restart-btn {
    display: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    background: linear-gradient(180deg, #e94560 0%, #c73e54 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 35px;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 4px 0 #a33347, 0 8px 20px rgba(233, 69, 96, 0.4);
    transition: all 0.1s;
    margin-top: 20px;
}

.mobile-restart-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #a33347, 0 4px 10px rgba(233, 69, 96, 0.4);
}

@media (max-width: 1023px) {
    .mobile-restart-btn {
        display: block;
    }
    
    #gameOverlay .overlay-subtitle {
        display: none;
    }
}

#levelTransition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.98);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 60;
}

#levelTransition.active {
    display: flex;
}

.level-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: #e94560;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #e94560;
    text-align: center;
}

.level-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #f5d042;
    margin-bottom: 40px;
}

.overlay-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px currentColor;
    text-align: center;
}

.overlay-title.victory {
    color: #f5d042;
}

.overlay-title.gameover {
    color: #e94560;
}

.overlay-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #888;
    margin-bottom: 40px;
    text-align: center;
}

.overlay-subtitle span {
    color: #e94560;
}

#celebrationScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a0033 0%, #000033 50%, #003300 100%);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    overflow: hidden;
}

#celebrationScreen.active {
    display: flex;
    animation: celebrationFadeIn 0.5s ease-out;
}

@keyframes celebrationFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.celebration-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.celebration-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 36px;
    color: #ffd700;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ff8c00,
        0 0 40px #ff8c00,
        0 4px 0 #b8860b;
    animation: titleBounce 0.6s ease-out infinite alternate;
    margin-bottom: 20px;
}

@keyframes titleBounce {
    from { transform: scale(1) translateY(0); }
    to { transform: scale(1.05) translateY(-10px); }
}

.celebration-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #87ceeb;
    text-shadow: 0 0 10px #00bfff;
    margin-bottom: 30px;
    animation: subtitlePulse 1s ease-in-out infinite;
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.trophy {
    font-size: 100px;
    animation: trophySpin 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px gold);
    margin-bottom: 30px;
}

@keyframes trophySpin {
    0%, 100% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.1); }
}

.celebration-message {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #ff69b4;
    text-shadow: 0 0 10px #ff1493;
    margin-bottom: 30px;
    animation: messageBlink 0.5s ease-in-out infinite alternate;
}

@keyframes messageBlink {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0.8; transform: scale(1.02); }
}

.score-display {
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 20px 40px;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.score-display p {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #fff;
    margin: 10px 0;
}

.star-rating {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.star {
    font-size: 50px;
    color: #333;
    animation: starAppear 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0);
}

.star:nth-child(1) { animation-delay: 0.5s; }
.star:nth-child(2) { animation-delay: 1s; }
.star:nth-child(3) { animation-delay: 1.5s; }

@keyframes starAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        color: #ffd700;
        text-shadow: 0 0 20px #ffd700, 0 0 40px #ff8c00;
    }
}

.restart-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    background: linear-gradient(180deg, #ffd700 0%, #ff8c00 100%);
    border: none;
    border-radius: 15px;
    padding: 20px 50px;
    color: #1a0033;
    cursor: pointer;
    text-shadow: 0 2px 0 rgba(255,255,255,0.3);
    box-shadow: 0 6px 0 #b8860b, 0 10px 30px rgba(255, 215, 0, 0.5);
    transition: all 0.1s;
    animation: btnPulse 1.5s ease-in-out infinite;
}

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

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #b8860b, 0 15px 40px rgba(255, 215, 0, 0.7);
}

.restart-btn:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #b8860b, 0 5px 15px rgba(255, 215, 0, 0.5);
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 15px;
    height: 15px;
    top: -20px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    to {
        top: 110vh;
        transform: rotate(720deg);
    }
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star-particle {
    position: absolute;
    font-size: 24px;
    animation: starFloat ease-in-out infinite;
}

@keyframes starFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.7; }
}

@media (max-width: 768px) {
    .celebration-title {
        font-size: 24px;
    }
    
    .celebration-subtitle {
        font-size: 12px;
    }
    
    .trophy {
        font-size: 70px;
    }
    
    .celebration-message {
        font-size: 10px;
    }
    
    .score-display {
        padding: 15px 25px;
    }
    
    .score-display p {
        font-size: 9px;
    }
    
    .star {
        font-size: 35px;
    }
    
    .restart-btn {
        font-size: 12px;
        padding: 15px 35px;
    }
}

@media (max-width: 480px) {
    .celebration-title {
        font-size: 18px;
    }
    
    .celebration-subtitle {
        font-size: 10px;
    }
    
    .trophy {
        font-size: 50px;
    }
    
    .celebration-message {
        font-size: 8px;
        padding: 0 10px;
    }
    
    .score-display {
        padding: 10px 20px;
    }
    
    .score-display p {
        font-size: 8px;
    }
    
    .star {
        font-size: 28px;
    }
    
    .star-rating {
        gap: 10px;
    }
    
    .restart-btn {
        font-size: 10px;
        padding: 12px 25px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 16px;
    }
    
    .subtitle {
        font-size: 8px;
    }
    
    .story-container {
        max-height: 30vh;
    }
    
    .story-text {
        font-size: 11px;
    }
    
    .instructions {
        display: none;
    }
    
    .hud-item {
        font-size: 8px;
    }
    
    .heart {
        width: 16px;
        height: 16px;
    }
    
    #gameCanvas {
        max-height: calc(100vh - 100px);
    }
    
    .dpad {
        grid-template-columns: repeat(3, 50px);
        grid-template-rows: repeat(3, 50px);
    }
    
    .dpad-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .action-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 14px;
    }
    
    .story-container {
        max-height: 25vh;
        padding: 15px;
    }
    
    .story-title {
        font-size: 10px;
    }
    
    .story-text {
        font-size: 10px;
    }
    
    .start-btn {
        font-size: 12px;
        padding: 12px 30px;
    }
    
    #hud {
        padding: 6px 10px;
    }
    
    .hud-item {
        font-size: 7px;
    }
    
    .heart {
        width: 14px;
        height: 14px;
    }
    
    #mobileControls {
        padding: 0 10px;
        bottom: 10px;
    }
    
    .dpad {
        grid-template-columns: repeat(3, 45px);
        grid-template-rows: repeat(3, 45px);
    }
    
    .dpad-btn {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    .action-btns {
        gap: 10px;
    }
    
    .action-btn {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
    
    .level-title {
        font-size: 16px;
    }
    
    .level-subtitle {
        font-size: 10px;
    }
    
    .overlay-title {
        font-size: 20px;
    }
    
    .overlay-subtitle {
        font-size: 10px;
    }
}

@media (min-width: 1024px) {
    #mobileControls {
        display: none !important;
    }
}

.difficulty-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
    max-width: 450px;
}

.difficulty-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #f5d042;
    margin-bottom: 15px;
}

.difficulty-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.slider-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    min-width: 50px;
    text-align: center;
}

.slider-label.easy-label {
    color: #4a9c4a;
}

.slider-label.hard-label {
    color: #e94560;
}

.difficulty-slider {
    position: relative;
    width: 180px;
    height: 40px;
    flex-shrink: 0;
}

.slider-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #4a9c4a 0%, #4a9c4a 45%, #e94560 55%, #e94560 100%);
    border-radius: 10px;
    border: 2px solid #333;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(180deg, #fff 0%, #ddd 100%);
    border-radius: 50%;
    border: 3px solid #4a9c4a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: left 0.2s ease, border-color 0.2s;
    pointer-events: none;
}

.slider-thumb.hard {
    left: calc(100% - 35px) !important;
    border-color: #e94560 !important;
}

.difficulty-desc {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #888;
    margin-top: 12px;
    text-align: center;
    min-height: 18px;
}

.celebration-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.stats-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    background: linear-gradient(180deg, #4a90d9 0%, #3a7bc8 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 25px;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 4px 0 #2d5a8a, 0 8px 15px rgba(74, 144, 217, 0.4);
    transition: all 0.1s;
}

.stats-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2d5a8a, 0 12px 20px rgba(74, 144, 217, 0.5);
}

.stats-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2d5a8a, 0 4px 10px rgba(74, 144, 217, 0.4);
}

#statsModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

#statsModal.active {
    display: flex;
}

.stats-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #f5d042;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(245, 208, 66, 0.3);
}

.stats-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    color: #f5d042;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 10px #f5d042;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.stat-item.total {
    border: 2px solid #f5d042;
    margin-top: 10px;
}

.stat-label {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #aaa;
}

.stat-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #e94560;
}

.stat-item.total .stat-value {
    color: #f5d042;
}

.close-stats-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    background: linear-gradient(180deg, #666 0%, #444 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    color: #fff;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: all 0.1s;
}

.close-stats-btn:hover {
    background: linear-gradient(180deg, #777 0%, #555 100%);
}

@media (max-width: 480px) {
    .difficulty-slider-container {
        gap: 8px;
    }
    
    .slider-label {
        font-size: 7px;
        min-width: 35px;
    }
    
    .difficulty-slider {
        width: 140px;
        height: 35px;
    }
    
    .slider-thumb {
        width: 26px;
        height: 26px;
    }
    
    .slider-input[value="1"] + .slider-track .slider-thumb {
        left: calc(100% - 31px);
    }
    
    .difficulty-desc {
        font-size: 10px;
    }
    
    .celebration-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-content {
        padding: 20px;
    }
    
    .stats-title {
        font-size: 14px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .stat-value {
        font-size: 10px;
    }
}

#orientationOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.orientation-content {
    text-align: center;
    padding: 20px;
}

.rotate-icon {
    font-size: 80px;
    color: #f5d042;
    animation: rotateAnimation 1.5s ease-in-out infinite;
    margin-bottom: 30px;
}

@keyframes rotateAnimation {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

.orientation-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: #e94560;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #e94560;
}

.orientation-subtext {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #888;
}

@media (max-width: 480px) {
    .rotate-icon {
        font-size: 60px;
    }
    
    .orientation-text {
        font-size: 14px;
    }
    
    .orientation-subtext {
        font-size: 12px;
    }
}
