/* The ticket website: its own simple look, built for a phone first. */
:root {
  --bg: #f6f3ee; --surface: #ffffff; --text: #1d1a16; --muted: #6d665c; --line: #e6e0d6;
  --brand: #b4462b; --brand-dark: #8f3520; --good: #1f7a4d; --warn: #9a6400; --bad: #b23224;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141210; --surface: #1e1b18; --text: #f3efe9; --muted: #aaa196; --line: #35302a; --brand: #e0754f; --brand-dark: #f08b67; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.tk-top { display: flex; align-items: baseline; gap: 0.8rem; padding: 1rem 16px; max-width: 960px; margin: 0 auto; }
.tk-brand { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.tk-tag { color: var(--muted); }
.tk-main { max-width: 960px; margin: 0 auto; padding: 0 16px 2rem; }
.tk-foot { max-width: 960px; margin: 0 auto; padding: 1rem 16px 2rem; color: var(--muted); font-size: 0.85rem; }
.tk-loading, .tk-empty { color: var(--muted); padding: 2rem 0; text-align: center; }

/* What's on: a card for each event, evenly across the row. */
.tk-sites { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.tk-chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 0.4rem 0.9rem; font: inherit; font-size: 0.9rem; cursor: pointer; text-decoration: none; }
.tk-chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.tk-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; }
.tk-card:hover { border-color: var(--brand); }
.tk-pic { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand), #d9a441); display: grid; place-items: center; color: #fff; font-size: 2.4rem; font-weight: 800; }
.tk-pic img { width: 100%; height: 100%; object-fit: cover; }
.tk-card-body { padding: 0.9rem 1rem 1rem; display: grid; gap: 0.25rem; flex: 1; }
.tk-card h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.tk-when { font-weight: 600; color: var(--brand-dark); }
.tk-where { color: var(--muted); font-size: 0.92rem; }
.tk-price { margin-top: auto; padding-top: 0.4rem; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.tk-badge { font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; background: color-mix(in srgb, var(--warn) 15%, var(--surface)); color: var(--warn); }
.tk-badge.is-out { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); color: var(--bad); }

/* One event: the picture and details, then choosing tickets. */
.tk-back { display: inline-block; margin: 0 0 0.8rem; }
.tk-event { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.tk-event .tk-pic { border-radius: var(--radius); overflow: hidden; }
.tk-event h1 { margin: 0.8rem 0 0.2rem; font-size: 1.8rem; line-height: 1.2; letter-spacing: -0.01em; }
.tk-desc { white-space: pre-line; }
.tk-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; position: sticky; top: 1rem; }
.tk-box h2 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.tk-type { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.tk-type small { display: block; color: var(--muted); }
.tk-step { display: inline-flex; align-items: center; gap: 0.35rem; }
.tk-step button { width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.tk-step button:disabled { opacity: 0.4; cursor: default; }
.tk-step output { min-width: 1.6rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tk-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; margin: 0.8rem 0; }
.tk-field { display: grid; gap: 0.2rem; margin: 0 0 0.7rem; font-weight: 600; font-size: 0.92rem; }
.tk-field input { font: inherit; font-weight: 400; padding: 0.7rem 0.8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.tk-btn { display: block; width: 100%; padding: 0.9rem 1rem; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-align: center; text-decoration: none; }
.tk-btn:disabled { opacity: 0.55; cursor: default; }
.tk-btn.is-plain { background: transparent; color: var(--brand); border: 1px solid var(--line); margin-top: 0.6rem; }
.tk-note { color: var(--muted); font-size: 0.85rem; margin: 0.6rem 0 0; }
.tk-error { color: var(--bad); font-weight: 600; margin: 0.5rem 0; }
@media (max-width: 760px) { .tk-event { grid-template-columns: minmax(0, 1fr); } .tk-box { position: static; } .tk-event h1 { font-size: 1.5rem; } }

/* Their booking. */
.tk-booked { max-width: 560px; margin: 1rem auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; }
.tk-booked h1 { margin: 0.2rem 0; font-size: 1.6rem; }
.tk-big { font-size: 2.6rem; line-height: 1; }
.tk-ref { display: inline-block; margin: 0.6rem 0; padding: 0.5rem 1rem; border-radius: 12px; background: var(--bg); font-size: 1.5rem; font-weight: 800; letter-spacing: 0.08em; }
.tk-booked dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 1rem; text-align: left; margin: 1rem 0 0; }
.tk-booked dt { color: var(--muted); }
.tk-booked dd { margin: 0; font-weight: 600; }

/* Our logos across the top (the same strip as Atlas). --h is each logo's height in the artwork, so they keep their balance. */
.tk-brands { display: flex; align-items: center; justify-content: space-evenly; gap: 1rem; padding: 0.5rem 16px; background: #fff; border-bottom: 1px solid #e4ddd3; }
.tk-brands img { display: block; height: calc(var(--h) * 0.45px); width: auto; max-width: 24%; object-fit: contain; }
@media (max-width: 600px) { .tk-brands { gap: 0.5rem; padding: 0.4rem 12px; } .tk-brands img { height: calc(var(--h) * 0.26px); } }

/* An event's video, under its description. */
.tk-video { display: block; width: 100%; max-height: 70vh; margin: 1rem 0; border-radius: 14px; background: #000; }
