:root {
  --bg: #0a0a0b;
  --surface: #131315;
  --surface-2: #1b1a1d;
  --line: #2c2822;
  --gold: #d4af37;
  --gold-lt: #f3d27a;
  --gold-dk: #9c7a1c;
  --text: #f5f1e6;
  --muted: #a9a294;
  --red: #e5484d;
  --green: #3fbf7f;
  --radius: 14px;
  --gold-grad: linear-gradient(135deg, #f8e08e 0%, #d4af37 45%, #9c7a1c 100%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--gold-lt); }
h1, h2, h3, .display { font-family: Oswald, Impact, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; line-height: 1.05; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.demo-banner { background: var(--gold); color: #1a1405; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: rgba(10,10,11,0.9); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--text); font-family: Oswald, Impact, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.brand .w { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { font-size: 13px; color: var(--muted); letter-spacing: 0.2em; }
.nav-link { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.nav-link:hover { border-color: var(--gold); }

/* hero */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(63,191,127,0.18); }
.pill.closed .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(229,72,77,0.18); }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 700; margin: 20px 0 16px; }
.hero h1 .gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 0 24px; }
.show-line { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.show-time { font-family: Oswald, sans-serif; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-lt); }
.photo-frame { position: relative; border-radius: 18px; padding: 3px; background: var(--gold-grad); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.photo-frame img { display: block; width: 100%; border-radius: 15px; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-tag { position: absolute; left: 16px; bottom: 16px; background: rgba(10,10,11,0.85); border: 1px solid var(--gold-dk); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.photo-tag b { display: block; font-family: Oswald, sans-serif; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-lt); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 Inter, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; padding: 14px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .1s, filter .15s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-grad); color: #1a1405; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-danger { background: transparent; color: #ff8a8d; border-color: #5a2a2b; }
.btn-sm { padding: 9px 12px; font-size: 12px; border-radius: 9px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* form card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.form-section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.step { font-family: Oswald, sans-serif; color: var(--gold); font-size: 14px; letter-spacing: 0.2em; margin-bottom: 6px; display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
label .opt { color: var(--muted); font-weight: 400; }
.hint { font-size: 12px; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], textarea {
  width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 16px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.18); }
.drop { position: relative; display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px; background: var(--surface-2); cursor: pointer; }
.drop:hover, .drop.has { border-color: var(--gold-dk); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ico { width: 42px; height: 42px; border-radius: 10px; background: #241f14; color: var(--gold-lt); display: grid; place-items: center; font-size: 20px; flex: none; }
.drop .t { font-weight: 600; font-size: 14px; word-break: break-all; }
.drop .s { font-size: 12px; color: var(--muted); }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tier { position: relative; display: flex; flex-direction: column; gap: 10px; text-align: left; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 16px; padding: 20px 18px; cursor: pointer; color: var(--text); font: inherit; }
.tier:hover { border-color: var(--gold-dk); }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier.selected { border-color: var(--gold); background: linear-gradient(180deg, #221d10 0%, var(--surface-2) 70%); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
.tier.disabled { opacity: 0.45; cursor: not-allowed; }
.tier .name { font-family: Oswald, sans-serif; text-transform: uppercase; font-size: 20px; letter-spacing: 0.03em; }
.tier .price { font-family: Oswald, sans-serif; font-size: 40px; font-weight: 700; line-height: 1; }
.tier.selected .price { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier .spot { font-size: 13px; color: var(--gold-lt); font-weight: 600; }
.tier ul { margin: 0; padding: 0 0 0 18px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.tier .badge { position: absolute; top: -11px; right: 14px; background: var(--gold-grad); color: #1a1405; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }

.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 2px; flex: none; }
.submit-row { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.submit-row .btn { font-size: 17px; padding: 18px; }
.error { background: #2a1314; border: 1px solid #5a2a2b; color: #ffb3b5; border-radius: 10px; padding: 12px 14px; font-size: 14px; display: none; }
.error.show { display: block; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; display: none; }
.progress.show { display: block; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .2s; }
.fine { font-size: 12px; color: var(--muted); text-align: center; }

.closed-card { text-align: center; padding: 56px 24px; }
.closed-card h2 { font-size: 40px; margin-bottom: 12px; }

footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* queue page */
.queue-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 40px 0; align-items: start; }
.now { border-radius: 20px; padding: 3px; background: var(--gold-grad); margin-bottom: 28px; }
.now-in { background: #110f0a; border-radius: 17px; padding: 28px; }
.now .label { font-size: 13px; letter-spacing: 0.2em; color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.now .label .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.now h2 { font-size: clamp(32px, 5vw, 52px); margin: 10px 0 4px; }
.now p { margin: 0; color: var(--muted); font-size: 18px; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qitem { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.qitem .n { font-family: Oswald, sans-serif; font-size: 28px; font-weight: 700; color: var(--gold); text-align: center; }
.qitem .a { font-weight: 700; font-size: 17px; }
.qitem .s { color: var(--muted); font-size: 14px; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.throne { background: var(--gold-grad); color: #1a1405; border: none; }
.tag.super { border-color: var(--gold); color: var(--gold-lt); }
.tag.skip { border-color: var(--gold-dk); color: #d9c48a; }
.side { position: sticky; top: 88px; display: grid; gap: 16px; }
.side .photo-frame img { aspect-ratio: 3 / 4; }
.side .card { padding: 22px; }
.empty { color: var(--muted); text-align: center; padding: 40px; border: 1px dashed var(--line); border-radius: 14px; }

/* success page */
.center-card { max-width: 560px; margin: 64px auto; text-align: center; }
.big-num { font-family: Oswald, sans-serif; font-size: 120px; font-weight: 700; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 12px 0; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--gold); animation: spin 0.9s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* admin */
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 28px 0 20px; }
.admin-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.toggle:last-of-type { border-bottom: none; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #333; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:disabled + span { opacity: .4; cursor: not-allowed; }
.arow { display: grid; grid-template-columns: 44px 56px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.arow + .arow { margin-top: 10px; }
.arow .n { font-family: Oswald, sans-serif; font-size: 26px; font-weight: 700; color: var(--gold); text-align: center; }
.arow .ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-family: Oswald, sans-serif; font-size: 22px; }
.arow .meta { min-width: 0; }
.arow .meta .a { font-weight: 700; font-size: 16px; }
.arow .meta .s { color: var(--muted); font-size: 14px; }
.arow .meta .c { color: var(--muted); font-size: 12px; margin-top: 4px; word-break: break-all; }
.arow .meta .m { font-size: 13px; margin-top: 6px; color: var(--text); background: var(--surface-2); padding: 6px 10px; border-radius: 8px; }
.arow audio { width: 100%; margin-top: 8px; height: 36px; }
.arow .acts { display: flex; flex-direction: column; gap: 6px; }
.arow.playing { border-color: var(--gold); background: #17140c; }
.muted { color: var(--muted); }
.stat { font-family: Oswald, sans-serif; font-size: 36px; font-weight: 700; color: var(--gold-lt); line-height: 1; }
.login { max-width: 400px; margin: 80px auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--gold-dk); padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; }

@media (max-width: 900px) {
  .hero .wrap, .queue-layout, .admin-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero .photo-frame { max-width: 420px; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .side { position: static; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .card { padding: 20px; border-radius: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .brand { font-size: 16px; gap: 5px; }
  .brand small { display: none; }
  .top .nav-link { font-size: 12px; padding: 7px 10px; }
  .top .hide-sm { display: none; }
  .qitem { grid-template-columns: 40px 1fr; }
  .qitem .tag { grid-column: 2; justify-self: start; }
  .arow { grid-template-columns: 36px 1fr; }
  .arow .ph { display: none; }
  .arow .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
