/* ===== SonBud Background Update — waterside tone ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #163038;
    --text: #2a3f46;
    --muted: #5a7178;
    --line: rgba(22, 48, 56, 0.1);
    --foam: #f6fbfc;
    --sand: #f3ebe0;
    --sand-deep: #e8dccb;
    --sea: #1f7a84;
    --sea-deep: #165f67;
    --sky: #6eb8cc;
    --sky-soft: #d7eef4;
    --sun: #e6c85a;
    --lime: #b8c85a;
    --bg: #f4f8f9;
    --radius: 18px;
    --wrap: 980px;
    --narrow: 680px;
    --font: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
    --display: "Outfit", "Pretendard Variable", Pretendard, sans-serif;
    --serif: "Fraunces", "Pretendard Variable", Georgia, serif;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    font-family: var(--font);
    line-height: 1.75;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(110, 184, 204, 0.22), transparent 60%),
        radial-gradient(900px 500px at 10% 20%, rgba(232, 220, 203, 0.55), transparent 55%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 28px;
}
.wrap.narrow { max-width: var(--narrow); }

.eyebrow {
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sea);
    margin-bottom: 10px;
}

/* ===== Nav ===== */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.top-nav.scrolled {
    background: rgba(246, 251, 252, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 68px;
}
.nav-logo {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-right: 36px;
    transition: color 0.3s ease;
}
.top-nav.scrolled .nav-logo { color: var(--sea-deep); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;
}
.nav-links a,
.nav-dropdown-btn {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, color 0.2s ease;
}
.top-nav.scrolled .nav-links a,
.top-nav.scrolled .nav-dropdown-btn { color: var(--muted); }
.nav-links > a:hover,
.nav-links > a.active,
.nav-dropdown-btn:hover,
.nav-dropdown.is-open .nav-dropdown-btn {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.top-nav.scrolled .nav-links > a:hover,
.top-nav.scrolled .nav-links > a.active,
.top-nav.scrolled .nav-dropdown-btn:hover,
.top-nav.scrolled .nav-dropdown.is-open .nav-dropdown-btn {
    background: rgba(31, 122, 132, 0.1);
    color: var(--sea-deep);
}
.nav-links a.nav-external { color: rgba(255, 255, 255, 1); font-weight: 600; }
.top-nav.scrolled .nav-links a.nav-external { color: var(--sea-deep); font-weight: 600; }

.nav-dropdown { position: relative; }
.nav-dropdown-btn::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
    vertical-align: 2px;
    transition: transform 0.2s ease;
}
.nav-dropdown.is-open .nav-dropdown-btn::after { transform: rotate(180deg); }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 176px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(22, 48, 56, 0.14);
    padding: 8px 0;
    z-index: 100;
    border: 1px solid var(--line);
}
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    border-radius: 0;
    font-size: 0.88rem;
    color: var(--text);
    white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.top-nav.scrolled .nav-dropdown-menu a:hover {
    background: rgba(31, 122, 132, 0.08);
    color: var(--sea-deep);
}
.top-nav.scrolled .nav-dropdown-menu a { color: var(--text); }
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.3s ease;
}
.top-nav.scrolled .mobile-menu-btn span { background: var(--ink); }

.nav-cta {
    margin-left: auto;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #fff;
    color: var(--sea-deep);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(22, 48, 56, 0.16);
}
.top-nav.scrolled .nav-cta {
    background: var(--sea);
    color: #fff;
}
.top-nav.scrolled .nav-cta:hover {
    background: var(--sea-deep);
    box-shadow: 0 8px 22px rgba(31, 122, 132, 0.28);
}

/* ===== Hero ===== */
.page-hero {
    position: relative;
    min-height: min(92vh, 820px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 120px 28px 72px;
    overflow: hidden;
    color: #fff;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center 42%;
    background-size: cover;
    transform: scale(1.04);
    animation: heroDrift 18s ease-in-out infinite alternate;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* 바다 윤슬 — 베일 위 레이어 */
.hero-glints {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}
.hero-glint-band {
    position: absolute;
    left: -8%;
    right: -8%;
    top: 10%;
    height: 36%;
    background:
        radial-gradient(ellipse 40% 35% at 28% 48%, rgba(255, 252, 230, 0.28), transparent 70%),
        radial-gradient(ellipse 50% 40% at 55% 40%, rgba(200, 240, 255, 0.18), transparent 72%),
        radial-gradient(ellipse 35% 30% at 72% 55%, rgba(255, 250, 220, 0.16), transparent 70%);
    filter: blur(18px);
    opacity: 0.75;
    animation: heroGlintBand 14s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}
.hero-sparkles {
    position: absolute;
    inset: 0;
}
.hero-sparkles i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fffef6;
    box-shadow:
        0 0 6px 2px rgba(255, 248, 210, 0.85),
        0 0 14px 4px rgba(180, 230, 255, 0.35);
    opacity: 0;
    /* 긴 주기 + 여유 있는 점멸 */
    animation: heroSparkle 14.4s ease-in-out infinite;
    will-change: opacity, transform;
}
.hero-sparkles i:nth-child(odd) {
    width: 2px;
    height: 2px;
    animation-name: heroSparkleSoft;
    animation-duration: 16s;
}
/* 등장 시점을 넓게 분산 (한 사이클에 드문드문) */
.hero-sparkles i:nth-child(1)  { left: 8%;  top: 18%; animation-delay: 0s; }
.hero-sparkles i:nth-child(2)  { left: 14%; top: 28%; animation-delay: 4.8s; }
.hero-sparkles i:nth-child(3)  { left: 22%; top: 16%; animation-delay: 9.6s; }
.hero-sparkles i:nth-child(4)  { left: 28%; top: 32%; animation-delay: 2.2s; }
.hero-sparkles i:nth-child(5)  { left: 34%; top: 22%; animation-delay: 7.2s; }
.hero-sparkles i:nth-child(6)  { left: 40%; top: 36%; animation-delay: 1.1s; }
.hero-sparkles i:nth-child(7)  { left: 18%; top: 38%; animation-delay: 10.6s; }
.hero-sparkles i:nth-child(8)  { left: 46%; top: 18%; animation-delay: 3.8s; }
.hero-sparkles i:nth-child(9)  { left: 52%; top: 30%; animation-delay: 8.2s; }
.hero-sparkles i:nth-child(10) { left: 58%; top: 24%; animation-delay: 5.8s; }
.hero-sparkles i:nth-child(11) { left: 64%; top: 34%; animation-delay: 0.5s; }
.hero-sparkles i:nth-child(12) { left: 70%; top: 20%; animation-delay: 6.6s; }
.hero-sparkles i:nth-child(13) { left: 12%; top: 24%; animation-delay: 10s; }
.hero-sparkles i:nth-child(14) { left: 26%; top: 40%; animation-delay: 3s; }
.hero-sparkles i:nth-child(15) { left: 36%; top: 14%; animation-delay: 9s; }
.hero-sparkles i:nth-child(16) { left: 48%; top: 38%; animation-delay: 1.7s; }
.hero-sparkles i:nth-child(17) { left: 56%; top: 16%; animation-delay: 4.2s; }
.hero-sparkles i:nth-child(18) { left: 62%; top: 28%; animation-delay: 7.8s; }
.hero-sparkles i:nth-child(19) { left: 74%; top: 26%; animation-delay: 11.2s; }
.hero-sparkles i:nth-child(20) { left: 80%; top: 32%; animation-delay: 2.7s; }
.hero-sparkles i:nth-child(21) { left: 6%;  top: 30%; animation-delay: 6s; }
.hero-sparkles i:nth-child(22) { left: 32%; top: 28%; animation-delay: 9.4s; }
.hero-sparkles i:nth-child(23) { left: 44%; top: 22%; animation-delay: 0.8s; }
.hero-sparkles i:nth-child(24) { left: 68%; top: 36%; animation-delay: 5.2s; }

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(12, 36, 44, 0.28) 0%, rgba(12, 36, 44, 0.12) 38%, rgba(12, 36, 44, 0.55) 100%),
        linear-gradient(270deg, rgba(12, 36, 44, 0.4) 0%, transparent 55%);
}
.hero-copy {
    position: relative;
    z-index: 4;
    max-width: 640px;
    text-align: right;
    margin-right: 36px;
    animation: riseIn 0.9s ease both;
}
.hero-brand {
    font-family: var(--display);
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 18px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(1.55rem, 3.4vw, 2.15rem);
    font-weight: 550;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 14px;
    font-variation-settings: "opsz" 80;
}
.hero-desc {
    font-size: 1.02rem;
    opacity: 0.92;
    margin-bottom: 28px;
    max-width: 28em;
    margin-left: auto;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
    background: #fff;
    color: var(--sea-deep);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    backdrop-filter: blur(6px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

@keyframes heroDrift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroGlintBand {
    from { transform: translate3d(-2%, 1%, 0) scale(1); opacity: 0.55; }
    to { transform: translate3d(3%, -2%, 0) scale(1.06); opacity: 0.9; }
}
@keyframes heroSparkle {
    0%, 100% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.35); }
    8% { opacity: 1; transform: translate3d(2px, -1px, 0) scale(1.3); }
    16% { opacity: 0.35; transform: translate3d(3px, 0, 0) scale(0.75); }
    24% { opacity: 0.9; transform: translate3d(5px, -1px, 0) scale(1.15); }
    34% { opacity: 0; transform: translate3d(6px, 1px, 0) scale(0.4); }
    35%, 99% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.35); }
}
@keyframes heroSparkleSoft {
    0%, 100% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.3); }
    10% { opacity: 0.9; transform: translate3d(-2px, 1px, 0) scale(1.15); }
    18% { opacity: 0.25; transform: translate3d(-3px, 2px, 0) scale(0.6); }
    28% { opacity: 0.8; transform: translate3d(-5px, 1px, 0) scale(1.1); }
    40% { opacity: 0; transform: translate3d(-6px, 2px, 0) scale(0.35); }
    41%, 99% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.3); }
}

/* ===== Letter ===== */
.letter-section {
    padding: 88px 0 72px;
    background:
        linear-gradient(180deg, rgba(243, 235, 224, 0.65) 0%, rgba(246, 251, 252, 0.2) 100%);
}
.letter-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 550;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}
.letter-body p {
    font-size: 1.02rem;
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 1.15em;
}
.letter-body p:last-child { margin-bottom: 0; }
.letter-body strong {
    color: var(--sea-deep);
    font-weight: 700;
    border-bottom: 1px solid rgba(31, 122, 132, 0.35);
}

/* ===== Schedule ===== */
.schedule-section {
    padding: 72px 0 40px;
}
.section-head {
    margin-bottom: 36px;
}
.section-head h2 {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 2.8vw, 2.15rem);
    font-weight: 550;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.section-sub {
    font-family: var(--display);
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    font-weight: 600;
    color: var(--sea-deep);
    letter-spacing: -0.01em;
    margin: -4px 0 12px;
}
.section-desc {
    color: var(--muted);
    font-size: 0.98rem;
    max-width: none;
    line-height: 1.85;
}
.section-desc strong { color: var(--ink); }

/* ===== Hotspot catalog ===== */
.hotspot-section {
    padding: 72px 0 48px;
    background:
        linear-gradient(180deg, rgba(215, 238, 244, 0.35) 0%, transparent 28%);
}

.hotspot-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 28px;
}
.summary-stat {
    padding: 22px 18px;
    border-radius: 16px;
    background: var(--sea);
    border: 1px solid transparent;
    box-shadow: 0 10px 28px rgba(22, 48, 56, 0.14);
    text-align: center;
}
.summary-stat strong {
    display: block;
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 6px;
}
.summary-stat span {
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.hotspot-faq {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 48px;
}
.hotspot-faq article {
    padding: 22px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
}
.hotspot-faq h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.hotspot-faq p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.75;
}
.hotspot-faq strong { color: var(--sea-deep); }
.inline-link {
    color: var(--sea-deep);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.inline-link:hover { color: var(--sea); }

.theme-block {
    margin-bottom: 48px;
    padding-top: 8px;
}
.theme-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--line);
}
.theme-label {
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.theme-head h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 550;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.theme-head p {
    font-size: 0.88rem;
    color: var(--muted);
}
.theme-count {
    flex-shrink: 0;
    font-family: var(--display);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    color: #fff;
}

.theme-sea .theme-label,
.theme-sea .theme-count { color: var(--sea); }
.theme-sea .theme-count { background: var(--sea); color: #fff; }
.theme-stream .theme-label { color: #c45b7a; }
.theme-stream .theme-count { background: #c45b7a; }
.theme-pond .theme-label { color: #4f8a4a; }
.theme-pond .theme-count { background: #4f8a4a; }

.theme-map {
    margin: 0 0 18px;
}
.theme-map-media {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.theme-sea .theme-map-media {
    aspect-ratio: 1240 / 993;
}
.theme-stream .theme-map-media {
    aspect-ratio: 958 / 1048;
}
.theme-pond .theme-map-media {
    aspect-ratio: 1240 / 497;
}
.theme-stream .theme-map {
    width: calc(100% - 200px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.theme-map figcaption {
    margin-top: 10px;
    text-align: center;
    font-size: 0.84rem;
    color: var(--muted);
}

.hotspot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
}
.hotspot-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1240 / 545;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    cursor: zoom-in;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: filter 0.25s ease, transform 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
}
.hotspot-thumb:focus-visible {
    outline: none;
}
/* drop-shadow는 알파 실루엣을 따라가므로 사각 호버 박스 느낌이 없음 */
.hotspot-thumb:hover,
.hotspot-thumb:focus-visible {
    transform: translateY(-3px) scale(1.015);
    filter:
        drop-shadow(0 14px 24px rgba(22, 48, 56, 0.28))
        brightness(1.03);
}
.hotspot-thumb:focus-visible {
    filter:
        drop-shadow(0 0 0 2px rgba(31, 122, 132, 0.55))
        drop-shadow(0 14px 24px rgba(22, 48, 56, 0.28))
        brightness(1.03);
}

/* Hotspot detail lightbox */
.detail-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 72px;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    user-select: none;
    -webkit-user-select: none;
}
.detail-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.detail-lightbox[hidden] {
    display: none;
}
.detail-lightbox.is-open[hidden] {
    display: flex;
}
.detail-lightbox-figure {
    position: relative;
    max-width: min(1100px, 100%);
    max-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.detail-lightbox-title {
    margin: 0;
    text-align: center;
    font-family: var(--display);
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.detail-lightbox-media {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    user-select: none;
    -webkit-user-select: none;
}
.detail-lightbox-stage {
    width: min(1100px, 100%);
    height: min(70vh, calc(100vh - 160px));
    max-width: 100%;
    max-height: calc(100vh - 160px);
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    background-color: rgba(255, 255, 255, 0.04);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}
.detail-lightbox-gif-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 1;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}
.detail-lightbox-gif-badge[hidden] {
    display: none;
}
.detail-lightbox-count {
    margin: 0;
    font-family: var(--display);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.62);
}
.detail-lightbox-close,
.detail-lightbox-nav {
    position: absolute;
    z-index: 3001;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}
.detail-lightbox-close {
    top: 18px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    line-height: 1;
}
.detail-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 2.2rem;
    line-height: 1;
}
.detail-lightbox-nav.prev { left: 16px; }
.detail-lightbox-nav.next { right: 16px; }
.detail-lightbox-close:hover,
.detail-lightbox-nav:hover,
.detail-lightbox-close:focus-visible,
.detail-lightbox-nav:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}
.detail-lightbox-nav:disabled {
    opacity: 0.28;
    cursor: default;
    pointer-events: none;
}
body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .detail-lightbox {
        padding: 64px 12px 24px;
    }
    .detail-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1.8rem;
    }
    .detail-lightbox-nav.prev { left: 6px; }
    .detail-lightbox-nav.next { right: 6px; }
    .detail-lightbox-media,
    .detail-lightbox-stage {
        max-height: calc(100vh - 140px);
    }
    .detail-lightbox-stage {
        height: min(62vh, calc(100vh - 140px));
    }
    .detail-lightbox-gif-badge {
        bottom: 10px;
        left: 10px;
        padding: 7px 14px;
        font-size: 0.82rem;
    }
}

@media (max-width: 900px) {
    .hotspot-summary,
    .hotspot-faq {
        grid-template-columns: 1fr;
    }
    .hotspot-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .theme-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .theme-stream .theme-map {
        width: 100%;
    }
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-left: 8px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--sea), var(--sky-soft));
    border-radius: 2px;
}

.batch {
    position: relative;
    padding: 8px 0 8px 36px;
    animation: riseIn 0.7s ease both;
}
.batch::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--sea);
    box-shadow: 0 0 0 4px rgba(31, 122, 132, 0.12);
}
.batch.done::before {
    background: var(--sea);
    border-color: var(--sea);
}

.batch-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 8px;
}
.batch-num {
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--sea-deep);
}
.batch-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(31, 122, 132, 0.08);
}
.batch-status {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--sea);
    padding: 3px 10px;
    border-radius: 999px;
}
.batch-status.soon {
    background: transparent;
    color: var(--sea);
    border: 1px solid rgba(31, 122, 132, 0.35);
}

.batch h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--line);
}
.file-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 11px 4px 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.5;
}
.file-list .fmt {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--sea-deep);
    background: var(--sky-soft);
    padding: 2px 8px;
    border-radius: 5px;
}
.file-list .tag-dm {
    font-size: 0.74rem;
    font-weight: 600;
    color: #7a6418;
    background: rgba(230, 200, 90, 0.22);
    padding: 2px 8px;
    border-radius: 5px;
}

/* ===== Plugin ===== */
.plugin-section {
    padding: 64px 0 24px;
}
.plugin-intro {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 8px 0 36px;
}
.plugin-copy p {
    font-size: 0.98rem;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.8;
}
.plugin-copy p:last-of-type { margin-bottom: 18px; }
.plugin-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(110, 184, 204, 0.12);
    border: 1px solid rgba(31, 122, 132, 0.16);
}
.plugin-note strong {
    font-size: 0.92rem;
    color: var(--sea-deep);
}
.plugin-note span {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
}
.plugin-demo {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(215, 238, 244, 0.9), rgba(243, 235, 224, 0.75)),
        #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(22, 48, 56, 0.08);
}
.plugin-demo-media {
    width: 100%;
    aspect-ratio: 1240 / 840;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.plugin-demo figcaption {
    padding: 12px 16px 14px;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}
.plugin-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.plugin-blocks article {
    padding: 22px 22px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
}
.plugin-blocks h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}
.plugin-list,
.plugin-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.plugin-list li,
.plugin-steps li {
    position: relative;
    padding-left: 18px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
}
.plugin-list li::before {
    content: "·";
    position: absolute;
    left: 2px;
    top: 0;
    color: var(--sea);
    font-weight: 700;
}
.plugin-steps {
    counter-reset: plugin-step;
    list-style: none;
}
.plugin-steps li {
    counter-increment: plugin-step;
    padding-left: 28px;
}
.plugin-steps li::before {
    content: counter(plugin-step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(31, 122, 132, 0.12);
    color: var(--sea-deep);
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plugin-steps strong,
.plugin-tip strong {
    color: var(--ink);
}
.plugin-tip {
    background:
        linear-gradient(135deg, rgba(232, 220, 203, 0.55), rgba(246, 251, 252, 0.9));
}
.plugin-tip .tip-lead {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.plugin-tip p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== Notice ===== */
.notice-section {
    padding: 56px 0 72px;
}
.notice-list {
    counter-reset: notice;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 8px;
}
.notice-list > li {
    counter-increment: notice;
    position: relative;
    padding-left: 48px;
}
.notice-list > li::before {
    content: counter(notice, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sea);
    letter-spacing: 0.04em;
}
.notice-list strong {
    display: block;
    font-size: 1.02rem;
    color: var(--ink);
    margin-bottom: 4px;
}
.notice-list p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.8;
}
.notice-list p strong {
    display: inline;
    font-size: inherit;
    color: var(--ink);
}
.notice-list a.nav-open-support-contact {
    color: var(--sea-deep);
    font-weight: 700;
    border-bottom: 1px solid rgba(31, 122, 132, 0.35);
}

/* ===== Contact ===== */
.contact {
    padding: 0 0 56px;
}
.contact .wrap {
    padding: 56px 36px;
    border-radius: 28px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(22, 95, 103, 0.92), rgba(31, 122, 132, 0.88)),
        url("images/bg-update-hero.jpg") center 40% / cover;
    box-shadow: 0 18px 50px rgba(22, 95, 103, 0.18);
}
.contact-brand {
    font-family: var(--display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 14px;
}
.contact h2 {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 550;
    line-height: 1.5;
    margin-bottom: 26px;
}
.contact-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.contact-row a {
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact-row a:hover {
    background: #fff;
    color: var(--sea-deep);
    border-color: #fff;
}

/* ===== Footer ===== */
.site-footer {
    padding: 40px 0 48px;
    text-align: center;
    color: var(--muted);
}
.site-footer strong {
    display: block;
    font-family: var(--display);
    color: var(--ink);
    font-size: 1.15rem;
    margin-bottom: 6px;
}
.site-footer p { font-size: 0.88rem; }
.copy {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.8rem !important;
    color: #8a9aa0;
}

/* ===== Back to top ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--sea);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(31, 122, 132, 0.3);
    z-index: 999;
    transition: transform 0.25s ease;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    html { font-size: 16px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(246, 251, 252, 0.97);
        backdrop-filter: blur(12px);
        padding: 14px 20px 18px;
        gap: 2px;
        box-shadow: 0 12px 30px rgba(22, 48, 56, 0.1);
    }
    .nav-links.open > a,
    .nav-links.open .nav-dropdown-btn { color: var(--text); }
    .nav-links.open > a:hover,
    .nav-links.open > a.active,
    .nav-links.open .nav-dropdown-btn:hover,
    .nav-links.open .nav-dropdown.is-open .nav-dropdown-btn {
        background: rgba(31, 122, 132, 0.1);
        color: var(--sea-deep);
    }
    .nav-links.open .nav-dropdown { width: 100%; }
    .nav-links.open .nav-dropdown-btn { width: 100%; text-align: left; }
    .nav-links.open .nav-dropdown-menu {
        position: static;
        transform: none;
        min-width: 0;
        margin: 2px 0 6px;
        padding: 0 0 0 10px;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    .nav-links.open .nav-dropdown-menu a {
        color: var(--text);
        border-radius: 999px;
        padding: 8px 12px;
    }
    .nav-links.open .nav-dropdown-menu a:hover {
        background: rgba(31, 122, 132, 0.1);
        color: var(--sea-deep);
    }
    .mobile-menu-btn { display: flex; }
    .nav-logo { margin-right: auto; }
    .nav-cta {
        margin-right: 8px;
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    .page-hero {
        min-height: min(88vh, 700px);
        padding: 110px 22px 56px;
        align-items: flex-end;
    }
    .hero-copy { margin-right: 0; }
    .letter-section { padding: 64px 0 52px; }
    .plugin-blocks { grid-template-columns: 1fr; }
    .schedule-section { padding: 52px 0 24px; }
    .timeline { padding-left: 4px; }
    .batch { padding-left: 30px; }
    .contact .wrap {
        padding: 44px 22px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media { animation-duration: 28s; }
    .hero-glint-band { animation-duration: 28s; }
    .hero-sparkles i { animation-duration: 5.6s; }
    .hero-copy,
    .batch,
    .reveal { animation: none; opacity: 1; transform: none; }
}
