/* Quest Map Styles - Extracted for browser caching */

/* Hide MapLibre attribution */
.maplibregl-ctrl-attrib,
.maplibregl-ctrl-logo,
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
    display: none !important;
}

/* Hide MapLibre location button in top right (location is triggered from bottom panel) */
.quest-map-container .maplibregl-ctrl-top-right {
    display: none !important;
}

/* Missions: frosted bottom panel – "In order to join [MISSION], we need to learn your location..." */
.quest-location-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 115;
    box-sizing: border-box;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(233, 30, 140, 0.4);
    font-family: "Fredoka", sans-serif;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.quest-location-panel.dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(100%);
    z-index: 0;
}
.quest-location-panel-text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
    min-width: 0;
}
.quest-location-panel .quest-location-prompt-btn {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
}
.quest-location-prompt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 10px 18px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    animation: viewQuestPulse 2s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.quest-location-prompt-btn:hover {
    opacity: 0.95;
}
.quest-location-prompt-btn:disabled {
    opacity: 0.85;
    cursor: wait;
}
.quest-location-panel-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
@keyframes viewQuestPulse {
    0%   { box-shadow: 0 0 8px 2px rgba(233, 30, 140, 0.8), 0 0 0 0 rgba(233, 30, 140, 0.6); }
    50%  { box-shadow: 0 0 20px 6px rgba(233, 30, 140, 0.4), 0 0 0 14px rgba(233, 30, 140, 0); }
    100% { box-shadow: 0 0 8px 2px rgba(233, 30, 140, 0.8), 0 0 0 0 rgba(233, 30, 140, 0.6); }
}
.quest-location-panel-error {
    font-family: "Fredoka", sans-serif;
    width: 100%;
    flex-basis: 100%;
}

/* Missions: frosted bar – "You are X from the [Mission Name]" (non-blocking so map stays pannable) */
.quest-distance-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 116;
    box-sizing: border-box;
    min-height: 52px;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(233, 30, 140, 0.4);
    font-family: "Fredoka", sans-serif;
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.quest-distance-bar-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}
.quest-distance-bar-text span {
    font-weight: 600;
}
.quest-distance-bar-streetview {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(233, 30, 140, 0.25);
    border: 1px solid rgba(233, 30, 140, 0.5);
    border-radius: 8px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, border-color 0.2s;
}
.quest-distance-bar-streetview:hover {
    background: rgba(233, 30, 140, 0.4);
    border-color: rgba(233, 30, 140, 0.7);
    color: #fff;
}
.quest-distance-bar-streetview i {
    font-size: 1.1rem;
}
.quest-distance-bar-streetview.loading {
    opacity: 0.8;
    pointer-events: none;
}
.quest-distance-bar-streetview.loading span {
    opacity: 0.8;
}

/* View Offer Location toggle (replaces Street view on missions) */
.quest-distance-bar-action,
.quest-view-offer-location-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(233, 30, 140, 0.25);
    border: 1px solid rgba(233, 30, 140, 0.5);
    border-radius: 8px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, border-color 0.2s;
}
.quest-distance-bar-action:hover,
.quest-view-offer-location-btn:hover {
    background: rgba(233, 30, 140, 0.4);
    border-color: rgba(233, 30, 140, 0.7);
    color: #fff;
}
.quest-distance-bar-action i,
.quest-view-offer-location-btn i {
    font-size: 1.1rem;
}
.quest-distance-bar-action.active,
.quest-view-offer-location-btn.active {
    background: rgba(233, 30, 140, 0.5);
    border-color: #e91e8c;
}

.quest-location-prompt-hint {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-family: "Fredoka", sans-serif;
}

/* Missions: stamp collection counter (bottom left) */
.quest-stamp-counter {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: auto;
    top: auto;
    z-index: 118;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.92), rgba(30, 15, 40, 0.92));
    border: 1px solid rgba(233, 30, 140, 0.3);
    border-radius: 14px;
    padding: 10px 14px;
    font-family: "Fredoka", sans-serif;
    color: #fff;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.quest-stamp-counter-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(233, 30, 140, 0.5);
    flex-shrink: 0;
}
.quest-stamp-counter-data {
    display: flex;
    flex-direction: column;
}
.quest-stamp-counter-value {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}
.quest-stamp-counter-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Missions: live stats (bottom right) */
.quest-route-stats {
    position: absolute;
    bottom: 16px;
    right: 16px;
    left: auto;
    top: auto;
    z-index: 118;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.92), rgba(30, 15, 40, 0.92));
    border: 1px solid rgba(233, 30, 140, 0.3);
    border-radius: 14px;
    padding: 10px 16px;
    font-family: "Fredoka", sans-serif;
    color: #fff;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.quest-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}
.quest-stat-icon {
    font-size: 1rem;
    color: #e91e8c;
    opacity: 0.9;
}
.quest-stat-data {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.quest-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.quest-stat-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1px;
}
.quest-stat-divider {
    height: 1px;
    min-height: 1px;
    width: 100%;
    flex-shrink: 0;
    margin: 10px 0;
    background: linear-gradient(to right, rgba(233, 30, 140, 0.05), rgba(233, 30, 140, 0.5), rgba(233, 30, 140, 0.05));
}

/* Fullscreen Map Container */
.quest-map-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a1a;
    z-index: 100;
}

.quest-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    touch-action: none; /* Let MapLibre handle pinch-zoom; avoid browser intercepting */
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Header Overlay - Full Width */
.quest-map-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    pointer-events: auto;
}

/* Quest Info Card - Full Width Bar */
.quest-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(233, 30, 140, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.quest-info-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e91e8c;
    flex-shrink: 0;
}

.quest-info-details {
    flex: 1;
    min-width: 0;
}

.quest-info-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quest-type-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px;
    flex-shrink: 0;
}

.quest-type-badge.aura {
    background: rgba(233, 30, 140, 0.9);
    color: #fff;
    box-shadow: 0 2px 6px rgba(233, 30, 140, 0.4);
}

.quest-type-badge.honeycomb {
    background: rgba(243, 156, 18, 0.9);
    color: #fff;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.4);
}

.quest-info-name {
    font-family: "Fredoka", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.quest-info-description {
    font-family: "Fredoka", sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    margin: 0;
}

/* Prize/Goal Section */
.quest-prize {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: opacity 0.2s;
}

.quest-prize:hover {
    opacity: 0.8;
}

.quest-prize-stamp {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e91e8c;
}

.quest-prize-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.quest-prize-label {
    font-family: "Fredoka", sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quest-prize-count {
    font-family: "Fredoka", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.quest-prize-count span {
    color: #e91e8c;
}

/* Honeycomb Prize - Multiple stamps */
.quest-prize.honeycomb-prize {
    gap: 10px;
}

.quest-prize-stamps {
    display: flex;
    align-items: center;
    gap: -8px;
}

.quest-prize-stamp-multi {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f39c12;
    margin-left: -8px;
    transition: transform 0.2s;
}

.quest-prize-stamp-multi:first-child {
    margin-left: 0;
}

.quest-prize-stamp-multi:hover {
    transform: scale(1.2);
    z-index: 10;
}

/* Honeycomb Key */
.honeycomb-key {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(233, 30, 140, 0.5);
    overflow: hidden;
    min-width: 180px;
}

.honeycomb-key-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: "Fredoka", sans-serif;
    color: #fff;
}

.honeycomb-key-mission-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(233, 30, 140, 0.5);
    flex-shrink: 0;
}

.honeycomb-key-header-text {
    flex: 1;
    min-width: 0;
}

.honeycomb-key-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.honeycomb-key-description {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quest-social-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.quest-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.quest-social-link:hover {
    background: rgba(233, 30, 140, 0.2);
    color: #e91e8c;
}

.honeycomb-key-toggle {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s;
    font-size: 12px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
}

.honeycomb-key.collapsed .honeycomb-key-toggle {
    transform: rotate(-90deg);
}

@keyframes honeycomb-key-pulsate {
    0%, 33.33%, 66.67%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(233, 30, 140, 0.4); }
    16.67%, 50%, 83.33% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(233, 30, 140, 0.2); }
}
.honeycomb-key.pulsate {
    animation: honeycomb-key-pulsate 1.2s ease-in-out 1;
}

.honeycomb-key-items {
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.honeycomb-key.collapsed .honeycomb-key-items {
    display: none;
}

.honeycomb-key-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
}
.honeycomb-key-item.honeycomb-key-item--complete {
    background: rgba(233, 30, 140, 0.35);
    border: 2px solid #fff;
    animation: honeycomb-key-item-unlock-pulsate 1.2s ease-in-out infinite;
}
@keyframes honeycomb-key-unlock-pulsate {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.9; }
}
.honeycomb-key-item--complete .honeycomb-key-stamps-to-win .honeycomb-key-complete-icon {
    font-size: 1.25rem;
    color: #fff;
}

.honeycomb-key-item--complete .honeycomb-key-redeem-text {
    font-family: "Fredoka", sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

@keyframes honeycomb-key-item-unlock-pulsate {
    0%, 33.33%, 66.67%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(233, 30, 140, 0.4); }
    16.67%, 50%, 83.33% { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.3); }
}
.honeycomb-key-item.honeycomb-key-item--pulsate {
    animation: honeycomb-key-item-unlock-pulsate 1.2s ease-in-out 1;
}

.honeycomb-key-stamp {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f39c12;
    flex-shrink: 0;
}

.honeycomb-key-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.honeycomb-key-name {
    font-family: "Fredoka", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.honeycomb-key-rewards {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.honeycomb-key-aura {
    font-family: "Fredoka", sans-serif;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.honeycomb-key-aura {
    color: #e91e8c;
}

.honeycomb-key-aura i {
    font-size: 10px;
}

.honeycomb-key-distance {
    font-family: "Fredoka", sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    display: none;
}

.honeycomb-key-distance.honeycomb-key-distance-visible {
    display: inline;
}

.honeycomb-key-stamps-to-win {
    font-family: "Fredoka", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    min-width: 2.5em;
    text-align: right;
}

/* Offer detail modal (9:16) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.quest-offer-detail-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 400;
    padding: 1rem;
    box-sizing: border-box;
}
.quest-offer-detail-modal-overlay.active {
    display: flex;
}
.quest-offer-detail-modal-card {
    position: relative;
    width: 100%;
    max-width: min(90vw, 360px);
    aspect-ratio: 9 / 16;
    background: rgba(233, 30, 140, 0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(233, 30, 140, 0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(233, 30, 140, 0.2);
    display: flex;
    flex-direction: column;
}
.quest-offer-detail-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
    z-index: 2;
}
.quest-offer-detail-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}
.quest-offer-detail-modal-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    overflow: hidden;
    background: #0a0a1a;
}
.quest-offer-detail-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.quest-offer-detail-modal-feather {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.45) 20%, transparent 45%, transparent 55%, rgba(0, 0, 0, 0.45) 80%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}
.quest-offer-detail-modal-aura-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.6rem;
    background: rgba(233, 30, 140, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    pointer-events: none;
}
.quest-offer-detail-modal-stamp-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    z-index: 2;
    pointer-events: none;
}
.quest-offer-detail-modal-stamp-icon {
    font-size: 5rem;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    text-shadow: 0 0 2px rgba(0, 0, 0, 1), 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.5);
}
.quest-offer-detail-modal-stamp-icon.unlocked {
    color: #fff;
}
@keyframes quest-offer-detail-pulsate {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.92; }
}
.quest-offer-detail-modal-stamp-progress.unlocked {
    animation: quest-offer-detail-pulsate 1.5s ease-in-out infinite;
    animation-iteration-count: infinite;
}
.quest-offer-detail-modal-stamp-count {
    font-family: "Fredoka", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 1), 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}
.quest-offer-detail-modal-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-height: 50%;
    overflow-y: auto;
    padding: 0.75rem 3.5rem 1rem 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}
.quest-offer-detail-modal-top-overlay * {
    pointer-events: auto;
}
.quest-offer-detail-modal-title {
    margin: 0 0 0.25rem;
    padding: 0;
    color: #e91e8c;
    font-family: "Fredoka", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.quest-offer-detail-modal-description {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    line-height: 1.25;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.quest-offer-detail-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 1.5rem;
    font-family: "Fredoka", sans-serif;
}
.quest-offer-detail-modal-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.quest-offer-detail-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.quest-offer-detail-modal-row:last-child {
    border-bottom: none;
}
.quest-offer-detail-modal-row dt {
    margin: 0;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
}
.quest-offer-detail-modal-row dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.honeycomb-key-view-location-btn {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.honeycomb-key-view-location-btn i {
    font-size: 1rem;
}

/* Stamp Info Modal */
.stamp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.stamp-modal-overlay.active {
    display: flex;
}

.stamp-modal-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid #e91e8c;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(233, 30, 140, 0.3);
}

.stamp-modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.2);
}

.stamp-modal-card .stamp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 46, 0.7) 0%,
        rgba(26, 26, 46, 0.85) 50%,
        rgba(26, 26, 46, 0.95) 100%
    );
}

.stamp-modal-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    font-family: "Fredoka", sans-serif;
}

.stamp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.stamp-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.stamp-modal-heading {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.stamp-modal-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e91e8c;
    box-shadow: 0 0 20px rgba(233, 30, 140, 0.3);
    margin-bottom: 12px;
}

.stamp-modal-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 14px;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.stamp-modal-rewards {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.stamp-modal-reward {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stamp-modal-reward-icon {
    font-size: 16px;
}
.stamp-modal-reward-icon.klout { color: #ffd700; }
.stamp-modal-reward-icon.aura { color: #e91e8c; }

.stamp-modal-reward-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
}

.stamp-modal-reward-value.klout {
    color: #ffd700;
}

.stamp-modal-reward-value.aura {
    color: #e91e8c;
}

.stamp-modal-reward-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stamp-modal-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.stamp-modal-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(233, 30, 140, 0.08);
    border: 1px solid rgba(233, 30, 140, 0.15);
    border-radius: 8px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
}
.stamp-modal-detail i {
    font-size: 0.7rem;
    color: #e91e8c;
}

.stamp-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #fff;
    color: #e91e8c;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

.stamp-modal-cta:hover {
    color: #9b1b6e;
    text-decoration: none;
}

/* 2D/3D Toggle Button */
.quest-view-toggle {
    position: absolute;
    top: 100px;
    right: 12px;
    z-index: 105;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-family: "Fredoka", sans-serif;
}

.quest-view-toggle:hover {
    background: rgba(10, 10, 26, 0.95);
    transform: scale(1.02);
}

.quest-view-toggle i {
    font-size: 16px;
    color: #fff;
}

.quest-view-toggle span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.quest-view-toggle.active {
    background: rgba(233, 30, 140, 0.2);
    border-color: rgba(233, 30, 140, 0.4);
}

.quest-view-toggle.active i {
    color: #e91e8c;
}

.quest-view-toggle.active span {
    color: #e91e8c;
}

/* Map Rewards Overlay */
.quest-rewards-overlay {
    position: absolute;
    bottom: 10px;
    left: 12px;
    z-index: 105;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Honeycomb key / [Mission name] Offers: full width at top */
.quest-rewards-overlay.honeycomb-key {
    top: 10px;
    left: 16px;
    right: 16px;
    bottom: auto;
    width: auto;
    min-width: 0; /* allow full available width on small screens */
    transition: opacity 1.5s ease;
}
.quest-show-map-wrap.quest-globe-view .quest-rewards-overlay.honeycomb-key {
    opacity: 0;
    pointer-events: none;
}

.quest-reward-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.quest-reward-badge:hover {
    background: rgba(10, 10, 26, 0.95);
    transform: scale(1.02);
}

.quest-reward-badge i {
    font-size: 14px;
}

.quest-reward-badge.klout i {
    color: #ffd700;
}

.quest-reward-badge.aura i {
    color: #e91e8c;
}

.quest-reward-badge span {
    font-family: "Fredoka", sans-serif;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.quest-reward-badge .reward-value {
    font-weight: 700;
}

.quest-reward-badge.klout .reward-value {
    color: #ffd700;
}

.quest-reward-badge.aura .reward-value {
    color: #e91e8c;
}

/* Info Modals */
.info-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.info-modal-overlay.active {
    display: flex;
}

.info-modal-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    font-family: "Fredoka", sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.info-modal-card.klout {
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.info-modal-card.aura {
    border: 2px solid rgba(233, 30, 140, 0.3);
}

.info-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.info-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.info-modal-card.klout .info-modal-icon {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.info-modal-card.aura .info-modal-icon {
    background: rgba(233, 30, 140, 0.2);
    color: #e91e8c;
}

.info-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
}

.info-modal-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.info-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e91e8c, #9b1b6e);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.info-modal-cta:hover {
    color: #fff;
    text-decoration: none;
}

/* Bottom Bar - Full Width */
.quest-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 110;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(233, 30, 140, 0.3);
    padding: 12px 16px;
}

.quest-bottom-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.quest-lang-switcher {
    display: flex;
    align-items: center;
}

/* Language switcher base styles (moved from more-styles.css) */
.nav-lang-dropdown {
    position: relative;
    display: inline-block;
}
.nav-lang-btn {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.4rem 0.75rem !important;
}
.nav-lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}
.nav-lang-code {
    font-size: 0.85rem;
    font-weight: 600;
}
.nav-lang-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}
.nav-lang-dropdown.open .nav-lang-chevron {
    transform: rotate(180deg);
}
.nav-lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 160px;
    background: rgba(30, 30, 35, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    padding: 0.5rem !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999 !important;
}
.nav-lang-dropdown.open .nav-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-lang-option {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem !important;
    border-radius: 6px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    background: transparent !important;
}
.nav-lang-option:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
.nav-lang-option.active {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #a5b4fc !important;
}
.nav-lang-option .bi-check2 {
    margin-left: auto;
    color: #10b981;
}
.nav-lang-name {
    flex: 1;
}

/* Language switcher in quest map context */
.quest-lang-switcher .nav-lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.quest-lang-switcher .nav-lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}
.quest-lang-switcher .nav-lang-menu {
    bottom: calc(100% + 8px);
    top: auto;
}

.quest-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #e91e8c, #9b1b6e);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.quest-cta-btn:hover {
    color: #fff;
    text-decoration: none;
}

/* Stamp Markers - Simple static dots */
.stamp-marker {
    width: 12px;
    height: 12px;
    background: #e91e8c;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
}

.stamp-marker.collected {
    background: #2ecc71;
}

@keyframes bizMarkerPulsePublic {
    0%   { box-shadow: 0 3px 10px rgba(0,0,0,0.5), 0 0 0 0 rgba(233,30,140,0.5); }
    50%  { box-shadow: 0 3px 10px rgba(0,0,0,0.5), 0 0 0 12px rgba(233,30,140,0); }
    100% { box-shadow: 0 3px 10px rgba(0,0,0,0.5), 0 0 0 0 rgba(233,30,140,0); }
}

/* Stamp Image Markers - For honeycomb quests with multiple stamp types */
.stamp-image-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    opacity: 1;
    transition: opacity 0.3s ease;
    position: relative;
}

/* Focal point markers - half the size of the 56px business marker */
.stamp-image-marker.focal-point-marker {
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.stamp-image-marker.collected {
    opacity: 0.5 !important;
    filter: grayscale(100%);
}

/* Quantity badge on focal point markers */
.stamp-image-marker .marker-quantity-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #e91e63;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

/* Focal point marker wrapper with title */
.focal-point-marker-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.focal-point-marker-wrapper .stamp-image-marker {
    flex-shrink: 0;
}

.focal-point-marker-title {
    font-family: "Fredoka", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #1a1a2e;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(233, 30, 99, 0.3);
}

/* MapLibre: allow scroll/pinch zoom to pass through to canvas; keep markers and control buttons clickable */
.quest-map-container .maplibregl-marker-container {
    pointer-events: none;
}
.quest-map-container .maplibregl-marker-container .maplibregl-marker {
    pointer-events: auto;
}
.quest-map-container .maplibregl-control-container {
    pointer-events: none;
}
.quest-map-container .maplibregl-control-container > * {
    pointer-events: auto;
}

/* MapLibre marker override */
.maplibregl-marker {
    opacity: 1 !important;
}
.maplibregl-marker.globe-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}
.maplibregl-marker.globe-edge {
    pointer-events: none !important;
}

/* User location marker – above stamp/focal point markers */
.quest-user-location-marker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e91e8c;
    border: 4px solid #fff;
    box-shadow: 0 0 12px rgba(233, 30, 140, 0.6);
    animation: quest-user-dot-pulse 1.4s ease-in-out infinite;
}
.quest-user-location-marker-fade-in {
    opacity: 0;
    transform: scale(0.85);
    animation: quest-user-location-fade-in 0.4s ease forwards,
               quest-user-dot-pulse 1.4s ease-in-out 0.4s infinite;
}
@keyframes quest-user-location-fade-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Ensure MapLibre marker wrapper for user location is on top */
.maplibregl-marker-container .maplibregl-marker:has(.quest-user-location-marker),
.maplibregl-marker[data-quest-user-location="true"] {
    z-index: 9999 !important;
}
@keyframes quest-user-dot-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(233, 30, 140, 0.6); }
    50% { transform: scale(1.1); box-shadow: 0 0 18px rgba(233, 30, 140, 0.8); }
}

/* Center Marker with Avatar - No animations */
.quest-center-marker {
    position: relative;
    width: 60px;
    height: 60px;
    opacity: 1 !important;
}

.quest-marker-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #e91e8c;
    box-shadow: 0 0 15px rgba(233, 30, 140, 0.4);
    opacity: 1 !important;
}

.quest-marker-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .quest-map-header {
        padding: 0;
    }

    .quest-info-card {
        width: 100%;
        max-width: none;
        border-radius: 0;
        padding: 8px 12px;
    }

    .quest-info-avatar {
        width: 32px;
        height: 32px;
    }

    .quest-info-name-row {
        gap: 6px;
    }

    .quest-type-badge {
        width: 18px;
        height: 18px;
        font-size: 9px;
        border-radius: 5px;
    }

    .quest-info-name {
        font-size: 13px;
    }

    .quest-info-description {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }

    .quest-prize {
        gap: 6px;
        padding-left: 8px;
    }

    .quest-prize-stamp {
        width: 28px;
        height: 28px;
    }

    .quest-prize-label {
        font-size: 8px;
    }

    .quest-prize-count {
        font-size: 12px;
    }

    .quest-prize-stamp-multi {
        width: 24px;
        height: 24px;
        margin-left: -6px;
    }

    .honeycomb-key {
        min-width: 160px;
    }

    .honeycomb-key-header {
        padding: 8px 10px;
    }

    .honeycomb-key-title {
        font-size: 12px;
    }

    .honeycomb-key-description {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }

    .honeycomb-key-mission-image {
        width: 30px;
        height: 30px;
    }

    .honeycomb-key-items {
        padding: 6px;
        gap: 6px;
        max-height: 150px;
    }

    .honeycomb-key-item {
        padding: 5px 6px;
        gap: 8px;
    }

    .honeycomb-key-stamp {
        width: 26px;
        height: 26px;
    }

    .honeycomb-key-name {
        font-size: 11px;
    }

    .honeycomb-key-aura {
        font-size: 10px;
    }

    .quest-bottom-bar {
        padding: 10px 12px;
    }

    .quest-bottom-content {
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .quest-cta-btn {
        padding: 10px 24px;
        font-size: 14px;
        flex: 1;
        min-width: 0;
    }

    .quest-lang-switcher {
        flex-shrink: 0;
    }

    .quest-lang-switcher .nav-lang-btn {
        padding: 0.4rem 0.75rem !important;
    }

    .quest-view-toggle {
        top: 80px;
        right: 8px;
        padding: 6px 10px;
        gap: 6px;
    }

    .quest-view-toggle i {
        font-size: 14px;
    }

    .quest-view-toggle span {
        font-size: 12px;
    }

    .quest-rewards-overlay {
        bottom: 10px;
        left: 8px;
        gap: 4px;
    }

    .quest-reward-badge {
        padding: 6px 10px;
        gap: 5px;
    }

    .quest-reward-badge i {
        font-size: 12px;
    }

    .quest-reward-badge span {
        font-size: 11px;
    }

    .stamp-image-marker {
        width: 18px;
        height: 18px;
    }
}

/* Modal shown when a marker enters the 200m user radius */
.quest-radius-hello-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 1.5rem;
}
.quest-radius-hello-modal-overlay.active {
    display: flex;
}
.quest-hello-card {
    position: relative;
    width: min(80vw, 320px);
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(233, 30, 140, 0.2);
    border: 2px solid rgba(233, 30, 140, 0.4);
}
.quest-hello-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.95) 0%, rgba(10, 10, 26, 0.4) 50%, transparent 100%);
    z-index: 1;
}
.quest-hello-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    transition: background 0.2s;
}
.quest-hello-close:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}
.quest-hello-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.quest-hello-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.5);
}
.quest-hello-title {
    margin: 0;
    font-family: "Fredoka", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.quest-hello-desc {
    margin: 0 0 6px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.quest-hello-collect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.45);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s, box-shadow 0.15s;
}
.quest-hello-collect-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(233, 30, 140, 0.3);
}
/* GamifEYED claim-subscription modal */
.quest-gamified-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 1rem;
}
.quest-gamified-overlay.active {
    display: flex;
}
.quest-gamified-card {
    background: linear-gradient(160deg, #131326, #1a1035);
    border: 1px solid rgba(233, 30, 140, 0.25);
    border-radius: 20px;
    padding: 2.2rem 2rem 2rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(233, 30, 140, 0.08);
    font-family: "Fredoka", sans-serif;
}
.quest-gamified-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.quest-gamified-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.quest-gamified-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.35);
}
.quest-gamified-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}
.quest-gamified-body {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
    text-align: left;
}
.quest-gamified-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.quest-gamified-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.quest-gamified-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.quest-gamified-input:focus {
    border-color: rgba(233, 30, 140, 0.6);
}
.quest-gamified-error {
    font-size: 0.8rem;
    font-weight: 500;
    color: #ff6b6b;
    margin: 0;
    text-align: left;
}
.quest-gamified-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.quest-gamified-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(233, 30, 140, 0.45);
}
.quest-gamified-cta:active {
    transform: scale(0.98);
}
.quest-gamified-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.quest-gamified-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.quest-gamified-success-icon {
    font-size: 2.5rem;
    color: #2ecc71;
}
.quest-gamified-success-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}
.quest-gamified-app-prompt {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 12px 0 0;
    line-height: 1.3;
    text-align: left;
}
.quest-gamified-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.quest-gamified-app-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(233, 30, 140, 0.45);
    color: #fff;
}
.quest-gamified-app-btn:active {
    transform: scale(0.98);
}

/* Too Far modal */
.quest-too-far-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 1rem;
}
.quest-too-far-overlay.active {
    display: flex;
}
.quest-too-far-card {
    background: linear-gradient(160deg, #131326, #1a1035);
    border: 1px solid rgba(233, 30, 140, 0.25);
    border-radius: 20px;
    padding: 2.2rem 2rem 2rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(233, 30, 140, 0.08);
    font-family: "Fredoka", sans-serif;
}
.quest-too-far-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.quest-too-far-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.quest-too-far-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.35);
}
.quest-too-far-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}
.quest-too-far-distance {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e91e8c;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}
.quest-too-far-body {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
    text-align: left;
}
.quest-too-far-body strong {
    color: #fff;
    font-weight: 600;
}
.quest-too-far-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 4px);
    padding: 14px 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.quest-too-far-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(233, 30, 140, 0.45);
    color: #fff;
}
.quest-too-far-noreg {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    margin: 10px 0 0;
    text-align: center;
}

/* ============================================================
   Airdrop Hero Overlay (globe view for onboarding quests)
   ============================================================ */
.quest-globe-hero {
    position: absolute;
    inset: 0;
    z-index: 112;
    pointer-events: none;
    transition: opacity 0.6s ease-out;
    overflow: hidden;
}
.quest-globe-hero.dismissed {
    opacity: 0;
    pointer-events: none !important;
    visibility: hidden;
}
.quest-globe-hero.dismissed * {
    pointer-events: none !important;
}
.quest-globe-hero:not(.dismissed) ~ .quest-rewards-overlay {
    opacity: 0;
    pointer-events: none;
}
.quest-globe-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.35;
    mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}
.quest-globe-hero-fade {
    display: none;
}
.quest-globe-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 24px calc(24px + env(safe-area-inset-bottom));
    pointer-events: auto;
    text-align: center;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.95) 0%, rgba(10, 10, 26, 0.7) 60%, transparent 100%);
    padding-top: 48px;
}
.quest-globe-hero-mission-intro {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0;
    padding: 16px 20px calc(16px + env(safe-area-inset-top));
    font-family: 'Fredoka', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    text-align: left;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    background: linear-gradient(to bottom, rgba(10, 10, 26, 0.85) 0%, rgba(10, 10, 26, 0.5) 70%, transparent 100%);
}
.quest-globe-hero-mission-intro strong {
    font-weight: 700;
    color: #fff;
}
.quest-globe-hero-name {
    margin: 0 0 6px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.quest-globe-hero-address {
    margin: 4px auto 10px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.quest-globe-hero-address .bi {
    margin-right: 3px;
    font-size: 0.72rem;
    color: #e91e8c;
}
.quest-globe-hero-desc {
    margin: 0 auto 14px;
    max-width: 340px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.quest-globe-hero-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.quest-globe-hero-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
    pointer-events: auto;
}
.quest-globe-hero-social:hover {
    background: rgba(233, 30, 140, 0.2);
    border-color: rgba(233, 30, 140, 0.5);
    color: #e91e8c;
    transform: scale(1.1);
}
.quest-globe-hero-action {
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

@media (max-width: 480px) {
    .quest-globe-hero-name {
        font-size: 1.5rem;
    }
    .quest-globe-hero-address {
        font-size: 0.72rem;
    }
    .quest-globe-hero-desc {
        font-size: 0.8rem;
        max-width: 280px;
    }
    .quest-globe-hero-social {
        width: 34px;
        height: 34px;
        font-size: 14px;
        border-radius: 8px;
    }
    .quest-globe-hero-content {
        padding: 40px 16px calc(20px + env(safe-area-inset-bottom));
    }
}
@media (max-height: 600px) {
    .quest-globe-hero-img {
        height: 40vh;
    }
    .quest-globe-hero-content {
        padding-top: 32px;
    }
}

/* ===========================================================
   Slide 2 Hero Overlay – shown after "View Quest" fly-in
   Mirrors the globe hero aesthetic but for the active map view
   =========================================================== */
.quest-view-hero {
    position: absolute;
    inset: 0;
    z-index: 112;
    pointer-events: none;
    transition: opacity 0.6s ease-out;
    overflow: hidden;
}
.quest-view-hero.dismissed {
    opacity: 0;
    pointer-events: none !important;
    transform: translateY(100%);
}
.quest-view-hero:not(.dismissed) ~ .quest-rewards-overlay {
    opacity: 0;
    pointer-events: none;
}
.quest-view-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45vh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.3;
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}
.quest-view-hero-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 24px 20px;
    pointer-events: auto;
    text-align: left;
    background: linear-gradient(to bottom, rgba(10, 10, 26, 0.92) 0%, rgba(10, 10, 26, 0.7) 60%, transparent 100%);
    z-index: 2;
}
.quest-view-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.quest-view-hero-top-info {
    flex: 1;
    min-width: 0;
}
.quest-view-hero-top .quest-view-hero-name {
    text-align: left;
    font-size: 1.3rem;
    margin: 0 0 2px;
}
.quest-view-hero-top .quest-view-hero-address {
    text-align: left;
    margin: 0;
}
.quest-view-hero-top .quest-view-hero-socials {
    flex-direction: row;
    justify-content: flex-end;
    margin-bottom: 0;
    flex-shrink: 0;
}
.quest-view-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 24px calc(24px + env(safe-area-inset-bottom));
    pointer-events: auto;
    text-align: center;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.97) 0%, rgba(10, 10, 26, 0.85) 40%, rgba(10, 10, 26, 0.5) 70%, transparent 100%);
}
.quest-view-hero-name {
    margin: 0 0 4px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.quest-view-hero-address {
    margin: 2px auto 8px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.quest-view-hero-address .bi {
    margin-right: 3px;
    font-size: 0.68rem;
    color: #e91e8c;
}
.quest-view-hero-desc {
    margin: 0 auto 12px;
    max-width: 340px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.quest-view-hero-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.quest-view-hero-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
    pointer-events: auto;
}
.quest-view-hero-social:hover {
    background: rgba(233, 30, 140, 0.2);
    border-color: rgba(233, 30, 140, 0.5);
    color: #e91e8c;
    transform: scale(1.1);
}

/* Offer items inside slide 2 hero */
.quest-view-hero-offers {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    max-height: 30vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 30, 140, 0.3) transparent;
}
.quest-view-hero-offer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    pointer-events: auto;
}
.quest-view-hero-offer:hover {
    background: rgba(233, 30, 140, 0.12);
    border-color: rgba(233, 30, 140, 0.3);
    transform: translateY(-1px);
}
.quest-view-hero-offer:active {
    transform: scale(0.98);
}
.quest-view-hero-offer-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.quest-view-hero-offer-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.quest-view-hero-offer-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.quest-view-hero-offer-distance {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}
.quest-view-hero-offer-progress {
    flex-shrink: 0;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e91e8c;
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: 6px;
    padding: 2px 8px;
    white-space: nowrap;
}

.quest-view-hero-offer-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(233, 30, 140, 0.25);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    pointer-events: auto;
}
.quest-view-hero-offer-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.quest-view-hero-offer-card-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(233, 30, 140, 0.4);
}
.quest-view-hero-offer-card-label {
    color: #e91e8c;
    font-weight: 700;
}
.quest-view-hero-offer-card-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding-right: 30px;
}
.quest-view-hero-offer-card-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}
.quest-view-hero-offer-card-desc {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
}
.quest-view-hero-offer-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.quest-view-hero-offer-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.75);
}
.quest-view-hero-offer-card-stat i {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}
.quest-view-hero-offer-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.quest-view-hero-offer-card-counts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.quest-view-hero-offer-card-footer .quest-location-prompt-btn {
    margin-left: auto;
    flex-shrink: 0;
}
.quest-view-hero-offer-card-progress {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e91e8c;
}
.quest-view-hero-offer-card-towin {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e91e8c;
    text-align: left;
}

.quest-view-hero-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: auto;
}
.quest-view-hero-stamp {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(233, 30, 140, 0.5);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.quest-view-hero-stamp:hover {
    transform: scale(1.08);
    border-color: #e91e8c;
}
.quest-view-hero-stamp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.quest-view-hero-error {
    margin: 8px 0 0;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 180, 180, 0.95);
    text-align: center;
}

@media (max-width: 480px) {
    .quest-view-hero-name {
        font-size: 1.35rem;
    }
    .quest-view-hero-top .quest-view-hero-name {
        font-size: 1.15rem;
    }
    .quest-view-hero-address {
        font-size: 0.7rem;
    }
    .quest-view-hero-desc {
        font-size: 0.78rem;
        max-width: 280px;
    }
    .quest-view-hero-social {
        width: 30px;
        height: 30px;
        font-size: 13px;
        border-radius: 7px;
    }
    .quest-view-hero-content {
        padding: 40px 16px calc(18px + env(safe-area-inset-bottom));
    }
    .quest-view-hero-top {
        padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 16px;
    }
}
@media (max-height: 600px) {
    .quest-view-hero-img {
        height: 35vh;
    }
    .quest-view-hero-content {
        padding-top: 28px;
    }
    .quest-view-hero-offers {
        max-height: 22vh;
    }
}

/* Airdrop-specific: hide honeycomb header, start collapsed */
.honeycomb-key--airdrop .honeycomb-key-header {
    display: none;
}

/* ===========================================================
   Offer Detail Modal – Airdrop variant
   Refined to match the hero overlay aesthetic
   =========================================================== */
.quest-offer-detail-modal-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-height: 50%;
    overflow-y: auto;
    padding: 0.75rem 3.5rem 1rem 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}
.quest-offer-detail-modal-content-overlay * {
    pointer-events: auto;
}
.quest-offer-detail-modal-overlay--airdrop .quest-offer-detail-modal-card {
    background: rgba(10, 10, 26, 0.95);
    border: 1px solid rgba(233, 30, 140, 0.25);
    box-shadow: 0 25px 80px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(233, 30, 140, 0.08);
}
.quest-offer-detail-modal-overlay--airdrop .quest-offer-detail-modal-body {
    background: rgba(10, 10, 26, 0.98);
}
.quest-offer-detail-modal-overlay--airdrop .quest-offer-detail-modal-row {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.quest-offer-detail-modal-overlay--airdrop .quest-offer-detail-modal-row dt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}
.quest-offer-detail-modal-overlay--airdrop .quest-offer-detail-modal-row dd {
    color: #e91e8c;
    font-weight: 700;
}

/* Create Offer overlay – shown after "Create Local Mission" fly-in */
.quest-create-offer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 115;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.quest-create-offer-overlay:not(.active) * {
    pointer-events: none !important;
}
.quest-create-offer-overlay.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.quest-create-offer-content {
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(233, 30, 140, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}
.quest-create-offer-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #e91e8c;
    text-align: left;
    flex: 1;
    min-width: 0;
}
.quest-create-offer-content .quest-location-prompt-btn {
    margin-left: auto;
    flex-shrink: 0;
    min-height: 44px;
}
.stamp-marker-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes stampBounceIn {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.3); opacity: 1; }
    80%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.stamp-bounce-in {
    animation: stampBounceIn 0.5s ease-out forwards;
    transform-origin: center center;
}
.quest-begin-mission-content {
    padding: 48px 24px calc(24px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(10, 10, 26, 0.97) 0%, rgba(10, 10, 26, 0.85) 40%, rgba(10, 10, 26, 0.5) 70%, transparent 100%);
}
.quest-begin-mission-content .quest-view-hero-offer-card {
    margin-bottom: 0;
}
