:root {
    --bg-0: #090b10;
    --bg-1: #0d1017;
    --bg-2: #121723;
    --panel: rgba(18, 22, 30, 0.72);
    --panel-strong: rgba(14, 18, 26, 0.9);
    --panel-soft: rgba(255, 255, 255, 0.04);

    --text-main: #e8edf7;
    --text-soft: #aab4c8;
    --text-dim: #7e899e;

    --line: rgba(210, 220, 255, 0.14);
    --line-strong: rgba(232, 237, 247, 0.2);

    --accent: #d9e1f2;
    --accent-2: #9aa8c7;
    --accent-3: #6d7894;

    --glow: rgba(230, 238, 255, 0.18);
    --glow-strong: rgba(255, 255, 255, 0.22);

    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.42);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.28);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 18px;
    position: relative;
    overflow-x: hidden;
    background:
        linear-gradient(to right,
            rgba(255, 255, 255, 0.035) 0,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px,
            transparent calc(100% - 1px),
            rgba(255, 255, 255, 0.035) calc(100% - 1px),
            rgba(255, 255, 255, 0.035) 100%
        ),
        radial-gradient(circle at 50% -10%, rgba(255,255,255,0.08), transparent 26%),
        radial-gradient(circle at 12% 20%, rgba(160, 176, 220, 0.08), transparent 24%),
        radial-gradient(circle at 88% 24%, rgba(180, 190, 220, 0.07), transparent 22%),
        linear-gradient(180deg, #090b10 0%, #0d1118 42%, #101520 100%);
    background-size: 100% 100%, 160% 160%, 160% 160%, 160% 160%, 100% 100%;
    animation: siteBackgroundMove 22s ease-in-out infinite;
}

body::before {
    content:
        "YoRHa  OBSERVER UNIT  M1  SIGNAL  DEPLOYMENT  SYNCHRONIZATION  "
        "YoRHa  OBSERVER UNIT  M1  SIGNAL  DEPLOYMENT  SYNCHRONIZATION  "
        "YoRHa  OBSERVER UNIT  M1  SIGNAL  DEPLOYMENT  SYNCHRONIZATION  ";
    position: fixed;
    inset: -12%;
    font-family: 'Orbitron', sans-serif;
    font-size: 72px;
    line-height: 1.65;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.028);
    white-space: normal;
    transform: rotate(-16deg) translateY(var(--parallax-y-soft, 0px));
    pointer-events: none;
    z-index: 0;
    animation: watermarkFloat 30s linear infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        url("../images/yorha-pattern.svg") repeat,
        linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.035), transparent 40%);
    background-size: 680px 680px, 42px 42px, 42px 42px, 100% 100%;
    background-position: 0 0, 0 0, 0 0, center center;
    opacity: 0.32;
    transform: translateY(calc(var(--parallax-y-strong, 0px) * -1));
    animation: academicPatternMove 55s linear infinite;
}

html::before,
html::after {
    content: "";
    position: fixed;
    top: 0;
    width: 18vw;
    min-width: 120px;
    max-width: 260px;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

html::before {
    left: 0;
    background:
        radial-gradient(circle at 0% 18%, rgba(255,255,255,0.13), transparent 48%),
        radial-gradient(circle at 10% 55%, rgba(160,176,220,0.12), transparent 44%),
        radial-gradient(circle at 0% 85%, rgba(255,255,255,0.08), transparent 42%),
        linear-gradient(90deg, rgba(255,255,255,0.035), transparent 68%);
    filter: blur(10px);
    animation: sideAuraLeft 16s ease-in-out infinite;
}

html::after {
    right: 0;
    background:
        radial-gradient(circle at 100% 18%, rgba(255,255,255,0.13), transparent 48%),
        radial-gradient(circle at 90% 52%, rgba(160,176,220,0.12), transparent 44%),
        radial-gradient(circle at 100% 82%, rgba(255,255,255,0.08), transparent 42%),
        linear-gradient(270deg, rgba(255,255,255,0.035), transparent 68%);
    filter: blur(10px);
    animation: sideAuraRight 18s ease-in-out infinite;
}

section,
footer,
.container {
    position: relative;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(8, 10, 16, 0.72);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.header::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    position: relative;
    z-index: 1100;
}

.logo img {
    height: 62px;
    width: auto;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.logo-trigger {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.logo-trigger:hover {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.logo-trigger img {
    display: block;
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.035);
    transition: all 0.22s ease;
    font-family: 'Rajdhani', sans-serif;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.nav-link:hover {
    color: #0b0e14;
    background: rgba(232, 237, 247, 0.94);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.08);
}

/* Hero */
.hero {
    padding: 80px 0 72px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.hero-banner {
    position: relative;
}

.hero-banner img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    margin-bottom: 34px;
    box-shadow: var(--shadow-lg);
    background: rgba(255,255,255,0.02);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #f1f5ff;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(255,255,255,0.08);
}

.hero-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 34px;
    color: var(--text-soft);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn,
.social-link,
.game-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition: all 0.22s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary,
.social-link,
.game-btn {
    background: linear-gradient(180deg, rgba(232,237,247,0.96) 0%, rgba(192,202,224,0.92) 100%);
    color: #0c1018;
    box-shadow:
        0 12px 28px rgba(255,255,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

.btn-primary:hover,
.social-link:hover,
.game-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 36px rgba(255,255,255,0.12),
        0 0 24px rgba(255,255,255,0.08);
}

.btn-secondary,
.game-btn-secondary {
    background: rgba(255,255,255,0.045);
    color: var(--text-main);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.btn-secondary:hover,
.game-btn-secondary:hover {
    background: rgba(255,255,255,0.09);
    transform: translateY(-2px);
}

.btn-primary::before,
.social-link::before,
.game-btn::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.btn-primary:hover::before,
.social-link:hover::before,
.game-btn:hover::before {
    opacity: 1;
}

/* Sections */
section {
    padding: 92px 0;
    border-bottom: 1px solid var(--line);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 54px;
    color: #f0f4fd;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Panels */
.story,
.gallery,
.join {
    background-color: transparent;
}

.story-content {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.story-content p,
.join-content p,
.gallery-item,
.roadmap-card,
.game-overlay-card,
.game-stat {
    background: linear-gradient(180deg, rgba(18,22,30,0.78) 0%, rgba(12,16,24,0.88) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.story-content p {
    font-size: 1.16rem;
    margin-bottom: 24px;
    padding: 26px 28px;
    color: var(--text-soft);
}

.story-content p:nth-child(even) {
    transform: none;
}

.join-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.join-content p {
    font-size: 1.14rem;
    margin-bottom: 34px;
    padding: 26px 28px;
    color: var(--text-soft);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
    max-width: 1120px;
    margin: 0 auto;
}

.gallery-item {
    text-align: center;
    padding: 24px;
    transform: none;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3) {
    transform: none;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.2);
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(255,255,255,0.05);
}

.gallery-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.02);
}

.gallery-caption {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #dce4f6;
    letter-spacing: 0.04em;
    font-style: normal;
    line-height: 1.5;
}

/* Tokenomics */
.tokenomics {
    padding: 100px 0;
    color: inherit;
    border-top: 0;
}

.tokenomics .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.tokenomics-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

.tokenomics-left {
    display: flex;
    align-items: center;
    gap: 34px;
}

.tokenomics-mascot img {
    width: 520px;
    max-width: 100%;
    display: block;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35));
}

.tokenomics-text {
    max-width: 420px;
}

.tokenomics-kicker,
.tokenomics-big,
.tokenomics-list li,
.tokenomics-percent,
.tokenomics-label {
    font-family: 'Rajdhani', sans-serif;
}

.tokenomics-kicker {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.tokenomics-big {
    margin: 0 0 22px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
    text-transform: uppercase;
    color: #f0f4fd;
    letter-spacing: 0.08em;
}

.tokenomics-list {
    margin: 0;
    padding-left: 20px;
}

.tokenomics-list li {
    margin-bottom: 12px;
    font-size: 1.35rem;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--text-soft);
}

.tokenomics-right {
    display: flex;
    justify-content: center;
}

.tokenomics-chart-wrap {
    position: relative;
    width: 100%;
    max-width: 460px;
    min-height: 360px;
}

.tokenomics-chart {
    width: 360px;
    height: 360px;
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    background:
        radial-gradient(circle at center, transparent 0 84px, rgba(230,236,247,0.92) 85px 100%);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.12),
        0 0 42px rgba(255,255,255,0.06);
}

.tokenomics-chart::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
}

.tokenomics-chart-inner {
    display: none;
}

.tokenomics-chart-label {
    position: absolute;
    top: 72px;
    right: -90px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tokenomics-chart-label::before {
    content: "";
    position: absolute;
    left: -58px;
    top: 30px;
    width: 75px;
    height: 1px;
    background: rgba(255,255,255,0.25);
}

.tokenomics-chart-label::after {
    content: "";
    position: absolute;
    left: -66px;
    top: 24px;
    width: 10px;
    height: 10px;
    background: #e8edf7;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}

.tokenomics-percent {
    font-size: 34px;
    line-height: 1;
    text-transform: uppercase;
    color: #f4f7ff;
    letter-spacing: 0.04em;
}

.tokenomics-label {
    font-size: 18px;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

/* Roadmap */
.roadmap {
    padding: 90px 0 105px;
    border-top: 0;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.roadmap-premium::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 560px;
    height: 560px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255,255,255,0.09) 0%, rgba(160,170,190,0.06) 32%, rgba(255,255,255,0) 72%);
    pointer-events: none;
    z-index: 0;
}

.roadmap .container {
    position: relative;
    z-index: 1;
}

.roadmap .section-title {
    text-align: center;
    margin-bottom: 18px;
}

.roadmap-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.roadmap-intro p {
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-soft);
}

.roadmap-timeline {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 0;
}

.roadmap-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.14) 0%,
        rgba(215,223,241,0.88) 20%,
        rgba(168,178,201,0.95) 55%,
        rgba(255,255,255,0.22) 100%
    );
    box-shadow: 0 0 24px rgba(255,255,255,0.06);
}

.roadmap-item {
    position: relative;
    width: 50%;
    margin-bottom: 46px;
}

.roadmap-item:last-child {
    margin-bottom: 0;
}

.roadmap-left {
    left: 0;
    padding-right: 62px;
}

.roadmap-right {
    left: 50%;
    padding-left: 62px;
}

.roadmap-dot {
    position: absolute;
    top: 28px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.roadmap-left .roadmap-dot {
    right: -11px;
}

.roadmap-right .roadmap-dot {
    left: -11px;
}

.roadmap-done {
    background: #e2e8f6;
    border: 3px solid #b9c4db;
    box-shadow: 0 0 0 6px rgba(255,255,255,0.06), 0 0 18px rgba(255,255,255,0.12);
}

.roadmap-live {
    background: #aab5cc;
    border: 3px solid #909ab2;
    box-shadow: 0 0 0 6px rgba(170,181,204,0.1), 0 0 24px rgba(255,255,255,0.08);
}

.roadmap-next {
    background: #11161f;
    border: 3px solid rgba(255,255,255,0.14);
    box-shadow: 0 0 0 6px rgba(255,255,255,0.03);
}

.roadmap-card {
    position: relative;
    border-radius: 24px;
    padding: 24px 24px 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.roadmap-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(170,181,204,0.08), rgba(255,255,255,0.04));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.roadmap-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.16);
}

.roadmap-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.roadmap-phase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #dce4f6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.roadmap-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.roadmap-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-done {
    background: rgba(255,255,255,0.06);
    color: #dce4f6;
}

.status-done::before {
    background: #e2e8f6;
}

.status-live {
    background: rgba(170,181,204,0.14);
    color: #d3dbec;
}

.status-live::before {
    background: #aab5cc;
    box-shadow: 0 0 0 4px rgba(170,181,204,0.08);
}

.status-next {
    background: rgba(255,255,255,0.04);
    color: #9ca7bc;
}

.status-next::before {
    background: #7d879a;
}

.roadmap-card h3 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.05;
    font-family: 'Rajdhani', sans-serif;
    color: #f0f4fd;
    letter-spacing: 0.04em;
}

.roadmap-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-soft);
}

/* Game */
.game-section {
    padding: 90px 0 105px;
    border-top: 0;
    color: inherit;
}

.game-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px;
}

.game-intro p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-soft);
}

.game-shell {
    max-width: 980px;
    margin: 0 auto;
}

.game-ui {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.game-stat {
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
}

.game-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

#M1Game {
    width: 450px;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    background: linear-gradient(180deg, #10141d 0%, #121825 55%, #0d1119 100%);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}

.game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: auto;
}

.game-overlay.hidden {
    display: none;
}

.game-overlay-card {
    width: min(340px, 90%);
    text-align: center;
    padding: 24px 20px;
}

.game-overlay-card h3 {
    margin: 0 0 10px;
    font-size: 28px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f0f4fd;
}

.game-overlay-card p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-soft);
}

.game-controls-note {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    opacity: 1;
}

.game-wrapper:fullscreen {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(5, 7, 12, 0.98);
    width: 100%;
    height: 100%;
}

.game-wrapper:fullscreen #M1Game {
    width: 520px;
    max-width: 90vw;
    height: auto;
}

/* Footer */
.footer {
    background-color: transparent;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--line);
}

.footer p {
    font-size: 0.95rem;
    color: var(--text-dim);
    font-style: normal;
    letter-spacing: 0.04em;
}

/* Animations */
@keyframes siteBackgroundMove {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    50% {
        background-position: 0% 0%, 100% 100%, 100% 100%, 100% 100%, 0% 0%;
    }
    100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

@keyframes watermarkFloat {
    0% {
        transform: rotate(-16deg) translateY(0px);
    }
    50% {
        transform: rotate(-16deg) translateY(-24px);
    }
    100% {
        transform: rotate(-16deg) translateY(0px);
    }
}

@keyframes academicPatternMove {
    0% {
        background-position: 0 0, 0 0, 0 0, center center;
    }
    100% {
        background-position: 180px 140px, 0 0, 0 0, center center;
    }
}

@keyframes sideAuraLeft {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.9;
    }
    50% {
        transform: translateX(6px) translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.9;
    }
}

@keyframes sideAuraRight {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-6px) translateY(12px);
        opacity: 1;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.9;
    }
}

@keyframes floatSoft {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    will-change: opacity, transform;
}

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

.hero-banner img,
.tokenomics-mascot img,
.gallery-item img {
    animation: floatSoft 5.5s ease-in-out infinite;
}

.gallery-item:nth-child(2) img {
    animation-delay: 0.6s;
}

.gallery-item:nth-child(3) img {
    animation-delay: 1.1s;
}

.gallery-item,
.story-content p,
.join-content p,
.roadmap-card {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
}

.gallery-item:hover,
.story-content p:hover,
.join-content p:hover,
.roadmap-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(255,255,255,0.05);
}

/* Side notes */
.side-notes-left,
.side-notes-right {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 150px;
    pointer-events: none;
    z-index: 0;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    line-height: 2.1;
    white-space: pre-line;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.side-notes-left {
    left: 18px;
    transform: rotate(-8deg);
}

.side-notes-right {
    right: 18px;
    transform: rotate(8deg);
    text-align: right;
}

/* Modal */
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.image-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 10, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.image-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: auto;
    max-width: min(92vw, 820px);
    max-height: 88vh;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}

.image-modal.is-open .image-modal-dialog {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.image-modal-img {
    display: block;
    width: auto;
    max-width: min(92vw, 820px);
    max-height: 88vh;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.14);
    background: #0a0d13;
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.46),
        0 0 0 1px rgba(255,255,255,0.04);
}

.image-modal-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: rgba(14,18,26,0.95);
    color: #f0f4fd;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.image-modal-close:hover {
    transform: scale(1.08);
    background: #f0f4fd;
    color: #0b1018;
}

body.modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 980px) {
    .tokenomics-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .tokenomics-left {
        flex-direction: column;
        text-align: center;
    }

    .tokenomics-text {
        max-width: 100%;
    }

    .tokenomics-list {
        display: inline-block;
        text-align: left;
    }

    .tokenomics-chart-wrap {
        min-height: 420px;
    }

    .tokenomics-chart-label {
        position: static;
        margin-top: 25px;
        align-items: center;
        text-align: center;
    }

    .tokenomics-chart-label::before,
    .tokenomics-chart-label::after {
        display: none;
    }
}

@media (max-width: 900px) {
    .roadmap {
        padding: 68px 0 84px;
    }

    .roadmap-premium::before {
        width: 360px;
        height: 360px;
        top: 80px;
    }

    .roadmap-line {
        left: 18px;
        transform: none;
    }

    .roadmap-item {
        width: 100%;
        left: 0;
        padding-left: 54px;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .roadmap-left,
    .roadmap-right {
        left: 0;
        padding-left: 54px;
        padding-right: 0;
    }

    .roadmap-dot,
    .roadmap-left .roadmap-dot,
    .roadmap-right .roadmap-dot {
        left: 7px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 18px;
    }

    .nav {
        gap: 10px;
        justify-content: center;
    }

    .nav-link {
        font-size: 12px;
        padding: 10px 13px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .story-content p {
        font-size: 1.05rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-buttons,
    .join-links {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 64px 0;
    }

    .side-notes-left,
    .side-notes-right {
        display: none;
    }
}

@media (max-width: 600px) {
    .tokenomics {
        padding: 40px 0;
    }

    .tokenomics-big {
        font-size: 34px;
    }

    .tokenomics-list li {
        font-size: 20px;
    }

    .tokenomics-chart {
        width: 280px;
        height: 280px;
        background:
            radial-gradient(circle at center, transparent 0 62px, rgba(230,236,247,0.92) 63px 100%);
    }

    .tokenomics-percent {
        font-size: 28px;
    }

    .roadmap {
        padding: 58px 0 72px;
    }

    .roadmap-intro {
        margin-bottom: 36px;
    }

    .roadmap-intro p {
        font-size: 16px;
    }

    .roadmap-card {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .roadmap-card::before {
        border-radius: 18px;
    }

    .roadmap-card-top {
        align-items: flex-start;
    }

    .roadmap-card h3 {
        font-size: 25px;
    }

    .roadmap-card p {
        font-size: 15px;
        line-height: 1.65;
    }

    .game-section {
        padding: 58px 0 72px;
    }

    .game-intro p {
        font-size: 16px;
    }

    .game-overlay-card h3 {
        font-size: 24px;
    }

    .game-overlay-card p {
        font-size: 15px;
    }

    .image-modal-dialog {
        max-width: 92vw;
    }

    .image-modal-img {
        max-width: 92vw;
        max-height: 78vh;
        border-radius: 18px;
    }

    .image-modal-close {
        top: -14px;
        right: -6px;
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .btn,
    .social-link,
    .game-btn {
        padding: 12px 22px;
        font-size: 0.92rem;
    }
}