@font-face {
  font-family: Nunito;
  src: url('/vendor/nunito.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #28213e;
  --muted: #655f73;
  --plum: #514082;
  --line: #dfdbe7;
  --paper: #f7f6fa;
  --white: #fff;
  --gold: #ffda86;
  font:
    16px/1.48 Nunito,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  padding: env(safe-area-inset-top) max(env(safe-area-inset-right), 0px)
    env(safe-area-inset-bottom) max(env(safe-area-inset-left), 0px);
}
button,
a,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.52;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #9371c6;
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4,
strong,
button {
  font-weight: 850;
}
p {
  color: var(--muted);
}
button {
  color: inherit;
}
a {
  color: var(--plum);
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 1120px;
  width: calc(100% - 72px);
  margin: auto;
}
header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.top,
.top-right,
.brand,
.actions,
.label-icon,
.section-title,
.room-card,
.room-head,
.empty,
.back,
footer,
.compose {
  display: flex;
  align-items: center;
}
.top,
.room-head,
footer {
  justify-content: space-between;
}
.top {
  min-height: 78px;
}
.bare {
  border: 0;
  background: none;
  padding: 0;
}
.brand {
  text-align: left;
  gap: 12px;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand span {
  font-size: 19px;
  font-weight: 950;
  line-height: 1.1;
}
.brand small {
  display: block;
  font:
    800 11px/1.5 Nunito,
    sans-serif;
  letter-spacing: 0.16em;
  color: #73658c;
  margin-top: 4px;
}
.top-right {
  gap: 20px;
}
.help {
  font-size: 18px;
  border: 2px solid #92859e;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  color: #685b78;
  line-height: 20px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  flex: none;
}
.c0 {
  background: #e9def7;
  color: #614883;
}
.c1 {
  background: #ffe1ce;
  color: #81482b;
}
.c2 {
  background: #d6eadf;
  color: #355f50;
}
.c3 {
  background: #ffe8ab;
  color: #785a23;
}
#profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.top-right #profile:empty {
  display: none;
}
main.wrap {
  min-height: 70vh;
  padding: 30px 0 42px;
}
main > section + section {
  margin-top: 32px;
}
.hero,
.room-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 26px;
  background-color: #3b2c6b;
  color: white;
}
.hero {
  display: flex;
  align-items: center;
  min-height: 368px;
  background: radial-gradient(
    ellipse at 80% 60%,
    #7661a5 0%,
    #564382 35%,
    #3d306b 65%,
    #322955 100%
  );
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 36px 0 38px 5%;
  max-width: 60%;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #f4e5b9;
}
.mini-line {
  display: inline-block;
  background: currentColor;
  width: 24px;
  height: 2px;
}
.hero h1 {
  font-size: clamp(52px, 5.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 1000;
  margin: 17px 0;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero p,
.room-head p {
  color: #f2eff8;
}
.hero p {
  font-size: 17px;
  line-height: 1.5;
}
.actions {
  gap: 14px;
  flex-wrap: wrap;
}
.hero .actions {
  margin-top: 22px;
}
.primary,
.secondary,
.gold,
.hero-link,
.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 850;
}
.primary,
.secondary,
.gold {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
}
.primary {
  background: var(--plum);
  color: white;
}
.secondary {
  color: var(--plum);
  background: #f2edf8;
  border-color: #dcd3e6;
}
.gold {
  background: var(--gold);
  color: #352849;
  box-shadow: 0 3px 0 #291d4a55;
}
.hero-link {
  border: 0;
  background: none;
  color: #fff;
  padding: 11px 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.primary:hover,
.gold:hover,
.secondary:hover {
  filter: brightness(0.96);
}
.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image:
    radial-gradient(1.1px 1.1px at 73% 18%, #fff 80%, transparent),
    radial-gradient(1.2px 1.2px at 39% 73%, #f8e9ff 80%, transparent);
  background-size:
    107px 97px,
    153px 121px;
}
.planet {
  position: absolute;
  right: 4.3%;
  top: 50%;
  width: 40%;
  height: 94%;
  object-fit: contain;
  transform: translateY(-50%) rotate(-5deg);
  filter: drop-shadow(0 20px 18px #27184d66);
}
.orbit {
  position: absolute;
  right: -5%;
  top: 17%;
  width: 57%;
  height: 68%;
  border: 1px dashed #d4c4f46b;
  border-radius: 50%;
  transform: rotate(-18deg);
}
.orbit.second {
  width: 48%;
  right: 2%;
  height: 79%;
  top: 10%;
  transform: rotate(52deg);
  border-style: solid;
  border-color: #d8c7fc24;
}
.tw {
  position: absolute;
  color: #ffda86;
  font-size: 32px;
  line-height: 1;
}
.t1 {
  left: 52%;
  top: 21%;
}
.t2 {
  left: 47%;
  top: 70%;
  font-size: 24px;
  color: #ebe2ff;
}
.t3 {
  right: 4%;
  top: 32%;
  font-size: 20px;
}
.t4 {
  right: 10%;
  bottom: 12%;
  font-size: 32px;
}
.t5 {
  left: 62%;
  top: 8%;
  font-size: 20px;
  color: white;
}
.section-title {
  gap: 10px;
  margin-bottom: 14px;
}
.section-title h2,
h2 {
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1.22;
  letter-spacing: -0.035em;
  font-weight: 950;
}
.count,
.pill {
  border-radius: 20px;
  font-size: 14px;
  font-weight: 850;
}
.count {
  min-width: 26px;
  padding: 2px 8px;
  text-align: center;
  background: #e9e3f2;
  color: #604b7b;
}
.room-card,
.empty,
.panel,
.steps {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.room-card {
  width: 100%;
  gap: 17px;
  padding: 19px 22px;
  text-align: left;
  margin: 8px 0;
}
.room-card:hover {
  border-color: #9c89b8;
}
.room-text {
  flex: 1;
  min-width: 0;
}
.room-text strong,
.room-text small {
  display: block;
}
.room-text strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.room-text small,
.roster small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.pill {
  font-size: 13px;
  padding: 5px 12px;
  background: #e9f3e9;
  color: #39694c;
}
.ticket {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  flex: none;
  position: relative;
  border-radius: 12px;
  transform: rotate(-4deg);
}
.ticket:after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed currentColor;
  border-radius: 9px;
  opacity: 0.4;
}
.ticket svg {
  transform: rotate(4deg);
}
.violet {
  color: #6c4b9c;
  background: #e9dff5;
}
.peach {
  color: #a85438;
  background: #ffe1ce;
}
.mint {
  color: #3b7263;
  background: #d9eee5;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px;
  gap: 22px;
}
.steps article {
  display: flex;
  gap: 14px;
}
.steps article + article {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.022em;
}
.steps p,
.empty p {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.45;
}
.empty {
  gap: 16px;
  padding: 22px;
}
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 18px 0 24px;
  font-size: 13px;
}
footer span:first-child {
  font-weight: 900;
}
.back {
  color: var(--plum);
  margin: 0 0 15px;
  min-height: 35px;
}
.room-head {
  min-height: 155px;
  padding: 26px 34px;
  background: radial-gradient(ellipse at 85% 30%, #76619f, #443467 72%);
}
.room-head > div {
  max-width: 80%;
  overflow-wrap: anywhere;
}
.room-head h1 {
  font-size: clamp(26px, 4vw, 45px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 9px 0;
}
.room-head img {
  width: 140px;
  max-width: 23%;
  transform: rotate(-8deg);
  margin: -22px 0;
}
.tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0 22px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  white-space: nowrap;
  padding: 13px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.tabs button[aria-current='page'] {
  color: var(--plum);
  border-color: var(--plum);
}
.panel {
  padding: 24px;
  min-width: 0;
}
.panel h2 {
  font-size: 23px;
}
.panel p,
.panel h4 {
  margin: 12px 0;
}
.room-grid,
.pair-grid {
  display: grid;
  grid-template-columns: 1.07fr 1fr;
  gap: 18px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 16px;
}
.label-icon {
  gap: 12px;
}
.label-icon > svg {
  color: var(--plum);
  flex: none;
}
.roster,
.exclusions {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}
.roster li,
.exclusions li {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.roster strong {
  min-width: 0;
}
.roster small {
  flex: none;
}
.remove {
  margin-left: auto;
  color: var(--muted);
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
}
.ward {
  font-size: 27px;
  margin-top: 18px;
}
.letter-body,
.bubble p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.letter-avi {
  float: right;
  width: 90px;
  margin: 0 0 8px 15px;
}
.stationery {
  max-width: 760px;
}
.stationery form {
  clear: both;
}
form {
  display: grid;
  gap: 12px;
}
form button {
  justify-self: start;
}
label {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
input,
textarea,
select {
  border: 1px solid #bdb7ca;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  width: 100%;
  min-height: 44px;
  font-size: 16px;
}
label select {
  margin-top: 4px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
dialog {
  position: fixed;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(460px, calc(100% - 26px));
  max-height: 85vh;
  padding: 26px;
  box-shadow: 0 15px 70px #26203838;
}
dialog::backdrop {
  background: #25203480;
}
dialog h2 {
  padding-right: 30px;
  margin-bottom: 17px;
}
dialog p,
dialog input + .actions {
  margin: 14px 0;
}
dialog label {
  margin-top: 5px;
}
dialog .x {
  position: absolute;
  right: 13px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1eef5;
}
dialog .steps {
  display: grid;
  grid-template-columns: 1fr;
  border: 0;
  padding: 0;
}
dialog .steps article + article {
  border: 0;
  padding: 0;
}
#notice {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 10px);
  background: #30263e;
  color: white;
  opacity: 0;
  pointer-events: none;
  border-radius: 12px;
  padding: 10px 18px;
  min-width: max-content;
  max-width: 90vw;
  transition: 0.15s;
  z-index: 5;
}
#notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.error {
  color: #9d344b;
}
.loading {
  margin: 30px 0;
}
.chat {
  max-width: 760px;
  margin: auto;
}
.chat h1 {
  font-size: 26px;
}
.chat .label-icon p {
  margin: 3px 0;
}
.chat form {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.compose {
  gap: 8px;
}
.compose textarea {
  min-width: 0;
}
.compose button {
  align-self: stretch;
}
.chat-empty {
  text-align: center;
  margin: auto;
}
.chat-empty p {
  margin: 5px;
}
.bubble {
  align-self: flex-start;
  max-width: 85%;
  background: #f1eef5;
  padding: 9px 15px;
  border-radius: 13px;
}
.bubble.mine {
  align-self: flex-end;
  background: #e9def6;
}
.bubble small,
.bubble time {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.bubble p {
  color: var(--ink);
  margin: 3px 0;
}
.bubble time {
  text-align: right;
}
#messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: min(50vh, 500px);
  overflow: auto;
  margin: 12px 0;
  padding: 4px;
}
#history {
  margin-top: 10px;
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .steps {
    gap: 14px;
    padding: 18px;
  }
  .steps article {
    flex-direction: column;
  }
  .steps article + article {
    padding-left: 14px;
  }
  .hero-copy {
    max-width: 64%;
  }
  .room-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 18px;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .top {
    min-height: 62px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand span {
    font-size: 17px;
  }
  .top-right {
    gap: 12px;
  }
  .profile-name {
    display: none;
  }
  main.wrap {
    padding-top: 15px;
  }
  .hero {
    border-radius: 20px;
    min-height: 345px;
    align-items: start;
  }
  .hero-copy {
    max-width: none;
    width: 100%;
    padding: 25px 20px;
  }
  .hero h1 {
    font-size: clamp(43px, 10.6vw, 62px);
    width: 64%;
    margin: 18px 0 24px;
  }
  .hero p {
    font-size: 15px;
    max-width: 85%;
  }
  .planet {
    width: 45%;
    height: 52%;
    right: -2%;
    top: 29%;
  }
  .orbit {
    right: -17%;
    top: 8%;
    width: 73%;
    height: 40%;
  }
  .orbit.second {
    width: 60%;
    right: -9%;
    top: 6%;
    height: 44%;
  }
  .t1 {
    left: 56%;
    top: 10%;
    font-size: 19px;
  }
  .t2 {
    left: 52%;
    top: 41%;
    font-size: 18px;
  }
  .t3 {
    right: 5%;
    top: 6%;
  }
  .t4 {
    right: 4%;
    bottom: 49%;
    font-size: 18px;
  }
  .t5 {
    display: none;
  }
  .hero .actions {
    gap: 10px;
    margin-top: 18px;
  }
  .hero-link {
    font-size: 14px;
  }
  .gold,
  .primary,
  .secondary {
    padding: 10px 14px;
  }
  .eyebrow {
    font-size: 11px;
  }
  .wide {
    display: none;
  }
  main > section + section {
    margin-top: 24px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .steps article,
  .steps article + article {
    flex-direction: row;
    border: 0;
    padding: 13px 0;
  }
  .steps article + article {
    border-top: 1px solid var(--line);
  }
  .steps article:first-child {
    padding-top: 0;
  }
  .steps article:last-child {
    padding-bottom: 0;
  }
  .ticket {
    width: 43px;
    height: 43px;
  }
  .ticket svg {
    width: 25px;
  }
  .room-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 11px;
    row-gap: 5px;
    padding: 15px;
  }
  .room-card > .ticket {
    grid-row: span 2;
  }
  .room-text {
    grid-column: 2;
  }
  .room-text strong {
    font-size: 17px;
  }
  .room-card > .pill {
    grid-column: 2;
    justify-self: start;
    font-size: 12px;
    padding: 2px 8px;
  }
  .room-card > svg {
    grid-column: 3;
    grid-row: 1/3;
  }
  .room-head {
    min-height: 125px;
    padding: 18px;
  }
  .room-head img {
    margin: 0;
  }
  .tabs {
    gap: 0;
  }
  .tabs button {
    padding: 11px 8px;
    font-size: 14px;
  }
  .room-grid,
  .pair-grid {
    grid-template-columns: 1fr;
  }
  .empty {
    padding: 16px;
  }
  .room-head > div {
    max-width: 75%;
  }
  .room-head .eyebrow {
    letter-spacing: 0.08em;
  }
  .chat {
    padding: 15px;
  }
  .steps p {
    font-size: 15px;
  }
  footer {
    gap: 12px;
    font-size: 12px;
  }
  #notice {
    min-width: 0;
    width: max-content;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(33px, 10.4vw, 43px);
  }
  .planet {
    width: 37%;
    height: 45%;
    top: 27%;
    right: -1%;
  }
  .hero p {
    max-width: 100%;
  }
}
