/* The party screen (templates/tv/*.html, tv.js; 2026-10-16): a TV across the room. The live wall wears the
   event's colours and fonts (--bg, --ink, --accent-text, --font-display from memories_view.build). */
html, body { margin: 0; height: 100%; }
.tv { background: var(--bg, #111); color: var(--ink, #f5f1e8); font-family: var(--font-body, system-ui, sans-serif); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the code screen: e7ents' own fonts (site.css), the button and the box too */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-400.woff2") format("woff2"); }
.tv-code-page { background: #14110e; color: #f5f1e8; font-family: "Jost", system-ui, sans-serif; }
.tv-code-page h1 { font-family: "Cormorant Garamond", Georgia, serif; }
.tv-code-page button { font-family: inherit; }
.tv-code { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 3vh; padding: 4vh 6vw; text-align: center; box-sizing: border-box; }
.tv-brand { margin: 0; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(.8rem, 1.4vw, 1.2rem); opacity: .7; }
.tv-code h1 { margin: 0; font-weight: 400; font-size: clamp(1.6rem, 4vw, 3.6rem); }
.tv-code-form { display: grid; gap: 2.5vh; justify-items: center; }
.tv-code-form input { width: min(80vw, 9ch); font-size: clamp(3rem, 11vw, 9rem); letter-spacing: .12em; text-align: center; padding: .1em .2em;
  border: 3px solid #f5f1e8; border-radius: 18px; background: transparent; color: inherit; font-family: ui-monospace, Menlo, monospace; }
.tv-code-form button { min-height: 64px; padding: 0 2.4em; border: 0; border-radius: 999px; background: #f5f1e8; color: #14110e;
  font-size: clamp(1.1rem, 2vw, 1.8rem); cursor: pointer; }
.tv-error { margin: 0; color: #ffb4a8; font-size: clamp(1rem, 2vw, 1.6rem); }
.tv-help { margin: 0; opacity: .6; font-size: clamp(.9rem, 1.5vw, 1.3rem); }

/* the live wall */
.tv-live { overflow: hidden; cursor: none; position: relative; }
.tv-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.2s ease; }
.tv-layer.is-on { opacity: 1; }
.tv-wish { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 3vh; padding: 8vh 10vw; text-align: center; }
.tv-wish[hidden] { display: none; }
.tv-wish.has-video { padding: 4vh 6vw; gap: 2vh; }
.tv-wish-video { max-width: 80vw; max-height: 66vh; border-radius: 18px; background: #000; }
.tv-wish-video[hidden] { display: none; }
.tv-wish.has-video .tv-wish-text { font-size: clamp(1.4rem, 2.8vw, 3rem); }
.tv-wish-text { margin: 0; max-width: 30ch; font-family: var(--font-display, Georgia, serif); font-size: clamp(2rem, 4.6vw, 5rem); line-height: 1.25; }
.tv-wish-from { margin: 0; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text, #c9a86a); font-size: clamp(1rem, 1.8vw, 1.8rem); }
.tv-new, .tv-who { position: absolute; left: 3vw; bottom: 4vh; margin: 0; padding: .35em .8em; border-radius: 12px; background: rgba(0, 0, 0, .55);
  color: #fff; font-size: clamp(1.1rem, 2vw, 2rem); }
.tv-new { background: var(--accent-text, #b08d57); }
.tv-prompt { position: absolute; left: 50%; top: 4vh; transform: translateX(-50%); margin: 0; padding: .45em 1.1em; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: clamp(1.1rem, 2.2vw, 2.2rem); white-space: nowrap; }
.tv-prompt[hidden] { display: none; }
.tv-new[hidden], .tv-who[hidden] { display: none; }
.tv-waiting { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2vh; }
.tv-waiting[hidden] { display: none; }
.tv-waiting p { margin: 0; font-size: clamp(1.1rem, 2vw, 2rem); opacity: .8; }
.tv-waiting .tv-name { font-family: var(--font-display, Georgia, serif); font-size: clamp(2.4rem, 6vw, 6rem); opacity: 1; }
.tv-qr { position: absolute; right: 2.4vw; bottom: 3vh; display: grid; justify-items: center; gap: .6vh; padding: 1.2vh 1.2vh .9vh; border-radius: 14px;
  background: #fff; color: #111; }
.tv-qr-code svg { display: block; width: clamp(110px, 11vw, 220px); height: auto; }
.tv-qr p { margin: 0; font-size: clamp(.8rem, 1.1vw, 1.2rem); font-weight: 600; }
.tv-collage { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; gap: 1.4vh; padding: 3vh 3vw; }
.tv-collage[hidden] { display: none; }
.tv-collage-grid { display: grid; gap: 1vh; min-height: 0; }
.tv-collage-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; min-height: 0; }
.tv-collage--row3 .tv-collage-grid { grid-template-columns: repeat(3, 1fr); }
.tv-collage--big2 .tv-collage-grid { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.tv-collage--big2 .tv-collage-grid img:first-child { grid-row: span 2; }
.tv-collage--grid4 .tv-collage-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tv-collage--big3 .tv-collage-grid { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); }
.tv-collage--big3 .tv-collage-grid img:first-child { grid-row: span 3; }
.tv-collage-who { margin: 0; text-align: center; font-family: var(--font-display, Georgia, serif); font-size: clamp(1.4rem, 2.6vw, 2.8rem); }
.tv-made { position: absolute; left: 2vw; top: 2.4vh; margin: 0; font-size: clamp(.7rem, .9vw, 1rem); letter-spacing: .16em; text-transform: uppercase; opacity: .55; }
.tv-promo { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 3vh; text-align: center;
  background: var(--bg, #111); color: var(--ink, #fff); }
.tv-promo[hidden] { display: none; }
.tv-promo-qr { padding: 2vh; border-radius: 18px; background: #fff; }
.tv-promo-qr svg { display: block; width: clamp(200px, 26vh, 420px); height: auto; }
.tv-promo p { margin: 0; max-width: 24ch; font-family: var(--font-display, Georgia, serif); font-size: clamp(1.6rem, 3.4vw, 3.6rem); line-height: 1.25; }
.tv-offline, .tv-stopped { position: absolute; top: 3vh; left: 50%; transform: translateX(-50%); margin: 0; padding: .4em 1em; border-radius: 999px;
  background: rgba(0, 0, 0, .65); color: #fff; font-size: clamp(.9rem, 1.4vw, 1.4rem); }
.tv-offline[hidden], .tv-stopped[hidden] { display: none; }
.tv-full { position: absolute; top: 2vh; right: 2vw; padding: .5em 1em; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit;
  font: inherit; cursor: pointer; transition: opacity .6s; }
.tv-full.is-faded { opacity: 0; }
.tv-full:focus { opacity: 1; }
.tv-sample { position: absolute; top: 2vh; left: 2vw; margin: 0; padding: .4em .9em; border-radius: 999px; background: rgba(0, 0, 0, .55);
  color: #fff; font-size: clamp(.8rem, 1.2vw, 1.2rem); }
/* "Tap for music" when the TV's browser wants a tap before sound (slideshow_music.py, 2026-10-18) */
.tv-music-tap { position: absolute; bottom: 3vh; left: 50%; transform: translateX(-50%); z-index: 5; padding: .7em 1.4em;
  border: 1px solid currentColor; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font: inherit; font-size: 1.4vw; cursor: pointer; }
.tv-music-tap[hidden] { display: none; }
