/* style.css */

/* 기본 테마 컬러 정의 (사막 스타일) */
:root {
    --bg-dark: #0f0a06;
    --sand-primary: #e6a15c;
    --sand-light: #f7d08a;
    --sand-dark: #b86b26;
    --gold: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.4);
    --oasis-blue: #00adb5;
    --oasis-glow: rgba(0, 173, 181, 0.4);
    --glass-bg: rgba(26, 17, 10, 0.7);
    --glass-border: rgba(230, 161, 92, 0.2);
    --text-main: #fcf8f2;
    --text-muted: #d4c3b3;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* 초기화 & 기본 설정 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(circle at 50% 50%, #20140b 0%, #0f0a06 100%);
}

#app-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

/* 헤더 영역 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 20px;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--sand-light), var(--sand-primary), var(--sand-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(230, 161, 92, 0.15);
}

.desert-icon {
    font-size: 1.8rem;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.stats-panel {
    display: flex;
    gap: 15px;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 110px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--sand-primary);
}

#gold-display::before {
    background: var(--gold);
}

.stat-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

#gold-display .stat-value {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 메인 레이아웃 */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    height: calc(100% - 100px);
}

.game-viewport {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
    background: #140d07; /* 어두운 밤 사막 배경색으로 변경 */
}

#desert-canvas {
    margin: auto;
    display: block;
    cursor: crosshair;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(230, 161, 92, 0.2);
}

/* 금속탐지기 HUD Overlay */
.detector-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 10, 6, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px;
    width: 220px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.detector-overlay.active {
    opacity: 1;
    transform: translateY(0);
}

.detector-radar {
    height: 60px;
    background: #081e10;
    border: 1px solid #145a2d;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.radar-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00ff66;
    opacity: 0.7;
    animation: radar-sweep 2s linear infinite;
    box-shadow: 0 0 8px #00ff66;
}

@keyframes radar-sweep {
    0% { top: 0%; }
    100% { top: 100%; }
}

.signal-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00ff66;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00ff66;
    opacity: 0;
}

.detector-level {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detector-level .label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: #00ff66;
    letter-spacing: 1px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff66, #ffcc00);
    transition: width 0.1s ease;
}

/* 모래바람 오버레이 */
.sandstorm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, rgba(230,161,92,0) 0%, rgba(230,161,92,0.15) 50%, rgba(230,161,92,0) 100%);
    transition: opacity 1s ease;
}

.sandstorm-active {
    animation: sandstorm-shift 3s linear infinite;
    opacity: 1;
}

@keyframes sandstorm-shift {
    0% { background-position: -200px 0; }
    100% { background-position: 1200px 0; }
}

/* 알림 배너 */
.toast-notification {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(230, 161, 92, 0.95);
    color: #000;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 하단 컨트롤 패널 */
.controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 25px;
    border-radius: 18px;
    box-shadow: var(--shadow-premium);
}

/* 도구 선택 버튼들 */
.tool-selector {
    display: flex;
    gap: 12px;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(230, 161, 92, 0.1);
    color: var(--text-muted);
    border-radius: 12px;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-btn .btn-icon {
    font-size: 1.3rem;
}

.tool-btn .btn-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.tool-btn:hover {
    background: rgba(230, 161, 92, 0.15);
    color: var(--text-main);
    transform: translateY(-2px);
}

.tool-btn.active {
    background: var(--sand-primary);
    border-color: var(--sand-light);
    color: #0f0a06;
    box-shadow: 0 0 15px rgba(230, 161, 92, 0.4);
}

.tool-btn.active .btn-icon {
    transform: scale(1.1);
}

/* 액션 버튼 그룹 */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.03);
}

.action-btn.secondary {
    border-color: var(--sand-dark);
    color: var(--sand-light);
}

.action-btn.secondary:hover {
    background: rgba(184, 107, 38, 0.2);
}

/* 모달 레이아웃 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(26, 17, 10, 0.95);
    border: 1px solid var(--sand-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--sand-light);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 25px;
}

/* 상점 그리드 */
.shop-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shop-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
}

.shop-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--sand-primary);
}

.item-icon {
    font-size: 2.2rem;
    background: rgba(230, 161, 92, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.item-info .desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.item-cost {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--gold);
    font-weight: 700;
}

.buy-btn {
    background: var(--sand-primary);
    border: none;
    color: #0f0a06;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.buy-btn:hover {
    background: var(--sand-light);
    transform: translateY(-2px);
}

.buy-btn.owned {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: default;
    pointer-events: none;
}

/* 도감 UI */
.museum-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    color: var(--sand-light);
}

#museum-progress-fill {
    background: linear-gradient(90deg, var(--sand-primary), var(--gold));
    width: 0%;
}

.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
}

.museum-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.museum-card.locked {
    filter: grayscale(1) opacity(0.4);
}

.museum-card.unlocked {
    background: rgba(230, 161, 92, 0.05);
    border-color: rgba(230, 161, 92, 0.25);
    box-shadow: 0 4px 15px rgba(230,161,92,0.05);
}

.museum-card.unlocked:hover {
    transform: translateY(-4px);
    border-color: var(--sand-primary);
}

.card-icon {
    font-size: 2.2rem;
}

.card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.museum-card.unlocked .card-name {
    color: var(--text-main);
}

.card-tier {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tier-common { background: #555; color: #fff; }
.tier-rare { background: #145a2d; color: #00ff66; }
.tier-legendary { background: #5e1c80; color: var(--gold); box-shadow: 0 0 8px rgba(255,215,0,0.3); }

/* ==========================================================================
   난이도 레벨 시스템 & 타이머 스타일
   ========================================================================== */

/* 타이머 HUD Overlay */
.timer-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(15, 10, 6, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 18px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-premium);
    z-index: 10;
}

.timer-icon {
    font-size: 1.2rem;
    animation: spin-pulse 2s infinite ease-in-out;
}

@keyframes spin-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.timer-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff4a4a;
    text-shadow: 0 0 10px rgba(255, 74, 74, 0.4);
}

/* 난이도 레벨 선택 그리드 */
.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
}

.level-card {
    background: rgba(26, 17, 10, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.level-card.locked {
    filter: grayscale(1) opacity(0.5);
    cursor: not-allowed;
}

.level-card:not(.locked):hover {
    transform: translateY(-3px);
    border-color: var(--sand-primary);
    background: rgba(230, 161, 92, 0.08);
    box-shadow: 0 4px 15px rgba(230, 161, 92, 0.1);
}

.level-card.active {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.level-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.level-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.level-card.active .level-card-title {
    color: var(--gold);
}

.level-card-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.badge-tutorial { background: #00adb5; color: #fff; }
.badge-normal { background: #e6a15c; color: #fff; }
.badge-hard { background: #d9534f; color: #fff; }
.badge-legend { background: #5e1c80; color: var(--gold); }

.level-card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    font-size: 0.75rem;
    color: var(--text-muted);
    gap: 4px;
}

.level-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(230, 161, 92, 0.1);
    padding-top: 6px;
    margin-top: 4px;
}

.level-card-status {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* 레벨 클리어 모달 특화 스타일 */
.clear-modal-content {
    max-width: 420px;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 20, 10, 0.9) 0%, rgba(15, 10, 5, 0.95) 100%);
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.25), var(--shadow-premium);
    animation: scale-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scale-up {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.clear-modal-header {
    justify-content: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding-bottom: 15px;
}

.clear-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    letter-spacing: 2px;
}

.clear-emoji {
    font-size: 3.5rem;
    display: inline-block;
    animation: bounce-rotate 2s infinite ease-in-out;
}

@keyframes bounce-rotate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(15deg); }
}

.clear-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-top: 15px;
    color: var(--text-main);
}

.clear-msg {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.clear-rewards {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.reward-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.05);
}

.reward-box .reward-icon {
    font-size: 1.8rem;
}

.reward-box .reward-val {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.reward-box .reward-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.clear-prompt {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.clear-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clear-btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn.primary {
    background: linear-gradient(135deg, var(--gold), #e6a15c);
    color: #0f0a06;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.clear-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.45);
}

.clear-btn.secondary {
    background: rgba(230, 161, 92, 0.1);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.clear-btn.secondary:hover {
    background: rgba(230, 161, 92, 0.2);
}

/* 모바일 지원 반응형 디자인 */
@media (max-width: 768px) {
    #app-container {
        padding: 10px;
    }
    header {
        padding: 5px 0 10px;
    }
    .logo h1 {
        font-size: 1.4rem;
    }
    .stats-panel {
        gap: 8px;
    }
    .stat-box {
        min-width: 85px;
        padding: 6px 12px;
    }
    .stat-icon {
        font-size: 1.1rem;
        left: 8px;
    }
    .stat-value {
        font-size: 1rem;
    }
    .controls-panel {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .tool-selector {
        width: 100%;
        justify-content: space-between;
    }
    .tool-btn {
        padding: 8px 12px;
        flex: 1;
        justify-content: center;
    }
    .tool-btn .btn-text {
        display: none;
    }
    .action-buttons {
        width: 100%;
    }
    .action-btn {
        flex: 1;
        text-align: center;
        padding: 8px;
    }
}

/* 미니맵 UI 스타일 */
.minimap-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 10, 6, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 10px;
    width: 200px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    user-select: none;
    z-index: 10;
}

.minimap-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.minimap-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.minimap-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.minimap-toggle-btn:hover {
    color: var(--sand-primary);
}

/* collapsed state */
.minimap-overlay.collapsed {
    width: auto;
}

.minimap-overlay.collapsed .minimap-container {
    display: none;
}

.minimap-container {
    position: relative;
    width: 100%;
    height: 100px;
    background: #090604;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(230, 161, 92, 0.15);
}

#minimap-canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
}

.minimap-viewport {
    position: absolute;
    border: 1.5px solid #ff4a4a;
    background: rgba(255, 74, 74, 0.15);
    box-shadow: 0 0 4px rgba(255, 74, 74, 0.5);
    cursor: move;
    box-sizing: border-box;
}

/* 드래그 상태 커서 */
.dragging {
    cursor: grabbing !important;
}
.panning-mode {
    cursor: grab !important;
}

/* 가이드 모달 특화 스타일 */
.guide-modal-content {
    max-width: 580px;
    background: linear-gradient(135deg, rgba(30, 20, 10, 0.96) 0%, rgba(15, 10, 5, 0.98) 100%);
    border: 2px solid var(--sand-primary);
    box-shadow: 0 0 30px rgba(230, 161, 92, 0.2), var(--shadow-premium);
}

.guide-welcome {
    text-align: center;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    background: rgba(230, 161, 92, 0.05);
    border-radius: 12px;
    padding: 15px;
    border: 1px dashed rgba(230, 161, 92, 0.2);
}

.guide-section {
    margin-bottom: 20px;
}

.guide-section h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--sand-light);
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(230, 161, 92, 0.15);
    padding-bottom: 6px;
}

.guide-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.guide-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.guide-tool-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(230, 161, 92, 0.15);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-card-icon {
    font-size: 1.8rem;
    background: rgba(230, 161, 92, 0.08);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.tool-card-info h4 {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.tool-card-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.guide-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.guide-actions .clear-btn {
    width: 100%;
    max-width: 300px;
}

@media (max-width: 768px) {
    .guide-tools-grid {
        grid-template-columns: 1fr;
    }
}
