/* Black and white only, matched to the public sites:
   ROAR MMA (data-theme=dark)    roarmma.com.au: Montserrat, #181a1b page, 800 UPPERCASE headings, square corners
   ROAR Active (data-theme=light) roar.com.au:   Montserrat, white page, black text, 600 sentence-case headings, square corners */
:root, [data-theme=dark] {
  --bg: #181a1b; --panel: #222425; --panel2: #2c2e30; --line: #3a3c3e;
  --text: #fff; --muted: rgba(255,255,255,.62);
  --ink: #fff; --on-ink: #000;          /* primary button / "signed in" fill */
  --h-weight: 800; --h-case: uppercase; --h-spacing: .01em;
}
[data-theme=light] {
  --bg: #fff; --panel: #f4f4f4; --panel2: #ebebeb; --line: #dcdcdc;
  --text: #000; --muted: #5c5c5c;
  --ink: #000; --on-ink: #fff;
  --h-weight: 600; --h-case: none; --h-spacing: 0;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 Montserrat, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; border-radius: 0; }
[hidden] { display: none !important; }
h1, h2, .h { font-weight: var(--h-weight); text-transform: var(--h-case); letter-spacing: var(--h-spacing); }

/* header */
.bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 30px; width: auto; display: block; }
.sub { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: var(--h-case); letter-spacing: .04em; white-space: nowrap; }
.who { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); white-space: nowrap; }
@media (max-width: 480px) { .brand:has(+ .who:not([hidden])) .sub { display: none; } .who { gap: 6px; } }

main { max-width: 760px; margin: 0 auto; padding: 16px 16px 80px; }
h1 { font-size: 22px; margin: 0 0 4px; line-height: 1.2; }
.muted { color: var(--muted); font-size: 14px; margin: 0; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 16px; margin-bottom: 12px; }
.narrow { max-width: 380px; margin: 40px auto; }
.err { min-height: 1.2em; font-size: 14px; font-weight: 600; margin: 8px 0 0; }

input[type=password], input[type=search], input[type=text], input[type=date], select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); padding: 12px 14px; outline: none; min-height: 48px;
}
input:focus, select:focus { border-color: var(--text); }
[data-theme=dark] input[type=date] { color-scheme: dark; }
#pin, .pin { font-size: 24px; letter-spacing: .3em; text-align: center; margin: 14px 0 10px; }
button { cursor: pointer; border: 0; background: none; }
.primary { width: 100%; background: var(--ink); color: var(--on-ink); padding: 14px; font-weight: 700; min-height: 48px; text-transform: var(--h-case); letter-spacing: .04em; }
.primary:active { opacity: .8; }
.ghost { background: var(--panel); border: 1px solid var(--line); min-width: 48px; min-height: 48px; font-size: 22px; }
.link { color: var(--muted); text-decoration: underline; padding: 4px; }
.back { margin: 0 0 10px; text-decoration: none; font-size: 15px; font-weight: 600; }

.controls { display: grid; gap: 10px; margin-bottom: 14px; }
.datepick { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; }
.toggle { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--text); }
@media (min-width: 640px) { .controls { grid-template-columns: 1fr 1.2fr auto; align-items: center; } }

/* class list */
.list { display: grid; gap: 8px; }
.cls { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; text-align: left; width: 100%; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--text); padding: 14px; }
.cls:active { background: var(--panel2); }
.cls .name { font-size: 17px; font-weight: var(--h-weight); text-transform: var(--h-case); }
.cls .meta { color: var(--muted); font-size: 13px; }
.cls .cap { text-align: right; font-size: 13px; color: var(--muted); }
.cls .cap b { display: block; color: var(--text); font-size: 18px; }
.cls.past { opacity: .5; border-left-color: var(--line); }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }

.classhead { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.counts { display: grid; grid-template-columns: auto auto; gap: 0 6px; align-items: baseline; font-size: 12px; color: var(--muted); white-space: nowrap; }
.counts b { font-size: 22px; color: var(--text); text-align: right; }

/* photos (initials fallback when PGM has none) */
.ph { flex: none; width: 44px; height: 44px; background: var(--panel2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 15px; color: var(--muted); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }

.add label { display: block; margin-bottom: 8px; }
.results { display: grid; gap: 6px; margin-top: 8px; }
.res { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); padding: 8px 10px; text-align: left; width: 100%; min-height: 60px; }
.res .num, .att .num { color: var(--muted); font-size: 13px; }
.res .go { background: var(--ink); color: var(--on-ink); padding: 8px 12px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.res.warn .go { background: transparent; color: var(--text); border: 1px dashed var(--text); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; vertical-align: 2px; text-transform: uppercase; letter-spacing: .04em; }
.tag.warn { border-style: dashed; border-color: var(--text); color: var(--text); }
.tag.done { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* attendees */
.att { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; min-height: 66px; }
.att .nm { font-weight: 600; }
.att.on { border-color: var(--text); }
.sw { position: relative; width: 64px; height: 36px; background: var(--panel2); border: 2px solid var(--line); flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; background: var(--muted); transition: transform .15s, background .15s; }
.sw[aria-checked=true] { background: var(--ink); border-color: var(--ink); }
.sw[aria-checked=true]::after { transform: translateX(28px); background: var(--on-ink); }
.sw:disabled { opacity: .45; }
.section-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 14px 2px 2px; }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(92vw, 520px); background: var(--ink); color: var(--on-ink); padding: 12px 16px; font-size: 15px; font-weight: 600; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.toast.bad, .toast.warn { background: var(--bg); color: var(--text); border: 2px dashed var(--text); }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: s .7s linear infinite; vertical-align: -3px; }
@keyframes s { to { transform: rotate(360deg); } }

/* ================= kiosk ================= */
.kiosk main { max-width: 980px; padding: 24px 24px 60px; }
.kiosk .bar { padding: 16px 24px; }
.kiosk .brand img { height: 40px; }
.k-search { font-size: 26px !important; min-height: 72px !important; text-align: center; border-width: 2px !important; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 20px; }
.k-person { background: var(--panel); border: 2px solid var(--line); padding: 14px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.k-person:active, .k-person:focus-visible { border-color: var(--text); }
.k-person .ph { width: 120px; height: 120px; font-size: 38px; }
.k-person .nm { font-size: 19px; font-weight: 700; }
.k-me { display: flex; align-items: center; gap: 18px; margin: 10px 0 22px; }
.k-me .ph { width: 96px; height: 96px; font-size: 32px; }
.k-me h1 { font-size: clamp(26px, 4vw, 40px); margin: 0; }
.k-classes { display: grid; gap: 12px; }
.k-class { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; width: 100%; text-align: left; background: var(--panel); border: 2px solid var(--line); padding: 20px; min-height: 92px; }
.k-class:active { border-color: var(--text); }
.k-class .name { font-size: 22px; font-weight: var(--h-weight); text-transform: var(--h-case); }
.k-class .meta { color: var(--muted); font-size: 15px; }
.k-class .go { background: var(--ink); color: var(--on-ink); font-weight: 800; padding: 14px 20px; font-size: 17px; text-transform: var(--h-case); white-space: nowrap; }
.k-class.done { border-color: var(--text); }
.k-class.done .go { background: transparent; color: var(--text); border: 2px solid var(--text); }
.k-big-btn { background: var(--panel); border: 2px solid var(--line); padding: 16px 26px; font-size: 18px; font-weight: 700; }
.k-foot { position: fixed; right: 12px; bottom: 10px; }
.k-foot button { color: var(--muted); font-size: 12px; opacity: .5; padding: 10px; }
#setupClub { margin-top: 14px; }
.link.full { width: 100%; margin-top: 10px; }

/* ---- kiosk v2: today's class cards, faces, confirm, guest form ---- */
.k-person { position: relative; }
.k-person.done { border-color: var(--text); opacity: .7; }
.k-person.later { opacity: .45; }
.k-person .tag { position: absolute; top: 8px; right: 8px; margin: 0; }
.k-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 28px 0 16px; }
.k-actions .k-big-btn { width: 100%; min-height: 64px; }
#findBox { margin-top: 8px; }
.k-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.k-yes { width: auto; padding: 16px 30px; font-size: 18px; min-height: 60px; }
.k-row .k-big-btn { min-height: 60px; }
.k-form { display: grid; gap: 14px; max-width: 560px; margin-top: 18px; }
.k-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.k-form input[type=text], .k-form input[type=email], .k-form input[type=tel], .k-form input[type=date] { width: 100%; background: var(--bg); border: 1px solid var(--line); padding: 14px; min-height: 54px; font-size: 18px; outline: none; }
.k-form input:focus { border-color: var(--text); }
[data-theme=dark] .k-form input[type=date] { color-scheme: dark; }
.k-agreements { display: grid; gap: 10px; margin-top: 6px; }
.k-agree { background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; }
.k-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 12px; font-weight: 700; }
.k-check input { width: 26px; height: 26px; accent-color: var(--text); flex: none; }
.k-agree details { margin-top: 8px; }
.k-agree summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.k-agree-text { white-space: pre-wrap; font-size: 14px; color: var(--muted); max-height: 260px; overflow: auto; margin-top: 8px; padding-right: 6px; }

/* gender: three big tap targets */
.k-seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.k-seg legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.k-seg label { display: block !important; }
.k-seg input { position: absolute; opacity: 0; pointer-events: none; }
.k-seg span { display: grid; place-items: center; min-height: 54px; border: 1px solid var(--line); background: var(--bg); font-size: 17px; font-weight: 600; cursor: pointer; }
.k-seg input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.k-seg input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

/* guest photo */
.k-photo { background: var(--panel); border: 1px solid var(--line); padding: 14px; display: grid; gap: 10px; justify-items: center; }
.k-photo-label { font-weight: 600; font-size: 15px; justify-self: start; }
.k-photo-stage { width: 240px; height: 240px; border: 2px solid var(--line); background: var(--bg); overflow: hidden; display: grid; place-items: center; }
.k-photo-stage video, .k-photo-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-photo-stage video { transform: scaleX(-1); }
.k-photo-empty { color: var(--muted); font-size: 14px; }
.k-photo-btns { margin-top: 0; }
.k-photo .muted { text-align: center; }

/* ================= photo layer (images from roarmma.com.au / roar.com.au) ================= */
:root, [data-theme=dark] { --shade: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.88) 100%); }
[data-theme=light] { --shade: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%); }
.k-img img, .k-hero-img img, .k-banner-img img, .k-stage-img img, .thumb img, .c-banner img, .login-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* kiosk hero */
.k-hero { position: relative; overflow: hidden; min-height: clamp(200px, 30vh, 300px); margin: 0 0 22px; display: grid; align-items: end; background: #000; }
.k-hero-img { position: absolute; inset: 0; }
.k-hero-img img { animation: kenburns 30s ease-out alternate infinite; opacity: .7; }
.k-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.1) 100%); }
.k-hero-text { position: relative; z-index: 1; padding: clamp(20px, 4vw, 40px); color: #fff; max-width: 640px; }
.k-hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1; margin: 6px 0 10px; color: #fff; }
.k-hero p { margin: 0; font-size: 18px; color: rgba(255,255,255,.82); }
.k-hero .k-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.k-hero .k-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: #fff; vertical-align: 4px; margin-right: 10px; }

/* kiosk class cards: photo tiles */
.k-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.k-card { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.4; overflow: hidden; text-align: left; padding: 0; background: #000; color: #fff; animation: rise .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.k-card .k-img { position: absolute; inset: 0; }
.k-card .k-img img { transition: transform .5s ease; }
.k-card:active .k-img img { transform: scale(1.04); }
@media (hover: hover) { .k-card:hover .k-img img { transform: scale(1.06); } }
.k-card::after { content: ""; position: absolute; inset: 0; background: var(--shade); pointer-events: none; }
.k-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 20px; display: grid; gap: 2px; }
.k-card .k-time { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.k-card .name { font-size: 21px; font-weight: var(--h-weight); text-transform: var(--h-case); line-height: 1.15; margin-top: 4px; }
.k-card .meta { font-size: 14px; opacity: .8; }
.k-card .k-status { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; opacity: .9; }
.k-arrow { position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; background: #fff; color: #000; font-size: 22px; font-weight: 700; }
.k-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: #fff; color: #000; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; }
.k-card.live .k-badge::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #000; margin-right: 7px; vertical-align: 1px; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.k-card.later { cursor: default; }
.k-card.later .k-img img { filter: grayscale(1) brightness(.8); }
.k-card.later .k-arrow { display: none; }
/* ROAR Active: white label box on the photo, like the roar.com.au class tiles */
[data-theme=light] .k-card .k-body { left: 14px; right: 14px; bottom: 14px; background: #fff; color: #000; padding: 14px 70px 14px 16px; }
[data-theme=light] .k-card .k-arrow { right: 28px; bottom: 28px; width: 42px; height: 42px; background: #000; color: #fff; font-size: 20px; }
[data-theme=light] .k-card .k-time { font-size: 28px; }
[data-theme=light] .k-badge { background: #000; color: #fff; }
[data-theme=light] .k-card.live .k-badge::before { background: #fff; }

/* kiosk class banner */
.k-banner { position: relative; overflow: hidden; min-height: clamp(180px, 26vh, 260px); display: grid; align-items: end; background: #000; color: #fff; margin: 0 0 6px; }
.k-banner-img { position: absolute; inset: 0; }
.k-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.85)); }
.k-banner-text { position: relative; z-index: 1; padding: 22px 26px; }
.k-banner h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; margin: 0 0 6px; color: #fff; }
.k-banner p { margin: 0; font-size: 17px; color: rgba(255,255,255,.85); }
.k-back-pill { position: absolute; z-index: 2; top: 14px; left: 14px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 10px 16px; font-weight: 700; font-size: 15px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* faces */
.k-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.k-person { padding: 0 0 14px; overflow: hidden; animation: rise .35s ease both; transition: transform .15s, border-color .15s; }
.k-person:active { transform: scale(.97); }
.k-person .ph { width: 100%; height: auto; aspect-ratio: 1; border: 0; font-size: 48px; }
.k-person .nm { padding: 0 10px; }
.k-person .tag { top: 10px; right: 10px; }

/* confirm + done: class photo behind, big portrait */
#confirm, #done { position: relative; }
.k-stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.k-stage-img { position: absolute; inset: -30px; }
.k-stage-img img { filter: blur(18px) brightness(.35) saturate(.8); }
[data-theme=light] .k-stage-img img { filter: blur(22px) brightness(1.15) saturate(.6); opacity: .35; }
.k-done { text-align: center; margin-top: 6vh; display: grid; justify-items: center; gap: 14px; animation: rise .35s ease both; }
.k-done .ph { width: 220px; height: 220px; font-size: 64px; border: 4px solid var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.k-done h1 { font-size: clamp(34px, 6vw, 64px); margin: 6px 0 0; line-height: 1.05; }
.k-done p { font-size: 22px; color: var(--muted); margin: 0; }
.k-photo-wrap { position: relative; }
.k-tick { position: absolute; right: -18px; bottom: -18px; width: 68px; height: 68px; border-radius: 50%; background: var(--ink); border: 4px solid var(--bg); animation: pop .5s .15s cubic-bezier(.2,.8,.3,1.3) both; }
.k-tick::after { content: ""; position: absolute; left: 22px; top: 12px; width: 14px; height: 28px; border: solid var(--on-ink); border-width: 0 6px 6px 0; transform: rotate(45deg); }
#done.sorry .k-tick { display: none; }
.kiosk:has(#confirm:not([hidden])) .bar, .kiosk:has(#done:not([hidden])) .bar { background: transparent; border-color: transparent; }
.kiosk:has(#confirm:not([hidden])), .kiosk:has(#done:not([hidden])) { background: transparent; }
html:has(#confirm:not([hidden])), html:has(#done:not([hidden])) { background: var(--bg); }

/* guest form polish */
#guest h1 { font-size: clamp(30px, 5vw, 48px); margin-top: 6px; }

/* ================= coach page photos ================= */
.cls { grid-template-columns: 72px 1fr auto; padding: 0 14px 0 0; border-left: 0; overflow: hidden; min-height: 78px; }
.cls .thumb { width: 72px; height: 100%; min-height: 78px; background: #000; }
.cls.past .thumb img { filter: grayscale(1); }
.cls.live { border-color: var(--text); }
.cls .name { display: inline; }
.cls .tag { vertical-align: 3px; }
.c-banner { height: 150px; overflow: hidden; background: #000; margin-bottom: -1px; position: relative; }
.c-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.5)); }
.c-banner:empty { display: none; }
.login-bg { position: fixed; inset: 0; z-index: -1; background: #000; }
.login-bg img { opacity: .45; }
[data-theme=light] .login-bg img { opacity: .9; }
.login-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.7)); }
body:has(.login-bg:not([hidden])) { background: transparent; }
body:has(.login-bg:not([hidden])) .bar { background: transparent; border-color: transparent; }
body:has(.login-bg:not([hidden])) .bar .sub { color: rgba(255,255,255,.8); }
[data-theme=light] body:has(.login-bg:not([hidden])) .brand img { filter: invert(1); }
.login-card { margin-top: 14vh; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.k-banner-img img, .c-banner img { object-position: center 30%; }
.cls .thumb { position: relative; align-self: stretch; height: auto; }
.cls .thumb img { position: absolute; inset: 0; }

/* ================= iPad / touch tuning ================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.kiosk, .kiosk * { touch-action: manipulation; }                       /* no double-tap zoom, instant taps */
.kiosk { overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
.kiosk input, .kiosk textarea, .k-agree-text { -webkit-user-select: text; user-select: text; }
.kiosk img { -webkit-touch-callout: none; -webkit-user-drag: none; pointer-events: none; }
button { -webkit-touch-callout: none; }
.kiosk main { max-width: 1180px; padding: 20px max(24px, env(safe-area-inset-right)) 70px max(24px, env(safe-area-inset-left)); }
.kiosk .bar { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.k-card, .k-person, .k-big-btn, .primary, .k-back-pill { transition: transform .12s ease, border-color .15s; }
.k-card:active, .k-big-btn:active, .primary:active, .k-back-pill:active { transform: scale(.98); }
/* 2 columns portrait, 3-4 landscape */
.k-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
@media (min-width: 1100px) { .k-cards { grid-template-columns: repeat(4, 1fr); } .k-card { aspect-ratio: 4 / 4.2; } }
@media (orientation: portrait) and (min-width: 700px) { .k-cards { grid-template-columns: repeat(2, 1fr); } .k-card { aspect-ratio: 4 / 3.3; } }
@media (orientation: landscape) and (max-height: 900px) { .k-hero { min-height: 200px; } .k-hero h1 { font-size: clamp(34px, 5vw, 56px); } .k-banner { min-height: 180px; } }
.k-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
@media (min-width: 1100px) { .k-grid { grid-template-columns: repeat(6, 1fr); } }
/* guest form: centred, two columns on iPad */
#guest { max-width: 760px; margin: 0 auto; }
.k-form { max-width: none; }
@media (min-width: 700px) {
  .k-form { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .k-form > .k-seg, .k-form > .k-photo, .k-form > .k-agreements, .k-form > button, .k-form > .err, .k-form > label:nth-child(3) { grid-column: 1 / -1; }
}
.k-done { min-height: calc(100vh - 160px); min-height: calc(100dvh - 160px); align-content: center; margin-top: 0; }
#exit, #setup { margin-top: 12vh; }

/* photos fade in once loaded instead of popping */
.k-img img, .k-hero-img img, .k-banner-img img, .k-stage-img img { opacity: 0; transition: opacity .45s ease, transform .5s ease; }
.k-img.in img, .k-banner-img.in img, .k-stage-img.in img { opacity: 1; }
.k-hero-img.in img { opacity: .7; }
[data-theme=light] .k-stage-img.in img { opacity: .35; }
