/* The storm, sun and seasons belong to the solar floor only. */
#weatherEnergyCanvas { opacity: 0; transition: opacity 0.6s ease; }
html[data-atmosphere="solar"] #weatherEnergyCanvas { opacity: 1; }

/* Living gadget stage — one animated machine for each kind of product. */

.gs {
    --gs-accent: #22d3ee;
    --gs-accent-2: #2563eb;
    color: var(--gs-accent);
}

.gs-hero,
.gs-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.8fr);
    gap: 8px 18px;
    align-items: center;
    padding: 12px;
    margin: 0 0 18px;
    border-radius: 28px;
    background:
        radial-gradient(500px 180px at 20% 0%, color-mix(in srgb, var(--gs-accent) 28%, transparent), transparent 60%),
        linear-gradient(180deg, #07111f, #0b1728);
    border: 1px solid color-mix(in srgb, var(--gs-accent) 45%, transparent);
    box-shadow: 0 20px 50px -28px color-mix(in srgb, var(--gs-accent) 80%, transparent);
}

.gs-visual,
.gs-card,
.gs-mini {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120px 70px at 50% 92%, color-mix(in srgb, var(--gs-accent) 42%, transparent), transparent 70%),
        radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--gs-accent) 16%, transparent), transparent 52%),
        linear-gradient(180deg, #07111f, #0c192c);
}

.gs-hero .gs-visual,
.gs-panel .gs-visual {
    border-radius: 22px;
    min-height: 210px;
}

.gs-panel .gs-visual { min-height: 180px; }

.gs-svg { display: block; width: 100%; height: auto; }

.gs-copy { padding: 8px 16px 12px 4px; }

.gs-kicker {
    margin: 0 0 6px !important;
    color: var(--gs-accent) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gs h3.gs-title {
    color: #ffffff !important;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem) !important;
    line-height: 1.05 !important;
    margin: 0 0 8px !important;
}

.gs-blurb {
    margin: 0 !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    max-width: 36ch;
}

.gs-slot { margin: 8px 0 12px; }

.gs-card,
.gs-mini {
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--gs-accent) 35%, transparent);
}

.gs-card { height: 78px; }
.gs-card .gs-svg { height: 78px; }

.gs-mini { width: 84px; height: 56px; border-radius: 12px; }
.gs-mini .gs-svg { height: 56px; }

.gs-rail {
    margin: 0 0 22px;
    padding: 14px 14px 12px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

html.dark .gs-rail {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.gs-rail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 10px;
}

.gs-rail-head strong {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

html.dark .gs-rail-head strong { color: #f8fafc !important; }

.gs-rail-head span {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

.gs-rail-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.gs-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 108px;
    padding: 8px 8px 10px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    cursor: pointer;
}

html.dark .gs-chip {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.08);
}

.gs-chip:hover { transform: translateY(-2px); border-color: #2563eb; }

.gs-chip-label {
    color: #0f172a !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-align: center;
    line-height: 1.2 !important;
}

html.dark .gs-chip-label { color: #e2e8f0 !important; }

.gs-floor { fill: rgba(0, 0, 0, 0.45); }

.gs-bob { animation: gsBob 3.6s ease-in-out infinite; }
.gs-spin, .gs-spin-r, .gs-needle, .gs-eq rect {
    transform-box: fill-box;
    transform-origin: center;
}
.gs-spin { animation: gsSpin 4.2s linear infinite; }
.gs-spin-r { animation: gsSpin 3.2s linear infinite reverse; }
.gs-scan { animation: gsScan 2.5s ease-in-out infinite; }
.gs-paper { animation: gsPaper 2.8s ease-in-out infinite; }
.gs-pulse { animation: gsPulse 1.6s ease-in-out infinite; }
.gs-heat { stroke-dasharray: 7 9; animation: gsDash 1s linear infinite; }
.gs-shake { animation: gsShake 0.18s linear infinite; }
.gs-wave { animation: gsWave 2.2s ease-in-out infinite; }
.gs-flicker { animation: gsFlicker 1.8s steps(2, end) infinite; }
.gs-needle { animation: gsSweep 2.8s ease-in-out infinite; }
.gs-eq rect {
    transform-origin: center bottom;
    animation: gsEq 0.9s ease-in-out infinite;
}
.gs-eq rect:nth-child(2) { animation-delay: 0.12s; }
.gs-eq rect:nth-child(3) { animation-delay: 0.28s; }
.gs-eq rect:nth-child(4) { animation-delay: 0.05s; }
.gs-eq rect:nth-child(5) { animation-delay: 0.2s; }
.gs-p1 { animation: gsDrift 5s ease-in-out infinite; }
.gs-p2 { animation: gsDrift 6.5s ease-in-out infinite reverse; }
.gs-p3 { animation: gsDrift 4.4s ease-in-out infinite 0.4s; }
.gs-bars { animation: gsBars 3s ease-in-out infinite; }

.gs-card .gs-bob,
.gs-card .gs-spin,
.gs-card .gs-spin-r,
.gs-card .gs-scan,
.gs-card .gs-paper,
.gs-card .gs-pulse,
.gs-card .gs-heat,
.gs-card .gs-shake,
.gs-card .gs-wave,
.gs-card .gs-flicker,
.gs-card .gs-needle,
.gs-card .gs-eq rect,
.gs-card .gs-p1,
.gs-card .gs-p2,
.gs-card .gs-p3,
.gs-card .gs-bars {
    animation-play-state: paused;
}

.product-card:hover .gs-card .gs-bob,
.product-card:hover .gs-card .gs-spin,
.product-card:hover .gs-card .gs-spin-r,
.product-card:hover .gs-card .gs-scan,
.product-card:hover .gs-card .gs-paper,
.product-card:hover .gs-card .gs-pulse,
.product-card:hover .gs-card .gs-heat,
.product-card:hover .gs-card .gs-shake,
.product-card:hover .gs-card .gs-wave,
.product-card:hover .gs-card .gs-flicker,
.product-card:hover .gs-card .gs-needle,
.product-card:hover .gs-card .gs-eq rect,
.product-card:hover .gs-card .gs-p1,
.product-card:hover .gs-card .gs-p2,
.product-card:hover .gs-card .gs-p3,
.product-card:hover .gs-card .gs-bars,
.product-card:focus-within .gs-card .gs-bob,
.product-card:focus-within .gs-card .gs-spin,
.product-card:focus-within .gs-card .gs-spin-r,
.product-card:focus-within .gs-card .gs-scan,
.product-card:focus-within .gs-card .gs-paper,
.product-card:focus-within .gs-card .gs-pulse,
.product-card:focus-within .gs-card .gs-heat,
.product-card:focus-within .gs-card .gs-shake,
.product-card:focus-within .gs-card .gs-wave,
.product-card:focus-within .gs-card .gs-flicker,
.product-card:focus-within .gs-card .gs-needle,
.product-card:focus-within .gs-card .gs-eq rect,
.product-card:focus-within .gs-card .gs-p1,
.product-card:focus-within .gs-card .gs-p2,
.product-card:focus-within .gs-card .gs-p3,
.product-card:focus-within .gs-card .gs-bars {
    animation-play-state: running;
}

@keyframes gsBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
@keyframes gsSpin { to { transform: rotate(360deg); } }
@keyframes gsScan {
    0% { transform: translateY(-16px); opacity: 0; }
    18% { opacity: 0.45; }
    100% { transform: translateY(108px); opacity: 0; }
}
@keyframes gsPaper {
    0%, 18% { transform: translateY(-26px); opacity: 0; }
    40% { opacity: 1; }
    70%, 100% { transform: translateY(22px); opacity: 1; }
}
@keyframes gsPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}
@keyframes gsDash { to { stroke-dashoffset: -32; } }
@keyframes gsShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(1px, -1px) rotate(-2deg); }
    75% { transform: translate(-1px, 1px) rotate(2deg); }
}
@keyframes gsWave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}
@keyframes gsFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}
@keyframes gsSweep {
    0%, 100% { transform: rotate(-32deg); }
    50% { transform: rotate(38deg); }
}
@keyframes gsEq {
    0%, 100% { transform: scaleY(0.45); }
    50% { transform: scaleY(1); }
}
@keyframes gsDrift {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-16px); opacity: 1; }
}
@keyframes gsBars {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(8px); opacity: 1; }
}

@media (max-width: 720px) {
    .gs-hero, .gs-panel { grid-template-columns: 1fr; }
    .gs-copy { padding: 4px 10px 10px; }
    .gs-hero .gs-visual { min-height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
    .gs-bob, .gs-spin, .gs-spin-r, .gs-scan, .gs-paper, .gs-pulse,
    .gs-heat, .gs-shake, .gs-wave, .gs-flicker, .gs-needle, .gs-eq rect,
    .gs-p1, .gs-p2, .gs-p3, .gs-bars {
        animation: none !important;
    }
}
