:root {
  --bg: #fffdf8;
  --cream: #fff4d6;
  --cream-2: #fff8e9;
  --usagi-yellow: #ffd95a;
  --usagi-soft: #fff0ad;
  --chiikawa-white: #ffffff;
  --chiikawa-soft: #f5f4f0;
  --pink: #ffb6b6;
  --pink-soft: #ffe8e2;
  --blue-soft: #ddeeff;
  --green-soft: #dff5e7;
  --text: #292725;
  --text-secondary: #78736d;
  --line: rgba(41, 39, 37, 0.09);
  --shadow: 0 4px 20px rgba(68, 50, 20, 0.07);
  --nav-height: 76px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: #e8e2d8; color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", system-ui, sans-serif; }
body { display: grid; place-items: center; padding: 20px; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; object-fit: cover; }

.app-shell { position: relative; width: min(390px, 100vw); height: min(844px, 100vh); overflow: hidden; border-radius: 28px; background: radial-gradient(circle at 24% 4%, #fff 0 18%, transparent 38%), var(--bg); box-shadow: 0 20px 60px rgba(35, 30, 22, .22), 0 0 0 1px rgba(0,0,0,.05); }
.screen { position: absolute; inset: 0; display: none; overflow-y: auto; padding: 14px 18px calc(var(--nav-height) + 20px); background: var(--bg); animation: fadeUp .26s ease both; }
.screen.active { display: block; }
.screen::-webkit-scrollbar { display: none; }
.status-bar { height: 30px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 12px; letter-spacing: -.2px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes peek { 0%, 100% { transform: translateX(-8px) translateY(0); } 50% { transform: translateX(4px) translateY(-5px); } }

/* hand drawn characters: Usagi yellow bunny + Chiikawa white friend */
.character { position: relative; width: 82px; height: 78px; flex: 0 0 auto; filter: drop-shadow(0 3px 0 rgba(0,0,0,.05)); }
.character::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 58px; border: 3px solid #27231f; border-radius: 48% 48% 42% 42%; background: var(--chiikawa-white); }
.character::after { content: ""; position: absolute; left: 27px; top: 42px; width: 7px; height: 9px; border-radius: 50%; background: #1f1d1a; box-shadow: 24px 0 #1f1d1a, 12px 18px 0 -2px #1f1d1a; }
.character i, .character b { position: absolute; z-index: 2; display: block; }
.character i::before, .character i::after { content: ""; position: absolute; top: 48px; width: 8px; height: 5px; border-radius: 50%; background: var(--pink); opacity: .9; }
.character i::before { left: 16px; } .character i::after { left: 57px; }
.character b::before, .character b::after { content: ""; position: absolute; background: #fff; border: 3px solid #27231f; }
.chiikawa b::before, .chiikawa b::after { width: 18px; height: 18px; top: 11px; border-radius: 50% 50% 45% 45%; }
.chiikawa b::before { left: 13px; } .chiikawa b::after { left: 51px; }
.chiikawa i { inset: 0; }
.chiikawa i::before, .chiikawa i::after { top: 47px; }
.usagi { width: 92px; height: 104px; }
.usagi::before { left: 10px; right: 10px; height: 66px; background: linear-gradient(#fff4b9, #ffe48a); }
.usagi b::before, .usagi b::after { width: 19px; height: 62px; top: -1px; border-radius: 50% 50% 42% 42%; background: linear-gradient(90deg, #fff5bb, #ffe590); transform-origin: bottom center; }
.usagi b::before { left: 23px; transform: rotate(-8deg); } .usagi b::after { left: 51px; transform: rotate(7deg); }
.usagi b { position: absolute; inset: 0; }
.usagi i { inset: 0; }
.usagi i::before, .usagi i::after { top: 62px; }
.tiny { transform: scale(.56); transform-origin: center; width: 54px; height: 54px; }
.giant { transform: scale(1.75); transform-origin: bottom center; }
.hero-pair { display: flex; align-items: flex-end; justify-content: center; gap: -4px; }
.hero-pair .character { animation: bob 3s ease-in-out infinite; }
.hero-pair .character:nth-child(2) { animation-delay: .35s; margin-left: -8px; }
.hero-pair.large { margin-top: 210px; transform: scale(1.45); }
.hero-pair.medium { transform: scale(1.12); }
.hero-pair.small { transform: scale(.72); transform-origin: right bottom; }
.hero-pair.mini { transform: scale(.78); }

.splash { background: radial-gradient(circle at 20% 20%, #fff 0 10%, transparent 28%), var(--bg); overflow: hidden; }
.splash-stars { position: absolute; inset: 170px 32px auto; color: #f2c84b; font-size: 24px; letter-spacing: 28px; transform: rotate(-10deg); }
.brand-wrap { position: absolute; top: 112px; left: 0; right: 0; text-align: center; }
.brand-wrap h1 { margin: 0; font-size: 34px; font-family: "Comic Sans MS", "Marker Felt", cursive; letter-spacing: 1px; transform: rotate(-4deg); }
.brand-wrap h1 span { color: #ef8d95; }
.brand-wrap p { margin: 12px 0 0; font-family: "Comic Sans MS", cursive; font-size: 13px; letter-spacing: 2px; }
.loading-area { position: absolute; left: 0; right: 0; bottom: 54px; display: grid; justify-items: center; gap: 9px; color: #4b4741; font-size: 13px; }
.progress { width: 98px; height: 12px; padding: 2px; border: 1.5px solid #2d2924; border-radius: 99px; background: rgba(255,255,255,.55); }
.progress span { display: block; width: 42%; height: 100%; border-radius: inherit; background: #28241f; animation: load 1.3s ease infinite alternate; }
@keyframes load { to { width: 82%; } }

.page-header, .profile-header { display: grid; grid-template-columns: 48px 1fr 34px; align-items: center; gap: 10px; margin-top: 8px; }
.page-header h2, .simple-header h2, .profile-header h2 { margin: 0; font-size: 22px; letter-spacing: -.6px; }
.page-header p, .simple-header p, .profile-header p { margin: 4px 0 0; color: var(--text-secondary); font-size: 12px; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; }
.simple-header { padding: 10px 0 14px; }

.hero-card { position: relative; min-height: 96px; margin: 18px 0 12px; padding: 16px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.75); display: flex; align-items: center; justify-content: space-between; }
.hero-card.sky { background: linear-gradient(135deg, #e7f5ff, #f8fbff 46%, #fff7de); }
.hand { display: inline-block; margin: 0 0 10px; padding: 8px 14px; border: 2px solid #292725; border-radius: 52% 48% 46% 54%; background: #fff; font-family: "Comic Sans MS", "Marker Felt", cursive; font-weight: 700; transform: rotate(-8deg); }
.hero-card small { color: var(--text-secondary); }
.partner-hero .usagi { margin-right: 18px; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 20px; }
.quick-grid button { min-height: 72px; border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.quick-grid span { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 12px; background: var(--cream); }
.quick-grid button:nth-child(1) span { background: #dfeaff; } .quick-grid button:nth-child(2) span { background: #fff2ba; } .quick-grid button:nth-child(3) span { background: #ffe0de; }

.timeline-section h3 { margin: 0 0 12px; font-size: 17px; }
.pill-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.pill-row::-webkit-scrollbar { display: none; }
.pill { flex: 0 0 auto; padding: 8px 15px; border-radius: 999px; background: #fff; color: #766f64; border: 1px solid var(--line); font-size: 12px; }
.pill.active { background: #ffdc72; color: #26231f; font-weight: 800; border-color: transparent; }
.pill-row.big .pill { padding-inline: 17px; }
.memory-card { position: relative; padding: 14px; border-radius: 22px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 16px; }
.memory-card .meta { color: #756f68; font-size: 12px; margin-bottom: 10px; }
.memory-card p { margin: 0 0 12px; font-size: 14px; line-height: 1.75; }
.photo-strip { display: grid; grid-template-columns: 1.35fr 1fr .8fr; gap: 6px; height: 92px; }
.photo-strip img { width: 100%; height: 100%; border-radius: 10px; }
.memory-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; color: #625c55; font-size: 12px; }
.memory-actions span:first-child { color: #ef7f8b; } .memory-actions small { margin-left: auto; }

.peeking { background: radial-gradient(circle at 70% 15%, #fff8d5 0 13%, transparent 38%), linear-gradient(#fff4bb, #fff8dd); overflow: hidden; }
.peek-copy { position: absolute; top: 145px; left: 0; right: 0; text-align: center; font-family: "Comic Sans MS", "Marker Felt", cursive; }
.peek-copy p { margin: 0 0 12px; font-size: 18px; } .peek-copy h2 { margin: 0; font-size: 28px; letter-spacing: 1px; }
.peek-characters { position: absolute; left: 68px; right: 0; bottom: 230px; display: flex; align-items: flex-end; gap: 16px; animation: peek 1.8s ease-in-out infinite; }
.loading-area.middle { bottom: 154px; }

.our-illustration { height: 128px; display: grid; place-items: end center; margin: -10px 0 8px; background: radial-gradient(circle at 50% 100%, #fff2c5 0 20%, transparent 55%); }
.feature h3 { font-size: 17px; margin: 0 0 10px; } .feature strong { font-size: 28px; }
.cover { width: 100%; height: 180px; border-radius: 16px; margin-bottom: 12px; }
.small-strip { height: 72px; grid-template-columns: repeat(3, 1fr); }

.top-line { display: grid; grid-template-columns: 40px 1fr 58px; align-items: center; margin-top: 8px; }
.top-line h2 { margin: 0; font-size: 17px; } .top-line > button:first-child { font-size: 32px; text-align: left; }
.publish { height: 34px; border-radius: 999px; background: #ffdf75; font-size: 13px; font-weight: 800; }
.upload-preview { position: relative; height: 210px; margin: 12px 0 8px; border-radius: 18px; overflow: hidden; }
.upload-preview img { width: 100%; height: 100%; }
.upload-preview button { position: absolute; top: 10px; left: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: rgba(41,39,37,.45); color: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.thumbs img, .thumbs button { width: 100%; height: 58px; border-radius: 12px; background: #f6f1e8; }
.memory-form { padding: 2px 0; }
.memory-form label { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-secondary); }
.memory-form label span { color: var(--text); }
.memory-form textarea { width: 100%; min-height: 116px; resize: none; padding: 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.68); font: inherit; line-height: 1.7; outline: none; }
.memory-form small { float: right; color: #9a948c; margin-top: -26px; margin-right: 12px; }
.permission-row { position: sticky; bottom: calc(var(--nav-height) + 4px); display: flex; gap: 8px; margin-top: 16px; }
.permission-row button { flex: 1; height: 34px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 11px; }
.permission-row .active { background: #ffe28b; font-weight: 800; }

.calendar-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; align-items: center; margin-bottom: 20px; }
.calendar-row span { color: var(--text-secondary); font-size: 11px; }
.calendar-row b { height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; }
.calendar-row .selected { background: #28241f; color: #fff; }
.list-memories { display: grid; gap: 12px; }
.list-memories > div { display: grid; grid-template-columns: 70px 1fr 24px; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.list-memories img { width: 70px; height: 70px; border-radius: 14px; }
.list-memories p { margin: 0; line-height: 1.6; font-size: 13px; } .list-memories small { display: block; color: var(--text-secondary); }

.empty-screen { display: none; place-items: center; align-content: center; gap: 26px; text-align: center; }
.empty-screen.active { display: grid; }
.speech { position: relative; display: inline-block; padding: 18px 28px; border: 2px solid #28241f; border-radius: 50%; background: #fff; font-family: "Comic Sans MS", "Marker Felt", cursive; transform: rotate(-8deg); }
.primary { height: 48px; padding: 0 28px; border-radius: 999px; background: #ffdc72; font-weight: 800; box-shadow: var(--shadow); }

.menu-list { display: grid; gap: 2px; margin-top: 18px; border-top: 1px solid var(--line); }
.menu-list button { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font-size: 14px; }
.menu-list .peek { margin-top: 12px; padding: 0 14px; border-radius: 14px; background: var(--pink-soft); border: 0; }
.corner-usagi { position: absolute; right: 8px; bottom: 90px; display: flex; align-items: flex-end; gap: 0; transform: rotate(-12deg); }
.corner-usagi p { margin: 0 -10px 8px 0; font-family: "Comic Sans MS", "Marker Felt", cursive; font-size: 14px; }
.corner-usagi .usagi { transform: scale(.72); }

.bottom-nav { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: var(--nav-height); padding: 8px 16px max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: rgba(255,253,248,.9); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.bottom-nav button { display: grid; justify-items: center; gap: 3px; color: #3e3933; font-size: 10px; }
.bottom-nav button span { font-size: 21px; line-height: 1; }
.bottom-nav button.active { color: #d49d12; font-weight: 800; }
.bottom-nav .add-button { align-self: center; justify-self: center; width: 48px; height: 48px; border-radius: 50%; background: #292520; color: #fff; box-shadow: 0 7px 16px rgba(0,0,0,.22); }
.bottom-nav .add-button span { font-size: 30px; margin-top: -2px; }

.sheet-backdrop { position: absolute; inset: 0; z-index: 39; display: none; background: rgba(23, 22, 20, .68); backdrop-filter: blur(5px); }
.bottom-sheet { position: absolute; z-index: 40; left: 0; right: 0; bottom: 0; transform: translateY(105%); transition: transform .28s ease; padding: 28px 20px 22px; border-radius: 28px 28px 0 0; background: var(--bg); box-shadow: 0 -14px 40px rgba(36,30,20,.22); }
.app-shell.sheet-open .sheet-backdrop { display: block; }
.app-shell.sheet-open .bottom-sheet { transform: translateY(0); }
.sheet-characters { display: flex; align-items: flex-end; justify-content: center; height: 62px; margin: -68px 0 12px; color: #fff; font-family: "Comic Sans MS", "Marker Felt", cursive; font-size: 18px; }
.bottom-sheet > button:not(.close) { width: 100%; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: 1fr 1fr; column-gap: 12px; align-items: center; min-height: 66px; margin-bottom: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.75); box-shadow: var(--shadow); text-align: left; }
.bottom-sheet > button span { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--cream); font-size: 22px; }
.bottom-sheet > button b { align-self: end; font-size: 15px; } .bottom-sheet > button small { align-self: start; color: var(--text-secondary); }
.bottom-sheet .close { display: grid; place-items: center; width: 42px; height: 42px; margin: 12px auto 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 26px; }

@media (max-width: 430px) { body { padding: 0; background: var(--bg); } .app-shell { width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; } }

/* V2 polish: stronger kawaii character assets + scrapbook decorations */
.screen { background-image: radial-gradient(circle at 20px 120px, rgba(255,217,90,.18) 0 2px, transparent 3px), radial-gradient(circle at calc(100% - 36px) 210px, rgba(255,182,182,.20) 0 2px, transparent 3px), linear-gradient(180deg, rgba(255,250,238,.92), rgba(255,253,248,1)); }
.avatar img { width: 58px; height: 58px; object-fit: contain; transform: translateY(4px); }
.mini-usagi img { width: 64px; height: 64px; transform: translateY(8px) scale(1.04); }
.pair-art, .solo-art, .floating-stickers { user-select: none; pointer-events: none; }
.splash-pair { position: absolute; left: 50%; top: 255px; width: 352px; transform: translateX(-50%); animation: floatPair 3.4s ease-in-out infinite; }
.card-pair { width: 178px; height: 108px; object-fit: contain; margin: -14px -22px -22px 0; transform: scale(1.38); transform-origin: right bottom; }
.our-pair { width: 305px; height: 158px; object-fit: contain; margin-bottom: -18px; animation: floatPair 3.8s ease-in-out infinite; }
.empty-pair { width: 310px; height: 188px; object-fit: contain; animation: floatPair 3.6s ease-in-out infinite; }
.usagi-art { width: 132px; height: 136px; object-fit: contain; margin: -22px -12px -32px 0; animation: floatPair 3s ease-in-out infinite; }
.peek-usagi { width: 222px; height: 250px; object-fit: contain; transform: rotate(-4deg); animation: peekUsagi 1.65s ease-in-out infinite; }
.peek-chiikawa { width: 128px; height: 144px; object-fit: contain; margin-left: -56px; margin-bottom: 4px; transform: rotate(6deg); animation: peekChi 1.8s ease-in-out infinite; }
.floating-stickers { position: absolute; z-index: 0; opacity: .72; filter: drop-shadow(0 2px 0 rgba(255,255,255,.75)); }
.home-stickers { width: 145px; right: -24px; top: 118px; transform: rotate(12deg); }
.our-stickers { width: 138px; right: -20px; top: 72px; transform: rotate(6deg); opacity: .58; }
.create-stickers { width: 116px; right: -26px; bottom: 136px; transform: rotate(-12deg); opacity: .42; }
.sticker-sheet { position: absolute; width: 140px; left: -30px; bottom: -34px; opacity: .38; transform: rotate(-8deg); }
.screen > *:not(.floating-stickers) { position: relative; z-index: 1; }

@keyframes floatPair { 0%,100% { translate: 0 0; rotate: -1deg; } 50% { translate: 0 -7px; rotate: 1deg; } }
@keyframes peekUsagi { 0%,100% { translate: 0 0; rotate: -4deg; } 50% { translate: 9px -8px; rotate: -1deg; } }
@keyframes peekChi { 0%,100% { translate: 0 0; rotate: 6deg; } 50% { translate: -4px -5px; rotate: 3deg; } }

.splash-stars { inset: 154px 22px auto; font-size: 26px; letter-spacing: 24px; color: #f0c84d; text-shadow: 46px 108px 0 rgba(255,182,182,.82), 236px 22px 0 rgba(255,217,90,.75), 270px 164px 0 rgba(255,182,182,.60); }
.brand-wrap { top: 100px; }
.loading-area { bottom: 48px; }
.hero-card { isolation: isolate; border: 1px solid rgba(255,255,255,.9); }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 15% 15%, rgba(255,255,255,.84), transparent 28%), radial-gradient(circle at 78% 18%, rgba(255,217,90,.22), transparent 30%); }
.hero-card::after { content: "♡ ✦"; position: absolute; right: 18px; top: 14px; color: #f1b2a9; font-size: 16px; letter-spacing: 13px; transform: rotate(-12deg); }
.hero-card.sky { min-height: 108px; background: linear-gradient(135deg, #e7f5ff 0%, #f8fbff 48%, #fff0c4 100%); }
.hand { box-shadow: 0 2px 0 rgba(0,0,0,.04); }

.quick-grid button { transition: transform .16s ease, box-shadow .16s ease; background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,250,239,.88)); }
.quick-grid button:active { transform: scale(.96) rotate(-1deg); }
.quick-grid span { box-shadow: inset 0 -2px 0 rgba(0,0,0,.05); }
.memory-card { overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,250,239,.86)); }
.memory-card::after { content: ""; position: absolute; width: 58px; height: 58px; right: -10px; top: -14px; background: url('./assets/usagi.svg') center/contain no-repeat; opacity: .18; transform: rotate(12deg); }
.memory-card.feature::after { width: 92px; height: 92px; opacity: .24; right: -8px; top: -22px; }
.photo-strip img, .cover, .upload-preview img, .list-memories img { box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.photo-strip img:nth-child(1) { transform: rotate(-.8deg); } .photo-strip img:nth-child(2) { transform: rotate(.8deg); } .photo-strip img:nth-child(3) { transform: rotate(-.4deg); }

.peeking { background: radial-gradient(circle at 64% 30%, rgba(255,255,255,.58) 0 14%, transparent 36%), radial-gradient(circle at 20% 86%, rgba(255,182,182,.18), transparent 34%), linear-gradient(#fff2a8, #fff8dd); }
.peek-copy { top: 132px; }
.peek-copy::after { content: "♡  ✦  ☁︎"; display: block; margin-top: 24px; color: #dd9b8f; letter-spacing: 23px; font-family: system-ui; font-size: 19px; }
.peek-characters { left: 92px; bottom: 230px; gap: 0; animation: none; }

.our-illustration { height: 145px; margin-top: -6px; background: radial-gradient(circle at 50% 100%, #ffefb7 0 22%, rgba(255,244,214,.45) 42%, transparent 62%); overflow: visible; }
.feature .cover { position: relative; height: 184px; border: 5px solid #fff; box-shadow: 0 8px 22px rgba(70,51,20,.11); }
.feature p { text-align: center; font-family: "Comic Sans MS", "Marker Felt", "PingFang SC", sans-serif; font-weight: 700; transform: rotate(-3deg); }

.create-screen .top-line { margin-bottom: 8px; }
.upload-preview { border: 5px solid #fff; box-shadow: var(--shadow); }
.upload-preview::after { content: "贴图"; position: absolute; left: 16px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; }
.thumbs img, .thumbs button { border: 3px solid #fff; box-shadow: var(--shadow); }
.memory-form textarea { background: linear-gradient(180deg, #fff, #fffaf0); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.permission-row button { box-shadow: var(--shadow); }

.empty-screen { background-image: radial-gradient(circle at 30% 20%, rgba(255,217,90,.22), transparent 24%), radial-gradient(circle at 80% 58%, rgba(255,182,182,.20), transparent 20%); }
.speech { margin-top: 74px; }
.settings-screen .profile-header { padding-bottom: 10px; border-bottom: 1px dashed rgba(41,39,37,.15); }
.corner-usagi { right: 0; bottom: 88px; }
.corner-usagi img { width: 108px; height: 126px; object-fit: contain; animation: floatPair 3.2s ease-in-out infinite; }
.sheet-characters { gap: 10px; }
.sheet-characters img { width: 132px; height: 76px; object-fit: contain; transform: scale(1.35); transform-origin: bottom center; }
.bottom-sheet > button:nth-of-type(1) span { background: #e4edff; }
.bottom-sheet > button:nth-of-type(2) span { background: #fff0a9; }
.bottom-sheet > button:nth-of-type(3) span { background: #ffe1df; }
.bottom-sheet > button:nth-of-type(4) span { background: #dff5e7; }
.bottom-sheet > button:nth-of-type(5) span { background: #fff1bd; }

.bottom-nav { box-shadow: 0 -12px 28px rgba(80, 58, 26, .055); }
.bottom-nav button span { transition: transform .16s ease; }
.bottom-nav button:active span { transform: translateY(-2px) scale(1.08); }
.bottom-nav .add-button { outline: 5px solid rgba(255,253,248,.96); }

/* Official Chiikawa asset slots */
.official-missing { display: grid; place-items: center; align-content: center; gap: 4px; min-width: 80px; min-height: 80px; border: 2px dashed rgba(41,39,37,.24); border-radius: 22px; background: repeating-linear-gradient(-8deg, rgba(255,244,214,.88), rgba(255,244,214,.88) 9px, rgba(255,253,248,.92) 10px, rgba(255,253,248,.92) 18px); color: #5f5548; text-align: center; box-shadow: var(--shadow); }
.official-missing b { font-size: 12px; line-height: 1.25; }
.official-missing small { font-size: 10px; color: var(--text-secondary); }
.avatar .official-missing { width: 48px; height: 48px; min-width: 48px; min-height: 48px; border-radius: 50%; }
.avatar .official-missing b { font-size: 9px; } .avatar .official-missing small { display: none; }
.splash-pair.official-missing { width: 320px; height: 190px; }
.card-pair.official-missing { width: 160px; height: 96px; margin: 0; transform: none; }
.our-pair.official-missing, .empty-pair.official-missing { width: 300px; height: 150px; }
.peek-usagi.official-missing { width: 190px; height: 210px; }
.peek-chiikawa.official-missing { width: 120px; height: 135px; }
.usagi-art.official-missing { width: 126px; height: 128px; }
.floating-stickers.official-missing, .sticker-sheet.official-missing { display: none; }
.memory-card::after { background-image: url('./assets/official/usagi.png?v=27'); }

/* V4: real supplied Chiikawa / Usagi sticker crops + Usagi world background */
.partner-usagi-world {
  background-color: #fffdf8;
  background-image:
    radial-gradient(circle at 72% 8%, rgba(255,217,90,.30), transparent 26%),
    radial-gradient(circle at 10% 36%, rgba(255,244,214,.72), transparent 30%),
    linear-gradient(180deg, rgba(255,253,248,.96), rgba(255,249,232,.98));
}
.partner-usagi-world::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .115;
  pointer-events: none;
  background-image:
    url('./assets/official/usagi.png?v=27'),
    url('./assets/official/usagi-sit.png?v=27'),
    url('./assets/official/usagi-sleep.png?v=27'),
    url('./assets/official/usagi-peek.png?v=27'),
    url('./assets/official/usagi.png?v=27'),
    url('./assets/official/usagi-sit.png?v=27'),
    url('./assets/official/usagi-sleep.png?v=27');
  background-repeat: no-repeat;
  background-size: 92px auto, 82px auto, 118px auto, 92px auto, 70px auto, 96px auto, 84px auto;
  background-position:
    right -18px top 52px,
    left -8px top 172px,
    right -34px top 318px,
    left -42px top 465px,
    right 28px top 575px,
    left 22px top 675px,
    right -16px bottom 96px;
}
.usagi-wallpaper {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
  opacity: .16;
  background-image: url('./assets/official/usagi.png?v=27');
  background-repeat: repeat;
  background-size: 138px auto;
  background-position: 18px 96px;
  mask-image: linear-gradient(180deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
}
.partner-usagi-world .page-header,
.partner-usagi-world .hero-card,
.partner-usagi-world .quick-grid,
.partner-usagi-world .timeline-section {
  position: relative;
  z-index: 2;
}
.partner-usagi-world .page-header::after {
  content: "USAGI WORLD";
  position: absolute;
  right: 0;
  bottom: -15px;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: rgba(212,157,18,.52);
  font-weight: 900;
}
.partner-usagi-world .hero-card.sky {
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,241,183,.9)),
    url('./assets/official/usagi-sit.png?v=27') right -18px bottom -24px / 150px auto no-repeat;
  border-color: rgba(255,217,90,.36);
}
.partner-usagi-world .memory-card {
  border-color: rgba(255,217,90,.34);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,248,222,.82));
}
.partner-usagi-world .memory-card::after {
  width: 88px;
  height: 88px;
  right: -16px;
  top: -20px;
  opacity: .22;
  background-image: url('./assets/official/usagi-sleep.png?v=27');
}
.peek-usagi { width: 212px; height: 285px; object-fit: contain; }
.splash-pair { width: 365px; }
.card-pair { width: 195px; height: 125px; }
.our-pair, .empty-pair { width: 320px; }
.sheet-characters img { width: 148px; }

/* V5: fill the app with supplied character stickers, especially Usagi world */
.kawaii-sprinkles {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
  opacity: .18;
  background-image:
    url('./assets/official/pair-peek-top.png?v=27'),
    url('./assets/official/deco-hearts-stars.png?v=27'),
    url('./assets/official/chiikawa-wow.png?v=27'),
    url('./assets/official/usagi-sit.png?v=27');
  background-repeat: no-repeat;
  background-size: 92px auto, 86px auto, 72px auto, 82px auto;
  background-position: right -18px top 86px, left -20px top 250px, right 18px top 500px, left 10px bottom 105px;
}
.our-sprinkles {
  opacity: .20;
  background-image:
    url('./assets/official/pair-cuddle.png?v=27'),
    url('./assets/official/pair-cookie.png?v=27'),
    url('./assets/official/deco-hearts-stars.png?v=27');
  background-size: 108px auto, 92px auto, 96px auto;
  background-position: right -28px top 80px, left -18px top 360px, right 12px bottom 100px;
}
.settings-sprinkles {
  opacity: .18;
  background-image:
    url('./assets/official/chiikawa-heart.png?v=27'),
    url('./assets/official/usagi-happy.png?v=27'),
    url('./assets/official/pair-letter.png?v=27');
  background-size: 88px auto, 88px auto, 108px auto;
  background-position: right -14px top 96px, left -20px top 360px, right 10px bottom 112px;
}
.usagi-sticker-cloud {
  position: absolute !important;
  inset: 0;
  z-index: 1 !important;
  pointer-events: none;
  opacity: .34;
}
.usagi-sticker-cloud img {
  position: absolute;
  width: 58px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 6px rgba(80,54,18,.08));
  animation: floatPair 4.8s ease-in-out infinite;
}
.usagi-sticker-cloud img:nth-child(1) { right: 4px; top: 120px; width: 62px; transform: rotate(10deg); }
.usagi-sticker-cloud img:nth-child(2) { left: 2px; top: 255px; width: 54px; transform: rotate(-9deg); animation-delay: .4s; }
.usagi-sticker-cloud img:nth-child(3) { right: -16px; top: 415px; width: 88px; transform: rotate(8deg); animation-delay: .8s; }
.usagi-sticker-cloud img:nth-child(4) { left: -18px; top: 535px; width: 84px; transform: rotate(-8deg); animation-delay: 1.1s; }
.usagi-sticker-cloud img:nth-child(5) { right: 20px; top: 642px; width: 74px; transform: rotate(7deg); animation-delay: 1.5s; }
.usagi-sticker-cloud img:nth-child(6) { left: 24px; bottom: 82px; width: 66px; transform: rotate(-5deg); animation-delay: 1.9s; }
.partner-usagi-world::before {
  opacity: .18;
  background-size: 82px auto, 76px auto, 112px auto, 88px auto, 68px auto, 86px auto, 78px auto, 96px auto, 74px auto;
  background-image:
    url('./assets/official/usagi.png?v=27'),
    url('./assets/official/usagi-sit.png?v=27'),
    url('./assets/official/usagi-sleep.png?v=27'),
    url('./assets/official/usagi-peek.png?v=27'),
    url('./assets/official/usagi-happy.png?v=27'),
    url('./assets/official/usagi-peek-top.png?v=27'),
    url('./assets/official/usagi.png?v=27'),
    url('./assets/official/usagi-sleep.png?v=27'),
    url('./assets/official/usagi-sit.png?v=27');
  background-position:
    right -18px top 50px,
    left -8px top 145px,
    right -34px top 278px,
    left -42px top 405px,
    right 24px top 500px,
    left 18px top 615px,
    right -8px top 720px,
    left -24px bottom 128px,
    right 42px bottom 86px;
}
.usagi-wallpaper { opacity: .22; background-size: 118px auto; background-position: 6px 86px; }
.partner-usagi-world .hero-card.sky {
  min-height: 122px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,241,183,.84)),
    url('./assets/official/usagi-happy.png?v=27') right -20px bottom -14px / 142px auto no-repeat,
    url('./assets/official/deco-hearts-stars.png?v=27') left -26px top -22px / 112px auto no-repeat;
}
.partner-usagi-world .quick-grid button {
  background: rgba(255,255,255,.78);
  border-color: rgba(255,217,90,.28);
}
.partner-usagi-world .timeline-section h3::after {
  content: " ᙏ̤̫ ♡";
  color: #d49d12;
}
.partner-usagi-world .memory-card::before {
  content: "";
  position: absolute;
  left: -22px;
  bottom: -26px;
  width: 92px;
  height: 92px;
  background: url('./assets/official/usagi-peek-top.png?v=27') center/contain no-repeat;
  opacity: .20;
  transform: rotate(-8deg);
}
.memory-card::after { background-image: url('./assets/official/pair-peek-top.png?v=27'); opacity: .16; }
#home .memory-card::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 44px;
  width: 54px;
  height: 54px;
  background: url('./assets/official/chiikawa-camera-2.png?v=27') center/contain no-repeat;
  opacity: .22;
}
.splash-pair { width: 385px; top: 242px; }
.card-pair { width: 210px; height: 142px; margin-right: -30px; }
.our-pair { width: 340px; height: 180px; }
.empty-pair { width: 330px; height: 185px; }
.corner-usagi img { content: url('./assets/official/usagi-happy.png?v=27'); }
.sheet-characters img { width: 168px; height: 100px; }

/* V6: alignment fix after precise crops */
.pair-art,
.solo-art,
.peek-usagi,
.peek-chiikawa,
.corner-usagi img,
.sheet-characters img {
  object-fit: contain;
  object-position: center;
  max-width: 100%;
}
.splash-pair {
  top: 268px !important;
  width: 315px !important;
  height: 275px !important;
  object-fit: contain;
}
.card-pair {
  width: 158px !important;
  height: 106px !important;
  margin: -4px -12px -10px 0 !important;
  transform: none !important;
}
.usagi-art {
  width: 108px !important;
  height: 112px !important;
  margin: -10px -6px -20px 0 !important;
}
.peek-characters {
  left: 54px !important;
  right: 16px !important;
  bottom: 265px !important;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.peek-usagi {
  width: 132px !important;
  height: 210px !important;
  transform: none !important;
}
.peek-chiikawa {
  width: 105px !important;
  height: 120px !important;
  margin-left: -22px !important;
  margin-bottom: 12px !important;
  transform: none !important;
}
.our-illustration {
  height: 132px !important;
  overflow: hidden !important;
}
.our-pair {
  width: 250px !important;
  height: 138px !important;
  margin: 0 0 -12px !important;
}
.empty-pair {
  width: 278px !important;
  height: 150px !important;
}
.corner-usagi {
  right: 8px !important;
  bottom: 100px !important;
}
.corner-usagi img {
  width: 78px !important;
  height: 96px !important;
}
.sheet-characters img {
  width: 126px !important;
  height: 76px !important;
  transform: none !important;
}
.sheet-characters {
  height: 50px !important;
  margin: -54px 0 12px !important;
}
.avatar img {
  width: 46px !important;
  height: 46px !important;
  transform: none !important;
}
.mini-usagi img {
  width: 48px !important;
  height: 52px !important;
}
.floating-stickers {
  opacity: .42 !important;
  object-fit: contain;
}
.home-stickers { width: 86px !important; right: -14px !important; top: 132px !important; }
.our-stickers { width: 82px !important; right: -12px !important; top: 78px !important; }
.create-stickers { width: 76px !important; right: -14px !important; bottom: 150px !important; }
.sticker-sheet { width: 78px !important; left: -14px !important; bottom: -20px !important; }
.kawaii-sprinkles,
.our-sprinkles,
.settings-sprinkles {
  opacity: .105 !important;
  background-size: 58px auto, 62px auto, 52px auto, 56px auto !important;
}
.usagi-wallpaper {
  opacity: .105 !important;
  background-size: 104px auto !important;
}
.usagi-sticker-cloud { opacity: .20 !important; }
.usagi-sticker-cloud img:nth-child(1) { right: 2px !important; top: 112px !important; width: 44px !important; }
.usagi-sticker-cloud img:nth-child(2) { left: 3px !important; top: 260px !important; width: 42px !important; }
.usagi-sticker-cloud img:nth-child(3) { right: -8px !important; top: 430px !important; width: 64px !important; }
.usagi-sticker-cloud img:nth-child(4) { left: -8px !important; top: 540px !important; width: 56px !important; }
.usagi-sticker-cloud img:nth-child(5) { right: 24px !important; top: 660px !important; width: 52px !important; }
.usagi-sticker-cloud img:nth-child(6) { left: 22px !important; bottom: 90px !important; width: 46px !important; }
.partner-usagi-world::before {
  opacity: .09 !important;
  background-size: 58px auto, 54px auto, 76px auto, 56px auto, 52px auto, 60px auto, 52px auto, 68px auto, 54px auto !important;
}
.partner-usagi-world .hero-card.sky {
  background:
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,241,183,.78)),
    url('./assets/official/usagi-happy.png?v=27') right -4px bottom -8px / 96px auto no-repeat,
    url('./assets/official/deco-hearts-stars.png?v=27') left -18px top -18px / 78px auto no-repeat !important;
}
.partner-usagi-world .memory-card::before,
.partner-usagi-world .memory-card::after,
.memory-card::after,
#home .memory-card::before {
  opacity: .12 !important;
}

/* V8: switch to Dawn_of_Us_UI_Assets_Pack + use the two full wallpaper backgrounds */
.screen {
  background-color: #fffdf8;
  background-image: linear-gradient(180deg, rgba(255,253,248,.94), rgba(255,253,248,.98));
}
#home,
#create,
#settings,
#calendar,
#empty {
  background-image:
    linear-gradient(180deg, rgba(255,253,248,.88), rgba(255,253,248,.96)),
    url('./assets/official/bg-chiikawa-wallpaper.png?v=27') !important;
  background-size: cover !important;
  background-position: center top !important;
}
#partner,
#peeking {
  background-image:
    linear-gradient(180deg, rgba(255,253,248,.78), rgba(255,249,232,.88)),
    url('./assets/official/bg-usagi-wallpaper.png?v=27') !important;
  background-size: cover !important;
  background-position: center top !important;
}
#our {
  background-image:
    linear-gradient(180deg, rgba(255,253,248,.82), rgba(255,250,235,.94)),
    url('./assets/official/bg-usagi-wallpaper.png?v=27') !important;
  background-size: cover !important;
  background-position: center center !important;
}
/* disable older repeated scatter layers; wallpapers now provide the fill */
.usagi-wallpaper,
.usagi-sticker-cloud,
.kawaii-sprinkles,
.floating-stickers,
.sticker-sheet {
  display: none !important;
}
.partner-usagi-world::before {
  display: none !important;
}
/* make content cards readable over full wallpapers */
.page-header,
.simple-header,
.profile-header {
  padding: 8px 10px;
  border-radius: 20px;
  background: rgba(255,253,248,.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(80,58,24,.045);
}
.hero-card,
.memory-card,
.quick-grid button,
.menu-list button,
.memory-form textarea,
.upload-preview,
.permission-row button {
  background-color: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(9px);
}
#partner .hero-card.sky,
.partner-usagi-world .hero-card.sky {
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,241,183,.78)),
    url('./assets/official/usagi.png?v=27') right -10px bottom -12px / 112px auto no-repeat !important;
}
#home .hero-card.sky {
  background:
    linear-gradient(135deg, rgba(231,245,255,.82), rgba(255,248,224,.80)),
    url('./assets/official/pair-camera.png?v=27') right -18px bottom -24px / 150px auto no-repeat !important;
}
.splash {
  background-image:
    linear-gradient(180deg, rgba(255,253,248,.70), rgba(255,253,248,.94)),
    url('./assets/official/bg-usagi-wallpaper.png?v=27') !important;
  background-size: cover !important;
  background-position: center center !important;
}
.splash-pair {
  width: 330px !important;
  height: 300px !important;
  top: 245px !important;
  filter: drop-shadow(0 8px 12px rgba(82,54,24,.13));
}
.card-pair {
  width: 150px !important;
  height: 108px !important;
  opacity: .96;
}
.peek-usagi {
  width: 132px !important;
  height: 150px !important;
}
.peek-chiikawa {
  width: 100px !important;
  height: 110px !important;
}
.peek-copy {
  background: rgba(255,253,248,.62);
  width: fit-content;
  min-width: 250px;
  margin: 0 auto;
  padding: 16px 22px;
  border-radius: 28px;
  backdrop-filter: blur(8px);
}
.our-pair {
  width: 270px !important;
  height: 150px !important;
}
.empty-pair {
  width: 292px !important;
  height: 170px !important;
}
.corner-usagi img {
  content: url('./assets/official/usagi.png?v=27');
  width: 92px !important;
  height: 112px !important;
}
.sheet-characters img {
  width: 138px !important;
  height: 92px !important;
}
.memory-card::after,
#home .memory-card::before,
.partner-usagi-world .memory-card::before,
.partner-usagi-world .memory-card::after {
  opacity: .08 !important;
}
.avatar {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(6px);
}
.avatar img {
  width: 42px !important;
  height: 44px !important;
}
.mini-usagi img {
  width: 44px !important;
  height: 48px !important;
}

/* V9: fix home hero text/image overlap */
#home .hero-card.sky {
  min-height: 118px !important;
  padding-right: 138px !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, rgba(231,245,255,.86), rgba(255,248,224,.86)) !important;
}
#home .hero-card.sky > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 178px;
}
#home .hero-card.sky .hand {
  margin-bottom: 7px;
}
#home .hero-card.sky small {
  display: block;
  max-width: 160px;
  line-height: 1.45;
}
#home .hero-card.sky .card-pair {
  position: absolute !important;
  right: -10px !important;
  bottom: -14px !important;
  width: 142px !important;
  height: 108px !important;
  margin: 0 !important;
  z-index: 1;
  opacity: .98;
}

/* V10: floating bottom navigation + fix sticker placement near nav */
:root {
  --nav-height: 66px;
  --nav-bottom-gap: 14px;
}
.screen {
  padding-bottom: calc(var(--nav-height) + var(--nav-bottom-gap) + 34px) !important;
}
.bottom-nav {
  left: 16px !important;
  right: 16px !important;
  bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  height: var(--nav-height) !important;
  padding: 8px 10px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  background: rgba(255,253,248,.78) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  box-shadow:
    0 14px 34px rgba(74, 50, 19, .16),
    0 2px 0 rgba(255,255,255,.82) inset !important;
  align-items: center !important;
}
.bottom-nav button {
  height: 48px;
  border-radius: 18px;
  align-content: center;
  transition: background .16s ease, transform .16s ease, color .16s ease;
}
.bottom-nav button.active:not(.add-button) {
  background: rgba(255, 220, 114, .36);
  color: #8a6508;
}
.bottom-nav button span {
  font-size: 18px !important;
}
.bottom-nav .add-button {
  width: 52px !important;
  height: 52px !important;
  align-self: center !important;
  transform: translateY(-12px);
  border-radius: 50% !important;
  outline: 6px solid rgba(255,253,248,.92) !important;
  background: linear-gradient(180deg, #302a25, #171411) !important;
  box-shadow: 0 12px 22px rgba(0,0,0,.28), 0 2px 0 rgba(255,255,255,.12) inset !important;
}
.bottom-nav .add-button span {
  font-size: 30px !important;
}
/* stickers near bottom must stay above, not on top of nav */
.corner-usagi {
  right: 14px !important;
  bottom: calc(var(--nav-height) + var(--nav-bottom-gap) + 42px) !important;
  z-index: 5 !important;
  transform: rotate(-10deg) scale(.92) !important;
}
.corner-usagi img {
  width: 76px !important;
  height: 92px !important;
}
.corner-usagi p {
  margin-right: -4px !important;
  margin-bottom: 4px !important;
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(255,253,248,.68);
  backdrop-filter: blur(6px);
}
.sheet-characters {
  margin-top: -48px !important;
  transform: translateY(-4px);
}
.bottom-sheet {
  padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
}
.permission-row {
  bottom: calc(var(--nav-height) + var(--nav-bottom-gap) + 18px) !important;
}
.loading-area {
  bottom: calc(44px + env(safe-area-inset-bottom)) !important;
}

/* V11: stickers hanging on top of floating nav */
.bottom-nav {
  overflow: visible !important;
}
.nav-hanger {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(78, 54, 24, .14));
  animation: navPeekBob 3.2s ease-in-out infinite;
}
.nav-hanger-left {
  left: 20px;
  top: -43px;
  width: 82px;
  height: 58px;
  transform: rotate(-4deg);
}
.nav-hanger-right {
  right: 24px;
  top: -50px;
  width: 58px;
  height: 72px;
  transform: rotate(7deg);
  animation-delay: .45s;
}
@keyframes navPeekBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
/* corner sticker no longer sits near the nav; keep it higher as page decoration */
.corner-usagi {
  bottom: calc(var(--nav-height) + var(--nav-bottom-gap) + 104px) !important;
  opacity: .92;
}

/* V12: remove bottom couple sticker, keep only a small Usagi hanger */
.nav-hanger-left {
  display: none !important;
}
.nav-hanger-right {
  right: 26px !important;
  top: -42px !important;
  width: 46px !important;
  height: 58px !important;
  opacity: .95;
}

/* V13: remove all stickers around/below the bottom navigation */
.nav-hanger,
.nav-hanger-left,
.nav-hanger-right {
  display: none !important;
  visibility: hidden !important;
}
.bottom-nav::before,
.bottom-nav::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
/* hide bottom corner decorative sticker on all pages so nothing appears behind nav */
.corner-usagi {
  display: none !important;
}
/* prevent old card/decor pseudo stickers from visually leaking into the nav area */
.screen::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,253,248,0), rgba(255,253,248,.48));
  z-index: 8;
}
.bottom-nav {
  z-index: 30 !important;
}

/* V14: fully hide bottom sheet sticker when sheet is closed */
.bottom-sheet {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(calc(100% + 90px)) !important;
}
.app-shell.sheet-open .bottom-sheet {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
.app-shell:not(.sheet-open) .sheet-characters,
.app-shell:not(.sheet-open) .sheet-characters img {
  display: none !important;
}

/* V15: fix Xixi/partner hero overlap */
#partner .partner-hero,
.partner-usagi-world .partner-hero {
  min-height: 126px !important;
  padding: 18px 128px 16px 16px !important;
  display: block !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,241,183,.82)) !important;
}
#partner .partner-hero > div,
.partner-usagi-world .partner-hero > div {
  position: relative !important;
  z-index: 2 !important;
  max-width: 178px !important;
}
#partner .partner-hero .hand,
.partner-usagi-world .partner-hero .hand {
  display: inline-block !important;
  margin: 0 0 10px !important;
  padding: 7px 12px !important;
  line-height: 1.2 !important;
  font-size: 14px !important;
  transform: rotate(-5deg) !important;
}
#partner .partner-hero small,
.partner-usagi-world .partner-hero small {
  display: block !important;
  max-width: 160px !important;
  line-height: 1.45 !important;
  clear: both !important;
}
#partner .partner-hero .usagi-art,
.partner-usagi-world .partner-hero .usagi-art {
  position: absolute !important;
  right: -2px !important;
  bottom: -14px !important;
  width: 112px !important;
  height: 122px !important;
  margin: 0 !important;
  z-index: 1 !important;
  object-fit: contain !important;
}

/* V16: higher-priority partner hero background cleanup + route scroll reset */
#partner .hero-card.sky.partner-hero,
.screen.partner-usagi-world .hero-card.sky.partner-hero {
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,241,183,.84)) !important;
}
#partner .hero-card.sky.partner-hero::after,
.screen.partner-usagi-world .hero-card.sky.partner-hero::after {
  right: 124px !important;
  opacity: .55 !important;
}

/* V17: remove top-right sticker/decorations from peeking transition */
#peeking::before,
#peeking::after,
.peeking::before,
.peeking::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
#peeking {
  background-image:
    linear-gradient(180deg, rgba(255,253,248,.78), rgba(255,249,232,.88)),
    url('./assets/official/bg-usagi-wallpaper.png?v=27') !important;
  background-size: cover !important;
  background-position: center center !important;
}
.peek-copy::after {
  content: none !important;
  display: none !important;
}

/* V18: peeking transition uses clean plain background, no wallpaper stickers */
#peeking.screen.peeking,
.screen.peeking#peeking {
  background: radial-gradient(circle at 26% 76%, rgba(255,255,255,.50) 0 16%, transparent 42%),
              linear-gradient(180deg, #fff2a8 0%, #fff8dd 100%) !important;
  background-image: radial-gradient(circle at 26% 76%, rgba(255,255,255,.50) 0 16%, transparent 42%),
                    linear-gradient(180deg, #fff2a8 0%, #fff8dd 100%) !important;
  background-size: auto !important;
  background-position: center !important;
}
#peeking *:not(.peek-characters):not(.peek-characters *):not(.peek-copy):not(.peek-copy *):not(.loading-area):not(.loading-area *) {
  background-image: none !important;
}
#peeking .floating-stickers,
#peeking .sticker-sheet,
#peeking .kawaii-sprinkles,
#peeking .usagi-wallpaper,
#peeking .usagi-sticker-cloud,
#peeking .nav-hanger {
  display: none !important;
}

/* V19: restore peeking wallpaper background; remove only the two foreground peek stickers */
#peeking.screen.peeking,
.screen.peeking#peeking {
  background-image:
    linear-gradient(180deg, rgba(255,253,248,.78), rgba(255,249,232,.88)),
    url('./assets/official/bg-usagi-wallpaper.png?v=27') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-color: #fff8dd !important;
}
#peeking .peek-characters,
#peeking .peek-usagi,
#peeking .peek-chiikawa {
  display: none !important;
  visibility: hidden !important;
}
#peeking .peek-copy,
#peeking .loading-area {
  display: grid !important;
  visibility: visible !important;
}

/* V20: polish Xixi page with new Usagi assets */
#partner .mini-usagi img,
.partner-usagi-world .mini-usagi img {
  width: 52px !important;
  height: 52px !important;
  object-fit: cover !important;
  object-position: center 42% !important;
  transform: scale(1.18) translateY(2px) !important;
}
#partner .avatar.mini-usagi,
.partner-usagi-world .avatar.mini-usagi {
  background: rgba(255,244,214,.92) !important;
  border: 2px solid rgba(255,217,90,.48) !important;
  box-shadow: 0 6px 16px rgba(212,157,18,.12);
}
#partner .hero-card.sky.partner-hero,
.screen.partner-usagi-world .hero-card.sky.partner-hero {
  min-height: 136px !important;
  padding: 18px 126px 16px 16px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,241,183,.84)) !important;
  border-color: rgba(255,217,90,.42) !important;
}
#partner .partner-hero .usagi-art,
.partner-usagi-world .partner-hero .usagi-art {
  content: url('./assets/official/usagi-letter-new.png?v=27');
  right: -8px !important;
  bottom: -20px !important;
  width: 128px !important;
  height: 138px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 12px rgba(128, 83, 18, .13));
}
#partner .partner-hero::before,
.partner-usagi-world .partner-hero::before {
  content: "";
  position: absolute;
  right: 86px;
  top: 18px;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, #ffb6b6 0 44%, transparent 46%);
  opacity: .34;
  transform: rotate(-12deg);
}
#partner .memory-card {
  margin-bottom: 88px !important;
}
.partner-sleep-sticker {
  position: relative;
  z-index: 2;
  height: 86px;
  margin: -92px 8px 22px auto;
  width: 142px;
  pointer-events: none;
}
.partner-sleep-sticker img {
  width: 142px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(80, 54, 24, .12));
  transform: rotate(4deg);
  opacity: .96;
}
#partner .memory-card::after,
.partner-usagi-world .memory-card::after {
  background-image: url('./assets/official/usagi-carrot-new.png?v=27') !important;
  width: 76px !important;
  height: 76px !important;
  right: -18px !important;
  top: -10px !important;
  opacity: .10 !important;
}
#partner .timeline-section h3::after {
  content: " ᙏ̤̫ 🥕" !important;
}

/* V21: Xixi page final placement for new Usagi assets */
#partner.screen.active {
  scroll-behavior: auto !important;
}
#partner .partner-sleep-sticker {
  height: 72px !important;
  width: 126px !important;
  margin: -76px 14px 26px auto !important;
  transform: translateY(-8px) rotate(2deg) !important;
  z-index: 3 !important;
}
#partner .partner-sleep-sticker img {
  width: 126px !important;
  height: 96px !important;
}
#partner .memory-card {
  margin-bottom: 72px !important;
}
#partner .timeline-section {
  padding-bottom: 24px !important;
}
#partner .page-header {
  margin-top: 8px !important;
}
#partner .partner-hero {
  margin-top: 16px !important;
}

/* V22: use generated Usagi row hanging above nav; remove Xixi sleep sticker */
.partner-sleep-sticker,
.partner-sleep-sticker img {
  display: none !important;
  visibility: hidden !important;
}
#partner .memory-card {
  margin-bottom: 18px !important;
}
.nav-usagi-row {
  position: absolute;
  left: 13px;
  right: 13px;
  top: -49px;
  width: calc(100% - 26px);
  height: 62px;
  object-fit: contain;
  object-position: center bottom;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(78, 54, 24, .16));
  animation: navPeekBob 3.6s ease-in-out infinite;
}
.bottom-nav {
  overflow: visible !important;
}
.bottom-nav button,
.bottom-nav .add-button {
  position: relative;
  z-index: 4;
}
/* leave enough scroll padding so the hanging row doesn't cover content */
.screen {
  padding-bottom: calc(var(--nav-height) + var(--nav-bottom-gap) + 56px) !important;
}

/* V23: nav Usagi row stays fixed, no floating animation */
.nav-usagi-row {
  animation: none !important;
  transform: none !important;
  translate: 0 0 !important;
}

/* V24: make nav Usagi row wider */
.nav-usagi-row {
  left: -2px !important;
  right: -2px !important;
  width: calc(100% + 4px) !important;
  height: 66px !important;
  top: -52px !important;
  object-fit: fill !important;
}

/* V25: keep nav Usagi row aspect ratio, no stretch */
.nav-usagi-row {
  left: 4px !important;
  right: 4px !important;
  width: calc(100% - 8px) !important;
  height: 64px !important;
  top: -50px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

/* V28: auth + memory edit/delete */
.app-shell.logged-out .bottom-nav,
.app-shell.logged-out .sheet-backdrop,
.app-shell.logged-out .bottom-sheet {
  display: none !important;
}
.login-screen {
  background-image:
    linear-gradient(180deg, rgba(255,253,248,.80), rgba(255,248,232,.96)),
    url('./assets/official/bg-usagi-wallpaper.png?v=28') !important;
  background-size: cover !important;
  background-position: center !important;
  padding-bottom: 28px !important;
}
.login-pair {
  width: 270px;
  height: 210px;
  object-fit: contain;
  display: block;
  margin: 42px auto 0;
  filter: drop-shadow(0 10px 18px rgba(80,54,24,.12));
}
.login-card {
  margin: -8px 12px 0;
  padding: 22px 18px 18px;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.72);
}
.login-card h2 { margin: 0; font-size: 25px; font-family: "Comic Sans MS", "Marker Felt", cursive; }
.login-card p { margin: 8px 0 18px; color: var(--text-secondary); font-size: 13px; }
#login-form { display: grid; gap: 12px; }
#login-form label { display: grid; gap: 6px; color: #655f58; font-size: 12px; font-weight: 700; }
#login-form input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 16px;
  padding: 0 14px; background: rgba(255,253,248,.92); font: inherit; outline: none;
}
#login-form button {
  height: 48px; border-radius: 999px; background: #ffdc72; font-weight: 900;
  box-shadow: 0 8px 18px rgba(212,157,18,.18);
}
#login-error { min-height: 18px; color: #d45454; text-align: center; }
.login-hint { margin-top: 8px; text-align: center; font-size: 11px; color: #9a948c; }
.memory-owner-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed rgba(41,39,37,.10);
}
.memory-owner-actions button {
  height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,244,214,.86);
  border: 1px solid rgba(255,217,90,.42); font-size: 12px; font-weight: 800;
}
.memory-owner-actions .danger { background: rgba(255,232,226,.86); border-color: rgba(255,182,182,.55); color: #b45b5b; }
.menu-list .logout { color: #a45b4d; }

/* V29: real CRUD + upload states */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.memory-list { display: grid; gap: 0; }
.empty-memory { text-align: center; padding: 24px 16px; }
.primary.small { height: 36px; padding: 0 18px; font-size: 13px; }
.upload-preview { cursor: pointer; background: rgba(255,255,255,.72); border: 1px dashed rgba(41,39,37,.14); }
.upload-preview img { transition: opacity .18s ease; }
.upload-preview.is-empty img { opacity: .25; filter: saturate(.7); }
.upload-empty {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-weight: 800;
  color: #7f6a32;
  text-shadow: 0 1px 0 rgba(255,255,255,.9);
  pointer-events: none;
}
.upload-preview.is-empty .upload-empty { display: grid; }
.thumbs { grid-template-columns: repeat(5, 1fr); }
.thumbs .thumb-img { padding: 0; overflow: hidden; border: 2px solid rgba(255, 220, 114, .8); background: #fff; }
.thumbs .thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.memory-form label { align-items: center; gap: 12px; }
.memory-form input {
  width: 70%;
  border: 0;
  outline: 0;
  text-align: right;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.publish:disabled { opacity: .62; cursor: progress; }
.memory-owner-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.memory-owner-actions button { height: 30px; padding: 0 12px; border-radius: 999px; background: #fff4d6; border: 1px solid rgba(41,39,37,.08); font-size: 12px; font-weight: 800; }
.memory-owner-actions .danger { background: #ffe8e2; color: #c45b5b; }
.calendar-empty { padding: 22px; text-align: center; color: var(--text-secondary); }
