/* game7.css - 青鳥雲梯 (Flappy Poetry) */

.game7-overlay {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    background: linear-gradient(to bottom, hsl(210, 72%, 80%) 25%, hsl(30, 36%, 50%) 100%);
    color: hsl(40, 50%, 80%);
    font-family: 'Noto Serif TC', serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    position: relative;
}

.game7-header {
    padding: 4px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: hsla(210, 100%, 50%, 0.5);
    z-index: 100;
    width: 100%;
    height: 50px;
    /*backdrop-filter: blur(5px);*/
}

/* 分數看板 */
.game7-score-board {
    color: hsl(50, 70%, 60%);
    font-size: 24px;
    font-weight: bold;
    padding-left: 50px;
}

/* 控制按鈕組 */
.game7-controls {
    display: flex;
    gap: 10px;
}

.game7-controls .nav-btn {
    padding: 0px 10px;
    background: hsl(210, 60%, 33%);
    border: 0.6px solid hsla(40, 100%, 80%, 0.3);
    color: hsl(45, 80%, 70%);
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game7-controls .nav-btn:hover {
    background: hsl(210, 60%, 66%);
    box-shadow: 0 0 10px hsla(210, 60%, 66%, 0.5);
}

.game7-controls .nav-btn:disabled {
    background: hsl(210, 0%, 33%);
    color: hsl(45, 0%, 70%);
}

/* 難度標籤 */
.game7-difficulty-tag {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 20px;
    color: hsl(45, 30%, 85%);
    border: 1px solid hsla(180, 80%, 60%, 0.3);
    z-index: 80;
    cursor: pointer;
    transition: all 0.2s;
}

.game7-difficulty-tag[data-level="小學"] {
    background: linear-gradient(135deg, hsl(100, 40%, 40%) 0%, hsl(120, 40%, 30%) 100%);
}

.game7-difficulty-tag[data-level="中學"] {
    background: linear-gradient(135deg, hsl(210, 40%, 50%) 0%, hsl(230, 40%, 40%) 100%);
}

.game7-difficulty-tag[data-level="高中"] {
    background: linear-gradient(135deg, hsl(0, 50%, 50%) 0%, hsl(0, 50%, 35%) 100%);
}

.game7-difficulty-tag[data-level="大學"] {
    background: linear-gradient(135deg, hsl(290, 50%, 50%) 0%, hsl(270, 50%, 35%) 100%);
}

.game7-difficulty-tag[data-level="研究所"] {
    background: linear-gradient(135deg, hsl(50, 80%, 50%) 0%, hsl(40, 80%, 35%) 100%);
}

.game7-difficulty-tag:hover {
    box-shadow: 0 0px 8px rgba(255, 255, 255, 0.9);
    filter: brightness(1.5);
}

/* 生命值列 */
.game7-sub-header {
    display: flex;
    justify-content: center;
    align-items: center;
    /* 垂直居中 */
    background: rgba(0, 0, 0, 0.4);
    z-index: 9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    height: 40px;
}

.game7-hearts {
    display: flex;
    gap: 2px;
    justify-content: center;
    flex-wrap: wrap;
}

.game7-hearts .heart {
    color: hsl(4, 90%, 60%);
    font-size: 32px;
}

.game7-heart.empty {
    opacity: 0.2;
    filter: grayscale(1);
}

/* 遊戲核心區域 */
.game7-area {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: none;
    background: transparent;
}

#game7-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* 雲海背景層 */
.game7-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: background 2s ease;
}

/* 不同時段的雲色 */
.bg-morning {
    background: linear-gradient(to bottom, hsla(45, 100%, 50%, 0.05), hsla(30, 100%, 50%, 0.1));
}

.bg-afternoon {
    background: linear-gradient(to bottom, hsla(210, 100%, 50%, 0.05), hsla(200, 100%, 50%, 0.1));
}

.bg-evening {
    background: linear-gradient(to bottom, hsla(20, 100%, 50%, 0.05), hsla(10, 100%, 50%, 0.1));
}

/* 詩詞資訊 (顯示目前詩名) */
.game7-poem-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 80;
    text-align: right;
    pointer-events: none;
}

.game7-poem-name {
    font-size: 20px;
    color: hsl(45, 50%, 80%);
    opacity: 1;
}

/* 計時器圓環 */
#game7-timer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#game7-timer-path {
    fill: none;
    stroke: hsla(220, 90%, 60%, 0.72);
    stroke-width: 6;
    stroke-dasharray: 2000;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}



/* .game7-message Styles Removed - Using Unified GameMessage Component */

/* 點擊回饋：印章效果 */
@keyframes stamp-press {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.stamped {
    animation: stamp-press 0.2s ease-out;
}

/* 雲朵動畫 */
@keyframes cloud-drift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100px);
    }
}

.cloud-particle {
    position: absolute;
    opacity: 0.4;
    filter: blur(20px);
    border-radius: 50%;
    background: white;
    pointer-events: none;
}

.hidden {
    display: none !important;
}