@font-face {
    font-family: "Red Dead Logo";
    src: url("../fonts/Redemption.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PT Sans";
    src: url("../fonts/PTSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:is(body.nml, body.NML) {
    --nml-accent: #e0e0e0;
    --nml-accent-light: #f3f3f3;
    --nml-accent-dark: #b8b8b8;
    --nml-accent-muted: #a8a8a8;
    --nml-accent-glow: rgba(224, 224, 224, 0.15);
    --nml-accent-glow-soft: rgba(224, 224, 224, 0.12);
    --nml-accent-border: rgba(240, 240, 240, 0.35);
    --nml-accent-border-strong: rgba(240, 240, 240, 0.6);
    --nml-accent-bg: rgba(212, 212, 212, 0.12);
    --nml-accent-bg-strong: rgba(212, 212, 212, 0.2);
    --nml-accent-gradient: linear-gradient(170deg, rgba(184, 184, 184, 0.35), rgba(224, 224, 224, 0.2));
    --nml-accent-gradient-hover: linear-gradient(170deg, rgba(184, 184, 184, 0.55), rgba(224, 224, 224, 0.35));
    --nml-accent-text-gradient: linear-gradient(170deg, #b8b8b8, #f0f0f0 48%, #b8b8b8);
    --nml-error: #c8c8c8;
    --nml-error-bg: rgba(80, 80, 80, 0.92);

    background: #0a0a0a;
    color: #666;
    font-family: "PT Sans", serif;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.accent {
    color: var(--nml-accent);
}

/* ===== NAVBAR (WildRP layout, NML colors) ===== */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 5.25rem;
    z-index: 10000;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Moon Dance", cursive;
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    user-select: none;
    -webkit-user-select: none;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.navbar-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0.75rem 1.5rem;
    border-bottom: 0.063rem solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(7, 7, 7, 0.96));
    position: relative;
    z-index: 1;
}

.navbar-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 50%;
    justify-content: flex-start;
    order: 0;
}

.navbar-logo-link {
    flex-shrink: 0;
    order: 1;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.navbar-logo-link:hover {
    opacity: 0.85;
}

img.logo {
    display: block;
    width: auto;
    height: 3.75rem;
    max-height: calc(5.25rem - 1.5rem);
    object-fit: contain;
    user-drag: none;
    -webkit-user-drag: none;
}

.navbar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 50%;
    justify-content: flex-end;
    order: 2;
}

.link-wrapper {
    display: inline;
    padding-left: 0.313rem;
    padding-right: 0.313rem;
}

.link-wrapper a,
.link-wrapper span {
    color: inherit;
    text-decoration: inherit;
    transition: color 0.2s ease;
}

.link-wrapper:hover a,
.link-wrapper.active a,
.link-wrapper a:focus-visible,
.link-wrapper button:hover,
.link-wrapper button:focus-visible {
    color: var(--nml-accent);
}

.link-wrapper-block a:hover {
    color: var(--nml-accent);
}

.link-wrapper button {
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    padding: 0;
    text-decoration: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.nav-logout-form {
    margin: 0;
}

.nav-more-icon {
    font-size: 0.75rem;
    margin-left: 0.15rem;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.navbar-wrapper.nav-open .nav-more-icon {
    transform: rotate(180deg);
}

.navbar-wrapper.nav-open #nav-more-btn {
    color: var(--nml-accent);
}

.link-wrapper-block {
    display: block;
    padding: 0.125rem 0.313rem;
}

.link-wrapper-block a {
    color: inherit;
    text-decoration: inherit;
}

.link-accent {
    -webkit-text-fill-color: transparent;
    background: var(--nml-accent-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.link-accent a {
    -webkit-text-fill-color: transparent;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
}

.link-accent a:hover {
    -webkit-text-fill-color: transparent;
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-divider {
    display: inline-block;
    box-sizing: border-box;
    height: 1.875rem;
    margin-left: 0.625rem;
    padding-right: 0.625rem;
    border-left: 0.063rem solid rgba(255, 255, 255, 0.2);
}

.third-party-logo {
    padding-left: 0.313rem;
    padding-right: 0.313rem;
}

.third-party-logo a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    line-height: 0;
    transition: color 0.2s ease;
}

.third-party-logo a:hover,
.third-party-logo a:focus-visible {
    color: var(--nml-accent);
}

.third-party-logo svg {
    display: block;
    width: 1.563rem;
    height: 1.563rem;
    filter: brightness(0.5);
    transition: filter 0.2s ease;
}

.third-party-logo a:hover svg,
.third-party-logo a:focus-visible svg {
    filter: brightness(1);
}

.nav-desktop-only {
    display: inline;
}

.nav-mobile-only {
    display: none;
}

.dropdown-wrapper {
    position: fixed;
    top: 5.25rem;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    max-height: calc(100vh - 5.25rem);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: transform 0.35s ease-in-out, opacity 0.25s linear;
    z-index: 9999;
}

.dropdown-wrapper.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.dropdown-background {
    background: rgba(10, 10, 10, 0.94);
    padding: 1.3rem 1.3rem 1.6rem 1.2rem;
    border-bottom: 0.063rem solid rgba(255, 255, 255, 0.08);
}

.dropdown-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.25s linear;
    transition-delay: 0.1s;
}

.dropdown-wrapper.active .dropdown-content {
    opacity: 1;
}

.dropdown-column {
    display: inline-block;
    padding-right: 2.5rem;
    margin-bottom: 1rem;
}

/* ===== PAGE ===== */
.tm-page {
    background: #0a0a0a;
    min-height: 100vh;
    overflow-x: hidden;
}

.tm-background-media {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.tm-bg-slideshow,
.tm-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tm-bg-slide {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.tm-bg-slide.active {
    opacity: 1;
}

.tm-bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(#0a0a0a26, #0a0a0a59 40%, #0a0a0a99 70%, #0a0a0ad9);
}

/* ===== HERO ===== */
.tm-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 40px;
}

.tm-hero-content {
    text-align: center;
    max-width: 900px;
}

.tm-hero-logo {
    height: 200px;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6));
}

.tm-hero-tagline {
    color: #fff;
    font-family: "Moon Dance", cursive;
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

.tm-hero-tagline .accent {
    color: var(--nml-accent);
}

.tm-button {
    display: inline-block;
    background: #0e0e0e;
    color: #f3f3f3;
    border: 2px solid #f3f3f3;
    border-radius: 20px;
    padding: 12px 35px;
    font-family: "Moon Dance", cursive;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s ease-in-out;
    text-decoration: none;
}

.tm-button:hover,
.tm-button:focus {
    padding: 12px 45px;
}

.tm-hero-socials {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}

.tm-social-link svg {
    fill: #fff;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.tm-social-link:hover svg {
    opacity: 1;
}

.tm-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.5rem;
    line-height: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== INTRO ===== */
.tm-intro {
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 10, 0.92);
    padding: 140px 20px;
}

.tm-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.tm-intro-heading {
    color: #fff;
    font-family: "Moon Dance", cursive;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.05em;
    position: sticky;
    top: 120px;
}

.tm-intro-text p {
    color: rgba(255, 255, 255, 0.75);
    font-family: "Plus Jakarta Sans", "PT Sans", sans-serif;
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 25px;
}

.tm-intro-text p strong {
    color: #fff;
    font-weight: 700;
}

.tm-role-cycle {
    margin-top: 10px;
}

.tm-role-word {
    color: var(--nml-accent-dark);
    font-weight: 700;
    display: inline-block;
    transition: opacity 0.4s, transform 0.4s;
}

.tm-role-word.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

.tm-story-matters {
    color: #fff;
    font-family: "Moon Dance", cursive;
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* ===== FEATURES HEADER + STREAMS ===== */
.tm-features-section {
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 10, 0.32);
    padding: 120px 20px;
}

.tm-features-header {
    text-align: center;
    margin-bottom: 100px;
}

.tm-features-header h2 {
    color: #fff;
    font-family: "Moon Dance", cursive;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.tm-features-header h2 .accent {
    color: var(--nml-accent-dark);
}

.tm-features-header p {
    color: rgba(255, 255, 255, 0.55);
    font-family: "Plus Jakarta Sans", "PT Sans", sans-serif;
    font-size: 1.1rem;
}

.tm-streams-carousel {
    width: 100%;
    margin-bottom: 80px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tm-streams-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-streams 60s linear infinite;
}

@keyframes scroll-streams {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tm-stream-card {
    flex-shrink: 0;
    width: 280px;
}

.tm-stream-link {
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.tm-stream-link:hover {
    transform: translateY(-4px);
}

.tm-stream-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
}

.tm-stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-stream-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(200, 200, 200, 0.9);
    color: #fff;
    border-radius: 4px;
    padding: 4px 10px;
    font-family: "Plus Jakarta Sans", "PT Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
}

.tm-stream-live-badge .dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.tm-stream-info {
    padding: 14px;
}

.tm-stream-name {
    color: #fff;
    font-family: "Plus Jakarta Sans", "PT Sans", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.tm-stream-title {
    color: rgba(255, 255, 255, 0.55);
    font-family: "Plus Jakarta Sans", "PT Sans", sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ===== FEATURE BLOCKS ===== */
.tm-feature {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto 120px;
}

.tm-feature.reverse {
    grid-template-columns: 1fr 1.3fr;
}

.tm-feature.reverse .tm-feature-media { order: 2; }
.tm-feature.reverse .tm-feature-content { order: 1; text-align: right; }

.tm-feature-media {
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.tm-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-youtube-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.tm-feature-content h3 {
    color: #fff;
    font-family: "Moon Dance", cursive;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}

.tm-feature-content p {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Plus Jakarta Sans", "PT Sans", sans-serif;
    font-size: 1.1rem;
    line-height: 1.85;
}

.tm-feature-content strong {
    color: #fff;
}

.inline-stat {
    color: var(--nml-accent);
    font-weight: 700;
}

/* ===== RP HIGHLIGHTS ===== */
.tm-highlights {
    position: relative;
    z-index: 1;
    padding: 100px 20px 120px;
    background: rgba(10, 10, 10, 0.32);
}

.tm-highlights-header {
    text-align: center;
    margin-bottom: 48px;
}

.tm-highlights-header h2 {
    color: #fff;
    font-family: "Moon Dance", cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.tm-highlights-header h2 .accent {
    color: var(--nml-accent-dark);
}

.tm-highlights-header p {
    color: rgba(255, 255, 255, 0.55);
    font-family: "Plus Jakarta Sans", "PT Sans", sans-serif;
    font-size: 1rem;
}

.tm-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.tm-highlight-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.tm-highlight-card:hover {
    transform: translateY(-6px);
    border-color: var(--nml-accent-border);
}

.tm-highlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-highlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
}

.tm-highlight-overlay h3 {
    color: #fff;
    font-family: "Moon Dance", cursive;
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.tm-highlight-overlay p {
    color: rgba(255, 255, 255, 0.68);
    font-family: "Plus Jakarta Sans", "PT Sans", sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer-container {
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 10, 0.95);
    color: rgba(255, 255, 255, 0.85);
    padding: 24px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-logo img {
    height: 60px;
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 12px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #fff;
}

.copyright {
    font-family: "Plus Jakarta Sans", "PT Sans", sans-serif;
    font-size: 0.95rem;
}

.disclaimer {
    color: rgba(255, 255, 255, 0.45);
    font-family: "Plus Jakarta Sans", "PT Sans", sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 700px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .tm-intro-inner,
    .tm-feature,
    .tm-feature.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tm-feature.reverse .tm-feature-media,
    .tm-feature.reverse .tm-feature-content {
        order: unset;
        text-align: left;
    }

    .tm-intro-heading {
        position: static;
    }
}

@media (max-width: 992px) {
    .navbar-left .link-wrapper a,
    .navbar-left .link-wrapper span {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .navbar-right .nav-divider {
        display: none;
    }

    .tm-hero-logo {
        height: 140px;
    }

    .tm-highlights-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.nav-avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    background: #3a3a3a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-avatar-wrap:hover .nav-avatar,
.nav-avatar-wrap:focus-within .nav-avatar {
    border-color: var(--nml-accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.login-toast {
    position: fixed;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: rgba(34, 120, 60, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ===== TÍTULOS — Moon Dance fino (global NML) ===== */
:is(body.nml, body.NML) :is(h1, h2, h3, h4, h5, h6) {
    font-family: "Moon Dance", cursive;
    font-weight: 400;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}
