:root {
  color-scheme: light;
  --bg: #F7F4EF;
  --ink: #1F2421;
  --muted: #5C635D;
  --soft: #8A918C;
  --line: #E7E1D7;
  --surface: #FBF9F5;
  --surface-strong: #FFFFFF;
  --accent: #C4612F;
  --accent-hover: #A94E22;
  --accent-soft: #F2E3D6;
  --accent-ink: #FFFEFB;
  --shadow: 0 8px 16px rgb(31 36 33 / 0.08);
  --shadow-strong: 0 12px 24px rgb(31 36 33 / 0.12);
  --radius: 16px;
  --pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Inter", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-weight: 300;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgb(196 97 47 / 0.04), transparent 45%),
    radial-gradient(circle at 80% 70%, rgb(242 227 214 / 0.6), transparent 50%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.auth-checking body {
  opacity: 0;
}

.auth-ready body {
  opacity: 1;
}

.auth-gate-open {
  overflow: hidden;
}

.auth-gate-open .scene,
.auth-gate-open .topbar,
.auth-gate-open .landing,
.auth-gate-open .site-footer,
.auth-gate-open .human-badge {
  visibility: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 18% 18%, rgb(255 214 226 / 0.5), transparent 34%),
    radial-gradient(circle at 82% 70%, rgb(220 246 240 / 0.58), transparent 38%),
    linear-gradient(140deg, rgb(255 250 253 / 0.96), rgb(246 234 224 / 0.92));
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  margin: 0;
  padding: clamp(1.55rem, 5vw, 2.15rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.95), rgb(255 250 253 / 0.98)),
    var(--surface-strong);
  box-shadow: var(--shadow-strong);
}

.auth-card::before {
  position: absolute;
  top: -0.72rem;
  left: 50%;
  width: 5.6rem;
  height: 1.45rem;
  content: "";
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgb(255 222 231 / 0.92) 50%, rgb(255 237 205 / 0.9) 50%);
  box-shadow: 0 2px 4px rgb(31 36 33 / 0.06);
  transform: translateX(-50%) rotate(-2deg);
}

.auth-card::after {
  position: absolute;
  right: 1.05rem;
  bottom: 1rem;
  z-index: 0;
  width: 3.4rem;
  height: 3.4rem;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgb(242 227 214 / 0.86), transparent 70%);
  pointer-events: none;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-stickers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.auth-sticker {
  position: absolute;
  display: block;
  width: var(--auth-size);
  aspect-ratio: 1;
  border: 5px solid #FFFEFB;
  border-radius: 16px;
  background: #FFFEFB;
  object-fit: cover;
  box-shadow: 0 8px 16px rgb(31 36 33 / 0.1);
  transform: rotate(var(--auth-tilt));
}

.auth-sticker-a {
  --auth-size: clamp(78px, 8vw, 106px);
  --auth-tilt: -8deg;
  top: 17%;
  left: calc(50% - 330px);
}

.auth-sticker-b {
  --auth-size: clamp(82px, 8.5vw, 112px);
  --auth-tilt: 7deg;
  right: calc(50% - 350px);
  top: 22%;
}

.auth-sticker-c {
  --auth-size: clamp(74px, 7.5vw, 98px);
  --auth-tilt: -5deg;
  right: calc(50% - 305px);
  bottom: 20%;
}

.auth-sticker-d {
  --auth-size: clamp(72px, 7vw, 92px);
  --auth-tilt: 6deg;
  left: calc(50% - 285px);
  bottom: 22%;
}

.auth-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 0;
  color: var(--ink);
  font-family:
    "Playfair Display", "Fraunces", "Noto Serif SC", "Microsoft YaHei", "PingFang SC",
    system-ui, serif;
  font-size: clamp(2.1rem, 8vw, 3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.auth-copy {
  margin: 0.85rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.auth-field {
  display: grid;
  gap: 0.48rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 400;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 0.78rem 0.9rem;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.auth-field input::placeholder {
  color: var(--soft);
}

.auth-field input:focus {
  border-color: var(--accent);
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px rgb(196 97 47 / 0.1);
}

.auth-field input[aria-invalid="true"] {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 4px rgb(196 97 47 / 0.12);
}

.auth-error {
  margin: 0.62rem 0 0;
  color: var(--accent-hover);
  font-size: 0.86rem;
  line-height: 1.5;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.auth-remember input {
  width: 16px;
  aspect-ratio: 1;
  accent-color: var(--accent);
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 1.2rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.auth-submit:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(1px);
}

.scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("assets/hero-couple-notes.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.8) brightness(1.15) sepia(0.12);
  opacity: 0.08;
  transform: scale(1.02);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - clamp(1rem, 5vw, 5rem)));
  min-height: 68px;
  margin: 0 auto;
  padding-block: 0.86rem;
}

.brand,
.nav-link,
.human-badge {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(31 36 33 / 0.04);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.brand {
  border-radius: var(--pill);
  padding: 0.62rem 0.92rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.nav-link {
  border-radius: var(--pill);
  padding: 0.58rem 0.78rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  border-color: var(--accent);
  background: var(--surface-strong);
  color: var(--accent);
  transform: translateY(-1px);
}

.landing {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(5.2rem, 9dvh, 6rem) clamp(1.1rem, 5vw, 5rem) 4.6rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 560px) minmax(320px, 1fr);
  align-items: center;
  width: min(1160px, 100%);
  min-height: calc(100dvh - 10rem);
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  max-width: 580px;
  padding-block: clamp(1rem, 4vw, 2rem);
  text-align: left;
}

.js .hero,
.js .sub-panel {
  opacity: 0;
  transform: translateY(16px);
}

.js body.is-ready .hero,
.js body.is-ready .sub-panel {
  animation: rise-in 680ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.avatar-shell {
  width: clamp(82px, 9vw, 108px);
  aspect-ratio: 1;
  padding: 5px;
  margin-bottom: clamp(1rem, 2.4vw, 1.45rem);
  border-radius: 50%;
  background: linear-gradient(145deg, #FFFFFF, var(--accent-soft));
  box-shadow: var(--shadow);
}

.avatar-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.quote {
  max-width: 28rem;
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: clamp(1rem, 0.7vw + 0.86rem, 1.28rem);
  line-height: 1.7;
  text-wrap: balance;
}

h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--ink);
  font-family:
    "Playfair Display", "Fraunces", "Noto Serif SC", "Microsoft YaHei", "PingFang SC",
    system-ui, serif;
  font-size: clamp(3.7rem, 8vw, 6.15rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.032em;
  line-height: 0.98;
}

.lede {
  max-width: 36rem;
  margin: 1.05rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.36vw + 0.95rem, 1.14rem);
  font-weight: 400;
  line-height: 1.88;
  text-wrap: pretty;
}

.portal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
  width: min(590px, 100%);
  margin-top: clamp(1.7rem, 3vw, 2.3rem);
}

.portal-link {
  --tx: 0px;
  --ty: 0px;
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0.78rem 0.82rem 0.78rem 1rem;
  transform: translate3d(var(--tx), var(--ty), 0);
  box-shadow: 0 2px 8px rgb(31 36 33 / 0.04);
  transition:
    border-color 220ms ease,
    color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-link::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.8);
  transform-origin: left;
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-link:hover {
  border-color: transparent;
  color: var(--accent-ink);
  background: transparent;
  box-shadow: var(--shadow-strong);
  transform: translate3d(var(--tx), calc(var(--ty) - 2px), 0);
}

.portal-link:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.portal-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.portal-copy {
  min-width: 0;
  padding-inline: 0.52rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.2;
  transition: color 220ms ease;
  white-space: nowrap;
}

.portal-link:hover .portal-copy {
  color: rgb(255 254 251 / 0.88);
}

.portal-arrow {
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.96rem;
  line-height: 1;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-link:hover .portal-arrow {
  background: rgb(255 254 251 / 0.24);
  color: var(--accent-ink);
  transform: translate(2px, -2px);
}

.photo-scatter {
  position: absolute;
  inset: -10% -5%;
  z-index: 1;
  pointer-events: none;
}

.photo-note {
  position: absolute;
  display: block;
  width: var(--size);
  aspect-ratio: 1;
  border: 6px solid #FFFEFB;
  border-radius: var(--radius);
  background: #FFFEFB;
  object-fit: cover;
  pointer-events: auto;
  box-shadow: var(--shadow);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate3d(0, 0, 0) rotate(var(--tilt));
  will-change: transform;
}

.photo-note.is-dragging {
  z-index: 4;
  animation: none !important;
  box-shadow: var(--shadow-strong);
  cursor: grabbing;
  transition: none;
}

.photo-note.is-returning {
  z-index: 3;
  animation: none !important;
  transition: box-shadow 260ms ease;
}

.photo-note-1 {
  --size: clamp(106px, 11vw, 138px);
  --tilt: -8deg;
  top: 8%;
  left: 58%;
}

.photo-note-2 {
  --size: clamp(82px, 8vw, 104px);
  --tilt: 7deg;
  top: 12%;
  right: 12%;
}

.photo-note-3 {
  --size: clamp(72px, 7vw, 92px);
  --tilt: -4deg;
  top: 35%;
  right: 6%;
}

.photo-note-4 {
  --size: clamp(104px, 11vw, 132px);
  --tilt: 5deg;
  right: 22%;
  bottom: 8%;
}

.photo-note-5 {
  --size: clamp(78px, 8vw, 98px);
  --tilt: -9deg;
  left: 52%;
  bottom: 22%;
}

.photo-note-6 {
  --size: clamp(108px, 11vw, 136px);
  --tilt: 8deg;
  right: 4%;
  bottom: 28%;
}

.photo-note-7 {
  --size: clamp(86px, 8vw, 108px);
  --tilt: -5deg;
  left: 68%;
  bottom: 38%;
}

.photo-note-8 {
  --size: clamp(76px, 8vw, 96px);
  --tilt: 6deg;
  left: 48%;
  top: 52%;
}

.photo-note-9 {
  --size: clamp(82px, 8vw, 106px);
  --tilt: -6deg;
  right: 15%;
  top: 58%;
}

.photo-note-10 {
  --size: clamp(92px, 9vw, 118px);
  --tilt: 4deg;
  left: 54%;
  top: 24%;
}

.site-footer {
  position: relative;
  z-index: 3;
  width: min(680px, calc(100% - 2rem));
  margin: -3rem auto 1.1rem;
}

.record-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1rem;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

.record-links a,
.back-link {
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.record-links a:hover,
.back-link:hover {
  color: var(--accent);
}

.human-badge {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 1rem;
  z-index: 6;
  border-radius: var(--pill);
  padding: 0.58rem 0.78rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  transition:
    color 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms ease,
    border-color 180ms ease;
}

.human-badge:hover {
  border-color: var(--accent);
  background: var(--surface-strong);
  color: var(--accent);
  transform: translateY(-1px);
}

.sub-shell {
  display: grid;
  min-height: 100dvh;
  align-items: center;
  padding: clamp(5.2rem, 10dvh, 7rem) clamp(1.2rem, 4vw, 3rem) 4.5rem;
}

.sub-panel {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: clamp(1.35rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.sub-title {
  margin: 0;
  color: var(--ink);
  font-family:
    "Playfair Display", "Fraunces", "Noto Serif SC", "Microsoft YaHei", "PingFang SC",
    system-ui, serif;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.sub-copy {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.22rem);
  line-height: 1.9;
  text-wrap: pretty;
}

.moments-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(5.6rem, 11dvh, 7.5rem) clamp(1.2rem, 4vw, 3rem) 5rem;
}

.moments-header {
  margin-bottom: clamp(2.4rem, 6vw, 3.6rem);
  text-align: left;
}

.moments-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.moments-title {
  margin: 0;
  color: var(--ink);
  font-family:
    "Playfair Display", "Fraunces", "Noto Serif SC", "Microsoft YaHei", "PingFang SC",
    system-ui, serif;
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
}

.moments-intro {
  max-width: 46ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.36vw + 0.95rem, 1.12rem);
  font-weight: 400;
  line-height: 1.88;
  text-wrap: pretty;
}

.moments-wall {
  columns: 3;
  column-gap: clamp(1.4rem, 3vw, 2.2rem);
}

.moments-wall.is-state {
  columns: 1;
}

.moments-state,
.moment-login,
.moment-composer {
  width: min(520px, 100%);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 254, 251, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.moments-state {
  padding: 1.1rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.moments-tools {
  margin: 0 0 clamp(1.4rem, 3vw, 2rem);
}

.moment-login,
.moment-composer {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.1rem, 4vw, 1.45rem);
}

.moment-composer {
  width: min(760px, 100%);
}

.moment-login h2,
.moment-composer-title h2 {
  margin: 0;
  color: var(--ink);
  font-family:
    "Playfair Display", "Fraunces", "Noto Serif SC", "Microsoft YaHei", "PingFang SC",
    system-ui, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
}

.moment-login p,
.moment-composer-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.moment-composer-title {
  display: grid;
  gap: 0.25rem;
}

.moment-composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(140px, 0.7fr) minmax(0, 0.8fr);
  gap: 0.85rem;
}

.moment-field {
  display: grid;
  gap: 0.4rem;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 500;
}

.moment-login input,
.moment-field input,
.moment-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.moment-field input[type="file"] {
  padding: 0.66rem 0.85rem;
}

.moment-field textarea {
  min-height: 92px;
  padding: 0.85rem 1rem;
  resize: vertical;
  line-height: 1.7;
}

.moment-field-hint {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.moment-login input:focus,
.moment-field input:focus,
.moment-field textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.moment-login button,
.moment-composer button,
.moment-save,
.moment-cancel,
.moment-action {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  justify-self: start;
  padding: 0 1.2rem;
  background: var(--ink);
  color: #fffaf2;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.moment-login button:hover,
.moment-composer button:hover,
.moment-save:hover,
.moment-cancel:hover,
.moment-action:hover {
  transform: translateY(-1px);
}

.moment-login button:disabled,
.moment-composer button:disabled,
.moment-save:disabled {
  cursor: wait;
  opacity: 0.68;
}

.moment-login .moment-login-error,
.moment-composer-error,
.moment-edit-error {
  margin: 0;
  color: var(--accent);
  font-size: 0.86rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .moments-wall {
    columns: 2;
  }
}

@media (max-width: 560px) {
  .moments-wall {
    columns: 1;
  }
}

.moment-card {
  --tilt: 0deg;
  position: relative;
  break-inside: avoid;
  display: block;
  margin: 0 auto clamp(1.6rem, 3.2vw, 2.4rem);
  padding: 0.7rem 0.7rem 1.1rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #FFFEFB;
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt));
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms ease;
}

.moment-card:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-strong);
  z-index: 2;
}

.moment-card.tilt-a {
  --tilt: -1.4deg;
}

.moment-card.tilt-b {
  --tilt: 1.6deg;
}

.moment-card.tilt-c {
  --tilt: -0.6deg;
}

.moment-photo {
  overflow: hidden;
  border-radius: 3px;
  background: var(--accent-soft);
  aspect-ratio: 4 / 3;
}

.moment-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.moment-card:hover .moment-photo img {
  transform: scale(1.04);
}

.moment-card-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
}

.moment-action {
  min-height: 30px;
  padding: 0 0.68rem;
  border: 1px solid rgb(255 255 255 / 0.7);
  background: rgb(255 254 251 / 0.82);
  color: var(--muted);
  box-shadow: 0 2px 8px rgb(31 36 33 / 0.1);
  font-size: 0.72rem;
  font-weight: 500;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}

.moment-action:hover {
  background: rgb(255 254 251 / 0.96);
  color: var(--ink);
}

.moment-action-danger:hover {
  color: var(--accent);
}

.moment-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0.3rem 0;
}

.moment-date {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.moment-tag {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.moment-note {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-family:
    "Caveat", "Kaiti SC", "楷体", "Microsoft YaHei", "PingFang SC", system-ui,
    cursive;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.moment-edit-form {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0.3rem 0;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
}

.moment-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.55rem;
}

.moment-edit-form .moment-field {
  gap: 0.32rem;
  font-size: 0.76rem;
}

.moment-edit-form .moment-field input,
.moment-edit-form .moment-field textarea {
  min-height: 38px;
  border-radius: 10px;
  padding-inline: 0.74rem;
  background: rgb(255 255 255 / 0.72);
  font-size: 0.82rem;
}

.moment-edit-form .moment-field textarea {
  min-height: 76px;
  padding-block: 0.62rem;
}

.moment-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.moment-save,
.moment-cancel {
  min-height: 34px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  font-size: 0.8rem;
}

.moment-save {
  background: var(--ink);
  color: #fffaf2;
}

.moment-cancel {
  background: rgb(255 255 255 / 0.68);
  color: var(--muted);
}

.moment-cancel:hover {
  color: var(--ink);
}

.moments-actions {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
}

.notes-shell {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(5.6rem, 11dvh, 7.5rem) clamp(1.2rem, 4vw, 3rem) 5rem;
}

.notes-header {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  text-align: left;
}

.notes-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.notes-title {
  margin: 0;
  color: var(--ink);
  font-family:
    "Playfair Display", "Fraunces", "Noto Serif SC", "Microsoft YaHei", "PingFang SC",
    system-ui, serif;
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
}

.notes-intro {
  max-width: 46ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.36vw + 0.95rem, 1.12rem);
  font-weight: 400;
  line-height: 1.88;
  text-wrap: pretty;
}

.notes-app {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2rem);
}

.notes-app.is-state {
  display: block;
}

.notes-state,
.notes-login,
.note-composer {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 254, 251, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.notes-state {
  padding: 1.1rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.notes-login,
.note-composer {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.1rem, 4vw, 1.45rem);
}

.notes-login {
  width: min(520px, 100%);
}

.notes-login h2 {
  margin: 0;
  color: var(--ink);
  font-family:
    "Playfair Display", "Fraunces", "Noto Serif SC", "Microsoft YaHei", "PingFang SC",
    system-ui, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
}

.notes-login p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.notes-login input,
.notes-field input,
.notes-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.notes-login input,
.notes-field input {
  min-height: 46px;
  padding: 0 1rem;
}

.notes-field textarea {
  min-height: 160px;
  padding: 0.9rem 1rem;
  resize: vertical;
  line-height: 1.8;
}

.notes-login input:focus,
.notes-field input:focus,
.notes-field textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.notes-login button,
.note-composer button,
.note-delete,
.note-open {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
}

.notes-login button,
.note-composer button {
  justify-self: start;
  padding: 0 1.2rem;
  background: var(--ink);
  color: #fffaf2;
}

.notes-login button:hover,
.note-composer button:hover,
.note-delete:hover,
.note-open:hover {
  transform: translateY(-1px);
}

.notes-login button:disabled,
.note-composer button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.notes-login-error,
.note-composer-error {
  margin: 0;
  color: var(--accent);
  font-size: 0.86rem;
  line-height: 1.6;
}

.note-composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.7fr);
  gap: 0.85rem;
}

.note-composer-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.notes-field {
  display: grid;
  gap: 0.4rem;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 500;
}

.notes-field-hint {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.notes-field input[type="file"] {
  padding: 0.66rem 0.85rem;
}

.notes-stream {
  position: relative;
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.4rem);
  padding-left: clamp(1.2rem, 3vw, 1.8rem);
}

.notes-stream::before {
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(
    to bottom,
    transparent,
    var(--line) 8%,
    var(--line) 92%,
    transparent
  );
}

.note-card {
  position: relative;
  padding: clamp(1.15rem, 2.4vw, 1.6rem) clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 2px 8px rgb(31 36 33 / 0.04);
  transition:
    box-shadow 220ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease;
}

.note-card::before {
  position: absolute;
  top: clamp(1.5rem, 3vw, 1.85rem);
  left: calc(-1 * clamp(1.2rem, 3vw, 1.8rem));
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.note-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 8px rgb(31 36 33 / 0.08);
  transform: translateY(-2px);
}

.note-card:hover::before {
  transform: translateX(-50%) scale(1.2);
}

.note-card.is-clickable {
  cursor: pointer;
}

.note-card-a {
  background: var(--surface-strong);
}

.note-card-b {
  background: linear-gradient(180deg, #FFFEFB 0%, var(--accent-soft) 240%);
}

.note-card-c {
  background: var(--surface);
}

.note-title {
  display: block;
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 0.7vw + 1rem, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--line);
  color: var(--soft);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.note-meta time {
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.note-mood {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 400;
}

.note-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.note-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: rgba(255, 255, 255, 0.58);
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.note-chip-tag {
  color: var(--accent);
}

.note-chip-muted {
  color: var(--muted);
}

.note-body {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.98rem, 0.3vw + 0.92rem, 1.06rem);
  font-weight: 300;
  line-height: 1.92;
  text-wrap: pretty;
}

.note-body + .note-body {
  margin-top: 0.75rem;
}

.note-gallery {
  margin-top: 0.95rem;
}

.note-gallery img {
  display: block;
  object-fit: cover;
  background: var(--accent-soft);
}

.note-gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.note-gallery-preview img,
.note-photo-more {
  flex: 0 0 clamp(92px, 14vw, 132px);
  width: clamp(92px, 14vw, 132px);
  aspect-ratio: 1;
  border-radius: 8px;
}

.note-gallery-preview img {
  border: 1px solid rgb(38 45 39 / 0.08);
}

.note-gallery-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 170px));
  gap: 0.55rem;
  justify-content: start;
}

.note-gallery-full img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}

.note-photo-more {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.68);
  background: var(--accent-soft);
  color: var(--accent-ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.note-photo-more::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: rgb(31 36 33 / 0.32);
  transition: background 180ms ease;
}

.note-photo-more-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(0.92);
  transform: scale(1.02);
  transition:
    filter 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.note-photo-more-count {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 2.35rem;
  min-height: 2.35rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.46);
  border-radius: var(--pill);
  background: rgb(255 254 251 / 0.2);
  box-shadow: 0 1px 6px rgb(31 36 33 / 0.16);
  color: #fffefb;
  text-shadow: 0 1px 5px rgb(31 36 33 / 0.38);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
}

.note-photo-more:hover {
  border-color: rgb(255 255 255 / 0.9);
  transform: translateY(-1px);
}

.note-photo-more:hover::before {
  background: rgb(31 36 33 / 0.18);
}

.note-photo-more:hover .note-photo-more-image {
  filter: saturate(1.02);
  transform: scale(1.06);
}

.note-card-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.note-delete,
.note-open {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--soft);
  font-size: 0.82rem;
}

.note-delete:hover,
.note-open:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.notes-actions {
  margin-top: clamp(2.4rem, 5vw, 3.2rem);
}

.note-detail-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(5.6rem, 11dvh, 7.5rem) clamp(1.2rem, 4vw, 3rem) 5rem;
}

.note-detail-app.is-state {
  display: block;
}

.note-detail-article {
  padding: clamp(1.2rem, 4vw, 2.4rem) 0 0;
  border-top: 1px solid var(--line);
}

.note-detail-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--muted);
  font-size: 0.88rem;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.note-detail-back::before {
  content: "<";
  margin-right: 0.45rem;
  color: var(--accent);
}

.note-detail-back:hover {
  color: var(--ink);
  transform: translateX(-2px);
}

.note-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
  color: var(--soft);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.note-detail-meta time {
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.note-detail-title {
  max-width: 13ch;
  margin: 0 0 clamp(1.4rem, 4vw, 2.1rem);
  color: var(--ink);
  font-family:
    "Playfair Display", "Fraunces", "Noto Serif SC", "Microsoft YaHei", "PingFang SC",
    system-ui, serif;
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.05;
  text-wrap: balance;
}

.note-detail-content {
  max-width: 66ch;
}

.note-detail-body {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.04rem, 0.25vw + 1rem, 1.14rem);
  font-weight: 300;
  line-height: 2.05;
  text-wrap: pretty;
}

.note-detail-body + .note-detail-body {
  margin-top: 1.05rem;
}

.note-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 2vw, 0.9rem);
  margin-top: clamp(1.8rem, 5vw, 2.8rem);
}

.note-detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--accent-soft);
  object-fit: cover;
}

.note-detail-actions {
  margin-top: clamp(2.5rem, 5vw, 3.4rem);
}

@media (max-width: 640px) {
  .notes-shell {
    padding-top: 5.2rem;
  }

  .notes-stream {
    padding-left: 1rem;
  }

  .note-composer-grid {
    grid-template-columns: 1fr;
  }

  .note-composer-details,
  .moment-composer-grid {
    grid-template-columns: 1fr;
  }

  .note-card::before {
    top: 1.3rem;
    left: -1rem;
    width: 10px;
    height: 10px;
  }

  .note-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .note-gallery-preview img,
  .note-photo-more {
    flex-basis: clamp(78px, 25vw, 112px);
    width: clamp(78px, 25vw, 112px);
  }

  .note-gallery-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note-card-actions {
    justify-content: flex-start;
  }

  .note-detail-shell {
    padding-top: 5.2rem;
  }

  .note-detail-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .note-detail-title {
    max-width: 100%;
  }

  .note-detail-gallery {
    grid-template-columns: 1fr;
  }
}

.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.back-link,
.ghost-link {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill);
  padding: 0.68rem 0.98rem;
  border: 1px solid rgb(38 45 39 / 0.1);
  background: rgb(255 255 255 / 0.68);
  box-shadow: 0 2px 8px rgb(62 49 39 / 0.05);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.back-link {
  font-weight: 500;
}

.back-link:hover,
.ghost-link:hover {
  color: var(--ink);
  border-color: rgb(196 97 47 / 0.28);
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 3px 8px rgb(62 49 39 / 0.08);
  transform: translateY(-1px);
}

.back-link:active,
.ghost-link:active,
.portal-link:active {
  transform: translateY(1px);
}

.ink-ripple {
  position: absolute;
  width: 16px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(196 97 47 / 0.28);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 620ms ease-out forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes photo-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--tilt));
  }

  50% {
    transform: translate3d(0, -7px, 0) rotate(calc(var(--tilt) + 1deg));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .photo-note {
    animation: photo-breathe 7.8s ease-in-out infinite;
  }

  .photo-note:nth-child(2n) {
    animation-duration: 9.4s;
    animation-delay: -2s;
  }

  .photo-note:nth-child(3n) {
    animation-duration: 8.6s;
    animation-delay: -4s;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    justify-items: center;
    max-width: 660px;
    margin-inline: auto;
    text-align: center;
  }

  .portal-grid {
    justify-content: center;
  }

  .photo-scatter {
    position: relative;
    inset: auto;
    width: min(520px, 100%);
    height: clamp(330px, 86vw, 460px);
    margin: clamp(1.2rem, 5vw, 2rem) auto 0;
  }

  .photo-note-1 {
    top: 8%;
    left: 8%;
    right: auto;
    bottom: auto;
  }

  .photo-note-2 {
    top: 15%;
    right: 6%;
    left: auto;
    bottom: auto;
  }

  .photo-note-3 {
    top: 42%;
    right: 8%;
    left: auto;
    bottom: auto;
  }

  .photo-note-4 {
    right: auto;
    left: 12%;
    bottom: 12%;
  }

  .photo-note-5 {
    left: auto;
    right: 32%;
    bottom: 6%;
  }

  .photo-note-6 {
    right: 10%;
    left: auto;
    bottom: 18%;
  }

  .photo-note-7 {
    left: 50%;
    right: auto;
    bottom: 28%;
  }

  .photo-note-8 {
    left: 28%;
    right: auto;
    bottom: 32%;
  }

  .photo-note-9 {
    top: 58%;
    left: 38%;
    right: auto;
  }

  .photo-note-10 {
    --size: 88px;
    top: 28%;
    right: 18%;
    left: auto;
    bottom: auto;
  }

  .site-footer {
    margin-top: -1.5rem;
  }
}

@media (max-width: 760px) {
  .topbar {
    width: calc(100% - 1rem);
    min-height: 64px;
  }

  .brand {
    padding-inline: 0.76rem;
  }

  .nav-link {
    padding: 0.52rem 0.62rem;
    font-size: 0.8rem;
  }

  .landing,
  .sub-shell {
    padding-top: 5rem;
  }

  .hero {
    min-height: 1010px;
    align-items: start;
  }

  .hero-copy {
    padding-top: 0.65rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .lede {
    max-width: 22rem;
  }

  .portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: min(360px, 100%);
  }

  .portal-link {
    grid-template-columns: auto 1fr auto;
    min-height: 58px;
    background: var(--surface-strong);
  }

  .portal-copy {
    text-align: right;
  }

  .photo-note {
    border-width: 5px;
    border-radius: 14px;
  }

  .photo-scatter {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .photo-note-1 {
    --size: 86px;
    top: 625px;
    left: 3%;
    right: auto;
    bottom: auto;
  }

  .photo-note-2,
  .photo-note-4,
  .photo-note-6 {
    --size: 78px;
  }

  .photo-note-3,
  .photo-note-5,
  .photo-note-7,
  .photo-note-8,
  .photo-note-9,
  .photo-note-10 {
    --size: 68px;
  }

  .photo-note-2 {
    top: 78px;
    right: 2%;
    left: auto;
    bottom: auto;
  }

  .photo-note-3 {
    top: 625px;
    right: 4%;
    left: auto;
    bottom: auto;
  }

  .photo-note-4 {
    top: 770px;
    left: 43%;
    right: auto;
    bottom: auto;
  }

  .photo-note-5 {
    top: 820px;
    left: 4%;
    right: auto;
    bottom: auto;
  }

  .photo-note-6 {
    top: 735px;
    right: 3%;
    left: auto;
    bottom: auto;
  }

  .photo-note-7 {
    top: 705px;
    left: 32%;
    right: auto;
    bottom: auto;
  }

  .photo-note-8 {
    top: 885px;
    left: 26%;
    right: auto;
    bottom: auto;
  }

  .photo-note-9 {
    top: 540px;
    right: 14%;
    left: auto;
    bottom: auto;
  }

  .site-footer {
    width: auto;
    margin: -2rem auto 1rem;
    padding-inline: 1rem;
  }

  .human-badge {
    position: static;
    display: table;
    margin: 0 auto 1rem;
  }

  .auth-gate {
    align-items: center;
    padding: 1rem;
  }

  .auth-card {
    width: min(356px, 100%);
  }

  .auth-sticker-a {
    top: 7%;
    left: 7%;
  }

  .auth-sticker-b {
    top: 8%;
    right: 6%;
  }

  .auth-sticker-c {
    right: 10%;
    bottom: 8%;
  }

  .auth-sticker-d {
    left: 8%;
    bottom: 9%;
  }

  .auth-sticker {
    --auth-size: 64px;
    border-width: 4px;
    border-radius: 14px;
    opacity: 0.82;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .avatar-shell {
    width: 76px;
    margin-bottom: 0.82rem;
  }

  .portal-grid {
    margin-top: 1.35rem;
  }

  .photo-note-4,
  .photo-note-8 {
    bottom: -2%;
  }
}

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

  .portal-link {
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .brand,
  .nav-link,
  .portal-link,
  .human-badge {
    background: var(--surface-strong);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
