/* ═══════════════════════════════════════════════════════════════════
   Conspiracy Mint Bounties — Dark Theme Stylesheet
   Matches the conspiracy network aesthetic (matrix rain, scanlines)
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --border: #1f1f30;
    --border-glow: #00ff8840;
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --text-dim: #555;
    --accent-green: #00ff88;
    --accent-gold: #ffd700;
    --accent-red: #ff4444;
    --accent-cyan: #00d4ff;
    --accent-purple: #a855f7;
    --claimed-bg: linear-gradient(135deg, #0d1a0d 0%, #121a12 100%);
    --pending-bg: linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
    --font-mono: 'Courier New', 'Consolas', monospace;
    --font-sans: 'Segoe UI', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overscroll-behavior-y: contain;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* ─── Matrix Rain Background ─────────────────────────────────────── */

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.06;
    pointer-events: none;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ─── Header ─────────────────────────────────────────────────────── */

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
}

.glitch-text {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-green);
    text-shadow:
        0 0 10px rgba(0, 255, 136, 0.5),
        0 0 40px rgba(0, 255, 136, 0.2);
    letter-spacing: 4px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.2); }
    to   { text-shadow: 0 0 20px rgba(0, 255, 136, 0.7), 0 0 60px rgba(0, 255, 136, 0.3); }
}

.subtitle {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ─── Mint CTA Button ────────────────────────────────────────────── */

.mint-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, rgba(0, 212, 255, 0.08) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: cta-pulse 3s ease-in-out infinite;
}

.mint-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 136, 0.06) 25%,
        rgba(0, 212, 255, 0.1) 50%,
        rgba(0, 255, 136, 0.06) 75%,
        transparent 100%
    );
    animation: cta-sweep 4s linear infinite;
}

.mint-cta:hover {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.2),
        0 0 60px rgba(0, 255, 136, 0.08),
        inset 0 0 20px rgba(0, 255, 136, 0.05);
    transform: translateY(-2px);
}

.mint-cta:hover .mint-cta-arrow {
    transform: translateX(4px);
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.mint-cta:hover .mint-cta-icon {
    animation: ufo-hover 0.6s ease-in-out infinite alternate;
}

.mint-cta-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.4));
    transition: all 0.3s ease;
}

.mint-cta-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mint-cta-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.mint-cta-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-top: 2px;
}

.mint-cta-arrow {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: all 0.3s ease;
    margin-left: 4px;
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
    50%      { box-shadow: 0 0 20px 2px rgba(0, 255, 136, 0.08); }
}

@keyframes cta-sweep {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

@keyframes ufo-hover {
    from { transform: translateY(0); }
    to   { transform: translateY(-3px); }
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--accent-green);
    font-weight: 700;
}

/* ─── Progress Bar ───────────────────────────────────────────────── */

.progress-container {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    height: 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 35px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    border-radius: 8px;
    transition: width 1s ease-in-out;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.1) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ─── Section Titles ─────────────────────────────────────────────── */

.section-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-green);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════════
   BOUNTY TRACKER — The Numbers
   ═══════════════════════════════════════════════════════════════════ */

.tracker-section {
    margin-bottom: 35px;
}

.tracker-subtitle {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-top: -12px;
    margin-bottom: 20px;
}

.tracker-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── Active / Pending chip — the epic glowing ones ──────────────── */

.tracker-chip.active {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, rgba(0, 212, 255, 0.06) 100%);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 10px;
    padding: 14px 20px;
    min-width: 130px;
    text-align: center;
    animation: tracker-glow-pulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* ─── Admin Payouts ─────────────────────────────────────────────── */

.admin-payout-section {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.04) 0%, rgba(10, 10, 15, 0.5) 100%);
}

.admin-payout-list {
    display: grid;
    gap: 12px;
}

.payout-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    background: rgba(18, 18, 26, 0.75);
}

.payout-main {
    flex: 1;
    min-width: 0;
}

.payout-title {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.payout-meta,
.payout-state {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.77rem;
    margin-bottom: 2px;
    word-break: break-all;
}

.payout-state a {
    color: var(--accent-cyan);
}

.payout-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.payout-btn-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proof-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-green);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.proof-link:hover {
    color: #fff;
    text-decoration: underline;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share:hover {
    background: rgba(0, 255, 136, 0.25);
    color: #fff;
    border-color: #00ff88;
    text-decoration: none;
}

.btn-share svg {
    flex-shrink: 0;
}

.btn-shared-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-shared-check:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.btn-shared-check.is-shared {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

@media (max-width: 768px) {
    .payout-item {
        flex-direction: column;
    }

    .payout-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
}

.tracker-chip.active::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(0, 255, 136, 0.08) 25%,
        transparent 50%,
        rgba(0, 212, 255, 0.06) 75%,
        transparent 100%
    );
    animation: tracker-rotate 6s linear infinite;
    pointer-events: none;
}

.tracker-chip.active::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(18, 18, 26, 0.95) 100%);
    border-radius: 9px;
    z-index: 0;
}

.tracker-chip.active .tracker-chip-inner {
    position: relative;
    z-index: 1;
}

.tracker-chip.active:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.2),
        0 0 40px rgba(0, 255, 136, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.3);
}

.tracker-chip:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s;
}

@keyframes tracker-glow-pulse {
    0%, 100% {
        box-shadow:
            0 0 8px rgba(0, 255, 136, 0.15),
            0 0 20px rgba(0, 255, 136, 0.05);
        border-color: rgba(0, 255, 136, 0.35);
    }
    50% {
        box-shadow:
            0 0 15px rgba(0, 255, 136, 0.3),
            0 0 35px rgba(0, 255, 136, 0.1),
            0 0 60px rgba(0, 212, 255, 0.05);
        border-color: rgba(0, 255, 136, 0.6);
    }
}

@keyframes tracker-rotate {
    to { transform: rotate(360deg); }
}

.tracker-crosshair {
    display: block;
    margin-bottom: 4px;
    text-align: center;
}

.tracker-crosshair .tracker-svg {
    animation: crosshair-spin 8s linear infinite;
}

@keyframes crosshair-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tracker-chip.active .tracker-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 50%, #a855f7 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: tracker-number-shift 4s ease-in-out infinite;
}

@keyframes tracker-number-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.tracker-hunt {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-green);
    letter-spacing: 3px;
    margin-top: 4px;
    opacity: 0.8;
    animation: hunt-blink 2s ease-in-out infinite;
}

@keyframes hunt-blink {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

/* ─── Claimed chip — marked off ──────────────────────────────────── */

.tracker-chip.claimed {
    position: relative;
    background: rgba(0, 255, 136, 0.04);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 10px;
    padding: 14px 20px;
    min-width: 130px;
    text-align: center;
    opacity: 0.6;
}

.tracker-chip.claimed .tracker-chip-inner {
    position: relative;
}

.tracker-status {
    display: block;
    margin-bottom: 2px;
    text-align: center;
}

.tracker-chip.claimed .tracker-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dim);
    text-decoration: line-through;
    text-decoration-color: var(--accent-green);
    text-decoration-thickness: 2px;
}

.tracker-found {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--accent-green);
    letter-spacing: 2px;
    margin-top: 2px;
    opacity: 0.7;
}

.tracker-winner {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent-cyan);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* ═══════════════════════════════════════════════════════════════════ */

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-green);
    margin: 10px auto 0;
    opacity: 0.5;
}

/* ─── Reward Ladder ──────────────────────────────────────────────── */

.reward-ladder {
    margin-bottom: 40px;
}

.ladder-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    perspective: 800px;
}

/* ── Base Slot ────────────────────────────────────────────────────── */

.ladder-slot {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 22px 14px;
    text-align: center;
    min-width: 120px;
    transition: all 0.4s ease;
    animation: ladder-float-in 0.5s ease both;
    overflow: hidden;
}

@keyframes ladder-float-in {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ladder-icon {
    display: block;
    margin-bottom: 4px;
    line-height: 1;
}

/* ── SVG Icon Sizing ──────────────────────────────────────────────── */

.ladder-svg {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
}

.tracker-svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.section-svg {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    position: relative;
    top: -1px;
}

.section-svg.sm {
    width: 18px;
    height: 18px;
}

.banner-svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

/* SVG Colors per state */
.ladder-slot.claimed .ladder-svg {
    color: var(--accent-green);
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.5));
}

.ladder-slot.upcoming .ladder-svg {
    color: var(--accent-gold);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
    animation: crosshair-spin 8s linear infinite;
}

.ladder-slot.future .ladder-svg {
    color: rgba(168, 85, 247, 0.5);
}

.tracker-crosshair .tracker-svg {
    color: var(--accent-green);
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}

.tracker-status .tracker-svg {
    color: var(--accent-green);
}

.congrats-banner .banner-svg {
    color: var(--accent-gold);
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.ladder-position {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ladder-ordinal {
    font-size: 0.55rem;
    vertical-align: super;
    margin-left: 1px;
}

.ladder-amount {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 6px;
    line-height: 1;
}

.reward-unit {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 1px;
}

.ladder-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 6px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

/* ── Claimed — Epic Victory State ─────────────────────────────────── */

.ladder-slot.claimed {
    border-color: transparent;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 255, 136, 0.12) 0%, transparent 70%),
        linear-gradient(135deg, #0d1f0d 0%, #0a160a 100%);
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.15),
        0 0 40px rgba(0, 255, 136, 0.05),
        inset 0 0 20px rgba(0, 255, 136, 0.03);
    animation: ladder-float-in 0.5s ease both, claimed-breathe 3s ease-in-out infinite;
}

/* Rotating border */
.ladder-slot.claimed::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1.5px;
    background: conic-gradient(
        from 0deg,
        var(--accent-green),
        transparent 30%,
        var(--accent-cyan) 50%,
        transparent 70%,
        var(--accent-green)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: claimed-border-spin 4s linear infinite;
    pointer-events: none;
}

/* Corner sparkle — SVG-based 4-point star */
.ladder-slot.claimed::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    clip-path: polygon(50% 0%, 60% 35%, 100% 50%, 60% 65%, 50% 100%, 40% 65%, 0% 50%, 40% 35%);
    animation: sparkle-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes claimed-breathe {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(0, 255, 136, 0.15),
            0 0 40px rgba(0, 255, 136, 0.05);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 30px rgba(0, 255, 136, 0.25),
            0 0 60px rgba(0, 255, 136, 0.1),
            0 0 80px rgba(0, 255, 136, 0.03);
        transform: scale(1.02);
    }
}

@keyframes claimed-border-spin {
    to { transform: rotate(360deg); }
}

@keyframes sparkle-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%      { opacity: 1; transform: scale(1.2); }
}

.ladder-slot.claimed .ladder-amount {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan), var(--accent-green));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: green-shimmer 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
}

@keyframes green-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.ladder-slot.claimed .ladder-label {
    color: var(--accent-green);
    font-weight: 600;
    letter-spacing: 2px;
}

.ladder-slot.claimed .ladder-position {
    color: var(--accent-green);
    opacity: 0.7;
}

/* ── Upcoming (NEXT) — Hype State ─────────────────────────────────── */

.ladder-slot.upcoming {
    border-color: transparent;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 215, 0, 0.12) 0%, transparent 70%),
        linear-gradient(135deg, #1a1500 0%, #12100a 100%);
    box-shadow:
        0 0 25px rgba(255, 215, 0, 0.2),
        0 0 50px rgba(255, 215, 0, 0.05);
    animation: ladder-float-in 0.5s ease both, upcoming-pulse 2s ease-in-out infinite;
    transform-origin: center;
}

/* Rotating gold border */
.ladder-slot.upcoming::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 2px;
    background: conic-gradient(
        from 0deg,
        var(--accent-gold),
        rgba(255, 215, 0, 0.1) 25%,
        var(--accent-gold) 50%,
        rgba(255, 215, 0, 0.1) 75%,
        var(--accent-gold)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: upcoming-border-spin 3s linear infinite;
    pointer-events: none;
}

/* Fire glow at bottom */
.ladder-slot.upcoming::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(255, 170, 0, 0.4) 0%, transparent 70%);
    border-radius: 0 0 12px 12px;
    animation: fire-flicker 1.5s ease-in-out infinite;
    pointer-events: none;
}

/* Expanding pulse ring */
.ladder-pulse-ring {
    position: absolute;
    inset: -4px;
    border: 1px solid var(--accent-gold);
    border-radius: 14px;
    animation: pulse-ring-expand 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes upcoming-pulse {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(255, 215, 0, 0.2),
            0 0 50px rgba(255, 215, 0, 0.05);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 35px rgba(255, 215, 0, 0.35),
            0 0 70px rgba(255, 215, 0, 0.1),
            0 0 100px rgba(255, 215, 0, 0.03);
        transform: scale(1.04);
    }
}

@keyframes upcoming-border-spin {
    to { transform: rotate(360deg); }
}

@keyframes fire-flicker {
    0%, 100% { opacity: 0.4; transform: scaleX(1); }
    50%      { opacity: 0.8; transform: scaleX(1.15); }
}

@keyframes pulse-ring-expand {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0; }
}

.ladder-slot.upcoming .ladder-amount {
    background: linear-gradient(135deg, #ffd700, #fff4b0, #ffaa00, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gold-shimmer 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
    font-size: 1.8rem;
}

.ladder-slot.upcoming .ladder-label {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 2px;
    animation: upcoming-label-blink 1.5s ease-in-out infinite;
}

@keyframes upcoming-label-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.ladder-slot.upcoming .ladder-position {
    color: var(--accent-gold);
}

/* ── Future (Locked) — Mysterious, Not Dead ───────────────────────── */

.ladder-slot.future {
    border-color: rgba(168, 85, 247, 0.15);
    background:
        radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 70%),
        var(--bg-card);
    opacity: 0.65;
    transition: all 0.4s ease;
}

/* Subtle purple shimmer border */
.ladder-slot.future::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.2),
        transparent 40%,
        rgba(168, 85, 247, 0.1) 60%,
        transparent
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ladder-slot.future:hover {
    opacity: 0.85;
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
}

.ladder-slot.future .ladder-amount {
    color: rgba(168, 85, 247, 0.6);
}

.ladder-slot.future .ladder-label {
    color: rgba(168, 85, 247, 0.4);
    letter-spacing: 2px;
}

.ladder-slot.future .ladder-position {
    color: rgba(168, 85, 247, 0.4);
}

.ladder-slot.future .ladder-icon {
    opacity: 0.5;
}

/* ── Pulse Keyframe (shared) ──────────────────────────────────────── */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

/* ─── Bounty Hero Banner ─────────────────────────────────────────── */

.bounty-hero {
    text-align: center;
    margin: 24px auto 0;
    padding: 20px 30px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    background:
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.06) 0%, transparent 70%),
        var(--bg-card);
    position: relative;
    max-width: 480px;
}

.bounty-hero::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: conic-gradient(
        from 0deg,
        rgba(255, 215, 0, 0.5),
        rgba(255, 215, 0, 0.05),
        rgba(255, 215, 0, 0.5),
        rgba(255, 215, 0, 0.05),
        rgba(255, 215, 0, 0.5)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: hero-border-spin 6s linear infinite;
    pointer-events: none;
}

@keyframes hero-border-spin {
    to { transform: rotate(360deg); }
}

.bounty-hero-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.bounty-hero-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

.hero-number {
    font-family: var(--font-mono);
    font-size: 3.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #fff4b0, #ffd700, #ffaa00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gold-shimmer 3s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    line-height: 1;
}

@keyframes gold-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-xrp {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 3px;
    opacity: 0.8;
}

.bounty-hero-sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 8px;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* ─── Ladder Total ───────────────────────────────────────────────── */

.ladder-total {
    text-align: center;
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ladder-total-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.ladder-remaining {
    color: var(--accent-green);
    font-weight: 600;
}

/* ─── Bounty Grid ────────────────────────────────────────────────── */

.bounty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* ─── Bounty Card ────────────────────────────────────────────────── */

.bounty-card {
    background: var(--pending-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.bounty-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.bounty-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* Claimed card styling */
.bounty-card.claimed {
    background: var(--claimed-bg);
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.bounty-card.claimed:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

/* Card Image */
.card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #080810;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

/* Pending: fully hidden — mystery placeholder */
.mystery-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #080810 0%, #0d0d18 50%, #080810 100%);
}

.mystery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.mystery-icon {
    font-size: 5rem;
    font-family: var(--font-mono);
    font-weight: 900;
    color: var(--accent-green);
    opacity: 0.15;
    animation: mystery-pulse 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

.mystery-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 8px;
    opacity: 0.4;
}

@keyframes mystery-pulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50%      { opacity: 0.25; transform: scale(1.05); }
}

/* Claimed: full color with reveal animation */
.bounty-card.claimed .card-image {
    filter: none;
    animation: reveal 0.8s ease-out;
}

@keyframes reveal {
    0%   { filter: grayscale(100%) brightness(0.3); transform: scale(1.05); }
    50%  { filter: grayscale(0%) brightness(1.3); }
    100% { filter: none; transform: scale(1); }
}

/* Card position badge */
.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 3;
}

.card-badge.pending {
    background: rgba(136, 136, 136, 0.3);
    color: var(--text-secondary);
    border: 1px solid rgba(136, 136, 136, 0.3);
}

.card-badge.claimed {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.4);
}

/* Card Body */
.card-body {
    padding: 16px;
}

.card-nft-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.bounty-card.claimed .card-nft-name {
    color: var(--text-secondary);
}

/* Reward display */
.card-reward {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 8px 0;
}

.bounty-card.pending .card-reward {
    color: var(--text-dim);
}

.bounty-card.claimed .card-reward {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.reward-unit {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Winner info (claimed only) */
.card-winner {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.winner-label {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--accent-green);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.winner-name {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.winner-name a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.winner-name a:hover {
    text-decoration: underline;
}

.winner-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin-top: 4px;
}

/* Share to X button */
.card-share {
    margin-top: 10px;
    text-align: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid var(--accent-green);
    border-radius: 6px;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: rgba(0, 255, 136, 0.18);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
    color: #fff;
}

.share-x-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Rarity tier pill */
.rarity-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.rarity-pill.tier-22,
.rarity-pill.tier-21 { background: rgba(168, 85, 247, 0.2); color: var(--accent-purple); }
.rarity-pill.tier-20,
.rarity-pill.tier-19 { background: rgba(255, 215, 0, 0.15); color: var(--accent-gold); }
.rarity-pill.tier-18,
.rarity-pill.tier-17 { background: rgba(0, 212, 255, 0.15); color: var(--accent-cyan); }
.rarity-pill.tier-16,
.rarity-pill.tier-15 { background: rgba(0, 255, 136, 0.15); color: var(--accent-green); }
.rarity-pill.tier-14,
.rarity-pill.tier-13 { background: rgba(224, 224, 224, 0.1); color: var(--text-secondary); }
.rarity-pill.tier-12,
.rarity-pill.tier-11 { background: rgba(85, 85, 85, 0.2); color: var(--text-dim); }

/* ─── Congrats Banner (claimed card) ─────────────────────────────── */

.congrats-banner {
    background: linear-gradient(90deg, rgba(0,255,136,0.1), rgba(255,215,0,0.1));
    padding: 8px 12px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

/* ─── Not Initialized State ──────────────────────────────────────── */

.not-initialized {
    text-align: center;
    padding: 60px 20px;
}

.init-box {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.init-box h2 {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.init-box p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.init-box .hint {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ─── Activity Feed ──────────────────────────────────────────────── */

.activity-section {
    margin-bottom: 40px;
}

.activity-feed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
}

.activity-item {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(31, 31, 48, 0.5);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    color: var(--text-dim);
    margin-right: 10px;
}

.activity-event {
    color: var(--accent-green);
    font-weight: 600;
    margin-right: 8px;
}

.activity-details {
    color: var(--text-secondary);
}

/* ─── Admin Panel ────────────────────────────────────────────────── */

.admin-panel {
    margin: 40px 0;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--accent-purple);
    border-radius: 12px;
}

/* Health Dashboard */
.health-dashboard {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.health-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.health-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #888;
    flex-shrink: 0;
}

.health-label {
    color: #888;
    font-weight: 700;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.health-cell {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-align: center;
}

.health-cell-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.health-cell-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.admin-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 10px 20px;
    border: 1px solid;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.btn:active {
    transform: scale(0.96);
    opacity: 0.85;
}

.btn-init {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.btn-init:hover {
    background: rgba(0, 255, 136, 0.2);
}

.btn-check {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.btn-check:hover {
    background: rgba(0, 212, 255, 0.2);
}

.btn-danger {
    background: rgba(255, 68, 68, 0.1);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.btn-danger:hover {
    background: rgba(255, 68, 68, 0.2);
}

.admin-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    min-height: 20px;
}

/* ─── Admin Reveal Panel ─────────────────────────────────────────── */

.admin-section-header {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 10px;
    text-align: center;
}

.admin-hint {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 12px;
}

.admin-reveal-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reveal-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.reveal-card.reveal-claimed {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.03);
}

.reveal-card.reveal-pending {
    border-color: rgba(255, 215, 0, 0.2);
}

.reveal-img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.reveal-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.reveal-tier {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.reveal-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    margin-top: 4px;
    font-weight: 600;
}

.reveal-status.reveal-claimed {
    color: var(--accent-green);
}

.reveal-status.reveal-pending {
    color: var(--accent-gold);
}

.reveal-owner {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-cyan);
    margin-top: 2px;
}

.btn-sm {
    margin-top: 6px;
    padding: 3px 8px !important;
    font-size: 0.65rem !important;
}

/* ─── Admin Unminted Browser ─────────────────────────────────────── */

.admin-unminted-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.admin-input {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    width: 250px;
    outline: none;
}

.admin-input:focus {
    border-color: var(--accent-cyan);
}

.admin-unminted-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.unminted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.unminted-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(31, 31, 48, 0.5);
    border-radius: 6px;
    transition: background 0.15s;
}

.unminted-item:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

.unminted-thumb {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.unminted-name {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unminted-rarity {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* ─── Footer ─────────────────────────────────────────────────────── */

.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer a {
    color: var(--accent-green);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ─── Loading State ──────────────────────────────────────────────── */

.loading-state {
    text-align: center;
    padding: 50px;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-First, Apple-Grade Polish
   80% of users are on phones. Every pixel matters here.
   ═══════════════════════════════════════════════════════════════════ */

/* Safe areas for notched phones (iPhone X+) */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .container {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ─── Tablet (≤ 768px) ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .glitch-text {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .stats-bar {
        gap: 16px;
    }

    .bounty-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }

    .ladder-slot {
        min-width: 95px;
        padding: 12px 16px 10px;
    }

    .ladder-amount {
        font-size: 1.2rem;
    }

    .ladder-slot.upcoming .ladder-amount {
        font-size: 1.4rem;
    }

    .tracker-chip.active,
    .tracker-chip.claimed {
        min-width: 110px;
        padding: 12px 14px;
    }
}

/* ─── Phone (≤ 540px) ─────────────────────────────────────────────── */

@media (max-width: 540px) {

    /* Kill matrix rain on phones — saves battery, reduces noise */
    #matrix-bg {
        display: none !important;
    }

    .scanline {
        display: none;
    }

    /* Container: tight but breathable */
    .container {
        padding: 12px 16px;
        max-width: 100%;
    }

    /* ── Header ─────────────────────────────────────────────────── */

    .header {
        padding: 20px 0 16px;
        margin-bottom: 16px;
    }

    .glitch-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
        animation: none; /* static on mobile — cleaner */
        text-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
    }

    .subtitle {
        font-size: 0.75rem;
        margin-top: 4px;
        letter-spacing: 1.5px;
    }

    .mint-cta {
        margin-top: 16px;
        padding: 12px 20px;
        gap: 10px;
        border-radius: 10px;
    }

    .mint-cta-icon {
        font-size: 1.3rem;
    }

    .mint-cta-label {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .mint-cta-sub {
        font-size: 0.6rem;
    }

    /* Stats: horizontal scroll strip — swipeable, no orphan items */
    .stats-bar {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        gap: 8px;
        margin-top: 16px;
        padding: 0 0 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .stats-bar::-webkit-scrollbar {
        display: none;
    }

    .stat {
        flex: 0 0 auto;
        min-width: 100px;
        background: rgba(18, 18, 26, 0.7);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 10px 12px;
        scroll-snap-align: start;
    }

    .stat-label {
        font-size: 0.55rem;
        letter-spacing: 1px;
        margin-bottom: 2px;
    }

    .stat-value {
        font-size: 1.05rem;
    }

    /* ── Progress Bar ───────────────────────────────────────────── */

    .progress-container {
        height: 26px;
        margin-bottom: 20px;
        border-radius: 13px;
    }

    .progress-bar {
        border-radius: 13px;
    }

    .progress-text {
        font-size: 0.72rem;
    }

    /* ── Bounty Tracker — horizontal scroll strip ───────────────── */

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

    .section-title {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .tracker-subtitle {
        font-size: 0.65rem;
        margin-top: -8px;
        margin-bottom: 12px;
    }

    .tracker-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 4px 2px 12px;
    }

    .tracker-chip.active,
    .tracker-chip.claimed {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 10px 14px;
        scroll-snap-align: start;
    }

    .tracker-crosshair .tracker-svg {
        width: 16px;
        height: 16px;
        /* slow down on mobile for battery */
        animation: crosshair-spin 16s linear infinite;
    }

    .tracker-chip.active .tracker-number {
        font-size: 1rem;
    }

    .tracker-hunt {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .tracker-chip.claimed .tracker-number {
        font-size: 0.95rem;
    }

    .tracker-found {
        font-size: 0.5rem;
    }

    .tracker-winner {
        font-size: 0.55rem;
        max-width: 90px;
    }

    /* Reduce glow pulse intensity on mobile */
    .tracker-chip.active {
        animation: tracker-glow-pulse-mobile 4s ease-in-out infinite;
    }

    @keyframes tracker-glow-pulse-mobile {
        0%, 100% {
            box-shadow: 0 0 6px rgba(0, 255, 136, 0.1);
            border-color: rgba(0, 255, 136, 0.3);
        }
        50% {
            box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
            border-color: rgba(0, 255, 136, 0.5);
        }
    }

    /* ── Reward Ladder — horizontal scroll ──────────────────────── */

    .reward-ladder {
        margin-bottom: 24px;
    }

    .ladder-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 4px 2px 12px;
    }

    .ladder-slot {
        flex: 0 0 auto;
        min-width: 95px;
        padding: 12px 16px 10px;
        border-radius: 10px;
    }

    .ladder-position {
        font-size: 0.6rem;
    }

    .ladder-amount {
        font-size: 1.2rem;
    }

    .ladder-slot.upcoming .ladder-amount {
        font-size: 1.4rem;
    }

    .ladder-label {
        font-size: 0.55rem;
    }

    .ladder-svg {
        width: 18px;
        height: 18px;
    }

    /* ── Bounty Cards — full width stack ────────────────────────── */

    .bounty-section {
        margin-bottom: 24px;
    }

    .bounty-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bounty-card {
        border-radius: 14px;
        contain: layout style;
    }

    /* Disable hover transforms on touch — they stick and look wrong */
    .bounty-card:hover {
        transform: none;
        box-shadow: none;
    }

    .bounty-card.claimed:hover {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    }

    .tracker-chip.active:hover {
        transform: none;
    }

    /* ── Pending: compact iOS-style rows ───────────────────────── */

    .bounty-card.pending {
        display: flex;
        align-items: stretch;
        border-radius: 12px;
        overflow: hidden;
        transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    background 0.15s;
    }

    .bounty-card.pending:active {
        transform: scale(0.98);
        background: rgba(18, 18, 26, 0.95);
    }

    .bounty-card.pending .card-image-wrap {
        width: 52px;
        min-height: 52px;
        aspect-ratio: auto;
        flex-shrink: 0;
        border-radius: 0;
    }

    .bounty-card.pending .card-image-wrap.mystery-wrap {
        aspect-ratio: auto;
    }

    .bounty-card.pending .mystery-icon {
        font-size: 1.3rem;
    }

    .bounty-card.pending .mystery-text {
        display: none;
    }

    .bounty-card.pending .card-badge {
        display: none;
    }

    .bounty-card.pending .card-body {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        min-width: 0;
    }

    .bounty-card.pending .card-nft-name {
        font-size: 0.8rem;
        margin: 0;
        color: var(--text-secondary);
    }

    .bounty-card.pending .card-body::after {
        content: 'PENDING';
        font-family: var(--font-mono);
        font-size: 0.55rem;
        color: var(--text-dim);
        letter-spacing: 1px;
        padding: 3px 8px;
        border: 1px solid var(--border);
        border-radius: 4px;
        flex-shrink: 0;
    }

    /* ── Claimed: full rich reveal card ────────────────────────── */

    .bounty-card.claimed {
        display: grid;
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .bounty-card.claimed .card-image-wrap {
        aspect-ratio: 16 / 10;
        border-radius: 14px 14px 0 0;
    }

    .card-body {
        padding: 12px 14px 14px;
    }

    .card-badge {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 0.6rem;
    }

    .card-nft-name {
        font-size: 0.8rem;
    }

    .card-reward {
        font-size: 1.15rem;
    }

    .congrats-banner {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    /* Tap targets: min 44px for all interactive elements */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 0.8rem;
    }

    /* ── Activity Feed ──────────────────────────────────────────── */

    .activity-section {
        margin-bottom: 24px;
    }

    .activity-feed {
        max-height: 200px;
        border-radius: 10px;
    }

    .activity-item {
        padding: 8px 10px;
        font-size: 0.68rem;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .activity-time {
        display: block;
        width: 100%;
        margin-bottom: 1px;
        font-size: 0.6rem;
    }

    .activity-event {
        font-size: 0.68rem;
    }

    .activity-details {
        font-size: 0.65rem;
        word-break: break-word;
    }

    /* ── Not Initialized ────────────────────────────────────────── */

    .not-initialized {
        padding: 40px 16px;
    }

    .init-box {
        padding: 24px 16px;
    }

    .init-box h2 {
        font-size: 1rem;
    }

    .init-box p {
        font-size: 0.8rem;
    }

    /* ── Admin Panel ────────────────────────────────────────────── */

    .admin-panel {
        margin: 24px 0;
        padding: 16px;
        border-radius: 14px;
    }

    .health-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-controls {
        flex-direction: column;
        gap: 8px;
    }

    .admin-controls .btn {
        width: 100%;
    }

    .admin-input {
        width: 100%;
    }

    .admin-unminted-controls {
        flex-direction: column;
    }

    .unminted-grid {
        grid-template-columns: 1fr;
    }

    .reveal-card {
        flex-direction: column;
        text-align: center;
        padding: 14px;
    }

    .reveal-img {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    /* ── Footer ─────────────────────────────────────────────────── */

    .footer {
        margin-top: 24px;
        padding: 20px 0;
    }

    .footer p {
        font-size: 0.65rem;
    }

    /* ── Section title underline ────────────────────────────────── */

    .section-title::after {
        width: 40px;
        margin-top: 8px;
    }
}

/* ─── Small phones (≤ 375px  — iPhone SE, etc.) ──────────────────── */

@media (max-width: 375px) {
    .container {
        padding: 10px 12px;
    }

    .glitch-text {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }

    .stat {
        min-width: 85px;
        padding: 8px 10px;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .tracker-chip.active,
    .tracker-chip.claimed {
        min-width: 88px;
        padding: 8px 10px;
    }

    .tracker-chip.active .tracker-number {
        font-size: 0.88rem;
    }

    .ladder-slot {
        min-width: 80px;
        padding: 10px 12px 8px;
    }

    .ladder-amount {
        font-size: 1.05rem;
    }

    .ladder-slot.upcoming .ladder-amount {
        font-size: 1.2rem;
    }

    .ladder-svg {
        width: 16px;
        height: 16px;
    }

    .bounty-card.claimed .card-image-wrap {
        aspect-ratio: 16 / 9;
    }

    .bounty-card.pending .card-image-wrap {
        width: 44px;
        min-height: 44px;
    }

    .bounty-card.pending .mystery-icon {
        font-size: 1.1rem;
    }

    .bounty-card.pending .card-body {
        padding: 8px 10px;
    }

    .bounty-card.pending .card-body::after {
        font-size: 0.5rem;
        padding: 2px 6px;
    }

    .activity-feed {
        max-height: 160px;
    }
}

/* ─── Reduced Motion — respect accessibility preference ──────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .progress-bar::after {
        animation: none;
    }

    #matrix-bg {
        display: none;
    }
}

/* ─── Scrollbar ──────────────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ─── Toast Notifications ────────────────────────────────────────── */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    max-width: 420px;
    word-break: break-word;
}

.toast-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-msg {
    line-height: 1.4;
}

.toast-success {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), var(--bg-card));
}

.toast-error {
    border-color: #ff4444;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.08), var(--bg-card));
}

.toast-info {
    border-color: var(--accent-cyan);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), var(--bg-card));
}

.toast-warning {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), var(--bg-card));
}

.toast-xrp {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(0, 255, 136, 0.06), var(--bg-card));
    box-shadow: 0 4px 24px rgba(255, 215, 0, 0.15);
}

@media (max-width: 600px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    .toast {
        max-width: 100%;
    }
}
