/* ==========================================================================
   Obsidian Star Digital — shared project-page styles
   Page accent comes from the body theme class (theme-hotaisle / theme-array /
   theme-ntn) defined in styles.css.
   ========================================================================== */

/* ---- Crumb / back link ---------------------------------------------------- */
.crumb {
    padding: 30px 0 0;
}

.crumb a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.crumb a:hover {
    color: var(--text);
    transform: translateX(-4px);
}

.crumb svg {
    width: 15px;
    height: 15px;
}

/* ---- Page hero ------------------------------------------------------------- */
.page-hero {
    text-align: center;
    padding: 46px 0 30px;
}

.page-logo {
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.page-logo img {
    filter: drop-shadow(0 8px 34px rgba(var(--accent-rgb), 0.4));
}

.page-logo--wide img {
    width: min(620px, 88vw);
}

.page-logo--square img {
    width: min(300px, 62vw);
}

.page-tagline {
    margin: 26px auto 0;
    max-width: 640px;
    font-size: clamp(1.02rem, 2.4vw, 1.25rem);
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-dim);
}

.meta-row {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-bright);
    color: var(--text-dim);
    background: var(--surface);
}

.meta-chip--accent {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.08);
}

/* ---- Content panels --------------------------------------------------------- */
.page-body {
    padding: 30px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
    padding: 46px 50px;
}

.panel-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}

.panel h2 {
    margin-top: 10px;
    font-size: clamp(1.45rem, 3.2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.panel .lede {
    margin-top: 16px;
    font-size: 1.06rem;
    line-height: 1.85;
    color: var(--text-dim);
}

.panel .lede strong {
    color: var(--text);
    font-weight: 600;
}

/* ---- Feature grid ------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.feature {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
    padding: 30px 28px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), 0.55);
    box-shadow: 0 18px 46px -18px rgba(var(--accent-rgb), 0.4);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.09);
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.5));
}

.feature h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-dim);
}

/* ---- CTA / itch embed ------------------------------------------------------------ */
.cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(90% 120% at 50% -30%, rgba(var(--accent-rgb), 0.12), transparent 60%);
}

.cta > * {
    position: relative;
}

.cta .cta-text {
    margin: 14px auto 0;
    max-width: 520px;
    color: var(--text-dim);
    line-height: 1.7;
}

.itch-embed {
    --itch-scale: 1;
    margin: 30px auto 6px;
    display: flex;
    justify-content: center;
    height: calc(167px * var(--itch-scale));
}

.itch-embed iframe {
    width: 552px;
    height: 167px;
    flex: none;
    border: 0;
    transform: scale(var(--itch-scale));
    transform-origin: top center;
    border-radius: 10px;
    box-shadow:
        0 14px 44px rgba(0, 0, 0, 0.55),
        0 0 34px -6px rgba(var(--accent-rgb), 0.28);
}

/* The itch widget has a fixed 552px internal layout, so shrinking the iframe
   breaks it — scale the whole iframe instead. Available width below 720px is
   roughly viewport - 100px (page padding 48 + panel padding 52). */
@media (max-width: 660px) {
    .itch-embed { --itch-scale: 0.75; }
}

@media (max-width: 514px) {
    .itch-embed { --itch-scale: 0.6; }
}

@media (max-width: 431px) {
    .itch-embed { --itch-scale: 0.5; }
}

@media (max-width: 376px) {
    .itch-embed { --itch-scale: 0.42; }
}

@media (max-width: 332px) {
    .itch-embed { --itch-scale: 0.38; }
}

.cta-actions {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---- Status badge ------------------------------------------------------------------ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    padding: 11px 20px;
    border-radius: 999px;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2.2s ease-in-out infinite;
}

.status-badge--live {
    color: var(--live);
    border: 1px solid rgba(var(--live-rgb), 0.45);
    background: rgba(var(--live-rgb), 0.08);
}

.status-badge--live .dot {
    background: var(--live);
    box-shadow: 0 0 14px rgba(var(--live-rgb), 0.9);
}

.status-badge--soon {
    color: var(--soon);
    border: 1px solid rgba(var(--soon-rgb), 0.4);
    background: rgba(var(--soon-rgb), 0.07);
}

.status-badge--soon .dot {
    background: var(--soon);
    box-shadow: 0 0 14px rgba(var(--soon-rgb), 0.9);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.25); }
}

/* ---- Responsive --------------------------------------------------------------------- */
@media (max-width: 720px) {
    .panel {
        padding: 32px 26px;
    }

    .page-hero {
        padding: 34px 0 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-logo {
        animation: none;
    }

    .status-badge .dot {
        animation: none;
    }

    .feature,
    .crumb a {
        transition: none;
    }
}
