.room-card-shared-view[hidden],
.room-card-shared-paper[hidden],
.room-card-invalid[hidden],
.room-card-shared-next[hidden],
.room-card-full-preview[hidden],
.room-card-maker [hidden] {
  display: none !important;
}

body[data-shared-journey="landing"] .first-visit-shell {
  display: none !important;
}

.room-card-shared-view,
.room-card-maker {
  --room-card-ink: #172a25;
  --room-card-green: #2e694e;
  --room-card-red: #b84b3d;
  --room-card-blue: #9ec8d3;
  --room-card-yellow: #f1c75b;
  --room-card-paper: #fffaf0;
  color: var(--room-card-ink);
}

.room-card-shared-view {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) 0 20px;
}

.room-card-shared-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.45fr);
  gap: 10px 42px;
  align-items: end;
  margin-bottom: 24px;
}

.room-card-shared-heading > p:first-child,
.room-card-maker-heading > p:first-child,
.room-card-draft > div:first-child > p,
.room-card-preview-copy > p,
.room-card-shared-copy > p,
.room-card-share > div > p:first-child {
  margin: 0;
  color: var(--room-card-green);
  font: 900 0.62rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.room-card-shared-heading > p:first-child {
  grid-column: 1 / -1;
}

.room-card-shared-heading h1,
.room-card-maker-heading h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 6.8rem);
  letter-spacing: -0.075em;
  line-height: 0.86;
  text-wrap: balance;
}

.room-card-shared-heading > p:last-child,
.room-card-maker-heading > p:last-child {
  margin: 0;
  color: #50605a;
  font-size: 0.86rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.room-card-shared-title:focus-visible,
.room-card-maker-title:focus-visible,
.room-card-full-preview:focus-visible {
  border-radius: 4px;
  outline: 4px solid var(--room-card-red);
  outline-offset: 5px;
}

.room-card-shared-paper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(22px, 4vw, 52px);
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
  border: 2px solid var(--room-card-ink);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgb(46 105 78 / 7%) 32px 33px),
    var(--room-card-paper);
  box-shadow: 10px 11px 0 var(--room-card-ink);
  transform: rotate(-0.25deg);
  animation: room-card-arrive 560ms cubic-bezier(0.2, 0.85, 0.28, 1.08) both;
}

.room-card-airmail {
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: repeating-linear-gradient(135deg, var(--room-card-red) 0 14px, var(--room-card-paper) 14px 28px, var(--room-card-green) 28px 42px, var(--room-card-paper) 42px 56px);
}

.room-card-shared-copy {
  align-self: center;
}

.room-card-shared-copy h2,
.room-card-preview-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4.7vw, 4.4rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-wrap: balance;
}

.room-card-shared-copy > p:nth-of-type(2),
.room-card-preview-copy > p:nth-of-type(2) {
  margin: 18px 0 0;
  color: #4b5a54;
  font-size: 0.84rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.room-card-detail-list {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  border-top: 1px solid rgb(23 42 37 / 32%);
}

.room-card-detail-list div {
  display: grid;
  grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(23 42 37 / 18%);
}

.room-card-detail-list dt {
  color: #607069;
  font: 800 0.58rem/1.45 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.room-card-detail-list dd {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 780;
  line-height: 1.45;
}

.room-card-shared-next {
  display: flex;
  gap: 18px 30px;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--room-card-ink);
  border-left: 7px solid var(--room-card-green);
  border-radius: 7px;
  background: #fff;
}

.room-card-shared-next p {
  max-width: 630px;
  margin: 0;
  color: #50605a;
  font-size: 0.8rem;
  line-height: 1.5;
}

.room-card-shared-next p strong {
  color: var(--room-card-ink);
}

.room-card-shared-next button,
.future-room-card-invitation button,
.room-card-preview-action,
.room-card-share > button {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--room-card-ink);
  border-radius: 5px;
  color: #fff;
  background: var(--room-card-ink);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.room-card-shared-next button:hover,
.future-room-card-invitation button:hover,
.room-card-preview-action:hover:not(:disabled),
.room-card-share > button:hover {
  background: var(--room-card-green);
}

.room-card-shared-next button:focus-visible,
.future-room-card-invitation button:focus-visible,
.room-card-preview-action:focus-visible,
.room-card-share > button:focus-visible,
.room-card-maker-close:focus-visible,
.room-card-choice-group button:focus-visible,
.room-card-link input:focus-visible,
.room-card-invalid a:focus-visible,
.room-card-shared-footer a:focus-visible {
  outline: 3px solid var(--room-card-red);
  outline-offset: 3px;
}

.room-card-shared-footer {
  display: flex;
  gap: 14px 28px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #c9cec9;
  color: #5e6c66;
  font-size: 0.65rem;
  line-height: 1.5;
}

.room-card-shared-footer a {
  font-weight: 800;
  text-underline-offset: 3px;
}

.room-card-invalid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  max-width: 760px;
  padding: clamp(22px, 4vw, 38px);
  border: 2px solid var(--room-card-ink);
  border-radius: 7px;
  background: var(--room-card-paper);
  box-shadow: 8px 9px 0 var(--room-card-ink);
}

.room-card-invalid > span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 3px double var(--room-card-red);
  border-radius: 50%;
  color: var(--room-card-red);
  font: 900 0.54rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  transform: rotate(-8deg);
}

.room-card-invalid h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.room-card-invalid p {
  margin: 11px 0 15px;
  color: #50605a;
  font-size: 0.8rem;
  line-height: 1.55;
}

.room-card-invalid a {
  font-size: 0.78rem;
  font-weight: 850;
  text-underline-offset: 3px;
}

.future-room-card-invitation {
  --room-card-ink: #172a25;
  --room-card-green: #2e694e;
  --room-card-red: #b84b3d;
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed #82765f;
}

.future-room-card-invitation p {
  margin: 0;
  color: #4b554d;
  font-size: 0.72rem;
  line-height: 1.5;
}

.future-room-card-invitation button {
  width: 100%;
}

.room-card-maker {
  width: min(calc(100% - 28px), 1180px);
  max-width: 1180px;
  max-height: min(92vh, 980px);
  max-height: min(92dvh, 980px);
  margin: auto;
  padding: clamp(24px, 4vw, 52px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 2px solid var(--room-card-ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 73%, rgb(46 105 78 / 7%) 73% 73.2%, transparent 73.2%),
    repeating-linear-gradient(0deg, transparent 0 35px, rgb(46 105 78 / 6%) 36px 37px),
    var(--room-card-paper);
  box-shadow: 12px 14px 0 rgb(23 42 37 / 35%);
}

.room-card-maker::backdrop {
  background: rgb(23 42 37 / 72%);
  backdrop-filter: blur(3px);
}

body.room-card-maker-fallback-open {
  overflow: hidden;
}

.room-card-maker:not([open]) {
  display: none;
}

.room-card-maker-close-form {
  position: sticky;
  top: -20px;
  z-index: 20;
  display: flex;
  height: 0;
  justify-content: flex-end;
}

.room-card-maker-close {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 11px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--room-card-ink);
  border-radius: 999px;
  color: var(--room-card-ink);
  background: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

.room-card-maker-close span {
  font-size: 1.1rem;
  line-height: 0.8;
}

.room-card-maker-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.4fr);
  gap: 12px 42px;
  align-items: end;
  padding-right: 64px;
}

.room-card-maker-heading > p:first-child {
  grid-column: 1 / -1;
}

.room-card-maker-heading h1 {
  font-size: clamp(2.7rem, 6vw, 6.3rem);
}

.room-card-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(380px, 1.22fr);
  gap: clamp(24px, 4vw, 52px);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid var(--room-card-ink);
}

.room-card-choice-desk h2,
.room-card-draft h2,
.room-card-share h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.room-card-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.room-card-choice-group legend {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 5px;
  color: var(--room-card-ink);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.4;
}

.room-card-choice-group legend span {
  display: inline-grid;
  width: 25px;
  height: 25px;
  margin-right: 7px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--room-card-ink);
  font: 850 0.57rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.room-card-choice-group button {
  display: grid;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  align-content: start;
  border: 1px solid #aeb8b1;
  border-radius: 5px;
  color: var(--room-card-ink);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.room-card-choice-group button:hover {
  border-color: var(--room-card-ink);
  background: #f4f1df;
}

.room-card-choice-group button[aria-pressed="true"] {
  border-color: var(--room-card-ink);
  color: #fff;
  background: var(--room-card-green);
  box-shadow: inset 0 0 0 2px var(--room-card-paper);
}

.room-card-choice-group button strong {
  font-size: 0.73rem;
  line-height: 1.3;
}

.room-card-choice-group button small {
  margin-top: 5px;
  color: #607069;
  font-size: 0.62rem;
  line-height: 1.4;
}

.room-card-choice-group button[aria-pressed="true"] small {
  color: #e8f3ec;
}

.room-card-choice-status {
  min-height: 1.5em;
  margin: 18px 0 8px;
  color: #50605a;
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1.45;
}

.room-card-preview-action {
  width: 100%;
}

.room-card-preview-action:disabled {
  border-color: #9da8a1;
  color: #66746e;
  background: #dfe4df;
  cursor: not-allowed;
}

.room-card-draft {
  align-self: start;
  min-width: 0;
  padding: 20px;
  border: 1px dashed var(--room-card-green);
  border-radius: 6px;
  background: rgb(255 255 255 / 64%);
}

.room-card-draft h2 {
  margin-top: 5px;
}

.room-card-draft-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.room-card-draft-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  padding: 8px;
  align-items: center;
  border: 1px solid #c8d0ca;
  border-radius: 4px;
  color: #65726d;
  background: #fff;
}

.room-card-draft-list li.is-filed {
  border-color: var(--room-card-green);
  color: var(--room-card-ink);
  background: #e4efe5;
}

.room-card-draft-list span {
  font: 850 0.55rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.room-card-draft-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.58rem;
  line-height: 1.3;
}

.room-card-full-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 52px);
  margin-top: 38px;
  padding: clamp(24px, 4vw, 44px);
  border: 2px solid var(--room-card-ink);
  border-radius: 7px;
  background: #fff;
  box-shadow: 8px 9px 0 var(--room-card-yellow);
  animation: room-card-preview-open 460ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.room-card-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: end;
  margin-top: 34px;
  padding: 20px 0 0;
  border-top: 2px solid var(--room-card-ink);
}

.room-card-share > div > p:last-child {
  margin: 6px 0 0;
  color: #50605a;
  font-size: 0.72rem;
  line-height: 1.45;
}

.room-card-link {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  min-width: 0;
}

.room-card-link span {
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.room-card-link input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--room-card-ink);
  border-radius: 4px;
  color: var(--room-card-ink);
  background: #fff;
  font: 700 0.68rem/1.35 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.room-card-copy-status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  margin: 0;
  color: var(--room-card-green);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.45;
}

.room-card-scene {
  position: relative;
  min-width: 0;
  min-height: 360px;
  overflow: hidden;
  border: 2px solid var(--room-card-ink);
  border-radius: 58% 58% 8px 8px / 22% 22% 8px 8px;
  background: linear-gradient(#dfecee 0 66%, #d8c49a 66% 100%);
  isolation: isolate;
}

.room-card-scene.is-draft {
  min-height: 390px;
  margin-top: 18px;
}

.room-card-scene > span {
  position: absolute;
  display: block;
}

.room-card-scene-grid {
  inset: 0;
  z-index: -2;
  opacity: 0.16;
  background:
    linear-gradient(90deg, transparent 49.5%, var(--room-card-green) 49.5% 50%, transparent 50%),
    linear-gradient(transparent 49.5%, var(--room-card-green) 49.5% 50%, transparent 50%);
  background-size: 42px 42px;
}

.room-card-scene-sun {
  top: 28px;
  right: 22%;
  width: 56px;
  height: 56px;
  border: 2px solid var(--room-card-ink);
  border-radius: 50%;
  background: var(--room-card-yellow);
  box-shadow: 0 0 0 11px rgb(241 199 91 / 28%);
  transform: scale(0);
  transition: transform 280ms ease;
}

.room-card-scene-moon {
  top: 28px;
  right: 22%;
  width: 58px;
  height: 58px;
  border: 2px solid var(--room-card-ink);
  border-radius: 50%;
  background: #f4ead0;
  box-shadow: inset -14px -3px 0 #7892aa;
  transform: scale(0);
  transition: transform 280ms ease;
}

.room-card-scene-window {
  top: 67px;
  left: 8%;
  width: 32%;
  height: 35%;
  border: 5px solid var(--room-card-ink);
  background: linear-gradient(#b9dfe3, #eef6e9 72%, #7aa17c 72%);
  box-shadow: inset 0 0 0 4px #fff7df;
}

.room-card-scene-window::before,
.room-card-scene-window::after {
  position: absolute;
  z-index: 2;
  background: var(--room-card-ink);
  content: "";
}

.room-card-scene-window::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
}

.room-card-scene-window::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 3px;
}

.room-card-scene-window i {
  position: absolute;
  bottom: 7%;
  width: 36%;
  height: 30%;
  border-radius: 60% 60% 20% 20%;
  background: #315f45;
}

.room-card-scene-window i:first-child { left: 8%; transform: rotate(-8deg); }
.room-card-scene-window i:last-child { right: 8%; transform: rotate(9deg); }

.room-card-scene-lamp {
  top: 43%;
  right: 12%;
  z-index: 3;
  width: 12px;
  height: 36%;
  border: 2px solid var(--room-card-ink);
  border-radius: 8px;
  background: var(--room-card-green);
  transform-origin: bottom;
  transform: scaleY(0.18);
  opacity: 0.32;
  transition: transform 280ms ease, opacity 280ms ease;
}

.room-card-scene-lamp::before {
  position: absolute;
  top: -44px;
  left: -28px;
  width: 66px;
  height: 45px;
  border: 2px solid var(--room-card-ink);
  border-radius: 60% 60% 18% 18%;
  background: var(--room-card-yellow);
  content: "";
}

.room-card-scene-lamp::after {
  position: absolute;
  right: -22px;
  bottom: -5px;
  width: 54px;
  height: 12px;
  border: 2px solid var(--room-card-ink);
  border-radius: 50%;
  background: #b56e4a;
  content: "";
}

.room-card-scene-rug {
  right: 7%;
  bottom: 3%;
  left: 6%;
  z-index: -1;
  height: 29%;
  border: 2px solid var(--room-card-ink);
  background:
    linear-gradient(45deg, rgb(255 255 255 / 32%) 25%, transparent 25% 75%, rgb(255 255 255 / 32%) 75%),
    var(--room-card-blue);
  background-size: 34px 34px;
  transform: skewX(-9deg) scale(0.25);
  opacity: 0.2;
  transition: transform 280ms ease, opacity 280ms ease;
}

.room-card-scene-rug i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgb(23 42 37 / 34%);
}

.room-card-scene-rug i:nth-child(1) { left: 25%; }
.room-card-scene-rug i:nth-child(2) { left: 50%; }
.room-card-scene-rug i:nth-child(3) { left: 75%; }

.room-card-scene-lane {
  right: -10%;
  bottom: 9%;
  left: -8%;
  z-index: -1;
  height: 54px;
  padding: 18px 0 0;
  border-block: 2px solid var(--room-card-ink);
  color: #fff;
  background: var(--room-card-red);
  font: 900 0.5rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.1em;
  text-align: center;
  transform: rotate(-10deg) scaleX(0.2);
  opacity: 0.2;
  transition: transform 280ms ease, opacity 280ms ease;
}

.room-card-scene-desk {
  right: 23%;
  bottom: 26%;
  width: 38%;
  height: 16%;
  z-index: 2;
  border: 2px solid var(--room-card-ink);
  border-radius: 4px;
  background: #b56e4a;
  box-shadow: inset 0 -8px 0 rgb(23 42 37 / 13%);
}

.room-card-scene-desk i {
  position: absolute;
  top: 100%;
  width: 9px;
  height: 120%;
  border-inline: 2px solid var(--room-card-ink);
  background: #8e533a;
}

.room-card-scene-desk i:first-child { left: 12%; }
.room-card-scene-desk i:nth-child(2) { right: 12%; }

.room-card-scene-desk b {
  position: absolute;
  top: 9px;
  left: 12px;
  padding: 3px 5px;
  color: var(--room-card-ink);
  background: #fffaf0;
  font: 900 0.42rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  transform: rotate(-4deg);
}

.room-card-scene-chair {
  bottom: 18%;
  left: 42%;
  z-index: 4;
  width: 18%;
  height: 25%;
  border: 2px solid var(--room-card-ink);
  border-radius: 28px 28px 5px 5px;
  background: #d7b763;
}

.room-card-scene-chair::before {
  position: absolute;
  right: -7px;
  bottom: 15%;
  left: -7px;
  height: 28%;
  border: 2px solid var(--room-card-ink);
  border-radius: 4px;
  background: #e7cf82;
  content: "";
}

.room-card-scene-chair i {
  position: absolute;
  top: 93%;
  width: 5px;
  height: 33%;
  background: var(--room-card-ink);
}

.room-card-scene-chair i:first-child { left: 16%; transform: rotate(5deg); }
.room-card-scene-chair i:nth-child(2) { right: 16%; transform: rotate(-5deg); }

.room-card-scene-chair b {
  position: absolute;
  top: 13px;
  left: 50%;
  font: 900 0.4rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  transform: translateX(-50%) rotate(-4deg);
}

.room-card-scene-fern {
  right: 6%;
  bottom: 19%;
  z-index: 4;
  width: 74px;
  height: 88px;
  transform-origin: bottom;
  transform: scale(0.15);
  opacity: 0.22;
  transition: transform 300ms ease, opacity 300ms ease;
}

.room-card-scene-fern::before {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 39px;
  border: 2px solid var(--room-card-ink);
  border-radius: 4px 4px 18px 18px;
  background: #bf704b;
  content: "";
}

.room-card-scene-fern i {
  position: absolute;
  top: 7px;
  left: 30px;
  width: 22px;
  height: 50px;
  border: 2px solid var(--room-card-ink);
  border-radius: 80% 10% 80% 10%;
  background: #4d8b57;
  transform-origin: bottom;
}

.room-card-scene-fern i:first-child { transform: rotate(-46deg); }
.room-card-scene-fern i:nth-child(2) { transform: rotate(-3deg) translateY(-9px); }
.room-card-scene-fern i:nth-child(3) { transform: rotate(42deg); }

.room-card-scene-fern b,
.room-card-scene-pigeon b {
  position: absolute;
  right: 0;
  bottom: -13px;
  left: 0;
  font: 900 0.42rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center;
}

.room-card-scene-pigeon {
  right: 8%;
  bottom: 23%;
  z-index: 4;
  width: 65px;
  height: 70px;
  border: 2px solid var(--room-card-ink);
  border-radius: 50% 50% 44% 44%;
  background: #74879a;
  box-shadow: inset 0 -15px 0 #566978;
  transform-origin: bottom;
  transform: scale(0.15);
  opacity: 0.2;
  transition: transform 300ms ease, opacity 300ms ease;
}

.room-card-scene-pigeon::before {
  position: absolute;
  top: 14px;
  right: -17px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 19px solid #d69c3d;
  content: "";
}

.room-card-scene-pigeon::after {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--room-card-ink);
  border-radius: 50%;
  background: #fff;
  content: "";
}

.room-card-scene-pigeon i {
  position: absolute;
  bottom: 19px;
  left: -13px;
  width: 40px;
  height: 24px;
  border: 2px solid var(--room-card-ink);
  border-radius: 60% 15% 60% 15%;
  background: #8ea1af;
  transform: rotate(18deg);
}

.room-card-scene-door {
  bottom: 31%;
  left: 3%;
  z-index: 2;
  width: 18%;
  height: 24%;
  padding-top: 13%;
  border: 3px solid var(--room-card-ink);
  border-bottom: 0;
  border-radius: 45% 45% 0 0;
  color: var(--room-card-ink);
  background: #f1c75b;
  font: 900 0.46rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center;
}

.room-card-scene[data-light="morning"] .room-card-scene-sun,
.room-card-scene[data-light="moon"] .room-card-scene-moon,
.room-card-scene[data-host="fern"] .room-card-scene-fern,
.room-card-scene[data-host="pigeon"] .room-card-scene-pigeon {
  transform: scale(1);
  opacity: 1;
}

.room-card-scene[data-light="moon"] {
  background: linear-gradient(#8197a9 0 66%, #b5a985 66% 100%);
}

.room-card-scene[data-light="moon"] .room-card-scene-window {
  background: linear-gradient(#526b86, #8aa0b2 72%, #415f55 72%);
}

.room-card-scene[data-light="moon"] .room-card-scene-lamp {
  transform: scaleY(1);
  opacity: 1;
}

.room-card-scene[data-floor="checks"] .room-card-scene-rug,
.room-card-scene[data-floor="lane"] .room-card-scene-lane {
  transform: skewX(-9deg) scale(1);
  opacity: 1;
}

.room-card-scene[data-floor="lane"] .room-card-scene-lane {
  transform: rotate(-10deg) scaleX(1);
}

@keyframes room-card-arrive {
  from { opacity: 0; transform: translateY(22px) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) rotate(-0.25deg); }
}

@keyframes room-card-preview-open {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 850px) {
  .room-card-shared-heading,
  .room-card-maker-heading,
  .room-card-shared-paper,
  .room-card-workbench,
  .room-card-full-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-card-maker-heading {
    padding-right: 54px;
  }

  .room-card-shared-heading > p:last-child,
  .room-card-maker-heading > p:last-child {
    max-width: 620px;
  }

  .room-card-shared-paper .room-card-scene {
    order: 2;
  }

  .room-card-shared-copy {
    order: 1;
  }

  .room-card-workbench {
    gap: 26px;
  }

  .room-card-scene.is-draft {
    min-height: 420px;
  }
}

@media (max-width: 600px) {
  .room-card-shared-view {
    padding-top: 0;
  }

  .room-card-shared-heading h1,
  .room-card-maker-heading h1 {
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

  .room-card-shared-heading {
    margin-bottom: 18px;
  }

  .room-card-shared-paper {
    gap: 22px;
    padding: 28px 18px 22px;
    box-shadow: 6px 7px 0 var(--room-card-ink);
  }

  .room-card-shared-copy h2,
  .room-card-preview-copy h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .room-card-shared-next {
    align-items: stretch;
    flex-direction: column;
  }

  .room-card-shared-next button {
    width: 100%;
  }

  .room-card-shared-footer {
    flex-direction: column;
  }

  .room-card-invalid {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-card-invalid > span {
    width: 62px;
    height: 62px;
  }

  .room-card-maker {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    padding: 22px 15px 28px;
    border-radius: 6px;
  }

  .room-card-maker-close-form {
    top: -15px;
  }

  .room-card-maker-close {
    min-height: 38px;
    padding: 7px 9px;
    background: var(--room-card-paper);
  }

  .room-card-maker-heading {
    gap: 9px;
    padding: 42px 0 0;
  }

  .room-card-workbench {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 28px;
    padding-top: 20px;
  }

  .room-card-choice-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-card-choice-group button {
    min-height: 64px;
  }

  .room-card-draft {
    padding: 14px;
  }

  .room-card-draft-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-card-full-preview {
    gap: 22px;
    padding: 20px 14px;
    box-shadow: 5px 6px 0 var(--room-card-yellow);
  }

  .room-card-share {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-card-share > button {
    width: 100%;
  }

  .room-card-scene,
  .room-card-scene.is-draft {
    min-height: 310px;
  }

  .room-card-scene-desk {
    right: 20%;
    width: 43%;
  }

  .room-card-scene-chair {
    left: 39%;
    width: 21%;
  }

  .room-card-scene-fern,
  .room-card-scene-pigeon {
    right: 3%;
    transform: scale(0.12);
  }

  .room-card-scene[data-host="fern"] .room-card-scene-fern,
  .room-card-scene[data-host="pigeon"] .room-card-scene-pigeon {
    transform: scale(0.82);
  }

  .room-card-detail-list div {
    grid-template-columns: minmax(86px, 0.45fr) minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .room-card-shared-paper,
  .room-card-full-preview {
    animation: none;
  }

  .room-card-scene-sun,
  .room-card-scene-moon,
  .room-card-scene-lamp,
  .room-card-scene-rug,
  .room-card-scene-lane,
  .room-card-scene-fern,
  .room-card-scene-pigeon {
    transition: none;
  }
}

/* Chair-history invitation */
.room-card-shared-seal[hidden],
.room-card-seal-scene[hidden],
.room-card-earned-seal[hidden],
.room-card-preview-seal[hidden],
.room-card-reply-meeting-action[hidden] {
  display: none !important;
}

.room-card-shared-seal {
  margin-top: 22px;
  border: 1px solid var(--room-card-ink);
  border-radius: 7px;
  background: #fff7df;
  box-shadow: 4px 4px 0 var(--room-card-yellow);
}

.room-card-shared-seal > button {
  display: flex;
  width: 100%;
  min-height: 64px;
  padding: 11px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-radius: 6px;
  color: var(--room-card-ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.room-card-shared-seal > button:hover,
.room-card-shared-seal > button[aria-expanded="true"] {
  background: var(--room-card-yellow);
}

.room-card-shared-seal > button:focus-visible,
.room-card-earned-seal button:focus-visible {
  outline: 3px solid var(--room-card-red);
  outline-offset: 3px;
}

.room-card-shared-seal > button span:first-child {
  display: grid;
  gap: 3px;
}

.room-card-shared-seal > button small,
.room-card-seal-scene div > p:first-child,
.room-card-preview-seal small,
.room-card-earned-seal > div:nth-child(2) > p:first-child {
  color: var(--room-card-green);
  font: 900 0.55rem/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
}

.room-card-shared-seal > button strong {
  font-size: 0.78rem;
}

.room-card-shared-seal > button > span:last-child {
  font: 900 0.58rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.room-card-seal-scene {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-top: 1px dashed var(--room-card-ink);
  background: #fff;
  animation: room-card-preview-open 360ms ease both;
}

.room-card-seal-scene p,
.room-card-seal-scene h3 {
  margin: 0;
}

.room-card-seal-scene h3 {
  margin-top: 5px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.room-card-seal-scene h3 + p {
  margin-top: 8px;
  color: #4f5f58;
  font-size: 0.72rem;
  line-height: 1.45;
}

.room-card-seal-scene small {
  display: block;
  margin-top: 10px;
  color: #64716b;
  font-size: 0.61rem;
  font-weight: 760;
}

.room-card-seal-chair {
  position: relative;
  display: grid;
  min-height: 145px;
  place-items: center;
  border: 1px solid var(--room-card-ink);
  border-radius: 58px 58px 5px 5px / 24px 24px 5px 5px;
  background: linear-gradient(#dcebed 0 68%, #d7c59d 68%);
  overflow: hidden;
}

.room-card-seal-chair > span {
  position: relative;
  width: 76px;
  height: 82px;
  margin-top: 18px;
  border: 3px solid var(--room-card-ink);
  border-radius: 13px 13px 4px 4px;
  background: #c66e54;
}

.room-card-seal-chair > em {
  position: absolute;
  bottom: 16px;
  width: 94px;
  height: 16px;
  border: 3px solid var(--room-card-ink);
  border-radius: 50%;
  background: #8c4939;
}

.room-card-seal-chair i,
.room-card-seal-chair b {
  position: absolute;
  display: none;
}

.room-card-seal-chair[data-seal="chair-change"] i {
  display: block;
  width: 33px;
  height: 18px;
  border: 2px solid var(--room-card-ink);
  border-radius: 80% 15% 80% 15%;
  background: #4f8a61;
}

.room-card-seal-chair[data-seal="chair-change"] i:nth-child(1) { top: -12px; left: -15px; transform: rotate(22deg); }
.room-card-seal-chair[data-seal="chair-change"] i:nth-child(2) { top: 10px; right: -17px; transform: rotate(-22deg); }
.room-card-seal-chair[data-seal="chair-change"] i:nth-child(3) { top: 36px; left: -16px; transform: rotate(8deg); }

.room-card-seal-chair[data-seal="chair-change"] b {
  display: block;
  padding: 3px;
  border: 1px solid var(--room-card-ink);
  color: var(--room-card-ink);
  background: #fff8d9;
  font: 900 0.36rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  transform: rotate(-4deg);
}

.room-card-seal-chair[data-seal="chair-change"] b:nth-of-type(1) { top: 8px; left: -9px; }
.room-card-seal-chair[data-seal="chair-change"] b:nth-of-type(2) { top: 34px; right: -12px; transform: rotate(5deg); }
.room-card-seal-chair[data-seal="chair-change"] b:nth-of-type(3) { bottom: 8px; left: 4px; }

.room-card-earned-seal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  margin-top: 24px;
  padding: 14px;
  align-items: center;
  border: 1px solid var(--room-card-ink);
  border-left: 8px solid var(--room-card-yellow);
  border-radius: 6px;
  background: #fff;
}

.room-card-earned-seal-mark,
.room-card-preview-seal > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--room-card-ink);
  border-radius: 50%;
  color: #fff;
  background: var(--room-card-green);
  font: 950 0.76rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  transform: rotate(-7deg);
}

.room-card-earned-seal h2,
.room-card-earned-seal p,
.room-card-preview-seal p {
  margin: 0;
}

.room-card-earned-seal h2 {
  margin-top: 3px;
  font-size: 1.2rem;
}

.room-card-earned-seal h2 + p {
  margin-top: 4px;
  color: #53625b;
  font-size: 0.68rem;
  line-height: 1.4;
}

.room-card-earned-seal button {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--room-card-ink);
  border-radius: 5px;
  color: var(--room-card-ink);
  background: var(--room-card-yellow);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
}

.room-card-earned-seal button[aria-pressed="false"] {
  background: #fff;
}

.room-card-preview-seal {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 10px;
  align-items: center;
  border: 1px dashed var(--room-card-green);
  border-radius: 5px;
  background: #edf4e8;
}

.room-card-preview-seal > span {
  width: 38px;
  height: 38px;
}

.room-card-preview-seal p {
  display: grid;
  gap: 2px;
}

.room-card-preview-seal strong {
  font-size: 0.7rem;
}

@media (max-width: 600px) {
  .room-card-seal-scene,
  .room-card-earned-seal {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-card-seal-chair {
    min-height: 170px;
  }

  .room-card-earned-seal button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .room-card-seal-scene {
    animation: none;
  }
}
