/* BarTV - 16:9, 10-foot type. Sized in vw/vh-free "tv units" so a 1920x1080 TV and a
   laptop preview look the same. Brand colors come from venue.json "brand" as CSS vars. */
:root {
  --bg: #120d0a; --ink: #fff6e8; --accent: #ffb43a; --accent2: #e8452c; --muted: #c9b9a3;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: Impact, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  --title-font: var(--display); --slab-font: var(--display); --silver: #d9dde3;
  --u: min(1vw, 1.7778vh); /* 1u = 1/100 of the 16:9 frame width */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #000; overflow: hidden; cursor: none; }
.tv { position: absolute; inset: 0; margin: auto; width: calc(100 * var(--u)); height: calc(56.25 * var(--u));
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--accent) 18%, var(--bg)) 0%, var(--bg) 60%);
  color: var(--ink); font-family: var(--font); overflow: hidden; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.stage { position: absolute; inset: 0 0 calc(5 * var(--u)) 0; }
.scene { position: absolute; inset: 0; padding: calc(4 * var(--u)) calc(5 * var(--u)); opacity: 0;
  display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
/* crossfade between scenes */
.scene.on { animation: fadein 1s ease forwards, drift 14s ease-in-out 1s infinite alternate; }
.scene.out { opacity: 1; animation: fadeout 1s ease forwards; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { to { opacity: 0; } }
/* entrance: staggered rise-in; handoff: slide/blur out */
.scene .in { opacity: 0; transform: translateY(calc(3 * var(--u))); }
.scene.on .in { animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 140ms + 200ms); }
.scene.out .in { animation: leave .8s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes leave { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(calc(-2 * var(--u))); filter: blur(4px); } }
/* hold: slow drift on the whole scene */
@keyframes drift { from { opacity: 1; transform: scale(1); } to { opacity: 1; transform: scale(1.015); } }
/* looping accents */
.glow { animation-name: rise, glow !important; animation-duration: .9s, 3.2s !important; animation-iteration-count: 1, infinite !important;
  animation-delay: calc(var(--i, 0) * 140ms + 200ms), 1.4s !important; animation-fill-mode: forwards, none !important; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 transparent; } 50% { box-shadow: 0 0 calc(3 * var(--u)) color-mix(in srgb, var(--accent) 60%, transparent); } }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(calc(-1.5 * var(--u))); } }

.kicker { font-family: var(--title-font); font-size: calc(6 * var(--u)); line-height: 1.2; padding-bottom: .08em; letter-spacing: var(--title-spacing, .02em); text-transform: var(--title-case, uppercase); flex-shrink: 0; color: var(--accent); }
.big { font-family: var(--title-font); font-size: calc(8 * var(--u)); line-height: 1; }
h2 { font-size: calc(3.2 * var(--u)); line-height: 1.1; }
p { font-size: calc(2.2 * var(--u)); color: var(--muted); }

/* specials */
.cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); width: min(100%, calc(var(--n, 3) * 30 * var(--u))); align-items: stretch; min-height: calc(20 * var(--u)); gap: calc(2.5 * var(--u)); }
.card { background: color-mix(in srgb, var(--ink) 7%, transparent); border: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: calc(1.5 * var(--u)); padding: calc(2.5 * var(--u)); display: flex; flex-direction: column; gap: calc(1 * var(--u)); }
.card .price { font-family: var(--slab-font); font-size: calc(7 * var(--u)); color: var(--accent); line-height: 1; }
.when { color: var(--accent2); font-weight: 700; }
/* menu */
.menu-list { list-style: none; display: flex; flex-direction: column; gap: calc(1.4 * var(--u)); width: 75%; }
.menu-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(1 * var(--u)); font-size: calc(3.4 * var(--u)); font-weight: 700; }
.menu-list .leader { flex: 1; border-bottom: 3px dotted color-mix(in srgb, var(--ink) 30%, transparent); }
.menu-list .price { color: var(--accent); font-family: var(--display); }
.menu-list small { flex-basis: 100%; font-size: calc(1.9 * var(--u)); color: var(--muted); font-weight: 400; }
.accent-pour { position: absolute; right: calc(6 * var(--u)); bottom: calc(4 * var(--u)); width: calc(14 * var(--u)); height: calc(26 * var(--u));
  border: 4px solid var(--ink); border-top: none; border-radius: 0 0 calc(2 * var(--u)) calc(2 * var(--u)); overflow: hidden; }
.accent-pour::before { content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: linear-gradient(var(--ink) 0 12%, var(--accent) 12%);
  animation: pour 7s ease-in-out infinite; }
@keyframes pour { 0% { height: 5%; } 60%, 85% { height: 92%; } 100% { height: 5%; } }
/* events */
.event-rows { display: flex; flex-direction: column; gap: calc(1.6 * var(--u)); }
.event { display: grid; grid-template-columns: calc(20 * var(--u)) 1fr auto; align-items: center; gap: calc(2.5 * var(--u));
  background: color-mix(in srgb, var(--ink) 6%, transparent); border-left: calc(.8 * var(--u)) solid var(--accent2); padding: calc(1.5 * var(--u)) calc(2 * var(--u)); border-radius: calc(1 * var(--u)); }
.event .date b { display: block; font-family: var(--display); font-size: calc(3.6 * var(--u)); color: var(--accent); }
.event .date span { font-size: calc(2.2 * var(--u)); }
.tag { font-size: calc(1.8 * var(--u)); font-weight: 800; text-transform: uppercase; background: var(--accent2); color: var(--ink); padding: .4em .9em; border-radius: 99px; }
/* game day */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: calc(1.6 * var(--u)); }
.gameday .kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game { display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: calc(1.2 * var(--u)); background: color-mix(in srgb, var(--ink) 7%, transparent);
  padding: calc(1.4 * var(--u)) calc(2 * var(--u)); border-radius: calc(1.2 * var(--u)); border-bottom: 4px solid var(--accent); }
.game .team { font-family: var(--slab-font); font-size: calc(3 * var(--u)); white-space: nowrap; }
.game .game-break { flex-basis: 100%; height: 0; }
.game .vs { font-size: calc(2.4 * var(--u)); color: var(--muted); }
.game .kick { flex-basis: auto; margin-right: calc(1 * var(--u)); font-size: calc(2.4 * var(--u)); color: var(--accent); font-weight: 700; }
.game .screen { font-size: calc(1.9 * var(--u)); color: var(--muted); }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; padding: calc(.6 * var(--u)) 0; overflow: hidden; white-space: pre; font-size: calc(2.2 * var(--u)); font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, #000 30%, transparent); border-top: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.ticker span { display: inline-block; animation: ticker 40s linear infinite; }
/* text is doubled, so sliding half its width loops seamlessly with the bar always full */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* follow */
.follow { flex-direction: row; align-items: center; justify-content: space-between; }
.follow-copy { max-width: 55%; display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
.qr-row { display: flex; gap: calc(3 * var(--u)); }
.qr { background: #fff; padding: calc(1.2 * var(--u)); border-radius: calc(1.2 * var(--u)); text-align: center; color: #111; }
.qr img { width: calc(18 * var(--u)); height: calc(18 * var(--u)); display: block; image-rendering: pixelated; }
.qr figcaption { font-size: calc(1.8 * var(--u)); font-weight: 800; margin-top: .4em; }
/* hours */
.hours-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(1.2 * var(--u)); }
.day { text-align: center; padding: calc(2 * var(--u)) calc(.6 * var(--u)); border-radius: calc(1 * var(--u)); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.day b { display: block; font-family: var(--slab-font); font-size: calc(3.4 * var(--u)); }
.day span { display: block; font-size: calc(2.2 * var(--u)); line-height: 1.3; }
.day.today { background: var(--accent); color: var(--bg); }
/* closed / after hours */
.closed .big { font-family: var(--name-font, var(--title-font)); }
.closed { align-items: center; justify-content: center; text-align: center; }
.closed .qr { position: absolute; right: calc(5 * var(--u)); bottom: calc(3 * var(--u)); }
.closed .qr img { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.moon { width: calc(12 * var(--u)); height: calc(12 * var(--u)); border-radius: 50%; box-shadow: calc(-2.4 * var(--u)) calc(1.2 * var(--u)) 0 0 var(--accent); }
/* footer bar with progress dots */
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(5 * var(--u)); display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(3 * var(--u)); background: color-mix(in srgb, #000 45%, transparent); font-size: calc(2 * var(--u)); font-weight: 700; }
.dots[hidden] { display: none !important; }
.bar-credit { position: absolute; left: 50%; transform: translateX(-50%); font-size: calc(1.6 * var(--u)); letter-spacing: .08em; color: color-mix(in srgb, var(--ink) 55%, transparent); white-space: nowrap; }
.dots { display: flex; gap: calc(.8 * var(--u)); }
.dots i { width: calc(3 * var(--u)); height: calc(.6 * var(--u)); border-radius: 99px; background: color-mix(in srgb, var(--ink) 25%, transparent); overflow: hidden; }
.dots i.on b { display: block; height: 100%; background: var(--accent); animation: fill linear forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .scene.on, .ticker span, .pulse, .float { animation: none; } }

/* ---------- background textures (venue.json "texture") ---------- */
.tv.tex-brick::before, .tv.tex-field::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.tv.tex-brick::before {
  background:
    radial-gradient(60% 50% at 15% -5%, color-mix(in srgb, var(--silver) 22%, transparent), transparent 70%),
    radial-gradient(60% 50% at 85% -5%, color-mix(in srgb, var(--silver) 16%, transparent), transparent 70%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 2px, transparent 2px calc(3.2 * var(--u))),
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px calc(7 * var(--u)));
  opacity: .55; }
.tv.tex-field::before {
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 0 2px, transparent 2px calc(10 * var(--u))); }
.tv .stage, .tv .bar { z-index: 1; }

/* ---------- hero photo special ---------- */
.scene.hero { padding: 0; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; transform-origin: 60% 50%; }
.scene.hero.on .hero-img { animation: kenburns 12s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 68%); }
.hero-copy { position: absolute; left: calc(5 * var(--u)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: calc(1 * var(--u)); max-width: 52%; }
.hero-kicker { font-family: var(--slab-font); font-size: calc(2.4 * var(--u)); letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }
.hero-title { font-family: var(--title-font); font-size: calc(9 * var(--u)); line-height: .95; color: var(--ink); text-shadow: 0 .06em .18em rgba(0,0,0,.7); }
.hero-price { font-family: var(--slab-font); font-size: calc(17 * var(--u)); line-height: 1; color: var(--accent); text-shadow: 0 .04em 0 rgba(0,0,0,.5); }
.hero-note { font-size: calc(2.4 * var(--u)); color: var(--silver); }
.scene.on .price-glow { animation-name: rise, priceglow !important; animation-duration: .9s, 3s !important; animation-iteration-count: 1, infinite !important;
  animation-delay: calc(var(--i, 0) * 140ms + 200ms), 1.4s !important; animation-fill-mode: forwards, none !important; }
@keyframes priceglow { 0%, 100% { opacity: 1; transform: none; text-shadow: 0 .04em 0 rgba(0,0,0,.5); }
  50% { opacity: 1; transform: none; text-shadow: 0 .04em 0 rgba(0,0,0,.5), 0 0 .25em color-mix(in srgb, var(--accent) 70%, transparent); } }
.steam { position: absolute; right: 12%; top: 0; width: 40%; height: 70%; pointer-events: none; mix-blend-mode: screen; }
.steam i { position: absolute; bottom: 0; width: 26%; height: 75%; border-radius: 50%; filter: blur(calc(1.1 * var(--u)));
  background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0)); animation: steam 5s ease-in infinite; opacity: 0; }
.steam i:nth-child(1) { left: 5%; animation-delay: 0s; } .steam i:nth-child(2) { left: 25%; animation-delay: 1s; }
.steam i:nth-child(3) { left: 45%; animation-delay: 2s; } .steam i:nth-child(4) { left: 62%; animation-delay: 3s; }
.steam i:nth-child(5) { left: 78%; animation-delay: 4s; }
@keyframes steam { 0% { transform: translateY(20%) scaleX(.6); opacity: 0; } 25% { opacity: 1; }
  100% { transform: translateY(-70%) scaleX(1.3) rotate(8deg); opacity: 0; } }

/* hero photo framed on the right half so the whole item shows beside the text */
.hero-img.frame-right { left: 34%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }

/* sign-style lettering: brand "name-color", "name-stroke", "hero-title-color" */
.closed .big, .bar-name { font-family: var(--name-font, var(--title-font)); }
.closed .big, .hero-title { paint-order: stroke fill; }
.closed .big { color: var(--name-color, var(--ink)); -webkit-text-stroke: var(--name-stroke, 0) var(--ink);
  text-shadow: .04em .06em 0 rgba(0,0,0,.55); line-height: 1.15; }
.hero-title { color: var(--hero-title-color, var(--ink)); -webkit-text-stroke: var(--hero-title-stroke, 0) var(--ink); }
.bar-name { color: var(--name-color, var(--ink)); -webkit-text-stroke: calc(var(--name-stroke, 0) / 3) var(--ink); paint-order: stroke fill; }

/* spotlight event slide with mic + sound-wave accent */
.scene.spotlight { flex-direction: row; align-items: center; gap: calc(5 * var(--u)); }
.spot-copy { display: flex; flex-direction: column; gap: calc(1.2 * var(--u)); }
.spot-day { font-family: var(--slab-font); font-size: calc(3.2 * var(--u)); color: var(--silver); text-transform: uppercase; letter-spacing: .08em; }
.spot-title { font-family: var(--title-font); font-size: calc(9.5 * var(--u)); line-height: 1.05; color: var(--hero-title-color, var(--ink));
  -webkit-text-stroke: var(--hero-title-stroke, 0) var(--ink); paint-order: stroke fill; text-shadow: .04em .06em 0 rgba(0,0,0,.55); }
.spot-time { font-family: var(--slab-font); font-size: calc(7 * var(--u)); color: var(--accent); }
.mic-wrap { flex: 0 0 calc(26 * var(--u)); display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); }
.mic { position: relative; width: calc(11 * var(--u)); height: calc(11 * var(--u)); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, transparent 9%), repeating-radial-gradient(circle at 50% 50%, var(--silver) 0 3px, color-mix(in srgb, var(--silver) 45%, #000) 3px 5px);
  box-shadow: inset 0 0 0 calc(.5 * var(--u)) color-mix(in srgb, var(--silver) 70%, #000); animation: float 3s ease-in-out infinite; }
.mic::after { content: ""; position: absolute; left: 18%; right: 18%; top: 86%; height: calc(1.6 * var(--u)); border-radius: 4px; background: color-mix(in srgb, var(--silver) 60%, #000); }
.mic i { position: absolute; left: 50%; top: calc(100% + 1.4 * var(--u)); width: calc(3 * var(--u)); height: calc(10 * var(--u)); transform: translateX(-50%);
  background: linear-gradient(90deg, #222, #555 50%, #222); clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%); border-radius: 0 0 8px 8px; }
.wave { display: flex; align-items: center; gap: calc(.8 * var(--u)); height: calc(10 * var(--u)); margin-top: calc(10 * var(--u)); }
.wave b { width: calc(1.3 * var(--u)); height: 100%; border-radius: 99px; background: var(--accent); animation: eq 1.1s ease-in-out infinite; transform-origin: center; }
.wave b:nth-child(odd) { background: var(--accent2); }
.wave b:nth-child(1) { animation-delay: -0.14s; }
.wave b:nth-child(2) { animation-delay: -0.27s; }
.wave b:nth-child(3) { animation-delay: -0.41s; }
.wave b:nth-child(4) { animation-delay: -0.55s; }
.wave b:nth-child(5) { animation-delay: -0.69s; }
.wave b:nth-child(6) { animation-delay: -0.82s; }
.wave b:nth-child(7) { animation-delay: -0.96s; }
.wave b:nth-child(8) { animation-delay: -0.10s; }
.wave b:nth-child(9) { animation-delay: -0.23s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* Display fonts ship one weight; never fake bold/italic (it smears letters like "zz"). */
.tv { font-synthesis: none; }
.bar-name, .closed-name, .hero-title, h1, h2, .spot-title { font-weight: 400 !important; font-style: normal !important; }
/* Outline via shadows, not -webkit-text-stroke: Chrome strokes overlapping glyph
   contours (Shrikhand's "z" turned into an "x"). */
.closed .big, .hero-title, .bar-name, .spot-title { -webkit-text-stroke: 0 !important; }
.closed .big, .hero-title, .spot-title { --o: .035em; text-shadow:
  var(--o) 0 0 var(--ink), calc(-1*var(--o)) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(-1*var(--o)) 0 var(--ink),
  var(--o) var(--o) 0 var(--ink), calc(-1*var(--o)) var(--o) 0 var(--ink), var(--o) calc(-1*var(--o)) 0 var(--ink), calc(-1*var(--o)) calc(-1*var(--o)) 0 var(--ink),
  .07em .1em 0 rgba(0,0,0,.55) !important; }
/* spotlight with a host photo */
.spotlight.with-photo { gap: calc(4 * var(--u)); }
.spot-photo { flex: 0 0 38%; align-self: stretch; margin: 0; border-radius: 18px; overflow: hidden; display: flex;
  border: 4px solid var(--ink); box-shadow: 0 1.2em 2.4em rgba(0,0,0,.55); }
.spot-sub { font-family: var(--title-font); font-size: calc(6 * var(--u)); color: var(--ink); margin: 0;
  text-shadow: .06em .08em 0 rgba(0,0,0,.6); }
.with-photo .spot-title { font-size: calc(8 * var(--u)); }
.with-photo .spot-time { font-size: calc(5 * var(--u)); }
.with-photo .wave { margin-top: calc(1 * var(--u)); justify-content: flex-start; }
.spot-photo > div { flex: 1; background-size: cover; }
.with-photo .spot-title { font-size: calc(6.8 * var(--u)); }
.with-photo .spot-sub { font-size: calc(5 * var(--u)); }
.with-photo .spot-time { font-size: calc(4 * var(--u)); white-space: nowrap; }
.with-photo .wave { height: calc(6 * var(--u)); }
.spotlight.with-photo .spot-photo { flex-basis: 34%; }
.with-photo .spot-copy { min-width: 0; }
.with-photo .spot-time { font-size: calc(3.6 * var(--u)); }
/* spotlight with no picture: words stretched across the whole slide */
.spotlight.wide { justify-content: center; text-align: center; padding: 0 calc(6 * var(--u)); }
.wide .spot-copy { align-items: center; width: 100%; gap: calc(1.4 * var(--u)); }
.wide .spot-title { font-size: calc(7.6 * var(--u)); line-height: 1.08; }
.wide .spot-sub { font-size: calc(5.2 * var(--u)); }
.wide .spot-time { font-size: calc(4.6 * var(--u)); white-space: nowrap; }
.wide .wave { margin-top: calc(.6 * var(--u)); height: calc(5 * var(--u)); justify-content: center; }
/* bartender joke of the day: question, then the punchline lands a beat later */
.scene.joke { justify-content: center; text-align: center; align-items: center; gap: calc(3 * var(--u)); padding: 0 calc(8 * var(--u)); }
.joke-kicker { font-family: var(--slab-font); font-size: calc(3.2 * var(--u)); color: var(--silver); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.joke-q { font-family: var(--title-font); font-size: calc(6.4 * var(--u)); line-height: 1.15; color: var(--hero-title-color, var(--ink)); margin: 0; max-width: 24ch; }
.joke-a { font-family: var(--slab-font); font-size: calc(5 * var(--u)); color: var(--accent); margin: 0; max-width: 30ch; }
.scene.on .joke-a { animation-delay: 2.6s; }
.joke-glass { display: flex; flex-direction: column; align-items: center; gap: calc(3 * var(--u)); max-width: 88%; max-height: 86%; box-sizing: border-box; overflow: hidden;
  padding: calc(3.5 * var(--u)) calc(6 * var(--u)); border-radius: calc(2 * var(--u));
  background: linear-gradient(180deg, rgba(40,44,56,.48), rgba(22,25,33,.62)); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 calc(.8 * var(--u)) calc(3 * var(--u)) rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12); }
.joke-glass .joke-q { font-size: calc(6.4 * var(--u) * var(--jk, 1)); max-width: 28ch; }
.joke-glass .joke-a { font-size: calc(5 * var(--u) * var(--jk, 1)); max-width: 34ch; }
.joke-q { --o: .035em; text-shadow: var(--o) 0 0 var(--ink), calc(-1*var(--o)) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(-1*var(--o)) 0 var(--ink), .07em .1em 0 rgba(0,0,0,.55); }
/* team records on the games board */
.game .team { display: inline-flex; flex-direction: column; line-height: 1.05; font-size: calc(2.8 * var(--u)); }
.game { row-gap: calc(.7 * var(--u)); }
.game .rec { font-family: var(--slab-font); font-size: .62em; color: var(--silver); letter-spacing: .04em; margin-top: .12em; }
/* live game slide */
.scene.live-game { justify-content: center; align-items: center; text-align: center; gap: calc(3 * var(--u)); }
.lv-tag { font-family: var(--slab-font); font-size: calc(3.2 * var(--u)); color: var(--ink); text-transform: uppercase; letter-spacing: .1em; margin: 0;
  display: inline-flex; align-items: center; gap: .5em; }
.lv-dot { width: .7em; height: .7em; border-radius: 50%; background: var(--accent2, var(--accent)); animation: pulse 1.2s ease-in-out infinite; }
.lv-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; gap: calc(3 * var(--u)); }
.lv-team { display: flex; flex-direction: column; align-items: center; gap: calc(.8 * var(--u)); }
.lv-name { font-family: var(--title-font); font-size: calc(7 * var(--u)); white-space: nowrap; color: var(--hero-title-color, var(--ink)); line-height: 1.05;
  --o: .035em; text-shadow: var(--o) 0 0 var(--ink), calc(-1*var(--o)) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(-1*var(--o)) 0 var(--ink), .07em .1em 0 rgba(0,0,0,.55); }
.lv-rec { font-family: var(--slab-font); font-size: calc(3.4 * var(--u)); color: var(--silver); letter-spacing: .05em; }
.lv-score { font-family: var(--slab-font); font-size: calc(16 * var(--u)); line-height: 1; color: var(--accent); }
.lv-at { font-family: var(--slab-font); font-size: calc(5 * var(--u)); color: var(--silver); }
.lv-period { font-family: var(--slab-font); font-size: calc(5 * var(--u)); color: var(--ink); margin: 0;
  padding: .2em .9em; border-radius: 99px; background: color-mix(in srgb, var(--accent) 30%, transparent); border: 2px solid var(--accent); }
/* bartender on shift */
.scene.bartender { flex-direction: row; align-items: center; gap: calc(5 * var(--u)); }
.flyer { flex: 0 0 34%; align-self: stretch; margin: 0; border-radius: 18px; overflow: hidden; display: flex; border: 4px solid var(--ink);
  box-shadow: 0 1.2em 2.4em rgba(0,0,0,.55); }
.flyer > div { flex: 1; background-size: cover; background-position: center; }
.bt-copy { display: flex; flex-direction: column; gap: calc(1.5 * var(--u)); }
.bt-name { font-family: var(--title-font); font-size: calc(10 * var(--u)); color: var(--hero-title-color, var(--ink)); margin: 0; line-height: 1.05;
  --o: .035em; text-shadow: var(--o) 0 0 var(--ink), calc(-1*var(--o)) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(-1*var(--o)) 0 var(--ink), .07em .1em 0 rgba(0,0,0,.55); }
.bt-line { font-family: var(--slab-font); font-size: calc(4.4 * var(--u)); color: var(--accent); margin: 0; }
/* neon bartender flyer (content.bartender_flyer). Fonts load only when this slide shows. */
@font-face { font-family: "BarTV Neon Script"; src: url("/static/fonts/Pacifico-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "BarTV Condensed"; src: url("/static/fonts/BebasNeue-Regular.ttf") format("truetype"); font-display: swap; }
.scene.nflyer { --pink: #ff2fa8; --neon: 0 0 .06em #fff, 0 0 .18em var(--pink), 0 0 .45em var(--pink), 0 0 .9em rgba(255,47,168,.6);
  background: #050505; padding: 0; display: block; overflow: hidden; }
.nf-photo { position: absolute; top: 0; right: 0; height: 100%; width: 42%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%), linear-gradient(0deg, transparent 0, #000 22%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 40%), linear-gradient(0deg, transparent 0, #000 22%); mask-composite: intersect; }
.nf-left { position: absolute; left: calc(4 * var(--u)); top: calc(2.4 * var(--u)); bottom: calc(5.5 * var(--u)); width: 58%;
  display: flex; flex-direction: column; align-items: flex-start; }
.nf-name { font-family: "BarTV Neon Script", var(--display); font-weight: 400; font-size: calc(8 * var(--u)); line-height: 1.15; margin: 0;
  color: #ffd6ef; text-shadow: var(--neon); animation: neonflicker 6s infinite; }
@keyframes neonflicker { 0%, 46%, 50%, 100% { opacity: 1; } 47%, 49% { opacity: .75; } }
.nf-role { font-family: "BarTV Condensed", var(--display); font-size: calc(11 * var(--u)); line-height: .9; color: #fff; letter-spacing: .02em; text-transform: uppercase;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 6.2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 6.2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E"); }
.nf-when { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 calc(1.2 * var(--u)); margin-top: calc(.8 * var(--u)); }
.nf-every, .nf-day { font-family: "BarTV Condensed", var(--display); color: var(--pink); text-transform: uppercase; text-shadow: 0 0 .25em rgba(255,47,168,.55); }
.nf-every { font-size: calc(3.6 * var(--u)); }
.nf-day { font-size: calc(7 * var(--u)); line-height: .95; }
.nf-part { font-family: "BarTV Neon Script", var(--display); font-size: calc(5 * var(--u)); color: #ffe3f3; text-shadow: var(--neon); }
.nf-banner { margin-top: calc(1.2 * var(--u)); padding: calc(.5 * var(--u)) calc(5 * var(--u)); background: var(--pink);
  clip-path: polygon(2% 18%, 12% 4%, 40% 10%, 70% 0, 97% 8%, 100% 40%, 96% 62%, 99% 92%, 70% 100%, 38% 92%, 10% 100%, 0 80%, 3% 50%);
  font-family: "BarTV Condensed", var(--display); font-size: calc(5 * var(--u)); color: #140010; letter-spacing: .04em; }
.nf-bottom { margin-top: auto; display: flex; align-items: center; gap: calc(3 * var(--u)); }
.nf-venue { display: flex; align-items: center; gap: calc(1 * var(--u)); padding: calc(.6 * var(--u)) calc(1.6 * var(--u));
  border: 2px solid var(--pink); border-radius: 6px; font-family: "BarTV Condensed", var(--display); font-size: calc(5.6 * var(--u)); color: #fff; text-transform: uppercase; }
.nf-shamrock { width: calc(5 * var(--u)); height: calc(5 * var(--u)); color: #39ff6a; filter: drop-shadow(0 0 6px #39ff6a) drop-shadow(0 0 14px rgba(57,255,106,.6)); }
.nf-deal { display: flex; align-items: center; gap: calc(1 * var(--u)); font-family: "BarTV Condensed", var(--display); font-size: calc(3.6 * var(--u)); color: #fff;
  text-transform: uppercase; max-width: calc(20 * var(--u)); line-height: 1; }
.nf-bucket { width: calc(7 * var(--u)); height: auto; flex-shrink: 0; }
.nf-box { position: absolute; right: calc(3 * var(--u)); bottom: calc(6 * var(--u)); margin: 0; list-style: none; padding: calc(1.2 * var(--u)) calc(2 * var(--u));
  background: rgba(8,8,8,.88); border: 2px solid rgba(255,255,255,.85); display: grid; gap: calc(.8 * var(--u)); }
.nf-box li { display: flex; align-items: center; gap: calc(1.2 * var(--u)); font-family: "BarTV Condensed", var(--display); font-size: calc(3.2 * var(--u));
  color: var(--pink); text-transform: uppercase; letter-spacing: .04em; }
.nf-box svg { width: calc(3.4 * var(--u)); height: auto; color: #fff; }
.nf-box { display: flex; gap: calc(2 * var(--u)); bottom: calc(5.8 * var(--u)); right: calc(2 * var(--u)); padding: calc(.8 * var(--u)) calc(1.6 * var(--u)); }
.nf-box li { font-size: calc(2.6 * var(--u)); gap: calc(.7 * var(--u)); }
.nf-box svg { width: calc(2.8 * var(--u)); }
/* bartender "fit": "full" - whole portrait photo at full slide height, icon box beside it */
.nf-full .nf-photo { width: auto; max-width: 40%; object-fit: contain; object-position: right top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%), linear-gradient(0deg, transparent 0, #000 3%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28%), linear-gradient(0deg, transparent 0, #000 3%); }
.nf-full .nf-box { display: grid; gap: calc(.9 * var(--u)); right: auto; left: 61%; bottom: calc(14 * var(--u)); padding: calc(1.2 * var(--u)) calc(1.8 * var(--u)); }
.nf-full .nf-box li { font-size: calc(3 * var(--u)); }
.nf-full .nf-box svg { width: calc(3.2 * var(--u)); }
.nf-full .nf-photo { height: calc(100% - 5.4 * var(--u)); }
.nf-full .nf-box { left: 57%; }
/* full fit: blurred, darkened fill of the same photo widens it to the left without distorting
   the subject, fading into the black behind the text */
.nf-ambient { position: absolute; top: 0; right: 0; width: 62%; height: calc(100% - 5.4 * var(--u)); background-size: cover; background-position: center 30%;
  filter: blur(26px) brightness(.42) saturate(1.1); transform: scale(1.08);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%), linear-gradient(0deg, transparent 0, #000 12%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 55%), linear-gradient(0deg, transparent 0, #000 12%); mask-composite: intersect; }
.nf-full .nf-photo { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); -webkit-mask-composite: source-over; mask-composite: add; }
.nf-full .nf-left { z-index: 1; }
/* previews (?scene=) are static: no neon flicker */
.preview .nf-name { animation: none; }
.preview .scene.on { animation: fadein 1s ease forwards; }
.nf-full .nf-box { left: 57%; bottom: calc(5.8 * var(--u)); }

/* Chalk flyer style: hot pink / electric blue / purple chalk on a black board. */
.nf-chalk { background: radial-gradient(ellipse at 30% 40%, #15121c 0, #070609 75%); }
.nf-chalk-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.nf-chalk-bg .cd { filter: drop-shadow(0 0 4px currentColor); }
.nf-chalk-bg .nf-doodles path, .nf-chalk-bg .nf-doodles ellipse { filter: drop-shadow(0 0 6px #ff2fa8); }
.nf-chalk .nf-photo, .nf-chalk .nf-ambient { z-index: 0; }
.nf-chalk .nf-left, .nf-chalk .nf-box { z-index: 1; }
.nf-chalk .nf-role, .nf-chalk .nf-when { position: relative; isolation: isolate; }
.nf-chalk .nf-role { display: inline-block; }
.nf-brush { position: absolute; left: 0; bottom: calc(-1.2 * var(--u)); width: 70%; height: calc(1.4 * var(--u)); z-index: 0; opacity: 1; pointer-events: none; }
.nf-chalk .nf-role > :not(.nf-brush), .nf-chalk .nf-when > span { position: relative; z-index: 1; }
.nf-chalk .nf-when .nf-brush { bottom: calc(-1.4 * var(--u)); width: 85%; }
.nf-chalk .nf-name, .nf-chalk .nf-role, .nf-chalk .nf-day { text-shadow: 0 0 .25em rgba(0,0,0,.9), 0 0 .5em rgba(255,47,168,.55); }
.nf-chalk .nf-name { text-shadow: var(--neon); }

/* Bartender video: same slot and fade as the photo; full-screen variant shows the clip alone. */
video.nf-photo { background: transparent; }
.scene.bt-video { background: #000; padding: 0; }
.bt-video-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
/* Full-screen bartender clips play exactly as made: fade only, no drift/zoom/scale on the slide or the video. */
.scene.bt-video, .scene.bt-video.on, .preview .scene.bt-video.on { animation: fadein 1s ease forwards; transform: none; }
.scene.bt-video.out { animation: fadeout 1s ease forwards; transform: none; }
.scene.bt-video .bt-video-clip { transform: none !important; animation: none !important; transition: none; filter: none; object-fit: contain; }
/* image_full shares the bt-video slide rules above: fade only, no drift or zoom, object-fit contain. */
.scene.bt-image img.bt-video-clip { display: block; }

/* Happy Birthday slide: confetti + balloons drawn in CSS, names shrink to fit (--fs in --u units). */
.scene.birthday { align-items: center; justify-content: center; text-align: center; gap: calc(1.5 * var(--u)); overflow: hidden; }
.bd-kicker { font-family: var(--title-font); font-size: calc(9 * var(--u)); line-height: 1.1; color: var(--accent); text-shadow: 0 .05em 0 rgba(0,0,0,.45); position: relative; z-index: 2; }
.bd-names { font-family: var(--slab-font); font-size: calc(var(--fs) * var(--u)); line-height: 1.12; color: var(--ink); display: flex; flex-direction: column; align-items: center;
  max-width: 82%; position: relative; z-index: 2; text-shadow: 0 .06em .15em rgba(0,0,0,.6); overflow-wrap: anywhere; }
.bd-names.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(5 * var(--u)); }
.bd-names span { display: block; }
.bd-line { font-family: var(--slab-font); font-size: calc(3 * var(--u)); color: var(--silver); position: relative; z-index: 2; }
.bd-glass { position: relative; z-index: 2; width: 80%; max-height: 88%; display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  gap: calc(1.2 * var(--u)); padding: calc(2.6 * var(--u)) calc(4 * var(--u)); box-sizing: border-box; overflow: hidden;
  background: linear-gradient(180deg, rgba(40,44,56,.42), rgba(22,25,33,.55)); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.16); border-radius: calc(2 * var(--u));
  box-shadow: 0 calc(.8 * var(--u)) calc(3 * var(--u)) rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 calc(3 * var(--u)) rgba(255,255,255,.04); }
.bd-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.10), transparent 40%); }
.bd-glass .bd-names { max-width: 100%; white-space: nowrap; overflow-wrap: normal; }
.bd-glass .bd-names.cols span { white-space: normal; }
.bd-glass .bd-kicker { font-size: calc(7.5 * var(--u)); white-space: nowrap; margin: 0; }
.bd-glass .bd-line { margin: 0; }
.bd-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bd-confetti i { position: absolute; top: -6%; left: var(--x); width: calc(1 * var(--u)); height: calc(1.8 * var(--u)); background: var(--c); border-radius: 2px;
  transform: rotate(var(--r)); animation: confetti 6s linear var(--d) infinite; animation-delay: calc(-1 * var(--d)); opacity: .9; }
@keyframes confetti { to { top: 106%; transform: rotate(calc(var(--r) + 540deg)) translateX(calc(4 * var(--u))); } }
.bd-balloon { position: absolute; top: 40%; width: calc(7 * var(--u)); height: calc(8.6 * var(--u)); background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 30%), var(--c);
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%; z-index: 1; box-shadow: inset -.6vw -.8vw 0 rgba(0,0,0,.18); }
.bd-balloon span { position: absolute; left: 50%; top: 100%; width: 2px; height: calc(14 * var(--u)); background: rgba(255,255,255,.6); }
.bd-balloon::after { content: ""; position: absolute; left: 50%; top: 98%; transform: translateX(-50%); border: calc(.6 * var(--u)) solid transparent; border-bottom-color: var(--c); }
.preview .bd-confetti i { animation: none; top: var(--y); }

/* Special events (admin page): flyer whole and uncropped on navy, no zoom/drift, no blurred fill. */
.scene.special { padding: calc(2 * var(--u)) calc(4 * var(--u)) calc(6 * var(--u)); gap: calc(2.5 * var(--u)); background: var(--bg); }
.scene.special, .scene.special.on { transform: none; }
.scene.special.solo { padding: calc(1 * var(--u)) calc(1 * var(--u)) calc(5 * var(--u)); }
.scene.special.side { flex-direction: row; align-items: center; }
.scene.special.stack { flex-direction: column; align-items: center; }
.sp-pic { flex: 1 1 auto; min-width: 0; min-height: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.side .sp-pic { height: 100%; }
.stack .sp-pic { width: 100%; }
.sp-img { display: block; width: 100%; height: 100%; object-fit: contain; animation: none !important; transform: none !important; }
.sp-cap { font-family: var(--slab-font); font-size: calc(var(--fs) * var(--u)); line-height: 1.18; color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.sp-cap { overflow: hidden; display: flex; flex-direction: column; justify-content: safe center; }
.side .sp-cap { flex: 1 1 0; align-self: stretch; }
.stack .sp-cap { flex: 1 1 0; min-height: 0; width: 100%; }
.sp-cap p { margin: 0; font-size: 1em; color: inherit; }
.sp-cap p:first-child { font-family: var(--title-font); color: var(--accent); line-height: 1.25; }

/* Specials for each day: 7 rows (+ "Every day"), today big and bright; sized by --fs via data-fit. */
.scene.weekly { padding: calc(2.5 * var(--u)) calc(6 * var(--u)) calc(5.5 * var(--u)); gap: calc(1 * var(--u)); }
.scene.weekly .kicker { text-align: center; font-size: calc(5.2 * var(--u)); }
.wk-list { flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: safe center; gap: .08em; font-size: calc(var(--fs) * var(--u)); }
.wk-row, .wk-every { display: grid; grid-template-columns: 6.6em 1fr auto; align-items: center; gap: .6em; padding: .04em .5em; border-radius: .25em; font-size: .85em; line-height: 1.08; }
.wk-row b, .wk-every b { font-family: var(--slab-font); font-weight: 400; color: var(--silver); display: flex; align-items: baseline; gap: .4em; }
.wk-row span, .wk-every span { font-family: var(--slab-font); color: var(--ink); }
.wk-row.none span { color: var(--muted); opacity: .45; font-size: .75em; font-style: italic; }
.wk-row.none b { opacity: .6; }
.wk-row.today { font-size: 1.12em; background: var(--accent); box-shadow: 0 0 0 .08em #ffd23f, 0 .2em .8em rgba(0,0,0,.45); padding: .18em .5em; }
.wk-row.today b, .wk-row.today span { color: #fff; opacity: 1; }
.wk-row.today.none span { font-size: .8em; }
.wk-row.today em { font-family: var(--title-font); font-style: normal; font-size: .7em; color: #ffd23f; padding-right: .2em; }
.wk-every { margin-top: .3em; border-top: .06em solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 0; padding-top: .35em; }
.wk-every b { color: var(--accent); }
.fitting .in, .fitting.in { transform: none !important; animation: none !important; }
.wk-row span, .wk-every span { white-space: nowrap; }

/* Team Tracker cards (gameday scene when content.teams is set), styled like Tray's Home Assistant
   teamtracker-card: dark frosted glass over a smoky backdrop, ESPN logos (proxied), faded logo
   watermarks cropped at the card edges. Club left, opponent right. */
.scene.teamtracker { padding: calc(1.1 * var(--u)) calc(3.5 * var(--u)) calc(4.7 * var(--u)); gap: calc(.7 * var(--u)); background: #0d0f14; }
.scene.teamtracker::before, .scene.livegame::before { content: ""; position: absolute; inset: -10%; z-index: 0; filter: blur(calc(4 * var(--u)));
  background: radial-gradient(40% 50% at 18% 30%, rgba(120,128,145,.35), transparent 70%), radial-gradient(45% 40% at 80% 70%, rgba(95,100,118,.32), transparent 70%),
    radial-gradient(35% 35% at 55% 15%, rgba(150,150,165,.18), transparent 70%), radial-gradient(60% 50% at 50% 100%, rgba(70,75,90,.45), transparent 70%), #12141b; }
.scene.teamtracker > *, .scene.livegame > * { position: relative; z-index: 1; }
.scene.teamtracker .kicker { text-align: center; font-size: calc(3 * var(--u)); line-height: 1.1; }
.tt-list { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: calc(.9 * var(--u)); }
.tt-card { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(180deg, rgba(40,44,56,.62), rgba(22,25,33,.72)); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.12); border-radius: calc(1.1 * var(--u)); box-shadow: 0 calc(.5 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  padding: calc(.5 * var(--u)) calc(2.2 * var(--u)) calc(.5 * var(--u)); font-family: var(--font); }
.tt-wm { position: absolute; top: 50%; height: 190%; transform: translateY(-50%); opacity: .09; filter: grayscale(.2) blur(1px); pointer-events: none; z-index: 0; }
.tt-wm-l { left: -7%; } .tt-wm-r { right: -7%; }
.tt-card > :not(.tt-wm) { position: relative; z-index: 1; }
.tt-lg { position: absolute !important; top: calc(.5 * var(--u)); left: calc(1.2 * var(--u)); font-size: calc(1.2 * var(--u)); font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.6); }
.tt-top { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr minmax(calc(34 * var(--u)), 1.3fr) 1fr; align-items: center; }
.tt-team { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; text-align: center; }
.tt-mark { height: calc(4.6 * var(--u)); display: flex; align-items: center; justify-content: center; }
.tt-logo { height: 100%; width: auto; max-width: calc(12 * var(--u)); object-fit: contain; filter: drop-shadow(0 .2em .3em rgba(0,0,0,.5)); }
.tt-abbr { display: none; font-family: var(--slab-font); font-size: calc(5 * var(--u)); line-height: 1; }
.nologo .tt-logo { display: none; } .nologo .tt-abbr { display: block; }
.tt-name { font-size: calc(1.95 * var(--u)); font-weight: 400; line-height: 1.1; white-space: nowrap; }
.tt-rec { font-size: calc(1.35 * var(--u)); line-height: 1.15; color: rgba(255,255,255,.75); }
.tt-lose { opacity: .45; }
.tt-mid { display: flex; justify-content: center; align-items: center; text-align: center; }
.tt-when { display: flex; flex-direction: column; align-items: center; font-weight: 300; line-height: 1.15; }
.tt-day { font-size: calc(2.8 * var(--u)); } .tt-date { font-size: calc(1.8 * var(--u)); color: rgba(255,255,255,.8); } .tt-time { font-size: calc(2.2 * var(--u)); margin-top: .15em; } .tt-time .tt-date { font-size: 1em; }
.tt-scores { display: flex; align-items: center; gap: calc(3 * var(--u)); }
.tt-score { font-family: var(--slab-font); font-size: calc(6.4 * var(--u)); line-height: 1; min-width: 1.3em; }
.tt-clock { display: flex; flex-direction: column; align-items: center; font-size: calc(2 * var(--u)); font-weight: 300; line-height: 1.2; min-width: calc(10 * var(--u)); }
.tt-live { display: flex; align-items: center; gap: .35em; font-weight: 600; }
.tt-foot { flex: 0 0 auto; display: flex; justify-content: space-between; gap: calc(3 * var(--u)); border-top: 1px solid rgba(255,255,255,.55);
  margin-top: calc(.5 * var(--u)); padding-top: calc(.4 * var(--u)); font-size: calc(1.35 * var(--u)); line-height: 1.25; }
.tt-fl, .tt-fr { min-width: 0; } .tt-fr { text-align: right; flex-shrink: 0; max-width: 40%; }
.tt-fl div, .tt-fr div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.85); }
.tt-foot b { font-weight: 700; color: #fff; font-size: 1.12em; }
.tt-none { flex-direction: row; align-items: center; }
.tt-solo { display: flex; align-items: center; gap: calc(3 * var(--u)); padding: 0 calc(2 * var(--u)); }
.tt-solo .tt-abbr { display: block; }
.tt-solo-txt { display: flex; flex-direction: column; font-size: calc(2.4 * var(--u)); }
.tt-solo-txt span { color: rgba(255,255,255,.7); font-weight: 300; }
.tt-empty { margin: auto; font-size: calc(3 * var(--u)); }

/* Live-game takeover: same glass look; --k is the card unit (full screen = --u, split = smaller). */
.scene.livegame { --k: var(--u); padding: calc(1.6 * var(--u)) calc(2.5 * var(--u)) calc(4.9 * var(--u)); background: #0d0f14; }
.scene.livegame.two { --k: calc(.5 * var(--u)); }
.lg-list { flex: 1 1 0; min-height: 0; display: flex; gap: calc(1.4 * var(--u)); }
.lg-card { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; color: #fff; font-family: var(--font);
  background: linear-gradient(180deg, rgba(40,44,56,.62), rgba(22,25,33,.74)); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.12); border-radius: calc(1.4 * var(--u)); box-shadow: 0 calc(.6 * var(--u)) calc(2.4 * var(--u)) rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  padding: calc(3 * var(--k)) calc(3 * var(--k)) calc(2.2 * var(--k)); }
.lg-card > :not(.tt-wm) { position: relative; z-index: 1; }
.lg-card .tt-wm { height: 120%; opacity: .08; } .lg-card .tt-wm-l { left: -12%; } .lg-card .tt-wm-r { right: -12%; }
.lg-card .tt-lg { font-size: calc(1.4 * var(--u)); top: calc(1 * var(--u)); left: calc(1.4 * var(--u)); display: flex; align-items: center; gap: .5em; color: rgba(255,255,255,.75); }
.scene.livegame.two .lg-card .tt-lg { font-size: calc(1.1 * var(--u)); }
.lg-top { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: calc(2 * var(--k)); }
.lg-team { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; gap: calc(.5 * var(--k)); }
.lg-mark { height: calc(15 * var(--k)); display: flex; align-items: center; justify-content: center; }
.lg-mark .tt-logo { max-width: calc(24 * var(--k)); }
.lg-mark .tt-abbr { font-size: calc(10 * var(--k)); }
.lg-team.nologo .tt-logo { display: none; } .lg-team.nologo .tt-abbr, .lg-mark.nologo .tt-abbr { display: block; } .lg-mark.nologo .tt-logo { display: none; }
.lg-name { font-size: calc(3.6 * var(--k)); font-weight: 400; line-height: 1.1; }
.lg-rec { font-size: calc(2.4 * var(--k)); color: rgba(255,255,255,.7); }
.lg-pips { display: flex; gap: calc(.7 * var(--k)); margin-top: calc(.6 * var(--k)); }
.lg-pips i { width: calc(2.6 * var(--k)); height: calc(.7 * var(--k)); border-radius: 99px; background: rgba(255,255,255,.18); }
.lg-pips i.on { background: #ffd23f; box-shadow: 0 0 .5em rgba(255,210,63,.6); }
.lg-mid { display: flex; flex-direction: column; align-items: center; gap: calc(1 * var(--k)); }
.lg-scores { display: flex; align-items: center; gap: calc(1.6 * var(--k)); }
.lg-score { font-family: var(--slab-font, "Alfa Slab One"), serif; font-size: calc(14 * var(--k)); line-height: 1; text-shadow: 0 .05em .15em rgba(0,0,0,.5); }
.lg-score.bump { animation: lgbump 1.6s ease-out; }
@keyframes lgbump { 0% { transform: scale(1.25); color: #ffd23f; text-shadow: 0 0 .4em rgba(255,210,63,.8); } 100% { transform: scale(1); } }
.lg-dash { font-size: calc(6 * var(--k)); color: rgba(255,255,255,.4); }
.lg-ball { width: calc(1.6 * var(--k)); height: calc(1.6 * var(--k)); border-radius: 50%; background: #ffd23f; box-shadow: 0 0 .6em rgba(255,210,63,.7); }
.lg-ball.off { visibility: hidden; }
.lg-clock { font-size: calc(4.4 * var(--k)); font-weight: 300; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-mlb { display: flex; align-items: center; gap: calc(2 * var(--k)); font-size: calc(2.8 * var(--k)); color: rgba(255,255,255,.85); }
.lg-bases { position: relative; width: calc(6 * var(--k)); height: calc(4.4 * var(--k)); }
.lg-bases i { position: absolute; width: calc(1.9 * var(--k)); height: calc(1.9 * var(--k)); transform: rotate(45deg); border: 2px solid rgba(255,255,255,.7); }
.lg-bases i.on { background: #ffd23f; border-color: #ffd23f; }
.lg-bases .b2 { left: calc(2.05 * var(--k)); top: 0; } .lg-bases .b3 { left: calc(.3 * var(--k)); top: calc(1.9 * var(--k)); } .lg-bases .b1 { left: calc(3.8 * var(--k)); top: calc(1.9 * var(--k)); }
.lg-row { display: flex; justify-content: space-between; gap: 2em; border-top: 1px solid rgba(255,255,255,.18); margin-top: calc(1.4 * var(--k)); padding-top: calc(1.2 * var(--k));
  font-size: calc(2.3 * var(--k)); color: rgba(255,255,255,.85); }
.lg-row span:last-child { text-align: right; font-weight: 700; }
.lg-play { border-top: 1px solid rgba(255,255,255,.18); margin-top: calc(1.2 * var(--k)); padding-top: calc(1.2 * var(--k)); font-size: calc(2.4 * var(--k)); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lg-prob { margin-top: calc(1.6 * var(--k)); }
.lg-pl { display: flex; justify-content: space-between; align-items: baseline; font-size: calc(2.2 * var(--k)); }
.lg-pl span { font-size: .8em; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.lg-bar { display: flex; height: calc(1 * var(--k)); border-radius: 99px; overflow: hidden; margin-top: calc(.6 * var(--k)); background: rgba(255,255,255,.1); }
.lg-bar i { display: block; height: 100%; transition: width 1s ease; }
.scene.livegame.two .lg-mark { height: calc(18 * var(--k)); }
.scene.livegame.two .lg-name { font-size: calc(4.4 * var(--k)); } .scene.livegame.two .lg-rec { font-size: calc(3 * var(--k)); }
.scene.livegame.two .lg-row, .scene.livegame.two .lg-play, .scene.livegame.two .lg-pl { font-size: calc(3 * var(--k)); }
.scene.livegame.two .lg-row { flex-direction: column; gap: .3em; } .scene.livegame.two .lg-row span:last-child { text-align: left; }
.scene.livegame.two .lg-score { font-size: calc(16 * var(--k)); } .scene.livegame.two .lg-clock { font-size: calc(5.4 * var(--k)); }
.lg-pips.many i { width: calc(1.5 * var(--k)); }
.lg-card.mlb .lg-score { font-size: calc(12 * var(--k)); } .scene.livegame.two .lg-card.mlb .lg-score { font-size: calc(14 * var(--k)); }
.lg-card.mlb .lg-mid { gap: calc(.6 * var(--k)); }

/* Weather slide (NWS): glass cards like Team Tracker; current conditions left, hourly + days right. */
.scene.weather { padding: calc(3 * var(--u)) calc(3.5 * var(--u)) calc(6.5 * var(--u)); gap: calc(1.4 * var(--u)); font-family: var(--font); color: #fff;
  background: radial-gradient(60% 50% at 50% -10%, rgba(78,184,255,.16), transparent 60%), radial-gradient(40% 40% at 100% 10%, rgba(255,176,32,.08), transparent 60%); }
.wx-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 0;
  background: linear-gradient(180deg, rgba(40,44,56,.62), rgba(22,25,33,.72)); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.12); border-radius: calc(1.1 * var(--u)); box-shadow: 0 calc(.5 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  padding: calc(1.6 * var(--u)) calc(2.2 * var(--u)); }
.wx-card h3 { margin: 0 0 calc(.8 * var(--u)); font-size: calc(1.5 * var(--u)); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.wx-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 34fr 66fr; gap: calc(1.4 * var(--u)); }
.wx-side { display: grid; grid-template-rows: 1fr 1fr; gap: calc(1.4 * var(--u)); min-height: 0; }
.wx-now { align-items: center; justify-content: center; text-align: center; gap: calc(.6 * var(--u)); }
.wx-place { font-family: var(--title-font); font-size: calc(4.2 * var(--u)); color: var(--accent); line-height: 1.1; text-shadow: 0 .05em 0 rgba(0,0,0,.45); }
.wx-main { display: flex; align-items: center; justify-content: center; gap: calc(1 * var(--u)); }
.wx-big .wx-ic { width: calc(10 * var(--u)); height: calc(10 * var(--u)); }
.wx-temp { font-family: var(--slab-font); font-size: calc(10 * var(--u)); line-height: 1; font-weight: 800; }
.wx-cond { font-size: calc(2.8 * var(--u)); font-weight: 600; }
.wx-hilo { display: flex; gap: calc(2.4 * var(--u)); font-size: calc(2.6 * var(--u)); color: rgba(255,255,255,.7); }
.wx-hilo b { color: #fff; }
.wx-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: calc(.8 * var(--u)) calc(1.6 * var(--u)); width: 100%; margin-top: calc(1 * var(--u));
  padding-top: calc(1.2 * var(--u)); border-top: 1px solid rgba(255,255,255,.12); }
.wx-stats div { display: flex; flex-direction: column; gap: calc(.2 * var(--u)); }
.wx-stats span { font-size: calc(1.4 * var(--u)); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.wx-stats b { font-size: calc(2.6 * var(--u)); }
.wx-row { flex: 1 1 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: calc(.6 * var(--u)); min-height: 0; }
.wx-h, .wx-d { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(.3 * var(--u)); border-radius: calc(.8 * var(--u)); background: rgba(255,255,255,.04); min-height: 0; }
.wx-t { font-size: calc(1.8 * var(--u)); font-weight: 600; color: rgba(255,255,255,.75); white-space: nowrap; }
.wx-h .wx-ic, .wx-d .wx-ic { width: calc(4.6 * var(--u)); height: calc(4.6 * var(--u)); }
.wx-card h3 { flex: none; }
.wx-h b, .wx-d b { font-family: var(--slab-font); font-size: calc(3 * var(--u)); line-height: 1; }
.wx-lo { font-size: calc(2.1 * var(--u)); color: rgba(255,255,255,.6); }
.wx-pop { display: flex; align-items: center; gap: .15em; font-size: calc(1.6 * var(--u)); color: #8fd0ff; min-height: 1.3em; }
.wx-pop .wx-ic { width: 1.1em !important; height: 1.1em !important; }
.wx-src { position: absolute; right: calc(3.5 * var(--u)); bottom: calc(5.2 * var(--u)); margin: 0; font-size: calc(1.2 * var(--u)); color: rgba(255,255,255,.4); letter-spacing: .08em; }
.wx-alert { display: flex; align-items: center; gap: calc(1 * var(--u)); padding: calc(.9 * var(--u)) calc(1.8 * var(--u)); border-radius: calc(1 * var(--u));
  background: linear-gradient(90deg, rgba(255,93,74,.85), rgba(200,56,3,.75)); border: 1px solid rgba(255,255,255,.25); font-size: calc(2.1 * var(--u)); color: #fff;
  box-shadow: 0 0 calc(2 * var(--u)) rgba(255,93,74,.35); white-space: nowrap; overflow: hidden; }
.wx-alert b { font-size: 1.15em; text-transform: uppercase; letter-spacing: .04em; }
.wx-alert span { overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.wx-alert .wx-ic { width: calc(3.2 * var(--u)); height: calc(3.2 * var(--u)); flex: none; }
.wx-ic { display: block; overflow: visible; }
.wx-ic .i-sun circle { fill: #ffc531; } .wx-ic .i-sun line { stroke: #ffc531; stroke-width: 3.2; stroke-linecap: round; }
.wx-ic .i-moon { fill: #e8eefc; }
.wx-ic .i-cloud { fill: #e9eef5; stroke: rgba(0,0,0,.15); stroke-width: 1; } .wx-ic .i-cloud.dark { fill: #9aa6b6; }
.wx-ic .i-rain line { stroke: #4eb8ff; stroke-width: 3.2; stroke-linecap: round; }
.wx-ic .i-snow circle { fill: #fff; } .wx-ic .i-fog line { stroke: #c9d3df; stroke-width: 3.2; stroke-linecap: round; }
.wx-ic .i-bolt { fill: #ffc531; } .wx-ic .i-wind path { fill: none; stroke: #cfe6ff; stroke-width: 3.6; stroke-linecap: round; }
.wx-ic .i-drop { fill: #4eb8ff; } .wx-ic .i-alert { fill: #ffd23f; }
.wx-pop.off { display: none; }
.wx-days .wx-d { gap: calc(.2 * var(--u)); }
.wx-stats b { white-space: nowrap; }
.has-alert .wx-h .wx-ic, .has-alert .wx-d .wx-ic { width: calc(3.4 * var(--u)); height: calc(3.4 * var(--u)); }
.has-alert .wx-h b, .has-alert .wx-d b { font-size: calc(2.6 * var(--u)); }
.has-alert .wx-card { padding-top: calc(1.2 * var(--u)); padding-bottom: calc(1.2 * var(--u)); }

/* pool league board */
.scene.league { justify-content: center; align-items: stretch; gap: calc(1.6 * var(--u)); padding: calc(3 * var(--u)) calc(5 * var(--u)) calc(7.5 * var(--u)); }
.lg-title { font-family: var(--title-font); font-size: calc(5.4 * var(--u)); text-align: center; margin: 0; color: var(--hero-title-color, var(--ink)); }
.lg-grid { display: flex; gap: calc(3 * var(--u)); align-items: stretch; }
.lg-nights { flex: 1.25; display: flex; flex-direction: column; gap: calc(1.4 * var(--u)); }
.lg-card { display: grid; grid-template-columns: 1fr; gap: calc(.2 * var(--u)); padding: calc(1 * var(--u)) calc(2 * var(--u)); text-align: left; border-radius: calc(1.4 * var(--u));
  background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.lg-card.tonight { border-color: var(--accent); box-shadow: 0 0 2.2em color-mix(in srgb, var(--accent) 45%, transparent); }
.lg-day { font-family: var(--slab-font); font-size: calc(1.9 * var(--u)); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.lg-day small { color: var(--silver); margin-left: calc(1.2 * var(--u)); font-size: calc(1.7 * var(--u)); }
.lg-team { font-family: var(--title-font); font-weight: 400; font-size: calc(3.1 * var(--u)); color: var(--ink); line-height: 1.1; }
.lg-vs { font-family: var(--slab-font); font-size: calc(2 * var(--u)); color: var(--silver); }
.lg-vs em { font-style: normal; color: #fff; margin-left: calc(1.4 * var(--u)); }
.lg-stand { flex: 1; padding: calc(1.8 * var(--u)) calc(2.4 * var(--u)); border-radius: calc(1.4 * var(--u)); background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.14); }
.lg-stand h3 { font-family: var(--slab-font); font-size: calc(2 * var(--u)); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 calc(.8 * var(--u)); }
.lg-stand table { width: 100%; border-collapse: collapse; font-family: var(--slab-font); font-size: calc(2.3 * var(--u)); color: #fff; text-align: left; }
.lg-stand td { padding: calc(.9 * var(--u)) calc(.6 * var(--u)); border-bottom: 1px solid rgba(255,255,255,.12); }
.lg-stand .rk { color: var(--accent); width: 8%; } .lg-stand .tm { width: 52%; } .lg-stand td:nth-child(3) { white-space: nowrap; } .lg-stand .pt { text-align: right; color: var(--accent); }
.lg-note { font-family: var(--slab-font); font-size: calc(2.2 * var(--u)); color: var(--silver); text-align: center; margin: 0; }
.lg-example { position: absolute; top: calc(1.2 * var(--u)); right: calc(2 * var(--u)); margin: 0; font: 700 calc(1.8 * var(--u)) sans-serif; color: #111; background: #ffd23f; padding: .3em .8em; border-radius: 99px; }
.lg-card, .lg-card > * { line-height: 1.1; } .lg-card { overflow: visible; flex-shrink: 0; display: flex; flex-direction: column; gap: calc(.3 * var(--u)); }
.lg-title { line-height: 1.1; flex-shrink: 0; } .lg-nights { justify-content: center; }
.lg-stand td { line-height: 1.05; padding-top: calc(.6 * var(--u)); padding-bottom: calc(.6 * var(--u)); }
.lg-stand h3 { line-height: 1.1; }
.scene.league { justify-content: flex-start; gap: calc(1.2 * var(--u)); padding-top: calc(2 * var(--u)); padding-bottom: calc(6.5 * var(--u)); }
.lg-title { font-size: calc(4.6 * var(--u)); } .lg-nights { gap: calc(.7 * var(--u)); justify-content: flex-start; }
.lg-card { padding: calc(.7 * var(--u)) calc(2 * var(--u)); } .lg-team { font-size: calc(2.8 * var(--u)); text-align: left; }
.lg-vs { font-size: calc(1.9 * var(--u)); } .lg-note { font-size: calc(2 * var(--u)); }
.lg-grid { flex: 1; min-height: 0; } .lg-stand { overflow: hidden; }
.lg-stand h3 { font-size: calc(1.8 * var(--u)); }
.lg-grid { flex: 0 0 auto; align-items: flex-start; } .lg-stand { align-self: stretch; }
.lg-note { margin-top: auto; }
.lg-card .lg-team { display: block; }
.lg-title { margin-right: calc(18 * var(--u)); margin-left: calc(18 * var(--u)); }
.lg-example { top: calc(1 * var(--u)); }
.scene.league::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/venues/izzys/img/pool-bg.jpg") center 45% / 165% auto no-repeat; filter: brightness(1.3); opacity: .85; }

.scene.league { justify-content: center; align-items: center; gap: calc(2 * var(--u)); }
.lg-title { font-size: calc(7 * var(--u)); margin: 0; }
.lg-sub { font-family: var(--slab-font); font-size: calc(3 * var(--u)); color: var(--silver); text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.lg-nights { width: 80%; flex: 0 0 auto; gap: calc(1.6 * var(--u)); }
.lg-card { padding: calc(2 * var(--u)) calc(3 * var(--u)); align-items: center; text-align: center; }
.lg-card .lg-day { font-size: calc(2.6 * var(--u)); } .lg-card .lg-day small { font-size: calc(2.6 * var(--u)); color: #fff; margin-left: calc(2 * var(--u)); }
.lg-match { display: flex; align-items: center; justify-content: center; gap: calc(2.4 * var(--u)); flex-wrap: wrap; }
.lg-match .lg-team { font-size: calc(4.6 * var(--u)); text-align: center; }
.lg-v { font-family: var(--slab-font); font-size: calc(3 * var(--u)); color: var(--accent); }
.lg-note { margin-top: 0; font-size: calc(2.6 * var(--u)); }
.lg-match { flex-direction: column; gap: calc(.6 * var(--u)); }
.lg-match .lg-home { color: var(--hero-title-color, #e0251b); }

.scene.hero-full { background: #f4f1ec; }
.scene.hero-full .hero-img { background-size: contain; background-repeat: no-repeat; }
.hero-badge { position: absolute; top: calc(4 * var(--u)); right: calc(4 * var(--u)); padding: .25em .6em; border-radius: .3em; background: #e0251b; color: #fff; font-family: var(--slab-font); font-size: calc(7 * var(--u)); line-height: 1.05; text-align: center; box-shadow: 0 .1em .3em rgba(0,0,0,.35); }
.scene.hero-full .hero-img { background-size: cover; animation: none !important; transform: none; }
.hero-badge { font-size: calc(4.2 * var(--u)); top: calc(2.5 * var(--u)); right: calc(2.5 * var(--u)); }
/* Price badge flashes like a store sign: blink between red and yellow with a pop and a burst glow. */
@keyframes badgeFlash {
  0%, 100% { background: #e0251b; color: #fff; transform: scale(1) rotate(-3deg); box-shadow: 0 0 .2em rgba(255,210,0,.4), 0 .1em .3em rgba(0,0,0,.35); }
  45% { background: #e0251b; color: #fff; transform: scale(1) rotate(-3deg); }
  50% { background: #ffd200; color: #c8102e; transform: scale(1.12) rotate(-3deg); box-shadow: 0 0 1em #ffd200, 0 0 2em rgba(255,210,0,.7); }
  60% { background: #e0251b; color: #fff; transform: scale(1.04) rotate(-3deg); }
  65% { background: #ffd200; color: #c8102e; transform: scale(1.1) rotate(-3deg); box-shadow: 0 0 1em #ffd200, 0 0 2em rgba(255,210,0,.7); }
  75% { background: #e0251b; color: #fff; transform: scale(1) rotate(-3deg); }
}
.hero-badge { transform: rotate(-3deg); border: .08em solid #fff; }
.scene.hero-full.on .hero-badge { animation: badgeFlash 1.4s ease-in-out .6s infinite; }
/* Raspberry Pi smoothness (2026-10-19):
   - No slow whole-slide "drift" scale: scaling text re-rasterizes it, so letters shimmer and shift.
   - Food photo zoom runs on its own GPU layer and freezes where it is while fading out, instead of snapping back.
   - Exit animation has no blur (blur is very slow on a Pi). */
.scene.on { animation: fadein 1s ease forwards; }
.scene.out .in { animation: leaveflat .8s ease forwards; }
@keyframes leaveflat { from { opacity: 1; } to { opacity: 0; } }
.hero-img { will-change: transform; backface-visibility: hidden; }
.scene.hero.on .hero-img, .scene.hero.out .hero-img { animation: kenburns 10s linear forwards; }
.scene.hero.out .hero-img { animation-play-state: paused; }
@keyframes kenburns { from { transform: translateZ(0) scale(1.02); } to { transform: translateZ(0) scale(1.08); } }
/* On fade-out, text stays exactly where it landed (the entrance offset must not come back). */
.scene.out .in { transform: none !important; }
/* Weekly: today's highlight (and its yellow ring) sits fully inside the list frame. */
.wk-list { padding: .25em .35em; }
.wk-row.today { font-size: .95em; margin: .08em 0; }
/* Bartender flyer/clip fills the full screen width (Tray, 2026-10-19). */
.scene.bt-video { position: fixed; inset: 0; z-index: 50; background: #000; }
.tv .stage:has(.scene.bt-video) { z-index: 3; }
.scene.bt-video .bt-video-clip { object-fit: contain; }
.wk-row, .wk-every { grid-template-columns: 7.6em 1fr auto; }

/* In Loving Memory birthday: warm, calm, full width. No confetti, no blur, no scaling; the heart's
   glow only fades (opacity) so the Pi stays smooth. */
.scene.memorial { align-items: center; justify-content: center; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #3a2a1e 0%, #1c1612 55%, #0e0b0a 100%); }
.mem-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55; animation: memglow 6s ease-in-out infinite alternate;
  background: radial-gradient(circle at 50% 40%, rgba(255,196,120,.28), transparent 45%); }
@keyframes memglow { from { opacity: .35; } to { opacity: .7; } }
.mem-card { position: relative; z-index: 1; width: 100%; box-sizing: border-box; padding: 0 calc(5 * var(--u)) calc(4 * var(--u));
  display: flex; flex-direction: column; align-items: center; gap: calc(1.2 * var(--u)); }
.mem-card::before, .mem-card::after { content: ""; display: block; width: 60%; height: 1px; background: linear-gradient(90deg, transparent, rgba(232,196,140,.7), transparent); }
.mem-kicker { margin: 0; font-family: var(--title-font); font-size: calc(6.4 * var(--u)); letter-spacing: .06em; color: #e8c48c; text-shadow: 0 .05em .2em rgba(0,0,0,.6); white-space: nowrap; }
.mem-heart { display: block; width: calc(7 * var(--u)); height: calc(6.4 * var(--u)); fill: #d43a4a; filter: drop-shadow(0 0 calc(1.2 * var(--u)) rgba(212,58,74,.55)); }
.mem-line { margin: 0; font-family: var(--slab-font); font-size: calc(4.2 * var(--u)); color: #f3e6d3; white-space: nowrap; }
.mem-names { font-family: var(--slab-font); font-size: calc(var(--fs) * var(--u)); line-height: 1.15; color: #fff; display: flex; flex-direction: column; align-items: center;
  max-width: 100%; white-space: nowrap; text-shadow: 0 .06em .2em rgba(0,0,0,.6); }
.mem-names.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(5 * var(--u)); }
.mem-names span { display: block; }
.mem-sub { margin: 0; font-family: var(--slab-font); font-size: calc(2.8 * var(--u)); color: #cdb89a; }
.preview .mem-glow { animation: none; }
