@font-face {
  font-family: Fraunces; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0;
}
@font-face {
  font-family: Fraunces; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Fraunces; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0;
}
@font-face {
  font-family: Fraunces; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "DM Sans"; font-weight: 100 1000; font-display: swap;
  src: url("/fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0;
}
@font-face {
  font-family: "DM Sans"; font-weight: 100 1000; font-display: swap;
  src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f6f0e4;
  --card: #fff9ed;
  --ink: #2e2520;
  --quiet: #64564b;
  --red: #792c36;
  --deep: #61212b;
  --faint: #d6c5b5;
  --green: #415446;
  --serif: Fraunces, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  background: var(--paper);
  background-image: url("/paper.svg");
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button:not([disabled]), summary { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
h1, h2, p { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.site {
  width: min(calc(100% - 2 * clamp(1.25rem, 5.2vw, 5rem)), 74rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
}
.guest {
  --mat: clamp(.4rem, 1.55vw, 1.45rem);
  padding: var(--mat);
  background-color: #672933;
}
.guest .page-shell {
  position: relative;
  border: 1px solid #cd9a84;
  background: var(--paper) url("/paper.svg");
  box-shadow: 0 .2rem 1.2rem #2f11167d;
}
.guest .page-shell::before {
  content: "";
  position: absolute;
  inset: .26rem;
  border: 1px solid #b38573;
  opacity: .65;
  pointer-events: none;
}
.page-corners { position: absolute; inset: .5rem; pointer-events: none; }
.page-corners i {
  position: absolute;
  width: clamp(3.85rem, 9.6vw, 8.4rem);
  aspect-ratio: 148 / 132;
  background: url("/winter-corner.svg") center / contain no-repeat;
  opacity: .79;
}
.page-corners i:nth-child(1) { top: 0; left: 0; }
.page-corners i:nth-child(2) { top: 0; right: 0; transform: scaleX(-1); }
.page-corners i:nth-child(3) { bottom: 0; left: 0; transform: scaleY(-1); }
.page-corners i:nth-child(4) { bottom: 0; right: 0; transform: scale(-1); }
.guest .site {
  position: relative;
  width: min(calc(100% - 2 * clamp(1rem, 5.8vw, 5.2rem)), 68rem);
  min-height: calc(100vh - 2 * var(--mat) - 2px);
  min-height: calc(100svh - 2 * var(--mat) - 2px);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--faint);
}
.guest .masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 5.35rem;
  border-bottom: 3px double #c6a597;
}
.masthead-mark { display: grid; place-items: center; }
.masthead-mark .sprig { width: 5rem; height: 2.95rem; }
.brand {
  display: inline-flex; gap: .65rem; align-items: center;
  text-decoration: none; font: 600 clamp(.95rem, 2.4vw, 1.16rem)/1.2 var(--serif); color: var(--ink);
}
.brand svg { width: 1.45rem; height: 1.45rem; flex: none; color: var(--red); }
.edition, .overline, .ticket-head, .card-kicker {
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .16em;
}
.edition { color: var(--red); text-align: right; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--red);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.text-link svg { width: 1rem; height: 1rem; flex: none; }

.draw-layout, .admin-layout, .home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(2.75rem, 7vh, 5.5rem) 0;
}
.guest .draw-layout { gap: clamp(2.25rem, 6vw, 5.4rem); }
.home-layout {
  display: grid;
  align-content: center;
  padding: clamp(2rem, 7vh, 4.8rem) 0;
}
.home-grid { padding: 0; gap: clamp(1.65rem, 6vw, 5rem); }
.home-demo { font-weight: 700; margin-top: 1.15rem; min-height: 2.75rem; }
.invitation {
  position: relative;
  min-width: 0;
  padding: .9rem clamp(1rem, 3.15vw, 2rem) 1.25rem;
  background: var(--card) url("/paper.svg");
  border: 1px solid #b68a80;
  border-radius: 4px;
  box-shadow: 0 18px 37px -29px #4824198c, 0 3px 8px #4824190d;
}
.invitation-brand {
  display: flex; justify-content: center; align-items: center; flex-direction: column;
  gap: .14rem;
  padding-bottom: .55rem;
  margin-bottom: .95rem;
  border-bottom: 3px double #c7a499;
  color: var(--red);
}
.invitation-brand .card-kicker { margin-bottom: 0; }
.invitation h2 {
  font: 540 clamp(1.75rem, 3.75vw, 2.85rem)/1.03 var(--serif);
  letter-spacing: -.04em;
  color: var(--red);
  margin-bottom: .42rem;
}
.invitation p:not(.card-kicker) { color: var(--quiet); font-size: .9rem; }
.invite-fields { display: flex; gap: .5rem; align-items: stretch; }
.invite-form { margin-top: .9rem; }
.invite-form label { display: block; font-size: .82rem; font-weight: 720; margin-bottom: .32rem; }
.invite-fields input {
  min-width: 0; width: 100%; min-height: 2.85rem;
  padding: .45rem .62rem;
  border: 1px solid #bda899; border-radius: 3px;
  background: #fffdf6; color: var(--ink); font-size: 1rem;
}
.invite-fields .button { flex: none; }
.home-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: clamp(1.2rem, 5vh, 3rem);
  border-top: 1px solid var(--faint);
  padding: .85rem .3rem 0;
  color: var(--quiet);
  text-align: center;
  font-size: .83rem;
}
.home-note svg { width: .86rem; height: .86rem; flex: none; color: var(--red); }

.guest[data-mode="countdown"] {
  --mat: 0px;
  --paper: #f7f2e8;
  --ink: #302822;
  --red: #8a4135;
  --quiet: #65574d;
}
.guest[data-mode="countdown"] .page-shell { border: 0; box-shadow: none; }
[data-mode="countdown"] .page-shell::before { content: none; }
.guest[data-mode="countdown"] .site {
  width: min(67rem, calc(100% - 2 * clamp(1.35rem, 6vw, 5rem)));
  min-height: 100vh;
  min-height: 100svh;
}
.guest[data-mode="countdown"] .masthead {
  display: flex;
  min-height: clamp(3.85rem, 8.5vw, 5.6rem);
  border-bottom: 1px solid #bba89c;
}
[data-mode="countdown"] .brand { font: 680 .91rem/1.3 var(--sans); }
[data-mode="countdown"] .edition { font-size: .76rem; }
.countdown-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.75rem, 5.4vw, 5.2rem);
  align-content: center;
  align-items: center;
  padding: clamp(2.4rem, 8vh, 6rem) 0 clamp(3.3rem, 10vh, 8rem);
}
.countdown-intro h1 {
  font-size: clamp(3.45rem, 7.8vw, 7.2rem);
  margin: .75rem 0 1rem;
  line-height: .96;
}
.countdown-intro h1 em { padding-bottom: .08em; }
.countdown-date {
  color: var(--red);
  font: 720 .75rem/1.2 var(--sans);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.countdown-copy { color: var(--quiet); font-size: clamp(.98rem, 2vw, 1.11rem); max-width: 24rem; }
.countdown-block {
  width: min(100%, 24rem);
  border-top: 1px solid #bba89c;
  margin-top: 1.55rem;
  padding-top: .85rem;
}
#countdown-label { font-weight: 680; font-size: .84rem; margin-bottom: .5rem; }
.countdown-clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .32rem;
}
.countdown-clock div { position: relative; }
.countdown-clock div + div::before {
  content: "";
  position: absolute;
  left: -.62rem;
  top: .35rem;
  height: 1.45rem;
  border-left: 1px solid #bba89c;
}
.countdown-clock strong {
  display: block;
  font: 500 clamp(1.65rem, 6vw, 2.75rem)/1.04 var(--serif);
  font-variant-numeric: tabular-nums lining-nums;
}
.countdown-clock span {
  color: var(--quiet);
  font-size: clamp(.67rem, 2.5vw, .79rem);
}
.countdown-note { color: var(--quiet); font-size: .75rem; margin-top: .55rem; }
.countdown-sketch { display: block; width: 100%; height: auto; }
@media (max-width: 650px) {
  .countdown-layout {
    max-width: 28rem;
    width: 100%;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: .45rem;
    padding: clamp(2rem, 6.3vh, 3.7rem) 0 .9rem;
  }
  .countdown-intro h1 { font-size: clamp(3.35rem, 15vw, 5rem); margin-bottom: .7rem; }
  .countdown-block { margin-top: 1.25rem; }
  .countdown-sketch { justify-self: end; width: min(83%, 20rem); }
}
.intro { align-self: center; }
.overline { display: flex; align-items: center; gap: .72rem; text-transform: uppercase; color: var(--red); }
.overline > span { width: 1.8rem; height: 1px; background: var(--red); flex: none; }
.overline b { font-weight: inherit; overflow-wrap: anywhere; }
h1 {
  margin: .95rem 0 1.35rem;
  font: 490 clamp(3rem, 6.05vw, 5.65rem)/.98 var(--serif);
  letter-spacing: -.062em;
  overflow-wrap: anywhere;
}
h1 em { display: block; padding-bottom: .12em; color: var(--red); font-weight: 465; }
[data-mode="live"] h1 { font-size: clamp(2.95rem, 5.5vw, 5rem); }
.intro-copy { max-width: 26rem; font-size: clamp(.98rem, 1.65vw, 1.12rem); line-height: 1.68; color: var(--quiet); }

.ticket {
  position: relative;
  isolation: isolate;
  color: var(--red);
  background: var(--card) url("/paper.svg");
  border: 1px solid #b68a80;
  border-radius: 5px;
  box-shadow: 0 18px 37px -30px #4824198c, 0 3px 8px #4824190d;
}
.ticket-front { padding: 1.2rem 1.2rem 0; }
.ticket-head {
  min-height: 3.3rem;
  padding: 0 .45rem .7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .35rem;
  align-items: center;
  border-bottom: 3px double #c7a499;
  line-height: 1.25;
}
.ticket-head > :last-child { text-align: right; }
.crest { width: clamp(6.2rem, 18vw, 10.25rem); height: auto; display: block; }
.crest-branches { color: var(--green); }
.crest-berries { color: var(--red); }
.ticket-stage { position: relative; display: grid; min-height: 15.1rem; align-items: stretch; }
.ticket-corners { position: absolute; inset: .6rem .03rem; color: #af8073; pointer-events: none; }
.ticket-corners svg { position: absolute; width: clamp(1.25rem, 4vw, 2.5rem); height: auto; }
.ticket-corners svg:nth-child(1) { top: 0; left: 0; }
.ticket-corners svg:nth-child(2) { top: 0; right: 0; transform: scaleX(-1); }
.ticket-corners svg:nth-child(3) { bottom: 0; left: 0; transform: scaleY(-1); }
.ticket-corners svg:nth-child(4) { bottom: 0; right: 0; transform: scale(-1); }
.card {
  position: relative; display: grid; place-items: center; min-width: 0;
  text-align: center; perspective: 640px;
}
.card-inner {
  padding: 1.15rem clamp(1rem, 6%, 2.4rem) 1.35rem;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  backface-visibility: hidden;
}
.card-ornament { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: 0 0 .25rem; }
.card-ornament > svg:first-child, .card-ornament > svg:last-child { width: .77rem; height: .77rem; color: #a27852; }
.card-ornament > svg:first-child { transform: translateY(.42rem); }
.card-ornament > svg:last-child { transform: translateY(-.48rem); }
.sprig { width: 6.45rem; height: 3.8rem; color: var(--green); }
.berries { color: var(--red); }
.paper-seal { display: none; width: 2.65rem; height: 2.65rem; }
.card-kicker { line-height: 1.45; margin-bottom: .45rem; }
.card h2 {
  font: 520 clamp(2rem, 4.25vw, 3.45rem)/1.01 var(--serif);
  letter-spacing: -.044em;
  overflow-wrap: anywhere;
  max-width: 100%;
  padding: .025em .02em .11em;
}
.card-caption { font-size: .82rem; color: var(--quiet); padding-top: .4rem; }
.ticket[data-state="ready"] .card-inner {
  width: min(88%, 19rem);
  padding: .85rem .65rem 1rem;
  border: 3px double #c4a091;
  background: #f8ecda url("/paper.svg");
  box-shadow: 0 .6rem 1.35rem -.85rem #5937257a;
}
.ticket[data-state="ready"] h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
.ticket[data-state="ready"] .sprig { display: none; }
.ticket[data-state="ready"] .paper-seal { display: block; }
.ticket[data-state="revealed"] h2 { color: var(--deep); }
.ticket[data-state="revealed"] .card-ornament > svg:first-child { animation: ink-left .6s .14s both; }
.ticket[data-state="revealed"] .card-ornament > svg:last-child { animation: ink-right .6s .14s both; }
.ticket[data-state="error"] h2 { font-size: clamp(1.65rem, 3.6vw, 2.55rem); }
.ticket-stub {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding: 1.1rem .85rem .95rem;
  background: linear-gradient(#792c3604, transparent);
  border-top: 1px dashed #bb9185;
}
.ticket-stub::before, .ticket-stub::after {
  content: "";
  position: absolute;
  top: -.48rem;
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--paper) url("/paper.svg");
  pointer-events: none;
}
.ticket-stub::before { left: -.5rem; border-right-color: #b68a80; transform: rotate(-45deg); }
.ticket-stub::after { right: -.5rem; border-left-color: #b68a80; transform: rotate(-45deg); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border: 1px solid var(--red);
  border-radius: 3px;
  min-height: 2.85rem;
  padding: .55rem 1.05rem;
  font-weight: 700;
  font-size: .91rem;
  color: var(--card);
  background: var(--red);
  text-decoration: none;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease;
}
.button:hover:not(:disabled, [aria-disabled="true"]) { background: var(--deep); border-color: var(--deep); }
.button:disabled, .button[aria-disabled="true"] { cursor: default; opacity: .63; }
.button svg { width: 1.13rem; height: 1.13rem; flex: none; }
#ticket-action svg:last-child { display: none; }
[data-mode="live"] .ticket[data-state="revealed"] #ticket-action svg:nth-child(2) { display: none; }
[data-mode="live"] .ticket[data-state="revealed"] #ticket-action svg:last-child { display: block; }
.ticket-note {
  color: var(--quiet); max-width: 34em; text-align: center; font-size: .77rem;
}
.ticket-note[data-error="true"], .invitation .form-note[data-error="true"] { color: var(--deep); font-weight: 700; }
.noscript { margin-top: 1rem; text-align: center; color: var(--quiet); }

.wheel {
  --reel-row: 3.35rem;
  --spin-time: 3.35s;
  position: absolute;
  inset: 50% 0 auto; transform: translateY(-50%); margin: 0 auto;
  width: min(89%, 20.5rem);
  padding: .38rem;
  display: none;
  background: #f0e1cb;
  border: 3px double #ba8a7e;
  border-radius: 3px;
  box-shadow: 0 .45rem 1.15rem -.7rem #65362f7d;
}
.wheel-window {
  position: relative;
  height: var(--reel-row);
  overflow: hidden;
  background: #fff5e6 url("/paper.svg");
  outline: 1px solid #cbab9d;
  box-shadow: inset 0 .3rem .55rem #50312820, inset 0 -.3rem .55rem #50312820;
}
.wheel-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#754f374d, #f4e5d014 29%, #fff4e237 49% 51%, #f4e5d014 71%, #754f3742);
  pointer-events: none;
}
.wheel-row {
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  place-items: center;
  gap: .42rem;
  height: var(--reel-row);
  padding: 0 1.3rem;
  border-bottom: 1px dashed #c49b8980;
  font: 570 clamp(.96rem, 3.6vw, 1.42rem)/1 var(--serif);
  white-space: nowrap;
}
.wheel-row:nth-child(even) { background: #ebd7bd42; }
.wheel-row:nth-child(4n + 2) { color: var(--green); }
.wheel-row:last-child { color: var(--deep); background: #f5e4c8; }
.wheel-row span { color: #a0744c; font: 600 .8rem/1 var(--sans); }
.wheel-row b { font-weight: inherit; }
.wheel-pointers {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.wheel-pointers::before, .wheel-pointers::after {
  content: "";
  width: .7rem; height: .9rem;
  background: var(--red);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.wheel-pointers::after { transform: scaleX(-1); }
.ticket[data-state="spinning"] .wheel { display: block; }
.ticket[data-state="spinning"] .card { visibility: hidden; }
.ticket[data-state="spinning"] .wheel-tape { will-change: transform; animation: roll var(--spin-time) linear both; }
.ticket[data-state="spinning"] .wheel-pointers { animation: lock var(--spin-time) ease-out both; }
.ticket[data-state="ready"] .card { animation: settle .46s both; }
@keyframes roll {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(.5,0,.82,.6); }
  20% { transform: translateY(calc(-7 * var(--reel-row))); }
  59% { transform: translateY(calc(-36 * var(--reel-row))); animation-timing-function: cubic-bezier(.16,.59,.35,1); }
  91% { transform: translateY(calc(-47.94 * var(--reel-row))); animation-timing-function: ease-out; }
  96% { transform: translateY(calc(-48.075 * var(--reel-row))); animation-timing-function: ease-out; }
  100% { transform: translateY(calc(-48 * var(--reel-row))); }
}
@keyframes lock {
  0%, 86% { opacity: .7; }
  94% { opacity: 1; transform: scaleX(.96); }
  100% { opacity: 1; transform: scaleX(1); }
}
@keyframes settle {
  0% { opacity: 0; transform: translateY(-11px) rotate(-1.6deg) scale(.96); }
  65% { opacity: 1; transform: translateY(2px) rotate(.55deg) scale(1.008); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes ink-left {
  0% { opacity: 0; transform: translate(.85rem, .4rem) scale(.4); }
  55% { opacity: 1; transform: translate(-.15rem, .32rem) scale(1.25); }
  100% { opacity: 1; transform: translateY(.42rem); }
}
@keyframes ink-right {
  0% { opacity: 0; transform: translate(-.85rem, -.25rem) scale(.4); }
  55% { opacity: 1; transform: translate(.15rem, -.6rem) scale(1.25); }
  100% { opacity: 1; transform: translateY(-.48rem); }
}

.admin-layout { align-items: start; }
.admin-intro { padding-top: .65rem; }
.admin-intro .text-link { margin-top: 1.35rem; }
.admin-panel {
  min-width: 0;
  padding: clamp(1rem, 3.1vw, 2rem);
  border: 1px solid #c7a499;
  border-radius: 5px;
  background: var(--card) url("/paper.svg");
}
.admin-panel h2 {
  margin: 0 0 1rem;
  color: var(--red);
  font: 550 clamp(1.7rem, 3.5vw, 2.4rem)/1.1 var(--serif);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.admin-panel label { display: block; margin: .85rem 0 .32rem; font-weight: 700; font-size: .86rem; }
.admin-panel small { font-weight: 400; color: var(--quiet); }
.admin-panel input:not([type="checkbox"]), .admin-panel textarea, .admin-panel select {
  display: block; width: 100%; min-width: 0; border: 1px solid #bda899; border-radius: 3px;
  padding: .45rem .55rem; min-height: 2.65rem; color: var(--ink); background: #fffdf6;
}
.admin-panel textarea { resize: vertical; }
.admin-panel .button { margin-top: .95rem; }
.admin-panel details { margin: .95rem 0 0; padding: .55rem 0; border-block: 1px solid var(--faint); }
.admin-panel summary { font-size: .92rem; font-weight: 700; }
.rule-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .58rem; }
.rule-fields div { min-width: 0; }
.admin-panel .checkbox { display: flex; gap: .45rem; align-items: center; font-weight: 500; }
.checkbox input { accent-color: var(--red); }
.admin-panel .plain { color: var(--red); background: transparent; }
.admin-panel .plain:hover:not(:disabled) { color: var(--card); }
.help, .form-note { margin: .62rem 0 0; color: var(--quiet); font-size: .86rem; }
.form-note:not(:empty) { margin: 0 0 .95rem; }
.form-note[data-error="true"] { color: var(--deep); font-weight: 700; }
.dashboard-tools { margin-block: .9rem .55rem; }
.rules, .people { margin: .55rem 0 0; padding: 0; list-style: none; }
.rules li, .people li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .4rem .75rem; border-top: 1px solid var(--faint); padding: .55rem 0;
  overflow-wrap: anywhere;
}
.rules button, .dashboard-tools, .signout, .people button { font-size: .85rem; }
.people strong { display: block; }
.people button, .rules button { min-height: 2rem; }
.signout { margin: 1rem 0 0; }
.admin-panel dialog {
  width: min(calc(100% - 2rem), 27rem);
  padding: 1.3rem;
  color: var(--ink);
  background: var(--card) url("/paper.svg");
  border: 1px solid #b68a80;
  border-radius: 5px;
  box-shadow: 0 18px 45px #36211944;
}
.admin-panel dialog::backdrop { background: #2e252065; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }

@media (max-width: 760px) {
  .draw-layout, .admin-layout, .home-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .admin-layout { max-width: 36rem; width: 100%; margin: 0 auto; }
  .draw-layout, .home-layout { max-width: 32rem; width: 100%; margin: 0 auto; }
  .guest .draw-layout { gap: 1.45rem; padding: 1.75rem 0 2.45rem; align-content: center; }
  .guest .home-layout { padding: 1.85rem 0 2.55rem; }
  .masthead { min-height: 4rem; }
  .guest .masthead { min-height: 3.85rem; }
  h1, [data-mode="live"] h1 { font-size: clamp(2.75rem, 10vw, 4.35rem); }
  h1 { margin: .7rem 0 .78rem; }
  .ticket-stage { min-height: 12.3rem; }
  .ticket-front { padding: .9rem .85rem 0; }
  .ticket-head { padding-bottom: .55rem; }
}
@media (max-width: 500px) {
  .guest { --mat: .375rem; }
  .guest .masthead { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
  .masthead-mark { display: none; }
  .page-corners { inset: .47rem; }
  .page-corners i { opacity: .5; }
  .guest .intro { padding-inline: .3rem; }
  .guest .overline { letter-spacing: .125em; gap: .5rem; }
  .guest .overline > span { width: 1.15rem; }
  .guest .intro-copy { font-size: .94rem; line-height: 1.55; }
  .guest .ticket-stage { min-height: 11.75rem; }
  .guest .ticket-stub { padding: .85rem .65rem .8rem; }
  .invite-fields { flex-direction: column; }
  .invite-fields .button { align-self: start; }
  .invitation h2 { font-size: clamp(1.48rem, 7vw, 2.15rem); }
  .home-demo { margin-top: .62rem; }
}
@media (max-width: 365px) {
  .edition { font-size: .58rem; }
  .ticket-head { padding-inline: .1rem; font-size: .6rem; }
  .rule-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
