 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0c1445 0%, #1a1a4e 50%, #2d1b4e 100%);
    font-family: Georgia, serif;
    overflow: hidden;
    cursor: none;
    user-select: none;
}

 .cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 236, 210, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease;
    mix-blend-mode: difference;
}

    .cursor.hover {
        width: 45px;
        height: 45px;
        background: rgba(255, 212, 163, 0.12);
        border-color: #ffd4a3;
    }

    .cursor.click {
        transform: scale(0.8);
    }

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #ffecd2;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

 .audio-control {
    position: fixed;
    top: 20px;
    right: 160px;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
}

    .audio-control:hover {
        background: rgba(255,212,163,0.2);
        transform: scale(1.1);
    }

.audio-icon {
    font-size: 20px;
}

.audio-control.muted .audio-icon {
    opacity: 0.4;
}

 .datetime-display {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgba(255,255,255,0.25);
    font-size: 12px;
    letter-spacing: 3px;
    z-index: 100;
    text-align: right;
}

    .datetime-display .time {
        font-size: 24px;
        color: rgba(255,212,163,0.4);
        margin-bottom: 5px;
    }

    .datetime-display .date {
        font-size: 11px;
    }

 .crescent-moon {
    position: fixed;
    top: 40px;
    right: 60px;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    box-shadow: 15px 15px 0 0 #ffecd2;
    cursor: pointer;
    z-index: 15;
    transition: all 0.5s ease;
}

    .crescent-moon::before {
        content: '';
        position: absolute;
        top: -20px;
        left: -20px;
        right: -40px;
        bottom: -20px;
        border-radius: 50%;
        background: radial-gradient(circle at 70% 40%, rgba(255,236,210,0.1) 0%, transparent 60%);
        animation: moonAura 4s ease-in-out infinite;
    }

@keyframes moonAura {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.crescent-moon:hover {
    box-shadow: 15px 15px 0 0 #fff8e7, 0 0 100px 40px rgba(255, 248, 231, 0.5);
    transform: scale(1.2) rotate(15deg);
}

.crescent-moon.clicked {
    animation: moonPulse 0.3s ease;
}

@keyframes moonPulse {
    50% {
        transform: scale(1.3) rotate(20deg);
    }
}

.moon-counter {
    position: fixed;
    top: 140px;
    right: 60px;
    color: rgba(255,236,210,0.4);
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.5s;
}

    .moon-counter.show {
        opacity: 1;
    }

 .score-board {
    position: fixed;
    top: 20px;
    left: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    letter-spacing: 2px;
    z-index: 100;
}

    .score-board span {
        color: #ffd4a3;
        font-size: 22px;
        font-weight: bold;
        text-shadow: 0 0 10px rgba(255,212,163,0.5);
    }

.combo-display {
    font-size: 12px;
    color: #ff9999;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

    .combo-display.show {
        opacity: 1;
        animation: comboPulse 0.5s ease;
    }

@keyframes comboPulse {
    50% {
        transform: scale(1.2);
    }
}

 .float-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

.float-item {
    position: absolute;
    animation: floatUp 4.5s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0) rotate(0deg);
    }

    15% {
        opacity: 1;
        transform: translateY(-60px) scale(1.1) rotate(10deg);
    }

    100% {
        opacity: 0;
        transform: translateY(-450px) scale(0.2) rotate(-20deg);
    }
}

 .collectible {
    position: fixed;
    font-size: 34px;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.2s ease;
    animation: collectFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
}

    .collectible:hover {
        transform: scale(1.5) rotate(15deg);
    }

    .collectible.rare {
        filter: drop-shadow(0 0 20px rgba(255,200,100,0.8));
        animation: collectFloatRare 2s ease-in-out infinite;
    }

@keyframes collectFloat {
    0%, 100% {
        transform: translateY(0) rotate(-8deg);
    }

    50% {
        transform: translateY(-18px) rotate(8deg);
    }
}

@keyframes collectFloatRare {
    0%, 100% {
        transform: translateY(0) rotate(-15deg) scale(1);
    }

    50% {
        transform: translateY(-25px) rotate(15deg) scale(1.1);
    }
}

 .game-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    z-index: 40;
    padding: 30px;
    background: rgba(0,0,0,0.25);
    border-radius: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: opacity 0.5s ease, transform 0.5s ease;
    max-width: 95vw;
}

    .game-menu.hide {
        display: none;
    }

    .game-menu.fade {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

.menu-btn {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: #e8e4f0;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

    .menu-btn:hover {
        background: rgba(255,212,163,0.15);
        border-color: rgba(255,212,163,0.4);
        transform: translateY(-10px) scale(1.08);
        box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    }

    .menu-btn.new::after {
        content: 'NEW';
        position: absolute;
        top: -8px;
        right: -8px;
        padding: 3px 8px;
        background: linear-gradient(135deg, #ff6b6b, #ffa500);
        border-radius: 10px;
        font-size: 9px;
        color: white;
        letter-spacing: 1px;
    }

    .menu-btn .icon {
        font-size: 32px;
    }

    .menu-btn .label {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .menu-btn .tooltip {
        position: absolute;
        bottom: -65px;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        padding: 10px;
        background: rgba(0,0,0,0.9);
        border-radius: 12px;
        font-size: 10px;
        color: #c4b8d9;
        letter-spacing: 1px;
        opacity: 0;
        transition: all 0.3s;
        pointer-events: none;
        z-index: 100;
        line-height: 1.6;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .menu-btn:hover .tooltip {
        opacity: 1;
        bottom: -75px;
    }

 .back-btn {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 25px;
    color: #c4b8d9;
    font-size: 13px;
    letter-spacing: 4px;
    cursor: pointer;
    z-index: 60;
    display: none;
    transition: all 0.3s;
}

    .back-btn.show {
        display: block;
    }

    .back-btn:hover {
        background: rgba(255,212,163,0.2);
        border-color: rgba(255,212,163,0.3);
    }

 .achievement {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 18px 45px;
    background: rgba(255,212,163,0.2);
    border: 1px solid rgba(255,212,163,0.5);
    border-radius: 35px;
    color: #ffecd2;
    font-size: 15px;
    letter-spacing: 4px;
    z-index: 200;
    transition: top 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

    .achievement.show {
        top: 80px;
    }

 .game-hint {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.25);
    font-size: 12px;
    letter-spacing: 4px;
    z-index: 100;
}

.hint-secret {
    opacity: 0;
    transition: opacity 0.5s;
}

.game-hint:hover .hint-secret {
    opacity: 0.5;
}

 .game-score {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd4a3;
    font-size: 18px;
    letter-spacing: 3px;
    z-index: 61;
    display: none;
}

    .game-score.show {
        display: block;
    }

 .konami-hint {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,212,163,0.6);
    font-size: 14px;
    letter-spacing: 3px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s;
    text-align: center;
    line-height: 1.6;
}

    .konami-hint.show {
        opacity: 1;
    }

 .hidden-corner {
    position: fixed;
    bottom: 70px;
    left: 20px;
    width: 70px;
    height: 70px;
    cursor: pointer;
    z-index: 150;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,212,163,0.15) 0%, transparent 70%);
    transition: all 0.3s ease;
    border: 2px dashed rgba(255,212,163,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hidden-corner:hover {
        background: radial-gradient(circle, rgba(255,212,163,0.35) 0%, rgba(255,182,193,0.25) 50%, transparent 70%);
        border-color: rgba(255,212,163,0.7);
        transform: scale(1.2);
        box-shadow: 0 0 40px rgba(255,212,163,0.5);
    }

    .hidden-corner:active {
        transform: scale(0.85);
        background: radial-gradient(circle, rgba(255,212,163,0.5) 0%, rgba(255,182,193,0.35) 50%, transparent 70%);
        border-color: #ffd4a3;
    }

 .hidden-corner-icon {
    font-size: 30px;
    color: rgba(255,212,163,0.4);
    font-weight: bold;
    pointer-events: none;
    transition: all 0.3s;
    text-shadow: 0 0 15px rgba(255,212,163,0.4);
}

.hidden-corner:hover .hidden-corner-icon {
    color: rgba(255,212,163,0.95);
    text-shadow: 0 0 25px rgba(255,212,163,0.8);
    transform: scale(1.3) rotate(15deg);
}

.hidden-corner:active .hidden-corner-icon {
    transform: scale(0.9);
    color: #ffd4a3;
}

 .weather-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

 @media (max-width: 768px) {
    .game-menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px;
    }

    .menu-btn {
        width: 85px;
        height: 85px;
    }

        .menu-btn .icon {
            font-size: 26px;
        }

        .menu-btn .label {
            font-size: 10px;
        }

        .menu-btn .tooltip {
            display: none;
        }

    .crescent-moon {
        width: 60px;
        height: 60px;
        top: 25px;
        right: 25px;
        box-shadow: 12px 12px 0 0 #ffecd2;
    }

    .audio-control {
        right: 100px;
        width: 38px;
        height: 38px;
    }

    .datetime-display {
        font-size: 10px;
    }

        .datetime-display .time {
            font-size: 18px;
        }

    .hidden-corner {
        width: 55px;
        height: 55px;
        bottom: 60px;
        left: 15px;
    }

    .hidden-corner-icon {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .game-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}
 .coin-display-main {
    position: fixed;
    top: 20px;
    left: 140px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,215,0,0.12);
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #ffd700;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
}

    .coin-display-main:hover {
        background: rgba(255,215,0,0.25);
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255,215,0,0.3);
    }

    .coin-display-main .coin-icon {
        font-size: 18px;
        animation: coinRotate 4s linear infinite;
    }

@keyframes coinRotate {
    0%, 100% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }
}
 .coin-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 8px rgba(255,215,0,0.5);
    vertical-align: middle;
}

.coin-display-main .coin-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}
.coin-display-main .coin-amount {
    font-weight: bold;
    letter-spacing: 1px;
    min-width: 25px;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

 @media (max-width: 768px) {
    .coin-display-main {
        left: 100px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .coin-display-main {
        left: 80px;
    }
}

 @media (hover: none) and (pointer: coarse) {
    body { cursor: auto; }
    .cursor, .cursor-dot { display: none !important; }
}

 .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(12,20,69,0.85), rgba(12,20,69,0.98));
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,212,163,0.15);
    z-index: 200;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255,236,210,0.65);
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:active {
    background: rgba(255,212,163,0.15);
    transform: scale(0.92);
}

.mobile-nav-icon {
    font-size: 22px;
    line-height: 1;
}

.mobile-nav-label {
    font-size: 10px;
    letter-spacing: 1px;
}

@media (hover: none) and (pointer: coarse) and (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }
        .game-hint {
        bottom: 70px;
    }
    .hidden-corner {
        bottom: 75px;
    }
    .datetime-display {
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    .score-board {
        top: 12px;
        left: 12px;
        font-size: 12px;
    }
    .score-board span {
        font-size: 18px;
    }
    .crescent-moon {
        width: 50px;
        height: 50px;
        top: 18px;
        right: 18px;
        box-shadow: 10px 10px 0 0 #ffecd2;
    }
    .audio-control {
        right: 80px;
        top: 18px;
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .datetime-display {
        bottom: 70px;
        right: 12px;
        font-size: 9px;
    }
    .datetime-display .time {
        font-size: 16px;
    }
    #achievement {
        font-size: 13px;
        padding: 10px 20px;
        letter-spacing: 1px;
    }
    .hidden-corner {
        width: 50px;
        height: 50px;
        bottom: 75px;
        left: 10px;
    }
    .hidden-corner-icon {
        font-size: 22px;
    }
    .game-hint {
        bottom: 70px;
        font-size: 11px;
        letter-spacing: 2px;
    }
}
