:root {
    color-scheme: light;
    --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --bg: #f5f4f1;
    --surface: #ffffff;
    --surface-soft: #ebe9e3;
    --text: #121212;
    --muted: rgba(18, 18, 18, 0.58);
    --faint: rgba(18, 18, 18, 0.1);
    --accent: #19d760;
    --accent-soft: rgba(25, 215, 96, 0.14);
    --shadow: 0 24px 80px rgba(18, 18, 18, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --max: 1180px;
    font-family: var(--font-sans);
}

:root.dark {
    color-scheme: dark;
    --bg: #0f100f;
    --surface: #171916;
    --surface-soft: #20221e;
    --text: #e9e8e3;
    --muted: rgba(233, 232, 227, 0.62);
    --faint: rgba(233, 232, 227, 0.12);
    --accent-soft: rgba(25, 215, 96, 0.18);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 10%, var(--accent-soft), transparent 25rem),
        linear-gradient(to right, rgba(18, 18, 18, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(18, 18, 18, 0.035) 1px, transparent 1px),
        var(--bg);
    background-size: auto, 42px 42px, 42px 42px, auto;
    color: var(--text);
    word-break: keep-all;
    overflow-x: hidden;
    transition: background-color 300ms ease, color 300ms ease;
}

body.admin-open {
    overflow: hidden;
}

body.business-card-open {
    overflow: hidden;
}

body.work-viewer-open {
    overflow: hidden;
}

body.private-reply-auth-open {
    overflow: hidden;
}

:root.dark body {
    background:
        radial-gradient(circle at 78% 8%, rgba(25, 215, 96, 0.12), transparent 27rem),
        linear-gradient(to right, rgba(233, 232, 227, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(233, 232, 227, 0.035) 1px, transparent 1px),
        var(--bg);
    background-size: auto, 42px 42px, 42px 42px, auto;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
    opacity: 0.08;
    mix-blend-mode: multiply;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--faint);
    border-radius: 99px;
}

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

.post-shell {
    max-width: 920px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px clamp(16px, 4vw, 48px);
    border-bottom: 1px solid var(--faint);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-mark,
#hero-accent {
    color: var(--accent);
}

.brand-mark {
    display: inline-block;
    transform-origin: 50% 70%;
}

.brand-mark.is-tapped {
    animation: brandMarkTap 220ms ease;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-button,
.icon-button,
.primary-button,
.mood-tag,
.nav-card,
.track-button {
    border: 1px solid var(--faint);
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.text-button {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 99px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.text-button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    box-shadow: 0 12px 36px rgba(25, 215, 96, 0.16);
}

.text-button[aria-pressed="true"] {
    border-color: var(--accent);
    color: #101110;
    background: var(--accent);
}

.icon-button {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.theme-icon {
    position: absolute;
    inset: 11px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.theme-icon-light::after {
    position: absolute;
    inset: 4px;
    content: "";
    border-radius: 50%;
    background: currentColor;
}

.theme-icon-dark {
    display: none;
    border-color: transparent;
    box-shadow: inset 7px -4px 0 0 currentColor;
}

:root.dark .theme-icon-light {
    display: none;
}

:root.dark .theme-icon-dark {
    display: block;
}

.coordinate-ticker {
    position: fixed;
    top: 88px;
    right: 28px;
    z-index: 50;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.16em;
    pointer-events: none;
}

.reading-bar {
    position: fixed;
    top: 81px;
    left: 0;
    z-index: 70;
    width: 0;
    height: 2px;
    background: var(--accent);
}

.transition-curtain {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    background: var(--text);
    transform: translateY(101%);
    transition: transform 460ms cubic-bezier(0.78, 0, 0.22, 1);
}

.transition-curtain.active {
    transform: translateY(0);
}

.cursor-orbit {
    position: fixed;
    z-index: 90;
    width: 22px;
    height: 22px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 160ms ease, height 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.cursor-orbit::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    content: "";
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-orbit.is-hovering {
    width: 34px;
    height: 34px;
    border-color: var(--text);
}

.page-view {
    transition: opacity 360ms ease, transform 360ms ease;
}

.hidden-view {
    display: none;
}

.archive-view {
    padding: clamp(42px, 7vw, 92px) 0;
}

.works-view {
    min-height: calc(100vh - 150px);
    padding: clamp(34px, 5vw, 68px) 0 clamp(42px, 7vw, 92px);
}

.food-view {
    min-height: calc(100vh - 150px);
    padding: clamp(34px, 5vw, 68px) 0 clamp(42px, 7vw, 92px);
}

.works-view .back-link,
.food-view .back-link {
    display: inline-flex;
    margin-bottom: clamp(24px, 4vw, 42px);
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(28px, 6vw, 72px);
    align-items: end;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.eyebrow,
.section-kicker,
.panel-note {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

.hero-copy h1 {
    max-width: 820px;
    margin: 14px 0 24px;
    font-size: clamp(50px, 10vw, 118px);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-deck {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: clamp(20px, 3vw, 34px);
    font-weight: 650;
    line-height: 1.35;
}

.status-card,
.route-panel,
.map-panel,
.music-panel,
.chronicle-card,
.ambient-player,
.memory-capsule,
.nav-card {
    border: 1px solid var(--faint);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
}

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

.status-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--faint);
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: -0.01em;
}

.status-row strong {
    color: var(--accent);
}

.status-card p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mini-grid span {
    padding: 8px;
    border: 1px dashed var(--faint);
    border-radius: 10px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 9px;
    line-height: 1.45;
}

.anonymous-qna {
    padding: clamp(22px, 4vw, 42px);
    margin-bottom: clamp(44px, 7vw, 78px);
    border: 1px solid var(--faint);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 32%),
        linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-soft) 88%, transparent));
    box-shadow: var(--shadow);
}

.qna-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.qna-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(30px, 4.5vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.qna-heading p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.qna-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    gap: 18px;
}

.qna-form,
.qna-board {
    min-width: 0;
    border: 1px solid var(--faint);
    border-radius: 24px;
    background: color-mix(in srgb, var(--bg) 52%, transparent);
}

.qna-form {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 20px;
}

.qna-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
}

.qna-form textarea,
.qna-form input,
.qna-answer-form textarea {
    width: 100%;
    border: 1px solid var(--faint);
    border-radius: 17px;
    color: var(--text);
    background: var(--surface);
    font: inherit;
    outline: none;
}

.qna-form textarea {
    min-height: 156px;
    padding: 16px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.7;
}

.qna-form input {
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
}

.qna-form textarea:focus,
.qna-form input:focus,
.qna-answer-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.qna-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 10px;
}

.qna-form button,
.qna-board button,
.qna-answer-form button {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--faint);
    border-radius: 999px;
    color: var(--text);
    background: var(--surface);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.qna-form button:hover,
.qna-board button:hover,
.qna-answer-form button:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.qna-form button:disabled,
.qna-answer-form button:disabled {
    cursor: wait;
    opacity: 0.55;
    transform: none;
}

#qna-status {
    min-height: 1.5em;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.qna-board {
    padding: 16px;
}

.qna-board-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.qna-board-topline span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.qna-list {
    display: grid;
    gap: 12px;
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.qna-card,
.qna-empty {
    border: 1px solid var(--faint);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.qna-card {
    padding: 18px;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.qna-card.is-new,
.qna-card:hover {
    border-color: color-mix(in srgb, var(--accent) 62%, var(--faint));
    transform: translateY(-1px);
}

.qna-card-meta,
.qna-actions,
.qna-answer-form > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.qna-card-meta {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
}

.qna-question {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: -0.025em;
    white-space: pre-wrap;
}

.qna-answer {
    padding: 14px;
    border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--faint));
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.qna-answer span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.qna-answer p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.qna-card.is-answered .qna-answer p {
    color: var(--text);
}

.qna-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

.qna-delete-button {
    color: var(--muted) !important;
}

.qna-answer-form {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--faint);
}

.qna-answer-form textarea {
    min-height: 124px;
    padding: 14px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.7;
}

.qna-answer-form > div {
    justify-content: flex-end;
    margin-top: 10px;
}

.qna-answer-form p {
    min-height: 1.5em;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.qna-empty {
    padding: 28px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
}

.movie-archive {
    padding: clamp(22px, 4vw, 42px);
    margin-bottom: clamp(44px, 7vw, 78px);
    overflow: hidden;
    border: 1px solid var(--faint);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
        radial-gradient(circle at 84% 12%, rgba(140, 126, 255, 0.18), transparent 28%),
        linear-gradient(140deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-soft) 86%, transparent));
    box-shadow: var(--shadow);
}

.movie-archive-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.movie-archive-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.movie-archive-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.movie-archive-actions p {
    max-width: 280px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.movie-add-button,
.movie-random-button,
.movie-form-save {
    min-height: 42px;
    padding: 0 16px;
    color: var(--bg);
    background: var(--text);
    border: 0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.movie-add-button:hover,
.movie-random-button:hover,
.movie-form-save:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.movie-random-button {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--faint);
}

.movie-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(110px, 0.58fr) minmax(120px, 0.58fr) minmax(160px, 1fr);
    gap: 12px;
    padding: 18px;
    margin-bottom: 22px;
    border: 1px dashed color-mix(in srgb, var(--accent) 34%, var(--faint));
    border-radius: 24px;
    background: color-mix(in srgb, var(--surface-soft) 84%, transparent);
}

.movie-form-field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
}

.movie-form-field--wide {
    grid-column: 1 / -1;
}

.movie-form input,
.movie-form select,
.movie-form textarea {
    width: 100%;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--faint);
    border-radius: 15px;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.movie-form input,
.movie-form select {
    min-height: 44px;
    padding: 0 13px;
}

.movie-form textarea {
    min-height: 110px;
    padding: 13px;
    resize: vertical;
}

.movie-form input:focus,
.movie-form select:focus,
.movie-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.movie-form-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 10px;
}

.movie-form-actions p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.movie-form-actions button:first-child {
    min-height: 42px;
    padding: 0 14px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--faint);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.movie-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: stretch;
}

.movie-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    align-content: start;
}

.movie-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    text-align: left;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--faint);
    border-radius: 22px;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.movie-card:hover,
.movie-card.is-active {
    border-color: color-mix(in srgb, var(--accent) 56%, var(--faint));
    background: var(--surface);
    transform: translateY(-3px);
}

.movie-card.is-active {
    box-shadow: 0 18px 42px color-mix(in srgb, var(--accent) 18%, transparent);
}

.movie-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 15px;
    background: var(--surface-soft);
}

.movie-card-placeholder {
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 5;
    place-items: center;
    color: var(--accent);
    border: 1px dashed color-mix(in srgb, var(--accent) 38%, var(--faint));
    border-radius: 15px;
    background:
        radial-gradient(circle at 30% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 36%),
        linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 90%, transparent), var(--surface));
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.18em;
}

.movie-card span {
    display: grid;
    gap: 4px;
}

.movie-card strong {
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.movie-card small,
.movie-detail-meta span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
}

.movie-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px;
    color: var(--muted);
    border: 1px dashed var(--faint);
    border-radius: 22px;
    font-size: 13px;
    line-height: 1.7;
}

.movie-detail-card {
    display: grid;
    min-height: 300px;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--faint));
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
        linear-gradient(150deg, color-mix(in srgb, var(--bg) 70%, transparent), var(--surface));
}

.movie-detail-copy {
    align-self: center;
}

.movie-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.movie-detail-meta span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--faint));
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
}

.watch-wave {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    margin-bottom: 12px;
}

.watch-wave span {
    display: block;
    width: 7px;
    height: calc(8px + var(--wave-strength, 1) * 4px);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--text)));
    opacity: 0.38;
    transform-origin: bottom;
    animation: watchWave 1.8s ease-in-out infinite;
}

.watch-wave[data-rating="0"] span {
    opacity: 0.16;
    animation-play-state: paused;
}

.watch-wave span:nth-child(2) {
    animation-delay: 0.12s;
}

.watch-wave span:nth-child(3) {
    animation-delay: 0.24s;
}

.watch-wave span:nth-child(4) {
    animation-delay: 0.36s;
}

.watch-wave span:nth-child(5) {
    animation-delay: 0.48s;
}

.movie-detail-copy h3 {
    margin: 10px 0 16px;
    font-size: clamp(30px, 4.4vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.movie-detail-line {
    margin: 0 0 16px;
    color: var(--text);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 850;
    line-height: 1.32;
    letter-spacing: -0.045em;
}

#movie-detail-intro {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    word-break: keep-all;
    overflow-wrap: break-word;
}

@keyframes watchWave {
    0%, 100% {
        opacity: 0.34;
        transform: scaleY(0.72);
    }
    48% {
        opacity: 1;
        transform: scaleY(1.36);
    }
}

.album-selector {
    padding: clamp(22px, 4vw, 42px);
    margin-bottom: clamp(44px, 7vw, 78px);
    overflow: hidden;
    border: 1px solid var(--faint);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-soft) 84%, transparent));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.album-selector-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.album-selector-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.album-selector-heading > p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.album-selector-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}

.album-stack {
    position: relative;
    min-height: 620px;
    overscroll-behavior: contain;
    perspective: 1500px;
    perspective-origin: 50% -12%;
    transform-style: preserve-3d;
    isolation: isolate;
}

.album-stack:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    outline-offset: 8px;
    border-radius: 18px;
}

.album-stack::before {
    position: absolute;
    left: 50%;
    bottom: 4%;
    width: 54%;
    height: 22%;
    content: "";
    background: radial-gradient(ellipse, rgba(18, 18, 18, 0.16), transparent 68%);
    opacity: 0.42;
    filter: blur(12px);
    transform: translateX(-50%);
}

.album-card {
    position: absolute;
    top: var(--album-y);
    left: 50%;
    z-index: var(--album-z);
    width: clamp(180px, 19vw, 226px);
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: var(--album-cover);
    border-radius: 4px;
    box-shadow: 0 24px 50px rgba(18, 18, 18, 0.18);
    color: #fff;
    cursor: pointer;
    opacity: var(--album-opacity);
    filter: blur(var(--album-blur)) saturate(calc(0.55 + var(--album-scale) * 0.45));
    transform:
        translate3d(-50%, 0, var(--album-depth))
        rotateX(-10deg)
        scale(var(--album-scale))
        scaleX(var(--album-width-scale));
    transform-origin: center top;
    transform-style: preserve-3d;
    transition:
        transform 420ms cubic-bezier(0.2, 0.78, 0.2, 1),
        box-shadow 300ms ease,
        opacity 300ms ease,
        filter 300ms ease;
    will-change: transform;
}

.album-stack.is-dense .album-card {
    width: clamp(168px, 18vw, 214px);
}

.album-card::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.24), transparent 38%);
    mix-blend-mode: soft-light;
}

.album-card::after {
    position: absolute;
    inset: 8px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.album-card.is-front:not(.is-selected) {
    z-index: 20;
    opacity: 1;
    filter: none;
    box-shadow: 0 30px 64px rgba(18, 18, 18, 0.24);
    transform:
        translate3d(-50%, -16px, var(--album-depth))
        rotateX(-10deg)
        scale(var(--album-scale))
        scaleX(var(--album-width-scale));
}

.album-card.is-front:not(.is-selected):hover,
.album-card.is-front.is-hovered:not(.is-selected),
.album-card.is-front:not(.is-selected):focus-visible {
    z-index: 40;
    transform:
        translate3d(-50%, -34px, var(--album-depth))
        rotateX(-10deg)
        scale(var(--album-scale))
        scaleX(var(--album-width-scale));
}

.album-card.is-outside-stack {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.album-card:hover,
.album-card:focus-visible {
    z-index: 40;
    outline: none;
    opacity: 1;
    filter: none;
    box-shadow: 0 30px 64px rgba(18, 18, 18, 0.24);
    transform:
        translate3d(-50%, -16px, var(--album-depth))
        rotateX(-10deg)
        scale(var(--album-scale))
        scaleX(var(--album-width-scale));
}

.album-card.is-selected {
    z-index: 30;
    box-shadow:
        0 0 0 3px var(--accent),
        0 42px 100px rgba(18, 18, 18, 0.36);
    cursor: pointer;
    opacity: 1;
    filter: none;
    transform:
        translate3d(-50%, -42px, 180px)
        rotateX(-12deg)
        scale(1.12);
}

.album-card.is-placeholder {
    border-color: rgba(18, 18, 18, 0.13);
    box-shadow: 0 18px 42px rgba(18, 18, 18, 0.1);
}

:root.dark .album-card.is-placeholder {
    border-color: rgba(255, 255, 255, 0.28);
}

.album-card.is-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.turntable {
    padding: 20px;
    border: 1px solid var(--faint);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(18, 18, 18, 0.09);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.turntable.is-drag-over {
    border-color: var(--accent);
    box-shadow: 0 22px 60px rgba(25, 215, 96, 0.18);
    transform: scale(1.015);
}

.turntable-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.turntable-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 238px;
}

.playing-album-cover {
    position: relative;
    width: 196px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--faint);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 48px rgba(18, 18, 18, 0.24);
    transition: transform 360ms ease, box-shadow 360ms ease;
}

.playing-album-cover.is-playing {
    box-shadow:
        0 0 0 3px var(--accent),
        0 24px 58px rgba(18, 18, 18, 0.3);
    transform: scale(1.025);
}

.album-now-playing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--faint);
}

.album-now-playing span,
.album-now-playing small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.album-now-playing strong {
    display: block;
    margin: 3px 0;
    font-size: 16px;
    line-height: 1.2;
}

.album-play-button {
    min-width: 64px;
    min-height: 40px;
    border: 1px solid var(--faint);
    background: var(--text);
    border-radius: 999px;
    color: var(--bg);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.album-play-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.album-progress {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 9px;
    align-items: center;
    margin-top: 14px;
    color: var(--muted);
    font-size: 9px;
}

.album-progress input {
    width: 100%;
    height: 4px;
    margin: 0;
    appearance: none;
    border-radius: 999px;
    outline: none;
    background:
        linear-gradient(
            to right,
            var(--accent) 0,
            var(--accent) var(--progress, 0%),
            var(--faint) var(--progress, 0%),
            var(--faint) 100%
        );
    cursor: pointer;
}

.album-progress input::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    appearance: none;
    border: 2px solid var(--surface);
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(18, 18, 18, 0.2);
}

.album-progress input::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 2px solid var(--surface);
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(18, 18, 18, 0.2);
}

.meeting-calendar {
    padding: clamp(22px, 4vw, 42px);
    margin-bottom: clamp(44px, 7vw, 78px);
    border: 1px solid var(--faint);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.calendar-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.calendar-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.calendar-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-add-button {
    min-height: 40px;
    padding: 0 16px;
    color: var(--bg);
    background: var(--text);
    border: 1px solid var(--text);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, color 160ms ease, background-color 160ms ease;
}

.calendar-add-button:hover {
    color: var(--text);
    background: var(--accent);
    transform: translateY(-2px);
}

.meeting-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.42fr) minmax(160px, 0.58fr) minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    margin-bottom: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--faint);
    border-radius: 20px;
}

.meeting-form[hidden] {
    display: none;
}

.meeting-form-field {
    display: grid;
    gap: 7px;
}

.meeting-form-field label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.meeting-form input,
.meeting-form textarea,
.meeting-form select {
    width: 100%;
    padding: 11px 12px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--faint);
    border-radius: 11px;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.meeting-form textarea {
    min-height: 42px;
    resize: vertical;
}

.meeting-form input:focus,
.meeting-form textarea:focus,
.meeting-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.meeting-form-actions {
    display: flex;
    gap: 7px;
}

.meeting-form-actions button {
    min-height: 42px;
    padding: 0 13px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--faint);
    border-radius: 11px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.meeting-form-actions .meeting-form-save {
    color: var(--bg);
    background: var(--text);
}

.calendar-add-button--event {
    color: var(--text);
    background: var(--surface);
    border-color: var(--faint);
}

.event-form {
    grid-template-columns: minmax(130px, 0.38fr) minmax(110px, 0.28fr) minmax(180px, 0.72fr) minmax(110px, 0.3fr) minmax(240px, 1fr) auto;
}

.calendar-nav {
    display: grid;
    grid-template-columns: 38px minmax(112px, auto) 38px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--faint);
    border-radius: 999px;
}

.calendar-nav button {
    height: 38px;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.calendar-nav button:hover {
    color: var(--bg);
    background: var(--text);
}

.calendar-nav strong {
    text-align: center;
    font-size: 12px;
}

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
    gap: 18px;
    align-items: stretch;
}

.calendar-sidebar {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
}

.best-friend-card {
    position: relative;
    padding: 20px;
    overflow: hidden;
    color: var(--bg);
    background: var(--text);
    border-radius: 22px;
}

.best-friend-card::after {
    position: absolute;
    top: -34px;
    right: -22px;
    width: 100px;
    height: 100px;
    content: "";
    border: 18px solid color-mix(in srgb, var(--accent) 75%, transparent);
    border-radius: 50%;
}

.best-friend-card span,
.best-friend-card strong,
.best-friend-card p {
    position: relative;
    z-index: 1;
}

.best-friend-card span {
    display: block;
    margin-bottom: 12px;
    color: color-mix(in srgb, var(--bg) 62%, transparent);
    font-size: 10px;
    font-weight: 800;
}

.best-friend-card strong {
    display: block;
    font-size: clamp(19px, 2.2vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.best-friend-card p {
    margin: 8px 0 0;
    color: color-mix(in srgb, var(--bg) 64%, transparent);
    font-size: 11px;
    line-height: 1.55;
}

.calendar-board {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--faint);
    border-radius: 22px;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
    padding: 12px 6px;
    color: var(--muted);
    background: var(--surface-soft);
    border-right: 1px solid var(--faint);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.calendar-weekdays span:last-child {
    border-right: 0;
}

.calendar-day {
    min-width: 0;
    min-height: 104px;
    padding: 10px;
    background: var(--surface);
    border-top: 1px solid var(--faint);
    border-right: 1px solid var(--faint);
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day.is-outside {
    color: var(--muted);
    background: color-mix(in srgb, var(--surface-soft) 58%, transparent);
}

.calendar-day-number {
    display: grid;
    width: 25px;
    height: 25px;
    margin-bottom: 8px;
    place-items: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.calendar-day.is-today .calendar-day-number {
    color: var(--bg);
    background: var(--accent);
}

.meeting-person {
    display: block;
    width: 100%;
    padding: 7px 8px;
    margin-top: 5px;
    overflow: hidden;
    color: var(--text);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 750;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.meeting-person:hover {
    transform: translateY(-2px);
}

.meeting-person:active {
    transform: scale(0.96);
}

.meeting-person.is-active {
    color: var(--bg);
    background: var(--text);
}

.calendar-event {
    display: block;
    width: 100%;
    padding: 6px 8px;
    margin-top: 5px;
    overflow: hidden;
    color: var(--text);
    border: 0;
    border-left: 3px solid currentColor;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 750;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

.calendar-event:hover {
    transform: translateX(2px);
    filter: brightness(0.97);
}

.calendar-event:active {
    transform: scale(0.96);
}

.calendar-event--appointment {
    color: #4d63ce;
    background: color-mix(in srgb, #7287ee 18%, var(--surface));
}

.calendar-event--task {
    color: #d17327;
    background: color-mix(in srgb, #f39a3f 18%, var(--surface));
}

.calendar-event--anniversary {
    color: #d44878;
    background: color-mix(in srgb, #f46e9b 18%, var(--surface));
}

.calendar-event.is-active {
    color: var(--bg);
    background: var(--text);
}

.meeting-note {
    position: relative;
    min-height: 100%;
    padding: 26px;
    overflow: hidden;
    background:
        linear-gradient(145deg, var(--accent-soft), transparent 55%),
        var(--surface-soft);
    border: 1px solid var(--faint);
    border-radius: 22px;
}

.meeting-note::after {
    position: absolute;
    right: -18px;
    bottom: -28px;
    width: 110px;
    height: 110px;
    content: "";
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 50%;
}

.meeting-note-date {
    color: var(--accent);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.meeting-note h3 {
    position: relative;
    z-index: 1;
    margin: 16px 0 12px;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.16;
    letter-spacing: -0.045em;
}

.meeting-note p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
}

.delete-record-button {
    position: relative;
    z-index: 2;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, #ef4b46 55%, var(--faint));
    border-radius: 99px;
    color: #d73d38;
    background: color-mix(in srgb, #ef4b46 7%, var(--surface));
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.delete-record-button:hover {
    color: #fff;
    background: #ef4b46;
    transform: translateY(-1px);
}

.edit-post-button {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 46%, var(--faint));
}

.edit-post-button:hover {
    color: var(--bg);
    background: var(--accent);
}

.delete-record-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.meeting-note .delete-record-button {
    margin-top: 24px;
}

.meeting-note.is-opening {
    animation: meetingNoteIn 360ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    padding: 24px;
    overflow-y: auto;
    place-items: center;
    background: rgba(10, 11, 10, 0.72);
    backdrop-filter: blur(14px);
}

.admin-modal {
    position: relative;
    width: min(1080px, 100%);
    max-height: calc(100vh - 48px);
    padding: clamp(24px, 4vw, 46px);
    overflow-y: auto;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--faint);
    border-radius: 30px;
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.36);
}

.admin-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--faint);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

.admin-auth-view {
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 24px 0;
}

.admin-auth-view h2,
.post-editor-heading h2 {
    margin: 8px 0 12px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.admin-auth-view > p:not(.section-kicker, .admin-auth-error, .admin-security-note) {
    color: var(--muted);
    line-height: 1.7;
}

.admin-auth-form {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.admin-auth-form label,
.post-editor-grid label > span,
.rich-editor-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.admin-auth-form input,
.post-editor-grid input,
.post-editor-grid textarea,
.post-editor-grid select {
    width: 100%;
    padding: 12px 13px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--faint);
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.admin-auth-form input:focus,
.post-editor-grid input:focus,
.post-editor-grid textarea:focus,
.post-editor-grid select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.admin-auth-error,
.post-editor-status {
    min-height: 20px;
    margin: 2px 0;
    color: #e55757;
    font-size: 12px;
}

.admin-security-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.admin-primary-button {
    min-height: 48px;
    padding: 0 20px;
    color: var(--bg);
    background: var(--text);
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.post-editor-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-right: 42px;
}

.admin-logout-button {
    padding: 9px 13px;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--faint);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.post-editor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.post-editor-grid label {
    display: grid;
    gap: 7px;
    align-content: start;
}

.post-editor-grid textarea {
    resize: vertical;
}

.post-editor-grid small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.post-editor-wide {
    grid-column: span 2;
}

.rich-editor-block {
    margin: 26px 0;
}

.rich-editor-label {
    display: block;
    margin-bottom: 8px;
}

.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px;
    background: var(--surface-soft);
    border: 1px solid var(--faint);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
}

.rich-toolbar button,
.rich-color-control {
    min-height: 34px;
    padding: 0 10px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--faint);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 750;
}

.rich-toolbar button {
    cursor: pointer;
}

.rich-toolbar button:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.rich-color-control {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rich-color-control input {
    width: 22px;
    height: 22px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
}

.rich-editor-hint {
    margin: 8px 0 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.rich-editor {
    min-height: 380px;
    padding: clamp(18px, 3vw, 34px);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--faint);
    border-radius: 0 0 14px 14px;
    font-size: 18px;
    line-height: 1.85;
    outline: none;
}

.rich-editor:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.rich-editor:empty::before {
    color: var(--muted);
    content: attr(data-placeholder);
    pointer-events: none;
}

.rich-editor h2,
.rich-editor h3 {
    letter-spacing: -0.045em;
}

.rich-editor blockquote {
    padding-left: 18px;
    margin-left: 0;
    border-left: 3px solid var(--accent);
}

.rich-inline-image {
    position: relative;
    clear: both;
    margin: 34px auto;
}

.rich-inline-image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(18, 18, 18, 0.13);
}

.rich-inline-image--small {
    width: min(420px, 100%);
}

.rich-inline-image--normal {
    width: min(680px, 100%);
}

.rich-inline-image--wide {
    width: 100%;
}

.rich-inline-image--left {
    margin-right: auto;
    margin-left: 0;
}

.rich-inline-image--center {
    margin-right: auto;
    margin-left: auto;
}

.rich-inline-image--right {
    margin-right: 0;
    margin-left: auto;
}

.rich-image-tools {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: calc(100% - 24px);
    padding: 7px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--faint));
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(18, 18, 18, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(14px);
}

.rich-inline-image:hover .rich-image-tools,
.rich-inline-image:focus-within .rich-image-tools {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.rich-image-tools button {
    min-height: 26px;
    padding: 0 8px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--faint);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.rich-image-tools button:hover {
    color: var(--bg);
    background: var(--accent);
}

.rich-inline-image figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

.post-editor-bottom-grid {
    grid-template-columns: 1fr 1fr;
}

.post-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--faint);
}

.post-editor-actions > button {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

#post-editor-cancel {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--faint);
}

.rich-post-content {
    color: color-mix(in srgb, var(--text) 88%, transparent);
    font-size: clamp(17px, 1.75vw, 19px);
    line-height: 1.95;
    letter-spacing: -0.018em;
    word-break: keep-all;
}

.rich-post-content p,
.rich-post-content div {
    margin: 0 0 30px;
}

.rich-post-content [style] {
    background: transparent !important;
    background-color: transparent !important;
}

.rich-post-content h2,
.rich-post-content h3 {
    margin: 50px 0 20px;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.045em;
}

.rich-post-content h2 {
    font-size: clamp(28px, 5vw, 42px);
}

.rich-post-content h3 {
    font-size: clamp(22px, 4vw, 30px);
}

.rich-post-content blockquote {
    padding: 4px 0 4px 22px;
    margin: 42px 0;
    border-left: 3px solid var(--accent);
    font-size: 1.18em;
    font-weight: 650;
}

.rich-post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.rich-post-content .rich-inline-image {
    margin-top: 46px;
    margin-bottom: 46px;
}

.rich-post-content .rich-inline-image--small {
    width: min(440px, 100%);
}

.rich-post-content .rich-inline-image--normal {
    width: min(760px, 100%);
}

.rich-post-content .rich-inline-image--wide {
    width: min(980px, calc(100vw - 32px));
}

.rich-post-content .rich-inline-image--left {
    margin-right: auto;
    margin-left: 0;
}

.rich-post-content .rich-inline-image--center {
    margin-right: auto;
    margin-left: auto;
}

.rich-post-content .rich-inline-image--right {
    margin-right: 0;
    margin-left: auto;
}

.rich-post-content .rich-inline-image img {
    display: block;
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 22px 58px rgba(18, 18, 18, 0.13);
}

@keyframes meetingNoteIn {
    from {
        opacity: 0.5;
        transform: translateY(8px) scale(0.985);
    }
}

.filter-console,
.archive-block {
    margin-bottom: clamp(44px, 7vw, 78px);
}

.filter-console {
    position: relative;
    z-index: 5;
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--faint);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-radius: 18px;
    opacity: 1 !important;
    transform: none !important;
}

.mood-filter-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.mood-tag {
    padding: 10px 16px;
    border-color: color-mix(in srgb, var(--accent) 24%, var(--faint));
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 12px transparent;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 110ms ease;
}

.mood-tag:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--surface) 78%, var(--accent) 22%);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 18%, transparent);
    transform: translateY(-2px);
}

.mood-tag:active {
    box-shadow: 0 2px 7px color-mix(in srgb, var(--accent) 15%, transparent);
    transform: translateY(0) scale(0.94);
}

.mood-tag.is-active {
    color: #081109;
    background: var(--accent);
    border-color: transparent;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 24%, transparent);
}

.mood-tag.is-active:hover {
    background: color-mix(in srgb, var(--accent) 88%, white 12%);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.section-heading::after {
    flex: 1;
    height: 1px;
    content: "";
    background: var(--faint);
}

.section-heading span,
.section-heading h2 {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: -0.01em;
}

.section-heading h2 {
    color: var(--text);
}

.route-panel {
    overflow-x: auto;
    padding: 44px 30px;
    border-radius: var(--radius-lg);
}

.route-rail {
    position: relative;
    display: flex;
    align-items: center;
    min-width: max-content;
}

.route-node {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 118px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.route-node::before {
    width: 18px;
    height: 18px;
    margin: 12px 0;
    content: "";
    border: 2px solid var(--node-accent);
    background: var(--surface);
    border-radius: 50%;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--node-accent) 14%, transparent);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.route-node:hover::before {
    transform: scale(1.16);
    box-shadow: 0 0 0 13px color-mix(in srgb, var(--node-accent) 16%, transparent);
}

.route-node.is-scheduled {
    cursor: not-allowed;
    opacity: 0.56;
    filter: grayscale(0.42);
}

.route-node.is-scheduled::before {
    border-style: dashed;
    background: color-mix(in srgb, var(--surface) 80%, var(--bg));
}

.route-wire {
    width: clamp(58px, 8vw, 104px);
    height: 1px;
    background: linear-gradient(90deg, var(--node-accent), var(--faint));
}

.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 24px;
}

.map-panel {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: #d9e3dd;
    border-radius: var(--radius-lg);
}

.map-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition: opacity 360ms ease;
}

.map-background-light {
    z-index: 0;
    opacity: 1;
    filter: saturate(0.82) contrast(0.94) brightness(1.03);
}

.map-background-dark {
    z-index: 0;
    opacity: 0;
    filter: saturate(0.92) contrast(1.02) brightness(0.92);
}

.map-panel::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(15, 16, 15, 0.18), transparent 32%),
        color-mix(in srgb, var(--surface) 7%, transparent);
}

:root.dark .map-background-light {
    opacity: 0;
}

:root.dark .map-background-dark {
    opacity: 1;
}

:root.dark .map-panel::after {
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent 38%),
        rgba(15, 16, 15, 0.04);
}

.map-contours {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    color: var(--text);
    opacity: 0.035;
    animation: mapDrift 18s ease-in-out infinite alternate;
}

.map-contours path,
.map-contours line {
    stroke: currentColor;
    stroke-width: 1;
    stroke-dasharray: 8 10;
}

.radar-sweep {
    position: absolute;
    inset: -20%;
    z-index: 2;
    background: conic-gradient(from 130deg, transparent 0 70%, rgba(25, 215, 96, 0.13), transparent 84% 100%);
    animation: rotateSweep 12s linear infinite;
}

.memory-map {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.map-marker {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
}

.map-marker.is-scheduled {
    cursor: not-allowed;
    opacity: 0.56;
    filter: grayscale(0.42);
}

.map-marker.is-scheduled .map-marker-dot {
    border-style: dashed;
}

.map-marker-dot {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--surface);
    background: var(--node-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--node-accent) 18%, transparent);
}

.map-marker-dot::after {
    position: absolute;
    inset: -12px;
    content: "";
    border: 1px solid var(--node-accent);
    border-radius: 50%;
    animation: pulseRing 1.8s ease-out infinite;
}

.marker-label {
    position: absolute;
    left: 24px;
    top: 50%;
    min-width: 150px;
    padding: 10px 12px;
    border: 1px solid var(--faint);
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-8px, -50%);
    transition: opacity 180ms ease, transform 180ms ease;
}

.map-marker:hover .marker-label {
    opacity: 1;
    transform: translate(0, -50%);
}

.marker-label span {
    display: block;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: -0.01em;
}

.marker-label strong {
    display: block;
    margin-top: 3px;
    font-size: 13px;
}

.map-legend {
    position: absolute;
    left: 20px;
    bottom: 18px;
    z-index: 4;
    margin: 0;
    color: rgba(18, 18, 18, 0.72);
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

:root.dark .map-legend {
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.music-panel {
    display: flex;
    min-height: 460px;
    flex-direction: column;
    padding: 22px;
    border-radius: var(--radius-lg);
}

.music-track-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    overflow: auto;
}

.track-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    text-align: left;
}

.track-button {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
}

.track-button:hover,
.track-button.is-active {
    border-color: var(--node-accent);
    background: color-mix(in srgb, var(--node-accent) 12%, var(--surface));
}

.track-button.is-coming-soon {
    border-style: dashed;
}

.track-cover {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--node-accent) 32%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--node-accent) 9%, var(--surface));
    color: var(--muted);
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-cover em {
    font-style: normal;
    font-size: 15px;
}

.track-copy {
    min-width: 0;
}

.track-button strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-copy,
.track-button small {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: -0.01em;
}

.track-button small {
    display: block;
    margin-top: 4px;
}

.music-frequency-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 18px;
    margin-top: auto;
    border-top: 1px solid var(--faint);
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: -0.01em;
}

.music-frequency-card button {
    margin-left: auto;
    border: 0;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.signal-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--accent-soft);
}

.chronicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.chronicle-card {
    display: flex;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    border-radius: var(--radius-lg);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.chronicle-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--node-accent) 65%, var(--faint));
    box-shadow: 0 28px 90px rgba(18, 18, 18, 0.13);
}

.chronicle-card--scheduled {
    cursor: not-allowed;
}

.chronicle-card--scheduled .card-image img {
    filter: grayscale(0.35) saturate(0.62) brightness(0.72);
}

.chronicle-card--scheduled .card-body {
    opacity: 0.72;
}

.chronicle-card--scheduled:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 48px rgba(18, 18, 18, 0.09);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92);
    transform: scale(1.01);
    transition: transform 900ms ease, filter 900ms ease;
}

.chronicle-card:hover img {
    filter: saturate(1.05);
    transform: scale(1.06);
}

.card-image span,
.post-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.card-image span {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    padding: 7px 10px;
    color: #081109;
    background: var(--node-accent);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: -0.01em;
}

.card-body h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.card-body p {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.72;
}

.card-song {
    padding-top: 18px;
    margin-top: auto;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: -0.01em;
}

.card-image--private {
    display: grid;
    place-items: center;
    color: color-mix(in srgb, var(--node-accent) 92%, white);
    background:
        radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--node-accent) 22%, transparent), transparent 34%),
        linear-gradient(135deg, #121720, #202838);
}

.card-image--private img {
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: saturate(0.9) contrast(0.96) brightness(0.72);
}

.card-image--private::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background:
        linear-gradient(180deg, rgba(8, 12, 16, 0.08), rgba(8, 12, 16, 0.5)),
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle, black, transparent 74%);
}

.card-image--private > small {
    position: absolute;
    z-index: 2;
    bottom: 17px;
    left: 18px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.private-card-lock,
.private-lock-symbol {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
}

.private-card-lock {
    width: 66px;
    height: 56px;
    border: 1px solid currentColor;
    border-radius: 14px;
    box-shadow: 0 0 0 9px color-mix(in srgb, currentColor 8%, transparent);
}

.private-card-lock::before {
    position: absolute;
    bottom: 42px;
    width: 31px;
    height: 28px;
    border: 1px solid currentColor;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    content: "";
}

.private-card-lock span,
.private-lock-symbol span {
    width: 7px;
    height: 12px;
    border-radius: 99px;
    background: currentColor;
}

.private-post-view {
    padding: clamp(34px, 7vw, 78px) 0;
}

.private-post-header {
    padding: clamp(26px, 5vw, 52px);
    margin-bottom: clamp(22px, 4vw, 36px);
    overflow: hidden;
    border: 1px solid var(--faint);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 88% 12%, var(--accent-soft), transparent 30%),
        var(--surface);
    box-shadow: var(--shadow);
}

.private-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--faint);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.private-post-lock-badge {
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--faint));
    border-radius: 99px;
    color: var(--accent);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.private-post-header h1 {
    max-width: 780px;
    margin: 10px 0 20px;
    font-size: clamp(44px, 8vw, 82px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.private-lock-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(270px, 360px);
    gap: clamp(20px, 4vw, 42px);
    align-items: center;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--faint);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.private-lock-symbol {
    width: 86px;
    height: 74px;
    border: 1px solid var(--accent);
    border-radius: 19px;
    color: var(--accent);
    box-shadow: 0 0 0 12px var(--accent-soft);
}

.private-lock-symbol::before {
    position: absolute;
    bottom: 57px;
    width: 42px;
    height: 37px;
    border: 1px solid var(--accent);
    border-bottom: 0;
    border-radius: 23px 23px 0 0;
    content: "";
}

.private-lock-copy h2,
.private-reader-heading h2,
.private-reply-gate h2,
.private-reply-reader > header h2 {
    margin: 6px 0 0;
    letter-spacing: -0.055em;
}

.private-lock-copy h2 {
    font-size: clamp(25px, 3.2vw, 38px);
}

.private-password-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.private-password-form > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.private-password-form input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid var(--faint);
    border-radius: 13px;
    color: var(--text);
    background: var(--bg);
    font: inherit;
    outline: none;
}

.private-password-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.private-password-form button,
.private-reply-link {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--accent);
    border-radius: 13px;
    color: #0b160e;
    background: var(--accent);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.private-password-form button:hover,
.private-reply-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 24%, transparent);
}

.private-password-form button:disabled {
    cursor: wait;
    opacity: 0.58;
}

.private-password-form > p {
    min-height: 1.5em;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.private-password-form > p[data-state="error"] {
    color: #e55b64;
}

.private-reader {
    padding-top: 14px;
}

.private-reader-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--faint);
}

.private-reader-heading h2 {
    font-size: clamp(28px, 4vw, 48px);
}

.private-reader-heading > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.private-content-note {
    padding: 14px 16px;
    margin: 18px 0 30px;
    border-left: 3px solid var(--accent);
    color: var(--muted);
    background: var(--surface);
    font-size: 11px;
    line-height: 1.65;
}

.private-song-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(20px, 4vw, 30px);
    margin: 0 0 32px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
        var(--surface);
    border: 1px solid var(--faint);
    border-radius: 28px;
    box-shadow: 0 18px 58px rgba(18, 18, 18, 0.08);
}

.private-song-card h2 {
    margin: 4px 0 8px;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.private-song-card p:not(.section-kicker) {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.private-song-card .primary-button.is-playing {
    color: var(--bg);
    background: var(--accent);
}

.private-book-showcase {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
    padding: clamp(28px, 5vw, 48px);
    margin: 28px 0 clamp(54px, 8vw, 86px);
    overflow: hidden;
    border: 1px solid var(--faint);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 20% 18%, var(--accent-soft), transparent 34%),
        linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--bg) 74%, var(--surface)));
    box-shadow: var(--shadow);
}

.private-book-display {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.private-book-stage {
    position: relative;
    display: grid;
    width: min(100%, 360px);
    min-height: clamp(330px, 42vw, 450px);
    place-items: center;
    border-radius: 28px;
    cursor: grab;
    perspective: 1200px;
    touch-action: none;
}

.private-book-stage::before,
.private-book-stage::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.private-book-stage::before {
    inset: 11% 4% 4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 18, 18, 0.16), transparent 62%);
    filter: blur(18px);
    transform: translateY(62%);
}

.private-book-stage::after {
    inset: 12px;
    border: 1px dashed color-mix(in srgb, var(--accent) 32%, transparent);
    border-radius: 26px;
    opacity: 0.7;
}

.private-book-stage:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.private-book-stage.is-dragging {
    cursor: grabbing;
}

.private-book-object {
    position: relative;
    z-index: 1;
    width: var(--book-width);
    height: var(--book-height);
    transform:
        rotateX(var(--book-rotate-x))
        rotateY(var(--book-rotate-y));
    transform-origin: center center;
    transform-style: preserve-3d;
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 280ms ease;
    will-change: transform;
}

.private-book-stage.is-dragging .private-book-object {
    transition: filter 180ms ease;
    filter: saturate(1.04);
}

.private-book-canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 330px);
    height: clamp(320px, 40vw, 430px);
    min-height: 320px;
    filter: drop-shadow(0 22px 32px rgba(18, 18, 18, 0.18));
    opacity: 1;
    pointer-events: none;
    user-select: none;
}

.private-book-fallback {
    z-index: 1;
    max-width: 220px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

.private-book-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.private-book-controls button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--faint);
    border-radius: 999px;
    color: var(--text);
    background: var(--surface);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.private-book-controls button:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.private-book-controls button:active {
    transform: translateY(0) scale(0.97);
}

.private-book-copy {
    min-width: 0;
}

.private-book-copy h2 {
    margin: 10px 0 22px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.private-book-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 28px;
}

.private-book-meta div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--faint);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.private-book-meta dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.private-book-meta dd {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    word-break: keep-all;
}

.private-book-meta a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.private-book-synopsis {
    display: grid;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--faint);
}

.private-book-synopsis h3 {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.private-book-synopsis p {
    max-width: 680px;
    margin: 0;
    font-size: clamp(15.5px, 1.55vw, 17px);
    font-weight: 450;
    line-height: 1.9;
    letter-spacing: -0.012em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.private-main-text {
    display: grid;
    gap: clamp(58px, 9vw, 96px);
    width: min(100%, 780px);
    margin: 0 auto;
}

.private-main-section {
    display: grid;
    gap: 28px;
}

.private-main-section > header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--faint);
}

.private-main-section > header span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 9px;
    font-weight: 900;
}

.private-main-section h3 {
    margin: 0;
    font-size: clamp(27px, 4.4vw, 46px);
    line-height: 1.13;
    letter-spacing: -0.055em;
}

.private-main-section > div {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--faint);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 18px 55px rgba(18, 18, 18, 0.055);
}

.private-main-section p {
    margin: 0;
    font-size: clamp(16.5px, 1.85vw, 18.5px);
    font-weight: 450;
    line-height: 1.96;
    letter-spacing: -0.017em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.private-main-section p + p {
    margin-top: 1.55em;
}

.character-chip {
    --character-color: var(--accent);
    position: relative;
    display: inline;
    padding: 0;
    color: color-mix(in srgb, var(--character-color) 84%, var(--text));
    background: transparent;
    font-weight: 800;
    text-decoration: none;
    cursor: help;
    transition: color 160ms ease, opacity 160ms ease;
}

.character-chip:hover,
.character-chip:focus-visible,
.character-chip.is-open {
    color: color-mix(in srgb, var(--character-color) 92%, var(--text));
    background: transparent;
    outline: 0;
}

.character-card {
    position: absolute;
    bottom: calc(100% + 13px);
    left: 50%;
    z-index: 40;
    display: grid;
    width: min(300px, calc(100vw - 38px));
    gap: 8px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--character-color) 48%, var(--faint));
    border-radius: 18px;
    color: var(--text);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--character-color) 12%, transparent), transparent 52%),
        var(--surface);
    box-shadow: 0 18px 44px rgba(18, 18, 18, 0.16);
    font-style: normal;
    line-height: 1.62;
    letter-spacing: -0.015em;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    text-indent: 0;
    transform: translate(-50%, 8px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.character-chip:hover .character-card,
.character-chip:focus-visible .character-card,
.character-chip.is-open .character-card {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

.character-card::after {
    position: absolute;
    bottom: -7px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-right: 1px solid color-mix(in srgb, var(--character-color) 48%, var(--faint));
    border-bottom: 1px solid color-mix(in srgb, var(--character-color) 48%, var(--faint));
    background: var(--surface);
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.character-card strong {
    color: var(--character-color);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.character-card small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
}

.character-card > span {
    color: color-mix(in srgb, var(--text) 84%, transparent);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.72;
}

.private-reply-gate {
    margin-top: clamp(52px, 8vw, 90px);
    border: 1px solid var(--faint);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.private-reply-gate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(24px, 4vw, 38px);
}

.private-reply-gate h2 {
    font-size: clamp(27px, 4vw, 46px);
}

.private-reply-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.private-reply-view {
    padding: clamp(34px, 7vw, 78px) 0;
}

.private-reply-page-header {
    padding: clamp(28px, 5vw, 54px);
    margin-bottom: clamp(24px, 4vw, 38px);
    overflow: hidden;
    border: 1px solid var(--faint);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, var(--accent-soft), transparent 48%),
        var(--surface);
    box-shadow: var(--shadow);
}

.private-reply-page-header h1 {
    max-width: 830px;
    margin: 12px 0 0;
    font-size: clamp(42px, 7.2vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.private-reply-reader {
    margin-top: 0;
}

.private-reply-reader > header {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--faint);
}

.private-reply-reader > header h2 {
    max-width: 780px;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.05;
}

.private-reply-sections {
    display: grid;
    gap: clamp(54px, 9vw, 94px);
    padding: clamp(42px, 7vw, 74px) 0;
}

.private-reply-section {
    display: grid;
    gap: 24px;
}

.private-reply-section > header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.private-reply-section > header > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 9px;
    font-weight: 900;
}

.private-reply-section h3 {
    margin: 0;
    font-size: clamp(25px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.055em;
}

.private-reply-section > header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.private-reply-source,
.private-reply-response {
    position: relative;
    margin: 0;
    border-radius: 20px;
}

.private-reply-source {
    padding: clamp(6px, 1.8vw, 14px) clamp(8px, 3vw, 24px);
    border: 0;
    border-left: 1px solid color-mix(in srgb, var(--muted) 20%, transparent);
    color: color-mix(in srgb, var(--text) 30%, var(--bg));
    background: color-mix(in srgb, var(--bg) 42%, transparent);
    filter: saturate(0.62);
    opacity: 0.72;
}

.private-reply-response {
    padding: clamp(34px, 5vw, 58px) clamp(20px, 4vw, 46px);
    border: 0;
    border-left: 2px solid color-mix(in srgb, var(--accent) 58%, transparent);
    border-radius: 0 24px 24px 0;
    color: var(--text);
    background:
        linear-gradient(90deg, var(--accent-soft), transparent 34%),
        color-mix(in srgb, var(--surface) 72%, transparent);
    box-shadow: none;
}

.private-reply-response > div {
    width: min(100%, 620px);
    margin: 0 auto;
}

.private-reply-source p,
.private-reply-response p {
    margin: 0;
    white-space: pre-wrap;
}

.private-reply-source p + p,
.private-reply-response p + p {
    margin-top: 2.55em;
}

.private-reply-source p {
    font-size: clamp(13px, 1.45vw, 14.5px);
    font-weight: 420;
    line-height: 1.9;
    letter-spacing: -0.002em;
    word-spacing: 0.018em;
}

.private-reply-response p {
    font-size: clamp(17.2px, 1.72vw, 18.6px);
    font-weight: 450;
    line-height: 2.28;
    letter-spacing: -0.002em;
    word-spacing: 0.035em;
    text-indent: 0.9em;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

.private-reply-response .private-reply-postscript {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    width: min(100%, 620px);
    padding: clamp(26px, 4vw, 36px);
    margin: clamp(48px, 7vw, 74px) 0 0 auto;
    isolation: isolate;
    overflow: hidden;
    border: 1px dashed color-mix(in srgb, var(--accent) 46%, var(--line));
    border-left: 6px solid color-mix(in srgb, var(--accent) 72%, #ffffff);
    border-radius: 10px 26px 26px 10px;
    color: color-mix(in srgb, var(--text) 84%, var(--accent));
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.24) 38%, transparent 68%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 6px),
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent) 0 1px, transparent 1px 7px),
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 36%),
        linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 92%, #ffffff), color-mix(in srgb, var(--surface) 88%, var(--bg)));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.76) inset,
        0 -18px 34px rgba(18, 18, 18, 0.035) inset,
        0 22px 54px rgba(18, 18, 18, 0.13);
    transform: rotate(-0.7deg);
}

.private-reply-response .private-reply-postscript::before {
    position: absolute;
    z-index: 2;
    top: -16px;
    right: 24px;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--bg);
    background: var(--accent);
    content: "afterthought";
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.private-reply-response .private-reply-postscript::after {
    position: absolute;
    right: -1px;
    bottom: -1px;
    z-index: 0;
    width: 74px;
    height: 74px;
    border-top: 1px dashed color-mix(in srgb, var(--accent) 28%, var(--line));
    border-left: 1px dashed color-mix(in srgb, var(--accent) 28%, var(--line));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--bg) 20%, transparent), color-mix(in srgb, var(--accent-soft) 76%, #ffffff));
    box-shadow: -10px -10px 22px rgba(18, 18, 18, 0.06);
    content: "";
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: 0.92;
}

.private-reply-postscript > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent);
    border-radius: 50%;
    color: var(--bg);
    background: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.private-reply-response .private-reply-postscript > p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(15.8px, 1.65vw, 17.2px);
    font-style: italic;
    font-weight: 520;
    line-height: 2.08;
    letter-spacing: 0.002em;
    text-indent: 0;
}

.private-reply-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(8, 10, 13, 0.72);
    backdrop-filter: blur(16px);
}

.private-reply-auth-modal {
    position: relative;
    display: grid;
    width: min(100%, 500px);
    gap: 18px;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--faint));
    border-radius: 28px;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 12%, var(--accent-soft), transparent 36%),
        var(--surface);
    box-shadow: 0 36px 110px rgba(0, 0, 0, 0.34);
}

.private-reply-auth-modal .private-lock-symbol {
    width: 68px;
    height: 58px;
    margin-bottom: 8px;
}

.private-reply-auth-modal .private-lock-symbol::before {
    bottom: 44px;
    width: 34px;
    height: 30px;
}

.private-reply-auth-modal h2 {
    margin: -10px 0 10px;
    font-size: clamp(28px, 5vw, 42px);
    letter-spacing: -0.055em;
}

.private-reply-auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--faint);
    border-radius: 50%;
    color: var(--text);
    background: var(--bg);
    font-size: 20px;
    cursor: pointer;
}

:root.dark .card-image--private {
    background:
        radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--node-accent) 20%, transparent), transparent 34%),
        linear-gradient(135deg, #10141c, #1a2230);
}

:root.dark .private-reply-source {
    color: rgba(233, 232, 227, 0.34);
    background: rgba(255, 255, 255, 0.025);
    filter: saturate(0.55);
}

.post-view {
    padding: clamp(34px, 7vw, 78px) 0;
}

.post-header {
    display: flow-root;
}

.post-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 18px auto;
}

.edit-post-button,
.delete-post-button {
    display: block;
}

.back-link {
    display: inline-flex;
    margin-bottom: 34px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.back-link:hover {
    color: var(--accent);
}

.post-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--faint);
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: -0.01em;
}

.post-header h1 {
    margin: 22px 0 18px;
    font-size: clamp(44px, 8vw, 86px);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.post-title-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: start;
    margin: 22px 0 18px;
}

.post-title-layout.has-recipes {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

.post-title-layout h1 {
    margin: 0;
}

.travel-recipe-card {
    align-self: start;
    padding: 0;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 38%),
        linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 84%, transparent), var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--faint));
    border-radius: 24px;
    box-shadow: 0 18px 42px color-mix(in srgb, var(--accent) 10%, transparent);
}

.travel-recipe-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 76px;
    padding: 16px 18px;
    color: var(--text);
    background: transparent;
    border: 0;
    font-family: var(--font-sans);
    text-align: left;
    cursor: pointer;
}

.travel-recipe-toggle span {
    display: grid;
    gap: 5px;
}

.travel-recipe-toggle small {
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.14em;
}

.travel-recipe-toggle strong {
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.travel-recipe-toggle em {
    flex: 0 0 auto;
    padding: 8px 11px;
    color: var(--bg);
    background: var(--accent);
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
}

.travel-recipe-toggle:hover strong {
    color: var(--accent);
}

.travel-recipe-panel {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
    animation: recipe-panel-in 220ms ease both;
}

.travel-recipe-panel[hidden] {
    display: none;
}

@keyframes recipe-panel-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.travel-recipe-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.travel-recipe-tabs button {
    min-height: 34px;
    padding: 0 11px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--faint);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.travel-recipe-tabs button:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--faint));
}

.travel-recipe-tabs button.is-active {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
}

.travel-recipe-detail {
    display: grid;
    gap: 10px;
}

.travel-recipe-detail strong {
    font-size: 15px;
    letter-spacing: -0.03em;
}

.travel-recipe-detail > span,
.travel-recipe-detail p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.travel-recipe-detail dl {
    display: grid;
    gap: 9px;
    margin: 0;
}

.travel-recipe-detail dl > div {
    display: grid;
    gap: 4px;
    padding: 10px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    border: 1px solid var(--faint);
    border-radius: 15px;
}

.travel-recipe-detail dt {
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
}

.travel-recipe-detail dd {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.65;
}

.travel-recipe-detail ol {
    padding-left: 18px;
    margin: 0;
}

.travel-recipe-detail li + li {
    margin-top: 4px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.post-tags span {
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--faint);
}

.post-hero {
    height: clamp(360px, 60vw, 620px);
    margin: 42px 0;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ambient-player {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 24px;
    margin-bottom: 46px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.post-song-progress {
    position: relative;
    z-index: 1;
    display: grid;
    grid-column: 2 / -1;
    grid-template-columns: auto minmax(100px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.post-song-progress[hidden] {
    display: none;
}

.post-song-progress time {
    color: var(--muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.post-song-progress input {
    --progress: 0%;
    width: 100%;
    height: 4px;
    appearance: none;
    background: linear-gradient(90deg, var(--accent) var(--progress), var(--faint) var(--progress));
    border-radius: 999px;
    cursor: pointer;
}

.post-song-progress input::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    appearance: none;
    background: var(--text);
    border: 2px solid var(--bg);
    border-radius: 50%;
}

.ambient-player::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%);
    opacity: 0.8;
    pointer-events: none;
}

.record-wrap,
.ambient-copy,
.ambient-controls {
    position: relative;
    z-index: 1;
}

.record-wrap {
    --player-orbit-radius: 31px;
    position: relative;
    width: 72px;
    height: 72px;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
}

.vinyl-disc.is-playing {
    animation: spin 5s linear infinite;
}

.vinyl-disc circle {
    stroke-width: 0.8;
}

.player-active-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    margin: -5.5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent),
        0 0 18px color-mix(in srgb, var(--accent) 55%, transparent);
    opacity: 0;
    transform: rotate(0deg) translateX(var(--player-orbit-radius)) scale(0.5);
    transition: opacity 180ms ease;
}

.player-active-dot.is-active {
    opacity: 1;
    animation: playerOrbit 5s linear infinite;
}

.ambient-copy h2 {
    margin: 4px 0;
    font-family: var(--font-sans);
    font-size: 23px;
    line-height: 1.3;
}

.ambient-copy p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.ambient-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.primary-button {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--bg);
    background: var(--text);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.soundwave-viz {
    display: flex;
    align-items: end;
    gap: 3px;
    width: 34px;
    height: 28px;
}

.soundwave-viz[hidden] {
    display: none;
}

.soundwave-viz span {
    width: 4px;
    background: var(--accent);
    border-radius: 99px;
    animation: wave 700ms ease-in-out infinite alternate;
}

.soundwave-viz span:nth-child(1) {
    height: 12px;
}

.soundwave-viz span:nth-child(2) {
    height: 22px;
    animation-delay: 120ms;
}

.soundwave-viz span:nth-child(3) {
    height: 16px;
    animation-delay: 220ms;
}

.soundwave-viz span:nth-child(4) {
    height: 26px;
    animation-delay: 80ms;
}

.journal-body {
    width: min(100%, 720px);
    margin: 0 auto 64px;
}

.journal-body p {
    margin: 0 0 30px;
    color: color-mix(in srgb, var(--text) 88%, transparent);
    font-family: var(--font-sans);
    font-size: clamp(17px, 1.75vw, 19px);
    font-weight: 450;
    line-height: 1.95;
    letter-spacing: -0.018em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.journal-image {
    width: 100%;
    margin: 44px 0;
}

.journal-image--wide {
    width: min(920px, calc(100vw - 32px));
    margin-left: 50%;
    transform: translateX(-50%);
}

.journal-image img,
.journal-image-grid img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.journal-image figcaption,
.journal-image-grid figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.journal-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 44px 0;
}

.journal-image-grid figure {
    margin: 0;
}

.journal-image-grid img {
    aspect-ratio: 4 / 5;
}

.journal-body blockquote {
    padding: 4px 0 4px 22px;
    margin: 42px 0;
    color: var(--text);
    border-left: 3px solid var(--accent);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.55;
}

.post-gallery-block {
    margin-bottom: 58px;
}

.post-gallery-block h2 {
    margin: 0 0 18px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: -0.01em;
}

.post-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gallery-item {
    height: 320px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.gallery-item:first-child {
    grid-column: 1 / -1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memory-capsule {
    position: relative;
    padding: 34px;
    margin-bottom: 54px;
    border-style: dashed;
    border-radius: var(--radius-lg);
}

.memory-capsule span {
    position: absolute;
    top: -13px;
    left: 24px;
    padding: 7px 10px;
    color: var(--bg);
    background: var(--text);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.memory-capsule h2 {
    margin: 0 0 12px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: -0.01em;
}

.memory-capsule p {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.72;
}

.post-response-board {
    width: min(100%, 820px);
    padding: clamp(24px, 4vw, 38px);
    margin: 0 auto 56px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
        var(--surface);
    border: 1px solid var(--faint);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.post-response-heading {
    margin-bottom: 22px;
}

.post-response-heading h2 {
    margin: 6px 0 8px;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.post-response-heading > p:not(.section-kicker) {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.reaction-row {
    display: grid;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

.reaction-row button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 72px;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28%),
        linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 90%, transparent), var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--faint));
    border-radius: 24px 24px 10px 10px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.like-heart {
    position: relative;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--accent);
}

.like-heart::after {
    position: absolute;
    inset: 6px;
    content: "";
    background: var(--accent);
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.45);
}

.like-heart svg {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    overflow: visible;
}

.like-heart path {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linejoin: round;
    stroke-linecap: round;
    transform-origin: center;
    transition: fill 220ms ease, stroke 220ms ease, transform 220ms cubic-bezier(.2, 1.55, .34, 1);
}

.reaction-row button em {
    color: var(--text);
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.reaction-row button strong {
    display: block;
    color: var(--accent);
    min-width: 34px;
    padding: 6px 10px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: 999px;
    font-size: 12px;
    text-align: center;
}

.reaction-row button:hover {
    border-color: color-mix(in srgb, var(--accent) 58%, var(--faint));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 13%, transparent);
    transform: translateY(-3px);
}

.reaction-row button:active {
    transform: scale(0.96);
}

.reaction-row button.is-reacted {
    color: var(--text);
    background:
        radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 30%),
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
    border-color: var(--accent);
}

.reaction-row button.is-reacted .like-heart path {
    fill: var(--accent);
    stroke: var(--accent);
    animation: heart-pop 420ms cubic-bezier(.2, 1.55, .34, 1);
}

.reaction-row button.is-reacted .like-heart::after {
    animation: heart-bloom 520ms ease-out;
}

.reaction-row button.is-reacted strong {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
}

@keyframes heart-pop {
    0% {
        transform: scale(0.72);
    }
    58% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes heart-bloom {
    0% {
        opacity: 0.28;
        transform: scale(0.35);
    }
    100% {
        opacity: 0;
        transform: scale(1.95);
    }
}

.comment-form {
    padding: 20px;
    margin-bottom: 22px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 78%, transparent), color-mix(in srgb, var(--surface) 94%, transparent));
    border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--faint));
    border-radius: 10px 10px 26px 26px;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: minmax(120px, 0.32fr) 1fr;
    gap: 14px;
}

.comment-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--faint) 84%, var(--accent));
    border-radius: 16px;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.comment-form input {
    min-height: 46px;
    padding: 0 14px;
}

.comment-form textarea {
    min-height: 112px;
    padding: 14px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.comment-message-field {
    grid-column: span 1;
}

.comment-honeypot {
    position: absolute;
    left: -9999px;
}

.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.comment-form-actions p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.comment-form-actions button {
    min-height: 44px;
    padding: 0 18px;
    color: var(--bg);
    background: var(--text);
    border: 0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.comment-form-actions button:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.comment-list {
    display: grid;
    gap: 12px;
}

.comment-empty {
    margin: 0;
    padding: 22px;
    color: var(--muted);
    background: var(--surface-soft);
    border: 1px solid var(--faint);
    border-radius: 20px;
    font-size: 14px;
}

.comment-item {
    padding: 18px;
    background: var(--bg);
    border: 1px solid var(--faint);
    border-radius: 22px;
}

.comment-item header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-item strong {
    font-size: 14px;
}

.comment-item time {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.comment-item p {
    margin: 0;
    color: color-mix(in srgb, var(--text) 86%, transparent);
    font-size: 15px;
    line-height: 1.76;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 34px;
    border-top: 1px solid var(--faint);
}

.nav-card {
    min-height: 126px;
    padding: 22px;
    border-radius: var(--radius-md);
    text-align: left;
}

.nav-card:hover:not(:disabled) {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.nav-card:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.nav-card span {
    display: block;
    margin-bottom: 14px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: -0.01em;
}

.nav-card strong {
    font-size: 17px;
    line-height: 1.25;
}

.align-right {
    text-align: right;
}

.site-footer {
    padding: 38px 0;
    border-top: 1px solid var(--faint);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: -0.01em;
}

.footer-inner p {
    margin: 0;
}

.footer-inner div {
    display: flex;
    gap: 18px;
}

.footer-inner a:hover {
    color: var(--accent);
}

.reflection-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: clamp(44px, 7vw, 78px);
}

.weekly-question-card,
.monthly-photo-card {
    min-width: 0;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--faint);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.reflection-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}

.reflection-card-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(25px, 3vw, 36px);
    letter-spacing: -0.055em;
}

.reflection-card-heading > div > span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.reflection-index {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
}

.weekly-question-card h2 {
    min-height: 3.3em;
    margin: 0 0 30px;
    font-size: clamp(26px, 3.7vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.weekly-question-card label,
.monthly-photo-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.weekly-question-card textarea,
.monthly-photo-form input {
    width: 100%;
    border: 1px solid var(--faint);
    border-radius: 16px;
    color: var(--text);
    background: var(--bg);
    font: inherit;
    outline: none;
}

.weekly-question-card textarea {
    min-height: 156px;
    padding: 18px;
    resize: vertical;
    font-size: 16px;
    line-height: 1.7;
}

.weekly-question-card textarea:focus,
.monthly-photo-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.weekly-question-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.weekly-question-actions span,
.monthly-photo-form p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.weekly-question-actions button,
.monthly-photo-edit-button,
.monthly-photo-form button {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid var(--faint);
    border-radius: 99px;
    color: var(--text);
    background: var(--surface);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.weekly-question-actions button:hover,
.monthly-photo-edit-button:hover,
.monthly-photo-form button:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.monthly-photo-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--faint);
    border-radius: 20px;
    background:
        linear-gradient(135deg, transparent 49.7%, var(--faint) 50%, transparent 50.3%),
        linear-gradient(45deg, transparent 49.7%, var(--faint) 50%, transparent 50.3%),
        var(--bg);
}

.monthly-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.monthly-photo-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.monthly-photo-placeholder span {
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
}

.monthly-photo-placeholder small {
    font-size: 11px;
}

.monthly-photo-caption {
    min-height: 1.6em;
    margin: 14px 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.monthly-photo-edit-button {
    width: 100%;
}

.monthly-photo-form {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--faint);
}

.monthly-photo-form input {
    min-height: 46px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.monthly-photo-form > div {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.monthly-photo-form p {
    min-height: 1.5em;
    margin: 10px 0 0;
}

.works-archive {
    padding: clamp(22px, 4vw, 42px);
    margin-bottom: clamp(44px, 7vw, 78px);
    overflow: hidden;
    border: 1px solid var(--faint);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(to right, transparent 49.9%, var(--faint) 50%, transparent 50.1%),
        var(--surface);
    box-shadow: var(--shadow);
}

.works-archive-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--faint);
}

.works-archive-heading h1,
.works-archive-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.works-archive-heading > p {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 34px);
}

.work-card {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--faint);
    border-radius: 22px;
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
    text-align: left;
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.work-card:hover,
.work-card:focus-visible {
    border-color: var(--accent);
    outline: none;
    transform: translateY(-6px);
    box-shadow: 0 26px 70px rgba(18, 18, 18, 0.15);
}

.work-card-number {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 99px;
    color: #101110;
    background: var(--accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.work-card-image {
    display: grid;
    height: min(62vw, 680px);
    min-height: 430px;
    place-items: start center;
    overflow: hidden;
    background: #dededb;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.work-card:hover .work-card-image img,
.work-card:focus-visible .work-card-image img {
    transform: scale(1.025);
}

.work-card-info {
    display: grid;
    gap: 8px;
    padding: 20px;
    border-top: 1px solid var(--faint);
}

.work-card-info small,
.work-card-info span {
    color: var(--muted);
    font-size: 10px;
}

.work-card-info strong {
    font-size: clamp(19px, 2.3vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.work-card-info span {
    margin-top: 8px;
    text-align: right;
}

.food-exhibition {
    padding: clamp(18px, 3vw, 34px);
    overflow: hidden;
    border: 1px solid var(--faint);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.food-exhibition-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
    gap: 30px;
    align-items: end;
    padding: 4px 4px clamp(24px, 4vw, 38px);
}

.food-exhibition-heading h1 {
    max-width: 760px;
    margin: 7px 0 0;
    font-size: clamp(38px, 7vw, 86px);
    line-height: 0.9;
    letter-spacing: -0.075em;
}

.food-exhibition-heading > p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.food-stage {
    --food-light-x: 68%;
    --food-light-y: 22%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(390px, 1.18fr);
    min-height: clamp(580px, 72vw, 780px);
    overflow: hidden;
    border-radius: clamp(22px, 3vw, 36px);
    color: #f7f4eb;
    background:
        radial-gradient(circle at var(--food-light-x) var(--food-light-y), rgba(255, 255, 255, 0.18), transparent 26%),
        radial-gradient(circle at 86% 90%, rgba(255, 113, 75, 0.18), transparent 26%),
        linear-gradient(145deg, #191915, #050605 72%);
    isolation: isolate;
}

.food-stage::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to right, black, transparent 86%);
}

.food-stage::after {
    position: absolute;
    right: -9%;
    bottom: -27%;
    width: 72%;
    aspect-ratio: 1;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 65px rgba(255, 255, 255, 0.018),
        0 0 0 130px rgba(255, 255, 255, 0.012);
}

.food-stage-copy {
    z-index: 2;
    display: flex;
    min-width: 0;
    padding: clamp(30px, 5vw, 66px);
    flex-direction: column;
    align-items: flex-start;
}

.food-stage-copy > span {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 99px;
    color: #ff8b6b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.food-stage-copy > p:first-of-type {
    margin: auto 0 10px;
    color: rgba(247, 244, 235, 0.5);
    font-size: 10px;
    letter-spacing: 0.12em;
}

.food-stage-copy h2 {
    max-width: 470px;
    margin: 0;
    font-size: clamp(42px, 6.4vw, 86px);
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.food-stage-copy > p:last-of-type {
    max-width: 430px;
    margin: 26px 0 0;
    color: rgba(247, 244, 235, 0.64);
    font-size: 13px;
    line-height: 1.75;
}

.food-ingredient-list {
    display: flex;
    margin-top: 25px;
    flex-wrap: wrap;
    gap: 7px;
}

.food-ingredient-list span {
    padding: 7px 10px;
    border-radius: 99px;
    color: #151512;
    background: #ff714b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.food-plate-frame {
    --plate-tilt-x: 0deg;
    --plate-tilt-y: 0deg;
    position: relative;
    z-index: 2;
    display: grid;
    width: min(90%, 660px);
    aspect-ratio: 1;
    margin: auto;
    place-items: center;
    border-radius: 50%;
    transform: perspective(1100px) rotateX(var(--plate-tilt-x)) rotateY(var(--plate-tilt-y));
    transform-style: preserve-3d;
    transition: transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.food-plate-frame::before {
    position: absolute;
    inset: 5%;
    z-index: -1;
    border-radius: 50%;
    content: "";
    background:
        radial-gradient(circle at 37% 30%, #fff 0 3%, transparent 4%),
        radial-gradient(circle at 50% 45%, #f8f5ed 0 49%, #d9d5ca 50% 54%, #fbf9f2 55% 71%, #d8d3c6 72% 74%, #f3f0e8 75%);
    box-shadow:
        0 70px 70px rgba(0, 0, 0, 0.5),
        inset -18px -24px 38px rgba(70, 64, 50, 0.18),
        inset 15px 18px 28px rgba(255, 255, 255, 0.9);
    transform: translateZ(-12px);
}

.food-plate-frame::after {
    position: absolute;
    inset: 14%;
    z-index: 4;
    pointer-events: none;
    border: 1px solid rgba(18, 18, 18, 0.08);
    border-radius: 50%;
    content: "";
    box-shadow: inset 0 18px 30px rgba(18, 18, 18, 0.08);
}

.food-plate-frame img {
    width: 68%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    filter: saturate(0.96) contrast(1.02);
    transform: translateZ(22px);
}

.food-plate-placeholder {
    position: relative;
    display: grid;
    width: 54%;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 37% 32%, rgba(255, 255, 255, 0.8), transparent 8%),
        conic-gradient(from 20deg, #ff714b, #f3d04e 22%, #6f9d59 42%, #f2eee2 58%, #c53b2f 80%, #ff714b);
    box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.18);
    transform: translateZ(24px);
}

.food-plate-placeholder::before {
    width: 48%;
    aspect-ratio: 1;
    border-radius: 42% 58% 55% 45%;
    content: "";
    background: #f8f2dd;
    box-shadow: 17px 10px 0 rgba(30, 61, 35, 0.75);
    transform: rotate(-15deg);
}

.food-plate-placeholder span {
    position: absolute;
    width: 7%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #1f5f3f;
}

.food-plate-placeholder span:nth-child(1) {
    top: 25%;
    right: 22%;
}

.food-plate-placeholder span:nth-child(2) {
    right: 31%;
    bottom: 20%;
    background: #f7df62;
}

.food-plate-placeholder span:nth-child(3) {
    bottom: 28%;
    left: 19%;
    background: #bd3026;
}

.food-plate-frame figcaption {
    position: absolute;
    right: 8%;
    bottom: 8%;
    z-index: 5;
    padding: 8px 11px;
    border-radius: 99px;
    color: rgba(247, 244, 235, 0.72);
    background: rgba(5, 6, 5, 0.7);
    font-size: 8px;
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
}

.food-stage-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.food-stage-orbit::after {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 7px;
    aspect-ratio: 1;
    border-radius: 50%;
    content: "";
    background: #ff714b;
    box-shadow: 0 0 18px rgba(255, 113, 75, 0.8);
}

.food-stage-orbit--outer {
    top: 8%;
    right: -3%;
    width: 59%;
    aspect-ratio: 1;
    animation: foodOrbit 18s linear infinite;
}

.food-stage-orbit--inner {
    right: 9%;
    bottom: 8%;
    width: 37%;
    aspect-ratio: 1;
    animation: foodOrbit 12s linear infinite reverse;
}

.food-stage-index {
    position: absolute;
    right: clamp(20px, 3vw, 40px);
    bottom: clamp(18px, 3vw, 34px);
    left: clamp(20px, 3vw, 40px);
    z-index: 5;
    display: flex;
    justify-content: space-between;
    color: rgba(247, 244, 235, 0.38);
    font-size: 8px;
    letter-spacing: 0.16em;
}

.food-stage.is-changing .food-stage-copy h2,
.food-stage.is-changing .food-stage-copy > p,
.food-stage.is-changing .food-ingredient-list {
    animation: foodCopyIn 500ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.food-stage.is-changing .food-plate-frame {
    animation: foodPlateIn 520ms cubic-bezier(0.16, 0.78, 0.24, 1) both;
}

.food-rail-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 4px 14px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.food-rail-heading p {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.food-rail {
    display: grid;
    grid-auto-columns: minmax(210px, 24%);
    grid-auto-flow: column;
    gap: 12px;
    padding: 0 4px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
}

.food-rail-card {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--faint);
    border-radius: 20px;
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
    text-align: left;
    scroll-snap-align: center;
    transition: transform 240ms ease, border-color 240ms ease, background-color 240ms ease;
}

.food-rail-card:hover,
.food-rail-card:focus-visible,
.food-rail-card.is-active {
    border-color: #ff714b;
    outline: none;
    transform: translateY(-5px);
}

.food-rail-card.is-active {
    background: rgba(255, 113, 75, 0.1);
}

.food-rail-number {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: grid;
    width: 29px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    color: #121212;
    background: #ff714b;
    font-size: 8px;
    font-weight: 900;
}

.food-rail-visual {
    display: grid;
    aspect-ratio: 1.18;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 31%, transparent 32%),
        repeating-linear-gradient(135deg, var(--surface-soft) 0 10px, var(--surface) 10px 20px);
}

.food-rail-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-mini-plate {
    position: relative;
    display: block;
    width: 61%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #f8f5ec;
    box-shadow:
        0 18px 28px rgba(18, 18, 18, 0.16),
        inset 0 0 0 8px #ded8ca;
}

.food-mini-plate i {
    position: absolute;
    width: 13%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ff714b;
}

.food-mini-plate i:nth-child(1) {
    top: 35%;
    left: 34%;
}

.food-mini-plate i:nth-child(2) {
    top: 47%;
    right: 29%;
    background: #577c48;
}

.food-mini-plate i:nth-child(3) {
    bottom: 29%;
    left: 45%;
    background: #f0cd42;
}

.food-rail-info {
    display: grid;
    gap: 5px;
    padding: 13px 4px 3px;
}

.food-rail-info small {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.food-rail-info strong {
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

@keyframes foodOrbit {
    to {
        transform: rotate(1turn);
    }
}

@keyframes foodCopyIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

@keyframes foodPlateIn {
    from {
        opacity: 0;
        transform: perspective(1100px) rotateX(8deg) rotateY(-8deg) scale(0.92);
        filter: blur(7px);
    }
}

.work-viewer-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    padding: 20px;
    overflow: auto;
    background: rgba(8, 9, 8, 0.94);
    backdrop-filter: blur(18px);
}

.work-viewer {
    width: min(1120px, 100%);
    min-height: calc(100vh - 40px);
    margin: 0 auto;
    color: #f2f2ef;
}

.work-viewer-topbar {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    background: linear-gradient(#090a09 72%, transparent);
}

.work-viewer-topbar span,
.work-viewer-topbar p {
    color: rgba(242, 242, 239, 0.56);
    font-size: 10px;
}

.work-viewer-topbar h2 {
    margin: 5px 0;
    font-size: clamp(25px, 4vw, 44px);
    letter-spacing: -0.055em;
}

.work-viewer-topbar p {
    margin: 0;
}

.work-viewer-topbar button {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    font-size: 25px;
    cursor: pointer;
}

.work-viewer-canvas {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: clamp(14px, 3vw, 34px);
    place-items: start center;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        #121312;
    background-size: 32px 32px;
}

.work-viewer-canvas.is-book-spread {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.work-viewer-canvas.is-book-cover {
    max-width: 620px;
    margin: 0 auto;
}

.work-viewer-canvas img {
    width: min(100%, 900px);
    height: auto;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.work-viewer-canvas.is-book-spread img {
    width: 100%;
}

.work-viewer-canvas.is-book-spread img:first-child {
    box-shadow: -18px 28px 70px rgba(0, 0, 0, 0.42);
}

.work-viewer-canvas.is-book-spread img:nth-child(2) {
    box-shadow: 18px 28px 70px rgba(0, 0, 0, 0.42);
}

.work-viewer-blank-page {
    width: 100%;
    aspect-ratio: 780 / 1083;
    background: #f7f7f3;
    box-shadow: 18px 28px 70px rgba(0, 0, 0, 0.42);
}

.work-viewer-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 0 10px;
}

.work-viewer-controls p {
    margin: 0;
    color: rgba(242, 242, 239, 0.48);
    font-size: 11px;
    text-align: center;
}

.work-viewer-controls button {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.work-viewer-controls button:disabled {
    cursor: default;
    opacity: 0.32;
}

.business-card-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(10, 11, 10, 0.76);
    backdrop-filter: blur(18px);
}

.business-card-overlay::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(transparent 49.8%, rgba(25, 215, 96, 0.12) 50%, transparent 50.2%),
        linear-gradient(90deg, transparent 49.8%, rgba(25, 215, 96, 0.12) 50%, transparent 50.2%);
    opacity: 0;
}

.business-card-unlock {
    position: fixed;
    z-index: 2;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.14em;
    opacity: 0;
    pointer-events: none;
}

.business-card-unlock strong,
.business-card-unlock small {
    grid-area: 1 / 1;
}

.business-card-unlock strong {
    transform: translateY(42px);
}

.business-card-unlock small {
    color: rgba(255, 255, 255, 0.58);
    transform: translateY(62px);
}

.business-card-unlock-ring {
    grid-area: 1 / 1;
    width: 82px;
    height: 82px;
    border: 1px solid var(--accent);
    border-radius: 50%;
}

.business-card-overlay.is-awakening::before {
    animation: easterGridFlash 950ms ease both;
}

.business-card-overlay.is-awakening .business-card-unlock {
    animation: easterSignal 1050ms ease both;
}

.business-card-overlay.is-awakening .business-card-unlock-ring {
    animation: easterRing 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.business-card-overlay.is-awakening .business-card-modal {
    animation: easterCardReveal 1050ms cubic-bezier(0.18, 0.8, 0.2, 1) both;
}

.business-card-modal {
    width: min(1080px, 100%);
    max-height: calc(100vh - 48px);
    padding: clamp(20px, 3vw, 34px);
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--faint));
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 36%, rgba(25, 215, 96, 0.12), transparent 24rem),
        var(--bg);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.38);
}

.business-card-heading,
.business-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.business-card-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 4vw, 44px);
    letter-spacing: -0.055em;
}

.business-card-close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--faint);
    border-radius: 50%;
    color: var(--text);
    background: var(--surface);
    font-size: 25px;
    cursor: pointer;
}

.business-card-stage {
    display: grid;
    min-height: clamp(350px, 58vh, 610px);
    place-items: center;
    overflow: hidden;
    cursor: grab;
    perspective: 1300px;
    perspective-origin: 50% 44%;
    touch-action: none;
    user-select: none;
}

.business-card-stage.is-dragging {
    cursor: grabbing;
}

.business-card-object {
    position: relative;
    width: min(76vw, 720px);
    aspect-ratio: 9 / 5;
    border-radius: 3px;
    cursor: inherit;
    outline: none;
    touch-action: none;
    transform: rotateX(-7deg) rotateY(-18deg);
    transform-style: preserve-3d;
    transition: transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1);
    will-change: transform;
}

.business-card-object::after {
    display: none;
}

.business-card-object:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 8px;
}

.business-card-object.is-dragging {
    transition: none;
}

.business-card-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(18, 18, 18, 0.2);
    border-radius: 3px;
    background: #fff;
    backface-visibility: hidden;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.16);
    transform-style: preserve-3d;
    transition: box-shadow 180ms ease;
    -webkit-backface-visibility: hidden;
}

.business-card-object:hover .business-card-face,
.business-card-object:focus-visible .business-card-face {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.business-card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.business-card-back {
    transform: rotateY(180deg) translateZ(0.5px);
}

.business-card-front {
    transform: translateZ(0.5px);
}

.business-card-footer {
    padding-top: 18px;
    border-top: 1px solid var(--faint);
}

.business-card-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.business-card-footer div {
    display: flex;
    gap: 8px;
}

.business-card-footer button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--faint);
    border-radius: 99px;
    color: var(--text);
    background: var(--surface);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease;
}

.business-card-footer button:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

.empty-state {
    grid-column: 1 / -1;
    padding: 44px;
    border: 1px dashed var(--faint);
    border-radius: var(--radius-lg);
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 11px;
    text-align: center;
    font-weight: 700;
}

@keyframes mapDrift {
    from {
        transform: translate3d(-10px, 8px, 0) scale(1.02);
    }
    to {
        transform: translate3d(12px, -8px, 0) scale(1.05);
    }
}

@keyframes rotateSweep {
    to {
        transform: rotate(1turn);
    }
}

@keyframes pulseRing {
    from {
        opacity: 0.8;
        transform: scale(0.65);
    }
    to {
        opacity: 0;
        transform: scale(1.35);
    }
}

@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

@keyframes playerOrbit {
    from {
        transform: rotate(0deg) translateX(var(--player-orbit-radius)) scale(1);
    }
    to {
        transform: rotate(1turn) translateX(var(--player-orbit-radius)) scale(1);
    }
}

@keyframes wave {
    to {
        transform: scaleY(0.38);
    }
}

@keyframes brandMarkTap {
    50% {
        transform: translateY(-2px) rotate(8deg) scale(1.16);
    }
}

@keyframes easterGridFlash {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.92);
    }
    32% {
        opacity: 1;
    }
    70% {
        opacity: 0.24;
        transform: scale(1.08);
    }
}

@keyframes easterSignal {
    0%,
    12% {
        opacity: 0;
        transform: scale(0.82);
    }
    28%,
    64% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}

@keyframes easterRing {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }
    36% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(5.5);
    }
}

@keyframes easterCardReveal {
    0%,
    45% {
        opacity: 0;
        transform: translateY(30px) rotateX(8deg) scale(0.92);
        filter: blur(10px);
    }
    72% {
        opacity: 1;
        transform: translateY(-4px) rotateX(0) scale(1.01);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 900px) {
    .hero-section,
    .feature-grid,
    .chronicle-grid,
    .ambient-player,
    .album-selector-grid,
    .movie-archive-layout,
    .movie-detail-card,
    .reflection-grid,
    .qna-layout,
    .works-grid {
        grid-template-columns: 1fr;
    }

    .works-archive-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .qna-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .qna-form {
        position: static;
    }

    .food-exhibition-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .food-stage {
        grid-template-columns: 1fr;
        min-height: 930px;
    }

    .food-stage-copy {
        min-height: 390px;
        padding-bottom: 10px;
    }

    .food-plate-frame {
        width: min(82vw, 600px);
        margin: -30px auto 72px;
    }

    .food-stage-orbit--outer {
        top: 43%;
        width: 78%;
    }

    .food-stage-orbit--inner {
        right: 4%;
        bottom: 5%;
        width: 49%;
    }

    .food-rail {
        grid-auto-columns: minmax(190px, 42%);
    }

    .work-card-image {
        height: min(124vw, 700px);
    }

    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .meeting-form {
        grid-template-columns: 1fr 1fr;
    }

    .event-form {
        grid-template-columns: 1fr 1fr;
    }

    .meeting-form-field--note,
    .meeting-form-actions {
        grid-column: 1 / -1;
    }

    .post-editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meeting-form-actions {
        justify-content: flex-end;
    }

    .calendar-sidebar {
        grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
        grid-template-rows: auto;
    }

    .meeting-note {
        min-height: 220px;
    }

    .album-selector-heading {
        align-items: start;
        flex-direction: column;
    }

    .album-stack {
        min-height: 470px;
    }

    .turntable {
        width: min(100%, 440px);
        margin: 0 auto;
    }

    .ambient-controls {
        justify-content: space-between;
    }

    .post-song-progress {
        grid-column: 1;
    }

    .coordinate-ticker {
        display: none;
    }

    .archive-view {
        padding-top: 34px;
    }

    .hero-section {
        gap: 24px;
        margin-bottom: 34px;
    }

    .post-hero {
        height: clamp(300px, 64vw, 460px);
    }
}

@media (max-width: 640px) {
    .shell,
    .post-shell {
        width: min(100% - 24px, var(--max));
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 16px 12px;
    }

    .site-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .admin-write-button {
        order: -1;
    }

    .text-button {
        flex: 1;
        min-height: 42px;
    }

    .business-card-overlay {
        padding: 0;
    }

    .business-card-modal {
        width: 100%;
        min-height: 100vh;
        max-height: none;
        padding: 22px 12px 28px;
        border: 0;
        border-radius: 0;
    }

    .business-card-stage {
        min-height: 58vh;
    }

    .business-card-object {
        width: min(91vw, 600px);
    }

    .business-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .business-card-footer div,
    .business-card-footer button {
        width: 100%;
    }

    .hero-copy h1 {
        max-width: 8ch;
        margin-bottom: 18px;
        font-size: clamp(46px, 17vw, 72px);
        letter-spacing: -0.075em;
    }

    .hero-deck {
        font-size: 19px;
        line-height: 1.45;
    }

    .album-selector {
        padding: 20px 0;
        margin-inline: -12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .movie-archive {
        padding: 20px 12px;
        margin-inline: -12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .anonymous-qna {
        padding: 20px 12px;
        margin-inline: -12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .qna-heading h2 {
        font-size: 34px;
    }

    .qna-form,
    .qna-board {
        border-radius: 20px;
    }

    .qna-form-row {
        grid-template-columns: 1fr;
    }

    .qna-form-row button,
    .qna-board button,
    .qna-answer-form button {
        width: 100%;
    }

    .movie-archive-heading,
    .movie-archive-actions,
    .movie-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-form {
        grid-template-columns: 1fr;
    }

    .movie-card-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
    }

    .movie-card {
        flex: 0 0 min(46vw, 180px);
        scroll-snap-align: start;
    }

    .movie-form-actions button {
        width: 100%;
    }

    .album-selector-heading,
    .turntable {
        width: calc(100% - 24px);
        margin-inline: auto;
    }

    .album-selector-heading {
        margin-bottom: 20px;
    }

    .album-selector-heading h2 {
        font-size: 26px;
    }

    .meeting-calendar {
        padding: 20px 12px;
        margin-inline: -12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .calendar-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 18px;
    }

    .calendar-heading-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-add-button {
        width: 100%;
    }

    .calendar-nav {
        width: 100%;
        grid-template-columns: 44px 1fr 44px;
    }

    .meeting-form {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .event-form {
        grid-template-columns: 1fr;
    }

    .meeting-form-field--note,
    .meeting-form-actions {
        grid-column: auto;
    }

    .meeting-form-actions button {
        flex: 1;
    }

    .admin-overlay {
        padding: 0;
    }

    .admin-modal {
        width: 100%;
        min-height: 100vh;
        max-height: none;
        padding: 24px 14px 40px;
        border: 0;
        border-radius: 0;
    }

    .post-editor-heading {
        align-items: flex-start;
        flex-direction: column;
        padding-right: 44px;
    }

    .post-editor-grid,
    .post-editor-bottom-grid {
        grid-template-columns: 1fr;
    }

    .post-editor-wide {
        grid-column: auto;
    }

    .rich-toolbar {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .rich-toolbar button,
    .rich-color-control {
        flex: 0 0 auto;
    }

    .rich-editor {
        min-height: 320px;
        font-size: 16px;
    }

    .post-editor-actions {
        position: sticky;
        bottom: 0;
        padding: 12px 0;
        background: var(--bg);
    }

    .calendar-day {
        min-height: 78px;
        padding: 6px 4px;
    }

    .calendar-day-number {
        width: 22px;
        height: 22px;
        margin-bottom: 4px;
        font-size: 10px;
    }

    .meeting-person {
        padding: 6px 4px;
        font-size: 9px;
        text-align: center;
    }

    .calendar-event {
        padding: 5px 3px;
        border-left-width: 2px;
        font-size: 8px;
        text-align: center;
    }

    .calendar-sidebar {
        grid-template-columns: 1fr;
    }

    .album-stack {
        display: block;
        min-height: 540px;
        padding: 0;
        overflow: visible;
        perspective: 900px;
    }

    .album-card {
        position: absolute;
        top: var(--album-y);
        left: 50%;
        z-index: var(--album-z);
        width: 178px;
        transform:
            translate3d(-50%, 0, var(--album-depth))
            rotateX(-9deg)
            scale(var(--album-scale))
            scaleX(var(--album-width-scale));
    }

    .album-card:hover,
    .album-card:focus-visible {
        transform:
            translate3d(-50%, -12px, var(--album-depth))
            rotateX(-9deg)
            scale(var(--album-scale))
            scaleX(var(--album-width-scale));
    }

    .album-card.is-front:not(.is-selected) {
        transform:
            translate3d(-50%, -12px, var(--album-depth))
            rotateX(-9deg)
            scale(var(--album-scale))
            scaleX(var(--album-width-scale));
    }

    .album-card.is-front:not(.is-selected):hover,
    .album-card.is-front.is-hovered:not(.is-selected),
    .album-card.is-front:not(.is-selected):focus-visible {
        transform:
            translate3d(-50%, -28px, var(--album-depth))
            rotateX(-9deg)
            scale(var(--album-scale))
            scaleX(var(--album-width-scale));
    }

    .album-card.is-selected {
        z-index: 30;
        transform:
            translate3d(-50%, -30px, 120px)
            rotateX(-10deg)
            scale(1.05);
    }

    .turntable-stage {
        min-height: 220px;
    }

    .playing-album-cover {
        width: 172px;
    }

    .status-card {
        padding: 20px;
    }

    .status-card,
    .music-panel,
    .ambient-player,
    .memory-capsule {
        border-radius: 22px;
    }

    .route-panel {
        margin-inline: -16px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .map-panel,
    .music-panel {
        min-height: 360px;
    }

    .music-panel {
        padding: 18px;
    }

    .chronicle-card {
        border-radius: 24px;
    }

    .card-image {
        height: 190px;
    }

    .card-body {
        padding: 20px;
    }

    .card-body h3 {
        font-size: 21px;
        line-height: 1.15;
    }

    .post-header h1 {
        font-size: clamp(38px, 13vw, 58px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .post-title-layout,
    .post-title-layout.has-recipes {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .travel-recipe-card {
        width: 100%;
        min-width: 0;
        border-radius: 22px;
    }

    .travel-recipe-toggle {
        min-height: 70px;
        padding: 15px 16px;
    }

    .travel-recipe-panel {
        padding: 0 16px 16px;
    }

    .post-hero {
        height: 310px;
        margin: 28px 0;
        border-radius: 24px;
    }

    .ambient-player {
        gap: 16px;
        padding: 20px;
    }

    .record-wrap {
        --player-orbit-radius: 25px;
        width: 58px;
        height: 58px;
    }

    .ambient-controls {
        width: 100%;
    }

    .primary-button {
        flex: 1;
    }

    .journal-body p {
        margin-bottom: 22px;
        font-size: 17px;
        line-height: 1.86;
    }

    .journal-image,
    .journal-image-grid {
        margin: 34px 0;
    }

    .journal-image--wide {
        width: calc(100vw - 24px);
    }

    .journal-image-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 240px;
        border-radius: 20px;
    }

    .chronicle-grid,
    .post-gallery-mosaic,
    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-response-board {
        padding: 22px 16px;
        margin-bottom: 38px;
        border-radius: 24px;
    }

    .comment-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reaction-row button {
        min-height: 68px;
        padding: 0 14px;
    }

    .comment-message-field {
        grid-column: 1 / -1;
    }

    .comment-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .comment-form-actions button {
        width: 100%;
    }

    .gallery-item:first-child {
        grid-column: auto;
    }

    .post-meta-line,
    .footer-inner {
        flex-direction: column;
    }

    .site-footer {
        padding: 28px 0 0;
    }

    .footer-inner {
        padding-bottom: 20px;
    }

    .footer-inner div {
        flex-wrap: wrap;
    }

    .weekly-question-card h2 {
        min-height: 0;
    }

    .weekly-question-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .weekly-question-actions button {
        width: 100%;
    }

    .works-archive {
        padding: 20px 12px;
        margin-inline: -12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .food-exhibition {
        padding: 14px 12px 18px;
        margin-inline: -12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .food-exhibition-heading {
        padding-inline: 4px;
    }

    .food-exhibition-heading h1 {
        font-size: clamp(40px, 15vw, 64px);
    }

    .food-stage {
        min-height: 760px;
        border-radius: 22px;
    }

    .food-stage-copy {
        min-height: 330px;
        padding: 28px 24px 8px;
    }

    .food-stage-copy h2 {
        font-size: clamp(38px, 13vw, 58px);
    }

    .food-stage-copy > p:last-of-type {
        margin-top: 18px;
    }

    .food-plate-frame {
        width: 94%;
        margin: -24px auto 62px;
    }

    .food-plate-frame figcaption {
        right: 2%;
        bottom: 4%;
    }

    .food-stage-index {
        right: 18px;
        bottom: 17px;
        left: 18px;
    }

    .food-rail-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .food-rail {
        grid-auto-columns: 78%;
        padding-bottom: 12px;
    }

    .work-card-image {
        min-height: 450px;
    }

    .work-viewer-overlay {
        padding: 0 12px 20px;
    }

    .work-viewer-topbar {
        padding-top: 16px;
    }

    .work-viewer-controls {
        grid-template-columns: 1fr 1fr;
    }

    .work-viewer-controls p {
        display: none;
    }
}

@media (max-width: 900px) {
    .private-lock-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .private-lock-card .private-password-form {
        grid-column: 1 / -1;
    }

    .private-book-showcase {
        grid-template-columns: 1fr;
    }

    .private-book-copy {
        order: -1;
    }

}

@media (max-width: 640px) {
    .private-post-shell {
        width: min(100% - 24px, 920px);
    }

    .private-post-header {
        padding: 24px 20px;
        border-radius: 23px;
    }

    .private-post-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .private-post-header h1 {
        font-size: clamp(40px, 13vw, 58px);
        line-height: 1.05;
    }

    .private-lock-card {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 24px 20px;
        border-radius: 23px;
    }

    .private-lock-card .private-password-form {
        grid-column: auto;
        width: 100%;
    }

    .private-lock-symbol {
        width: 70px;
        height: 62px;
    }

    .private-lock-symbol::before {
        bottom: 47px;
        width: 35px;
        height: 31px;
    }

    .private-password-form > div {
        grid-template-columns: 1fr;
    }

    .private-password-form button,
    .private-reply-link {
        width: 100%;
    }

    .private-reader-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .private-content-note {
        margin-bottom: 22px;
    }

    .private-song-card {
        align-items: stretch;
        flex-direction: column;
        padding: 20px 16px;
        border-radius: 23px;
    }

    .private-song-card .primary-button {
        width: 100%;
    }

    .private-book-showcase {
        gap: 24px;
        padding: 22px 16px 26px;
        margin: 22px 0 52px;
        border-radius: 24px;
    }

    .private-book-stage {
        min-height: 328px;
    }

    .private-book-canvas {
        width: min(100%, 280px);
        height: 320px;
    }

    .private-book-controls {
        width: 100%;
    }

    .private-book-controls button {
        flex: 1;
        min-width: 0;
        padding: 0 10px;
    }

    .private-book-copy h2 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .private-book-meta {
        grid-template-columns: 1fr;
    }

    .private-book-synopsis p {
        font-size: 15.8px;
        line-height: 1.85;
    }

    .private-main-text {
        gap: 56px;
    }

    .private-main-section {
        gap: 18px;
    }

    .private-main-section > header {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
        padding-bottom: 16px;
    }

    .private-main-section > header span {
        width: 36px;
        height: 36px;
    }

    .private-main-section h3 {
        font-size: clamp(25px, 8vw, 36px);
    }

    .private-main-section > div {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .private-main-section p {
        font-size: 16.5px;
        line-height: 1.9;
        letter-spacing: -0.02em;
    }

    .private-reply-gate {
        align-items: stretch;
        flex-direction: column;
        padding: 24px 20px;
        border-radius: 23px;
    }

    .private-reply-page-header {
        padding: 24px 20px;
        border-radius: 23px;
    }

    .private-reply-page-header h1 {
        font-size: clamp(38px, 12vw, 56px);
    }

    .private-reply-reader > header h2 {
        font-size: clamp(30px, 10vw, 44px);
    }

    .private-reply-section {
        gap: 18px;
    }

    .private-reply-section > header {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
    }

    .private-reply-section > header > span {
        width: 34px;
        height: 34px;
    }

    .private-reply-source,
    .private-reply-response {
        padding: 20px 17px;
        border-radius: 16px;
    }

    .private-reply-response {
        padding: 28px 16px 30px 18px;
        border-left-width: 2px;
        border-radius: 0 18px 18px 0;
    }

    .private-reply-source {
        padding: 4px 8px 4px 16px;
        border-radius: 0;
    }

    .private-reply-source p {
        font-size: 13px;
        line-height: 1.82;
    }

    .private-reply-response p {
        font-size: 16.8px;
        line-height: 2.12;
        letter-spacing: -0.004em;
        word-spacing: 0.026em;
        text-indent: 0.75em;
    }

    .private-reply-response p + p {
        margin-top: 2.18em;
    }

    .private-reply-response .private-reply-postscript {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 24px 18px 22px;
        margin-top: 38px;
        transform: rotate(-0.35deg);
    }

    .private-reply-postscript > span {
        width: auto;
        height: auto;
    }

    .private-reply-response .private-reply-postscript > p {
        font-size: 15px;
        line-height: 1.9;
    }

    .private-reply-auth-overlay {
        padding: 12px;
    }

    .private-reply-auth-modal {
        padding: 30px 20px 24px;
        border-radius: 23px;
    }
}

@media (pointer: coarse), (max-width: 900px) {
    .cursor-orbit {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
