/* IFFI 2026 companion: the base styles, shared with the DIFF 2026 app it was forked from.
   IFFI's palette, programme colours and its own components are in css/iffi.css (loaded after this),
   the Goa map in css/map.css. */

@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/jost-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 500 700; font-display: swap; src: url(../fonts/jost-italic.woff2) format('woff2'); }

:root {
  --bg: #f2ede0;
  --card: #fffcf5;
  --bar: rgba(242, 237, 224, .82);
  --ink: #17110b;
  --ink2: #625749;
  --ink3: #988c7d;
  --line: rgba(23, 17, 11, .12);
  --line2: rgba(23, 17, 11, .22);
  --fill: rgba(23, 17, 11, .06);
  --fill2: rgba(23, 17, 11, .11);
  --accent: #2f4fb8;
  --on-accent: #fff;
  --accent-fill: rgba(47, 79, 184, .1);
  --primary: #17110b;
  --on-primary: #f6f1e3;
  --live: #df3a2b;
  --warn: #a86400;
  --gold: #a8780e;
  --ok: #1b8448;
  --glass: rgba(255, 252, 245, .68);
  --glass-edge: rgba(255, 255, 255, .75);
  --glass-line: rgba(23, 17, 11, .08);
  --shadow: 0 1px 2px rgba(40, 28, 10, .05), 0 10px 30px rgba(40, 28, 10, .08);
  --c-narrative: #2f62d0;
  --c-doc: #d0432f;
  --c-shorts: #1d8c52;
  --c-talk: #c08e00;
  --c-class: #6a5e51;
  --c-repeat: #888;
  --v-hgh: #e2583a;
  --v-pt1: #2f7be0;
  --v-pt2: #13a08f;
  --v-pt3: #8d4fe0;
  --v-hpd: #d29c12;
  --display: 'Jost', 'Avenir Next', 'Century Gothic', -apple-system, system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, Roboto, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 62px;
  --tabbar-bottom: max(10px, calc(var(--safe-b) - 6px));
  --tabbar-space: calc(var(--tabbar-h) + var(--tabbar-bottom) + 14px);
  --spring: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}
:root.dark {
  --bg: #0c0a08;
  --card: #191512;
  --bar: rgba(12, 10, 8, .8);
  --ink: #f6f1e3;
  --ink2: #b5aa98;
  --ink3: #7e7467;
  --line: rgba(246, 241, 227, .11);
  --line2: rgba(246, 241, 227, .22);
  --fill: rgba(246, 241, 227, .075);
  --fill2: rgba(246, 241, 227, .13);
  --accent: #5b8dff;
  --on-accent: #ffffff;
  --accent-fill: rgba(91, 141, 255, .16);
  --primary: #f6f1e3;
  --on-primary: #0c0a08;
  --live: #ff5747;
  --warn: #f3b44e;
  --gold: #e2b552;
  --ok: #4fd18a;
  --glass: rgba(38, 33, 28, .6);
  --glass-edge: rgba(255, 255, 255, .12);
  --glass-line: rgba(0, 0, 0, .4);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 36px rgba(0, 0, 0, .45);
  --c-narrative: #7ea3ff;
  --c-doc: #ff7d66;
  --c-shorts: #58d18e;
  --c-talk: #ffd24d;
  --c-class: #efe8d8;
  --c-repeat: #999;
  color-scheme: dark;
}

/* ------------------------------------------------------------ base */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.42 var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
/* Scrollbars. The page and sheets hide theirs for an overlay thumb with no gutter (js/scrollbars.js).
   Anything else that scrolls gets a thin one in the theme's colours: Chrome and Firefox read the
   standard properties, Safari the -webkit- ones. Chips, carousels and faces hide theirs. */
html { scrollbar-color: var(--ink3) transparent; }
* { scrollbar-width: thin; }
html, .sheet-scroll { scrollbar-width: none; }
html::-webkit-scrollbar, .sheet-scroll::-webkit-scrollbar { display: none; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink3) padding-box; border: 3px solid transparent; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--ink2); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { opacity: .4; cursor: default; }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 18px; height: 18px; }
.ico.xs { width: 13px; height: 13px; stroke-width: 2.1; vertical-align: -2px; }
.muted { color: var(--ink2); }
.small { font-size: 14px; }
.center { text-align: center; }
.mt { margin-top: 12px; } .mt2 { margin-top: 24px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
img.lq { background-size: cover; background-position: center; }
.img-ph { background: var(--fill); }
.tnum, .row-t, .tk-stub b, .ring b { font-variant-numeric: tabular-nums; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.9); backdrop-filter: blur(22px) saturate(1.9);
  box-shadow: inset 0 0 0 .5px var(--glass-edge), 0 0 0 .5px var(--glass-line), 0 8px 28px rgba(0, 0, 0, .14);
}

/* ------------------------------------------------------------ pages and navigation */
#app { min-height: 100dvh; transition: transform .42s var(--spring); transform-origin: 50% 0; }
.page { display: none; min-height: 100dvh; padding-bottom: calc(var(--tabbar-space) + 24px); }
.page.on { display: block; }
/* The page recedes behind a sheet, like an iOS card modal. No overflow clip: it would unstick the nav. */
html.sheet-open:not([data-tab="map"]) #app { transform: scale(.94) translateY(calc(var(--safe-t) + 8px)); }

.nav { position: sticky; top: 0; z-index: 30; padding-top: var(--safe-t); }
.nav::before { content: ''; position: absolute; inset: 0; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); opacity: 0; transition: opacity .2s; border-bottom: .5px solid var(--line); }
.page.collapsed .nav::before { opacity: 1; }
.nav-bar { position: relative; height: 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 720px; margin: 0 auto; padding: 0 12px; }
.nav-t { font-weight: 650; font-size: 17px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--spring); white-space: nowrap; }
.page.collapsed .nav-t { opacity: 1; transform: none; }
.nav-r { justify-self: end; display: flex; gap: 8px; }
.large { max-width: 720px; margin: 0 auto; padding: 0 20px 12px; }
.large h1 { font: 700 38px/1.02 var(--display); letter-spacing: -.025em; }
.large p { color: var(--ink2); font-size: 15px; margin-top: 4px; }
.subbar { position: sticky; top: calc(var(--safe-t) + 50px); z-index: 29; background: var(--bg); padding: 0 16px 8px; }
.page.collapsed .subbar { background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); border-bottom: .5px solid var(--line); }
.subbar > * { max-width: 688px; margin-left: auto; margin-right: auto; }

.gbtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); position: relative; flex: none; transition: transform .2s var(--spring); }
.gbtn:active { transform: scale(.9); }
.gpill { height: 38px; padding: 0 15px; border-radius: 19px; display: inline-flex; white-space: nowrap; flex: none; align-items: center; font-weight: 600; font-size: 15px; color: var(--ink); }
.gpill:active { transform: scale(.95); }
.gbadge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* Floating glass tab bar, with search on its own button. */
#tabs { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: var(--tabbar-bottom); display: flex; justify-content: space-between; gap: 10px; max-width: 620px; margin: 0 auto; transition: transform .42s var(--spring), opacity .3s; }
html.sheet-open #tabs { transform: translateY(140%); opacity: 0; }
/* A long press on a button shouldn't select its label (iOS shows the loupe and handles). */
button, .btn, .chipbtn, [role="button"] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tabbar { position: relative; flex: 1 1 100%; height: var(--tabbar-h); border-radius: 31px; display: flex; padding: 4px; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: flex-basis .45s var(--spring); }
.tab-lens { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 5); border-radius: 27px; background: var(--fill2); transform: translateX(calc(var(--i) * 100%)); transition: transform .42s var(--spring), scale .3s var(--spring), background .2s; pointer-events: none; }
.tabbar.pressing .tab-lens { scale: 1.1 1.14; background: color-mix(in srgb, var(--accent) 16%, var(--fill2)); transition: transform .28s var(--spring), scale .3s var(--spring); }
#tabs.min .tabbar { flex: 0 0 var(--tabbar-h); }
#tabs.min .tab-lens { width: calc(100% - 8px); transform: none; }
#tabs.min .tabbar button:not([aria-selected="true"]) { flex: 0 0 0; min-width: 0; opacity: 0; overflow: hidden; pointer-events: none; }
#tabs.min .tabbar button span { display: none; }
#tabs.min .tabbar button i { display: none; }
html.keyboard #tabs { transform: translateY(160%); opacity: 0; pointer-events: none; }
.tabbar button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 27px; color: var(--ink2); font-size: 10.5px; font-weight: 600; position: relative; z-index: 1; transition: color .2s, flex-basis .4s var(--spring), opacity .25s; }
.tabbar button .ico { width: 24px; height: 24px; }
.tabbar button[aria-selected="true"] { color: var(--accent); }
.tab-badge, .tab-count { position: absolute; top: 3px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; font-size: 10.5px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.tab-badge { background: var(--live); color: #fff; }
.tab-count { background: var(--ink); color: var(--bg); }
.searchfab { width: var(--tabbar-h); height: var(--tabbar-h); border-radius: 50%; display: grid; place-items: center; color: var(--ink); flex: none; }
.searchfab .ico { width: 24px; height: 24px; }

/* ------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; white-space: nowrap; border-radius: 23px; font-weight: 600; font-size: 16px; background: var(--fill); color: var(--ink); transition: transform .2s var(--spring), opacity .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.danger { color: var(--live); }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn-row .btn { flex: 1 1 140px; }
.btn-col { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 22px auto 0; }
.text { color: var(--accent); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.text.small { font-size: 13.5px; }
.chipbtn { height: 32px; padding: 0 14px; border-radius: 16px; background: var(--accent-fill); color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; flex: none; transition: transform .2s var(--spring); }
.chipbtn:active { transform: scale(.94); }
.chipbtn.on, .chipbtn[aria-pressed="true"]:not(.ghost) { background: var(--accent); color: var(--on-accent); }
.chipbtn.ghost { background: var(--fill); color: var(--ink2); }
.chipbtn.ghost[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--fill); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, transform .2s var(--spring); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip .sw { width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.chip small { font-size: 12px; font-weight: 600; opacity: .55; font-variant-numeric: tabular-nums; margin-left: -1px; }
.chip.fits:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); font-weight: 600; }
.chipwrap { display: flex; flex-wrap: wrap; gap: 8px; }

.seg { display: inline-flex; background: var(--fill); border-radius: 10px; padding: 2px; gap: 2px; }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 550; white-space: nowrap; text-align: center; }
.seg button[aria-pressed="true"] { background: var(--card); font-weight: 650; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
:root.dark .seg button[aria-pressed="true"] { background: #3b332c; }
.seg.mini button { padding: 4px 10px; font-size: 13px; }

.week { display: flex; justify-content: space-between; padding: 2px 0 10px; }
.week button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink3); font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.week b { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 600 21px var(--display); color: var(--ink); letter-spacing: 0; text-transform: none; transition: background .25s, color .25s, transform .25s var(--spring); }
.week button:active b { transform: scale(.9); }
.week [aria-selected="true"] b, .week [aria-pressed="true"] b { background: var(--ink); color: var(--bg); }
.week .today b { color: var(--live); }
.week .today[aria-selected="true"] b { background: var(--live); color: #fff; }
.week.mini { margin: 16px 0 4px; }
.week.mini b { width: 36px; height: 36px; font-size: 18px; }

.add { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line2), 0 2px 8px rgba(0, 0, 0, .12); transition: transform .3s var(--spring), background .2s, color .2s; }
.add:active { transform: scale(.82); }
.add[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); animation: pop .4s var(--spring); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ------------------------------------------------------------ section heads, cards, groups */
.sh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 32px 0 10px; }
.sh h2 { font: 650 23px/1.15 var(--display); letter-spacing: -.012em; }
.sh h2 small { margin-left: 8px; font: 400 14px var(--sans); color: var(--ink3); letter-spacing: 0; }
.card { background: var(--card); border-radius: 20px; padding: 16px; }
.card.pad-s { padding: 12px 14px; }
.updates { margin-top: 22px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.up-head b { display: block; font: 650 20px var(--display); }
.up-head small { color: var(--ink2); font-size: 13.5px; }
.up-list { margin-top: 10px; }
.up-list li { position: relative; padding: 10px 0; border-top: .5px solid var(--line); cursor: pointer; }
.up-list.group li { padding: 12px 16px; border-top: 0; }
.up-list li b { font-weight: 650; }
.up-list li small { display: block; color: var(--ink2); font-size: 13.5px; margin-top: 1px; }
.up-list li em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.hint { color: var(--ink2); font-size: 14.5px; margin-top: 12px; }
.page-share { display: flex; justify-content: center; margin: 30px 0 4px; }
.page-share .text { font-size: 15px; }
.fine { color: var(--ink3); font-size: 13px; text-align: center; margin: 34px 0 8px; }
.fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.empty { padding: 56px 16px; text-align: center; color: var(--ink2); }
.empty b { display: block; color: var(--ink); font: 650 23px/1.2 var(--display); margin-bottom: 8px; }
.empty .btn { margin-top: 18px; }
.group { background: var(--card); border-radius: 18px; overflow: hidden; }
.group > * + * { box-shadow: inset 0 .5px 0 var(--line); }
.cell { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; width: 100%; text-align: left; color: var(--ink); }
.cell > span:not(.av):not(.pc-ic):not(.text):not(.meet-d) { flex: 1; min-width: 0; }
.cell b { display: block; font-weight: 500; }
.cell small { display: block; font-size: 13.5px; color: var(--ink2); margin-top: 1px; }
.cell > .ico { color: var(--ink3); }
.cell.static b { font-weight: 600; }
.cell.danger b { color: var(--live); }
.cell .av, .av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--fill2); font-weight: 650; color: var(--ink2); object-fit: cover; }
details.faq { display: block; }
details.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 550; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(45deg); transition: transform .25s; flex: none; margin-top: -4px; }
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.faq p { color: var(--ink2); font-size: 15px; margin-top: 8px; }
.formrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; min-height: 54px; }
.formrow.col { flex-direction: column; align-items: stretch; }
.textin { height: 46px; border-radius: 12px; border: 0; background: var(--fill); padding: 0 14px; font-size: 16px; color: var(--ink); outline: none; width: 100%; }
.textin.area { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.foot { color: var(--ink3); font-size: 13px; margin-top: 8px; padding: 0 4px; }
.form-h { font: 650 16px var(--display); color: var(--ink2); margin: 24px 0 10px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 6px; cursor: pointer; position: relative; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { width: 51px; height: 31px; border-radius: 16px; background: var(--fill2); position: relative; transition: background .25s; flex: none; }
.switch-row i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .3s var(--spring); }
.switch-row input:checked + i { background: var(--ok); }
.switch-row input:checked + i::after { transform: translateX(20px); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--accent-fill); margin-top: 22px; width: 100%; text-align: left; }
.notice .ico { color: var(--accent); }
.notice b { display: block; font-weight: 650; }
.notice small { display: block; font-size: 14px; color: var(--ink2); margin-top: 2px; }
.tipcard { margin: 16px 0 14px; }
.tipcard > span { flex: 1; }
.tipcard > .text { flex: none; align-self: center; padding: 6px 0 6px 4px; }
.tipcard .inline-add { vertical-align: -5px; }
.tip-chip { display: inline-block; padding: 0 9px; border-radius: 11px; line-height: 22px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); font-weight: 600; white-space: nowrap; } /* the Fits my plan chip, in a sentence */
.tip-swipe > .ico { transform: rotate(90deg); } /* the swap arrows, sideways: it's a left or right swipe */

/* ------------------------------------------------------------ schedule rows */
.part-h { display: flex; align-items: baseline; gap: 8px; font: 650 15px var(--display); color: var(--ink2); margin: 22px 0 2px; text-transform: none; }
.part-h small { font: 400 13px var(--sans); color: var(--ink3); }
.list { position: relative; }
.row { position: relative; display: flex; gap: 12px; padding: 13px 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .25s var(--spring); cursor: pointer; }
.row + .row::before { content: ''; position: absolute; top: 0; left: 64px; right: 0; border-top: .5px solid var(--line); }
.row.pressing { transform: scale(.975); }
.row-t { width: 52px; flex: none; position: relative; padding-left: 11px; line-height: 1.15; }
.row-t::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3.5px; border-radius: 2px; background: var(--c, var(--ink3)); }
.row-t b { display: block; font: 600 17px var(--display); letter-spacing: -.01em; }
.row-t small { display: block; font-size: 11px; font-weight: 650; color: var(--ink3); letter-spacing: .04em; margin-top: 1px; }
.row-b { flex: 1; min-width: 0; }
.row h3 { font-size: 16.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.row h3 em { display: block; font-style: normal; font-weight: 400; font-size: 13.5px; color: var(--ink2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-by { font-size: 14px; color: var(--ink2); margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row-m { font-size: 13px; color: var(--ink3); margin-top: 6px; display: flex; flex-wrap: nowrap; align-items: center; white-space: nowrap; overflow: hidden; }
.row-m > * { flex-shrink: 0; }
.row-prem { font-size: 12.5px; color: var(--ink3); margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; }
.row-prem > span:first-child::first-letter { text-transform: uppercase; }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; margin: 0 7px; }
.vchip { font-weight: 650; color: var(--ink); background: var(--fill); padding: 1px 7px; border-radius: 6px; font-size: 12px; letter-spacing: .01em; }
.qa { color: var(--accent); font-weight: 650; }
.row-art { position: relative; width: 78px; flex: none; align-self: flex-start; margin-top: 2px; }
.row-art img, .row-art .img-ph { width: 78px; height: 54px; border-radius: 10px; object-fit: cover; }
.row-art .add { position: absolute; right: -7px; bottom: -9px; }
.row.is-past .row-t, .row.is-past .row-b > h3, .row.is-past .row-b > .row-by, .row.is-past .row-b > .row-m, .row.is-past .row-art img { opacity: .45; }
.row.is-live .row-t b { color: var(--live); }
.row-live { color: var(--live); font-size: 13px; font-weight: 600; margin-top: 7px; }
.row-live .bar { max-width: 220px; margin-top: 6px; }
.row-alert { color: var(--live); font-size: 13.5px; font-weight: 600; margin-top: 5px; }
.row-fr, .row-walk { font-size: 13px; color: var(--ink2); margin-top: 5px; }
.bar { height: 3px; border-radius: 2px; background: var(--fill2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--live); border-radius: 2px; transition: width 1s linear; }
.bar.big { height: 6px; border-radius: 3px; margin-top: 14px; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 6px; vertical-align: 1px; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
.nowbar { display: flex; align-items: center; gap: 8px; color: var(--live); font-size: 12.5px; font-weight: 700; padding: 6px 0; letter-spacing: .02em; }
.nowbar::after { content: ''; flex: 1; height: 1.5px; background: var(--live); border-radius: 1px; }
.nowbar + .row::before { display: none; }
.earlier { display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14.5px; padding: 12px 0 2px; }
.c-narrative { --c: var(--c-narrative); } .c-doc { --c: var(--c-doc); } .c-shorts { --c: var(--c-shorts); }
.c-talk { --c: var(--c-talk); } .c-class { --c: var(--c-class); } .c-repeat { --c: var(--c-repeat); } .c-other { --c: var(--ink3); }
.v-hgh { --vc: var(--v-hgh); } .v-pt1 { --vc: var(--v-pt1); } .v-pt2 { --vc: var(--v-pt2); } .v-pt3 { --vc: var(--v-pt3); } .v-hpd { --vc: var(--v-hpd); }
.vdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--vc); }

/* ------------------------------------------------------------ schedule grid */
/* The screen names (.g-headbar) sit above the box that scrolls (.grid), not inside it, and follow
   its sideways scroll in JS: so on desktop they can pin to the page while the page scrolls. */
.gridbox { position: relative; margin: 6px -16px 0;
  /* Two screens and a bit of the third, so it's clear there's more; columns snap into place. */
  --gcol: clamp(130px, calc((100vw - 44px) / 2.35), 200px); --gtpl: 44px repeat(var(--cols, 5), minmax(var(--gcol), 1fr)); --gmin: calc(44px + var(--cols, 5) * var(--gcol)); }
.grid { overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scroll-padding-left: 44px; }
.grid-in { position: relative; display: grid; grid-template-columns: var(--gtpl); grid-template-rows: var(--h); min-width: var(--gmin); }
.g-headbar { position: relative; z-index: 7; background: var(--bar); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: .5px solid var(--line); }
.g-headscroll { overflow: hidden; }
.g-head { display: grid; grid-template-columns: var(--gtpl); min-width: var(--gmin); height: 44px; }
.g-head span { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 650; font-size: 13.5px; min-width: 0; }
.g-head span:first-child { position: sticky; left: 0; z-index: 1; }
/* The arrows fade the names under them, so a name is never half-covered by a button. */
.g-page { position: absolute; top: 0; bottom: 0; width: 64px; display: flex; align-items: center; padding: 0 6px; z-index: 2; cursor: pointer; }
.g-page.prev { left: 44px; justify-content: flex-start; background: linear-gradient(to left, transparent, var(--bg) 55%); }
.g-page.next { right: 0; justify-content: flex-end; background: linear-gradient(to right, transparent, var(--bg) 55%); }
.g-page i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .14), 0 0 0 .5px var(--line2); }
.g-page[hidden] { display: none; }
.g-page:hover i { background: var(--fill); }
.g-page:focus-visible { outline: none; }
.g-page:focus-visible i { outline: 2px solid var(--accent); outline-offset: 2px; }
.g-rail { position: sticky; left: 0; z-index: 4; background: var(--bg); grid-row: 1; grid-column: 1; height: var(--h); }
.g-rail span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 12px; color: var(--ink3); font-weight: 600; }
.g-rail span i { font-style: normal; font-size: 9.5px; margin-left: 1px; }
.g-rail span.top { transform: translateY(3px); } /* clear of the screen names */
.g-col { position: relative; grid-row: 1; height: var(--h); border-left: .5px solid var(--line); scroll-snap-align: start; }
.g-hl { position: absolute; left: 0; right: 0; border-top: .5px solid var(--line); }
.g-item { position: absolute; left: 3px; right: 3px; border-radius: 9px; padding: 6px 7px 6px 10px; overflow: hidden; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 1px; background: color-mix(in srgb, var(--c) 15%, var(--card)); font-size: 12px; line-height: 1.22; cursor: pointer; }
.g-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3.5px; background: var(--c); }
.g-item b { display: -webkit-box; -webkit-line-clamp: var(--clamp, 3); -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 650; flex: none; }
.g-item span { color: var(--ink2); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.g-item .g-clash { color: var(--live); font-weight: 600; }
.g-item.tiny { justify-content: center; padding-top: 0; padding-bottom: 0; }
.g-item.tiny span { display: none; }
/* The tick: always on planned tiles, and on hover where there is hover. The title keeps clear of it. */
.g-add { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; display: none; place-items: center; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line2); }
.g-add svg { width: 14px; height: 14px; }
.g-item.in .g-add { display: grid; background: var(--c); color: #fff; box-shadow: none; }
.g-item.in b { padding-right: 22px; }
@media (hover: hover) {
  .g-item:hover .g-add, .g-item:focus-within .g-add { display: grid; }
  .g-item:hover b, .g-item:focus-within b { padding-right: 22px; }
  .g-add:hover { transform: scale(1.1); }
}
/* What colour means on the schedule. */
.sched-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 12px 0 0; font-size: 12.5px; color: var(--ink2); }
.sched-key span { display: inline-flex; align-items: center; gap: 5px; }
.sched-key .sw { width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.sched-key .key-in svg { width: 13px; height: 13px; padding: 1px; border-radius: 50%; background: var(--ink2); color: var(--bg); }
.g-item.in { background: color-mix(in srgb, var(--c) 32%, var(--card)); box-shadow: inset 0 0 0 1.5px var(--c); }
.g-item.past { opacity: .42; }
.g-item.live { box-shadow: inset 0 0 0 1.5px var(--live); }
.g-now { position: absolute; left: 40px; right: 0; height: 0; border-top: 2px solid var(--live); z-index: 3; pointer-events: none; }
.g-now::before { content: ''; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }

/* ------------------------------------------------------------ Today */
.sky-wrap { position: relative; height: calc(340px + var(--safe-t)); overflow: hidden; color: #fff; isolation: isolate; }
/* Paper grain over the sky: its own layer, so the sky's small motions don't repaint it. */
.sky-wrap::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .22; mix-blend-mode: overlay; }
.sky-top, .sky-text { z-index: 2; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-flag { transform-box: fill-box; transform-origin: 50% 0; animation: flutter 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.21s); }
@keyframes flutter { 0%, 100% { transform: skewX(0) scaleY(1); } 50% { transform: skewX(-8deg) scaleY(.94); } }
.sky .stars .tw { animation: twinkle 3.4s ease-in-out infinite; animation-delay: var(--d); }
/* The paper sky's small motions (js/sky.js): kites circling on a flattened ellipse (x and y swing
   a quarter turn apart), drifting clouds, flickering lamps and the odd shooting
   star. */
.paper-sky .kite-x { animation: kx var(--s) ease-in-out infinite alternate; }
.paper-sky .kite-y { animation: ky var(--s) ease-in-out infinite alternate; }
@keyframes kx { from { transform: translateX(calc(var(--r) * -1)); } to { transform: translateX(var(--r)); } }
@keyframes ky { from { transform: translateY(calc(var(--r) * -1)); } to { transform: translateY(var(--r)); } }
.paper-sky .drift { animation: drift 90s ease-in-out infinite alternate; }
.paper-sky .drift.slow { animation-duration: 140s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translateX(-36px); } }
.paper-sky .lamp { animation: flicker 5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .35; } 55% { opacity: .9; } }
.paper-sky .meteor { opacity: 0; animation: meteor 13s ease-in 4s infinite; }
@keyframes meteor { 0% { opacity: 0; transform: translate(var(--x), var(--y)); } 2% { opacity: 1; } 7% { opacity: 0; transform: translate(calc(var(--x) + 70px), calc(var(--y) + 22px)); } 100% { opacity: 0; } }
/* The far flags and pole banners stand among the trees, where any constant motion means repainting
   the forest every frame: they hold still and only swing when the wind blows. */
.far-flag { transform-box: fill-box; transform-origin: 50% 0; rotate: calc(var(--wind, 0) * .5deg); }
/* Save battery: the sky stops moving when it's scrolled away or a sheet covers it. */
.sky-wrap.paused *, html.sheet-open .sky-wrap * { animation-play-state: paused !important; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.sky-top { position: absolute; top: calc(var(--safe-t) + 8px); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; max-width: 720px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; font: 700 15px var(--display); letter-spacing: .1em; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
.brand .flags { width: 46px; color: #fff; }
.sky-btns { display: flex; gap: 8px; }
.sky-wrap .gbtn { --glass: rgba(0, 0, 0, .22); --glass-edge: rgba(255, 255, 255, .25); color: #fff; }
.sky-text { position: absolute; left: 20px; right: 20px; bottom: 46px; max-width: 680px; margin: 0 auto; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.sky-kicker { font-size: 13.5px; font-weight: 650; opacity: .92; letter-spacing: .02em; }
.sky-title { font: 700 50px/.98 var(--display); letter-spacing: -.035em; margin-top: 6px; }
.sky-title span { font-weight: 500; opacity: .85; }
.sky-sub { font-size: 16.5px; margin-top: 10px; opacity: .96; max-width: 30em; }
.sky-chip { display: inline-flex; gap: 7px; align-items: center; margin-top: 14px; padding: 7px 13px; border-radius: 17px; background: rgba(0, 0, 0, .24); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; text-shadow: none; }
.paper { position: relative; z-index: 2; margin: -28px auto 0; max-width: 720px; background: var(--bg); border-radius: 28px 28px 0 0; padding: 2px 16px 0; }
.paper > .sh:first-child { margin-top: 24px; }
.flags .flag { transform-box: fill-box; transform-origin: 50% 0; animation: flutter 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.3s); }
/* Wind (wind.js): each flag swings from its top by --wind degrees, a little more along the
   string, on top of the flutter. One number on the container; only transforms change. */
.sky-flag, .flags .flag { rotate: calc(var(--wind, 0) * (.8 + var(--i) * .03) * 1deg); }

.daylines .dayline { display: flex; align-items: center; gap: 14px; padding: 12px 16px; width: 100%; text-align: left; }
.dl-d { width: 34px; text-align: center; flex: none; line-height: 1.05; }
.dl-d small { display: block; font-size: 11px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; }
.dl-d b { font: 600 22px var(--display); }
.dl-main { flex: 1; min-width: 0; }
.dl-main small { display: block; font-size: 13.5px; color: var(--ink2); margin-top: 7px; }
.dl-main em { font-style: normal; color: var(--live); font-weight: 600; }
.dl-cta { color: var(--accent); font-weight: 650; font-size: 14px; flex: none; }
.dl-chev { color: var(--ink3); }
.tips .tip { padding: 13px 16px; }
.tips .tip b { display: block; font-weight: 650; }
.tips .tip span { display: block; color: var(--ink2); font-size: 14.5px; margin-top: 2px; }

.strip-track { position: relative; height: 24px; border-radius: 7px; background: var(--fill); overflow: hidden; }
.strip.compact .strip-track { height: 10px; border-radius: 5px; }
.strip-b { position: absolute; top: 0; bottom: 0; background: var(--c); border-radius: 4px; box-shadow: 0 0 0 1px var(--card); }
.strip-b.past { opacity: .35; }
.strip-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.strip-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--live); box-shadow: 0 0 0 1.5px var(--card); }
.strip-hours { position: relative; height: 15px; margin-top: 6px; font-size: 11px; color: var(--ink3); font-weight: 600; }
.strip-hours span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.strip-hours span:first-child { left: 0; transform: none; }
.strip-hours span.r { right: 0; left: auto; transform: none; }

.upnext { display: block; background: var(--card); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.un-art { position: relative; aspect-ratio: 16 / 8.5; background: var(--fill); }
.un-art img, .un-art .img-ph { width: 100%; height: 100%; object-fit: cover; }
.un-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .35), transparent 45%); }
.un-badge { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 15px; background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-size: 13.5px; font-weight: 650; }
.un-body { padding: 16px 18px 18px; }
.un-body h2 { font: 700 28px/1.08 var(--display); letter-spacing: -.02em; }
.un-where { color: var(--ink2); margin-top: 3px; }
.un-clock { display: flex; gap: 20px; align-items: center; margin-top: 18px; }
.ring { --p: 0; position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: conic-gradient(var(--accent) calc(var(--p) * 1turn), var(--fill2) 0); }
.ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); }
.ring b, .ring small { position: relative; }
.ring b { font: 700 21px/1 var(--display); letter-spacing: -.02em; }
.ring small { font-size: 11.5px; color: var(--ink3); font-weight: 600; margin-top: 3px; }
.un-steps { display: grid; gap: 10px; }
.un-steps small { display: block; font-size: 12.5px; color: var(--ink3); font-weight: 600; }
.un-steps b { font: 650 19px/1.1 var(--display); }
.un-status { margin-top: 16px; padding: 11px 14px; border-radius: 14px; font-weight: 600; font-size: 14.5px; }
.un-status.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.un-status.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.un-status.late { color: var(--live); background: color-mix(in srgb, var(--live) 12%, transparent); }
.un-left { margin-top: 8px; color: var(--ink2); }
.un-left b { font: 700 22px var(--display); color: var(--ink); }
.upnext .btn-row { margin-top: 14px; }
.empty-day b { display: block; font: 650 21px var(--display); }
.empty-day p { color: var(--ink2); margin-top: 4px; }

.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 12px; scrollbar-width: none; scroll-padding: 16px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: none; scroll-snap-align: start; }
.nowcard { width: 236px; background: var(--card); border-radius: 18px; overflow: hidden; cursor: pointer; }
.nc-art { aspect-ratio: 16 / 9; background: var(--fill); }
.nc-art img { width: 100%; height: 100%; object-fit: cover; }
.nc-b { padding: 10px 13px 13px; }
.nc-b h3 { font-size: 15.5px; font-weight: 650; margin-top: 7px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-b p { color: var(--ink2); font-size: 13px; margin: 4px 0 7px; }

/* ------------------------------------------------------------ Discover */
.searchbar { display: flex; align-items: center; gap: 8px; width: 100%; height: 42px; padding: 0 12px; border-radius: 13px; background: var(--fill); color: var(--ink3); font-size: 16px; margin: 2px 0 18px; }
.ed { position: relative; width: min(84vw, 370px); aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; color: #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .3s var(--spring); }
.ed:active { transform: scale(.98); }
.ed-art, .ed-art img, .ed-art .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .82)); }
.ed-top { position: absolute; left: 20px; right: 20px; top: 20px; }
.ed-top small { font-size: 14px; font-weight: 600; opacity: .88; }
.ed-top h3 { font: 700 32px/1.02 var(--display); letter-spacing: -.02em; margin-top: 6px; }
.ed-bottom { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.ed-bottom p { font-size: 15px; opacity: .93; }
.ed-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.ed-thumbs { display: flex; }
.ed-thumbs img { width: 46px; height: 32px; border-radius: 7px; object-fit: cover; margin-right: -12px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .45); }
.ed-row span { padding: 6px 12px; border-radius: 15px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 650; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.type { position: relative; height: 88px; border-radius: 20px; padding: 14px 16px; background: color-mix(in srgb, var(--c) 15%, var(--card)); overflow: hidden; text-align: left; transition: transform .25s var(--spring); }
.type:active { transform: scale(.97); }
.type b { display: block; font: 650 19px var(--display); }
.types .type:last-child:nth-child(odd) { grid-column: 1 / -1; }
.type small { color: var(--ink2); font-size: 13.5px; }
.type-flag { position: absolute; right: 16px; top: 0; width: 22px; height: 38px; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
:root.dark .c-class .type-flag, :root:not(.dark) .type.c-class { --c: #8f8270; }
/* Top-aligned: a button centres its contents, so stretched tiles with one-line names sat lower. */
.faces { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.faces::-webkit-scrollbar { display: none; }
.face { width: 72px; flex: none; text-align: center; }
.face img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto; }
.face span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; margin-top: 6px; line-height: 1.2; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 22px 12px; }
.poster { min-width: 0; cursor: pointer; -webkit-touch-callout: none; transition: transform .25s var(--spring); }
.poster.pressing { transform: scale(.96); }
.poster-art { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--fill); }
.poster-art img, .poster-art .img-ph { width: 100%; height: 100%; object-fit: cover; }
.poster-in { position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.poster-seen { position: absolute; bottom: 7px; left: 7px; padding: 2px 8px; border: 1.5px solid #fff; border-radius: 5px; color: #fff; font: 700 11px var(--display); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-8deg); background: rgba(0, 0, 0, .3); }
.poster-cat { display: block; margin-top: 9px; font-size: 12px; font-weight: 650; color: var(--c); }
.poster h3 { font-size: 15px; font-weight: 600; line-height: 1.25; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster p { font-size: 13px; color: var(--ink2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster .poster-when { color: var(--ink3); font-size: 12.5px; }
.col-hero { position: relative; height: 330px; color: #fff; background: var(--fill); }
.col-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.col-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .8)); }
.col-t { position: absolute; left: 20px; right: 20px; bottom: 22px; }
.col-t small { font-size: 14px; font-weight: 600; opacity: .88; }
.col-t h2 { font: 700 36px/1.02 var(--display); letter-spacing: -.02em; margin-top: 6px; }
.col-t p { font-size: 15px; opacity: .92; margin-top: 8px; }
.person { text-align: left; }
.person-img { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; margin: 4px auto 14px; }
.av.big { width: 104px; height: 104px; font-size: 34px; margin: 4px auto 14px; }
.person-bio { font-size: 16.5px; line-height: 1.55; margin: 16px 0 6px; }
.search-head { flex: none; padding: 16px 56px 12px 16px; border-bottom: .5px solid var(--line); }
.searchfield { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 13px; background: var(--fill); color: var(--ink3); }
.searchfield input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; color: var(--ink); }
.searchfield input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-sheet .sheet-x { top: 22px; }
.search-sheet .grab { display: none; }

/* ------------------------------------------------------------ My Plan */
.summary { background: var(--card); border-radius: 22px; padding: 18px 18px 16px; margin-top: 2px; }
.sum-big { display: flex; align-items: baseline; gap: 8px; }
.sum-big b { font: 700 58px/.95 var(--display); letter-spacing: -.04em; }
.sum-big span { font: 500 19px var(--display); color: var(--ink2); }
.sum-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; color: var(--ink2); font-size: 14.5px; }
.sum-facts b { color: var(--ink); font-weight: 650; }
.sum-alert { color: var(--live); margin-top: 12px; font-weight: 600; font-size: 14.5px; }
.day { margin-top: 34px; }
.dayh { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.dayh h2 { font: 650 27px/1.05 var(--display); letter-spacing: -.02em; }
.dayh h2 span { color: var(--ink3); font-weight: 450; }
.dayh small { display: block; color: var(--ink2); font-size: 14px; margin-top: 3px; }
.strip-card { margin-bottom: 6px; }
.ticket { --notch: 112px; position: relative; display: block; background: var(--card); border-radius: 20px; margin: 10px 0; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: transform .25s var(--spring);
  -webkit-mask: radial-gradient(circle 10px at 0 var(--notch), #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 10px at 100% var(--notch), #0000 97%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 var(--notch), #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 10px at 100% var(--notch), #0000 97%, #000) 100% 0 / 51% 100% no-repeat; }
.ticket.pressing { transform: scale(.98); }
.tk-main { display: flex; gap: 13px; height: var(--notch); padding: 14px 14px 0; overflow: hidden; }
.tk-art { flex: none; }
.tk-art img, .tk-art .img-ph { width: 104px; height: 84px; border-radius: 11px; object-fit: cover; }
.ticket.seen .tk-art img { filter: saturate(.4); }
.tk-info { min-width: 0; }
.tk-cat { display: block; font-size: 12px; font-weight: 700; color: var(--c); }
.tk-info h3 { font: 650 18px/1.15 var(--display); letter-spacing: -.01em; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-info p { font-size: 13.5px; color: var(--ink2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tk-stub { display: flex; align-items: center; gap: 18px; margin: 0 16px; padding: 12px 0 14px; border-top: 1.5px dashed var(--line2); }
.tk-stub small { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .08em; }
.tk-stub b { display: block; font: 650 19px/1.15 var(--display); white-space: nowrap; }
.tk-stub b i { font-style: normal; font-size: 12px; color: var(--ink2); margin-left: 2px; font-weight: 600; }
.tk-stub .grow { flex: 1; min-width: 0; }
.tk-add { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex: none; }
.tk-add[aria-pressed="false"] { background: var(--fill); color: var(--ink); }
.tk-progress { height: 3px; margin: -6px 16px 12px; border-radius: 2px; background: var(--fill2); overflow: hidden; }
.tk-progress i { display: block; height: 100%; background: var(--live); }
.ticket.is-live { box-shadow: inset 0 0 0 1.5px var(--live); }
.stamp { position: absolute; left: 28px; top: 50px; transform: rotate(-11deg); padding: 3px 11px; border: 2.5px solid var(--live); border-radius: 7px; color: var(--live); font: 800 15px var(--display); letter-spacing: .22em; text-transform: uppercase; opacity: .9; background: color-mix(in srgb, var(--card) 70%, transparent); animation: stamp .45s var(--spring); }
@keyframes stamp { from { transform: rotate(-11deg) scale(1.8); opacity: 0; } to { transform: rotate(-11deg) scale(1); opacity: .9; } }
.tk-extra { padding: 0 16px 14px; cursor: default; }
.xfer { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; margin-left: 30px; padding: 7px 0 7px 18px; border-left: 2px dotted var(--line2); font-size: 14px; color: var(--ink2); min-height: 36px; font-variant-numeric: tabular-nums; }
.xfer button { color: var(--accent); font-weight: 600; }
.xfer .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.xfer.k-overlap, .xfer.k-late { color: var(--live); border-left-color: var(--live); }
.xfer.k-qa, .xfer.k-tight { color: var(--warn); }
.xf-walk { display: inline-flex; align-items: center; gap: 5px; }
.resolve { margin: 12px 0; padding: 16px; border-radius: 22px; background: color-mix(in srgb, var(--live) 7%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--live) 28%, transparent); }
.rs-h b { display: block; font: 650 20px var(--display); color: var(--live); }
.rs-h span { display: block; color: var(--ink2); font-size: 14px; margin-top: 2px; }
.rs-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin-top: 14px; }
.rs-opt { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 10px; border-radius: 16px; background: var(--card); cursor: pointer; }
.rs-opt img, .rs-opt .img-ph { width: 100%; aspect-ratio: 16 / 10; height: auto; border-radius: 10px; object-fit: cover; margin-bottom: 4px; }
.rs-opt b { font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-opt small { color: var(--ink2); font-size: 12.5px; }
.rs-opt .chipbtn { margin-top: 6px; justify-content: center; }
.resolve > .text { margin-top: 12px; font-size: 14px; }
.plan-empty { padding-top: 34px; }
.stub-art { position: relative; height: 130px; width: 220px; margin: 0 auto 22px; }
.stub-art span { position: absolute; left: 50%; top: 50%; width: 150px; height: 76px; margin: -38px 0 0 -75px; border-radius: 14px; box-shadow: var(--shadow); -webkit-mask: radial-gradient(circle 8px at 0 50%, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 97%, #000) 100% 0 / 51% 100% no-repeat; mask: radial-gradient(circle 8px at 0 50%, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 97%, #000) 100% 0 / 51% 100% no-repeat; }
.stub-art span:nth-child(1) { background: var(--c-talk); transform: rotate(-14deg) translate(-26px, 6px); }
.stub-art span:nth-child(2) { background: var(--c-doc); transform: rotate(8deg) translate(24px, -4px); }
.stub-art span:nth-child(3) { background: var(--c-narrative); transform: rotate(-2deg); }
.inline-add { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; vertical-align: -4px; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line2); }
.inline-add .ico.xs { vertical-align: 0; }
.dayh .chipbtn .ico.xs { vertical-align: 0; }
.sticky-cta { position: sticky; bottom: 0; padding: 16px 0 calc(var(--safe-b) + 4px); margin-top: 8px; background: linear-gradient(transparent, var(--bg) 30%); }
.diary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.diary .dq { font-size: 14px; color: var(--ink2); margin-right: 4px; }
.stars { display: inline-flex; gap: 2px; }
.stars button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink3); transition: transform .25s var(--spring); }
.stars button .ico { width: 24px; height: 24px; }
.stars button.on { color: #e2a400; }
.stars button.on .ico { fill: currentColor; }
.stars button:active { transform: scale(1.25); }
.note { width: 100%; border: 0; border-radius: 12px; background: var(--fill); padding: 10px 12px; font-size: 15px; resize: none; outline: none; color: var(--ink); margin-top: 4px; }
.stars-s { color: #e2a400 !important; letter-spacing: 1px; }
.stars-s i { font-style: normal; color: var(--fill2); }

/* ------------------------------------------------------------ sheets */
#sheets { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.sheet-wrap { position: absolute; inset: 0; isolation: isolate; } /* each sheet paints whole, above the one below */
.sheet-wrap > * { pointer-events: auto; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .38); opacity: 0; transition: opacity .38s; }
.sheet-wrap.open .sheet-bg { opacity: calc(1 - var(--drag, 0)); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 720px; max-height: calc(100dvh - var(--safe-t) - 12px); display: flex; flex-direction: column; background: var(--bg); border-radius: 28px 28px 0 0; transform: translateY(104%); transition: transform .45s var(--spring); overflow: hidden; box-shadow: 0 -12px 44px rgba(0, 0, 0, .28); }
.sheet.full { height: calc(100dvh - var(--safe-t) - 12px); }
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.instant .sheet, .sheet-wrap.dragging .sheet { transition: none; }
.sheet-wrap.closing .sheet { transition-duration: .32s; }
.grab { position: absolute; top: 0; left: 0; right: 60px; height: 26px; z-index: 6; touch-action: none; }
.grab::before { content: ''; position: absolute; top: 7px; left: calc(50% + 30px); width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(128, 128, 128, .45); }
.sheet-share { position: absolute; top: 14px; right: 54px; z-index: 8; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.sheet-share .ico { width: 17px; height: 17px; margin-top: -1px; }
.sheet.has-share .grab { right: 100px; }
.sheet.has-share .grab::before { left: calc(50% + 50px); }
.sheet.has-share .f-sticky span { padding-left: 104px; padding-right: 104px; }
.sheet-x { position: absolute; top: 14px; right: 14px; z-index: 8; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.sheet-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(var(--safe-b) + 28px); }
.pad { padding: 28px 18px 6px; }
.sheet-title { font: 700 30px/1.08 var(--display); letter-spacing: -.022em; padding-right: 44px; margin-bottom: 6px; }
.sheet .wrap { padding-bottom: 10px; }
.info-head .flags.big { width: 84px; color: var(--ink3); margin-bottom: 8px; }

/* Film page */
.film { position: relative; }
.f-sticky { position: sticky; top: 0; height: 0; z-index: 5; }
.f-sticky span { position: absolute; left: 0; right: 0; top: 0; height: 58px; padding: 18px 64px 0; text-align: center; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); border-bottom: .5px solid var(--line); opacity: clamp(0, calc((var(--st, 0) - 240) / 50), 1); }
.f-hero { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--fill); }
.f-hero img, .f-hero .img-ph { width: 100%; height: 100%; object-fit: cover; transform: translateY(calc(var(--st, 0) * .32px)); }
.f-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .28), transparent 26%, transparent 44%, color-mix(in srgb, var(--bg) 70%, transparent) 72%, var(--bg)); }
.f-titlebox { position: absolute; left: 18px; right: 18px; bottom: 10px; }
.f-cat { font-size: 13.5px; font-weight: 650; color: var(--c); }
.f-cat b { color: var(--accent); }
.f-title { font: 700 36px/1.02 var(--display); letter-spacing: -.028em; margin-top: 4px; text-wrap: balance; }
.f-alt { font: italic 500 18px var(--display); color: var(--ink2); margin-top: 3px; }
.f-body { padding: 6px 18px 22px; }
.f-by { font-size: 16px; color: var(--ink2); }
.f-by b { color: var(--ink); font-weight: 600; }
.cta-card { margin-top: 18px; background: var(--card); border-radius: 24px; padding: 16px; }
.cta-when b { display: block; font: 650 19px var(--display); }
.cta-when span { color: var(--ink2); font-size: 14.5px; }
.cta-row { display: flex; gap: 10px; margin-top: 14px; }
.pill { flex: 1; height: 52px; border-radius: 26px; background: var(--primary); color: var(--on-primary); font-weight: 650; font-size: 16.5px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .25s var(--spring), background .25s, color .25s; }
.pill:active { transform: scale(.97); }
.pill.on { background: color-mix(in srgb, var(--ok) 16%, var(--card)); color: var(--ok); }
.round { width: 52px; height: 52px; border-radius: 50%; background: var(--fill); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .2s var(--spring); }
.round:active { transform: scale(.9); }
.round.sm { width: 38px; height: 38px; }
.cta-share { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--accent-fill); color: var(--accent); text-align: left; transition: transform .2s var(--spring); }
.cta-share:active { transform: scale(.98); }
.cta-share span { flex: 1; min-width: 0; }
.cta-share b { display: block; font-weight: 650; }
.cta-share small { display: block; font-size: 13px; color: var(--ink2); }
.cta-clash { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: .5px solid var(--line); }
.cta-clash p { color: var(--live); font-weight: 600; font-size: 14px; flex: 1; min-width: 0; }
.cta-clash .text { white-space: nowrap; flex: none; }
.slot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.slot-d { width: 40px; text-align: center; line-height: 1.05; flex: none; }
.slot-d small { display: block; font-size: 11px; font-weight: 700; color: var(--live); text-transform: uppercase; letter-spacing: .05em; }
.slot-d b { font: 600 23px var(--display); }
.slot-i { flex: 1; min-width: 0; }
.slot-i b { display: block; font-weight: 600; }
.slot-i span { display: block; font-size: 14px; color: var(--ink2); }
.slot-i .slot-alert { color: var(--live); font-weight: 600; margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; margin-top: 22px; padding: 16px 0; border-top: .5px solid var(--line); border-bottom: .5px solid var(--line); }
.facts dt { font-size: 12.5px; color: var(--ink3); font-weight: 600; }
.facts dd { font-weight: 600; font-size: 15px; margin-top: 1px; }
.f-sec { margin-top: 30px; }
.f-sec.tight { margin-top: 18px; }
.f-sec > h3 { font: 650 22px var(--display); letter-spacing: -.01em; margin-bottom: 10px; }
.f-lede { color: var(--ink2); font-size: 14.5px; margin-bottom: 10px; }
.f-sub { font: 650 15px var(--display); color: var(--ink2); margin: 14px 0 2px; }
.f-syn { font-size: 17.5px; line-height: 1.55; white-space: pre-line; }
.linkcard { display: flex; gap: 12px; align-items: center; padding: 10px 14px; width: 100%; text-align: left; color: var(--ink); }
.linkcard img, .linkcard .img-ph { width: 84px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; }
.linkcard span { flex: 1; min-width: 0; }
.linkcard b { display: block; font-weight: 600; line-height: 1.25; }
.linkcard small { display: block; font-size: 13.5px; color: var(--ink2); margin-top: 1px; }
.linkcard > .ico { color: var(--ink3); }
section .linkcard { background: var(--card); border-radius: 16px; }
.bio { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; width: 100%; text-align: left; }
.bio + .bio { border-top: .5px solid var(--line); }
.bio img, .bio .av { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; }
.bio-t { flex: 1; min-width: 0; }
.bio-t b { display: block; font-weight: 650; }
.bio-t small { display: block; color: var(--ink3); font-size: 13px; }
.bio-p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink2); font-size: 15px; margin-top: 4px; }
/* Cast and crew: who's in it first, then the crew two to a row. Names are quiet links to a web search;
   someone who also worked on another DIFF film says so, linked to it. */
.cc-k { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink3); }
.cc-cast { font-size: 16px; line-height: 1.5; }
.cc-n + .cc-n::before { content: ', '; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 16px 0 0; }
.cc-grid .wide { grid-column: 1 / -1; }
.cc-grid dt { font-size: 12.5px; font-weight: 600; color: var(--ink3); }
.cc-grid dd { margin: 1px 0 0; font-size: 15px; line-height: 1.45; }
.nm { color: inherit; text-decoration: underline dotted 1px; text-decoration-color: var(--line2, rgba(128, 118, 104, .45)); text-underline-offset: 3px; }
.nm:hover { text-decoration: underline 1px; text-decoration-color: currentColor; }
.cc-also { font-size: 13px; color: var(--ink3); margin-left: 6px; }
.cc-also > a, .cc-also > .cc-film { font: inherit; color: var(--ink2); text-decoration: underline 1px; text-decoration-color: var(--line2, rgba(128, 118, 104, .45)); text-underline-offset: 2px; }
/* Festivals and awards: wins under a laurel, nominations quieter, then every other festival as a pill. */
.hon { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hon li { display: flex; gap: 10px; align-items: flex-start; }
.hon-ic { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 1px; }
.hon .nom .hon-ic { color: var(--ink3); }
.hon b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.hon .nom b { font-weight: 500; color: var(--ink2); }
.hon small { display: block; font-size: 13px; color: var(--ink3); margin-top: 1px; }
.hon-sel { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.hon + .hon-sel { margin-top: 16px; }
.hon-sel .cc-k { flex-basis: 100%; }
.pill { font-size: 13.5px; line-height: 1.3; padding: 5px 11px; border-radius: 999px; background: var(--fill); color: var(--ink2); }
.pill i { font-style: normal; color: var(--ink3); }
.hon-note { font-size: 14.5px; color: var(--ink2); margin-top: 12px; }
.cc-film { cursor: pointer; }
.f-foot { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
/* Trailer: a play button on the hero; tapped, the hero becomes a 16:9 player with the title below. */
.f-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 6px; border-radius: 24px; background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); color: #fff; font-weight: 650; font-size: 15.5px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3), 0 8px 24px rgba(0, 0, 0, .25); transition: transform .25s var(--spring); z-index: 2; }
.f-play:active { transform: translate(-50%, -50%) scale(.94); }
.f-play-ic { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #17110b; display: grid; place-items: center; }
.f-play-ic .ico { width: 16px; height: 16px; margin-left: 2px; }
.f-hero.playing { aspect-ratio: auto; overflow: visible; background: none; }
.f-hero.playing > img, .f-hero.playing > .img-ph, .f-hero.playing > .f-shade { display: none; }
.f-player { margin-top: 58px; aspect-ratio: 16 / 9; background: #000; animation: fadein .3s ease; }
.f-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.f-hero.playing .f-titlebox { position: static; margin: 16px 18px 0; }
.tr-cap { color: var(--ink3); font-size: 13px; margin-top: 8px; }
.f-cap { margin: 6px 18px 0; }

/* Context menu */
.menu-wrap { position: fixed; inset: 0; z-index: 90; }
.menu-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .22); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity .22s; }
.menu-wrap.open .menu-bg { opacity: 1; }
.menu-preview { position: fixed !important; margin: 0 !important; background: var(--card); border-radius: 18px; padding: 10px 12px !important; box-shadow: 0 16px 50px rgba(0, 0, 0, .3); transition: transform .3s var(--spring); pointer-events: none; }
.menu-preview::before { display: none; }
.menu-wrap.open .menu-preview { transform: scale(1.03); }
.menu { position: fixed; width: 250px; border-radius: 18px; overflow: hidden; transform: scale(.85); opacity: 0; transform-origin: top left; transition: transform .3s var(--spring), opacity .2s; }
.menu-wrap.open .menu { transform: none; opacity: 1; }
.menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 13px 16px; font-size: 16px; }
.menu button + button { box-shadow: inset 0 .5px 0 var(--line); }
.menu button.danger { color: var(--live); }

#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-space) + 4px); z-index: 95; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; transition: opacity .22s, transform .35s var(--spring); background: rgba(28, 24, 20, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #f6f1e3; border-radius: 18px; padding: 12px 16px; font-size: 15px; display: flex; gap: 16px; align-items: center; max-width: calc(100vw - 32px); width: max-content; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
html.sheet-open #toast { bottom: calc(var(--safe-b) + 20px); }
#toast button { color: #7fa6ff; font-weight: 650; }
.confetti { position: fixed; z-index: 100; width: 7px; height: 10px; border-radius: 1.5px; pointer-events: none; }

/* ------------------------------------------------------------ map */
html[data-tab="map"] body { overflow: hidden; }
#p-map { padding: 0; }
.mapscreen { position: fixed; inset: 0; }
#map { position: absolute; inset: 0; background: var(--bg); }
.map-top { position: absolute; top: calc(var(--safe-t) + 10px); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; z-index: 3; }
.map-top > * { pointer-events: auto; }
.map-title { padding: 9px 16px; border-radius: 20px; }
.map-title b { display: block; font: 700 18px var(--display); letter-spacing: .04em; }
.map-title span { display: block; font-size: 12.5px; color: var(--ink2); }
.map-ctrls { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; }
.map-ctrls button { width: 46px; height: 46px; display: grid; place-items: center; color: var(--ink); }
.map-ctrls button + button { box-shadow: inset 0 .5px 0 var(--line); }
.map-ctrls button[aria-pressed="true"] { color: var(--accent); }
.map-card { position: absolute; left: 12px; right: 12px; bottom: var(--tabbar-space); max-width: 540px; margin: 0 auto; border-radius: 28px; padding: 12px; z-index: 3; }
.rc-fields { position: relative; background: var(--fill); border-radius: 18px; }
.rc-field { display: flex; align-items: center; gap: 12px; padding: 7px 50px 7px 14px; width: 100%; text-align: left; }
.rc-field + .rc-field { box-shadow: inset 0 .5px 0 var(--line); }
.rc-field small { display: block; font-size: 12px; color: var(--ink3); font-weight: 600; }
.rc-field b { display: block; font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-field span { min-width: 0; }
.rc-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.rc-dot.from { box-shadow: inset 0 0 0 3px var(--accent); }
.rc-dot.to { background: var(--accent); }
.rc-swap { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.rc-res { display: flex; align-items: baseline; gap: 10px; padding: 10px 4px 8px; }
.rc-res b { font: 700 28px/1 var(--display); letter-spacing: -.03em; flex: none; }
.rc-sum { display: none; font-weight: 600; color: var(--ink) !important; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card.mini { padding: 12px 16px 10px; cursor: pointer; }
.map-card.mini .rc-fields, .map-card.mini .chips, .map-card.mini .rc-res > span:not(.rc-sum), .map-card.mini .pc-film, .map-card.mini .pc .btn-row, .map-card.mini .pc-head p { display: none; }
.map-card.mini .rc-sum { display: block; }
.map-card.mini .rc-res { padding: 4px 2px 0; }
.map-card.mini::before { content: ''; position: absolute; top: 5px; left: 50%; width: 32px; height: 4px; margin-left: -16px; border-radius: 2px; background: var(--line2); }
#map.z-far .mk:not(.mk-venue) { opacity: 0; pointer-events: none; }
#map:not(.z-near) .mk-minor .mk-label { display: none; }
.mk:not(.mk-venue) { transition: opacity .2s; }
.rc-res span { color: var(--ink2); font-size: 14.5px; }
.map-card .chips { margin: 0 -12px; padding: 0 12px 2px; }
.map-card .chip { height: 30px; font-size: 14px; padding: 0 12px; }
.pc-head { display: flex; gap: 12px; align-items: flex-start; padding: 4px 2px 6px; }
.pc-head > div { flex: 1; min-width: 0; }
.pc-head h3 { font: 650 22px/1.1 var(--display); }
.pc-head p { color: var(--ink2); font-size: 14px; margin-top: 2px; }
.pc-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); flex: none; }
.pc-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fill2); color: var(--ink); flex: none; }
.pc-ic.k-venue { background: var(--vc); color: #fff; }
.pc-ic.k-me { background: #2f7be0; color: #fff; }
.pc-film { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; background: var(--fill); border-radius: 16px; margin-top: 8px; text-align: left; }
.pc-film small { display: block; font-size: 12.5px; color: var(--ink2); }
.pc-film b { display: block; font-weight: 600; }
.pc-film.live small { color: var(--live); font-weight: 600; }
.pc .btn-row { margin-top: 12px; }
.mk { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.mk-pin { position: relative; min-width: 46px; height: 30px; padding: 0 9px; border-radius: 15px; background: var(--vc); color: #fff; display: grid; place-items: center; font: 800 12.5px var(--display); letter-spacing: .04em; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .3s var(--spring); }
.mk-pin::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.mk-venue .mk-label { order: 2; margin-top: 8px; }
.mk-label { padding: 2px 8px; border-radius: 9px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 11.5px; font-weight: 650; color: var(--ink); white-space: nowrap; margin-top: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.mk.sel .mk-pin { transform: scale(1.18) translateY(-3px); }
.mk-live { position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--live); border: 2px solid #fff; display: none; animation: pulse 1.8s ease-out infinite; }
.mk.live .mk-live { display: block; }
.mk-dot { width: 23px; height: 23px; border-radius: 50%; background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
.mk.k-food .mk-dot { color: #b88a00; }
.mk.k-wc .mk-dot { color: #1f9b96; }
.mk.k-info .mk-dot, .mk.k-shop .mk-dot { color: #2f4fb8; }
.mk.k-gate .mk-dot { background: var(--ink); color: var(--bg); }
.mk.sel .mk-dot { box-shadow: 0 0 0 3px var(--accent), 0 2px 8px rgba(0, 0, 0, .28); }
.me { width: 18px; height: 18px; border-radius: 50%; background: #2f7be0; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(47, 123, 224, .5); animation: me 2s ease-out infinite; }
@keyframes me { 0% { box-shadow: 0 0 0 0 rgba(47, 123, 224, .5); } 100% { box-shadow: 0 0 0 18px rgba(47, 123, 224, 0); } }
.maplibregl-ctrl-top-left { top: calc(var(--safe-t) + 70px) !important; }
.maplibregl-ctrl-attrib { font-size: 10px; background: var(--glass) !important; color: var(--ink2); }
.maplibregl-ctrl-attrib a { color: var(--ink2) !important; }

/* ------------------------------------------------------------ view transitions */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; animation-timing-function: ease; }
html[data-vt="tab"]::view-transition-old(root) { animation: vt-out .16s ease both; }
html[data-vt="tab"]::view-transition-new(root) { animation: vt-in .28s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
/* Names only while a transition runs: a view-transition-name makes an element a backdrop root,
   which would stop the glass inside it from blurring what's behind. */
html[data-vt] #tabs { view-transition-name: tabs; }
html[data-vt^="day"] .sched-body { view-transition-name: sched-body; }
html[data-vt^="day"]::view-transition-old(root), html[data-vt^="day"]::view-transition-new(root) { animation: none; }
html[data-vt="day-next"]::view-transition-old(sched-body) { animation: slide-out-l .3s var(--spring) both; }
html[data-vt="day-next"]::view-transition-new(sched-body) { animation: slide-in-r .34s var(--spring) both; }
html[data-vt="day-prev"]::view-transition-old(sched-body) { animation: slide-out-r .3s var(--spring) both; }
html[data-vt="day-prev"]::view-transition-new(sched-body) { animation: slide-in-l .34s var(--spring) both; }
@keyframes slide-out-l { to { transform: translateX(-28%); opacity: 0; } }
@keyframes slide-in-r { from { transform: translateX(28%); opacity: 0; } }
@keyframes slide-out-r { to { transform: translateX(28%); opacity: 0; } }
@keyframes slide-in-l { from { transform: translateX(-28%); opacity: 0; } }
html[data-vt="film"]::view-transition-group(film-hero) { animation-duration: .46s; animation-timing-function: var(--spring); }
html[data-vt="film"]::view-transition-old(root) { animation: none; }
html[data-vt="film"]::view-transition-new(root) { animation: vt-in .3s ease both; }
html[data-vt="film"]::view-transition-image-pair(film-hero) { isolation: auto; }
html[data-vt="film"]::view-transition-old(film-hero), html[data-vt="film"]::view-transition-new(film-hero) { animation: none; mix-blend-mode: normal; height: 100%; object-fit: cover; overflow: clip; }
html[data-vt="film"]::view-transition-new(film-title) { animation: vt-in .3s ease .16s both; }

@media (min-width: 760px) {
  .ed { width: 340px; }
  /* Phones let the chips bleed to the screen edge; wider screens keep them in the column. */
  .subbar > .chips { margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
  .gridbox { margin-left: 0; margin-right: 0; border-radius: 14px; overflow: clip; }
  .sky-title { font-size: 60px; }
}
/* Desktop: the schedule itself takes the width; the header, day picker and chips stay as wide as
   on other pages. The list flows in two columns; the grid fits all five screens, so only the page
   scrolls, and the screen names pin below the day picker. */
@media (min-width: 1024px) {
  /* The chips may run a little past the page width, centred, so a planned day's seven fit on one line. */
  #p-schedule .subbar > .chips { max-width: 780px; flex-wrap: wrap; justify-content: center; row-gap: 7px; margin: 0 auto; padding: 2px 0; }
  #p-schedule .wrap { max-width: 1132px; }
  #p-schedule .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
  #p-schedule .list > .nowbar, #p-schedule .list > .earlier { grid-column: 1 / -1; }
  #p-schedule .row + .row::before { left: 64px; }
  #p-schedule .list > .row:nth-child(2)::before { display: none; }
  #p-schedule .grid { overflow: visible; height: auto !important; scroll-snap-type: none; }
  #p-schedule .gridbox { --gcol: 0px; border-radius: 0; overflow: visible; }
  #p-schedule .g-headbar { position: sticky; top: var(--g-top, 0px); }
  #p-schedule .g-rail { position: relative; }
  #p-schedule .g-item { padding: 8px 10px 8px 13px; }
  #p-schedule .g-item.tiny { padding-top: 0; padding-bottom: 0; }
  #p-schedule .g-item b { font-size: 14px; }
  #p-schedule .g-item span { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------ crowd signals */
.crowd-n { display: inline-flex; align-items: center; gap: 3px; color: var(--ink2); font-weight: 600; font-variant-numeric: tabular-nums; }
.crowd-n .ico.xs { vertical-align: 0; }
.crowd-n.hot { color: var(--c-doc); }
.cta-when .crowd-n { display: flex; margin-top: 6px; font-size: 13.5px; }
.slot-i .crowd-n { display: inline-flex; font-size: 12.5px; margin-left: 4px; } /* not .slot-i span's block */
.crowd-n.first { color: var(--ink3); font-weight: 550; }
.q-now.q-none { color: var(--ink2); font-weight: 550; }
.qlink { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.loved-empty { display: flex; gap: 14px; align-items: center; }
.loved-empty .le-taps { font-size: 20px; letter-spacing: 1px; white-space: nowrap; flex: none; }
.loved-empty p { color: var(--ink2); font-size: 14.5px; }
.loved-empty b { color: var(--ink); }
.crowd-sum { margin-top: 10px; font-size: 15px; color: var(--ink2); }
.crowd-sum b { color: var(--ink); }

/* Queue status: a chip you can tap to report what you see. */
.qchip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 13px; border-radius: 17px; font-size: 13.5px; color: var(--ink2); background: var(--fill); text-align: left; transition: transform .2s var(--spring); max-width: 100%; }
.qchip:active { transform: scale(.96); }
.qchip span { min-width: 0; }
.qchip > b { color: var(--accent); font-weight: 650; margin-left: 2px; }
.qchip span b { color: var(--q); font-weight: 700; }
.qdot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--q); box-shadow: 0 0 0 3px color-mix(in srgb, var(--q) 22%, transparent); }
.q-ok { --q: var(--ok); } .q-warn { --q: var(--warn); } .q-live { --q: var(--live); }
.qchip.q-ok, .qchip.q-warn, .qchip.q-live { background: color-mix(in srgb, var(--q) 11%, var(--card)); }
.row .qchip { margin-top: 8px; min-height: 30px; padding: 4px 11px; font-size: 12.5px; }
.un-queue, .cta-queue, .pc-queue { margin-top: 12px; }
.pc-queue .qchip { width: 100%; }
.q-now { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-weight: 650; color: var(--q); }
.qopts { display: grid; gap: 10px; margin-top: 18px; }
.qopt { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--card); text-align: left; box-shadow: inset 0 0 0 1.5px transparent; transition: transform .2s var(--spring), box-shadow .2s; }
.qopt:active { transform: scale(.98); }
.qopt .qdot { grid-row: span 2; width: 14px; height: 14px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--q) 20%, transparent); }
.qopt b { font: 650 19px var(--display); }
.qopt small { color: var(--ink2); font-size: 14px; }
.qopt.on { box-shadow: inset 0 0 0 2px var(--q); }

/* One-tap rating after a screening. */
.rate-card { padding: 14px 14px 16px; }
.rate + .rate { margin-top: 16px; padding-top: 16px; border-top: .5px solid var(--line); }
.rate-q { font-size: 15.5px; color: var(--ink2); margin-bottom: 10px; }
.rate-q b { color: var(--ink); }
.rate-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rate-b { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 18px; background: var(--fill); transition: transform .3s var(--spring), background .2s; }
.rate-b:active { transform: scale(.92); }
.rate-e { font-size: 30px; line-height: 1.1; transition: transform .35s var(--spring); }
.rate-b small { font-size: 12.5px; font-weight: 600; color: var(--ink2); position: relative; }
.rate-b.on { background: var(--accent-fill); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rate-b.on .rate-e { transform: scale(1.18); animation: pop .45s var(--spring); }
.rate-b em { position: relative; font-style: normal; font: 700 15px var(--display); margin-top: 2px; }
.rate-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p); background: var(--accent); border-radius: 0 2px 2px 0; transition: width .6s var(--spring); }
.rate-foot { font-size: 13px; color: var(--ink3); margin-top: 8px; }
.crowdcard .nc-b p b { color: var(--ink); }

/* ------------------------------------------------------------ share hub, cards, QR */
.k-share, .k-qr, .k-card { background: var(--accent-fill); color: var(--accent); }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; }
.week button.dim b { color: var(--ink3); }
.cardprev { position: relative; margin: 16px auto 0; width: min(100%, 330px, calc((100dvh - 330px) * .5625)); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #0c0a08; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.cardprev img { width: 100%; height: 100%; object-fit: cover; -webkit-touch-callout: default; }
.cardprev img.first { animation: cardin .5s var(--spring); }
@keyframes cardin { from { opacity: 0; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .cardprev img.first { animation: fadein .2s ease; } }

/* The card studio and the hub's tiles */
.studio .studio-pad { padding-bottom: 0; }
.studio .cardprev { width: min(100%, 300px, calc((100dvh - 360px) * .5625)); }
.studio-controls { margin-top: 18px; }
.studio-controls:empty { display: none; }
.studio-why { text-align: center; font-size: 13.5px; color: var(--ink2); margin-top: 8px; }
.cardprev[data-nodrag] { touch-action: none; cursor: grab; }
.cardprev canvas.live { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-note { font-size: 13.5px; color: var(--ink2); margin: 8px 2px 0; text-align: center; }
.photo-pick { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; }
.photo-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.studio-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-weight: 600; font-size: 15px; }
.studio-row > span { flex: none; min-width: 64px; color: var(--ink2); }
.studio-row input[type=range] { flex: 1; accent-color: var(--ink); height: 32px; }
.studio-row select { flex: 1; min-width: 0; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(-45deg, transparent 50%, var(--ink2) 50%); background-position: right 18px top 50%, right 13px top 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; text-overflow: ellipsis; }
.studio-row.col { flex-direction: column; align-items: stretch; gap: 6px; }
.studio-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.studio-chips .chipbtn { height: 44px; padding: 0 16px; }
.studio-row > span small { font-weight: 500; color: var(--ink3); margin-left: 4px; }
.textin.area.short { min-height: 0; height: auto; resize: none; font-size: 17px; }
.stars.big button { width: 44px; height: 44px; }
.stars.big button .ico { width: 30px; height: 30px; }
.diary-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Letterboxd: log one film, or export the diary for its importer */
.lb-cell { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 16px; min-height: 56px; border-radius: 18px; background: var(--card); color: var(--ink); text-align: left; box-shadow: inset 0 0 0 1.5px var(--accent-fill); }
.lb-cell > span:not(.lb-ic) { flex: 1; min-width: 0; }
.lb-cell b, .lb-banner b { display: block; font-weight: 600; }
.lb-cell small { display: block; font-size: 13.5px; color: var(--ink2); }
.lb-cell > .ico { color: var(--ink3); }
.lb-ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.lb-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px; padding: 14px 16px; border-radius: 18px; background: var(--primary); color: var(--on-primary); text-align: left; }
.lb-banner > span:first-child { flex: 1; min-width: 0; }
.lb-banner b { font: 650 17px var(--display); }
.lb-banner small { display: block; font-size: 13.5px; opacity: .78; margin-top: 2px; }
.lb-go { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; display: inline-flex; align-items: center; background: var(--on-primary); color: var(--primary); font-weight: 600; font-size: 14px; }
.lb-head { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.lb-head img, .lb-head .img-ph { width: 84px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; }
.lb-head b { display: block; font-weight: 600; }
.lb-head small { display: block; font-size: 13.5px; color: var(--ink2); }
.lb-note-row { gap: 4px; }
.lb-note-h { display: flex; justify-content: space-between; align-items: center; }
.lb-note { font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lb-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: lb; display: flex; flex-direction: column; gap: 10px; }
.lb-steps li { counter-increment: lb; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.lb-steps li::before { content: counter(lb); flex: none; width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 700; }
.lb-steps b { font-weight: 600; }
.lb-done { padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ok); }
.lb-done > b { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.lb-done .lb-steps { margin-top: 10px; }
.lb-pick { cursor: pointer; }
.lb-pick input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.lb-pick b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tag { flex: none; font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-fill); border-radius: 8px; padding: 2px 8px; }
.lb-csv { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--fill); color: var(--ink2); font: 11.5px/1.55 ui-monospace, 'SF Mono', Menlo, monospace; overflow-x: auto; white-space: pre; }
.bingo-count { text-align: center; font-size: 15px; color: var(--ink2); margin-bottom: 10px; }
.bingo-count b { color: var(--ink); }
.bingo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bingo-grid button { position: relative; aspect-ratio: 1; padding: 6px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ink); display: grid; place-items: center; text-align: center; transition: transform .25s var(--spring); overflow: hidden; }
.bingo-grid button:active { transform: scale(.93); }
.bingo-grid button[aria-pressed="true"]::before { content: ''; position: absolute; inset: 12%; border: 3px solid rgba(200, 68, 42, .8); border-radius: 50%; transform: rotate(-12deg) scaleX(1.12); animation: ringin .35s var(--spring); }
.bingo-grid button.auto::after { content: ''; position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bingo-grid span { position: relative; }
.studio-q { font-size: 15.5px; color: var(--ink2); margin: 14px 2px 10px; }
.studio-q b { color: var(--ink); }
.word-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.word-grid .chipbtn { height: 44px; padding: 0 16px; font-size: 15.5px; }
.word-grid .chipbtn[aria-pressed="true"] { background: #ffd24d; color: #17110b; }
.type-teaser { display: grid; width: 100%; text-align: left; margin-top: 14px; padding: 18px 20px; border-radius: 22px; color: #f6f1e3; background: radial-gradient(120% 140% at 100% 0, #4a2f5c 0, #221b43 45%, #0c0a08 100%); box-shadow: var(--shadow); transition: transform .25s var(--spring); }
.type-teaser:active { transform: scale(.98); }
.type-teaser .tt-k { font-size: 14px; color: rgba(246, 241, 227, .75); }
.type-teaser b { font: 700 28px/1.1 var(--display); color: #ffd24d; margin-top: 2px; }
.type-teaser small { font-size: 14.5px; color: rgba(246, 241, 227, .82); margin-top: 4px; }
.type-teaser .tt-cta { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 14px; background: rgba(246, 241, 227, .14); font-size: 13.5px; font-weight: 600; }
.type-teaser.locked { background: var(--card); color: var(--ink); }
.type-teaser.locked .tt-k { color: var(--ink2); }
.type-teaser.locked b { color: var(--ink2); font-size: 18px; }
.rate-next { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.crowd-words { font-size: 15px; color: var(--ink2); margin-top: 4px; }
.crowd-words b { color: var(--ink); font-weight: 650; }
@keyframes ringin { from { transform: rotate(-40deg) scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bingo-grid button[aria-pressed="true"]::before { animation: none; } }
.card-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card-tile { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 10px; min-height: 76px; border-radius: 18px; background: var(--card); color: var(--ink); transition: transform .25s var(--spring); }
.card-tile:active { transform: scale(.96); }
.card-tile .ct-art { grid-row: 1 / 3; width: 44px; height: 57px; border-radius: 8px; background: linear-gradient(#221b43, #0c0a08 70%); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); overflow: hidden; }
.card-tile .ct-art.ct-paper { background: #efe7d4; }
.card-tile .ct-art svg { width: 100%; height: 100%; display: block; }
.card-tile b { align-self: end; font: 650 15.5px var(--display); }
.card-tile small { align-self: start; font-size: 12.5px; line-height: 1.3; color: var(--ink2); }
.card-tile.locked .ct-art { filter: grayscale(1); opacity: .45; }
.card-tile.locked b { color: var(--ink2); }
.card-tile.locked small { color: var(--ink3); }
.cardprev.busy img { opacity: .55; transition: opacity .2s; }
.cardprev .hint { color: #c9bfad; padding: 24px; }
.cp-shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, #15110d 20%, #262019 40%, #15110d 60%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes fadein { from { opacity: 0; } }
.qr { width: min(78vw, 300px); aspect-ratio: 1; margin: 22px auto 6px; padding: 14px; border-radius: 28px; background: #fffcf5; box-shadow: 0 18px 50px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(23, 17, 11, .06); }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-ph { width: 100%; height: 100%; border-radius: 16px; background: rgba(23, 17, 11, .06); }
.qr-name { max-width: 340px; margin: 18px auto 0; text-align: left; }
.qr-name label { display: block; color: var(--ink2); font-size: 14.5px; margin: 0 0 8px 4px; }
.qr-name div { display: flex; gap: 8px; }
.qr-name .textin { flex: 1; min-width: 0; }
.share-cta { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 30px; padding: 16px; border-radius: 22px; background: var(--card); text-align: left; box-shadow: var(--shadow); }
.share-cta b { display: block; font: 650 18px var(--display); }
.share-cta small { display: block; color: var(--ink2); font-size: 14px; margin-top: 2px; }
.share-cta > span:nth-child(2) { flex: 1; min-width: 0; }
.share-cta > .ico { color: var(--ink3); }
.sc-art { position: relative; width: 52px; height: 52px; flex: none; }
.sc-art i { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--card); }
.sc-art i:nth-child(1) { left: 0; top: 2px; background: var(--c-narrative); }
.sc-art i:nth-child(2) { right: 0; top: 2px; background: var(--c-doc); }
.sc-art i:nth-child(3) { left: 9px; bottom: 0; background: var(--c-talk); }
.fr-head { display: flex; align-items: center; gap: 14px; }
.fr-head .av.big { width: 56px; height: 56px; font-size: 22px; margin: 0; }
.fr-head .sheet-title { margin: 0; }
.form-h small { font: 500 13px var(--sans); color: var(--ink3); margin-left: 6px; }
.tg .cell { min-height: 60px; }
.tg-art { width: 64px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; }
.meet { gap: 14px; }
.meet-d { width: 34px; text-align: center; line-height: 1.05; flex: none; }
.meet-d small { display: block; font-size: 11px; font-weight: 700; color: var(--ok); text-transform: uppercase; letter-spacing: .05em; }
.meet-d b { font: 600 21px var(--display); }
.meet b { font-weight: 650; }
.meetcard { background: color-mix(in srgb, var(--ok) 12%, var(--card)); }
.meetcard .ico { color: var(--ok); }
.switch-row.formrow { padding: 14px 16px; gap: 14px; }
.switch-row.formrow b { display: block; font-weight: 550; }
.switch-row.formrow small { display: block; font-size: 13px; margin-top: 2px; }

/* ------------------------------------------------------------ passport */
.stamp-svg { display: block; transform: rotate(var(--t)); overflow: visible; }
.stamp-svg.faded { color: var(--line2); opacity: .9; }
.stamp-svg.faded text { opacity: .7; }
.pp-teaser { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 14px; padding: 14px 16px; border-radius: 22px; text-align: left; background: #efe7d4; color: #17110b; box-shadow: var(--shadow); background-image: repeating-linear-gradient(170deg, rgba(47, 79, 184, .05) 0 2px, transparent 2px 22px); }
:root.dark .pp-teaser { background-color: #2a241d; color: var(--ink); }
.ppt-stamps { display: flex; flex: none; }
.ppt-stamps .stamp-svg + .stamp-svg { margin-left: -16px; }
.ppt-stamps:empty::before { content: ''; width: 58px; height: 58px; border-radius: 50%; border: 2px dashed var(--line2); }
.ppt-t { flex: 1; min-width: 0; }
.ppt-t b { display: block; font: 650 18px var(--display); }
.ppt-t small { display: block; font-size: 13.5px; opacity: .7; }
.pp-teaser > .ico { opacity: .5; }
.pp-sheet .sheet-scroll { background: #efe7d4; color: #17110b; --ink2: #5d5244; --ink3: #8a7e6f; --line2: rgba(23, 17, 11, .2); --fill: rgba(23, 17, 11, .06); --card: #fffaf0; }
:root.dark .pp-sheet .sheet-scroll { background: #1d1914; color: var(--ink); --ink2: #b5aa98; --line2: rgba(246, 241, 227, .2); --card: #26211b; }
.pp-sheet .sheet-x { --glass: rgba(255, 255, 255, .5); }
.pp-cover { position: relative; padding: calc(30px) 22px 26px; background: #17110b; color: #f6f1e3; overflow: hidden; }
.pp-cover::after { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(229, 176, 0, .35); box-shadow: 0 0 0 18px rgba(229, 176, 0, .07), 0 0 0 38px rgba(229, 176, 0, .05); }
.pp-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e5b000; }
.pp-cover h2 { font: 700 46px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; margin-top: 10px; }
.pp-name { font: italic 600 22px var(--display); margin-top: 6px; opacity: .85; }
.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; position: relative; z-index: 1; }
.pp-stats span { font-size: 12px; color: #b5aa98; font-weight: 600; }
.pp-stats b { display: block; font: 700 28px var(--display); color: #f6f1e3; }
.pp-pages { padding-top: 6px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 18px 10px; }
.pp-stamp { text-align: center; }
.pp-stamp .stamp-svg { margin: 0 auto; }
.pp-stamp.on .stamp-svg { animation: thunk .5s var(--spring) both; }
.pp-stamp figcaption b { display: block; font-size: 12.5px; font-weight: 650; margin-top: 4px; line-height: 1.2; }
.pp-stamp figcaption small { display: block; font-size: 11.5px; color: var(--ink3); line-height: 1.25; margin-top: 1px; }
.pp-stamp:not(.on) figcaption { opacity: .6; }
@keyframes thunk { 0% { transform: rotate(var(--t)) scale(1.6); opacity: 0; } 60% { transform: rotate(var(--t)) scale(.94); opacity: 1; } 100% { transform: rotate(var(--t)) scale(1); } }
.stamp-moment { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; background: rgba(12, 10, 8, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadein .25s ease; cursor: pointer; transition: opacity .4s; }
.stamp-moment.out { opacity: 0; pointer-events: none; }
.sm-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 30px 22px; border-radius: 30px; background: #efe7d4; color: #17110b; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); text-align: center; animation: rise .45s var(--spring); }
.sm-card .stamp-svg { animation: thunk .6s .12s var(--spring) both; }
.sm-card b { font: 650 20px var(--display); margin-top: 6px; }
.sm-card small { color: #6a5e51; font-size: 13.5px; }
.stamp-moment.still *, .stamp-moment.still { animation: none !important; }
@keyframes rise { from { transform: translateY(30px) scale(.94); opacity: 0; } }

/* ------------------------------------------------------------ Wrapped (Today, after the festival) */
.wrapped { margin-top: 22px; padding: 22px 20px 20px; border-radius: 28px; color: #f6f1e3; background: radial-gradient(120% 90% at 100% 0, #3b2a5c 0, transparent 60%), radial-gradient(90% 80% at 0 100%, #5a2a1f 0, transparent 60%), #14100c; box-shadow: var(--shadow); }
.wr-k { font: 650 15px var(--display); letter-spacing: .1em; text-transform: uppercase; color: #ffd24d; }
.wr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; margin-top: 14px; }
.wr-grid div { display: flex; flex-direction: column; }
.wr-grid b { font: 700 38px/1 var(--display); letter-spacing: -.02em; }
.wr-grid span { font-size: 13px; color: #b5aa98; margin-top: 3px; }
.wr-grid .wr-big { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 10px; }
.wr-big b { font-size: 92px; letter-spacing: -.05em; color: #ffd24d; }
.wr-big span { font: 600 24px var(--display); color: #f6f1e3; }
.wr-fav { margin-top: 16px; color: #d9cfbd; }
.wr-fav b { color: var(--c); filter: brightness(1.35); }
.wr-top { display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 16px; padding: 10px; border-radius: 18px; background: rgba(246, 241, 227, .08); text-align: left; color: inherit; }
.wr-top img, .wr-top .img-ph { width: 92px; height: 58px; border-radius: 11px; object-fit: cover; flex: none; }
.wr-top small { display: block; font-size: 12px; color: #b5aa98; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.wr-top b { display: block; font: 650 18px/1.2 var(--display); }
.wrapped .btn.primary { background: #f6f1e3; color: #17110b; }

/* Map pins carry the latest queue report. */
.mk-q { position: absolute; bottom: -4px; left: -4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; display: none; }
.mk[data-q="ok"] .mk-q { display: block; background: #2fb36b; }
.mk[data-q="warn"] .mk-q { display: block; background: #f0a020; }
.mk[data-q="live"] .mk-q { display: block; background: #e5402f; }
:root.dark .pp-teaser .stamp-svg { filter: brightness(1.8) saturate(1.2); }

