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

body {
    margin: 0;
    overflow: hidden;
    background: #070b14;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    position: relative;
}

canvas {
    display: block;
    cursor: grab;
    position: absolute;
    top: 0;
    left: 0;
    outline: none;
}

canvas:active {
    cursor: grabbing;
}

#bottom-ui {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: clamp(28px, 5vh, 56px);
    pointer-events: none;
    z-index: 5;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

#bottom-ui .rotate-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.6);
}

#bottom-ui .rotate-icon .moon-emoji {
    font-size: 30px;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

#bottom-ui .hint-text {
    color: #ffe4b5;
    font-size: clamp(15px, 2.5vw, 19px);
    letter-spacing: 3px;
    text-align: center;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6), 0 0 20px rgba(255, 215, 0, 0.3);
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #99aacc;
    font-size: 13px;
    letter-spacing: 2px;
    z-index: 20;
    pointer-events: none;
    font-weight: 300;
    transition: opacity 0.5s;
}

/* 诗句容器 */
.poem-column {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 42px;
    letter-spacing: 0;
    line-height: 1.9;
    color: #ffd700;
    font-weight: 500;
    font-family: '字魂手书体', 'ZihunShoushu', 'Ma Shan Zheng', 'KaiTi', 'STKaiti', '楷体', cursive;
    text-shadow: 0 0 20px rgba(255,215,0,0.9), 0 0 40px rgba(255,180,0,0.7), 0 0 80px rgba(255,150,0,0.5);
    white-space: nowrap;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: rgba(10, 16, 32, 0.92);
    border: 1px solid rgba(200, 180, 140, 0.6);
    border-radius: 18px;
    padding: 30px 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(200,180,140,0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.poem-column::before {
    content: '🌕';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255,215,0,0.9);
    writing-mode: horizontal-tb;
}

.poem-column.left {
    left: 8vw;
}

.poem-column.right {
    right: 8vw;
}

.poem-column.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .poem-column {
        font-size: 26px;
        padding: 20px 10px;
    }
    .poem-column::before {
        font-size: 20px;
        top: -20px;
    }
    .poem-column.left {
        left: 5vw;
    }
    .poem-column.right {
        right: 5vw;
    }
    #bottom-ui .rotate-icon {
        width: 44px;
        height: 44px;
    }
    #bottom-ui .rotate-icon .moon-emoji {
        font-size: 24px;
    }
}