:root {
    --map-accent: #e8d44d;
    --map-accent2: #4db8e8;
    --map-red: #e84d4d;
}
a { color: inherit; text-decoration: none; }

.wizard-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    padding: 32px;
}

/* ドロップゾーン */
#drop-zone {
    border: 2px dashed #ced4da;
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    transition: all .2s;
    cursor: pointer;
}
#drop-zone.dragover { border-color: var(--map-accent2); background: #f0f9ff; }
#drop-zone.loaded   { border-color: #198754; background: #f0fff4; }

/* プログレス */
.progress-steps { display: flex; align-items: center; margin-bottom: 28px; }
.progress-step  { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.progress-step:not(:last-child)::after {
    content: ''; position: absolute; top: 16px; left: 50%;
    width: 100%; height: 2px; background: #dee2e6; z-index: 0;
}
.progress-step.done:not(:last-child)::after { background: var(--map-accent2); }
.progress-step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: #dee2e6; color: #6c757d;
    font-size: .78rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1; transition: all .2s;
}
.progress-step.done    .progress-step-dot { background: var(--map-accent2); color: #fff; }
.progress-step.current .progress-step-dot { background: var(--map-accent); color: #1a1a1a; }
.progress-step-label { font-size: .65rem; color: #adb5bd; margin-top: 4px; text-align: center; white-space: nowrap; }
.progress-step.current .progress-step-label { color: #495057; font-weight: 600; }
.progress-step.done    .progress-step-label { color: var(--map-accent2); }

/* サマリー */
.selection-summary {
    background: #f8f9fa; border-radius: 8px;
    padding: 10px 14px; margin-bottom: 20px;
    font-size: .82rem; color: #6c757d;
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 40px;
}
.selection-badge {
    background: #e8f4fd; border: 1px solid #b8dff7;
    border-radius: 4px; color: #2980b9;
    font-size: .78rem; padding: 2px 8px; font-weight: 600;
}

/* ステップアニメ */
.step-section { display: none; }
.step-section.active { display: block; animation: fadeUp .2s ease; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 選択ボタン */
.choice-grid { display: grid; gap: 10px; margin-bottom: 20px; }
.choice-grid.col-2 { grid-template-columns: repeat(2, 1fr); }
.choice-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid.col-4 { grid-template-columns: repeat(4, 1fr); }
.choice-grid.col-5 { grid-template-columns: repeat(5, 1fr); }
.choice-btn {
    background: #fff; border: 2px solid #dee2e6; border-radius: 10px;
    color: #495057; cursor: pointer; font-size: .95rem; font-weight: 600;
    padding: 14px 10px; text-align: center; transition: all .15s; user-select: none;
}
.choice-btn:hover:not(:disabled) { border-color: var(--map-accent); background: #fffde8; color: #856404; }
.choice-btn.selected { border-color: var(--map-accent); background: #fff9c4; color: #533f03; }
.choice-btn:disabled { opacity: .35; cursor: not-allowed; background: #f8f9fa; }

/* コンパス */
.compass-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.compass-grid { display: grid; grid-template-columns: repeat(3, 72px); grid-template-rows: repeat(3, 72px); gap: 6px; }
.compass-btn {
    background: #fff; border: 2px solid #dee2e6; border-radius: 8px;
    color: #495057; cursor: pointer; font-size: .95rem; font-weight: 700; transition: all .15s;
}
.compass-btn:hover   { border-color: var(--map-red); background: #fde8e8; color: #842029; }
.compass-btn.selected{ border-color: var(--map-red); background: #f8d7da; color: #58151c; }
.compass-center {
    background: #f8f9fa; border: 2px dashed #ced4da; border-radius: 8px;
    color: #adb5bd; font-size: .7rem; display: flex; align-items: center; justify-content: center;
}
.compass-empty { background: transparent; border: none; }

/* 結果カード */
.result-card { border: 2px solid #dee2e6; border-radius: 10px; overflow: hidden; cursor: pointer; transition: all .15s; }
.result-card:hover { border-color: var(--map-accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.result-card img { width: 100%; display: block; }
.result-card-label {
    padding: 8px 12px; font-size: .78rem; color: #6c757d;
    border-top: 1px solid #dee2e6; background: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.treasure-badge {
    display: inline-block; background: #fff9c4; border: 1px solid var(--map-accent);
    border-radius: 3px; color: #533f03; font-size: .68rem;
    padding: 0 5px; margin-right: 4px; font-weight: 700; vertical-align: middle;
}
#mapModal .modal-body { padding: 0; }
#mapModal .modal-body img { width: 100%; display: block; }
