.a31-hero {
    position: relative;
    padding: 72px 0 64px;
    background: radial-gradient(circle at top, rgba(39, 174, 96, 0.08), transparent 55%),
    radial-gradient(circle at bottom, rgba(255, 184, 0, 0.06), transparent 60%);
    border-bottom: 1px solid var(--border-soft);
}

.a31-hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}

.a31-hero-text {
    max-width: 520px;
}

.a31-back-link {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
}

.a31-back-link:hover {
    color: var(--accent-soft);
}

.a31-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 10, 18, 0.9);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.a31-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-warm);
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.9);
}

.a31-title {
    margin: 14px 0 8px;
    font-size: 2.4rem;
}

.a31-subtitle {
    margin: 16px 0 32px;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.a31-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.a31-meta-item {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(8, 10, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.a31-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.a31-cta-main {
    /* наследует .cta-button, можно чуть уточнить */
}

.a31-ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(4, 6, 12, 0.95);
    color: var(--text-main);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.a31-ghost-button:hover {
    background: rgba(19, 27, 46, 0.96);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Hero media */

.a31-hero-media {
    flex: 1 1 320px;
    max-width: 420px;
}

.a31-hero-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    background: #11141c;
}

.a31-hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.a31-hero-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    text-align: center;
    min-width: 100px;
    border-radius: var(--radius-pill);
    background: #812119;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.a31-hero-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(5, 6, 10, 0.92);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.a31-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: 0 0 12px rgba(39, 174, 96, 0.9);
}

.a31-hero-badge-text {
    white-space: nowrap;
}

/* About / features */

.a31-about .container {
    max-width: var(--container2-width);
}

.a31-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 20px;
    margin-top: 26px;
}

.a31-feature {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(8, 10, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.96rem;
}

.a31-feature h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
}

.a31-feature p {
    margin: 0;
    color: var(--text-muted);
}

/* Gallery */

.a31-gallery .container {
    max-width: var(--container2-width);
}

.a31-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.a31-gallery-item {
    margin: 0;
    padding: 10px;
    border-radius: var(--radius-md);
    background: rgba(8, 10, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.a31-gallery-item img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Story */

.a31-story .container {
    max-width: var(--container2-width);
}

.a31-story-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 24px;
    margin-top: 14px;
}

.a31-story-text p {
    color: var(--text-muted);
}

.a31-story-quote {
    font-style: italic;
    color: #e4f7ff;
    border-left: 3px solid var(--accent-soft);
    padding-left: 12px;
    margin: 10px 0 12px;
}

.a31-story-side {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(8, 10, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
}

.a31-story-side h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.a31-story-side ul {
    margin: 6px 0 8px;
    padding-left: 18px;
}

.a31-story-side li {
    margin: 3px 0;
    color: var(--text-muted);
}

.a31-story-note {
    margin: 6px 0 0;
    color: var(--accent-soft);
    font-size: 0.9rem;
}

/* CTA / target */

.a31-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: flex-start;
}

.a31-cta-text p {
    color: var(--text-muted);
}

.a31-cta-box {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(5, 7, 12, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.96rem;
}

.store-button.disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.section p.a31-cta-note {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive tweaks */

@media (max-width: 900px) {
    .a31-hero-inner {
        flex-direction: column;
    }

    .a31-hero-media {
        max-width: 100%;
    }

    .a31-story-layout,
    .a31-cta-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .a31-title {
        font-size: 2rem;
    }

    .a31-hero {
        padding: 52px 0 40px;
    }
}

/* ==== Adventure 31 — Characters section ==== */

.a31-characters .container {
    max-width: var(--container2-width);
}

.a31-characters h2 {
    margin-bottom: 20px;
}

.a31-characters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: flex-end;
}

/* Карточка персонажа без фона (PNG остаётся на прозрачном) */
.a31-character {
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.a31-character-image {
    max-height: 320px;
    width: auto;
    margin: 0 auto 10px;
    display: block;
}

.a31-character h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: var(--text-main);
}

.a31-character p {
    margin: 0;
}

/* Адаптив: 2 в ряд на планшетах, 1 в ряд на мобилках */

@media (max-width: 1024px) {
    .a31-characters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .a31-characters-grid {
        grid-template-columns: 1fr;
    }

    .a31-character-image {
        max-height: 260px;
    }
}
