/* ========================================
   Bad Manners — Website Styles
   Dark aristocratic theme with gold accents
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-dark: #0a0a0c;
    --bg-darker: #06060a;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --gold: #c9a84c;
    --gold-light: #e4c96a;
    --gold-dark: #a07a2e;
    --gold-glow: rgba(201, 168, 76, 0.15);
    --text: #e8e4dc;
    --text-muted: #8a8578;
    --text-dim: #5a564e;
    --border: rgba(201, 168, 76, 0.12);
    --border-hover: rgba(201, 168, 76, 0.3);

    /* Fonts */
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    /* Sizes */
    --max-width: 1200px;
    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Age Gate --- */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    background-image:
        radial-gradient(ellipse at 50% 30%, rgba(201, 168, 76, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.03) 0%, transparent 40%);
}

.age-gate__content {
    text-align: center;
    padding: 48px 32px;
    max-width: 520px;
}

.age-gate__emblem {
    font-size: 64px;
    color: var(--gold);
    margin-bottom: 16px;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

.age-gate__title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.age-gate__subtitle {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.age-gate__divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 32px;
}

.age-gate__warning {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.age-gate__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
    color: #0a0a0c;
    padding: 14px 36px;
    font-size: 0.85rem;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
}

.btn--gold:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    color: #0a0a0c;
    box-shadow: 0 6px 30px rgba(201, 168, 76, 0.35);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 14px 36px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.btn--ghost:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.btn--small {
    padding: 10px 24px;
    font-size: 0.75rem;
}

.btn--large {
    padding: 16px 42px;
    font-size: 0.9rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold) !important;
}

.nav__logo-icon {
    font-size: 1.4rem;
}

.nav__logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}

.nav__links a:hover {
    color: var(--gold);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.nav__mobile {
    display: none;
    list-style: none;
    padding: 0 24px 24px;
    flex-direction: column;
    gap: 16px;
    background: rgba(6, 6, 10, 0.95);
    backdrop-filter: blur(12px);
}

.nav__mobile.active {
    display: flex;
}

.nav__mobile a {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 8px 0;
    display: block;
    border-bottom: 1px solid var(--border);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: var(--bg-dark);
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 6, 10, 0.6) 0%,
        rgba(6, 6, 10, 0.3) 40%,
        rgba(6, 6, 10, 0.3) 60%,
        rgba(6, 6, 10, 0.9) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 700px;
}

.hero__badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border);
    padding: 6px 20px;
    border-radius: 2px;
    margin-bottom: 28px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.2);
}

.hero__tagline {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero__desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 540px;
    margin: 0 auto 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__tag {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 5px 14px;
    border-radius: 2px;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero__scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section--dark {
    background: var(--bg-dark);
}

.section--darker {
    background: var(--bg-darker);
}

.section__title {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.section__title-accent {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    display: block;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.section__subtitle {
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About --- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about__text p {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.9;
}

.about__text p strong {
    color: var(--gold);
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.feature__icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature__text h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.feature__text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Characters --- */
.characters__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.char-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.char-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.char-card__img {
    width: 100%;
    aspect-ratio: 3 / 4;
}

.char-card__info {
    padding: 20px;
}

.char-card__role {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

.char-card__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: 0.06em;
    margin: 4px 0 8px;
}

.char-card__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.characters__more {
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1rem;
}

/* --- Placeholder Images --- */
.placeholder-img {
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    text-transform: uppercase;
    border: 1px dashed var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.placeholder-img:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* --- Gallery --- */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery__item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery__item:hover img {
    transform: scale(1.03);
}

.gallery__item:hover {
    border-color: var(--border-hover);
}

.gallery__item--wide {
    grid-column: span 2;
}

/* --- Platforms --- */
.platforms__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.platform-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 32px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.4s ease;
    color: var(--text) !important;
}

.platform-card:hover {
    border-color: var(--gold);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.1);
    color: var(--text) !important;
}

.platform-card--featured {
    border-color: var(--gold-dark);
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.08);
}

.platform-card--featured:hover {
    border-color: var(--gold);
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
}

.platform-card__badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #0a0a0c;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 0 0 4px 4px;
}

.platform-card__icon {
    color: var(--gold);
    margin-bottom: 20px;
}

.platform-card__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.platform-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* --- Footer --- */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    font-weight: 700;
}

.footer__brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer__copy {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 4px;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--gold);
}

.footer__legal {
    padding-top: 24px;
}

.footer__legal p {
    color: var(--text-dim);
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.7;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.char-card.fade-in { transition-delay: 0.1s; }
.char-card:nth-child(2).fade-in { transition-delay: 0.2s; }
.char-card:nth-child(3).fade-in { transition-delay: 0.3s; }
.char-card:nth-child(4).fade-in { transition-delay: 0.4s; }
.char-card:nth-child(5).fade-in { transition-delay: 0.5s; }
.char-card:nth-child(6).fade-in { transition-delay: 0.6s; }

.platform-card.fade-in { transition-delay: 0.1s; }
.platform-card:nth-child(2).fade-in { transition-delay: 0.2s; }
.platform-card:nth-child(3).fade-in { transition-delay: 0.3s; }

.nav--scrolled {
    background: rgba(6, 6, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .characters__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery__item--wide {
        grid-column: span 2;
    }

    .platforms__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__burger {
        display: flex;
    }

    .hero__title {
        letter-spacing: 0.08em;
    }

    .hero__tagline {
        font-size: 1.2rem;
    }

    .characters__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 40px;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .gallery__item--wide {
        grid-column: span 1;
    }

    .section {
        padding: 70px 0;
    }

    .hero__scroll {
        display: none;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .age-gate__title {
        font-size: 2.2rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero__meta {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
}

.lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    z-index: 2;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    border-radius: 50%;
}

.lightbox__close:hover {
    background: rgba(201, 168, 76, 0.3);
}

.lightbox__prev,
.lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 22px;
    border-radius: 4px;
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(201, 168, 76, 0.3);
    border-color: var(--gold);
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.gallery__item[data-lightbox] {
    cursor: pointer;
}

.gallery__item[data-lightbox]:hover {
    border-color: var(--gold);
}

.gallery__item[data-lightbox]:hover .placeholder-img span {
    color: var(--gold);
}
