:root {
  --blue: #067eea;
  --gold: #eca438;
  --gold-hi: #f6b851;
  --gold-deep: #81602b;
  --ink: #0e0e0e;
  --ink-2: #161616;
  --ink-3: #1f1f1f;
  --light: #f4f4f4;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.1);
  --mute: rgba(255, 255, 255, 0.62);
  --r: 2px;
  --font: "Funnel Display", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.solo { background: var(--ink) radial-gradient(ellipse 60% 40% at 88% 0%, rgba(236,164,56,0.14), transparent 70%) no-repeat; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--white); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; }

.app { max-width: 1240px; margin: 0 auto; padding: 0 24px 48px; }
.app-solo { padding-top: 40px; }
.solo-head { margin-bottom: 28px; }
.solo-head .kicker { color: var(--gold); }
.solo-head h1 em { font-style: normal; color: var(--gold); }
.solo-head h1 { margin: 10px 0 0; font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.01em; }

.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px 0 18px; border-bottom: 1px solid var(--line); }
.bar-left { display: flex; flex-direction: column; gap: 6px; }
.bar-title { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.bar-sub { font-size: 14px; color: var(--mute); }
.bar-sub b { color: var(--white); font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 16px; border-radius: 5px 5px 2px 2px; display: inline-block; }
.lg-free { background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.38); }
.lg-sel { background: var(--gold); }
.lg-taken { background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); position: relative; }
.lg-nfs { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); border-radius: 50% !important; width: 8px !important; height: 8px !important; margin: 0 4px; }
.lg-held { background: transparent; box-shadow: inset 0 0 0 2px var(--gold); }
.lg-booked { background: var(--gold-deep); }
.lg-blocked { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.28) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }

.map-card { margin-top: 24px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); position: relative; overflow: hidden; }
.map-card::before { content: ""; position: absolute; inset: 0; background: url("https://vortexaquatics.com/documents/content/mIK0X_vLQD-rKUzI0pRPMwo782") center / 560px repeat; opacity: 0.05; pointer-events: none; }
.map-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 0% 100%, rgba(236,164,56,0.12), transparent 70%); pointer-events: none; }
.stand-scroll { position: relative; z-index: 1; }
.stand-scroll { overflow-x: auto; overflow-y: hidden; padding: 28px 20px 24px; container-type: inline-size; scrollbar-width: thin; }
.stand {
  --s: clamp(25px, calc((100cqw - 56px - 30 * 4px) / 29), 34px);
  display: grid;
  grid-template-columns: 24px repeat(29, var(--s)) 24px;
  grid-template-rows: repeat(5, var(--s)) 26px repeat(6, var(--s)) auto;
  gap: 4px;
  width: max-content;
  margin: 0 auto;
}
.zone { position: relative; pointer-events: none; }
.zone-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.34); white-space: nowrap; }
.zone-tier { z-index: 0; }
.zone-tag-top { top: -18px; transform: translateX(-50%); }
.zone-stair { background: repeating-linear-gradient(180deg, rgba(255,255,255,0.16) 0 2px, transparent 2px 9px); margin: 0 calc(var(--s) * 0.28); border-radius: 1px; }
.zone-walk::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(255,255,255,0.12); }
.zone-walk .zone-tag { background: var(--ink-2); padding: 0 12px; }
.zone-tunnel { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 6px, transparent 6px 12px); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--r); }
.zone-middle { border: 1px dashed rgba(255,255,255,0.14); border-radius: var(--r); margin: -4px; }
.zone-middle .zone-tag { background: var(--ink-2); padding: 3px 10px; z-index: 2; }
.row-label { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; }

.seat {
  appearance: none; border: 0; padding: 0; margin: 0; cursor: pointer; position: relative; z-index: 1;
  width: var(--s); height: var(--s); border-radius: 8px 8px 3px 3px;
  background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.38);
  color: rgba(255,255,255,0.78); display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.seat::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.16); }
.seat-num { font-style: normal; font-size: 10px; font-weight: 700; line-height: 1; transform: translateY(-1px); }
.seat:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--gold); color: var(--white); }
.seat:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.seat[data-state="selected"] { background: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); color: var(--ink); transform: translateY(-1px); }
.seat[data-state="selected"]::after { background: rgba(0,0,0,0.25); }
.seat[data-state="taken"] { background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); color: transparent; cursor: not-allowed; }
.seat[data-state="taken"]::after { background: rgba(255,255,255,0.05); }
.seat[data-state="held"] { background: rgba(236,164,56,0.1); box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold); }
.seat[data-state="booked"] { background: var(--gold-deep); box-shadow: none; color: rgba(255,255,255,0.85); }
.seat[data-state="blocked"] { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.22) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
.seat[data-state="flash"] { animation: flash 0.9s ease 2; }
@keyframes flash { 50% { background: rgba(255, 90, 90, 0.45); } }
.seat-middle { width: 8px; height: 8px; border-radius: 50%; align-self: center; justify-self: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); z-index: 1; }

.pool { margin-top: 14px; height: 40px; border-radius: var(--r); background: linear-gradient(90deg, rgba(6,126,234,0.22), rgba(6,126,234,0.34), rgba(6,126,234,0.22)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pool::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 10 - 1px), rgba(255,255,255,0.18) calc(100% / 10 - 1px) calc(100% / 10)); opacity: 0.5; }
.pool-label { position: relative; font-size: 11px; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.swipe { display: none; padding: 0 20px 16px; font-size: 12px; color: var(--mute); text-align: center; }

.panel { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); }
.panel > section { padding: 28px; }
.panel > section + section { border-left: 1px solid var(--line); }
.panel h2 { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; background: var(--gold); border: 0; border-radius: var(--r); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.chip span { opacity: 0.75; font-size: 16px; line-height: 1; }
.empty { font-size: 15px; color: var(--mute); line-height: 1.5; }
.sum { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sum-l { font-size: 14px; color: var(--mute); line-height: 1.5; }
.sum-total { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.sum-total small { font-size: 14px; font-weight: 700; color: var(--mute); margin-right: 6px; letter-spacing: 0.04em; }
.perk { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--mute); }
.perk li { display: flex; gap: 10px; align-items: baseline; }
.perk li::before { content: ""; width: 6px; height: 6px; background: var(--gold); flex: none; transform: translateY(-2px); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 14px; background: var(--ink); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r); color: var(--white); font-size: 16px; outline: none; transition: border-color 0.15s ease; }
.field textarea { height: 70px; padding: 12px 14px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%), linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field.bad input { border-color: #ff6b6b; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.06em; }
.coupon-btn { flex: none; height: 50px; padding: 0 18px; background: transparent; color: var(--gold); border: 1px solid var(--gold); border-radius: var(--r); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.coupon-btn:hover { background: rgba(236,164,56,0.1); }
.coupon-btn:disabled { opacity: 0.5; cursor: default; }
.coupon-msg { font-size: 13px; color: var(--gold); min-height: 0; }
.coupon-msg:empty { display: none; }
.field.bad .coupon-msg { color: #ff6b6b; }
.sum-total s { font-size: 16px; font-weight: 700; color: var(--mute); margin-right: 10px; text-decoration: line-through; }
.phone { display: grid; grid-template-columns: 190px 1fr; gap: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border: 0; border-radius: var(--r); background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.15s ease, opacity 0.15s ease; }
.btn:hover { background: var(--gold-hi); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn svg { width: 18px; height: 18px; flex: none; }
.note { font-size: 13px; line-height: 1.55; color: var(--mute); max-width: 420px; }
.msg { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--r); background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.4); font-size: 14px; line-height: 1.5; display: none; }
.msg.show { display: block; }

.done { margin-top: 24px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 44px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.done h2 { margin: 12px 0 14px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; text-transform: uppercase; line-height: 0.98; }
.done p { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--mute); }
.done h2 em { font-style: normal; color: var(--gold); }
.ticket { background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); }
.ticket-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; font-size: 15px; }
.ticket-row + .ticket-row { border-top: 1px solid var(--line); }
.ticket-row span { color: var(--mute); }
.ticket-row b { text-align: right; font-weight: 700; }
.ticket-ref b { font-size: 22px; letter-spacing: 0.06em; color: var(--gold); }
.copy { background: none; border: 0; color: var(--mute); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; padding: 0; margin-left: 10px; }
.copy:hover { color: var(--white); }

.closed { margin-top: 24px; padding: 32px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.closed b { display: block; font-size: 22px; font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.closed span { color: var(--mute); font-size: 15px; }

.loading { opacity: 0.5; pointer-events: none; }

.v3d { position: relative; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--ink); }
.v3d-stage { position: relative; width: 100%; aspect-ratio: 16 / 8; max-height: 600px; }
.v3d-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.v3d-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; pointer-events: none; }
.v3d-tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(14,14,14,0.72); border: 1px solid rgba(236,164,56,0.45); border-radius: var(--r); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); backdrop-filter: blur(6px); }
.v3d-bottom { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.v3d-cap { padding: 10px 14px; background: rgba(14,14,14,0.78); border-radius: var(--r); font-size: 14px; font-weight: 600; color: var(--white); backdrop-filter: blur(6px); }
.v3d-btns { display: flex; gap: 6px; pointer-events: auto; }
.v3d-btn { height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,0.35); background: rgba(14,14,14,0.72); color: var(--white); border-radius: var(--r); font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); }
.v3d-btn.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.v3d-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.v3d-zoom { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; }
.v3d-zoom[hidden] { display: none; }
.v3d-z { width: 40px; padding: 0; font-size: 20px; line-height: 1; letter-spacing: 0; }
.v3d-note { position: absolute; top: 18px; right: 16px; font-size: 11px; color: rgba(255,255,255,0.55); pointer-events: none; }
@media (max-width: 700px) {
  .v3d { border-left: 0; border-right: 0; }
  .v3d-stage { aspect-ratio: 4 / 5; max-height: 560px; }
  .v3d-top { top: 12px; left: 12px; }
  .v3d-note { top: 52px; right: auto; left: 12px; font-size: 10px; }
  .v3d-bottom { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; }
  .v3d-cap { font-size: 13px; }
  .v3d-btn { flex: 1; padding: 0 8px; font-size: 11px; letter-spacing: 0.04em; }
  .v3d-zoom { right: 12px; top: 42%; }
  .v3d-z { flex: none; font-size: 20px; }
}

@media (max-width: 980px) {
  .panel { grid-template-columns: 1fr; }
  .panel > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .done { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
}
@media (max-width: 700px) {
  .app { padding: 0 0 32px; }
  .app-solo { padding-top: 28px; }
  .solo-head, .bar { padding-left: 20px; padding-right: 20px; }
  .map-card, .panel, .done, .closed { border-left: 0; border-right: 0; }
  .stand-scroll { padding: 26px 16px 18px; }
  .swipe { display: block; }
  .panel > section { padding: 24px 20px; }
  .form { grid-template-columns: 1fr; }
  .phone { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .legend { gap: 10px 16px; font-size: 12px; }
  .done { padding: 28px 20px; }
  .closed { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
