/* Ember Picturehouse — the cinema flow, mobile-first card on the Sightline system. */
body.cinema { --accent: #ff6a1a; --accent-ink: #1d0a01; --card: #0b0a0d; --page: #050407; --line2: rgba(255, 255, 255, .07); --dim: #8f8c95; background: var(--page); }
.page { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 80% at 50% 0%, #0d0b10 0%, var(--page) 60%); }
.card {
  position: relative; width: min(390px, 100vw); height: min(820px, calc(100dvh - 48px)); min-height: 600px;
  border-radius: 24px; overflow: hidden; background: var(--card); isolation: isolate;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04);
  --u: 1px;
}
.card canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 1; touch-action: none; }
.fadeblack { position: absolute; inset: 0; background: #000; opacity: 0; z-index: 2; pointer-events: none; }

/* chrome */
.c-head { position: absolute; z-index: 6; left: 16px; right: 16px; top: 16px; display: flex; align-items: center; justify-content: space-between; }
.round { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #19161b; color: #fff; flex: none; transition: transform .18s var(--out), background .2s; }
.round:hover { background: #241f27; }
.round:active { transform: scale(.92); }
.round svg { width: 15px; height: 15px; }
.round.glass { background: rgba(10, 8, 10, .78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.c-head .t { text-align: center; line-height: 1.25; }
.c-head .t b { display: block; font-size: 17px; font-weight: 640; letter-spacing: -.01em; }
.c-head .t span { font-size: 12.5px; color: var(--dim); }
.times { position: absolute; z-index: 6; left: 50%; top: 66px; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: #141216; }
.times button { display: flex; align-items: baseline; gap: 6px; height: 28px; padding: 0 13px; border-radius: 999px; font-family: var(--f-num); font-size: 14px; font-weight: 520; color: var(--dim); white-space: nowrap; transition: background .25s, color .25s; }
.times button small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #5f5c66; }
.times button[aria-selected="true"] { background: #f2efe9; color: #121014; }
.times button[aria-selected="true"] small { color: #77727c; }
.legend { position: absolute; z-index: 6; left: 0; right: 0; bottom: 142px; display: flex; justify-content: center; gap: 16px; font-size: 12px; color: #98949e; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg.av { background: #2b2a30; } .lg.tk { box-shadow: inset 0 0 0 1px #35343b; } .lg.lo { background: #1d3b40; } .lg.se { background: var(--accent); }
.bar { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 118px; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #100f12; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bar-l { padding-top: 4px; }
.bar-l .empty { font-size: 14px; color: #9a98a0; }
.bar-l .dash { display: block; width: 15px; height: 1.5px; background: #fff; margin-top: 10px; }
.bar-l .row { font-size: 13px; color: var(--dim); }
.bar-l .price { font-family: var(--f-num); font-size: 22px; font-weight: 620; letter-spacing: -.02em; margin-top: 2px; }
.go { height: 46px; padding: 0 30px; border-radius: 999px; font-size: 16.5px; font-weight: 620; background: #1d1c21; color: #4a4850; transition: transform .18s var(--out), filter .2s; }
.go:not(:disabled) { background: var(--accent); color: var(--accent-ink); }
.go:not(:disabled):hover { filter: brightness(1.07); }
.go:not(:disabled):active { transform: scale(.95); }

/* map layer: scales about your seat during the hand-off */
.map { position: absolute; inset: 0; z-index: 3; transform-origin: 0 0; }
.map.moving { will-change: transform, opacity; }
.arc { position: absolute; left: 4%; width: 92%; height: 40px; top: 104px; overflow: visible; }
.spill { position: absolute; left: 6%; right: 6%; top: 120px; height: 130px; background: radial-gradient(60% 100% at 50% 0%, rgba(232, 222, 210, .07), transparent 70%); pointer-events: none; }
.scr-label { position: absolute; left: 0; right: 0; top: 150px; text-align: center; font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase; color: #6d6a72; padding-left: .42em; }
.tiles { position: absolute; inset: 0; }
.tile {
  position: absolute; left: 0; top: 0; padding: 0; border-radius: 4px; background: #2a292f;
  transform: translate(-50%, -50%); display: grid; place-items: center; font-family: var(--f-num); font-size: 9.5px; font-weight: 650; color: transparent;
  border: 1px solid transparent;
}
@media (hover: hover) { .tile { transition: background .12s; } }
.tile:hover { background: #3a3940; }
.tile { cursor: pointer; }
.tile.taken { background: transparent; border-color: #2c2b31; cursor: default; }
.tile.lounger { background: #1c3a3f; }
.tile.lounger:hover { background: #26505a; }
.tile.taken.lounger { background: transparent; border-color: #1f3337; }
.tile.sel { background: var(--accent); color: #2a0f02; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rowlbl { position: absolute; transform: translate(-50%, -50%); font-size: 12px; color: #55525b; pointer-events: none; }
.tile.flip { animation: tilein .45s var(--out) both; }
@keyframes tilein { from { opacity: 0; } }

/* seat view HUD */
.hud { position: absolute; z-index: 7; left: 16px; right: 16px; top: 16px; display: flex; align-items: center; opacity: 0; pointer-events: none; }
.hud.on { pointer-events: auto; }
.hud-pill { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 15px; border-radius: 999px; background: rgba(8, 6, 8, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); font-size: 15px; font-weight: 540; white-space: nowrap; }
.hud-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* bottom sheet */
.sheet {
  position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; padding: 30px 20px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: rgba(17, 11, 14, .82);
  backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transform: translateY(102%); transition: transform .47s cubic-bezier(.22, 1, .36, 1);
}
.sheet.on { transform: none; }
.sheet.out { transition: transform .22s cubic-bezier(.55, 0, .9, .4); }
.grab { position: absolute; left: 50%; top: 14px; width: 36px; height: 3px; border-radius: 3px; background: #3c3843; transform: translateX(-50%); }
.sh-top { display: flex; justify-content: space-between; gap: 12px; }
.eyebrow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sheet h2 { margin: 6px 0 2px; font-family: var(--f-num); font-weight: 620; font-size: 26px; letter-spacing: -.025em; }
.sheet .sub { font-size: 14px; color: #8a8590; }
.mini { width: 64px; height: 60px; flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 18px; }
.stats div { background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 11px 12px 10px; }
.stats b { display: block; font-family: var(--f-num); font-weight: 540; font-size: 20px; letter-spacing: -.02em; }
.stats span { display: block; margin-top: 2px; font-size: 12px; color: #8a8590; white-space: nowrap; }
.sh-btns { display: flex; gap: 10px; margin-top: 16px; }
.sh-btns button { height: 46px; border-radius: 999px; font-size: 16px; font-weight: 600; transition: transform .18s var(--out), filter .2s, background .2s; }
.sh-btns button:active { transform: scale(.96); }
.sh-change { flex: 0 0 41%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #fff; }
.sh-change:hover { background: rgba(255, 255, 255, .05); }
.sh-book { flex: 1; background: #f2efe9; color: #111; }
.sh-book:hover { filter: brightness(1.05); }
.sh-book.done { background: var(--accent); color: var(--accent-ink); }
.toast { position: absolute; z-index: 9; left: 50%; top: 62px; transform: translate(-50%, -8px); padding: 9px 14px; border-radius: 12px; background: rgba(20, 16, 20, .92); font-size: 13px; color: #e9e5ee; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--out); white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* desktop side panel */
.side { display: none; }
@media (min-width: 1000px) {
  .page { grid-template-columns: minmax(0, 340px) 390px; gap: clamp(48px, 8vw, 120px); justify-content: center; }
  .side { display: block; color: #e8e4ec; }
  .side-lede { font-family: var(--f-num); font-size: 30px; line-height: 1.12; letter-spacing: -.025em; font-weight: 560; margin: 26px 0 22px; }
  .side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14.5px; color: #9c98a3; line-height: 1.45; }
  .side-list b { color: #ece8f0; font-weight: 600; }
  .side-venues { margin-top: 30px; display: flex; gap: 6px; }
  .side-venues a, .side-venues span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #b9b5c0; text-decoration: none; }
  .side-venues a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
  .side-venues span { background: #f2efe9; color: #111; box-shadow: none; }
}
@media (max-width: 520px) {
  .card { width: 100vw; height: 100dvh; min-height: 0; border-radius: 0; box-shadow: none; }
  .page .sl-note { bottom: auto; top: auto; }
}
.cinema .sl-note { z-index: 10; }
@media (max-width: 520px) { .cinema .sl-note { right: 50%; transform: translateX(50%); bottom: calc(2px + env(safe-area-inset-bottom)); font-size: 9px; padding: 4px 8px; background: transparent; color: rgba(255, 255, 255, .34); white-space: nowrap; } }

/* touch: 40 px+ targets for the chrome */
@media (pointer: coarse), (max-width: 520px) {
  .round { width: 42px; height: 42px; }
  .c-head { top: 12px; left: 12px; right: 12px; }
  .times { top: 62px; padding: 3px; }
  .times button { height: 40px; padding: 0 14px; }
  .hud { top: 12px; left: 12px; right: 12px; }
  .hud-pill { height: 36px; }
}
@media (pointer: coarse), (max-width: 520px) {
  .arc { top: 114px; } .spill { top: 130px; } .scr-label { top: 160px; }
}
