/* ==========================================================================
   心宇 XINYU — a tiny shared universe for two
   ========================================================================== */

@font-face {
  font-family: "XinYu Hand";
  src: url("/assets/zcool-kuaile-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "XinYu Glass";
  src: url("/assets/zcool-qingke-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-round: "YouYuan", "幼圆", "STYuanti-SC-Regular", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-cute: "XinYu Glass", "YouYuan", "幼圆", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-hand: "XinYu Hand", "YouYuan", "幼圆", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-num: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;

  --ink: #493a58;
  --ink-2: #6b597b;
  --muted: #9381a0;
  --pink: #ff8fae;
  --pink-deep: #ec6e94;
  --pink-soft: #ffe5ee;
  --pink-wash: #fff4f7;
  --lilac: #aa96ff;
  --lilac-deep: #8871ed;
  --lilac-soft: #ede8ff;
  --mint: #bfe9dc;
  --gold: #ffd37c;
  --white: #fffdfd;
  --line: rgba(92, 66, 112, 0.11);
  --line-strong: rgba(92, 66, 112, 0.18);
  --shadow-sm: 0 8px 24px rgba(134, 101, 152, 0.1);
  --shadow: 0 24px 70px rgba(134, 101, 152, 0.16);
  --shadow-pink: 0 14px 36px rgba(240, 121, 158, 0.28);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(1000px 700px at 4% -4%, #ffe5ee 0%, rgba(255, 229, 238, 0) 58%),
    radial-gradient(1100px 760px at 102% 2%, #e8e3ff 0%, rgba(232, 227, 255, 0) 62%),
    radial-gradient(900px 700px at 52% 112%, #ddf6ef 0%, rgba(221, 246, 239, 0) 60%),
    linear-gradient(180deg, #fffaf8 0%, #fdf8ff 52%, #f8fcff 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(255, 143, 174, 0.28);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

svg {
  display: block;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

:focus-visible {
  outline: 3px solid rgba(255, 143, 174, 0.48);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Ambient background
   -------------------------------------------------------------------------- */

.world {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.64;
  animation: float-orb 16s ease-in-out infinite;
}

.orb-a {
  width: 480px;
  height: 480px;
  left: -170px;
  top: -120px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 188, 210, 0.7), rgba(255, 188, 210, 0) 68%);
}

.orb-b {
  width: 560px;
  height: 560px;
  right: -220px;
  top: 2%;
  background: radial-gradient(circle at 50% 50%, rgba(196, 183, 255, 0.55), rgba(196, 183, 255, 0) 68%);
  animation-delay: -6s;
  animation-duration: 21s;
}

.orb-c {
  width: 440px;
  height: 440px;
  left: 38%;
  bottom: -240px;
  background: radial-gradient(circle at 50% 50%, rgba(174, 235, 219, 0.5), rgba(174, 235, 219, 0) 68%);
  animation-delay: -11s;
  animation-duration: 19s;
}

.sky-dots {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 201, 220, 0.65) 0 1px, transparent 1.6px);
  background-size: 180px 160px, 260px 230px;
  background-position: 20px 30px, 90px 110px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 72%);
}

.twinkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: calc(15px * var(--s));
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 177, 203, 0.9), 0 0 28px rgba(188, 160, 255, 0.55);
  opacity: 0.8;
  animation: twinkle 4.8s ease-in-out infinite;
  animation-delay: var(--d);
}

.moon-haze {
  position: absolute;
  width: 460px;
  height: 460px;
  right: -40px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 189, 0.32), rgba(255, 236, 189, 0) 68%);
  filter: blur(8px);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Boot
   -------------------------------------------------------------------------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: #fff9fa;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.boot.is-gone {
  opacity: 0;
  visibility: hidden;
}

.boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.boot-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  color: #fff;
  font-size: 28px;
  background: linear-gradient(145deg, var(--pink), var(--lilac));
  box-shadow: 0 14px 34px rgba(239, 121, 157, 0.32);
  animation: boot-breathe 1.9s ease-in-out infinite;
}

.boot-dots {
  display: flex;
  gap: 5px;
}

.boot-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  animation: dot-bounce 1.1s ease-in-out infinite;
}

.boot-dots i:nth-child(2) {
  animation-delay: 0.13s;
  background: #e5a7c4;
}

.boot-dots i:nth-child(3) {
  animation-delay: 0.26s;
  background: var(--lilac);
}

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-deep);
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 143, 174, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(145deg, #ffa8c1 0%, #f17c9f 47%, #ab95ff 100%);
  box-shadow: 0 10px 24px rgba(235, 118, 156, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: rotate(-4deg);
}

.brand-mark .icon {
  filter: drop-shadow(0 2px 3px rgba(120, 60, 90, 0.2));
}

.brand-type {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-cute);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-en {
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.brand-small .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 18px;
}

.brand-small .brand-type {
  font-size: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 15px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #ff9eb9 0%, #f47fa5 55%, #a894ff 100%);
  background-size: 160% 100%;
  box-shadow: 0 14px 30px rgba(238, 119, 157, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 17px 36px rgba(238, 119, 157, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-soft {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(134, 101, 152, 0.09);
}

.btn-soft:hover {
  background: #fff;
  color: var(--pink-deep);
  box-shadow: 0 10px 24px rgba(134, 101, 152, 0.13);
}

.btn-block {
  width: 100%;
  min-height: 52px;
  border-radius: 17px;
  font-size: 15px;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none !important;
  box-shadow: none;
}

.btn-danger {
  color: #fff;
  background: linear-gradient(120deg, #f49ab1, #e0688d);
  box-shadow: 0 12px 26px rgba(218, 94, 132, 0.24);
}

body.modal-open {
  overflow: hidden;
}

.btn.is-busy {
  pointer-events: none;
}

.btn.is-busy span {
  opacity: 0.65;
}

.btn.is-busy::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 16px rgba(134, 101, 152, 0.08);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover {
  color: var(--pink-deep);
  background: #fff;
  transform: translateY(-1px);
}

.avatar {
  position: relative;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(110, 77, 130, 0.16);
  overflow: hidden;
}

.avatar > svg {
  width: 100%;
  height: 100%;
}

.avatar-sm {
  width: 40px;
  height: 40px;
}

.avatar-md {
  width: 42px;
  height: 42px;
}

.avatar-lg {
  width: 82px;
  height: 82px;
  border: 4px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(121, 87, 140, 0.17);
}

/* --------------------------------------------------------------------------
   Landing
   -------------------------------------------------------------------------- */

.landing {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  width: min(100%, 1320px);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(clamp(28px, 4vw, 54px) + env(safe-area-inset-top, 0px)) clamp(18px, 4vw, 54px) clamp(28px, 4vw, 54px);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-copy {
  margin-top: clamp(36px, 7vh, 72px);
  max-width: 640px;
}

.hero h1 {
  position: relative;
  margin-top: 14px;
  font-family: var(--font-hand);
  font-size: clamp(46px, 5.8vw, 76px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.008em;
  color: var(--ink);
  text-wrap: balance;
}

.grad {
  position: relative;
  color: transparent;
  background: linear-gradient(105deg, #f47fa5 4%, #e48dbd 38%, #9d87f6 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 1%;
  bottom: 0.03em;
  height: 0.14em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 168, 193, 0.5), rgba(169, 149, 255, 0.12));
  transform: rotate(-1.4deg);
  z-index: -1;
}

.h1-spark {
  position: absolute;
  top: -0.24em;
  right: 0.02em;
  width: 0.46em;
  height: 0.46em;
  color: #ffbd74;
  filter: drop-shadow(0 4px 10px rgba(255, 182, 95, 0.35));
  animation: twinkle 4s ease-in-out infinite;
}

.lede {
  margin-top: 20px;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.92;
  color: var(--ink-2);
  letter-spacing: 0.015em;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 4px 14px rgba(134, 101, 152, 0.07);
  backdrop-filter: blur(8px);
}

.feature-pill .icon {
  width: 13px;
  height: 13px;
  color: var(--pink-deep);
}

.scene-wrap {
  position: relative;
  width: min(100%, 620px);
  margin-top: -4px;
  padding-left: 4px;
}

.hero-scene {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 44px rgba(143, 108, 161, 0.13));
}

.scene-caption {
  display: block;
  margin-top: -18px;
  padding-left: 14%;
  color: var(--muted);
  font-family: var(--font-round);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hero-foot span {
  display: block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 129, 160, 0.5));
}

.hero-foot span:last-child {
  background: linear-gradient(90deg, rgba(147, 129, 160, 0.5), transparent);
}

/* Auth --------------------------------------------------------------------- */

.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 460px;
}

.auth-card {
  position: relative;
  width: 100%;
  padding: 34px 32px 26px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  background:
    radial-gradient(200px 160px at 100% 0%, rgba(236, 230, 255, 0.76), transparent 70%),
    radial-gradient(220px 180px at 0% 100%, rgba(255, 232, 240, 0.8), transparent 72%),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 32px 80px rgba(134, 101, 152, 0.17), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(1.2);
}

.washi {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 104px;
  height: 25px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.28) 0 7px, transparent 7px 14px),
    linear-gradient(100deg, #ffb7cc, #e6b8e8);
  opacity: 0.82;
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 3px 8px rgba(173, 117, 148, 0.12);
}

.auth-head {
  text-align: center;
}

.auth-head h2 {
  margin-top: 10px;
  font-family: var(--font-cute);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.auth-head > p:last-child {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 24px 0 21px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(241, 234, 244, 0.75);
}

.tab {
  position: relative;
  z-index: 1;
  height: 38px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.tab.is-active {
  color: var(--ink);
}

.tab-glider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(121, 87, 140, 0.12);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.tabs.is-join .tab-glider {
  transform: translateX(100%);
}

.panel {
  animation: panel-in 0.35s ease both;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

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

.field + .field {
  margin-top: 0;
}

#join-form .field + .field,
#join-form .field + .field {
  margin-top: 13px;
}

.field-label {
  padding-left: 3px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field-label em {
  margin-left: 3px;
  color: var(--muted);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 400;
}

input[type="text"],
input[type="password"],
input[type="date"],
.password-field input {
  width: 100%;
  height: 48px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(102, 75, 123, 0.13);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(102, 75, 123, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder {
  color: #b4a5bd;
  font-weight: 400;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
.password-field input:focus {
  border-color: rgba(241, 124, 160, 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 143, 174, 0.12);
}

input[type="date"] {
  padding-right: 10px;
  color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.48;
  cursor: pointer;
}

.code-input {
  font-family: var(--font-num);
  font-size: 17px !important;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 44px;
}

.peek {
  position: absolute;
  right: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--muted);
  transform: translateY(-50%);
  transition: color 0.15s ease, background 0.15s ease;
}

.peek:hover {
  color: var(--pink-deep);
  background: rgba(255, 232, 239, 0.7);
}

.field-note {
  margin: 11px 0 0 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.form-error {
  margin: 11px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(235, 111, 142, 0.18);
  border-radius: 11px;
  color: #c44c70;
  font-size: 11.5px;
  line-height: 1.5;
  background: rgba(255, 230, 237, 0.72);
}

#create-submit,
#join-submit {
  margin-top: 18px;
}

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

.role-option {
  position: relative;
  cursor: pointer;
}

.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(102, 75, 123, 0.12);
  border-radius: 13px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.18s ease;
}

.role-option input:checked + span {
  border-color: rgba(241, 124, 160, 0.38);
  color: var(--pink-deep);
  background: rgba(255, 235, 242, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 143, 174, 0.09);
}

.role-option input:focus-visible + span {
  outline: 3px solid rgba(255, 143, 174, 0.4);
  outline-offset: 2px;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  color: #a899b1;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.privacy-note .icon {
  width: 12px;
  height: 12px;
  color: #b9a8c4;
}

.auth-foot {
  margin-top: 18px;
  color: rgba(120, 99, 136, 0.62);
  font-family: var(--font-num);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 249, 251, 0.7);
  backdrop-filter: blur(18px) saturate(1.2);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 1240px);
  height: 76px;
  margin: 0 auto;
  padding: 0 28px;
}

.topbar .brand {
  margin-right: 2px;
}

.room-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px dashed rgba(123, 95, 143, 0.22);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.48);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.room-pill:hover {
  border-color: rgba(241, 124, 160, 0.4);
  background: #fff;
}

.room-pill .icon {
  width: 14px;
  height: 14px;
  color: var(--pink-deep);
}

.room-pill strong {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.room-pill-label {
  color: var(--muted);
}

.room-copy-icon {
  width: 12px !important;
  height: 12px !important;
  color: #b3a3bd !important;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.btn-invite {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 12px;
}

.my-avatar {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.72), 0 5px 14px rgba(110, 77, 130, 0.15);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 30px 28px 58px;
}

.sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Couple card -------------------------------------------------------------- */

.couple-card {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  background:
    radial-gradient(200px 170px at 4% 0%, rgba(255, 217, 230, 0.75), transparent 70%),
    radial-gradient(230px 200px at 100% 92%, rgba(217, 208, 255, 0.7), transparent 70%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 55px rgba(134, 101, 152, 0.13), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px);
}

.couple-card::before,
.couple-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.couple-card::before {
  width: 120px;
  height: 120px;
  right: -44px;
  top: -38px;
  border: 1px dashed rgba(169, 149, 255, 0.32);
}

.couple-card::after {
  width: 76px;
  height: 76px;
  left: -32px;
  bottom: 44px;
  border: 1px dashed rgba(255, 143, 174, 0.3);
}

.couple-spark {
  position: absolute;
  color: var(--pink);
  opacity: 0.62;
  font-size: 10px;
  animation: twinkle 4.5s ease-in-out infinite;
}

.couple-spark.s1 {
  top: 26px;
  left: 30px;
}

.couple-spark.s2 {
  top: 54px;
  right: 34px;
  color: var(--lilac);
  animation-delay: 1.3s;
}

.couple-spark.s3 {
  bottom: 132px;
  right: 27px;
  color: #ffb3c8;
  font-size: 13px;
  animation-delay: 0.6s;
}

.avatar-pair {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}

.avatar-pair .avatar:first-child {
  transform: rotate(-4deg) translateX(5px);
  z-index: 1;
}

.avatar-pair .avatar:last-child {
  transform: rotate(4deg) translateX(-5px);
  margin-left: -13px;
}

.pair-heart {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 54%;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--pink-deep);
  font-size: 13px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(185, 103, 133, 0.22);
  transform: translate(-50%, -50%);
}

.couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.couple-names span {
  overflow: hidden;
  max-width: 40%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.couple-names em {
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
}

.since {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.02em;
}

.days-block {
  margin: 18px 0 14px;
  padding: 14px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 21px;
  text-align: center;
  background:
    radial-gradient(120px 80px at 50% 0%, rgba(255, 255, 255, 0.98), transparent 80%),
    rgba(255, 255, 255, 0.46);
}

.days-caption {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.days-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-top: 1px;
  font-family: var(--font-num);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.days-number small {
  color: var(--pink-deep);
  font-family: var(--font-round);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.days-sub {
  color: var(--muted);
  font-size: 9.5px;
}

.meet-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -3px 0 13px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  color: var(--ink-2);
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.5);
}

.meet-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: var(--pink-deep);
  background: rgba(255, 226, 236, 0.86);
}

.meet-icon .icon {
  width: 12px;
  height: 12px;
}

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

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  flex: none;
}

.stat-icon .icon {
  width: 13px;
  height: 13px;
}

.stat-icon.pink {
  color: #e87597;
  background: rgba(255, 224, 234, 0.9);
}

.stat-icon.lilac {
  color: #8a74e9;
  background: rgba(235, 229, 255, 0.92);
}

.stat > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.stat strong {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.edit-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border-top: 1px dashed rgba(120, 95, 140, 0.14);
  color: var(--muted);
  font-size: 10px;
  transition: color 0.16s ease;
}

.edit-dates:hover {
  color: var(--pink-deep);
}

.edit-dates .icon {
  width: 11px;
  height: 11px;
}

/* Invite card -------------------------------------------------------------- */

.invite-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 38px rgba(134, 101, 152, 0.09), inset 0 1px 0 #fff;
  backdrop-filter: blur(14px);
}

.invite-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invite-stamp {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #ffb2c8, #bb9ff1);
  box-shadow: 0 7px 16px rgba(212, 137, 177, 0.22);
  transform: rotate(-3deg);
}

.invite-stamp .icon {
  width: 17px;
  height: 17px;
}

.invite-card .eyebrow {
  font-size: 7.5px;
  letter-spacing: 0.17em;
  color: #b58aa7;
}

.invite-card h3 {
  font-family: var(--font-cute);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.invite-copy {
  margin-top: 11px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.72;
}

.code-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 10px;
  padding: 9px 9px 9px 13px;
  border: 1px dashed rgba(123, 95, 143, 0.25);
  border-radius: 13px;
  background: rgba(255, 250, 252, 0.7);
}

.code-line strong {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.code-copy {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  box-shadow: none;
}

.code-copy .icon {
  width: 12px;
  height: 12px;
}

.invite-card .btn {
  min-height: 36px;
  border-radius: 12px;
  font-size: 10.5px;
}

.sidebar-quote {
  padding: 0 14px;
  color: rgba(129, 108, 145, 0.65);
  font-family: var(--font-round);
  font-size: 10.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Feed --------------------------------------------------------------------- */

.feed {
  min-width: 0;
}

.mobile-couple {
  display: none;
}

.feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 2px 4px;
}

.feed-head h1 {
  margin-top: 5px;
  font-family: var(--font-cute);
  font-size: 37px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.feed-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.feed-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 18px rgba(134, 101, 152, 0.07);
}

.feed-count strong {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--pink-deep);
  font-variant-numeric: tabular-nums;
}

.feed-count span {
  color: var(--muted);
  font-size: 9.5px;
}

/* Composer ----------------------------------------------------------------- */

.composer {
  position: relative;
  padding: 16px 20px 13px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  background:
    radial-gradient(220px 150px at 100% 0%, rgba(238, 232, 255, 0.65), transparent 70%),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(134, 101, 152, 0.11), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.composer:focus-within {
  border-color: rgba(255, 174, 197, 0.62);
  box-shadow: 0 20px 48px rgba(216, 137, 164, 0.15), 0 0 0 4px rgba(255, 143, 174, 0.06), inset 0 1px 0 #fff;
}

.composer-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.composer-intro {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.composer-intro strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.composer-intro span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-seal {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  color: rgba(233, 111, 147, 0.7);
  font-size: 14px;
  background: rgba(255, 232, 239, 0.75);
  border: 1px dashed rgba(238, 128, 160, 0.36);
  transform: rotate(7deg);
}

.mood-row {
  display: flex;
  gap: 6px;
  margin: 10px 0 2px;
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mood-row::-webkit-scrollbar {
  display: none;
}

.mood-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgba(106, 80, 126, 0.1);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.56);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mood-chip:hover {
  transform: translateY(-1px);
  background: #fff;
  color: var(--ink-2);
}

.mood-chip .mood-emoji {
  font-size: 12px;
  line-height: 1;
}

.mood-chip.is-active {
  color: #b44d70;
  border-color: rgba(244, 138, 169, 0.42);
  background: rgba(255, 228, 237, 0.92);
  box-shadow: 0 3px 10px rgba(236, 126, 158, 0.14);
}

.textarea-wrap {
  position: relative;
  margin-top: 5px;
}

#message-input {
  display: block;
  width: 100%;
  min-height: 70px;
  max-height: 230px;
  padding: 7px 30px 7px 6px;
  border: 0;
  outline: 0;
  resize: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.85;
  background: transparent;
}

#message-input::placeholder {
  color: #b6a6bf;
}

.textarea-spark {
  position: absolute;
  right: 8px;
  bottom: 10px;
  color: rgba(255, 174, 197, 0.6);
  font-size: 12px;
  pointer-events: none;
}

.composer-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed rgba(105, 78, 125, 0.1);
}

.send-hint {
  color: #b3a4bc;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.char-count {
  margin-left: auto;
  color: #b3a4bc;
  font-family: var(--font-num);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease;
}

.char-count.is-near {
  color: var(--pink-deep);
}

.btn-send {
  gap: 7px;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 13px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(120deg, #ffa1ba, #ef7da2 58%, #a18cf9);
  box-shadow: 0 9px 22px rgba(239, 119, 156, 0.28);
}

.btn-send .icon {
  width: 14px;
  height: 14px;
}

/* Toolbar ------------------------------------------------------------------ */

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 2px 2px;
}

.filter-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.76);
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.filter span {
  font-family: var(--font-num);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

#filter-partner-name {
  display: inline-block;
  overflow: hidden;
  max-width: 4.5em;
  font-family: var(--font-sans);
  font-size: 10.5px;
  text-overflow: ellipsis;
  vertical-align: -1px;
  white-space: nowrap;
}

.filter:hover {
  color: var(--ink-2);
}

.filter.is-active {
  color: var(--pink-deep);
  background: #fff;
  box-shadow: 0 4px 12px rgba(134, 101, 152, 0.1);
}

.sync-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b1a2ba;
  font-size: 9.5px;
  white-space: nowrap;
}

.sync-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9bd5c1;
  box-shadow: 0 0 0 3px rgba(155, 213, 193, 0.16);
}

.sync-note.is-syncing .sync-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 211, 124, 0.16);
  animation: pulse 1s ease-in-out infinite;
}

.sync-note.is-error {
  color: #c56c86;
}

.sync-note.is-error .sync-dot {
  background: #ef8ba7;
  box-shadow: 0 0 0 3px rgba(239, 139, 167, 0.16);
}

.sync-note.is-live {
  color: #7fa99c;
}

.sync-note.is-live .sync-dot {
  background: #7dcbb3;
  box-shadow: 0 0 0 3px rgba(125, 203, 179, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

/* Timeline ----------------------------------------------------------------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 18px;
}

.date-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.date-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  color: var(--muted);
}

.date-badge {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 10px;
  color: #e47b9c;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(134, 101, 152, 0.07);
}

.date-badge .icon {
  width: 13px;
  height: 13px;
}

.date-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.date-title h3 {
  font-family: var(--font-cute);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

.date-title span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.date-rule {
  height: 1px;
  flex: 1;
  min-width: 16px;
  background: linear-gradient(90deg, rgba(139, 112, 158, 0.13), rgba(139, 112, 158, 0));
}

.date-count {
  color: #b2a3bb;
  font-size: 8.5px;
  white-space: nowrap;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.message.is-new {
  animation: message-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

.message.is-mine {
  flex-direction: row-reverse;
}

.message .avatar {
  margin-top: 20px;
}

.message-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(78%, 660px);
  min-width: 0;
}

.message.is-mine .message-body {
  align-items: flex-end;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 17px;
  padding: 0 5px;
  line-height: 1.2;
}

.message-meta strong {
  overflow: hidden;
  max-width: 120px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #a796b1;
  font-size: 9.5px;
  white-space: nowrap;
}

.message-time .icon {
  width: 10px;
  height: 10px;
}

.mood-stamp {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #b0607d;
  font-size: 8.5px;
  line-height: 1.6;
  background: rgba(255, 231, 239, 0.82);
  border: 1px solid rgba(255, 192, 211, 0.38);
}

.message-bubble {
  position: relative;
  min-width: 96px;
  padding: 11px 14px 8px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 5px 19px 19px 19px;
  background:
    radial-gradient(150px 100px at 100% 0%, rgba(247, 243, 255, 0.8), transparent 70%),
    rgba(255, 255, 255, 0.77);
  box-shadow: 0 8px 22px rgba(134, 101, 152, 0.08), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
}

.message.is-mine .message-bubble {
  border-color: rgba(255, 213, 226, 0.9);
  border-radius: 19px 5px 19px 19px;
  background:
    radial-gradient(170px 110px at 0% 0%, rgba(255, 255, 255, 0.72), transparent 70%),
    linear-gradient(145deg, rgba(255, 245, 249, 0.94), rgba(255, 227, 238, 0.9));
}

.message-text {
  color: #4b3a59;
  font-size: 14.2px;
  line-height: 1.82;
  letter-spacing: 0.012em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-foot {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(110, 82, 130, 0.06);
}

.message.is-mine .message-foot {
  justify-content: flex-end;
}

.heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 4px;
  border-radius: 999px;
  color: #b6a5c0;
  font-family: var(--font-num);
  font-size: 9px;
  line-height: 1.5;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.heart-btn .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.heart-btn:hover {
  color: var(--pink-deep);
  background: rgba(255, 226, 236, 0.65);
}

.heart-btn.is-loved {
  color: #e85f89;
  background: rgba(255, 224, 234, 0.6);
}

.heart-btn.is-loved .icon {
  animation: heart-pop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.heart-btn:active .icon {
  transform: scale(0.85);
}

.read-status {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #9a889f;
  font-size: 8.5px;
  line-height: 1.55;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.13);
  transition: color 0.18s ease, background 0.18s ease;
}

.read-status .icon {
  width: 9px;
  height: 9px;
}

.read-status.is-read {
  color: #4f8f7e;
  background: rgba(190, 235, 219, 0.34);
  border-color: rgba(255, 255, 255, 0.42);
}

.message.is-mine .read-status.is-read {
  color: #aa5876;
  background: rgba(255, 217, 231, 0.38);
}

.read-status.is-unread {
  color: #a08ba4;
  background: rgba(255, 255, 255, 0.1);
}

.message-delete {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: auto;
  border-radius: 7px;
  color: #c2b2cb;
  opacity: 0;
  transition: opacity 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.message.is-mine .message-delete {
  margin-left: 0;
  margin-right: auto;
}

.message-delete .icon {
  width: 11px;
  height: 11px;
}

.message:hover .message-delete,
.message:focus-within .message-delete,
.message-delete:focus-visible {
  opacity: 1;
}

.message-delete:hover {
  color: #d15a7c;
  background: rgba(255, 225, 234, 0.7);
}

/* Empty / loading ---------------------------------------------------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 24px 38px;
  border: 1px dashed rgba(136, 108, 157, 0.2);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.empty-art {
  width: min(190px, 58%);
  height: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 12px 18px rgba(143, 108, 161, 0.12));
}

.empty-state h3 {
  font-family: var(--font-cute);
  font-size: 18px;
  font-weight: 400;
}

.empty-state p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.filter-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 20px;
  border: 1px dashed rgba(136, 108, 157, 0.18);
  border-radius: 22px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.32);
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.35s infinite;
}

.skeleton-card {
  display: flex;
  gap: 10px;
  padding: 13px;
}

.skeleton-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.skeleton-lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.skeleton-line {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.skeleton-line:nth-child(2) {
  width: 76%;
}

.skeleton-line:nth-child(3) {
  width: 44%;
}

.app-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px calc(26px + env(safe-area-inset-bottom, 0px));
  color: rgba(129, 108, 145, 0.55);
  font-family: var(--font-num);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.footer-heart {
  color: rgba(236, 110, 148, 0.6);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 22px calc(22px + env(safe-area-inset-bottom, 0px));
  background: rgba(68, 43, 84, 0.3);
  backdrop-filter: blur(9px);
  animation: fade-in 0.22s ease both;
}

.modal-card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 44px);
  max-height: calc(100dvh - 44px);
  padding: 30px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 29px;
  background:
    radial-gradient(220px 160px at 100% 0%, rgba(235, 229, 255, 0.72), transparent 70%),
    radial-gradient(200px 150px at 0% 100%, rgba(255, 232, 240, 0.7), transparent 70%),
    #fffdfd;
  box-shadow: 0 40px 100px rgba(74, 47, 93, 0.26);
  animation: modal-pop 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.modal-close:hover {
  color: var(--ink);
  background: #fff;
}

.modal-close .icon {
  width: 15px;
  height: 15px;
  margin: auto;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 21px;
  color: #fff;
  font-size: 26px;
  background: linear-gradient(145deg, #ffa5bd, #ef7aa0 55%, #ac96ff);
  box-shadow: 0 12px 26px rgba(238, 119, 157, 0.28);
  transform: rotate(-4deg);
}

.modal-icon.lilac {
  background: linear-gradient(145deg, #c2b4ff, #927bf0);
  box-shadow: 0 12px 26px rgba(145, 123, 240, 0.26);
}

.modal-head {
  text-align: center;
}

.modal-head .eyebrow {
  justify-content: center;
}

.modal-head h2 {
  margin-top: 7px;
  font-family: var(--font-cute);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
}

.modal-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.invite-code-big {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
  padding: 15px 16px;
  border: 1px dashed rgba(123, 95, 143, 0.28);
  border-radius: 17px;
  background: rgba(255, 249, 251, 0.82);
}

.invite-code-big > span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.invite-code-big strong {
  display: block;
  margin-top: 1px;
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.19em;
  color: var(--ink);
}

.copy-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--pink-deep);
  font-size: 9.5px;
  font-weight: 600;
  background: rgba(255, 229, 238, 0.72);
  white-space: nowrap;
}

.copy-mini:hover {
  background: rgba(255, 219, 231, 0.92);
}

.copy-mini .icon {
  width: 11px;
  height: 11px;
}

.invite-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(245, 239, 249, 0.72);
}

.invite-link-row .icon {
  width: 13px;
  height: 13px;
  color: var(--lilac-deep);
  flex: none;
}

.invite-link-row span {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.modal-actions .btn {
  flex: 1;
}

.modal-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 12px;
  color: #a696af;
  font-size: 9px;
  line-height: 1.65;
}

.modal-note .icon {
  width: 11px;
  height: 11px;
  margin-top: 2px;
  flex: none;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 19px;
}

.modal-form .field-grid {
  gap: 11px;
}

.modal-form .field + .field {
  margin-top: 0;
}

.modal-settings-divider {
  height: 1px;
  margin: 5px 0;
  background: linear-gradient(90deg, transparent, rgba(107, 80, 127, 0.13), transparent);
}

.danger-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  color: #b36b82;
  font-size: 9.5px;
  border-radius: 10px;
}

.danger-link:hover {
  color: #c34f73;
  background: rgba(255, 230, 237, 0.62);
}

.danger-link .icon {
  width: 11px;
  height: 11px;
}

.modal-illustration {
  display: block;
  width: 156px;
  height: auto;
  margin: 0 auto 4px;
}

.confirm-copy {
  margin: 17px 0 4px;
  padding: 12px 14px;
  border-radius: 13px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.7;
  background: rgba(247, 241, 250, 0.72);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast-root {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: min(90vw, 420px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  background: rgba(68, 48, 82, 0.9);
  box-shadow: 0 12px 30px rgba(54, 34, 68, 0.24);
  backdrop-filter: blur(12px);
  animation: toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.toast.is-leaving {
  animation: toast-out 0.24s ease both;
}

.toast .icon {
  width: 13px;
  height: 13px;
  color: #ffc2d4;
}

.toast.error .icon {
  color: #ffb4a8;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes float-orb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -22px, 0) scale(1.05); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.28; transform: scale(0.82) rotate(0deg); }
  50% { opacity: 0.92; transform: scale(1.1) rotate(8deg); }
}

@keyframes boot-breathe {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes message-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heart-pop {
  0% { transform: scale(0.55); }
  55% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(0.97); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .landing {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(43px, 5.4vw, 64px);
  }

  .app-shell {
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 20px;
  }

  .couple-card {
    padding: 22px 18px 18px;
  }

  .avatar-lg {
    width: 72px;
    height: 72px;
  }

  .couple-names {
    font-size: 19px;
  }

  .days-number {
    font-size: 41px;
  }
}

@media (max-width: 920px) {
  .landing {
    display: block;
    width: min(100%, 660px);
    min-height: 100svh;
    padding: calc(26px + env(safe-area-inset-top, 0px)) 22px 40px;
  }

  .hero {
    align-items: center;
    text-align: center;
  }

  .brand {
    align-self: flex-start;
  }

  .hero-copy {
    margin-top: 42px;
  }

  .hero h1 {
    font-size: clamp(42px, 9vw, 58px);
  }

  .lede {
    font-size: 14px;
  }

  .feature-row {
    justify-content: center;
  }

  .scene-wrap {
    width: min(100%, 480px);
    margin-top: 14px;
  }

  .scene-caption {
    margin-top: -12px;
    padding-left: 0;
  }

  .hero-foot {
    display: none;
  }

  .auth-wrap {
    margin-top: 34px;
  }

  .auth-card {
    padding: 32px 28px 24px;
  }

  .topbar-inner {
    padding: 0 20px;
  }

  .room-pill-label {
    display: none;
  }

  .app-shell {
    display: block;
    width: min(100%, 760px);
    padding: 18px 20px 54px;
  }

  .sidebar {
    display: none;
  }

  .mobile-couple {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 8px 22px rgba(134, 101, 152, 0.08);
    backdrop-filter: blur(12px);
  }

  .mobile-avatars {
    display: flex;
    flex: none;
  }

  .mobile-avatars .avatar {
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(110, 77, 130, 0.14);
  }

  .mobile-avatars .avatar + .avatar {
    margin-left: -9px;
  }

  .mobile-couple-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
  }

  .mobile-couple-copy strong {
    overflow: hidden;
    font-family: var(--font-round);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-couple-copy span {
    overflow: hidden;
    color: var(--muted);
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-invite {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    border-radius: 10px;
    color: var(--pink-deep);
    background: rgba(255, 232, 239, 0.8);
  }

  .mobile-invite .icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 640px) {
  .landing {
    padding: calc(20px + env(safe-area-inset-top, 0px)) 15px 32px;
  }

  .brand-mark {
    width: 41px;
    height: 41px;
    border-radius: 14px;
    font-size: 20px;
  }

  .brand-type {
    font-size: 23px;
  }

  .brand-en {
    font-size: 8px;
  }

  .hero-copy {
    margin-top: 34px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 50px);
    line-height: 1.14;
  }

  .lede {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.85;
  }

  .feature-row {
    gap: 5px;
    margin-top: 21px;
  }

  .feature-pill {
    padding: 6px 9px;
    font-size: 9px;
  }

  .feature-pill .icon {
    width: 11px;
    height: 11px;
  }

  .scene-wrap {
    margin-top: 8px;
    width: 100%;
  }

  .scene-caption {
    margin-top: -8px;
    font-size: 10px;
  }

  .auth-wrap {
    margin-top: 26px;
  }

  .auth-card {
    padding: 29px 19px 21px;
    border-radius: 27px;
  }

  .auth-head h2 {
    font-size: 24px;
  }

  .tabs {
    margin: 20px 0 17px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .field-label {
    font-size: 10.5px;
  }

  input[type="text"],
  input[type="password"],
  input[type="date"],
  .password-field input {
    height: 46px;
    font-size: 12.5px;
  }

  .privacy-note {
    margin-top: 15px;
  }

  .topbar-inner {
    height: 64px;
    gap: 10px;
    padding: 0 14px;
  }

  .brand-small .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 11px;
    font-size: 17px;
  }

  .brand-small .brand-type {
    font-size: 19px;
  }

  .room-pill {
    gap: 5px;
    height: 34px;
    padding: 0 8px;
  }

  .room-pill strong {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .room-pill .icon:first-child {
    display: none;
  }

  .room-copy-icon {
    display: none;
  }

  .btn-invite {
    width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 12px;
  }

  .btn-invite span {
    display: none;
  }

  .btn-invite .icon {
    width: 15px;
    height: 15px;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .top-actions .avatar-sm {
    width: 35px;
    height: 35px;
  }

  .app-shell {
    padding: 14px 13px 44px;
  }

  .mobile-couple {
    margin-bottom: 14px;
  }

  .feed-head {
    margin-bottom: 13px;
    padding: 0 2px;
  }

  .feed-head h1 {
    font-size: 29px;
  }

  .feed-sub {
    font-size: 10px;
  }

  .feed-count {
    padding: 7px 10px;
  }

  .feed-count strong {
    font-size: 17px;
  }

  .feed-count span {
    font-size: 8px;
  }

  .composer {
    padding: 12px 13px 10px;
    border-radius: 21px;
  }

  .composer-intro span {
    max-width: 180px;
  }

  .composer-seal {
    display: none;
  }

  .mood-row {
    margin-top: 9px;
  }

  .mood-chip {
    padding: 5px 8px;
    font-size: 9px;
  }

  #message-input {
    min-height: 68px;
    padding-left: 2px;
    font-size: 13.5px;
  }

  .composer-bottom {
    gap: 6px;
  }

  .send-hint {
    display: none;
  }

  .char-count {
    margin-left: 0;
  }

  .btn-send {
    margin-left: auto;
    min-height: 34px;
    padding: 7px 13px;
    font-size: 11px;
  }

  .feed-toolbar {
    margin-top: 14px;
  }

  .filter {
    padding: 6px 9px;
    font-size: 9.5px;
  }

  .sync-note {
    display: none;
  }

  .timeline {
    gap: 20px;
    margin-top: 14px;
  }

  .date-head {
    gap: 7px;
    padding: 0 2px;
  }

  .date-badge {
    width: 26px;
    height: 26px;
    border-radius: 9px;
  }

  .date-title h3 {
    font-size: 13px;
  }

  .date-title span {
    font-size: 8px;
  }

  .date-count {
    display: none;
  }

  .message {
    gap: 7px;
  }

  .message .avatar {
    width: 34px;
    height: 34px;
    margin-top: 18px;
  }

  .message-body {
    max-width: calc(100% - 41px);
  }

  .message-meta {
    gap: 5px;
    padding: 0 3px;
  }

  .message-meta strong {
    max-width: 86px;
    font-size: 9.5px;
  }

  .message-time {
    font-size: 8px;
  }

  .mood-stamp {
    font-size: 7px;
  }

  .message-bubble {
    padding: 10px 12px 7px;
  }

  .message-text {
    font-size: 13.6px;
    line-height: 1.78;
  }

  .message-delete {
    opacity: 0.5;
  }

  .empty-state {
    padding: 22px 16px 30px;
  }

  .empty-art {
    width: min(160px, 62%);
  }

  .app-footer {
    font-size: 7px;
    padding-bottom: 20px;
  }

  .modal-root {
    padding: 13px;
  }

  .modal-card {
    padding: 27px 19px 22px;
    border-radius: 25px;
    max-height: calc(100dvh - 26px);
  }

  .modal-head h2 {
    font-size: 21px;
  }

  .invite-code-big {
    padding: 13px;
  }

  .invite-code-big strong {
    font-size: 21px;
  }

  .toast-root {
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .toast {
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .feature-pill:nth-child(4) {
    display: none;
  }

  .room-pill strong {
    letter-spacing: 0.04em;
  }

  .feed-count {
    display: none;
  }
}

/* ==========================================================================
   XINYU — iOS 27 inspired liquid glass
   ========================================================================== */

:root {
  --glass-blur: blur(30px) saturate(1.75);
  --glass-border: rgba(255, 255, 255, 0.62);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.98), inset 0 -1px 0 rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 24px 70px rgba(70, 44, 100, 0.17), 0 3px 12px rgba(70, 44, 100, 0.06);
  --glass-bg:
    radial-gradient(120% 86% at 8% 0%, rgba(255, 255, 255, 0.74), transparent 54%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2) 48%, rgba(255, 255, 255, 0.44));
  --ink: #352b43;
  --ink-2: #5e5070;
  --muted: #806e8f;
}

body {
  background:
    radial-gradient(1100px 860px at 4% -10%, #ffc0d9 0%, rgba(255, 192, 217, 0) 56%),
    radial-gradient(1000px 800px at 102% 0%, #c8bcff 0%, rgba(200, 188, 255, 0) 58%),
    radial-gradient(780px 620px at 62% 22%, rgba(255, 191, 222, 0.46), transparent 64%),
    radial-gradient(720px 580px at 82% 74%, rgba(169, 177, 255, 0.36), transparent 66%),
    radial-gradient(1000px 780px at 50% 112%, #a9f0de 0%, rgba(169, 240, 222, 0) 60%),
    linear-gradient(145deg, #fff5fa 0%, #f2efff 48%, #ecfffa 100%);
}

.world .orb {
  filter: blur(52px);
  opacity: 0.78;
  animation-duration: 24s;
}

.orb-a {
  background: radial-gradient(circle at 40% 40%, rgba(255, 137, 181, 0.72), rgba(255, 137, 181, 0) 68%);
}

.orb-b {
  background: radial-gradient(circle at 50% 50%, rgba(150, 128, 255, 0.62), rgba(150, 128, 255, 0) 68%);
}

.orb-c {
  background: radial-gradient(circle at 50% 50%, rgba(116, 231, 203, 0.6), rgba(116, 231, 203, 0) 68%);
}

.world::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 135vmax;
  height: 135vmax;
  background: conic-gradient(
    from 180deg,
    rgba(255, 159, 194, 0.24),
    rgba(166, 148, 255, 0.18),
    rgba(129, 235, 210, 0.2),
    rgba(255, 219, 147, 0.16),
    rgba(255, 159, 194, 0.24)
  );
  filter: blur(100px);
  opacity: 0.82;
  transform: translate(-50%, -50%);
  animation: aurora-spin 48s linear infinite;
}

.sky-dots {
  opacity: 0.36;
}

.grain {
  opacity: 0.018;
}

/* Glass primitive --------------------------------------------------------- */

.topbar-inner,
.auth-card,
.couple-card,
.invite-card,
.composer,
.modal-card,
.feed-count,
.mobile-couple,
.empty-state,
.filter-empty,
.days-block,
.stat,
.meet-chip,
.code-line,
.pending-image {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* Floating glass navigation ---------------------------------------------- */

.topbar {
  padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 0;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.topbar-inner {
  height: 64px;
  padding: 0 15px;
  border-radius: 23px;
  background:
    radial-gradient(90% 160% at 6% -40%, rgba(255, 255, 255, 0.98), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.57), rgba(255, 255, 255, 0.16) 52%, rgba(255, 255, 255, 0.38));
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(145deg, rgba(255, 150, 187, 0.96), rgba(148, 126, 248, 0.92));
  box-shadow:
    0 12px 28px rgba(205, 108, 154, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

.brand-type {
  color: #392d48;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.room-pill,
.btn-soft,
.icon-btn {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18));
  box-shadow:
    0 7px 20px rgba(75, 50, 105, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
}

.room-pill {
  border-style: solid;
}

.btn-soft:hover,
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.72);
}

.app-shell {
  padding-top: 24px;
}

/* Sidebar glass ----------------------------------------------------------- */

.couple-card {
  border-radius: 34px;
  background:
    radial-gradient(120% 100% at 5% 0%, rgba(255, 219, 232, 0.72), transparent 58%),
    radial-gradient(110% 100% at 100% 100%, rgba(208, 198, 255, 0.58), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.16) 52%, rgba(255, 255, 255, 0.36));
}

.couple-card::before,
.couple-card::after {
  display: none;
}

.couple-spark {
  opacity: 0.72;
}

.avatar {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.46),
    0 10px 24px rgba(80, 52, 110, 0.18);
}

.avatar-lg {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 14px 30px rgba(80, 52, 110, 0.18);
}

.pair-heart {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.days-block {
  border-radius: 23px;
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(255, 255, 255, 0.7), transparent 72%),
    rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 24px rgba(80, 52, 110, 0.05);
}

.days-number {
  color: #31263e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stat,
.meet-chip,
.code-line {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.23);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.invite-card {
  border-radius: 29px;
}

.sidebar-quote {
  color: rgba(92, 73, 112, 0.62);
}

/* Feed -------------------------------------------------------------------- */

.feed-head h1 {
  color: #352a43;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.feed-count {
  border-radius: 18px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.composer {
  border-radius: 31px;
  background:
    radial-gradient(110% 100% at 100% 0%, rgba(228, 221, 255, 0.48), transparent 62%),
    radial-gradient(90% 100% at 0% 100%, rgba(255, 228, 238, 0.42), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18) 52%, rgba(255, 255, 255, 0.38));
  box-shadow:
    0 24px 60px rgba(70, 44, 100, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.composer:focus-within {
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 30px 74px rgba(69, 44, 100, 0.18),
    0 0 0 4px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.composer-seal {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mood-chip {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mood-chip:hover {
  background: rgba(255, 255, 255, 0.48);
}

.mood-chip.is-active {
  border-color: rgba(255, 255, 255, 0.8);
  color: #9d3f61;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 205, 223, 0.44));
  box-shadow:
    0 7px 18px rgba(228, 108, 148, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.photo-btn {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  color: #7b67d8;
  background:
    radial-gradient(90% 90% at 30% 20%, rgba(255, 255, 255, 0.9), transparent 60%),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    0 6px 16px rgba(77, 53, 112, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.photo-btn:hover {
  color: #e26691;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.56);
}

.photo-btn .icon {
  width: 17px;
  height: 17px;
}

.btn-send {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(120deg, #ff9eb9, #e97ca5 55%, #9c86fa);
  box-shadow:
    0 12px 28px rgba(231, 105, 147, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-send:disabled {
  opacity: 0.52;
}

.btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(120deg, #ff9eb9 0%, #ee7aa2 56%, #9d86fa 100%);
  box-shadow:
    0 14px 32px rgba(231, 105, 147, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.feed-toolbar {
  margin-top: 19px;
}

.filter-tabs {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 22px rgba(70, 44, 100, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
}

.filter.is-active {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 6px 16px rgba(70, 44, 100, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sync-note {
  color: rgba(91, 72, 112, 0.66);
}

.date-head {
  margin-top: 6px;
  padding: 5px 9px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}

.date-badge {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 4px 12px rgba(70, 44, 100, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.date-rule {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
}

/* Message glass ----------------------------------------------------------- */

.message-bubble {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(242, 238, 255, 0.52), transparent 64%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18) 55%, rgba(255, 255, 255, 0.34));
  box-shadow:
    0 12px 32px rgba(70, 44, 100, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.65);
  backdrop-filter: blur(20px) saturate(1.65);
  isolation: isolate;
}

.message.is-mine .message-bubble {
  border-color: rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(255, 255, 255, 0.7), transparent 62%),
    linear-gradient(145deg, rgba(255, 242, 247, 0.62), rgba(255, 206, 226, 0.3) 58%, rgba(255, 225, 238, 0.42));
  box-shadow:
    0 12px 34px rgba(191, 98, 137, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24);
}

.message-text {
  color: #3d304b;
}

.message-time,
.message-meta strong {
  color: #756284;
}

.message-foot {
  border-top-color: rgba(255, 255, 255, 0.44);
}

.heart-btn {
  background: rgba(255, 255, 255, 0.18);
}

.heart-btn:hover,
.heart-btn.is-loved {
  background: rgba(255, 225, 236, 0.56);
}

.message-bubble.has-image {
  padding: 5px 5px 7px;
}

.message-bubble.has-image .message-text {
  padding: 8px 8px 3px;
}

.message-bubble.has-image .message-foot {
  margin: 4px 7px 0;
}

.message-image {
  position: relative;
  display: block;
  width: auto;
  min-width: 190px;
  max-width: min(300px, 72vw);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.2));
  box-shadow:
    0 8px 24px rgba(58, 38, 82, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: zoom-in;
  text-align: left;
}

.message-image.is-loading {
  min-height: 210px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.18) 10%, rgba(255, 255, 255, 0.54) 30%, rgba(255, 255, 255, 0.18) 50%),
    rgba(230, 222, 245, 0.48);
  background-size: 220% 100%;
  animation: image-shimmer 1.5s ease-in-out infinite;
}

.message-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(430px, 55vh);
  object-fit: cover;
  background: rgba(40, 27, 54, 0.06);
  opacity: 0;
  transform: scale(1.012);
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.message-image.is-ready img {
  opacity: 1;
  transform: scale(1);
}

.message-image.is-error {
  min-height: 150px;
  background: rgba(255, 255, 255, 0.32);
}

.image-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}

.image-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 25px;
  height: 25px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(43, 29, 57, 0.24);
  box-shadow: 0 4px 12px rgba(33, 20, 45, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.message-image:hover .image-expand,
.message-image:focus-visible .image-expand {
  opacity: 1;
}

/* Pending image ----------------------------------------------------------- */

.pending-image {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0 1px;
  padding: 7px 8px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.pending-thumb {
  width: 46px;
  height: 46px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
}

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

.pending-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.45;
}

.pending-copy strong {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.pending-copy span {
  color: var(--muted);
  font-size: 9px;
}

.pending-remove {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-left: auto;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.24);
}

.pending-remove:hover {
  color: #c45678;
  background: rgba(255, 255, 255, 0.52);
}

.pending-remove .icon {
  width: 12px;
  height: 12px;
}

/* Glass auth / landing ---------------------------------------------------- */

.auth-card {
  border-radius: 36px;
  background:
    radial-gradient(110% 100% at 100% 0%, rgba(230, 222, 255, 0.55), transparent 58%),
    radial-gradient(100% 90% at 0% 100%, rgba(255, 220, 233, 0.55), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.67), rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.43));
  box-shadow:
    0 40px 100px rgba(61, 39, 88, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(38px) saturate(1.85);
  backdrop-filter: blur(38px) saturate(1.85);
}

.washi {
  display: none;
}

.tabs {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.tab-glider {
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 5px 16px rgba(71, 48, 96, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

input[type="text"],
input[type="password"],
input[type="date"],
.password-field input {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 2px 8px rgba(70, 44, 100, 0.03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
.password-field input:focus {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.09;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.56);
}

.hero h1 .grad {
  filter: drop-shadow(0 6px 18px rgba(189, 120, 190, 0.14));
}

.feature-pill {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.26);
  box-shadow:
    0 7px 20px rgba(70, 44, 100, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.scene-wrap {
  filter: drop-shadow(0 26px 50px rgba(76, 48, 103, 0.1));
}

/* Mobile glass adjustments ------------------------------------------------ */

@media (max-width: 920px) {
  .topbar {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 13px 0;
  }

  .topbar-inner {
    height: 58px;
    padding: 0 10px;
    border-radius: 20px;
  }

  .app-shell {
    padding-top: 14px;
  }

  .mobile-couple {
    border-radius: 20px;
    background:
      radial-gradient(100% 100% at 0% 0%, rgba(255, 223, 235, 0.46), transparent 58%),
      var(--glass-bg);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 0;
  }

  .topbar-inner {
    height: 56px;
    padding: 0 9px;
    border-radius: 19px;
  }

  .app-shell {
    padding-top: 10px;
  }

  .auth-card {
    border-radius: 29px;
    background:
      radial-gradient(110% 100% at 100% 0%, rgba(230, 222, 255, 0.46), transparent 58%),
      radial-gradient(100% 90% at 0% 100%, rgba(255, 220, 233, 0.48), transparent 60%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.21) 50%, rgba(255, 255, 255, 0.4));
  }

  .hero h1 {
    letter-spacing: -0.045em;
  }

  .composer {
    border-radius: 25px;
  }

  .date-head {
    margin-top: 2px;
    padding: 4px 8px 4px 4px;
  }

  .photo-btn {
    width: 34px;
    height: 34px;
  }

  .photo-btn .icon {
    width: 15px;
    height: 15px;
  }

  .message-image {
    min-width: 160px;
    max-width: 76vw;
  }

  .message-image img {
    max-height: 54vh;
  }

  .pending-image {
    margin-top: 8px;
    padding: 6px;
  }

  .pending-thumb {
    width: 40px;
    height: 40px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-close {
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: 14px;
  }
}

/* Overlay glass ----------------------------------------------------------- */

.modal-root {
  background: rgba(44, 29, 61, 0.24);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}

.modal-card {
  border-radius: 32px;
  background:
    radial-gradient(110% 100% at 100% 0%, rgba(230, 222, 255, 0.55), transparent 60%),
    radial-gradient(100% 90% at 0% 100%, rgba(255, 220, 233, 0.44), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48) 55%, rgba(255, 255, 255, 0.66));
  box-shadow:
    0 44px 110px rgba(45, 26, 66, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(42px) saturate(1.7);
  backdrop-filter: blur(42px) saturate(1.7);
}

.modal-icon {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 40%),
    linear-gradient(145deg, #ffa7c0, #ef7ba1 54%, #aa92ff);
  box-shadow:
    0 14px 30px rgba(231, 105, 147, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.invite-code-big,
.invite-link-row,
.confirm-copy {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.toast {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(45, 31, 58, 0.74);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}

/* Lightbox ---------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 380;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(34, 22, 48, 0.44);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  backdrop-filter: blur(32px) saturate(1.5);
  animation: fade-in 0.22s ease both;
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 980px);
  max-height: 86vh;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 24px;
  box-shadow:
    0 40px 100px rgba(20, 11, 30, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  position: fixed;
  top: calc(22px + env(safe-area-inset-top, 0px));
  right: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 25px rgba(20, 11, 30, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.lightbox-close .icon {
  width: 16px;
  height: 16px;
}

@keyframes aurora-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes image-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body {
    background: linear-gradient(145deg, #fff3f8, #f1edff 48%, #edfffa);
  }

  .topbar-inner,
  .auth-card,
  .couple-card,
  .invite-card,
  .composer,
  .modal-card,
  .feed-count,
  .mobile-couple,
  .message-bubble,
  .filter-tabs,
  .date-head {
    background: rgba(255, 255, 255, 0.88);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
