* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Arial, Helvetica, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #e07a2f; outline-offset: 3px; }
.source-page, .source-page body { width: 100%; height: 100%; overflow: hidden; background: #1c100c; }
.source-page body { display: flex; justify-content: center; align-items: center; }
.viewport { position: relative; }
.stage { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; overflow: hidden; background: #1c100c; transform-origin: top left; color: white; }
.still, .clip-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1c100c; }
.fit-contain .still, .fit-contain .clip-video { object-fit: contain; }
.fx { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.motion-idle, .motion-idle-blink, .motion-idle-glance, .motion-idle-steam { animation: breathe 3.6s ease-in-out infinite; }
.motion-wave { animation: wave 0.7s ease-in-out infinite; transform-origin: 70% 62%; }
.motion-dance { animation: sway 0.55s ease-in-out infinite; }
.motion-coffee { animation: offer 1.6s ease-in-out infinite; }
.motion-doughnut { animation: offer 1.3s ease-in-out infinite; }
.motion-celebrate { animation: cheer 0.45s ease-in-out infinite; }
.is-paused .still, .is-paused .belt-track { animation-play-state: paused; }
@keyframes breathe { 50% { transform: scale(1.015); } }
@keyframes wave { 50% { transform: rotate(-1.4deg); } }
@keyframes sway { 50% { transform: translateX(14px) rotate(0.4deg); } }
@keyframes offer { 50% { transform: translateY(-8px); } }
@keyframes cheer { 50% { transform: translateY(-6px) scale(1.01); } }
.belt { position: absolute; left: 0; right: 0; z-index: 3; overflow: hidden; height: 224px; cursor: grab; touch-action: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%); }
.belt-track { display: flex; gap: 18px; width: max-content; animation: marquee 22s linear infinite; padding: 4px 0 0 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tile { width: 124px; flex: none; }
.tile-shot { position: relative; width: 124px; height: 124px; border-radius: 22px; overflow: hidden; box-shadow: 0 8px 18px rgba(0,0,0,.35); background: #3a2418; }
.tile-shot > img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.tile-custom { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; letter-spacing: 0.4px; background: #4a2c1c; }
.badge { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 248, 240, 0.92); box-shadow: 0 2px 4px rgba(0,0,0,.35); display: grid; place-items: center; }
.badge svg { width: 28px; height: 28px; }
.badge .badge-gift { width: 28px; height: 28px; object-fit: contain; display: block; }
.badge .badge-gift + svg { display: none; }
.badge .badge-gift.is-hidden { display: none; }
.badge .badge-gift.is-hidden + svg { display: block; }
.tile-label { margin-top: 6px; text-align: center; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: 0; text-transform: none; overflow-wrap: normal; color: #fff; text-shadow: 0 1px 2px #000, 0 0 6px #000; }
/* Keep 14px custom labels whole when font rounding adds a pixel. */
.tile-label.is-tight { margin-inline: -1px; }
.upnext { position: absolute; z-index: 4; width: 330px; padding: 14px 14px 12px; border-radius: 26px; background: rgba(18, 14, 16, 0.78); box-shadow: 0 10px 24px rgba(0,0,0,.28); cursor: grab; touch-action: none; }
.upnext .kicker { font-size: 24px; font-weight: 800; letter-spacing: 1.6px; opacity: 0.8; margin-bottom: 8px; }
.upnext ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.upnext li { display: flex; gap: 10px; align-items: center; min-width: 0; }
.upnext .more, .upnext .empty { margin: 8px 2px 0; font-size: 24px; font-weight: 700; opacity: 0.85; }
.who { display: flex; flex-direction: column; min-width: 0; }
.who b, .credit .who { font-size: 28px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 224px; }
.who small { font-size: 24px; opacity: 0.8; }
.credit { position: absolute; z-index: 4; left: 62%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: 620px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(16, 14, 16, 0.82); box-shadow: 0 8px 20px rgba(0,0,0,.3); cursor: grab; touch-action: none; }
.credit .who { max-width: 330px; font-size: 38px; }
.credit .count { color: #f0b429; font-style: normal; font-size: 38px; font-weight: 800; flex: none; }
.avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center; }
.upnext .avatar { width: 52px; height: 52px; font-size: 24px; }
.avatar.letters { color: white; font-weight: 800; font-size: 26px; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The shared shell owns the host layout. The stall keeps its original art and badges. */
.source-page [hidden] { display: none !important; }
html.source-page, html.source-page body { background: #1c100c !important; }
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* Only a single word too wide even at 14px may break mid-word. */
.tile-label.is-tight { overflow-wrap: anywhere; }
.tile-note { display: block; text-align: center; font-size: 20px; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
[data-tt-gift-icons=off] .gift-badge { display: none; }
.preview-mode { position: absolute; z-index: 3; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 6px; background: #14161a; color: #fff; font-size: 14px; }
.preview-wrap { position: relative; }
.clip-editor { display: grid; gap: 14px; }
.clip-editor-row { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.clip-editor-row .secondary { justify-self: start; }
#settings > label, #settings > .input-grid { margin-top: 24px; }
#queue-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--copy); max-height: 240px; overflow-y: auto; }
#queue-list li { display: flex; align-items: center; gap: 10px; }
/* Preserve the 36px wrapper, 22px brown SVG and 10px row gap of the original share icon. */
html.tt-shell .tt-core-play.clip-play li { gap: 10px; align-items: flex-start; }
html.tt-shell .clip-play .play-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #fff1e4; overflow: hidden; }
html.tt-shell .clip-play .play-icon svg { width: 22px; height: 22px; flex: none; padding: 0; border-radius: 0; background: transparent; fill: none; stroke: #3b2418; stroke-width: 1.8; }
html.tt-shell .clip-play .play-icon img { width: 36px; height: 36px; object-fit: contain; }
html.tt-shell .clip-play .play-icon.gift-icon { background: transparent; border-radius: 0; }
html.tt-shell #free-play { border-radius: 12px 12px 0 0; }
html.tt-shell #gift-play { border-radius: 0 0 12px 12px; }
html.tt-shell #gift-play:not([hidden]) { border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) {
  .still, .belt-track { animation: none !important; }
}
