@font-face {
  font-family: Jua;
  src: url('/fonts/Jua-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #fcf7e9;
  --ink: #243d33;
  --sub: #586354;
  --coral: #be402c;
  --line: #d9d1b9;
  --display: Jua, 'Apple SD Gothic Neo', sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#ab88611c 0.7px, transparent 0.8px);
  background-size: 7px 7px;
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible {
  outline: 3px solid #15788a;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(100% - 36px, 1000px);
  margin: auto;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 26px/0.9 var(--display);
  letter-spacing: -1.2px;
}
.brand-seal {
  background: #c34732;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  transform: rotate(-5deg);
}
.brand-seal i {
  position: relative;
  display: block;
  width: 23px;
  height: 13px;
  border-radius: 80% 80% 55% 55%;
  background: #fff1ce;
  transform: translateY(2px);
}
.brand-seal i:before {
  content: '';
  position: absolute;
  left: 4px;
  top: -5px;
  border-radius: 75% 30%;
  width: 15px;
  height: 8px;
  border-top: 3px solid #fff1ce;
  transform: rotate(-14deg);
}
.brand-seal i:after {
  content: '';
  position: absolute;
  width: 3px;
  height: 4px;
  left: 6px;
  top: 5px;
  border-radius: 50%;
  background: #8c3f29;
  box-shadow: 8px 0 #8c3f29;
}
.top-action {
  padding: 0 3px 0 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 650;
}
.question-icon {
  width: 17px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font: bold 12px/1 system-ui;
}
#stop > span {
  font-size: 23px;
  line-height: 1;
}
main {
  display: grid;
  grid-template-areas: 'intro' 'stage' 'order';
  gap: 15px;
  max-width: 520px;
  margin: auto;
}
.intro {
  grid-area: intro;
  padding-top: 16px;
}
h1 {
  font: clamp(35px, 9.5vw, 50px) / 1.12 var(--display);
  letter-spacing: -1.7px;
  margin: 0;
}
h1 em {
  font-style: normal;
  color: var(--coral);
  position: relative;
  white-space: nowrap;
}
.title-star {
  display: inline-block;
  font: 18px/1 serif;
  color: #c17a28;
  transform: translate(3px, -13px);
}
.intro p {
  margin: 6px 0 0;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.55;
}
.stage {
  grid-area: stage;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(245px, 35.2svh, 336px);
  border-radius: 20px;
  border: 2px solid #254a3f;
  background: radial-gradient(
    ellipse at 52% 66%,
    #4d806b 0,
    #2e6356 40%,
    #1b493f 85%
  );
  box-shadow: 0 3px 0 #c7baa0;
}
.stage:before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid #edcf952b;
  border-radius: 12px;
  pointer-events: none;
}
.awning {
  position: absolute;
  inset: -1px -5px auto;
  height: 17px;
  z-index: 2;
  background: repeating-linear-gradient(
    90deg,
    #f9dfad 0 21px,
    #bd5641 21px 42px
  );
  mask:
    linear-gradient(#000 0 0) top/100% 9px no-repeat,
    radial-gradient(ellipse 10.5px 9px at 10.5px 0, #000 98%, transparent 100%)
      left bottom/21px 9px repeat-x;
  filter: drop-shadow(0 2px 0 #27210e);
}
.stage-meta {
  position: absolute;
  z-index: 3;
  left: 15px;
  right: 15px;
  top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff3d3;
  font-size: 12px;
  font-weight: 650;
}
.status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #e9dcb146;
  border-radius: 20px;
  background: #193e35b3;
  line-height: 1;
}
.status i {
  width: 6px;
  height: 6px;
  background: #e2bf73;
  border-radius: 50%;
}
.stage[data-active='true'] .status i {
  background: #9de2a2;
  box-shadow: 0 0 7px #9ee7af70;
}
#guest {
  letter-spacing: 0.03em;
}
.constellation {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.constellation i {
  position: absolute;
  color: #f3cc83;
  font:
    24px/1 Georgia,
    serif;
  opacity: 0.74;
}
.constellation i:before {
  content: '✦';
}
.constellation i:nth-child(1) {
  left: 14%;
  top: 39%;
  font-size: 23px;
  transform: rotate(-12deg);
}
.constellation i:nth-child(2) {
  left: 22%;
  top: 28%;
  font-size: 8px;
}
.constellation i:nth-child(3) {
  left: 10%;
  top: 64%;
  font-size: 9px;
}
.constellation i:nth-child(4) {
  right: 14%;
  top: 51%;
  font-size: 21px;
  transform: rotate(12deg);
}
.constellation i:nth-child(5) {
  right: 22%;
  top: 27%;
  font-size: 11px;
}
.constellation i:nth-child(6) {
  right: 11%;
  top: 37%;
  font-size: 7px;
}
.constellation i:nth-child(7) {
  left: 23%;
  top: 63%;
  font-size: 6px;
}
.constellation i:nth-child(8) {
  right: 24%;
  top: 70%;
  font-size: 7px;
}
.tabletop {
  position: absolute;
  inset: 80% 0 0;
  background:
    repeating-linear-gradient(0deg, #ffffff04 0 1px, transparent 1px 8px),
    linear-gradient(#b48251, #91683f);
  border-top: 3px solid #ddb57d;
  box-shadow: 0 -4px 18px #172c282c;
}
#avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.preview {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 10px;
  width: 54px;
  height: 65px;
  border: 1.5px solid #fff5da;
  border-radius: 12px;
  overflow: hidden;
  background: #162e28;
}
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.order {
  grid-area: order;
  min-width: 0;
}
.ticket {
  position: relative;
  background: #fffaf0;
  border: 1px solid #d9cdb4;
  border-radius: 15px;
  box-shadow: 0 2px 0 #e5dbc5;
  padding: 16px 18px 17px;
}
.ticket-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #974c32;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.015em;
}
.quote-mark {
  display: inline-block;
  color: #bb573c;
  font:
    27px/0.45 Georgia,
    serif;
  transform: translateY(4px);
}
.wave {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
  color: #bc9872;
}
.wave i {
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  height: 5px;
}
.wave i:nth-child(2),
.wave i:nth-child(4) {
  height: 10px;
}
.wave i:nth-child(3) {
  height: 14px;
}
.ticket[data-speaking='true'] .wave {
  color: var(--coral);
}
#caption {
  margin: 10px 0 0;
  font: clamp(22px, 5.9vw, 29px) / 1.37 var(--display);
  letter-spacing: -0.55px;
  overflow-wrap: anywhere;
}
#house {
  display: block;
  margin-top: 9px;
  color: var(--coral);
  font: 40px/1.14 var(--display);
  letter-spacing: -1px;
  animation: appear 0.32s ease-out;
}
@keyframes appear {
  from {
    opacity: 0.15;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  width: 100%;
  min-height: 54px;
  border: 1px solid #ac3828;
  border-bottom: 3px solid #923725;
  border-radius: 13px;
  background: var(--coral);
  color: #fff9e9;
  margin-top: 14px;
  padding: 10px 40px;
  font: 21px/1.25 var(--display);
  box-shadow: 0 3px 6px #80503917;
}
.primary:active:enabled {
  transform: translateY(1px);
  box-shadow: none;
}
.primary:disabled {
  background: #e8dec7;
  color: #655f4f;
  border-color: #cdc3aa;
  cursor: default;
}
.forward {
  position: absolute;
  right: 16px;
  font: 23px/1 system-ui;
}
.button-icon {
  position: relative;
  display: inline-block;
  flex: none;
}
.camera-icon {
  width: 19px;
  height: 14px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
}
.camera-icon:before {
  content: '';
  position: absolute;
  width: 6px;
  height: 4px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  top: -5px;
  left: 4px;
  border-radius: 3px 3px 0 0;
}
.camera-icon:after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 5px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}
.other-icon:before {
  content: '✦';
  font-size: 19px;
}
.sub-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.sub-actions button {
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  font-size: 14px;
}
.privacy,
.guide-note {
  color: var(--sub);
  font-size: 12px;
  line-height: 1.6;
}
.privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
}
.lock-icon {
  width: 10px;
  height: 8px;
  border: 1.3px solid currentColor;
  border-radius: 2px;
  position: relative;
}
.lock-icon:before {
  content: '';
  position: absolute;
  width: 4px;
  height: 5px;
  border: 1.2px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  left: 1.6px;
  top: -6px;
}
dialog {
  width: min(370px, calc(100% - 38px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  padding: 22px;
  box-shadow: 0 18px 70px #0e271b44;
}
dialog::backdrop {
  background: #18362ae0;
}
.guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h2 {
  font: 28px/1.25 var(--display);
  margin: 0;
}
#close-guide {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  background: none;
  font-size: 28px;
}
ol {
  padding-left: 23px;
}
li {
  padding-left: 3px;
  margin: 17px 0;
}
li::marker {
  color: var(--coral);
  font-weight: 700;
}
li p {
  font-size: 14px;
  line-height: 1.55;
  margin: 4px 0;
}
.guide-note {
  padding-top: 12px;
  margin-bottom: 0;
  border-top: 1px dashed var(--line);
}
@media (min-width: 800px) {
  .shell {
    width: min(100% - 84px, 1060px);
  }
  .topbar {
    height: 85px;
  }
  .brand {
    font-size: 31px;
  }
  .brand-seal {
    width: 37px;
    height: 37px;
  }
  main {
    grid-template-areas: 'stage intro' 'stage order';
    grid-template-columns: 1.22fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 23px clamp(28px, 5vw, 65px);
    align-items: start;
    max-width: none;
    padding-top: clamp(48px, 9vh, 100px);
  }
  .stage {
    height: clamp(400px, 52vh, 520px);
    border-radius: 26px;
  }
  .stage-meta {
    top: 34px;
    left: 24px;
    right: 24px;
    font-size: 14px;
  }
  .intro {
    padding-top: 15px;
  }
  h1 {
    font-size: clamp(44px, 5.4vw, 67px);
    line-height: 1.08;
    letter-spacing: -3px;
  }
  h1 em {
    display: block;
  }
  .intro p {
    font-size: 16px;
    margin-top: 12px;
  }
  .title-star {
    font-size: 26px;
    transform: translate(5px, -22px);
  }
  .ticket {
    padding: 20px 23px 21px;
  }
  .primary {
    min-height: 59px;
  }
  .privacy {
    margin-top: 16px;
  }
}
@media (max-width: 360px) {
  .shell {
    width: calc(100% - 24px);
  }
  .stage {
    height: 226px;
  }
  main {
    gap: 12px;
  }
  .intro p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
