@charset "UTF-8";

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a4b390;
  outline-offset: 5px;
}

.member-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.broadcast {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 23px;
  margin-top: 23px;
  padding: 12px 19px;
  border: 1px solid #e0e6d5;
  border-radius: 8px;
  background: #edf1e680;
}

.broadcast-label {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  padding-right: 22px;
  border-right: 1px solid #d8e0cd;
  color: #6c7d60;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.broadcast-label svg {
  width: 17px;
  height: 17px;
}

.broadcast p {
  flex: 1;
  margin: 0;
  color: #6b785e;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.9;
}

.broadcast-air {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  color: #94a084;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.broadcast-air i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #92a47b;
}

.members-home {
  margin-top: 39px;
}

.members-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.members-heading h1 {
  margin: 13px 0 12px;
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 35px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.members-subtitle {
  margin: 0;
  color: #89917f;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

.interaction-tip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  color: #96a089;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.interaction-tip svg {
  width: 19px;
  height: 19px;
}

.members-stage {
  position: relative;
  min-height: 462px;
  overflow: clip;
  isolation: isolate;
  margin-top: 20px;
}

.room-colors {
  position: absolute;
  z-index: -1;
  inset: 0 0 15px;
  background: radial-gradient(ellipse 24% 69% at 26% 54%, #eae4f569, transparent),
    radial-gradient(ellipse 24% 69% at 74% 54%, #e4efdf85, transparent);
  transition: opacity 240ms ease;
}

.room-center-note {
  position: absolute;
  top: 118px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 17px;
  transform: translateX(-50%);
  color: #c4baa7;
  transition: opacity 180ms ease;
}

.room-center-note svg {
  width: 48px;
  height: 46px;
}

.room-center-note span {
  color: #a6aa96;
  font-size: 8px;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.member-person {
  position: absolute;
  top: 10px;
  display: flex;
  width: 340px;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.member-hua {
  left: 26%;
  --member-color: #a08dbb;
  --member-tint: #eee8f5;
}

.member-yue {
  left: 74%;
  --member-color: #8ba47d;
  --member-tint: #e9efdf;
}

.member-name,
.pet-name {
  display: inline-grid;
  justify-items: center;
  gap: 8px;
  padding: 7px 17px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  transition: background 180ms ease;
}

.member-name:hover {
  background: var(--member-tint);
}

.member-name-text {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #505547;
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: 0.1em;
}

.member-name svg,
.pet-name svg,
.profile-symbol svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.member-name svg {
  color: var(--member-color);
}

.member-role {
  color: #a09bac;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.member-yue .member-role {
  color: #94a18a;
}

.portrait-button {
  position: relative;
  display: block;
  width: 330px;
  height: 330px;
  padding: 0;
  border: 0;
  border-radius: 25%;
  background: transparent;
}

.portrait-button::after {
  position: absolute;
  z-index: -1;
  right: 23%;
  bottom: -3px;
  left: 23%;
  height: 12px;
  border-radius: 50%;
  background: #a89bb519;
  filter: blur(5px);
  content: "";
}

.member-yue .portrait-button::after {
  background: #82987419;
}

.portrait-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.portrait-button:hover img,
.portrait-button:focus-visible img {
  transform: translateY(-6px) rotate(-1.5deg);
}

.member-hua .portrait-button img {
  transform: scaleX(-1);
}

.member-hua .portrait-button:hover img,
.member-hua .portrait-button:focus-visible img {
  transform: scaleX(-1) translateY(-6px) rotate(-1.5deg);
}

.member-yue .portrait-button:hover img,
.member-yue .portrait-button:focus-visible img {
  transform: translateY(-6px) rotate(1.5deg);
}

.portrait-hint {
  margin-top: 11px;
  color: #a49cad;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.member-yue .portrait-hint {
  color: #9ba58e;
}

.pet-member {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  display: flex;
  width: 170px;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.pet-name {
  gap: 6px;
  margin-bottom: 9px;
  padding: 8px 13px;
  color: #8e806a;
}

.pet-name:hover {
  background: #f1ecdf;
}

.pet-name > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.1em;
}

.pet-name svg {
  width: 16px;
  height: 16px;
  color: #ac9c7e;
}

.pet-name small {
  color: #a9a28d;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.pet-portrait {
  position: relative;
  display: grid;
  width: 144px;
  height: 101px;
  align-items: end;
  padding: 0;
  border: 0;
  border-radius: 40%;
  background: transparent;
  transition: width 250ms ease, height 250ms ease;
}

.pet-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 3px 2px #51483f0c);
  transition: transform 220ms ease;
}

.pet-portrait:hover img {
  transform: translateY(-3px) rotate(-3deg);
}

.pet-belly-note {
  position: absolute;
  top: 13px;
  right: -117px;
  padding: 8px 10px;
  transform: rotate(6deg);
  border: 1px solid #e5dcc9;
  border-radius: 10px 10px 10px 1px;
  background: #fcf8ed;
  color: #a19276;
  font-family: var(--serif);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  white-space: nowrap;
}

.members-stage[data-active="xuehua"] .pet-portrait {
  width: 166px;
  height: 132px;
}

.members-stage[data-active="xuehua"] .pet-belly-note {
  opacity: 1;
}

.room-floor {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  border-bottom: 1px solid #dce2d2;
}

.room-floor span {
  position: absolute;
  right: max(32px, calc((100% - 1160px) / 2));
  bottom: 13px;
  color: #b2b6a5;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px 31px;
}

.stage-caption p {
  margin: 0;
  color: #959d87;
  font-size: 10px;
  line-height: 1.8;
}

.stage-caption p:first-child {
  color: #8d9580;
  font-family: var(--serif);
  letter-spacing: 0.07em;
}

.stage-caption p > span {
  margin-right: 8px;
  color: #b8b999;
}

.members-caption-actions {
  flex-shrink: 0;
  align-self: flex-end;
  margin-left: auto;
}

.member-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.member-add-button svg {
  width: 18px;
  height: 18px;
}

.stage-caption .members-feedback {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.member-entry-dialog {
  overflow-y: auto;
  width: min(420px, calc(100% - 36px));
  max-height: calc(100% - 40px);
  margin: auto;
  padding: 25px;
  border: 1px solid var(--accent-border, #e6c3d4);
  border-radius: 16px;
  background: var(--surface, #fffcfd);
  color: var(--ink);
  box-shadow: 0 16px 65px #74455826;
}

.member-entry-dialog::backdrop {
  background: #6543544d;
  backdrop-filter: blur(3px);
}

.member-entry-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.member-entry-badge {
  padding: 4px 9px;
  border: 1px solid var(--accent-border, #e6c3d4);
  border-radius: 5px;
  background: var(--accent-faint, #fff0f6);
  color: var(--text-soft);
  font-size: 14px;
}

.member-entry-dialog h2 {
  margin: 19px 0 13px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
}

.member-entry-dialog > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
}

.member-entry-dialog > .button {
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
  font-size: 16px;
}

.members-stage.has-profile {
  min-height: max(462px, calc(var(--profile-height, 570px) + 70px));
}

.members-stage.has-profile[data-active="xuehua"] {
  min-height: max(462px, calc(var(--profile-height, 450px) + 205px));
}

.has-profile .member-person {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.members-stage[data-active="hua"] .pet-member,
.members-stage[data-active="yue"] .pet-member {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.has-profile .room-center-note {
  opacity: 0;
}

.has-profile .room-colors {
  opacity: 0.55;
}

.edge-peek {
  position: absolute;
  z-index: 4;
  top: 119px;
  width: clamp(160px, 20vw, 260px);
  padding: 0;
  border: 0;
  background: transparent;
  animation: peek-in 420ms ease both;
}

.edge-peek img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(2px 3px 4px #6262440b);
}

.edge-peek-left {
  left: 0;
  --peek-x: -47%;
  transform: translateX(var(--peek-x));
}

.edge-peek-right {
  right: 0;
  --peek-x: 47%;
  transform: translateX(var(--peek-x));
}

.edge-peek span {
  position: absolute;
  bottom: -20px;
  color: #a098ae;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.edge-peek-left span {
  right: -5px;
}

.edge-peek-right span {
  left: -5px;
  color: #91a281;
}

.profile-panel {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: min(650px, calc(100% - 260px));
  padding: 25px 29px 20px;
  transform: translateX(-50%);
  border: 1px solid #ded8e7;
  border-radius: 14px;
  outline: none;
  background: #fffef9;
  box-shadow: 0 8px 35px #6c5d7610;
  --profile-color: #8e7ba8;
  --profile-tint: #f0ebf6;
  --profile-line: #e4dced;
}

.profile-panel[data-profile="yue"] {
  border-color: #d9e3cf;
  --profile-color: #758b63;
  --profile-tint: #edf2e5;
  --profile-line: #dce5d0;
}

.profile-panel[data-profile="xuehua"] {
  border-color: #e5ddca;
  --profile-color: #a18c61;
  --profile-tint: #f5f0e4;
  --profile-line: #e9dfca;
}

.profile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-symbol {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid var(--profile-line);
  border-radius: 12px;
  background: var(--profile-tint);
  color: var(--profile-color);
}

.profile-role {
  margin: 0 0 5px;
  color: var(--profile-color);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.profile-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  padding: 0;
  border: 1px solid #e9e8dc;
  border-radius: 50%;
  background: transparent;
  color: #9d9f8d;
  transition: background 180ms ease, color 180ms ease;
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.icon-button:hover {
  background: #efeee4;
  color: #5f6c54;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  padding-top: 21px;
}

.profile-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.profile-field.is-wide {
  grid-column: 1 / -1;
}

.profile-field label {
  color: #7d8373;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.profile-field input,
.profile-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 10px 11px;
  border: 1px solid #e5e5d9;
  border-radius: 5px;
  background: #fffefa;
  color: #505b47;
  font-size: 12px;
  line-height: 1.5;
  transition: border-color 180ms ease, background 180ms ease;
}

.profile-field textarea {
  min-height: 56px;
  resize: vertical;
}

.profile-field input::placeholder,
.profile-field textarea::placeholder {
  color: #b4b7a8;
  opacity: 1;
}

.profile-field input[readonly],
.profile-field textarea[readonly] {
  border-color: #efeee6;
  background: #f9f9f2;
  color: #6f7961;
}

.profile-field input:not([readonly]):focus,
.profile-field textarea:not([readonly]):focus {
  border-color: var(--profile-color);
  outline: 2px solid var(--profile-tint);
  outline-offset: 1px;
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 23px;
}

.profile-status {
  margin: 0;
  color: #939b84;
  font-size: 10px;
  line-height: 1.8;
}

.profile-status.is-error {
  color: #b36d61;
}

.profile-action-buttons {
  display: flex;
  flex-shrink: 0;
  gap: 9px;
}

.profile-actions .button,
.secondary-button {
  min-height: 37px;
  padding: 9px 14px;
  font-size: 11px;
}

.secondary-button {
  border: 1px solid #dce1d0;
  border-radius: 6px;
  background: transparent;
  color: #8b947d;
}

.secondary-button:hover {
  background: #f0f3e9;
  color: #526448;
}

.profile-storage-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #e9e9dd;
  color: #a6aa99;
  font-size: 9px;
  line-height: 1.8;
}

.profile-storage-note svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.noscript-note {
  color: #8d735d;
  font-size: 12px;
}

.cottage-main > .explore {
  margin-top: 4px;
}

@keyframes peek-in {
  from {
    transform: translateX(calc(var(--peek-x) * 1.7));
    opacity: 0;
  }
  to {
    transform: translateX(var(--peek-x));
    opacity: 1;
  }
}

@media (min-width: 1500px) {
  .member-hua {
    left: calc(50% - 310px);
  }

  .member-yue {
    left: calc(50% + 310px);
  }
}

@media (max-width: 1050px) {
  .broadcast {
    gap: 16px;
  }

  .broadcast-air {
    display: none;
  }

  .interaction-tip {
    max-width: 152px;
    align-items: flex-start;
    line-height: 1.8;
  }

  .interaction-tip svg {
    flex-shrink: 0;
  }

  .profile-panel {
    width: min(620px, calc(100% - 205px));
    padding-inline: 24px;
  }

  .edge-peek {
    width: 190px;
  }
}

@media (max-width: 760px) {
  .broadcast {
    gap: 13px;
    margin-top: 18px;
    padding: 12px 14px;
  }

  .broadcast-label {
    padding-right: 12px;
  }

  .broadcast-label > span {
    display: none;
  }

  .broadcast p {
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .members-home {
    margin-top: 29px;
  }

  .members-heading {
    display: block;
  }

  .members-heading h1 {
    margin-block: 12px;
    font-size: clamp(24px, 4.7vw, 31px);
    letter-spacing: 0.04em;
  }

  .members-subtitle {
    font-size: 10px;
  }

  .interaction-tip {
    max-width: none;
    align-items: center;
    margin-top: 17px;
    font-size: 9px;
  }

  .interaction-tip svg {
    width: 15px;
    height: 15px;
  }

  .members-stage {
    min-height: 385px;
    margin-top: 20px;
  }

  .member-person {
    width: 44%;
  }

  .member-hua {
    left: 25%;
  }

  .member-yue {
    left: 75%;
  }

  .member-name {
    gap: 6px;
    padding: 7px 10px;
  }

  .member-name-text {
    gap: 7px;
    font-size: 27px;
  }

  .member-name svg {
    width: 22px;
    height: 22px;
  }

  .member-role {
    font-size: 7px;
  }

  .portrait-button {
    width: 100%;
    height: clamp(170px, 40vw, 275px);
    margin-top: 10px;
  }

  .portrait-hint {
    margin-top: 9px;
    font-size: 8px;
    letter-spacing: 0.02em;
  }

  .room-center-note {
    top: 100px;
  }

  .room-center-note svg {
    width: 24px;
    height: 24px;
  }

  .room-center-note span {
    display: none;
  }

  .room-colors {
    background: radial-gradient(ellipse 32% 57% at 23% 35%, #eae4f55e, transparent),
      radial-gradient(ellipse 32% 57% at 77% 35%, #e4efdf80, transparent);
  }

  .pet-member {
    width: 125px;
  }

  .pet-name {
    gap: 4px;
    margin-bottom: 3px;
    padding-block: 5px;
  }

  .pet-name > span {
    gap: 5px;
    font-size: 15px;
  }

  .pet-name small {
    font-size: 6px;
  }

  .pet-portrait {
    width: 102px;
    height: 73px;
  }

  .members-stage[data-active="xuehua"] .pet-portrait {
    width: 127px;
    height: 101px;
  }

  .pet-belly-note {
    top: 4px;
    right: -90px;
    padding: 7px 8px;
    font-size: 8px;
  }

  .room-floor span {
    right: 19px;
    bottom: 11px;
    max-width: 80px;
    font-size: 6px;
    line-height: 1.8;
    text-align: right;
  }

  .stage-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding-block: 17px 26px;
  }

  .stage-caption p {
    font-size: 9px;
  }

  .profile-panel {
    top: 8px;
    width: calc(100% - 100px);
    padding: 21px 20px 17px;
  }

  .edge-peek {
    top: 117px;
    width: 104px;
  }

  .edge-peek-left {
    --peek-x: -49%;
  }

  .edge-peek-right {
    --peek-x: 49%;
  }

  .edge-peek span {
    bottom: -18px;
    font-size: 9px;
    writing-mode: vertical-rl;
  }

  .edge-peek-left span {
    right: 5px;
  }

  .edge-peek-right span {
    left: 5px;
  }

  .profile-fields {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-top: 19px;
  }

  .profile-field {
    gap: 7px;
  }

  .profile-heading {
    gap: 10px;
  }

  .profile-symbol {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .profile-symbol svg {
    width: 21px;
    height: 21px;
  }

  .profile-heading h2 {
    font-size: 19px;
  }

  .profile-role {
    font-size: 7px;
  }

  .profile-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-top: 21px;
  }

  .profile-action-buttons {
    align-self: flex-end;
    gap: 7px;
  }

  .profile-storage-note {
    align-items: flex-start;
    font-size: 8px;
  }

  .profile-storage-note svg {
    margin-top: 2px;
  }

  .members-stage.has-profile {
    min-height: calc(var(--profile-height, 820px) + 55px);
  }

  .members-stage.has-profile[data-active="xuehua"] {
    min-height: calc(var(--profile-height, 520px) + 170px);
  }
}

@media (min-width: 501px) and (max-width: 760px) {
  .members-stage:not(.has-profile) {
    min-height: 455px;
  }

  .profile-panel {
    width: calc(100% - 140px);
    padding-inline: 27px;
  }

  .profile-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edge-peek {
    width: 140px;
  }
}

@media (max-width: 370px) {
  .members-heading h1 {
    font-size: 23px;
  }

  .members-stage {
    min-height: 366px;
  }

  .profile-panel {
    width: calc(100% - 74px);
    padding-inline: 15px;
  }

  .profile-heading h2 {
    font-size: 17px;
  }

  .profile-heading {
    gap: 8px;
  }

  .profile-symbol {
    width: 30px;
    height: 30px;
  }

  .icon-button {
    width: 29px;
    height: 29px;
  }

  .edge-peek {
    width: 80px;
  }

  .profile-actions .button,
  .secondary-button {
    gap: 10px;
    padding-inline: 11px;
    font-size: 10px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
