/* ======================
   Info modal — shared across entry and listen modals
   ====================== */
.info-toggle {
    position: fixed;
    top: 4rem;
    right: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: var(--text-muted);
    opacity: 0.3;
    transition: opacity var(--duration-normal) ease, color var(--duration-normal) ease;
    z-index: var(--z-admin-toggle);
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .info-toggle:hover {
        opacity: 0.7;
        color: var(--text-primary);
    }
}

.info-toggle svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.5;
}

.info-toggle.attention {
    color: var(--info-attention);
    opacity: 0.8;
    animation: info-pulse 2s ease-in-out infinite;
}

@keyframes info-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.info-arrow {
    display: none;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-subheading);
    color: var(--info-attention);
    animation: arrow-nudge 1s ease-in-out infinite;
    pointer-events: none;
    line-height: 1;
    margin-top: -0.1em;
}

.info-toggle.attention .info-arrow {
    display: block;
}

@keyframes arrow-nudge {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-4px); }
}

.info-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    z-index: var(--z-toast);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-medium) ease;
}

.info-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.info-modal {
    position: relative;
    max-width: var(--modal-width);
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--warm-white);
    border: 1px solid var(--warm-grey);
    padding: var(--space-lg) 1.75rem;
}

.info-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info-empty-hint {
    font-family: 'Cormorant', Georgia, serif;
    font-size: var(--text-body);
    font-style: italic;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.info-section {
    display: grid;
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-sm);
    row-gap: 0.15rem;
}

.info-icon {
    grid-row: 1 / -1;
    align-self: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.info-icon--bubble {
    border-radius: var(--radius-full);
    background: transparent;
    border: 0.5px solid rgb(0 0 0 / 0.15);
    position: relative;
}

.info-icon--bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    background: radial-gradient(
        circle at 58% 18%,
        rgb(255 255 255 / 0.4) 0%,
        rgb(255 255 255 / 0.05) 45%,
        rgb(40 60 120 / 0.35) 100%
    );
}

.info-icon--bubble::after {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: var(--radius-full);
    background: transparent;
    border: 2px solid rgb(0 0 0 / 0.1);
    -webkit-mask: conic-gradient(from 10deg, transparent 0deg, rgb(0 0 0 / 0.4) 25deg, black 55deg, transparent 55deg);
    mask: conic-gradient(from 10deg, transparent 0deg, rgb(0 0 0 / 0.4) 25deg, black 55deg, transparent 55deg);
}

.info-icon--paint {
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
}

.info-icon--clay-svg {
    overflow: visible;
}

.info-section-label {
    font-family: 'Cormorant', Georgia, serif;
    font-size: var(--text-body);
    font-weight: 400;
    letter-spacing: var(--ls-caption);
    color: var(--text-primary);
    line-height: 1.3;
    -webkit-user-select: text;
    user-select: text;
}

.info-section-desc {
    font-family: 'Cormorant', Georgia, serif;
    font-size: var(--text-body);
    font-style: italic;
    line-height: 1.5;
    color: var(--text-muted);
    letter-spacing: var(--ls-caption);
    -webkit-user-select: text;
    user-select: text;
}

.info-close-btn {
    font-family: 'Cormorant', Georgia, serif;
    font-size: var(--text-button);
    letter-spacing: var(--ls-heading);
    background: none;
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 0.6rem var(--space-xl);
    cursor: pointer;
    margin-top: var(--space-lg);
    align-self: center;
    transition: background var(--duration-normal) ease;
}

.info-close-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.info-restart-onboarding {
    font-family: 'Cormorant', Georgia, serif;
    font-size: var(--text-caption);
    letter-spacing: var(--ls-caption);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs) 0;
    margin-top: var(--space-sm);
    align-self: center;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.info-modal:has(.entry-info-footer) {
    padding-bottom: 4rem;
}

.entry-info-footer {
    position: absolute;
    bottom: var(--space-lg);
    left: 1.75rem;
    right: 1.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.entry-info-counter {
    position: absolute;
    right: 0;
    font-size: var(--text-caption);
    color: var(--text-muted);
    letter-spacing: var(--ls-caption);
}

.entry-info-footer .info-close-btn {
    margin-top: 0;
    align-self: auto;
}
