/* =========================================================
   LAST ADVENTURE — modernized stylesheet
   Design language: "sealed relic" — carved stone, ember glow,
   parchment type, a burning sigil as the recurring signature.
   ========================================================= */

:root {
    --void: #0b0908;
    --void-soft: #120d0a;
    --char: #1a130f;
    --char-line: rgba(232, 220, 200, 0.09);
    --parchment: #e8dcc8;
    --parchment-dim: rgba(232, 220, 200, 0.68);
    --parchment-faint: rgba(232, 220, 200, 0.4);
    --ember: #c1441e;
    --ember-glow: #ff8a3d;
    --oxblood: #591418;
    --oxblood-bright: #7a1c20;

    --font-display: "Cinzel", serif;
    --font-body: "Spectral", serif;
    --font-label: "Oswald", sans-serif;

    --container: 1180px;
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    background: var(--void);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--parchment);
    font: 400 1.05rem/1.7 var(--font-body);
    background:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(193, 68, 30, 0.16), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 20%, rgba(193, 68, 30, 0.08), transparent 55%),
        var(--void);
    overflow-x: hidden;
}

a {
    color: inherit;
}

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

.eyebrow {
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ember-glow);
}

/* ---------- sigil (signature element) ---------- */

.sigil {
    display: inline-block;
    line-height: 0;
}

.sigil svg path {
    fill: currentColor;
}

.sigil--ignite {
    color: var(--parchment-faint);
    filter: drop-shadow(0 0 0 rgba(255, 138, 61, 0));
    transition: color 1s ease, filter 1s ease;
}

.sigil--ignite.is-lit {
    color: var(--ember-glow);
    filter: drop-shadow(0 0 14px rgba(255, 138, 61, 0.65));
}

.divider {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 420px;
    margin: 0 auto;
    color: var(--parchment-faint);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--char-line), transparent);
}

.divider .sigil svg {
    width: 22px;
    height: 22px;
}

/* ---------- ember particles (ambient motion) ---------- */

.embers {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.embers span {
    position: absolute;
    bottom: -5%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ember-glow);
    box-shadow: 0 0 6px 1px rgba(255, 138, 61, 0.8);
    opacity: 0;
    animation: rise 9s linear infinite;
}

@keyframes rise {
    0% { opacity: 0; transform: translateY(0) translateX(0); }
    8% { opacity: 0.9; }
    90% { opacity: 0.35; }
    100% { opacity: 0; transform: translateY(-105vh) translateX(20px); }
}

/* ---------- layout shell ---------- */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.75rem;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(11, 9, 8, 0.55);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--char-line);
}

.navbar__row {
    display: flex;
    align-items: center;
    height: 74px;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--parchment);
}

.navbar__brand .sigil svg {
    width: 26px;
    height: 26px;
}

.navbar__spacer {
    flex: 1;
}

.navbar__cta {
    display: none;
}

@media (min-width: 640px) {
    .navbar__cta {
        display: inline-flex;
    }
}

.navbar__menu-btn {
    display: inline-flex;
    background: none;
    border: 0;
    color: var(--parchment);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 640px) {
    .navbar__menu-btn { display: none; }
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    height: 52px;
    padding: 0 1.9rem;
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn--ember {
    background: linear-gradient(160deg, var(--ember), var(--oxblood) 130%);
    color: #fff2e6;
    box-shadow: 0 8px 24px -8px rgba(193, 68, 30, 0.65);
}

.btn--ember:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(255, 138, 61, 0.55);
}

.btn--ghost {
    background: rgba(232, 220, 200, 0.04);
    border-color: var(--char-line);
    color: var(--parchment);
}

.btn--ghost:hover {
    background: rgba(232, 220, 200, 0.09);
    transform: translateY(-2px);
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    padding-top: 74px;
    min-height: 92vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--char-line);
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
}

@media (min-width: 980px) {
    .hero__grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 2rem;
    }
}

.hero__eyebrow {
    margin-bottom: 1.1rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin: 0 0 1.1rem;
    text-wrap: balance;
}

.hero__title em {
    font-style: normal;
    color: var(--ember-glow);
}

.hero__rule {
    width: 96px;
    height: 2px;
    margin: 0 0 1.6rem;
    background: linear-gradient(90deg, var(--ember-glow), transparent);
}

.hero--center .hero__grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.hero--center .hero__rule {
    margin-inline: auto;
}

.hero--center .hero__lede {
    margin-inline: auto;
}

.hero--center .hero__actions {
    justify-content: center;
}

@media (min-width: 980px) {
    .hero--center .hero__grid {
        grid-template-columns: 1fr;
    }
}

.hero__lede {
    max-width: 46ch;
    color: var(--parchment-dim);
    font-size: 1.12rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.2rem;
}

.hero__frame {
    position: relative;
}

.hero__portrait {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 30px 70px -25px rgba(0,0,0,0.8), 0 0 0 1px var(--char-line);
    transform: rotate(1.2deg);
    transition: transform 0.5s ease;
}

.hero__portrait:hover {
    transform: rotate(0deg) scale(1.015);
}

.hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero__portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(11,9,8,0.85));
}

.hero__portrait-corner {
    position: absolute;
    width: 34px;
    height: 34px;
    z-index: 2;
    color: var(--ember-glow);
    opacity: 0.85;
}
.hero__portrait-corner svg { width: 100%; height: 100%; }
.hero__portrait-corner--tl { top: 10px; left: 10px; transform: rotate(0deg); }
.hero__portrait-corner--br { bottom: 10px; right: 10px; transform: rotate(180deg); }

/* ---------- reveal-on-scroll ---------- */

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

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- sections ---------- */

section {
    position: relative;
    z-index: 2;
}

.section {
    padding: 6.5rem 0;
    border-bottom: 1px solid var(--char-line);
}

.section--tight {
    padding: 4.5rem 0;
}

.section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin: 1rem 0 0;
}

/* ---------- lore / about ---------- */

.lore {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.lore p {
    color: var(--parchment-dim);
    font-size: 1.12rem;
    line-height: 1.85;
}

.lore p + p {
    margin-top: 1.2rem;
}

.lore p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 3.6rem;
    line-height: 0.75;
    float: left;
    padding: 0.1rem 0.5rem 0 0;
    color: var(--ember-glow);
}

.lore__cast {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .lore__cast { grid-template-columns: 1fr 1fr; }
}

.cast-card {
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--char-line);
    border-radius: 4px;
    background: rgba(232, 220, 200, 0.02);
}

.cast-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: var(--parchment);
    letter-spacing: 0.03em;
}

.cast-card p {
    margin: 0;
    color: var(--parchment-dim);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ---------- trailer / cinema frame ---------- */
/* Full-bleed, letterbox-style presentation: no ornamental box,
   just a thin ember hairline top & bottom, like a projector gate. */

.cinema {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.cinema__frame {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow:
        0 40px 90px -30px rgba(0, 0, 0, 0.85),
        0 0 120px -20px rgba(193, 68, 30, 0.28);
}

.cinema__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1px solid rgba(232, 220, 200, 0.25);
    background: rgba(11, 9, 8, 0.55);
    backdrop-filter: blur(6px);
    color: var(--parchment);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: transform 0.25s ease, background 0.25s ease, opacity 0.3s ease, box-shadow 0.25s ease;
}

.cinema__play i {
    transform: translateX(3px);
}

.cinema__play::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 138, 61, 0.35);
    animation: ring-pulse 2.6s ease-out infinite;
}

@keyframes ring-pulse {
    0% { transform: scale(0.92); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

.cinema__play:hover {
    background: linear-gradient(160deg, var(--ember), var(--oxblood) 130%);
    box-shadow: 0 8px 26px -6px rgba(255, 138, 61, 0.6);
    transform: translate(-50%, -50%) scale(1.06);
}

.cinema__play.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.85);
}

.cinema__frame::before,
.cinema__frame::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ember-glow), transparent);
    z-index: 3;
    opacity: 0.85;
}
.cinema__frame::before { top: 0; }
.cinema__frame::after { bottom: 0; }

.cinema__frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cinema__caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0 0.25rem;
    font-family: var(--font-label);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--parchment-faint);
}

.cinema__caption span:last-child {
    color: var(--ember-glow);
}

/* ---------- screenshot gallery (capture reel) ---------- */

.gallery {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    /* slight offset rhythm so it doesn't read as a plain grid */
    .gallery__tile:nth-child(2) { transform: translateY(-1.25rem); }
    .gallery__tile:nth-child(3) { transform: translateY(0.5rem); }
}

.gallery__tile {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--char-line);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery__tile:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.8);
}

.gallery__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: saturate(1.05);
}

.gallery__tile:hover img {
    transform: scale(1.06);
}

.gallery__tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(11, 9, 8, 0.55));
    pointer-events: none;
}

.gallery__tile--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--parchment-faint);
    background: repeating-linear-gradient(
        135deg,
        rgba(232, 220, 200, 0.025),
        rgba(232, 220, 200, 0.025) 10px,
        transparent 10px,
        transparent 20px
    );
    font-family: var(--font-label);
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 0.03em;
}

.gallery__tile--empty i {
    font-size: 1.5rem;
    opacity: 0.6;
}

.gallery__tile--empty small {
    color: var(--parchment-faint);
    opacity: 0.7;
    font-size: 0.72rem;
}

/* ---------- specs table ---------- */

.specs {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .specs { grid-template-columns: 1fr 1fr; }
}

.specs__col {
    border: 1px solid var(--char-line);
    border-radius: 4px;
    padding: 1.75rem 1.9rem;
    background: rgba(232, 220, 200, 0.02);
}

.specs__col h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    margin: 0 0 1.1rem;
    color: var(--ember-glow);
}

.specs__col dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-top: 1px solid var(--char-line);
    font-size: 0.92rem;
}

.specs__col dl div:first-child {
    border-top: none;
}

.specs__col dt {
    color: var(--parchment-faint);
    font-family: var(--font-label);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.specs__col dd {
    margin: 0;
    text-align: right;
    color: var(--parchment-dim);
}

/* ---------- keyboard focus ---------- */

a:focus-visible,
button:focus-visible,
video:focus-visible {
    outline: 2px solid var(--ember-glow);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- download ---------- */

.download-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 3.2rem 2rem;
    border: 1px solid var(--char-line);
    border-radius: 6px;
    background:
        radial-gradient(ellipse 400px 200px at 50% 0%, rgba(193,68,30,0.14), transparent 70%),
        rgba(232, 220, 200, 0.02);
}

.download-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin: 1rem 0 0.75rem;
}

.download-card__meta {
    color: var(--parchment-faint);
    font-size: 0.85rem;
    font-family: var(--font-label);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.download-card__legal {
    margin-top: 1.75rem;
    font-size: 0.85rem;
    color: var(--parchment-faint);
}

.download-card__legal a {
    color: var(--ember-glow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- footer ---------- */

.footer {
    padding: 3rem 0;
}

.footer__row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    color: var(--parchment-faint);
    font-size: 0.85rem;
}

@media (min-width: 640px) {
    .footer__row {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer__brand .sigil svg { width: 18px; height: 18px; }

/* ---------- mobile nav sheet ---------- */

.navsheet {
    position: fixed;
    top: 74px;
    right: 1rem;
    background: rgba(17, 12, 9, 0.96);
    border: 1px solid var(--char-line);
    border-radius: 6px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 998;
}

.navsheet.is-open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.navsheet a {
    padding: 0.7rem 1.1rem;
    font-family: var(--font-label);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    color: var(--parchment-dim);
}

.navsheet a:hover {
    background: rgba(232,220,200,0.06);
    color: var(--parchment);
}

::selection {
    background: var(--ember);
    color: #fff2e6;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--void-soft);
}
::-webkit-scrollbar-thumb {
    background: var(--oxblood);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ember);
}
