:root {
  --bg: #f6f1e7;
  --panel: rgba(255, 252, 246, 0.94);
  --panel-strong: #fffaf2;
  --text: #243a31;
  --muted: #726a5f;
  --line: #e7ddcb;
  --green: #315f49;
  --green-deep: #224436;
  --gold: #d8a441;
  --clay: #c97a55;
  --selected: #3b82f6;
  --reserved: #9c6b2f;
  --sold: #9b3644;
  --shadow: 0 10px 28px rgba(56, 45, 28, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #fbf8f1 0%, #f4efe5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 56%, transparent 100%);
  opacity: 0.25;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(231, 221, 203, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border-radius: 20px;
}

.hero {
  padding: 32px;
  margin-bottom: 20px;
}

.banner {
  padding: 14px;
  margin-bottom: 16px;
  background: #fff;
  overflow: hidden;
  border-radius: 18px;
}

.branding-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(145deg, #2f6b52, #386f5a);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark span:first-child {
  position: absolute;
  inset: 12px 13px 22px 13px;
  border-radius: 999px 999px 16px 16px;
  background: rgba(255, 250, 242, 0.95);
}

.brand-mark span:last-child {
  position: absolute;
  left: 21px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d8a441;
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

h1, h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.1rem);
}

h2 {
  font-size: 1.28rem;
}

.lede {
  max-width: 66ch;
  color: var(--muted);
  line-height: 1.7;
  margin: 16px 0 0;
  font-size: 1.04rem;
}

.hero-note {
  margin: 14px 0 0;
  color: var(--green-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hero-metrics > div,
.summary-list > div,
.status-box,
.order-summary {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 221, 203, 0.9);
  border-radius: 16px;
}

.hero-metrics > div {
  padding: 14px 16px;
}

.hero-metrics strong,
.summary-list strong {
  display: block;
  font-size: 1.35rem;
}

.hero-metrics span,
.summary-list span,
.microcopy,
.status,
.status-box p,
.order-summary p {
  color: var(--muted);
}

.summary-list + .microcopy {
  margin-top: 16px;
}

.hold-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.board-card,
.summary-card,
.state-card {
  padding: 26px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ghost {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--green-deep);
  border: 1px solid rgba(47, 107, 82, 0.18);
  text-decoration: none;
}

.primary {
  width: 100%;
  padding: 14px 18px;
  color: white;
  background: linear-gradient(135deg, #315f49, #3c725d);
  box-shadow: 0 8px 16px rgba(47, 107, 82, 0.18);
}

.ghost:hover {
  transform: translateY(-1px);
}

.primary:hover {
  transform: translateY(-1px);
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.form span {
  font-size: 0.96rem;
}

.form input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
}

.form input:focus {
  outline: 2px solid rgba(47, 107, 82, 0.2);
  border-color: rgba(47, 107, 82, 0.5);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.available { background: #dbe7d8; border: 1px solid #bdd0bb; }
.dot.selected { background: var(--selected); }
.dot.reserved { background: var(--reserved); }
.dot.sold { background: var(--sold); }

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.ticket {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  background: #f1f5ef;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, opacity 140ms ease;
}

.ticket:hover:not(:disabled) {
  transform: translateY(-1px);
}

.ticket.available {
  background: linear-gradient(180deg, #fcfdf9, #eef4eb);
}

.ticket.selected {
  background: linear-gradient(180deg, #5a95e5, #356fd2);
  color: white;
}

.ticket.reserved {
  background: linear-gradient(180deg, #d6b07b, #bf8442);
  color: #fff;
}

.ticket.sold {
  background: linear-gradient(180deg, #d67684, #b54455);
  color: white;
}

.ticket:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.summary-card {
  position: sticky;
  top: 18px;
  align-self: start;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.summary-list > div {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.microcopy {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 14px 0 0;
}

.status {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-weight: 700;
}

.status[data-tone="warning"] {
  color: #8a5d1b;
}

.status[data-tone="error"] {
  color: #9b3644;
}

.status[data-tone="success"] {
  color: var(--green);
}

.status-box {
  padding: 18px 18px;
  margin-top: 18px;
}

.status-box strong {
  display: block;
  font-size: 1.1rem;
}

.status-box p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.order-summary {
  margin-top: 18px;
  padding: 16px 18px;
}

.order-summary dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.order-summary dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.order-summary dd {
  margin: 4px 0 0;
  font-weight: 800;
}

@media (max-width: 980px) {
  .board-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

  .ticket-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1160px);
    padding-top: 10px;
  }

  .banner {
    padding: 10px;
    border-radius: 16px;
  }

  .hero,
  .board-card,
  .summary-card,
  .state-card {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    align-items: flex-start;
    gap: 12px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand-mark span:first-child {
    inset: 10px 10px 18px 10px;
  }

  .brand-mark span:last-child {
    left: 16px;
    top: 19px;
    width: 10px;
    height: 10px;
  }

  h1 {
    font-size: clamp(1.7rem, 7.6vw, 2.45rem);
  }

  h2 {
    font-size: 1.08rem;
  }

  .lede {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero-note {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-metrics {
    gap: 8px;
  }

  .hero-metrics > div,
  .summary-list > div {
    padding: 11px 12px;
  }

  .hero-metrics strong,
  .summary-list strong {
    font-size: 1.08rem;
  }

  .hero-metrics span,
  .summary-list span,
  .microcopy,
  .status,
  .status-box p,
  .order-summary p,
  .legend,
  .form span {
    font-size: 0.84rem;
  }

  .ticket-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .ticket {
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .ghost,
  .primary {
    padding: 11px 14px;
    font-size: 0.95rem;
  }

  .form input {
    padding: 12px 13px;
  }

  .order-summary dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ticket-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
