:root {
    --night: #100b2d;
    --night-deep: #09061c;
    --night-soft: #1d1645;
    --moon: #f8eedb;
    --moon-muted: #d7cbb8;
    --rose: #c83e63;
    --rose-light: #f28aa6;
    --gold: #d1a85d;
    --gold-light: #ffe4a3;
    --panel: rgba(27, 20, 62, 0.82);
    --panel-strong: rgba(31, 22, 70, 0.96);
    --line: rgba(248, 238, 219, 0.2);
    --shadow: 0 24px 70px rgba(3, 2, 15, 0.42);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
}

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

body {
    position: relative;
    isolation: isolate;
    min-width: 320px;
    min-height: 100vh;
    padding-top: 16px;
    overflow-x: hidden;
    color: var(--moon);
    background:
        radial-gradient(circle at 50% 12%, rgba(75, 51, 131, 0.34), transparent 30%),
        radial-gradient(circle at 7% 42%, rgba(200, 62, 99, 0.12), transparent 24%),
        radial-gradient(circle at 92% 76%, rgba(100, 73, 157, 0.14), transparent 30%),
        linear-gradient(180deg, #0f0a2b 0%, #171039 38%, #0d0928 72%, #070516 100%);
    font-family: "Noto Serif SC", serif;
    line-height: 1.7;
}

button,
a {
    color: inherit;
    font: inherit;
}

button,
a[href] {
    cursor: pointer;
}

.night-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cosmic-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cosmic-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        radial-gradient(circle at 18% 24%, #fff7db 0 1px, transparent 1.4px),
        radial-gradient(circle at 72% 33%, #f5d9ff 0 1px, transparent 1.4px),
        radial-gradient(circle at 45% 79%, #ffe5a1 0 0.8px, transparent 1.2px);
    background-size: 173px 151px, 227px 199px, 139px 181px;
}

.galaxy-band {
    position: absolute;
    left: 50%;
    display: block;
    width: 150vw;
    border-radius: 50%;
    transform-origin: center;
}

.galaxy-band-main {
    top: 27%;
    height: 29vh;
    opacity: 0.46;
    background:
        radial-gradient(ellipse, rgba(251, 224, 176, 0.2), rgba(151, 116, 193, 0.14) 34%, transparent 70%);
    filter: blur(32px);
    animation: galaxyDrift 28s ease-in-out infinite alternate;
}

.galaxy-band-soft {
    top: 66%;
    height: 22vh;
    opacity: 0.3;
    background: radial-gradient(ellipse, rgba(213, 181, 235, 0.24), transparent 68%);
    filter: blur(45px);
    animation: galaxyDriftSoft 34s ease-in-out infinite alternate;
}

.night-cloud {
    position: absolute;
    display: block;
    width: min(720px, 72vw);
    height: 240px;
    border-radius: 50%;
    opacity: 0.24;
    background: radial-gradient(ellipse, rgba(174, 144, 204, 0.36), transparent 68%);
    filter: blur(34px);
}

.night-cloud-left {
    top: 12%;
    left: -18%;
    animation: cloudFloatLeft 24s ease-in-out infinite alternate;
}

.night-cloud-right {
    right: -20%;
    bottom: 8%;
    animation: cloudFloatRight 30s ease-in-out infinite alternate;
}

.shooting-star {
    position: absolute;
    display: block;
    width: 110px;
    height: 1px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 239, 196, 0.86));
    filter: drop-shadow(0 0 5px rgba(255, 228, 163, 0.65));
    transform: rotate(-28deg);
}

.shooting-star::after {
    content: "";
    position: absolute;
    right: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff6d7;
}

.shooting-star-1 {
    top: 18%;
    left: 72%;
    animation: shootingStar 9s 1s ease-in infinite;
}

.shooting-star-2 {
    top: 52%;
    left: 24%;
    animation: shootingStar 12s 5s ease-in infinite;
}

.shooting-star-3 {
    top: 78%;
    left: 82%;
    animation: shootingStar 14s 8s ease-in infinite;
}

.moon-glow {
    position: absolute;
    top: 70px;
    right: 5vw;
    z-index: 0;
    width: clamp(160px, 26vw, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 42% 40%, rgba(137, 113, 118, 0.14) 0 5%, transparent 6%),
        radial-gradient(circle at 62% 58%, rgba(137, 113, 118, 0.1) 0 7%, transparent 8%),
        radial-gradient(circle, rgba(255, 246, 213, 0.94) 0 22%, rgba(255, 230, 171, 0.24) 23% 38%, rgba(255, 227, 157, 0.08) 52%, transparent 72%);
    filter: drop-shadow(0 0 28px rgba(255, 228, 163, 0.16));
    animation: moonBreathe 8s ease-in-out infinite alternate;
}

.page-header {
    position: sticky;
    top: 16px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(16, 11, 45, 0.76);
    box-shadow: 0 12px 30px rgba(3, 2, 15, 0.22);
    backdrop-filter: blur(14px);
}

.brand {
    gap: 10px;
    padding: 7px 15px 7px 8px;
    text-decoration: none;
    font-weight: 700;
}

.brand-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 6px;
    color: #fff;
    background: var(--rose);
    font-family: "Nunito", sans-serif;
    font-weight: 800;
}

main,
.page-footer {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 0 58px;
}

.eyebrow {
    color: var(--gold);
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 920px;
    margin-top: 16px;
    font-size: clamp(64px, 10vw, 132px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.hero h1 em {
    color: var(--rose-light);
    font-family: "Ma Shan Zheng", cursive;
    font-style: normal;
    font-weight: 400;
    text-shadow: 0 0 36px rgba(242, 138, 166, 0.24);
}

.hero-lead {
    margin-top: 30px;
    color: var(--moon-muted);
    font-size: clamp(17px, 2vw, 22px);
}

.date-route {
    display: flex;
    width: min(100%, 680px);
    align-items: center;
    gap: 0;
    margin-top: 42px;
    padding: 22px 26px 20px;
    border: 1px solid rgba(236, 177, 210, 0.2);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0, rgba(219, 106, 159, 0.11), transparent 42%),
        rgba(18, 12, 47, 0.58);
    box-shadow:
        0 18px 48px rgba(5, 3, 22, 0.2),
        inset 0 1px rgba(255, 230, 239, 0.035);
    backdrop-filter: blur(14px);
}

.date-route div {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 112px;
    padding-top: 18px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.date-route div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(255, 224, 235, 0.72);
    border-radius: 50%;
    background: #d66a9d;
    box-shadow: 0 0 0 4px rgba(214, 106, 157, 0.09), 0 0 12px rgba(214, 106, 157, 0.34);
    transform: translateX(-50%);
}

.date-route div:nth-of-type(2)::before {
    width: 10px;
    height: 10px;
    border-color: rgba(255, 241, 220, 0.9);
    background: #f2b6ce;
    box-shadow:
        0 0 0 5px rgba(226, 120, 167, 0.13),
        0 0 20px rgba(241, 168, 199, 0.55);
}

.date-route span,
.date-route strong {
    display: block;
}

.date-route span {
    color: rgba(230, 211, 217, 0.68);
    font-size: 11px;
    letter-spacing: 0.16em;
}

.date-route strong {
    margin-top: 5px;
    color: var(--moon);
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.date-route div:nth-of-type(2) span,
.date-route div:nth-of-type(2) strong {
    color: #f4c3d7;
}

.date-route i {
    flex: 1;
    height: 1px;
    margin: -39px -2px 0;
    align-self: center;
    background: linear-gradient(90deg, rgba(196, 91, 140, 0.18), rgba(238, 158, 193, 0.68), rgba(196, 91, 140, 0.18));
    box-shadow: 0 0 8px rgba(215, 108, 157, 0.12);
}

.stars-section,
.bridge-section,
.fortune-section,
.ticket-section,
.letter-section {
    position: relative;
    padding: 100px 0;
}

.stars-section::before,
.bridge-section::before,
.fortune-section::before,
.ticket-section::before,
.letter-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: min(1120px, 92vw);
    height: 72%;
    border-radius: 50%;
    opacity: 0.55;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.stars-section::before {
    background: radial-gradient(ellipse, rgba(84, 59, 139, 0.15), transparent 68%);
}

.stars-section {
    padding-top: 64px;
}

.bridge-section::before {
    background: radial-gradient(ellipse, rgba(209, 168, 93, 0.11), transparent 68%);
}

.bridge-section {
    padding-bottom: 56px;
}

.fortune-section {
    padding-top: 56px;
}

.fortune-section::before {
    background: radial-gradient(ellipse, rgba(159, 52, 87, 0.13), transparent 68%);
}

.ticket-section::before {
    background: radial-gradient(ellipse, rgba(209, 168, 93, 0.09), transparent 68%);
}

.letter-section::before {
    background: radial-gradient(ellipse, rgba(200, 62, 99, 0.12), transparent 68%);
}

.stars-section::after,
.bridge-section::after,
.fortune-section::after,
.ticket-section::after {
    content: "";
    position: absolute;
    right: 16%;
    bottom: 0;
    left: 16%;
    height: 1px;
    opacity: 0.5;
    background: linear-gradient(90deg, transparent, rgba(209, 168, 93, 0.28), transparent);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-on-scroll .section-heading {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.65s 0.1s ease, transform 0.65s 0.1s ease;
}

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

.section-heading {
    max-width: 760px;
    margin-bottom: 46px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.letter-section h2 {
    margin-top: 10px;
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 600;
    line-height: 1.2;
}

.section-heading > p:last-child {
    margin-top: 18px;
    color: var(--moon-muted);
    font-size: 17px;
}

.star-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.star-map,
.memory-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.star-map {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 520px;
    padding: 112px 28px 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        radial-gradient(circle at 18% 0%, rgba(128, 87, 155, 0.18), transparent 34%),
        linear-gradient(150deg, rgba(25, 18, 55, 0.98), rgba(10, 8, 30, 0.99)),
        var(--panel);
    background-size: 28px 28px, 28px 28px, auto, auto, auto;
    isolation: isolate;
}

.star-map::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.32;
    background-image:
        radial-gradient(circle, rgba(255, 245, 211, 0.72) 0 0.8px, transparent 1.2px),
        radial-gradient(circle, rgba(203, 184, 235, 0.56) 0 0.8px, transparent 1.2px);
    background-position: 0 0, 31px 17px;
    background-size: 89px 83px, 113px 101px;
}

.star-map::after {
    content: "柒";
    position: absolute;
    right: 24px;
    bottom: -15px;
    color: rgba(248, 238, 219, 0.026);
    font-family: "Ma Shan Zheng", cursive;
    font-size: 130px;
}

.star-map-heading {
    position: absolute;
    top: 25px;
    left: 28px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(248, 238, 219, 0.72);
}

.star-map-heading span {
    font-family: "Ma Shan Zheng", cursive;
    font-size: 30px;
    letter-spacing: 0.08em;
}

.star-map-heading small {
    color: rgba(209, 168, 93, 0.65);
    font-family: "Nunito", sans-serif;
    font-size: 9px;
    letter-spacing: 0.28em;
}

.milky-mist {
    position: absolute;
    top: 0;
    left: 42%;
    z-index: -1;
    width: 65%;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(216, 204, 235, 0.1), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    transform: translateX(-50%);
}

.constellation {
    display: none;
}

.memory-star {
    position: relative;
    z-index: 2;
    display: grid;
    width: auto;
    min-width: 0;
    min-height: 166px;
    padding: 22px 14px 16px;
    align-content: center;
    justify-items: center;
    border: 1px solid rgba(240, 214, 157, 0.16);
    color: rgba(248, 238, 219, 0.64);
    background:
        linear-gradient(135deg, rgba(255, 242, 203, 0.055), transparent 46%),
        rgba(255, 255, 255, 0.018);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.memory-star::before,
.memory-star::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(224, 190, 121, 0.38);
    pointer-events: none;
}

.memory-star::before {
    top: 8px;
    left: 8px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.memory-star::after {
    right: 8px;
    bottom: 8px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.memory-star > i {
    position: relative;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid rgba(255, 228, 163, 0.32);
    border-radius: 50%;
    background: rgba(255, 242, 213, 0.045);
    box-shadow: inset 0 0 20px rgba(255, 228, 163, 0.05);
    font-style: normal;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.memory-star > i::before,
.memory-star > i::after {
    content: "";
    position: absolute;
    background: rgba(255, 228, 163, 0.25);
}

.memory-star > i::before {
    width: 38px;
    height: 1px;
}

.memory-star > i::after {
    width: 1px;
    height: 38px;
}

.memory-star i svg {
    display: none;
}

.memory-star i b {
    position: relative;
    z-index: 1;
    color: var(--moon);
    font-family: "Ma Shan Zheng", cursive;
    font-size: 22px;
    font-weight: 400;
}

.memory-star span {
    display: block;
    margin-top: 13px;
    color: var(--moon-muted);
    font-size: 15px;
    transition: color 0.25s ease;
}

.memory-star span small {
    display: block;
    margin: 0 0 4px;
    color: rgba(209, 168, 93, 0.62);
    font-family: "Nunito", sans-serif;
    font-size: 8px;
    line-height: 1;
    letter-spacing: 0.2em;
}

.memory-star:not(:disabled):hover,
.memory-star:not(:disabled):focus-visible {
    color: var(--gold-light);
    border-color: rgba(255, 228, 163, 0.5);
    background: rgba(255, 242, 203, 0.07);
    box-shadow: 0 14px 34px rgba(5, 3, 18, 0.32);
}

.memory-star:not(:disabled):hover > i,
.memory-star:not(:disabled):focus-visible > i {
    border-color: rgba(255, 228, 163, 0.62);
    background: rgba(255, 228, 163, 0.08);
    box-shadow: 0 0 0 6px rgba(255, 228, 163, 0.035), 0 0 28px rgba(255, 213, 130, 0.14);
}

.memory-star.is-locked {
    cursor: not-allowed;
    opacity: 0.58;
    filter: grayscale(0.72);
}

.memory-star.is-locked > i {
    border-style: solid;
    background: rgba(255, 255, 255, 0.015);
}

.memory-star.is-locked > i::before,
.memory-star.is-locked > i::after {
    opacity: 0.35;
}

.memory-star.is-locked i b,
.memory-star.is-locked span,
.memory-star.is-locked span small {
    color: rgba(215, 203, 184, 0.48);
}

.memory-star.is-available > i {
    border-color: rgba(255, 228, 163, 0.58);
    background: rgba(255, 228, 163, 0.08);
    box-shadow: 0 0 24px rgba(255, 213, 130, 0.12);
    animation: availableStar 2.4s ease-in-out infinite;
}

.memory-star.is-available span {
    color: var(--gold-light);
}

.memory-star.is-lit {
    color: var(--gold-light);
    filter: none;
    border-color: rgba(255, 222, 150, 0.42);
    background: linear-gradient(145deg, rgba(224, 174, 91, 0.12), rgba(255, 255, 255, 0.025));
}

.memory-star.is-lit > i {
    border-color: rgba(255, 228, 163, 0.7);
    background: rgba(255, 228, 163, 0.12);
    box-shadow: 0 0 28px rgba(255, 213, 130, 0.15), inset 0 0 18px rgba(255, 228, 163, 0.14);
}

.memory-star.is-lit i svg {
    opacity: 0;
}

.memory-star.is-lit span {
    color: var(--moon);
}

.memory-star.is-current > i {
    animation: none;
}

.memory-star.is-current span {
    color: var(--gold-light);
    font-weight: 700;
}

.memory-star.is-current {
    border-color: rgba(255, 220, 145, 0.8);
    box-shadow: 0 0 0 1px rgba(255, 220, 145, 0.12), 0 16px 40px rgba(5, 3, 18, 0.38);
}

.star-7 {
    grid-column: auto;
}

/* 七夕星象仪 */
.star-map {
    display: block;
    height: 590px;
    min-height: 590px;
    padding: 0;
    background:
        radial-gradient(circle at 50% 53%, rgba(126, 87, 158, 0.22), transparent 32%),
        radial-gradient(circle at 50% 53%, rgba(230, 198, 137, 0.055), transparent 52%),
        linear-gradient(148deg, rgba(22, 16, 52, 0.99), rgba(7, 6, 25, 0.99)),
        var(--panel);
    background-size: auto;
}

.star-map::before {
    opacity: 0.5;
    background-image:
        radial-gradient(circle, rgba(255, 245, 211, 0.72) 0 0.7px, transparent 1.1px),
        radial-gradient(circle, rgba(203, 184, 235, 0.52) 0 0.65px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 0.5px, transparent 0.9px);
    background-position: 0 0, 31px 17px, 67px 46px;
    background-size: 89px 83px, 113px 101px, 137px 127px;
}

.star-map::after {
    content: "08 · 29";
    right: 24px;
    bottom: 14px;
    color: rgba(248, 238, 219, 0.04);
    font-family: "Nunito", sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.star-map-heading {
    top: 24px;
    left: 28px;
    gap: 4px;
}

.star-map-heading span {
    font-size: 28px;
}

.milky-mist {
    top: 53%;
    left: 50%;
    width: 76%;
    height: 130px;
    background: linear-gradient(90deg, transparent, rgba(216, 204, 235, 0.08), rgba(255, 228, 163, 0.06), transparent);
    filter: blur(24px);
    transform: translate(-50%, -50%) rotate(-18deg);
}

.astrolabe {
    position: absolute;
    top: 53%;
    left: 50%;
    z-index: 1;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(227, 200, 145, 0.16);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.astrolabe::before,
.astrolabe::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.astrolabe::before {
    inset: 11px;
    border: 1px dashed rgba(227, 200, 145, 0.13);
}

.astrolabe::after {
    inset: -8px;
    border: 1px solid rgba(227, 200, 145, 0.06);
    box-shadow: 0 0 55px rgba(121, 84, 161, 0.12);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(221, 198, 153, 0.13);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-outer { width: 330px; height: 330px; }
.orbit-middle { width: 246px; height: 246px; }
.orbit-inner { width: 158px; height: 158px; border-style: dashed; }

.axis {
    position: absolute;
    top: 50%;
    left: 50%;
    background: linear-gradient(90deg, transparent, rgba(221, 198, 153, 0.12), transparent);
}

.axis-horizontal {
    width: 440px;
    height: 1px;
    transform: translate(-50%, -50%) rotate(-12deg);
}

.axis-vertical {
    width: 1px;
    height: 440px;
    background: linear-gradient(transparent, rgba(221, 198, 153, 0.12), transparent);
    transform: translate(-50%, -50%) rotate(-12deg);
}

.astrolabe-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 116px;
    height: 116px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(238, 208, 145, 0.35);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 179, 98, 0.16), rgba(25, 17, 52, 0.9) 68%);
    box-shadow: 0 0 30px rgba(222, 174, 93, 0.1), inset 0 0 24px rgba(255, 231, 179, 0.05);
    transform: translate(-50%, -50%);
}

.astrolabe-core small,
.astrolabe-core span {
    color: rgba(216, 181, 112, 0.66);
    font-family: "Nunito", sans-serif;
    font-size: 7px;
    letter-spacing: 0.14em;
}

.astrolabe-core strong {
    margin: 4px 0;
    color: var(--moon);
    font-family: "Ma Shan Zheng", cursive;
    font-size: 24px;
    font-weight: 400;
}

.memory-star {
    position: absolute;
    display: flex;
    width: 104px;
    min-height: 102px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    border-radius: 50%;
    background: transparent;
    overflow: visible;
    transform: translate(-50%, -14px);
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.memory-star::before,
.memory-star::after {
    display: none;
}

.memory-star > i {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.memory-star > i::before,
.memory-star > i::after {
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background: rgba(246, 229, 192, 0.42);
    transform: translate(-50%, -50%);
}

.memory-star > i::before {
    width: 34px;
    height: 1px;
}

.memory-star > i::after {
    width: 1px;
    height: 34px;
}

.memory-star i b {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    color: transparent;
    background: #f3e1b7;
    box-shadow: 0 0 6px #f3e1b7, 0 0 15px rgba(234, 202, 135, 0.48);
    font-size: 0;
}

.memory-star span {
    margin-top: 10px;
    color: rgba(241, 232, 216, 0.82);
    font-size: 13px;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(4, 3, 16, 0.9);
}

.memory-star span small {
    display: block;
    margin: 0 0 3px;
    color: rgba(205, 174, 111, 0.62);
    font-size: 6px;
    letter-spacing: 0.13em;
}

.memory-star:not(:disabled):hover,
.memory-star:not(:disabled):focus-visible {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.memory-star:not(:disabled):hover > i,
.memory-star:not(:disabled):focus-visible > i {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.memory-star:not(:disabled):hover i b,
.memory-star:not(:disabled):focus-visible i b {
    box-shadow: 0 0 8px #fff4cf, 0 0 24px rgba(247, 207, 126, 0.8);
}

.memory-star:focus-visible {
    outline: 1px solid rgba(255, 226, 164, 0.72);
    outline-offset: -20px;
}

.memory-star.is-locked {
    opacity: 0.4;
    filter: none;
}

.memory-star.is-locked > i {
    border: 0;
    background: transparent;
}

.memory-star.is-available > i {
    border: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
}

.memory-star.is-available i b {
    animation: availableStarPoint 2s ease-in-out infinite;
}

.memory-star.is-lit {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.memory-star.is-lit > i {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.memory-star.is-lit i b {
    width: 9px;
    height: 9px;
    background: #fff0c7;
    box-shadow: 0 0 8px #fff0c7, 0 0 22px rgba(239, 197, 114, 0.8);
}

.memory-star.is-current {
    border: 0;
    box-shadow: none;
}

.memory-star.is-current i b {
    box-shadow: 0 0 10px #fff7df, 0 0 32px rgba(246, 201, 109, 0.95);
}

.star-1 { left: 50%; top: calc(53% - 208px); }
.star-2 { left: calc(50% + 147px); top: calc(53% - 147px); }
.star-3 { left: calc(50% + 208px); top: 53%; }
.star-4 { left: calc(50% + 104px); top: calc(53% + 180px); }
.star-5 { left: calc(50% - 104px); top: calc(53% + 180px); }
.star-6 { left: calc(50% - 208px); top: 53%; }
.star-7 { left: calc(50% - 147px); top: calc(53% - 147px); }

.star-7 > i {
    transform: scale(1.35);
}

.memory-card {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 50px);
}

.memory-number {
    color: var(--gold);
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.memory-card h3 {
    margin-top: 18px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.25;
}

.memory-card p {
    margin-top: 24px;
    color: var(--moon-muted);
    font-size: 17px;
}

.memory-note {
    align-self: flex-start;
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--rose-light);
    font-family: "Ma Shan Zheng", cursive;
    font-size: 21px;
}

.memory-card.is-changing > * {
    animation: revealText 0.4s ease both;
}

.bridge-scene {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 231, 166, 0.08), transparent 27%),
        linear-gradient(180deg, rgba(11, 7, 34, 0.88), rgba(27, 18, 66, 0.96));
    box-shadow: var(--shadow);
}

.bridge-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image:
        radial-gradient(circle at 12% 17%, #fff 0 1px, transparent 1.5px),
        radial-gradient(circle at 73% 29%, #ffeab1 0 1px, transparent 1.6px),
        radial-gradient(circle at 42% 8%, #fff 0 1px, transparent 1.5px);
    background-size: 103px 89px, 137px 111px, 163px 137px;
}

.bridge-caption {
    position: absolute;
    top: 22px;
    left: 50%;
    z-index: 2;
    display: flex;
    width: calc(100% - 56px);
    align-items: center;
    gap: 18px;
    color: rgba(248, 238, 219, 0.56);
    font-size: 12px;
    letter-spacing: 0.16em;
    transform: translateX(-50%);
}

.bridge-caption span:last-child {
    text-align: right;
}

.bridge-caption i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(209, 168, 93, 0.42), transparent);
}

.bridge-art {
    position: absolute;
    inset: 36px 0 0;
    width: 100%;
    height: calc(100% - 36px);
}

.bridge-moon {
    fill: #fff3c8;
    filter: url(#softGlow);
}

.bridge-moon-halo {
    opacity: 0.9;
}

.cloud {
    fill: none;
    stroke: rgba(216, 205, 235, 0.26);
    stroke-width: 2;
}

.distant-mountain {
    fill: #28204c;
    opacity: 0.62;
}

.near-mountain {
    fill: url(#mountainFade);
    opacity: 0.92;
}

.star-river path {
    fill: none;
    stroke: url(#riverGlow);
    stroke-width: 7;
    filter: url(#softGlow);
}

.star-river path:nth-child(2) {
    stroke-width: 2;
    opacity: 0.6;
}

.star-river circle {
    fill: #ffe9ad;
    filter: url(#softGlow);
    animation: riverTwinkle 2.8s ease-in-out infinite alternate;
}

.bridge-underbody,
.bridge-lower-rim,
.bridge-inner-arch,
.bridge-reflection {
    fill: none;
    stroke-linecap: round;
}

.bridge-underbody {
    stroke: rgba(229, 218, 240, 0.16);
    stroke-width: 38;
}

.bridge-lower-rim {
    stroke: rgba(158, 131, 183, 0.26);
    stroke-width: 8;
}

.bridge-inner-arch {
    stroke: rgba(214, 190, 223, 0.18);
    stroke-width: 3;
}

.bridge-reflection {
    opacity: 0.35;
    stroke: url(#riverGlow);
    stroke-dasharray: 45 22;
    stroke-width: 3;
}

.segment-deck,
.segment-rail {
    fill: none;
    stroke-linecap: round;
    transition: stroke 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
}

.segment-deck {
    stroke: rgba(226, 214, 239, 0.2);
    stroke-width: 24;
}

.segment-rail {
    stroke: rgba(226, 214, 239, 0.18);
    stroke-dasharray: 3 10;
    stroke-width: 4;
}

.bridge-segment.is-built .segment-deck {
    stroke: url(#bridgeJade);
    filter: url(#softGlow);
}

.bridge-segment.is-built .segment-rail {
    stroke: #fff1c8;
    filter: url(#softGlow);
}

.bridge-posts {
    fill: none;
    stroke: rgba(255, 239, 198, 0.34);
    stroke-linecap: round;
    stroke-width: 3.5;
}

.bridge-posts circle {
    fill: rgba(255, 236, 186, 0.22);
    stroke-width: 2;
}

.bridge-ornaments {
    fill: none;
    stroke: rgba(255, 239, 198, 0.42);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.cloud-rail {
    opacity: 0.6;
    stroke-dasharray: 5 4;
}

.bridge-lantern {
    filter: url(#softGlow);
}

.lantern-body {
    fill: rgba(200, 62, 99, 0.52);
    stroke: #ffe4a3;
}

.bridge-step-lines {
    opacity: 0.48;
    stroke-width: 2.5;
}

.bridge-magpie {
    opacity: 0;
    fill: #0a071b;
    stroke: #f4d99d;
    stroke-width: 0.8;
    transition: opacity 0.4s ease;
}

.bridge-magpie.is-visible {
    opacity: 0.82;
}

.magpie-1 { transform: translate(150px, 212px) rotate(-10deg); }
.magpie-2 { transform: translate(300px, 125px) rotate(4deg); }
.magpie-3 { transform: translate(456px, 92px) rotate(-6deg); }
.magpie-4 { transform: translate(580px, 60px) rotate(3deg); }
.magpie-5 { transform: translate(720px, 98px) rotate(-2deg) scaleX(-1); }
.magpie-6 { transform: translate(870px, 134px) rotate(-5deg) scaleX(-1); }
.magpie-7 { transform: translate(1020px, 218px) rotate(8deg) scaleX(-1); }

.traveler {
    filter: drop-shadow(0 8px 8px rgba(3, 2, 15, 0.48));
}

.figure-shadow {
    opacity: 0.35;
    fill: #070514;
}

.figure-face {
    fill: #f3d6bd;
    stroke: #f8e6d3;
    stroke-width: 1;
}

.figure-hair,
.hair-bun {
    fill: #181126;
    stroke: #d8b77b;
    stroke-width: 1.2;
}

.hair-crown,
.hair-pin {
    fill: none;
    stroke: #ffe2a0;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.figure-man .robe-main {
    fill: url(#robeBlue);
    stroke: #b9c8e9;
}

.figure-woman .robe-main {
    fill: url(#robeRose);
    stroke: #ffd0dc;
}

.robe-main,
.figure-sleeve {
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.figure-man .figure-sleeve {
    fill: #43537e;
    stroke: #b9c8e9;
}

.figure-woman .figure-sleeve {
    fill: #a7466d;
    stroke: #ffd0dc;
}

.robe-layer {
    fill: rgba(255, 244, 217, 0.74);
}

.robe-belt,
.robe-hem {
    fill: none;
    stroke: #ffe2a0;
    stroke-width: 2;
}

.ribbon {
    fill: none;
    stroke: #8093c0;
    stroke-linecap: round;
    stroke-width: 3;
}

.figure-woman .ribbon {
    stroke: #e788a4;
}

.figure {
    transform-origin: 0 -20px;
    animation: robeBreathe 3.2s ease-in-out infinite alternate;
}

.traveler-left {
    transform: translate(150px, 350px);
}

.traveler-right {
    transform: translate(1050px, 350px);
}

.bridge-scene.is-playing .traveler-left {
    animation: travelerLeftMeet 2.8s 0.4s ease-in-out forwards;
}

.bridge-scene.is-playing .traveler-right {
    animation: travelerRightMeet 2.8s 0.4s ease-in-out forwards;
}

.meeting-seal {
    opacity: 0;
    fill: none;
    transform-origin: 600px 72px;
}

.meeting-seal-halo {
    fill: rgba(233, 142, 181, 0.035);
    stroke: rgba(255, 225, 235, 0.22);
    stroke-width: 1;
    stroke-dasharray: 2 8;
}

.meeting-seal-ring {
    fill: rgba(36, 16, 54, 0.32);
    stroke: rgba(255, 226, 238, 0.82);
    stroke-width: 1.6;
}

.meeting-seal-heart {
    fill: url(#bridgeGold);
    stroke: rgba(255, 224, 235, 0.5);
    stroke-width: 0.8;
}

.meeting-seal-sparks {
    fill: #ffe4ed;
    stroke: none;
}

.bridge-scene.is-playing .meeting-seal {
    animation: sealAppear 1s 3s ease both;
    filter:
        drop-shadow(0 0 6px rgba(247, 168, 200, 0.48))
        drop-shadow(0 0 18px rgba(196, 91, 140, 0.22));
}

.shore-label {
    position: absolute;
    bottom: 20px;
    z-index: 2;
    padding: 10px 14px;
    border-left: 1px solid rgba(209, 168, 93, 0.4);
    color: var(--moon-muted);
}

.shore-label-left {
    left: 22px;
}

.shore-label-right {
    right: 22px;
    border-right: 1px solid rgba(209, 168, 93, 0.4);
    border-left: 0;
    text-align: right;
}

.shore-label small,
.shore-label strong {
    display: block;
}

.shore-label small {
    font-size: 11px;
}

.shore-label strong {
    color: var(--gold-light);
    font-family: "Ma Shan Zheng", cursive;
    font-size: 20px;
    font-weight: 400;
}

/* 月下金线鹊桥 */
.bridge-scene {
    min-height: 590px;
    border-color: rgba(220, 191, 135, 0.18);
    background:
        radial-gradient(circle at 50% 27%, rgba(255, 225, 159, 0.1), transparent 20%),
        radial-gradient(ellipse at 50% 84%, rgba(107, 76, 159, 0.22), transparent 48%),
        linear-gradient(180deg, rgba(9, 7, 30, 0.96), rgba(17, 11, 45, 0.99));
    box-shadow: 0 28px 90px rgba(3, 2, 16, 0.42), inset 0 0 70px rgba(130, 91, 167, 0.04);
    transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.bridge-scene::before {
    opacity: 0.42;
    background-image:
        radial-gradient(circle, rgba(255, 246, 215, 0.8) 0 0.65px, transparent 1.05px),
        radial-gradient(circle, rgba(203, 184, 235, 0.5) 0 0.6px, transparent 1px),
        radial-gradient(circle, rgba(255, 221, 151, 0.45) 0 0.55px, transparent 0.95px);
    background-position: 0 0, 37px 21px, 73px 48px;
    background-size: 101px 91px, 139px 117px, 173px 149px;
}

.bridge-scene::after {
    content: "七夕";
    position: absolute;
    top: 49%;
    left: 50%;
    z-index: 0;
    color: rgba(248, 238, 219, 0.024);
    font-family: "Ma Shan Zheng", cursive;
    font-size: 148px;
    letter-spacing: 0.18em;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.bridge-scene.is-complete {
    border-color: rgba(237, 205, 141, 0.34);
    box-shadow: 0 30px 100px rgba(3, 2, 16, 0.48), 0 0 52px rgba(219, 174, 90, 0.08), inset 0 0 80px rgba(230, 190, 111, 0.04);
}

.bridge-caption {
    top: 20px;
    color: rgba(241, 228, 204, 0.62);
    font-family: "Nunito", sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
}

.bridge-caption i {
    height: 3px;
    background:
        radial-gradient(circle, rgba(235, 200, 132, 0.75) 0 1px, transparent 1.5px) center / 14.285% 3px repeat-x,
        linear-gradient(90deg, transparent, rgba(209, 168, 93, 0.2), transparent) center / 100% 1px no-repeat;
}

.bridge-art {
    inset: 42px 0 0;
    height: calc(100% - 42px);
}

.bridge-moon {
    fill: #fff0c4;
    opacity: 0.86;
    transform: scale(0.78);
    transform-origin: 600px 138px;
}

.bridge-moon-halo {
    opacity: 0.5;
    transform: scale(0.9);
    transform-origin: 600px 138px;
}

.cloud {
    stroke: rgba(218, 205, 235, 0.13);
    stroke-width: 1.4;
}

.distant-mountain {
    fill: #241b43;
    opacity: 0.38;
}

.near-mountain {
    opacity: 0.58;
}

.star-river path {
    stroke-width: 13;
    opacity: 0.5;
}

.star-river path:nth-child(2) {
    stroke-width: 1.5;
    opacity: 0.75;
}

.star-river circle {
    fill: #ffe9ad;
    opacity: 0.9;
}

.bridge-underbody {
    stroke: rgba(206, 192, 222, 0.1);
    stroke-width: 25;
}

.bridge-lower-rim {
    stroke: rgba(169, 140, 188, 0.15);
    stroke-width: 4;
}

.bridge-inner-arch {
    stroke: rgba(223, 205, 231, 0.1);
    stroke-width: 1.5;
}

.bridge-reflection {
    opacity: 0.2;
    stroke-dasharray: 26 24;
    stroke-width: 2;
}

.segment-deck {
    stroke: rgba(214, 203, 226, 0.12);
    stroke-width: 15;
}

.segment-rail {
    stroke: rgba(229, 216, 235, 0.12);
    stroke-dasharray: 2 12;
    stroke-width: 2.5;
}

.bridge-segment.is-built .segment-deck {
    stroke: url(#bridgeGold);
    filter: url(#softGlow);
}

.bridge-segment.is-built .segment-rail {
    stroke: #fff0c4;
    stroke-width: 3;
}

.bridge-posts {
    stroke: rgba(255, 235, 190, 0.22);
    stroke-width: 2;
}

.bridge-posts circle {
    fill: rgba(255, 222, 158, 0.3);
    stroke: rgba(255, 238, 201, 0.4);
    filter: url(#softGlow);
}

.bridge-ornaments {
    stroke: rgba(255, 233, 188, 0.3);
    stroke-width: 1.5;
}

.cloud-rail {
    opacity: 0.36;
    stroke-dasharray: 3 6;
}

.lantern-body {
    fill: rgba(190, 55, 91, 0.72);
    stroke: #ffe4a3;
}

.bridge-step-lines {
    opacity: 0.3;
    stroke-width: 1.5;
}

.bridge-magpie {
    fill: #080619;
    stroke: rgba(255, 224, 160, 0.62);
    stroke-width: 0.65;
}

.bridge-magpie.is-visible {
    opacity: 0.9;
    filter: drop-shadow(0 0 5px rgba(255, 218, 143, 0.28));
}

.traveler {
    filter: drop-shadow(0 12px 12px rgba(3, 2, 15, 0.65));
}

.shore-label {
    bottom: 18px;
    padding: 9px 13px;
    border-color: rgba(209, 168, 93, 0.3);
    background: linear-gradient(90deg, rgba(8, 6, 27, 0.52), transparent);
}

.shore-label-right {
    background: linear-gradient(270deg, rgba(8, 6, 27, 0.52), transparent);
}

.shore-label small {
    color: rgba(226, 213, 195, 0.56);
    font-size: 9px;
    letter-spacing: 0.12em;
}

.shore-label strong {
    margin-top: 2px;
    font-size: 19px;
}

/* 水墨星河：弱化结构线，让鹊桥从雾气中浮现 */
.bridge-scene {
    background:
        radial-gradient(ellipse at 50% 62%, rgba(124, 88, 162, 0.18), transparent 42%),
        radial-gradient(circle at 50% 25%, rgba(255, 224, 161, 0.09), transparent 17%),
        linear-gradient(180deg, rgba(8, 7, 28, 0.97), rgba(16, 11, 42, 0.99));
}

.bridge-scene::after {
    content: "";
    top: auto;
    right: -8%;
    bottom: -24%;
    left: -8%;
    width: auto;
    height: 58%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 30% 42%, rgba(119, 84, 158, 0.18), transparent 42%),
        radial-gradient(ellipse at 68% 36%, rgba(215, 184, 130, 0.08), transparent 38%),
        linear-gradient(180deg, transparent, rgba(91, 61, 137, 0.12));
    filter: blur(28px);
    transform: none;
}

.bridge-moon {
    opacity: 0.72;
    filter: url(#softGlow);
    transform: scale(0.68);
}

.bridge-moon-halo {
    opacity: 0.36;
    transform: scale(0.78);
}

.cloud {
    opacity: 0.4;
    stroke: rgba(219, 210, 234, 0.15);
    stroke-width: 1.1;
}

.distant-mountain {
    opacity: 0.18;
    filter: blur(1.2px);
}

.near-mountain {
    opacity: 0.28;
    filter: blur(2px);
}

.bridge-foundation {
    opacity: 0.58;
}

.bridge-underbody {
    stroke: rgba(183, 165, 203, 0.08);
    stroke-width: 18;
    filter: blur(1.6px);
}

.bridge-lower-rim {
    stroke: rgba(203, 180, 214, 0.09);
    stroke-width: 2.5;
}

.bridge-inner-arch {
    opacity: 0.35;
    stroke-width: 1;
}

.segment-deck {
    stroke: rgba(218, 207, 229, 0.075);
    stroke-width: 10;
}

.segment-rail {
    stroke: rgba(232, 220, 237, 0.08);
    stroke-dasharray: 1 14;
    stroke-width: 1.5;
}

.bridge-segment.is-built .segment-deck {
    stroke: url(#bridgeGold);
    stroke-width: 11;
    opacity: 0.86;
}

.bridge-segment.is-built .segment-rail {
    stroke: rgba(255, 244, 213, 0.9);
    stroke-width: 2;
}

.bridge-posts {
    opacity: 0.35;
    stroke-width: 1.3;
}

.bridge-posts circle {
    r: 3px;
}

.bridge-ornaments {
    opacity: 0.42;
}

.cloud-rail,
.bridge-step-lines {
    opacity: 0.18;
}

.bridge-lantern {
    opacity: 0.72;
}

.star-river {
    opacity: 0.78;
}

.star-river path {
    stroke-width: 17;
    opacity: 0.26;
    filter: blur(2px);
}

.star-river path:nth-child(2) {
    stroke-width: 1;
    opacity: 0.62;
    filter: none;
}

.bridge-reflection {
    opacity: 0.12;
    filter: blur(1px);
}

.traveler {
    opacity: 0.76;
    filter: grayscale(0.18) drop-shadow(0 10px 14px rgba(3, 2, 15, 0.58));
}

.figure-face {
    fill: #d9c5bb;
    stroke: rgba(245, 230, 216, 0.5);
}

.figure-man .robe-main,
.figure-woman .robe-main,
.figure-man .figure-sleeve,
.figure-woman .figure-sleeve {
    stroke-opacity: 0.5;
}

.shore-label {
    opacity: 0.78;
}

.bridge-scene.is-complete .traveler {
    opacity: 0.92;
    filter: drop-shadow(0 10px 16px rgba(3, 2, 15, 0.62));
}

.bridge-scene.is-complete .bridge-foundation {
    opacity: 0.72;
}

/* 浪漫玫瑰月光配色 */
.bridge-scene {
    background:
        radial-gradient(ellipse at 50% 61%, rgba(174, 92, 148, 0.16), transparent 43%),
        radial-gradient(circle at 50% 25%, rgba(255, 215, 205, 0.1), transparent 18%),
        radial-gradient(ellipse at 28% 76%, rgba(120, 84, 174, 0.13), transparent 35%),
        linear-gradient(180deg, rgba(10, 7, 31, 0.98), rgba(25, 12, 48, 0.99));
}

.bridge-scene::after {
    background:
        radial-gradient(ellipse at 30% 42%, rgba(178, 91, 151, 0.14), transparent 42%),
        radial-gradient(ellipse at 68% 36%, rgba(235, 157, 181, 0.1), transparent 38%),
        linear-gradient(180deg, transparent, rgba(123, 65, 137, 0.13));
}

.bridge-scene.is-complete {
    border-color: rgba(238, 164, 186, 0.34);
    box-shadow:
        0 30px 100px rgba(3, 2, 16, 0.48),
        0 0 58px rgba(220, 111, 153, 0.09),
        inset 0 0 88px rgba(221, 137, 174, 0.045);
}

/* 桥面用同一渐变叠出承托、主体与月光高光，避免依赖多套颜色 */
.bridge-scene {
    --bridge-depth: rgba(78, 31, 78, 0.72);
    --bridge-rim: rgba(208, 105, 153, 0.34);
    --bridge-sheen: rgba(255, 226, 238, 0.58);
}

.bridge-underbody {
    stroke: var(--bridge-depth);
    stroke-width: 23;
    opacity: 0.58;
    filter: blur(0.6px) drop-shadow(0 8px 12px rgba(4, 2, 18, 0.68));
}

.bridge-lower-rim {
    stroke: var(--bridge-rim);
    stroke-width: 4;
    opacity: 0.52;
    filter: drop-shadow(0 5px 8px rgba(6, 2, 20, 0.5));
}

.bridge-deck-highlight {
    fill: none;
    stroke: var(--bridge-sheen);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0;
    transform: translateY(-3px);
    filter: drop-shadow(0 0 4px rgba(255, 205, 225, 0.35));
    transition: opacity 0.35s ease;
}

.bridge-segment.is-built .segment-deck {
    stroke-width: 13;
}

.bridge-segment.is-built .segment-rail {
    stroke-width: 1.6;
    opacity: 0.78;
}

.bridge-scene.is-complete .bridge-deck-highlight {
    opacity: 0.72;
}

.bridge-scene.is-complete .bridge-underbody {
    opacity: 0.76;
}

.bridge-segment.is-built .segment-deck {
    stroke: url(#bridgeGold);
    opacity: 0.92;
    filter:
        drop-shadow(0 2px 1px rgba(92, 35, 81, 0.62))
        drop-shadow(0 0 6px rgba(228, 119, 164, 0.46))
        drop-shadow(0 0 16px rgba(196, 91, 140, 0.2));
}

.bridge-segment.is-built .segment-rail {
    stroke: rgba(238, 143, 181, 0.94);
    filter: drop-shadow(0 0 4px rgba(216, 105, 153, 0.5));
}

.bridge-posts circle {
    fill: rgba(224, 119, 164, 0.42);
    stroke: rgba(238, 143, 181, 0.58);
    filter: drop-shadow(0 0 4px rgba(216, 105, 153, 0.42));
}

.lantern-body {
    fill: rgba(211, 78, 128, 0.76);
    stroke: #ffe1d8;
}

.star-river path {
    stroke: rgba(196, 91, 140, 0.3);
}

.star-river path:nth-child(2) {
    stroke: rgba(228, 119, 164, 0.42);
}

.star-river circle {
    fill: #e477a4;
    filter: drop-shadow(0 0 5px rgba(216, 105, 153, 0.46));
}

.bridge-reflection {
    stroke: rgba(196, 91, 140, 0.32);
}

.unlock-message {
    margin: 26px auto 0;
    text-align: center;
}

.unlock-message > span {
    color: var(--gold-light);
    font-family: "Ma Shan Zheng", cursive;
    font-size: 34px;
}

.unlock-message p {
    margin-top: 6px;
    color: var(--moon-muted);
}

.locked-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.locked-content.is-unlocked {
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
}

.fortune-stage {
    display: grid;
    grid-template-columns: minmax(230px, 0.7fr) minmax(300px, 1.3fr);
    gap: 28px;
    width: min(860px, 100%);
    margin: auto;
}

.fortune-tube,
.fortune-paper {
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.fortune-tube {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    padding: 36px 24px 24px;
    color: var(--moon);
    background:
        radial-gradient(circle at 50% 38%, rgba(209, 168, 93, 0.16), transparent 38%),
        linear-gradient(160deg, rgba(31, 22, 70, 0.98), rgba(10, 7, 30, 0.98));
}

.fortune-tube::before,
.fortune-tube::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.fortune-tube::before {
    inset: 14px;
    border: 1px solid rgba(255, 228, 163, 0.16);
    border-radius: 7px;
}

.fortune-tube::after {
    right: 15%;
    bottom: 90px;
    left: 15%;
    height: 16px;
    border-radius: 50%;
    background: rgba(2, 1, 12, 0.58);
    filter: blur(8px);
}

.fortune-aura {
    position: absolute;
    top: 34px;
    left: 50%;
    width: 220px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 226, 160, 0.18), transparent 68%);
    transform: translateX(-50%);
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.bamboo-sticks {
    position: absolute;
    top: 54px;
    left: 50%;
    z-index: 1;
    width: 150px;
    height: 190px;
    transform: translateX(-50%);
}

.bamboo-stick {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 12px;
    height: var(--stick-height, 154px);
    border: 1px solid rgba(116, 71, 30, 0.48);
    border-radius: 5px 5px 2px 2px;
    background:
        repeating-linear-gradient(180deg, transparent 0 44px, rgba(110, 67, 25, 0.25) 45px 47px),
        linear-gradient(90deg, #a86f2e, #f4d18a 38%, #c18a45 72%, #855321);
    box-shadow: 0 5px 14px rgba(3, 2, 15, 0.28);
    transform: translateX(-50%) rotate(var(--stick-rotate, 0deg)) translateX(var(--stick-x, 0));
    transform-origin: bottom;
}

.bamboo-stick::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 3px;
    height: 18px;
    border-radius: 999px;
    background: rgba(102, 45, 35, 0.68);
    transform: translateX(-50%);
}

.stick-1 { --stick-x: -58px; --stick-height: 145px; --stick-rotate: -9deg; }
.stick-2 { --stick-x: -40px; --stick-height: 174px; --stick-rotate: -5deg; }
.stick-3 { --stick-x: -20px; --stick-height: 158px; --stick-rotate: -2deg; }
.stick-4 { --stick-x: 0; --stick-height: 182px; }
.stick-5 { --stick-x: 20px; --stick-height: 164px; --stick-rotate: 2deg; }
.stick-6 { --stick-x: 40px; --stick-height: 178px; --stick-rotate: 5deg; }
.stick-7 { --stick-x: 58px; --stick-height: 148px; --stick-rotate: 9deg; }

.fortune-stick {
    position: absolute;
    top: 45px;
    left: 50%;
    z-index: 2;
    display: flex;
    width: 38px;
    height: 206px;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
    border: 1px solid #9c6a28;
    border-radius: 6px 6px 2px 2px;
    color: #5f2637;
    background:
        linear-gradient(90deg, rgba(116, 71, 25, 0.2), transparent 25% 70%, rgba(116, 71, 25, 0.24)),
        #f2d38e;
    box-shadow: 0 8px 24px rgba(3, 2, 15, 0.35);
    font-family: "Ma Shan Zheng", cursive;
    transform: translateX(-50%);
    transform-origin: 50% 100%;
}

.fortune-stick b {
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.15;
    writing-mode: vertical-rl;
}

.fortune-stick i {
    display: grid;
    width: 22px;
    height: 32px;
    place-items: center;
    margin-top: 12px;
    border: 1px solid rgba(137, 36, 69, 0.56);
    color: #892445;
    font-family: "Noto Serif SC", serif;
    font-size: 9px;
    font-style: normal;
    line-height: 1.1;
    writing-mode: vertical-rl;
}

.lacquer-vessel {
    position: absolute;
    top: 191px;
    left: 50%;
    z-index: 3;
    width: 184px;
    height: 164px;
    transform: translateX(-50%);
}

.vessel-mouth {
    position: absolute;
    top: 0;
    left: 2px;
    z-index: 2;
    width: 180px;
    height: 38px;
    border: 4px solid #c99342;
    border-radius: 50%;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, #080106 0 48%, #260812 50% 66%, #5c1830 68% 100%);
    box-shadow:
        inset 0 0 0 3px rgba(255, 225, 151, 0.18),
        0 4px 10px rgba(3, 2, 15, 0.45);
}

.vessel-mouth i {
    position: absolute;
    inset: 6px 18px;
    border: 1px solid rgba(255, 225, 151, 0.28);
    border-radius: 50%;
}

.vessel-mouth b {
    position: absolute;
    right: -4px;
    bottom: -2px;
    left: -4px;
    z-index: 4;
    height: 19px;
    border-top: 3px solid #e0b45f;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(120, 34, 55, 0.18), #6a1632 76%);
    box-shadow: 0 -3px 8px rgba(255, 221, 143, 0.16);
}

.vessel-body {
    position: absolute;
    top: 18px;
    left: 10px;
    display: flex;
    width: 164px;
    height: 134px;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-top: 31px;
    border: 2px solid #b77e34;
    border-radius: 15px 15px 30px 30px / 16px 16px 22px 22px;
    background:
        linear-gradient(90deg, rgba(36, 3, 16, 0.62), transparent 18% 78%, rgba(36, 3, 16, 0.68)),
        linear-gradient(145deg, #8f183c, #54102c 62%, #2c071c);
    box-shadow:
        inset 12px 0 18px rgba(255, 153, 173, 0.08),
        inset -12px 0 20px rgba(16, 2, 10, 0.35),
        0 18px 30px rgba(3, 2, 15, 0.42);
}

.vessel-pattern {
    position: absolute;
    right: 10px;
    left: 10px;
    height: 12px;
    opacity: 0.7;
    background:
        linear-gradient(135deg, transparent 38%, #d7ad60 39% 48%, transparent 49%) 0 0 / 18px 12px,
        linear-gradient(45deg, transparent 38%, #d7ad60 39% 48%, transparent 49%) 9px 0 / 18px 12px;
}

.pattern-top { top: 10px; }
.pattern-bottom { bottom: 8px; transform: scaleY(-1); }

.vessel-seal {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 2px solid #e1b969;
    border-radius: 50%;
    color: #ffe4a3;
    background: rgba(49, 5, 26, 0.34);
    box-shadow: inset 0 0 0 4px rgba(225, 185, 105, 0.12);
    font-family: "Ma Shan Zheng", cursive;
    font-size: 30px;
    line-height: 1;
}

.vessel-body small {
    margin-top: 4px;
    color: rgba(255, 228, 163, 0.72);
    font-family: "Nunito", sans-serif;
    font-size: 8px;
    letter-spacing: 0.18em;
}

.vessel-foot {
    position: absolute;
    bottom: 0;
    left: 21px;
    width: 142px;
    height: 20px;
    border: 2px solid #b77e34;
    border-radius: 50%;
    background: linear-gradient(180deg, #6f1533, #2b071a);
    box-shadow: 0 7px 14px rgba(3, 2, 15, 0.36);
}

.fortune-action {
    position: relative;
    z-index: 4;
    display: flex;
    width: 100%;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 320px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 228, 163, 0.2);
    color: var(--moon);
    text-align: center;
}

.fortune-action strong {
    font-size: 15px;
}

.fortune-action small {
    color: #c6b7d0;
    font-size: 11px;
}

.fortune-tube:hover .fortune-aura,
.fortune-tube:focus-visible .fortune-aura {
    opacity: 1;
    filter: brightness(1.28);
}

.fortune-tube:hover .lacquer-vessel,
.fortune-tube:focus-visible .lacquer-vessel {
    transform: translateX(-50%) translateY(-3px);
    transition: transform 0.22s ease;
}

.fortune-tube.is-drawing .lacquer-vessel {
    animation: vesselShake 0.72s ease;
}

.fortune-tube.is-drawing .bamboo-sticks {
    animation: sticksShake 0.72s ease;
}

.fortune-tube.is-drawing .fortune-stick {
    animation: drawMainStick 0.78s ease;
}

.fortune-tube.has-drawn .fortune-stick {
    filter: drop-shadow(0 0 10px rgba(255, 226, 160, 0.54));
}

.fortune-paper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px;
    color: #3d2230;
    background:
        linear-gradient(90deg, transparent 12%, rgba(112, 67, 40, 0.12) 12.4%, transparent 13%),
        #f5e7ca;
    text-align: center;
}

.fortune-paper > span {
    padding: 4px 12px;
    border: 1px solid #a22e51;
    color: #8a2445;
    font-size: 13px;
    letter-spacing: 0.12em;
}

.fortune-paper h3 {
    margin-top: 24px;
    color: #872343;
    font-family: "Ma Shan Zheng", cursive;
    font-size: 48px;
    font-weight: 400;
}

.fortune-paper p {
    margin-top: 20px;
    font-size: 20px;
    line-height: 1.9;
}

.fortune-paper small {
    max-width: 360px;
    margin-top: 26px;
    color: #705564;
    line-height: 1.7;
}

.fortune-paper.is-revealing > * {
    animation: revealText 0.5s ease both;
}

.love-ticket {
    display: grid;
    grid-template-columns: 1fr 210px;
    width: min(980px, 100%);
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(112, 63, 29, 0.26);
    border-radius: 10px;
    color: #402631;
    background: #f8eaca;
    box-shadow: 0 28px 80px rgba(3, 2, 15, 0.46);
}

.ticket-main {
    padding: clamp(28px, 5vw, 54px);
}

.ticket-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(80, 42, 29, 0.24);
    color: #8a2445;
    font-family: "Nunito", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.ticket-route {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: 24px;
    align-items: center;
    margin-top: 34px;
}

.ticket-route div:last-child {
    text-align: right;
}

.ticket-route small,
.ticket-route strong,
.ticket-route span {
    display: block;
}

.ticket-route small {
    color: #866977;
}

.ticket-route strong {
    margin-top: 6px;
    color: #76203f;
    font-family: "Nunito", "Noto Serif SC", sans-serif;
    font-size: clamp(23px, 3vw, 38px);
}

.ticket-route span {
    margin-top: 3px;
    color: #705564;
}

.ticket-route svg {
    width: 100%;
    fill: none;
    stroke: #a22e51;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.love-ticket dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 36px;
}

.love-ticket dl div {
    padding: 12px 14px;
    border: 1px solid rgba(112, 63, 29, 0.18);
    border-radius: 6px;
}

.love-ticket dt {
    color: #866977;
    font-size: 12px;
}

.love-ticket dd {
    margin-top: 4px;
    color: #57283c;
    font-weight: 700;
}

.ticket-stub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 2px dashed rgba(112, 63, 29, 0.3);
    background: rgba(200, 62, 99, 0.1);
}

.ticket-stub::before,
.ticket-stub::after {
    content: "";
    position: absolute;
    left: -14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--night-deep);
}

.ticket-stub::before { top: -13px; }
.ticket-stub::after { bottom: -13px; }

.heart-seal {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border: 2px solid #a22e51;
    border-radius: 50%;
    transform: rotate(-9deg);
}

.heart-seal svg {
    width: 38px;
    fill: none;
    stroke: #a22e51;
    stroke-width: 2;
}

.ticket-stub > span {
    margin-top: 18px;
    color: #866977;
    font-size: 12px;
}

.ticket-stub > strong {
    color: #76203f;
    font-family: "Ma Shan Zheng", cursive;
    font-size: 34px;
    font-weight: 400;
}

.letter-section {
    display: flex;
    min-height: 760px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.letter-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding: 12px 20px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--gold-light);
    background: rgba(209, 168, 93, 0.08);
    transition: background 0.2s ease;
}

.letter-button:hover,
.letter-button:focus-visible {
    background: rgba(209, 168, 93, 0.16);
}

.letter-button svg {
    width: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linejoin: round;
    stroke-width: 2;
}

.final-letter {
    width: min(760px, 100%);
    margin-top: 34px;
    padding: clamp(30px, 6vw, 64px);
    border: 1px solid rgba(112, 63, 29, 0.24);
    border-radius: 8px;
    color: #3d2230;
    background: #f8eaca;
    box-shadow: var(--shadow);
    animation: letterOpen 0.65s ease both;
}

.final-letter p {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 2;
    text-align: left;
}

.final-letter p + p {
    margin-top: 22px;
}

.final-letter p:first-child {
    color: #76203f;
    font-family: "Ma Shan Zheng", cursive;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.4;
}

.final-letter footer {
    margin-top: 30px;
    color: #765568;
    font-size: 14px;
    line-height: 1.8;
    text-align: right;
}

.final-letter time {
    font-size: 12px;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 0 50px;
    border-top: 1px solid var(--line);
    color: var(--moon-muted);
    font-size: 14px;
}

.page-footer a {
    color: var(--gold-light);
    text-underline-offset: 4px;
}

:focus-visible {
    outline: 3px solid rgba(255, 228, 163, 0.66);
    outline-offset: 4px;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.14); }
}

@keyframes galaxyDrift {
    from { transform: translateX(-52%) rotate(-12deg) scale(1); }
    to { transform: translateX(-48%) rotate(-8deg) scale(1.08); }
}

@keyframes galaxyDriftSoft {
    from { transform: translateX(-48%) rotate(8deg) scale(1.04); }
    to { transform: translateX(-53%) rotate(4deg) scale(0.96); }
}

@keyframes cloudFloatLeft {
    from { transform: translate3d(-4%, 0, 0) scale(1); }
    to { transform: translate3d(18%, 10px, 0) scale(1.12); }
}

@keyframes cloudFloatRight {
    from { transform: translate3d(7%, 0, 0) scale(1.08); }
    to { transform: translate3d(-16%, -12px, 0) scale(0.96); }
}

@keyframes shootingStar {
    0%, 78% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-28deg); }
    81% { opacity: 0.9; }
    88% { opacity: 0; transform: translate3d(-240px, 130px, 0) rotate(-28deg); }
    100% { opacity: 0; }
}

@keyframes moonBreathe {
    from { opacity: 0.72; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1.04); }
}

@keyframes availableStar {
    0%, 100% {
        box-shadow: 0 0 16px rgba(255, 213, 130, 0.08);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 213, 130, 0.22);
        transform: scale(1.05);
    }
}

@keyframes availableStarPoint {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 6px #f3e1b7, 0 0 15px rgba(234, 202, 135, 0.48);
    }
    50% {
        transform: scale(1.35);
        box-shadow: 0 0 10px #fff4cf, 0 0 28px rgba(247, 207, 126, 0.82);
    }
}

@keyframes revealText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes riverTwinkle {
    from { opacity: 0.36; }
    to { opacity: 1; }
}

@keyframes travelerLeftMeet {
    from { transform: translate(150px, 350px); }
    to { transform: translate(565px, 183px); }
}

@keyframes travelerRightMeet {
    from { transform: translate(1050px, 350px); }
    to { transform: translate(635px, 183px); }
}

@keyframes sealAppear {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes robeBreathe {
    from { transform: rotate(-0.6deg); }
    to { transform: rotate(0.8deg); }
}

@keyframes vesselShake {
    0%, 100% { transform: translateX(-50%) rotate(0); }
    20% { transform: translateX(-50%) rotate(-2.5deg); }
    42% { transform: translateX(-50%) rotate(2.5deg); }
    64% { transform: translateX(-50%) rotate(-1.5deg); }
    82% { transform: translateX(-50%) rotate(1deg); }
}

@keyframes sticksShake {
    0%, 100% { transform: translateX(-50%) rotate(0); }
    25% { transform: translateX(-50%) rotate(-3deg) translateY(-5px); }
    50% { transform: translateX(-50%) rotate(3deg) translateY(-9px); }
    75% { transform: translateX(-50%) rotate(-2deg) translateY(-3px); }
}

@keyframes drawMainStick {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0); }
    28% { transform: translateX(-50%) translateY(-20px) rotate(-2deg); }
    58% { transform: translateX(-50%) translateY(-34px) rotate(2deg); }
    78% { transform: translateX(-50%) translateY(-16px) rotate(-1deg); }
}

@keyframes letterOpen {
    from { opacity: 0; transform: translateY(18px) rotateX(-8deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

@media (max-width: 900px) {
    .star-layout {
        grid-template-columns: 1fr;
    }

    .memory-card {
        min-height: 340px;
    }

    .star-map {
        min-height: 0;
    }

    .fortune-stage {
        grid-template-columns: 1fr 1.25fr;
    }

    .love-ticket {
        grid-template-columns: 1fr 160px;
    }
}

@media (max-width: 768px) {
    .page-header,
    main,
    .page-footer {
        width: min(100% - 28px, 1180px);
    }

    .page-header {
        top: 10px;
    }

    .brand > span:last-child {
        display: none;
    }

    .hero {
        min-height: 0;
        padding: 96px 0 44px;
    }

    .galaxy-band {
        width: 210vw;
    }

    .night-cloud {
        opacity: 0.08;
        filter: blur(26px);
    }

    .shooting-star-3 {
        display: none;
    }

    .hero h1 {
        font-size: clamp(58px, 19vw, 92px);
    }

    .date-route {
        padding: 18px 12px 16px;
    }

    .date-route div {
        min-width: 82px;
        padding-top: 16px;
    }

    .date-route i {
        margin-top: -35px;
    }

    .date-route strong {
        font-size: 14px;
    }

    .stars-section,
    .bridge-section,
    .fortune-section,
    .ticket-section,
    .letter-section {
        padding: 72px 0;
    }

    .stars-section {
        padding-top: 48px;
    }

    .bridge-section {
        padding-bottom: 40px;
    }

    .fortune-section {
        padding-top: 40px;
    }

    .star-map {
        height: 500px;
        min-height: 500px;
        padding: 0;
    }

    .star-map::after {
        font-size: 48px;
    }

    .memory-star {
        width: 80px;
        min-height: 86px;
        padding: 0;
        transform: translate(-50%, -12px);
    }

    .memory-star > i {
        width: 24px;
        height: 24px;
    }

    .astrolabe {
        width: 300px;
        height: 300px;
    }

    .orbit-outer { width: 248px; height: 248px; }
    .orbit-middle { width: 184px; height: 184px; }
    .orbit-inner { width: 118px; height: 118px; }

    .star-1 { left: 50%; top: calc(53% - 158px); }
    .star-2 { left: calc(50% + 112px); top: calc(53% - 112px); }
    .star-3 { left: calc(50% + 158px); top: 53%; }
    .star-4 { left: calc(50% + 79px); top: calc(53% + 137px); }
    .star-5 { left: calc(50% - 79px); top: calc(53% + 137px); }
    .star-6 { left: calc(50% - 158px); top: 53%; }
    .star-7 { left: calc(50% - 112px); top: calc(53% - 112px); }

    .axis-horizontal { width: 330px; }
    .axis-vertical { height: 330px; }

    .astrolabe-core {
        width: 94px;
        height: 94px;
    }

    .astrolabe-core strong {
        font-size: 20px;
    }

    .bridge-scene {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .bridge-art {
        inset: 28px 0 0;
        width: 100%;
        height: calc(100% - 28px);
    }

    .fortune-stage,
    .love-ticket {
        grid-template-columns: 1fr;
    }

    .fortune-tube {
        min-height: 380px;
    }

    .ticket-stub {
        min-height: 170px;
        border-top: 2px dashed rgba(112, 63, 29, 0.3);
        border-left: 0;
    }

    .ticket-stub::before,
    .ticket-stub::after {
        top: -14px;
        bottom: auto;
    }

    .ticket-stub::before { left: -13px; }
    .ticket-stub::after { right: -13px; left: auto; }

    .ticket-route {
        grid-template-columns: 1fr 60px 1fr;
        gap: 10px;
    }

    .love-ticket dl {
        grid-template-columns: 1fr;
    }

    .page-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .date-route span {
        font-size: 11px;
    }

    .date-route strong {
        font-size: 12px;
    }

    .section-heading h2,
    .letter-section h2 {
        font-size: 36px;
    }

    .star-map {
        height: 470px;
        min-height: 470px;
    }

    .star-map-heading {
        top: 15px;
        left: 16px;
    }

    .star-map-heading small {
        display: none;
    }

    .memory-star span {
        font-size: 11px;
    }

    .memory-star span small {
        font-size: 6px;
    }

    .bridge-scene {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .bridge-caption {
        top: 16px;
        width: calc(100% - 28px);
        gap: 8px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .bridge-art {
        inset: 24px 0 0;
        width: 100%;
        height: calc(100% - 24px);
    }

    .shore-label {
        bottom: 12px;
        padding: 6px 8px;
    }

    .shore-label-left {
        left: 10px;
    }

    .shore-label-right {
        right: 10px;
    }

    .shore-label strong {
        font-size: 17px;
    }

    .fortune-paper {
        min-height: 380px;
        padding: 34px 24px;
    }

    .ticket-main {
        padding: 24px 18px;
    }

    .ticket-top {
        font-size: 11px;
    }

    .ticket-route strong {
        font-size: 19px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll,
    .reveal-on-scroll .section-heading {
        opacity: 1;
        transform: none;
    }

    .shooting-star {
        display: none;
    }
}

.anniversary-entry {
    width: fit-content;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px auto 0;
    padding: 12px 20px;
    border: 1px solid rgba(246, 217, 154, .58);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff9df;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.anniversary-entry:hover,
.anniversary-entry:focus-visible {
    background: rgba(255,255,255,.14);
    border-color: #f6d99a;
}

.anniversary-entry span {
    color: rgba(255,255,255,.68);
    font-size: 12px;
}

.anniversary-entry strong {
    font-family: "Noto Serif SC", serif;
    font-size: 14px;
}

.anniversary-entry svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

@media (max-width: 560px) {
    .anniversary-entry span { display: none; }
}
