/* ==========================================================================
   Hero CP Card Deck  v3
   Light glass theme. TimeLlama-quality density. 6-card fan. Subtle lift hover.
   ========================================================================== */

.hd-stage {
    --hd-green:   #96bc33;
    --hd-green2:  #7ba028;
    --hd-teal:    #2d6e6a;
    --hd-orange:  #e8543f;
    --hd-blue:    #3a8ee6;
    --hd-purple:  #8b80d8;
    --hd-card:    rgba(255,255,255,0.82);
    --hd-border:  rgba(255,255,255,0.9);
    --hd-head-bg: rgba(248,250,252,0.95);
    --hd-divider: rgba(0,0,0,0.07);
    --hd-muted:   #8a90a0;
    --hd-faint:   #e4e7ee;
    --hd-track:   #dde1ea;
    --hd-ink:     #1e2230;
    --hd-text:    #3a3f50;

    perspective: 2400px;
    width: 100%;
    max-width: 600px;
    height: 360px;
    margin: 0;
    position: relative;
}

/* ---- Two-column hero layout ---- */
.hd-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 5rem 1.5rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hd-two-col__text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hd-two-col__fan {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hd-nav-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.35rem;
}

.hd-deck-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hd-deck-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem 0.6rem;
    margin-bottom: 0;
}

.hd-deck-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted, #8a90a0);
}

.hd-deck-nav {
    display: flex;
    gap: 0.4rem;
}

.hd-deck {
    position: absolute;
    inset: 0;
    /*overflow: hidden;*/
}

/* ---- Card base ---- */
.hd-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 194px;
    margin: -97px 0 0 -150px;
    background: var(--hd-card);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid var(--hd-border);
    border-radius: 16px;
    box-shadow:
        0 2px 0 rgba(255,255,255,0.9) inset,
        0 16px 40px rgba(26,31,46,0.18),
        0 4px 12px rgba(26,31,46,0.10);
    overflow: hidden;
    cursor: default;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.35s ease,
                z-index 0s;
}

/* 6-card fan: 2D transforms only so z-index works correctly */
.hd-card--1 { transform: translate(-100px, 40px) scale(0.82); z-index: 1; }
.hd-card--2 { transform: translate( -60px, 24px) scale(0.86); z-index: 2; }
.hd-card--3 { transform: translate( -20px,  9px) scale(0.91); z-index: 3; }
.hd-card--4 { transform: translate(  20px, -5px) scale(0.95); z-index: 4; }
.hd-card--5 { transform: translate(  60px,-18px) scale(0.98); z-index: 5; }
.hd-card--6 { transform: translate( 100px,-32px) scale(1);    z-index: 6; }

 /*Hover: disabled - uncomment to re-enable*/
/*.hd-card--1:hover { transform: translate(-100px, 28px) scale(0.85); z-index: 20; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 28px 56px rgba(26,31,46,0.24), 0 8px 24px rgba(150,188,51,0.12); }
.hd-card--2:hover { transform: translate( -60px, 12px) scale(0.89); z-index: 20; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 28px 56px rgba(26,31,46,0.24), 0 8px 24px rgba(150,188,51,0.12); }
.hd-card--3:hover { transform: translate( -20px, -3px) scale(0.94); z-index: 20; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 28px 56px rgba(26,31,46,0.24), 0 8px 24px rgba(150,188,51,0.12); }
.hd-card--4:hover { transform: translate(  20px,-17px) scale(0.98); z-index: 20; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 28px 56px rgba(26,31,46,0.24), 0 8px 24px rgba(150,188,51,0.12); }
.hd-card--5:hover { transform: translate(  60px,-30px) scale(1.01); z-index: 20; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 28px 56px rgba(26,31,46,0.24), 0 8px 24px rgba(150,188,51,0.12); }
.hd-card--6:hover { transform: translate( 100px,-44px) scale(1.03); z-index: 20; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 28px 56px rgba(26,31,46,0.24), 0 8px 24px rgba(150,188,51,0.12); }*/


/* ---- Card chrome ---- */
.hd-head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    background: var(--hd-head-bg);
    border-bottom: 1px solid var(--hd-divider);
}

.hd-win {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.hd-win i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
}

.hd-win i:nth-child(1) { background: #ff5f57; }
.hd-win i:nth-child(2) { background: #febc2e; }
.hd-win i:nth-child(3) { background: #28c840; }

.hd-title {
    font-weight: 700;
    font-size: 0.6rem;
    color: var(--hd-ink);
    letter-spacing: -0.01em;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hd-badge {
    font-size: 0.48rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 20px;
    background: rgba(150,188,51,0.15);
    color: var(--hd-green2);
    border: 1px solid rgba(150,188,51,0.25);
    white-space: nowrap;
}

.hd-body {
    padding: 0.45rem 0.6rem;
    height: calc(100% - 28px);
}

/* ---- Shared sub-elements ---- */
.hd-label {
    font-size: 0.44rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hd-muted);
    margin-bottom: 0.2rem;
}

.hd-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--hd-ink);
    line-height: 1;
}

.hd-val--green { color: var(--hd-green2); }
.hd-val--orange { color: var(--hd-orange); }
.hd-val--blue { color: var(--hd-blue); }

/* ---- Stat strip (agency overview top row) ---- */
.hd-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}

.hd-stat {
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--hd-divider);
    border-radius: 7px;
    padding: 0.3rem 0.4rem;
}

/* ---- Site table rows (stations & dashboard) ---- */
.hd-rows {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.hd-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.35rem;
    border-radius: 5px;
    background: rgba(0,0,0,0.02);
    border: 1px solid transparent;
}

.hd-row:first-child {
    border-color: rgba(150,188,51,0.25);
    background: rgba(150,188,51,0.05);
}

.hd-statusdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--hd-green);
    box-shadow: 0 0 0 2px rgba(150,188,51,0.2);
}

.hd-statusdot--off {
    background: var(--hd-track);
    box-shadow: none;
}

.hd-name {
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--hd-ink);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hd-pill-status {
    font-size: 0.42rem;
    font-weight: 700;
    padding: 0.08rem 0.28rem;
    border-radius: 4px;
    color: #fff;
    flex-shrink: 0;
}

.hd-pill-status--on  { background: var(--hd-green); }
.hd-pill-status--off { background: #b3b8c4; }

.hd-bar {
    height: 5px;
    border-radius: 3px;
    background: var(--hd-track);
    flex-shrink: 0;
}

.hd-bartrack {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: var(--hd-track);
    overflow: hidden;
    min-width: 40px;
}

.hd-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--hd-green);
}

.hd-bar-fill--warn { background: var(--hd-orange); }

.hd-spark {
    flex-shrink: 0;
    width: 48px;
    height: 14px;
}

.hd-spark path {
    fill: none;
    stroke: var(--hd-green);
    stroke-width: 1.5;
}

.hd-spark path.warn { stroke: var(--hd-orange); }

/* ---- Dashboard donut grid ---- */
.hd-donut-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
}

.hd-donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.hd-donut {
    width: 36px;
    height: 36px;
}

.hd-donut-name {
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--hd-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* ---- Automation: sub-tabs + chart ---- */
.hd-subtabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--hd-divider);
    padding-bottom: 0.25rem;
}

.hd-subtab {
    font-size: 0.47rem;
    font-weight: 600;
    color: var(--hd-muted);
    padding: 0.12rem 0.3rem;
    border-radius: 4px;
}

.hd-subtab--active {
    background: rgba(150,188,51,0.14);
    color: var(--hd-green2);
}

.hd-node-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 0.3rem;
}

.hd-npill {
    font-size: 0.42rem;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border-radius: 5px;
    background: rgba(26,31,46,0.07);
    color: var(--hd-text);
    border: 1px solid var(--hd-divider);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hd-npill .material-symbols-outlined {
    font-size: 8px;
    color: var(--hd-muted);
}

.hd-npill--active {
    background: rgba(150,188,51,0.15);
    border-color: rgba(150,188,51,0.4);
    color: var(--hd-green2);
}

.hd-npill--active .material-symbols-outlined {
    color: var(--hd-green2);
}

.hd-npill--ghost {
    background: transparent;
    color: var(--hd-muted);
    border: 1px dashed var(--hd-track);
}

.hd-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 76px;
    border-top: 1px solid var(--hd-divider);
    padding-top: 0.4rem;
}

.hd-chart span {
    flex: 1;
    background: var(--hd-green);
    border-radius: 2px 2px 0 0;
    opacity: 0.8;
}

.hd-chart span.spike { opacity: 1; background: var(--hd-orange); }

/* ---- Map ---- */
.hd-map {
    position: relative;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(140deg, #f0f4e8 0%, #edf1f7 55%, #e8ecf2 100%);
}

.hd-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hd-road {
    position: absolute;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
}

.hd-pin {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.28);
}

.hd-pin::after {
    content: "";
    position: absolute;
    inset: 5px;
    background: #fff;
    border-radius: 50%;
}

.hd-pin--on  { background: var(--hd-green); }
.hd-pin--off { background: var(--hd-orange); }

.hd-map-legend {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 0.6rem;
    background: rgba(255,255,255,0.82);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--hd-muted);
}

.hd-map-legend span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.hd-ldot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/* ---- Remote support ---- */
.hd-rs-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--hd-divider);
    margin-bottom: 0.4rem;
}

.hd-rs-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-rs-icon--green { background: rgba(150,188,51,0.15); }
.hd-rs-icon--grey  { background: rgba(0,0,0,0.06); }

.hd-rs-icon .material-symbols-outlined {
    font-size: 16px;
    color: var(--hd-green2);
}

.hd-rs-icon--grey .material-symbols-outlined { color: var(--hd-muted); }

.hd-rs-info { flex: 1; min-width: 0; }

.hd-rs-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--hd-ink);
}

.hd-rs-sub {
    font-size: 0.55rem;
    color: var(--hd-muted);
}

.hd-rs-badge {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    border-radius: 5px;
    flex-shrink: 0;
}

.hd-rs-badge--live {
    background: rgba(150,188,51,0.15);
    color: var(--hd-green2);
    border: 1px solid rgba(150,188,51,0.3);
}

.hd-rs-badge--idle {
    background: rgba(0,0,0,0.05);
    color: var(--hd-muted);
    border: 1px solid var(--hd-divider);
}

.hd-rs-note {
    font-size: 0.55rem;
    color: var(--hd-muted);
    border-top: 1px solid var(--hd-divider);
    padding-top: 0.5rem;
    margin-top: 0.1rem;
    line-height: 1.4;
}

/* ---- Network nodes ---- */
.hd-node-card {
    border: 1px solid var(--hd-divider);
    border-radius: 9px;
    margin-bottom: 0.45rem;
    overflow: hidden;
}

.hd-node-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.55rem;
    background: rgba(0,0,0,0.025);
    border-bottom: 1px solid var(--hd-divider);
}

.hd-node-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--hd-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hd-node-icon .material-symbols-outlined {
    font-size: 12px;
    color: #fff;
}

.hd-node-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--hd-ink);
    flex: 1;
}

.hd-node-ip {
    font-size: 0.55rem;
    color: var(--hd-muted);
    font-family: monospace;
}

.hd-node-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 38px;
    padding: 0.3rem 0.55rem;
}

.hd-node-bars span {
    flex: 1;
    border-radius: 1px 1px 0 0;
    background: rgba(150,188,51,0.6);
}

/* ---- Header icon (replaces traffic-light dots) ---- */
.hd-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: rgba(150,188,51,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hd-icon .material-symbols-outlined {
    font-size: 11px;
    color: var(--hd-green2);
}

/* ---- Station info strip ---- */
.hd-st-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 0.15rem;
}

.hd-st-chip {
    font-size: 0.4rem;
    font-weight: 600;
    padding: 0.07rem 0.28rem;
    border-radius: 3px;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--hd-divider);
    color: var(--hd-text);
    white-space: nowrap;
}

/* ---- Station metric rows (area charts) ---- */
.hd-met {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hd-met-label {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.42rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hd-muted);
    width: 38px;
    flex-shrink: 0;
}

.hd-met-label .material-symbols-outlined {
    font-size: 9px;
}

.hd-area {
    flex: 1;
    height: 20px;
    display: block;
    overflow: visible;
}

/* ---- Remote desktop mockup ---- */
.hd-rdp {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hd-rdp-screen {
    flex: 1;
    background: #dde3ed;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hd-rdp-taskbar {
    height: 10px;
    background: #1e2a3a;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.hd-rdp-desktop {
    flex: 1;
    padding: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.hd-rdp-window {
    width: 100%;
    background: #f0f2f6;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.hd-rdp-win-bar {
    height: 16px;
    background: #e4e7ee;
    display: flex;
    align-items: center;
    padding: 0 0.4rem;
    gap: 0.3rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.hd-rdp-win-title {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: rgba(0,0,0,0.12);
}

.hd-rdp-win-btns {
    display: flex;
    gap: 3px;
}

.hd-rdp-win-btns i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: block;
}

.hd-rdp-win-btns i:nth-child(1) { background: #ff5f57; }
.hd-rdp-win-btns i:nth-child(2) { background: #febc2e; }
.hd-rdp-win-btns i:nth-child(3) { background: #28c840; }

.hd-rdp-win-body {
    display: flex;
    height: 90px;
}

.hd-rdp-sidebar {
    width: 44px;
    background: #2d6e6a;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 5px;
    flex-shrink: 0;
}

.hd-rdp-sidebar span {
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.25);
}

.hd-rdp-sidebar span:first-child {
    background: rgba(255,255,255,0.9);
}

.hd-rdp-content {
    flex: 1;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #f6f8fb;
    position: relative;
}

.hd-rdp-row {
    height: 6px;
    border-radius: 3px;
    background: #dde1ea;
    width: 100%;
}

.hd-rdp-row:nth-child(2) { background: rgba(150,188,51,0.35); }

/* SVG mouse cursor */
.hd-rdp-cursor {
    position: absolute;
    bottom: 12px;
    right: 18px;
    pointer-events: none;
    filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.35));
}

.hd-rdp-bar {
    height: 26px;
    background: rgba(26,31,46,0.92);
    display: flex;
    align-items: center;
    padding: 0 0.6rem;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hd-rdp-station {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}

.hd-rdp-station .material-symbols-outlined {
    font-size: 13px;
    color: var(--hd-green);
}

.hd-rdp-relay {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.4);
    flex: 1;
}

/* ---- Arrow nav buttons ---- */
.hd-arrow {
    position: relative;
    top: auto;
    transform: none;
    z-index: 30;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--hd-divider);
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(26,31,46,0.14);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hd-ink);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    padding: 0;
}

.hd-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(26,31,46,0.2);
    transform: scale(1.08);
}

.hd-arrow .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

.hd-stage { overflow: visible; }

/* ---- Active card (JS-driven cycle) ---- */
.hd-card--active.hd-card--1 { transform: translate(-48px, 28px) scale(0.87); z-index: 25 !important; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4); }
.hd-card--active.hd-card--2 { transform: translate( -48px, 12px) scale(0.91); z-index: 25 !important; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4); }
.hd-card--active.hd-card--3 { transform: translate( -20px, -3px) scale(0.96); z-index: 25 !important; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4); }
.hd-card--active.hd-card--4 { transform: translate(  20px,-17px) scale(1.00); z-index: 25 !important; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4); }
.hd-card--active.hd-card--5 { transform: translate(  48px,-30px) scale(1.03); z-index: 25 !important; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4); }
.hd-card--active.hd-card--6 { transform: translate( 48px,-44px) scale(1.05); z-index: 25 !important; box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4); }

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .hd-stage {
        height: 260px;
        max-width: 100%;
    }

    .hd-card {
        width: 240px;
        height: 155px;
        margin: -77px 0 0 -120px;
    }

    .hd-card--1 { transform: translate(-64px, 42px) scale(0.82); }
    .hd-card--2 { transform: translate( -64px, 25px) scale(0.86); }
    .hd-card--3 { transform: translate( -22px,  9px) scale(0.91); }
    .hd-card--4 { transform: translate(  22px, -5px) scale(0.95); }
    .hd-card--5 { transform: translate(  48px,-19px) scale(0.98); }
    .hd-card--6 { transform: translate( 48px,-33px) scale(1); }

    /*.hd-card--1:hover { transform: translate(-64px, 30px) scale(0.85); z-index: 20; }
    .hd-card--2:hover { transform: translate( -64px, 13px) scale(0.89); z-index: 20; }
    .hd-card--3:hover { transform: translate( -22px, -3px) scale(0.94); z-index: 20; }
    .hd-card--4:hover { transform: translate(  22px,-17px) scale(0.98); z-index: 20; }
    .hd-card--5:hover { transform: translate(  48px,-31px) scale(1.01); z-index: 20; }
    .hd-card--6:hover { transform: translate( 48px,-45px) scale(1.03); z-index: 20; }*/
}



/* LG Breakpoint (tablets, 992px and up) */
@media (min-width: 768px) {

    /* ---- Active card (JS-driven cycle) ---- */
    .hd-card--active.hd-card--1 {
        transform: translate(-100px, 28px) scale(0.87);
        z-index: 25 !important;
        box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4);
    }

    .hd-card--active.hd-card--2 {
        transform: translate( -60px, 12px) scale(0.91);
        z-index: 25 !important;
        box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4);
    }

    .hd-card--active.hd-card--3 {
        transform: translate( -20px, -3px) scale(0.96);
        z-index: 25 !important;
        box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4);
    }

    .hd-card--active.hd-card--4 {
        transform: translate( 20px,-17px) scale(1.00);
        z-index: 25 !important;
        box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4);
    }

    .hd-card--active.hd-card--5 {
        transform: translate( 60px,-30px) scale(1.03);
        z-index: 25 !important;
        box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4);
    }

    .hd-card--active.hd-card--6 {
        transform: translate( 100px,-44px) scale(1.05);
        z-index: 25 !important;
        box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 36px 70px rgba(26,31,46,0.28), 0 0 0 2px rgba(150,188,51,0.4);
    }


    .hd-card--1 {
        transform: translate(-112px, 42px) scale(0.82);
    }

    .hd-card--2 {
        transform: translate( -67px, 25px) scale(0.86);
    }

    .hd-card--3 {
        transform: translate( -22px, 9px) scale(0.91);
    }

    .hd-card--4 {
        transform: translate( 22px, -5px) scale(0.95);
    }

    .hd-card--5 {
        transform: translate( 67px,-19px) scale(0.98);
    }

    .hd-card--6 {
        transform: translate( 112px,-33px) scale(1);
    }

    /*.hd-card--1:hover {
        transform: translate(-112px, 30px) scale(0.85);
        z-index: 20;
    }

    .hd-card--2:hover {
        transform: translate( -67px, 13px) scale(0.89);
        z-index: 20;
    }

    .hd-card--3:hover {
        transform: translate( -22px, -3px) scale(0.94);
        z-index: 20;
    }

    .hd-card--4:hover {
        transform: translate( 22px,-17px) scale(0.98);
        z-index: 20;
    }

    .hd-card--5:hover {
        transform: translate( 67px,-31px) scale(1.01);
        z-index: 20;
    }

    .hd-card--6:hover {
        transform: translate( 112px,-45px) scale(1.03);
        z-index: 20;
    }*/

    .hd-deck {
        overflow: unset;
    }
}
