/* RANGO live stage – symbols first, big touch targets (≥ 64 px main actions), warm Nature Glass.
   Mobile first; on wide screens the reactions/chat sit beside the video. All motion stops with prefers-reduced-motion. */
.stage-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; padding-top: clamp(10px, 3vw, 28px); }
.stage-hero .hero-live__stage { order: 1; }
.stage-hero .stage-talk { order: 2; }
.stage-hero .stage-copy { order: 3; }
.stage-hero .hero-mascot { display: none; }
.stage-hero .stage-copy h1 { font-size: clamp(28px, 4.4vw, 54px); margin: 8px 0 10px; }
.stage-hero .stage-copy .hero-lead { font-size: 16px; max-width: 62ch; }
.stage-hero .stage-copy .hero-actions { display: none; }
@media (min-width: 1024px) {
  .stage-hero { grid-template-columns: minmax(0, 1.75fr) minmax(300px, .85fr); }
  .stage-hero .stage-copy { grid-column: 1 / -1; }
  .stage-hero .stage-talk { align-self: stretch; }
  .stage-layout { grid-template-columns: minmax(0, 1.75fr) minmax(300px, .85fr) !important; }
}

/* ---- overlay inside the video ---- */
#livestream .stream-picture { position: relative; }
.stage-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.stage-overlay > .stage-live, .stage-overlay > .stage-viewers, .stage-overlay > .stage-hearts { position: absolute; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(4, 8, 12, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-weight: 800; font-size: 15px; line-height: 1; border: 1px solid rgba(255, 255, 255, .16); margin: 0; width: auto; }
.stage-live { left: 10px; letter-spacing: .08em; }
.stage-live .stage-dot { width: 10px; height: 10px; border-radius: 50%; background: #8a8f98; }
.stage-live.is-live { background: rgba(200, 30, 48, .86); }
.stage-live.is-live .stage-dot { background: #fff; animation: stage-blink 1.6s ease-in-out infinite; }
.stage-overlay > .stage-viewers { left: 96px; }
.stage-overlay > .stage-hearts { right: 10px; }
.stage-overlay strong { color: #fff; font-variant-numeric: tabular-nums; }
@keyframes stage-blink { 50% { opacity: .35; } }
.stage-fly, .stage-fx { position: absolute; inset: 0; overflow: hidden; }
.fly { position: absolute; bottom: 6%; left: var(--x); font-size: calc(30px * var(--s)); animation: fly var(--d) cubic-bezier(.2, .7, .3, 1) forwards; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.fly-own { font-size: calc(40px * var(--s)); }
@keyframes fly { 0% { transform: translateY(0) scale(.4) rotate(0); opacity: 0; } 12% { opacity: 1; transform: translateY(-8%) scale(1) rotate(var(--r)); } 100% { transform: translateY(-420%) scale(1.15) rotate(calc(var(--r) * -1)); opacity: 0; } }
.fx-banner { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 12px 20px; border-radius: 18px; background: rgba(4, 8, 12, .7); color: #fff; font-size: clamp(18px, 3.4vw, 30px); font-weight: 800; white-space: nowrap; animation: fx-pop .5s ease-out; }
.fx-drop { position: absolute; top: -10%; left: var(--x); font-size: 30px; animation: fx-fall var(--d) linear forwards; }
.stage-fx[data-fx="rainbow"]::before { content: ""; position: absolute; left: 10%; right: 10%; top: 18%; height: 70%; border-radius: 50% 50% 0 0; background: conic-gradient(from 270deg at 50% 100%, #ff5f6d, #ffc371, #f9f871, #4ade80, #38bdf8, #a78bfa, transparent 50%); -webkit-mask: radial-gradient(circle at 50% 100%, transparent 54%, #000 55%, #000 68%, transparent 69%); mask: radial-gradient(circle at 50% 100%, transparent 54%, #000 55%, #000 68%, transparent 69%); opacity: .8; animation: fx-pop .8s ease-out; }
@keyframes fx-fall { to { transform: translateY(1300%) rotate(160deg); } }
@keyframes fx-pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }
.stage-fx[data-fx="rainbow"]::before { transform: none; }

/* ---- action dock: four big round buttons ---- */
.stage-dock { display: flex; align-items: flex-start; justify-content: center; gap: clamp(10px, 4vw, 26px); margin: 14px 0 4px; position: relative; }
.stage-dock.dock-empty { display: none; }
.dock-btn { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--n-muted, #cfd8d3); font: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; position: relative; }
.dock-btn[hidden] { display: none; }
.dock-ico, .dock-ring { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font-size: 34px; line-height: 1; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 70%), rgba(10, 22, 20, .72); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 10px 26px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .15s ease, box-shadow .2s ease; }
.dock-label { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.dock-heart .dock-ico { background: radial-gradient(circle at 32% 28%, #ff9aa8, #e0234a 62%, #9e1430); border-color: rgba(255, 170, 180, .55); box-shadow: 0 10px 30px rgba(224, 35, 74, .45), inset 0 1px 0 rgba(255, 255, 255, .35); font-size: 38px; }
.dock-gift .dock-ico { background: radial-gradient(circle at 32% 28%, #ffe7a3, #f2b544 62%, #a7741c); border-color: rgba(255, 220, 140, .55); box-shadow: 0 10px 30px rgba(242, 181, 68, .38), inset 0 1px 0 rgba(255, 255, 255, .35); }
.dock-talk .dock-ico { background: radial-gradient(circle at 32% 28%, #9ff5e4, #1fb59b 62%, #0f6e5d); border-color: rgba(140, 240, 215, .5); }
.dock-ring { position: relative; background: conic-gradient(var(--n-gold, #f2c46d) var(--p, 0%), rgba(255, 255, 255, .12) 0); padding: 6px; }
.dock-ring .dock-ico { width: 60px; height: 60px; font-size: 28px; color: var(--n-gold, #f2c46d); box-shadow: none; }
.dock-points .dock-label { color: var(--n-gold, #f2c46d); font-variant-numeric: tabular-nums; }
.dock-btn:hover .dock-ico, .dock-btn:hover .dock-ring { transform: translateY(-2px); }
.dock-btn:active .dock-ico { transform: scale(.92); }
.dock-btn:focus-visible { outline: none; }
.dock-btn:focus-visible .dock-ico, .dock-btn:focus-visible .dock-ring { outline: 3px solid #fff; outline-offset: 3px; }
.dock-heart.beat .dock-ico { animation: beat .35s ease-out; }
@keyframes beat { 40% { transform: scale(1.18); } }
.dock-dot { position: absolute; top: 2px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: #ff4d6d; border: 2px solid #0b1412; }
.dock-kids { position: absolute; right: 0; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 22, 20, .6); font-size: 22px; cursor: pointer; }
.dock-kids[aria-pressed="true"] { background: #ffd8e4; border-color: #ff8fb1; box-shadow: 0 0 0 3px rgba(255, 143, 177, .35); }
@media (max-width: 560px) { .dock-kids { position: static; align-self: center; margin-top: 14px; } .dock-ico, .dock-ring { width: 66px; height: 66px; } .dock-ring .dock-ico { width: 54px; height: 54px; } }

/* ---- reactions and chat beside / under the video ---- */
.stage-talk { display: grid; gap: 12px; align-content: start; }
.stage-talk[hidden] { display: none; }
@media (max-width: 1023px) { .stage-talk:not(.is-open) > .community { display: none; } }
.talk-react { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 22px; background: rgba(10, 22, 20, .55); border: 1px solid rgba(255, 255, 255, .12); }
.talk-react[hidden] { display: none; }
.talk-react button { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); font-size: 28px; cursor: pointer; transition: transform .12s ease; }
.talk-react button:active { transform: scale(.88); }
.talk-react button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.talk-kids { margin: 0; padding: 10px 14px; border-radius: 16px; background: rgba(255, 216, 228, .14); color: #ffd8e4; font-weight: 700; text-align: center; }
.stage-talk .community .reaction-bar { display: none; } /* reactions live in the stage row above */
.kids-mode .stage-talk .community, .kids-mode #community { display: none !important; }

/* ---- gift sheet (bottom sheet on phones, centred card on desktop) ---- */
.gift-sheet { width: min(560px, 100vw); max-height: min(88vh, 760px); margin: auto auto 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); border: 1px solid rgba(255, 255, 255, .16); border-radius: 26px 26px 0 0; background: linear-gradient(180deg, rgba(20, 38, 34, .98), rgba(8, 14, 13, .98)); color: #eef6f2; box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); overflow-y: auto; }
.gift-sheet::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
@media (min-width: 720px) { .gift-sheet { margin: auto; border-radius: 26px; } }
.gift-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.gift-head h2 { margin: 0; font-size: 24px; }
.gift-close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font-size: 20px; cursor: pointer; }
.gift-big { font-size: 64px; text-align: center; margin: 6px 0; color: var(--n-gold, #f2c46d); }
.gift-go { width: 100%; min-height: 60px; font-size: 20px; }
.gift-daily { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 16px; border-radius: 22px; border: 1px solid rgba(255, 220, 140, .45); background: radial-gradient(circle at 15% 30%, rgba(255, 231, 163, .3), transparent 60%), rgba(242, 181, 68, .16); color: #fff; font: inherit; font-size: 20px; font-weight: 800; cursor: pointer; }
.gift-daily:disabled { opacity: .75; cursor: default; font-size: 17px; }
.gift-daily-ico { font-size: 40px; }
.gift-sheet h3 { font-size: 17px; margin: 18px 0 8px; }
.gift-missions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gift-mission { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "ico title pts" "ico bar pts"; gap: 4px 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.gift-mission-ico { grid-area: ico; font-size: 28px; }
.gift-mission-title { grid-area: title; font-weight: 700; }
.gift-mission .gift-bar { grid-area: bar; }
.gift-mission-pts { grid-area: pts; color: var(--n-gold, #f2c46d); font-size: 18px; }
.gift-mission.done { background: rgba(52, 211, 153, .12); }
.gift-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.gift-bar > span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #34d399, #f2c46d); transition: width .6s ease; }
.gift-fx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gift-fx-btn { display: grid; justify-items: center; gap: 4px; min-height: 96px; padding: 10px 6px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.gift-fx-btn:disabled { opacity: .45; cursor: not-allowed; }
.gift-fx-ico { font-size: 34px; }
.gift-fx-btn small { color: var(--n-gold, #f2c46d); }
.gift-sheet .button.outline { display: flex; justify-content: center; margin-top: 18px; }

/* ---- RANGO hilft: real PayPal button only with a stored link (module donate) ---- */
.donate-go { display: inline-flex; align-items: center; gap: 10px; min-height: 60px; font-size: 19px; }
.donate-org { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .fly, .fx-drop, .stage-live.is-live .stage-dot, .dock-heart.beat .dock-ico, .fx-banner, .stage-fx[data-fx="rainbow"]::before { animation: none !important; }
  .dock-ico, .dock-ring, .talk-react button, .gift-bar > span { transition: none !important; }
}
.donate-structure { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 6px 14px; margin: 8px 0 12px; }
.donate-structure dt { color: var(--n-faint, #9fb1aa); font-size: 14px; }
.donate-structure dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .donate-structure { grid-template-columns: 1fr; } .donate-structure dd { margin-bottom: 6px; } }
/* Community heart counter: label visible on wider screens, read out (not shown) on phones so the picture stays free. */
.stage-hearts .stage-label { font-weight: 600; font-size: 12px; opacity: .85; }
@media (max-width: 580px) { .stage-hearts .stage-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* Live chip: "● 12 schauen zu" – watching viewers, or visitors on the page while nobody watches (world.js). */
.stage-overlay > .stage-viewers [data-lc-part] { display: inline-flex; align-items: center; gap: 6px; }
.stage-viewers .stage-label { font-weight: 600; font-size: 12px; opacity: .9; }
.stage-viewers .lc-dot { flex: none; }
/* QA 09.11.2026: in the two-column layout the dock sits in the narrow right column (from 300 px): keep the four buttons
   inside it and put the kids button in the row instead of on top of the points button. */
@media (min-width: 1001px) and (max-width: 1280px) { .stage-layout .stage-dock { flex-wrap: wrap; gap: 12px; } .stage-layout .dock-kids { position: static; align-self: center; margin-top: 14px; } }
/* QA 09.11.2026: on the live page the same five reactions sat twice – as a bar over the picture and as the row under the
   stage. The bar covered the picture; the row below (and heart/wave at the picture edge, also in fullscreen) remain. */
.stage-layout #livestream .reaction-bar { display: none; }
/* Small phones up to 400 px (iPhone SE, mini, 13/14): the four stage buttons and the kids button fit the width. */
@media (max-width: 400px) { .stage-dock { gap: 8px; flex-wrap: wrap; } .dock-ico, .dock-ring { width: 58px; height: 58px; } .dock-ring .dock-ico { width: 48px; height: 48px; } }
