/* Free premade card player (2026-11-28). Same frame as our photo gift videos: the customer's square photo over
   the card's background, the words typed letter by letter in calligraphy with a soft shadow, then the brand
   ending with the song upsell. Phone upright: square on top, words below. Wide: square left, words right. */
.ttc {
  --ttc-gold: #e8cf8e;
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background: #0b0a09; color: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0; transition: opacity .6s ease;
}
.ttc.on { opacity: 1; }
.ttc[hidden] { display: none; }
.ttc-bg { position: absolute; inset: 0; }
.ttc-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }   /* still: only the card art breathes (Jason 2026-11-29) */
@keyframes ttc-drift { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.ttc-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ttc-mark {
  position: absolute; left: 0; right: 0; top: max(14px, env(safe-area-inset-top));
  text-align: center; font-family: var(--ttc-script); font-size: clamp(15px, 3.6vw, 24px);
  color: rgba(255,255,255,.86); text-shadow: 2px 2px 4px rgba(0,0,0,.85); letter-spacing: .02em;
}
.ttc-square {
  position: absolute; border-radius: 2.5%; overflow: hidden;
  box-shadow: 6px 8px 22px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity 1s ease, transform 1.2s ease;
}
.ttc.playing .ttc-square { opacity: 1; transform: none; }
.ttc-square img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 35%;
  animation: ttc-push 20s ease-in-out infinite; }
@keyframes ttc-push { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.ttc-words {
  position: absolute; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--ttc-script); line-height: 1.22; pointer-events: none;
}
.ttc-cue { width: 100%; }
.ttc-cue .w { display: inline-block; white-space: nowrap; }
.ttc-cue .c {
  display: inline-block; opacity: 0; filter: blur(3px); transform: translateY(.12em);
  text-shadow: .045em .045em .06em rgba(0,0,0,.9), 0 0 .02em rgba(0,0,0,.6);
  transition: opacity .12s linear, filter .25s ease, transform .3s ease;
}
.ttc-cue .c.in { opacity: 1; filter: none; transform: none; }
.ttc-cue.out { opacity: 0; transition: opacity .22s linear; }
.ttc-cue.title { color: #fff; }
.ttc-cue.sign { color: var(--ttc-gold); }
.ttc-credit { margin-top: .5em; font-family: Inter, sans-serif; font-weight: 600; font-size: .32em; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ttc-gold); text-shadow: 1px 1px 3px rgba(0,0,0,.9); animation: ttc-fadein 1.2s .6s both; }
@keyframes ttc-fadein { from { opacity: 0; } to { opacity: 1; } }

/* Phone / upright: square top half, words below (like the 9:16 gift video). */
.ttc .ttc-square { left: 50%; top: calc(max(14px, env(safe-area-inset-top)) + 7.5svh);
  width: min(78vw, 44svh); aspect-ratio: 1; margin-left: calc(min(78vw, 44svh) / -2); }
.ttc-names { position: absolute; z-index: 1; text-align: center; font-family: var(--ttc-script); color: var(--ttc-gold);
  font-size: clamp(16px, 4.4vw, 24px); text-shadow: 2px 2px 5px rgba(0,0,0,.85); opacity: 0; transition: opacity 1s ease .6s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttc.playing .ttc-names { opacity: 1; }
.ttc.ending .ttc-names { opacity: 0; transition-delay: 0s; }
.ttc .ttc-names { left: 6vw; right: 6vw; top: calc(max(14px, env(safe-area-inset-top)) + 7.5svh + min(78vw, 44svh) + 1.4svh); }
.ttc .ttc-words { left: 7vw; right: 7vw; top: calc(max(14px, env(safe-area-inset-top)) + 7.5svh + min(78vw, 44svh) + 6.5svh);
  bottom: calc(124px + env(safe-area-inset-bottom)); }
/* Wide: square left, words in the right-hand column (like the 16:9 gift video). */
@media (min-aspect-ratio: 5/4) {
  .ttc .ttc-square { left: 6vw; top: 50%; width: min(42vw, 72svh); margin-left: 0; margin-top: calc(min(42vw, 72svh) / -2); }
  .ttc .ttc-words { left: calc(6vw + min(42vw, 72svh) + 4vw); right: 4vw; top: 12svh; bottom: 12svh; }
  .ttc .ttc-names { left: 6vw; right: auto; width: min(42vw, 72svh); top: calc(50% + min(42vw, 72svh) / 2 + 1.5svh); font-size: clamp(16px, 2vw, 26px); }
}

.ttc-controls { position: absolute; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; z-index: 3; }
.ttc-controls button, .ttc-close {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.42); color: #fff; font: 600 14px/1 Inter, sans-serif; cursor: pointer; backdrop-filter: blur(6px);
}
.ttc-close { position: absolute; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 3; }

/* Ending (Jason 2026-11-29): no separate page. The scene that just played dims and stays behind the ending,
   which is laid over it in white and gold, so it feels like the video's last frame. */
.ttc-black { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(8,6,12,.55), rgba(8,6,12,.86) 75%);
  opacity: 0; transition: opacity 1.2s ease; pointer-events: none; z-index: 2; }
.ttc.ending .ttc-black { opacity: 1; }
.ttc.ending .ttc-square { filter: brightness(.32) saturate(.8) blur(1px); transition: filter 1.2s ease; }
.ttc.ending .ttc-words, .ttc.ending .ttc-mark { opacity: 0; transition: opacity .6s ease; }
.ttc-end {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px 22px calc(70px + env(safe-area-inset-bottom)); text-align: center; color: #fff;
  background: transparent; opacity: 0; pointer-events: none; transition: opacity .9s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.ttc.ended .ttc-end { opacity: 1; pointer-events: auto; }
.ttc-end img.logo { width: min(240px, 60vw); height: auto; filter: drop-shadow(0 3px 10px rgba(0,0,0,.6)); }
.ttc-end .from { font-family: var(--ttc-script); font-size: clamp(24px, 5.6vw, 34px); color: var(--ttc-gold); margin: 2px 0 0; }
.ttc-end .pitch { max-width: 30rem; margin: 4px 0 0; font-size: 16.5px; line-height: 1.45; color: rgba(255,255,255,.88); }
.ttc-end .pitch strong { color: #fff; }
.ttc-end .cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: linear-gradient(90deg, #2346d8, #4d6cec); color: #fff; font: 800 17px Inter, sans-serif; text-decoration: none;
  box-shadow: 0 10px 28px rgba(35,70,216,.45); text-shadow: none; cursor: pointer;
}
.ttc-end .more { max-width: 30rem; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22); font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.82); }
.ttc-end .more p { margin: 0 0 10px; }
.ttc-end .more strong { color: #fff; }
.ttc-end .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ttc-end .ghost {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; text-shadow: none;
  border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.1); color: #fff; font: 700 15px/1 Inter, sans-serif;
  text-decoration: none; cursor: pointer; backdrop-filter: blur(6px);
}
.ttc-end .report { margin-top: 8px; background: none; border: 0; color: rgba(255,255,255,.6); font-size: 12px; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .ttc-bg img, .ttc-square img { animation: none; }
  .ttc-cue .c { filter: none; transform: none; }
}
.ttc-square .ttc-frame { position: absolute; inset: 0; width: 100%; height: 100%; animation: none; transform: none; pointer-events: none; }
.ttc-square.still img { animation: none; }
.ttc-send { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 3;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(90deg, #2346d8, #4d6cec); color: #fff;
  font: 800 15px Inter, sans-serif; box-shadow: 0 8px 22px rgba(35,70,216,.45); cursor: pointer; white-space: nowrap; }
.ttc.ended .ttc-send { display: none; }

/* The singer's corner badge (Jason 2026-11-29): top right of the screen, ~75% of its old size on the cover, gone 5 s in. */
.ttc-badge { position: absolute; z-index: 2; right: max(12px, env(safe-area-inset-right)); bottom: calc(70px + env(safe-area-inset-bottom));
  height: calc(min(78vw, 44svh) * .18); width: auto; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.ttc.playing .ttc-badge { opacity: 1; }
.ttc.playing .ttc-badge.gone, .ttc.ending .ttc-badge { opacity: 0; }
/* phones: bottom right above Sound on (the art fills the top); wide screens: top right, clear of the square */
@media (min-aspect-ratio: 5/4) { .ttc-badge { height: calc(min(42vw, 72svh) * .18); bottom: auto; top: calc(max(14px, env(safe-area-inset-top)) + 26px); } }

/* Our own small player (Jason 2026-11-29): pause, start over, a slider and the time. No native controls = no save menu. */
.ttc-bar { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(64px + env(safe-area-inset-bottom));
  width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  border-radius: 999px; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .8s ease; }
.ttc-bar[hidden] { display: none; }
.ttc.playing .ttc-bar { opacity: 1; }
.ttc.ending .ttc-bar { opacity: 0; pointer-events: none; }
.ttc-bar button { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff;
  font: 700 15px/1 Inter, sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ttc-bar button.rs { font-size: 20px; letter-spacing: 0; }
.ttc-bar button:focus-visible, .ttc-bar .seek:focus-visible { outline: 2px solid #e8cf8e; outline-offset: 2px; }
.ttc-bar .seek { flex: 1; min-width: 0; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ttc-bar .seek::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #e8cf8e var(--p, 0%), rgba(255,255,255,.3) var(--p, 0%)); }
.ttc-bar .seek::-moz-range-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); }
.ttc-bar .seek::-moz-range-progress { height: 5px; border-radius: 3px; background: #e8cf8e; }
.ttc-bar .seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border-radius: 50%; background: #fff; border: 0; }
.ttc-bar .seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.ttc-bar .tm { flex: none; color: #fff; font: 600 12px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; opacity: .85; }
/* the badge sits above the bar on phones */
@media (max-aspect-ratio: 5/4) { .ttc-badge { bottom: calc(124px + env(safe-area-inset-bottom)); } }

/* Paid gifts on the live lyric player (2026-11-29). No photo: the words use the whole screen. A photo video: the
   watercolor sits in the square and, softened, behind it. */
.ttc.no-square .ttc-square { display: none; }
.ttc.no-square .ttc-words { left: 8vw; right: 8vw; top: 16svh; bottom: calc(124px + env(safe-area-inset-bottom)); }
@media (min-aspect-ratio: 5/4) { .ttc.no-square .ttc-words { left: 12vw; right: 12vw; top: 14svh; bottom: 16svh; } }
.ttc.soft-bg .ttc-bg img { filter: blur(22px) brightness(.5) saturate(1.1); transform: scale(1.12); }
/* The studio page styles every input; keep the slider ours there too. */
.ttc .ttc-bar input.seek { border: 0; padding: 0; margin: 0; box-shadow: none; border-radius: 0; min-height: 0; background: transparent; width: auto; }

/* "Share how we did" (Jason 2026-11-29): the short testimonial form. In the player it takes the ending's place, over
   the dimmed last frame; on the free sender's page it sits in a light panel (free.css). */
.ttc-end[hidden] { display: none; }
.ttc-end .ghost[hidden] { display: none; }   /* e.g. no "Share how we did" on the /joy campaign gift */
/* Operation Christmas Joy ending (2026-12-01): the joy line, the free note under the button, and the counter. */
.ttc-end.joy-end .pitch { font-family: var(--ttc-script); font-size: clamp(22px, 5.4vw, 30px); line-height: 1.3; }
.ttc-end.joy-end .pitch strong { font-weight: 400; color: #fff; }
.ttc-end .joy-note { margin: -4px 0 0; font-size: 13.5px; color: rgba(255,255,255,.8); }
.ttc-end .joy-count { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--ttc-gold); }
.joy-reveal-count { font-weight: 600; }
.ttc-sharebox { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  padding: 24px 20px calc(70px + env(safe-area-inset-bottom)); overflow-y: auto; color: #fff; }
.tts { width: min(30rem, 100%); display: flex; flex-direction: column; gap: 12px; text-align: left; }
.tts h3 { margin: 0; font: 800 22px/1.2 Inter, sans-serif; text-align: center; }
.tts p { margin: 0; line-height: 1.45; }
.tts-lead { text-align: center; }
.tts-f { display: flex; flex-direction: column; gap: 6px; font: 600 14px Inter, sans-serif; }
.tts-f textarea, .tts-f input { width: 100%; box-sizing: border-box; border-radius: 12px; padding: 10px 12px; font: 16px/1.4 Inter, sans-serif; }
.tts-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.tts-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; }
.tts-err { min-height: 1.2em; color: #ffb4a8; font-size: 14px; }
.tts-err:empty { min-height: 0; }
.tts-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tts-wait, .tts-done p { text-align: center; }
.ttc-sharebox .tts { text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.ttc-sharebox .tts-f textarea, .ttc-sharebox .tts-f input { border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.35); color: #fff; }
.ttc-sharebox .tts-check { color: rgba(255,255,255,.88); }
.ttc-sharebox .cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px;
  background: linear-gradient(90deg, #2346d8, #4d6cec); color: #fff; font: 800 16px Inter, sans-serif; cursor: pointer; text-shadow: none; }
.ttc-sharebox .ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; text-shadow: none;
  border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.1); color: #fff; font: 700 15px/1 Inter, sans-serif; cursor: pointer; }
.ttc-sharebox .cta:disabled { opacity: .6; cursor: default; }
/* Pass the Joy Along form (2026-12-01) */
.joy-form .joy-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ttc-sharebox .joy-note, .ttc-sharebox .joy-custom, .joy-ready .joy-tag { text-align: center; font-size: 14px; color: rgba(255,255,255,.85); }
.ttc-sharebox .joy-custom a { color: #fff; text-decoration: underline; }
.ttc-sharebox .joy-link { width: 100%; box-sizing: border-box; border-radius: 12px; padding: 10px 12px; font: 15px/1.3 Inter, sans-serif;
  border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.35); color: #fff; text-align: center; }
/* "Pass it to someone else too" (2026-12-01): the again button and this visit's wrapped links. Auto margins keep a tall
   panel scrollable from its top on phones (align-items:center would clip it). */
.ttc-sharebox > .tts { margin: auto 0; }
.ttc-sharebox .joy-again { width: 100%; }
.joy-ready .joy-made { border-top: 1px solid rgba(255,255,255,.3); padding-top: 10px; }
.joy-ready .joy-made[hidden] { display: none; }
.joy-ready .joy-made-h { text-align: center; font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 6px; }
.joy-ready .joy-made ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.joy-ready .joy-made li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.joy-ready .joy-made-to { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.joy-ready .joy-made-btns { flex-wrap: nowrap; gap: 6px; }
.ttc-sharebox .joy-made-btns .ghost { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
