/* Hit Quests — creator treasure maps */

.hq-hero {
    padding: 16px 18px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hq-prize {
    color: #c4a35a;
    font-weight: 700;
}

.hq-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(95, 208, 255, 0.15);
    color: #5fd0ff;
}

.hq-quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.hq-quest-card {
    padding: 14px 16px;
}

.hq-quest-card-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.hq-quest-card-head a {
    color: inherit;
    text-decoration: none;
    font-weight: 800;
}

.hq-quest-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hq-empty {
    padding: 20px;
    text-align: center;
}

.hq-map-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 16px;
}

.hq-map-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #3d2b1f;
}

.hq-map-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hq-map-path {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hq-map-path polyline {
    fill: none;
    stroke: #8b4513;
    stroke-width: 0.8;
    stroke-dasharray: 2 1.5;
    stroke-linecap: round;
    opacity: 0.85;
}

.hq-map-markers {
    position: absolute;
    inset: 0;
}

.hq-map-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    border: 2px solid #5c3d1e;
    background: #f4e4bc;
    color: #5c3d1e;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hq-map-node.done {
    background: #7bc96f;
    border-color: #2d6a2d;
    color: #fff;
}

.hq-map-node.active {
    background: #ffd166;
    border-color: #c47f17;
    animation: hq-pulse 1.2s ease-in-out infinite;
}

.hq-map-node.locked {
    opacity: 0.35;
    filter: grayscale(0.4);
}

.hq-map-x {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

@keyframes hq-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

.hq-start-card,
.hq-active-step {
    padding: 16px 18px;
    margin-bottom: 16px;
}

.hq-step-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(196, 163, 90, 0.2);
    color: #c4a35a;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.hq-pattern-readout {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hq-num-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    background: #1a2438;
    border: 1px solid #23314d;
    font-weight: 700;
    font-size: 0.88rem;
}

.hq-submit-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.hq-celebrate {
    text-align: center;
    padding: 28px 20px;
    margin-bottom: 16px;
    background: linear-gradient(180deg, rgba(196, 163, 90, 0.15), transparent);
}

.hq-celebrate-pending {
    background: linear-gradient(180deg, rgba(95, 208, 255, 0.12), transparent);
}

.hq-celebrate-art {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 8px;
}

.hq-trail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.hq-trail-item {
    margin: 0;
}

.hq-trail-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hq-trail-item figcaption {
    font-size: 0.78rem;
    margin-top: 4px;
    color: var(--soc-muted, #65676b);
}

.hq-review-run {
    padding: 16px 18px;
    margin-bottom: 14px;
}

.hq-review-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.hq-review-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hq-map-preview-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hq-map-preview {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #3d2b1f url("/images/features/treasure-map.svg") center/cover no-repeat;
}

.hq-library-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.hq-library-modal.hidden {
    display: none;
}

.hq-library-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.hq-library-panel {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    max-height: 80vh;
    overflow: auto;
    padding: 16px;
}

.hq-library-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hq-library-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 50vh;
    overflow: auto;
}

.hq-library-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #23314d;
    background: #111826;
    color: inherit;
    cursor: pointer;
}

.hq-library-item:hover,
.hq-library-item.selected {
    border-color: #5fd0ff;
    background: #1a2438;
}

.hq-instruction-box {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(196, 163, 90, 0.12);
    border: 1px solid rgba(196, 163, 90, 0.25);
}

.hq-profile-quest-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hq-profile-quest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
