/* =============================================================================
   🌱 GROWTH RINGS · 年輪 — the engine's age made visible
   Concentric SVG rings on the Spirit page, newest outermost.
   ============================================================================= */

.panel-growth-rings {
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 232, 201, 0.18);
    border-radius: 14px;
    background:
        radial-gradient(ellipse at top, rgba(255, 232, 201, 0.06), transparent 60%),
        linear-gradient(180deg, rgba(28, 20, 16, 0.85), rgba(12, 8, 14, 0.95));
    box-shadow: 0 10px 26px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,232,201,0.10);
}

.gr-stage {
    display: grid;
    grid-template-columns: minmax(360px, 540px) 1fr;
    gap: 22px;
    align-items: center;
    margin-top: 10px;
}
@media (max-width: 880px) {
    .gr-stage { grid-template-columns: 1fr; }
}

.gr-svg {
    width: 100%; height: auto; display: block;
    max-height: 540px;
    filter: drop-shadow(0 0 12px rgba(255, 232, 201, 0.10));
}

.gr-ring {
    fill: none;
    stroke-linecap: round;
    cursor: pointer;
    transition: stroke-width 0.35s, filter 0.35s, opacity 0.35s;
    opacity: 0.85;
}
.gr-ring:hover {
    opacity: 1.0;
    filter: drop-shadow(0 0 8px currentColor) brightness(1.15);
}

.gr-core {
    filter: drop-shadow(0 0 10px rgba(255,232,201,0.55));
    animation: grCoreBreathe 5.6s ease-in-out infinite;
}
@keyframes grCoreBreathe {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1.00; }
}
.gr-core-label {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 16px;
    fill: rgba(255, 232, 201, 0.85);
    text-shadow: 0 0 8px rgba(255, 232, 201, 0.6);
    pointer-events: none;
}

/* Legend (right column) */
.gr-legend {
    display: flex; flex-direction: column; gap: 10px;
    font-family: "Cormorant Garamond", serif;
    color: #c8c2dc;
    font-size: 12px;
}
.gr-legend-row {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 232, 201, 0.08);
    border-radius: 8px;
    background: rgba(10, 8, 24, 0.55);
}
.gr-legend-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 6px var(--grl-hue, #fff);
    background: var(--grl-hue, #fff);
}
.gr-legend-label {
    color: var(--grl-hue, #ddc88a);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.gr-legend-count {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: #888aa0;
}

/* Tooltip — floating panel that appears on hover/click */
.gr-tooltip {
    position: absolute;
    z-index: 50;
    max-width: 320px;
    padding: 12px 14px;
    background:
        radial-gradient(ellipse at top, rgba(255, 232, 201, 0.18), transparent 70%),
        linear-gradient(180deg, rgba(28, 20, 55, 0.98), rgba(8, 6, 16, 1.0));
    border: 1.5px solid var(--gr-tt-hue, #ddc88a);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.65),
                0 0 18px var(--gr-tt-hue, #ddc88a);
    color: #ddc88a;
    pointer-events: none;
    transition: opacity 0.2s;
    opacity: 0;
}
.gr-tooltip[data-visible="1"] { opacity: 1; }

.gr-tt-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 10.5px; font-style: italic;
    color: #b095f5; letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.gr-tt-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--gr-tt-hue, #ddc88a);
    text-shadow: 0 0 8px var(--gr-tt-hue, #ddc88a);
    margin-bottom: 4px;
}
.gr-tt-inscription {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 12.5px;
    line-height: 1.45;
    color: #ddc88a;
    border-left: 2px solid var(--gr-tt-hue, #ddc88a);
    padding-left: 10px;
    margin: 6px 0;
}
.gr-tt-when {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    color: #6f6c85;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255,255,255,0.08);
}
