/* ==========================================================================
   VeMaDo Versicherungsrad – Precision Manufaktur UI & Mobile Dock
   ========================================================================== */

.vmd-wheel-stage {
    --vmd-spring-fallback: cubic-bezier(0.22, 1.18, 0.36, 1);
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    container: wheel / inline-size;
    contain: layout style;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y manipulation;
}

/* Ambient halo & soft static drop-shadow behind the wheel (zero per-frame SVG blur cost) */
.vmd-wheel-halo {
    position: absolute;
    inset: 1%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 51.5%, rgba(5, 9, 18, 0.56) 53%, rgba(56, 149, 255, 0.16) 63%, rgba(28, 43, 75, 0.1) 69%, transparent 76%);
    pointer-events: none;
    z-index: 0;
    transform: scale(1);
    opacity: 0.95;
    transition: opacity 0.65s ease-out, transform 0.88s ease-out;
}

.vmd-wheel-stage.has-active .vmd-wheel-halo {
    background:
        radial-gradient(circle at 50% 51.5%, rgba(5, 9, 18, 0.58) 53%, rgba(192, 73, 48, 0.24) 63%, rgba(56, 149, 255, 0.1) 69%, transparent 76%);
    transform: scale(1.04);
    opacity: 1;
}

/* Main SVG Wheel (filter-free for smooth 60fps compositor rotation) */
.vmd-wheel-svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transform-origin: 50% 50%;
    transition:
        opacity 0.68s ease-out,
        transform 1.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#wheel-compass-ticks {
    transform-box: view-box;
    transform-origin: 50% 50%;
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition:
        opacity 0.72s ease-out,
        transform 1.36s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Immediate 3-act opening choreography on first paint */
.vmd-wheel-stage[data-reveal="pending"] .vmd-wheel-svg {
    opacity: 0;
    transform: scale(0.72) rotate(-42deg);
    transition: none;
}

.vmd-wheel-stage[data-reveal="pending"] #wheel-compass-ticks {
    opacity: 0;
    transform: scale(0.88) rotate(28deg);
    transition: none;
}

.vmd-wheel-stage[data-reveal="pending"] .segment-group {
    opacity: 0;
    transform: translate(calc(var(--seg-dx, 0px) * -2.8), calc(var(--seg-dy, 0px) * -2.8)) scale(0.56);
    transition: none;
}

.vmd-wheel-stage[data-reveal="pending"] .wheel-logo-center {
    opacity: 0.01;
    transform: translate(-50%, -50%) scale(0.38);
    transition: none;
}

/* Promote only the outer HTML containers during reveal; never promote 12 SVG <g> subtrees into separate 1640x1640 GPU textures */
.vmd-wheel-stage[data-reveal="ready"] .vmd-wheel-svg,
.vmd-wheel-stage[data-reveal="ready"] .wheel-logo-center {
    will-change: transform, opacity;
}

.vmd-wheel-stage[data-reveal="ready"] .segment-group {
    transition:
        opacity 0.52s ease-out var(--enter-delay, 0ms),
        transform 0.84s cubic-bezier(0.22, 1, 0.36, 1) var(--enter-delay, 0ms);
}

.vmd-wheel-stage[data-reveal="ready"] .wheel-logo-center {
    transition:
        opacity 0.56s ease-out 0.64s,
        transform 0.92s cubic-bezier(0.22, 1, 0.36, 1) 0.64s;
}

/* Terracotta gap connectors */
.wheel-connector {
    transition: opacity 0.32s ease;
}

.wheel-connector.is-lit .connector-core {
    fill: url(#connector-grad-lit);
}

.wheel-connector.is-lit .connector-spec {
    opacity: 0.98;
}

/* Shortest-path inner compass tracker */
.compass-tracker-group {
    transform-box: view-box;
    transform-origin: 50% 50%;
    transform: rotate(15deg);
    opacity: 0;
    transition:
        opacity 0.26s ease-out,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.vmd-wheel-stage.has-topic .compass-tracker-group {
    opacity: 1;
}

/* Segment interactive groups – SVG view-box center + pure compositor transform without synchronous GPU texture re-rasterization */
.segment-group {
    transform-box: view-box;
    transform-origin: 50% 50%;
    transform: translate(0px, 0px) scale(1);
    opacity: 1;
    cursor: pointer;
    outline: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.segment-glow-ring,
.segment-bevel-active,
.segment-plate-active {
    opacity: 0;
    transition: opacity 0.24s ease-out;
}

.segment-casing {
    transition: stroke 0.24s ease, stroke-width 0.24s ease;
}

.segment-text {
    font-family: var(--font-main, 'Outfit', system-ui, -apple-system, sans-serif);
    font-weight: 800;
    fill: #141d2b;
    font-size: 16.5px;
    letter-spacing: 0.85px;
    pointer-events: none;
    text-transform: uppercase;
    transition: fill 0.24s ease;
}

.segment-icon {
    transform-box: fill-box;
    transform-origin: center;
    transform: translate(0px, 0px) scale(1) rotate(0deg);
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Expressive Desktop Hover (.is-hovered + @media (hover: hover)) & Locked Active States */
.segment-group.is-hovered {
    transform: translate(var(--seg-dx, 0px), var(--seg-dy, 0px)) scale(1.036);
}

.segment-group.is-hovered .segment-glow-ring,
.segment-group.is-hovered .segment-bevel-active,
.segment-group.is-hovered .segment-plate-active {
    opacity: 1;
}

.segment-group.is-hovered .segment-casing {
    stroke: #c04930;
    stroke-width: 5px;
}

.segment-group.is-hovered .segment-text {
    fill: #9b351e;
}

.segment-group.is-hovered .segment-icon {
    transform: translateY(-4px) scale(1.13) rotate(-2deg);
}

@media (hover: hover) {
    .segment-group:hover {
        transform: translate(var(--seg-dx, 0px), var(--seg-dy, 0px)) scale(1.036);
    }
    .segment-group:hover .segment-glow-ring,
    .segment-group:hover .segment-bevel-active,
    .segment-group:hover .segment-plate-active {
        opacity: 1;
    }
    .segment-group:hover .segment-casing {
        stroke: #c04930;
        stroke-width: 5px;
    }
    .segment-group:hover .segment-text {
        fill: #9b351e;
    }
    .segment-group:hover .segment-icon {
        transform: translateY(-4px) scale(1.13) rotate(-2deg);
    }
}

.segment-group.is-active {
    transform: translate(calc(var(--seg-dx, 0px) * 1.2), calc(var(--seg-dy, 0px) * 1.2)) scale(1.044);
}

.segment-group.is-active .segment-glow-ring,
.segment-group.is-active .segment-bevel-active,
.segment-group.is-active .segment-plate-active {
    opacity: 1;
}

.segment-group.is-active .segment-casing {
    stroke: #c04930;
    stroke-width: 5.4px;
}

.segment-group.is-active .segment-text {
    fill: #9b351e;
}

.segment-group.is-active .segment-icon {
    transform: translateY(-4px) scale(1.14) rotate(-2deg);
}

/* Tactile press state */
.segment-group:active {
    transform: translate(calc(var(--seg-dx, 0px) * 0.5), calc(var(--seg-dy, 0px) * 0.5)) scale(1.012);
}

/* Keyboard accessible focus ring with >= 3:1 contrast */
.segment-group:focus-visible .segment-casing {
    stroke: #3895ff;
    stroke-width: 6.5px;
}

/* ==========================================================================
   Center Pearl Disc Overlays (Idle Brand State & Dynamic Topic / Welcome Info)
   ========================================================================== */

.wheel-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 36%;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
    transition:
        opacity 0.28s ease-out 0.08s,
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.wheel-logo-center img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    transform: translateX(-1.8%);
    display: block;
}

.wheel-idle-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: -12%;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(20, 29, 43, 0.055);
    border: 1px solid rgba(20, 29, 43, 0.11);
    color: #1c2b4b;
    font-size: clamp(9px, 1.55cqw, 12px);
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.wheel-idle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c04930;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .wheel-idle-dot {
        animation: vmd-idle-pulse 2.2s ease-in-out 2;
    }
}

@keyframes vmd-idle-pulse {
    0%, 100% { transform: scale(0.92); opacity: 0.75; }
    50% { transform: scale(1.25); opacity: 1; }
}

/* Exit quickly when topic/welcome enters so VMD logo never ghosts behind incoming text */
.vmd-wheel-stage.has-active .wheel-logo-center {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    pointer-events: none;
    transition:
        opacity 0.15s ease-out 0s,
        transform 0.24s ease-out 0s;
}

/* Dynamic Center Info Panel – strictly inside rNotch safe circle (47.5%) */
.wheel-center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    width: 47.5%;
    height: 47.5%;
    border-radius: 50%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.15s ease-out 0s,
        transform 0.22s ease-out 0s;
    box-sizing: border-box;
    padding: 2.2cqw;
}

.vmd-wheel-stage.has-active .wheel-center-info {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    transition:
        opacity 0.26s ease-out 0.06s,
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}

.wheel-info-card {
    width: 100%;
    height: 100%;
    max-inline-size: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(3px, 0.9cqw, 8px);
    box-sizing: border-box;
}

.wheel-info-card > *[hidden] {
    display: none !important;
}

.wheel-info-card.is-swapping {
    animation: vmd-center-swap 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes vmd-center-swap {
    from {
        opacity: 0.72;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typewriter cursor during automatic Desktop Welcome state */
.wheel-info-title.is-typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 0.88em;
    margin-left: 3px;
    vertical-align: -0.08em;
    background: #c04930;
    border-radius: 1px;
    animation: vmd-caret-blink 0.65s steps(2, start) 2;
}

@keyframes vmd-caret-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.wheel-info-pillar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(8.5px, 1.35cqw, 11px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9e3922;
    background: rgba(192, 73, 48, 0.09);
    border: 1px solid rgba(192, 73, 48, 0.2);
    padding: 2px 9px;
    border-radius: 999px;
    line-height: 1.3;
    flex-shrink: 0;
}

.wheel-info-title {
    color: #141d2b;
    font-size: clamp(15px, 3.6cqw, 28px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
    flex-shrink: 0;
}

.wheel-info-subtitle {
    color: #2b3a55;
    font-size: clamp(10.5px, 1.85cqw, 14.5px);
    line-height: 1.42;
    font-weight: 500;
    max-width: 92%;
    margin: 0;
    text-wrap: pretty;
}

.wheel-info-subtitle strong {
    color: #141d2b;
    font-weight: 700;
}

/* Labeled SVG Pill Badges */
.wheel-info-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(4px, 0.9cqw, 8px);
    flex-wrap: wrap;
    max-width: 94%;
    flex-shrink: 0;
}

.wheel-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: clamp(3px, 0.55cqw, 5px) clamp(7px, 1.25cqw, 11px);
    border-radius: 999px;
    font-size: clamp(9px, 1.35cqw, 11.5px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    cursor: help;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wheel-badge-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.wheel-badge svg {
    width: clamp(11px, 1.6cqw, 14px);
    height: clamp(11px, 1.6cqw, 14px);
    flex-shrink: 0;
    display: block;
}

.wheel-badge:hover,
.wheel-badge:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(20, 29, 43, 0.1);
    outline: 2px solid #1c2b4b;
    outline-offset: 2px;
}

/* Rich explanatory micro-tooltip generated strictly on hover/focus-visible (zero idle layout overflow) */
.wheel-badge[data-tooltip]:is(:hover, :focus-visible)::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    width: max-content;
    max-width: min(210px, 38cqw);
    white-space: normal;
    text-align: center;
    background: #141d2b;
    color: #ffffff;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(5, 9, 18, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 60;
    animation: vmd-tooltip-in 0.2s ease-out both;
}

@keyframes vmd-tooltip-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Harmonious semantic badge palette */
.badge-existenz {
    background: rgba(192, 73, 48, 0.1);
    color: #a93b24;
    border: 1px solid rgba(192, 73, 48, 0.24);
}
.badge-pflicht {
    background: rgba(180, 120, 0, 0.1);
    color: #946200;
    border: 1px solid rgba(180, 120, 0, 0.24);
}
.badge-gesundheit {
    background: rgba(28, 115, 232, 0.09);
    color: #155ec0;
    border: 1px solid rgba(28, 115, 232, 0.22);
}
.badge-sach {
    background: rgba(30, 41, 59, 0.08);
    color: #273449;
    border: 1px solid rgba(30, 41, 59, 0.18);
}
.badge-privat {
    background: rgba(55, 75, 145, 0.09);
    color: #293d7a;
    border: 1px solid rgba(55, 75, 145, 0.22);
}
.badge-kapital {
    background: rgba(15, 118, 74, 0.09);
    color: #0c633e;
    border: 1px solid rgba(15, 118, 74, 0.22);
}
.badge-recht {
    background: rgba(14, 116, 144, 0.09);
    color: #0b5d74;
    border: 1px solid rgba(14, 116, 144, 0.22);
}

/* Primary Center CTA Button – never squished, never clipped */
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    margin-top: clamp(2px, 0.6cqw, 6px);
    padding: clamp(7px, 1.15cqw, 11px) clamp(14px, 2.8cqw, 24px);
    border-radius: 999px;
    background: linear-gradient(135deg, #c84e34 0%, #9e3922 100%);
    color: #ffffff !important;
    font-family: var(--font-main, 'Outfit', system-ui, sans-serif);
    font-weight: 700;
    font-size: clamp(10.5px, 1.55cqw, 12.5px);
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 18px -4px rgba(192, 73, 48, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background 0.3s ease;
}

.info-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease-out;
}

.info-btn:hover {
    background: linear-gradient(135deg, #1c2b4b 0%, #111b30 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(20, 29, 43, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.info-btn:hover svg {
    transform: translateX(3px);
}

.info-btn:active {
    transform: scale(0.97);
}

.info-btn:focus-visible {
    outline: 2px solid #141d2b;
    outline-offset: 3px;
}

/* Container-aware compacting so smaller wheels NEVER overflow the notches */
@container wheel (inline-size < 540px) {
    .wheel-info-subtitle {
        display: none;
    }
    .wheel-badge[data-tooltip]::after {
        display: none;
    }
    .wheel-info-pillar {
        font-size: clamp(7.5px, 1.9cqw, 9.5px);
        letter-spacing: 0.08em;
        padding: 2px 7px;
        max-width: 82%;
        text-align: center;
    }
    .wheel-idle-pill {
        padding: 3px 9px;
        font-size: 9.5px;
    }
    .info-btn {
        padding: 5px 11px;
        font-size: 9.5px;
        gap: 4px;
        max-width: 88%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@container wheel (inline-size < 390px) {
    .wheel-info-pillar {
        font-size: 7px;
        letter-spacing: 0.06em;
        padding: 1.5px 6px;
        max-width: 78%;
    }
    .wheel-info-title {
        font-size: clamp(13.5px, 4.2cqw, 16px);
    }
    .wheel-info-badges {
        gap: 3px;
        max-width: 84%;
    }
    .wheel-info-badges .wheel-badge:nth-child(n + 2) {
        display: none;
    }
    .wheel-badge {
        padding: 2px 6px;
        font-size: 8px;
    }
    .wheel-badge svg {
        width: 9.5px;
        height: 9.5px;
    }
    .info-btn {
        padding: 4px 9px;
        font-size: 8.5px;
        gap: 3px;
    }
    .info-btn svg {
        width: 10px;
        height: 10px;
    }
}

/* ==========================================================================
   Mobile Interactive Info-Dock (Seamless Companion Card on <= 768px)
   ========================================================================== */

.wheel-mobile-dock {
    display: none;
}

@media (max-width: 768px) {
    /* When the Mobile Info-Dock is present right below the wheel, avoid duplicating the primary CTA inside the compact center disc */
    .hero:has(> .wheel-mobile-dock) .wheel-center-info .info-btn {
        display: none;
    }

    /* Streamlined mobile compositor animations: snappier response & lower GPU layer churn on mobile SoCs */
    .vmd-wheel-svg {
        transition:
            opacity 0.52s ease-out,
            transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #wheel-compass-ticks {
        transition:
            opacity 0.55s ease-out,
            transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .vmd-wheel-stage[data-reveal="ready"] .segment-group {
        will-change: auto;
        transition:
            opacity 0.42s ease-out var(--enter-delay, 0ms),
            transform 0.68s cubic-bezier(0.22, 1, 0.36, 1) var(--enter-delay, 0ms);
    }

    .vmd-wheel-stage[data-reveal="ready"] .wheel-logo-center {
        transition:
            opacity 0.46s ease-out 0.48s,
            transform 0.76s cubic-bezier(0.22, 1, 0.36, 1) 0.48s;
    }

    .segment-group,
    .segment-icon {
        will-change: auto !important;
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .compass-tracker-group {
        transition:
            opacity 0.22s ease-out,
            transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .wheel-mobile-dock {
        display: grid;
        grid-template-areas: "dock-panel";
        align-items: stretch;
        position: relative;
        z-index: 30;
        width: 100%;
        max-width: 460px;
        min-height: 256px;
        margin: 6px auto 0 auto;
        border-radius: 20px;
        /* Solid rich dark gradient on mobile avoids expensive per-frame backdrop-filter blur over SVG/stars */
        background: linear-gradient(165deg, rgba(24, 30, 50, 0.97) 0%, rgba(15, 20, 34, 0.99) 100%);
        border: 1px solid rgba(255, 255, 255, 0.13);
        box-shadow: 0 16px 34px rgba(5, 9, 18, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        padding: 15px 16px;
        color: #ffffff;
        touch-action: pan-y;
        contain: layout style paint;
        box-sizing: border-box;
    }

    .dock-idle-view,
    .dock-detail-view {
        grid-area: dock-panel;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        min-width: 0;
        transition: opacity 0.2s ease-out;
    }

    /* Keep both views in the grid cell so the taller view dictates a rock-solid, jump-free dock height */
    .dock-detail-view[hidden],
    .dock-idle-view[hidden] {
        display: flex !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .dock-idle-top {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .dock-compass-badge {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: rgba(192, 73, 48, 0.2);
        border: 1px solid rgba(192, 73, 48, 0.38);
        color: #e66a50;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .dock-compass-badge svg {
        width: 22px;
        height: 22px;
    }

    .dock-idle-headings h2 {
        color: #ffffff;
        font-size: 1.06rem;
        font-weight: 800;
        line-height: 1.2;
        margin: 0 0 3px 0;
        text-wrap: balance;
    }

    .dock-idle-headings p {
        color: #cbd5e1;
        font-size: 0.82rem;
        line-height: 1.38;
        margin: 0;
        text-wrap: pretty;
    }

    .dock-idle-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0;
        padding: 9px 11px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(255, 255, 255, 0.07);
    }

    .dock-idle-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 0.74rem;
        font-weight: 600;
        color: #cbd5e1;
        padding: 3px 9px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.09);
    }

    .dock-idle-chip-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #e66a50;
        flex-shrink: 0;
    }

    .dock-actions-row {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-top: auto;
    }

    .btn-dock-primary {
        flex: 1;
        min-height: 44px;
        padding: 10px 16px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: linear-gradient(135deg, #c84e34 0%, #9e3922 100%);
        color: #ffffff;
        font-family: var(--font-main, 'Outfit', sans-serif);
        font-size: 0.86rem;
        font-weight: 700;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(192, 73, 48, 0.35);
        transition: transform 0.18s ease, background 0.2s ease;
    }

    .btn-dock-primary svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

    .btn-dock-primary:active {
        transform: scale(0.97);
    }

    .btn-dock-secondary {
        min-height: 44px;
        padding: 10px 15px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.18);
        color: #ffffff;
        font-family: var(--font-main, 'Outfit', sans-serif);
        font-size: 0.83rem;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
        transition: transform 0.18s ease, background 0.2s ease;
    }

    .btn-dock-secondary:active {
        transform: scale(0.97);
    }

    /* Detail state inside mobile dock */
    .dock-detail-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .dock-topic-id {
        display: flex;
        align-items: center;
        gap: 11px;
        min-width: 0;
    }

    .dock-topic-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: linear-gradient(145deg, #ffffff 0%, #e6eef8 100%);
        padding: 4px;
        object-fit: contain;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .dock-topic-meta {
        min-width: 0;
    }

    .dock-topic-pillar {
        display: block;
        font-size: 0.66rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #f08268;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dock-topic-title {
        color: #ffffff;
        font-size: 1.14rem;
        font-weight: 800;
        line-height: 1.18;
        margin: 1px 0 0 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dock-stepper {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }

    .dock-step-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.15s ease;
    }

    .dock-step-btn svg {
        width: 16px;
        height: 16px;
    }

    .dock-step-btn:active {
        transform: scale(0.93);
        background: rgba(192, 73, 48, 0.45);
    }

    .dock-step-count {
        font-size: 0.72rem;
        font-weight: 700;
        color: #94a3b8;
        min-width: 34px;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    /* Lock description to a fixed 3-line height so all 12 topics fit without truncation and switching NEVER changes dock height */
    .dock-topic-desc {
        color: #e2e8f0;
        font-size: 0.81rem;
        line-height: 1.38;
        min-height: calc(3 * 1.38em);
        max-height: calc(3 * 1.38em);
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-wrap: pretty;
    }

    .dock-topic-desc strong {
        color: #ffffff;
        font-weight: 700;
    }

    .dock-highlights {
        list-style: none;
        padding: 9px 11px;
        margin: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(255, 255, 255, 0.07);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        min-height: 76px;
        box-sizing: border-box;
    }

    .dock-highlights li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.78rem;
        color: #cbd5e1;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dock-highlights li span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dock-highlights li svg {
        width: 13px;
        height: 13px;
        color: #e66a50;
        flex-shrink: 0;
    }
}

@media (max-width: 400px) {
    .wheel-mobile-dock {
        padding: 13px 13px;
        min-height: 248px;
        border-radius: 18px;
    }

    .dock-detail-header {
        gap: 7px;
    }

    .dock-topic-id {
        gap: 8px;
    }

    .dock-topic-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        padding: 3px;
    }

    .dock-topic-pillar {
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }

    .dock-topic-title {
        font-size: clamp(0.98rem, 4.8vw, 1.12rem);
    }

    .dock-stepper {
        gap: 3px;
    }

    .dock-step-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .dock-step-count {
        min-width: 28px;
        font-size: 0.68rem;
    }

    .btn-dock-primary {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .btn-dock-secondary {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* Reduced motion accommodations: dampen spatial spin/bounce while keeping gentle fades & color transitions */
@media (prefers-reduced-motion: reduce) {
    .vmd-wheel-stage[data-reveal="pending"] .vmd-wheel-svg,
    .vmd-wheel-stage[data-reveal="pending"] #wheel-compass-ticks {
        transform: scale(1) rotate(0deg);
    }

    .vmd-wheel-stage[data-reveal="pending"] .segment-group {
        transform: translate(0px, 0px) scale(1);
    }

    .vmd-wheel-stage[data-reveal="pending"] .wheel-logo-center {
        transform: translate(-50%, -50%) scale(1);
    }

    .vmd-wheel-svg,
    #wheel-compass-ticks,
    .segment-group,
    .segment-icon,
    .compass-tracker-group,
    .wheel-logo-center,
    .wheel-center-info {
        transition-duration: 0.2s;
        transition-timing-function: ease-out;
    }

    .segment-group.is-hovered,
    .segment-group.is-active {
        transform: translate(0px, 0px) scale(1.015);
    }

    @media (hover: hover) {
        .segment-group:hover {
            transform: translate(0px, 0px) scale(1.015);
        }
    }

    .wheel-info-card.is-swapping > *:not([hidden]) {
        animation-duration: 0.16s;
    }
}
