/* ════════════════════════════════════════
   BENCHMARK — MOBILE
   Mobile nav island, panels, bench list,
   shop, streak, bench sheet, peek card.
════════════════════════════════════════ */

/* ── BASE SHOW/HIDE ─────────────────────── */

#mobileNav,
.mob-panel {
    display: none;
}

.mob-panel.open {
    display: flex;
    flex-direction: column;
}

/* ── HEADER MOBILE RIGHT ─────────────────── */

.header-mobile-right {
    display: none;
    align-items: center;
    gap: var(--space-2);
}

#mobCoinBadge {
    display: none;
    cursor: pointer;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: rgba(245, 166, 35, 0.12);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: #c47d00;
    transition: opacity 0.25s, transform 0.25s;
}

/* ── MOBILE SEARCH WRAP & CHALLENGE BUTTON ── */

.mob-search-wrap {
    display: flex;
    align-items: center;
    background: var(--ui-surface-bg-soft, var(--cream));
    border: var(--ui-surface-border, 1.5px solid var(--parchment));
    border-radius: var(--ui-pill-radius, 50px);
    overflow: hidden;
    width: 36px;
    height: 36px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s;
}

.mob-challenge-btn {
    background: var(--ui-surface-bg-soft, var(--cream));
    border: var(--ui-surface-border, 1.5px solid var(--parchment));
    border-radius: var(--ui-pill-radius, 50px);
    width: 36px;
    height: 36px;
    font-size: var(--text-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.25s, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin 0.35s;
}

.mob-challenge-btn.search-open {
    opacity: 0;
    width: 0;
    margin-left: calc(-1 * var(--space-2));
    pointer-events: none;
    overflow: hidden;
}

.mob-search-wrap.open {
    width: 180px;
    border-color: var(--moss);
}

.mob-search-btn {
    background: none;
    border: none;
    border-radius: var(--radius-full);
    min-width: 34px;
    height: 34px;
    font-size: var(--text-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.mob-search-btn:active {
    transform: scale(0.88);
}

.mob-search-input {
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--bark);
    outline: none;
    width: 0;
    max-width: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.25s 0.1s, max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-search-wrap.open .mob-search-input {
    width: 100%;
    max-width: 140px;
    padding: 0 var(--space-3) 0 0;
    opacity: 1;
}

/* ── MOBILE NAV ISLAND ──────────────────── */

#mobileNav {
    max-width: 440px;
    height: 60px;
    background: var(--ui-sheet-bg, var(--white));
    border-radius: 22px;
    border: var(--ui-sheet-border, 1.5px solid var(--parchment));
    box-shadow: 0 6px 28px rgba(61, 43, 31, 0.18), 0 2px 8px var(--shadow);
    z-index: var(--z-nav);
    padding: 0 var(--space-1);
    overflow: hidden;
    touch-action: pan-y;
    animation: navIslandIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.mnav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: none;
    cursor: pointer;
    padding: var(--space-2) 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}

.mnav-btn:active {
    background: var(--ui-surface-bg-soft, var(--cream));
}

.mnav-icon {
    font-size: var(--text-2xl);
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mnav-label {
    font-size: var(--text-2xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--stone-dark);
    transition: color 0.15s;
}

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

.mnav-btn.active .mnav-label {
    color: var(--moss);
}

.mnav-btn.active {
    background: none;
    border-radius: var(--radius-lg);
}

.mnav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--moss);
    border-radius: 50%;
}

#navSlider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 20%;
    background: var(--moss-t12);
    border-radius: var(--radius-lg);
    pointer-events: none;
    transition: left 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    left: 0;
}

.mnav-img {
    height: 1.1rem;
    width: auto;
}

#mnav-map .mnav-img {
    height: 1.35rem;
}

.mnav-profile-img {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ── NAV ISLAND KEYFRAME ────────────────── */

@keyframes navIslandIn {
    from {
        transform: translateX(-50%) translateY(110%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ── STREAK KEYFRAMES ───────────────────── */

@keyframes fireBob {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.06);
    }
}

@keyframes countIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes streakPulse {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(255, 107, 53, 0.45);
    }
    50% {
        box-shadow: 0 3px 22px rgba(255, 107, 53, 0.85);
        transform: scale(1.1);
    }
}

/* ── SHOP ANIMATION KEYFRAME ────────────── */

@keyframes shopItemIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── MOBILE RESPONSIVE OVERRIDES ─────────── */

@media (max-width: 479px) {
    #mobileLogo {
        cursor: pointer;
    }
}

@media (max-width: 1024px) {
    /* Prevent iOS auto-zoom on input focus */
    input, select, textarea {
        font-size: max(16px, 1em) !important;
    }

    .sidebar,
    .lb-pull-tab,
    .fab-group,
    .header-desktop {
        display: none !important;
    }

    body {
        height: 100dvh;
        overflow: hidden;
    }

    header {
        padding: 0 var(--space-3);
        height: 52px;
        /* Stay above mob-panels (--z-panel:300) so search stays accessible */
        z-index: calc(var(--z-panel) + 10);
        position: relative;
    }

    .app-body {
        height: calc(100dvh - 56px);
        overflow: hidden;
    }

    #map-wrap {
        width: 100%;
        height: 100%;
    }

    .mob-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        z-index: var(--z-panel);
        overflow-y: auto;
        flex-direction: column;
    }

    #mobBenchTabs {
        display: flex;
        flex-shrink: 0;
        padding-top: 56px;
        background: var(--cream);
        border-bottom: var(--border-card);
    }

    #mobBenchTabs .tab {
        font-weight: var(--weight-semibold);
        transition: color 0.2s, border-color 0.2s;
        color: var(--stone-dark);
        border-bottom: 2px solid transparent !important;
    }

    #mobBenchTabs .tab.active {
        color: var(--moss) !important;
        border-bottom-color: var(--moss) !important;
    }

    #mobBenches {
        background: var(--cream);
    }

    #mobBenchesList {
        flex: 1;
        overflow-y: auto;
        padding: var(--space-3);
        display: flex;
        flex-direction: column;
        gap: var(--space-5);
        background: var(--cream);
    }

    #profileModal {
        z-index: calc(var(--z-nav) + 50);
        align-items: center;
        justify-content: center;
        padding: var(--space-4);
        inset: 0;
        padding-bottom: calc(80px + var(--space-4));
    }

    #profileModal .modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 80px - 2 * var(--space-4)) !important;
        border-radius: var(--radius-xl) !important;
        margin: 0 !important;
        overflow-y: auto;
    }

    #mobShop {
        overflow: hidden;
        padding-top: 56px;
        padding-bottom: 90px;
        box-sizing: border-box;
    }

    #mobShopInner {
        flex: 1;
        overflow: hidden;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    #mobStreak {
        overflow: hidden;
    }

    #mobStreakInner {
        flex: 1;
        overflow-y: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    #mobLocateBtn {
        display: flex;
        position: absolute;
        top: calc(10px + 58px + 8px);
        left: 10px;
    }

    #mobileNav {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - var(--space-8));
    }

    .header-mobile-right {
        display: flex !important;
    }

    .logo-img {
        height: 1.6rem;
    }

    .modal-overlay:not(#profileModal) {
        align-items: flex-end !important;
        z-index: calc(var(--z-nav) + 1) !important;
    }

    .modal-overlay:not(#profileModal) .modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 88dvh !important;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
        margin: 0 !important;
        padding-bottom: 90px !important;
    }

    .mob-peek-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
        /* below Leaflet marker pane (~600) so markers remain clickable */
        z-index: var(--z-panel);
    }

    .mob-peek-backdrop.is-visible {
        opacity: 1;
        pointer-events: none;
    }

    .mob-peek {
        display: block !important;
        position: fixed;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
        z-index: calc(var(--z-nav) + 10);
    }

    .mob-peek.is-visible {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ── MOBILE BENCH SHEET ─────────────────── */

.mob-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55vh;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-max);
    overflow: hidden;
}

.mob-sheet.open {
    transform: translateY(0);
}

.mob-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--stone);
    border-radius: 2px;
    margin: var(--space-3) auto 0;
    flex-shrink: 0;
}

.mob-sheet-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: var(--border-divider);
    flex-shrink: 0;
}

.mob-sheet-title {
    font-weight: var(--weight-bold);
    font-size: var(--text-md);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

#mobBenchSheet {
    display: none;
    height: 75vh;
    z-index: var(--z-max);
}

.mob-sheet-handle-wrap {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: var(--space-2) 0 0;
}

.mob-sheet-header-checkin {
    padding: var(--space-2) var(--space-4) var(--space-3);
    gap: var(--space-2);
}

.mob-sheet-back {
    background: none;
    border: none;
    font-size: var(--text-lg);
    color: var(--stone-dark);
    cursor: pointer;
    padding: var(--space-1) var(--space-2) var(--space-1) 0;
    flex-shrink: 0;
}

.mob-sheet-checkin-btn {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-4);
    background: var(--moss);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(31, 125, 62, 0.3);
}

.mob-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) var(--space-4) var(--space-5);
}

.mob-sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: calc(var(--z-max) - 2);
}

/* ── MOBILE BENCH SHEET RESPONSIVE HIDE ─── */

@media (min-width: 1025px) {
    #mobBenchSheet,
    #mobBenchSheetBg {
        display: none !important;
    }
}

/* ── AVATAR & LAYOUT HELPERS ────────────── */

.mob-bench-card-thumb-fallback,
.mob-bench-owner-avatar,
.mob-bench-owner-avatar-fallback,
.mob-sheet-owner-avatar,
.mob-streak-ring-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mob-bench-owner-avatar,
.mob-sheet-owner-avatar,
.mob-bench-owner-avatar-fallback {
    border-radius: 50%;
    overflow: hidden;
}

.mob-bench-owner-avatar-fallback,
.mob-sheet-owner-avatar-fallback {
    background: var(--ui-avatar-fallback-bg, var(--moss));
    color: var(--ui-avatar-fallback-ink, var(--white));
    font-weight: var(--weight-bold);
}

.mob-bench-card-location,
.mob-bench-owner-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mob-shop-rarity,
.mob-shop-owned {
    position: absolute;
    top: 12px;
    font-weight: var(--weight-extrabold);
    padding: var(--space-1) var(--space-2);
    border-radius: 4px;
}

.mob-shop-title,
.mob-shop-name,
.mob-shop-buy-btn,
.mob-streak-count {
    font-family: var(--font-primary);
}

.mob-streak-inner,
.mob-streak-ring-day,
.mob-streak-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── MOBILE BENCH LIST ──────────────────── */

.mob-bench-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 80px;
    animation: benchCardIn 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.mob-bench-card.is-selected {
    border-color: var(--moss);
}

.mob-bench-card-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.mob-bench-card-thumb-fallback {
    background: var(--cream);
    font-size: var(--text-2xl);
}

.mob-bench-card-content {
    flex: 1;
    min-width: 0;
}

.mob-bench-card-name {
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    color: var(--bark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mob-bench-card-location {
    font-size: var(--text-sm);
    color: var(--stone-dark);
    margin: 1px 0 var(--space-1);
}

.mob-bench-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.mob-bench-card-rating {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--moss);
}

.mob-bench-card-count,
.mob-bench-card-distance {
    font-size: var(--text-sm);
    color: var(--stone-dark);
}

.mob-bench-card-distance {
    font-size: var(--text-sm);
}

.mob-bench-badge {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
}

.mob-bench-badge-mine {
    color: var(--moss);
}

.mob-bench-badge-reported {
    color: #c0392b;
}

.mob-bench-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-width: 0;
}

.mob-bench-card-owner-inline {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-shrink: 0;
}

.mob-bench-card-owner {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-1);
}

.mob-bench-owner-avatar {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.mob-bench-owner-avatar-img,
.mob-sheet-owner-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.mob-bench-owner-avatar-fallback {
    width: 100%;
    height: 100%;
    font-size: var(--text-2xs);
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mob-bench-owner-name {
    font-size: var(--text-xs);
    color: var(--stone-dark);
}

.mob-bench-list-spacer {
    height: 100px;
}

/* ── MOBILE SHOP ────────────────────────── */

.mob-wip-note {
    flex-shrink: 0;
    margin: 0;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 200, 60, 0.12);
    border-bottom: 1px solid rgba(255, 200, 60, 0.25);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.mob-shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5) var(--space-3);
    flex-shrink: 0;
}

.mob-shop-title {
    font-size: var(--text-lg);
    color: white;
    letter-spacing: 1px;
}

.mob-shop-head-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.mob-shop-promo-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.mob-shop-promo-btn.is-active {
    border-color: rgba(107, 203, 119, 0.5);
    background: rgba(31, 125, 62, 0.4);
}

.mob-shop-coin-pill {
    font-weight: var(--weight-bold);
    font-size: var(--text-md);
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.mob-shop-grid {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 0;
    padding: 0;
}

.mob-shop-card {
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.18s, box-shadow 0.18s;
}

.mob-shop-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.mob-shop-card:active,
.mob-shop-buy-btn:active {
    transform: scale(0.97);
}

.mob-shop-card-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    text-align: center;
    background: var(--mob-shop-gradient);
    animation: shopItemIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.mob-shop-rarity {
    left: 12px;
    font-size: var(--text-2xs);
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.25);
}

.mob-shop-rarity.rarity-legendary {
    color: #c77dff;
}

.mob-shop-rarity.rarity-epic {
    color: #ff6b35;
}

.mob-shop-rarity.rarity-rare {
    color: #4d96ff;
}

.mob-shop-rarity.rarity-uncommon {
    color: #6bcb77;
}

.mob-shop-rarity.rarity-common {
    color: #aaa;
}

.mob-shop-owned {
    right: 12px;
    font-size: var(--text-xs);
    background: rgba(31, 125, 62, 0.8);
    color: white;
}

.mob-shop-icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    animation: fireBob 2s ease-in-out infinite;
}

.mob-shop-name {
    font-size: var(--text-sm);
    color: var(--mob-shop-text, #fff);
    margin-bottom: var(--space-1);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mob-shop-desc {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mob-shop-buy-btn {
    width: 100%;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: var(--weight-extrabold);
    font-size: var(--text-xs);
    background: rgba(255, 255, 255, 0.95);
    color: #1f7d3e;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.mob-shop-buy-btn.is-owned {
    background: rgba(255, 255, 255, 0.2);
    color: var(--mob-shop-text, #fff);
}

.mob-shop-footnote {
    flex-shrink: 0;
    text-align: center;
    padding: var(--space-2) var(--space-4) var(--space-4);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.5;
}

/* ── MOBILE STREAK PAGE ─────────────────── */

@keyframes mobStreakFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mob-streak-inner {
    flex: 1;
    justify-content: center;
    background: linear-gradient(160deg, #1a0a00 0%, #3d1a00 40%, #1a0a00 100%);
    padding: var(--space-5);
    text-align: center;
    overflow: hidden;
    gap: var(--space-4);
}

.mob-streak-flame {
    font-size: 5.5rem;
    line-height: 1;
    animation: fireBob 1.2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 8px 20px rgba(255, 107, 53, 0.7));
}

.mob-streak-count {
    font-size: 4.5rem;
    color: white;
    line-height: 1;
    animation: countIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    text-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
}

.mob-streak-label {
    font-size: var(--text-md);
    color: rgba(255, 200, 100, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: var(--weight-semibold);
}

.mob-streak-rings {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    max-width: 340px;
}

.mob-streak-ring-day {
    gap: var(--space-1);
}

.mob-streak-ring-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: var(--text-lg);
    background: rgba(255, 255, 255, 0.12);
}

.mob-streak-ring-icon.is-active {
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.5);
}

.mob-streak-ring-icon.is-active.is-today {
    animation: streakPulse 1.8s ease-in-out infinite;
}

.mob-streak-ring-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mob-streak-ring-label {
    font-size: var(--text-2xs);
    font-weight: var(--weight-bold);
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mob-streak-ring-label.is-active {
    color: rgba(255, 255, 255, 0.9);
}

.mob-streak-milestone {
    padding: var(--space-2) var(--space-5);
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    color: rgba(255, 220, 100, 0.9);
    font-weight: var(--weight-semibold);
}

.mob-streak-reward-wrap {
    width: 100%;
    max-width: 340px;
}

.mob-streak-reward-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-extrabold);
    text-transform: uppercase;
    color: rgba(255, 200, 100, 0.55);
    letter-spacing: 1px;
    margin-bottom: var(--space-3);
}

.mob-streak-reward-grid {
    display: flex;
    gap: var(--space-2);
}

.mob-streak-reward {
    flex: 1;
    gap: var(--space-1);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-1);
}

.mob-streak-reward.is-reached {
    background: rgba(255, 200, 80, 0.18);
    border-color: rgba(255, 200, 80, 0.45);
    animation: streakPulse 2.5s ease-in-out infinite;
}

.mob-streak-reward-icon {
    font-size: var(--text-xl);
    filter: grayscale(1) opacity(0.3);
}

.mob-streak-reward.is-reached .mob-streak-reward-icon {
    filter: drop-shadow(0 2px 6px rgba(255, 200, 80, 0.7));
}

.mob-streak-reward-day {
    font-size: var(--text-2xs);
    font-weight: var(--weight-extrabold);
    color: rgba(255, 255, 255, 0.28);
}

.mob-streak-reward.is-reached .mob-streak-reward-day {
    color: rgba(255, 220, 100, 0.95);
}

.mob-streak-reward-coins {
    font-size: var(--text-2xs);
    color: rgba(255, 255, 255, 0.2);
    font-weight: var(--weight-bold);
}

.mob-streak-reward.is-reached .mob-streak-reward-coins {
    color: rgba(255, 180, 60, 0.85);
}

.mob-streak-howto {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    text-align: left;
    max-width: 340px;
    width: 100%;
    transition: opacity 0.4s, transform 0.4s;
}

.mob-streak-howto-title {
    font-size: var(--text-2xs);
    font-weight: var(--weight-extrabold);
    text-transform: uppercase;
    color: rgba(255, 200, 100, 0.7);
    letter-spacing: 1px;
    margin-bottom: var(--space-1);
}

.mob-streak-howto-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.mob-streak-last-active {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
    margin-top: var(--space-2);
}

.mob-streak-last-active-fallback {
    color: rgba(255, 255, 255, 0.35);
    animation: mobStreakFadeIn 0.5s ease both;
}

/* ── MOBILE BENCH SHEET DETAIL CONTENT ─── */

.mob-sheet-main-image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.mob-sheet-reported-banner {
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
    color: #856404;
    background: #fff3cd;
    border-color: #ffc107;
}

.mob-sheet-actions {
    margin-top: var(--space-1);
}

.mob-sheet-owner-avatar {
    width: var(--avatar-md);
    height: var(--avatar-md);
    cursor: pointer;
}

.mob-sheet-owner-avatar-fallback {
    font-size: var(--text-base);
}

.mob-sheet-owner-row {
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: var(--border-divider);
    margin-bottom: var(--space-2);
}

.mob-sheet-owner-name {
    font-weight: var(--weight-bold);
    font-size: var(--text-md);
    cursor: pointer;
}

.mob-sheet-title-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.mob-sheet-panel-name {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: var(--text-lg);
}

.mob-sheet-panel-coords {
    margin-bottom: var(--space-2);
}

.mob-sheet-tags-row {
    margin-bottom: var(--space-3);
}

.mob-sheet-stars {
    gap: 2px;
}

/* ── MOBILE PEEK CARD ───────────────────── */

.mob-peek-backdrop,
.mob-peek {
    display: none;
}

.mob-peek-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    padding-right: 36px;
    background: var(--ui-sheet-bg, var(--white));
    border: var(--ui-sheet-border, 1.5px solid var(--parchment));
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 26px rgba(61, 43, 31, 0.2), 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
}

.mob-peek-close-btn {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
    border: 1.5px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.50);
    color: #fff;
    font-size: 13px;
    font-weight: var(--weight-bold);
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    opacity: 1;
    transition: background 0.15s;
    flex-shrink: 0;
    z-index: 2;
}

.mob-peek-close-btn:hover,
.mob-peek-close-btn:active {
    background: rgba(0,0,0,0.75);
}

/* Docked mode — bench is off-screen, peek snaps to screen edge */
#mobBenchPeek.is-docked {
    width: auto !important;
    min-width: 120px;
    max-width: 180px;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

#mobBenchPeek.is-docked .mob-peek-thumb-wrap,
#mobBenchPeek.is-docked .mob-peek-rating,
#mobBenchPeek.is-docked .mob-peek-details-btn,
#mobBenchPeek.is-docked .mob-peek-close-btn {
    display: none;
}

#mobBenchPeek.is-docked .mob-peek-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--text-sm);
}

#mobBenchPeek[data-dock-side="left"] .mob-peek-card {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    border-left-color: transparent;
}

#mobBenchPeek[data-dock-side="right"] .mob-peek-card {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    border-right-color: transparent;
}

.mob-peek-thumb-wrap {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ui-surface-bg-soft, var(--cream));
}

.mob-peek-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mob-peek-thumb:not([hidden]) + .mob-peek-thumb-fallback {
    display: none;
}

.mob-peek-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: var(--text-2xl);
}

.mob-peek-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.mob-peek-name {
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    color: var(--bark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mob-peek-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: 2px;
    font-size: var(--text-sm);
    color: var(--stone-dark);
}

.mob-peek-stars {
    font-size: var(--text-base);
    letter-spacing: 0.4px;
    color: #f6b300;
    line-height: 1;
}

.mob-peek-rating-count {
    white-space: nowrap;
}

.mob-peek-details-btn {
    border: none;
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-3);
    background: var(--moss);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    cursor: pointer;
    align-self: flex-start;
    margin-top: var(--space-2);
    box-shadow: 0 2px 8px rgba(31, 125, 62, 0.28);
    transition: transform 0.2s, opacity 0.2s;
}

.mob-peek-details-btn:active {
    transform: scale(0.96);
}

/* ── PEEK SMALL SCREEN TWEAKS ───────────── */

@media (max-width: 479px) {
    .mob-peek-card {
        gap: var(--space-2);
        padding: var(--space-2) var(--space-3);
        padding-right: 36px;
        border-radius: var(--radius-md);
    }

    .mob-peek-thumb-wrap {
        width: 48px;
        height: 48px;
    }

    .mob-peek-name {
        font-size: var(--text-base);
    }

    .mob-peek-rating {
        font-size: var(--text-sm);
    }

    .mob-peek-stars {
        font-size: var(--text-sm);
    }

    .mob-peek-details-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }
}

/* ── PEEK DESKTOP HIDE ──────────────────── */

@media (min-width: 1025px) {
    #mobBenchPeek,
    #mobPeekBackdrop {
        display: none !important;
    }
}
