/* ==========================================================================
   花间集 · 新拟态花卉个人主页
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --font-sans: "Avenir Next", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-serif: "Iowan Old Style", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --bg: #f2edf1;
    --bg-deep: #ebe4ea;
    --surface: #f2edf1;
    --surface-2: #f7f3f6;
    --text: #37313e;
    --muted: #7f7688;
    --faint: #a79eab;
    --accent: #de8ca2;
    --accent-deep: #c9738b;
    --accent-2: #97bfae;
    --accent-3: #edc58b;
    --accent-rgb: 222, 140, 162;
    --accent-2-rgb: 151, 191, 174;
    --accent-3-rgb: 237, 197, 139;
    --white-rgb: 255, 255, 255;
    --shadow-dark: rgba(171, 157, 172, .42);
    --shadow-light: rgba(255, 255, 255, .94);
    --shadow-out: 18px 18px 40px var(--shadow-dark), -18px -18px 40px var(--shadow-light);
    --shadow-soft: 10px 10px 26px var(--shadow-dark), -10px -10px 26px var(--shadow-light);
    --shadow-small: 5px 5px 14px var(--shadow-dark), -5px -5px 14px var(--shadow-light);
    --shadow-in: inset 5px 5px 12px var(--shadow-dark), inset -5px -5px 12px var(--shadow-light);
    --border: rgba(255, 255, 255, .62);
    --border-soft: rgba(255, 255, 255, .38);
    --header-bg: rgba(242, 237, 241, .72);
    --radius-xl: 38px;
    --radius-lg: 30px;
    --radius: 22px;
    --radius-sm: 14px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --container: 1180px;
}

html[data-theme="mint"] {
    --bg: #edf3ee;
    --bg-deep: #e5ede7;
    --surface: #edf3ee;
    --surface-2: #f4f8f4;
    --text: #2f3b35;
    --muted: #75867b;
    --faint: #9cac9f;
    --accent: #5fa887;
    --accent-deep: #478c6d;
    --accent-2: #df9f6b;
    --accent-3: #b7d4c2;
    --accent-rgb: 95, 168, 135;
    --accent-2-rgb: 223, 159, 107;
    --accent-3-rgb: 183, 212, 194;
    --shadow-dark: rgba(157, 173, 161, .45);
    --shadow-light: rgba(255, 255, 255, .95);
    --header-bg: rgba(237, 243, 238, .72);
}

html[data-theme="ocean"] {
    --bg: #edf1f7;
    --bg-deep: #e4eaf3;
    --surface: #edf1f7;
    --surface-2: #f5f8fb;
    --text: #303947;
    --muted: #747f91;
    --faint: #9ba5b5;
    --accent: #6d95c8;
    --accent-deep: #547cae;
    --accent-2: #df96a5;
    --accent-3: #9dc4d8;
    --accent-rgb: 109, 149, 200;
    --accent-2-rgb: 223, 150, 165;
    --accent-3-rgb: 157, 196, 216;
    --shadow-dark: rgba(154, 165, 184, .45);
    --shadow-light: rgba(255, 255, 255, .95);
    --header-bg: rgba(237, 241, 247, .72);
}

html[data-theme="apricot"] {
    --bg: #f6efe8;
    --bg-deep: #f1e7dd;
    --surface: #f6efe8;
    --surface-2: #fbf6f1;
    --text: #3c332d;
    --muted: #897a6f;
    --faint: #b0a094;
    --accent: #dd9a67;
    --accent-deep: #c57f4b;
    --accent-2: #88ad97;
    --accent-3: #f0c796;
    --accent-rgb: 221, 154, 103;
    --accent-2-rgb: 136, 173, 151;
    --accent-3-rgb: 240, 199, 150;
    --shadow-dark: rgba(181, 165, 151, .42);
    --shadow-light: rgba(255, 255, 255, .95);
    --header-bg: rgba(246, 239, 232, .74);
}

html[data-theme="lavender"] {
    --bg: #f1eef6;
    --bg-deep: #e9e4f1;
    --surface: #f1eef6;
    --surface-2: #f7f4fb;
    --text: #363043;
    --muted: #7d758f;
    --faint: #a8a0b7;
    --accent: #9787c5;
    --accent-deep: #7d6aae;
    --accent-2: #dfa0b1;
    --accent-3: #c9b9e6;
    --accent-rgb: 151, 135, 197;
    --accent-2-rgb: 223, 160, 177;
    --accent-3-rgb: 201, 185, 230;
    --shadow-dark: rgba(161, 153, 180, .45);
    --shadow-light: rgba(255, 255, 255, .95);
    --header-bg: rgba(241, 238, 246, .72);
}

html[data-theme="noir"] {
    --bg: #191b22;
    --bg-deep: #14161c;
    --surface: #1b1d25;
    --surface-2: #21242d;
    --text: #f0ecf4;
    --muted: #a8a2b4;
    --faint: #7c7688;
    --accent: #dda6b8;
    --accent-deep: #c98ca0;
    --accent-2: #8fb7a7;
    --accent-3: #eccb91;
    --accent-rgb: 221, 166, 184;
    --accent-2-rgb: 143, 183, 167;
    --accent-3-rgb: 236, 203, 145;
    --shadow-dark: rgba(0, 0, 0, .58);
    --shadow-light: rgba(255, 255, 255, .055);
    --border: rgba(255, 255, 255, .075);
    --border-soft: rgba(255, 255, 255, .05);
    --header-bg: rgba(25, 27, 34, .74);
    color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color .6s var(--ease), color .6s var(--ease);
}
body.modal-open { overflow: hidden; }
::selection { background: rgba(var(--accent-rgb), .28); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
img { max-width: 100%; display: block; }
svg { display: block; }
h1, h2, h3, h4, p, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px dashed rgba(var(--accent-rgb), .9); outline-offset: 4px; border-radius: 4px; }

.icon { width: 1.18em; height: 1.18em; flex: 0 0 auto; }
.container { width: min(var(--container), calc(100% - clamp(36px, 7vw, 96px))); margin-inline: auto; }
.skip-link {
    position: fixed; top: -100px; left: 24px; z-index: 300;
    padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff;
}
.skip-link:focus { top: 20px; }

/* ---------- Page background ---------- */
.page-decor { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: .46;
    animation: blobFloat 18s ease-in-out infinite alternate;
}
.blob-1 { width: 44vw; height: 44vw; top: -16vw; right: -8vw; background: rgba(var(--accent-rgb), .52); }
.blob-2 { width: 38vw; height: 38vw; bottom: -14vw; left: -10vw; background: rgba(var(--accent-2-rgb), .38); animation-delay: -6s; }
.blob-3 { width: 26vw; height: 26vw; top: 42%; left: 40%; background: rgba(var(--accent-3-rgb), .3); animation-delay: -11s; }
html[data-theme="noir"] .blob { opacity: .3; }
#petal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.grain {
    position: absolute; inset: 0; opacity: .18; mix-blend-mode: soft-light;
    background-image: radial-gradient(rgba(255, 255, 255, .8) 1px, transparent 1px);
    background-size: 6px 6px;
}
html[data-theme="noir"] .grain { opacity: .08; }
@keyframes blobFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(3vw, 4vh, 0) scale(1.12); }
}

/* ---------- Shared ---------- */
.neumo {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-out);
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--accent-deep);
    font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
}
.eyebrow-flower {
    display: grid; place-items: center; width: 26px; height: 26px;
    border-radius: 50%; color: var(--accent);
    background: var(--surface); box-shadow: var(--shadow-small);
}
.eyebrow-flower .icon { width: 14px; height: 14px; }
.panel-kicker {
    display: block; color: var(--faint);
    font-size: 9px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
}
.section { position: relative; padding: clamp(80px, 10vw, 126px) 0; scroll-margin-top: 90px; }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
    margin-top: 16px;
    font-family: var(--font-serif);
    font-size: clamp(36px, 4.3vw, 56px);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.02em;
}
.section-head-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    max-width: none; gap: 32px;
}
.section-head-row > div:first-child { max-width: 640px; }
.section-intro { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.section-count {
    flex: 0 0 auto; padding-bottom: 8px;
    color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .18em;
}
.live-pill {
    display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto;
    padding: 10px 18px; border-radius: 999px;
    background: var(--surface); box-shadow: var(--shadow-small);
    color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em;
}
.live-pill i, .badge-soft i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(var(--accent-2-rgb), .18);
    animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot { 50% { box-shadow: 0 0 0 8px rgba(var(--accent-2-rgb), 0); } }

/* ---------- Buttons ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px; border-radius: 999px;
    font-size: 14px; font-weight: 600; letter-spacing: .01em;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
    overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 1), rgba(var(--accent-rgb), .82));
    box-shadow: 6px 8px 20px rgba(var(--accent-rgb), .32), -4px -4px 12px rgba(var(--shadow-light), .6);
}
html[data-theme="noir"] .btn-primary { color: #241f28; }
.btn-primary:hover { box-shadow: 8px 12px 28px rgba(var(--accent-rgb), .42), -4px -4px 14px rgba(255, 255, 255, .12); }
.btn-ghost {
    background: var(--surface); color: var(--text);
    box-shadow: var(--shadow-soft); border: 1px solid var(--border);
}
.btn-soft {
    background: rgba(var(--accent-rgb), .12);
    color: var(--accent-deep);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .16);
}
.btn-soft:hover { background: rgba(var(--accent-rgb), .18); }
.btn-flower { color: var(--accent); font-size: 16px; }
.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-small);
    color: var(--muted);
    transition: color .3s, transform .3s var(--ease), box-shadow .3s;
}
.icon-btn:hover { color: var(--accent); transform: translateY(-2px); }
.icon-btn.tiny { width: 28px; height: 28px; box-shadow: none; background: transparent; }
.icon-btn.tiny .icon { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    padding: 18px 0;
    transition: padding .4s var(--ease);
}
.nav-shell {
    position: relative;
    width: min(1220px, calc(100% - clamp(28px, 5vw, 64px)));
    margin-inline: auto;
    min-height: 72px;
    display: flex; align-items: center; gap: 26px;
    padding: 10px 12px 10px 20px;
    border-radius: 999px;
    background: var(--header-bg);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(108, 95, 112, .09), inset 0 1px 0 rgba(255, 255, 255, .5);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transition: background .4s, box-shadow .4s, min-height .4s;
}
html[data-theme="noir"] .nav-shell { box-shadow: 0 12px 36px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05); }
.site-header.is-scrolled { padding: 10px 0; }
.site-header.is-scrolled .nav-shell { min-height: 62px; box-shadow: 0 14px 34px rgba(108, 95, 112, .16); }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(var(--accent-rgb), .18)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-serif); font-size: 17px; letter-spacing: .04em; }
.brand-text small { margin-top: 4px; color: var(--faint); font-size: 8px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a {
    position: relative; padding: 10px 15px; border-radius: 999px;
    color: var(--muted); font-size: 13px; font-weight: 500;
    transition: color .3s, background .3s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(255, 255, 255, .34); }
html[data-theme="noir"] .main-nav a:hover, html[data-theme="noir"] .main-nav a.active { background: rgba(255, 255, 255, .06); }
.main-nav a.active::after {
    content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px;
    border-radius: 50%; background: var(--accent); transform: translateX(-50%);
}
.main-nav .nav-login-link {
    display: inline-flex; align-items: center; gap: 5px;
    margin-left: 7px; padding-left: 14px;
    border-left: 1px solid rgba(var(--accent-rgb), .18);
    color: var(--accent-deep); font-weight: 600;
}
.main-nav .nav-login-link:hover { background: rgba(var(--accent-rgb), .09); color: var(--accent-deep); }
.nav-login-link .icon { width: 13px; height: 13px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    height: 46px; padding: 0 20px; border-radius: 999px;
    color: #fff; font-size: 12px; font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    box-shadow: 4px 6px 16px rgba(var(--accent-rgb), .28);
    transition: transform .3s var(--ease), box-shadow .3s;
}
html[data-theme="noir"] .nav-cta { color: #241f28; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 6px 10px 22px rgba(var(--accent-rgb), .36); }
.nav-cta .icon { width: 15px; height: 15px; }
.theme-wrap { position: relative; }
.theme-toggle { position: relative; }
.theme-dot {
    width: 15px; height: 15px; border-radius: 50%;
    background: conic-gradient(var(--accent) 0 33%, var(--accent-2) 33% 66%, var(--accent-3) 66% 100%);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}
.theme-toggle-lines {
    position: absolute; width: 24px; height: 24px; border-radius: 50%;
    border: 1px dashed rgba(var(--accent-rgb), .5);
    animation: spinSlow 18s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.theme-panel {
    position: absolute; top: calc(100% + 14px); right: 0; z-index: 20;
    width: 310px; padding: 18px;
    border-radius: 24px; background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(65, 55, 72, .18), var(--shadow-soft);
    transform-origin: top right;
    animation: panelIn .3s var(--ease);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.theme-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 12px; font-weight: 600; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-choice {
    display: flex; align-items: center; gap: 9px;
    padding: 9px; border-radius: 13px; text-align: left;
    color: var(--muted); font-size: 11px;
    transition: background .25s, color .25s;
}
.theme-choice:hover { background: rgba(var(--accent-rgb), .08); color: var(--text); }
.theme-choice.active { background: rgba(var(--accent-rgb), .12); color: var(--text); }
.theme-choice em { display: none; margin-left: auto; color: var(--accent); }
.theme-choice.active em { display: block; }
.theme-choice em .icon { width: 12px; height: 12px; }
.theme-swatch {
    display: flex; align-items: center; justify-content: center; gap: 2px;
    width: 34px; height: 30px; flex: 0 0 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--s1), var(--s2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.theme-swatch i { width: 5px; height: 10px; border-radius: 50%; background: var(--s3); opacity: .9; }
.theme-panel-note { margin-top: 10px; color: var(--faint); font-size: 9px; text-align: center; letter-spacing: .08em; }
.mobile-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: clamp(140px, 17vh, 190px) 0 90px;
}
.hero-grid {
    display: grid; grid-template-columns: 1.04fr .96fr;
    align-items: center; gap: clamp(40px, 6vw, 84px);
    min-width: 0;
}
.hero-grid > * { min-width: 0; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero-eyebrow { animation: fadeUp .8s .1s both var(--ease); }
.hero-title { margin-top: 24px; animation: fadeUp .9s .18s both var(--ease); }
.hero-name {
    display: block; width: fit-content;
    font-family: var(--font-serif);
    font-size: clamp(62px, 8vw, 102px);
    font-weight: 600; line-height: .96; letter-spacing: .02em;
    background: linear-gradient(120deg, var(--text) 8%, var(--accent) 54%, var(--accent-deep) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 8px 18px rgba(var(--accent-rgb), .18));
}
.hero-headline {
    display: block; margin-top: 14px;
    font-family: var(--font-serif);
    font-size: clamp(27px, 3.1vw, 42px);
    font-weight: 500; line-height: 1.32; letter-spacing: -.015em;
}
.hero-intro {
    max-width: 540px; margin-top: 22px;
    color: var(--muted); font-size: 15px; line-height: 2;
    overflow-wrap: break-word;
    animation: fadeUp .9s .28s both var(--ease);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation: fadeUp .9s .36s both var(--ease); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 34px; animation: fadeUp .9s .44s both var(--ease); }
.badge-soft {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 15px; border-radius: 999px;
    background: rgba(var(--accent-2-rgb), .12); color: var(--muted);
    font-size: 11px; font-weight: 600;
}
.hero-stat { color: var(--faint); font-size: 11px; letter-spacing: .04em; }
.hero-stat b { color: var(--text); font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin-right: 4px; }
.hero-visual {
    position: relative; width: min(100%, 470px); margin-left: auto;
    aspect-ratio: 1 / 1.08;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: heroVisualIn 1.2s .2s backwards var(--ease);
}
@keyframes heroVisualIn { from { opacity: 0; transform: translateY(36px) rotate(2deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } }
.portrait-halo {
    position: absolute; inset: 5% 3% 3% 3%;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, rgba(var(--accent-rgb), .55), rgba(var(--accent-3-rgb), .28) 42%, transparent 68%);
    filter: blur(30px); opacity: .75;
}
.portrait-frame {
    position: absolute; inset: 8% 8% 4% 8%;
    border-radius: 47% 47% 34% 34% / 40% 40% 27% 27%;
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 255, 255, .75), transparent 42%),
        linear-gradient(145deg, rgba(var(--accent-rgb), .36), rgba(var(--accent-3-rgb), .3) 55%, rgba(var(--accent-2-rgb), .35));
    border: 1px solid rgba(255, 255, 255, .66);
    box-shadow: 28px 32px 70px rgba(var(--accent-rgb), .26), -22px -22px 60px rgba(255, 255, 255, .8), inset 0 0 50px rgba(255, 255, 255, .35);
    overflow: hidden;
    transform: rotate(-3deg);
}
html[data-theme="noir"] .portrait-frame { box-shadow: 28px 32px 70px rgba(0, 0, 0, .5), -14px -14px 40px rgba(255, 255, 255, .04), inset 0 0 50px rgba(255, 255, 255, .05); }
.portrait-frame::after {
    content: ""; position: absolute; inset: 14px; border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .35); pointer-events: none;
}
.portrait-image {
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    padding: 7% 4% 0;
    filter: drop-shadow(0 18px 30px rgba(80, 55, 70, .18));
    transition: transform .8s var(--ease);
}
.portrait-frame:hover .portrait-image { transform: scale(1.035); }
.frame-ring {
    position: absolute; inset: 26px; border-radius: inherit;
    border: 1px dashed rgba(255, 255, 255, .55); z-index: 1; pointer-events: none;
}
.frame-caption {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    z-index: 2; color: rgba(255, 255, 255, .9);
    font-size: 8px; font-weight: 800; letter-spacing: .3em; white-space: nowrap;
    text-shadow: 0 1px 8px rgba(80, 50, 65, .25);
}
.portrait-orbit {
    position: absolute; inset: 0; z-index: 0; border-radius: 50%;
    animation: spinSlow 34s linear infinite;
}
.portrait-orbit::before {
    content: ""; position: absolute; inset: 7%; border-radius: 50%;
    border: 1px dashed rgba(var(--accent-rgb), .34);
}
.orbit-dot { position: absolute; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-small); }
.orbit-dot::after { content: "✿"; display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); font-size: 10px; }
.dot-1 { width: 34px; height: 34px; top: 12%; right: 7%; }
.dot-2 { width: 24px; height: 24px; bottom: 18%; left: 2%; }
.dot-3 { width: 18px; height: 18px; top: 49%; right: -2%; }
.floating-card {
    position: absolute; z-index: 3;
    display: flex; align-items: center; gap: 11px;
    padding: 13px 17px; border-radius: 18px;
    background: var(--header-bg); border: 1px solid var(--border);
    box-shadow: var(--shadow-soft); backdrop-filter: blur(16px);
    animation: floatCard 6s ease-in-out infinite;
}
.float-top { top: 18%; left: -7%; }
.float-bottom { bottom: 10%; right: -5%; animation-delay: -3s; }
.float-icon {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    background: rgba(var(--accent-rgb), .13); color: var(--accent);
}
.float-icon.soft { background: rgba(var(--accent-2-rgb), .14); color: var(--accent-2); }
.float-icon .icon { width: 18px; height: 18px; }
.floating-card span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.floating-card small { color: var(--faint); font-size: 7px; font-weight: 800; letter-spacing: .18em; }
.floating-card b { font-size: 12px; font-weight: 600; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.vertical-sign {
    position: absolute; right: -54px; top: 50%; transform: translateY(-50%) rotate(90deg);
    color: var(--faint); font-size: 8px; font-weight: 700; letter-spacing: .38em; white-space: nowrap;
}
.scroll-cue {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--faint); font-size: 8px; font-weight: 700; letter-spacing: .3em;
}
.scroll-cue i { display: block; width: 1px; height: 42px; background: linear-gradient(var(--accent), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: scaleY(.2); transform-origin: top; opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 26px; align-items: stretch; }
.about-card { padding: clamp(32px, 4vw, 54px); border-radius: var(--radius-xl); }
.about-quote {
    position: relative; padding-left: 40px;
    font-family: var(--font-serif); font-size: clamp(19px, 2.1vw, 25px);
    line-height: 1.75; color: var(--text);
}
.quote-mark {
    position: absolute; left: 0; top: -18px;
    color: rgba(var(--accent-rgb), .35); font-family: Georgia, serif; font-size: 68px; line-height: 1;
}
.about-text { margin-top: 28px; color: var(--muted); font-size: 14px; line-height: 2.05; }
.about-text p + p { margin-top: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--surface); box-shadow: var(--shadow-small);
    color: var(--muted); font-size: 11px; font-weight: 500;
    transition: transform .3s var(--ease), color .3s;
}
.tag:hover { transform: translateY(-3px); color: var(--accent-deep); }
.tag i { color: var(--accent); font-style: normal; font-size: 10px; opacity: .8; }
.about-side { display: flex; flex-direction: column; gap: 18px; }
.garden-note {
    position: relative; flex: 1; padding: 30px; border-radius: var(--radius-lg);
    display: flex; flex-direction: column; min-height: 250px;
    overflow: hidden;
}
.garden-note::after {
    content: "❀"; position: absolute; right: -12px; bottom: -30px;
    color: rgba(var(--accent-rgb), .08); font-size: 150px; line-height: 1; pointer-events: none;
}
.garden-note p { margin-top: auto; font-family: var(--font-serif); font-size: 21px; line-height: 1.7; }
.note-sign { margin-top: 12px; color: var(--accent-deep); font-size: 11px; letter-spacing: .12em; }
.note-stamp {
    display: inline-flex; align-items: center; gap: 9px; width: fit-content;
    margin-top: 22px; padding: 10px 14px; border-radius: 14px;
    color: var(--accent-deep); background: rgba(var(--accent-rgb), .1);
    font-size: 8px; font-weight: 800; line-height: 1.35; letter-spacing: .16em;
}
.note-stamp .icon { width: 24px; height: 24px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stat {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 18px 8px; border-radius: 18px; text-align: center;
}
.mini-stat-icon { color: var(--accent); }
.mini-stat-icon .icon { width: 18px; height: 18px; }
.mini-stat b { font-family: var(--font-serif); font-size: 25px; font-weight: 600; line-height: 1.1; }
.mini-stat small { color: var(--faint); font-size: 9px; letter-spacing: .06em; }

/* ---------- Moments ---------- */
.moment-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr); gap: 24px; }
.moment-grid.single { grid-template-columns: 1fr; }
.weather-card {
    position: relative; padding: clamp(28px, 3.4vw, 42px); border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 6%, rgba(var(--accent-3-rgb), .28), transparent 32%),
        radial-gradient(circle at 4% 100%, rgba(var(--accent-2-rgb), .18), transparent 36%),
        var(--surface);
}
.weather-card::before {
    content: ""; position: absolute; right: -50px; top: -50px; width: 220px; height: 220px;
    border: 1px dashed rgba(var(--accent-rgb), .25); border-radius: 50%; pointer-events: none;
}
.weather-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.weather-place { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.weather-place .icon { color: var(--accent); width: 16px; height: 16px; }
.weather-place b { color: var(--text); font-weight: 600; font-size: 14px; }
.locate-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 999px;
    color: var(--faint); font-size: 10px;
    background: var(--surface); box-shadow: var(--shadow-small);
    transition: color .25s;
}
.locate-btn:hover { color: var(--accent); }
.locate-btn .icon { width: 12px; height: 12px; }
.weather-main { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); margin: 22px 0 26px; }
.weather-icon-wrap {
    position: relative; display: grid; place-items: center;
    width: clamp(96px, 11vw, 128px); height: clamp(96px, 11vw, 128px);
    flex: 0 0 auto; border-radius: 50%;
    background: rgba(var(--accent-rgb), .08);
    box-shadow: inset 4px 4px 12px rgba(0, 0, 0, .04), inset -4px -4px 12px rgba(255, 255, 255, .6);
}
.weather-icon-wrap svg { width: 72%; height: 72%; overflow: visible; }
.weather-icon-wrap .w-sun { fill: var(--accent-3); filter: drop-shadow(0 6px 14px rgba(var(--accent-3-rgb), .4)); }
.weather-icon-wrap .w-rays { color: var(--accent-3); opacity: .9; animation: raysTurn 16s linear infinite; transform-origin: 60px 60px; }
.weather-icon-wrap .w-moon { fill: #f2d394; filter: drop-shadow(0 6px 16px rgba(242, 211, 148, .35)); }
.weather-icon-wrap .w-star { fill: #fff6da; opacity: .8; animation: twinkle 3s ease-in-out infinite; }
.weather-icon-wrap .w-cloud { fill: rgba(var(--accent-rgb), .45); stroke: rgba(var(--accent-rgb), .5); stroke-width: 1; animation: cloudFloat 6s ease-in-out infinite; }
.weather-icon-wrap .w-cloud.back { fill: rgba(var(--accent-2-rgb), .3); stroke: none; animation-delay: -2s; }
.weather-icon-wrap .w-fog { color: rgba(var(--accent-rgb), .55); }
.weather-icon-wrap .w-drop path, .weather-icon-wrap .w-snow path, .weather-icon-wrap .w-bolt { stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; fill: none; }
.weather-icon-wrap .w-bolt { fill: var(--accent-3); stroke: none; }
.weather-icon-wrap .w-snow { color: var(--accent-2); }
@keyframes raysTurn { to { transform: rotate(360deg); } }
@keyframes twinkle { 50% { opacity: .25; } }
@keyframes cloudFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.weather-skeleton-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); animation: skeleton 1.6s infinite; }
@keyframes skeleton { 50% { opacity: .35; } }
.weather-temp-wrap { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2px; }
.weather-temp {
    font-family: var(--font-serif); font-size: clamp(64px, 8vw, 92px);
    font-weight: 500; line-height: .9; letter-spacing: -.06em;
    font-variant-numeric: tabular-nums;
}
.weather-temp-wrap sup { color: var(--accent); font-family: var(--font-serif); font-size: clamp(28px, 3.2vw, 40px); top: -.3em; }
.weather-desc { display: flex; flex-direction: column; width: 100%; margin-top: 8px; }
.weather-desc b { font-size: 16px; font-weight: 600; }
.weather-desc small { color: var(--faint); font-size: 11px; letter-spacing: .04em; }
.weather-details {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.weather-detail {
    padding: 13px 8px; border-radius: 15px; text-align: center;
    background: var(--surface); box-shadow: var(--shadow-in);
}
.weather-detail span { display: block; color: var(--faint); font-size: 9px; letter-spacing: .08em; }
.weather-detail b { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; }
.weather-foot {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid rgba(var(--accent-rgb), .13);
    color: var(--muted); font-size: 10px;
}
.weather-foot span { display: inline-flex; align-items: center; gap: 5px; }
.weather-foot .icon { width: 13px; height: 13px; color: var(--accent); }
.weather-foot b { color: var(--text); font-weight: 600; }
.weather-updated { margin-left: auto; color: var(--faint); }
.weather-message { margin-top: 12px; color: var(--accent-deep); font-size: 11px; }
.weather-card.is-error .weather-icon-wrap { opacity: .5; }

.clock-card {
    position: relative; display: flex; flex-direction: column;
    padding: clamp(28px, 3vw, 38px); border-radius: var(--radius-xl);
    overflow: hidden; min-height: 320px;
    background:
        radial-gradient(circle at 80% 82%, rgba(var(--accent-2-rgb), .24), transparent 38%),
        var(--surface);
}
.clock-bg-flower {
    position: absolute; right: -26px; bottom: -24px;
    color: rgba(var(--accent-rgb), .11); transform: rotate(-12deg);
}
.clock-bg-flower .icon { width: 190px; height: 190px; stroke-width: .7; }
.clock-time {
    margin-top: auto; font-family: var(--font-serif); font-size: clamp(54px, 6.2vw, 76px);
    line-height: .95; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.clock-time span { font-size: .34em; color: var(--faint); letter-spacing: 0; }
.clock-date { margin-top: 10px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.clock-greeting { margin-top: 16px; color: var(--accent-deep); font-family: var(--font-serif); font-size: 16px; line-height: 1.5; }
.clock-rule { height: 1px; margin: 20px 0 14px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .26), transparent); }
.clock-foot { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 9px; letter-spacing: .05em; }
.clock-foot span { display: inline-flex; align-items: center; gap: 4px; }
.clock-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
    position: relative; display: flex; flex-direction: column; gap: 26px;
    min-height: 216px; padding: 26px; border-radius: var(--radius-lg);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
    overflow: hidden;
}
.contact-card::after {
    content: ""; position: absolute; right: -30px; bottom: -46px;
    width: 130px; height: 130px; border-radius: 50%;
    background: rgba(var(--accent-rgb), .06);
    transition: transform .5s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: 22px 24px 48px var(--shadow-dark), -16px -16px 38px var(--shadow-light); }
.contact-card:hover::after { transform: scale(1.25); }
.contact-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.contact-icon {
    display: grid; place-items: center; width: 58px; height: 58px;
    border-radius: 18px; color: var(--accent-deep);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), .2), rgba(var(--accent-3-rgb), .16));
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, .6), 5px 5px 14px rgba(var(--accent-rgb), .14);
}
.contact-icon .icon { width: 25px; height: 25px; }
.contact-icon.has-image { background: var(--surface-2); padding: 0; overflow: hidden; }
.contact-icon img { width: 100%; height: 100%; object-fit: cover; }
.contact-index { color: var(--faint); font-family: var(--font-serif); font-size: 13px; letter-spacing: .08em; }
.contact-body { display: flex; flex-direction: column; gap: 5px; }
.contact-name { color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.contact-value { font-family: var(--font-serif); font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.contact-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.copy-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 11px; border-radius: 999px;
    color: var(--faint); font-size: 10px;
    transition: color .25s, background .25s;
}
.copy-chip:hover { color: var(--accent-deep); background: rgba(var(--accent-rgb), .08); }
.copy-chip .icon { width: 12px; height: 12px; }
.contact-link {
    display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 50%; color: var(--accent-deep);
    background: var(--surface); box-shadow: var(--shadow-small);
    transition: transform .3s var(--ease);
}
.contact-link:hover { transform: translate(2px, -2px) rotate(-8deg); }
.contact-link .icon { width: 16px; height: 16px; }

/* ---------- Friends ---------- */
.friend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.friend-card {
    display: flex; align-items: center; gap: 16px;
    min-height: 100px; padding: 20px 22px; border-radius: var(--radius);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.friend-card:hover { transform: translateY(-4px); box-shadow: 20px 22px 42px var(--shadow-dark), -14px -14px 32px var(--shadow-light); }
.friend-avatar {
    display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px;
    border-radius: 18px; overflow: hidden;
    color: hsl(var(--hue, 340) 42% 42%);
    background: hsl(var(--hue, 340) 45% 90%);
    font-family: var(--font-serif); font-size: 24px; font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.friend-avatar.has-image { background: var(--surface-2); }
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friend-copy { display: flex; flex-direction: column; min-width: 0; }
.friend-copy b { font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
.friend-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.friend-go { margin-left: auto; color: var(--faint); transition: color .25s, transform .3s; }
.friend-go .icon { width: 18px; height: 18px; }
.friend-card:hover .friend-go { color: var(--accent); transform: translateX(3px); }
.apply-card {
    border: 1px dashed rgba(var(--accent-rgb), .38);
    background: rgba(var(--accent-rgb), .045);
    box-shadow: none; text-align: left;
}
.apply-card:hover { background: rgba(var(--accent-rgb), .08); box-shadow: none; }
.apply-plus {
    display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px;
    border-radius: 18px; color: var(--accent);
    border: 1px dashed rgba(var(--accent-rgb), .4);
}
.apply-plus .icon { width: 22px; height: 22px; }
.friends-notice {
    display: flex; align-items: flex-start; gap: 8px;
    margin-top: 20px; color: var(--faint); font-size: 10px; line-height: 1.7;
}
.friends-notice .icon { width: 13px; height: 13px; margin-top: 2px; color: var(--accent-3); }
.empty-garden {
    padding: 60px 24px; border-radius: var(--radius-xl); text-align: center;
}
.empty-garden-icon { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.empty-garden-icon .icon { width: 30px; height: 30px; }
.empty-garden h3 { margin-top: 18px; font-family: var(--font-serif); font-size: 25px; font-weight: 600; }
.empty-garden p { margin: 8px 0 22px; color: var(--muted); font-size: 13px; }

/* ---------- Sites ---------- */
.site-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.site-card {
    display: flex; flex-direction: column; border-radius: var(--radius-lg);
    overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s;
}
.site-card:hover { transform: translateY(-7px); box-shadow: 24px 26px 50px var(--shadow-dark), -16px -16px 36px var(--shadow-light); }
.site-cover {
    position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), .4), rgba(var(--accent-2-rgb), .4));
}
.site-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.site-card:hover .site-cover img { transform: scale(1.06); }
.site-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30, 25, 35, .02) 30%, rgba(30, 25, 35, .42));
}
.site-badge {
    position: absolute; left: 15px; top: 15px;
    padding: 5px 10px; border-radius: 999px;
    color: #fff; background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .34);
    backdrop-filter: blur(8px);
    font-size: 7px; font-style: normal; font-weight: 800; letter-spacing: .16em;
}
.site-arrow {
    position: absolute; right: 15px; bottom: 15px;
    display: grid; place-items: center; width: 36px; height: 36px;
    border-radius: 50%; color: #fff;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(8px);
    transform: rotate(-45deg); transition: transform .4s var(--ease), background .3s;
}
.site-card:hover .site-arrow { transform: rotate(0); background: rgba(var(--accent-rgb), .85); }
.site-arrow .icon { width: 15px; height: 15px; }
.site-number {
    position: absolute; left: 16px; bottom: 12px;
    color: rgba(255, 255, 255, .72); font-family: var(--font-serif); font-size: 30px; line-height: 1;
}
.cover-placeholder-flower { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .8); }
.cover-placeholder-flower .icon { width: 80px; height: 80px; stroke-width: .9; }
.site-body { display: flex; flex-direction: column; padding: 21px 22px 24px; }
.site-body b { font-family: var(--font-serif); font-size: 21px; font-weight: 600; }
.site-body small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.site-more { display: flex; align-items: center; gap: 7px; margin-top: 17px; color: var(--accent-deep); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.site-more i { width: 22px; height: 1px; background: rgba(var(--accent-rgb), .4); transition: width .3s; }
.site-card:hover .site-more i { width: 38px; }

/* ---------- Tips ---------- */
.tip-panel {
    position: relative; display: grid; grid-template-columns: 1.12fr .88fr;
    gap: clamp(30px, 5vw, 64px);
    padding: clamp(34px, 5vw, 64px); border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 8%, rgba(var(--accent-3-rgb), .28), transparent 30%),
        radial-gradient(circle at 4% 100%, rgba(var(--accent-rgb), .16), transparent 34%),
        var(--surface);
}
.tip-panel::before {
    content: ""; position: absolute; left: 52%; top: -40%; width: 1px; height: 180%;
    background: linear-gradient(transparent, rgba(var(--accent-rgb), .16), transparent);
}
.tip-copy h2 { margin-top: 14px; font-family: var(--font-serif); font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.2; }
.tip-copy > p { max-width: 520px; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.tip-amounts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.tip-chip {
    min-width: 60px; padding: 11px 15px; border-radius: 999px;
    background: var(--surface); box-shadow: var(--shadow-small);
    color: var(--muted); font-family: var(--font-serif); font-size: 15px;
    transition: color .25s, background .25s, transform .25s;
}
.tip-chip:hover { transform: translateY(-2px); }
.tip-chip.selected { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); box-shadow: 3px 5px 14px rgba(var(--accent-rgb), .3); }
html[data-theme="noir"] .tip-chip.selected { color: #241f28; }
.tip-open { margin-top: 22px; }
.tip-note { margin-top: 16px; color: var(--faint); font-size: 10px; letter-spacing: .02em; }
.tip-side { display: flex; flex-direction: column; gap: 18px; }
.tip-illustration {
    position: relative; display: grid; place-items: center;
    height: 150px; border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-2-rgb), .1));
    box-shadow: var(--shadow-in);
    overflow: hidden;
}
.tip-teacup { width: min(200px, 70%); height: auto; filter: drop-shadow(0 14px 18px rgba(var(--accent-rgb), .18)); animation: floatCard 5s ease-in-out infinite; }
.tip-petal { position: absolute; color: rgba(var(--accent-rgb), .6); font-size: 18px; animation: floatCard 7s ease-in-out infinite; }
.tip-petal.p1 { left: 18%; top: 22%; animation-delay: -1s; }
.tip-petal.p2 { right: 18%; top: 30%; font-size: 12px; animation-delay: -3s; }
.tip-petal.p3 { right: 28%; bottom: 16%; font-size: 14px; animation-delay: -5s; }
.donor-wall { flex: 1; }
.donor-wall-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.donor-wall-head span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.donor-wall-head span .icon { color: var(--accent); width: 14px; height: 14px; }
.donor-wall-head em { color: var(--faint); font-size: 9px; font-style: normal; }
.donor-list { display: flex; flex-direction: column; gap: 6px; }
.donor {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 12px;
    background: rgba(var(--accent-rgb), .045);
}
.donor-avatar {
    display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px;
    border-radius: 50%; color: var(--accent-deep);
    background: rgba(var(--accent-rgb), .14);
    font-family: var(--font-serif); font-size: 12px;
}
.donor-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.donor-info b { font-size: 10px; font-weight: 600; }
.donor-info small { color: var(--faint); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donor-amount { margin-left: auto; color: var(--accent-deep); font-family: var(--font-serif); font-size: 13px; }
.donor-empty { color: var(--faint); font-size: 11px; line-height: 1.9; text-align: center; padding: 16px 0; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative; margin-top: 40px; padding: 72px 0 30px;
    background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), .055));
    overflow: hidden;
}
.footer-flower {
    position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: var(--surface); box-shadow: var(--shadow-soft); color: var(--accent);
}
.footer-flower .icon { width: 24px; height: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr 1fr; gap: 48px; position: relative; z-index: 1; }
.footer-brand p { max-width: 360px; margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
    background: var(--surface); box-shadow: var(--shadow-small); color: var(--muted);
    overflow: hidden; transition: color .25s, transform .3s;
}
.footer-social a:hover { color: var(--accent); transform: translateY(-3px); }
.footer-social img { width: 100%; height: 100%; object-fit: cover; }
.footer-social .icon { width: 16px; height: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links > span:first-child { margin-bottom: 4px; color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .24em; }
.footer-links a { width: fit-content; color: var(--muted); font-size: 12px; transition: color .25s; }
.footer-links a:hover { color: var(--accent-deep); }
.footer-muted { color: var(--faint); font-size: 11px; }
.footer-bottom {
    position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
    margin-top: 54px; padding-top: 20px;
    border-top: 1px solid rgba(var(--accent-rgb), .12);
    color: var(--faint); font-size: 10px;
}
.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.footer-bottom-links a { color: var(--faint); }
.footer-bottom-links .icon { display: inline-block; width: 11px; height: 11px; color: var(--accent); vertical-align: -1px; }
.footer-wordmark {
    position: absolute; left: 50%; bottom: -4vw; transform: translateX(-50%);
    color: rgba(var(--accent-rgb), .055); font-family: var(--font-serif);
    font-size: clamp(120px, 22vw, 300px); font-weight: 600; line-height: .8;
    letter-spacing: .04em; pointer-events: none; white-space: nowrap;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 55;
    display: grid; place-items: center; width: 48px; height: 48px;
    border-radius: 50%; color: var(--accent-deep); background: var(--surface);
    box-shadow: var(--shadow-soft); border: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .35s, transform .35s, visibility .35s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top .icon { width: 18px; height: 18px; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 120;
    display: grid; place-items: center; padding: 24px;
    background: rgba(25, 21, 30, .45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: overlayIn .3s ease;
}
@keyframes overlayIn { from { opacity: 0; } }
.modal {
    position: relative; display: grid; grid-template-columns: .82fr 1.18fr;
    width: min(940px, 100%); max-height: min(88vh, 800px);
    border-radius: 32px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 40px 100px rgba(30, 22, 38, .34);
    animation: modalIn .45s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal-art {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 38px 32px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .28), transparent 34%),
        linear-gradient(155deg, var(--accent-deep), var(--accent) 50%, var(--accent-2));
    overflow: hidden;
}
.modal-art::before {
    content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%;
}
.modal-art::after {
    content: ""; position: absolute; left: -40px; bottom: 30%; width: 160px; height: 160px;
    border: 1px dashed rgba(255, 255, 255, .2); border-radius: 50%;
}
.modal-art .eyebrow { color: rgba(255, 255, 255, .72); position: relative; z-index: 1; }
.modal-art h3 { position: relative; z-index: 1; margin-top: 14px; font-family: var(--font-serif); font-size: 34px; font-weight: 600; line-height: 1.36; }
.modal-art p { position: relative; z-index: 1; margin-top: 14px; max-width: 230px; color: rgba(255, 255, 255, .76); font-size: 11px; line-height: 1.8; }
.modal-art-flower { position: absolute; top: 42px; left: 32px; color: rgba(255, 255, 255, .8); font-size: 40px; }
.modal-art-flower .icon { width: 38px; height: 38px; stroke-width: 1; }
.modal-art-tea { position: absolute; top: 28px; left: 26px; width: 128px; height: auto; opacity: .92; filter: drop-shadow(0 14px 22px rgba(80, 40, 30, .18)); }
.modal-body { position: relative; padding: 38px clamp(26px, 3.4vw, 44px); overflow-y: auto; }
.modal-close {
    position: absolute; right: 20px; top: 20px; z-index: 3;
    display: grid; place-items: center; width: 36px; height: 36px;
    border-radius: 50%; color: var(--muted); background: var(--surface); box-shadow: var(--shadow-small);
}
.modal-close .icon { width: 15px; height: 15px; }
.modal-head h2 { margin-top: 7px; font-family: var(--font-serif); font-size: 30px; font-weight: 600; }
.modal-head p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.modal-form .field-row, #friend-apply-form .field-row, #tip-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#friend-apply-form, #tip-form { margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; min-width: 0; }
.field > span { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .03em; }
.field > span em { color: var(--faint); font-style: normal; font-weight: 400; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    color: var(--text); font-size: 12px;
    background: var(--surface-2);
    border: 1px solid rgba(0, 0, 0, .04);
    box-shadow: inset 3px 3px 7px rgba(0, 0, 0, .035), inset -3px -3px 7px rgba(255, 255, 255, .6);
    transition: border-color .25s, box-shadow .25s;
}
html[data-theme="noir"] .field input, html[data-theme="noir"] .field textarea, html[data-theme="noir"] .field select {
    border-color: rgba(255, 255, 255, .06);
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, .3), inset -3px -3px 8px rgba(255, 255, 255, .03);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: rgba(var(--accent-rgb), .5);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1);
}
.field textarea { resize: vertical; min-height: 76px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field-help { color: var(--faint); font-size: 10px; line-height: 1.7; }
.file-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 14px; border-radius: 10px;
    color: var(--accent-deep); background: rgba(var(--accent-rgb), .09);
    font-size: 10px; font-weight: 600; cursor: pointer;
    transition: background .25s;
}
.file-btn:hover { background: rgba(var(--accent-rgb), .15); }
.file-btn input { display: none; }
.file-btn.light { background: var(--surface); box-shadow: var(--shadow-small); justify-content: center; }
.check-line { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.6; cursor: pointer; }
.check-line input { width: 14px; height: 14px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 14px; }
.agree-line { margin: 2px 0 14px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-error {
    margin: 10px 0; padding: 9px 12px; border-radius: 10px;
    color: #b24d63; background: rgba(214, 92, 118, .1); font-size: 10px; line-height: 1.6;
}
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.modal-actions .btn { min-height: 44px; padding: 0 22px; font-size: 12px; }
.apply-note { display: flex; align-items: flex-start; gap: 5px; margin-top: 12px; color: var(--faint); font-size: 9px; line-height: 1.6; }
.apply-note .icon { width: 11px; height: 11px; margin-top: 2px; }
.apply-success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 380px; }
.success-flower { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 22px; border-radius: 50%; color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.success-flower .icon { width: 38px; height: 38px; }
.apply-success h2 { margin: 8px 0 10px; font-family: var(--font-serif); font-size: 30px; font-weight: 600; }
.apply-success p { max-width: 320px; color: var(--muted); font-size: 12px; line-height: 1.9; margin-bottom: 24px; }
.tip-modal { grid-template-columns: .78fr 1.22fr; }
.tip-art { background: linear-gradient(155deg, #9d7a58, #d8a97c 48%, var(--accent-2)); }
.tip-art-stat { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); }
.tip-art-stat b { font-family: var(--font-serif); font-size: 34px; }
.tip-art-stat span { color: rgba(255, 255, 255, .7); font-size: 9px; }
.tip-amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.tip-option {
    padding: 11px 6px; border-radius: 12px; text-align: center;
    color: var(--muted); background: var(--surface); box-shadow: var(--shadow-small);
    font-family: var(--font-serif); font-size: 15px;
    transition: color .25s, background .25s;
}
.tip-option.selected { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
html[data-theme="noir"] .tip-option.selected { color: #241f28; }
.tip-option.custom { display: flex; align-items: center; gap: 4px; padding: 4px 8px; font-family: var(--font-sans); font-size: 9px; }
.tip-option.custom span { flex: 0 0 auto; color: var(--faint); }
.tip-option.custom input { width: 100%; min-width: 0; border: 0; background: transparent; text-align: right; font-size: 12px; font-family: var(--font-serif); }
.tip-option.custom input:focus { outline: none; }
.tip-option.custom.selected { color: var(--accent-deep); background: rgba(var(--accent-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .3); }
.channel-row { display: flex; gap: 8px; margin-bottom: 14px; }
.channel-option { flex: 1; }
.channel-option input { position: absolute; opacity: 0; pointer-events: none; }
.channel-option span {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px; border-radius: 11px; color: var(--muted);
    border: 1px solid transparent; background: var(--surface-2);
    font-size: 10px; cursor: pointer; transition: all .25s;
}
.channel-option span .icon { width: 14px; height: 14px; }
.channel-option input:checked + span { color: var(--accent-deep); border-color: rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .08); }

/* ---------- Return page ---------- */
.return-page {
    position: relative; min-height: 100vh; display: grid; place-items: center;
    padding: 90px 20px 50px; overflow: hidden;
}
.return-page .page-decor { z-index: -1; }
.return-shell { position: relative; z-index: 2; width: min(580px, 100%); }
.return-brand { display: flex; justify-content: center; margin-bottom: 24px; }
.return-brand .nav-brand { gap: 10px; }
.return-brand .brand-logo { width: 38px; height: 38px; }
.return-card {
    padding: clamp(30px, 5vw, 50px); border-radius: var(--radius-xl);
    text-align: center; background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow-out);
}
.return-icon {
    display: inline-grid; place-items: center; width: 84px; height: 84px;
    margin-bottom: 20px; border-radius: 50%; color: var(--accent);
    background: rgba(var(--accent-rgb), .11);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .1);
}
.return-icon.success { color: var(--accent-deep); }
.return-icon.error { color: #c76b80; background: rgba(199, 107, 128, .1); }
.return-icon .icon { width: 38px; height: 38px; }
.return-kicker { display: block; color: var(--accent-deep); font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.return-title { margin-top: 10px; font-family: var(--font-serif); font-size: clamp(30px, 5vw, 42px); font-weight: 600; line-height: 1.25; }
.return-desc { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.return-amount { display: flex; align-items: baseline; justify-content: center; gap: 3px; margin: 22px 0 6px; font-family: var(--font-serif); color: var(--accent-deep); }
.return-amount span { font-size: 22px; }
.return-amount b { font-size: 52px; font-weight: 500; letter-spacing: -.03em; }
.return-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
    margin-top: 16px; padding-top: 15px; border-top: 1px dashed rgba(var(--accent-rgb), .2);
    color: var(--faint); font-size: 9px;
}
.return-meta span { display: inline-flex; align-items: center; gap: 4px; }
.return-meta .icon { width: 11px; height: 11px; }
.return-message { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 11px; line-height: 1.8; }
.return-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.return-note { margin-top: 18px; color: var(--faint); font-size: 9px; line-height: 1.8; }
.return-spinner {
    display: inline-block; width: 58px; height: 58px; margin-bottom: 20px;
    border-radius: 50%; border: 2px solid rgba(var(--accent-rgb), .15);
    border-top-color: var(--accent);
    animation: spinSlow 1s linear infinite;
}
.return-steps { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.return-steps i { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--accent-rgb), .18); animation: returnPulse 1.5s ease-in-out infinite; }
.return-steps i:nth-child(2) { animation-delay: .2s; }
.return-steps i:nth-child(3) { animation-delay: .4s; }
@keyframes returnPulse { 50% { background: var(--accent); transform: scale(1.3); } }
.return-order { margin-top: 8px; color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; letter-spacing: .04em; }
.return-footer { margin-top: 20px; text-align: center; color: var(--faint); font-size: 8px; letter-spacing: .06em; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; right: 24px; bottom: 90px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
    display: flex; align-items: center; gap: 9px;
    max-width: min(360px, calc(100vw - 48px));
    padding: 12px 16px; border-radius: 14px;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-soft);
    font-size: 11px; line-height: 1.5;
    animation: toastIn .4s var(--ease);
}
.toast .icon { width: 16px; height: 16px; color: var(--accent); }
.toast.error .icon { color: #c65970; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s var(--ease); }
[data-tilt].is-tilting { transition: transform .08s linear; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-visual { width: min(100%, 420px); }
    .vertical-sign { display: none; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .site-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr .7fr 1fr; gap: 32px; }
}

@media (max-width: 920px) {
    .nav-shell { gap: 14px; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: calc(100% + 10px);
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 14px; border-radius: 24px;
        background: var(--surface); border: 1px solid var(--border);
        box-shadow: var(--shadow-out);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .3s, transform .3s, visibility .3s;
    }
    .site-header.nav-open .main-nav { opacity: 1; visibility: visible; transform: translateY(0); }
    .main-nav a { padding: 12px 16px; font-size: 14px; }
    .main-nav .nav-login-link { margin-left: 0; padding-left: 16px; border-left: 0; border-top: 1px dashed rgba(var(--accent-rgb), .18); border-radius: 0 0 10px 10px; }
    .main-nav a.active::after { left: auto; right: 16px; top: 50%; bottom: auto; transform: translateY(-50%); }
    .mobile-toggle { display: inline-grid; }
    .nav-cta span { display: none; }
    .nav-cta { width: 44px; padding: 0; justify-content: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero { padding-top: 150px; }
    .hero-copy { max-width: 650px; }
    .hero-visual { margin: 0 auto; width: min(78vw, 400px); }
    .hero-intro { max-width: 600px; }
    .hero-meta { margin-bottom: 6px; }
    .scroll-cue { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .about-side { display: grid; grid-template-columns: 1.2fr 1fr; }
    .garden-note { min-height: 210px; }
    .mini-stats { grid-template-columns: 1fr; }
    .mini-stat { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 13px 16px; text-align: left; }
    .mini-stat b { margin-left: auto; }
    .mini-stat small { display: none; }
    .moment-grid { grid-template-columns: 1fr; }
    .clock-card { min-height: 280px; }
    .tip-panel { grid-template-columns: 1fr; }
    .tip-panel::before { display: none; }
    .tip-side { display: grid; grid-template-columns: .7fr 1.3fr; align-items: start; }
    .tip-illustration { height: 100%; min-height: 140px; }
    .friend-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    html { scroll-padding-top: 96px; }
    .site-header { padding: 12px 0; }
    .nav-shell { min-height: 62px; padding: 8px 10px 8px 14px; }
    .brand-logo { width: 36px; height: 36px; }
    .brand-text b { font-size: 15px; }
    .brand-text small { font-size: 7px; }
    .theme-wrap .theme-panel { position: fixed; left: 16px; right: 16px; top: 88px; width: auto; transform-origin: top center; }
    .hero { padding-top: 126px; padding-bottom: 66px; }
    .hero-name { font-size: clamp(60px, 18vw, 84px); }
    .hero-headline { font-size: clamp(26px, 7vw, 34px); }
    .hero-intro { font-size: 14px; line-height: 1.9; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { min-height: 48px; padding: 0 20px; font-size: 12px; }
    .hero-visual { width: min(86vw, 370px); }
    .floating-card { padding: 10px 13px; }
    .float-top { left: -3%; top: 14%; }
    .float-bottom { right: -2%; bottom: 5%; }
    .float-icon { width: 32px; height: 32px; }
    .section { padding: 74px 0; }
    .section-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .section-count { display: none; }
    .section-head h2 { font-size: clamp(32px, 9vw, 42px); }
    .section-intro { font-size: 13px; }
    .about-card { padding: 28px 22px; border-radius: 26px; }
    .about-quote { padding-left: 26px; font-size: 18px; }
    .quote-mark { font-size: 50px; }
    .about-text { font-size: 13px; }
    .about-side { grid-template-columns: 1fr; }
    .mini-stats { grid-template-columns: repeat(3, 1fr); }
    .mini-stat { flex-direction: column; justify-content: center; text-align: center; padding: 14px 8px; }
    .mini-stat b { margin-left: 0; }
    .weather-card, .clock-card { padding: 24px 20px; border-radius: 26px; }
    .weather-main { gap: 16px; margin: 18px 0 22px; }
    .weather-icon-wrap { width: 86px; height: 86px; }
    .weather-temp { font-size: 64px; }
    .weather-details { grid-template-columns: repeat(2, 1fr); }
    .weather-updated { margin-left: 0; width: 100%; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-card { min-height: 190px; }
    .site-grid { grid-template-columns: 1fr; }
    .tip-panel { padding: 28px 22px; border-radius: 26px; }
    .tip-side { grid-template-columns: 1fr; }
    .tip-illustration { height: 120px; }
    .friend-card { padding: 16px; border-radius: 18px; }
    .friend-avatar, .apply-plus { width: 50px; height: 50px; flex-basis: 50px; }
    .friend-copy b { font-size: 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-links { gap: 7px; }
    .site-footer { padding-top: 54px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-wordmark { font-size: 28vw; bottom: -8vw; }
    .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
    .toast-stack { right: 16px; bottom: 74px; }
    .modal-overlay { padding: 12px; align-items: end; }
    .modal { grid-template-columns: 1fr; max-height: 92vh; border-radius: 24px; }
    .modal-art { display: none; }
    .modal-body { padding: 28px 20px 24px; }
    .modal-head h2 { font-size: 26px; }
    .modal-form .field-row, #friend-apply-form .field-row, #tip-form .field-row { grid-template-columns: 1fr; gap: 0; }
    .tip-amount-grid { grid-template-columns: repeat(3, 1fr); }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
    .container { width: calc(100% - 32px); }
    .nav-shell { width: calc(100% - 24px); }
    .hero-name { font-size: 58px; }
    .hero-stat { font-size: 10px; }
    .hero-stat b { font-size: 18px; }
    .weather-desc b { font-size: 14px; }
    .footer-social a { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    #petal-canvas { display: none; }
}
