:root {
  color-scheme: light;
  --bg: #fff8f4;
  --panel: #fffefe;
  --ink: #352927;
  --muted: #806f6a;
  --line: #eadbd6;
  --accent: #c85c74;
  --accent-strong: #9f3f58;
  --mint: #4b9b8f;
  --honey: #f3bf67;
  --lilac: #8b7cc3;
  --soft: #fff0f3;
  --soft-mint: #eef8f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 241, 235, 0.97), rgba(249, 253, 248, 0.94) 48%, rgba(255, 247, 230, 0.9)),
    var(--bg);
  color: var(--ink);
}

body.chat-active {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 195, 116, 0.18), transparent 34%),
    linear-gradient(135deg, #211518, #140f12);
}

button,
input,
select {
  font: inherit;
}

.page {
  min-height: 100vh;
}

.feedback-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  justify-items: end;
}

body.chat-active .feedback-widget {
  display: none;
}

.feedback-toggle {
  border: 1px solid rgba(234, 219, 214, 0.88);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #8b3f54;
  box-shadow: 0 16px 34px rgba(90, 55, 45, 0.12);
  cursor: pointer;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.feedback-panel {
  display: none;
  width: min(330px, calc(100vw - 32px));
  border: 1px solid rgba(234, 219, 214, 0.9);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 253, 251, 0.96);
  box-shadow: 0 24px 58px rgba(90, 55, 45, 0.18);
}

.feedback-widget.is-open .feedback-panel {
  display: grid;
  gap: 10px;
}

.feedback-panel input[name="website"] {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.feedback-panel strong {
  color: #3f302d;
}

.feedback-panel textarea,
.feedback-panel input:not([name="website"]) {
  width: 100%;
  border: 1px solid rgba(218, 176, 160, 0.62);
  border-radius: 13px;
  padding: 10px 11px;
  background: #fffaf7;
  color: var(--ink);
}

.feedback-panel textarea {
  min-height: 92px;
  resize: vertical;
}

.feedback-panel button[type="submit"] {
  border: 0;
  border-radius: 13px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #c95873, #9b7ad8);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.feedback-panel small {
  color: var(--muted);
  line-height: 1.45;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 500px);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: 92vh;
  padding: 44px clamp(18px, 5vw, 84px) 28px;
}

.hero:has(.chat-panel.is-chat-mode) {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-height: 100svh;
  padding-top: clamp(18px, 3vw, 34px);
}

.hero:has(.chat-panel.is-chat-mode) .hero-copy {
  display: none;
}

.hero:has(.chat-panel.is-chat-mode) .chat-panel {
  justify-self: center;
  width: min(1180px, 100%);
  max-width: min(1180px, 100%);
}

body.chat-active .page > section:not(.hero) {
  display: none;
}

body.chat-active .hero {
  display: block;
  width: 100%;
  min-height: 100svh;
  padding: 0;
}

body.chat-active .hero-copy {
  display: none;
}

body.chat-active .chat-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  max-width: none;
  height: 100svh;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 128, 0.12), transparent 30%),
    linear-gradient(180deg, #22161a, #120e11);
  box-shadow: none;
}

body.chat-active .hero:has(.chat-panel.is-chat-mode) .chat-panel,
body.chat-active .hero .chat-panel {
  justify-self: stretch;
  width: 100vw;
  max-width: none;
}

body.chat-active .chat-panel::before {
  display: none;
}

.hero-copy h1 {
  margin: 8px 0 14px;
  max-width: 680px;
  color: #302421;
  font-size: clamp(52px, 7.4vw, 98px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 18px 40px rgba(156, 92, 85, 0.08);
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 800;
}

.lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.85;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.quick-tags span {
  padding: 9px 13px;
  border: 1px solid rgba(200, 92, 116, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #7b5360;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(90, 55, 45, 0.06);
}

.chat-sample {
  display: grid;
  grid-template-columns: 42px minmax(0, 320px);
  gap: 10px 12px;
  align-items: end;
  margin-top: 34px;
}

.sample-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #fff8f1 0 18%, transparent 19%),
    radial-gradient(circle at 34% 35%, #3f2c2c 0 4%, transparent 5%),
    radial-gradient(circle at 66% 35%, #3f2c2c 0 4%, transparent 5%),
    linear-gradient(145deg, #f5a3b2, #f3bf67);
  box-shadow: 0 14px 30px rgba(149, 83, 91, 0.18);
}

.sample-bubble {
  width: fit-content;
  max-width: 320px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.84);
  color: #5d4746;
  box-shadow: 0 16px 36px rgba(90, 55, 45, 0.09);
}

.sample-bubble.reply {
  grid-column: 2;
  border-radius: 18px 18px 6px 18px;
  background: #fff0f3;
  color: #8b3f54;
}

.leaderboard-card {
  width: min(360px, 100%);
  padding: 16px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 44px rgba(90, 55, 45, 0.08);
}

.leaderboard-card > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.leaderboard-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.leaderboard-card > div strong {
  color: #4f3c39;
  font-size: 18px;
}

.leaderboard-card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.leaderboard-card li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 240, 243, 0.62);
  color: #6c5550;
}

.leaderboard-card li strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.leaderboard-section {
  padding: 0 clamp(18px, 5vw, 84px) 44px;
  background: rgba(255, 248, 244, 0.62);
}

.leaderboard-section .leaderboard-card {
  width: min(720px, 100%);
  margin: 0 auto;
}

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

.chat-panel {
  position: relative;
  width: 100%;
  background: rgba(255, 254, 254, 0.92);
  border: 1px solid rgba(234, 219, 214, 0.9);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(94, 59, 58, 0.13);
  min-height: 500px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.chat-panel.is-setup-mode {
  min-height: 620px;
}

.chat-panel.is-setup-mode .setup {
  min-height: 540px;
  align-content: start;
}

.chat-panel.is-chat-mode {
  min-height: 0;
}

.chat-panel.is-chat-mode .panel-top {
  display: none;
}

.chat-panel::before {
  content: "";
  position: absolute;
  inset: -40% -70%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.28) 48%, transparent 62%);
  opacity: 0.24;
  transform: translateX(-28%);
}

.chat-panel > * {
  position: relative;
  z-index: 1;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 241, 244, 0.92), rgba(241, 249, 246, 0.9));
}

.panel-top span,
.panel-top small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel-top strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.panel-top small {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #4b8c81;
}

.setup {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.lobby-mood-strip {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(218, 176, 160, 0.52);
  border-radius: 16px;
  padding: 12px 14px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 214, 128, 0.18), transparent 28%),
    rgba(255, 250, 246, 0.82);
}

.lobby-mood-strip span {
  color: #4b3438;
  font-size: 17px;
  font-weight: 950;
}

.lobby-mood-strip small {
  color: var(--muted);
  line-height: 1.45;
}

.emotion-checkin {
  display: grid;
  gap: 10px;
}

.emotion-checkin > span {
  color: #6d5551;
  font-size: 14px;
  font-weight: 900;
}

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

.emotion-grid .mood-chip {
  min-height: 42px;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 14px;
}

.intro-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  border: 1px solid rgba(218, 176, 160, 0.52);
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 214, 128, 0.16), transparent 26%),
    rgba(255, 252, 248, 0.84);
}

.intro-card span {
  color: #6d5551;
  font-size: 14px;
  font-weight: 900;
}

.intro-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(221, 187, 177, 0.78);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #4b3438;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.intro-card input::placeholder {
  color: #b29691;
  font-weight: 750;
}

.intro-card input:focus {
  border-color: rgba(200, 92, 116, 0.62);
  box-shadow:
    0 0 0 4px rgba(200, 92, 116, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.intro-card small {
  color: #927874;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.avatar-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(218, 176, 160, 0.52);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 22%, rgba(143, 123, 213, 0.12), transparent 28%),
    rgba(255, 252, 248, 0.84);
}

.avatar-preview {
  position: relative;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, #fff5ef 0 15%, transparent 16%),
    radial-gradient(circle at 50% 104%, #b86a7f 0 30%, transparent 31%),
    linear-gradient(135deg, #f5b185, #d06b86);
  box-shadow: 0 12px 24px rgba(90, 55, 45, 0.12);
}

.avatar-preview.has-image,
.message-avatar.has-image {
  background-position: center;
  background-size: cover;
}

.avatar-card strong {
  display: block;
  color: #6d5551;
  font-size: 14px;
  font-weight: 900;
}

.avatar-card small {
  display: block;
  margin-top: 2px;
  color: #927874;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.avatar-card button {
  min-height: 38px;
  border: 1px solid rgba(218, 176, 160, 0.62);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: #9f3f58;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.avatar-card .avatar-clear {
  color: #8a6d67;
}

#website,
input[name="website"] {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field-group {
  display: grid;
  gap: 11px;
}

.field-label,
.setup label {
  color: #4f3c39;
  font-weight: 850;
}

.start-card {
  display: grid;
  gap: 8px;
  min-height: 170px;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(200, 92, 116, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 20%, rgba(243, 191, 103, 0.22), transparent 26%),
    radial-gradient(circle at 86% 78%, rgba(75, 155, 143, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 240, 243, 0.74), rgba(255, 255, 255, 0.78));
}

.start-card span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.start-card strong {
  color: #4f3c39;
  font-size: 28px;
  line-height: 1.2;
}

.start-card p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.mood-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mood-chip,
.topic-chip {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #6c5550;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(90, 55, 45, 0.04);
}

.mood-chip:hover,
.mood-chip.active,
.topic-chip:hover,
.topic-chip.active {
  border-color: rgba(200, 92, 116, 0.42);
  background: var(--soft);
  color: var(--accent-strong);
}

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

.topic-chip {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
}

.setup input,
.composer input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.setup input:focus,
.composer input:focus {
  border-color: rgba(200, 92, 116, 0.6);
  box-shadow: 0 0 0 4px rgba(200, 92, 116, 0.12);
}

.primary,
.composer button,
.ghost,
.image-button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 850;
}

.primary {
  margin-top: 4px;
  padding: 15px 16px;
  background: linear-gradient(135deg, #d45f7a, #8f7bd5);
  color: #fff;
  box-shadow: 0 18px 38px rgba(200, 92, 116, 0.24);
}

.primary:hover,
.composer button:hover {
  filter: brightness(0.96);
}

.soft-note {
  margin: 0;
  color: #9a817b;
  font-size: 14px;
  text-align: center;
}

.nest-drawer {
  border-top: 1px solid rgba(234, 219, 214, 0.82);
  padding-top: 4px;
}

.nest-drawer summary {
  display: grid;
  min-height: 44px;
  place-items: center;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.nest-drawer summary::-webkit-details-marker {
  display: none;
}

.nest-box {
  display: grid;
  gap: 12px;
  margin-top: 2px;
  padding: 16px;
  border: 1px solid rgba(200, 92, 116, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 240, 243, 0.74), rgba(238, 248, 245, 0.62));
}

.nest-box span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.nest-box strong {
  display: block;
  margin-top: 4px;
  color: #4f3c39;
  font-size: 18px;
}

.nest-box p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.secondary,
.nest-join button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(90, 55, 45, 0.05);
}

.nest-create,
.nest-join {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 8px;
}

.nest-create input,
.nest-join input {
  min-height: 42px;
  text-align: center;
}

.nest-join input {
  letter-spacing: 1px;
}

.nest-hint {
  min-height: 20px;
  color: var(--accent-strong);
  font-weight: 750;
  text-align: center;
}

.nest-ticket {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(300px, 82%);
  margin: 2px 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 92, 116, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(90, 55, 45, 0.08);
}

.nest-ticket span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.nest-ticket button {
  min-width: 150px;
  border: 0;
  border-radius: 14px;
  padding: 10px 18px;
  background: #fff0f3;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 5px;
}

.nest-ticket small {
  color: #927874;
  line-height: 1.45;
}

.chat {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  height: 620px;
}

.chat.is-matched {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
  height: min(760px, calc(100svh - 76px));
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(38, 23, 28, 0.42), rgba(18, 13, 16, 0.76)),
    radial-gradient(circle at 48% 18%, rgba(255, 203, 125, 0.2), transparent 26%),
    url("/assets/lobby-background.webp?v=2") center / cover no-repeat,
    #1d1316;
}

body.chat-active .chat,
body.chat-active .chat.matching,
body.chat-active .chat.is-matched {
  width: 100%;
  height: 100svh;
  min-height: 0;
  border-radius: 0;
}

.chat.is-matched::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(19, 13, 16, 0.72), transparent 24%, transparent 76%, rgba(19, 13, 16, 0.68)),
    radial-gradient(circle at 50% 100%, rgba(255, 242, 225, 0.18), transparent 34%);
  pointer-events: none;
}

.chat.is-matched > * {
  position: relative;
  z-index: 1;
}

.chat.matching {
  height: min(740px, calc(100vh - 110px));
  min-height: 680px;
}

.hidden {
  display: none;
}

.matching-scene {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 16px 18px 18px;
  overflow-y: auto;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 223, 176, 0.4), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 247, 0.98), rgba(255, 241, 235, 0.98));
}

.chat.matching .matching-scene {
  display: grid;
}

.matching-cancel {
  position: relative;
  z-index: 2;
  width: min(560px, 94%);
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d45f7a, #8f7bd5);
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(200, 92, 116, 0.24);
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}

.sparkles span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(200, 92, 116, 0.28);
  animation: sparkleFloat 4s ease-in-out infinite;
}

.sparkles span:nth-child(1) {
  left: 18%;
  top: 22%;
}

.sparkles span:nth-child(2) {
  right: 18%;
  top: 28%;
  width: 14px;
  height: 14px;
  background: rgba(139, 124, 195, 0.25);
  animation-delay: 0.8s;
}

.sparkles span:nth-child(3) {
  left: 26%;
  bottom: 20%;
  background: rgba(243, 191, 103, 0.36);
  animation-delay: 1.5s;
}

.sparkles span:nth-child(4) {
  right: 24%;
  bottom: 24%;
  width: 8px;
  height: 8px;
  background: rgba(75, 155, 143, 0.28);
  animation-delay: 2.1s;
}

.pet-wrap {
  position: absolute;
  left: 20px;
  top: 18px;
  display: none;
  place-items: center;
  width: 168px;
  height: 152px;
  opacity: 0.9;
}

.pet {
  position: relative;
  width: 118px;
  height: 104px;
  border-radius: 46% 46% 42% 42%;
  background: linear-gradient(145deg, #ffd8de, #fff2dc 70%);
  box-shadow: inset 0 -10px 20px rgba(200, 92, 116, 0.12), 0 22px 42px rgba(200, 92, 116, 0.2);
  animation: petBreathe 2.4s ease-in-out infinite;
}

.pet-ear {
  position: absolute;
  top: -16px;
  width: 34px;
  height: 34px;
  border-radius: 12px 12px 6px 12px;
  background: #ffd8de;
}

.pet-ear.left {
  left: 18px;
  transform: rotate(-18deg);
}

.pet-ear.right {
  right: 18px;
  transform: rotate(18deg) scaleX(-1);
}

.pet-face {
  position: absolute;
  inset: 26px 22px 18px;
}

.pet-eye {
  position: absolute;
  top: 14px;
  width: 9px;
  height: 12px;
  border-radius: 999px;
  background: #5c3f42;
  animation: petBlink 4.5s infinite;
}

.pet-eye.left {
  left: 18px;
}

.pet-eye.right {
  right: 18px;
}

.pet-mouth {
  position: absolute;
  left: 50%;
  top: 38px;
  width: 22px;
  height: 11px;
  border-bottom: 3px solid #8f5963;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.pet-heart {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 18px;
  height: 18px;
  background: #d45f7a;
  transform: translateX(-50%) rotate(45deg);
  animation: heartPulse 1.6s ease-in-out infinite;
}

.pet-heart::before,
.pet-heart::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d45f7a;
}

.pet-heart::before {
  left: -9px;
}

.pet-heart::after {
  top: -9px;
}

.pet-shadow {
  position: absolute;
  bottom: 8px;
  width: 98px;
  height: 18px;
  border-radius: 50%;
  background: rgba(94, 59, 58, 0.12);
  filter: blur(2px);
  animation: shadowPulse 2.4s ease-in-out infinite;
}

.matching-scene strong {
  color: #4b3438;
  font-size: 21px;
  line-height: 1.25;
}

.matching-scene p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.matching-progress {
  width: min(440px, 82%);
  height: 8px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(200, 92, 116, 0.14),
    0 10px 24px rgba(90, 55, 45, 0.06);
}

.matching-progress span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d45f7a, #8f7bd5);
  animation: progressWander 2.2s ease-in-out infinite;
}

.matching-notes {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.matching-notes span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8a6268;
  font-size: 13px;
  font-weight: 800;
}

.waiting-game {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 10px 14px;
  align-items: center;
  width: min(560px, 94%);
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(218, 176, 160, 0.5);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.9), rgba(255, 240, 232, 0.82));
  box-shadow:
    0 16px 36px rgba(90, 55, 45, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.waiting-game::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border-radius: 14px;
  border: 1px solid rgba(243, 191, 103, 0);
  opacity: 0;
}

.waiting-game.scored::after {
  animation: scoreRipple 0.52s ease-out;
}

.game-top {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
}

.game-top span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.game-top strong {
  color: var(--accent-strong);
  font-size: 17px;
}

.next-star {
  display: grid;
  justify-items: center;
  gap: 8px;
  align-self: stretch;
  padding: 12px 10px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.85), transparent 35%),
    linear-gradient(180deg, rgba(255, 240, 243, 0.92), rgba(255, 248, 229, 0.88));
  box-shadow: inset 0 0 0 1px rgba(234, 219, 214, 0.5);
}

.next-star span {
  color: #8a6268;
  font-size: 12px;
  font-weight: 900;
}

.next-star b {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff8d8, #ffc66f 52%, #dc7f54);
  color: #8f4658;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 12px 22px rgba(160, 80, 92, 0.18);
}

.merge-help {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: #755d58;
  font-size: 13px;
  line-height: 1.45;
}

.merge-help b {
  color: var(--accent-strong);
}

.merge-lanes {
  grid-column: 1;
  display: grid;
  gap: 7px;
  width: min(318px, 100%);
  margin: 0 auto -4px;
}

.merge-lane {
  min-height: 28px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #b55a71;
  cursor: pointer;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(234, 219, 214, 0.52);
}

.merge-lane.active {
  background: linear-gradient(135deg, #c85c74, #8b7cc3);
  color: #fff;
  box-shadow: 0 10px 20px rgba(159, 63, 88, 0.18);
}

.merge-lane.is-full {
  color: #b8aaa6;
  background: rgba(234, 219, 214, 0.34);
}

.snake-board {
  display: grid;
  grid-column: 1;
  gap: 7px;
  aspect-ratio: 6 / 7;
  width: min(318px, 100%);
  margin: 0 auto;
  padding: 10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 213, 111, 0.26), transparent 24%),
    radial-gradient(circle at 82% 80%, rgba(224, 109, 142, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 247, 239, 0.9), rgba(255, 237, 226, 0.82));
}

.snake-cell {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.64);
  color: rgba(142, 76, 91, 0.92);
  cursor: pointer;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(234, 219, 214, 0.48);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

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

.snake-cell.selected-column {
  background: rgba(255, 242, 229, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(200, 92, 116, 0.28),
    0 8px 16px rgba(200, 92, 116, 0.12);
}

.snake-cell.basket {
  border-radius: 9px 9px 16px 16px;
  background:
    linear-gradient(180deg, transparent 0 34%, #fff8ec 35% 42%, transparent 43%),
    linear-gradient(145deg, #c85c74, #8b7cc3);
  color: #fff;
  font-size: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 12px 22px rgba(159, 63, 88, 0.2);
}

.snake-cell.body {
  background: linear-gradient(145deg, #d96d86, #b99be8);
  box-shadow: 0 4px 10px rgba(200, 92, 116, 0.16);
  animation: snakeBodyGlow 1.8s ease-in-out infinite;
}

.snake-cell.head {
  border-radius: 7px 7px 12px 12px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 246, 223, 0.95) 0 18%, transparent 19%),
    linear-gradient(145deg, #9f3f58, #d45f7a);
  box-shadow: 0 7px 14px rgba(159, 63, 88, 0.24);
  animation: snakeHeadPop 0.72s ease-in-out infinite;
}

.snake-cell.food {
  color: #8f4658;
  font-size: 22px;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.95) 0 12%, transparent 13%),
    linear-gradient(145deg, #fff3f6, #f7a7bd 52%, #d45f7a);
  box-shadow: 0 8px 18px rgba(212, 95, 122, 0.24);
  animation: foodPulse 1.45s ease-in-out infinite;
}

.snake-cell.falling-star {
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.94) 0 13%, transparent 14%),
    linear-gradient(145deg, #fff8d8, #ffc66f 52%, #dc7f54);
  color: #8f4658;
  animation: fallingStarPulse 0.62s ease-in-out infinite;
}

.snake-cell.food::before {
  content: "";
  position: absolute;
  inset: 18%;
  opacity: 0.42;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.98) 0 18%, transparent 20%),
    radial-gradient(circle, #fff4f7 0 25%, #f26f95 27% 68%, #c84b70 70%);
  box-shadow: 0 0 16px rgba(242, 111, 149, 0.38);
}

.snake-cell.star-2,
.next-star .star-preview-2 {
  background: linear-gradient(145deg, #fff7c8, #d9c5ff 55%, #9f82df);
  color: #6f589c;
}

.snake-cell.star-3,
.next-star .star-preview-3 {
  background: linear-gradient(145deg, #e9fff8, #92d9c9 55%, #4b9b8f);
  color: #2f756b;
}

.snake-cell.star-4 {
  background: linear-gradient(145deg, #fff0f3, #f2a1b7 52%, #c85c74);
  color: #82364d;
}

.snake-cell.star-5 {
  background: linear-gradient(145deg, #fff8d8, #f3bf67 52%, #d98a49);
  color: #7a4a28;
}

.snake-cell.star-6 {
  background: linear-gradient(145deg, #eee9ff, #aa96e8 52%, #7560b9);
  color: #fffdf8;
}

.snake-cell.moon {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.96) 0 13%, transparent 14%),
    linear-gradient(145deg, #fff5c8, #d9c5ff 55%, #9f82df);
  box-shadow: 0 8px 18px rgba(159, 130, 223, 0.28);
}

.snake-cell.moon::before {
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.98) 0 18%, transparent 20%),
    radial-gradient(circle, #fff8d0 0 24%, #c7a8ff 26% 68%, #8068ce 70%);
  box-shadow: 0 0 16px rgba(128, 104, 206, 0.34);
}

.snake-cell.spark {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.96) 0 13%, transparent 14%),
    linear-gradient(145deg, #fff8d8, #ffd37d 55%, #ed9a65);
  box-shadow: 0 8px 18px rgba(237, 154, 101, 0.28);
}

.snake-cell.spark::before {
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.98) 0 18%, transparent 20%),
    radial-gradient(circle, #fff8da 0 24%, #ffc66f 26% 68%, #df8553 70%);
  box-shadow: 0 0 16px rgba(223, 133, 83, 0.34);
}

.snake-cell.bonus {
  background: radial-gradient(circle at 34% 34%, #fffdf2 0 18%, #ffe08b 19% 48%, #a78be8 50% 78%, transparent 80%);
  box-shadow: 0 8px 18px rgba(167, 139, 232, 0.32);
  animation: foodPulse 0.86s ease-in-out infinite;
}

.snake-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  align-self: end;
}

.snake-controls button {
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #c85c74, #8b7cc3);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
  box-shadow: 0 12px 24px rgba(159, 63, 88, 0.2);
}

.snake-controls button[data-dir="left"],
.snake-controls button[data-dir="right"] {
  min-height: 58px;
  background: linear-gradient(135deg, #c85c74, #8b7cc3);
  color: #fff;
  box-shadow: 0 12px 24px rgba(159, 63, 88, 0.2);
}

.snake-controls button[data-dir="restart"] {
  grid-column: 1 / -1;
  min-height: 42px;
  background: #fff1e9;
  color: var(--accent-strong);
  box-shadow: 0 8px 18px rgba(90, 55, 45, 0.06);
}

.snake-controls button:disabled,
.merge-lane:disabled {
  cursor: default;
}

.game-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 240, 243, 0.86);
  color: #7b5360;
  text-align: center;
}

.game-state.hidden {
  display: none;
}

.game-state strong {
  color: var(--accent-strong);
}

/* Product rule: no fake character walking. Character motion should use real sprite-sheet/image-sequence assets only. */

.waiting-game small {
  display: none;
  margin-top: 8px;
  color: #927874;
  line-height: 1.45;
}

.waiting-game.done .snake-board,
.waiting-game.done .snake-controls,
.waiting-game.done .next-star {
  opacity: 0.58;
}

.bubble-game {
  grid-template-columns: minmax(0, 1fr) 118px;
}

.bubble-game .next-star b {
  width: 70px;
  color: #9f3f58;
  font-size: 18px;
  letter-spacing: 1px;
}

.bubble-game .next-star b.low-life {
  background: linear-gradient(145deg, #fff0f3, #f089a7 52%, #c85c74);
  color: #fff;
}

.bubble-status {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.bubble-status span {
  flex: 1;
  min-width: 86px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8b5360;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(234, 219, 214, 0.56);
}

.mood-card-rewards {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  align-items: center;
}

.mood-card-empty,
.mood-reward-card {
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.mood-card-empty {
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
  color: #9a817b;
}

.mood-reward-card {
  border: 0;
  background: linear-gradient(135deg, #fff8ec, #ffd4dd);
  color: #8b3f54;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(90, 55, 45, 0.08);
}

.mood-reward-card.active {
  background: linear-gradient(135deg, #d45f7a, #8f7bd5);
  color: #fff;
}

.bubble-field {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  width: 100%;
  min-height: 315px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 213, 111, 0.24), transparent 22%),
    radial-gradient(circle at 78% 72%, rgba(139, 124, 195, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(54, 33, 39, 0.94), rgba(103, 58, 70, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -48px 70px rgba(31, 18, 24, 0.18);
}

.bubble-field::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 222, 180, 0.18);
  border-radius: 16px;
  pointer-events: none;
}

.emotion-bubble {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 68px;
  min-height: 68px;
  max-width: 112px;
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #793d50;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  word-break: keep-all;
  box-shadow:
    0 14px 26px rgba(26, 14, 18, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  animation: bubbleLife var(--bubble-life) linear forwards;
  -webkit-tap-highlight-color: transparent;
}

.emotion-bubble.is-good {
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.98) 0 13%, transparent 14%),
    linear-gradient(145deg, #fff9ee, #ffc9d6 52%, #d45f7a);
}

.emotion-bubble.is-bad {
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.65) 0 12%, transparent 13%),
    linear-gradient(145deg, #f4f0ed, #b7a7a3 55%, #6c5550);
  color: #fff8f1;
}

.emotion-bubble:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.emotion-bubble.is-gone {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.08s ease, transform 0.08s ease;
}

.bubble-controls {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bubble-controls button[data-dir="restart"] {
  grid-column: auto;
}

.waiting-game.done .bubble-field,
.waiting-game.done .bubble-controls,
.waiting-game.done .next-star {
  opacity: 0.58;
}

@keyframes bubbleLife {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  82% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
  }
}

.matched-room {
  display: none;
}

.chat.is-matched .matched-room,
body.chat-active .chat.is-matched .matched-room {
  display: none;
}

.matched-room img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
  image-rendering: pixelated;
}

.matched-room::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(39, 22, 30, 0.03), rgba(39, 22, 30, 0.22)),
    radial-gradient(circle at 30% 78%, rgba(255, 225, 166, 0.34), transparent 22%);
  pointer-events: none;
}

.matched-room-note {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(33, 22, 28, 0.62);
  color: rgba(255, 248, 239, 0.9);
  font-size: 12px;
  font-weight: 850;
}

.matched-room-actor {
  position: absolute;
  z-index: 2;
  bottom: 25%;
  width: 24px;
  height: 36px;
  background: url("/assets/walker-rose.png") 0 0 / 96px 36px no-repeat;
  filter: drop-shadow(0 7px 5px rgba(20, 12, 16, 0.28));
  image-rendering: pixelated;
  transform-origin: 50% 100%;
  animation: actorSprite 0.9s steps(4, end) infinite;
}

.matched-room-actor.actor-a {
  left: 40%;
  transform: scale(1.22);
}

.matched-room-actor.actor-b {
  left: 50%;
  background-image: url("/assets/walker-mint.png");
  transform: scale(-1.18, 1.18);
}

.matched-chat-bubble {
  position: absolute;
  z-index: 4;
  bottom: 66%;
  padding: 6px 9px;
  border-radius: 12px;
  background: rgba(255, 250, 246, 0.94);
  color: #6a4651;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(20, 12, 16, 0.16);
}

.matched-chat-bubble::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: rotate(45deg);
}

.matched-chat-bubble.bubble-a {
  left: 37%;
}

.matched-chat-bubble.bubble-b {
  left: 52%;
  bottom: 58%;
}

.matched-room-glow {
  position: absolute;
  z-index: 1;
  left: 43%;
  bottom: 21%;
  width: 132px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 220, 159, 0.25);
  filter: blur(10px);
  transform: translateX(-50%);
}

.chat-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.chat.is-matched .chat-status {
  margin: 16px 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 230, 218, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(45, 27, 33, 0.78), rgba(38, 24, 30, 0.56));
  box-shadow: 0 18px 50px rgba(14, 8, 10, 0.28);
  backdrop-filter: blur(18px);
}

body.chat-active .chat.is-matched .chat-status,
body.chat-active .chat.is-matched .messages,
body.chat-active .chat.is-matched .composer {
  width: min(1120px, calc(100vw - 36px));
  margin-left: auto;
  margin-right: auto;
}

.chat.is-matched .chat-status strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff8f1;
  font-size: 17px;
}

.chat.is-matched .chat-status span {
  color: rgba(255, 241, 232, 0.72);
}

.chat.is-matched .chat-status strong::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #73d2a6;
  box-shadow: 0 0 14px rgba(115, 210, 166, 0.8);
}

.chat.is-matched .chat-status span {
  color: #8b716c;
}

.chat.is-matched .chat-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.chat.is-matched .ghost {
  min-height: 38px;
  border: 1px solid rgba(218, 176, 160, 0.54);
  background: rgba(255, 255, 255, 0.74);
  color: #8b4b5d;
}

.chat.is-matched .leave-lobby-btn {
  min-width: 112px;
  border: 0;
  background: linear-gradient(135deg, #c95873, #9b7ad8);
  color: #fff;
  box-shadow: 0 12px 24px rgba(184, 80, 104, 0.18);
}

.chat.matching .chat-status,
.chat.matching .icebreaker,
.chat.matching .messages,
.chat.matching .composer {
  display: none;
}

@keyframes petBreathe {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes shadowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }
  50% {
    transform: scale(0.78);
    opacity: 0.42;
  }
}

@keyframes heartPulse {
  0%,
  100% {
    transform: translateX(-50%) rotate(45deg) scale(1);
  }
  50% {
    transform: translateX(-50%) rotate(45deg) scale(1.16);
  }
}

@keyframes petBlink {
  0%,
  88%,
  100% {
    transform: scaleY(1);
  }
  92% {
    transform: scaleY(0.12);
  }
}

@keyframes sparkleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-16px) scale(1.25);
    opacity: 0.9;
  }
}

@keyframes progressWander {
  0% {
    transform: translateX(0);
    width: 28%;
  }
  50% {
    transform: translateX(124%);
    width: 42%;
  }
  100% {
    transform: translateX(0);
    width: 28%;
  }
}

@keyframes panelMoonlight {
  0%,
  100% {
    transform: translateX(-28%) rotate(0.001deg);
    opacity: 0.18;
  }
  45% {
    transform: translateX(22%) rotate(0.001deg);
    opacity: 0.62;
  }
}

@keyframes scoreRipple {
  0% {
    transform: scale(0.94);
    border-color: rgba(243, 191, 103, 0.5);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.08);
    border-color: rgba(243, 191, 103, 0);
    opacity: 0;
  }
}

@keyframes snakeHeadPop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes snakeBodyGlow {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.16) brightness(1.04);
  }
}

@keyframes foodPulse {
  0%,
  100% {
    transform: scale(0.94);
    box-shadow: 0 6px 16px rgba(243, 191, 103, 0.28);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 8px 22px rgba(243, 191, 103, 0.5);
  }
}

@keyframes fallingStarPulse {
  0%,
  100% {
    transform: translateY(-2px) scale(0.96);
    box-shadow: 0 8px 18px rgba(243, 191, 103, 0.3);
  }
  50% {
    transform: translateY(2px) scale(1.08);
    box-shadow: 0 12px 24px rgba(243, 191, 103, 0.5);
  }
}

.chat-status span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.ghost {
  padding: 9px 12px;
  background: #f8eceb;
  color: #6b4b4b;
}

.matching-cancel.ghost {
  padding: 12px 18px;
  background: linear-gradient(135deg, #d45f7a, #8f7bd5);
  color: #fff;
  box-shadow: 0 18px 38px rgba(200, 92, 116, 0.24);
}

.icebreaker {
  min-height: 48px;
  padding: 12px 18px;
  background: var(--soft-mint);
  color: #32675f;
  font-weight: 800;
}

.chat.is-matched .icebreaker {
  display: none;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 248, 244, 0.72), rgba(255, 255, 255, 0.78)),
    #fff;
}

.chat.is-matched .messages {
  flex: 1 1 auto;
  min-height: 190px;
  margin: 12px 14px 0;
  padding: 18px 10px;
  border: 0;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.08), rgba(255, 248, 241, 0.03));
  box-shadow: none;
}

body.chat-active .chat.is-matched .messages {
  min-height: 0;
}

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

.chat.is-matched .empathy-tray {
  display: none;
}

.empathy-tray button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(218, 176, 160, 0.56);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 250, 246, 0.92);
  color: #8a4b5d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.chat.is-matched .empathy-tray button:hover {
  background: #fff0f3;
  color: var(--accent-strong);
}

.empathy-tray button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.message {
  max-width: 82%;
  padding: 11px 13px;
  border-radius: 18px 18px 18px 7px;
  background: #f6eeea;
  color: #4e3e3b;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.chat.is-matched .message {
  border: 1px solid rgba(234, 219, 214, 0.55);
  background: #fffaf7;
  box-shadow: 0 8px 18px rgba(90, 55, 45, 0.06);
}

.message.mine {
  align-self: flex-end;
  border-radius: 18px 18px 7px 18px;
  background: #d86b83;
  color: #fff;
}

.chat.is-matched .message.mine {
  border-color: rgba(184, 80, 104, 0.24);
  background: linear-gradient(135deg, #c95873, #9b7ad8);
  box-shadow: 0 10px 22px rgba(184, 80, 104, 0.18);
}

.message.system {
  align-self: center;
  max-width: 92%;
  border-radius: 999px;
  background: #fff6df;
  color: #765322;
  font-size: 14px;
}

.chat.is-matched .message.system {
  max-width: min(360px, 92%);
  border: 1px solid rgba(255, 218, 154, 0.42);
  background: rgba(255, 244, 216, 0.9);
  color: #765322;
  box-shadow: none;
}

.message img {
  display: block;
  max-width: min(280px, 100%);
  max-height: 320px;
  border-radius: 14px;
}

.message:not(.system) {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.chat.is-matched .message:not(.system) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message.mine:not(.system) {
  align-self: stretch;
  flex-direction: row-reverse;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.chat.is-matched .message.mine:not(.system) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.message-avatar {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, #fff5ef 0 15%, transparent 16%),
    radial-gradient(circle at 50% 104%, #b86a7f 0 30%, transparent 31%),
    linear-gradient(135deg, #f5b185, #d06b86);
  box-shadow: 0 10px 20px rgba(90, 55, 45, 0.12);
}

.message.mine .message-avatar {
  background:
    radial-gradient(circle at 50% 36%, #fff6f1 0 15%, transparent 16%),
    radial-gradient(circle at 50% 104%, #7357bd 0 30%, transparent 31%),
    linear-gradient(135deg, #c85c74, #8f7bd5);
}

.message-avatar::before,
.message-avatar::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(93, 61, 57, 0.54);
}

.message-avatar.has-image::before,
.message-avatar.has-image::after {
  display: none;
}

.message-avatar::before {
  top: 12px;
  left: 10px;
  width: 4px;
  height: 4px;
  box-shadow: 10px 0 rgba(93, 61, 57, 0.54);
}

.message-avatar::after {
  left: 12px;
  bottom: 10px;
  width: 10px;
  height: 3px;
  opacity: 0.7;
}

.message-bubble {
  max-width: min(76%, 960px);
  padding: 11px 13px;
  border-radius: 18px 18px 18px 7px;
  background: #f6eeea;
  color: #4e3e3b;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.chat.is-matched .message-bubble {
  border: 1px solid rgba(255, 238, 228, 0.64);
  background: rgba(255, 250, 246, 0.92);
  box-shadow: 0 14px 34px rgba(14, 8, 10, 0.18);
  backdrop-filter: blur(8px);
}

.message.mine .message-bubble {
  border-radius: 18px 18px 7px 18px;
  background: #d86b83;
  color: #fff;
}

.chat.is-matched .message.mine .message-bubble {
  border-color: rgba(184, 80, 104, 0.24);
  background: linear-gradient(135deg, #c95873, #9b7ad8);
  box-shadow: 0 18px 34px rgba(184, 80, 104, 0.28);
}

.composer {
  display: grid;
  grid-template-columns: 46px 46px 1fr 74px;
  gap: 9px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat.is-matched .composer {
  margin: 12px 14px 16px;
  padding: 11px;
  border: 1px solid rgba(255, 230, 218, 0.26);
  border-radius: 22px;
  background: rgba(43, 26, 32, 0.76);
  box-shadow: 0 22px 54px rgba(14, 8, 10, 0.32);
  backdrop-filter: blur(18px);
}

.chat.is-matched .composer input {
  border-color: rgba(255, 238, 230, 0.62);
  background: rgba(255, 251, 248, 0.94);
}

.composer button {
  background: var(--accent);
  color: #fff;
}

.chat.is-matched .composer button {
  border-radius: 13px;
  background: linear-gradient(135deg, #c95873, #9b7ad8);
}

.image-button {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  background: #fff0d3;
  color: #7b5520;
  cursor: pointer;
  font-weight: 850;
}

.chat.is-matched .image-button {
  border-radius: 13px;
  background: rgba(255, 236, 209, 0.94);
}

.after-hero-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  padding: 64px clamp(18px, 5vw, 84px) 46px;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 225, 231, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 248, 244, 0.82));
}

.after-hero-copy h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.16;
  letter-spacing: 0;
}

.after-hero-copy p:not(.section-kicker) {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.soft-note-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 560px;
  margin-top: 24px;
}

.soft-note-stack span {
  padding: 10px 13px;
  border: 1px solid rgba(234, 219, 214, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8b5360;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(90, 55, 45, 0.06);
}

.calm-entry-grid {
  align-items: stretch;
}

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

.entry-card {
  display: grid;
  align-content: start;
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(90, 55, 45, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(200, 92, 116, 0.28);
  box-shadow: 0 24px 58px rgba(90, 55, 45, 0.1);
  outline: 0;
}

.entry-card span {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff0f3;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.entry-card strong {
  color: #3f302d;
  font-size: 22px;
  line-height: 1.3;
}

.entry-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.entry-card.primary-entry {
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 218, 139, 0.26), transparent 26%),
    linear-gradient(135deg, rgba(255, 240, 243, 0.86), rgba(246, 255, 251, 0.72));
}

.calm-entry {
  min-height: 138px;
  align-content: center;
}

.calm-entry strong {
  font-size: clamp(26px, 2.8vw, 38px);
}

.calm-entry p {
  max-width: 260px;
}

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

.emotional-card-grid {
  align-items: stretch;
}

.feeling-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 138px;
  padding: 20px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 14%, rgba(246, 196, 138, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 42px rgba(90, 55, 45, 0.06);
}

.feeling-card span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff0f3;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.feeling-card strong {
  color: #3f302d;
  font-size: 20px;
  line-height: 1.35;
}

.feeling-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.emotional-entry {
  min-height: 176px;
  padding: 22px;
  border-color: rgba(200, 92, 116, 0.2);
}

.emotional-entry strong {
  font-size: clamp(32px, 3vw, 48px);
}

.emotional-entry span {
  margin-bottom: 8px;
}

.quiet-lines {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
  min-height: 138px;
  padding: 18px;
}

.quiet-lines span {
  padding: 10px 14px;
  border: 1px solid rgba(234, 219, 214, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8b5360;
  font-weight: 900;
}

.answer-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 58px clamp(18px, 5vw, 80px);
  background: rgba(255, 248, 244, 0.74);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-weight: 850;
}

.answer-section h2 {
  margin: 0;
  max-width: 560px;
  font-size: 32px;
  letter-spacing: 0;
}

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

.answer-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 36px rgba(90, 55, 45, 0.05);
}

.answer-grid h3 {
  margin: 0 0 9px;
  font-size: 18px;
}

.answer-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.feature-grid h3 {
  margin: 0 0 8px;
}

.feature-grid p {
  margin: 0;
  font-size: 15px;
}

.compact {
  background: rgba(255, 248, 244, 0.7);
}

.quiet-paths {
  padding: 0 clamp(18px, 5vw, 84px) 54px;
  background: rgba(255, 248, 244, 0.74);
}

.quiet-paths-copy {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid rgba(218, 176, 160, 0.28);
  padding-top: 34px;
}

.quiet-paths-copy h2 {
  max-width: 540px;
  margin: 8px 0 0;
  color: #332321;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.18;
}

.quiet-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 24px auto 0;
}

.quiet-path-grid a {
  min-height: 168px;
  padding: 20px;
  border: 1px solid rgba(234, 219, 214, 0.84);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 217, 152, 0.18), transparent 32%),
    rgba(255, 255, 255, 0.78);
  color: #3f302d;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(90, 55, 45, 0.06);
}

.quiet-path-grid span,
.article-scenes span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff0f3;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.quiet-path-grid strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.3;
}

.quiet-path-grid small {
  display: block;
  margin-top: 10px;
  color: #77625d;
  font-size: 15px;
  line-height: 1.65;
}

.content-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px;
}

.content-page h1 {
  font-size: 44px;
  letter-spacing: 0;
}

.content-page h2 {
  margin: 34px 0 14px;
  color: #3f302d;
  font-size: 28px;
  letter-spacing: 0;
}

.content-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.article-lead {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 217, 152, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.74);
  color: #5d4640;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(90, 55, 45, 0.05);
}

.article-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.article-scenes article {
  padding: 18px;
  border: 1px solid rgba(234, 219, 214, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(90, 55, 45, 0.05);
}

.article-scenes strong {
  display: block;
  margin-top: 14px;
  color: #3f302d;
  font-size: 19px;
  line-height: 1.35;
}

.article-scenes p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.72;
}

.article-prompts {
  margin-top: 28px;
}

.article-prompts > div {
  display: grid;
  gap: 10px;
}

.article-prompts a {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 16px;
  background: rgba(255, 248, 244, 0.76);
  color: #6f4050;
  font-size: 16px;
  font-weight: 850;
  text-decoration: none;
}

.article-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.article-keywords span {
  padding: 8px 12px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 999px;
  background: rgba(255, 248, 244, 0.78);
  color: #8b5360;
  font-size: 14px;
  font-weight: 850;
}

.article-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.article-related a {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: #6f4050;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.back-link {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.private-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 58px clamp(18px, 5vw, 80px);
  background:
    radial-gradient(circle at 78% 22%, rgba(139, 124, 195, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.76);
}

.private-teaser h2,
.private-page h1,
.private-page h2 {
  margin: 0;
  letter-spacing: 0;
}

.private-teaser p,
.private-page p {
  color: var(--muted);
  line-height: 1.8;
}

.private-actions {
  display: grid;
  gap: 12px;
}

.private-actions a,
.private-hero-actions a,
.private-room-card a,
.price-card a,
.soft-link {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 14px;
  background: #fff0f3;
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(90, 55, 45, 0.06);
}

.private-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(243, 191, 103, 0.14), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(75, 155, 143, 0.12), transparent 28%),
    var(--bg);
}

.private-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px clamp(18px, 5vw, 80px) 10px;
}

.private-nav a,
.private-more-nav summary {
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.7);
  color: #7b5360;
  font-weight: 850;
  text-decoration: none;
}

.private-brand-link {
  color: var(--accent-strong) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.private-main-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.private-more-nav {
  position: relative;
  justify-self: end;
}

.private-more-nav summary {
  list-style: none;
  cursor: pointer;
}

.private-more-nav summary::-webkit-details-marker {
  display: none;
}

.private-more-nav div {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  gap: 8px;
  width: 190px;
  padding: 10px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 58px rgba(90, 55, 45, 0.14);
}

.private-more-nav:not([open]) div {
  display: none;
}

.private-more-nav div a {
  border-radius: 12px;
  background: transparent;
}

.private-more-nav div a:hover,
.private-main-links a:hover {
  background: #fff0f5;
  color: var(--accent-strong);
}

.private-hero,
.private-form-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 38px;
  align-items: center;
  padding: 42px clamp(18px, 5vw, 80px) 64px;
}

.private-hero h1,
.private-form-page h1 {
  color: #302421;
  font-size: clamp(44px, 6.2vw, 82px);
  line-height: 1;
}

.private-hero > div:first-child,
.private-form-page > div:first-child {
  display: grid;
  gap: 18px;
}

.private-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.benefit-list {
  display: grid;
  gap: 10px;
}

.benefit-list span {
  display: block;
  padding: 12px 13px;
  border: 1px solid rgba(234, 219, 214, 0.74);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  color: #735e5a;
  line-height: 1.6;
}

.benefit-list b {
  display: block;
  color: var(--accent-strong);
  font-size: 14px;
}

.private-hero-actions a:first-child,
.private-actions a:first-child {
  background: linear-gradient(135deg, #d45f7a, #8f7bd5);
  color: #fff;
}

.room-preview {
  display: grid;
  justify-items: center;
}

.private-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 80px) 60px;
}

.star-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: center;
  padding: 0 clamp(18px, 5vw, 80px) 60px;
}

.monetize-section {
  display: grid;
  gap: 20px;
  padding: 0 clamp(18px, 5vw, 80px) 64px;
}

.monetize-section.compact {
  padding-top: 0;
}

.monetize-section > div:first-child {
  max-width: 780px;
}

.spend-grid,
.package-grid {
  display: grid;
  gap: 14px;
}

.spend-grid,
.package-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spend-grid article,
.package-grid article {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(234, 219, 214, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 28px rgba(90, 55, 45, 0.06);
}

.spend-grid strong,
.package-grid strong {
  color: #3f2d2d;
  font-size: 17px;
}

.spend-grid span,
.package-grid span {
  color: var(--accent-strong);
  font-weight: 950;
}

.spend-grid p,
.package-grid p {
  margin: 0;
  color: #7f6762;
  font-size: 13px;
  line-height: 1.6;
}

.decor-section {
  display: grid;
  gap: 22px;
  padding: 0 clamp(18px, 5vw, 80px) 64px;
}

.decor-section > div:first-child {
  max-width: 760px;
}

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

.decor-pack {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(234, 219, 214, 0.88);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 36px rgba(90, 55, 45, 0.07);
}

.decor-pack .room-art {
  min-height: 118px;
}

.decor-pack span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.decor-pack h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.decor-pack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.member-dashboard-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: center;
  padding: 0 clamp(18px, 5vw, 80px) 70px;
}

.member-dashboard-preview > div:first-child {
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(90, 55, 45, 0.07);
}

.star-section > div:first-child,
.room-detail-card {
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(90, 55, 45, 0.07);
}

.star-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.star-grid span {
  border-radius: 999px;
  padding: 12px 14px;
  background: #fff0f3;
  color: #8b3f54;
  font-weight: 900;
  text-align: center;
}

.star-grid b {
  display: block;
  color: var(--accent-strong);
  font-size: 13px;
}

.intent-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.intent-action-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intent-action-grid article {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 17px 16px;
  border: 1px solid rgba(234, 219, 214, 0.82);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 12%, rgba(243, 191, 103, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 243, 0.66));
  box-shadow: 0 16px 34px rgba(90, 55, 45, 0.07);
}

.intent-action-grid article::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: rgba(139, 124, 195, 0.12);
}

.intent-action-grid span {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(90, 55, 45, 0.06);
}

.intent-action-grid strong {
  display: block;
  margin-top: 12px;
  color: #3f2d2d;
  font-size: 20px;
  line-height: 1.25;
}

.intent-action-grid p {
  position: relative;
  z-index: 1;
  margin: 9px 0 0;
  color: #77625d;
  font-size: 14px;
  line-height: 1.65;
}

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

.metric-grid span {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: #6c5550;
  box-shadow: 0 14px 32px rgba(90, 55, 45, 0.06);
}

.metric-grid b {
  color: #8b3f54;
}


.private-split article,
.private-form,
.price-card {
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(90, 55, 45, 0.07);
}

.private-split article > span,
.price-card span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.private-split ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #6c5550;
  line-height: 1.9;
}

.room-showcase {
  display: grid;
  gap: 22px;
  padding: 58px clamp(18px, 5vw, 80px);
  background: rgba(255, 248, 244, 0.74);
}

.room-showcase.full {
  padding-top: 42px;
}

.room-hallway-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234, 219, 214, 0.92);
  border-radius: 18px;
  background: #20131a;
  box-shadow: 0 24px 60px rgba(90, 55, 45, 0.12);
}

.room-hallway-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hallway-caption,
.hallway-doors {
  position: absolute;
  left: 22px;
  right: 22px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hallway-caption {
  top: 18px;
  justify-content: space-between;
  color: #fff6ef;
  text-shadow: 0 2px 12px rgba(20, 10, 14, 0.72);
}

.hallway-caption span {
  font-size: 13px;
  font-weight: 900;
  color: #ffd7e0;
}

.hallway-caption strong {
  font-size: 18px;
}

.hallway-doors {
  bottom: 18px;
  flex-wrap: wrap;
}

.hallway-doors span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 239, 232, 0.28);
  border-radius: 999px;
  background: rgba(43, 23, 29, 0.62);
  color: #fff3ea;
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(6px);
}

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

.private-room-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(234, 219, 214, 0.92);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(90, 55, 45, 0.07);
}

.room-art {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 4px solid rgba(83, 58, 63, 0.12);
  border-radius: 12px;
  background: #f9e8db;
  image-rendering: pixelated;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.56),
    0 16px 28px rgba(90, 55, 45, 0.08);
}

.pixel-room::before,
.pixel-room::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pixel-room::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.25) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px) 0 0 / 18px 18px;
  opacity: 0.55;
}

.pixel-room::after {
  width: 44px;
  height: 44px;
  right: 24px;
  top: 18px;
  background: #ffd978;
  box-shadow:
    0 0 0 6px rgba(255, 217, 120, 0.22),
    -10px 10px 0 rgba(255, 240, 201, 0.55);
}

.pixel-scene {
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #fff4ef;
}

.pixel-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.pixel-scene::before,
.pixel-scene::after {
  display: none;
}

.pixel-scene .pixel-person {
  bottom: 27%;
}

.pixel-scene .room-person-one {
  left: 47%;
}

.pixel-scene .room-person-two {
  left: 38%;
}

.pixel-wall {
  position: absolute;
  inset: 0 0 48%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.2) 2px, transparent 2px) 0 0 / 32px 100%,
    linear-gradient(180deg, #f7d2c1, #f8e5d8);
}

.pixel-floor {
  position: absolute;
  inset: 46% 0 0;
  background:
    linear-gradient(45deg, rgba(130, 95, 87, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(-45deg, rgba(130, 95, 87, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    #ead2be;
}

.pixel-window,
.pixel-shelf,
.pixel-rug,
.pixel-desk,
.pixel-seat,
.pixel-lamp,
.pixel-plant,
.pixel-heart,
.pixel-person {
  position: absolute;
  display: block;
}

.pixel-window {
  width: 44px;
  height: 36px;
  right: 22px;
  top: 20px;
  background: #9ed6da;
  border: 4px solid #8c5e62;
  box-shadow:
    inset 16px 0 0 rgba(255,255,255,0.24),
    inset 0 14px 0 rgba(255,255,255,0.18);
}

.pixel-shelf {
  width: 66px;
  height: 12px;
  left: 22px;
  top: 30px;
  background: #9a675c;
  box-shadow:
    0 14px 0 #c98572,
    12px -10px 0 #f0b968,
    34px -10px 0 #8cc0a8,
    52px -10px 0 #d86f86;
}

.pixel-rug {
  width: 88px;
  height: 34px;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: #fff0f3;
  border: 4px solid rgba(212, 95, 122, 0.34);
  box-shadow:
    inset 14px 0 0 rgba(212, 95, 122, 0.18),
    inset -14px 0 0 rgba(75, 155, 143, 0.14);
}

.pixel-desk {
  width: 72px;
  height: 34px;
  left: 28px;
  bottom: 44px;
  background: #b77562;
  box-shadow:
    0 12px 0 #7c514d,
    10px -10px 0 #f7c76f,
    42px -12px 0 #8cc0a8,
    52px 8px 0 #5b3e46;
}

.pixel-seat {
  width: 48px;
  height: 30px;
  right: 46px;
  bottom: 42px;
  background: #d86f86;
  box-shadow:
    0 12px 0 #9b5062,
    -12px 8px 0 #f4a6b8,
    12px 8px 0 #f4a6b8;
}

.pixel-lamp {
  width: 12px;
  height: 48px;
  right: 24px;
  bottom: 42px;
  background: #7c514d;
  box-shadow:
    -8px -18px 0 #ffd978,
    -16px -10px 0 #ffd978,
    0 -10px 0 #ffd978,
    -10px 50px 0 #7c514d;
}

.pixel-plant {
  width: 18px;
  height: 22px;
  left: 18px;
  bottom: 20px;
  background: #c98572;
  box-shadow:
    0 -12px 0 #5f9f86,
    -8px -18px 0 #74b79e,
    8px -18px 0 #74b79e;
}

.pixel-heart {
  width: 8px;
  height: 8px;
  right: 108px;
  top: 34px;
  background: #d86f86;
  box-shadow:
    8px 0 0 #d86f86,
    -8px 8px 0 #d86f86,
    0 8px 0 #d86f86,
    8px 8px 0 #d86f86,
    16px 8px 0 #d86f86,
    0 16px 0 #d86f86,
    8px 16px 0 #d86f86;
}

.pixel-person {
  display: none;
  width: 16px;
  height: 22px;
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, #b99be8 0 48%, #8f7bd5 48% 100%);
  box-shadow:
    -4px 17px 0 #6c56b0,
    4px 17px 0 #6c56b0,
    0 27px 0 rgba(83, 58, 63, 0.16);
  z-index: 3;
}

.pixel-person::before,
.pixel-person::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.pixel-person::before {
  top: -16px;
  width: 18px;
  height: 16px;
  border-radius: 6px 6px 5px 5px;
  background:
    linear-gradient(180deg, #6d4b54 0 28%, transparent 28%),
    radial-gradient(circle at 35% 54%, #5c3f42 0 1px, transparent 2px),
    radial-gradient(circle at 65% 54%, #5c3f42 0 1px, transparent 2px),
    #f2bd96;
  box-shadow:
    -4px 3px 0 #6d4b54,
    4px 3px 0 #6d4b54;
}

.pixel-person::after {
  top: -2px;
  width: 26px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  opacity: 0.55;
}

.room-person-one {
  left: 47%;
  bottom: 27%;
  animation: roomWalkOne 7s steps(10, end) infinite;
}

.room-person-two {
  left: 38%;
  bottom: 25%;
  background: linear-gradient(180deg, #f0a3ba 0 48%, #e87998 48% 100%);
  animation: roomWalkTwo 8.5s steps(12, end) infinite;
}

@keyframes roomWalkOne {
  0% { transform: translateX(-28px) translateY(18px); }
  45% { transform: translateX(34px) translateY(-14px); }
  55% { transform: translateX(34px) translateY(-14px) scaleX(-1); }
  100% { transform: translateX(-28px) translateY(18px) scaleX(-1); }
}

@keyframes roomWalkTwo {
  0% { transform: translateX(34px) translateY(-10px) scaleX(-1); opacity: 0.72; }
  45% { transform: translateX(-30px) translateY(22px) scaleX(-1); opacity: 1; }
  55% { transform: translateX(-30px) translateY(22px); opacity: 1; }
  100% { transform: translateX(34px) translateY(-10px); opacity: 0.72; }
}

.pixel-sofa .pixel-wall {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18) 2px, transparent 2px) 0 0 / 34px 100%,
    linear-gradient(180deg, #e3c7e8, #f4dfeb);
}

.pixel-sofa .pixel-floor {
  background:
    linear-gradient(45deg, rgba(114, 85, 135, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(-45deg, rgba(114, 85, 135, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    #d9c8e7;
}

.pixel-sofa .pixel-seat {
  width: 82px;
  right: 36px;
  background: #9f83cc;
  box-shadow:
    0 12px 0 #715a9e,
    -12px 8px 0 #c0a9e2,
    20px 8px 0 #c0a9e2;
}

.pixel-cafe .pixel-wall {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18) 2px, transparent 2px) 0 0 / 34px 100%,
    linear-gradient(180deg, #cbe4dc, #edf3e4);
}

.pixel-cafe .pixel-floor {
  background:
    linear-gradient(45deg, rgba(75, 155, 143, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(-45deg, rgba(75, 155, 143, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    #d8e4ce;
}

.pixel-cafe .pixel-window {
  width: 62px;
  height: 42px;
  background: #a9dce7;
}

.pixel-custom .pixel-wall {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18) 2px, transparent 2px) 0 0 / 34px 100%,
    linear-gradient(180deg, #f7d9a8, #f9e4d3);
}

.pixel-custom .pixel-seat {
  background: #ef9b65;
  box-shadow:
    0 12px 0 #a85d45,
    -12px 8px 0 #f6c18c,
    12px 8px 0 #f6c18c;
}

.pixel-lobby {
  position: relative;
  overflow: hidden;
  width: min(100%, 392px);
  aspect-ratio: 16 / 9;
  margin: 14px auto 0;
  border: 4px solid rgba(83, 58, 63, 0.12);
  border-radius: 12px;
  background:
    #fff4ef;
  image-rendering: pixelated;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.45);
}

.pixel-lobby::before,
.pixel-lobby::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.pixel-lobby::before {
  background:
    radial-gradient(circle at 21% 17%, rgba(255, 219, 132, 0.34), transparent 12%),
    radial-gradient(circle at 49% 19%, rgba(255, 219, 132, 0.28), transparent 10%),
    radial-gradient(circle at 76% 24%, rgba(255, 206, 128, 0.22), transparent 14%),
    linear-gradient(180deg, rgba(255, 236, 203, 0.06), rgba(104, 56, 75, 0.08));
  mix-blend-mode: screen;
  animation: lobbyLampGlow 3.8s ease-in-out infinite;
}

.pixel-lobby::after {
  background-image:
    radial-gradient(circle, rgba(255, 244, 210, 0.64) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 211, 142, 0.32) 0 1px, transparent 2px);
  background-position: 12px 20px, 74px 42px;
  background-size: 72px 54px, 96px 78px;
  opacity: 0.28;
}

.setup-lobby {
  width: 100%;
  margin: 0 auto 2px;
}

.matching-scene .pixel-lobby {
  width: min(96%, 560px);
  margin-top: 4px;
  margin-bottom: 6px;
  border-width: 5px;
  border-radius: 16px;
  box-shadow:
    0 18px 48px rgba(80, 45, 52, 0.16),
    inset 0 0 0 4px rgba(255, 255, 255, 0.42);
}

.pixel-lobby img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.lobby-actors {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
}

.lobby-actor {
  position: absolute;
  display: block;
  z-index: 2;
  left: 0;
  top: 0;
  width: 24px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  cursor: pointer;
  image-rendering: pixelated;
  background: url("/assets/walker-rose.png") 0 0 / 96px 36px no-repeat;
  filter:
    drop-shadow(0 5px 4px rgba(31, 20, 24, 0.2));
  transform-origin: 50% 100%;
  will-change: transform, background-position;
  backface-visibility: hidden;
  contain: layout style;
  overflow: visible;
}

.lobby-actor.is-hidden-by-heat {
  display: none;
}

.lobby-actor:hover,
.lobby-actor:focus-visible {
  outline: 0;
  filter:
    drop-shadow(0 0 10px rgba(255, 205, 142, 0.48));
}

.lobby-actor::before {
  display: none;
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 4px;
  background: var(--actor-hair, #2e2029);
  box-shadow:
    -4px 0 0 var(--actor-hair, #2e2029),
    0 4px 0 var(--actor-hair, #2e2029),
    4px 4px 0 var(--actor-hair, #2e2029),
    -4px 4px 0 var(--actor-hair, #2e2029),
    0 8px 0 var(--actor-skin, #bd826c),
    -4px 8px 0 var(--actor-skin, #bd826c),
    4px 8px 0 var(--actor-skin, #bd826c),
    0 12px 0 var(--actor-top, #a75065),
    -4px 12px 0 var(--actor-top, #a75065),
    4px 12px 0 var(--actor-top, #a75065),
    0 16px 0 var(--actor-top, #a75065),
    -4px 16px 0 var(--actor-top, #a75065),
    4px 16px 0 var(--actor-top, #a75065),
    -8px 16px 0 color-mix(in srgb, var(--actor-skin, #bd826c) 72%, transparent),
    8px 16px 0 color-mix(in srgb, var(--actor-skin, #bd826c) 72%, transparent),
    -4px 20px 0 var(--actor-bottom, #574968),
    4px 20px 0 var(--actor-bottom, #574968),
    -4px 24px 0 #392f3f,
    4px 24px 0 #392f3f;
  transform: translateX(-50%);
  animation: actorStep 0.72s steps(2, end) infinite;
}

.lobby-actor::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -2px;
  width: 18px;
  height: 6px;
  border-radius: 50%;
  background: rgba(37, 24, 30, 0.18);
}

.lobby-actor-bubble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: block;
  width: max-content;
  max-width: 118px;
  padding: 6px 8px;
  border: 1px solid rgba(234, 219, 214, 0.84);
  border-radius: 10px;
  background: rgba(255, 252, 248, 0.94);
  box-shadow: 0 10px 24px rgba(57, 33, 38, 0.14);
  color: #5f4147;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: normal;
  text-align: left;
  image-rendering: auto;
  text-rendering: geometricPrecision;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% + 5px)) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.lobby-actor-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  border-right: 1px solid rgba(234, 219, 214, 0.84);
  border-bottom: 1px solid rgba(234, 219, 214, 0.84);
  background: rgba(255, 252, 248, 0.94);
  transform: translateX(-50%) rotate(45deg);
}

.lobby-actor-bubble.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.lobby-actor-bubble.is-left {
  transform: translate(-100%, calc(-100% + 5px)) scale(0.96);
}

.lobby-actor-bubble.is-left.is-visible {
  transform: translate(-100%, -100%) scale(1);
}

.lobby-actor-bubble.is-right {
  transform: translate(0, calc(-100% + 5px)) scale(0.96);
}

.lobby-actor-bubble.is-right.is-visible {
  transform: translate(0, -100%) scale(1);
}

.actor-one {
  --actor-hair: #2f2028;
  --actor-skin: #bd826c;
  --actor-top: #a64d62;
  --actor-bottom: #55486b;
  background-image: url("/assets/walker-rose.png");
  animation: actorSprite 0.72s steps(4, end) infinite;
}

.actor-two {
  --actor-hair: #34252c;
  --actor-skin: #ba8068;
  --actor-top: #4f8f84;
  --actor-bottom: #315364;
  background-image: url("/assets/walker-mint.png");
  animation: actorSprite 0.76s steps(4, end) infinite;
  animation-delay: -3.1s;
}

.actor-three {
  --actor-hair: #252638;
  --actor-skin: #b67b66;
  --actor-top: #c49252;
  --actor-bottom: #6b5268;
  background-image: url("/assets/walker-honey.png");
  animation: actorSprite 0.8s steps(4, end) infinite;
  animation-delay: -5.4s;
}

.actor-four {
  --actor-hair: #4b303d;
  --actor-skin: #bc856f;
  --actor-top: #806aa9;
  --actor-bottom: #315963;
  background-image: url("/assets/walker-lilac.png");
  animation: actorSprite 0.78s steps(4, end) infinite;
  animation-delay: -7s;
}

.actor-five {
  left: 34%;
  top: 70%;
  background-image: url("/assets/walker-rose.png");
  background-position: 0 0;
  transform: translate(-50%, -50%) scale(0.92);
  animation: none;
}

.actor-six {
  left: 78%;
  top: 64%;
  background-image: url("/assets/walker-lilac.png");
  background-position: 0 0;
  transform: translate(-50%, -50%) scale(0.86) scaleX(-1);
  animation: none;
}

.actor-seven {
  background-image: url("/assets/walker-mint.png");
  animation: actorSprite 0.8s steps(4, end) infinite;
  animation-delay: -1.7s;
}

.actor-eight {
  background-image: url("/assets/walker-honey.png");
  animation: actorSprite 0.78s steps(4, end) infinite;
  animation-delay: -4.2s;
}

.actor-nine {
  background-image: url("/assets/walker-rose.png");
  animation: actorSprite 0.82s steps(4, end) infinite;
  animation-delay: -6.3s;
}

.lobby-actor.is-roaming {
  left: 0;
  top: 0;
  animation: actorSprite 0.86s steps(4, end) infinite;
}

.lobby-actor.is-stage-actor {
  transform: translate(-50%, -50%) scale(var(--actor-scale, 1));
}

.lobby-actor.is-walk-a {
  animation:
    actorSprite 0.9s steps(4, end) infinite,
    lobbyLocalWalkA 7.8s ease-in-out infinite;
}

.lobby-actor.is-walk-b {
  animation:
    actorSprite 0.94s steps(4, end) infinite,
    lobbyLocalWalkB 8.6s ease-in-out infinite;
}

.lobby-actor.is-walk-c {
  animation:
    actorSprite 0.98s steps(4, end) infinite,
    lobbyLocalWalkC 9.2s ease-in-out infinite;
}

.lobby-actor.is-walk-d {
  animation:
    actorSprite 0.92s steps(4, end) infinite,
    lobbyLocalWalkD 8.2s ease-in-out infinite;
}

.lobby-actor.is-walk-e {
  animation:
    actorSprite 0.96s steps(4, end) infinite,
    lobbyLocalWalkE 9.6s ease-in-out infinite;
}

.lobby-actor.is-paused {
  animation: none;
  background-position: 0 0;
}

.matching-scene .lobby-actor {
  width: 24px;
  height: 36px;
  background-size: 96px 36px;
}

.matching-scene .actor-five {
  left: 32%;
  top: 68%;
}

.lobby-popover {
  position: fixed;
  z-index: 60;
  display: grid;
  gap: 8px;
  width: min(250px, calc(100vw - 24px));
  padding: 13px;
  border: 1px solid rgba(234, 219, 214, 0.88);
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.96);
  box-shadow: 0 18px 50px rgba(54, 32, 36, 0.16);
  color: #4b3438;
  backdrop-filter: blur(12px);
}

.lobby-popover strong {
  font-size: 16px;
}

.lobby-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.lobby-popover div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lobby-popover button {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: #fff0f3;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.lobby-popover button:first-child {
  background: linear-gradient(135deg, var(--accent), #9875d8);
  color: #fff;
}

.lobby-light,
.lobby-bench,
.lobby-desk {
  position: absolute;
  display: block;
  display: none;
}

.lobby-light {
  width: 32px;
  height: 32px;
  right: 26px;
  top: 18px;
  background: #ffd978;
  box-shadow: 0 0 0 8px rgba(255, 217, 120, 0.18);
}

.lobby-bench {
  width: 74px;
  height: 20px;
  left: 30px;
  bottom: 28px;
  background: #b77562;
  box-shadow: 0 12px 0 #7c514d;
}

.lobby-desk {
  width: 62px;
  height: 26px;
  right: 52px;
  bottom: 28px;
  background: #9f83cc;
  box-shadow: 0 12px 0 #715a9e;
}

.lobby-walker {
  display: none;
  position: absolute;
  z-index: 2;
  left: 48%;
  top: 62%;
  width: 30px;
  height: 42px;
  pointer-events: none;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 7px 0 rgba(56, 35, 40, 0.2))
    drop-shadow(0 8px 10px rgba(34, 20, 24, 0.18));
  transform-origin: 50% 100%;
}

.lobby-walker::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 24px;
  height: 36px;
  background: url("/assets/avatar-rose.svg") center / contain no-repeat;
  animation: walkerStep 0.72s steps(2, end) infinite;
}

.lobby-walker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 32px;
  height: 9px;
  border-radius: 50%;
  background: rgba(54, 36, 42, 0.18);
  transform: scaleX(0.82);
}

.walker-one {
  animation: lobbyPathOne 8.5s linear infinite;
}

.walker-two {
  animation: lobbyPathTwo 10s linear infinite;
  animation-delay: -3.2s;
}

.walker-two::before {
  background-image: url("/assets/avatar-mint.svg");
}

.walker-three {
  animation: lobbyPathThree 11.4s linear infinite;
  animation-delay: -5.4s;
}

.walker-three::before {
  background-image: url("/assets/avatar-honey.svg");
}

.walker-four {
  animation: lobbyPathFour 12.5s linear infinite;
  animation-delay: -7s;
}

.walker-four::before {
  background-image: url("/assets/avatar-lilac.svg");
}

.matching-scene .lobby-walker {
  width: 24px;
  height: 34px;
}

.matching-scene .lobby-walker::before {
  left: 7px;
  transform: scale(0.82);
  transform-origin: 50% 0;
}

.matching-scene .lobby-walker::after {
  width: 27px;
}

.pixel-lobby .pixel-person {
  bottom: 27%;
}

.person-one {
  left: 34%;
  animation: lobbyWalkOne 8s steps(14, end) infinite;
}

.person-two {
  left: 60%;
  background: linear-gradient(180deg, #f0a3ba 0 48%, #d86f86 48% 100%);
  animation: lobbyWalkTwo 9.5s steps(16, end) infinite;
}

.person-three {
  left: 23%;
  background: linear-gradient(180deg, #8ccfbd 0 48%, #4b9b8f 48% 100%);
  animation: lobbyWalkThree 11s steps(18, end) infinite;
}

@keyframes lobbyWalkOne {
  0% { transform: translateX(-30px) translateY(18px); }
  45% { transform: translateX(30px) translateY(-12px); }
  55% { transform: translateX(30px) translateY(-12px) scaleX(-1); }
  100% { transform: translateX(-30px) translateY(18px) scaleX(-1); }
}

@keyframes lobbyWalkTwo {
  0% { transform: translateX(30px) translateY(-16px) scaleX(-1); }
  45% { transform: translateX(-36px) translateY(16px) scaleX(-1); }
  55% { transform: translateX(-36px) translateY(16px); }
  100% { transform: translateX(30px) translateY(-16px); }
}

@keyframes lobbyWalkThree {
  0% { transform: translateX(8px) translateY(18px); opacity: 0.55; }
  30% { transform: translateX(62px) translateY(-8px); opacity: 1; }
  60% { transform: translateX(120px) translateY(14px); opacity: 0.78; }
  100% { transform: translateX(8px) translateY(18px); opacity: 0.55; }
}

@keyframes lobbySceneBreath {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(1.02) brightness(1);
  }
  50% {
    transform: scale(1.025);
    filter: saturate(1.12) brightness(1.04);
  }
}

@keyframes lobbyLampGlow {
  0%,
  100% {
    opacity: 0.48;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes lobbyDustDrift {
  0% {
    transform: translate3d(-8px, 8px, 0);
    opacity: 0.18;
  }
  50% {
    opacity: 0.52;
  }
  100% {
    transform: translate3d(12px, -14px, 0);
    opacity: 0.22;
  }
}

@keyframes walkerStep {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes actorStep {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
  }
}

@keyframes actorSprite {
  from {
    background-position: 0 0;
  }
  to {
    background-position: var(--sprite-end, -96px) 0;
  }
}

@keyframes lobbyLocalWalkA {
  0%, 18%, 100% { left: 50%; top: 46%; }
  42% { left: 53%; top: 47%; }
  66% { left: 51%; top: 49%; }
}

@keyframes lobbyLocalWalkB {
  0%, 16%, 100% { left: 67%; top: 52%; }
  44% { left: 70%; top: 51%; }
  72% { left: 68%; top: 55%; }
}

@keyframes lobbyLocalWalkC {
  0%, 22%, 100% { left: 27%; top: 65%; }
  48% { left: 30%; top: 66%; }
  76% { left: 28%; top: 69%; }
}

@keyframes lobbyLocalWalkD {
  0%, 20%, 100% { left: 36%; top: 50%; }
  45% { left: 34%; top: 52%; }
  70% { left: 38%; top: 53%; }
}

@keyframes lobbyLocalWalkE {
  0%, 18%, 100% { left: 64%; top: 72%; }
  46% { left: 61%; top: 71%; }
  74% { left: 66%; top: 74%; }
}

@keyframes actorIdle {
  0%,
  100% {
    background-position: 0 0;
  }
  50% {
    background-position: -24px 0;
  }
}

@keyframes actorPathOne {
  0% {
    left: 22%;
    top: 70%;
    transform: translate(-50%, -50%) scale(0.76);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  48% {
    left: 50%;
    top: 57%;
    transform: translate(-50%, -50%) scale(0.88);
  }
  84% {
    left: 72%;
    top: 68%;
    transform: translate(-50%, -50%) scale(0.98);
    opacity: 0.9;
  }
  100% {
    left: 78%;
    top: 73%;
    transform: translate(-50%, -50%) scale(1.02);
    opacity: 0;
  }
}

@keyframes actorPathTwo {
  0% {
    left: 76%;
    top: 43%;
    transform: translate(-50%, -50%) scale(0.66) scaleX(-1);
    opacity: 0;
  }
  12% {
    opacity: 0.86;
  }
  44% {
    left: 58%;
    top: 53%;
    transform: translate(-50%, -50%) scale(0.8) scaleX(-1);
  }
  76% {
    left: 34%;
    top: 67%;
    transform: translate(-50%, -50%) scale(0.96) scaleX(-1);
    opacity: 0.86;
  }
  100% {
    left: 26%;
    top: 72%;
    transform: translate(-50%, -50%) scale(1) scaleX(-1);
    opacity: 0;
  }
}

@keyframes actorPathThree {
  0% {
    left: 43%;
    top: 78%;
    transform: translate(-50%, -50%) scale(0.98);
    opacity: 0;
  }
  8% {
    opacity: 0.86;
  }
  38% {
    left: 44%;
    top: 62%;
    transform: translate(-50%, -50%) scale(0.86);
  }
  68% {
    left: 48%;
    top: 47%;
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0.86;
  }
  100% {
    left: 52%;
    top: 35%;
    transform: translate(-50%, -50%) scale(0.58);
    opacity: 0;
  }
}

@keyframes actorPathFour {
  0% {
    left: 18%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.66);
    opacity: 0;
  }
  14% {
    opacity: 0.84;
  }
  42% {
    left: 34%;
    top: 54%;
    transform: translate(-50%, -50%) scale(0.78);
  }
  76% {
    left: 58%;
    top: 62%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.84;
  }
  100% {
    left: 68%;
    top: 72%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

@keyframes lobbyPathOne {
  0% {
    left: 22%;
    top: 68%;
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  48% {
    left: 52%;
    top: 53%;
    transform: translate(-50%, -50%) scale(0.96);
  }
  82% {
    left: 72%;
    top: 66%;
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
  100% {
    left: 78%;
    top: 72%;
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0;
  }
}

@keyframes lobbyPathTwo {
  0% {
    left: 76%;
    top: 43%;
    transform: translate(-50%, -50%) scale(0.74) scaleX(-1);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  42% {
    left: 55%;
    top: 54%;
    transform: translate(-50%, -50%) scale(0.92) scaleX(-1);
  }
  74% {
    left: 36%;
    top: 66%;
    transform: translate(-50%, -50%) scale(1.06) scaleX(-1);
    opacity: 1;
  }
  100% {
    left: 26%;
    top: 72%;
    transform: translate(-50%, -50%) scale(1.12) scaleX(-1);
    opacity: 0;
  }
}

@keyframes lobbyPathThree {
  0% {
    left: 43%;
    top: 77%;
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  38% {
    left: 44%;
    top: 58%;
    transform: translate(-50%, -50%) scale(0.95);
  }
  68% {
    left: 48%;
    top: 42%;
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 1;
  }
  100% {
    left: 52%;
    top: 32%;
    transform: translate(-50%, -50%) scale(0.66);
    opacity: 0;
  }
}

@keyframes lobbyPathFour {
  0% {
    left: 18%;
    top: 49%;
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  42% {
    left: 34%;
    top: 52%;
    transform: translate(-50%, -50%) scale(0.86);
  }
  76% {
    left: 58%;
    top: 61%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    left: 68%;
    top: 72%;
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.private-room-card h3 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.private-room-card p {
  margin: 0;
}

.private-room-card > div > span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-meta small {
  border-radius: 999px;
  padding: 7px 9px;
  background: var(--soft);
  color: #8b3f54;
  font-weight: 800;
}

.room-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.room-actions a:first-child {
  background: #fff;
  color: #7b5360;
}

.room-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 28px;
  align-items: start;
  padding: 42px clamp(18px, 5vw, 80px) 70px;
}

.room-detail-card {
  display: grid;
  gap: 16px;
}

.room-detail-card h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
}

.room-detail-card blockquote {
  margin: 0;
  border-left: 4px solid rgba(212, 95, 122, 0.42);
  padding-left: 16px;
  color: #6c5550;
  font-size: 20px;
  line-height: 1.7;
}

.room-art.large {
  min-height: 260px;
}

.room-art.large .pixel-wall {
  bottom: 50%;
}

.room-art.large .pixel-floor {
  top: 44%;
}

.room-art.large .pixel-window {
  width: 70px;
  height: 52px;
  right: 34px;
  top: 30px;
}

.room-art.large .pixel-shelf {
  left: 38px;
  top: 46px;
}

.room-art.large .pixel-rug {
  width: 132px;
  height: 48px;
  bottom: 24px;
}

.room-art.large .pixel-desk {
  width: 100px;
  height: 44px;
  left: 48px;
  bottom: 64px;
}

.room-art.large .pixel-seat {
  right: 66px;
  bottom: 64px;
}

.room-art.large .pixel-lamp {
  right: 38px;
  bottom: 64px;
}

.room-art.large .pixel-plant {
  left: 34px;
  bottom: 30px;
}

.knock-form > span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

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

.private-form label {
  display: grid;
  gap: 8px;
  color: #4f3c39;
  font-weight: 850;
}

.private-form input,
.private-form select,
.private-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.private-form textarea {
  min-height: 104px;
  resize: vertical;
}

.private-form input[name="website"] {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.check-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
}

.check-row input {
  width: auto;
  margin-top: 3px;
}

.verify-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.verify-steps span {
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #7b5360;
  font-weight: 850;
}

.camera-box {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(200, 92, 116, 0.18);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 248, 244, 0.66);
}

.camera-box p,
.camera-box small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

#verifyVideo,
#verifyPreview {
  display: block;
  width: 100%;
  min-height: 180px;
  border-radius: 14px;
  background: #fff;
  object-fit: cover;
}

#verifyPreview:not(.ready) {
  display: none;
}

.camera-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.camera-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff0f3;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 900;
}

.form-result {
  min-height: 24px;
  margin: 0;
  color: var(--accent-strong);
  font-weight: 850;
}

.price-card {
  display: grid;
  gap: 6px;
  max-width: 360px;
}

.price-card strong {
  color: #4f3c39;
  font-size: 34px;
}

.form-result a {
  color: var(--accent-strong);
  font-weight: 900;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.private-invite-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.invite-card {
  display: grid;
  gap: 8px;
  text-align: left;
}

.mood-starter-card {
  display: grid;
  gap: 10px;
  width: min(420px, 96%);
  border: 1px solid rgba(200, 92, 116, 0.18);
  background:
    radial-gradient(circle at 88% 18%, rgba(243, 191, 103, 0.18), transparent 26%),
    linear-gradient(145deg, #fff9ef, #fff0f3);
  color: #5a4240;
  text-align: left;
  box-shadow: 0 16px 34px rgba(90, 55, 45, 0.1);
}

.invite-card strong,
.invite-card span,
.mood-starter-card strong,
.mood-starter-card span {
  display: block;
}

.invite-card div,
.mood-starter-card div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.invite-card a,
.invite-card button,
.mood-starter-card button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff0f3;
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.upgrade-card {
  display: grid;
  gap: 10px;
  width: min(440px, 96%);
  padding: 14px;
  border: 1px solid rgba(218, 176, 160, 0.58);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(243, 191, 103, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(255, 241, 236, 0.96));
  color: #55413e;
  text-align: left;
  box-shadow: 0 16px 34px rgba(90, 55, 45, 0.12);
}

.upgrade-card > strong {
  color: #422e31;
  font-size: 17px;
}

.upgrade-card > span {
  color: #846b66;
  font-size: 13px;
  line-height: 1.55;
}

.upgrade-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.upgrade-option {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid rgba(234, 219, 214, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: #594542;
  text-decoration: none;
}

.upgrade-option:first-child {
  background: linear-gradient(145deg, #fff8fb, #fff0e9);
}

.upgrade-option:last-child {
  background: linear-gradient(145deg, #fff9ef, #f4efff);
}

.upgrade-option strong {
  color: var(--accent-strong);
  font-size: 15px;
}

.upgrade-option span {
  color: #78615d;
  font-size: 12px;
  line-height: 1.55;
}

.upgrade-continue {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.74);
  color: #705a55;
  cursor: pointer;
  font-weight: 900;
}

.layer-section {
  display: grid;
  gap: 22px;
  padding: 0 clamp(18px, 5vw, 80px) 62px;
}

.layer-grid,
.reward-grid,
.star-intro-grid {
  display: grid;
  gap: 16px;
}

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

.reward-grid,
.star-intro-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 clamp(18px, 5vw, 80px) 62px;
}

.layer-grid article,
.reward-grid article,
.reward-wallet,
.star-price-card {
  border: 1px solid rgba(234, 219, 214, 0.88);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(90, 55, 45, 0.07);
}

.layer-grid span,
.reward-grid span,
.reward-wallet span,
.star-price-card span,
.star-intro-grid form > span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.layer-grid h3,
.reward-grid h2,
.reward-wallet strong,
.star-price-card strong {
  margin: 8px 0;
  color: #302421;
}

.reward-wallet,
.star-price-card {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 260px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 217, 120, 0.25), transparent 26%),
    rgba(255, 255, 255, 0.8);
}

.reward-wallet strong,
.star-price-card strong {
  font-size: 42px;
}

.star-story-hero,
.star-showcase,
.star-process,
.star-price-band {
  display: grid;
  align-items: center;
  min-height: min(820px, 92vh);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 6vw, 92px);
}

.star-story-hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(28px, 5vw, 76px);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 214, 127, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 246, 0.62), rgba(255, 241, 245, 0.46));
}

.star-story-copy {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.star-story-copy h1,
.star-showcase h2,
.star-process h2 {
  margin: 0;
  color: #2f2422;
  font-size: clamp(44px, 6.8vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
}

.star-showcase h2,
.star-process h2 {
  font-size: clamp(38px, 5.2vw, 82px);
}

.star-story-copy p,
.star-showcase p,
.star-price-band p {
  margin: 0;
  max-width: 760px;
  color: #78615d;
  font-size: clamp(17px, 1.55vw, 24px);
  line-height: 1.75;
}

.star-story-visual,
.star-showcase figure {
  position: relative;
  min-width: 0;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 42px 100px rgba(62, 38, 43, 0.18);
}

.star-story-visual img,
.star-showcase img {
  display: block;
  width: 100%;
  height: min(560px, 58vh);
  object-fit: cover;
  image-rendering: pixelated;
}

.star-story-visual span,
.star-showcase figcaption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(39, 24, 31, 0.58);
  color: rgba(255, 250, 246, 0.94);
  font-weight: 900;
}

.star-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px);
}

.star-showcase-men {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(245, 255, 252, 0.6));
}

.star-showcase-women {
  background:
    radial-gradient(circle at 16% 22%, rgba(200, 92, 116, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 245, 248, 0.7), rgba(255, 250, 246, 0.4));
}

.star-showcase > div {
  display: grid;
  gap: 20px;
}

.star-proof-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.star-proof-list li {
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.7);
  color: #6b5350;
  font-weight: 900;
}

.star-process {
  gap: 34px;
  background: #2f2427;
}

.star-process .eyebrow,
.star-process h2 {
  color: #fff8ef;
}

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

.star-process-grid article {
  display: grid;
  gap: 12px;
  min-height: 260px;
  border: 1px solid rgba(255, 238, 220, 0.16);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
}

.star-process-grid span {
  color: #ffd28c;
  font-weight: 900;
}

.star-process-grid strong {
  color: #fff8ef;
  font-size: 28px;
}

.star-process-grid p {
  margin: 0;
  color: rgba(255, 248, 239, 0.76);
  line-height: 1.7;
}

.star-price-band {
  min-height: 520px;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 212, 128, 0.26), transparent 28%),
    linear-gradient(180deg, #fff8f4, #f7fff9);
}

.star-price-band > div {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.star-price-band span {
  color: var(--accent-strong);
  font-weight: 900;
}

.star-price-band strong {
  color: #2f2422;
  font-size: clamp(54px, 9vw, 128px);
  line-height: 1;
}

.star-apply-section {
  padding-top: 74px;
  background: rgba(255, 250, 246, 0.72);
}

.wallet-hero {
  align-items: stretch;
}

.wallet-balance strong {
  color: var(--accent-strong);
}

.wallet-summary-grid,
.reward-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 5vw, 80px) 62px;
}

.reward-rule-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wallet-summary-grid article,
.reward-rule-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(234, 219, 214, 0.88);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(90, 55, 45, 0.07);
}

.wallet-summary-grid span,
.reward-rule-grid span,
.ledger-section .section-kicker {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.wallet-summary-grid strong,
.reward-rule-grid strong {
  color: #302421;
  font-size: 25px;
}

.wallet-summary-grid p,
.reward-rule-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ledger-section,
.reward-rule-section {
  display: grid;
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 80px) 62px;
}

.ledger-list {
  display: grid;
  gap: 10px;
}

.ledger-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.76);
}

.ledger-list article div {
  display: grid;
  gap: 3px;
}

.ledger-list article strong {
  color: #3f302e;
}

.ledger-list article span,
.ledger-list article p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ledger-list article b {
  color: var(--accent-strong);
  font-size: 20px;
}

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

.image-watch-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.image-watch-card > a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  background: #fff4ef;
}

.image-watch-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-watch-card div {
  display: grid;
  gap: 4px;
}

.image-watch-card span,
.image-watch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.image-watch-card .ai-block-form {
  justify-items: stretch;
}

.image-watch-card.empty {
  grid-column: 1 / -1;
}

.safety-card {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 248, 244, 0.86);
  box-shadow: inset 0 0 0 1px rgba(218, 176, 160, 0.42);
}

.safety-card strong {
  color: var(--accent-strong);
}

.safety-card span {
  color: #765f5a;
  font-size: 14px;
  line-height: 1.45;
}

.ai-suggestion-list {
  display: grid;
  gap: 12px;
}

.ai-suggestion-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(202, 139, 150, 0.28);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 248, 250, 0.92), rgba(255, 255, 255, 0.76));
}

.ai-suggestion-card div {
  display: grid;
  gap: 5px;
}

.ai-suggestion-card span,
.ai-suggestion-card small {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.ai-suggestion-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.ai-ops-panel {
  margin: 0 clamp(18px, 5vw, 80px) 34px;
}

.ai-ops-panel > div:first-child {
  margin-bottom: 18px;
}

.ai-ops-summary {
  margin: 0 0 16px;
  padding: 0;
}

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

.ai-ops-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 170px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(90, 55, 45, 0.06);
}

.ai-ops-card span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff0f3;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.ai-ops-card.good span {
  background: #eef8f5;
  color: #317d72;
}

.ai-ops-card.warning span {
  background: #fff2de;
  color: #946029;
}

.ai-ops-card strong {
  color: #3f302d;
  font-size: 20px;
  line-height: 1.35;
}

.ai-ops-card p,
.ai-ops-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ai-ops-card small {
  color: #8b5360;
  font-weight: 850;
}

.ai-block-form {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.auth-card,
.booth-chat-panel,
.admin-section,
.admin-control-grid > article {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(234, 219, 214, 0.88);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(90, 55, 45, 0.07);
}

.auth-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-section {
  margin: 0 clamp(18px, 5vw, 80px) 34px;
}

.admin-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.admin-section summary::-webkit-details-marker {
  display: none;
}

.admin-section summary > strong {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 34px;
  border-radius: 999px;
  background: #fff0f5;
  color: var(--accent-strong);
  font-size: 14px;
}

.admin-section:not([open]) {
  padding-block: 16px;
}

.admin-section:not([open]) .admin-list {
  display: none;
}

.admin-section[open] summary {
  margin-bottom: 14px;
}

.admin-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
  padding: 0 clamp(18px, 5vw, 80px) 34px;
}

.admin-metric-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.admin-metric-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 248, 244, 0.74);
}

.admin-metric-list dt {
  color: var(--muted);
  font-size: 13px;
}

.admin-metric-list dd {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 900;
}

.traffic-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.traffic-panel article:first-child {
  grid-column: span 1;
}

.admin-rank-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.admin-rank-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 248, 244, 0.74);
}

.admin-rank-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.admin-rank-list strong {
  color: var(--accent-strong);
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-help {
  max-width: 880px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.user-section .admin-row p {
  word-break: break-word;
}

.booth-chat-layout {
  align-items: stretch;
}

.booth-chat-panel {
  min-height: 560px;
  align-content: stretch;
}

.booth-message-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 248, 244, 0.82), rgba(255, 241, 245, 0.72));
}

.booth-message {
  display: grid;
  gap: 4px;
  width: min(84%, 520px);
  border-radius: 16px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(90, 55, 45, 0.08);
}

.booth-message.from-owner {
  justify-self: end;
  background: #fff0f5;
}

.booth-message.from-guest {
  justify-self: start;
  background: #f7fff8;
}

.booth-message span,
.empty-state {
  color: var(--muted);
  font-size: 13px;
}

.booth-message p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.admin-row {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  align-items: stretch;
}

.admin-row > div {
  display: grid;
  gap: 3px;
}

.admin-row strong {
  color: var(--ink);
}

.admin-row span,
.admin-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-review-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-review-form select,
.admin-review-form input {
  min-width: 0;
  border: 1px solid rgba(218, 176, 160, 0.62);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.admin-review-form button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: linear-gradient(135deg, #c85c74, #8b7cc3);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.private-form-page.compact {
  padding-top: 0;
}

.admin-login-page {
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 6vw, 80px);
}

.admin-login-page .private-form {
  width: min(420px, 100%);
}

.admin-page {
  display: grid;
  grid-template-columns: clamp(214px, 18vw, 260px) minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 213, 201, 0.5), transparent 28%),
    linear-gradient(135deg, #fff8f4, #f8fff8);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  align-content: start;
  gap: 16px;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid rgba(218, 176, 160, 0.46);
  padding: 22px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 243, 0.88)),
    rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 14px 0 40px rgba(90, 55, 45, 0.06);
}

.admin-brand {
  display: grid;
  gap: 3px;
  margin-bottom: 2px;
  border: 1px solid rgba(234, 219, 214, 0.86);
  border-radius: 18px;
  padding: 14px 14px 16px;
  background:
    radial-gradient(circle at 90% 8%, rgba(200, 92, 116, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.72);
}

.admin-brand span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.admin-brand strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.admin-sidebar nav,
.admin-sidebar details {
  display: grid;
  gap: 6px;
}

.admin-sidebar a,
.admin-sidebar summary {
  min-width: 0;
  border-radius: 13px;
  padding: 10px 12px;
  color: #5d4642;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.25;
  cursor: pointer;
}

.admin-sidebar a:hover,
.admin-sidebar summary:hover {
  background: #fff0f5;
  color: var(--accent-strong);
}

.admin-sidebar details a {
  margin-left: 8px;
  padding: 9px 10px 9px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-main {
  min-width: 0;
  overflow-x: hidden;
  padding-bottom: 60px;
}

.admin-main .private-hero,
.admin-main .wallet-summary-grid,
.admin-main .admin-control-grid,
.admin-main .private-form-page {
  padding-left: clamp(18px, 4vw, 54px);
  padding-right: clamp(18px, 4vw, 54px);
}

.admin-main .admin-section {
  margin-left: clamp(18px, 4vw, 54px);
  margin-right: clamp(18px, 4vw, 54px);
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(310px, 0.52fr) minmax(0, 1.48fr);
    gap: clamp(26px, 3.4vw, 70px);
    width: min(1880px, 100%);
    min-height: min(880px, 92vh);
    margin: 0 auto;
    padding: clamp(28px, 3.2vw, 54px) clamp(24px, 3.8vw, 72px) 30px;
  }

  .hero-copy {
    align-self: center;
  }

  .hero-copy h1 {
    max-width: 500px;
    font-size: clamp(58px, 4.8vw, 100px);
  }

  .lead {
    max-width: 520px;
    font-size: clamp(19px, 1.2vw, 22px);
    line-height: 1.78;
  }

  .chat-panel {
    align-self: center;
    width: 100%;
    max-width: min(1120px, 66vw);
    min-height: 0;
    border-radius: 24px;
    box-shadow: 0 42px 120px rgba(68, 44, 47, 0.16);
    justify-self: end;
  }

  .panel-top {
    padding: 24px 28px;
  }

  .panel-top strong {
    font-size: 26px;
  }

  .panel-top span,
  .panel-top small {
    font-size: 14px;
  }

  .setup {
    grid-template-columns: 1fr;
    gap: clamp(18px, 1.4vw, 24px);
    padding: clamp(22px, 1.8vw, 30px);
  }

  .setup-lobby,
  .primary,
  .soft-note,
  .nest-drawer {
    grid-column: 1 / -1;
  }

  .chat.matching {
    height: min(820px, calc(100vh - 92px));
    min-height: 720px;
  }

  .matching-scene {
    padding: 22px clamp(22px, 2.2vw, 34px) 24px;
    gap: 12px;
  }

  .matching-scene .pixel-lobby {
    width: min(100%, 860px);
  }

  .setup-lobby {
    border-width: 6px;
    border-radius: 18px;
    box-shadow:
      inset 0 0 0 4px rgba(255, 255, 255, 0.42),
      0 22px 46px rgba(54, 32, 36, 0.12);
  }

  .setup-lobby .lobby-actor {
    width: 30px;
    height: 45px;
    background-size: 120px 45px;
    --sprite-end: -120px;
  }

  .matching-scene .lobby-actor {
    width: 28px;
    height: 42px;
    background-size: 112px 42px;
    --sprite-end: -112px;
  }

  .lobby-actor-bubble {
    max-width: 150px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .primary {
    min-height: clamp(58px, 4vw, 68px);
    border-radius: 18px;
    font-size: 20px;
    box-shadow: 0 24px 54px rgba(200, 92, 116, 0.28);
  }

  .soft-note {
    font-size: 16px;
  }

  .chat-sample {
    margin-top: 40px;
  }
}

@media (min-width: 1200px) and (max-width: 1499px) {
  .setup {
    grid-template-columns: minmax(170px, 0.22fr) minmax(0, 0.78fr);
    align-items: start;
  }

  .lobby-mood-strip,
  .emotion-checkin,
  .intro-card,
  .primary,
  .soft-note,
  .nest-drawer {
    grid-column: 1;
  }

  .setup-lobby {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: start;
    margin-top: 0;
  }

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

@media (min-width: 1500px) {
  .chat-panel {
    max-width: min(1180px, 68vw);
  }

  .setup {
    grid-template-columns: minmax(220px, 0.24fr) minmax(0, 0.76fr);
    align-items: start;
  }

  .lobby-mood-strip,
  .emotion-checkin,
  .intro-card,
  .primary,
  .soft-note,
  .nest-drawer {
    grid-column: 1;
  }

  .setup-lobby {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: start;
    margin-top: 0;
  }

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

  .emotion-grid .mood-chip {
    justify-content: center;
  }
}

@media (max-width: 1040px) and (min-width: 561px) {
  .admin-page {
    grid-template-columns: clamp(168px, 30vw, 214px) minmax(0, 1fr);
  }

  .admin-sidebar {
    padding: 14px 9px;
  }

  .admin-brand {
    padding: 12px;
  }

  .admin-brand strong {
    font-size: clamp(17px, 2.3vw, 20px);
  }

  .admin-sidebar a,
  .admin-sidebar summary {
    padding: 9px 8px;
    font-size: clamp(12px, 1.65vw, 14px);
  }

  .admin-sidebar details a {
    margin-left: 4px;
    padding-left: 10px;
    font-size: 12px;
  }

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

  .admin-control-grid,
  .image-watch-grid,
  .ai-ops-grid {
    grid-template-columns: 1fr;
  }

  .admin-main .private-hero,
  .admin-main .wallet-summary-grid,
  .admin-main .admin-control-grid,
  .admin-main .private-form-page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .admin-main .admin-section {
    margin-left: 22px;
    margin-right: 22px;
  }

  .admin-review-form {
    grid-template-columns: minmax(110px, 0.7fr) minmax(130px, 1fr) auto;
  }
}

@media (max-width: 560px) {
  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    z-index: 20;
    top: 0;
    height: auto;
    max-height: 42vh;
    border-right: 0;
    border-bottom: 1px solid rgba(218, 176, 160, 0.46);
    padding: 12px;
    box-shadow: 0 12px 28px rgba(90, 55, 45, 0.08);
  }

  .admin-sidebar nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(146px, max-content);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-sidebar details {
    min-width: 150px;
  }

  .admin-brand {
    padding: 10px 12px;
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .admin-review-form {
    grid-template-columns: 1fr;
  }

  .admin-kpi-grid,
  .admin-control-grid,
  .image-watch-grid,
  .ai-ops-grid,
  .feeling-card-grid {
    grid-template-columns: 1fr;
  }

  .feedback-widget {
    right: 12px;
    bottom: 12px;
  }

  .booth-chat-panel {
    min-height: auto;
  }

  .booth-message {
    width: 94%;
  }
}

@media (min-width: 1500px) {
  .hero {
    grid-template-columns: minmax(430px, 0.5fr) minmax(920px, 1.5fr);
  }

  .chat-panel {
    max-width: 1240px;
    justify-self: end;
  }

  .setup-lobby .lobby-actor {
    width: 34px;
    height: 51px;
    background-size: 136px 51px;
    --sprite-end: -136px;
  }

  .matching-scene .pixel-lobby {
    width: min(100%, 980px);
  }

  .matching-scene .lobby-actor {
    width: 32px;
    height: 48px;
    background-size: 128px 48px;
    --sprite-end: -128px;
  }
}

@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
    align-items: start;
  }

  .chat-panel {
    width: min(760px, 100%);
    justify-self: center;
  }

  .private-teaser,
  .private-hero,
  .private-form-page,
  .star-story-hero,
  .star-showcase,
  .private-split,
  .star-section,
  .intent-action-grid.compact,
  .spend-grid,
  .package-grid,
  .layer-grid,
  .reward-grid,
  .wallet-summary-grid,
  .reward-rule-grid,
  .star-intro-grid,
  .room-detail,
  .member-dashboard-preview {
    grid-template-columns: 1fr;
  }

  .star-story-hero,
  .star-showcase,
  .star-process,
  .star-price-band {
    min-height: auto;
    padding-block: 54px;
  }

  .star-showcase-women figure {
    order: 2;
  }

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

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

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

  .chat {
    height: 560px;
  }

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

  .after-hero-section {
    grid-template-columns: 1fr;
    padding: 32px 16px 18px;
  }

  .entry-card-grid,
  .feeling-card-grid {
    grid-template-columns: 1fr;
  }

  .entry-card {
    min-height: auto;
  }

  .quiet-lines {
    min-height: auto;
    padding: 0;
  }

  .answer-section {
    grid-template-columns: 1fr;
  }

  .leaderboard-section ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    gap: 24px;
    padding: 24px 18px 24px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 13vw, 60px);
  }

  .lead {
    font-size: 18px;
    line-height: 1.7;
  }

  .quick-tags {
    margin-top: 18px;
  }

  .chat-sample {
    margin-top: 20px;
  }

  .leaderboard-section {
    padding-bottom: 28px;
  }

  .private-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    overflow: visible;
    padding: 14px 18px;
  }

  .private-main-links {
    justify-content: flex-start;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .private-more-nav {
    min-width: max-content;
    justify-self: end;
  }

  .private-more-nav div {
    position: fixed;
    right: 14px;
    top: 58px;
  }

  .private-hero,
  .private-form-page,
  .room-showcase,
  .private-split,
  .private-teaser,
  .star-section,
  .monetize-section,
  .layer-section,
  .reward-grid,
  .wallet-summary-grid,
  .reward-rule-grid,
  .ledger-section,
  .reward-rule-section,
  .star-intro-grid,
  .decor-section,
  .room-detail,
  .member-dashboard-preview {
    padding-left: 22px;
    padding-right: 22px;
  }

  .private-hero h1,
  .private-form-page h1 {
    font-size: 52px;
  }

  .verify-steps,
  .camera-actions,
  .star-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .panel-top {
    padding: 14px 18px;
  }

  .panel-top strong {
    font-size: 20px;
  }

  .panel-top small {
    white-space: nowrap;
  }

  .chat-panel {
    min-height: 0;
    border-radius: 20px;
  }

  .chat {
    height: auto;
    min-height: 700px;
  }

  .chat.is-matched {
    height: auto;
    min-height: 620px;
  }

  .chat.matching {
    height: auto;
    min-height: 700px;
  }

  .matching-scene {
    position: relative;
    inset: auto;
    min-height: 700px;
    gap: 9px;
    padding: 16px 10px 18px;
    overflow: visible;
  }

  .chat.matching .matching-scene {
    display: grid;
  }

  .matching-cancel {
    position: relative;
    top: auto;
    right: auto;
    justify-self: center;
    width: min(410px, 100%);
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 16px;
    z-index: 80;
  }

  .matching-scene strong {
    max-width: 330px;
    font-size: 21px;
    line-height: 1.35;
  }

  .matching-scene p {
    max-width: 330px;
    font-size: 15px;
    line-height: 1.65;
  }

  .matching-progress {
    width: min(420px, 92%);
  }

  .matching-scene .pixel-lobby {
    width: min(100%, 430px);
    margin-top: 0;
    margin-bottom: 4px;
    border-width: 5px;
    border-radius: 16px;
  }

  .waiting-game {
    width: min(520px, 100%);
    grid-template-columns: minmax(0, 1fr) 98px;
    margin-top: 0;
    padding: 12px;
    border-color: rgba(218, 176, 160, 0.62);
    background: rgba(255, 250, 246, 0.98);
  }

  .snake-board {
    width: min(282px, 100%);
    padding: 7px;
    gap: 5px;
  }

  .merge-lanes {
    width: min(282px, 100%);
    gap: 5px;
  }

  .snake-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .snake-controls button {
    min-height: 52px;
  }

  .bubble-field {
    min-height: 286px;
  }

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

  .lobby-actor-bubble {
    max-width: 104px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .setup {
    gap: 12px;
    padding: 16px;
  }

  .setup-lobby {
    border-width: 4px;
    border-radius: 14px;
  }

  .mood-chip {
    min-height: 44px;
  }

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

  .article-related {
    grid-template-columns: 1fr;
  }

  .primary {
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 17px;
  }

  .soft-note {
    font-size: 13px;
  }

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

@media (max-width: 560px) {
  .hero {
    gap: 22px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 12.6vw, 52px);
  }

  .lead {
    font-size: 17px;
  }

  .chat-sample {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .upgrade-options {
    grid-template-columns: 1fr;
  }

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

  .upgrade-option {
    min-height: 0;
  }

  .chat {
    height: auto;
    min-height: 680px;
  }

  .chat.is-matched {
    height: auto;
    min-height: 610px;
  }

  .chat.matching {
    height: auto;
    min-height: 680px;
  }

  .chat-panel {
    min-height: 0;
  }

  .matching-scene {
    position: relative;
    inset: auto;
    min-height: 680px;
    gap: 9px;
    padding: 16px 10px 18px;
    overflow: visible;
  }

  .chat.matching .matching-scene {
    display: grid;
  }

  .matching-cancel {
    position: relative;
    top: auto;
    right: auto;
    justify-self: center;
    width: min(410px, 100%);
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 16px;
    z-index: 80;
  }

  .matching-scene strong {
    max-width: 280px;
    font-size: 21px;
    line-height: 1.35;
  }

  .matching-scene p {
    max-width: 290px;
    font-size: 15px;
    line-height: 1.65;
  }

  .matching-progress {
    width: min(390px, 92%);
  }

  .matching-scene .pixel-lobby {
    width: min(100%, 410px);
    margin-top: 0;
    margin-bottom: 4px;
    border-width: 5px;
    border-radius: 16px;
  }

  .waiting-game {
    width: min(410px, 100%);
    grid-template-columns: minmax(0, 1fr) 82px;
    margin-top: 0;
    padding: 10px;
    border-color: rgba(218, 176, 160, 0.62);
    background: rgba(255, 250, 246, 0.96);
  }

  .snake-board {
    width: min(246px, 100%);
    padding: 7px;
    gap: 4px;
  }

  .merge-lanes {
    width: min(246px, 100%);
    gap: 4px;
  }

  .merge-help {
    font-size: 12px;
  }

  .snake-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .snake-controls button {
    min-height: 50px;
  }

  .bubble-field {
    min-height: 278px;
  }

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

  .emotion-bubble {
    min-width: 60px;
    min-height: 60px;
    max-width: 94px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .mood-grid,
  .topic-grid,
  .feature-grid,
  .room-grid,
  .decor-grid,
  .intent-action-grid,
  .intent-action-grid.compact,
  .spend-grid,
  .package-grid,
  .layer-grid,
  .reward-grid,
  .wallet-summary-grid,
  .reward-rule-grid,
  .star-intro-grid {
    grid-template-columns: 1fr;
  }

  .composer {
    grid-template-columns: 42px 42px 1fr 62px;
  }

  .chat.is-matched .matched-room,
  .chat.is-matched .chat-status,
  .chat.is-matched .messages,
  .chat.is-matched .composer {
    margin-left: 12px;
    margin-right: 12px;
  }

  .chat-status {
    align-items: flex-start;
  }

  .chat-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .hero {
    padding-left: 10px;
    padding-right: 10px;
  }

  .quick-tags {
    gap: 7px;
  }

  .quick-tags span {
    padding: 8px 10px;
    font-size: 13px;
  }

  .sample-bubble {
    max-width: 100%;
    font-size: 14px;
  }

  .panel-top {
    padding: 13px 14px;
  }

  .setup {
    padding: 12px;
  }

  .primary {
    min-height: 54px;
  }

  .matching-scene {
    padding-left: 8px;
    padding-right: 8px;
  }

  .matching-scene .pixel-lobby,
  .waiting-game {
    width: min(100%, 340px);
  }

  .snake-board {
    width: 226px;
  }

  .merge-lanes {
    width: 226px;
  }

  .snake-controls button {
    min-height: 48px;
  }
}

@media (max-width: 640px) {
  .star-story-copy h1,
  .star-showcase h2,
  .star-process h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .star-process-grid {
    grid-template-columns: 1fr;
  }

  .star-story-visual,
  .star-showcase figure {
    border-radius: 20px;
  }

  .star-story-visual img,
  .star-showcase img {
    height: 340px;
  }

  .star-price-band strong {
    font-size: clamp(44px, 14vw, 72px);
  }
}

body.chat-active .chat.is-matched {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100svh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

body.chat-active .chat.is-matched .matched-room,
body.chat-active .chat.is-matched .icebreaker,
body.chat-active .chat.is-matched .empathy-tray {
  display: none;
}

body.chat-active .chat.is-matched .chat-status {
  flex: 0 0 auto;
  margin-top: 16px;
}

body.chat-active .chat.is-matched .messages {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

body.chat-active .chat.is-matched .composer {
  flex: 0 0 auto;
}
