/* =========================================================
   拾光共选 — a quiet, collaborative place for choosing images
   ========================================================= */

:root {
  --bg: #f3efe7;
  --bg-warm: #ede7db;
  --ink: #252a22;
  --ink-soft: #5f6559;
  --muted: #8c9085;
  --faint: #b6b8ad;
  --line: rgba(44, 50, 40, 0.1);
  --line-strong: rgba(44, 50, 40, 0.16);
  --glass: rgba(255, 255, 255, 0.46);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --glass-deep: rgba(252, 249, 242, 0.82);
  --olive: #293226;
  --olive-soft: #3a4536;
  --accent: #e96f4f;
  --accent-deep: #d55839;
  --sage: #9eac98;
  --cream: #fbf8f1;
  --font-sans: "Avenir Next", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Songti SC", "STSong", serif;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 60px -28px rgba(45, 44, 32, 0.24), 0 6px 18px -10px rgba(45, 44, 32, 0.1);
  --shadow-float: 0 40px 90px -36px rgba(43, 39, 27, 0.46), 0 12px 28px -18px rgba(43, 39, 27, 0.26);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  color: var(--cream);
  background: var(--accent);
}

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img {
  max-width: 100%;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

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

.ico {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ico.fill {
  fill: currentColor;
}

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

/* ---------- ambient background ---------- */

.ambient {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 95% at 52% -15%, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(156deg, #f5f1e8 0%, #f1ece2 50%, #e9e3d7 100%);
}

.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(76px);
  will-change: transform;
  pointer-events: none;
}

.blob-a {
  width: 47vw;
  height: 47vw;
  min-width: 460px;
  min-height: 460px;
  right: -11vw;
  top: -16vw;
  background: rgba(239, 185, 158, 0.58);
  animation: drift-a 24s ease-in-out infinite alternate;
}

.blob-b {
  width: 46vw;
  height: 46vw;
  min-width: 430px;
  min-height: 430px;
  left: -17vw;
  bottom: -21vw;
  background: rgba(173, 195, 168, 0.54);
  animation: drift-b 29s ease-in-out infinite alternate;
}

.blob-c {
  width: 32vw;
  height: 32vw;
  left: 40%;
  top: 19%;
  background: rgba(206, 190, 222, 0.34);
  animation: drift-c 34s ease-in-out infinite alternate;
}

.blob-d {
  width: 27vw;
  height: 27vw;
  right: 19%;
  bottom: -11%;
  background: rgba(244, 210, 154, 0.36);
  animation: drift-b 27s ease-in-out infinite alternate-reverse;
}

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

.ambient-lines {
  position: absolute;
  inset: 0;
  opacity: 0.21;
  background-image:
    linear-gradient(90deg, rgba(61, 65, 52, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(61, 65, 52, 0.055) 1px, transparent 1px);
  background-size: 128px 128px;
  mask-image: radial-gradient(ellipse 75% 68% at 52% 40%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 68% at 52% 40%, black 0%, transparent 78%);
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6vw, 5vw, 0) scale(1.09); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to { transform: translate3d(5vw, -4vw, 0) scale(0.94); }
}

@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(8vw, 6vw, 0) rotate(18deg); }
}

/* ---------- shared bits ---------- */

.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
}

.btn {
  --btn-bg: transparent;
  --btn-color: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--btn-color);
  background: var(--btn-bg);
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn .ico {
  width: 17px;
  height: 17px;
}

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

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

.btn-dark {
  --btn-bg: var(--olive);
  --btn-color: #fcf9f2;
  box-shadow: 0 14px 28px -16px rgba(36, 45, 33, 0.64), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-dark:hover {
  --btn-bg: #384534;
  box-shadow: 0 18px 34px -16px rgba(36, 45, 33, 0.6);
}

.btn-glass {
  --btn-bg: rgba(255, 255, 255, 0.48);
  --btn-color: var(--ink);
  border-color: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 12px 30px -22px rgba(44, 42, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-glass:hover {
  --btn-bg: rgba(255, 255, 255, 0.68);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-color: var(--ink-soft);
}

.btn-ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.38);
  --btn-color: var(--ink);
}

.btn-lg {
  height: 55px;
  padding: 0 27px;
  font-size: 14.5px;
}

.btn-lg .ico {
  width: 18px;
  height: 18px;
}

.btn-sm {
  height: 39px;
  padding: 0 16px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.4;
  transform: none;
}

.btn-loading .ico {
  animation: spin 0.9s linear infinite;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-out);
}

.icon-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
}

.icon-btn .ico {
  width: 18px;
  height: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #f9f5ec;
  background: var(--olive);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 14px -8px rgba(34, 42, 31, 0.55);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1.5px rgba(249, 245, 236, 0.85);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.brand-mark-lg {
  width: 54px;
  height: 54px;
}

.brand-mark-lg svg {
  width: 30px;
  height: 30px;
}

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

.brand-name {
  font-size: 16.5px;
  font-weight: 620;
  letter-spacing: 0.01em;
}

.brand-en {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 8.5px;
  font-style: italic;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6f936c;
  box-shadow: 0 0 0 3px rgba(111, 147, 108, 0.13);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(111, 147, 108, 0.36);
  border-radius: inherit;
  animation: ping 2.8s ease-out infinite;
}

.avatar {
  --av-bg: #8a7658;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fffdf8;
  background: var(--av-bg);
  border: 1.5px solid rgba(255, 253, 247, 0.88);
  box-shadow: 0 2px 8px -4px rgba(34, 37, 29, 0.3);
  font-size: 10px;
  font-weight: 590;
  letter-spacing: -0.03em;
  line-height: 1;
  overflow: hidden;
}

.avatar-sm {
  width: 26px;
  height: 26px;
  font-size: 8.5px;
}

.avatar-lg {
  width: 43px;
  height: 43px;
  font-size: 11.5px;
}

.avatar-stack {
  display: flex;
  align-items: center;
  padding-left: 7px;
}

.avatar-stack .avatar {
  margin-left: -7px;
  transition: transform 0.25s var(--ease-out);
}

.avatar-stack .avatar:hover {
  transform: translateY(-2px);
  z-index: 2;
}

.avatar-stack .avatar-more {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

.presence-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7b9a74;
  box-shadow: 0 0 0 2.5px rgba(123, 154, 116, 0.13);
}

.sr-only {
  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;
}

.hidden {
  display: none !important;
}

/* ---------- boot ---------- */

.boot-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--ink);
}

.boot-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.boot-line {
  position: relative;
  display: block;
  width: 72px;
  height: 1px;
  overflow: hidden;
  background: rgba(50, 55, 43, 0.12);
}

.boot-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-100%);
  animation: boot-line 1.5s var(--ease-out) infinite;
}

@keyframes boot-line {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* =========================================================
   Landing
   ========================================================= */

.landing {
  position: relative;
  padding-bottom: 36px;
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1480px, calc(100% - 56px));
  height: 66px;
  margin: 20px auto 0;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
  box-shadow: 0 20px 50px -36px rgba(45, 44, 32, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.site-nav .brand {
  flex: 0 0 auto;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.nav-pill a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12.5px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-pill a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-actions .btn {
  height: 42px;
  padding: 0 18px;
  font-size: 12.5px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  gap: 24px;
  width: min(1480px, calc(100% - 56px));
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 46px 0 38px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-left: clamp(0px, 3.4vw, 48px);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 33px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.48);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.eyebrow-pill .live-dot {
  width: 5px;
  height: 5px;
}

.hero h1 {
  margin: 28px 0 25px;
  font-size: clamp(50px, 6.35vw, 88px);
  font-weight: 610;
  letter-spacing: -0.065em;
  line-height: 1.11;
}

.hero h1 .line {
  display: block;
}

.h1-accent {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.045em;
  padding-right: 0.03em;
}

.h1-accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1%;
  right: -3%;
  bottom: 8%;
  height: 22%;
  border-radius: 50%;
  background: rgba(233, 111, 79, 0.14);
  transform: rotate(-1.6deg);
}

.hero-lede {
  max-width: 468px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.9;
  letter-spacing: 0.005em;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 560;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 33px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.hero-proof .avatar {
  width: 30px;
  height: 30px;
  font-size: 9px;
}

.hero-proof strong {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 560;
}

.hero-proof span {
  color: var(--muted);
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 1 / 1.02;
  margin-left: auto;
  isolation: isolate;
}

.stage-glow {
  position: absolute;
  left: 16%;
  top: 10%;
  width: 70%;
  height: 78%;
  border-radius: 50%;
  background: rgba(255, 236, 214, 0.62);
  filter: blur(50px);
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 9%;
  top: 12%;
  width: 78%;
  height: 76%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  transform: rotate(-16deg);
  pointer-events: none;
}

.photo-float {
  position: absolute;
  z-index: 2;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: rgba(253, 250, 243, 0.76);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.photo-float img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.photo-float:hover {
  z-index: 9;
  transform: translateY(-8px) rotate(0deg) !important;
}

.float-a {
  left: -1.5%;
  top: 20%;
  width: 23%;
  aspect-ratio: 3 / 4;
  transform: rotate(-6deg);
  animation: float-a 8.5s ease-in-out infinite alternate;
}

.float-b {
  right: -1%;
  top: 1%;
  width: 26.5%;
  aspect-ratio: 1 / 1;
  transform: rotate(5deg);
  animation: float-b 10s ease-in-out infinite alternate;
}

.float-c {
  right: -2.5%;
  bottom: 1%;
  width: 29%;
  aspect-ratio: 4 / 3;
  transform: rotate(-4deg);
  animation: float-c 9.5s ease-in-out infinite alternate;
}

.stage-main {
  left: 24%;
  top: 6%;
  z-index: 4;
  width: 47%;
  aspect-ratio: 4 / 5;
  padding: 7px;
  transform: rotate(-2.4deg);
}

.stage-main img {
  border-radius: 16px;
}

.stage-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px 12% auto;
  height: 48%;
  border-radius: 50%;
  background: rgba(233, 111, 79, 0.18);
  filter: blur(38px);
}

.stage-main .main-top {
  position: absolute;
  z-index: 2;
  top: 19px;
  left: 19px;
  right: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fffdf7;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 8px rgba(31, 31, 24, 0.35);
}

.main-fav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(29, 31, 25, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.main-fav .ico {
  width: 12px;
  height: 12px;
  fill: var(--accent);
  stroke: var(--accent);
}

.stage-main .main-caption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 19px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  color: #fffdf7;
  text-shadow: 0 2px 12px rgba(29, 28, 22, 0.4);
}

.stage-main .main-caption::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -18px;
  right: -18px;
  bottom: -19px;
  height: 110px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(0deg, rgba(22, 24, 19, 0.58), transparent);
}

.main-caption h3 {
  font-size: 17px;
  font-weight: 580;
  letter-spacing: -0.02em;
}

.main-caption p {
  margin-top: 3px;
  color: rgba(255, 253, 247, 0.72);
  font-size: 9.5px;
}

.main-caption .avatar-stack .avatar {
  width: 22px;
  height: 22px;
  font-size: 7.5px;
}

.stage-progress {
  position: absolute;
  z-index: 6;
  left: 1%;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 45%;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.62);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
  box-shadow: 0 24px 40px -28px rgba(43, 38, 25, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  animation: float-b 7.8s ease-in-out infinite alternate;
}

.stage-ring {
  position: relative;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
}

.stage-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stage-ring circle {
  fill: none;
  stroke-width: 2.6;
}

.stage-ring .ring-bg {
  stroke: rgba(45, 51, 39, 0.09);
}

.stage-ring .ring-value {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 85;
}

.stage-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 600;
}

.stage-progress-text {
  min-width: 0;
}

.stage-progress-text strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stage-progress-text span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.stage-sync {
  position: absolute;
  z-index: 7;
  right: -1%;
  top: 48%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.68);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 30px -24px rgba(43, 38, 25, 0.42);
  animation: float-c 8.2s ease-in-out infinite alternate;
}

.stage-sync .avatar {
  width: 25px;
  height: 25px;
  font-size: 8px;
}

.stage-sync-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.stage-sync-text strong {
  font-size: 9.5px;
  font-weight: 600;
}

.stage-sync-text span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

@keyframes float-a {
  from { transform: translateY(0) rotate(-6deg); }
  to { transform: translateY(-12px) rotate(-4.2deg); }
}

@keyframes float-b {
  from { transform: translateY(0) rotate(5deg); }
  to { transform: translateY(11px) rotate(3.2deg); }
}

@keyframes float-c {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-9px) rotate(-2.2deg); }
}

/* feature strip */

.section-shell {
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading h2 {
  max-width: 620px;
  font-size: clamp(28px, 3.1vw, 43px);
  font-weight: 580;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.section-heading p {
  max-width: 280px;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  min-height: 238px;
  padding: 25px 25px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow: 0 22px 54px -38px rgba(45, 42, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.5s var(--ease-out), background 0.4s ease, box-shadow 0.5s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.53);
  box-shadow: 0 38px 74px -44px rgba(45, 42, 30, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -45px;
  top: -65px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(233, 111, 79, 0.08);
  filter: blur(8px);
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  color: var(--olive);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.feature-icon .ico {
  width: 19px;
  height: 19px;
}

.feature-num {
  color: rgba(49, 55, 43, 0.34);
  font-family: var(--font-serif);
  font-size: 21px;
  font-style: italic;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 580;
  letter-spacing: -0.03em;
}

.feature-card p {
  max-width: 310px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.feature-card:hover .feature-link {
  opacity: 1;
  transform: translateY(0);
}

.feature-link .ico {
  width: 12px;
  height: 12px;
}

/* closing */

.closing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: 32px;
  margin-top: 78px;
  padding: 52px 56px;
  overflow: hidden;
  border-radius: 36px;
  color: #f7f3e9;
  background:
    radial-gradient(90% 160% at 100% 116%, rgba(176, 128, 86, 0.45) 0%, rgba(176, 128, 86, 0) 58%),
    linear-gradient(125deg, #252e23 0%, #303b2d 62%, #3b4534 100%);
  box-shadow: 0 44px 100px -56px rgba(35, 43, 32, 0.62);
}

.closing::before {
  content: "";
  position: absolute;
  left: -12%;
  top: -45%;
  width: 55%;
  height: 140%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  transform: rotate(24deg);
}

.closing-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.closing .eyebrow {
  color: rgba(239, 235, 222, 0.6);
}

.closing h2 {
  margin: 18px 0 16px;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.closing h2 em {
  color: #e8a88f;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.closing p {
  max-width: 420px;
  color: rgba(244, 240, 228, 0.62);
  font-size: 13px;
  line-height: 1.9;
}

.closing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.closing .btn-dark {
  --btn-bg: #f7f3e9;
  --btn-color: var(--olive);
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.5);
}

.closing .btn-dark:hover {
  --btn-bg: #fffdf6;
}

.closing .btn-ghost {
  --btn-color: rgba(247, 243, 233, 0.72);
}

.closing .btn-ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-color: #fff;
}

.closing-art {
  position: relative;
  z-index: 1;
  height: 280px;
}

.closing-art .art {
  position: absolute;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.52);
}

.closing-art .art img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
}

.closing-art .art:nth-child(1) {
  right: 28%;
  top: 10%;
  z-index: 2;
  width: 45%;
  aspect-ratio: 4 / 5;
  transform: rotate(-6deg);
}

.closing-art .art:nth-child(2) {
  right: 0;
  top: 0;
  width: 38%;
  aspect-ratio: 1;
  transform: rotate(7deg);
}

.closing-art .art:nth-child(3) {
  right: 3%;
  bottom: 0;
  z-index: 3;
  width: 46%;
  aspect-ratio: 3 / 2;
  transform: rotate(-2deg);
}

.closing-stamp {
  position: absolute;
  left: 3%;
  bottom: 3%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(251, 248, 239, 0.78);
  background: rgba(25, 31, 23, 0.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.closing-stamp .avatar {
  width: 21px;
  height: 21px;
  font-size: 7px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1480px, calc(100% - 56px));
  margin: 34px auto 0;
  padding: 24px 0 10px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.site-footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer .brand-mark {
  width: 24px;
  height: 24px;
}

.site-footer .brand-mark svg {
  width: 13px;
  height: 13px;
}

.site-footer .brand-mark::after {
  right: 4px;
  bottom: 4px;
  width: 4px;
  height: 4px;
}

.site-footer .dot-sep {
  margin: 0 7px;
  opacity: 0.5;
}

/* =========================================================
   Room shell
   ========================================================= */

.room-page {
  min-height: 100vh;
  padding-bottom: 10px;
}

.room-topbar {
  position: sticky;
  z-index: 50;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1570px, calc(100% - 40px));
  min-height: 64px;
  margin: 14px auto 0;
  padding: 8px 11px 8px 17px;
  border-radius: 23px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  flex: 0 1 auto;
}

.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
  flex: 0 0 auto;
}

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

.room-crumb-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.room-crumb-title {
  overflow: hidden;
  max-width: 240px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 580;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.26);
  font-size: 10px;
  letter-spacing: 0.03em;
  transition: color 0.3s ease, background 0.3s ease;
}

.sync-dot {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7c9d75;
}

.sync-chip[data-state="online"] .sync-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(124, 157, 117, 0.4);
  border-radius: 50%;
  animation: ping 2.6s ease-out infinite;
}

.sync-chip[data-state="connecting"] .sync-dot {
  background: #c7a15d;
}

.sync-chip[data-state="offline"] {
  color: #a26655;
  background: rgba(233, 111, 79, 0.08);
}

.sync-chip[data-state="offline"] .sync-dot {
  background: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.presence-cluster {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 4px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.presence-cluster .avatar {
  width: 27px;
  height: 27px;
  font-size: 8.5px;
}

.presence-cluster .avatar-stack .avatar {
  margin-left: -8px;
}

.presence-text {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  white-space: nowrap;
}

.presence-text strong {
  font-weight: 600;
}

.topbar-right .icon-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.26);
}

.topbar-upload {
  height: 38px;
  padding: 0 15px;
  font-size: 11.5px;
}

.room-menu-wrap {
  position: relative;
}

.menu-pop {
  position: absolute;
  z-index: 60;
  right: 0;
  top: calc(100% + 10px);
  width: 210px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(251, 248, 241, 0.92);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  box-shadow: 0 26px 50px -24px rgba(38, 39, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform-origin: top right;
  animation: menu-in 0.22s var(--ease-out);
}

.menu-pop button,
.menu-pop a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  text-align: left;
}

.menu-pop button:hover,
.menu-pop a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.menu-pop .ico {
  width: 15px;
  height: 15px;
  opacity: 0.7;
}

.menu-pop .danger {
  color: #b45e48;
}

.menu-pop hr {
  margin: 5px 7px;
}

.menu-label {
  padding: 7px 10px 5px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.room-main {
  width: min(1520px, calc(100% - 56px));
  margin: 0 auto;
  padding: 33px 0 84px;
}

.room-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 20px;
}

.room-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.room-kicker .kicker-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--line-strong);
}

.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 8px 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 7px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.38);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.code-chip:hover {
  background: rgba(255, 255, 255, 0.68);
}

.code-chip .ico {
  width: 11px;
  height: 11px;
  opacity: 0.58;
}

.room-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.room-title {
  font-size: clamp(30px, 3.25vw, 46px);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 1.08;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #6f8769;
  background: rgba(255, 255, 255, 0.36);
  font-size: 9.5px;
  font-weight: 530;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.is-locked {
  color: #a56b4f;
  background: rgba(233, 111, 79, 0.09);
}

.room-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 11.5px;
}

.room-subline .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.room-subline strong {
  color: var(--ink-soft);
  font-weight: 530;
}

.room-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 11.5px;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.segmented button:hover {
  color: var(--ink-soft);
}

.segmented button.active {
  color: var(--cream);
  background: var(--olive);
  box-shadow: 0 7px 14px -10px rgba(35, 43, 32, 0.55);
}

.seg-count {
  min-width: 15px;
  color: inherit;
  font-size: 9px;
  opacity: 0.58;
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.chip {
  height: 31px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.24);
  font-size: 10.5px;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.chip:hover {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.48);
}

.chip.active {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 16px -14px rgba(38, 39, 30, 0.3);
}

.gallery-note {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 334px;
  align-items: start;
  gap: 24px;
}

.gallery-wrap {
  min-width: 0;
}

.gallery {
  column-count: 3;
  column-gap: 16px;
}

.photo-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 5px;
  break-inside: avoid;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.33);
  box-shadow: 0 18px 42px -32px rgba(41, 40, 28, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background 0.4s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 55px -34px rgba(41, 40, 28, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.photo-card.is-picked {
  background: rgba(255, 250, 244, 0.76);
  box-shadow: 0 0 0 1.5px rgba(233, 111, 79, 0.86), 0 24px 50px -34px rgba(140, 63, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.photo-card.is-picked:hover {
  box-shadow: 0 0 0 1.5px rgba(233, 111, 79, 0.96), 0 32px 60px -34px rgba(140, 63, 42, 0.48);
}

.photo-card.is-removing {
  animation: card-out 0.3s var(--ease-out) forwards;
}

.photo-card.is-entering {
  animation: card-in 0.55s var(--ease-out) both;
}

.photo-visual {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, #e6e0d5, #d6d1c3);
}

.photo-hit {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.photo-hit img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ratio, 3 / 4);
  object-fit: cover;
  transition: transform 0.85s var(--ease-out), filter 0.5s ease;
}

.photo-card:hover .photo-hit img {
  transform: scale(1.025);
}

.photo-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(24, 25, 20, 0.17) 0%, transparent 26%),
    linear-gradient(0deg, rgba(21, 23, 18, 0.64) 0%, rgba(21, 23, 18, 0.06) 38%, transparent 53%);
  transition: opacity 0.4s ease;
}

.photo-card:hover .photo-wash {
  opacity: 0.94;
}

.card-topline {
  position: absolute;
  z-index: 3;
  top: 11px;
  left: 11px;
  right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.card-cat {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 253, 247, 0.92);
  background: rgba(27, 29, 23, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 6px rgba(21, 23, 18, 0.18);
}

.picked-flag {
  display: none;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff9f3;
  background: var(--accent);
  box-shadow: 0 4px 12px -5px rgba(173, 72, 45, 0.65);
  font-size: 8.5px;
  font-weight: 560;
  letter-spacing: 0.04em;
}

.picked-flag .ico {
  width: 10px;
  height: 10px;
  stroke-width: 2.4;
}

.photo-card.is-picked .picked-flag {
  display: inline-flex;
}

.photo-card.is-picked .card-cat {
  display: none;
}

.card-bottom {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 13px 12px;
  color: rgba(255, 253, 248, 0.97);
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(20, 22, 17, 0.26);
}

.card-title-block {
  min-width: 0;
}

.card-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.card-voters {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 4px;
}

.card-voters .avatar {
  width: 21px;
  height: 21px;
  margin-left: -6px;
  border-width: 1.2px;
  border-color: rgba(255, 252, 245, 0.78);
  font-size: 7px;
  box-shadow: none;
}

.voter-count {
  margin-left: 5px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 8.5px;
  white-space: nowrap;
}

.pick-btn {
  position: absolute;
  z-index: 4;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fffdf8;
  background: rgba(30, 32, 25, 0.17);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 16px -8px rgba(24, 25, 19, 0.4);
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-spring), border-color 0.25s ease;
}

.pick-btn:hover {
  background: rgba(255, 253, 248, 0.28);
  transform: scale(1.06);
}

.pick-btn .ico {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.pick-btn.is-picked {
  border-color: transparent;
  color: #fffaf4;
  background: var(--accent);
  box-shadow: 0 7px 18px -8px rgba(190, 72, 43, 0.72);
}

.pick-btn.is-picked .ico {
  fill: currentColor;
  stroke: currentColor;
}

.pick-btn.just-picked {
  animation: heart-pop 0.5s var(--ease-spring);
}

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

.photo-card.is-picked .photo-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 250, 242, 0.35);
  border-radius: 16px;
  pointer-events: none;
}

.gallery-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 40px 24px;
  border: 1px dashed rgba(83, 89, 72, 0.2);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.22);
  text-align: center;
}

.gallery-empty .empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 15px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.46);
}

.gallery-empty h3 {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 560;
}

.gallery-empty p {
  margin-top: 6px;
  font-size: 11.5px;
}

.gallery-empty button {
  margin-top: 15px;
}

/* side rail */

.side-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 13px;
}

.rail-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
  box-shadow: 0 24px 55px -40px rgba(45, 42, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.rail-head strong {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.rail-head .rail-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #789071;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.progress-main {
  display: flex;
  align-items: center;
  gap: 17px;
}

.progress-ring {
  position: relative;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 3.2;
}

.progress-ring .ring-bg {
  stroke: rgba(43, 50, 39, 0.08);
}

.progress-ring .ring-value {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.65s var(--ease-out);
}

.progress-ring .ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.progress-ring .ring-center strong {
  font-size: 19px;
  font-weight: 590;
  letter-spacing: -0.04em;
}

.progress-ring .ring-center span {
  margin-top: 4px;
  color: var(--faint);
  font-size: 8.5px;
}

.progress-copy strong {
  display: block;
  font-size: 26px;
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1;
}

.progress-copy strong span {
  color: var(--faint);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.progress-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.rail-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 15px 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.55;
}

.rail-hint .ico {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  opacity: 0.6;
}

.rail-card .btn-block {
  height: 42px;
  font-size: 11.5px;
}

.people-list {
  display: grid;
  gap: 4px;
}

.person-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  padding: 4px 5px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.person-row:hover {
  background: rgba(255, 255, 255, 0.42);
}

.person-row .avatar {
  width: 30px;
  height: 30px;
  font-size: 8.5px;
}

.person-copy {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.person-name {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-you {
  color: var(--faint);
  font-size: 9px;
}

.person-role {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 4px;
  color: #8c7b5d;
  background: rgba(147, 122, 83, 0.1);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.person-state {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-size: 8.5px;
  white-space: nowrap;
}

.person-state.online {
  color: #7c9875;
}

.person-state .presence-dot {
  width: 4px;
  height: 4px;
  box-shadow: none;
}

.person-state:not(.online) .presence-dot {
  background: #c2c2b7;
}

.activity-card {
  max-height: 340px;
  overflow: hidden;
}

.activity-list {
  position: relative;
  display: grid;
  gap: 0;
  max-height: 244px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 96, 80, 0.18) transparent;
  mask-image: linear-gradient(180deg, black 0%, black calc(100% - 18px), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black calc(100% - 18px), transparent 100%);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 3px 8px 0;
  border-top: 1px solid rgba(44, 50, 40, 0.06);
  animation: feed-in 0.4s var(--ease-out) both;
}

.activity-item:first-child {
  border-top: 0;
}

.activity-item .avatar {
  width: 22px;
  height: 22px;
  font-size: 7px;
  border-width: 1px;
}

.activity-copy {
  min-width: 0;
  flex: 1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.activity-copy strong {
  color: var(--ink-soft);
  font-weight: 550;
}

.activity-time {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 8px;
}

.activity-empty {
  padding: 15px 0 9px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.7;
}

/* empty room */

.empty-room {
  display: grid;
  place-items: center;
  min-height: 510px;
  padding: 48px 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 60px -44px rgba(45, 42, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  text-align: center;
}

.empty-room-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 23px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 25px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 30px -26px rgba(45, 42, 30, 0.32);
}

.empty-room-icon .ico {
  width: 28px;
  height: 28px;
  stroke-width: 1.45;
}

.empty-room-icon::before,
.empty-room-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.empty-room-icon::before {
  top: -4px;
  right: 7px;
}

.empty-room-icon::after {
  bottom: 4px;
  left: -5px;
  width: 6px;
  height: 6px;
  background: var(--sage);
}

.empty-room h2 {
  font-size: 24px;
  font-weight: 580;
  letter-spacing: -0.035em;
}

.empty-room p {
  max-width: 330px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.empty-room .btn {
  margin-top: 22px;
}

.empty-room .empty-hint {
  margin-top: 13px;
  color: var(--faint);
  font-size: 9.5px;
}

/* mobile dock */

.mobile-dock {
  position: fixed;
  z-index: 45;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 8px 9px 8px 13px;
  border-radius: 21px;
  background: rgba(250, 247, 239, 0.78);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  backdrop-filter: blur(28px) saturate(145%);
  box-shadow: 0 18px 40px -20px rgba(42, 41, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.dock-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.dock-ring {
  position: relative;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
}

.dock-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dock-ring circle {
  fill: none;
  stroke-width: 3;
}

.dock-ring .ring-bg {
  stroke: rgba(43, 50, 39, 0.08);
}

.dock-ring .ring-value {
  stroke: var(--accent);
  stroke-linecap: round;
}

.dock-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 600;
}

.dock-copy {
  min-width: 0;
}

.dock-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 590;
  letter-spacing: -0.02em;
}

.dock-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
}

.dock-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.4);
}

.dock-icon .ico {
  width: 17px;
  height: 17px;
}

.dock-picks {
  height: 43px;
  padding: 0 15px;
  font-size: 11px;
}

.upload-fab {
  position: fixed;
  z-index: 44;
  right: 17px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: var(--cream);
  background: var(--olive);
  box-shadow: 0 14px 28px -16px rgba(34, 42, 31, 0.6);
  font-size: 10.5px;
}

.upload-fab .ico {
  width: 15px;
  height: 15px;
}

/* =========================================================
   Lightbox
   ========================================================= */

.lightbox-layer {
  position: fixed;
  z-index: 85;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fade-in 0.3s ease both;
}

.lightbox-scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 27, 21, 0.56);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  backdrop-filter: blur(30px) saturate(120%);
}

.lightbox-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1460px, 100%);
  height: min(940px, calc(100dvh - 36px));
  min-height: 0;
}

.lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 50px;
  flex: 0 0 auto;
  padding: 0 3px 12px;
  color: rgba(250, 247, 238, 0.82);
}

.lb-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lb-top-left .brand-mark {
  width: 28px;
  height: 28px;
  color: var(--olive);
  background: rgba(250, 247, 238, 0.9);
}

.lb-top-left .brand-mark::after {
  width: 4px;
  height: 4px;
  right: 6px;
  bottom: 5px;
}

.lb-top-left .brand-mark svg {
  width: 16px;
  height: 16px;
}

.lb-top-label {
  overflow: hidden;
  color: rgba(250, 247, 238, 0.65);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-top-label strong {
  color: rgba(252, 249, 241, 0.92);
  font-weight: 530;
}

.lb-counter {
  color: rgba(250, 247, 238, 0.55);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.lb-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(250, 247, 238, 0.88);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(6deg);
}

.lb-close .ico {
  width: 18px;
  height: 18px;
}

.lb-body {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 342px;
  align-items: stretch;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
}

.lb-nav {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(250, 247, 238, 0.86);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

.lb-nav:disabled {
  opacity: 0.24;
}

.lb-nav .ico {
  width: 21px;
  height: 21px;
}

.lb-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 25px;
  background: rgba(22, 24, 19, 0.3);
}

.lb-image-blur {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(44px) saturate(115%);
  opacity: 0.3;
  transform: scale(1.06);
  pointer-events: none;
}

.lb-image {
  position: relative;
  z-index: 1;
  display: block;
  max-width: calc(100% - 28px);
  max-height: calc(100% - 28px);
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 38px 80px -35px rgba(0, 0, 0, 0.7);
  animation: image-in 0.45s var(--ease-out) both;
}

.lb-image-wrap.portrait .lb-image {
  max-width: min(100% - 28px, 610px);
}

.lb-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 25px 23px 19px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.73);
  border-radius: 25px;
  background: rgba(250, 247, 239, 0.83);
  -webkit-backdrop-filter: blur(32px) saturate(135%);
  backdrop-filter: blur(32px) saturate(135%);
  box-shadow: 0 30px 70px -35px rgba(21, 23, 18, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  scrollbar-width: thin;
}

.lb-panel .eyebrow {
  gap: 7px;
  margin-bottom: 14px;
  font-size: 8.5px;
}

.lb-panel .eyebrow .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.lb-title {
  font-size: clamp(27px, 2.5vw, 37px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.lb-note {
  margin-top: 11px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.7;
}

.lb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.lb-meta span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.32);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.lb-divider {
  height: 1px;
  margin: 20px 0 17px;
  background: var(--line);
}

.lb-voter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.lb-voter-head strong {
  color: var(--ink-soft);
  font-weight: 560;
}

.lb-voters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 38px;
  margin-top: 10px;
}

.voter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 9px 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.38);
  font-size: 9.5px;
}

.voter-chip .avatar {
  width: 23px;
  height: 23px;
  font-size: 7px;
}

.voter-chip.is-you {
  border-color: rgba(233, 111, 79, 0.26);
  background: rgba(233, 111, 79, 0.07);
}

.no-voters {
  color: var(--faint);
  font-size: 10px;
}

.lb-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.lb-actions .btn {
  height: 48px;
  font-size: 12px;
}

.lb-actions .btn-dark.is-picked {
  --btn-bg: var(--accent);
  box-shadow: 0 14px 28px -16px rgba(190, 72, 43, 0.56);
}

.lb-actions .btn-dark.is-picked:hover {
  --btn-bg: var(--accent-deep);
}

.lb-actions .btn-dark .ico {
  width: 16px;
  height: 16px;
}

.lb-panel-hint {
  margin-top: 13px;
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  text-align: center;
}

.lb-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 75px;
  flex: 0 0 auto;
  padding: 13px 3px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lb-strip::-webkit-scrollbar {
  display: none;
}

.lb-thumb {
  position: relative;
  width: 49px;
  height: 49px;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  opacity: 0.42;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.lb-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
}

.lb-thumb:hover {
  opacity: 0.78;
  transform: translateY(-2px);
}

.lb-thumb.active {
  border-color: rgba(250, 247, 238, 0.7);
  opacity: 1;
}

.lb-thumb.is-picked::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--accent);
}

/* =========================================================
   Modals
   ========================================================= */

.modal-layer {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-layer.is-open {
  opacity: 1;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(34, 36, 28, 0.34);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
}

.modal {
  position: relative;
  z-index: 1;
  width: min(515px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background: rgba(250, 247, 240, 0.9);
  -webkit-backdrop-filter: blur(38px) saturate(140%);
  backdrop-filter: blur(38px) saturate(140%);
  box-shadow: 0 46px 100px -36px rgba(29, 30, 23, 0.43), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: translateY(14px) scale(0.975);
  transition: transform 0.35s var(--ease-out);
  scrollbar-width: thin;
}

.modal-layer.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-lg {
  width: min(730px, 100%);
}

.modal-xl {
  width: min(880px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-step::before {
  content: "";
  width: 15px;
  height: 1px;
  background: var(--line-strong);
}

.modal h2 {
  font-size: 27px;
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.modal-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
}

.modal-close .ico {
  width: 15px;
  height: 15px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > label,
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 540;
  letter-spacing: 0.01em;
}

.field-note {
  color: var(--faint);
  font-size: 9px;
  font-weight: 400;
}

.input,
.select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(72, 78, 64, 0.12);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 2px rgba(44, 48, 38, 0.03);
  font-size: 13px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.input::placeholder {
  color: var(--faint);
}

.input:focus,
.select:focus {
  outline: 0;
  border-color: rgba(233, 111, 79, 0.55);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(233, 111, 79, 0.08);
}

.input-code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 17px;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f7368' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

.field-hint {
  color: var(--faint);
  font-size: 9px;
  line-height: 1.5;
}

.form-error {
  display: none;
  padding: 9px 11px;
  border: 1px solid rgba(196, 90, 64, 0.16);
  border-radius: 9px;
  color: #af5b43;
  background: rgba(233, 111, 79, 0.07);
  font-size: 10.5px;
}

.form-error.show {
  display: block;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 21px;
}

.modal-actions .btn {
  height: 46px;
  font-size: 12px;
}

.modal-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.modal-footnote {
  margin-top: 14px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-choice {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
}

.color-choice::before {
  content: "";
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.color-choice.active {
  border-color: var(--swatch);
}

.color-choice.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 7px;
  height: 7px;
  border: 1.5px solid #fbf8f1;
  border-radius: 50%;
  background: var(--swatch);
}

.join-cover {
  position: relative;
  height: 142px;
  margin: -26px -26px 23px;
  overflow: hidden;
  border-radius: 27px 27px 0 0;
}

.join-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: saturate(0.9);
}

.join-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(25, 28, 21, 0.58), transparent 70%);
}

.join-cover-copy {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #fffdf7;
}

.join-cover-copy h3 {
  font-size: 20px;
  font-weight: 580;
  letter-spacing: -0.03em;
}

.join-cover-copy p {
  margin-top: 3px;
  color: rgba(255, 253, 247, 0.67);
  font-size: 9.5px;
}

.join-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 253, 247, 0.86);
  background: rgba(24, 26, 20, 0.24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 8.5px;
  white-space: nowrap;
}

.join-people {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 15px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.26);
}

.join-people .avatar {
  width: 26px;
  height: 26px;
  font-size: 8px;
}

.join-people p {
  color: var(--muted);
  font-size: 9.5px;
}

.join-people strong {
  color: var(--ink-soft);
  font-weight: 540;
}

/* share */

.share-card {
  position: relative;
  margin: 4px 0 16px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 19px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(233, 111, 79, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.38);
}

.share-code-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.share-code-label {
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.share-code {
  margin-top: 5px;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
}

.share-art {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.share-art .avatar {
  width: 27px;
  height: 27px;
  font-size: 8px;
}

.share-art .arrow {
  color: var(--faint);
  font-size: 14px;
}

.share-link-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 17px;
  padding: 5px 5px 5px 12px;
  border: 1px solid rgba(63, 70, 57, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
}

.share-link-box input {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  outline: 0 !important;
}

.share-link-box .btn {
  height: 34px;
  padding: 0 12px;
  font-size: 10px;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.share-actions .btn {
  height: 44px;
  font-size: 11px;
}

.share-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 15px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.6;
}

.share-note .ico {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

/* join success */

.join-success {
  padding: 8px 0 2px;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 5px auto 18px;
  border-radius: 50%;
  color: #fffaf2;
  background: var(--accent);
  box-shadow: 0 16px 30px -16px rgba(190, 72, 43, 0.55);
}

.success-mark .ico {
  width: 27px;
  height: 27px;
  stroke-width: 1.8;
}

.join-success h2 {
  font-size: 25px;
}

.join-success p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
}

.join-success .btn {
  margin-top: 22px;
}

/* upload */

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 28px;
  border: 1px dashed rgba(83, 89, 72, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.24);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: rgba(233, 111, 79, 0.55);
  background: rgba(255, 255, 255, 0.4);
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  margin: 0 auto 13px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 15px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.52);
}

.dropzone-icon .ico {
  width: 21px;
  height: 21px;
}

.dropzone strong {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 540;
}

.dropzone p {
  margin-top: 5px;
  color: var(--faint);
  font-size: 9.5px;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-previews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.upload-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 11px;
  background: #e2ddd2;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview .remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(28, 30, 23, 0.48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.upload-preview .remove .ico {
  width: 10px;
  height: 10px;
}

.upload-preview .status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fffdf7;
  background: rgba(37, 42, 32, 0.46);
  font-size: 9px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.upload-progress {
  display: none;
  gap: 8px;
  margin-top: 14px;
}

.upload-progress.show {
  display: grid;
}

.progress-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(44, 50, 40, 0.08);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s var(--ease-out);
}

.upload-progress p {
  color: var(--muted);
  font-size: 9.5px;
}

/* summary / final */

.summary-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 0 17px;
  border-bottom: 1px solid var(--line);
}

.summary-count strong {
  font-size: 36px;
  font-weight: 590;
  letter-spacing: -0.06em;
  line-height: 1;
}

.summary-count span {
  margin-left: 5px;
  color: var(--faint);
  font-size: 12px;
}

.summary-count p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
}

.summary-avatars {
  display: flex;
  align-items: center;
  gap: 9px;
}

.summary-avatars .avatar-stack .avatar {
  width: 26px;
  height: 26px;
  font-size: 8px;
}

.summary-avatars span {
  color: var(--faint);
  font-size: 9px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 300px;
  margin-top: 17px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.summary-item {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  background: #ded9cd;
}

.summary-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.summary-item:hover img {
  transform: scale(1.04);
}

.summary-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 7px 6px;
  overflow: hidden;
  color: #fffdf7;
  background: linear-gradient(0deg, rgba(24, 26, 20, 0.66), transparent);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-empty {
  padding: 44px 20px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.summary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.summary-actions .btn {
  height: 43px;
  font-size: 11px;
}

.summary-actions .btn-dark {
  margin-left: auto;
}

.locked-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(164, 115, 86, 0.16);
  border-radius: 10px;
  color: #94644e;
  background: rgba(214, 176, 143, 0.12);
  font-size: 10px;
  line-height: 1.5;
}

.locked-banner .ico {
  width: 14px;
  height: 14px;
}

.confirm-copy {
  padding: 2px 0 3px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.8;
}

.confirm-copy strong {
  color: var(--ink);
  font-weight: 560;
}

/* error page */

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.error-card {
  width: min(440px, 100%);
  padding: 38px 32px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  text-align: center;
}

.error-card .brand-mark {
  margin: 0 auto 22px;
}

.error-card h1 {
  font-size: 28px;
  font-weight: 590;
  letter-spacing: -0.045em;
}

.error-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.error-card .btn {
  margin-top: 22px;
}

/* =========================================================
   Toasts
   ========================================================= */

.toast-root {
  position: fixed;
  z-index: 130;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: min(420px, calc(100% - 28px));
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 8px 15px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(252, 249, 242, 0.85);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 18px 36px -22px rgba(38, 39, 30, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 11px;
  line-height: 1.4;
  pointer-events: auto;
  animation: toast-in 0.45s var(--ease-spring) both;
}

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

.toast .avatar {
  width: 28px;
  height: 28px;
  font-size: 8px;
}

.toast .toast-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--olive);
  background: rgba(158, 172, 152, 0.24);
}

.toast .toast-icon .ico {
  width: 14px;
  height: 14px;
}

.toast .toast-text {
  min-width: 0;
}

.toast .toast-text strong {
  color: var(--ink);
  font-weight: 560;
}

.toast .toast-text span {
  color: var(--muted);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1320px) {
  .hero h1 {
    font-size: clamp(48px, 6.1vw, 78px);
  }

  .hero-stage {
    max-width: 585px;
  }

  .room-grid {
    grid-template-columns: minmax(0, 1fr) 314px;
    gap: 20px;
  }

  .gallery {
    column-count: 2;
  }
}

@media (max-width: 1120px) {
  .hero {
    gap: 10px;
  }

  .hero-stage {
    max-width: 500px;
  }

  .stage-progress {
    width: 47%;
  }

  .stage-sync {
    right: 0;
  }

  .presence-text span:not(.presence-dot) {
    display: none;
  }

  .topbar-divider,
  .room-crumb-label {
    display: none;
  }

  .room-crumb-title {
    max-width: 170px;
  }

  .room-title {
    font-size: 38px;
  }
}

@media (max-width: 980px) {
  .site-nav {
    width: calc(100% - 32px);
    height: 60px;
    margin-top: 12px;
    padding-left: 13px;
  }

  .nav-pill {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    width: calc(100% - 40px);
    min-height: 0;
    padding: 55px 0 42px;
  }

  .hero-copy {
    padding-left: 0;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(52px, 10vw, 76px);
    max-width: 640px;
  }

  .hero-stage {
    width: min(100%, 570px);
    max-width: none;
    margin: 20px auto 0;
  }

  .section-shell {
    width: calc(100% - 40px);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-heading p {
    max-width: 440px;
    padding-bottom: 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
    padding: 22px;
  }

  .feature-top {
    margin-bottom: 22px;
  }

  .feature-link {
    opacity: 1;
    transform: none;
  }

  .closing {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 50px;
    padding: 36px 30px 26px;
  }

  .closing-art {
    height: 210px;
    max-width: 420px;
    margin-left: auto;
    width: 100%;
  }

  .site-footer {
    width: calc(100% - 40px);
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }

  .room-topbar {
    width: calc(100% - 24px);
    top: 8px;
    margin-top: 8px;
    min-height: 58px;
    padding: 7px 9px 7px 12px;
    border-radius: 19px;
    gap: 9px;
  }

  .topbar-right {
    gap: 5px;
  }

  .presence-cluster {
    padding-right: 5px;
  }

  .presence-text {
    display: none;
  }

  .topbar-upload {
    width: 38px;
    padding: 0;
    font-size: 0;
  }

  .topbar-upload .ico {
    width: 17px;
    height: 17px;
  }

  .topbar-right .icon-btn {
    width: 36px;
    height: 36px;
  }

  .topbar-right .btn-sm {
    height: 36px;
  }

  .room-main {
    width: calc(100% - 32px);
    padding-top: 25px;
    padding-bottom: 120px;
  }

  .room-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .room-tools {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .room-tools::-webkit-scrollbar {
    display: none;
  }

  .room-grid {
    grid-template-columns: 1fr;
  }

  .side-rail {
    display: none;
  }

  .mobile-dock {
    display: flex;
  }

  .upload-fab {
    display: inline-flex;
  }

  .room-title {
    font-size: 34px;
  }

  .category-row {
    margin-bottom: 14px;
  }

  .gallery-note {
    display: none;
  }

  .gallery {
    column-gap: 12px;
  }

  .photo-card {
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 17px;
  }

  .photo-visual {
    border-radius: 13px;
  }

  .photo-card.is-picked .photo-visual::after {
    border-radius: 13px;
  }

  .pick-btn {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }

  .card-title {
    font-size: 13px;
  }

  .card-bottom {
    padding: 10px 10px 9px;
  }

  .card-sub {
    font-size: 8px;
  }

  .card-voters .avatar {
    width: 19px;
    height: 19px;
  }

  .lb-body {
    grid-template-columns: 38px minmax(0, 1fr) 300px;
    gap: 9px;
  }

  .lb-nav {
    width: 38px;
    height: 38px;
  }

  .lb-panel {
    padding: 20px 18px 16px;
  }

  .toast-root {
    bottom: calc(95px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  .site-nav {
    width: calc(100% - 24px);
    margin-top: 10px;
    padding: 0 8px 0 12px;
    height: 56px;
  }

  .site-nav .brand-name {
    font-size: 14.5px;
  }

  .site-nav .brand-mark {
    width: 33px;
    height: 33px;
  }

  .site-nav .brand-mark svg {
    width: 18px;
    height: 18px;
  }

  .site-nav .brand-en {
    display: none;
  }

  .nav-actions .btn {
    height: 38px;
    padding: 0 13px;
    font-size: 11px;
  }

  .nav-actions .show-desktop {
    display: none;
  }

  .hero {
    width: calc(100% - 32px);
    padding: 44px 0 34px;
  }

  .hero h1 {
    margin: 23px 0 19px;
    font-size: clamp(43px, 12.6vw, 62px);
    letter-spacing: -0.07em;
  }

  .eyebrow-pill {
    height: 30px;
    font-size: 10px;
  }

  .hero-lede {
    font-size: 14.2px;
    line-height: 1.85;
  }

  .hero-actions {
    margin-top: 25px;
  }

  .hero-actions .btn {
    height: 48px;
    padding: 0 19px;
    font-size: 12.5px;
  }

  .hero-actions .btn-glass {
    padding: 0 14px;
  }

  .hero-proof {
    margin-top: 26px;
  }

  .hero-stage {
    width: 100%;
    margin-top: 22px;
    aspect-ratio: 1 / 1.03;
  }

  .float-a {
    left: -1%;
    top: 22%;
    width: 24%;
  }

  .float-b {
    width: 27%;
  }

  .float-c {
    right: -1%;
  }

  .stage-main {
    left: 23%;
    top: 7%;
    width: 49%;
  }

  .stage-progress {
    left: 0;
    bottom: 7%;
    width: 48%;
    padding: 9px 10px;
    border-radius: 14px;
    gap: 8px;
  }

  .stage-ring {
    width: 35px;
    height: 35px;
  }

  .stage-progress-text strong {
    font-size: 9.5px;
  }

  .stage-progress-text span {
    font-size: 8px;
  }

  .stage-sync {
    top: 47%;
    right: 0;
    padding: 6px 9px 6px 6px;
    gap: 6px;
  }

  .stage-sync .avatar {
    width: 20px;
    height: 20px;
  }

  .stage-sync-text strong {
    font-size: 8px;
  }

  .stage-sync-text span {
    font-size: 7px;
  }

  .main-caption h3 {
    font-size: 13px;
  }

  .main-caption p {
    font-size: 8px;
  }

  .stage-main .main-top {
    top: 15px;
    left: 15px;
    right: 15px;
    font-size: 8px;
  }

  .main-fav {
    height: 22px;
    padding: 0 7px;
    font-size: 7.5px;
  }

  .main-fav .ico {
    width: 10px;
    height: 10px;
  }

  .stage-main .main-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .stage-main .main-caption::before {
    left: -14px;
    right: -14px;
    bottom: -14px;
    height: 82px;
  }

  .section-shell {
    width: calc(100% - 32px);
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .section-heading p {
    font-size: 11.5px;
  }

  .feature-card {
    border-radius: 22px;
    padding: 19px;
  }

  .feature-card h3 {
    font-size: 17px;
  }

  .closing {
    width: calc(100% - 32px);
    margin-top: 38px;
    padding: 29px 22px 24px;
    border-radius: 26px;
  }

  .closing h2 {
    font-size: 31px;
  }

  .closing-art {
    height: 180px;
  }

  .closing-actions .btn {
    height: 46px;
    font-size: 12px;
  }

  .site-footer {
    width: calc(100% - 32px);
    padding-top: 16px;
    font-size: 9px;
  }

  .site-footer .footer-note {
    display: none;
  }

  .room-topbar {
    width: calc(100% - 16px);
    margin-top: 6px;
    top: 6px;
    border-radius: 17px;
    min-height: 54px;
  }

  .room-crumbs {
    max-width: 160px;
  }

  .room-crumb-title {
    max-width: 120px;
    font-size: 12.5px;
  }

  .room-topbar .brand-mark {
    width: 32px;
    height: 32px;
  }

  .room-topbar .brand-mark svg {
    width: 17px;
    height: 17px;
  }

  .topbar-center {
    display: none;
  }

  .presence-cluster {
    display: none;
  }

  .topbar-right {
    margin-left: auto;
  }

  .room-main {
    width: calc(100% - 24px);
    padding-top: 23px;
  }

  .room-kicker {
    margin-bottom: 10px;
    font-size: 8.5px;
  }

  .room-kicker .kicker-line {
    width: 16px;
  }

  .room-title {
    font-size: 30px;
    letter-spacing: -0.055em;
  }

  .room-title-row {
    gap: 9px;
  }

  .status-pill {
    height: 22px;
    font-size: 8.5px;
  }

  .room-subline {
    margin-top: 9px;
    font-size: 10.5px;
    gap: 6px;
  }

  .room-subline .sub-hide {
    display: none;
  }

  .room-tools {
    gap: 7px;
  }

  .segmented {
    width: 100%;
    padding: 3px;
  }

  .segmented button {
    flex: 1;
    justify-content: center;
    height: 34px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .category-row {
    margin-top: 2px;
  }

  .chip {
    height: 29px;
    padding: 0 10px;
    font-size: 9.5px;
  }

  .gallery {
    column-gap: 10px;
  }

  .photo-card {
    margin-bottom: 10px;
    border-radius: 15px;
  }

  .photo-visual {
    border-radius: 11px;
  }

  .photo-card.is-picked .photo-visual::after {
    border-radius: 11px;
  }

  .card-topline {
    top: 8px;
    left: 8px;
  }

  .card-cat {
    height: 21px;
    padding: 0 7px;
    font-size: 7.5px;
  }

  .picked-flag {
    height: 21px;
    padding: 0 6px;
    font-size: 7.5px;
  }

  .pick-btn {
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
  }

  .pick-btn .ico {
    width: 15px;
    height: 15px;
  }

  .card-bottom {
    padding: 9px 8px 8px;
    gap: 5px;
  }

  .card-title {
    font-size: 12px;
  }

  .card-sub {
    margin-top: 2px;
    font-size: 7px;
  }

  .card-voters {
    padding-left: 0;
  }

  .card-voters .avatar {
    width: 17px;
    height: 17px;
    font-size: 6px;
    border-width: 1px;
  }

  .voter-count {
    margin-left: 3px;
    font-size: 7px;
  }

  .empty-room {
    min-height: 430px;
    padding: 34px 20px;
    border-radius: 22px;
  }

  .empty-room h2 {
    font-size: 21px;
  }

  .mobile-dock {
    left: 9px;
    right: 9px;
    bottom: calc(7px + env(safe-area-inset-bottom));
    min-height: 61px;
    border-radius: 18px;
    padding: 7px 7px 7px 11px;
  }

  .dock-picks {
    height: 39px;
    padding: 0 12px;
    font-size: 10.5px;
  }

  .dock-icon {
    width: 36px;
    height: 36px;
  }

  .upload-fab {
    bottom: calc(80px + env(safe-area-inset-bottom));
    right: 13px;
  }

  .modal-layer {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 91dvh;
    padding: 22px 19px calc(20px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 27px 27px 0 0;
  }

  .modal-lg,
  .modal-xl {
    width: 100%;
  }

  .modal h2 {
    font-size: 23px;
  }

  .join-cover {
    height: 122px;
    margin: -22px -19px 20px;
    border-radius: 26px 26px 0 0;
  }

  .modal-actions {
    gap: 8px;
  }

  .modal-actions .btn {
    flex: 1;
    height: 44px;
    padding: 0 12px;
  }

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

  .modal-actions-right .btn {
    width: 100%;
  }

  .share-code {
    font-size: 25px;
  }

  .share-actions {
    grid-template-columns: 1fr;
  }

  .upload-previews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .summary-actions .btn {
    width: 100%;
  }

  .summary-actions .btn-dark {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .lightbox-layer {
    padding: 0;
  }

  .lightbox-shell {
    width: 100%;
    height: 100dvh;
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
  }

  .lb-topbar {
    height: 46px;
    padding: 0 2px 5px;
  }

  .lb-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
  }

  .lb-image-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: min(56dvh, 520px);
    min-height: 250px;
    border-radius: 18px;
  }

  .lb-image {
    max-width: calc(100% - 14px);
    max-height: calc(100% - 14px);
    border-radius: 10px;
  }

  .lb-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 35px;
    height: 35px;
    transform: translateY(-50%);
  }

  .lb-nav.prev {
    left: 15px;
  }

  .lb-nav.next {
    right: 15px;
  }

  .lb-nav:hover {
    transform: translateY(-50%) scale(1.04);
  }

  .lb-panel {
    flex: 0 0 auto;
    width: 100%;
    max-height: none;
    padding: 17px 15px 13px;
    border-radius: 20px;
    overflow: visible;
  }

  .lb-panel .eyebrow {
    margin-bottom: 9px;
  }

  .lb-title {
    font-size: 27px;
  }

  .lb-note {
    margin-top: 7px;
    font-size: 11.5px;
  }

  .lb-meta {
    margin-top: 10px;
  }

  .lb-divider {
    margin: 13px 0 11px;
  }

  .lb-voters {
    margin-top: 7px;
  }

  .lb-actions {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-top: 13px;
  }

  .lb-actions .btn {
    height: 44px;
  }

  .lb-panel-hint {
    display: none;
  }

  .lb-strip {
    height: 55px;
    padding-top: 7px;
  }

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

  .toast-root {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .toast {
    font-size: 10.5px;
    padding: 7px 12px 7px 7px;
  }

  .toast .avatar,
  .toast .toast-icon {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 41px;
  }

  .hero-actions .btn {
    padding: 0 15px;
    font-size: 11.5px;
  }

  .hero-actions .btn-glass {
    padding: 0 11px;
  }

  .gallery {
    column-gap: 8px;
  }

  .photo-card {
    margin-bottom: 8px;
  }

  .card-voters {
    display: none;
  }

  .card-title {
    font-size: 11.5px;
  }

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

/* =========================================================
   Motion preferences
   ========================================================= */

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

/* keyframes used above */

@keyframes ping {
  0% { transform: scale(0.65); opacity: 0.72; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

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

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes image-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  38% { transform: scale(1.22); }
  70% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

@keyframes card-out {
  to { opacity: 0; transform: scale(0.97); }
}

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

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

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

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