/* Frontrow: a pretend event ticket site for recording Recklip demos.
   Light and calm like a modern event app: soft tint from the poster, white glass cards,
   a serif for event names, dark pill buttons. */
:root {
  --ink: #17161c;
  --ink-2: #6e6c78;
  --ink-3: #a3a1ad;
  --line: rgba(23, 22, 28, .09);
  --card: rgba(255, 255, 255, .78);
  --card-solid: #fff;
  --coral: #ff7a8a;
  --gold: #ffb85c;
  --violet: #7b5cff;
  --sea: #232a8c;
  --ok: #12a150;
  --ui: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --r: 16px;
  --shadow: 0 1px 2px rgba(23, 22, 28, .06), 0 10px 30px -12px rgba(23, 22, 28, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #f6f5f8; color: var(--ink); font: 16px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
/* the page takes a soft tint from the poster */
body::before { content: ""; position: fixed; inset: -10%; z-index: -1; filter: blur(60px);
  background:
    radial-gradient(40% 35% at 12% 8%, rgba(255, 184, 92, .45), transparent 70%),
    radial-gradient(35% 40% at 92% 18%, rgba(123, 92, 255, .22), transparent 70%),
    radial-gradient(45% 40% at 60% 105%, rgba(255, 122, 138, .32), transparent 70%); }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; gap: 22px; padding: 16px 28px; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--ink-2); text-decoration: none; }
.brand svg { width: 16px; height: 16px; }
.bar .spacer { flex: 1; }
.bar .clock { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.bar .link { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.pill { border: 0; background: rgba(23, 22, 28, .06); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; color: var(--ink); }
.pill:hover { background: rgba(23, 22, 28, .1); }
.me { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--coral)); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; }

main { max-width: 1000px; margin: 0 auto; padding: 8px 24px 64px; }
.screen { display: none; }
.screen.on { display: block; animation: rise .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- buttons ---------- */
.go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 22px; background: var(--ink);
  color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .12s, background .2s, box-shadow .2s; }
.go:hover:not(:disabled) { background: #000; box-shadow: 0 8px 20px -8px rgba(23, 22, 28, .5); }
.go:active:not(:disabled) { transform: scale(.98); }
.go:disabled { background: rgba(23, 22, 28, .12); color: var(--ink-3); cursor: default; }
.go.wide { width: 100%; }
.go.shake { animation: shake .38s; background: #e5484d; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.card { background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--r);
  box-shadow: var(--shadow); }
.card-head { padding: 10px 16px; font-size: 14px; color: var(--ink-2); background: rgba(23, 22, 28, .03); border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.card-body { padding: 16px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* poster frames */
.poster { aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.poster svg { display: block; width: 100%; height: 100%; }

/* ---------- discover ---------- */
.discover { position: relative; min-height: calc(100vh - 70px); display: grid; place-items: center; overflow: hidden; margin: -8px -24px 0; }
.float { position: absolute; width: var(--w); padding: 7px; background: #fff; border-radius: 18px; box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 24px 40px -18px rgba(23, 22, 28, .35);
  transform: rotate(var(--rot)); animation: bob 7s ease-in-out infinite; animation-delay: var(--d); }
.float .poster { border-radius: 12px; box-shadow: none; }
@keyframes bob { 50% { translate: 0 -10px; } }
.hero { position: relative; z-index: 1; text-align: center; max-width: 560px; padding: 24px; }
.hero .mark { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.hero h1 { margin: 0; font-size: clamp(48px, 7vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.hero h1 .glow { display: block; background: linear-gradient(90deg, #ff4fa3, #ff7a59 55%, #ffb020); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--ink-2); font-size: 19px; margin: 18px auto 28px; max-width: 30em; }
.feature { display: flex; align-items: center; gap: 14px; text-align: left; padding: 10px 10px 10px 10px; margin: 0 auto; max-width: 440px; }
.feature .poster { width: 64px; flex: none; border-radius: 10px; box-shadow: none; }
.feature div { flex: 1; min-width: 0; }
.feature b { display: block; font-weight: 600; }
.feature span { font-size: 14px; color: var(--ink-2); }
.feature .live { display: inline-flex; align-items: center; gap: 6px; color: #e5484d; font-weight: 600; }
.feature .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- event ---------- */
.event { display: grid; grid-template-columns: 330px 1fr; gap: 40px; align-items: start; padding-top: 8px; }
.event .left { display: flex; flex-direction: column; gap: 22px; }
.presenter { display: flex; align-items: center; gap: 12px; }
.presenter .logo { width: 38px; height: 38px; border-radius: 10px; background: var(--sea); color: #ffd6e0; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.presenter div { flex: 1; line-height: 1.25; }
.presenter small { color: var(--ink-2); font-size: 13px; display: block; }
.section-label { font-size: 14px; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.hosts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hosts li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: rgba(255, 255, 255, .5); }

.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); background: rgba(255, 255, 255, .6); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px 4px 4px; }
.chip i { width: 20px; height: 20px; border-radius: 6px; background: #e5484d; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 11px; }
.chip b { color: var(--ink); font-weight: 500; }
.event h1 { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.1; letter-spacing: -.01em; margin: 14px 0 22px; }
.facts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.fact { display: flex; align-items: center; gap: 14px; }
.tile { width: 42px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); display: grid; place-items: center; flex: none; overflow: hidden; }
.tile.date { grid-template-rows: 15px 1fr; place-items: stretch; text-align: center; }
.tile.date small { font-size: 9px; font-weight: 700; color: var(--ink-2); background: rgba(23, 22, 28, .05); line-height: 15px; letter-spacing: .04em; }
.tile.date b { font-size: 17px; line-height: 28px; }
.fact b { display: block; font-weight: 600; font-family: var(--serif); font-size: 18px; }
.fact span { color: var(--ink-2); font-size: 14px; }
.tickets-card { margin-bottom: 26px; }
.opens { display: flex; align-items: center; gap: 12px; }
.ring { width: 44px; height: 44px; flex: none; }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: rgba(23, 22, 28, .08); }
.ring .fg { stroke: var(--coral); stroke-linecap: round; transition: stroke-dashoffset 1s linear; transform: rotate(-90deg); transform-origin: center; }
.ring text { font: 700 15px var(--ui); fill: var(--ink); }
.opens b { display: block; font-weight: 600; }
.going { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.stack { display: flex; }
.stack .av { width: 24px; height: 24px; border: 2px solid #fff; margin-left: -7px; font-size: 10px; }
.stack .av:first-child { margin-left: 0; }
.going b { color: var(--ink); font-variant-numeric: tabular-nums; }
.about h2 { font-size: 14px; font-weight: 500; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin: 0 0 12px; }
.about p { margin: 0 0 12px; max-width: 62ch; }
.about em { font-family: var(--serif); }

/* ---------- queue ---------- */
.queue { max-width: 520px; margin: 40px auto 0; text-align: center; }
.queue .card-body { padding: 34px 30px 28px; }
.mini { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mini .poster { width: 44px; border-radius: 8px; box-shadow: none; flex: none; }
.mini b { display: block; font-weight: 600; font-size: 15px; }
.mini span { font-size: 13px; color: var(--ink-2); }
.queue h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0 0 4px; }
.qnum { font-size: 84px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 18px 0 6px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ink), #4a4560); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qnum.turn { font-size: 44px; background: linear-gradient(90deg, #ff4fa3, #ff7a59 55%, #ffb020); -webkit-background-clip: text; background-clip: text; }
.qlead { color: var(--ink-2); margin: 0 0 24px; }
.lane { position: relative; height: 34px; margin: 0 4px 12px; }
.lane .av { position: absolute; top: 4px; transition: left 1s cubic-bezier(.3, .7, .3, 1), opacity .4s; }
.lane .you { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--coral); z-index: 2; }
.lane .gate { position: absolute; right: 0; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--ok); }
.bar-track { height: 6px; border-radius: 3px; background: rgba(23, 22, 28, .07); overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #ff4fa3, #ffb020); transition: width .9s; }
.queue .note { font-size: 13px; color: var(--ink-3); margin: 16px 0 0; }

/* ---------- seats ---------- */
.page-title { font-family: var(--serif); font-weight: 600; font-size: 38px; letter-spacing: -.01em; margin: 10px 0 4px; }
.page-sub { color: var(--ink-2); margin: 0 0 22px; }
.seats { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.venue { padding: 22px; }
.stage { width: 56%; margin: 0 auto 22px; height: 34px; border-radius: 0 0 999px 999px; background: linear-gradient(180deg, rgba(123, 92, 255, .14), rgba(123, 92, 255, .04));
  border-bottom: 2px solid var(--violet); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--violet); }
.sections { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; }
.section { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 16px 14px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.section:hover { border-color: rgba(23, 22, 28, .25); box-shadow: var(--shadow); transform: translateY(-1px); }
.section b { display: block; font-weight: 600; margin-bottom: 2px; }
.section span { font-size: 13px; color: var(--ink-2); }
.section .hot { color: #e5484d; }
.section.balcony { grid-column: 1 / -1; }
.grid-wrap { display: none; }
.venue.zoomed .sections { display: none; }
.venue.zoomed .grid-wrap { display: block; animation: zoom .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes zoom { from { opacity: 0; transform: scale(.9); } }
.grid-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.grid-head b { font-weight: 600; font-size: 18px; }
.seat-grid { display: grid; grid-template-columns: 18px repeat(14, 1fr); gap: 7px; align-items: center; }
.seat-grid .row { color: var(--ink-3); font-size: 11px; font-weight: 600; }
.seat { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(23, 22, 28, .22); background: #fff; cursor: pointer; padding: 0; transition: transform .15s, background .2s, border-color .2s; }
.seat:hover:not(:disabled) { border-color: var(--ink); transform: scale(1.15); }
.seat:disabled { background: rgba(23, 22, 28, .1); border-color: transparent; cursor: not-allowed; }
.seat.just { animation: taken .7s; }
@keyframes taken { 0% { background: #ff4fa3; transform: scale(1.3); } 100% { background: rgba(23, 22, 28, .1); } }
.seat[aria-checked="true"], .seat[aria-checked="true"]:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--coral); transform: scale(1.1); }
.legend { display: flex; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1.5px solid rgba(23, 22, 28, .22); }
.legend .t { background: rgba(23, 22, 28, .1); border-color: transparent; }
.legend .y { background: var(--ink); border-color: var(--ink); }
.order { position: sticky; top: 16px; }
.order ul { list-style: none; padding: 0; margin: 0 0 12px; min-height: 58px; }
.order li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; animation: rise .3s; }
.order .empty { color: var(--ink-3); border: 0; }
.total { display: flex; justify-content: space-between; font-weight: 600; margin: 6px 0 16px; }
.busy { min-height: 20px; margin: 10px 0 0; text-align: center; color: #e5484d; font-size: 14px; font-weight: 500; }

/* hold overlay */
.hold { position: fixed; inset: 0; display: none; place-items: center; background: rgba(246, 245, 248, .7); backdrop-filter: blur(10px); z-index: 10; text-align: center; }
.hold.on { display: grid; }
.hold b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; margin-top: 16px; }
.hold p { color: var(--ink-2); margin: 4px 0 0; }
.spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(23, 22, 28, .1); border-top-color: var(--ink); animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.form { padding: 22px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.form legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; font-weight: 500; }
.field input, .field textarea { width: 100%; background: #fff; border: 1px solid rgba(23, 22, 28, .14); border-radius: 10px; padding: 11px 13px; font-size: 15px;
  transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 46px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 22, 28, .08); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.secure { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin-top: 10px; justify-content: center; }
.summary .card-body { display: flex; flex-direction: column; gap: 12px; }
.summary .top { display: flex; gap: 12px; align-items: center; }
.summary .poster { width: 64px; border-radius: 10px; box-shadow: none; flex: none; }
.summary .top b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; }
.summary .top span { font-size: 13px; color: var(--ink-2); }
.line { display: flex; justify-content: space-between; font-size: 15px; }
.line.sum { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 600; }
.held { display: flex; align-items: center; justify-content: space-between; background: rgba(255, 122, 138, .12); color: #c2304a; border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 500; }
.held b { font-variant-numeric: tabular-nums; }

.verify { max-width: 440px; margin: 32px auto 0; }
.verify .card-body { padding: 26px; }
.verify h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 0 0 6px; }
.verify p { color: var(--ink-2); margin: 0 0 20px; }
.verify p b { color: var(--ink); }
.code { width: 100%; font: 600 34px/1 var(--ui); letter-spacing: .45em; text-align: center; padding: 14px 0 14px .45em; border-radius: 12px; border: 1px solid rgba(23, 22, 28, .14);
  background: #fff; font-variant-numeric: tabular-nums; }
.code::placeholder { color: rgba(23, 22, 28, .18); }
.code:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 22, 28, .08); }
.done { text-align: center; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 14px; display: grid; place-items: center; background: var(--ok); color: #fff;
  font-size: 30px; font-weight: 700; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* ---------- tickets ---------- */
.tickets { text-align: center; padding-top: 8px; }
.tickets h1 { font-family: var(--serif); font-weight: 600; font-size: 46px; margin: 4px 0 6px; }
.tickets > p { color: var(--ink-2); margin: 0; }
.deck { display: flex; justify-content: center; gap: 28px; margin: 34px 0 30px; flex-wrap: wrap; perspective: 1200px; }
.ticket { --mx: 50%; --my: 50%; width: 270px; background: #fff; border-radius: 20px; text-align: left; position: relative; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 30px 50px -22px rgba(23, 22, 28, .45); animation: deal .8s cubic-bezier(.2, .8, .2, 1) both; transition: transform .2s; }
.ticket:nth-child(2) { animation-delay: .15s; }
@keyframes deal { from { transform: translateY(40px) rotate(-6deg); opacity: 0; } }
.ticket .poster { border-radius: 0; box-shadow: none; }
.ticket::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .9), transparent 45%); }
.stub { position: relative; padding: 16px 18px 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; border-top: 2px dashed var(--line); }
.stub::before, .stub::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #f1eef4; }
.stub::before { left: -11px; }
.stub::after { right: -11px; }
.stub dl { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 2px 16px; }
.stub dt { font-size: 11px; color: var(--ink-3); }
.stub dd { margin: 0; font-weight: 700; font-size: 18px; }
.stub .who { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); margin: 0; }
.qr { width: 72px; height: 72px; }
.qr svg { width: 100%; height: 100%; display: block; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ghost { display: inline-flex; align-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); border-radius: 12px; padding: 12px 18px; font-weight: 600;
  text-decoration: none; cursor: pointer; }
.ghost:hover { background: #fff; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 500;
  box-shadow: var(--shadow); animation: rise .3s; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 20; }

@media (max-width: 860px) {
  .event, .seats, .checkout, .cols { grid-template-columns: 1fr; }
  .float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
