@font-face {
  font-family: DM;
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url("./fonts/playfair.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url("./fonts/playfair-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #173d31;
  --muted: #52665c;
  --red: #ad3026;
  --paper: #f8ebd6;
  --line: #173d3126;
  font-family: DM, system-ui, sans-serif;
  color: var(--ink);
  background: #dbe8e9;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  margin: 0;
  min-height: 100%;
  width: 100%;
}
body {
  background: url("./hat/tisch.webp") center top/cover;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
summary {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button,
a,
input,
textarea,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--ink);
}
button {
  transition:
    transform 180ms ease,
    filter 180ms ease;
}
button:not(:disabled):active {
  transform: translateY(2px) scale(0.985);
}
a {
  color: inherit;
  text-decoration: none;
}
button svg,
span svg {
  flex-shrink: 0;
}
svg {
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Playfair, Georgia, serif;
  letter-spacing: -0.045em;
  line-height: 1.12;
  font-weight: 650;
}
h1 {
  font-size: 48px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 16px;
}
p {
  overflow-wrap: anywhere;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
input,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #173d3140;
  background: #fffaf0a1;
  border-radius: 5px;
  padding: 13px 14px;
  font-size: 16px;
}
input::placeholder,
textarea::placeholder {
  color: #697467;
  opacity: 1;
}
textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.65;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 6px;
}
img {
  max-width: 100%;
  user-select: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--paper);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.shell {
  max-width: 1040px;
  margin: auto;
  padding: 0 32px;
}
.mast {
  padding: env(safe-area-inset-top, 0) 28px 0;
}
.mast-inner {
  max-width: 1016px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
}
.brand {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.header-back,
.rounds-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.header-back {
  font-size: 43px;
  font-weight: 300;
  line-height: 1;
}
.rounds-btn {
  font-size: 21px;
  letter-spacing: 3px;
}
.season {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 10px;
  font-weight: 650;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ornament {
  display: block;
  pointer-events: none;
  object-fit: contain;
}
.friends {
  width: 170px;
}
.sprig {
  width: 112px;
}
.stamp {
  width: 66px;
  transform: rotate(9deg);
  filter: drop-shadow(1px 4px 2px #39271226);
}
/* These surfaces are the generated cutouts themselves, including all silhouettes and shadows. */
.names-paper,
.claim-panel,
.modal,
.status-panel {
  position: relative;
  isolation: isolate;
}
.names-paper::before,
.claim-panel::before,
.modal::before,
.status-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-image: url("./atelier/sheet.webp") 180 150 110 100 fill / 54px 45px
    33px 30px / 0 stretch;
}
.create-workspace {
  max-width: 560px;
  margin: 22px auto 0;
}
.create-heading {
  position: relative;
  padding: 0 3px 26px;
  min-height: 180px;
  display: flex;
  align-items: center;
}
.heading-copy {
  position: relative;
  z-index: 1;
}
.create-heading h1 {
  font-size: 47px;
  line-height: 1.03;
  margin: 12px 0 14px;
}
.create-heading p {
  font-size: 16px;
  max-width: 310px;
}
.create-heading .friends {
  position: absolute;
  right: -8px;
  bottom: 12px;
  width: 160px;
  z-index: 0;
}
.names-paper {
  padding: 62px 26px 29px;
  min-height: 304px;
}
.names-paper > .stamp {
  position: absolute;
  right: 30px;
  top: 8px;
  width: 67px;
  z-index: 2;
}
.paper-caption {
  position: absolute;
  left: 30px;
  top: 29px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #657366;
  max-width: 65%;
}
.chips {
  list-style: none;
  padding: 0 3px;
  margin: 0 0 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  max-height: 380px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #b3ac94 transparent;
  scroll-padding: 8px;
}
.chips li {
  width: 75%;
  min-height: 57px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 10px 10px 22px;
  flex-shrink: 0;
  animation: place-paper 300ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.paper-a {
  --slip: url("./atelier/slip-a.webp");
  --tilt: -1.1deg;
}
.paper-b {
  --slip: url("./atelier/slip-b.webp");
  --tilt: 0.8deg;
}
.paper-c {
  --slip: url("./atelier/slip-c.webp");
  --tilt: -0.3deg;
}
.chips li::before,
.member-list > button::before,
.secondary::before,
.copy-code::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--slip, url("./atelier/slip-b.webp"));
  background-size: 100% 100%;
  pointer-events: none;
  transform: rotate(var(--tilt, 0deg));
}
.chips li:nth-child(3n + 2) {
  margin-left: 5%;
  width: 78%;
}
.chips li:nth-child(3n) {
  margin-left: 2%;
  width: 80%;
}
.chips li > span {
  font-family: Playfair, Georgia, serif;
  font-style: italic;
  font-size: 27px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  min-width: 0;
}
.chips li > button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.chips li > button svg {
  width: 17px;
  height: 17px;
}
.empty-roster {
  min-height: 155px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px 4px 25px;
  gap: 9px;
}
.empty-roster p {
  font-family: Playfair, Georgia, serif;
  font-style: italic;
  font-size: 25px;
  line-height: 1.3;
}
.empty-roster > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.little-star {
  color: var(--red);
  font-size: 28px;
  line-height: 1;
}
.name-entry {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 62px;
  aspect-ratio: 1000 / 204;
  background: url("./atelier/input.webp") center/100% 100% no-repeat;
  padding: 0 23% 2% 5%;
}
.name-entry input {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 11px 4px;
  width: 100%;
  font-size: 18px;
}
.name-entry input:focus-visible {
  outline-offset: -2px;
}
.add-button {
  position: absolute;
  right: 5.5%;
  top: 6%;
  width: 14.5%;
  min-width: 44px;
  height: 78%;
  min-height: 44px;
  color: #fffaf0;
  display: grid;
  place-items: center;
  margin: 0;
}
.add-button svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.7;
}
.input-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.create-form > fieldset > .input-hint {
  text-align: center;
  margin: 13px 0 16px;
  min-height: 18px;
}
.primary {
  min-height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 26px 20px;
  background: url("./atelier/button-a.webp") center/100% 100% no-repeat;
  color: #fff9ed;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.005em;
  text-shadow: 0 1px 1px #67201d4d;
}
.primary svg {
  width: 23px;
  height: 23px;
}
.primary.wish-toggle {
  background-image: url("./atelier/button-b.webp");
}
.secondary {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px 19px;
  min-height: 54px;
  font-size: 14px;
  font-weight: 600;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  min-height: 44px;
  padding: 8px 12px;
}
.options {
  margin-top: 12px;
  padding: 0 12px;
}
.options summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  min-height: 44px;
  font-size: 14px;
}
.options summary::-webkit-details-marker {
  display: none;
}
.options[open] summary {
  margin-bottom: 12px;
}
.options[open] summary svg {
  transform: rotate(180deg);
}
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.options-grid label {
  min-width: 0;
}
.optional {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}
.error {
  font-size: 14px;
  color: #902b23;
  padding: 12px 14px;
  border-left: 3px solid #b03426;
  background: #fff4e9cc;
  margin: 12px 0;
  line-height: 1.5;
}
/* A round becomes a small correspondence desk. */
.inner-wrap {
  padding: 0 0 12px;
}
.back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  min-height: 44px;
}
.round-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 30px;
  min-height: 130px;
}
.round-hero h1 {
  font-size: 40px;
  margin: 12px 0 18px;
  overflow-wrap: anywhere;
}
.round-hero > .friends {
  width: 140px;
  flex-shrink: 0;
}
.round-meta {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.round-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.group-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}
.group-main {
  min-width: 0;
}
.claim-panel {
  padding: 36px 28px 34px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-title h2 {
  font-size: 32px;
  margin-bottom: 7px;
}
.panel-title p {
  font-size: 13px;
  color: var(--muted);
}
.panel-title > .icon-tile {
  display: none;
}
.claim-progress {
  font-size: 11px;
  color: var(--muted);
  margin: 14px 6px 22px;
}
progress {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 9px;
  appearance: none;
  border: 0;
  background: #ddd2bb;
}
progress::-webkit-progress-bar {
  background: #ddd2bb;
}
progress::-webkit-progress-value {
  background: #40694f;
}
progress::-moz-progress-bar {
  background: #40694f;
}
.member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.member-list > button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 15px 19px 21px;
  min-height: 74px;
  width: 100%;
}
.member-list .avatar {
  display: none;
}
.member-list strong {
  font-family: Playfair, Georgia, serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 500;
  overflow-wrap: anywhere;
  min-width: 0;
}
.member-list .at-end {
  margin-left: auto;
}
.member-list .taken {
  margin-left: auto;
  font-family: DM, sans-serif;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.claimed-member strong {
  color: #697168;
}
.invitation {
  position: relative;
  margin-top: 8px;
  padding: 38px 28px 32px;
  background: url("./atelier/letter.webp") center/100% 100% no-repeat;
}
.invitation .stamp {
  position: absolute;
  top: -15px;
  right: 20px;
  width: 54px;
}
.guide-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
}
.invitation h2 {
  font-size: 31px;
  max-width: 240px;
  margin-bottom: 16px;
}
.invitation p {
  font-size: 14px;
  margin-bottom: 18px;
}
.share-url {
  font-size: 12px;
  text-overflow: ellipsis;
  background: #fffaf07a;
}
.share-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.share-actions > .secondary:first-child {
  flex: 1;
}
.personal-round {
  max-width: 510px;
  display: block;
  text-align: center;
  min-height: 0;
  margin: 3px auto 15px;
}
.personal-round > .sprig {
  margin: 0 auto 10px;
  width: 100px;
}
.personal-round .season,
.personal-round .round-meta {
  display: none;
}
.personal-round h1 {
  font-family: DM, system-ui, sans-serif;
  font-size: 17px;
  letter-spacing: 0;
  font-weight: 450;
  line-height: 1.35;
  margin: 0;
}
.personal-workspace {
  display: block;
  max-width: 510px;
  margin: auto;
}
.letter-panel {
  position: relative;
  isolation: isolate;
}
.letter-panel.is-open {
  padding: 62px 18px 0;
  margin-bottom: 20px;
}
.letter-backdrop {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
}
.envelope-art {
  display: block;
  width: 100%;
  pointer-events: none;
}
.letter-backdrop .envelope-art {
  height: 375px;
  object-fit: fill;
}
.folded-letter {
  position: relative;
  isolation: isolate;
  padding: 30px 28px 34px;
  min-height: 330px;
  animation: unfold-letter 650ms cubic-bezier(0.18, 0.7, 0.2, 1) both;
  background: url("./atelier/letter.webp") center/100% 100% no-repeat;
  transform-origin: 50% 40%;
}
.paper-middle {
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0 15px;
}
.recipient-label {
  font-size: 15px;
  line-height: 1.4;
}
.recipient-name {
  font-size: 80px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.12;
  margin: 9px 0 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
  outline: none;
}
.recipient-name.long-name {
  font-size: 46px;
}
.pencil-heart {
  color: #bd3928;
  line-height: 1;
  font-size: 31px;
  margin-top: 4px;
}
.recipient-wish {
  text-align: center;
  padding: 20px 1px 0;
}
.recipient-wish strong {
  font-weight: 400;
  font-size: 14px;
}
.recipient-wish p {
  font:
    italic 23px/1.35 Playfair,
    Georgia,
    serif;
  margin-top: 8px;
  white-space: pre-wrap;
}
.recipient-wish .no-wishes {
  font:
    14px/1.5 DM,
    system-ui,
    sans-serif;
  color: var(--muted);
}
.read-wishes {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.full-wishes {
  white-space: pre-wrap;
  line-height: 1.8;
}
.recipient-wish .sprig {
  margin: 20px auto 0;
  width: 115px;
}
.sealed-letter {
  text-align: center;
  padding: 18px 0 0;
}
.sealed-letter h2 {
  font-size: 32px;
  overflow-wrap: anywhere;
}
.sealed-letter > p {
  font-size: 14px;
  margin: 10px 0 20px;
}
.draw-envelope {
  position: relative;
  display: block;
  width: 100%;
  padding: 0 12px 10px;
  transform: rotate(-2deg);
}
.draw-envelope .envelope-art {
  filter: drop-shadow(0 8px 7px #35483b15);
  transition: transform 250ms ease;
}
.pull-note {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: url("./atelier/slip-b.webp") center/100% 100% no-repeat;
  min-height: 59px;
  max-width: 90%;
  padding: 13px 25px 21px;
  margin-top: -27px;
  font-size: 15px;
  font-weight: 550;
  transform: rotate(2deg);
}
.icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
}
/* Native dialogs keep keyboard focus and Escape behavior. */
.modal {
  border: 0;
  background: transparent;
  color: var(--ink);
  width: min(470px, calc(100% - 24px));
  max-height: calc(100dvh - 40px);
  padding: 43px 30px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: place-paper 220ms ease-out;
}
.modal::backdrop {
  background: #17352b61;
  backdrop-filter: blur(6px);
}
.modal h2 {
  font-size: 30px;
  margin: 4px 30px 18px 0;
  overflow-wrap: anywhere;
}
.close-modal {
  position: absolute;
  right: 15px;
  top: 14px;
}
.modal p {
  font-size: 14px;
  margin: 10px 0 16px;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.modal .primary {
  font-size: 16px;
  min-height: 59px;
}
.device-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}
.device-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.wish-panel .panel-title {
  gap: 10px;
  align-items: flex-start;
}
.wish-panel .panel-title > svg {
  margin-top: 4px;
  width: 20px;
}
.wish-panel .panel-title h2 {
  font-family: DM, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 650;
  margin: 0;
}
.wish-panel .panel-title p {
  font-size: 12px;
  margin: 3px 0 0;
}
.wish-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
}
.wish-actions > span {
  font-size: 12px;
  color: #416746;
  min-height: 18px;
  text-align: center;
}
.saved-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 20px 0 24px;
}
.saved-list > a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.saved-list > a > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.saved-list strong,
.saved-list small {
  display: block;
}
.saved-list small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.empty-state {
  padding: 18px 5px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
.muted {
  color: var(--muted);
}
.steps {
  padding-left: 25px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.steps li {
  padding-left: 8px;
}
.steps li::marker {
  font-family: Playfair, serif;
  font-size: 24px;
  color: var(--red);
}
.steps h3 {
  font-weight: 600;
}
.steps p {
  margin: 5px 0 0;
  font-size: 13px;
}
.status-panel {
  padding: 55px 35px;
  max-width: 550px;
  margin: 40px auto;
  text-align: center;
}
.status-panel h1 {
  font-size: 36px;
  margin: 20px 0;
}
.status-panel p {
  margin-bottom: 24px;
  font-size: 14px;
}
.status-panel .text-button {
  margin-top: 12px;
}
@keyframes place-paper {
  from {
    opacity: 0;
    transform: translateY(-9px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes unfold-letter {
  from {
    opacity: 0;
    transform: translateY(42px) rotateX(-18deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (hover: hover) {
  .primary:hover,
  .secondary:hover,
  .copy-code:hover {
    filter: brightness(1.04);
    transform: translateY(-2px);
  }
  .draw-envelope:hover .envelope-art {
    transform: translateY(-5px) rotate(1deg);
  }
  .member-list > button:hover {
    transform: translateX(3px);
  }
  .chips li > button:hover {
    color: var(--red);
  }
}
@media (min-width: 900px) {
  .create-workspace {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    max-width: 990px;
    gap: 65px;
    margin: 65px auto 0;
    align-items: start;
  }
  .create-heading {
    display: block;
    padding-top: 55px;
    min-height: 540px;
  }
  .create-heading h1 {
    font-size: 58px;
    line-height: 1.08;
    margin: 18px 0 22px;
  }
  .create-heading p {
    font-size: 17px;
  }
  .create-heading .friends {
    width: 235px;
    bottom: 5px;
    right: 25px;
    transform: rotate(-3deg);
  }
  .create-form {
    min-width: 0;
  }
  .names-paper {
    min-height: 350px;
  }
  .empty-roster {
    min-height: 201px;
  }
  .names-paper > .stamp {
    width: 75px;
    right: 25px;
    top: -6px;
  }
  .chips li {
    min-height: 65px;
  }
  .chips li > span {
    font-size: 30px;
  }
  .create-heading .season {
    font-size: 10px;
  }
  .view-home footer {
    max-width: none;
    margin-top: 36px;
  }
  .view-inner:has(.personal-workspace) .back {
    position: absolute;
  }
  .personal-round {
    margin-top: 12px;
  }
  .personal-workspace {
    max-width: 480px;
  }
  .personal-workspace .group-main {
    width: 100%;
  }
}
@media (max-width: 650px) {
  .shell {
    padding: 0 20px;
  }
  .mast {
    padding-left: 15px;
    padding-right: 15px;
  }
  .mast-inner {
    min-height: 73px;
  }
  .brand {
    font-size: 19px;
  }
  .header-back {
    font-size: 38px;
  }
  .create-workspace {
    margin-top: 11px;
  }
  .create-heading {
    min-height: 151px;
    padding-bottom: 20px;
  }
  .create-heading h1 {
    font-size: 37px;
    margin: 5px 0 11px;
  }
  .create-heading .season {
    display: none;
  }
  .create-heading p {
    font-size: 13px;
    max-width: 245px;
  }
  .create-heading .friends {
    width: 126px;
    right: -2px;
    bottom: 11px;
  }
  .names-paper {
    padding: 58px 20px 25px;
    min-height: 300px;
  }
  .paper-caption {
    left: 25px;
    top: 27px;
    font-size: 9px;
    max-width: 60%;
  }
  .names-paper > .stamp {
    width: 61px;
    right: 21px;
    top: 8px;
  }
  .chips {
    gap: 5px;
    margin-bottom: 13px;
    padding-top: 3px;
  }
  .chips li {
    width: 78%;
    min-height: 54px;
    padding-left: 18px;
    padding-bottom: 8px;
  }
  .chips li > span {
    font-size: 25px;
  }
  .chips li:nth-child(3n + 2) {
    width: 81%;
  }
  .chips li:nth-child(3n) {
    width: 83%;
  }
  .empty-roster {
    min-height: 150px;
    padding-bottom: 24px;
  }
  .empty-roster p {
    font-size: 23px;
  }
  .empty-roster > span:last-child {
    font-size: 11px;
  }
  .name-entry {
    min-height: 62px;
  }
  .name-entry input {
    font-size: 16px;
  }
  .add-button {
    min-width: 44px;
  }
  .primary {
    font-size: 18px;
    min-height: 64px;
    padding-bottom: 20px;
  }
  .create-form > fieldset > .input-hint {
    margin: 11px 0 17px;
    font-size: 12px;
  }
  .options {
    padding: 0 5px;
  }
  .options summary {
    font-size: 13px;
  }
  .group-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .group-workspace > * {
    width: 100%;
  }
  .organizer-view > .invitation {
    order: -1;
  }
  .round-hero {
    gap: 8px;
    margin: 7px 0 25px;
  }
  .round-hero h1 {
    font-size: 32px;
  }
  .round-hero > .friends {
    width: 105px;
  }
  .round-meta {
    gap: 8px 12px;
    font-size: 11px;
  }
  .claim-panel {
    padding: 32px 21px 29px;
  }
  .panel-title h2 {
    font-size: 30px;
  }
  .invitation {
    padding: 33px 27px 30px;
  }
  .invitation h2 {
    font-size: 32px;
  }
  .personal-round {
    margin: 0 auto 15px;
    min-height: 0;
  }
  .personal-round h1 {
    font-size: 16px;
    margin: 0;
  }
  .personal-round > .sprig {
    width: 90px;
    margin: 0 auto 9px;
  }
  .back {
    font-size: 12px;
    min-height: 35px;
  }
  .inner-wrap:has(.personal-workspace) > .back {
    display: none;
  }
  .personal-workspace {
    display: block;
  }
  .letter-panel.is-open {
    padding: 55px 14px 0;
    margin-bottom: 18px;
  }
  .letter-backdrop .envelope-art {
    height: 335px;
  }
  .folded-letter {
    padding: 24px 24px 28px;
    min-height: 327px;
  }
  .paper-middle {
    min-height: 152px;
    padding-bottom: 13px;
  }
  .recipient-label {
    font-size: 14px;
  }
  .recipient-name {
    font-size: 65px;
    line-height: 1.15;
  }
  .recipient-name.long-name {
    font-size: 38px;
  }
  .recipient-wish {
    padding-top: 18px;
  }
  .recipient-wish strong {
    font-size: 13px;
  }
  .recipient-wish p {
    font-size: 21px;
  }
  .recipient-wish .sprig {
    width: 100px;
    margin-top: 17px;
  }
  .options-grid {
    gap: 10px;
  }
  .options-grid input {
    padding: 12px 8px;
  }
  .modal {
    padding: 38px 25px 30px;
  }
  .modal h2 {
    font-size: 28px;
  }
  .sealed-letter h2 {
    font-size: 30px;
  }
}
@media (max-width: 360px) {
  .shell {
    padding: 0 14px;
  }
  .create-heading h1 {
    font-size: 34px;
  }
  .create-heading .friends {
    width: 105px;
  }
  .create-heading p {
    font-size: 12px;
    max-width: 180px;
  }
  .recipient-name {
    font-size: 58px;
  }
  .names-paper {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .names-paper,
  .claim-panel,
  .modal,
  .folded-letter,
  .code-ticket,
  .primary,
  .secondary,
  .member-list > button,
  .chips li,
  .name-entry {
    background: Canvas;
    border: 1px solid CanvasText;
    color: CanvasText;
  }
  .names-paper::before,
  .claim-panel::before,
  .modal::before,
  .chips li::before,
  .member-list > button::before {
    display: none;
  }
  .add-button {
    color: ButtonText;
  }
}

/* Atelier II: a handwritten, guided correspondence flow. */
@font-face {
  font-family: Hand;
  src: url("./fonts/caveat.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  background: #eeede5;
}
body {
  min-height: 100vh;
  background: #eeede5 url("./atelier/v2/background.webp") center top / cover;
}
.shell {
  padding-bottom: max(36px, env(safe-area-inset-bottom));
}
.brand {
  font-family: Hand, cursive;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.create-heading .friends {
  width: 150px;
  bottom: 5px;
  right: -7px;
}
.create-heading h1:focus {
  outline: none;
}
.handwritten {
  font:
    500 26px/1.25 Hand,
    cursive;
}
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 0 23px;
}
.flow-steps button {
  display: flex;
  align-items: center;
  gap: 6px;
  font:
    500 21px/1 Hand,
    cursive;
  min-height: 44px;
  opacity: 0.65;
}
.flow-steps button span {
  font-size: 18px;
  font-weight: 650;
}
.flow-steps button[aria-current] {
  color: var(--red);
  opacity: 1;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}
.flow-steps button:disabled {
  opacity: 0.5;
}
.chips {
  max-height: none;
  overflow: visible;
}
.chips li > span {
  font:
    600 32px/1.15 Hand,
    cursive;
}
.chips li > button .close-art {
  width: 25px;
  height: 25px;
}
.name-entry input {
  font:
    500 28px/1.2 Hand,
    cursive;
  caret-color: var(--red);
}
.name-entry input:focus,
.name-entry input:focus-visible {
  outline: none;
}
.name-entry:focus-within {
  filter: drop-shadow(0 2px 2px #a2513310);
}
.empty-roster p {
  font:
    500 32px/1.2 Hand,
    cursive;
}
.empty-roster > span:last-child {
  font:
    400 19px/1.25 Hand,
    cursive;
}
.create-form > fieldset > .input-hint {
  font:
    500 22px/1.3 Hand,
    cursive;
}
.paper-caption {
  font:
    500 20px/1 Hand,
    cursive;
  text-transform: none;
  letter-spacing: 0;
}
.art-button {
  display: block;
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 0;
  margin: 0;
  background: none;
  line-height: 0;
  border: 0;
}
.art-button > img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.art-button[aria-busy] img {
  opacity: 0.3;
}
.button-wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font:
    600 25px/1 Hand,
    cursive;
  color: var(--ink);
}
.art-next {
  max-width: 235px;
  margin-inline: auto;
}
.art-back {
  max-width: 170px;
  margin-inline: auto;
}
.flow-actions {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 24px;
  align-items: center;
}
.close-art {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
}
.close-modal {
  right: 13px;
  top: 12px;
}
.details-paper,
.review-paper {
  position: relative;
  isolation: isolate;
  padding: 68px 30px 32px;
}
.details-paper::before,
.review-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-image: url("./atelier/sheet.webp") 180 150 110 100 fill / 54px 45px
    33px 30px / 0 stretch;
}
.details-paper > .stamp,
.review-paper > .stamp {
  position: absolute;
  right: 23px;
  top: 5px;
  width: 60px;
}
.details-intro {
  padding-right: 50px;
  margin-bottom: 25px;
  color: var(--muted);
}
.details-paper label {
  font:
    600 28px/1.2 Hand,
    cursive;
  margin: 16px 8px 7px;
}
.paper-field {
  background: url("./atelier/slip-b.webp") center / 100% 100% no-repeat;
  padding: 7px 18px 15px;
  min-height: 67px;
}
.paper-field:nth-of-type(2) {
  background-image: url("./atelier/slip-c.webp");
}
.paper-field input {
  font:
    500 27px/1.2 Hand,
    cursive;
  border: 0;
  background: none;
  padding: 11px 2px 6px;
  border-radius: 0;
  min-height: 44px;
}
.paper-field input:focus {
  outline: none;
  box-shadow: 0 1px 0 #ad302660;
}
.paper-field input[type="date"] {
  font-size: 23px;
}
.paper-field input::-webkit-calendar-picker-indicator {
  opacity: 0.65;
  cursor: pointer;
}
.optional-note {
  text-align: center;
  margin: 24px 0 0;
  font-size: 22px;
  color: var(--muted);
}
.review-paper {
  text-align: center;
  padding-top: 74px;
}
.review-paper h2 {
  font:
    650 41px/1.08 Hand,
    cursive;
  margin: 12px 0 21px;
  overflow-wrap: anywhere;
}
.review-names {
  font:
    500 27px/1.45 Hand,
    cursive;
}
.review-paper > .sprig {
  margin: 22px auto;
  width: 110px;
}
.review-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 30px;
  margin: 0;
}
.review-details dt {
  font-size: 11px;
  color: var(--muted);
}
.review-details dd {
  margin: 3px 0 0;
  font:
    600 25px/1.2 Hand,
    cursive;
}
.review-note {
  margin: 24px 0 0;
  font-size: 22px;
}
.modal h2 {
  font:
    650 42px/1.1 Hand,
    cursive;
  letter-spacing: -0.02em;
}
.modal .claim-message {
  font:
    500 27px/1.3 Hand,
    cursive;
  margin: 20px 0 25px;
}
.modal-actions {
  gap: 15px;
}
.modal-actions .art-back {
  max-width: 180px;
}
.member-list strong {
  font:
    600 32px/1.15 Hand,
    cursive;
}
.claim-panel h2,
.invitation h2 {
  font:
    650 39px/1.1 Hand,
    cursive;
  letter-spacing: -0.02em;
}
.panel-title p,
.invitation p {
  font:
    500 23px/1.25 Hand,
    cursive;
}
.secondary,
.pull-note,
.text-button {
  font-family: Hand, cursive;
  font-size: 23px;
  font-weight: 550;
}
.letter-close {
  position: absolute;
  z-index: 2;
  right: 5px;
  top: -10px;
  width: 44px;
  height: 44px;
}
.recipient-label {
  font:
    500 24px/1.25 Hand,
    cursive;
}
.recipient-name {
  font:
    650 88px/1.08 Hand,
    cursive;
  letter-spacing: -0.02em;
}
.recipient-name.long-name {
  font-size: 51px;
}
.recipient-wish strong {
  font:
    500 24px/1.2 Hand,
    cursive;
}
.recipient-wish p {
  font:
    500 30px/1.2 Hand,
    cursive;
}
.recipient-wish .no-wishes {
  font:
    500 24px/1.3 Hand,
    cursive;
}
.sealed-letter h2 {
  font:
    650 42px/1.1 Hand,
    cursive;
}
.sealed-letter > p {
  font:
    500 24px/1.3 Hand,
    cursive;
}
.keep-letter {
  text-align: center;
  margin: 32px 4px 0;
  padding: 0 5px;
}
.keep-letter > .sprig {
  margin: 0 auto 14px;
  width: 90px;
}
.keep-letter h3 {
  font:
    650 33px/1.2 Hand,
    cursive;
}
.keep-letter > p {
  font:
    500 24px/1.25 Hand,
    cursive;
  margin: 9px 0 18px;
}
.keep-letter .art-mail {
  max-width: 330px;
  margin: auto;
}
.keep-letter .mail-hint {
  font:
    400 12px/1.4 DM,
    sans-serif;
  color: var(--muted);
  margin: 9px 0 0;
}
.keep-letter .copy-personal {
  font:
    500 22px/1.3 Hand,
    cursive;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 6px;
}
.save-status {
  font-size: 12px;
  display: block;
  min-height: 18px;
}
.manual-link {
  font-size: 12px;
  margin: 10px 0;
}
.personal-workspace .art-wish {
  margin-top: 20px;
}
.wish-panel label {
  font:
    600 26px/1.2 Hand,
    cursive;
}
.wish-panel textarea {
  font:
    500 27px/1.4 Hand,
    cursive;
  border: 0;
  background: transparent;
  border-bottom: 1px solid #173d3140;
  padding: 10px 4px;
}
.wish-panel textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
}
.wish-panel .panel-title {
  display: none;
}
.status-panel > .friends {
  margin: 0 auto 20px;
  width: 130px;
}
.read-wishes {
  font-size: 20px;
}
.full-wishes {
  font:
    500 27px/1.5 Hand,
    cursive !important;
}
@media (min-width: 900px) {
  .create-workspace {
    margin-top: 35px;
  }
  .create-heading .friends {
    width: 265px;
    right: 35px;
    bottom: -6px;
  }
  .flow-steps {
    gap: 30px;
    margin-bottom: 25px;
  }
}
@media (max-width: 650px) {
  .create-heading .friends {
    width: 120px;
    right: -5px;
    bottom: 2px;
  }
  .create-heading p {
    max-width: 215px;
  }
  .create-heading {
    min-height: 150px;
  }
  .flow-steps {
    gap: 18px;
    margin-bottom: 16px;
  }
  .flow-steps button {
    font-size: 20px;
  }
  .paper-caption {
    font-size: 18px;
  }
  .name-entry input {
    font-size: 26px;
  }
  .empty-roster p {
    font-size: 29px;
  }
  .chips li > span {
    font-size: 30px;
  }
  .details-paper,
  .review-paper {
    padding: 63px 24px 28px;
  }
  .details-paper label {
    font-size: 26px;
  }
  .details-intro {
    font-size: 24px;
  }
  .paper-field {
    padding-inline: 15px;
  }
  .paper-field input {
    font-size: 25px;
  }
  .review-paper h2 {
    font-size: 38px;
  }
  .recipient-name {
    font-size: 78px;
  }
  .recipient-name.long-name {
    font-size: 43px;
  }
  .recipient-wish p {
    font-size: 27px;
  }
  .recipient-label,
  .recipient-wish strong {
    font-size: 23px;
  }
  .modal h2 {
    font-size: 38px;
  }
  .modal .claim-message {
    font-size: 25px;
  }
}
@media (max-width: 360px) {
  .create-heading .friends {
    width: 101px;
  }
  .create-heading p {
    max-width: 180px;
  }
  .flow-steps {
    gap: 13px;
  }
  .flow-steps button {
    font-size: 19px;
  }
  .details-paper,
  .review-paper {
    padding-inline: 19px;
  }
  .details-intro {
    font-size: 22px;
  }
  .paper-field input[type="date"] {
    font-size: 21px;
  }
}

.details-paper {
  padding-top: 45px;
}
.details-paper label:first-of-type {
  margin-top: 0;
  padding-right: 42px;
}
@media (max-width: 650px) {
  .step-2 .create-heading,
  .step-3 .create-heading {
    min-height: 125px;
  }
  .step-2 .create-heading .friends,
  .step-3 .create-heading .friends {
    width: 105px;
  }
  .details-paper {
    padding-top: 38px;
  }
  .details-paper .paper-field {
    min-height: 58px;
  }
  .details-paper .optional-note {
    margin-top: 16px;
    font-size: 20px;
  }
}

/* A single task on each sheet: review → invitation → choose your own name. */
.step-3.create-workspace {
  display: block;
  max-width: 500px;
  margin: 15px auto 0;
}
.step-3 .create-heading {
  display: block;
  min-height: 0;
  padding: 0 0 22px;
  text-align: center;
}
.step-3 .create-heading .season,
.step-3 .create-heading .friends,
.step-3 .create-heading p {
  display: none;
}
.step-3 .create-heading h1 {
  font:
    600 42px/1.15 Hand,
    cursive;
  letter-spacing: 0;
}
.step-3 .flow-steps {
  justify-content: center;
}
.review-paper {
  padding: 64px 34px 37px;
}
.review-eyebrow {
  font:
    500 23px/1.3 Hand,
    cursive;
  color: var(--muted);
}
.review-paper h2 {
  margin: 12px 0 18px;
}
.review-names {
  font-size: 26px;
  color: var(--muted);
}
.review-details {
  display: grid;
  gap: 19px;
}
.review-details dt {
  font:
    500 21px/1.2 Hand,
    cursive;
}
.review-details dd {
  font:
    600 28px/1.25 Hand,
    cursive;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.round-context {
  text-align: center;
  max-width: 510px;
  margin: 8px auto 24px;
}
.round-context > .sprig {
  width: 85px;
  margin: 0 auto 10px;
}
.round-context h1 {
  font:
    550 26px/1.2 Hand,
    cursive;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.claim-workspace.group-workspace,
.share-stage {
  display: block;
  max-width: 500px;
  margin: 0 auto;
}
.claim-workspace .claim-panel {
  padding: 38px 32px 27px;
}
.claim-panel .panel-title {
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}
.claim-panel .panel-title h2 {
  font:
    650 47px/1.1 Hand,
    cursive;
  margin-bottom: 10px;
}
.claim-panel .panel-title p {
  font:
    500 24px/1.25 Hand,
    cursive;
}
.claim-count {
  text-align: center;
  margin: 22px 0 0;
  font:
    500 21px/1.3 Hand,
    cursive;
  color: var(--muted);
}
.claim-workspace .taken {
  font:
    500 18px/1.1 Hand,
    cursive;
}
.share-stage .invitation {
  padding: 85px 37px 43px;
  text-align: center;
}
.share-stage .invitation h2 {
  max-width: none;
  font:
    650 45px/1.05 Hand,
    cursive;
  margin-bottom: 18px;
}
.share-stage .invitation p {
  font:
    500 25px/1.3 Hand,
    cursive;
}
.share-stage .share-actions {
  margin-top: 31px;
}
.share-stage .share-actions .secondary {
  min-height: 67px;
  font-size: 28px;
}
.share-stage .share-url {
  margin-top: 20px;
}
.own-draw {
  display: block;
  margin: 25px auto 0;
  font-size: 24px;
}
.round-extras {
  max-width: 480px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
}
.round-note summary {
  font:
    500 22px/1.3 Hand,
    cursive;
  cursor: pointer;
  padding: 10px 5px;
}
.round-note .round-meta {
  display: block;
  font:
    500 24px/1.35 Hand,
    cursive;
  padding: 15px 20px;
  overflow-wrap: anywhere;
}
.round-note .round-meta p + p {
  margin-top: 8px;
}
.round-extras > .text-button {
  font-size: 22px;
  margin-top: 8px;
}
.keep-letter .art-download {
  max-width: 350px;
  margin: 0 auto 8px;
}
.keep-letter .copy-personal {
  display: block;
  margin: 0 auto;
}
.keep-letter .save-status {
  font:
    500 20px/1.25 Hand,
    cursive;
  margin-top: 10px;
  min-height: 0;
}
.card-preview-link {
  display: block;
  font:
    500 21px/1.3 Hand,
    cursive;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 8px auto;
}
.code-recovery summary {
  font:
    500 24px/1.3 Hand,
    cursive;
  cursor: pointer;
  margin: 0 0 15px;
}
.code-recovery label {
  font:
    500 22px/1.2 Hand,
    cursive;
}
.code-recovery .secondary {
  margin: 12px 0 20px;
  width: 100%;
}
@media (max-width: 650px) {
  .step-3 .create-heading {
    min-height: 0;
    padding-bottom: 15px;
  }
  .step-3 .create-heading h1 {
    font-size: 36px;
  }
  .review-paper {
    padding: 62px 25px 29px;
  }
  .review-details dd {
    font-size: 26px;
  }
  .round-context {
    margin: 2px auto 20px;
  }
  .round-context h1 {
    font-size: 24px;
  }
  .claim-workspace .claim-panel {
    padding: 32px 23px 25px;
  }
  .claim-panel .panel-title h2 {
    font-size: 42px;
  }
  .claim-panel .panel-title p {
    font-size: 22px;
  }
  .share-stage .invitation {
    padding: 79px 27px 33px;
  }
  .share-stage .invitation h2 {
    max-width: none;
    font-size: 39px;
  }
  .share-stage .invitation p {
    font-size: 23px;
  }
  .share-stage .share-actions .secondary {
    font-size: 26px;
  }
}

/* Illustrations are part of the paper scene; controls stay on quiet surfaces. */
body {
  background: #eeede5 url("./atelier/v2/background.webp") center top / cover
    fixed no-repeat;
}
.round-title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-inline: 10px;
}
.round-title-row h1 {
  min-width: 0;
}
.round-info {
  width: 39px;
  min-width: 39px;
  height: 44px;
  display: grid;
  place-items: center;
}
.info-art {
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
}
.modal .round-meta {
  display: grid;
  gap: 12px;
  margin: 25px 0;
  font:
    500 27px/1.3 Hand,
    cursive;
  overflow-wrap: anywhere;
}
.modal .round-meta + .secondary {
  width: 100%;
  margin-top: 12px;
}
@media (max-width: 650px) {
  body {
    background-image: url("./atelier/v2/background.webp");
    background-size: 100% auto;
    background-color: #f3eddf;
  }
  .create-heading {
    min-height: 0;
    padding-bottom: 23px;
  }
  .step-2 .create-heading {
    min-height: 0;
  }
  .round-title-row h1 {
    font-size: 24px;
  }
}

/* Keep the scene's center clear, including the creation flow. */
.create-workspace {
  display: block;
  max-width: 500px;
  margin: 18px auto 0;
}
.create-heading {
  display: block;
  min-height: 0;
  padding: 0 0 24px;
  text-align: center;
}
.create-heading .season {
  display: none;
}
.create-heading h1 {
  font:
    600 48px/1.06 Hand,
    cursive;
  margin: 0 0 10px;
  letter-spacing: 0;
}
.create-heading p {
  max-width: none;
  font:
    500 23px/1.25 Hand,
    cursive;
}
.flow-steps {
  justify-content: center;
}
@media (max-width: 650px) {
  body {
    background-attachment: scroll;
  }
  .shell {
    padding-bottom: 36px;
    min-height: calc(100dvh - 80px);
  }
  .create-heading h1 {
    font-size: 43px;
  }
}
@media (max-width: 650px) {
  body {
    position: relative;
    isolation: isolate;
    background: #eeede5 url("./atelier/v2/background.webp") center top / cover
      no-repeat;
  }
  body::before {
    content: none;
  }
}

/* Each scene has its own companion, tucked into the upper paper edge. */
.header-back-hidden {
  visibility: hidden;
}
.companion {
  position: absolute;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  z-index: 2;
}
.create-heading {
  position: relative;
}
.create-heading .companion {
  width: 175px;
  height: 195px;
  right: -142px;
  top: 0;
  transform: rotate(8deg);
}
.create-heading .companion-writer {
  right: auto;
  left: -145px;
  transform: rotate(-7deg);
}
.create-heading .companion-postman {
  width: 155px;
  top: -12px;
}
.round-context.has-companion {
  position: relative;
  min-height: 115px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding-right: 148px;
}
.round-context.has-companion .round-title-row {
  justify-content: flex-start;
  text-align: left;
  padding: 0 12px;
}
.round-context .companion {
  width: 158px;
  height: 172px;
  right: -12px;
  top: -25px;
  transform: rotate(7deg);
}
.round-context .companion-choose {
  right: -28px;
  transform: rotate(-9deg);
}
.round-context.personal-round {
  padding-right: 215px;
  min-height: 120px;
}
.round-context .companion-letter {
  width: 225px;
  height: 120px;
  right: -4px;
  top: 12px;
  transform: rotate(-5deg);
}
.round-overview {
  max-width: 540px;
  margin: 26px auto 0;
}
.overview-heading {
  position: relative;
  min-height: 158px;
  padding: 10px 155px 25px 18px;
}
.overview-heading h1 {
  font:
    600 53px/1.02 Hand,
    cursive;
  margin: 0;
  letter-spacing: 0;
}
.overview-heading .companion {
  width: 190px;
  height: 230px;
  top: -25px;
  right: -20px;
  transform: rotate(-9deg);
  z-index: 0;
}
.round-cards {
  display: grid;
  gap: 18px;
}
.round-card {
  position: relative;
  display: block;
  isolation: isolate;
  color: var(--ink);
  text-decoration: none;
  padding: 32px 32px 26px;
  border: 0 solid transparent;
  border-image: url("./atelier/sheet.webp") 180 150 110 100 fill / 54px 45px
    33px 30px;
  transition: transform 180ms ease;
}
.round-card:hover {
  transform: translateY(-3px) rotate(-0.3deg);
}
.round-card:focus-visible {
  outline: 2px dashed #ab3c30;
  outline-offset: 6px;
}
.round-card .stamp {
  position: absolute;
  right: 20px;
  top: 12px;
  width: 51px;
  transform: rotate(10deg);
}
.round-card-caption {
  display: block;
  padding-right: 45px;
  color: #647264;
  font:
    500 23px/1.2 Hand,
    cursive;
}
.round-card h2 {
  margin: 22px 0 10px;
  font:
    600 37px/1.08 Hand,
    cursive;
  overflow-wrap: anywhere;
}
.round-card-meta {
  color: #526d60;
  font:
    500 22px/1.25 Hand,
    cursive;
}
.round-card-open {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  font:
    600 28px/1.2 Hand,
    cursive;
  color: #a33129;
}
.round-card-open > span {
  font: 400 30px/1 sans-serif;
}
.round-card-featured {
  padding: 43px 38px 33px;
}
.round-card-featured h2 {
  font-size: 58px;
  margin: 30px 0 18px;
}
.round-card-featured .round-card-open {
  margin-top: 40px;
}
.overview-create {
  max-width: 310px;
  margin: 20px auto 0;
}
.overview-create.has-rounds {
  max-width: 230px;
  margin-top: 26px;
}
.art-new-round {
  width: 100%;
}
.art-new-round img {
  width: 100%;
  height: auto;
}
.overview-empty {
  position: relative;
  border-image: url("./atelier/sheet.webp") 180 150 110 100 fill / 54px 45px
    33px 30px;
  padding: 30px;
  text-align: center;
}
.overview-empty .sprig {
  width: 110px;
  margin: 0 auto 12px;
}
.overview-empty h2 {
  font:
    500 36px/1.15 Hand,
    cursive;
  white-space: pre-line;
}
.past-rounds {
  margin: 30px 15px 0;
}
.past-rounds summary {
  cursor: pointer;
  color: #627365;
  font:
    500 24px/1.3 Hand,
    cursive;
}
.past-rounds summary span {
  margin-left: 9px;
}
.past-rounds .round-cards {
  margin-top: 18px;
}
@media (max-width: 850px) and (min-width: 651px) {
  .create-heading {
    padding-right: 130px;
    text-align: left;
  }
  .create-heading .companion,
  .create-heading .companion-writer {
    width: 140px;
    right: -5px;
    left: auto;
    top: -15px;
  }
}
@media (max-width: 650px) {
  .create-heading {
    padding: 0 104px 16px 4px;
    text-align: left;
    min-height: 128px;
  }
  .create-heading h1 {
    font-size: 36px;
  }
  .create-heading p {
    font-size: 21px;
  }
  .create-heading .companion,
  .create-heading .companion-writer,
  .create-heading .companion-postman {
    width: 120px;
    height: 150px;
    right: 8px;
    left: auto;
    top: -6px;
  }
  .step-3 .create-heading {
    min-height: 124px;
    display: flex;
    align-items: center;
  }
  .step-3 .create-heading h1 {
    font-size: 36px;
  }
  .round-context.has-companion {
    min-height: 124px;
    padding-right: 110px;
    margin-top: 0;
  }
  .round-context .companion,
  .round-context .companion-choose {
    width: 125px;
    height: 148px;
    right: -5px;
    top: -9px;
  }
  .round-context.personal-round {
    min-height: 116px;
    padding-right: 153px;
  }
  .round-context .companion-letter {
    width: 164px;
    height: 105px;
    top: 19px;
    right: -2px;
  }
  .round-overview {
    margin: 18px auto 0;
  }
  .overview-heading {
    min-height: 145px;
    padding: 0 110px 23px 10px;
  }
  .overview-heading h1 {
    font-size: clamp(29px, 9.2vw, 36px);
  }
  .overview-heading .companion {
    width: 148px;
    height: 181px;
    right: 8px;
    top: -16px;
  }
  .round-card,
  .round-card-featured {
    padding: 30px 27px 28px;
  }
  .round-card h2 {
    font-size: 34px;
  }
  .round-card-featured h2 {
    font-size: 49px;
    margin: 29px 0 16px;
  }
  .round-card-featured .round-card-open {
    margin-top: 32px;
  }
  .round-card-caption {
    font-size: 21px;
  }
  .round-card-meta {
    font-size: 21px;
  }
  .round-card .stamp {
    width: 44px;
    right: 16px;
    top: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .round-card {
    transition: none;
  }
}

/* A single paper label for the round; the companion rests on the actual letter. */
.round-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 18px 12px;
  max-width: 100%;
  min-height: 48px;
  background: url("./atelier/slip-b.webp") center / 100% 100% no-repeat;
  font:
    500 24px/1.2 Hand,
    cursive;
}
.round-label > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.round-label .info-art {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}
.round-context.personal-round {
  min-height: 0;
  padding: 0;
  margin: 8px auto 16px;
  text-align: center;
}
.personal-round .round-title-row {
  padding: 0;
}
.personal-round h1 {
  margin: 0;
  max-width: 100%;
}
.folded-letter > .companion-letter {
  width: 150px;
  height: auto;
  top: 0;
  left: 16px;
  transform: translateY(-89%);
  z-index: 3;
}
.draw-envelope > .companion-letter {
  width: 145px;
  height: auto;
  right: 17px;
  top: 0;
  transform: translateY(-68%) rotate(2deg);
  z-index: 2;
}
.sealed-letter > p {
  margin-bottom: 58px;
}
.letter-panel.is-open {
  padding-top: 75px;
}
@media (max-width: 650px) {
  .round-context.personal-round {
    min-height: 0;
    padding: 0;
    margin: 0 auto 12px;
  }
  .round-label {
    font-size: 22px;
    padding: 8px 15px 12px;
  }
  .folded-letter > .companion-letter {
    width: 125px;
    left: 9px;
  }
  .draw-envelope > .companion-letter {
    width: 125px;
    right: 20px;
  }
  .letter-panel.is-open {
    padding-top: 68px;
  }
}

/* Large background characters, occluded by the foreground stationery. */
.site { overflow-x: clip; }
.create-heading { padding: 0 0 18px; min-height: 0; text-align: center; }
.create-heading h1 { font-size: 46px; }
.step-3 .create-heading { display: block; min-height: 0; }
.overview-heading { min-height: 0; padding: 8px 0 24px; text-align: center; }
.overview-heading h1 { font-size: 49px; }
.wichtel-scene { position: relative; isolation: isolate; padding-top: 64px; }
.scene-characters { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.scene-characters .companion { height: auto; object-fit: contain; z-index: auto; max-width: none; }
.scene-characters .companion:first-child { width: 360px; left: -230px; top: -40px; transform: rotate(-13deg); }
.scene-characters .companion:last-child { width: 310px; right: -200px; top: 75px; transform: rotate(12deg); }
.scene-paper { position: relative; }
.scene-paper .letter-panel { isolation: auto; }
.scene-paper .letter-backdrop { z-index: 0; }
.scene-paper .folded-letter { z-index: 1; }
.scene-paper .sealed-letter { padding-top: 0; }
.scene-paper .sealed-letter h2 { position: relative; z-index: 1; }
.scene-paper .sealed-letter > p { margin-bottom: 20px; }
.scene-paper .letter-panel.is-open { padding-top: 60px; }
.scene-paper .draw-envelope { z-index: 1; }
.personal-workspace .wichtel-scene { padding-top: 44px; }
.round-overview .scene-characters .companion:first-child { left: -210px; }
@media (max-width: 950px) and (min-width: 651px) {
  .scene-characters .companion:first-child { width: 300px; left: -170px; }
  .scene-characters .companion:last-child { width: 260px; right: -145px; }
}
@media (max-width: 650px) {
  .create-heading { padding: 0 0 14px; min-height: 0; }
  .create-heading h1 { font-size: 38px; }
  .create-heading p { font-size: 22px; }
  .step-3 .create-heading { min-height: 0; }
  .overview-heading { min-height: 0; padding: 0 0 12px; }
  .overview-heading h1 { font-size: 39px; }
  .wichtel-scene { padding-top: 132px; }
  .scene-characters .companion:first-child, .round-overview .scene-characters .companion:first-child { width: 240px; left: -68px; top: -14px; transform: rotate(-15deg); }
  .scene-characters .companion:last-child { width: 220px; right: -65px; top: 10px; transform: rotate(14deg); }
  .personal-workspace .wichtel-scene { padding-top: 110px; }
  .personal-workspace .scene-characters .companion:first-child { width: 245px; top: -20px; }
  .personal-workspace .scene-characters .companion:last-child { width: 265px; right: -74px; top: 2px; }
  .scene-paper .letter-panel.is-open { padding-top: 45px; }
  .scene-paper .sealed-letter { padding: 20px 12px 0; background: url("./atelier/sheet.webp") center/100% 100% no-repeat; }
}

/* App viewport: a stationary stage with stationery scrolling in front of it. */
html, body, #root { height: 100%; min-height: 0; overflow: hidden; }
body { overscroll-behavior: none; }
.site {
  position: fixed;
  inset: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: #eeede5 url("./atelier/v2/background.webp") center top / cover no-repeat;
}
.web-stage { flex: 1; min-height: 0; }
.stage-chrome { position: fixed; inset: 0 0 auto; z-index: 0; }
.stage-heading { position: relative; padding: 0 24px; }
.stage-heading:empty { display: none; }
.stage-art { position: fixed; inset: var(--stage-top) 0 0; overflow: visible; pointer-events: none; z-index: 0; }
.scroll-papers { position: relative; z-index: 1; }
.stage-art .scene-characters {
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  width: min(500px, calc(100% - 40px));
  height: 100%;
  z-index: auto;
}
.view-home .stage-art .scene-characters { width: min(540px, calc(100% - 40px)); }
.content-scroll.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #173d3140 transparent;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--stage-top) + 12px) 32px max(32px, env(safe-area-inset-bottom));
  scroll-padding-block: 20px;
}
.content-scroll:focus { outline: none; }
.scroll-papers > .round-overview,
.scroll-papers > .create-workspace,
.scroll-papers > .inner-wrap { margin-top: 0; padding-top: 0; }
.stage-heading .overview-heading { padding: 4px 0 18px; }
.stage-heading .overview-heading h1 { font-size: 43px; }
.stage-heading .create-heading { padding: 0 0 8px; }
.stage-heading .create-heading h1 { font-size: 38px; }
.stage-heading .create-heading .season,
.stage-heading .create-heading p { display: none; }
.stage-heading .flow-steps { margin: 0 auto 12px; justify-content: center; }
.stage-heading .round-context.personal-round { margin: 0 auto 12px; }
.content-scroll .wichtel-scene { isolation: auto; }
.content-scroll .scene-paper { z-index: 1; }
@media (max-width: 650px) {
  .mast-inner { min-height: 66px; }
  .stage-heading { padding: 0 18px; }
  .stage-heading .overview-heading { padding: 2px 0 12px; }
  .stage-heading .overview-heading h1 { font-size: 34px; line-height: 1.02; }
  .stage-heading .create-heading h1 { font-size: 31px; line-height: 1.05; }
  .stage-heading .create-heading h1 br { display: none; }
  .stage-heading .flow-steps { margin-bottom: 10px; gap: 14px; }
  .stage-heading .round-context.personal-round { margin: 0 auto 8px; }
  .content-scroll.shell { padding: calc(var(--stage-top) + 8px) 18px max(28px, env(safe-area-inset-bottom)); }
  .stage-art .scene-characters { width: calc(100% - 36px); }
  .view-home .stage-art .scene-characters { width: calc(100% - 36px); }
  .stage-art .scene-characters .companion:first-child { top: 0; }
  .stage-art .scene-characters .companion:last-child { top: 18px; }
}
@media (max-height: 520px) {
  .mast-inner { min-height: 48px; }
  .stage-heading .overview-heading h1 br { display: none; }
  .stage-heading .overview-heading h1,
  .stage-heading .create-heading h1 { font-size: 27px; }
  .stage-heading .overview-heading { padding-block: 0 6px; }
  .stage-heading .flow-steps { margin-bottom: 4px; }
}
