/* TV Show — TV mode of the greetings show: nothing to click, so no controls, and the pointer hides when idle. */
.gs.tv { cursor: default; }
.gs.tv.idle, .gs.tv.idle .gs-stage { cursor: none; }
.gs.tv .gs-nav, .gs.tv .gs-close { display: none; }
.gs-ended .gs-h { font-size: 40px; }

/* Read from the sofa: in TV mode the text grows with the screen (a 1280-wide TV gets ~2x the phone sizes). */
.gs.tv .gs-card { max-width: min(88vw, 1400px); }
.gs.tv .gs-emoji { font-size: clamp(72px, 9vw, 160px); }
.gs.tv .gs-h { font-size: clamp(32px, 4.6vw, 88px); }
.gs.tv .gs-sub { font-size: clamp(20px, 2.4vw, 44px); }
.gs.tv .gs-msg { font-size: clamp(27px, 4.4vw, 84px); max-height: 40vh; }
.gs.tv .gs-msg.long { font-size: clamp(20px, 3vw, 58px); }
.gs.tv .gs-from { font-size: clamp(20px, 2.6vw, 48px); }
.gs.tv .gs-photo { max-height: 44vh; }
.gs.tv .gs-name-list { font-size: clamp(16px, 2.2vw, 40px); }
.gs.tv .gs-ended .gs-h { font-size: clamp(40px, 4.6vw, 88px); }
.gs.tv .gs-stage { max-width: min(90vw, 1500px); max-height: calc(100% - 56px); }
/* A greeting with a photo, on a landscape TV: photo beside the words, so neither has to shrink. */
@media (min-aspect-ratio: 4/3) {
  .gs.tv .gs-card:has(> .gs-photo) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr;
    column-gap: 4vw; align-items: center; text-align: left;
  }
  .gs.tv .gs-card:has(> .gs-photo) > .gs-photo { grid-column: 1; grid-row: 1 / -1; max-height: 78vh; justify-self: end; }
  .gs.tv .gs-card:has(> .gs-photo) > .gs-msg { grid-column: 2; grid-row: 2; max-height: 60vh; }
  .gs.tv .gs-card:has(> .gs-photo) > .gs-from { grid-column: 2; grid-row: 3; }
}

/* ── Festive TV look: a party, not a slideshow ─────────────────────────────── */
.gs.tv {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 92, 168, .34), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(255, 200, 60, .28), transparent 46%),
    radial-gradient(circle at 82% 8%, rgba(90, 200, 250, .22), transparent 40%),
    radial-gradient(circle at 20% 92%, rgba(180, 140, 255, .24), transparent 40%),
    #2a1640;
  overflow: hidden;
}
.gs.tv .gs-stage { position: relative; z-index: 1; }
.gs.tv .gs-dots { z-index: 1; }
.gs-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.gs-bit {
  position: absolute; top: -4vh; width: .9vw; min-width: 8px; height: 1.6vw; min-height: 14px; border-radius: 2px; opacity: .85;
  animation: gs-fall linear infinite;
}
.gs-bit.round { height: .9vw; min-height: 8px; border-radius: 50%; }
@keyframes gs-fall {
  0%   { transform: translate3d(0, -6vh, 0) rotate(0deg); }
  50%  { transform: translate3d(var(--drift, 0), 52vh, 0) rotate(200deg); }
  100% { transform: translate3d(0, 110vh, 0) rotate(400deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gs-bit { animation: none; top: auto; }
  .gs-bit:nth-child(odd) { top: 6vh; } .gs-bit:nth-child(even) { bottom: 6vh; }
}
/* The photo as a polaroid on the party table. */
.gs.tv .gs-photo {
  border: clamp(8px, 1vw, 18px) solid #fffdf7; border-bottom-width: clamp(24px, 3vw, 54px); border-radius: 6px;
  background: #fffdf7; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); transform: rotate(-2deg);
}
.gs.tv .gs-from { color: #ffc83c; opacity: 1; }
.gs.tv .gs-h { text-shadow: 0 4px 24px rgba(255, 92, 168, .45); }
.gs.tv .gs-msg { text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.gs.tv .gs-name-list li { border-color: #ffc83c; background: rgba(255, 200, 60, .12); }
.gs.tv .gs-dot { background: rgba(255, 246, 232, .35); }
.gs.tv .gs-dot.on { background: #ffc83c; }
/* The words sit on a soft frosted panel, so confetti drifting behind never runs through a letter. */
.gs.tv .gs-card {
  background: rgba(30, 14, 46, .62); border-radius: clamp(18px, 2vw, 36px); padding: clamp(20px, 3vw, 56px);
  box-shadow: 0 0 0 2px rgba(255, 200, 60, .18), 0 24px 80px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
@media (min-aspect-ratio: 4/3) {
  .gs.tv .gs-card:has(> .gs-photo) { padding: clamp(16px, 2.2vw, 44px) clamp(20px, 3vw, 56px); }
  .gs.tv .gs-card:has(> .gs-photo) > .gs-photo { max-height: 62vh; }
  .gs.tv .gs-card:has(> .gs-photo) > .gs-msg { max-height: 66vh; }
}
/* Emoji drawn as Twemoji pictures: the size and baseline of the text around them. */
.gs.tv .gs-emo { display: inline-block; width: 1.05em; height: 1.05em; margin: 0 .06em; vertical-align: -0.16em; border: 0; transform: none; box-shadow: none; background: none; }
