/* ============================================================
   rake.css — Responsive coordinate counter display
   ============================================================ */

/* Scrollable horizontal strip on mobile, centered flex on desktop */
.rake-wrapper {
    display: flex;
    justify-content: safe center;
    align-items: flex-end;
    gap: clamp(0.05rem, 0.8vw, 0.4rem);
    position: relative;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
}

.rake-wrapper::-webkit-scrollbar {
    display: none;
}

.coord-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    min-width: 0;
}

/* ── Core text: scales from 0.85rem at ~320px up to 1.5rem at 800px+ */
.coord-text {
    font-size: clamp(0.7rem, 2.8vw, 1.5rem);
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    padding: 0 clamp(0px, 0.2vw, 0.2rem);
    font-variant-numeric: tabular-nums;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.coord-prefix {
    font-size: 0.65em;
    color: rgba(255, 215, 0, 0.75);
    font-weight: 600;
    text-shadow: none;
    letter-spacing: 0.04em;
}

.coord-num {
    font-size: 1em;
    color: #fff;
}

.coord-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3px;
    height: 16px;
    width: 12px;
}

.coord-arrow-up {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 5px solid rgba(0, 212, 255, 0.5);
}

.coord-stem {
    width: 2px;
    background-color: var(--accent-cyan);
    flex: 1;
    box-shadow: 0 0 5px var(--accent-cyan);
}

.rake-baseline {
    width: 100%;
    height: 2px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    border-radius: 2px;
    margin-top: 0;
}

/* ── Label beneath arrow: scale down on mobile */
.coord-label {
    font-size: clamp(0.4rem, 1.2vw, 0.62rem);
    font-weight: 600;
    font-family: var(--font-heading);
    color: rgba(0, 180, 255, 0.9);
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.05em;
    opacity: 1;
    text-shadow: 0 0 6px rgba(0, 150, 255, 0.3);
    white-space: nowrap;
}

.coords-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 2rem auto;
    overflow: hidden;
}

.coord-dot {
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.3);
    align-self: flex-start;
    padding-top: 2px;
}