@layer components {
    .pillar-deck {
        display: none;
    }

    @media (max-width: 1023px) {
        .pillar-deck {
            display: block;
            position: fixed;
            inset-inline: 0;
            bottom: 0;
            z-index: 25;
            height: calc(var(--deck-height) + env(safe-area-inset-bottom));
            padding-block-end: env(safe-area-inset-bottom);
            background: var(--paper);
            box-shadow: var(--shadow-3);
        }

        .pillar-deck::before {
            content: "";
            position: absolute;
            inset-inline: 0;
            top: 0;
            height: 2px;
            background: linear-gradient(
                90deg,
                var(--wheat) 0%,
                var(--wheat-tint) 50%,
                var(--wheat) 100%
            );
        }

        .pillar-deck-list {
            display: flex;
            height: var(--deck-height);
            margin: 0;
            padding: 0;
        }

        .pillar-deck-list > li {
            flex: 1 1 0;
            min-width: 0;
            display: flex;
        }

        .pillar-deck-list > li + li {
            margin-inline-start: var(--space-2);
        }

        .pillar-deck-link {
            position: relative;
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            gap: 2px;
            padding-block: var(--space-2) 6px;
            min-height: var(--touch-target);
            text-decoration: none;
            color: var(--soil-2);
        }

        .pillar-deck-link::before {
            content: "";
            position: absolute;
            top: -4px;
            inset-inline-start: 50%;
            translate: -50% 0;
            width: 8px;
            height: 8px;
            border-radius: var(--radius-round);
            background: var(--paper);
            border: 2px solid var(--line);
        }

        .pillar-deck-link .icon {
            width: 20px;
            height: 20px;
        }

        .pillar-deck-label {
            font-size: clamp(0.625rem, 2.9vw, 0.78125rem);
            line-height: 1.2;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .pillar-deck-link.is-active {
            color: var(--sky-deep);
            font-weight: 600;
        }

        .pillar-deck-link.is-active::before {
            width: 14px;
            height: 14px;
            top: -8px;
            background: var(--wheat);
            border-color: var(--soil);
        }

        .pillar-deck-link.is-active::after {
            content: "";
            position: absolute;
            top: 6px;
            inset-inline-start: 50%;
            translate: -50% 0;
            width: 2px;
            height: 6px;
            background: var(--wheat);
        }

        .pillar-deck-link:focus-visible {
            outline: var(--focus-ring);
            outline-offset: -3px;
        }
    }
}
