:root {
  --bg: #0a0a0a;
  --panel: #1a1a1a;
  --ink: #ffffff;
  --muted: #cccccc;
  --line: #2c2c2c;
  --blue: #5b9bd5;
  --blue-deep: #3a6f9f;
  --blue-ink: #0a0a0a;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --gold: #c9a24d;
  --gold-soft: #e0c36a;
  --crimson: #9e1f2a;
  --crimson-deep: #6b141c;
  --pine: #2f6b3a;
  --cream: #fffaf0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); }

body {
  min-height: 100svh;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.4;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(91, 155, 213, .20), transparent 60%),
    linear-gradient(180deg, #121417 0%, var(--bg) 70%);
  color: var(--ink);
}

.wrap {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: clamp(16px, 3.2vh, 32px) var(--gutter) max(24px, env(safe-area-inset-bottom));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(10px, 2vh, 20px);
  font-family: var(--label);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

.brand img { width: 52px; height: 52px; flex: none; display: block; }

.brand small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--gold);
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(36px, 10.5vw, 52px);
  line-height: .95;
  letter-spacing: -.005em;
  margin: 0;
}

.lede {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  max-width: 36ch;
  text-wrap: balance;
}

.meta {
  margin: 10px 0 0;
  font-family: var(--label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(14px, 2.4vh, 22px);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.item-name {
  font-family: var(--label);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
}

.item-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  white-space: nowrap;
}

.buy {
  margin-top: clamp(14px, 2.4vh, 22px);
}

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.stepper button {
  appearance: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--label);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.stepper button:hover { background: #222; }
.stepper button:active { background: #2c2c2c; }
.stepper button:focus-visible,
.cta:focus-visible,
.admin-form button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.stepper button:disabled { color: #666; cursor: not-allowed; }

.stepper .qty {
  min-width: 2.4ch;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  padding: 0 6px;
}

.total {
  text-align: right;
}

.total-label {
  display: block;
  font-family: var(--label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.total-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  padding: 16px 24px;
  border: 0;
  background: var(--crimson);
  color: var(--cream);
  font-family: var(--label);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--crimson-deep);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta:hover { filter: brightness(1.08); }
.cta:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--crimson-deep); }
.cta:disabled {
  filter: none;
  cursor: not-allowed;
  background: #3a3a3a;
  color: #ddd;
  box-shadow: 0 6px 0 #1f1f1f;
}

.note, .status, .error {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.error { color: #ffb4b4; }

#checkout {
  margin-top: 16px;
  min-height: 0;
}

#checkout.is-open {
  margin-top: 18px;
  padding-top: 8px;
}

.thanks, .admin-card {
  margin-top: 8px;
  padding: 20px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.thanks h2, .admin-card h2, .admin-page h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1;
  margin: 0 0 10px;
}

.thanks p { margin: 0; color: var(--muted); }
.hidden { display: none !important; }

.admin-page .wrap { width: min(100%, 960px); }
.admin-form, .admin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
  margin: 16px 0;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 180px;
}

input {
  appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
}

.stat span {
  display: block;
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat strong {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--label);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
}
tr:last-child td { border-bottom: 0; }

.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
  min-height: 48px;
  font-size: 16px;
}

.secondary:hover { filter: none; background: #1a1a1a; }
.secondary:active:not(:disabled) { transform: none; box-shadow: none; }

@media (min-width: 700px) {
  :root { --gutter: 40px; }
  body { font-size: 18px; }
  .brand { font-size: 20px; }
  .brand img { width: 68px; height: 68px; }
  h1 { font-size: clamp(56px, 8vw, 72px); }
  .lede { font-size: 20px; }
  .cta { min-height: 72px; font-size: 26px; }
  .total-value { font-size: 40px; }
}

@media (max-width: 699px) and (max-height: 700px) {
  .brand { margin-bottom: 8px; }
  .brand img { width: 42px; height: 42px; }
  h1 { font-size: clamp(32px, 9vw, 40px); }
  .lede { font-size: 15px; margin-top: 8px; }
  .price-row, .buy { margin-top: 12px; }
  .stepper button, .stepper .qty { height: 44px; }
  .cta { min-height: 56px; font-size: 20px; box-shadow: 0 4px 0 var(--crimson-deep); }
}

.note.drinks { text-align: left; margin: 6px 0 0; }

.note.drinks + .note.drinks { margin-top: 2px; }
.note.drinks strong { color: #fff; font-weight: 600; }


/* Festive look — ticket page only. Admin keeps shared tokens above. */
html:has(.ticket-page) { background: #0a2418; color: #f7f3e8; }

.ticket-page {
  --bg: #0a2418;
  --panel: #123524;
  --ink: #f7f3e8;
  --muted: #d4ddcf;
  --line: #b8962e;
  --gold: #d4af37;
  --gold-soft: #e8c547;
  --crimson: #b3121f;
  --crimson-deep: #7a0c16;
  --pine: #0f3d2a;
  --cream: #fffaf0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(90% 45% at 50% 0%, rgba(179, 18, 31, .28), transparent 58%),
    radial-gradient(60% 40% at 100% 20%, rgba(212, 175, 55, .14), transparent 52%),
    linear-gradient(180deg, #1a5c38 0%, #0f3d2a 42%, #0a2418 100%);
}

.ticket-page .wrap {
  position: relative;
  z-index: 2;
  padding-top: clamp(8px, 1.6vh, 18px);
}

.hero {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-tree {
  flex: 0 0 auto;
  width: 38%;
  max-width: 168px;
  pointer-events: none;
}

.hero-tree img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45));
}

.ticket-page h1 {
  font-weight: 400;
  text-transform: none;
  text-align: left;
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.ticket-page h1 .h-script {
  font-family: "Great Vibes", "Palatino Linotype", cursive;
  font-weight: 400;
  font-size: 1em;
  line-height: 1.1;
  color: var(--gold-soft);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  white-space: nowrap;
}

.ticket-page h1 .h-serif {
  font-family: "Cinzel", "Palatino Linotype", "Times New Roman", serif;
  font-weight: 700;
  font-size: .68em;
  line-height: 1.12;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #e2182a;
  text-shadow: 0 1px 0 rgba(80, 0, 0, .28);
  white-space: nowrap;
}

.ticket-page .meta,
.ticket-page .brand small {
  color: var(--gold-soft);
  text-shadow: 0 0 16px rgba(212, 175, 55, .2);
}

.ticket-page .meta { margin-top: 6px; }

.ticket-page .total-value,
.ticket-page .item-price {
  color: var(--gold-soft);
}

.ticket-page .price-row {
  border-top-color: var(--gold);
  border-bottom-color: var(--gold);
}

.ticket-page .stepper {
  border-color: var(--gold);
  background: #0c2c1d;
}

.ticket-page .stepper button:hover { background: #16532e; }
.ticket-page .stepper button:active { background: #1a5c38; }

.ticket-page .cta {
  background: var(--crimson);
  color: var(--cream);
  box-shadow: 0 6px 0 var(--crimson-deep);
  border: 1px solid var(--gold);
}

.ticket-page .cta:active:not(:disabled) {
  box-shadow: 0 2px 0 var(--crimson-deep);
}

.ticket-page .cta:disabled {
  filter: none;
  cursor: not-allowed;
  background: #8a1a24;
  color: #f4e4c1;
  border-color: #c9a24d;
  box-shadow: 0 6px 0 #5c1018;
}

.ticket-page .note.drinks strong { color: var(--gold-soft); }

.snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.lights {
  position: relative;
  z-index: 3;
  height: 22px;
  pointer-events: none;
  overflow: hidden;
  background: url("/assets/lights.svg") repeat-x top center;
  background-size: auto 22px;
}

.holly {
  display: block;
  width: 44px;
  height: 16px;
  margin: 4px 0 0;
  pointer-events: none;
}

@media (max-width: 699px) {
  .ticket-page h1 { font-size: clamp(30px, 8vw, 36px); }
  .hero { gap: 8px; }
  .hero-tree { width: 34%; max-width: 128px; }
}

@media (min-width: 700px) {
  .ticket-page h1 { font-size: clamp(44px, 5.4vw, 56px); }
  .hero { gap: 16px; }
  .hero-tree { width: 38%; max-width: 200px; }
  .lights { height: 28px; background-size: auto 28px; }
  .holly { width: 52px; height: 18px; margin-top: 6px; }
  .ticket-page .cta { box-shadow: 0 6px 0 var(--crimson-deep); }
  .ticket-page .cta:disabled { box-shadow: 0 6px 0 #5c1018; }
}

@media (min-width: 1100px) {
  .hero { display: block; }
  .hero-tree {
    position: absolute;
    left: 100%;
    top: -12px;
    margin-left: 28px;
    width: min(300px, 22vw);
    max-width: none;
  }
  .ticket-page h1 { font-size: 56px; }
}

@media (max-width: 699px) and (max-height: 700px) {
  .ticket-page h1 { font-size: 30px; }
  .ticket-page .wrap { padding-top: 6px; padding-bottom: 10px; }
  .hero { gap: 6px; }
  .hero-tree { width: 34%; max-width: 120px; }
  .lights { height: 18px; background-size: auto 18px; }
  .holly { width: 36px; height: 14px; margin-top: 2px; }
  .ticket-page .lede { margin-top: 6px; }
  .ticket-page .price-row { padding: 8px 0; }
  .ticket-page .cta { box-shadow: 0 4px 0 var(--crimson-deep); }
  .ticket-page .cta:disabled { box-shadow: 0 4px 0 #5c1018; }
}

@media (prefers-reduced-motion: reduce) {
  .snow { opacity: .7; }
}
