/**
 * Root CSS variables for the website.
 */


:root {
    --color-white: #fff;
    --color-black: #000;
    --color-amber: rgba(255, 191, 0, 1);
    --color-amber-soft: rgba(215, 165, 68, 0.15);

    --font-sans: "coolvetica",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    --font-serif: "playfair",
        Georgia,
        serif;
    --font-mono: ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    --font-heading: "yukari",
        serif;
}

@font-face {
    font-family: "coolvetica";
    src: url("../font/coolvetica/Coolvetica Rg.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "yukari";
    src: url("../font/yukari.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "playfair";
    src: url("../font/playfair-display/PlayfairDisplay-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "playfair";
    src: url("../font/playfair-display/PlayfairDisplay-Italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4.5rem;
}

html,
body {
    margin: 0;
}

body {
    background-color: var(--color-black);
    background-image: url("../asset/texture-noise.png");
    background-repeat: repeat;
    background-blend-mode: overlay;
    font-family: var(--font-sans);
    color: var(--color-white);
    overflow-x: hidden;
}

.playfair {
    font-family: var(--font-serif);
    font-style: italic;
}

/* Scroll reveal */
.reveal,
.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
    background-color: var(--color-amber);
    border-color: var(--color-amber);
    color: var(--color-black);
}

.btn--primary:hover {
    background-color: transparent;
    color: var(--color-amber);
}

.btn--ghost {
    border-color: rgba(249, 249, 249, 0.35);
    color: var(--color-white);
}

.btn--ghost:hover {
    border-color: var(--color-white);
    background-color: rgba(249, 249, 249, 0.06);
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    /* background-color: rgba(13, 17, 23, 0.55); */
    /* border-bottom: 1px solid rgba(249, 249, 249, 0.08); */
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.nav.is-scrolled {
    /* background-color: rgba(13, 17, 23, 0.92); */
}

.nav__link {
    position: relative;
    color: rgba(249, 249, 249, 0.65);
    text-decoration: none;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--color-white);
}

.amber {
    color: var(--color-amber);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    /* background-color: var(--color-amber); */
}

.nav__toggle {
    /* border: 1px dashed rgba(249, 249, 249, 0.3); */
    color: var(--color-white);
    background: none;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.nav__mobile a {
    color: rgba(249, 249, 249, 0.75);
    text-decoration: none;
}

.nav__mobile a:hover {
    color: var(--color-white);
}

/* Hero */
.hero {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero__overlay {
    /* background: linear-gradient(to bottom,
            rgba(13, 17, 23, 0.5) 0%,
            rgba(13, 17, 23, 0.75) 55%,
            var(--color-black) 100%); */
}

.section-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(13, 17, 23, 0);
}

.scroll-cue {
    text-decoration: none;
    animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Fact ticker */
.fact-ticker {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fact-ticker.is-swapping {
    opacity: 0;
}

/* Warfare section scroll-driven theater tabs: (tab count + 1) full screens gives each tab a full 100vh dwell */
.warfare-scroll {
    position: relative;
    height: 600vh;
}

.warfare-sticky {
    position: sticky;
    top: 0;
}

/* Theaters of war tabs */
.tab-button {
    padding: 0.65rem 1.4rem;
    /* border: 1px dashed rgba(249, 249, 249, 0.3); */
    background: none;
    /* color: rgba(249, 249, 249, 0.6); */
    font-family: var(--font-sans);
    font-size: 1.9rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tab-button:hover,
.tab-button.is-active {
    border-color: var(--color-amber);
    color: var(--color-amber);
    /* text-decoration: underline; */
    /* background-color: var(--color-amber-soft); */
}

.tab-panel {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.tab-panel.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Full-section background layers swapped by the warfare theater tabs */
.theater-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

.theater-bg.is-base {
    opacity: 1;
}

.theater-embers {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tab-panel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(13, 17, 23, 0.95) 10%,
            rgba(13, 17, 23, 0.55) 50%,
            rgba(13, 17, 23, 0.35));
}

.theater-copy {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

/* Deep systems grid */
.systems-card {
    padding: 2rem;
    transition: background-color 0.2s ease;
    background-color: rgba(0, 0, 0, 0.8);
}

.systems-card:hover {
    background-color: rgba(0, 0, 0, 1);
}

.systems-card__index {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-amber);
    letter-spacing: 0.05em;
}

/* Nuclear banner */
.nuclear-banner {
    background-size: cover;
    background-position: center;
}

/* Game card (studio landing page) */
.game-card {
    position: relative;
    display: block;
    width: 100%;
    max-width: 640px;
    overflow: hidden;
    /* border: 1px dashed rgba(249, 249, 249, 0.3); */
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.game-card:hover {
    border-color: var(--color-amber);
}

.game-card__content {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 2.5rem 2rem;
}

.darkbg {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Email signup form */
.landing__form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.landing__input {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    /* border: 1px solid rgba(249, 249, 249, 0.3); */
    background-color: transparent;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    min-width: 260px;
}

.landing__input::placeholder {
    color: rgba(249, 249, 249, 0.5);
}

.landing__input:focus {
    outline: none;
    border-color: var(--color-amber);
}

.landing__button {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    /* border: 1px solid var(--color-amber); */
    background-color: var(--color-amber);
    color: var(--color-black);
    font-family: var(--font-sans);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.landing__button:hover {
    background-color: transparent;
    color: var(--color-amber);
}

.container-bottom-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: -4px;
}

.container-bottom {
    height: 1px;
    opacity: 1;
    background: radial-gradient(circle, rgba(255, 191, 0, 1) 0%, rgba(255, 224, 133, 0) 100%);
}

.container-bottom1 {
    width: 75%;
    margin: 0 auto;
    height: 1px;
    opacity: 1;
    background: radial-gradient(circle, rgba(255, 191, 0, 1) 0%, rgba(255, 224, 133, 0) 100%);
}

.container-bottom2 {
    width: 50%;
    margin: 0 auto;
    height: 1px;
    opacity: 1;
    background: radial-gradient(circle, rgba(255, 191, 0, 1) 0%, rgba(255, 224, 133, 0) 100%);
}

.container-bottom3 {
    width: 25%;
    margin: 0 auto;
    height: 1px;
    opacity: 1;
    background: radial-gradient(circle, rgba(255, 191, 0, 1) 0%, rgba(255, 224, 133, 0) 100%);
}