:root {
  --bg: #0d0b0b;
  --card: #171313;
  --line: #2c2424;
  --text: #f3ecec;
  --muted: #9a8c8c;
  --accent: #d4232f;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}
.wrap { max-width: 460px; margin: 0 auto; padding: 48px 16px 32px; }
header { text-align: center; margin-bottom: 28px; }
.eyebrow { color: var(--accent); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin: 0; }
h1 { font-size: 44px; line-height: 1; margin: 10px 0 6px; letter-spacing: -.02em; }
.sub { color: var(--muted); margin: 0; }
.left { margin-top: 22px; }
.left p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.left p b { color: var(--text); }
.dots { display: flex; gap: 8px; justify-content: center; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.dots i.taken { background: var(--line); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
fieldset { border: 0; margin: 0; padding: 0; }
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pkg-wide { grid-column: 1 / -1; }
.pkg .tag { color: var(--accent); font-weight: 600; }
.pkg input:disabled + span { opacity: .4; }
.pkg input { position: absolute; opacity: 0; }
.pkg span {
  display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.pkg b { font-size: 22px; }
.pkg em { font-style: normal; color: var(--muted); font-size: 13px; }
.pkg input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pkg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }

.consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
small, .fine { font-size: 11px; line-height: 1.5; color: var(--muted); }
small a, footer a { color: var(--muted); }
.fee { color: var(--text); }

button {
  font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0;
  border-radius: 12px; padding: 14px; cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
.err { color: #ff6b6b; font-size: 13px; margin: 0; min-height: 1em; }
.err:empty { display: none; }
.summary { margin: 0; font-size: 14px; }
#card-element { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.done { text-align: center; }
.done h2 { margin: 6px 0 0; font-size: 28px; }
.done p { margin: 0 0 6px; color: var(--muted); }
.soldout { text-align: center; color: var(--muted); }
footer { text-align: center; margin-top: 24px; font-size: 12px; }

/* Logo font: drop the licensed Sprite Graffiti file into public/logo.ttf */
@font-face { font-family: "Sprite Graffiti"; src: url("logo.ttf") format("truetype"); font-display: swap; }
h1 { font-family: "Sprite Graffiti", "Permanent Marker", sans-serif; font-weight: 400; font-size: 56px; letter-spacing: 0; }
.code { font-size: 28px; font-weight: 700; letter-spacing: .08em; color: var(--text) !important; border: 1px dashed var(--accent); border-radius: 12px; padding: 12px; margin: 10px 0 !important; }
.done b { color: var(--text); }
.qr { display: flex; justify-content: center; margin-top: 14px; }
.qr img, .qr canvas { width: 180px; height: 180px; background: #fff; padding: 10px; border-radius: 12px; }

/* .card sets display:grid, which would override the hidden attribute */
[hidden] { display: none !important; }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.extras { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 12px; }
.extras[open] { padding-bottom: 14px; }
.extras summary { cursor: pointer; font-size: 14px; color: var(--text); }
.extras summary span { color: var(--muted); font-size: 12px; }
textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; resize: vertical; }
textarea:focus { outline: none; border-color: var(--accent); }
.contact { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.contact p { margin: 4px 0; }
.contact a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.lang { display: flex; justify-content: flex-end; gap: 4px; margin: -28px 0 12px; }
.lang button { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 5px 10px; font-size: 12px; font-weight: 600; border-radius: 8px; }
.lang button.on { color: var(--text); border-color: var(--accent); }

/* Home and city pages */
.home-link { color: inherit; text-decoration: none; }
.links { display: grid; gap: 12px; }
.city {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none;
}
.city:hover, .city:focus-visible { border-color: var(--accent); outline: none; }
.city b { display: block; font-size: 20px; }
.city em { display: block; font-style: normal; color: var(--muted); font-size: 13px; }
.city-flag { font-size: 28px; }
.city-arrow { color: var(--accent); font-size: 20px; }
.venue { text-align: center; color: var(--muted); margin: 0 0 8px; }
.venue b { color: var(--text); }
.btn {
  display: block; text-align: center; font-weight: 600; color: #fff; background: var(--accent);
  border: 1px solid var(--accent); border-radius: 12px; padding: 14px; text-decoration: none;
}
.btn-line { background: transparent; color: var(--text); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.back-link { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.back-link.top-back { display: block; text-align: left; margin: -32px 0 24px; }
