/* ---- Reset / Base ---- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #2a2a2a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

a { color: #c69500; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1a1a1a;
    border-bottom: 3px solid #ffd700;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1.25rem;
}

.site-logo { flex-shrink: 0; }
.site-logo__img { height: 44px; width: auto; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: #f4f4f4;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    text-decoration: none;
}

.site-nav a.is-active {
    color: #1a1a1a;
    background: #ffd700;
}

.site-nav a.nav-forum {
    background: #ffd700;
    color: #1a1a1a;
}
.site-nav a.nav-forum:hover { background: #ffe54d; color: #1a1a1a; }

.lang-switch {
    color: #f4f4f4;
    border: 2px solid #ffd700;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
}
.lang-switch:hover { background: #ffd700; color: #1a1a1a; text-decoration: none; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span {
    display: block;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
}

/* ---- Hero ---- */

.hero {
    position: relative;
    background: #0c1a2e url('/img/hero-bg.jpg') center / cover no-repeat;
    color: #fff;
    overflow: hidden;
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero__inner { position: relative; }

.hero__logo {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.hero__subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    font-weight: 500;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero__release {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid #ffd700;
    color: #ffd700;
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.1s, background 0.15s, color 0.15s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: #ffd700;
    color: #1a1a1a;
}
.btn--primary:hover { background: #ffe54d; }

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn--ghost:hover { background: #fff; color: #1a1a1a; }

.btn--outline {
    background: transparent;
    color: #c69500;
    border-color: #c69500;
}
.btn--outline:hover { background: #ffd700; color: #1a1a1a; border-color: #ffd700; }

.btn--steam {
    background: #1b2838;
    color: #fff;
}
.btn--steam:hover { background: #2a475e; }

/* ---- Layout w/ News Sidebar ---- */

.layout-with-news {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    padding: 3rem 0;
}

.content-main { min-width: 0; }

/* ---- Sections ---- */

.section { padding: 3rem 0; }
.section--gray { background: #f6f6f4; }
.section--dark { background: #1a1a1a; color: #f0f0f0; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__title { text-align: center; margin-bottom: 2rem; }
.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ffd700;
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.lead { font-size: 1.1rem; max-width: 800px; margin: 0 auto 2rem; }

/* ---- Highlights grid ---- */

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

.highlight-card {
    background: #fff;
    border: 2px solid #f0e7c5;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s, box-shadow 0.15s;
}
.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
}
.highlight-card h3 {
    color: #c69500;
    margin-bottom: 0.5rem;
}
.highlight-card p { margin: 0; color: #555; }

/* ---- About block ---- */

.about-block { display: grid; gap: 1.5rem; }
.about-block h3 { color: #c69500; margin-bottom: 0.4rem; }

/* ---- Trailer embed ---- */

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: #000;
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
}
.video-grid figure { margin: 0; }
.video-grid figcaption {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #555;
    text-align: center;
}

/* ---- News box (sidebar) ---- */

.news-box {
    background: #fff;
    border: 2px solid #f0e7c5;
    border-radius: 14px;
    overflow: hidden;
    position: sticky;
    top: 90px;
    align-self: start;
}

.news-box__heading {
    background: #ffd700;
    color: #1a1a1a;
    margin: 0;
    padding: 0.85rem 1.1rem;
    font-size: 1.1rem;
}

.news-box__scroll {
    max-height: 600px;
    overflow-y: auto;
    padding: 0.5rem 1.1rem;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #f6f6f4;
}
.news-box__scroll::-webkit-scrollbar { width: 8px; }
.news-box__scroll::-webkit-scrollbar-track { background: #f6f6f4; }
.news-box__scroll::-webkit-scrollbar-thumb { background: #ffd700; border-radius: 4px; }

.news-box__empty {
    padding: 1rem 1.1rem;
    color: #777;
    font-style: italic;
    margin: 0;
}

.news-item {
    padding: 0.9rem 0;
    border-bottom: 1px dashed #e6e6e6;
}
.news-item:last-child { border-bottom: none; }

.news-item__date {
    display: block;
    font-size: 0.78rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}
.news-item__title {
    font-size: 1rem;
    margin: 0 0 0.4rem;
    color: #1a1a1a;
}
.news-item__body { font-size: 0.93rem; color: #444; }
.news-item__body p:last-child { margin-bottom: 0; }
.news-item__body ul, .news-item__body ol { padding-left: 1.2rem; margin: 0.3rem 0; }

/* ---- Powerup grid ---- */

.powerups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.powerup-card {
    background: #fff;
    border: 2px solid #f0e7c5;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.powerup-card h4 {
    color: #c69500;
    margin: 0 0 0.3rem;
}
.powerup-card p { margin: 0; font-size: 0.92rem; color: #555; }

/* ---- Mode list ---- */

.mode-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    gap: 0.75rem;
}
.mode-list li {
    background: #fff;
    border-left: 4px solid #ffd700;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ---- Screenshot gallery ---- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.gallery a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s, box-shadow 0.15s;
}
.gallery a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---- Lightbox ---- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffd700;
    color: #1a1a1a;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
}
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffd700;
    color: #1a1a1a;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__prev { left: 7rem; }
.lightbox__next { right: 7rem; }

/* ---- Manual / community ---- */

.manual-section { display: grid; gap: 1rem; margin-bottom: 2rem; }
.manual-section h3 { color: #c69500; margin-bottom: 0.4rem; }
.manual-section ul { padding-left: 1.25rem; }
.manual-section li { margin-bottom: 0.35rem; }

/* ---- Making-of path (winding stations) ---- */
.makingof-path {
    position: relative;
    max-width: 760px;
    height: var(--mh);
    margin: 2.5rem auto;
}
.makingof-path__svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.makingof-station {
    position: absolute;
    left: 0;
    width: 100%;
    top: var(--y);
    height: 0;
    z-index: 1;
}
.makingof-station__num {
    position: absolute;
    left: var(--x);
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: #ffd700;
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.makingof-station__pill,
.makingof-station__img {
    position: absolute;
    left: var(--x);
    top: 0;
    z-index: 2;
}
.makingof-station__pill {
    white-space: nowrap;
    background: #fff;
    border: 2px solid #f0e7c5;
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.makingof-station__img {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.mo-thumb { position: relative; display: inline-flex; }
.mo-thumb__img {
    display: block;
    height: 60px;
    width: auto;
    max-width: 160px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: zoom-in;
}
.makingof-station__img.is-plain .mo-thumb__img {
    border-radius: 0;
    box-shadow: none;
}
/* hover popup: larger preview */
.mo-thumb__pop {
    position: absolute;
    left: 50%;
    bottom: 100%;
    margin-bottom: 0.6rem;
    transform: translateX(-50%) scale(0.92);
    transform-origin: center bottom;
    width: 340px;
    max-width: 70vw;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 60;
}
.makingof-station__img.is-plain .mo-thumb__pop {
    border-radius: 0;
    box-shadow: none;
}
.mo-thumb:hover .mo-thumb__pop {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
.makingof-station:hover { z-index: 60; }
/* pill on the station's side, image on the opposite side */
.makingof-station.is-left  .makingof-station__pill { transform: translate(calc(-100% - 1.6rem), -50%); }
.makingof-station.is-right .makingof-station__pill { transform: translate(1.6rem, -50%); }
.makingof-station.is-left  .makingof-station__img  { transform: translate(3.2rem, -50%); }
.makingof-station.is-right .makingof-station__img  { transform: translate(calc(-100% - 3.2rem), -50%); }
/* connector strokes between the on-line node and pill / image */
.makingof-station__pill::before,
.makingof-station__img::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 1.6rem;
    height: 4px;
    background: #e9c200;
    transform: translateY(-50%);
    z-index: -1;
}
.makingof-station.is-left  .makingof-station__pill::before { left: 100%; }
.makingof-station.is-right .makingof-station__pill::before { right: 100%; }
.makingof-station.is-left  .makingof-station__img::before  { right: 100%; }
.makingof-station.is-right .makingof-station__img::before  { left: 100%; }
.makingof-station__img::before { width: 3.2rem; }

.community-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.community-card {
    background: #fff;
    border: 2px solid #f0e7c5;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}
.community-card h3 { color: #c69500; }
.community-card p { color: #555; }

/* ---- Legal pages ---- */

.legal { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { margin-top: 2rem; font-size: 1.4rem; color: #c69500; }
.legal h3 { font-size: 1.1rem; margin-top: 1.25rem; }
.legal address { font-style: normal; line-height: 1.7; }

/* ---- Footer ---- */

.site-footer {
    background: #1a1a1a;
    color: #c0c0c0;
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 3px solid #ffd700;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
}

.site-footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.site-footer__logo { width: 48px; height: auto; }
.site-footer__copy { margin: 0; font-size: 0.9rem; }

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.2rem;
    font-size: 0.95rem;
}
.site-footer__nav a { color: #ffd700; }

.site-footer__lang {
    text-align: right;
    font-size: 0.9rem;
}
.site-footer__lang a { color: #c0c0c0; }
.site-footer__lang a.is-active { color: #ffd700; font-weight: 700; }

/* ---- Mobile ---- */

@media (max-width: 900px) {
    .layout-with-news {
        grid-template-columns: 1fr;
    }
    .news-box { position: static; }
}

@media (max-width: 760px) {
    .site-header__inner { flex-wrap: wrap; }
    .nav-toggle {
        display: flex;
        order: 2;
    }
    .site-nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav.is-open { max-height: 600px; padding-top: 0.5rem; }
    .site-nav ul { flex-direction: column; width: 100%; }
    .site-nav a { padding: 0.7rem 0.85rem; }
    .lang-switch { margin: 0.5rem 0 0.25rem; align-self: flex-start; }

    .hero { padding: 3rem 0 2.5rem; }
    .highlights { grid-template-columns: repeat(2, 1fr); }
    .powerups { grid-template-columns: repeat(2, 1fr); }
    .makingof-path { height: auto; }
    .makingof-path__svg { display: none; }
    .makingof-station {
        position: static;
        height: auto;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        margin: 0.6rem 0;
    }
    .makingof-station__num,
    .makingof-station__pill,
    .makingof-station__img { position: static; transform: none; }
    .makingof-station__pill { white-space: normal; }
    .makingof-station__img { flex-basis: 100%; }
    .makingof-station__pill::before,
    .makingof-station__img::before { display: none; }
    .mo-thumb__pop { display: none; }
    .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
    .site-footer__lang { text-align: center; }
    .site-footer__brand { justify-content: center; }
}
