:root {
    --bg-sky: #26144b;
    --bg-night: #0a0820;
    --panel: #1f1f5c;
    --panel-2: #12325f;
    --ink: #f6f2ff;
    --muted: #a7bbff;
    --yellow: #ffe66d;
    --orange: #ff8f3f;
    --pink: #ff5d8f;
    --cyan: #49e7ff;
    --green: #8dff9f;
}

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

body {
    font-family: "VT323", monospace;
    background: linear-gradient(to bottom, var(--bg-sky), var(--bg-night) 55%);
    color: var(--ink);
    line-height: 1.4;
    overflow-x: hidden;
}

body.lightbox-open {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

.pixel-art {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#pixel-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.pixel-star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--yellow);
    box-shadow: 0 0 10px rgba(255, 230, 109, 0.9);
    animation: twinkle 2.5s steps(2) infinite;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 5%;
    background: rgba(10, 8, 32, 0.92);
    border-bottom: 4px solid var(--cyan);
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo-main {
    font-family: "Press Start 2P", monospace;
    font-size: 1.05rem;
    color: var(--yellow);
}

.logo-tag {
    color: var(--muted);
    letter-spacing: 0.08em;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.original-duckgame-note {
    margin: 0;
    color: #8f98b8;
    font-size: 0.95rem;
    text-align: center;
}

.original-duckgame-note a {
    color: #a7afcf;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.original-duckgame-note a:hover {
    color: #c9d0ee;
}

.nav-link {
    text-decoration: none;
    color: var(--ink);
    font-size: 1.5rem;
    border: 2px solid var(--cyan);
    padding: 0.2rem 0.7rem;
    background: #102f5b;
    transition: transform 0.2s steps(2), background-color 0.2s;
}

.nav-link:hover {
    transform: translateY(-2px);
    background: #1b4a8e;
}

.nav-link-team {
    background: #ff6b6b;
    border-color: #5a1010;
    color: #2a0000;
}

.nav-link-team:hover {
    background: #ff7b7b;
}

.hero,
.features-section,
.roadmap-section,
.feature-showcase-section {
    width: min(1150px, 92%);
    margin: 0 auto;
}

.hero {
    padding: 4rem 0 3rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.badge {
    display: inline-block;
    font-family: "Press Start 2P", monospace;
    font-size: 0.63rem;
    line-height: 1.6;
    color: #130c2d;
    background: var(--green);
    border: 3px solid #0f0a25;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: "Press Start 2P", monospace;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.gradient-text {
    color: var(--pink);
    text-shadow: 0 0 8px rgba(255, 93, 143, 0.7);
}

.hero-subtitle {
    color: var(--muted);
    font-size: clamp(1.4rem, 1.9vw, 1.8rem);
    max-width: 62ch;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    font-family: "Press Start 2P", monospace;
    font-size: 0.7rem;
    text-decoration: none;
    color: #140c2f;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 3px solid #140c2f;
    padding: 0.9rem 1rem;
    transition: transform 0.2s steps(2);
}

.btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.btn:hover {
    transform: translate(3px, -3px);
}

.btn-primary {
    background: var(--orange);
}

.btn-secondary {
    background: var(--cyan);
}

.hero-scene {
    width: 100%;
}

.hero-trailer {
    width: 100%;
}

.trailer-label {
    font-family: "Press Start 2P", monospace;
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    line-height: 1.6;
    color: var(--yellow);
    margin-bottom: 0.7rem;
    text-align: center;
}

.trailer-preview {
    display: block;
    position: relative;
    background: var(--panel);
    border: 4px solid #100929;
    box-shadow: 10px 10px 0 #0d0720;
    padding: 0.8rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s steps(2), filter 0.2s;
}

.trailer-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../pixelart/freepixel-rpg-ui-kit/menu-panel-frame-stone-border-019.png");
    background-size: 100% 100%;
    opacity: 0.18;
    pointer-events: none;
}

.trailer-preview:hover,
.trailer-preview:focus-visible {
    transform: translate(3px, -3px);
    filter: saturate(1.08);
}

.trailer-preview:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.trailer-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    border: 3px solid #0f0a25;
    background: #0a0820;
    transition: transform 0.25s steps(3), filter 0.25s;
}

.trailer-preview:hover .trailer-thumbnail,
.trailer-preview:focus-visible .trailer-thumbnail {
    transform: scale(1.025);
    filter: brightness(1.12) contrast(1.05);
}

.trailer-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: clamp(62px, 14vw, 92px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #d71920;
    border: 3px solid #0f0a25;
    box-shadow: 5px 5px 0 #0f0a25;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    transform: translate(-50%, -50%);
    transition: transform 0.2s steps(2), background-color 0.2s;
}

.trailer-preview:hover .trailer-play,
.trailer-preview:focus-visible .trailer-play {
    background: #ff2a30;
    transform: translate(-50%, -50%) scale(1.08);
}

.scene-note {
    margin-top: 0.8rem;
}

.scene-panel {
    background: var(--panel);
    border: 4px solid #100929;
    box-shadow: 10px 10px 0 #0d0720;
    padding: 0.8rem;
    position: relative;
}

.scene-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../pixelart/freepixel-rpg-ui-kit/menu-panel-frame-stone-border-019.png");
    background-size: 100% 100%;
    opacity: 0.18;
    pointer-events: none;
}

.scene-hud {
    display: flex;
    justify-content: space-between;
    color: var(--yellow);
    font-family: "Press Start 2P", monospace;
    font-size: 0.55rem;
    margin-bottom: 0.8rem;
}

.hud-left {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hud-icon {
    width: 20px;
    height: 20px;
}

.scene-body {
    min-height: 240px;
    position: relative;
    background: url("../assets/forest-day.png") center / cover no-repeat;
    border: 3px solid #0f0a25;
    overflow: hidden;
}

.sprite {
    position: absolute;
    filter: saturate(1.2) contrast(1.1);
}

.sprite-duck {
    bottom: 1.6rem;
    left: 1.5rem;
    width: clamp(84px, 18vw, 130px);
    animation: bob 1.4s steps(2) infinite;
}

.sprite-gun {
    bottom: 2rem;
    right: 1.8rem;
    width: clamp(90px, 18vw, 140px);
    animation: sway 2s steps(2) infinite;
}

.sprite-burst {
    right: 8.2rem;
    top: 1.5rem;
    width: clamp(68px, 14vw, 100px);
    animation: blink 0.8s steps(2) infinite;
}

.sprite-item {
    left: 45%;
    bottom: 1.2rem;
    width: clamp(70px, 15vw, 110px);
}

.scene-cloud {
    position: absolute;
    width: 100%;
    left: 0;
    pointer-events: none;
}

.cloud-back {
    top: 0.5rem;
    opacity: 0.5;
}

.cloud-front {
    top: 2rem;
    opacity: 0.55;
}

.scene-floor {
    height: 16px;
    background-image: url("../assets/forest-day-tile.png");
    background-size: auto 100%;
    border: 3px solid #0f0a25;
    border-top: none;
}

.features-section,
.roadmap-section,
.feature-showcase-section {
    padding: 4rem 0;
}

.features-section .section-title,
.feature-showcase-section .section-title,
footer {
    scroll-margin-top: calc(86px + 1rem);
}

.section-title {
    font-family: "Press Start 2P", monospace;
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--yellow);
    margin-bottom: 2rem;
}

.features-grid,
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.feature-showcase-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
    justify-items: center;
    max-width: calc(min(1150px, 92%));
    margin: 0 auto;
}

.showcase-card {
    grid-column: span 2;
    width: 100%;
    max-width: 380px;
}

.showcase-card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
}

.feature-card,
.road-item {
    background: var(--panel-2);
    border: 3px solid #0e0822;
    box-shadow: 6px 6px 0 #0f0a25;
    padding: 1rem;
    position: relative;
}

.feature-card::after,
.road-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../pixelart/freepixel-rpg-ui-kit/inventory-panel-frame-brown-wooden-017.png");
    background-size: 100% 100%;
    opacity: 0.18;
    pointer-events: none;
}

.showcase-card {
    background: var(--panel-2);
    border: 3px solid #0e0822;
    box-shadow: 6px 6px 0 #0f0a25;
    padding: 1rem;
    position: relative;
}

.showcase-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../pixelart/freepixel-rpg-ui-kit/inventory-panel-frame-brown-wooden-017.png");
    background-size: 100% 100%;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.showcase-card h3 {
    position: relative;
    z-index: 1;
}

.showcase-card .showcase-media {
    position: relative;
    z-index: 1;
    background: #0a0820;
}

.showcase-card h3 {
    font-family: "Press Start 2P", monospace;
    font-size: 0.68rem;
    line-height: 1.7;
    margin-bottom: 0.4rem;
    min-height: 70px;
}

.media-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px dashed rgba(246, 242, 255, 0.75);
    background: rgba(10, 8, 32, 0.35);
    box-shadow: inset 0 0 0 2px rgba(15, 10, 37, 0.5);
}

.showcase-media {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.22s steps(3), filter 0.22s;
}

.media-button {
    appearance: none;
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 0;
    color: inherit;
    background: #0a0820;
    border: 2px solid #0e0822;
    cursor: zoom-in;
    overflow: hidden;
    font: inherit;
    text-align: inherit;
}

.media-button:hover .showcase-media,
.media-button:focus-visible .showcase-media {
    transform: scale(1.025);
    filter: brightness(1.12) saturate(1.08);
}

.media-button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.media-zoom-icon {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 2;
    width: 38px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: var(--yellow);
    background: rgba(10, 8, 32, 0.88);
    border: 2px solid #0e0822;
    box-shadow: 3px 3px 0 #0f0a25;
    opacity: 0;
    transform: translate(8px, 8px);
    transition: opacity 0.2s steps(2), transform 0.2s steps(2);
}

.media-button:hover .media-zoom-icon,
.media-button:focus-visible .media-zoom-icon {
    opacity: 1;
    transform: translate(0, 0);
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(3, 2, 12, 0.92);
}

.media-lightbox.is-open {
    display: flex;
}

.lightbox-frame {
    width: min(1100px, 100%);
    max-height: calc(100vh - 4rem);
    display: grid;
    gap: 0.75rem;
}

.lightbox-title {
    font-family: "Press Start 2P", monospace;
    color: var(--yellow);
    font-size: clamp(0.72rem, 1.6vw, 1rem);
    line-height: 1.6;
    text-align: center;
}

.lightbox-content {
    display: grid;
    place-items: center;
    min-height: 0;
}

.lightbox-media {
    max-width: 100%;
    max-height: calc(100vh - 8.5rem);
    object-fit: contain;
    background: #0a0820;
    border: 4px solid #0e0822;
    box-shadow: 8px 8px 0 #0f0a25;
}

.lightbox-close {
    appearance: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 46px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #210407;
    background: #ff6b6b;
    border: 3px solid #0f0a25;
    box-shadow: 4px 4px 0 #0f0a25;
    cursor: pointer;
    font-size: 1.2rem;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: #ff7b7b;
}

.lightbox-close:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.feature-icon {
    width: 78px;
    height: 78px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-family: "Press Start 2P", monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0.55rem;
}

.feature-card p,
.road-item p {
    font-size: 1.35rem;
    color: #d9e3ff;
}

.road-step {
    display: inline-block;
    font-family: "Press Start 2P", monospace;
    color: #0f0a25;
    background: var(--green);
    border: 2px solid #0f0a25;
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.65rem;
}

footer {
    width: min(1150px, 92%);
    margin: 2.5rem auto 2rem;
    background: linear-gradient(180deg, #201a56 0%, #1a1545 100%);
    border: 3px solid #0f0a25;
    box-shadow: 8px 8px 0 #0c0820;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

footer::after {
    content: none;
}

.footer-content {
    display: grid;
    gap: 1rem;
}

.brand {
    font-family: "Press Start 2P", monospace;
    color: var(--yellow);
    font-size: 0.8rem;
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.dev-card {
    border: 2px solid #0f0a25;
    background: rgba(10, 8, 32, 0.45);
    box-shadow: 4px 4px 0 #0f0a25;
    padding: 0.7rem;
    display: grid;
    gap: 0.45rem;
    animation: devPulse 4.4s ease-in-out infinite;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s steps(2), transform 0.2s steps(2);
}

.dev-card:hover,
.dev-card:focus-within {
    animation: none;
    transform: translate(4px, -4px);
    border-color: var(--yellow);
    background: rgba(10, 8, 32, 0.72);
    box-shadow: 8px 8px 0 #0f0a25;
}

.dev-card:nth-child(2) {
    animation-delay: 0.55s;
}

.dev-card:nth-child(3) {
    animation-delay: 1.1s;
}

.dev-card:nth-child(4) {
    animation-delay: 1.65s;
}

.dev-card h4 {
    font-family: "Press Start 2P", monospace;
    font-size: 0.6rem;
    line-height: 1.6;
    transition: color 0.2s, text-shadow 0.2s;
}

.dev-card:hover h4,
.dev-card:focus-within h4 {
    color: var(--yellow);
    text-shadow: 2px 2px 0 #0f0a25;
}

.dev-card a {
    text-decoration: none;
    color: #0f0a25;
    font-size: 1.15rem;
    padding: 0.15rem 0.45rem;
    border: 2px solid #0f0a25;
    width: fit-content;
    transition: transform 0.2s steps(2), filter 0.2s, box-shadow 0.2s steps(2);
}

.dev-card:hover a,
.dev-card:focus-within a {
    box-shadow: 3px 3px 0 #0f0a25;
}

.dev-card a:hover,
.dev-card a:focus-visible {
    transform: translate(2px, -2px);
    filter: brightness(1.12);
}

.dev-card a:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

.dev-red a {
    background: #ff6b6b;
}

.dev-cyan a {
    background: #49e7ff;
}

.dev-green a {
    background: #8dff9f;
}

.dev-orange a {
    background: #ffb347;
}

.copyright {
    font-family: "Press Start 2P", monospace;
    color: #ffe66d;
    font-size: 0.62rem;
    margin-top: 1rem;
    text-align: center;
    text-shadow: 1px 1px 0 #ff5d8f, -1px -1px 0 #49e7ff, 0 0 4px rgba(255, 230, 109, 0.5);
}

.legal-disclaimer {
    color: #8f98b8;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 0.55s steps(8) forwards;
}

.pulse {
    animation: pulse 1.6s steps(2) infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes sway {
    0%,
    100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-6deg);
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}

@keyframes devPulse {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: 4px 4px 0 #0f0a25;
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 6px 6px 0 #0f0a25;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .navbar {
        justify-content: center;
        flex-wrap: wrap;
    }

    .logo {
        align-items: center;
    }

    .feature-showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-card,
    .showcase-card:nth-last-child(2):nth-child(3n + 1) {
        grid-column: auto;
    }

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

@media (max-width: 620px) {
    .dev-grid {
        grid-template-columns: 1fr;
    }
}
