:root { --bg: #120a14; --panel: #1f1320; --panel2: #2a1a2b; --line: #4a3346; --text: #f2ebe2; --dim: #b9adbd; --gold: #e4c06a; --red: #9a1b2f; --ok: #3ea76a; --err: #d9534f; --radius: 10px; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .wordmark { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 6vw, 56px); margin: .1em 0 .2em; color: var(--gold); line-height: 1.08; }
h2 { font-size: 26px; margin: 1.3em 0 .5em; }
h3 { font-size: 20px; margin: .2em 0 .3em; }
h4 { margin: 1em 0 .4em; font-size: 14px; letter-spacing: .03em; color: var(--gold); text-transform: uppercase; }
a { color: var(--gold); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { border-color: var(--gold); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: var(--gold); color: #24150a; border-color: var(--gold); font-weight: 700; }
.primary:hover { background: #f0d186; }
.danger { border-color: #8c3230; color: #ffb4ae; }
.big { font-size: 20px; min-height: 54px; padding: 10px 40px; }
.small { min-height: 32px; padding: 3px 10px; font-size: 13px; }
.ghost { background: transparent; }
input, select, textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #140b15; color: var(--text); font: inherit; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--gold); }
input[type=range] { padding: 0; min-height: 26px; accent-color: var(--gold); background: transparent; border: 0; }
input[type=color] { width: 54px; padding: 2px; min-height: 34px; flex: none; }
label > span { display: block; margin-bottom: 3px; font-size: 14px; color: var(--dim); }
small, .hint { color: var(--dim); font-size: 14px; }
.eyebrow { margin: 0; color: var(--gold); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .lbl { flex: 0 0 auto; margin: 0; }
.grow { flex: 1; }
code { font-family: ui-monospace, Menlo, monospace; background: #0c060d; padding: 2px 6px; border-radius: 5px; color: var(--gold); }

.page .top { display: flex; align-items: center; gap: 12px; padding: 12px clamp(14px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.wordmark { color: var(--gold); text-decoration: none; font-size: 22px; }
.lang { width: auto; min-height: 34px; padding: 2px 8px; }
.page main { max-width: 1120px; margin: 0 auto; padding: 16px clamp(14px, 4vw, 40px) 60px; }
.page main.narrow { max-width: 560px; }
.hero { padding: 28px 0 8px; }
.hero p { max-width: 62ch; font-size: 18px; }
.hero.small p { font-size: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ev-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.ev-card p { margin: 2px 0; }
.ev-card .btns { margin-top: auto; padding-top: 10px; }
.small-note { margin-top: 28px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.box summary { cursor: pointer; font-weight: 500; }
.box form { margin-top: 10px; }
.check { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; }
.ticket-form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); gap: 20px; align-items: start; }
.side-form { display: flex; flex-direction: column; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.side-form p { margin: 0; }
.seatmap-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
#seatmap svg { display: block; width: 100%; max-height: 74vh; }
.seat { fill: #a22338; stroke: transparent; stroke-width: .35; cursor: pointer; transition: fill .1s; }
.seat:hover, .seat:focus { fill: #ff9d4f; outline: none; }
.seat.prise { fill: #3a3039; cursor: not-allowed; }
.seat.choisie { fill: var(--gold); stroke: #fff; stroke-width: .08; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 6px 0 0; font-size: 14px; color: var(--dim); }
.k { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.k.libre { background: #a22338; } .k.prise { background: #3a3039; } .k.choisie { background: var(--gold); }
.billet { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; background: linear-gradient(120deg, #2c1630, #5a1422); border: 1px solid var(--gold); border-radius: 14px; padding: 20px; margin: 12px 0 18px; }
.billet p { margin: 4px 0; }
.qr { background: #fff; border-radius: 8px; padding: 6px; width: 200px; height: 200px; }
.scrollbox { max-height: 280px; overflow: auto; margin-bottom: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
td { border-bottom: 1px solid var(--line); padding: 4px 8px; }
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(8, 3, 10, .72); overflow: auto; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; max-width: 480px; width: 100%; max-height: 100%; overflow: auto; }
.card.wide { max-width: 620px; }
form.card { display: flex; flex-direction: column; gap: 12px; }
.codes { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; }
.codes dd { margin: 0; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 90; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { background: #24162a; border: 1px solid var(--gold); color: var(--text); padding: 8px 14px; border-radius: 8px; max-width: 90vw; }
.toast.err { border-color: var(--err); background: #3a1414; }
.ctrl { margin-top: 16px; padding: 22px; border-radius: 12px; font-size: 20px; }
.ctrl.ok { background: #123f24; border: 2px solid var(--ok); } .ctrl.non { background: #451517; border: 2px solid var(--err); }
.ctrl p { margin: 6px 0 0; }
#cam { width: 100%; border-radius: 10px; margin-top: 10px; }
@media (max-width: 760px) { .ticket-form { grid-template-columns: 1fr; } .qr { width: 160px; height: 160px; } }
