:root {
  --ink: #1d483a;
  --red: #a43a32;
  --muted: #626a5e;
  --paper: #faf7ee;
  --line: #d8d7c8;
  --gold: #ae8848;
  --serif:
    "Baskervville", "Baskerville", "Iowan Old Style", "Palatino Linotype",
    Georgia, "Songti SC", serif;
  --sans:
    "DM Sans", "Avenir Next", Avenir, "Segoe UI", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  background: var(--paper);
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 80% 14%, #eae4ce54, transparent 35%),
    var(--paper);
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%2379694c' opacity='.8' filter='url(%23n)' d='M0 0h170v170H0z'/%3E%3C/svg%3E");
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  cursor: pointer;
  color: inherit;
  background: none;
  padding: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #bd8c33;
  outline-offset: 4px;
}
.shell {
  max-width: 1200px;
  width: calc(100% - 112px);
  margin: auto;
}
.skip {
  position: fixed;
  left: 10px;
  top: -110px;
  background: #fff;
  padding: 10px;
  z-index: 20;
}
.skip:focus {
  top: 5px;
}
.ic {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex: none;
  display: inline-block;
}
.stripe {
  height: 4px;
  background: repeating-linear-gradient(
    125deg,
    #a4443a 0 14px,
    transparent 14px 29px,
    #416452 29px 43px,
    transparent 43px 58px
  );
  opacity: 0.8;
}
header {
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: #faf7eef2;
}
.header-row {
  min-height: 73px;
  display: flex;
  align-items: center;
  gap: 35px;
}
.brand,
.footer-brand {
  font: 700 32px/1 var(--serif);
  letter-spacing: -1.8px;
  display: inline-flex;
  align-items: center;
}
.brand-dot {
  color: var(--red);
}
.brand-stamp {
  height: 35px;
  width: 30px;
  background: var(--ink);
  margin-right: 10px;
  display: grid;
  place-items: center;
  transform: rotate(-7deg);
  mask:
    radial-gradient(circle at 3px 0, transparent 1.65px, #000 1.8px) 0 0/6px 52%
      repeat-x,
    radial-gradient(circle at 3px 100%, transparent 1.65px, #000 1.8px) 0
      100%/6px 52% repeat-x;
}
.brand-stamp img {
  width: 24px;
  height: 29px;
  border: 1px solid #dfddbb;
  border-radius: 0;
}
.header-row nav {
  display: flex;
  gap: 28px;
  margin: auto;
  font-size: 13px;
  font-weight: 600;
}
.header-row nav button:hover,
.link:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.utilities {
  display: flex;
  gap: 16px;
  align-items: center;
}
.utilities button {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.utility-icon .ic {
  width: 18px;
}
.utilities .my-trees {
  border: 1px solid #bac2b3;
  border-radius: 24px;
  padding: 9px 16px;
}
.my-trees:hover,
.secondary:hover {
  background: #e8edde;
}
.utilities .ic {
  width: 16px;
  height: 16px;
}
.lang {
  border-left: 1px solid var(--line);
  padding-left: 17px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  min-height: 480px;
  padding: 24px 26px 27px;
  gap: 32px;
}
.hero-copy {
  max-width: 550px;
  z-index: 1;
}
.eyebrow,
.smallcaps,
.stamp-meta {
  font: 600 10px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.8px;
}
.eyebrow {
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow .ic {
  width: 19px;
  height: 16px;
}
.eyebrow:after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--red);
  opacity: 0.65;
}
.hero h1,
.room h1 {
  margin: 15px 0 14px;
  font: normal clamp(61px, 6.35vw, 92px)/0.95 var(--serif);
  letter-spacing: -0.057em;
}
.hero h1 em,
.room h1 em {
  color: var(--red);
  font-weight: 400;
}
.hero-copy > p,
.intro {
  color: #566255;
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
  margin: 17px 0 23px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 0 20px;
  border-radius: 7px;
  font-weight: 650;
  font-size: 14px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary {
  background: var(--red);
  color: #fff8e7;
  border: 1px solid #93362e;
  box-shadow: 0 2px 0 #7a3328;
}
.primary:hover {
  background: #8e312b;
  transform: translateY(-1px);
}
.secondary {
  border: 1px solid #bdc2b3;
  background: transparent;
}
.primary .ic,
.secondary .ic {
  width: 17px;
  height: 17px;
}
.text-button,
.link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.text-button .ic,
.link .ic {
  width: 16px;
  height: 16px;
}
.footnote {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
}
.footnote .ic {
  width: 14px;
  height: 14px;
}
.mail-art {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 490px);
  isolation: isolate;
  padding: 8px 0 13px;
}
.picture {
  position: relative;
  width: 75%;
  max-width: 370px;
  transform: rotate(4deg);
  z-index: 1;
  filter: drop-shadow(2px 6px 6px #54472e35);
}
.picture:before {
  content: "";
  position: absolute;
  inset: 10px 12px 2px -7px;
  transform: rotate(-9deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, #d4c5a347 22px 23px),
    #e9dfc7;
  border: 1px solid #ddd1b8;
  box-shadow: 0 1px 3px #71634325;
}
.stamp-paper {
  background: #fff8dc;
  padding: 11px 11px 0;
  position: relative;
  mask:
    linear-gradient(#000 0 0) center/calc(100% - 8px) calc(100% - 8px) no-repeat,
    radial-gradient(circle at 4px 0, transparent 2.85px, #000 3.05px) top
      left/8px 51% repeat-x,
    radial-gradient(circle at 4px 100%, transparent 2.85px, #000 3.05px) bottom
      left/8px 51% repeat-x;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.scene {
  aspect-ratio: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #173e31;
}
.scene > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.scene-caption {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 3px;
  font: 600 9px/1 var(--mono);
  letter-spacing: 1.5px;
  color: #294737;
  text-transform: uppercase;
}
.scene-caption .value {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0;
}
.postmark {
  position: absolute;
  z-index: 2;
  right: -4%;
  top: -1%;
  width: 108px;
  height: 108px;
  pointer-events: none;
  transform: rotate(12deg);
  color: #96473e;
  opacity: 0.9;
}
.postmark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.art-note {
  color: #5b6656;
  font: italic 16px var(--serif);
  position: absolute;
  left: -3%;
  bottom: 12%;
  z-index: 3;
  transform: rotate(-11deg);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.art-note svg {
  width: 46px;
  height: 33px;
  margin-left: 24px;
}
.shine {
  position: absolute;
  color: #a88b4b;
  pointer-events: none;
  font:
    34px/1 Georgia,
    serif;
}
.s-one {
  left: 4%;
  top: 25%;
  transform: rotate(8deg);
}
.s-two {
  right: -1%;
  bottom: 20%;
  font-size: 23px;
}
.s-three {
  left: 10%;
  top: 22%;
  font-size: 12px;
}
.hot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 12%;
  height: 12%;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 600;
}
.hot.demo:after {
  content: "";
  width: 78%;
  height: 78%;
  border: 1px solid #ffe6a5;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px #fff4c32a,
    0 0 12px #ffe7a382;
  animation: glimmer 3.5s ease infinite;
}
.hot.demo:nth-of-type(2):after {
  animation-delay: -1.5s;
}
.hot.demo:hover:after,
.hot.demo:focus-visible:after {
  background: #ffeca94a;
}
.hot.real {
  border: 1px solid #f1d391;
  color: #fff7d9;
  background: #a24132;
  box-shadow:
    inset 0 0 0 2px #ad5843,
    0 2px 5px #11271c92;
}
.hot.real .ic {
  width: 60%;
  height: 60%;
}
.hot.real:nth-of-type(even) {
  background: #b48c43;
}
.flake {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff5d2;
  pointer-events: none;
  animation: fall var(--t) linear infinite;
  animation-delay: var(--d);
  top: -8%;
  left: var(--x);
  opacity: 0;
}
.twinkle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #ffefae;
  box-shadow: 0 0 9px 3px #fed074;
  border-radius: 50%;
  animation: glimmer 2.7s ease infinite;
  pointer-events: none;
}
.art-note:hover {
  color: var(--red);
}
@keyframes glimmer {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
    filter: brightness(1.2);
  }
}
@keyframes fall {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  12%,
  75% {
    opacity: 0.75;
  }
  100% {
    transform: translate(15px, 420px);
    opacity: 0;
  }
}
.collection {
  background: #f1efe4;
  border-block: 1px solid #d9d7c7;
  padding: 25px 0 33px;
  scroll-margin: 16px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}
.section-heading h2,
.how h2,
.shelf h2 {
  font: normal 37px/1.1 var(--serif);
  letter-spacing: -1.7px;
  margin: 0;
}
.section-heading .smallcaps {
  color: #7d725a;
  margin: 0 0 4px;
}
.section-heading > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}
.styles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.style-card {
  display: flex;
  text-align: left;
  align-items: center;
  min-width: 0;
  gap: 16px;
  padding: 12px 14px 12px 12px;
  position: relative;
  border: 1px solid #d2d2c1;
  border-radius: 8px;
  background: #faf8f0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.style-card:hover {
  transform: translateY(-2px);
  border-color: #778975;
}
.style-card[aria-pressed="true"] {
  border: 1.5px solid #31513e;
  box-shadow: 0 0 0 0.4px #31513e;
  background: #faf9ee;
}
.thumb {
  width: 82px;
  height: 85px;
  flex: none;
  border: 3px solid #e8dec1;
  outline: 1px solid #c6c6b5;
  object-fit: cover;
  transform: rotate(-3deg);
}
.style-card:nth-child(2) .thumb {
  transform: rotate(2deg);
}
.card-name {
  display: block;
  font: 600 clamp(19px, 1.75vw, 25px)/1.15 var(--serif);
  letter-spacing: -0.5px;
}
.card-sub {
  display: block;
  color: #687065;
  font: 12px/1.4 var(--sans);
  margin-top: 5px;
}
.check {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: var(--paper);
  border: 1px solid #c9cbbb;
  margin-left: auto;
  flex: none;
}
.check .ic {
  width: 12px;
  height: 12px;
  stroke-width: 2.8;
}
.style-card[aria-pressed="true"] .check {
  background: var(--ink);
  border-color: var(--ink);
}
.how {
  padding: 55px 0 62px;
  scroll-margin: 16px;
}
.how h2 {
  margin: 7px 0 24px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
}
.step {
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}
.step > .ic {
  color: var(--red);
  width: 25px;
  height: 25px;
}
.step h3 {
  font: 600 23px var(--serif);
  margin: 10px 0 6px;
}
.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 320px;
}
footer {
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 72px;
}
.footer-brand {
  font-size: 24px;
}
.footer-row span,
.footer-row button {
  color: var(--muted);
  font-size: 12px;
}
.footer-row button {
  margin-left: auto;
}
dialog {
  border: 1px solid #d6cdb9;
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  width: min(455px, calc(100% - 30px));
  max-height: 88dvh;
  padding: 0;
  box-shadow: 0 22px 85px #18261b44;
}
dialog::backdrop {
  background: #17291fe0;
  opacity: 0.68;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.modal-inner {
  position: relative;
  padding: 31px;
}
.modal-inner:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(
    125deg,
    #a5443b 0 15px,
    transparent 15px 31px,
    #406650 31px 46px,
    transparent 46px 62px
  );
}
.close {
  position: absolute;
  right: 13px;
  top: 13px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eeeade;
}
.close .ic {
  width: 16px;
}
.modal-inner h2 {
  font: normal 37px/1.1 var(--serif);
  letter-spacing: -1.35px;
  margin: 13px 20px 10px 0;
}
.modal-inner p {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 16px;
}
.modal-inner .eyebrow {
  font-size: 9px;
}
.form {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}
.form label,
.field-label {
  font-size: 13px;
  font-weight: 650;
  display: block;
}
.field-label {
  margin-bottom: 5px;
}
.form input,
.form textarea,
.shareline input,
.text-field {
  display: block;
  width: 100%;
  border: 1px solid #c4c7b6;
  border-radius: 6px;
  background: #fffdf6;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 16px;
  margin-top: 5px;
}
.form textarea {
  resize: vertical;
  min-height: 105px;
}
.form .primary {
  width: 100%;
  margin-top: 3px;
}
.form .field-note,
.field-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.orn-choice[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: #e9eddf;
}
.error {
  color: #a0302d !important;
  font-size: 13px !important;
  margin: 3px 0 !important;
}
.error:empty {
  display: none;
}
.wish {
  animation: unfold 0.4s ease-out;
  transform-origin: top;
}
.wish blockquote {
  font: italic 26px/1.5 var(--serif);
  margin: 18px 0 20px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.signature {
  color: var(--red);
  font: italic 21px var(--serif);
  overflow-wrap: anywhere;
}
.wish .actions {
  margin-top: 24px;
}
.envelope-art {
  width: 58px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #e8dfc5;
  border: 1px solid #c6b996;
  transform: rotate(-6deg);
  color: var(--red);
  margin: 15px 0;
}
.envelope-art .ic {
  width: 34px;
  height: 34px;
}
.owned-list {
  display: grid;
  gap: 6px;
  margin: 16px 0;
}
.owned-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  width: 100%;
}
.owned-item img {
  width: 43px;
  height: 43px;
  border: 2px solid #e3dabf;
}
.owned-item b {
  display: block;
  overflow-wrap: anywhere;
}
.owned-item small {
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 1.2px;
}
.owned-item .ic {
  margin-left: auto;
}
.ornaments {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.orn-choice {
  border: 1px solid #c7c7b5;
  border-radius: 6px;
  display: grid;
  place-items: center;
  height: 40px;
  color: var(--red);
}
.orn-choice .ic {
  width: 23px;
  height: 23px;
}
.shareline {
  display: flex;
  gap: 6px;
  margin: 8px 0 5px;
  max-width: 430px;
}
.shareline input {
  margin: 0;
  min-width: 0;
  font-size: 13px;
}
.shareline .primary {
  min-height: 39px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: #fff9e6;
  padding: 9px 17px;
  border-radius: 50px;
  font-size: 13px;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes unfold {
  from {
    transform: translateY(12px) rotate(-2deg);
    opacity: 0.25;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.room {
  padding-top: 26px;
  padding-bottom: 12px;
}
.room .hero {
  min-height: 430px;
  padding: 8px 19px 25px;
}
.room h1 {
  font-size: clamp(41px, 5vw, 70px);
  overflow-wrap: anywhere;
}
.room .eyebrow:after {
  display: none;
}
.room .intro {
  margin: 13px 0 17px;
}
.room .picture {
  width: 78%;
}
.room .details {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  margin: 12px 0;
  color: var(--muted);
}
.room .details button {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shelf {
  padding: 27px 0 48px;
  border-top: 1px solid var(--line);
}
.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.shelf h2 {
  font-size: 32px;
}
.empty {
  background: #efefe4;
  margin-top: 17px;
  border: 1px dashed #c6c8b6;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  color: #596557;
  font-size: 14px;
}
.gift-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.gift-row {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 7px;
  text-align: left;
  min-width: 0;
}
.gift-row .ic {
  color: var(--red);
}
.gift-row b {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.gift-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.backlink {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 12px;
}
.small-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}
.small-actions .link {
  font-size: 12px;
}
.pager {
  margin: 12px auto 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.pager button {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.loading {
  text-align: center;
  padding: 120px 20px;
  min-height: 55vh;
}
.loading h1 {
  font: 42px var(--serif);
}
.note-key {
  background: #e9ecdf;
  color: #355540;
  border-radius: 6px;
  padding: 9px 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.note-key .ic {
  width: 16px;
}
.sharebox {
  margin: 18px 0;
}
.sharebox label {
  font-size: 12px;
  font-weight: 700;
}
.full {
  width: 100%;
}
.preview-tag {
  color: var(--red);
}
html[lang="zh"] .hero h1 {
  font-size: clamp(42px, 4.9vw, 70px);
  line-height: 1.23;
  letter-spacing: -0.045em;
}
html[lang="zh"] .card-name {
  font-size: 20px;
}
@media (min-width: 1450px) {
  .hero {
    min-height: 530px;
  }
  .picture {
    max-width: 394px;
    width: 80%;
  }
}
@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 70px);
  }
  .hero {
    padding-inline: 6px;
    min-height: 435px;
    gap: 10px;
  }
  .picture {
    width: 83%;
  }
  .postmark {
    right: -3%;
    width: 87px;
    height: 87px;
  }
  .header-row {
    gap: 20px;
  }
  .header-row nav {
    gap: 19px;
  }
  .thumb {
    width: 60px;
    height: 65px;
  }
  .style-card {
    gap: 10px;
    padding: 11px;
  }
  .art-note {
    bottom: 6%;
    left: 0;
    font-size: 14px;
  }
  .card-sub {
    font-size: 11px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .styles {
    gap: 9px;
  }
}
@media (max-width: 720px) {
  .shell {
    width: calc(100% - 36px);
  }
  .header-row {
    min-height: 63px;
    gap: 10px;
  }
  .brand {
    font-size: 27px;
  }
  .brand-stamp {
    height: 29px;
    width: 26px;
    margin-right: 7px;
  }
  .brand-stamp img {
    width: 21px;
    height: 25px;
  }
  .header-row nav {
    display: none;
  }
  .utilities {
    margin-left: auto;
    gap: 10px;
  }
  .utilities button {
    font-size: 11px;
  }
  .utilities .my-trees {
    padding: 7px 11px;
  }
  .lang {
    padding-left: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 31px 4px 22px;
  }
  .hero h1 {
    font-size: clamp(58px, 12.8vw, 78px);
    margin: 12px 0 9px;
  }
  .hero-copy > p {
    max-width: 430px;
    margin: 13px 0 16px;
  }
  .hero-copy {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .eyebrow {
    font-size: 9px;
  }
  .hero .footnote {
    margin-top: 12px;
  }
  .mail-art {
    width: min(100%, 410px);
    padding: 10px 0 12px;
  }
  .picture,
  .room .picture {
    width: 72%;
    max-width: 315px;
  }
  .postmark {
    right: 3%;
    width: 80px;
    height: 80px;
  }
  .art-note {
    left: 0;
    bottom: 12%;
  }
  .s-one {
    left: 3%;
  }
  .collection {
    padding: 23px 0;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
  }
  .section-heading h2,
  .how h2 {
    font-size: 32px;
  }
  .section-heading > p {
    font-size: 12px;
    margin: 0;
  }
  .styles {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .style-card {
    padding: 10px 14px;
    gap: 15px;
  }
  .thumb {
    width: 58px;
    height: 58px;
  }
  .card-name {
    font-size: 22px;
  }
  .card-sub {
    margin-top: 1px;
    font-size: 12px;
  }
  .how {
    padding: 34px 0 40px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 8px;
    padding-top: 15px;
  }
  .step h3 {
    margin: 0;
  }
  .step p {
    grid-column: 2;
    max-width: 100%;
    margin-top: 3px;
  }
  .footer-row {
    gap: 10px;
    flex-wrap: wrap;
    padding: 15px 0;
  }
  .footer-row span {
    font-size: 10px;
  }
  .room {
    padding-top: 18px;
  }
  .room .hero {
    padding: 0 0 16px;
  }
  .room .hero-copy {
    max-width: 100%;
  }
  .room .details {
    font-size: 11px;
  }
  .room .mail-art {
    width: min(100%, 380px);
  }
  .shelf {
    padding-top: 23px;
  }
  .modal-inner {
    padding: 27px 21px;
  }
  .actions {
    gap: 9px;
  }
  .primary,
  .secondary {
    font-size: 13px;
    padding: 0 15px;
  }
  .room .shelf-head {
    align-items: start;
  }
  .shelf h2 {
    font-size: 28px;
  }
  .form .primary {
    min-height: 44px;
  }
  html[lang="zh"] .hero h1 {
    font-size: clamp(39px, 10vw, 58px);
  }
}
@media (max-width: 380px) {
  .utilities {
    gap: 7px;
  }
  .utilities .my-trees {
    padding: 6px 8px;
  }
  .header-row {
    gap: 4px;
  }
  .lang {
    border: 0;
    padding: 0;
  }
  .brand {
    font-size: 24px;
  }
  .art-note {
    font-size: 12px;
  }
  .hero .primary,
  .hero .secondary {
    padding: 0 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.wish-photo {
  display: block;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  margin: 14px auto;
  border: 5px solid #fffdf6;
  box-shadow: 0 1px 6px #3a392b33;
}
.keepsake {
  margin-top: 16px;
  font-size: 12px;
  color: #626956;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.photo-field input {
  font-size: 12px;
  padding: 5px;
}
.photo-field input::file-selector-button {
  cursor: pointer;
  color: var(--ink);
  background: #e7e9dc;
  border: 0;
  border-radius: 4px;
  font: inherit;
  padding: 7px 9px;
  margin-right: 7px;
}
.envelope-art {
  animation: flap 0.6s ease-out;
}
.wish blockquote {
  animation: unfold 0.62s ease-out;
}
@keyframes flap {
  0% {
    transform: translateY(7px) rotate(-12deg) scale(0.85);
  }
  60% {
    transform: translateY(-3px) rotate(-2deg) scale(1.05);
  }
  100% {
    transform: rotate(-6deg);
  }
}
.caption-tools {
  display: flex;
  align-items: center;
  gap: 11px;
}
.spin-toggle {
  font: 600 9px var(--sans);
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid #a4a98b;
  border-radius: 8px;
  padding: 2px 6px;
  color: #294737;
}
.spin-toggle:hover {
  background: #e7e7cf;
}
.pine-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}
.pine-canvas:active {
  cursor: grabbing;
}
.scene.in-3d .hot.demo:after {
  width: 65%;
  height: 65%;
  background: radial-gradient(
    circle at 33% 29%,
    #f8ddb3,
    #a24136 40%,
    #712e29 82%
  );
  border: 1px solid #fbd481;
  box-shadow:
    0 1px 5px #312f26,
    0 0 0 2px #ffe6a544;
}
.scene-caption {
  min-height: 33px;
}
.spin-toggle {
  min-height: 23px;
  padding: 2px 7px;
  font-size: 10px;
  border-radius: 12px;
}
.modal-inner[data-view="letter"] blockquote,
.modal-inner[data-view="demo"] blockquote {
  background-image: repeating-linear-gradient(
    transparent 0 calc(1.5em - 1px),
    #c6b89555 calc(1.5em - 1px) 1.5em
  );
}

/* The tree and its controls share a single, full-bleed room. */
body:has(.christmas-night) header {
  color: #f5eacc;
  background: #12261e;
  border-color: #2c4033;
  border-top: 0;
}
body:has(.christmas-night) .brand-dot {
  color: #e1b86e;
}
body:has(.christmas-night) .my-trees {
  border-color: #8a9278;
}
body:has(.christmas-night) .my-trees:hover {
  background: #2d4032;
}
body:has(.christmas-night) .lang {
  border-color: #526250;
}
body:has(.christmas-night) nav button:hover {
  color: #f0c779;
}
.christmas-night {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff6dc;
  background: #182b25 url("./art/christmas-room.webp") center 63% / cover
    no-repeat;
}
.christmas-night:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 22, 19, 0.94) 0%,
      rgba(8, 24, 21, 0.83) 22%,
      rgba(7, 22, 19, 0.49) 38%,
      rgba(10, 20, 16, 0.07) 56%,
      transparent 77%
    ),
    linear-gradient(
      0deg,
      #111c15b0,
      transparent 21%,
      transparent 86%,
      #101d1740
    );
}
.night-hero {
  position: relative;
  width: min(93%, 1480px);
  max-width: none;
  min-height: 0;
  height: clamp(520px, calc(85svh - 35px), 820px);
  grid-template-columns: minmax(0, 0.39fr) minmax(0, 0.61fr);
  gap: 0;
  padding: 0;
  align-items: center;
}
.night-hero .hero-copy {
  position: relative;
  max-width: 470px;
  padding: 0 0 20px clamp(0px, 2vw, 40px);
}
.night-hero .hero-copy .eyebrow {
  color: #ecd098;
}
.night-hero .eyebrow:after {
  background: #e6c282;
}
.night-hero h1 {
  font-size: clamp(54px, 5.6vw, 88px);
  margin: 16px 0;
  line-height: 0.98;
}
.night-hero h1 em {
  color: #f0cc86;
}
.night-hero .hero-copy > p {
  max-width: 355px;
  color: #ede7d5;
  font-size: clamp(14px, 1.22vw, 17px);
  text-shadow: 0 1px 6px #081812;
  line-height: 1.55;
}
.night-hero .primary {
  background: #a5322e;
  border-color: #cd6950;
  box-shadow: 0 2px 10px #3719126b;
}
.night-hero .primary:hover {
  background: #b63e34;
}
.night-hero .secondary {
  border-color: #b9b59480;
  background: #192b22a6;
  color: #fff5db;
}
.night-hero .secondary:hover {
  background: #354739;
}
.night-hero .footnote {
  color: #dedcc8;
}
.live-stage {
  position: relative;
  align-self: stretch;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  justify-self: stretch;
  display: block;
  padding: 0;
  isolation: isolate;
}
.live-tree {
  position: absolute;
  inset: 0 0 53px;
  height: auto;
  width: auto;
  aspect-ratio: auto;
  background: none;
  overflow: visible;
}
.live-tree > img {
  position: absolute;
  inset: 5% 0 0;
  width: auto;
  height: 90%;
  max-width: 83%;
  margin: auto;
  object-fit: contain;
  mask-image: radial-gradient(ellipse, #000 62%, transparent 80%);
}
.live-tree.live-rendered > img,
.live-tree:has(.pine-canvas) > img {
  visibility: hidden;
}
.ground-shadow {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  width: 66%;
  height: 11%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    #0b120de0,
    #0d151068 44%,
    transparent 71%
  );
}
.stage-tools {
  position: absolute;
  bottom: 17px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.3;
}
.theme-picker {
  display: inline-flex;
  align-items: center;
  padding: 4px 13px 4px 6px;
  gap: 1px;
  border: 1px solid #edcf8e66;
  border-radius: 30px;
  background: #17281fe6;
  color: #f7ebc7;
}
.turn-hint {
  color: #f6edda;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 4px #111a0d;
}
.motion-control {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #dccda982;
  background: #17251f9c;
  border-radius: 50%;
}
.motion-control[hidden] {
  display: none;
}
.motion-control span {
  width: 7px;
  height: 8px;
  border-inline: 2px solid currentColor;
}
.motion-control[aria-pressed="false"] span {
  width: 0;
  height: 0;
  border: 0;
  border-left: 6px solid currentColor;
  border-block: 4px solid transparent;
  margin-left: 2px;
}
.live-tree .pine-canvas {
  z-index: 1;
}
.live-tree .hot.demo,
.live-tree .hot.real {
  width: clamp(34px, 3.2vw, 46px);
  height: clamp(34px, 3.2vw, 46px);
  z-index: 3;
  color: #ffe9b0;
  background: none;
  border: 0;
  box-shadow: none;
}
.live-tree .hot:before {
  content: "";
  position: absolute;
  top: 7%;
  height: 22%;
  width: 1px;
  background: #e8c98b;
}
.live-tree .hot.demo:after,
.live-tree .hot.real:after {
  content: "";
  position: absolute;
  width: 53%;
  height: 43%;
  border-radius: 3px;
  transform: rotate(-8deg);
  background: linear-gradient(
    152deg,
    #f5e4a4 2%,
    #f0c87d 29%,
    #d3a258 66%,
    #997341
  );
  box-shadow:
    inset 0 0 0 1px #ffe6ae,
    1px 2px 4px #37251e9c;
  animation: none;
  border: 0;
}
.live-tree .hot .ic {
  position: relative;
  z-index: 1;
  color: #78482f;
  width: 36%;
  height: 33%;
  transform: rotate(-8deg);
}
.live-tree .hot:is(:hover, :focus-visible):after {
  filter: brightness(1.25);
  box-shadow: 0 0 9px #ffdb8f;
}
@media (min-width: 1550px) {
  .night-hero {
    height: clamp(660px, 79svh, 860px);
  }
}
.scene.live-rendered .hot,
.scene.live-rendered .hot:before,
.scene.live-rendered .hot:after,
.scene.live-rendered .hot > .ic {
  background: none;
  border: 0;
  box-shadow: none;
  animation: none;
}
.scene.live-rendered .hot:before,
.scene.live-rendered .hot:after,
.scene.live-rendered .hot > .ic {
  display: none;
}
.scene.live-rendered .hot:focus-visible,
.scene.live-rendered .hot:hover {
  outline: 1px dashed #fff0ae;
  outline-offset: -3px;
}
.room .scene.live-rendered {
  background: radial-gradient(ellipse at 50% 50%, #415341, #192c24 85%);
}
.room .scene.live-rendered > img {
  visibility: hidden;
}

/* Keep the copy and room away from the notch without insetting the backdrop. */
:root {
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
header {
  padding: var(--safe-top) var(--safe-right) 0 var(--safe-left);
}
footer {
  padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
}
main {
  padding-inline: var(--safe-left) var(--safe-right);
}
.christmas-night {
  margin-inline: calc(0px - var(--safe-left)) calc(0px - var(--safe-right));
  padding-inline: var(--safe-left) var(--safe-right);
}
.scene.in-3d,
.scene.in-3d .hot {
  touch-action: pan-y pinch-zoom;
}
.hero-copy,
.room-invitation,
.form > * {
  min-width: 0;
}
.form {
  grid-template-columns: minmax(0, 1fr);
}
.modal-inner h2,
.modal-inner p,
.owned-item span {
  overflow-wrap: anywhere;
}
.toast {
  bottom: calc(18px + var(--safe-bottom));
  max-width: calc(100% - 32px);
  width: max-content;
  text-align: center;
}
dialog {
  --dialog-space: 14px;
  top: calc(var(--visible-top, 0px) + var(--safe-top));
  bottom: max(
    var(--safe-bottom),
    calc(100% - var(--visible-top, 0px) - var(--visible-height, 100dvh))
  );
  max-height: calc(
    var(--visible-height, 100dvh) - var(--safe-top) - var(--safe-bottom) - 2 *
      var(--dialog-space)
  );
  overscroll-behavior: contain;
  scroll-padding-block: 16px;
}
@media (min-width: 721px) {
  .night-hero .live-stage {
    transform: translateX(-4%);
  }
  .night-hero .live-tree {
    bottom: 83px;
  }
  .stage-tools {
    bottom: 13px;
  }
}

/* Finger-sized controls with the same visual hierarchy on narrow or touch screens. */
@media (max-width: 1024px), (any-pointer: coarse) {
  .utilities {
    gap: 4px;
  }
  .utilities button,
  .header-row nav button,
  .footer-row button {
    min-height: 44px;
  }
  .utilities .utility-icon,
  .utilities .lang {
    min-width: 44px;
    justify-content: center;
  }
  .utilities .lang {
    padding: 0 7px;
  }
  .utilities .my-trees {
    padding: 0 12px;
  }
  .close {
    width: 44px;
    height: 44px;
  }
  .modal-inner h2 {
    margin-right: 36px;
  }
  .actions .primary,
  .actions .secondary,
  .small-actions .link,
  .wish .link,
  .keepsake,
  .pager button,
  .room .link,
  .shelf-head .link,
  .shareline .primary,
  .form .primary,
  .orn-choice {
    min-height: 44px;
  }
  .photo-field input,
  .shareline input,
  .text-field {
    font-size: 16px;
  }
  .shareline input {
    flex: 1 1 0;
    width: 0;
  }
  .shareline .primary {
    flex: none;
  }
  .form input:not([type="file"]),
  .text-field {
    min-height: 44px;
  }
  .photo-field input {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
  }
  .motion-control {
    width: 44px;
    height: 44px;
  }
  .stage-tools {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 4px 7px;
  }
  .theme-picker {
    grid-column: 1;
    grid-row: 1;
    padding: 0 10px 0 2px;
  }
  .turn-hint {
    display: contents;
  }
  .motion-control {
    grid-column: 2;
    grid-row: 1;
    color: #f7ebc7;
    background: #17281fde;
  }
  .turn-hint > span {
    grid-column: 1/-1;
    text-align: center;
    color: #fff4db;
    text-shadow: 0 1px 4px #152115;
    font-size: 12px;
  }
  .stage-tools:has(.motion-control[hidden]) {
    grid-template-columns: auto;
  }
  .live-tree .hot.demo,
  .live-tree .hot.real,
  .room .hot {
    min-width: 44px;
    min-height: 44px;
  }
  .room .spin-toggle {
    min-height: 44px;
    font-size: 12px;
    padding-inline: 9px;
  }
  .room .scene-caption {
    min-height: 48px;
  }
  .room .details {
    gap: 4px 14px;
  }
  .night-hero .live-tree {
    bottom: 85px;
  }
}

/* Portrait phones and tablets put the full tree above the invitation. */
@media (max-width: 720px),
  (min-width: 721px) and (max-width: 1024px) and (orientation: portrait) {
  body:has(.christmas-night) .header-row {
    min-height: 56px;
  }
  .christmas-night {
    background-position: 60% 55%;
  }
  .christmas-night:before {
    background: linear-gradient(
      0deg,
      #0a1a15fa,
      #0c1a15ed 18%,
      #0c191535 39%,
      transparent 63%,
      #0c1c1630
    );
  }
  .night-hero {
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 22px;
  }
  .night-hero .live-stage {
    order: -1;
    width: 100%;
    height: clamp(250px, min(59svh, calc(100svh - 238px)), 545px);
    flex: none;
    transform: none;
  }
  .night-hero .live-tree {
    inset: 0 0 74px;
  }
  .stage-tools {
    bottom: 0;
  }
  .ground-shadow {
    bottom: 16%;
    width: 64%;
    height: 8%;
  }
  .night-hero .hero-copy {
    padding: 15px 17px 0;
    max-width: 640px;
    width: 100%;
    margin: auto;
    text-align: center;
  }
  .night-hero .eyebrow,
  .night-hero .footnote {
    display: none;
  }
  .night-hero h1,
  html[lang="zh"] .night-hero h1 {
    font-size: clamp(28px, 7.5vw, 53px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    margin: 0 0 6px;
  }
  .night-hero h1 br {
    display: none;
  }
  .night-hero h1 em:before {
    content: " ";
  }
  html[lang="zh"] .night-hero h1 em:before {
    content: "";
  }
  .night-hero .hero-copy > p {
    margin: 0 auto 14px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 40ch;
  }
  .night-hero .actions {
    justify-content: center;
  }
}
@media (min-width: 721px) and (max-width: 1024px) and (orientation: portrait) {
  .night-hero .live-stage {
    height: clamp(440px, 54svh, 650px);
  }
  .night-hero .hero-copy {
    padding-top: 20px;
  }
  .night-hero .hero-copy > p {
    max-width: 55ch;
    font-size: 16px;
  }
  .night-hero {
    padding-bottom: 32px;
  }
  .section-heading {
    align-items: start;
  }
  .style-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 15px;
    gap: 11px;
  }
  .style-card > .thumb {
    width: 76px;
    height: 78px;
  }
  .style-card > span:not(.check) {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .style-card .check {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  .card-name {
    font-size: 22px;
  }
  .card-sub {
    font-size: 13px;
  }
}
@media (max-width: 720px) {
  .header-row {
    gap: 6px;
  }
  .utilities {
    gap: 2px;
  }
  .room .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "pine" "invite";
    gap: 10px;
    min-height: 0;
  }
  .room .hero-copy {
    display: contents;
  }
  .room-title {
    grid-area: title;
  }
  .room .mail-art {
    grid-area: pine;
    padding: 3px 0;
    width: min(100%, 350px);
  }
  .room .picture {
    width: clamp(155px, min(57vw, 29svh), 245px);
  }
  .room .hero h1,
  html[lang="zh"] .room .hero h1 {
    font-size: clamp(30px, 8vw, 46px);
    line-height: 1.12;
    margin: 4px 0;
  }
  .room .backlink {
    margin: 0;
  }
  .room-invitation {
    grid-area: invite;
  }
  .room .intro,
  .sharebox {
    margin: 8px 0;
  }
  .room .shareline {
    max-width: none;
  }
  .room .shelf-head {
    align-items: center;
  }
  .gift-list {
    grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 1fr));
  }
  .room .details {
    font-size: 12px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  dialog {
    --dialog-space: 8px;
    left: var(--safe-left);
    right: var(--safe-right);
    margin: auto auto 0;
    width: min(100%, 490px);
    max-width: calc(100% - var(--safe-left) - var(--safe-right));
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    bottom: max(
      0px,
      calc(100% - var(--visible-top, 0px) - var(--visible-height, 100dvh))
    );
    scroll-padding-block: 54px 16px;
  }
  .modal-inner {
    padding: 0 20px max(22px, var(--safe-bottom));
  }
  .modal-inner:before {
    display: none;
  }
  .dialog-tools {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 5px 14px 0 20px;
    margin: 0 -20px;
    background: var(--paper);
  }
  .dialog-tools:before {
    position: absolute;
    content: "";
    inset: 0 0 auto;
    height: 4px;
    background: repeating-linear-gradient(
      125deg,
      #a5443b 0 15px,
      transparent 15px 31px,
      #406650 31px 46px,
      transparent 46px 62px
    );
  }
  .dialog-tools .close {
    position: static;
    order: 1;
    margin-left: auto;
    background: transparent;
  }
  .dialog-tools .close .ic {
    width: 20px;
    height: 20px;
  }
  .modal-inner h2 {
    font-size: clamp(28px, 8vw, 36px);
    margin: 0 0 10px;
  }
  .ornaments {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }
  .form textarea {
    min-height: 100px;
  }
}
@media (max-width: 350px) {
  .shell:not(.night-hero) {
    width: calc(100% - 24px);
  }
  .utilities .my-trees {
    padding: 0 8px;
  }
  .ornaments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Short landscape phones need a full tree and primary action in the same view. */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1100px) {
  .header-row,
  body:has(.christmas-night) .header-row {
    min-height: 44px;
  }
  .header-row nav {
    display: none;
  }
  .utilities {
    margin-left: auto;
  }
  .night-hero {
    display: grid;
    grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
    width: 96%;
    min-height: 260px;
    height: calc(100svh - 45px - var(--safe-top));
    gap: 0;
    padding: 0;
    align-items: center;
  }
  .night-hero .live-stage {
    order: 0;
    height: 100%;
    transform: none;
  }
  .night-hero .live-tree {
    inset: 0 0 51px;
  }
  .night-hero .stage-tools {
    bottom: 2px;
    gap: 0 6px;
  }
  .turn-hint > span {
    display: none;
  }
  .ground-shadow {
    bottom: 15%;
  }
  .night-hero .hero-copy {
    margin: 0;
    padding: 0 4px 0 8px;
    text-align: left;
  }
  .night-hero .eyebrow,
  .night-hero .footnote {
    display: none;
  }
  .night-hero h1,
  html[lang="zh"] .night-hero h1 {
    font-size: clamp(27px, 4.8vw, 45px);
    line-height: 1.08;
    margin: 0 0 8px;
  }
  .night-hero h1 br {
    display: initial;
  }
  .night-hero h1 em:before {
    content: none;
  }
  .night-hero .hero-copy > p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.4;
  }
  .night-hero .actions {
    gap: 6px;
    justify-content: flex-start;
  }
  .night-hero .actions button {
    font-size: 12px;
    padding: 0 10px;
  }
  .christmas-night:before {
    background: linear-gradient(
      90deg,
      #091c17ef 0%,
      #0b1f19cd 31%,
      #0c1c1640 54%,
      transparent 78%
    );
  }
  dialog {
    --dialog-space: 6px;
    scroll-padding: 10px;
  }
  .modal-inner {
    padding: 18px 24px;
  }
  .modal-inner h2 {
    margin-block: 6px;
    font-size: 28px;
  }
  .room .hero {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: "title pine" "invite pine";
    align-content: center;
    gap: 4px 12px;
  }
  .room .hero-copy {
    display: contents;
  }
  .room-title {
    grid-area: title;
  }
  .room-invitation {
    grid-area: invite;
  }
  .room .mail-art {
    grid-area: pine;
    width: 100%;
  }
  .room .picture {
    width: min(80%, 49svh);
  }
  .room h1,
  html[lang="zh"] .room .hero h1 {
    font-size: 32px;
    line-height: 1.12;
    margin: 4px 0;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.theme-picker {
  padding: 0 3px;
  gap: 0;
}
.tree-arrow,
.current-style {
  color: inherit;
  background: transparent;
  border: 0;
  min-height: 44px;
}
.tree-arrow {
  width: 44px;
  font:
    26px/1 Georgia,
    serif;
  border-radius: 50%;
}
.tree-arrow:hover,
.current-style:hover {
  background: #efe0aa15;
}
.current-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 107px;
  max-width: 148px;
  gap: 2px;
  padding: 3px 5px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.12;
}
.current-style small {
  font: 9px/1.1 var(--sans);
  letter-spacing: 0.16em;
  color: #e7cf95;
}
.style-card .check .ic {
  visibility: hidden;
}
.style-card[aria-pressed="true"] .check .ic {
  visibility: visible;
}
.browse-styles {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 9px 17px;
  min-height: 44px;
  color: var(--ink);
  border: 1px solid #aec0ad;
  border-radius: 100px;
  background: #fffcf3;
}
.browse-styles .ic {
  width: 18px;
  height: 18px;
}
dialog:has(.catalog-grid) {
  width: min(760px, calc(100% - 28px));
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.catalog-grid .style-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 8px;
  align-content: start;
}
.catalog-grid .thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.45;
  object-fit: contain;
  background: #20312b;
  border-radius: 4px;
  border: 0;
  outline: 0;
  transform: none;
}
.catalog-grid .style-card > span:not(.check) {
  grid-column: 1;
  grid-row: auto;
}
.catalog-grid .card-name {
  font-size: 17px;
}
.catalog-grid .card-sub {
  font-size: 11px;
  line-height: 1.35;
  margin: 3px 0;
}
.catalog-grid .check {
  position: absolute;
  right: 13px;
  top: 13px;
  background: #f9f6e9;
}
.catalog-grid .style-card[aria-pressed="true"] .check {
  background: var(--ink);
}
.form-style {
  display: flex;
  align-items: center;
  gap: 13px;
}
.form-style img {
  width: 66px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}
.form-style > div {
  flex: 1;
  min-width: 0;
}
.form-style select {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 6px 8px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  border: 1px solid #c4c7b6;
  background: #fffdf6;
  border-radius: 6px;
}
@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-grid .card-name {
    font-size: 16px;
  }
  dialog:has(.catalog-grid) {
    width: 100%;
  }
}
