:root {
  --ink: #070b16;
  --moon: #f3e6c4;
  --apricot: #e7b89a;
  --text: #f4efe6;
  --dim: rgba(244, 239, 230, 0.62);
  --faint: rgba(244, 239, 230, 0.4);
  --line: rgba(243, 230, 196, 0.18);
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "DengXian", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
  --sky-top: #070b16;
  --sky-mid: #0c1222;
  --sky-bottom: #120e12;
  --sky-glow: rgba(176, 198, 226, 0.22);
  --sky-ground: rgba(80, 90, 120, 0.12);
  --sun-x: 76%;
  --sun-y: 8%;
  --disc: #f3e6c4;
  --star: 1;
  --orb: 0.92;
  --sec: 0;
}

@property --sky-top { syntax: "<color>"; inherits: true; initial-value: #070b16; }
@property --sky-mid { syntax: "<color>"; inherits: true; initial-value: #0c1222; }
@property --sky-bottom { syntax: "<color>"; inherits: true; initial-value: #120e12; }
@property --sky-glow { syntax: "<color>"; inherits: true; initial-value: rgba(176, 198, 226, 0.22); }
@property --sky-ground { syntax: "<color>"; inherits: true; initial-value: rgba(80, 90, 120, 0.12); }
@property --disc { syntax: "<color>"; inherits: true; initial-value: #f3e6c4; }
@property --sun-x { syntax: "<percentage>"; inherits: true; initial-value: 76%; }
@property --sun-y { syntax: "<percentage>"; inherits: true; initial-value: 8%; }
@property --star { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --orb { syntax: "<number>"; inherits: true; initial-value: 0.92; }
@property --sec { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  transition:
    --sky-top 18s linear,
    --sky-mid 18s linear,
    --sky-bottom 18s linear,
    --sky-glow 18s linear,
    --sky-ground 18s linear,
    --disc 18s linear,
    --sun-x 18s linear,
    --sun-y 18s linear,
    --star 18s linear,
    --orb 18s linear;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

button, textarea, input {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

button:focus-visible {
  outline: 1px solid rgba(243, 230, 196, 0.45);
  outline-offset: 4px;
}

#app {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.horizon, .sky, .grain {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

@media (min-width: 520px) {
  .horizon, .sky, .day-air, .grain, nav {
    left: calc(50% - 240px);
    right: calc(50% - 240px);
  }
}

.horizon {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(28% 18% at var(--sun-x) var(--sun-y), var(--sky-glow), transparent 72%),
    radial-gradient(120% 22% at 50% 0%, rgba(176, 198, 226, 0.08), transparent 70%),
    radial-gradient(90% 24% at 50% 108%, var(--sky-ground), transparent 68%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-bottom) 100%);
}

.horizon::before,
.horizon::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.horizon::before {
  inset: -8% -10% auto;
  height: 42%;
  background:
    linear-gradient(115deg, transparent 22%, rgba(186, 206, 230, 0.08) 48%, transparent 70%);
  transform: rotate(-6deg);
}

.horizon::after {
  width: 42px;
  height: 42px;
  left: var(--sun-x);
  top: var(--sun-y);
  right: auto;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: var(--orb);
  background:
    radial-gradient(circle at 40% 36%, rgba(255, 252, 246, 0.92), var(--disc) 26%, transparent 70%);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--disc) 50%, transparent),
    0 0 64px color-mix(in srgb, var(--disc) 22%, transparent);
  animation: orbDrift 28s ease-in-out infinite;
}

@keyframes orbDrift {
  50% { transform: translate(-50%, calc(-50% + 10px)); }
}

@keyframes moonFloat {
  50% { transform: translate3d(0, 10px, 0); }
}

.sky {
  z-index: 1;
}

.starfield {
  position: absolute;
  inset: 0;
  opacity: var(--star);
  pointer-events: none;
}

.sky::after {
  opacity: var(--star);
}

.day-air {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  container-type: inline-size;
  opacity: min(1, calc((1 - var(--star)) * 1.9));
  -webkit-mask-image: linear-gradient(#000 0%, #000 6%, transparent 22%);
  mask-image: linear-gradient(#000 0%, #000 6%, transparent 22%);
}

.day-air::before,
.day-air::after {
  content: none;
}

.cloud {
  position: absolute;
  left: 0;
  height: auto;
  animation-name: sail;
  animation-duration: var(--dur, 28s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: var(--delay, -6s);
  filter: blur(0.25px);
  will-change: transform;
}

.cloud-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: cloudLift var(--lift-dur, 6s) ease-in-out infinite;
}

@keyframes sail {
  0% { transform: translate3d(-108%, 0, 0); }
  45% { transform: translate3d(26cqi, var(--bob, 12px), 0); }
  100% { transform: translate3d(calc(100cqi + 16%), calc(var(--bob, 12px) * -0.35), 0); }
}

@keyframes cloudLift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(6px, var(--lift, -10px), 0); }
}

.day-air .ray {
  position: absolute;
  left: var(--sun-x);
  top: var(--sun-y);
  width: 160%;
  height: 160%;
  background: conic-gradient(
    from 210deg at 18% 12%,
    transparent 0 10deg,
    rgba(255, 236, 200, 0.09) 16deg,
    transparent 26deg,
    transparent 46deg,
    rgba(255, 214, 160, 0.07) 54deg,
    transparent 66deg
  );
  mix-blend-mode: screen;
  animation: rayTurn 64s linear infinite;
  transform-origin: 18% 12%;
}

@keyframes rayTurn {
  to { transform: rotate(16deg); }
}

.page-head .kicker,
.until,
.whisper {
  text-shadow: 0 1px 10px rgba(7, 11, 22, 0.9);
}

.mote {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 248, 230, 0.8);
  box-shadow: 0 0 8px rgba(255, 236, 200, 0.85);
  animation: moteRise linear infinite;
}

@keyframes moteRise {
  0% { transform: translate3d(0, 8vh, 0); opacity: 0; }
  18% { opacity: 0.9; }
  100% { transform: translate3d(22px, -78vh, 0); opacity: 0; }
}

.sky::before,
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky::before {
  opacity: calc(0.35 + var(--star) * 0.65);
  background:
    radial-gradient(70% 16% at 50% 18%, rgba(176, 198, 226, 0.14), transparent 72%),
    radial-gradient(36% 22% at 18% 12%, rgba(118, 146, 198, 0.12), transparent 74%),
    radial-gradient(32% 18% at 82% 16%, rgba(206, 146, 116, 0.08), transparent 76%);
}

.sky::after {
  background-image:
    radial-gradient(1.4px 1.4px at 6% 14%, rgba(244, 239, 230, 0.85), transparent),
    radial-gradient(1px 1px at 10% 32%, rgba(244, 239, 230, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 4% 58%, rgba(244, 239, 230, 0.6), transparent),
    radial-gradient(1px 1px at 12% 78%, rgba(231, 184, 154, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 94% 18%, rgba(244, 239, 230, 0.8), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(176, 198, 226, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 96% 62%, rgba(244, 239, 230, 0.5), transparent),
    radial-gradient(1px 1px at 88% 84%, rgba(231, 184, 154, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 22% 5%, rgba(244, 239, 230, 0.5), transparent),
    radial-gradient(1px 1px at 74% 7%, rgba(244, 239, 230, 0.4), transparent);
}

.grain {
  z-index: 2;
  opacity: 0.16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
}

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--moon);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 6px rgba(243, 230, 196, 0.85));
  animation: drift 11s ease-in-out infinite;
}

.spark.warm { background: var(--apricot); }

.spark.dot {
  width: 2px;
  height: 2px;
  clip-path: none;
  border-radius: 50%;
  filter: none;
  background: rgba(244, 239, 230, 0.85);
}

@keyframes drift {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.85; }
}

main {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  padding: calc(22px + env(safe-area-inset-top)) 28px calc(188px + env(safe-area-inset-bottom));
}

body:has(nav[hidden]) main {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

body:has(section.play) main,
body:has(section.chat-page) main {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

nav {
  position: fixed;
  z-index: 4;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 36px 32px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 11, 22, 0.9) 34%, #070b16 62%);
}

nav button {
  background: none;
  border: 0;
  color: var(--dim);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-size: 13px;
  padding: 8px 0;
}

nav button.on { color: var(--moon); }

nav[hidden] { display: none !important; }

.center {
  min-height: calc(100dvh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}

.enter { gap: 72px; }

.enter button {
  background: none;
  border: 0;
  font-family: var(--serif);
  font-size: 44px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--moon);
  text-shadow: 0 0 24px rgba(243, 230, 196, 0.35);
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--moon);
}

.policy {
  margin: 0;
  max-width: 16em;
  color: var(--dim);
  font-size: 13px;
  line-height: 2.3;
}

.hour {
  margin: 3.2vh 0 0;
  text-align: center;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sheet, .emos, .nights, .week, .filters, .sentence, .event {
  width: 100%;
}

.sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sentence, .event, .quiet, .name, .pause {
  width: min(100%, 16em);
  border: 0;
  background: transparent;
  text-align: center;
  resize: none;
}

.sentence {
  margin-top: 4vh;
  min-height: 3.2em;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--text);
}

.sentence::placeholder, .event::placeholder, .quiet::placeholder, .pause::placeholder, .name::placeholder {
  color: var(--faint);
}

.event, .quiet, .pause, .name {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 230, 0.82);
}

.quiet { margin-top: 16px; min-height: 1.8em; }

.event {
  margin-top: 8px;
  min-height: 2.6em;
  border-bottom: 1px solid transparent;
}

.event:focus, .quiet:focus, .pause:focus, .name:focus { outline: none; }

.field-label {
  margin-top: 16px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.night-meter i.on {
  background: var(--moon);
  box-shadow: 0 0 10px rgba(243, 230, 196, 0.7);
}

.chips, .share, .flow, .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 16px;
  max-width: 16em;
}

.chips button, .share button, .flow button, .actions button, .ghost {
  background: none;
  border: 0;
  color: var(--dim);
  letter-spacing: 0.14em;
  font-size: 14px;
  padding: 0;
}

.chips button.on, .share button.on, .flow button.on, .actions button.on {
  color: var(--moon);
  text-shadow: 0 0 18px rgba(243, 230, 196, 0.4);
}

.moon-share {
  max-width: 18em;
  gap: 12px;
}

.moon-share button {
  padding: 4px 0;
  border: 0;
  letter-spacing: 0.12em;
}

.emos {
  width: 100%;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 6px;
}

.emos button {
  background: none;
  border: 0;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.12em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.emos button .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}

.emos button.on { color: var(--emo, var(--moon)); }
.emos button.on .dot {
  opacity: 1;
  box-shadow: 0 0 10px currentColor;
}

button:disabled { cursor: default; }
.seal:disabled,
.partner:disabled { opacity: 0.42; }

.pair-actions .hint {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-indent: 0;
  line-height: 1.45;
  max-width: 9em;
  white-space: normal;
  text-align: center;
}

.quiet-go {
  background: none;
  border: 0;
  color: var(--moon);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-size: 16px;
}

.pair-actions .seal,
.pair-actions .partner {
  margin: 0;
  min-height: 0;
  border: 0;
  background: none;
  padding: 8px 4px;
}

.seal {
  margin-top: 48px;
  background: none;
  border: 0;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-size: 13px;
}

.star4 {
  width: 16px;
  height: 16px;
  display: block;
  background: var(--moon);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 10px rgba(243, 230, 196, 0.9));
}

.star4.dim { opacity: 0.35; filter: none; background: var(--dim); }
.star4.apricot { background: var(--apricot); filter: drop-shadow(0 0 10px rgba(231, 184, 154, 0.85)); }
.star4.odd { background: #e7b3c4; filter: drop-shadow(0 0 10px rgba(231, 179, 196, 0.9)); }

.partner {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--apricot);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.08em;
  background: none;
  border: 0;
}

.partner span { color: var(--dim); font-family: var(--sans); font-size: 12px; letter-spacing: 0.4em; text-indent: 0.4em; }

.sealing .sheet {
  animation: fold 720ms ease forwards;
}

@keyframes fold {
  to { opacity: 0; transform: translateY(30px) scale(0.86); filter: blur(1px); }
}

.moon-wrap {
  position: relative;
  width: 200px;
  margin: 4vh auto 0;
}

.orb {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 64% 38%, rgba(255, 255, 255, 0.2), transparent 18%),
    radial-gradient(circle at 28% 70%, rgba(170, 120, 80, 0.22), transparent 18%),
    radial-gradient(circle at 34% 32%, #fff8ec, #f3e6c4 46%, #e4c7a4 78%);
  box-shadow:
    inset -16px -12px 28px rgba(90, 60, 40, 0.16),
    0 0 46px rgba(243, 230, 196, 0.28),
    0 0 120px rgba(231, 184, 154, 0.14);
  animation: breathe 10s ease-in-out infinite;
}

.odd-star {
  position: absolute;
  top: 28px;
  right: -4px;
  background: none;
  border: 0;
  padding: 8px;
}

.phase {
  margin: 28px 0 0;
  text-align: center;
  font-family: var(--serif);
  letter-spacing: 0.7em;
  text-indent: 0.7em;
  color: var(--moon);
  font-size: 16px;
}

.phase small {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.cycle-line {
  margin: 12px 0 0;
  color: var(--apricot);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.when {
  margin: 14px 0 0;
  text-align: center;
  letter-spacing: 0.28em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  background: none;
  border: 0;
}

.when small {
  display: block;
  margin-bottom: 6px;
  color: var(--apricot);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.when.glow { color: var(--moon); text-shadow: 0 0 16px rgba(243, 230, 196, 0.55); }

.days {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.days button {
  width: 4px;
  height: 4px;
  box-sizing: content-box;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 230, 196, 0.2) content-box;
  background-clip: content-box;
}
.days button.on { background-color: var(--moon); box-shadow: 0 0 6px rgba(243, 230, 196, 0.8); }
.days button.now { outline: 1px solid rgba(243, 230, 196, 0.8); outline-offset: 3px; }

.pains { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; }
.pains .field-label { margin: 0; }
.flow { align-items: center; }
.flow .field-label { margin: 0; }
.pains button {
  width: 8px;
  height: 8px;
  box-sizing: content-box;
  padding: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(243, 230, 196, 0.2) content-box;
  background-clip: content-box;
}
.pains button.on { background-color: var(--apricot); }

.care {
  margin-top: 22px;
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.week {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 3vh;
  align-items: start;
  padding: 8px 0 0;
  border: 0;
  background: none;
}

.daycol {
  background: none;
  border: 0;
  color: var(--dim);
  display: grid;
  grid-template-rows: 16px 12px 8px 14px;
  justify-items: center;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.daycol .spark {
  position: static;
  width: 7px;
  height: 7px;
  animation: none;
  opacity: 1;
}
.daycol .sparks { display: flex; gap: 3px; align-items: center; justify-content: center; }
.daycol .spark.dim { background: rgba(244, 239, 230, 0.22); }

.daycol em {
  width: 100%;
  min-height: 1em;
  overflow: hidden;
  font-style: normal;
  color: var(--apricot);
  font-size: 10px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.daycol .moonlet,
.moonlet {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 6px rgba(243, 230, 196, 0.8);
}

.moonlet.off { visibility: hidden; }

.legend {
  width: 100%;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 4px;
}

.legend button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 0;
}

.legend button i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emo);
  opacity: 0.4;
}

.legend button.on { color: var(--text); }
.legend button.on i { opacity: 1; box-shadow: 0 0 8px var(--emo); }

.nights {
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}

.nights::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(243, 230, 196, 0.18), transparent);
}

.nights.empty { align-items: center; }
.nights.empty::before { display: none; }

.night {
  width: 100%;
  text-align: left;
  padding-left: 0;
}

.night header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.night time {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.night header span {
  color: var(--apricot);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: right;
}

.line {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 3px 0;
  color: var(--text);
}

.line .spark {
  position: static;
  width: 7px;
  height: 7px;
  justify-self: start;
  animation: none;
}

.line em {
  font-family: var(--serif);
  font-style: normal;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.55;
  text-align: left;
}

.empty-star {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--dim);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 6;
  background: rgba(7, 11, 22, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.veil time, .pause-phrase {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.12em;
}

.back {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 22px;
  background: none;
  border: 0;
  padding: 8px;
}

.heart {
  padding-top: 12vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.heart .lead {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.65;
  letter-spacing: 0.06em;
  max-width: 10em;
}

.rise { animation: rise 700ms ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.meet {
  display: flex;
  justify-content: center;
  gap: 72px;
  margin-bottom: 36px;
}

.meet .spark { position: static; animation: approach 900ms ease forwards; }
.meet .spark.apricot { animation-name: approach2; }

@keyframes approach {
  from { transform: translateX(-36px); opacity: 0; }
  to { transform: translateX(12px); opacity: 1; }
}
@keyframes approach2 {
  from { transform: translateX(36px); opacity: 0; }
  to { transform: translateX(-12px); opacity: 1; }
}

.sub {
  margin: 18px 0 0;
  color: var(--moon);
  letter-spacing: 0.28em;
  font-size: 13px;
}

.story {
  margin: 26px 0 0;
  max-width: 16em;
  line-height: 1.9;
  color: rgba(244, 239, 230, 0.78);
  font-size: 15px;
}

.reply {
  margin-top: 46px;
  padding-top: 20px;
  width: min(100%, 16em);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
}

.voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.voice small {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.ring {
  width: 72px;
  height: 72px;
  margin-top: 28px;
  border-radius: 50%;
  border: 1px solid rgba(243, 230, 196, 0.4);
  background: transparent;
  box-shadow: inset 0 0 20px rgba(243, 230, 196, 0.05);
}

.ring.hot { animation: pulse 1.1s ease-in-out infinite; }

@keyframes pulse {
  50% { transform: scale(1.05); box-shadow: 0 0 24px rgba(243, 230, 196, 0.28); }
}

.us-page {
  padding-top: 4vh;
  text-align: center;
}

.pair-orbit {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  align-items: center;
  width: min(100%, 18em);
  margin-top: 4vh;
}

.pair-orbit i {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 230, 196, 0.42), transparent);
}

.who {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: 0.18em;
  color: var(--moon);
  background: none;
  border: 0;
  text-align: center;
  width: 100%;
  min-width: 0;
}

.who.soft { color: var(--apricot); }

.clock-set {
  width: min(100%, 16em);
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.clock-set button,
.minute-step button,
.quiet-end button,
.play-status button,
.chat p button {
  background: none;
  border: 0;
  color: var(--dim);
  padding: 6px 0;
  font-size: 13px;
  letter-spacing: 0.14em;
}
.minute-step {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 2px;
}
.clock {
  margin: 0;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 28px;
  letter-spacing: 0.22em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.quiet-end {
  margin-top: 36px;
  margin-bottom: 28px;
}
.quiet-end button {
  color: rgba(244, 239, 230, 0.32);
  font-size: 12px;
}

.digits {
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  font-size: 22px;
  font-weight: 400;
  color: var(--moon);
  cursor: pointer;
}

.pair-hint,
.unbind-note {
  width: min(100%, 20em);
  margin: 16px auto 0;
  text-align: center;
  line-height: 1.75;
}

.unbind-note {
  margin-bottom: 8px;
}

.cells { display: flex; gap: 8px; justify-content: center; }
.cells input {
  width: 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: center;
  font-size: 18px;
  color: var(--moon);
  border-radius: 0;
}
.cells input:focus { outline: none; border-bottom-color: var(--moon); }

.marks { display: flex; gap: 28px; justify-content: center; margin-top: 22px; }
.marks button {
  background: none;
  border: 0;
  padding: 6px;
  opacity: 0.35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.marks button.on { opacity: 1; color: var(--moon); }

.mini-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6e4, #e7b89a);
  display: block;
}

#toast {
  position: fixed;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 22vh;
  text-align: center;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--moon);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
}

#toast.on { animation: fadeword 1.6s ease; }

@keyframes fadeword {
  0% { opacity: 0; }
  18% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.mark-name, .clocks, .marklist p, .wishes {
  color: var(--dim);
  letter-spacing: 0.12em;
  font-size: 13px;
}

.clocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 12px;
}

.marklist {
  width: min(100%, 20em);
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.marklist p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(243, 230, 196, 0.08);
}

.marklist small {
  display: block;
  margin-top: 4px;
  color: rgba(244, 239, 230, 0.35);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.marklist b {
  color: var(--moon);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.marklist button {
  background: none;
  border: 0;
  color: var(--dim);
  font-size: 12px;
  padding: 0;
}

.addmark, .wishes {
  display: grid;
  justify-items: stretch;
  gap: 12px;
  width: min(100%, 22em);
  margin: 18px auto 0;
}

.addmark label,
.wish-add {
  display: grid;
  gap: 6px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.addmark input, .wishes input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: var(--moon);
  padding: 4px 0 6px;
}

.addmark input[type="date"],
.addmark input[type="datetime-local"] {
  width: 100%;
  color-scheme: dark;
}

.wishes {
  padding-top: 4px;
}

.wishes > button,
.marklist button,
.wish-row > button:last-child {
  background: none;
  border: 0;
  color: var(--dim);
  padding: 0;
  font-size: 12px;
}

.wishes button.on { color: var(--moon); }

.wish-card i.on {
  background: var(--moon);
  box-shadow: 0 0 8px rgba(243, 230, 196, 0.7);
}

.wish-card.done {
  color: var(--apricot);
}

.guide {
  position: fixed;
  z-index: 7;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(92%, 420px);
  padding: 18px 18px 14px;
  text-align: center;
  background: rgba(12, 16, 28, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
}

.guide p {
  margin: 0 0 14px;
  font-family: var(--serif);
  line-height: 1.7;
}

.guide button {
  background: none;
  border: 0;
  color: var(--moon);
  letter-spacing: 0.28em;
  margin: 0 10px;
}

.addmark .kind-switch {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.addmark .kind-switch button,
.addmark .add-main,
.wishes > .add-main,
.album-actions button,
.file-btn,
.play-pad button {
  border: 0;
  background: none;
  color: var(--dim);
  padding: 6px 0;
  letter-spacing: 0.18em;
  font-size: 14px;
}
.addmark .kind-switch button.on,
.addmark .add-main,
.wishes > .add-main,
.album-actions .file-btn {
  color: var(--moon);
  background: none;
}
.addmark .add-main,
.wishes > .add-main {
  justify-self: center;
  width: auto;
  margin-top: 4px;
}
.entry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 18em);
  margin: 36px auto 0;
}
.entry-row button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  min-height: 0;
  padding: 6px 0;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--moon);
}
.entry-row small {
  color: rgba(244, 239, 230, 0.45);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-indent: 0;
}
.entry-row button + button {
  border-left: 1px solid rgba(243, 230, 196, 0.14);
}
.album, .play {
  width: min(100%, 24em);
  margin: 0 auto;
  padding: 8px 18px 28px;
  text-align: left;
}
.play {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 2px 0;
}
.album .title, .play .title { text-align: center; }
.plates {
  width: min(100%, 20em);
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.plate {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  padding: 0;
  text-align: center;
}
.plate img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.plate-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 2px;
}
.plate strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: var(--moon);
}
.plate small {
  color: var(--dim);
  letter-spacing: 0.16em;
  font-size: 12px;
}
.album-empty {
  text-align: center;
  color: var(--dim);
  margin: 36px 0 0;
  letter-spacing: 0.22em;
}
.album-new {
  width: min(100%, 18em);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}
.album-new input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: center;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--text);
  padding: 8px 0;
}
.album-new input:focus,
.album-name:focus,
.album-text:focus { outline: none; }
.album-new input::placeholder,
.album-name::placeholder,
.album-text::placeholder { color: var(--faint); }
.album-new button {
  background: none;
  border: 0;
  color: var(--moon);
  letter-spacing: 0.2em;
  font-size: 13px;
  padding: 8px 0;
}
.album-name {
  width: 100%;
  margin-top: 8vh;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--moon);
}
.album-when {
  margin: 12px 0 0;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.album-text {
  width: 100%;
  margin-top: 22px;
  min-height: 7em;
  border: 0;
  background: transparent;
  text-align: center;
  resize: none;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.9;
  color: var(--text);
}
.film-note {
  margin: 32px 0 0;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.film {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 12px;
  width: 100%;
  margin-top: 16px;
}
.film:empty { display: none; }
.film figure {
  margin: 0;
  width: calc((100% - 24px) / 3);
  display: grid;
  gap: 8px;
  justify-items: center;
}
.film button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--dim);
  letter-spacing: 0.12em;
  font-size: 11px;
}
.film figure > button:first-child {
  position: relative;
  width: 100%;
}
.film figure > button:last-child {
  padding: 4px 2px;
}
.film img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.film figure.cover img {
  outline: 1px solid rgba(243, 230, 196, 0.72);
  outline-offset: 3px;
}
.film .star4 {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
}
.album-actions {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 36px;
}
.file-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.file-btn input { display: none; }
.play-dock {
  flex: none;
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 10px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 18, 32, 0.94), rgba(8, 12, 22, 0.96));
  border: 1px solid rgba(243, 230, 196, 0.16);
}
.play-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.play-switch button {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(243, 230, 196, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  letter-spacing: 0.14em;
  font-size: 13px;
}
.play-switch button.on {
  color: #1a140c;
  background: var(--moon);
  border-color: var(--moon);
}
.due-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--apricot);
  box-shadow: 0 0 8px rgba(231, 184, 154, 0.8);
  vertical-align: 1px;
}
.play-switch button.on .due-dot { background: #8a4e32; box-shadow: none; }
.play-status {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--apricot);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.play-status:empty { display: none; }
.play-status button { margin-left: 12px; color: var(--dim); }
.play-pad.say {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  margin-top: 2px;
}
.play-pad input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 8px 0;
}
.play-pad.say button {
  color: var(--moon);
  font-size: 13px;
  letter-spacing: 0.2em;
}
.play-pad.rps {
  display: flex;
  justify-content: space-between;
}
.play-pad.size {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.play-pad.rps button,
.play-pad.size button {
  min-height: 36px;
  padding: 6px 0;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.play-pad button.due,
.play-pad button.on { color: var(--moon); }
.play-pad button:disabled {
  color: rgba(244, 239, 230, 0.28);
  cursor: default;
}
.play-pad button.on:disabled { color: var(--moon); }
.chat {
  scrollbar-width: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 0;
}
.chat::-webkit-scrollbar { width: 0; height: 0; }
.chat-empty {
  margin: auto;
  color: var(--dim);
  letter-spacing: 0.16em;
  font-size: 13px;
}
.chat p {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1.65;
  font-family: var(--serif);
  font-size: 16px;
}
.chat p b { display: block; color: var(--dim); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; font-family: var(--sans); }
.chat p button { align-self: flex-end; margin-top: 2px; font-family: var(--sans); font-size: 11px; color: var(--faint); }
.chat p b time { margin-left: 6px; letter-spacing: 0.04em; }
.chat p.mine { align-self: flex-end; text-align: right; color: var(--moon); }
.chat p.game { align-self: center; max-width: 100%; text-align: center; color: var(--apricot); font-size: 14px; }
#app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 22%, rgba(243, 230, 196, 0.08), transparent 24%),
    radial-gradient(circle at 78% 70%, rgba(231, 184, 154, 0.08), transparent 28%);
  animation: skyGlow 16s ease-in-out infinite;
}
@keyframes skyGlow {
  50% { transform: translate3d(0, -12px, 0); opacity: 0.7; }
}

.page-head {
  position: relative;
  isolation: isolate;
  width: min(100%, 22rem);
  margin: 0.4vh 0 0;
  text-align: center;
}

.page-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 42%;
  width: min(280px, 86%);
  height: 168px;
  transform: translate(-50%, -46%);
  background: radial-gradient(closest-side, rgba(7, 11, 22, 0.72), rgba(7, 11, 22, 0.28) 62%, transparent 76%);
  pointer-events: none;
}

.kicker {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

.together {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.14em;
  color: var(--moon);
}

.until {
  margin: 8px 0 0;
  color: var(--apricot);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.page-head .hour {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(7, 11, 22, 0.9);
}

.page-head .phase { margin-top: 8px; }

.panel {
  width: min(100%, 22rem);
  margin-top: 12px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(243, 230, 196, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.2);
}

.sheet {
  width: min(100%, 22rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sheet:focus-within .panel { transition: opacity 220ms ease; }
.sheet:focus-within .panel:not(:focus-within) { opacity: 0.78; }

.sheet .panel,
.us-block { width: 100%; }

.panel .field-label {
  align-self: flex-start;
  margin-top: 16px;
  text-indent: 0;
  letter-spacing: 0.16em;
}

.panel .field-label:first-child { margin-top: 0; }

.panel .sentence,
.panel .event,
.panel .quiet,
.panel .pause,
.us-block .pause {
  width: 100%;
  margin-top: 8px;
  text-align: left;
}

.panel .sentence {
  min-height: 2.8em;
  font-size: 22px;
  line-height: 1.7;
}

.panel .event {
  min-height: 2.8em;
  border-bottom: 0;
}

.count-row {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

[data-saved] { min-height: 1em; }
[data-saved].on { color: var(--moon); }

.panel .chips,
.panel .flow,
.panel .moon-share {
  width: 100%;
  max-width: none;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.panel .chips button,
.panel .flow button,
.moon-panel .actions button,
.addmark button.add-main,
.wishes button.add-main {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 230, 196, 0.18);
  background: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.08em;
}

.panel .chips button.on,
.panel .flow button.on {
  color: #1a140c;
  background: var(--moon);
  border-color: var(--moon);
  text-shadow: none;
}

.mood-stage {
  width: 100%;
  margin-top: 18px;
  padding: 12px 8px 8px;
  border-radius: 18px;
  border: 1px solid rgba(243, 230, 196, 0.12);
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--emo, rgba(243, 230, 196, 0.16)) 26%, transparent), transparent 68%),
    rgba(255, 255, 255, 0.02);
  transition: background 520ms ease, border-color 520ms ease;
}

.mood-stage.lit {
  border-color: color-mix(in srgb, var(--emo) 42%, transparent);
}

.mood-now {
  display: flex;
  align-items: baseline;
  margin: 0 6px 8px;
}

.mood-now small {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.qq-status {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 12px);
  margin: 0 6px 12px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(243, 230, 196, 0.16);
}

.qq-status.on {
  background: color-mix(in srgb, var(--emo) 20%, rgba(16, 18, 30, 0.72));
  border-color: color-mix(in srgb, var(--emo) 62%, transparent);
}

.qq-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
}

.qq-status.on .qq-orb {
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--emo) 42%, #fff), var(--emo) 68%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--emo) 55%, transparent);
}

.qq-orb .mood-ico {
  width: 18px;
  height: 18px;
  color: #24180f;
  filter: none;
}

.qq-status b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.qq-status.on b { color: var(--emo); }

.panel .emos {
  margin-top: 0;
  gap: 8px 6px;
}

.panel .emos button {
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 2px 7px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--emo) 26%, transparent);
  background:
    radial-gradient(90% 62% at 50% 0%, color-mix(in srgb, var(--emo) 34%, transparent), transparent 72%),
    rgba(255, 255, 255, 0.03);
  color: rgba(244, 239, 230, 0.78);
  letter-spacing: 0.04em;
  font-size: 12px;
}

.mood-ico {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--emo, currentColor);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--emo) 45%, transparent));
}

.mood-ico svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.panel .emos button .mood-ico {
  width: 26px;
  height: 26px;
  opacity: 1;
}

.panel .emos button.on {
  color: var(--emo);
  background:
    radial-gradient(100% 70% at 50% 0%, color-mix(in srgb, var(--emo) 62%, transparent), transparent 74%),
    color-mix(in srgb, var(--emo) 18%, rgba(10, 12, 22, 0.92));
  border-color: color-mix(in srgb, var(--emo) 78%, white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.panel .emos button.on .mood-ico {
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--emo) 80%, transparent));
}

.panel .emos button:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--emo) 75%, white);
  outline-offset: 2px;
}

body:has(section.tonight) main {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: calc(48px + env(safe-area-inset-top));
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

section.tonight {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  align-items: stretch;
}

.tonight-scroll {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-anchor: none;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 8px;
}

.tonight .dock {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  width: min(calc(100% - 28px), 432px);
  margin: 6px auto 0;
  flex: none;
  z-index: 2;
}

.dock {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: calc(70px + env(safe-area-inset-bottom));
  width: min(calc(100% - 36px), 432px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(8, 12, 22, 0.94);
  border: 1px solid rgba(243, 230, 196, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.dock .seal,
.dock .partner {
  margin: 0;
  min-height: 0;
  padding: 6px 4px 4px;
  gap: 6px;
}

.dock .seal span,
.dock .partner span {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-indent: 0;
  color: var(--text);
}

.dock .partner { color: var(--apricot); }

.seal-mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

.seal-mark svg {
  position: absolute;
  inset: 0;
  width: 46px;
  height: 46px;
}

.seal-mark circle {
  fill: none;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-90deg);
}

.seal-mark .track { stroke: rgba(243, 230, 196, 0.22); }

.seal-mark .value {
  stroke: var(--moon);
  stroke-linecap: round;
  stroke-dasharray: 94.2;
  stroke-dashoffset: calc(94.2 * (1 - var(--n) / 4));
  transition: stroke-dashoffset 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: drop-shadow(0 0 4px rgba(243, 230, 196, 0.4));
}

.seal-mark[data-n="4"] .value {
  filter: drop-shadow(0 0 7px rgba(243, 230, 196, 0.95));
}

.partner.ready .star4 { animation: readyPulse 2.4s ease-in-out infinite; }

@keyframes readyPulse {
  50% { transform: scale(1.16); }
}

.moon-page .moon-wrap { margin-top: 8px; }

.days {
  width: min(100%, 22rem);
  margin-top: 16px;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.days::-webkit-scrollbar { height: 0; }

.days button {
  box-sizing: border-box;
  width: 40px;
  height: 48px;
  flex: none;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(243, 230, 196, 0.14);
  background: rgba(255, 255, 255, 0.035);
  background-clip: border-box;
  color: var(--dim);
  box-shadow: none;
}

.days button b {
  font-weight: 400;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.days button.on {
  color: #1a140c;
  background: var(--moon);
  border-color: var(--moon);
  box-shadow: 0 0 16px rgba(243, 230, 196, 0.35);
}

.days button.now { outline: 1px solid rgba(243, 230, 196, 0.85); outline-offset: 2px; }

.pains button {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  background-clip: border-box;
  color: var(--dim);
  font-size: 12px;
}

.pains button.on {
  background: var(--apricot);
  color: #1a140c;
}

.moon-panel .moon-share {
  display: grid;
  grid-template-columns: 1fr;
}

.moon-panel .moon-share button,
.moon-panel .actions button {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(243, 230, 196, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.moon-panel .moon-share button.on,
.moon-panel .actions button {
  color: var(--moon);
  border-color: rgba(243, 230, 196, 0.45);
}

.moon-panel .moon-share button.on {
  background: rgba(243, 230, 196, 0.1);
}

.moon-quiet {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.stars-page .week { margin-top: 10px; }

.daycol {
  grid-template-rows: 14px 18px 12px 8px 16px;
  gap: 3px;
  padding: 8px 0 6px;
  border-radius: 14px;
}

.daycol .wk {
  font-size: 10px;
  letter-spacing: 0.06em;
}

.daycol.today {
  background: rgba(243, 230, 196, 0.08);
  color: var(--moon);
}

.legend { margin-top: 14px; gap: 8px 6px; }

.legend button {
  min-height: 30px;
  flex-direction: row;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.legend button.on {
  border-color: color-mix(in srgb, var(--emo) 70%, transparent);
  background: color-mix(in srgb, var(--emo) 16%, transparent);
}

.nights { margin-top: 16px; gap: 10px; }
.nights::before { display: none; }

.night {
  padding: 12px 12px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(243, 230, 196, 0.1);
}

.line { min-height: 40px; padding: 6px 0; }

section.arrive .night { animation: none; }

.us-page { padding-top: 0; }
.pair-orbit { margin-top: 18px; }

.who.wait {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.entry-row {
  width: min(100%, 22rem);
  margin: 16px auto 0;
  gap: 10px;
}

.entry-row button {
  min-height: 74px;
  padding: 12px 8px;
  border-radius: 16px;
  border: 1px solid rgba(243, 230, 196, 0.16);
  background: rgba(255, 255, 255, 0.035);
  text-indent: 0;
  letter-spacing: 0.1em;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.entry-row button + button { border-left: 1px solid rgba(243, 230, 196, 0.16); }
.entry-row span { font-family: var(--serif); }

.us-block h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--moon);
}

.us-block .clock-set,
.us-block .clocks { width: 100%; }

.us-block .clock-set button,
.us-block .minute-step button {
  min-height: 36px;
  padding: 6px 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.next-mark {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--moon);
}

.next-mark small {
  font-family: var(--sans);
  color: var(--apricot);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.us-block .marklist,
.us-block .addmark,
.us-block .wishes {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.us-block .marks { margin-top: 8px; }

.addmark button.add-main,
.wishes button.add-main {
  justify-self: center;
  width: auto;
  margin-top: 4px;
  color: var(--moon);
}

.heart-date {
  margin: 0 0 8px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.reply-box {
  margin-top: 28px;
  align-items: center;
  text-align: center;
}

.reply-box .sentence,
.reply-box .field-label { text-align: center; align-self: center; }

.plates {
  width: min(100%, 22rem);
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
}

.plate img {
  aspect-ratio: 1;
  border-radius: 14px;
}

.plate strong {
  font-size: 15px;
  letter-spacing: 0.06em;
}

.plate-empty {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(243, 230, 196, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.chat p:not(.game):not(.chat-empty) {
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(8, 12, 22, 0.78);
  border: 1px solid rgba(243, 230, 196, 0.14);
}

.chat p.mine { background: rgba(36, 30, 22, 0.88); }

.play-pad.rps button,
.play-pad.size button {
  border-radius: 12px;
  border: 1px solid rgba(243, 230, 196, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.play-pad button.on {
  background: rgba(243, 230, 196, 0.12);
  border-color: rgba(243, 230, 196, 0.5);
}

.play-pad button.due { box-shadow: inset 0 0 0 1px rgba(231, 184, 154, 0.5); }

nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 0;
  padding: 10px 4px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 11, 22, 0.92) 24%, #070b16 62%);
}

nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-height: 48px;
  padding: 4px 0 12px;
  letter-spacing: 0.14em;
  text-indent: 0;
  font-size: 11px;
}

nav button svg {
  width: 18px;
  height: 18px;
  display: block;
}

nav button svg path { fill: currentColor; }
nav button svg circle { fill: none; stroke: currentColor; stroke-width: 1.4; }

.tab-glide {
  position: absolute;
  left: calc((var(--i) + 0.5) * 25%);
  bottom: calc(6px + env(safe-area-inset-bottom));
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--moon);
  box-shadow: 0 0 10px rgba(243, 230, 196, 0.85);
  transition: left 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.shoot {
  position: absolute;
  width: 84px;
  height: 1px;
  left: 18%;
  top: 22%;
  background: linear-gradient(90deg, transparent, rgba(244, 239, 230, 0.95));
  opacity: 0;
  animation: shoot 12s ease-in-out infinite;
}

@keyframes shoot {
  0%, 76%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(20deg); }
  80% { opacity: 0.95; }
  90% { opacity: 0; transform: translate3d(160px, 64px, 0) rotate(20deg); }
}

section.arrive {
  animation: arriveFade 420ms ease both;
}

section.arrive .dock { animation: none; }

@keyframes dockIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes arriveFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

body:has(section.tonight) .guide {
  bottom: calc(108px + env(safe-area-inset-bottom));
}

.grain { opacity: 0.11; }

.page-head .hour {
  font-size: 44px;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(243, 230, 196, 0.32);
}

.page-head .phase {
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  font-size: 20px;
  text-shadow: 0 0 18px rgba(243, 230, 196, 0.28);
}

.together {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.34em;
  text-indent: 0;
}

.together b {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(243, 230, 196, 0.38);
}

.pair-orbit { position: relative; }

.pair-orbit::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 230, 196, 0.45), transparent);
}

.pair-orbit i {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  justify-self: center;
  background: var(--moon);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 8px rgba(243, 230, 196, 0.9));
}

.panel,
.entry-row button,
.night,
.dock .seal,
.dock .partner {
  background: linear-gradient(180deg, rgba(24, 30, 52, 0.62), rgba(8, 12, 22, 0.46));
  border-color: rgba(243, 230, 196, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.16), 0 16px 36px rgba(0, 0, 0, 0.22);
}

.panel { position: relative; }

.panel::after,
.entry-row button::after,
.night::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 220, 0.72), transparent);
  pointer-events: none;
}

.night { position: relative; }
.entry-row button { position: relative; overflow: hidden; }

.panel:focus-within {
  border-color: rgba(243, 230, 196, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.22),
    0 0 0 1px rgba(243, 230, 196, 0.08),
    0 0 32px rgba(243, 230, 196, 0.1);
}

.panel .sentence { font-size: 24px; }

.panel .chips button.on,
.panel .flow button.on {
  box-shadow: 0 0 16px rgba(243, 230, 196, 0.35);
}

.dock {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  gap: 10px;
}

.dock .seal,
.dock .partner {
  border-radius: 18px;
  padding: 6px 4px 5px;
  background: linear-gradient(180deg, rgba(14, 18, 32, 0.97), rgba(8, 12, 22, 0.96));
}

.dock .seal:not(:disabled) {
  border-color: rgba(243, 230, 196, 0.5);
}

.seal-mark[data-n="4"] {
  filter: drop-shadow(0 0 10px rgba(243, 230, 196, 0.7));
}

.moon-page .moon-wrap { margin-top: 18px; }

.moon-wrap::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(243, 230, 196, 0.14);
  border-top-color: rgba(255, 246, 220, 0.9);
  border-right-color: rgba(231, 184, 154, 0.4);
  animation: orbit 28s linear infinite;
  pointer-events: none;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.days button,
.legend button,
.panel .chips button,
.panel .emos button {
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.night time {
  color: var(--moon);
  font-family: var(--serif);
  letter-spacing: 0.12em;
}

nav button.on svg {
  filter: drop-shadow(0 0 7px rgba(243, 230, 196, 0.85));
}

nav button.on span {
  text-shadow: 0 0 12px rgba(243, 230, 196, 0.35);
}

.dial {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 8px auto 0;
}

.dial svg {
  width: 108px;
  height: 108px;
  display: block;
}

.dial circle {
  fill: none;
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-90deg);
}

.dial .track { stroke: rgba(243, 230, 196, 0.22); }

.dial .value {
  stroke: var(--moon);
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: calc(188.5 * (1 - var(--p, 0)));
  filter: none;
  transition: stroke-dashoffset 700ms ease;
}

.dial .hour {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-indent: 0;
}

.letter {
  align-items: center;
  text-align: center;
}

.letter-line {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.65;
}

.letter-meta {
  margin: 14px 0 0;
  letter-spacing: 0.16em;
  font-size: 13px;
}

.whisper {
  margin: 6px 0 0;
  color: var(--moon);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.letter-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}

.letter-event {
  margin: 12px 0 0;
  max-width: 18em;
  color: rgba(244, 239, 230, 0.78);
  font-size: 15px;
  line-height: 1.75;
}

.fold,
.sheet > .fold {
  align-self: center;
  margin: 4px auto 8px;
  border: 0;
  background: none;
  color: var(--moon);
  letter-spacing: 0.22em;
  font-size: 13px;
}

.jumps {
  position: sticky;
  top: calc(52px + env(safe-area-inset-top));
  z-index: 4;
  width: min(100%, 22rem);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.78);
  border: 1px solid rgba(243, 230, 196, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.1);
  backdrop-filter: blur(14px);
}

.jumps button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  letter-spacing: 0.14em;
  font-size: 13px;
}

.us-block[data-block] { scroll-margin-top: calc(108px + env(safe-area-inset-top)); }

.mask {
  position: fixed;
  z-index: 8;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 6, 14, 0.58);
  backdrop-filter: blur(8px);
}

.drawer {
  width: min(100%, 480px);
  padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #171d32, #090d18);
  border: 1px solid rgba(243, 230, 196, 0.24);
  border-bottom: 0;
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.16), 0 -16px 40px rgba(0, 0, 0, 0.4);
  animation: drawerIn 340ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.drawer .kicker { display: block; text-align: center; margin-bottom: 6px; }

.drawer .addmark,
.drawer .wishes {
  width: 100%;
  margin-top: 8px;
}

@keyframes drawerIn {
  from { transform: translateY(28px); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}

.week-note {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.legend {
  display: flex;
  flex-wrap: nowrap;
  width: min(100%, 22rem);
  margin-top: 12px;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}

.legend::-webkit-scrollbar { height: 0; }

.legend button {
  flex: none;
  flex-direction: row;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 230, 196, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.legend .mood-ico {
  width: 15px;
  height: 15px;
  color: var(--emo);
  opacity: 0.72;
}

.legend button.on .mood-ico {
  opacity: 1;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--emo) 70%, transparent));
}

.jumps button.on {
  background: var(--moon);
  color: #1a140c;
}

.us-block > .add-main {
  align-self: center;
  width: auto;
  margin-top: 14px;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(243, 230, 196, 0.4);
  background: transparent;
  color: var(--moon);
  letter-spacing: 0.16em;
}

.reading {
  width: min(100%, 22rem);
  margin-top: 4vh;
}

.reading .lead { margin-top: 8px; }
.reading .heart-date { margin-bottom: 0; }

.play-pad.rps button,
.play-pad.size button {
  border-radius: 12px;
  min-height: 40px;
}

#toast {
  left: 50%;
  right: auto;
  bottom: calc(96px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(86vw, 320px);
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  letter-spacing: 0.16em;
  text-indent: 0;
  background: rgba(10, 14, 26, 0.94);
  border: 1px solid rgba(243, 230, 196, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

body[data-mood="安静"] { --wash: rgba(183, 199, 234, 0.34); }
body[data-mood="欢喜"] { --wash: rgba(240, 213, 138, 0.38); }
body[data-mood="想念"] { --wash: rgba(240, 184, 147, 0.36); }
body[data-mood="委屈"] { --wash: rgba(227, 168, 196, 0.34); }
body[data-mood="生气"] { --wash: rgba(227, 154, 140, 0.32); }
body[data-mood="疲惫"] { --wash: rgba(185, 174, 208, 0.34); }
body[data-mood="不安"] { --wash: rgba(158, 198, 200, 0.32); }
body[data-mood="感激"] { --wash: rgba(243, 230, 196, 0.36); }
body[data-mood="平静"] { --wash: rgba(201, 221, 212, 0.32); }
body[data-mood="难过"] { --wash: rgba(142, 160, 200, 0.36); }

body[data-mood]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(70% 42% at 50% 8%, var(--wash), transparent 72%);
  transition: background 700ms ease;
}

.prompt {
  width: min(100%, 22rem);
  margin: 8px 0 0;
  padding: 8px 12px 7px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(243, 230, 196, 0.2);
  background: linear-gradient(180deg, rgba(24, 30, 52, 0.45), rgba(8, 12, 22, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.12);
}

.prompt small {
  color: var(--apricot);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.prompt span {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--text);
}

.tonight .panel,
.tonight .prompt,
.tonight .letter {
  background: linear-gradient(180deg, rgba(14, 18, 32, 0.94), rgba(8, 12, 22, 0.92));
}

.tonight .panel .sentence {
  min-height: 2.2em;
  font-size: 22px;
}

.dial,
.dial svg {
  width: 96px;
  height: 96px;
}

.same-mood {
  margin: 8px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--moon);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.same-mood .spark {
  position: static;
  width: 7px;
  height: 7px;
  animation: none;
}

#bj {
  position: fixed;
  z-index: 6;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  width: min(100%, 480px);
  transform: translateX(-50%);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  pointer-events: none;
}

#bj div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

#bj span {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.28em;
}

#bj time {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-shadow: 0 0 14px rgba(243, 230, 196, 0.35);
}

#bj-sec {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from -90deg, rgba(243, 230, 196, 0.95) calc(var(--sec) * 6deg), rgba(243, 230, 196, 0.16) 0);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%);
  mask: radial-gradient(circle, transparent 62%, #000 64%);
}

section { min-width: 0; max-width: 100%; }

.moon-face {
  display: block;
  width: 100%;
  height: 100%;
}

.strip {
  position: relative;
  width: min(100%, 22rem);
  max-width: 100%;
  min-width: 0;
}

.strip.more-left.more-right > [data-strip] {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.strip.more-left:not(.more-right) > [data-strip] {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px);
  mask-image: linear-gradient(90deg, transparent, #000 18px);
}

.strip.more-right:not(.more-left) > [data-strip] {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
}

.days,
.legend,
.months {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
}

.days::-webkit-scrollbar,
.legend::-webkit-scrollbar,
.months::-webkit-scrollbar { height: 0; }

.days.dragging,
.legend.dragging,
.months.dragging { cursor: grabbing; }

.days button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 54px;
}

.days button small {
  height: 11px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--apricot);
}

.days button.now {
  outline: none;
  border-color: rgba(243, 230, 196, 0.92);
}

.legend,
.months {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 0;
  padding: 2px 2px 8px;
}

.months { margin-top: 10px; }

.months button {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 230, 196, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  letter-spacing: 0.08em;
}

.months button small {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0;
}

.months button.on {
  color: #1a140c;
  background: var(--moon);
  border-color: var(--moon);
}

.months button.on small { color: rgba(26, 20, 12, 0.62); }

.stars-page .daycol { grid-template-rows: 14px 18px 12px 8px 28px; }

.daycol em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.25;
}

.archive {
  width: min(100%, 22rem);
  max-width: 100%;
  min-width: 0;
  margin-top: 14px;
}

.star-find { display: block; width: 100%; }

.archive-count {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.archive-count:empty { display: none; }

.stars-page .nights { width: 100%; }

.month-block {
  width: 100%;
  align-items: stretch;
}

.month-block h3 {
  position: sticky;
  top: calc(52px + env(safe-area-inset-top));
  z-index: 2;
  align-self: stretch;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0 8px;
  padding: 8px 10px 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--moon);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(14, 18, 32, 0.96), rgba(8, 12, 22, 0.94) 72%);
}

.month-block h3 small {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.more-nights {
  margin: 8px 0 0;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.panel {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(243, 230, 196, 0.09), transparent 46%),
    linear-gradient(180deg, rgba(28, 34, 58, 0.78), rgba(8, 12, 22, 0.66));
  border-color: rgba(243, 230, 196, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.22),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.moon-panel::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset -4.5px 0 0 0 rgba(243, 230, 196, 0.72);
  pointer-events: none;
}

.moon-panel .moon-share button {
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.14);
}

.moon-panel .moon-share button.on,
.moon-panel .actions button {
  background:
    linear-gradient(180deg, rgba(243, 230, 196, 0.22), rgba(243, 230, 196, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.4),
    0 0 18px rgba(243, 230, 196, 0.14);
}

.ink,
.panel .ink,
.reply-box .ink,
.addmark input.ink,
.wishes input.ink,
.play-pad input.ink,
.album-new input.ink,
.album-name.ink,
.album-text.ink {
  width: 100%;
  border: 1px solid rgba(243, 230, 196, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(118deg, rgba(255, 248, 230, 0.1), transparent 38%),
    radial-gradient(80% 120% at 100% 0%, rgba(176, 198, 226, 0.12), transparent 52%),
    rgba(5, 8, 18, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.2),
    inset 0 -16px 24px rgba(0, 0, 0, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.16);
  padding: 12px 14px;
  caret-color: #f3e6c4;
  color-scheme: dark;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.ink:focus,
.panel .ink:focus,
.addmark input.ink:focus,
.wishes input.ink:focus,
.play-pad input.ink:focus,
.album-new input.ink:focus,
.album-name.ink:focus,
.album-text.ink:focus {
  outline: none;
  border-color: rgba(243, 230, 196, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.34),
    0 0 0 1px rgba(243, 230, 196, 0.12),
    0 0 28px rgba(243, 230, 196, 0.16);
}

.ink:disabled { opacity: 0.6; }

.album-name.ink {
  margin-top: 4vh;
  text-align: center;
  font-size: 26px;
}

.album-text.ink {
  min-height: 8em;
  text-align: left;
}

.back-link {
  align-self: flex-start;
  position: relative;
  z-index: 4;
  min-height: 34px;
  margin: 4px 0 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 230, 196, 0.4);
  background: rgba(8, 12, 22, 0.62);
  color: var(--moon);
  letter-spacing: 0.18em;
}

.entry-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.entry-row button { position: relative; letter-spacing: 0.08em; font-size: 16px; }

.count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e7b89a;
  color: #1a140c;
  font-style: normal;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0;
  text-indent: 0;
}

.play-switch .count-badge {
  position: static;
  display: inline-block;
  margin-left: 6px;
  vertical-align: 1px;
}

.plate-open {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  padding: 0;
  text-align: center;
  color: inherit;
}

.plate-tools {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.plate-tools button {
  background: #070b16;
  border: 0;
  color: var(--dim);
  letter-spacing: 0.14em;
  font-size: 12px;
  min-height: 32px;
  border-radius: 999px;
  padding: 4px 10px;
}

.plate strong {
  text-shadow: 0 1px 8px rgba(7, 11, 22, 0.95), 0 0 2px #070b16;
}

.plate small {
  display: inline-block;
  color: var(--dim);
  background: #070b16;
  border-radius: 999px;
  padding: 3px 8px;
}

.moment-date {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.moment-date input { width: min(100%, 12rem); text-align: center; }

.chat-jump {
  align-self: center;
  margin-top: 4px;
}

.play .note-scroll,
.chat-page .thread {
  align-self: stretch;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 4px 12px;
}

.chat-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: min(100%, 24em);
  margin: 0 auto;
  padding: 4px 2px 0;
}

.note-card,
.bubble {
  width: min(100%, 18rem);
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(243, 230, 196, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.05), transparent 40%),
    rgba(8, 12, 22, 0.55);
}

.note-card.mine,
.bubble.mine { margin-left: auto; }

.note-card p,
.bubble p { margin: 0; line-height: 1.6; }

.note-card small,
.bubble time { color: var(--dim); font-size: 11px; letter-spacing: 0.08em; }

.note-card.waiting { border-color: rgba(231, 184, 154, 0.45); }
.note-card.read small { color: var(--moon); }
.note-card.unread { box-shadow: inset 3px 0 0 #e7b89a; }

.note-tools,
.bubble-tools,
.letter-actions,
.chat-extras {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.note-tools button,
.bubble-tools button,
.letter-actions button,
.chat-extras button,
.quoting button {
  background: none;
  border: 0;
  color: var(--dim);
  letter-spacing: 0.12em;
  font-size: 12px;
  min-height: 28px;
  padding: 0;
}

.bubble-tools button.on { color: var(--moon); }

.bubble b {
  display: block;
  margin-bottom: 4px;
  color: var(--dim);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.bubble q {
  display: block;
  margin: 0 0 6px;
  padding-left: 8px;
  border-left: 2px solid rgba(243, 230, 196, 0.4);
  color: var(--apricot);
  font-size: 12px;
}

.day-chip,
.nudge,
.stamp,
.game {
  margin: 12px 0;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.stamp {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--emo, var(--moon));
}

.play-hint { margin: 8px 0 0; text-align: center; color: var(--dim); font-size: 12px; letter-spacing: 0.12em; }

.letter-time {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.play-pad.say { display: block; }
.play-pad.say textarea { min-height: 4.2em; text-align: left; }

.chat-dock,
.play-dock { align-self: stretch; }

.mood-send {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.mood-send button {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(243, 230, 196, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
}

.quoting {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--apricot);
  font-size: 12px;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.chat-compose button {
  color: var(--moon);
  background: none;
  border: 0;
  letter-spacing: 0.16em;
}

@media (hover: hover) {
  .panel .chips button:hover:not(.on),
  .panel .emos button:hover:not(.on),
  .legend button:hover:not(.on),
  .months button:hover:not(.on),
  .entry-row button:hover,
  nav button:hover { color: var(--text); }
  .days button:hover { border-color: rgba(243, 230, 196, 0.45); }
}

.moon-page .orb {
  background: #10141e;
  box-shadow:
    inset -10px -8px 18px rgba(40, 32, 24, 0.28),
    0 0 36px rgba(232, 220, 196, 0.22),
    0 0 90px rgba(180, 170, 150, 0.12);
}

.album .album-actions {
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 18rem);
  margin-right: auto;
  margin-left: auto;
  gap: 14px;
}

.album .album-actions .file-btn {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(243, 230, 196, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.07), transparent 42%),
    rgba(7, 10, 18, 0.42);
  color: #f6edd8;
  box-shadow:
    inset 0 0 0 5px rgba(7, 10, 18, 0.28),
    inset 0 0 0 6px rgba(243, 230, 196, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.22);
}

.album .album-actions .file-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  letter-spacing: 0.28em;
  font-size: 15px;
}

.album .album-actions .file-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.album .album-actions > button {
  color: rgba(244, 239, 230, 0.42);
}

.stars-page .legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  margin-top: 14px;
  gap: 10px 6px;
  overflow: visible;
  touch-action: manipulation;
  cursor: default;
  padding: 0;
}

.stars-page .strip.more-right > .legend,
.stars-page .strip.more-left > .legend,
.stars-page .strip.more-left.more-right > .legend {
  -webkit-mask-image: none;
  mask-image: none;
}

.stars-page .legend button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 6px 0 4px;
  flex-direction: column;
  gap: 3px;
  border-radius: 14px;
}

.stars-page .legend button span {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.tick {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.tick-phrase {
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.14em;
}

.tick-sec {
  display: inline-block;
  min-width: 1.45em;
  text-align: center;
}

.tick-sec.flip b {
  display: inline-block;
  animation: sec-rise 0.52s cubic-bezier(0.16, 0.84, 0.22, 1);
}

@keyframes sec-rise {
  0% { transform: translateY(0.46em); opacity: 0; filter: blur(3px); }
  42% { filter: blur(0); opacity: 1; }
  100% { transform: none; opacity: 1; filter: none; }
}

.play-pad.size {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.play-pad.size button {
  min-width: 8em;
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--moon);
}

.wish-block {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(243, 230, 196, 0.08);
}

.wish-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
}

.wish-head small { grid-column: 1; }

.wish-head button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.wish-head strong {
  font-weight: 400;
  letter-spacing: 0.04em;
}

.wish-head small,
.wish-opinion,
.wish-note small {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.wish-head button,
.wish-actions button,
.wish-note button,
.wish-compose button {
  background: none;
  border: 0;
  color: var(--dim);
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.wish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.wish-actions button { color: var(--moon); }

.wish-dots {
  display: inline-flex;
  gap: 8px;
}

.wish-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(243, 230, 196, 0.18);
}

.wish-dots i.on {
  background: var(--moon);
  box-shadow: 0 0 8px rgba(243, 230, 196, 0.7);
}

.wish-block.done { color: var(--apricot); }

.wish-notes { display: grid; gap: 10px; }

.wish-note p { margin: 0; }

.wish-note small { margin-left: 8px; }

.wish-photos {
  display: flex;
  gap: 8px;
  overflow: auto;
}

.wish-photos img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.wish-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: end;
}

.wish-compose .file-btn { grid-column: 1 / -1; }

.marklist p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 12px;
  align-items: center;
}

.marklist p span small { display: block; margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 查看更早（聊天历史翻页） */
.chat-earlier {
  display: flex;
  justify-content: center;
  padding: 2px 0 12px;
}

.chat-earlier button {
  appearance: none;
  border: 1px solid rgba(244, 239, 230, 0.16);
  background: rgba(244, 239, 230, 0.05);
  color: rgba(244, 239, 230, 0.78);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.chat-earlier button:active {
  background: rgba(244, 239, 230, 0.12);
}

/* 那年今天（今晚页回顾卡） */
.remember {
  margin: 0 16px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 16px;
  background: rgba(12, 18, 34, 0.35);
}

.remember-title {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(244, 239, 230, 0.55);
}

.remember-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.86);
}

.remember-line b {
  font-weight: 400;
  color: rgba(244, 239, 230, 0.45);
}

.remember-line i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emo, rgba(244, 239, 230, 0.4));
  align-self: center;
}

.remember-line q {
  quotes: none;
  color: rgba(244, 239, 230, 0.92);
}

/* 站内消息 */
.notice-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 12px;
  padding: 6px 14px;
  border: 1px solid rgba(227, 154, 140, 0.4);
  border-radius: 999px;
  background: rgba(227, 154, 140, 0.12);
  color: #f0d5cb;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.notice-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e39a8c;
  animation: pulse 1.6s ease-in-out infinite;
}

.notices-page .notices {
  display: grid;
  gap: 10px;
  padding: 6px 16px 28px;
}

.notice {
  padding: 12px 14px;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 16px;
  background: rgba(12, 18, 34, 0.35);
}

.notice.fresh {
  border-color: rgba(227, 154, 140, 0.35);
}

.notice-kind {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(244, 239, 230, 0.5);
}

.notice-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.9);
}

.notice time {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(244, 239, 230, 0.4);
}

.notices-empty {
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(244, 239, 230, 0.5);
}

/* 异常解读 */
.anomaly-reason {
  margin: 4px 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.92);
}

/* 年度回顾 */
.annual-link {
  appearance: none;
  margin-left: 10px;
  padding: 3px 12px;
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 239, 230, 0.72);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.annual-year {
  margin: 4px 16px 14px;
  font-size: 40px;
  color: #f3e6c4;
  letter-spacing: 0.08em;
}

.annual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 20px;
}

.annual-cell {
  padding: 16px 14px;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 18px;
  background: rgba(12, 18, 34, 0.35);
}

.annual-cell b {
  display: block;
  font-size: 26px;
  font-weight: 400;
  color: #f3e6c4;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.annual-cell span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 230, 0.6);
}

/* 聊天图片消息 */
.image-bubble img {
  display: block;
  max-width: min(220px, 60vw);
  max-height: 260px;
  border-radius: 12px;
  margin: 4px 0 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
