/* Dragon Tickets — design system. Festival type (Lilita One + Outfit), dark and light themes, subtle motion. */
@font-face { font-family: "Lilita One"; src: url(/static/fonts/lilita-one.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url(/static/fonts/outfit-var.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0a0f;
  --bg-2: #110f17;
  --panel: #16141d;
  --panel-2: #1e1b27;
  --line: #2a2733;
  --line-2: #3b3747;
  --text: #f7f2e9;
  --text-soft: #d9d3c6;
  --muted: #aca597;
  --gold: #d4af37;
  --gold-2: #f4de91;
  --gold-3: #a2781c;
  --gold-rgb: 212 175 55;
  --accent-text: #f4de91;
  --on-gold: #17130a;
  --red: #b5121b;
  --red-2: #ef4b56;
  --red-rgb: 181 18 27;
  --red-text: #ff9aa1;
  --green: #2fbf7a;
  --green-text: #8ee9bd;
  --sun: #ff8a1f;
  --pink: #ff3d8b;
  --blue: #3a63ff;
  --soft: rgba(255, 255, 255, .05);
  --soft-2: rgba(255, 255, 255, .1);
  --glass: rgba(11, 10, 15, .78);
  --shadow: rgba(0, 0, 0, .7);
  --field: #110f17;
  --placeholder: #78736a;
  --text-grad: linear-gradient(100deg, #f4de91, #d4af37 40%, #ffb627 60%, #f4de91);
  --gold-grad: linear-gradient(165deg, #f4de91, #d4af37 52%, #a2781c);
  --hero-wash: radial-gradient(760px 460px at 8% -6%, rgb(255 138 31 / .26), transparent 70%), radial-gradient(680px 460px at 96% 14%, rgb(255 61 139 / .2), transparent 70%), radial-gradient(900px 500px at 55% 110%, rgb(181 18 27 / .3), transparent 70%);
  --hero-photo: .16;
  --palm: #14392a;
  --palm-2: #1d5a3f;
  --dr-1: #f8e7a6; --dr-2: #d4af37; --dr-3: #8f6a14; --dr-belly: #fff0c0;
  --dr-spine: #b5121b; --dr-scale: rgba(30, 18, 0, .38); --dr-red: #b5121b; --dr-red-2: #ef4b56; --dr-eye: #ff3b3b;
  --seal-ring: #b5121b;
  --marquee-bg: linear-gradient(90deg, #b5121b, #e4402a 45%, #d4af37);
  --marquee-text: #fff8e6;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #fffaf0;
  --bg-2: #fff1d9;
  --panel: #ffffff;
  --panel-2: #fff6e6;
  --line: #efdfc4;
  --line-2: #e0c9a4;
  --text: #2b1c11;
  --text-soft: #4d3b2b;
  --muted: #7d6a58;
  --gold: #e08a00;
  --gold-2: #f6a609;
  --gold-3: #c4620a;
  --gold-rgb: 224 138 0;
  --accent-text: #a35200;
  --on-gold: #2a1600;
  --red: #c8102e;
  --red-2: #d6243a;
  --red-rgb: 200 16 46;
  --red-text: #b00d28;
  --green: #14925a;
  --green-text: #0d6e43;
  --soft: rgba(43, 28, 17, .05);
  --soft-2: rgba(43, 28, 17, .09);
  --glass: rgba(255, 250, 240, .8);
  --shadow: rgba(92, 52, 8, .3);
  --field: #fffdf7;
  --placeholder: #a8957f;
  --text-grad: linear-gradient(100deg, #f59e0b, #ea580c 45%, #c8102e 70%, #f59e0b);
  --gold-grad: linear-gradient(165deg, #ffc94a, #f59e0b 52%, #e0700a);
  --hero-wash: radial-gradient(760px 460px at 8% -6%, rgb(255 176 32 / .5), transparent 70%), radial-gradient(680px 460px at 96% 14%, rgb(255 107 74 / .32), transparent 70%), radial-gradient(900px 500px at 55% 110%, rgb(255 190 80 / .5), transparent 70%);
  --hero-photo: .22;
  --palm: #1f8a4d;
  --palm-2: #14683a;
  --dr-1: #ffc83d; --dr-2: #f2780c; --dr-3: #c8102e; --dr-belly: #fff0b8;
  --dr-spine: #8f0f1f; --dr-scale: rgba(120, 20, 0, .3); --dr-red: #c8102e; --dr-red-2: #ff5a3c; --dr-eye: #c8102e;
  --seal-ring: #c8102e;
  --marquee-bg: linear-gradient(90deg, #f59e0b, #ea580c 50%, #c8102e);
  --marquee-text: #fff8e6;
}

:root {
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Outfit", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Lilita One", "Outfit", "Arial Rounded MT Bold", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh;
  display: flex; flex-direction: column; transition: background-color .35s var(--ease), color .35s var(--ease);
}
main { flex: 1; min-width: 0; }
html, body { overflow-x: clip; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.6vw, 4.7rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(var(--gold-rgb) / .35); }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.fine { font-size: .8rem; color: var(--muted); }
.center { text-align: center; }
.link { color: var(--accent-text); text-decoration: none; border-bottom: 1px solid rgb(var(--gold-rgb) / .4); }
.link:hover { border-bottom-color: var(--accent-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.grad { background: var(--text-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
.eyebrow { margin: 0 0 .8rem; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--gold-grad); }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--text-soft); max-width: 58ch; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 14px;
  font: 700 .97rem/1 var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s; white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { color: var(--on-gold); background: var(--gold-grad); box-shadow: 0 10px 26px -12px rgb(var(--gold-rgb) / .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transition: left .6s var(--ease); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgb(var(--gold-rgb) / 1), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover::after { left: 120%; }
.btn-ghost { color: var(--text); background: var(--soft); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); background: rgb(var(--gold-rgb) / .1); transform: translateY(-2px); }
.btn-sm { padding: .55rem .9rem; font-size: .83rem; border-radius: 10px; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.danger { color: var(--red-text); }
.btn.danger:hover { border-color: var(--red-2); background: rgb(var(--red-rgb) / .12); }
.btn-pulse { animation: ring 2.8s var(--ease) infinite; }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled { box-shadow: 0 12px 30px -20px var(--shadow); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 14px; transition: height .3s var(--ease); }
.site-header.is-scrolled .bar { height: 58px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 36px; width: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.04) rotate(-1deg); }
.logo-light { display: none !important; }
[data-theme="light"] .logo-dark { display: none !important; }
[data-theme="light"] .logo-light { display: block !important; }
.brand-tag { font: 400 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--on-gold); background: var(--gold-grad); padding: 6px 9px 5px; border-radius: 7px; transform: rotate(-3deg); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; color: var(--text-soft); font-weight: 600; transition: color .2s, background .2s; }
.nav a:hover { background: var(--soft); color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold-grad); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-quiet { color: var(--muted); font-weight: 500; }
.theme-toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1.5px solid var(--line-2); background: var(--soft); color: var(--text); transition: transform .35s var(--ease), border-color .2s, background .2s; padding: 0; }
.theme-toggle:hover { border-color: var(--gold); background: rgb(var(--gold-rgb) / .12); transform: rotate(18deg); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }
.bar-right { display: flex; align-items: center; gap: 10px; }
.site-footer { position: relative; border-top: 1px solid var(--line); margin-top: 90px; padding: 48px 0 28px; background: var(--bg-2); overflow: hidden; isolation: isolate; }
.site-footer .palm { opacity: .5; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand img { height: 42px; width: auto; margin-bottom: 12px; }
.foot-brand p { color: var(--muted); max-width: 38ch; margin: 0; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 36px; align-content: start; }
.foot-links a { color: var(--text-soft); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--accent-text); }
.foot-fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- decorative: palms, waves, marquee ---------- */
.palm { position: absolute; z-index: -1; pointer-events: none; width: min(560px, 62vw); height: auto; overflow: visible; transform-origin: 0% 100%; animation: sway 9s ease-in-out infinite alternate; }
.palm-tl { left: -230px; top: -150px; transform: rotate(14deg); opacity: .8; }
.palm-tr { right: -240px; top: -140px; transform: scaleX(-1) rotate(10deg); opacity: .8; animation-name: sway-flip; animation-duration: 11s; }
.palm-bl { left: -130px; bottom: -130px; transform: rotate(-8deg) scaleY(-1); animation: none; opacity: .5; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 54px; z-index: 0; pointer-events: none; overflow: hidden; }
.wave svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: wave 18s linear infinite; }
.wave svg + svg { opacity: .45; height: 72%; animation-duration: 26s; animation-direction: reverse; }
.wave path { fill: var(--bg); }

.marquee-wrap { position: relative; z-index: 2; overflow: hidden; padding: 16px 0; margin-top: -26px; }
.marquee { position: relative; overflow: hidden; margin: 0 -20px; padding: 14px 0; background: var(--marquee-bg); transform: rotate(-1.4deg); box-shadow: 0 14px 40px -20px var(--shadow); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { flex: none; display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; font: 400 1.35rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--marquee-text); white-space: nowrap; text-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.marquee span::after { content: "✦"; font-size: 1rem; opacity: .85; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 92px) 0 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: url(/static/img/tropical-bg.jpg) center 30%/cover; opacity: var(--hero-photo); filter: saturate(1.15); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, transparent 30%, var(--bg) 100%); }
.hero-glow { position: absolute; inset: 0; z-index: -2; background: var(--hero-wash); animation: breathe 9s ease-in-out infinite alternate; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero-copy h1 { margin-bottom: .4em; text-shadow: 0 6px 30px rgb(var(--gold-rgb) / .12); }
.live-chip { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 7px 14px 7px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; background: var(--soft); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.live-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(47 191 122 / .6); animation: dot 2s ease-out infinite; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%) scale(.96); animation: rotate-word 9s infinite; }
.rotator > span:nth-child(2) { animation-delay: 3s; }
.rotator > span:nth-child(3) { animation-delay: 6s; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; color: var(--muted); font-size: .92rem; }
.trust li::before { content: "✓"; color: var(--gold); margin-right: 8px; font-weight: 800; }
.hero-small { padding-bottom: 60px; }
.hero-small .lead { margin-bottom: 0; }
.hero-small .palm { opacity: .5; }
.hero-small::after { background: linear-gradient(180deg, transparent 50%, var(--bg) 100%); }

.dragon { position: relative; display: block; width: 100%; height: clamp(190px, 21vw, 310px); margin-top: 0; pointer-events: none; overflow: visible; filter: drop-shadow(0 18px 28px rgb(var(--gold-rgb) / .22)); }
.dr-body { fill: url(#dr-g-body); }
.dr-belly { fill: url(#dr-g-belly); }
.dr-spines { fill: var(--dr-spine); }
.dr-scales { fill: none; stroke: var(--dr-scale); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.h-mane { fill: url(#dr-g-mane); }
.h-whisk, .h-horn { fill: var(--dr-1); }
.h-skull { fill: url(#dr-g-head); }
.h-jaw { fill: var(--dr-2); }
.h-brow { fill: var(--dr-3); }
.h-eye { fill: var(--dr-eye); filter: drop-shadow(0 0 6px var(--dr-eye)); animation: glow 3.2s ease-in-out infinite; }
.h-glint { fill: #fff; }
.dr-flame { transform-box: fill-box; transform-origin: 0% 50%; animation: breath 8s ease-in-out infinite; }
.dr-flame path { transform-box: fill-box; transform-origin: 0% 50%; animation: flicker .5s ease-in-out infinite alternate; }
.dr-flame .fl-a { fill: #e4202a; opacity: .9; }
.dr-flame .fl-b { fill: #ffa51f; animation-delay: -.15s; }
.dr-flame .fl-c { fill: #fff0a8; animation-delay: -.3s; }
.dr-embers .ember { fill: var(--gold-2); opacity: 0; animation: ember 6.5s ease-in infinite; animation-delay: var(--delay); transform-box: fill-box; transform-origin: center; }
[data-theme="light"] .dr-embers .ember { fill: #ff7a1a; }

.hero-sun { position: absolute; z-index: -1; right: -8%; top: 50%; width: min(620px, 80vw); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle, rgb(255 138 31 / .5), rgb(255 61 139 / .18) 45%, transparent 70%); filter: blur(10px); animation: breathe 7s ease-in-out infinite alternate; pointer-events: none; }
.feature { position: relative; display: block; text-decoration: none; max-width: 400px; margin-inline: auto; width: 100%; perspective: 900px; animation: float 8s ease-in-out infinite; }
.feature-tilt { transform: rotate(1.6deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease); transform-style: preserve-3d; }
.feature:hover .feature-tilt { transition-duration: .08s; }
.feature-poster { position: relative; }
.feature-poster::before { content: ""; position: absolute; inset: -14px; border-radius: 34px; z-index: -1; background: conic-gradient(from 0deg, var(--gold), var(--red-2), var(--pink), var(--sun), var(--gold)); filter: blur(24px); opacity: .55; animation: spin 14s linear infinite; }
.feature-poster img { width: 100%; border-radius: 22px; box-shadow: 0 40px 80px -24px var(--shadow), 0 0 0 1px var(--soft-2); background: var(--panel); aspect-ratio: 2475/3450; object-fit: cover; }
.feature-info { position: relative; display: flex; align-items: center; gap: 14px; margin: -34px 14px 0; padding: 12px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -18px var(--shadow); }
.feature-text { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.feature-text strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-text span { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.date-badge { flex: none; width: 54px; height: 58px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--gold-grad); color: var(--on-gold); line-height: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.date-badge b { font: 400 1.5rem/1 var(--display); }
.date-badge span { font-size: .66rem; font-weight: 800; letter-spacing: .12em; margin-top: 3px; }

/* ---------- sections ---------- */
.section { padding: clamp(46px, 6.5vw, 84px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 30px; }
.section-head.center { text-align: center; }
.ev-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.ev-card { display: flex; flex-direction: column; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.ev-card:hover { transform: translateY(-7px) rotate(-.4deg); border-color: rgb(var(--gold-rgb) / .6); box-shadow: 0 28px 54px -26px rgb(var(--gold-rgb) / .6); }
.ev-card-img { position: relative; aspect-ratio: 4/5; background: var(--panel-2); overflow: hidden; }
.ev-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ev-card:hover .ev-card-img img { transform: scale(1.06); }
.badge-float { position: absolute; top: 14px; left: 14px; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .6); }
.ev-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.ev-card-body h3 { font-size: 1.3rem; margin-bottom: .3em; }
.ev-card-body p { margin: 0 0 .2em; font-size: .92rem; }
.ev-card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chip { display: inline-block; white-space: nowrap; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.chip-gold { background: rgb(var(--gold-rgb) / .15); color: var(--accent-text); border: 1px solid rgb(var(--gold-rgb) / .4); }
.chip-red { background: rgb(var(--red-rgb) / .14); color: var(--red-text); border: 1px solid rgb(var(--red-rgb) / .4); }
.ev-card-cta { justify-content: center; background: repeating-linear-gradient(135deg, var(--soft) 0 12px, transparent 12px 24px), var(--bg-2); border-style: dashed; border-color: var(--line-2); }
.cta-inner { padding: 30px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cta-plus { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 400 2rem/1 var(--display); color: var(--accent-text); border: 2px dashed var(--gold); margin-bottom: 8px; animation: spin 20s linear infinite; }
.cta-plus b { display: block; font-weight: 400; animation: spin 20s linear infinite reverse; }
.cta-inner p { max-width: 28ch; }

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.step-card::after { content: attr(data-n); position: absolute; right: 14px; bottom: -22px; font: 400 7.5rem/1 var(--display); color: rgb(var(--gold-rgb) / .1); pointer-events: none; }
.step-card:hover { transform: translateY(-5px); border-color: rgb(var(--gold-rgb) / .5); }
.step-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.step-num { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font: 400 1.3rem/1 var(--display); color: var(--on-gold); background: var(--gold-grad); margin-bottom: 16px; transform: rotate(-4deg); transition: transform .3s var(--ease); }
.step-card:hover .step-num { transform: rotate(4deg) scale(1.08); }

.organizer-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 32px; border: 1px solid var(--line-2); background: radial-gradient(520px 260px at 0% 0%, rgb(var(--gold-rgb) / .16), transparent 70%), radial-gradient(520px 300px at 100% 100%, rgb(var(--red-rgb) / .16), transparent 70%), var(--panel); isolation: isolate; }
.band-seal { position: absolute; right: -90px; top: 50%; translate: 0 -50%; width: 420px; z-index: -1; opacity: .22; pointer-events: none; }
.seal { width: 100%; height: auto; display: block; overflow: visible; }
.seal-body { filter: drop-shadow(0 10px 24px rgb(var(--gold-rgb) / .35)); }
.seal-ring { stroke: var(--seal-ring); }
.seal-ring-in { stroke: var(--seal-ring); opacity: .5; }
.seal-ticks { stroke: var(--seal-ring); transform-origin: 0 0; animation: spin 40s linear infinite; }
.seal-eye { fill: var(--seal-ring); animation: glow 3.4s ease-in-out infinite; }
.seal-spin { animation: spin 90s linear infinite; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; flex-direction: column; padding-left: 18px; border-left: 3px solid var(--gold); transition: transform .25s var(--ease), border-color .25s; }
.feature-list li:hover { transform: translateX(6px); border-color: var(--red-2); }
.feature-list b { font: 400 1.15rem/1.2 var(--display); letter-spacing: .01em; }
.feature-list span { color: var(--muted); font-size: .95rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }

.checks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; border-radius: 50%; background: rgb(var(--gold-rgb) / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='%23e08a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- cards, forms, alerts ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); margin-bottom: 16px; font-size: .95rem; }
.alert-error { border-color: rgb(var(--red-rgb) / .55); background: rgb(var(--red-rgb) / .12); color: var(--red-text); }
.alert-ok { border-color: rgb(47 191 122 / .5); background: rgb(47 191 122 / .11); color: var(--green-text); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--text-soft); }
.field small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--field); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s, background .3s;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(var(--gold-rgb) / .2); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input[type=file] { width: 100%; padding: 10px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--field); color: var(--muted); font: inherit; font-size: .9rem; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-soft); margin: 10px 0; cursor: pointer; }
.check input { margin-top: 2px; }
.check a { color: var(--accent-text); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--soft-2); color: var(--text-soft); border: 1px solid var(--line-2); white-space: nowrap; }
.pill-red { background: rgb(var(--red-rgb) / .14); color: var(--red-text); border-color: rgb(var(--red-rgb) / .4); }
.pill-green { background: rgb(47 191 122 / .14); color: var(--green-text); border-color: rgb(47 191 122 / .45); }
.pill-gold { background: rgb(var(--gold-rgb) / .15); color: var(--accent-text); border-color: rgb(var(--gold-rgb) / .45); }

.lead-form h3 { margin-bottom: 14px; }

/* ---------- event page ---------- */
.draft-bar { background: var(--red); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; font-size: .9rem; }
.draft-bar a { color: #fff; }
.ev-hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); isolation: isolate; background: var(--bg-2); }
.ev-backdrop { position: absolute; inset: -60px; z-index: -3; background-size: cover; background-position: center; filter: blur(52px) saturate(1.4); opacity: .6; transform: scale(1.1); animation: drift 24s ease-in-out infinite alternate; }
[data-theme="light"] .ev-backdrop { opacity: .5; }
.ev-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 20%, transparent), color-mix(in srgb, var(--bg) 62%, transparent) 60%, var(--bg)); }
.ev-top { display: grid; grid-template-columns: minmax(250px, 380px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ev-poster { perspective: 900px; }
.ev-poster img { width: 100%; border-radius: 22px; box-shadow: 0 40px 90px -28px var(--shadow), 0 0 0 1px var(--soft-2); aspect-ratio: 2475/3450; object-fit: cover; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease); animation: float 9s ease-in-out infinite; }
.ev-main h1 { text-shadow: 0 6px 30px rgba(0, 0, 0, .25); }
.ev-logo { width: min(460px, 100%); margin: 2px 0 6px; filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .4)); }
.tagline { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-soft); max-width: 40ch; }
.facts { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; align-items: center; gap: 14px; }
.facts svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: var(--glass); border: 1px solid var(--line-2); fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.facts li:hover svg { transform: rotate(-6deg) scale(1.08); }
.facts div { display: flex; flex-direction: column; line-height: 1.3; }
.facts b { font-size: 1.08rem; }
.facts span { color: var(--text-soft); font-size: .95rem; }
.facts a { color: var(--accent-text); }
.socials { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600; background: var(--glass); border: 1px solid var(--line-2); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.social:hover { border-color: var(--gold); background: rgb(var(--gold-rgb) / .12); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social svg .dot { fill: var(--accent-text); stroke: none; }
.social svg .fill { fill: var(--accent-text); stroke: none; }

.ev-body { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: clamp(28px, 4vw, 52px); padding-top: 26px; align-items: start; }
.block { margin-bottom: 34px; }
.block h2 { font-size: 1.6rem; margin-bottom: .6em; }
.block p { color: var(--text-soft); max-width: 62ch; }
.lineup { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lineup li { padding: 9px 17px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); font-weight: 600; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.lineup li:hover { transform: translateY(-3px) rotate(-1.5deg); border-color: var(--gold); background: rgb(var(--gold-rgb) / .1); }
.org-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.org-card h3 { margin-bottom: .3em; }
.org-card p { margin-bottom: 0; }
.ev-side { position: sticky; top: 84px; scroll-margin-top: 84px; }
.tickets-card { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 26px; padding: 24px; box-shadow: 0 30px 70px -40px rgb(var(--gold-rgb) / .55); overflow: hidden; }
.tickets-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--red), var(--sun), var(--gold), var(--pink), var(--red)); background-size: 200% 100%; animation: shimmer 6s linear infinite; }
.tickets-card h2 { font-size: 1.6rem; margin-bottom: 14px; }
.t-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.t-row:first-of-type { border-top: 0; }
.t-info { display: flex; flex-direction: column; min-width: 0; }
.t-info small { color: var(--muted); font-size: .82rem; }
.t-info .low { font-style: normal; font-size: .76rem; font-weight: 700; color: #e07b00; margin-top: 2px; }
.t-price { font: 400 1.2rem/1 var(--display); color: var(--accent-text); white-space: nowrap; }
.t-row.is-out { opacity: .6; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 3px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--text); font-size: 1.2rem; font-weight: 700; cursor: pointer; line-height: 1; transition: background .15s, transform .1s, color .15s; }
.qty button:hover:not([disabled]) { background: var(--gold); color: var(--on-gold); }
.qty button:active { transform: scale(.9); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty input { width: 30px; text-align: center; border: 0; background: transparent; color: var(--text); font: 400 1.15rem var(--display); padding: 0; }
.qty input:focus { box-shadow: none; }
.summary { margin: 14px 0 8px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 6px; font-size: .93rem; animation: pop-in .3s var(--ease); }
.summary div { display: flex; justify-content: space-between; }
.summary span { color: var(--muted); }
.summary .total { padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--line-2); font-size: 1.15rem; }
.summary .total span { color: var(--text); font-weight: 700; }
.summary .total b { font: 400 1.3rem/1 var(--display); color: var(--accent-text); }
.fields { margin-top: 16px; }
.mobile-bar { display: none; }

/* ---------- order & ticket pages ---------- */
.order { padding: 40px 0 20px; }
.status-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.status-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); }
.status-icon { flex: none; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; font: 400 1.6rem/1 var(--display); }
.status-head.ok .status-icon { background: rgb(47 191 122 / .16); color: var(--green); border: 1px solid rgb(47 191 122 / .5); animation: pop-in .5s var(--ease); }
.status-head.wait .status-icon { background: rgb(var(--gold-rgb) / .15); color: var(--accent-text); border: 1px solid rgb(var(--gold-rgb) / .5); animation: breathe 2.4s ease-in-out infinite alternate; }
.status-head.void .status-icon { background: rgb(var(--red-rgb) / .15); color: var(--red-2); border: 1px solid rgb(var(--red-rgb) / .5); }
.pay-card { display: grid; gap: 16px; margin-bottom: 20px; border-color: rgb(var(--gold-rgb) / .45); background: linear-gradient(180deg, rgb(var(--gold-rgb) / .09), transparent), var(--panel); }
.pay-amount, .pay-ref { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pay-amount span, .pay-ref span { color: var(--muted); }
.pay-amount b { font: 400 2.2rem/1 var(--display); color: var(--accent-text); }
.pay-ref b { font-size: 1.3rem; letter-spacing: .06em; font-family: ui-monospace, Consolas, monospace; }
.pay-text p { margin: 0 0 .6em; white-space: pre-line; }
.order-event { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.order-event > div:nth-child(2) { flex: 1; min-width: 0; }
.order-event h2 { font-size: 1.35rem; margin: 0 0 .15em; }
.order-event p { margin: 0; font-size: .92rem; }
.section-title { font-size: 1.4rem; margin: 28px 0 12px; }
.ticket-list { display: grid; gap: 10px; }
.ticket-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
a.ticket-row:hover { border-color: var(--gold); transform: translateY(-3px); }
.qr-mini { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.qr-mini svg { width: 26px; height: 26px; fill: #101014; }
.tr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tr-info small { color: var(--muted); }
.totals { margin-top: 18px; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; }
.totals span { color: var(--muted); }
.totals .total { border-top: 1px dashed var(--line-2); padding-top: 10px; font-size: 1.15rem; }
.totals .total span { color: var(--text); font-weight: 700; }
.follow { margin-top: 26px; }

.ticket-page { padding: 30px 0 20px; max-width: 460px; }
.ticket { background: #f8f2e4; color: #17140d; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px -30px var(--shadow), 0 0 0 1px var(--soft-2); animation: pop-in .5s var(--ease); }
.ticket-head { position: relative; padding: 26px 24px 28px; color: #fff; isolation: isolate; background: #1a1209; }
.ticket-cover { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center top; filter: saturate(1.15); }
.ticket-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 13, .72), rgba(10, 10, 13, .92)); }
.ticket-head .eyebrow { color: #f4de91; }
.ticket-head h1 { font-size: 1.9rem; margin-bottom: .35em; }
.ticket-head p { margin: 0; color: #e6e0d1; font-size: .95rem; }
.ticket-cut { position: relative; height: 0; }
.ticket-cut i { position: absolute; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); }
.ticket-cut i:first-child { left: -13px; }
.ticket-cut i:last-child { right: -13px; }
.ticket-cut span { position: absolute; left: 20px; right: 20px; top: -1px; border-top: 2px dashed #cfc6af; }
.ticket-body { padding: 32px 26px 26px; text-align: center; }
.ticket-qr { position: relative; width: min(280px, 100%); margin: 0 auto; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid #e3dcc8; overflow: hidden; }
.ticket-qr::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(180deg, transparent, rgba(224, 138, 0, .22), transparent); animation: scanline 4.5s ease-in-out infinite; pointer-events: none; }
.ticket-qr svg { width: 100%; height: auto; display: block; }
.ticket-code { margin: 16px 0 6px; font: 800 1.45rem/1 ui-monospace, Consolas, monospace; letter-spacing: .18em; }
.ticket-body .fine { color: #6b6455; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #ddd5c0; text-align: left; }
.ticket-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: #8a826f; }
.ticket-meta dd { margin: 2px 0 0; font-weight: 700; }
.ticket-void { padding: 26px 10px; }
.ticket-void b { font: 400 1.5rem var(--display); color: #8a1a21; }
.ticket-void p { color: #5f584a; }
.ticket.is-void .ticket-head { filter: grayscale(1); }
.scanned-note { margin: 18px 0 0; padding: 9px 12px; border-radius: 10px; background: #e8f6ee; color: #1b6b43; font-weight: 700; font-size: .9rem; }
.ticket-actions { display: grid; gap: 10px; margin: 22px 0 18px; }

.prose { padding: 50px 0 20px; }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
.prose p, .prose li { color: var(--text-soft); }
.error-page { position: relative; padding: 90px 0; text-align: center; }

.login-body { position: relative; overflow: hidden; min-height: 100vh; display: grid; place-items: center; background: var(--hero-wash), var(--bg); padding: 20px; isolation: isolate; }
.login-wrap { position: relative; width: min(420px, 100%); }
.login-logo { height: 56px; width: auto; margin: 0 auto 22px; }
.login-card { padding: 30px; border-color: var(--line-2); box-shadow: 0 40px 80px -40px var(--shadow); }
.login-card h1 { font-size: 2rem; }
.login-body .theme-toggle { position: fixed; top: 16px; right: 16px; }

/* ---------- admin ---------- */
.adm .site-footer { display: none; }
.adm-bar { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.adm-in { display: flex; align-items: center; gap: 22px; min-height: 64px; flex-wrap: wrap; padding: 6px 0; }
.adm-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.adm-nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .94rem; color: var(--muted); transition: color .2s, background .2s; }
.adm-nav a:hover { color: var(--text); background: var(--soft); }
.adm-nav a.on { color: var(--accent-text); background: rgb(var(--gold-rgb) / .12); }
.adm-user { display: flex; align-items: center; gap: 14px; }
.adm-user form { margin: 0; }
.adm-main { padding: 34px 0 60px; flex: 1; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; text-transform: none; }
.adm-head .eyebrow { margin-bottom: .4rem; }
.adm-head p { margin: .3rem 0 0; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.head-actions form { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; transition: transform .25s var(--ease), border-color .25s; }
.kpi:hover { transform: translateY(-3px); border-color: rgb(var(--gold-rgb) / .5); }
.kpi span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font: 400 2.1rem/1.1 var(--display); margin-top: 4px; background: var(--text-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.ev-list { display: grid; gap: 12px; }
.ev-row { display: flex; align-items: center; gap: 18px; text-decoration: none; padding: 14px 18px; transition: border-color .2s, transform .2s var(--ease); }
.ev-row:hover { border-color: var(--gold); transform: translateY(-2px); }
.ev-thumb { flex: none; width: 54px; height: 70px; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-row-main { flex: 1; min-width: 0; }
.ev-row-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-row-title b { font: 400 1.25rem/1.2 var(--display); }
.ev-row-main p { margin: 2px 0 0; }
.ev-row-stats { display: flex; gap: 24px; text-align: right; }
.ev-row-stats div { display: flex; flex-direction: column; }
.ev-row-stats b { font: 400 1.2rem/1.2 var(--display); }
.ev-row-stats span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.empty { text-align: center; padding: 50px 24px; }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.share-card h2 { font-size: 1.3rem; margin-bottom: .3em; }
.copy-row { display: flex; gap: 8px; margin: 12px 0; }
.copy-row input { font-size: .85rem; padding: 10px 12px; }
.qr-box { width: 150px; padding: 8px; background: #fff; border-radius: 12px; margin: 14px 0; border: 1px solid var(--line); }
.qr-box svg { display: block; width: 100%; height: auto; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; }
.adm .card { margin-bottom: 18px; }
.adm .card h2 { font-size: 1.4rem; margin-bottom: .8em; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0 !important; }
.search { max-width: 320px; }
.type-grid { display: grid; gap: 8px; margin-bottom: 8px; overflow-x: auto; }
.type-head, .type-form { display: grid; grid-template-columns: 1.3fr 1.6fr 100px 100px 100px 60px 70px 76px; gap: 10px; align-items: center; min-width: 860px; }
.type-head span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.type-form input:not([type=checkbox]) { padding: 9px 11px; font-size: .92rem; }
.sold-n { text-align: center; }
.onsale { display: flex; justify-content: center; }
.inline-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.inline-form h3 { font-size: 1.15rem; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; align-items: end; }
.grid-form.two { grid-template-columns: repeat(2, 1fr); }
.grid-form.three { grid-template-columns: repeat(3, 1fr); }
.comp { margin-bottom: 8px; }
.comp summary { cursor: pointer; color: var(--accent-text); font-weight: 600; padding: 6px 0; }
.comp .inline-form { margin-top: 10px; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--soft); }
.tbl code { font: 700 .9rem ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--accent-text); }
.tbl .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tbl .actions form { margin: 0; }
.form-stack .card { margin-bottom: 18px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.thumb { max-height: 160px; width: auto; border-radius: 12px; border: 1px solid var(--line-2); margin-bottom: 10px; }
.thumb-logo { background: repeating-conic-gradient(#8884 0 25%, #8882 0 50%) 0 0/16px 16px; max-height: 90px; padding: 6px; }

/* ---------- door scanner (always dark: used at night) ---------- */
.scan-body { background: #050507; overscroll-behavior: none; }
.scanner { width: min(520px, 100%); margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)); }
.sc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 4px; }
.sc-title { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.sc-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.sc-title small { color: var(--muted); }
.sc-count { text-align: right; line-height: 1; }
.sc-count b { font: 400 2.2rem/1 var(--display); color: var(--gold-2); }
.sc-count span { display: block; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.sc-count i { font-style: normal; }
.sc-cam { position: relative; border-radius: 22px; overflow: hidden; background: #111; aspect-ratio: 4/3; border: 1px solid var(--line-2); }
.sc-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-frame { position: absolute; inset: 14% 22%; pointer-events: none; }
.sc-frame::after { content: ""; position: absolute; left: 4%; right: 4%; top: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 14px var(--gold); animation: scan-sweep 2.6s ease-in-out infinite alternate; }
.sc-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--gold); }
.sc-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.sc-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.sc-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.sc-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.sc-start { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(5, 5, 7, .82); text-align: center; padding: 20px; }
.sc-start[hidden] { display: none; }
.sc-result { border-radius: 20px; padding: 18px 20px; text-align: center; animation: pop .22s var(--ease); color: #fff; }
.sc-result[hidden] { display: none; }
.sc-result.ok { background: #0f6a43; border: 2px solid var(--green); }
.sc-result.used { background: #7a1219; border: 2px solid var(--red-2); }
.sc-result.unpaid, .sc-result.cancelled { background: #7a5a10; border: 2px solid var(--gold); }
.sc-result.invalid { background: #2b2b34; border: 2px solid var(--line-2); }
.sc-r-title { font: 400 2.1rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.sc-r-name { font-size: 1.25rem; font-weight: 700; margin-top: 6px; }
.sc-r-detail { opacity: .9; margin-top: 4px; }
.sc-manual { display: flex; gap: 8px; }
.sc-manual input { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.sc-device { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.sc-device input { padding: 8px 12px; font-size: .9rem; }
.sc-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.sc-recent li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--panel); border-left: 4px solid var(--line-2); }
.sc-recent li.ok { border-left-color: var(--green); }
.sc-recent li.used { border-left-color: var(--red-2); }
.sc-recent li.unpaid, .sc-recent li.cancelled { border-left-color: var(--gold); }
.sc-recent span { color: var(--muted); }

/* ---------- scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- motion ---------- */
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { from { opacity: .72; } to { opacity: 1; } }
@keyframes drift { from { transform: scale(1.1) translate(-1.5%, -1%); } to { transform: scale(1.18) translate(1.5%, 1%); } }
@keyframes sway { from { rotate: -2.2deg; } to { rotate: 2.6deg; } }
@keyframes sway-flip { from { rotate: 2.2deg; } to { rotate: -2.6deg; } }
@keyframes wave { to { transform: translateX(-50%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgb(47 191 122 / .6); } 100% { box-shadow: 0 0 0 12px rgb(47 191 122 / 0); } }
@keyframes ring { 0% { box-shadow: 0 10px 26px -12px rgb(var(--gold-rgb) / .9), 0 0 0 0 rgb(var(--gold-rgb) / .5), inset 0 1px 0 rgba(255, 255, 255, .4); } 70%, 100% { box-shadow: 0 10px 26px -12px rgb(var(--gold-rgb) / .9), 0 0 0 16px rgb(var(--gold-rgb) / 0), inset 0 1px 0 rgba(255, 255, 255, .4); } }
@keyframes rotate-word { 0% { opacity: 0; transform: translateY(30%); } 4%, 29% { opacity: 1; transform: none; } 33.3%, 100% { opacity: 0; transform: translateY(-30%); } }
@keyframes glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes breath { 0%, 55%, 100% { transform: scaleX(0); opacity: 0; } 62% { opacity: 1; } 72%, 84% { transform: scaleX(1); opacity: 1; } 94% { transform: scaleX(.3); opacity: 0; } }
@keyframes flicker { from { transform: scale(1, .86) skewY(-2deg); } to { transform: scale(1.06, 1.1) skewY(2deg); } }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: .95; } 100% { opacity: 0; transform: translate(34px, -150px) scale(.2); } }
@keyframes pop { from { transform: scale(.96); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes pop-in { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scanline { 0%, 100% { top: -30%; } 50% { top: 100%; } }
@keyframes scan-sweep { from { top: 4%; } to { top: calc(100% - 7px); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature { max-width: 340px; }
  .ev-top { grid-template-columns: minmax(200px, 300px) 1fr; gap: 28px; }
  .ev-body { grid-template-columns: 1fr; }
  .ev-side { position: static; }
  .organizer-band, .two-col { grid-template-columns: 1fr; }
  .steps.four { grid-template-columns: repeat(2, 1fr); }
  .two-cards { grid-template-columns: 1fr; }
  .band-seal { opacity: .12; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 32px); }
  .bar { height: 60px; }
  .nav a { padding: 8px 8px; font-size: .88rem; white-space: nowrap; }
  .nav a:first-child, .nav .nav-quiet { display: none; }
  .brand img { height: 30px; }
  .brand-tag { display: none; }
  .steps, .steps.four { grid-template-columns: 1fr; }
  .ev-top { grid-template-columns: 1fr; text-align: left; }
  .ev-main { order: -1; }
  .ev-poster { max-width: 280px; margin-inline: auto; }
  .ev-body { padding-top: 12px; }
  .grid-form.two, .grid-form.three { grid-template-columns: 1fr; }
  .ev-row { flex-wrap: wrap; }
  .ev-row-stats { width: 100%; justify-content: space-between; text-align: left; gap: 12px; }
  .foot { flex-direction: column; }
  .mobile-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); transform: translateY(0); transition: transform .25s var(--ease); }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .site-footer { padding-bottom: 90px; }
  .pay-amount b { font-size: 1.8rem; }
  .status-head { flex-direction: column; gap: 12px; }
  .dragon { max-width: none; width: 190%; height: auto; aspect-ratio: 1440 / 300; margin-left: -90%; margin-top: 10px; }
  .palm { width: 340px; }
  .palm-tl { left: -150px; top: -110px; }
  .palm-tr { right: -160px; top: -100px; }
  .marquee span { font-size: 1.1rem; }
  .adm-user .small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rotator > span:first-child { opacity: 1; transform: none; }
  .dr-flame { transform: scaleX(.8); opacity: 1; }
}
