:root {
    --ink: #f5f7ee;
    --muted: #c4c9bb;
    --soft: #8b968b;
    --night: #080d11;
    --deep: #101622;
    --forest: #17271f;
    --moss: #9cc46b;
    --cyan: #72d7d6;
    --gold: #f2d275;
    --ember: #d6864c;
    --line: rgba(255, 255, 255, 0.14);
    --panel: rgba(12, 18, 23, 0.72);
    --panel-strong: rgba(15, 24, 29, 0.94);
    --font-body: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Cinzel", Georgia, serif;
    --font-hytale: "Hytale Nav", "Cinzel", Georgia, serif;
}

@font-face {
    font-family: "Hytale Nav";
    src: url("fonts/hytale2.ttf") format("truetype");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 0%, rgba(114, 215, 214, 0.14), transparent 26rem),
        radial-gradient(circle at 84% 18%, rgba(242, 210, 117, 0.12), transparent 24rem),
        linear-gradient(180deg, #08100f 0%, #0a0f14 38%, #080b0f 100%);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body .navbar {
    background:
        linear-gradient(90deg, rgba(7, 13, 16, 0.76), rgba(18, 36, 31, 0.58), rgba(7, 13, 16, 0.78));
    border-bottom: 1px solid rgba(156, 196, 107, 0.16);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px) saturate(130%);
}

body .navbar.scrolled {
    background:
        linear-gradient(90deg, rgba(6, 10, 13, 0.92), rgba(16, 30, 25, 0.9), rgba(6, 10, 13, 0.92));
    border-bottom-color: rgba(242, 210, 117, 0.18);
}

body .navbar-link::after {
    background: linear-gradient(90deg, var(--moss), var(--gold));
}

body .navbar-link,
body .dropdown-menu li a {
    font-family: var(--font-hytale);
    letter-spacing: 0.035em;
}

body .navbar-menu {
    gap: 10px;
}

body .navbar-link {
    padding: 9px 12px;
    font-size: 0.96rem;
    line-height: 1;
    white-space: nowrap;
}

body .navbar-signup,
body .navbar-login {
    letter-spacing: 0.02em;
    min-width: max-content;
    padding: 10px 18px;
}

body .navbar-link:hover,
body .navbar-link.active,
body .dropdown:hover > .navbar-link {
    color: var(--gold);
}

body .navbar-signup {
    background: linear-gradient(135deg, #d6864c, #f2d275);
    color: #12170f;
    border-color: rgba(255, 255, 255, 0.86);
}

body .navbar-login {
    border-color: rgba(245, 247, 238, 0.9);
    background: rgba(5, 10, 13, 0.34);
}

body .dropdown-menu {
    background: rgba(8, 15, 17, 0.88);
    border: 1px solid rgba(156, 196, 107, 0.16);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

body .dropdown-menu li a:hover {
    color: var(--gold);
    background: rgba(156, 196, 107, 0.08);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.hytale-page {
    isolation: isolate;
}

.hytale-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hytale-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 92px 0 64px;
    overflow: hidden;
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.95) contrast(1.05);
}

.hero-image-a {
    background-image: url("fondo1.png");
    opacity: 0.42;
}

.hero-image-b {
    background-image: url("fondo2.png");
    opacity: 0.32;
    mix-blend-mode: screen;
    animation: slow-breathe 12s ease-in-out infinite;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 9, 11, 0.96) 0%, rgba(7, 12, 14, 0.76) 38%, rgba(7, 12, 14, 0.22) 72%, rgba(5, 9, 11, 0.84) 100%),
        linear-gradient(180deg, rgba(5, 9, 11, 0.72) 0%, transparent 42%, rgba(5, 9, 11, 0.95) 100%);
}

.hero-sparks {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(156, 196, 107, 0.86) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(114, 215, 214, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(242, 210, 117, 0.76) 0 1px, transparent 2px);
    background-size: 170px 130px, 230px 190px, 310px 250px;
    background-position: 10% 10%, 70% 30%, 30% 70%;
    opacity: 0.32;
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 78%, transparent);
    animation: drift 22s linear infinite;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1fr);
    align-items: center;
    gap: clamp(36px, 6vw, 88px);
}

.hero-copy {
    max-width: 570px;
    padding-top: 24px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--moss);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.contest-copy h2,
.workshop-intro h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
}

.hero-copy h1 {
    max-width: 10.8ch;
    font-size: clamp(3rem, 5.7vw, 5.8rem);
    text-wrap: balance;
}

.hero-lead {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-actions,
.contest-actions,
.release-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions,
.contest-actions {
    margin-top: 24px;
}

.hytale-btn,
.release-actions a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-weight: 900;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.hytale-btn-primary,
.release-actions a:first-child {
    color: #122017;
    background: var(--gold);
    border-color: rgba(242, 210, 117, 0.7);
    box-shadow: 0 18px 42px rgba(242, 210, 117, 0.16);
}

.hytale-btn-ghost,
.release-actions a:last-child {
    background: rgba(255, 255, 255, 0.06);
}

.hytale-btn:hover,
.release-actions a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.38);
}

.hero-stack {
    min-height: 520px;
    position: relative;
}

.feature-cover,
.contest-chip {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(7, 13, 16, 0.72);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.feature-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-cover span {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 9px 14px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff6fb;
    background: rgba(214, 103, 157, 0.62);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    text-shadow: 0 1px 8px rgba(52, 10, 36, 0.45);
}

.feature-cover-veil span {
    color: #fff1fb;
    background: linear-gradient(135deg, rgba(221, 102, 165, 0.66), rgba(117, 214, 219, 0.42));
    border-color: rgba(255, 186, 225, 0.46);
}

.feature-cover-thrones span {
    color: #fff3ce;
    background: linear-gradient(135deg, rgba(166, 103, 41, 0.66), rgba(242, 210, 117, 0.45));
    border-color: rgba(242, 210, 117, 0.44);
    text-shadow: 0 1px 8px rgba(45, 24, 5, 0.58);
}

.feature-cover-main {
    width: min(560px, 90%);
    aspect-ratio: 16 / 9;
    right: 0;
    top: 16px;
    transform: rotate(2.5deg);
    z-index: 3;
}

.feature-cover-side {
    width: min(420px, 68%);
    aspect-ratio: 16 / 10;
    left: 10px;
    bottom: 54px;
    transform: rotate(-4deg);
    z-index: 2;
}

.contest-chip {
    width: 250px;
    right: 24px;
    bottom: 10px;
    padding: 16px;
    color: var(--ink);
    z-index: 4;
}

.contest-chip img {
    width: 100%;
    margin-bottom: 10px;
}

.contest-chip strong,
.contest-chip span {
    display: block;
}

.contest-chip strong {
    color: var(--gold);
    font-size: 1.3rem;
}

.contest-chip span {
    color: var(--muted);
    font-size: 0.9rem;
}

.release-section,
.contest-section,
.workshop-section {
    position: relative;
    padding: clamp(74px, 10vw, 128px) 0;
}

.release-section {
    padding: clamp(66px, 7vw, 96px) 0;
}

.release-section::before,
.contest-section::before,
.workshop-section::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(156, 196, 107, 0.24), transparent);
}

.section-heading {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 28px;
}

.section-heading h2,
.contest-copy h2,
.workshop-intro h2 {
    font-size: clamp(2.1rem, 4.8vw, 4.6rem);
    text-wrap: balance;
}

.section-heading h2 {
    max-width: 760px;
    font-size: clamp(2rem, 3.7vw, 3.8rem);
}

.section-heading p:last-child,
.contest-copy p,
.workshop-intro p,
.workshop-list p,
.release-body p {
    color: var(--muted);
}

.release-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.release-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid rgba(156, 196, 107, 0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(18, 38, 28, 0.86), rgba(12, 18, 23, 0.94));
    overflow: hidden;
}

.release-card-alt {
    border-color: rgba(114, 215, 214, 0.24);
    background: linear-gradient(135deg, rgba(18, 28, 42, 0.88), rgba(12, 18, 23, 0.94));
}

.release-card-world {
    border-color: rgba(210, 134, 76, 0.28);
    background: linear-gradient(135deg, rgba(42, 24, 32, 0.86), rgba(12, 18, 23, 0.94));
}

.release-card-merchant {
    border-color: rgba(242, 210, 117, 0.28);
    background: linear-gradient(135deg, rgba(42, 32, 18, 0.86), rgba(12, 18, 23, 0.94));
}

.release-media {
    aspect-ratio: 16 / 9;
    background: #0a0d10;
    overflow: hidden;
}

.release-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.release-card:hover .release-media img {
    transform: scale(1.045);
}

.release-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.release-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--moss);
    background: rgba(156, 196, 107, 0.11);
    border: 1px solid rgba(156, 196, 107, 0.24);
    font-size: 0.72rem;
    font-weight: 900;
}

.release-card-alt .release-meta span {
    color: var(--cyan);
    background: rgba(114, 215, 214, 0.1);
    border-color: rgba(114, 215, 214, 0.22);
}

.release-card-world .release-meta span {
    color: #f0a7c7;
    background: rgba(240, 167, 199, 0.1);
    border-color: rgba(240, 167, 199, 0.24);
}

.release-card-merchant .release-meta span {
    color: var(--gold);
    background: rgba(242, 210, 117, 0.1);
    border-color: rgba(242, 210, 117, 0.24);
}

.release-body h3 {
    margin: 0;
    font-size: clamp(1.35rem, 1.7vw, 1.9rem);
    line-height: 1.08;
}

.release-body p {
    margin: 12px 0 18px;
    font-size: 0.94rem;
}

.release-actions {
    gap: 8px;
}

.release-actions a {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.contest-section {
    background:
        linear-gradient(90deg, rgba(8, 13, 17, 0.94), rgba(12, 18, 23, 0.68)),
        url("fondo2.png") center / cover fixed;
}

.contest-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
    gap: clamp(28px, 6vw, 84px);
    align-items: center;
}

.contest-poster {
    padding: clamp(22px, 4vw, 46px);
    border: 1px solid rgba(242, 210, 117, 0.2);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 30%, rgba(122, 64, 200, 0.22), transparent 58%),
        rgba(8, 11, 15, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 28px 90px rgba(0, 0, 0, 0.34);
}

.contest-poster img {
    filter: drop-shadow(0 18px 44px rgba(122, 64, 200, 0.34));
}

.workshop-section {
    background: linear-gradient(180deg, #080b0f, #0c1316);
}

.workshop-grid {
    display: grid;
    grid-template-columns: 0.74fr 1fr;
    gap: clamp(32px, 6vw, 86px);
    align-items: start;
}

.workshop-list {
    display: grid;
    gap: 12px;
}

.workshop-list article {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 6px 16px;
    padding: 20px;
    border-top: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent);
}

.workshop-list i {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #142017;
    background: var(--moss);
}

.workshop-list h3 {
    margin: 0;
    font-size: 1.2rem;
}

.workshop-list p {
    margin: 0;
}

.hytale-footer {
    padding: 46px 0 26px;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(circle at 20% 0%, rgba(156, 196, 107, 0.08), transparent 26rem),
        linear-gradient(180deg, #080b0f, #060809);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(170px, 0.7fr));
    gap: 30px;
    align-items: start;
}

.footer-logo {
    width: 160px;
    margin-bottom: 14px;
}

.hytale-footer p {
    margin: 0;
    color: var(--soft);
    max-width: 360px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h3 {
    margin: 0 0 4px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hytale-footer a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
}

.hytale-footer a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.footer-contest-link {
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--soft);
    font-size: 0.92rem;
}

.reveal-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slow-breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.27;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.38;
    }
}

@keyframes drift {
    to {
        background-position: 40% 30%, 20% 80%, 90% 20%;
    }
}

@media (max-width: 1050px) {
    .hero-grid,
    .contest-layout,
    .workshop-grid,
    .section-heading {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 12ch;
    }

    .hero-stack {
        min-height: 440px;
    }

    .release-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .hytale-shell {
        width: min(100% - 28px, 1180px);
    }

    .hytale-hero {
        min-height: auto;
        padding: 74px 0 46px;
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 12vw, 3.55rem);
    }

    .hero-stack {
        min-height: auto;
    }

    .feature-cover-main,
    .feature-cover-side,
    .contest-chip {
        position: relative;
        inset: auto;
        width: 100%;
        transform: none;
        margin-bottom: 14px;
    }

    .release-card {
        display: flex;
    }

    .release-grid {
        grid-template-columns: 1fr;
    }

    .release-media {
        aspect-ratio: 16 / 9;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
