
:root {
    --main-pink: #ffafcc;
    --soft-pink: #ffc2d1;
    --warm-yellow: #ffe5ec;
    --text-brown: #5d4037;
    --wood-dark: #8b4513;
    --wood-light: #deb887;
    --apple-font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--apple-font);
    background-color: #fff0f3;
    color: var(--text-brown);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

#language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#lang-select {
    padding: 8px 12px;
    border-radius: 20px;
    border: 2px solid var(--soft-pink);
    background: white;
    color: var(--text-brown);
    font-weight: bold;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 10px rgba(255, 175, 204, 0.2);
}

.container {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(255, 175, 204, 0.4);
    max-width: 650px;
    width: 90%;
    text-align: center;
    border: 8px solid var(--soft-pink);
    position: relative;
    margin: 40px 0;
}

.input-section {
    margin: 40px 0;
    text-align: left;
}

#label-concern {
    display: block;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ff758f;
    padding-left: 10px;
}

#concern-input {
    width: 100%;
    height: 150px;
    padding: 20px;
    border-radius: 25px;
    border: 3px solid var(--warm-yellow);
    background-color: #fffafb;
    font-family: var(--apple-font);
    font-size: 1.1em;
    color: var(--text-brown);
    resize: none;
    box-sizing: border-box;
    transition: 0.3s;
    outline: none;
}

#concern-input:focus {
    border-color: var(--soft-pink);
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 175, 204, 0.2);
}

#start-button, #retry-button {
    background: linear-gradient(135deg, #ff8fa3, #ffb3c1);
    color: white; border: none; padding: 18px 50px;
    border-radius: 40px; font-size: 1.3em; font-weight: bold;
    cursor: pointer; box-shadow: 0 8px 20px rgba(255, 143, 163, 0.4);
    transition: 0.3s;
}

/* 나무통 및 작대기 푱! 애니메이션 */
.sticks-box-container {
    width: 160px; height: 200px; margin: 0 auto 40px;
    position: relative; cursor: pointer;
}

.sticks-box-image {
    width: 100%; height: 100%;
    background-color: var(--wood-dark);
    border-radius: 5px 5px 50px 50px;
    position: absolute; bottom: 0; z-index: 10;
    border: 5px solid #5d2906;
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.4);
}

/* 튀어나오는 작대기 */
.popping-stick {
    position: absolute;
    width: 12px; height: 150px;
    background-color: var(--wood-light);
    border: 2px solid #8b4513;
    border-radius: 4px;
    left: 50%; bottom: 80px;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0;
}

.pop-anim {
    animation: stick-pop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stick-pop {
    0% { transform: translateX(-50%) translateY(0); opacity: 0; }
    20% { opacity: 1; }
    50% { transform: translateX(-50%) translateY(-180px) rotate(10deg); }
    80% { transform: translateX(-50%) translateY(-160px) rotate(5deg); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-160px) rotate(5deg); opacity: 0; }
}

#divination-view {
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#drawn-lines-container {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: center;
    margin-top: 30px;
}

.yao-line {
    width: 160px; height: 18px; border-radius: 9px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.yao-yang { background-color: #ff4d6d; }
.yao-yin {
    background: linear-gradient(to right, #ff758f 45%, transparent 45%, transparent 55%, #ff758f 55%);
}

/* 결과 강아지 256px */
.dog-pixel-art {
    width: 256px; height: 256px;
    margin: 0 auto 15px;
    background: #fff;
    border-radius: 40px;
    border: 8px solid var(--warm-yellow);
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.breed-label { font-size: 1.1em; color: #ff758f; font-weight: bold; margin-bottom: 20px; }

#hexagram-shape-display {
    display: flex; flex-direction: column-reverse;
    gap: 8px; align-items: center; margin: 30px 0;
    padding: 20px; background: #fffafb; border-radius: 25px;
}

.mini-yao { width: 100px; height: 12px; border-radius: 6px; }
.mini-yao.yao-yin {
    background: linear-gradient(to right, #ff758f 42%, transparent 42%, transparent 58%, #ff758f 58%);
}

.interpretation-section { text-align: left; font-size: 1.15em; line-height: 1.9; }
.interpretation-section p { margin-bottom: 30px; }

.hidden { display: none !important; }

/* 강아지 디테일 애니메이션 */
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes ear-move { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes tail-wag { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(15deg); } }
