@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Noto+Sans+SC:wght@500;700;900&family=ZCOOL+KuaiLe&display=swap");
* { box-sizing: border-box; }
:root {
  --ink: #f8fbff; --muted: #9fb0c3; --line: rgba(133, 177, 222, .22);
  --panel: rgba(8, 18, 33, .82); --panel-soft: rgba(15, 32, 54, .72);
  --mint: #63e6b8; --pink: #ff4e78; --peach: #ffb05f; --blue: #83c7ff;
  --cell-w: 192px; --cell-h: 208px;
  --font-body: "Noto Sans SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-soft: "Noto Sans SC", "LXGW WenKai Screen", "霞鹜文楷", "YouYuan", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-cute: "ZCOOL KuaiLe", "Baloo 2", "Noto Sans SC", "YouYuan", "Microsoft YaHei UI", sans-serif;
  --font-number: "Baloo 2", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
}
body {
  margin: 0; min-height: 100vh; display: flex; justify-content: center; color: var(--ink);
  font-family: var(--font-body); font-weight: 700; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 78, 120, .24), transparent 28%),
    radial-gradient(circle at 8% 18%, rgba(99, 230, 184, .15), transparent 23%),
    radial-gradient(circle at 96% 35%, rgba(131, 199, 255, .18), transparent 24%),
    #030913;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .32;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.5) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(99,230,184,.35) 1px, transparent 1.5px);
  background-size: 42px 42px, 76px 76px; animation: floatDust 12s linear infinite;
}
button, textarea { color: inherit; font: inherit; }
button { cursor: pointer; border: 0; }
h1, h2, h3, p { margin: 0; } b { font-weight: 900; }
.app-shell { width: min(430px, 100%); min-height: 100vh; padding: 16px 14px 96px; position: relative; }
.topbar { display: grid; grid-template-columns: 1fr 46px; gap: 12px; align-items: center; margin-bottom: 12px; }
.route-pill, .label { display: block; color: var(--mint); font-family: var(--font-cute); font-size: 12px; font-weight: 400; letter-spacing: .03em; }
h1 {
  margin-top: 3px; font-size: 40px; line-height: .92; letter-spacing: 0;
  font-family: var(--font-cute); font-weight: 400; text-shadow: 0 0 24px rgba(131,199,255,.2);
}
.identity-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.08); }
.identity-switch button { min-height: 36px; border-radius: 999px; color: #cfdef0; background: transparent; font-family: var(--font-cute); font-size: 14px; font-weight: 400; }
.identity-switch .active { color: #102033; background: linear-gradient(180deg, #fff, #dff5ff); }
.round-action {
  width: 46px; height: 46px; border-radius: 50%; color: #0a1220; background: #fff;
  box-shadow: 0 12px 34px rgba(255,78,120,.22); font-family: var(--font-number); font-size: 28px; font-weight: 800;
}
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.stats-strip article, .panel, .stage-card {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  box-shadow: 0 20px 56px rgba(0,0,0,.22); backdrop-filter: blur(18px);
}
.stats-strip article { min-height: 52px; padding: 8px 7px; }
.stats-strip span, .section-title { color: var(--muted); font-family: var(--font-cute); font-size: 12px; font-weight: 400; }
.stats-strip strong { display: block; margin-top: 5px; font-family: var(--font-number); font-size: 18px; line-height: 1; font-weight: 800; }
.view { display: none; } .view.active { display: grid; gap: 14px; }
.stage-card { min-height: 590px; padding: 12px; position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(13,29,52,.88), rgba(6,13,25,.96)); }
.desk-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 4px 2px 10px; }
.desk-toolbar strong { display: block; margin-top: 3px; color: #e7f2ff; font-size: 13px; }
.desk-toolbar i { width: 36px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--mint), var(--peach), var(--pink)); box-shadow: 0 0 18px rgba(255,78,120,.38); }
.photo-stack { position: relative; height: 438px; overflow: hidden; border-radius: 8px; background: #07111f; }
.photo-room { position: absolute; left: 0; width: 100%; height: 55%; overflow: hidden; }
.photo-room img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(1.08) contrast(.98); }
.photo-room input { display: none; }
.room-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,9,19,.16), rgba(3,9,19,.72)); }
.side-aero { top: 0; clip-path: polygon(0 0,100% 0,100% 84%,0 100%); }
.side-mira { bottom: 0; clip-path: polygon(0 16%,100% 0,100% 100%,0 100%); }
.room-copy { position: absolute; left: 18px; right: 18px; top: 16px; z-index: 2; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.side-mira .room-copy { top: 84px; }
.room-copy span, .room-copy small { display: block; font-family: var(--font-cute); font-weight: 400; }
.room-copy strong { display: block; margin: 6px 0; font-family: var(--font-cute); font-size: 30px; line-height: .95; font-weight: 400; }
.room-pet { position: absolute; z-index: 6; transform-origin: bottom center; filter: drop-shadow(0 16px 18px rgba(0,0,0,.34)); }
.aero-pet { left: 64px; top: -4px; transform: scale(.62); }
.mira-pet { right: 48px; bottom: 32px; transform: scale(.72); }
.upload-pill {
  position: absolute; z-index: 4; right: 14px; top: 16px; padding: 8px 11px !important; border-radius: 999px !important;
  color: #102033 !important; background: rgba(255,255,255,.9) !important; box-shadow: 0 10px 22px rgba(0,0,0,.18) !important; font-family: var(--font-cute) !important; font-weight: 400 !important;
}
.side-mira .upload-pill { top: 88px; }
.upload-pill.locked { color: #d5e3f3 !important; background: rgba(9,18,31,.54) !important; }
.signal-card {
  position: absolute; z-index: 4; left: -8px; right: -8px; top: 232px; height: 66px; display: grid;
  grid-template-columns: auto 1fr 34px 1fr auto; gap: 10px; align-items: center; padding: 0 48px;
  color: #183047; font-family: var(--font-cute); font-weight: 400; background: #fffaf0; transform: rotate(-6deg); box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.signal-card i { height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--peach), var(--pink)); }
.signal-card b { width: 30px; height: 30px; transform: rotate(-45deg); border-radius: 8px; background: linear-gradient(135deg, var(--pink), var(--peach)); }
.signal-card b::before, .signal-card b::after { content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: inherit; }
.signal-card b::before { top: -15px; left: 0; } .signal-card b::after { top: 0; left: 15px; }
.pet-sprite { width: var(--cell-w); height: var(--cell-h); background-repeat: no-repeat; background-size: 1536px 1872px; }
.pet-sprite.hero { transform: scale(.82); transform-origin: bottom center; margin: -16px -34px -4px; filter: drop-shadow(0 18px 22px rgba(0,0,0,.32)); }
.pet-sprite.pulse-pet { position: absolute; top: 62px; transform: scale(.42); transform-origin: top center; filter: drop-shadow(0 10px 16px rgba(0,0,0,.28)); }
.pulse-pet.left { left: -36px; } .pulse-pet.right { right: -36px; }
[data-pet="aero"] { background-image: url("aero-shade-spritesheet.webp"); }
[data-pet="mira"] { background-image: url("mira-dot-spritesheet.webp"); }
.heart-orb i { position: relative; display: block; width: 28px; height: 28px; transform: rotate(-45deg); background: linear-gradient(135deg, var(--pink), var(--peach)); border-radius: 7px; }
.heart-orb i::before, .heart-orb i::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.ritual-dock {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3; padding: 14px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(8,18,33,.78);
}
.ritual-dock h2 { margin-top: 5px; font-family: var(--font-cute); font-size: 20px; line-height: 1.12; letter-spacing: 0; font-weight: 400; }
.choice-grid, .quick-row, .action-row, .plan-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.choice-grid button, .quick-row button, .action-row button, .panel button {
  padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: #091420;
  background: linear-gradient(180deg, #fff, #eaf7ff); box-shadow: 0 12px 24px rgba(0,0,0,.18); font-family: var(--font-cute); font-size: 14px; font-weight: 400;
}
.primary { color: #fff !important; background: linear-gradient(135deg, #1f6cff, #ff4e78) !important; }
.wide { width: 100%; }
.panel { min-height: 186px; padding: 17px; overflow: hidden; }
.section-title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title strong { color: #cce6ff; }
.universe-panel { background: linear-gradient(145deg, rgba(7,23,40,.9), rgba(42,16,42,.72)); }
.orbit-map {
  height: 158px; position: relative; display: grid; place-items: center; margin-bottom: 12px;
  border-radius: 8px; background: radial-gradient(circle, rgba(99,230,184,.2), rgba(255,255,255,.04) 62%, transparent 63%);
}
.orbit-map::before { content: ""; position: absolute; width: 112px; height: 112px; border: 1px dashed rgba(255,255,255,.22); border-radius: 50%; }
.orbit-map strong { font-family: var(--font-number); font-size: 48px; line-height: .9; color: #fff; }
.orbit-map span { position: absolute; bottom: 38px; color: var(--muted); font-family: var(--font-cute); font-size: 12px; font-weight: 400; }
.planet { position: absolute; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 18px currentColor; }
.p1 { color: var(--mint); background: var(--mint); transform: translate(-58px,-38px); }
.p2 { color: var(--pink); background: var(--pink); transform: translate(62px,-8px); }
.p3 { color: var(--peach); background: var(--peach); transform: translate(-18px,58px); }
.deep-cards { display: grid; gap: 9px; }
.deep-cards div, .memory-list div, .wish-list p {
  padding: 12px; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; background: rgba(255,255,255,.06);
}
.deep-cards b, .memory-list b { display: block; color: var(--mint); margin-bottom: 4px; }
.deep-cards span, .panel p, .memory-list span, .wish-list p { color: #d4dfeb; font-family: var(--font-soft); font-size: 14px; line-height: 1.65; }
.pulse-hero { min-height: 430px; text-align: center; background: radial-gradient(circle at 50% 36%, rgba(255,78,120,.23), rgba(8,18,33,.92) 58%); }
.pulse-top { display: flex; justify-content: space-between; align-items: center; }
.pulse-stage { height: 178px; position: relative; display: grid; place-items: center; }
.heart-orb {
  width: 156px; height: 156px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,78,120,.48), rgba(255,78,120,.1) 54%, transparent 73%);
  filter: drop-shadow(0 0 36px rgba(255,78,120,.55)); animation: heartbeat 1.7s ease-in-out infinite;
}
.heart-orb i { width: 70px; height: 70px; border-radius: 15px; }
.heart-orb i::before, .heart-orb i::after { width: 70px; height: 70px; }
.heart-orb i::before { top: -35px; left: 0; } .heart-orb i::after { left: 35px; top: 0; }
.pulse-hero > strong { display: block; color: var(--pink); font-family: var(--font-number); font-size: 72px; line-height: .88; font-weight: 800; text-shadow: 0 0 26px rgba(255,78,120,.58); }
.pulse-copy { color: #fff !important; font-family: var(--font-cute); font-size: 23px !important; font-weight: 400; }
.pulse-bar, .flower-meter { height: 11px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.pulse-bar { width: min(310px, 92%); margin: 18px auto 12px; }
.pulse-bar i, .flower-meter i { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--peach), var(--pink)); transition: width .25s ease; }
.achievement { display: inline-block; padding: 9px 15px; border: 1px solid rgba(255,208,95,.55); border-radius: 999px; color: #ffd85e; background: rgba(112,48,26,.42); font-family: var(--font-cute); font-weight: 400; }
.pulse-sub { margin-top: 13px; }
textarea {
  width: 100%; min-height: 126px; resize: none; border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  padding: 15px; color: #102033; background: linear-gradient(180deg, #fff9f1, #eafaf5); font-family: var(--font-soft); font-size: 17px; line-height: 1.55;
}
.composer { background: linear-gradient(145deg, rgba(16,30,51,.94), rgba(28,20,44,.84)); }
.question-panel { background: linear-gradient(145deg, rgba(10,31,49,.94), rgba(38,22,48,.86)); }
.question-panel h2 { margin-bottom: 13px; font-family: var(--font-cute); font-size: 26px; line-height: 1.12; font-weight: 400; }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mood-grid button { min-height: 40px; padding: 8px 7px !important; color: #cfdef0 !important; background: rgba(255,255,255,.08) !important; box-shadow: none !important; }
.mood-grid .active { color: #102033 !important; background: linear-gradient(180deg, #fff7df, #dff9ff) !important; }
.answer-board { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.answer-board div { min-height: 86px; padding: 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.07); }
.answer-board b { display: block; margin-bottom: 6px; color: var(--mint); font-family: var(--font-cute); font-weight: 400; }
.answer-board span { color: #d8e8f7; font-size: 13px; line-height: 1.5; }
.sticker-preview { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.07); }
.sticker-preview img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; background: rgba(255,255,255,.08); }
.sticker-preview .hidden { display: none; }
.sticker-pet { transform: scale(.42); transform-origin: center; margin: -56px -50px -58px -50px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.28)); }
.sticker-preview h3 { margin: 2px 0 5px; font-family: var(--font-cute); font-size: 22px; font-weight: 400; }
.meter-panel { background: rgba(6,31,48,.82); }
.flower-meter { margin: 16px 0 12px; }
.message-list, .memory-list, .wish-list { display: grid; gap: 10px; }
.message {
  max-width: 88%; padding: 12px 14px; border-radius: 8px; color: #102033; background: #eaf8f0;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
.message.hers { margin-left: auto; background: #fff1d9; }
.message b, .message span { display: block; color: #16735e; font-family: var(--font-cute); font-size: 12px; font-weight: 400; }
.message p { color: #172331; margin: 4px 0; font-family: var(--font-soft); }
.voice-panel { display: grid; gap: 12px; background: linear-gradient(145deg, rgba(9,23,42,.94), rgba(28,20,44,.84)); }
.voice-chat { min-height: 230px; max-height: 330px; overflow: auto; display: grid; align-content: start; gap: 10px; padding: 12px; border-radius: 8px; background: rgba(255,255,255,.06); }
.voice-message {
  position: relative; width: 82%; padding: 12px 44px 12px 14px; border-radius: 8px 8px 8px 2px;
  color: #142337; background: linear-gradient(180deg, #eff9ff, #dcefff); box-shadow: 0 10px 22px rgba(0,0,0,.16);
}
.voice-message.mine { justify-self: end; border-radius: 8px 8px 2px 8px; background: linear-gradient(180deg, #fff7e5, #ffe8b9); }
.voice-message b { display: block; margin-bottom: 4px; color: #176f5b; font-family: var(--font-cute); font-size: 12px; font-weight: 400; }
.voice-message p { color: #182333; font-family: var(--font-soft); line-height: 1.45; }
.voice-message i {
  position: absolute; right: 14px; top: 50%; width: 20px; height: 28px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #2f7dff 0 3px, transparent 3px 7px); border-radius: 6px;
}
.voice-compose { padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(6,13,25,.52); }
.voice-compose textarea { min-height: 84px; font-size: 15px; }
.rule-panel { background: linear-gradient(145deg, rgba(8,24,42,.92), rgba(38,21,38,.82)); }
.rule-list { display: grid; gap: 9px; }
.rule-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; min-height: 84px; overflow: hidden; text-align: left; padding: 10px !important; color: #eaf6ff !important; background: rgba(255,255,255,.07) !important; box-shadow: none !important; }
.rule-item.active { border-color: rgba(99,230,184,.58) !important; background: rgba(99,230,184,.13) !important; }
.rule-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: rgba(255,255,255,.08); }
.rule-item b { display: block; margin-bottom: 3px; color: #fff; }
.rule-item small { display: block; color: #b9c8d8; line-height: 1.45; }
.rule-pet { transform: scale(.31); transform-origin: top left; margin: -16px -132px -128px 4px; }
.sticker-panel, .usagi-panel { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; }
.usagi-panel { grid-template-columns: 1fr 104px; }
.sticker-panel img, .usagi-panel img { width: 100%; height: 118px; object-fit: cover; border-radius: 8px; background: rgba(255,255,255,.08); }
.usagi-panel img { object-fit: contain; padding: 6px; }
.panel h2 { font-family: var(--font-cute); font-size: 34px; line-height: 1.06; letter-spacing: 0; font-weight: 400; }
.panel h3 { margin: 3px 0 7px; font-family: var(--font-cute); font-size: 23px; font-weight: 400; }
.countdown-panel { background: linear-gradient(145deg, rgba(58,24,35,.9), rgba(9,18,31,.88)); }
.plan-list span, .day-grid i {
  padding: 9px 11px; border-radius: 999px; color: #102033; background: #fff7e6; font-family: var(--font-cute); font-size: 12px; font-weight: 400;
}
.distance-panel { min-height: 172px; background: linear-gradient(135deg, rgba(8,16,30,.94), rgba(18,36,57,.9)); }
.distance-panel code { display: block; margin: 16px 0 20px; color: #dce7f5; font-size: 18px; white-space: pre-wrap; }
.distance-panel strong { display: block; font-family: var(--font-number); font-size: 58px; letter-spacing: 0; font-weight: 800; }
.day-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; margin-top: 18px; }
.day-grid i { display: grid; min-height: 42px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.09); color: #d8e8f7; font-style: normal; }
.day-grid .done { background: linear-gradient(135deg, #16a47f, #2f7dff); color: #fff; }
.view-intro {
  display: grid; gap: 4px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px; background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.view-intro b { color: #fff8df; font-family: var(--font-cute); font-size: 22px; font-weight: 400; }
.view-intro span { color: #bfd0e2; font-family: var(--font-soft); font-size: 13px; line-height: 1.5; }
.bottom-nav {
  position: fixed; z-index: 20; left: 50%; bottom: 12px; width: min(402px, calc(100% - 28px)); transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 7px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px; background: rgba(245, 250, 255, .9); box-shadow: 0 16px 48px rgba(0,0,0,.26); backdrop-filter: blur(18px);
}
.bottom-nav button {
  min-height: 48px; display: grid; place-items: center; gap: 2px; border-radius: 18px; color: #182333;
  background: transparent; font-family: var(--font-cute); font-size: 13px; font-weight: 400;
}
.bottom-nav button::before {
  content: ""; width: 20px; height: 14px; display: block; border-radius: 999px;
  background: linear-gradient(90deg, rgba(47,125,255,.34), rgba(255,78,120,.34));
}
.bottom-nav [data-view-tab="desk"]::before { border-radius: 6px 6px 3px 3px; }
.bottom-nav [data-view-tab="sync"]::before { width: 18px; height: 18px; transform: rotate(-45deg); border-radius: 5px; }
.bottom-nav [data-view-tab="bits"]::before { border-radius: 5px; box-shadow: 6px -3px 0 rgba(99,230,184,.32); }
.bottom-nav [data-view-tab="meet"]::before { width: 16px; height: 16px; border-radius: 50% 50% 50% 3px; transform: rotate(-45deg); }
.bottom-nav .active { color: #fff; background: linear-gradient(135deg, #121f30, #342139); }
.bottom-nav .active::before { background: linear-gradient(90deg, var(--mint), var(--peach), var(--pink)); box-shadow: 0 0 16px rgba(255,78,120,.36); }
.photo-stack.celebrate .room-pet { animation: hop .7s ease; }
.photo-stack.cozy .room-pet { animation: sway .95s ease; }
@keyframes glowLine { 0%,100% { filter: drop-shadow(0 0 2px var(--mint)); } 50% { filter: drop-shadow(0 0 12px var(--pink)); } }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 14% { transform: scale(1.08); } 28% { transform: scale(.98); } 42% { transform: scale(1.05); } }
@keyframes voicePulse { 0%,100% { transform: scaleY(.62); } 50% { transform: scaleY(1); } }
@keyframes floatDust { from { background-position: 0 0, 0 0; } to { background-position: 42px 42px, -76px 76px; } }
@keyframes hop { 0%,100% { transform: translateY(0); } 45% { transform: translateY(-12px); } }
@keyframes sway { 0%,100% { transform: rotate(0); } 35% { transform: rotate(-2deg); } 70% { transform: rotate(2deg); } }
@media (max-width: 370px) {
  .app-shell { padding-left: 10px; padding-right: 10px; }
  h1 { font-size: 36px; }
  .pet-duo { grid-template-columns: 1fr 28px 1fr; }
  .pet-sprite.hero { transform: scale(.72); margin-left: -42px; margin-right: -42px; }
  .sticker-panel, .usagi-panel { grid-template-columns: 1fr; }
}
