:root {
  color-scheme: dark;
  --ink: #f1f7ee;
  --muted: #bad2c3;
  --border: #42735d;
  --field: #102f24;
  --mint: #bceac9;
  --green: #103a29;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #0b291f;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 30%, #20543e 0, transparent 51%),
    radial-gradient(ellipse at 94% 12%, #1b4935 0, transparent 47%),
    linear-gradient(155deg, #0b2b20, #081d16 78%);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.snow { position: fixed; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.snow span {
  position: absolute;
  top: -2rem;
  left: var(--left);
  color: #ebfff2;
  font-size: var(--size);
  opacity: .46;
  text-shadow: 0 0 8px #e4fff6a3;
  animation: snowfall var(--duration) var(--delay) linear infinite;
}
@keyframes snowfall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: .46; }
  87% { opacity: .46; }
  100% { transform: translate3d(var(--drift), calc(100dvh + 4rem), 0) rotate(150deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .snow { display: none; }
}
.topbar { border-bottom: 1px solid #78ae8c40; background: #103327; }
.top-inner { max-width: 1200px; margin: auto; min-height: 72px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand, .top-note { display: flex; align-items: center; gap: 10px; }
.brand { font-weight: 700; letter-spacing: -.025em; font-size: 1.15rem; }
.brand-mark, .tile { display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--mint); width: 42px; height: 42px; flex: none; }
.brand-mark { background: #2a5b45; border: 1px solid #62987a; color: #f6d79a; width: 36px; height: 36px; }
.top-note { color: var(--muted); font-size: .875rem; font-weight: 600; }
.top-note .icon { width: 1rem; height: 1rem; }
.shell { max-width: 1200px; margin: auto; padding: 32px 32px 32px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 26px; align-items: start; }
.hero {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  min-height: 590px;
  padding: 40px 36px 28px;
  border: 1px solid #5d8768;
  border-radius: 24px;
  color: #fff8df;
  background: radial-gradient(ellipse at 54% 68%, #397853 0, #204d38 50%, #13392a 79%);
  box-shadow: 0 16px 36px #041a1266, inset 0 0 42px #a7d6ad14;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .24; background-image: radial-gradient(#f2e5b2 0.7px, transparent 0.9px); background-size: 23px 23px; mask-image: linear-gradient(transparent 10%, black 65%, transparent); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #efce96; letter-spacing: .15em; font-weight: 700; font-size: .8rem; margin: 0 0 22px; }
.eyebrow .icon { height: 1rem; width: 1rem; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; margin: 0; }
h1 { font-size: clamp(2.65rem, 4.6vw, 4.15rem); line-height: 1.02; font-weight: 600; letter-spacing: -.065em; }
h1 em { color: #f2ce91; font-weight: 600; }
.hero-intro { color: #e0e9df; max-width: 275px; margin: 22px 0 0; line-height: 1.65; }
.art { position: relative; min-height: 265px; max-width: 350px; width: 100%; margin: 9px auto 2px; flex: 1; }
.line { position: absolute; left: 50%; top: 56%; width: 83%; height: 42%; border: 1px solid #ddbd775e; border-radius: 50%; transform: translate(-50%, -50%) rotate(-29deg); }
.orbit-two { transform: translate(-50%, -50%) rotate(26deg); width: 93%; }
.parcel { --paper: #a9323e; --paper-dark: #671c26; --ribbon: #efc384; --shine: #ffe1a5; position: absolute; top: 29%; left: 23%; width: 49%; height: 61%; transform: rotate(-12deg); filter: drop-shadow(6px 13px 10px #092418aa); }
.parcel.small { --paper: #ebc282; --paper-dark: #a6613a; --ribbon: #9e313b; --shine: #b64146; top: 48%; left: 60%; width: 31%; height: 39%; transform: rotate(14deg); }
.box, .lid { position: absolute; background: linear-gradient(90deg, transparent 42%, var(--ribbon) 42% 57%, transparent 57%), repeating-linear-gradient(125deg, #ffffff00 0 8px, #ffffff12 8px 9px), linear-gradient(150deg, var(--paper) 25%, var(--paper-dark)); }
.box { inset: 36% 5% 5%; border-radius: 4px 4px 10px 10px; }
.lid { inset: 24% 0 auto; z-index: 1; height: 20%; border-radius: 5px; box-shadow: 0 4px 5px #321b2240, inset 0 1px #ffffff54; }
.bow { position: absolute; width: 35%; height: 29%; top: 1%; border: solid clamp(5px, .75vw, 9px) var(--ribbon); box-shadow: inset 0 1px var(--shine), 0 -1px var(--shine); }
.bow.left { left: 16%; border-radius: 55% 65% 25% 55%; transform: rotate(22deg); }
.bow.right { right: 16%; border-radius: 65% 55% 55% 25%; transform: rotate(-22deg); }
.knot { position: absolute; top: 19%; left: 43%; width: 14%; height: 12%; border-radius: 30%; background: var(--shine); z-index: 2; }
.star, .flake { position: absolute; color: #f3cd87; }
.star-one { left: 11%; top: 23%; font-size: 29px; }.star-two { right: 14%; top: 12%; font-size: 41px; }.star-three { right: 1%; top: 60%; font-size: 21px; }
.flake-one { left: 7%; top: 62%; font-size: 36px; }.flake-two { right: 23%; bottom: 1%; font-size: 30px; }
.form { display: grid; gap: 18px; min-width: 0; }
.card { padding: 25px 26px; background: linear-gradient(135deg, #1c4936, #14382a); border: 1px solid var(--border); border-radius: 19px; box-shadow: 0 12px 30px #051c1352; min-width: 0; }
.tile { color: #f5d99d; background: #315d46; border: 1px solid #5b8467; }
.card-header { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; }
.card-header h2, dialog h2 { font-size: 1.58rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
.card-header p { color: var(--muted); font-size: .9rem; line-height: 1.4; margin: 5px 0 0; }
.fields { display: grid; align-items: end; gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: block; font-size: .9rem; font-weight: 700; min-width: 0; }
small { color: var(--muted); margin-left: 4px; font-size: .78rem; font-weight: 500; }
input, textarea { width: 100%; min-width: 0; margin-top: 6px; padding: 10px 12px; border: 1px solid #548168; border-radius: 9px; background: var(--field); color: var(--ink); font-size: 1rem; font-weight: 400; }
input { height: 43px; }
input::placeholder, textarea::placeholder { color: #aec9b8; opacity: 1; }
textarea { display: block; min-height: 79px; resize: vertical; }
:focus-visible { outline: 2px solid #f0d594; outline-offset: 2px; }
.currency { position: relative; display: block; }
.currency > span { position: absolute; top: 18px; left: 13px; color: var(--muted); font-weight: 600; }
.currency input { padding-left: 40px; }
.description { margin-top: 16px; }
.people-header { margin-bottom: 18px; }
.count { margin-left: auto; width: 85px; flex: none; }
.count input { margin-top: 4px; height: 36px; padding: 5px 9px; }
.participants { display: grid; gap: 12px; }
.participant { display: grid; grid-template-columns: 32px minmax(0, .88fr) minmax(0, 1.12fr) auto; align-items: end; gap: 9px; }
.participant-number { align-self: end; margin-bottom: 6px; display: grid; place-items: center; height: 31px; border-radius: 8px; font-weight: 700; font-size: .8rem; background: #2b5741; color: var(--ink); }
.add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 12px; background: #214d39; color: var(--ink); border: 1px solid #6d9a7d; border-radius: 9px; font-size: .875rem; font-weight: 700; }
.add:hover { background: #2c6249; }
.add span { font-size: 1.2rem; line-height: 1; }
#add { margin-top: 15px; }
.remove { height: 43px; width: 34px; font-size: 1.3rem; padding: 0; border: 0; background: transparent; color: var(--muted); border-radius: 7px; }
.remove:hover:enabled { background: #583337; color: #ffe3e3; }
button:disabled { cursor: default; opacity: .48; }
.actions { display: grid; gap: 10px; }
.primary { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--mint); border: 1px solid #dbf6e0; color: var(--green); min-height: 49px; border-radius: 10px; font-weight: 700; padding: 10px 17px; }
.primary:hover:enabled { background: #d5f4db; }
#status { color: var(--ink); background: #204b35; border: 1px solid #649376; padding: 12px 15px; border-radius: 10px; margin: 0; line-height: 1.5; }
#status.error { color: #ffe3e3; background: #542e33; border-color: #ae777e; }
.result-actions, .dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-actions:has(> :not([hidden])) { margin-bottom: 6px; }
dialog { border: 1px solid #649376; border-radius: 18px; color: var(--ink); background: #1c4533; padding: 26px; max-width: min(425px, calc(100vw - 32px)); }
dialog::backdrop { background: #0e2d22a8; }
dialog p { line-height: 1.55; }
.dialog-actions { justify-content: flex-end; }
.ticket-page {
  display: grid;
  place-items: center;
  padding: 20px;
}
.ticket {
  width: min(100%, 560px);
  padding: clamp(22px, 6vw, 45px);
  text-align: center;
}
.ticket-icon { width: 48px; height: 48px; margin: 0 auto 18px; }
.ticket h1 { font-size: clamp(1.95rem, 6vw, 3rem); line-height: 1.12; }
.ticket-content {
  margin-top: 22px;
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--field);
}
.ticket-note { margin: 0; color: var(--muted); line-height: 1.5; }
.ticket-name {
  margin: 8px 0 16px;
  overflow-wrap: anywhere;
  color: #f5d99d;
  font: 700 clamp(1.8rem, 8vw, 3.5rem) / 1.1 Georgia, serif;
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 17px; padding-inline: 24px; }
  .hero { padding: 34px 25px 23px; }
  .card { padding: 20px; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .hero {
    position: relative;
    top: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(100px, 36%, 200px);
    align-items: center;
    gap: 10px;
    padding: 22px;
  }
  .hero-text { grid-column: 1; grid-row: 1; }
  .hero-intro { grid-column: 1 / -1; margin: 0; max-width: 38ch; }
  .art { grid-column: 2; grid-row: 1; height: clamp(104px, 28vw, 162px); min-height: 0; margin: 0; }
  .eyebrow { margin-bottom: 12px; }
  h1 { font-size: clamp(1.8rem, 8.1vw, 3.55rem); }
}
@media (max-width: 600px) {
  .top-inner { padding-inline: 16px; min-height: 58px; gap: 10px; }
  .brand { font-size: 1rem; gap: 8px; white-space: nowrap; }
  .brand-mark { width: 32px; height: 32px; }
  .top-note { font-size: .75rem; gap: 5px; line-height: 1.25; text-align: end; }
  .shell { gap: 14px; padding: 14px 14px 26px; }
  .hero { padding: 17px; grid-template-columns: minmax(0, 1fr) clamp(92px, 34%, 150px); }
  .eyebrow { font-size: .7rem; letter-spacing: .11em; gap: 6px; }
  .eyebrow .icon { width: .8rem; height: .8rem; }
  .hero-intro { font-size: .9375rem; line-height: 1.45; }
  .star-one, .star-two, .star-three { font-size: clamp(15px, 4vw, 25px); }
  .form { gap: 14px; }
  .card { padding: 15px; }
  .card-header { gap: 9px; margin-bottom: 15px; }
  .card-header h2 { font-size: 1.38rem; }
  .tile { width: 36px; height: 36px; }
  input { height: 46px; }
  .people-header { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .count {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: auto;
    margin: 0;
    padding-top: 4px;
  }
  .count input { width: 82px; height: 44px; margin-top: 0; }
  .participants { gap: 0; }
  .participant {
    grid-template-columns: 28px minmax(0, 1fr) 44px;
    grid-template-areas: "number name remove" "email email email";
    gap: 8px;
    padding-block: 11px;
    border-top: 1px solid var(--border);
  }
  .participant-number { grid-area: number; margin-bottom: 7px; }
  .participant label:first-of-type { grid-area: name; }
  .participant label:nth-of-type(2) { grid-area: email; }
  .remove { grid-area: remove; width: 44px; height: 46px; border: 1px solid var(--border); background: var(--field); }
  .add { min-height: 44px; }
  #add { width: 100%; margin-top: 3px; }
  .primary { min-height: 50px; }
  dialog { margin: auto; padding: 18px; max-block-size: calc(100dvh - 32px); overflow: auto; }
  .dialog-actions > button { flex: 1 1 auto; }
}
@media (max-width: 350px) {
  .hero { grid-template-columns: minmax(0, 1fr) 82px; }
  .top-note .icon { display: none; }
  h1 { font-size: 1.7rem; }
  .budget { grid-template-columns: minmax(0, 1fr); }
}
