/* ===== The Laughter Cave: styles =====
   Palette comes from the club's logo: crimson, black, cave amber, white.
   Display type: Bricolage Grotesque. Body and UI: Figtree. */
:root {
  --ink: #121010; --ink-2: #2b2525; --red: #c8141e; --red-d: #7d0a12; --amber: #e39a45; --amber-d: #b8711f;
  --paper: #fff; --fog: #f1f1f3; --line: #dcdce0; --muted: #5d5858; --ok: #14804a; --ok-bg: #e4f5ec; --bad: #b3121b; --bad-bg: #fde8ea;
  --font-d: 'Bricolage Grotesque', 'Archivo Black', Impact, system-ui, sans-serif;
  --font-b: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1120px; --r: 14px; --bg: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.55 var(--font-b); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.8rem, 5.4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .gap { gap: 12px; } .wrapx { flex-wrap: wrap; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; }

/* ----- buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 2px solid transparent; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .12s, background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; } .btn--primary:hover { background: var(--red-d); }
.btn--dark { background: var(--ink); color: #fff; } .btn--dark:hover { background: var(--ink-2); }
.btn--line { border-color: currentColor; background: transparent; } .btn--line:hover { background: rgba(127,127,127,.14); }
.btn--ghost { background: transparent; color: inherit; } .btn--ghost:hover { background: var(--fog); }
.btn--danger { background: var(--bad); color: #fff; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; } .iconbtn:hover { background: rgba(127,127,127,.18); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--fog); }
.chip--red { background: var(--red); color: #fff; } .chip--ok { background: var(--ok-bg); color: var(--ok); } .chip--bad { background: var(--bad-bg); color: var(--bad); } .chip--amber { background: #fbe9d2; color: #7a4a0d; } .chip--dark { background: var(--ink); color: #fff; }

/* ----- forms ----- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: .92rem; }
.field small { color: var(--muted); }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(227,154,69,.55); }
.field.bad input, .field.bad select { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: .87rem; font-weight: 600; min-height: 0; }
.formerr { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 10px 14px; font-weight: 600; margin-bottom: 14px; }
.grid2 { display: grid; gap: 0 14px; } @media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 46px; height: 26px; border-radius: 99px; background: #b9b5b5; position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--ok); } .switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ----- public header ----- */
.top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 2px solid var(--ink); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .cave { width: 38px; height: auto; }
.brand b { font-family: var(--font-d); font-weight: 800; font-size: 1.15rem; line-height: 1; letter-spacing: -.02em; }
.brand b small { display: block; font: 600 .72rem/1.3 var(--font-b); color: var(--red); letter-spacing: 0; }
.nav { display: none; gap: 6px; align-items: center; }
.nav a:not(.btn) { padding: 8px 14px; font-weight: 600; text-decoration: none; border-radius: 99px; } .nav a:not(.btn):hover { background: var(--fog); }
@media (min-width: 720px) { .nav { display: flex; } .top__cta { display: none; } }

/* ----- sponsor banners ----- */
.ads { position: relative; background: var(--fog); }
.ads__label { position: absolute; z-index: 2; top: 6px; left: 10px; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: rgba(18,16,16,.72); color: #fff; }
.ads__track { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; aspect-ratio: 3 / 1; overflow: hidden; }
@media (min-width: 720px) { .ads { max-width: 820px; margin: 14px auto; border-radius: 12px; overflow: hidden; } .ads__track { aspect-ratio: 5 / 1; } }
.ads__slide { position: absolute; inset: 0; opacity: 0; transform: translateX(3%); transition: opacity .5s, transform .5s; pointer-events: none; }
.ads__slide.on { opacity: 1; transform: none; pointer-events: auto; }
.ads__slide a, .ads__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ads__dots { position: absolute; z-index: 2; right: 10px; bottom: 6px; display: flex; gap: 2px; }
.ads__dots button { width: 24px; height: 24px; background: none; border: 0; padding: 0; position: relative; }
.ads__dots button::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.ads__dots button.on::after { background: #fff; transform: scale(1.25); }

/* ----- hero ----- */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero__in { display: grid; gap: 28px; padding: 40px 20px 56px; max-width: var(--maxw); margin: 0 auto; }
.hero h1 { font-size: clamp(3rem, 12.5vw, 6.4rem); line-height: .96; letter-spacing: -.035em; }
.hero p.lead { font-size: 1.15rem; max-width: 30ch; color: #e8e2e2; margin: 20px 0 26px; }
.hero__art { position: relative; min-height: 400px; }
.hero__cave { position: absolute; top: 0; left: 50%; width: min(78%, 340px); transform: translateX(-50%); }
.hero__stub { position: absolute; left: 0; right: 0; bottom: 0; transform: rotate(-2.2deg); filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.hero__stub .stub { --bg: var(--ink); }
.hero__empty { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; color: var(--ink); border-radius: var(--r); padding: 22px; transform: rotate(-2deg); font-weight: 600; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 72px 24px 80px; gap: 40px; }
  .hero__art { min-height: 470px; } .hero__cave { width: 72%; left: 56%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__stub { animation: drop .7s cubic-bezier(.2, 1.3, .4, 1) .15s both; }
  @keyframes drop { from { transform: translateY(-40px) rotate(3deg); opacity: 0; } to { transform: rotate(-2.2deg); opacity: 1; } }
}

.trust { background: var(--red); color: #fff; }
.trust ul { list-style: none; margin: 0 auto; padding: 14px 20px; max-width: var(--maxw); display: grid; gap: 8px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 10px; }
@media (min-width: 720px) { .trust ul { grid-template-columns: repeat(3, auto); justify-content: space-between; } }

/* ----- shows + ticket stubs ----- */
.sec { padding: 56px 0; }
.sec__head { margin-bottom: 26px; display: grid; gap: 8px; } .sec__head p { color: var(--muted); max-width: 52ch; margin: 0; }
.shows { --bg: #fff; display: grid; gap: 22px; }
@media (min-width: 900px) { .shows { grid-template-columns: 1fr 1fr; } }
.stub { position: relative; display: grid; grid-template-columns: 1fr 88px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); }
.stub::before, .stub::after { content: ''; position: absolute; right: 77px; width: 20px; height: 10px; background: var(--bg); border: 2px solid var(--ink); z-index: 2; }
.stub::before { top: -2px; border-top: 0; border-radius: 0 0 20px 20px; }
.stub::after { bottom: -2px; border-bottom: 0; border-radius: 20px 20px 0 0; }
.stub__main { padding: 18px 16px 18px 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.stub__main h3 { font-size: 1.5rem; overflow-wrap: anywhere; }
.stub__meta { display: grid; gap: 4px; color: var(--muted); font-size: .94rem; } .stub__meta div { display: flex; gap: 8px; align-items: center; } .stub__meta .ico { width: 17px; height: 17px; color: var(--red); }
.stub__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.stub__price { font-weight: 700; } .stub__price small { font-weight: 500; color: var(--muted); }
.stub__date { border-left: 2px dashed var(--ink); background: var(--red); color: #fff; display: grid; place-content: center; text-align: center; padding: 10px 4px; border-radius: 0 calc(var(--r) - 2px) calc(var(--r) - 2px) 0; font-family: var(--font-d); }
.stub__date b { font-size: 2.6rem; font-weight: 800; line-height: .9; letter-spacing: -.03em; display: block; }
.stub__date span { font: 700 .9rem var(--font-b); display: block; } .stub__date em { font: 500 .8rem var(--font-b); font-style: normal; opacity: .92; display: block; margin-top: 4px; }
.stub.soldout .stub__date { background: #6b6666; } .stub.soldout h3 { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--red); }
.empty { border: 2px dashed var(--line); border-radius: var(--r); padding: 34px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-family: var(--font-d); font-size: 1.3rem; margin-bottom: 4px; }

/* ----- videos ----- */
.vids { background: var(--ink); color: #fff; }
.vids .sec__head p { color: #cfc8c8; }
.vplayer { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; border: 2px solid #fff; }
.vplayer iframe, .vplayer img, .vplayer button.poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.poster { background: linear-gradient(135deg, var(--red-d), var(--red)); color: #fff; display: grid; place-items: center; align-content: center; gap: 10px; border: 0; padding: 20px; text-align: center; }
.poster.t2 { background: linear-gradient(135deg, #7a4a0d, var(--amber)); } .poster.t3 { background: linear-gradient(135deg, #1d1818, #4a3f3f); }
.poster .playdot { width: 68px; height: 68px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.35); } .poster .playdot .ico { width: 30px; height: 30px; margin-left: 3px; }
.poster strong { font-family: var(--font-d); font-size: 1.3rem; line-height: 1.1; max-width: 22ch; }
.vlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 720px) { .vlist { grid-template-columns: repeat(5, 1fr); } }
.vthumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #000; } .vthumb.on { border-color: var(--amber); }
.vthumb .poster { position: absolute; inset: 0; padding: 6px; } .vthumb .poster strong { font-size: .78rem; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcap { margin: 14px 0 0; font-weight: 600; }

/* ----- footer ----- */
.foot { background: var(--red-d); color: #fff; padding: 44px 0 90px; }
.foot__grid { display: grid; gap: 28px; } @media (min-width: 720px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot h4 { font-size: 1.1rem; margin-bottom: 10px; }
.foot a { text-underline-offset: 3px; } .foot .soc { display: flex; gap: 10px; margin-top: 4px; }
.foot .soc a { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; } .foot .soc a:hover { background: #fff; color: var(--red-d); }
.foot .brand b small { color: var(--amber); } .foot small.copy { display: block; margin-top: 28px; opacity: .8; }

.wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; gap: 0; min-height: 58px; height: 58px; max-width: calc(100vw - 32px); padding: 0 18px 0 0; background: #1fa855; color: #fff; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.3); overflow: hidden; }
.wa__icon { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; }
.wa__icon .ico { width: 34px; height: 34px; max-width: none; display: block; flex: none; }
.wa__label { display:block; flex:0 0 auto; max-width:180px; overflow:hidden; padding-right:18px; white-space:nowrap; font-size:1rem; line-height:1; font-weight:800; opacity:1; transition:max-width .28s ease, padding .28s ease, opacity .18s ease; }
.wa.is-compact .wa__label { max-width:0; padding-right:0; opacity:0; }
@media (prefers-reduced-motion: reduce) { .wa__label { transition:none; } }

/* ----- layers (sheets and dialogs) ----- */
.layer { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; }
.layer__scrim { position: absolute; inset: 0; background: rgba(18,16,16,.66); opacity: 0; transition: opacity .18s; }
.layer__panel { position: relative; background: #fff; color: var(--ink); width: 100%; max-height: 94dvh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; transform: translateY(40px); opacity: 0; transition: transform .2s, opacity .2s; outline: none; }
.layer.in .layer__scrim { opacity: 1; } .layer.in .layer__panel { transform: none; opacity: 1; }
.layer.leaving .layer__scrim { opacity: 0; } .layer.leaving .layer__panel { transform: translateY(30px); opacity: 0; }
.layer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px 6px 22px; }
.layer__head h2 { font-size: 1.5rem; }
.layer__body { padding: 8px 22px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.layer--dialog { align-items: center; justify-items: center; padding: 16px; } .layer--dialog .layer__panel { border-radius: 20px; max-width: 460px; }
@media (min-width: 760px) { .layer--sheet { align-items: center; justify-items: center; padding: 24px; } .layer--sheet .layer__panel { max-width: 700px; border-radius: 22px; max-height: 92dvh; } .layer--wide .layer__panel { max-width: 860px; } }

/* show sheet */
.facts { display: grid; gap: 8px; margin: 4px 0 14px; } .facts div { display: flex; gap: 10px; align-items: flex-start; } .facts .ico { color: var(--red); margin-top: 3px; }
.map { position: relative; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--fog); margin: 12px 0 8px; } .map iframe { width: 100%; height: 100%; border: 0; }
.hr { height: 2px; background: var(--ink); margin: 22px 0 16px; border: 0; }
.ttype { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 10px; transition: border-color .15s, background .15s; }
.ttype.on { border-color: var(--ink); background: #fbf7f2; } .ttype.out { opacity: .55; }
.ttype .tr { display: grid; justify-items: end; gap: 8px; }
.ttype b { font-family: var(--font-d); font-size: 1.15rem; } .ttype .sub { color: var(--muted); font-size: .9rem; } .ttype .price { font-weight: 800; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: #fff; display: grid; place-items: center; } .qty button:hover:not([disabled]) { background: var(--amber); } .qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 34px; text-align: center; font-weight: 800; }
.paybar { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); margin: 16px -22px calc(-22px - env(safe-area-inset-bottom)); padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--ink); display: grid; gap: 10px; }
.paybar .tot { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; }
.paybar .paynote { font-size: .84rem; color: var(--muted); text-align: center; margin: 0; }

/* confirmation tickets */
.done { text-align: center; padding-top: 6px; } .done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 10px; } .done .tick .ico { width: 34px; height: 34px; }
.done h3 { font-size: 1.9rem; margin-bottom: 6px; }
.tix { display: grid; gap: 12px; margin: 18px 0; text-align: left; }
.tix .stub { --bg: #fff; grid-template-columns: 1fr; } .tix .stub::before, .tix .stub::after { display: none; }
.tix .stub__main { padding: 16px; }
.code { font-family: var(--font-d); font-weight: 800; font-size: 2.1rem; letter-spacing: .04em; line-height: 1; word-break: break-all; }
.tix .stub__act { border-top: 2px dashed var(--ink); padding: 12px 16px; margin: 0; justify-content: space-between; }

/* toasts */
#toasts { position: fixed; z-index: 200; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 28px rgba(0,0,0,.35); animation: tin .2s both; border-left: 6px solid var(--amber); }
.toast--ok { border-color: #35c27b; } .toast--bad { border-color: #ff6670; } .toast.out { opacity: 0; transition: opacity .25s; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(127,127,127,.35); border-top-color: currentColor; animation: sp .7s linear infinite; display: inline-block; } @keyframes sp { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 50px; color: var(--muted); }

/* ======================= dashboard ======================= */
.adm { min-height: 100dvh; background: var(--fog); }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: var(--ink); }
.login__card { width: min(100%, 420px); background: #fff; border-radius: 20px; padding: 28px 24px; }
.login__card .brand { margin-bottom: 18px; } .login__card h1 { font-size: 2rem; margin-bottom: 4px; }
.demohint { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fbe9d2; font-size: .88rem; } .demohint code { background: #fff; padding: 1px 6px; border-radius: 6px; }
.shell { display: grid; grid-template-columns: 1fr; }
.side { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 270px; background: var(--ink); color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
.side.open { transform: none; }
.side .brand { color: #fff; padding: 4px 8px 16px; } .side .brand b small { color: var(--amber); }
.side a.nv { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; font-weight: 600; color: #e6dfdf; position: relative; }
.side a.nv:hover { background: var(--ink-2); } .side a.nv.on { background: #fff; color: var(--ink); } .side a.nv.on::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 5px; border-radius: 0 4px 4px 0; background: var(--red); }
.side .who { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid #4a4141; font-size: .9rem; } .side .who b { display: block; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55; }
.main { min-width: 0; }
.bar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 60px; }
.bar h1 { font-size: 1.35rem; flex: 1; }
.page { padding: 18px 14px 60px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 960px) { .shell { grid-template-columns: 270px 1fr; } .side { position: sticky; top: 0; height: 100dvh; transform: none; } .bar .menu, .scrim { display: none; } .page { padding: 28px 28px 70px; } }
.card { background: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: 18px; margin-bottom: 18px; } .card h3 { margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; } @media (min-width: 800px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: 14px; } .tile b { display: block; font: 800 1.9rem/1.05 var(--font-d); letter-spacing: -.02em; margin-top: 4px; word-break: break-word; } .tile span { color: var(--muted); font-size: .9rem; font-weight: 600; } .tile.hot { background: var(--red); color: #fff; } .tile.hot span { color: #ffd9dc; }
.cols { display: grid; gap: 18px; } @media (min-width: 900px) { .cols { grid-template-columns: 1.4fr 1fr; } }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 18px; } .bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bars i { display: block; width: 100%; background: var(--red); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; } .bars i em { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font: 700 .72rem var(--font-b); font-style: normal; }
.bars small { font-size: .62rem; color: var(--muted); margin-top: 4px; white-space: nowrap; transform: rotate(-40deg); transform-origin: top right; height: 22px; } @media (min-width: 700px) { .bars small { font-size: .7rem; transform: none; } }
.meter { height: 12px; border-radius: 99px; background: var(--fog); overflow: hidden; margin: 6px 0 2px; border: 1px solid var(--line); } .meter i { display: block; height: 100%; background: var(--red); } .meter.ok i { background: var(--ok); }
.li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); } .li:last-child { border: 0; padding-bottom: 0; }
.li .top2 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tbl { display: grid; gap: 10px; }
.item { display: grid; gap: 8px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; } .item.v { border-color: var(--bad); background: #fff9f9; }
.item .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.perms { display: grid; gap: 10px; margin: 6px 0 14px; } .perms label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; } .perms label small { display: block; font-weight: 400; color: var(--muted); }
.perms input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--red); }
.trow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 10px; position: relative; } .trow .field { margin: 0; } .trow .rm { grid-column: 1 / -1; justify-self: end; }
@media (min-width: 700px) { .trow { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; } .trow .rm { grid-column: auto; } }
/* check-in */
.door { text-align: center; }
.door input { font: 800 1.9rem var(--font-d); text-align: center; letter-spacing: .08em; text-transform: uppercase; min-height: 64px; }
.result { margin-top: 16px; border-radius: 18px; padding: 22px 16px; border: 3px solid; } .result b.big { display: block; font: 800 2.2rem/1.05 var(--font-d); }
.result.ok { background: var(--ok-bg); border-color: var(--ok); color: #0c5a33; } .result.bad { background: var(--bad-bg); border-color: var(--bad); color: #7d0a12; } .result.warn { background: #fff4de; border-color: var(--amber-d); color: #6b4208; }
.result p { margin: 6px 0 0; }
.door-ticket-type { display:grid; grid-template-columns:1fr auto; align-items:center; gap:5px 12px; width:min(100%,440px); margin:14px auto 0; padding:12px 14px; border:2px solid currentColor; border-radius:12px; background:rgba(255,255,255,.72); text-align:left; }
.door-ticket-type span { font-size:.76rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; opacity:.8; }
.door-ticket-type b { justify-self:end; max-width:100%; overflow-wrap:anywhere; padding:6px 10px; border-radius:99px; background:var(--ink); color:#fff; font-size:1.05rem; }
.door-ticket-type small { grid-column:1/-1; font-size:.88rem; font-weight:700; opacity:.9; }
.thumb { width: 100%; max-width: 360px; aspect-ratio: 5 / 1; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); }
.drop { border: 2px dashed var(--ink); border-radius: 12px; padding: 18px; text-align: center; background: #fff; } .drop input { border: 0; padding: 0; min-height: 0; }
.note { background: #fbe9d2; border-radius: 12px; padding: 10px 14px; font-size: .92rem; margin-bottom: 14px; }
.back { display: inline-block; margin-bottom: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.foot__logo { width: 160px; height: 130px; object-fit: contain; background: #fff; border-radius: 18px; padding: 8px; }


/* ----- current uploaded logo and branded loading state ----- */
.brand { min-width: 0; gap: 0; }
.brand .brand__logo { display: block; width: min(132px, 34vw); height: auto; max-height: 86px; object-fit: contain; }
.top__in { min-height: 92px; }
.hero__logo { position: absolute; top: 0; left: 50%; width: min(78%, 340px); height: auto; max-height: 270px; transform: translateX(-50%); object-fit: contain; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 18px 42px rgba(0,0,0,.3); }
.side .brand { width: 100%; justify-content: center; padding: 8px; margin-bottom: 12px; border-radius: 14px; background: #fff; }
.side .brand .brand__logo { width: 100%; max-width: 176px; max-height: 132px; }
.login__card .brand { justify-content: center; margin-bottom: 18px; }
.login__card .brand .brand__logo { width: 164px; max-height: 132px; }
.foot__logo { width: 160px; height: 130px; object-fit: contain; background: #fff; border-radius: 18px; padding: 8px; }
.loading { min-height: 180px; display: grid; place-items: center; padding: 42px 20px; }
.loading--screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  margin: 0;
  background: var(--paper);
}
.loading__logo { display: block; width: 108px; height: 88px; object-fit: contain; padding: 8px; background: #fff; border-radius: 18px; box-shadow: 0 8px 28px rgba(18,16,16,.12); animation: logo-pulse 1.35s ease-in-out infinite; }
@keyframes logo-pulse { 0%,100% { transform: scale(.94); opacity: .82; } 50% { transform: scale(1.04); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .loading__logo { animation: none; } }

/* ----- dashboard overview: prevent cards, figures and chart labels overflowing ----- */
.page { width: 100%; min-width: 0; max-width: 100%; overflow-x: clip; }
.page .card, .page .tile, .page .cols, .page .tiles { min-width: 0; }
.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { min-width: 0; padding: clamp(11px, 1.7vw, 14px); }
.tile span { display: block; font-size: clamp(.72rem, 1.2vw, .9rem); line-height: 1.3; }
.tile b { font-size: clamp(1.18rem, 4.5vw, 1.9rem); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cols { grid-template-columns: minmax(0, 1fr); }
.cols > .card { min-width: 0; }
.page .card .top2 { flex-wrap: wrap; align-items: flex-start; }
.page .card .row.between { flex-wrap: wrap; gap: 8px; }
.sales-chart { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
.sales-chart .bars { display:grid; grid-template-columns:repeat(14,minmax(0,1fr)); width:100%; min-width:0; max-width:100%; gap:clamp(2px,.35vw,4px); overflow:hidden; }
.sales-chart .bars > div { width:auto; min-width:0; max-width:100%; }
.sales-chart .bars i { width:100%; min-width:0; max-width:100%; }
.sales-chart .bars i em { max-width:100%; overflow:hidden; font-size:clamp(.48rem,1.6vw,.68rem); }
.sales-chart .bars small { width:100%; max-width:100%; font-size:.56rem; writing-mode:vertical-rl; transform:none; height:38px; margin-top:5px; white-space:nowrap; overflow:hidden; }
.bar h1 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .page { padding: 14px 10px 50px; }
  .card { padding: 14px; }
  .tiles { gap: 8px; }
  .tile { padding: 11px; }
  .tile b { font-size: clamp(1.12rem, 6vw, 1.5rem); }
  .bar h1 { font-size: 1.15rem; }
}
@media (min-width: 700px) {
  .sales-chart .bars small { font-size: .7rem; writing-mode: horizontal-tb; height: 22px; margin-top: 4px; }
}
@media (min-width: 860px) {
  .cols { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ----- reduce dashboard brand mark and branded loader ----- */
.side .brand {
  width: auto;
  justify-content: flex-start;
  padding: 4px 8px 12px;
  margin: 0 0 4px;
  border-radius: 0;
  background: transparent;
}
.side .brand .brand__logo {
  width: 46px;
  max-width: 46px;
  height: auto;
  max-height: 38px;
}
.login__card .brand {
  justify-content: flex-start;
}
.login__card .brand .brand__logo {
  width: 68px;
  max-height: 56px;
}
.loading__logo {
  width: 48px;
  height: auto;
  max-height: 40px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.loading { padding: 28px 16px; }
.loading--screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  margin: 0;
  background: var(--paper);
}
