:root {
    --bg: #07111f;
    --bg-2: #0c1a31;
    --panel: rgba(12, 22, 42, 0.76);
    --panel-strong: rgba(9, 17, 32, 0.92);
    --line: rgba(139, 219, 255, 0.2);
    --text: #eef4ff;
    --muted: #9fb0cf;
    --blue: #7fd6ff;
    --blue-2: #56a9ff;
    --orange: #ff9360;
    --violet: #8b76ff;
    --green: #7ff0c7;
    --shadow: 0 22px 80px rgba(2, 8, 20, 0.42);
    --radius: 28px;
    --radius-lg: 40px;
    --max-width: 1260px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 14%, rgba(127, 214, 255, 0.12), transparent 26%),
        radial-gradient(circle at 88% 18%, rgba(255, 147, 96, 0.12), transparent 24%),
        radial-gradient(circle at 72% 78%, rgba(139, 118, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #050c18 0%, #091326 42%, #0b1222 100%);
    font-family: "Avenir Next", "Trebuchet MS", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    pointer-events: none;
    z-index: -5;
}

.bg-grid,
.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -4;
}

.bg-grid {
    background:
        linear-gradient(rgba(127, 214, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 214, 255, 0.04) 1px, transparent 1px);
    background-size: 96px 96px;
}

.bg-glow {
    filter: blur(48px);
}

.glow-a {
    background: radial-gradient(circle at 22% 24%, rgba(86, 169, 255, 0.18), transparent 26%);
}

.glow-b {
    background: radial-gradient(circle at 80% 18%, rgba(255, 147, 96, 0.18), transparent 24%);
}

.glow-c {
    background: radial-gradient(circle at 66% 70%, rgba(139, 118, 255, 0.16), transparent 26%);
}

body:not(.entered) {
    overflow: hidden;
}

.entry-screen {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 50%, rgba(86, 169, 255, 0.14), transparent 20%),
        linear-gradient(180deg, rgba(5, 12, 24, 0.96), rgba(4, 10, 20, 0.98));
    transition: opacity 420ms ease, visibility 420ms ease;
}

body.entered .entry-screen {
    opacity: 0;
    visibility: hidden;
}

.entry-shell {
    width: min(100%, 860px);
    padding: 48px 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(13, 24, 45, 0.82), rgba(8, 15, 28, 0.92));
    box-shadow: var(--shadow);
    text-align: center;
}

.entry-kicker,
.entry-line,
.eyebrow,
.panel-label,
.pass-label {
    margin: 0;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.entry-line {
    margin-top: 12px;
}

.entry-shell h1,
.section-copy h2,
.panel-card h3 {
    margin: 0;
    font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
    line-height: 0.92;
}

.entry-shell h1 {
    margin-top: 20px;
    font-size: clamp(4.8rem, 13vw, 9.2rem);
    letter-spacing: 0.08em;
    text-shadow: 0 0 24px rgba(127, 214, 255, 0.16);
}

.entry-copy {
    width: min(100%, 620px);
    margin: 24px auto 0;
    color: rgba(238, 244, 255, 0.82);
    line-height: 1.85;
}

.launch-button,
.primary-button,
.nav-enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    color: #06101c;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    box-shadow: 0 14px 36px rgba(86, 169, 255, 0.24);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.launch-button {
    margin-top: 30px;
    min-width: 220px;
    font-size: 1.1rem;
    font-weight: 700;
}

.launch-button:hover,
.primary-button:hover,
.nav-enter:hover,
.map-node:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.entry-orbits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.entry-orbits span,
.panel-badge,
.count-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(238, 244, 255, 0.82);
    font-size: 0.85rem;
}

.topbar,
.section {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 12;
    margin-top: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(8, 15, 28, 0.76);
    backdrop-filter: blur(16px);
    opacity: 0.4;
    transition: opacity 240ms ease;
}

body.entered .topbar {
    opacity: 1;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-mark {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.brand-meta {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(238, 244, 255, 0.76);
}

.topnav a {
    position: relative;
}

.topnav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--orange));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
    transform: scaleX(1);
}

.nav-enter {
    padding: 12px 18px;
    font-size: 0.94rem;
}

.main-shell {
    padding-bottom: 56px;
    opacity: 0.22;
    transform: scale(0.985);
    transition: opacity 320ms ease, transform 320ms ease;
}

body.entered .main-shell {
    opacity: 1;
    transform: scale(1);
}

.section {
    padding: 86px 0 0;
}

.section-copy {
    max-width: 760px;
}

.section-copy h2 {
    margin-top: 14px;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.section-copy p,
.panel-copy,
.future-item span,
.villager-pass span,
.helper-line,
.wish-note,
.wish-id {
    color: var(--muted);
    line-height: 1.75;
}

.section-copy p:last-child {
    margin-top: 18px;
}

.map-layout,
.flow-grid {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.map-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 360px);
    align-items: start;
}

.map-board,
.panel-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(11, 21, 40, 0.82), rgba(7, 14, 26, 0.92));
    box-shadow: var(--shadow);
}

.map-board {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.map-board::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(127, 214, 255, 0.2);
    border-radius: 28px;
}

.board-ring {
    position: absolute;
    border: 1px solid rgba(127, 214, 255, 0.18);
    border-radius: 50%;
}

.ring-a {
    inset: 16% 24% auto 24%;
    height: 340px;
}

.ring-b {
    inset: auto 14% 12% 14%;
    height: 260px;
}

.board-line {
    position: absolute;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    transform-origin: left center;
}

.line-a {
    left: 28%;
    top: 30%;
    width: 22%;
    transform: rotate(18deg);
}

.line-b {
    left: 45%;
    top: 26%;
    width: 22%;
    transform: rotate(118deg);
}

.line-c {
    left: 26%;
    top: 56%;
    width: 32%;
    transform: rotate(-10deg);
}

.line-d {
    left: 58%;
    top: 54%;
    width: 18%;
    transform: rotate(-40deg);
}

.line-e {
    left: 50%;
    top: 44%;
    width: 26%;
    transform: rotate(34deg);
}

.map-node {
    position: absolute;
    width: 176px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 18, 34, 0.88);
    color: var(--text);
    text-align: left;
    box-shadow: 0 12px 28px rgba(2, 8, 20, 0.34);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.map-node strong {
    display: block;
    font-size: 1.02rem;
}

.map-node span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.map-node.is-active {
    border-color: rgba(127, 214, 255, 0.55);
    background: rgba(16, 32, 58, 0.94);
}

.node-hub {
    left: 16%;
    top: 18%;
}

.node-wishes {
    left: 58%;
    top: 14%;
}

.node-register {
    left: 58%;
    top: 42%;
}

.node-atelier {
    left: 14%;
    top: 56%;
}

.node-archive {
    left: 38%;
    top: 66%;
}

.node-future {
    left: 74%;
    top: 68%;
}

.panel-card {
    border-radius: var(--radius);
    padding: 24px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-badge {
    color: var(--text);
}

.panel-badge.soft {
    color: rgba(238, 244, 255, 0.76);
}

.map-panel h3,
.feed-card h3,
.register-card h3,
.wish-card-panel h3,
.future-card h3 {
    margin-top: 14px;
    font-size: 1.8rem;
    line-height: 1.05;
}

.panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.panel-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(127, 214, 255, 0.08);
    border: 1px solid rgba(127, 214, 255, 0.16);
    color: rgba(238, 244, 255, 0.86);
    font-size: 0.88rem;
}

.flow-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    align-items: start;
}

.wish-feed {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.wish-item {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.wish-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wish-author {
    font-size: 1rem;
}

.wish-item p {
    margin: 12px 0 0;
    line-height: 1.75;
}

.wish-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.wish-id,
.wish-note {
    font-size: 0.84rem;
}

.action-stack {
    display: grid;
    gap: 22px;
}

.action-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.action-form label {
    font-size: 0.94rem;
}

.action-form input,
.action-form select,
.action-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
}

.action-form textarea {
    resize: vertical;
}

.action-form input:focus-visible,
.action-form select:focus-visible,
.action-form textarea:focus-visible {
    border-color: rgba(127, 214, 255, 0.46);
    box-shadow: 0 0 0 3px rgba(127, 214, 255, 0.12);
}

.action-form input:disabled,
.action-form textarea:disabled {
    opacity: 0.56;
    cursor: not-allowed;
}

.primary-button {
    margin-top: 6px;
    width: 100%;
    font-weight: 700;
}

.villager-pass {
    margin-top: 18px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.villager-pass strong {
    display: block;
    margin-top: 10px;
    font-size: 1.1rem;
}

.villager-pass span {
    display: block;
    margin-top: 10px;
}

.helper-line {
    margin: 14px 0 0;
}

.future-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.future-item {
    padding: 14px 14px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.future-item strong {
    display: block;
    margin-bottom: 8px;
}

@media (max-width: 1080px) {
    .map-layout,
    .flow-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .topbar {
        position: static;
        flex-wrap: wrap;
        border-radius: 28px;
    }

    .topnav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        font-size: 0.92rem;
    }

    .section {
        padding-top: 70px;
    }

    .entry-shell {
        padding: 38px 22px;
    }

    .map-board {
        min-height: 760px;
    }

    .map-node {
        width: 148px;
    }

    .node-hub {
        left: 8%;
        top: 12%;
    }

    .node-wishes {
        left: 54%;
        top: 14%;
    }

    .node-register {
        left: 52%;
        top: 38%;
    }

    .node-atelier {
        left: 8%;
        top: 48%;
    }

    .node-archive {
        left: 18%;
        top: 70%;
    }

    .node-future {
        left: 58%;
        top: 68%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
