.tee-draw-page {
    max-width: 1180px;
    margin: 0 auto;
}

.tee-draw-card {
    padding: 24px;
}

/* 상단 컨트롤 */
.tee-draw-control {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
    margin-bottom: 22px;
}

.tee-control-text h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.tee-control-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #64748b;
}

.tee-control-actions {
    min-width: 0;
}

.tee-player-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tee-player-btn {
    height: 44px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.tee-player-btn:hover {
    background: #f1f5f9;
}

.tee-player-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.tee-custom-box {
    display: none;
    margin-top: 14px;
}

.tee-custom-box.active {
    display: block;
}

.tee-draw-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tee-draw-btn-row .utility-btn {
    min-width: 112px;
    height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
}

.tee-draw-btn-row .utility-btn-primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.tee-draw-message {
    min-height: 22px;
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #475569;
}

.tee-draw-message.is-error {
    color: #dc2626;
}

.tee-draw-message.is-success {
    color: #2563eb;
}

/* 게임 영역 */
.tee-draw-game {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

.tee-game-head,
.tee-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.tee-game-head strong,
.tee-result-head strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.tee-game-head p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

#teeOpenCount {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
}

/* 뽑기 스테이지 */
.tee-stick-stage {
    min-height: 430px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    padding: 32px 26px;
}

.tee-empty {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.tee-stick-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 34px 20px;
    align-items: end;
    justify-items: center;
}

.tee-stick {
    position: relative;
    width: 128px;
    height: 305px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.tee-stick:disabled {
    cursor: default;
}

.tee-stick-card {
    position: absolute;
    left: 50%;
    top: 0;
    width: 98px;
    height: 245px;
    transform: translateX(-50%);
    background-image: url("/static/blog/utility/golf/img/tee-draw-stick.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
    border: 0;
    box-shadow: none;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.tee-stick-card::before,
.tee-stick-card::after {
    content: none !important;
    display: none !important;
}

/* 결과 라벨 */
.tee-stick-number {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: auto;
    min-width: 92px;
    min-height: 0;
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
    padding: 9px 14px;
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.tee-stick-order {
    display: inline;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
}

.tee-stick-label {
    display: inline;
    margin-left: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.tee-stick.is-shaking .tee-stick-card {
    animation: teeShake 0.42s ease;
}

@keyframes teeShake {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }
    20% {
        transform: translateX(-50%) rotate(-6deg);
    }
    40% {
        transform: translateX(-50%) rotate(6deg);
    }
    60% {
        transform: translateX(-50%) rotate(-4deg);
    }
    80% {
        transform: translateX(-50%) rotate(4deg);
    }
}

.tee-stick.is-open .tee-stick-card {
    transform: translateX(-50%) translateY(-34px) scale(1.04);
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.12));
}

.tee-stick.is-open .tee-stick-number {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 결과 영역 */
.tee-result-wrap {
    margin-top: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

.tee-result-list {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    font-size: 14px;
    line-height: 1.9;
}

.tee-result-list li {
    padding: 3px 0;
}

.tee-mini-btn {
    border: 1px solid #dbe3ec;
    background: #ffffff;
    color: #475569;
    border-radius: 12px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.tee-mini-btn:hover {
    background: #f8fafc;
}

/* 도움말 */
.help-panel {
    margin-top: 32px;
}

.help-panel .help-box + .help-box {
    margin-top: 18px;
}

/* 반응형 */
@media (max-width: 860px) {
    .tee-draw-control {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tee-draw-card {
        padding: 18px;
    }

    .tee-player-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .tee-draw-btn-row {
        flex-direction: column;
    }

    .tee-draw-btn-row .utility-btn {
        width: 100%;
    }

    .tee-stick-stage {
        padding: 24px 16px;
    }

    .tee-stick-board {
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
        gap: 26px 12px;
    }

    .tee-stick {
        width: 96px;
        height: 260px;
    }

    .tee-stick-card {
        width: 76px;
        height: 205px;
    }

    .tee-stick-number {
        min-width: 78px;
        padding: 8px 10px;
    }

    .tee-empty {
        min-height: 240px;
    }
}