:root {
    --wind-particle-color: var(--base-text-color);
    --wind-particle-count: 3;
}

#windCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}


.critique-container {
    padding-top: 150px;
    max-width: 800px;
    margin: 0 auto;
}

.drop-zone-container {
    border: 2px dashed var(--base-text-color-soft);
    background-color: var(--base-text-color-transparent);
    padding: 40px 40px 20px 40px;
    width: 100%;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

/* アイコンやテキストはドラッグイベントに関与させない */
.drop-zone-icon, .drop-zone-icon-wrapper, .drop-zone-container p {
    pointer-events: none;
}

/* ボタンのみ明示的にクリック可能にする */
.drop-zone-container button {
    pointer-events: auto;
}

.drop-zone-icon {
    fill: var(--base-text-color-soft);
}

.drop-zone-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.drop-zone-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    pointer-events: none;
}


.drop-zone-container.drag-over {
    border-color: var(--base-text-color);
    background-color: var(--base-text-color-soft);
    color: var(--base-bg-color);
    transform: scale(1.05);
    animation: pulse-drop-zone 1s infinite ease-in-out;
}

.drop-zone-container.drag-over .drop-zone-icon {
    fill: var(--base-bg-color);
}

@keyframes pulse-drop-zone {
    0%, 100% { box-shadow: 0 0 10px var(--base-text-color-soft); transform: scale(1.05); }
    50% { box-shadow: 0 0 60px 10px var(--base-text-color); transform: scale(1.08); }
}

/* ボタン設定を統合 */
.drop-zone-container button, #submit-critique, #reset-critique {
    pointer-events: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--base-text-color);
    color: var(--base-text-color);
    cursor: pointer;
    transition: 0.3s;
}

.drop-zone-container button:hover, #submit-critique:hover, #reset-critique:hover {
    background: var(--base-text-color-soft);
    color: var(--base-bg-color);
}

.preview-area-container img {
    text-align: center;
    cursor: pointer;
    max-width: 100%;
}

.preview-area-container {
    border-bottom: 1px solid var(--base-text-color);
}

.critique-result-display {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

#critique-result {
    display: block;
    padding-top: 15px;
    padding-bottom: 120px;
    margin: 0;
    line-height: normal;
}

#critique-result p {
    margin: 0;
    padding: 0;
    line-height: normal;
}
/* ロード表示コンテナの高さを最小化する */
.loading-container {
    text-align: center;
    margin: 0;
    padding: 10px 0; /* 必要最低限の余白にする */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto; /* 固定高を避ける */
}

.loading-container p {
    margin: 0;
    padding: 0;
    line-height: 1; /* 行間を詰める */
}

.line-animation-container {
    display: inline-block;
    margin-top: 5px;
    width: 300px;
    height: 40px;
    overflow: hidden;
}

#lineCanvas {
    display: block;
}

/* 進捗バーのコンテナの余白を縮小 */
.progress-bar-container {
    width: 300px;
    height: 6px;
    background-color: var(--base-text-color-transparent);
    margin: 10px auto 0 auto; /* 下に余裕を持たせすぎない */
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}




.progress-bar-fill {
    height: 100%;
    background-color: var(--base-text-color-soft);
    width: 40%;
    position: absolute;
    animation: progress-slide 1.5s infinite linear;
    left: 0;
    top: 0;
}

@keyframes progress-slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(300px); }
}


@keyframes progress-slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(300px); }
}

/* A, S, SSランク用煌めきアニメーション */
.sparkle-rank {
    animation: sparkle-effect 2s infinite ease-in-out;
    color: #ffd700;
    font-weight: 600;
    /* ランク表示背景自体にゴールドの輝きを付与 */
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    padding: 10px;
    border-radius: 50%;
}

@keyframes sparkle-effect {
    0%, 100% { transform: scale(1); opacity: 1; text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { transform: scale(1.05); opacity: 0.9; text-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

/* S, SSランクの追加装飾 */
.sparkle-rank-high {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.7);
    position: relative;
}

/* 30個の星パーツのスタイル */
.sparkle-star {
    content: '★';
    position: absolute;
    font-family: sans-serif;
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #ffd700;
    opacity: 0;
    pointer-events: none;
    animation: random-twinkle 9s infinite ease-in-out;
}

@keyframes random-twinkle {
    0%, 20%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
    10% { opacity: 1; transform: scale(1) rotate(45deg); }
}

