/* RANGO WORLD – Premium-Startseite (Modul "experience"). Approved design system 0.5 (08.11.2026):
   a night-time terrarium you can touch – sandstone and sand surfaces, terrarium-glass edges, the warm basking lamp
   as the one light source, Rango's turquoise as the cool counter-light. Everything is scoped to .rwx-home / html.rwx-on,
   so with the module off the site looks exactly as before. Fonts: Outfit and Manrope are used once they are
   self-hosted (no Google request); until then the system font stack applies. */
:root {
  --rwx-night: #0E1211; --rwx-stone: #1D2421; --rwx-stone-hi: #283130; --rwx-stone-lo: #151A18; --rwx-forest: #163A2E; --rwx-moss: #1F4A3A;
  --rwx-gold: #E2B84E; --rwx-gold-deep: #C9962F; --rwx-gold-pale: #F3DFA0; --rwx-sand: #E8D9BC; --rwx-earth: #7A5E3E; --rwx-cream: #F6F1E7;
  --rwx-heart: #C93A36; --rwx-turq: #5DB3A9; --rwx-muted: #A9B6AC; --rwx-soft: #CFD7CF; --rwx-line: rgba(232, 217, 188, .10); --rwx-glass: rgba(20, 24, 22, .6);
  --rwx-display: "Outfit", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rwx-ui: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rwx-spring: cubic-bezier(.3, 1.45, .45, 1); --rwx-out: cubic-bezier(.2, .8, .2, 1);
  --rwx-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .93  0 0 0 0 .8  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --rwx-sp: 0;
}
.rwx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* The site styles every svg as a 24px outline icon; RANGO WORLD art needs plain SVG defaults. */
.rwx-home svg, .rwx-layer svg, .rwx-flyer svg, .rwx-toast svg, .rwx-mini svg { width: 100%; height: 100%; fill: #000; stroke: none; stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; display: block; overflow: visible; }

/* With the module on, the new home replaces the old stage area of the hero; the welcome text stays below it. */
:is(html.rwx-on, html.rwx-boot) .stage-hero { display: block !important; padding: 0 !important; background: none !important; }
:is(html.rwx-on, html.rwx-boot) .stage-hero > :not(.rwx-home):not(.stage-copy) { display: none !important; }
:is(html.rwx-on, html.rwx-boot) .stage-hero > .stage-copy { max-width: 720px; margin: 28px auto 0; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }

.rwx-home { position: relative; isolation: isolate; overflow: hidden; color: var(--rwx-cream); font-family: var(--rwx-ui); font-size: 15px; line-height: 1.5; background: var(--rwx-noise), radial-gradient(80% 45% at 0% 105%, rgba(93, 179, 169, .10), transparent 70%), linear-gradient(180deg, #131917 0%, var(--rwx-night) 55%, #0D1513 100%); border-radius: 0 0 28px 28px; -webkit-tap-highlight-color: transparent; }
.rwx-home > .rwx-inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 26px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 18px; }
.rwx-home button { font: inherit; color: inherit; }
.rwx-home :focus-visible { outline: 2px solid var(--rwx-gold-pale); outline-offset: 3px; }
.rwx-home .rwx-bg { position: absolute; left: 50%; bottom: -30px; width: min(820px, 180%); translate: -50% 0; z-index: 0; pointer-events: none; will-change: transform; }

.rwx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rwx-kicker { margin: 0; font-family: var(--rwx-display); font-weight: 600; font-size: 12px; letter-spacing: .32em; color: var(--rwx-gold); }
.rwx-kicker span { color: var(--rwx-muted); letter-spacing: .16em; }
.rwx-stars { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border: 0; border-radius: 999px; cursor: pointer; overflow: hidden; background: linear-gradient(180deg, rgba(40, 49, 48, .9), rgba(24, 30, 28, .9)); box-shadow: inset 0 1px 0 rgba(246, 241, 231, .10), inset 0 0 0 1px rgba(226, 184, 78, .24), 0 10px 24px -8px rgba(0, 0, 0, .7); color: var(--rwx-gold); }
.rwx-stars .rwx-ring { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--rwx-gold) calc(var(--pct, 0) * 1%), rgba(226, 184, 78, .16) 0); }
.rwx-stars .rwx-ring > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2C3532, #161B19); }
.rwx-stars .rwx-ring svg { width: 20px; height: 20px; }
.rwx-stars b { font-family: var(--rwx-display); font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; min-width: 2ch; }
.rwx-stars small { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--rwx-soft); }
.rwx-stars.rwx-pop b { animation: rwx-pop .5s var(--rwx-spring); }
@keyframes rwx-pop { 40% { transform: scale(1.28); color: var(--rwx-gold-pale); } }

/* Live stage in terrarium glass. The real player (#stream-picture) is moved in here while the module is on. */
.rwx-stage { position: relative; border-radius: 22px; padding: 5px; background: linear-gradient(150deg, rgba(246, 241, 231, .22), rgba(246, 241, 231, .04) 30%, rgba(93, 179, 169, .10) 70%, rgba(246, 241, 231, .14)); box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .5); will-change: transform; transform-origin: 50% 100%; }
.rwx-screen { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 17px; overflow: hidden; background: #000 url('/assets/terrarium.webp') center / cover; isolation: isolate; }
.rwx-screen .stream-picture { position: absolute !important; inset: 0; height: 100% !important; aspect-ratio: auto !important; border-radius: inherit; background: #000; }
.rwx-screen .stream-picture > img { object-fit: cover; }
.rwx-screen .stream-picture .stage-overlay, .rwx-screen .stream-picture .camera-label { display: none !important; }
.rwx-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .05) 42%, transparent 50%), linear-gradient(180deg, rgba(255, 236, 190, .06), transparent 30%); }
.rwx-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(14, 18, 17, .74); font-weight: 700; font-size: 12.5px; color: var(--rwx-cream); box-shadow: inset 0 0 0 1px rgba(246, 241, 231, .10); pointer-events: none; }
.rwx-chip svg { width: 18px; height: 18px; }
.rwx-chip.rwx-live { top: 10px; left: 10px; font-family: var(--rwx-display); font-weight: 600; letter-spacing: .16em; }
.rwx-chip.rwx-live.is-live { box-shadow: inset 0 0 0 1px rgba(201, 58, 54, .6); }
.rwx-chip.rwx-live.is-live svg { animation: rwx-pulse 1.8s ease-in-out infinite; }
.rwx-chip.rwx-live:not(.is-live) svg { filter: grayscale(1); opacity: .7; }
@keyframes rwx-pulse { 50% { opacity: .5; } }
.rwx-chip.rwx-viewers { top: 10px; right: 10px; }
.rwx-chip.rwx-viewers [data-lc-part] { display: flex; align-items: center; gap: 6px; }
.rwx-full { position: absolute; z-index: 3; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; overflow: hidden; background: rgba(14, 18, 17, .74); color: var(--rwx-cream); box-shadow: inset 0 0 0 1px rgba(246, 241, 231, .12); }
.rwx-full svg { width: 16px !important; height: 16px !important; fill: none !important; stroke: currentColor !important; stroke-width: 2.2 !important; stroke-linecap: round !important; }

/* Under the stage: the reaction lane (never over the picture) and Rango on her sandstone ledge */
.rwx-below { display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: end; margin-top: -12px; position: relative; z-index: 2; }
.rwx-lane { position: relative; height: 116px; overflow: hidden; -webkit-mask-image: linear-gradient(0deg, transparent, #000 25%, #000 70%, transparent); mask-image: linear-gradient(0deg, transparent, #000 25%, #000 70%, transparent); }
.rwx-float { position: absolute; bottom: -6px; width: 30px; height: 30px; will-change: transform, opacity; }
.rwx-ledge { position: relative; display: grid; justify-items: center; }
.rwx-ledge::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 26px; z-index: -1; border-radius: 50% 50% 12px 12px / 70% 70% 12px 12px; background: var(--rwx-noise), linear-gradient(180deg, #A8875C, #7A5E3E 60%, #5A4630); box-shadow: inset 0 2px 0 rgba(255, 230, 180, .35), 0 12px 18px -6px rgba(0, 0, 0, .8); }
.rwx-rango { display: block; width: 128px; height: 128px; margin-bottom: 8px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.rwx-rango .rg-sway { transform-box: view-box; transform-origin: 100px 128px; animation: rwx-sway 6.5s ease-in-out infinite; }
@keyframes rwx-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-1.6deg); } }

.rwx-together { display: flex; align-items: center; gap: 10px; margin-top: -4px; }
.rwx-together > svg { width: 18px !important; height: 18px !important; flex: none; }
.rwx-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(246, 241, 231, .07); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.rwx-bar i { display: block; height: 100%; width: calc(var(--t, 0) * 1%); border-radius: inherit; background: linear-gradient(90deg, #8E2A27, var(--rwx-heart) 60%, #E0675F); box-shadow: 0 0 10px rgba(201, 58, 54, .6); transition: width .5s var(--rwx-out); }
.rwx-together small { font-size: 11px; font-weight: 700; color: var(--rwx-muted); white-space: nowrap; }

/* Surfaces: sandstone with lamp light that follows the finger */
.rwx-lit { position: relative; }
.rwx-shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 232, 180, .22), transparent 65%); opacity: 0; transition: opacity .35s; }
.rwx-lit.is-lit > .rwx-shine { opacity: 1; }
.rwx-fxhost { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.rwx-ripple { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--rc) 0%, transparent 62%); }

.rwx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rwx-head h2 { margin: 0; font-family: var(--rwx-display); font-weight: 600; font-size: 20px; letter-spacing: .01em; color: var(--rwx-cream); text-wrap: balance; }
.rwx-head span { font-size: 12px; font-weight: 700; color: var(--rwx-muted); }

.rwx-dock { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px; }
.rwx-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; }
.rwx-tile .rwx-face { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 84px; border-radius: 22px; background: var(--rwx-noise), radial-gradient(120% 90% at 30% 0%, var(--rwx-stone-hi), var(--rwx-stone) 55%, var(--rwx-stone-lo)); box-shadow: inset 0 1px 0 rgba(246, 241, 231, .09), inset 0 -2px 0 rgba(0, 0, 0, .35), inset 0 0 0 1px var(--rim, rgba(232, 217, 188, .14)), 0 16px 26px -12px rgba(0, 0, 0, .85); transition: transform .55s var(--rwx-spring), box-shadow .35s var(--rwx-out); }
.rwx-tile .rwx-face > svg { width: 56%; height: 56%; transition: transform .55s var(--rwx-spring); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.rwx-tile.is-down .rwx-face { transform: translateY(2px) scale(.94); transition-duration: .09s; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--rim, rgba(232, 217, 188, .14)), 0 6px 12px -8px rgba(0, 0, 0, .8); }
.rwx-tile.is-down .rwx-face > svg { transform: scale(.92); transition-duration: .09s; }
.rwx-tile > span { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--rwx-soft); }
.rwx-tile[data-act="heart"] { --rim: rgba(201, 58, 54, .5); }
.rwx-tile[data-act="wave"] { --rim: rgba(232, 217, 188, .32); }
.rwx-tile[data-act="star"] { --rim: rgba(226, 184, 78, .55); }
.rwx-tile[data-act="gift"] { --rim: rgba(93, 179, 169, .45); }
.rwx-tile.rwx-ready .rwx-face { animation: rwx-invite 2.8s ease-in-out infinite; }
@keyframes rwx-invite { 50% { box-shadow: inset 0 1px 0 rgba(246, 241, 231, .09), inset 0 0 0 1px rgba(226, 184, 78, .8), 0 0 0 6px rgba(226, 184, 78, .10), 0 16px 26px -12px rgba(0, 0, 0, .85); } }
.rwx-tile.rwx-done .rwx-face { opacity: .55; }
.rwx-tile:disabled { cursor: default; opacity: 1; }
.rwx-beat { animation: rwx-beat .5s ease-out; }
@keyframes rwx-beat { 30% { transform: scale(1.22); } 65% { transform: scale(.96); } }
.rwx-wiggle { animation: rwx-wiggle .9s ease-in-out; transform-origin: 50% 85%; }
@keyframes rwx-wiggle { 20% { transform: rotate(-14deg); } 45% { transform: rotate(12deg); } 70% { transform: rotate(-6deg); } }
.rwx-spin { animation: rwx-spin .9s var(--rwx-spring); }
@keyframes rwx-spin { 50% { transform: rotate(180deg) scale(1.18); } 100% { transform: rotate(360deg); } }

.rwx-tray { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 7px; border-radius: 20px; background: linear-gradient(180deg, rgba(246, 241, 231, .06), rgba(246, 241, 231, .02)); box-shadow: inset 0 0 0 1px var(--rwx-line), inset 0 1px 0 rgba(246, 241, 231, .07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .3s; }
.rwx-tray.rwx-calm { opacity: .45; }
.rwx-react { position: relative; display: grid; place-items: center; height: 50px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: rgba(20, 24, 22, .55); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(246, 241, 231, .05); transition: transform .5s var(--rwx-spring), background .2s; }
.rwx-react svg { width: 34px; height: 34px; }
.rwx-react.is-down { transform: scale(.88); transition-duration: .08s; background: rgba(40, 49, 48, .8); }
.rwx-calm-note { margin: -8px 0 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--rwx-muted); }

.rwx-realm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; perspective: 800px; }
.rwx-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 140px; padding: 16px; border-radius: 22px; text-decoration: none; color: var(--rwx-cream); background: var(--card-bg); box-shadow: inset 0 1px 0 rgba(246, 241, 231, .10), inset 0 0 0 1px rgba(246, 241, 231, .07), 0 22px 34px -18px rgba(0, 0, 0, .9); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--rwx-spring), box-shadow .4s var(--rwx-out); }
.rwx-card.is-down { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) scale(1.035); transition-duration: .22s; box-shadow: inset 0 1px 0 rgba(246, 241, 231, .14), inset 0 0 0 1px rgba(246, 241, 231, .12), 0 36px 50px -18px rgba(0, 0, 0, .95); }
.rwx-card .rwx-art { display: block; width: 50px; height: 50px; transform: translateZ(26px); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.rwx-card h3 { margin: auto 0 0; font-family: var(--rwx-display); font-weight: 600; font-size: 18px; color: var(--rwx-cream); transform: translateZ(14px); }
.rwx-card p { margin: 0; font-size: 12px; font-weight: 600; color: var(--rwx-soft); transform: translateZ(10px); }
.rwx-card[data-card="rewards"] { --card-bg: var(--rwx-noise), radial-gradient(120% 90% at 20% 0%, #3A3220, #231F15 55%, #17150F); }
.rwx-card[data-card="help"] { --card-bg: var(--rwx-noise), radial-gradient(120% 90% at 20% 0%, #24453A, #183229 55%, #10221C); }
.rwx-card[data-card="community"] { --card-bg: var(--rwx-noise), radial-gradient(120% 90% at 20% 0%, #23403D, #172C2A 55%, #10201E); }
.rwx-card[data-card="jackpot"] { --card-bg: var(--rwx-noise), radial-gradient(120% 90% at 50% 0%, #4A3A18, #2A2212 55%, #17130B); }

/* Fixed layers: particles, flying stars, confirmation, way back to the stream */
.rwx-layer { position: fixed; inset: 0; z-index: 1200; pointer-events: none; width: 100%; height: 100%; }
.rwx-flyer { position: fixed; left: 0; top: 0; z-index: 1201; width: 28px; height: 28px; pointer-events: none; filter: drop-shadow(0 0 8px rgba(243, 223, 160, .8)); }
.rwx-toast { position: fixed; z-index: 1202; left: 50%; top: calc(80px + env(safe-area-inset-top, 0px)); translate: -50% 0; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(20, 24, 22, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(226, 184, 78, .35), 0 20px 40px -12px rgba(0, 0, 0, .9); color: var(--rwx-cream); font: 700 14px/1.4 var(--rwx-ui); }
.rwx-toast svg { width: 30px !important; height: 30px !important; flex: none; }
.rwx-toast .rwx-ck circle { fill: rgba(226, 184, 78, .16); stroke: var(--rwx-gold); stroke-width: 2; }
.rwx-toast .rwx-ck path { fill: none; stroke: var(--rwx-gold-pale); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: rwx-draw .5s .15s var(--rwx-out) forwards; }
@keyframes rwx-draw { to { stroke-dashoffset: 0; } }
.rwx-mini { position: fixed; z-index: 1100; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(12px + var(--rwx-dock, 0px) + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(20, 24, 22, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(201, 58, 54, .5), 0 12px 30px -8px rgba(0, 0, 0, .9); font: 600 13px/1 var(--rwx-display); letter-spacing: .1em; color: var(--rwx-cream); animation: rwx-rise .5s var(--rwx-spring); }
.rwx-mini svg { width: 20px !important; height: 20px !important; }
@keyframes rwx-rise { from { transform: translateY(20px); opacity: 0; } }

/* Adaptive quality and reduced motion */
html[data-rwxq="low"] .rwx-home, html[data-rwxq="low"] .rwx-tile .rwx-face, html[data-rwxq="low"] .rwx-card { --rwx-noise: linear-gradient(transparent, transparent); }
html[data-rwxq="low"] .rwx-chip, html[data-rwxq="low"] .rwx-tray, html[data-rwxq="low"] .rwx-full, html[data-rwxq="low"] .rwx-mini, html[data-rwxq="low"] .rwx-toast { -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) {
  .rwx-home *, .rwx-home *::before, .rwx-home *::after, .rwx-mini, .rwx-toast, .rwx-toast * { animation: none !important; transition-duration: .01ms !important; }
  .rwx-stage { transform: none; }
}
.rwx-i { display: inline-grid; width: 18px; height: 18px; flex: none; }
.rwx-together .rwx-i { width: 18px; height: 18px; }
.rwx-act { display: flex; flex-direction: column; gap: 14px; }
.rwx-tile .rwx-face > svg { pointer-events: none; }
/* Player states, mirrored from #livestream onto the new screen (same behaviour as the old stage). */
.rwx-screen .center-play, .rwx-screen .stream-spinner { z-index: 4; }
.rwx-screen .center-play { transition: opacity .3s; }
.rwx-screen[data-state="live"] .center-play, .rwx-screen[data-state="bestof"] .center-play, .rwx-screen[data-state="standby"] .center-play,
.rwx-screen[data-state="connecting"] .center-play, .rwx-screen[data-state="reconnecting"] .center-play { opacity: 0; pointer-events: none; }
.rwx-screen[data-state="live"]:not(.controls-hidden) .center-play, .rwx-screen[data-state="bestof"]:not(.controls-hidden) .center-play { opacity: 1; pointer-events: auto; }
.rwx-screen.bestof-blocked .center-play { opacity: 1 !important; pointer-events: auto !important; }
.rwx-screen[data-state="connecting"] .stream-spinner, .rwx-screen[data-state="reconnecting"] .stream-spinner { opacity: 1; }
.rwx-screen[data-state="standby"] .stream-standby { opacity: 1; }
.rwx-screen.controls-hidden .stream-picture { cursor: none; }

/* ---------- Round 2 (staging): living light, natural Rango, idle pause ---------- */
/* Warm basking lamp: its own layer, dimmed by opacity while scrolling, breathing very slowly. */
.rwx-lamp { position: absolute; inset: 0 0 auto; height: 70%; z-index: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% -18%, rgba(226, 184, 78, .26), rgba(226, 184, 78, .08) 45%, transparent 70%); will-change: opacity; }
.rwx-lamp::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% -10%, rgba(255, 220, 150, .14), transparent 70%); animation: rwx-lamp 9s ease-in-out infinite; }
@keyframes rwx-lamp { 50% { opacity: .35; } }
/* A few dust motes drifting in the lamp light (only on capable devices). */
.rwx-motes { position: absolute; inset: 0 0 40%; z-index: 0; pointer-events: none; overflow: hidden; }
.rwx-motes span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #F3DFA0; box-shadow: 0 0 6px rgba(243, 223, 160, .8); opacity: 0; will-change: transform, opacity; animation: rwx-mote 12s linear infinite; }
@keyframes rwx-mote { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .5; } 85% { opacity: .3; } 100% { opacity: 0; transform: translate(24px, -150px); } }
/* Rango: breathing, tail sway, smooth head turn and eye highlights (the drawing itself is unchanged). */
.rwx-rango > svg { transform-origin: 50% 92%; animation: rwx-breathe 3.8s ease-in-out infinite; }
@keyframes rwx-breathe { 50% { transform: scale(1.006, 1.014); } }
.rwx-rango .rg-tail { transform-box: view-box; transform-origin: 128px 162px; animation: rwx-tail 5.2s ease-in-out infinite; }
@keyframes rwx-tail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(3.2deg); } }
.rwx-rango [data-head] { transform-box: view-box; transform-origin: 100px 100px; transition: transform .5s cubic-bezier(.3, 1.2, .4, 1); }
.rwx-rango [data-part="eyesOpen"] circle { transition: transform .35s ease-out; }
/* Touch: a soft lamp-coloured halo grows around a pressed tile. */
.rwx-tile .rwx-face::before { content: ""; position: absolute; inset: -6px; border-radius: 26px; box-shadow: 0 0 0 0 rgba(243, 223, 160, 0); transition: box-shadow .5s var(--rwx-out); pointer-events: none; }
.rwx-tile.is-down .rwx-face::before { box-shadow: 0 0 0 6px rgba(243, 223, 160, .12), 0 0 24px 6px rgba(243, 223, 160, .14); transition-duration: .12s; }
/* Out of sight: every idle animation pauses. */
.rwx-home.rwx-away *, .rwx-home.rwx-away *::before, .rwx-home.rwx-away *::after { animation-play-state: paused !important; }
/* Weak devices: no grain, no motes, no lamp breathing, no tail/breathing (blinking and reactions stay). */
html[data-rwxq="low"] .rwx-motes, html[data-rwxq="low"] .rwx-lamp::after { display: none; }
html[data-rwxq="low"] .rwx-rango > svg, html[data-rwxq="low"] .rwx-rango .rg-tail, html[data-rwxq="low"] .rwx-rango .rg-sway { animation: none; }
@media (prefers-reduced-motion: reduce) { .rwx-motes, .rwx-lamp::after { display: none; } .rwx-rango [data-head], .rwx-rango [data-part="eyesOpen"] circle { transition: none; } }
/* Main sponsor under the stage: calm card in the RANGO WORLD look, clearly marked as advertising. */
.rwx-home [data-ad-slot="below-stream"].ad-live { margin: 0; padding: 10px 12px; border-radius: 16px; background: rgba(246, 241, 231, .05); box-shadow: inset 0 0 0 1px var(--rwx-line); color: var(--rwx-soft); }
.rwx-home [data-ad-slot="below-stream"] .ad-kicker { color: var(--rwx-muted); letter-spacing: .14em; font-size: 10.5px; font-weight: 800; }
/* Live chip and community hearts on the RANGO WORLD screen (top right, hearts under the live chip). */
.rwx-chip.rwx-viewers .lc-dot { margin-left: 4px; }
.rwx-chip.rwx-viewers [data-lc="live-label"] { font-weight: 600; opacity: .9; }
.rwx-chip.rwx-hearts { top: 44px; left: 10px; padding: 4px 10px; } /* left: the player's heart and wave buttons sit on the right edge */

/* ---- QA 09.11.2026: tile faces are always square and the icon sits in the middle (the icon had no fixed height, so the
   face grew taller than wide and the icon slid below the edge). ---- */
.rwx-tile .rwx-face { height: auto; aspect-ratio: 1 / 1; overflow: visible; }
.rwx-tile .rwx-face > svg { position: absolute; left: 22%; top: 22%; width: 56%; height: 56%; }
.rwx-tile > span { line-height: 1.2; text-align: center; }
/* The heart icon in front of the community bar was 150 px tall (svg default) and drew a stray heart over the "Herz" tile. */
.rwx-together .rwx-i { display: block; flex: none; width: 18px; height: 18px; }
.rwx-together .rwx-i > svg { width: 18px; height: 18px; }
/* Bar on the first line, "16 Herzen heute · noch 84 bis …" underneath (readable on small phones). */
.rwx-together { flex-wrap: wrap; row-gap: 6px; }
.rwx-together small { flex-basis: 100%; white-space: normal; text-align: right; line-height: 1.35; }
/* RANGO WORLD cards: one-line and two-line descriptions keep their headings on the same line. */
.rwx-card p { min-height: 2.7em; }
/* Emoji reactions under the stage: comfortable touch targets on narrow phones. */
.rwx-tray { gap: 4px; } .rwx-react { min-height: 48px; }
/* Fullscreen button on the home stage: 44 px touch target (was 36). */
.rwx-full { width: 44px; height: 44px; }

/* ---- RANGO HEART EXPLOSION: the bar's mood on the way to the next community milestone (transform/opacity/shadow only) ---- */
.rwx-together[data-hx] .rwx-bar i { position: relative; }
.rwx-together[data-hx="calm"] .rwx-bar i { box-shadow: 0 0 8px rgba(201, 58, 54, .45); }
.rwx-together[data-hx="warm"] .rwx-bar i { animation: hx-pulse 2.4s ease-in-out infinite; }
.rwx-together[data-hx="tension"] .rwx-bar { box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 0 14px rgba(226, 184, 78, .35); }
.rwx-together[data-hx="tension"] .rwx-bar i { background: linear-gradient(90deg, #8E2A27, #C93A36 45%, #E2B84E 70%, #F3DFA0); background-size: 200% 100%; animation: hx-sheen 1.8s linear infinite, hx-pulse 1.6s ease-in-out infinite; }
.rwx-together[data-hx="imminent"] .rwx-bar { box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 0 18px rgba(243, 223, 160, .6); animation: hx-beat .9s ease-in-out infinite; }
.rwx-together[data-hx="imminent"] .rwx-bar i { background: linear-gradient(90deg, #C93A36, #E2B84E 60%, #FFF3C4); background-size: 200% 100%; animation: hx-sheen 1s linear infinite; }
.rwx-together[data-hx="reached"] .rwx-bar i { background: linear-gradient(90deg, #E2B84E, #FFF3C4, #E2B84E); box-shadow: 0 0 18px rgba(243, 223, 160, .8); }
.rwx-together[data-hx="imminent"] small, .rwx-together[data-hx="reached"] small { color: #F3DFA0; }
@keyframes hx-pulse { 0%, 100% { box-shadow: 0 0 6px rgba(201, 58, 54, .4); } 50% { box-shadow: 0 0 16px rgba(226, 184, 78, .75); } }
@keyframes hx-sheen { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes hx-beat { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.5); } }
@media (prefers-reduced-motion: reduce) { .rwx-together[data-hx] .rwx-bar, .rwx-together[data-hx] .rwx-bar i { animation: none !important; } }

/* ---------- RANGO WORLD 2026: one experience – large stream, Rango's world grows out of its lower edge ---------- */
/* Rango sits on the left and rises a little into the lower left corner of the picture (never over the player controls
   on the right); reactions rise in the lane next to him. Main actions directly under Rango, everything else is a link. */
.rwx-below { grid-template-columns: 132px minmax(0, 1fr); margin-top: -40px; pointer-events: none; }
.rwx-below .rwx-ledge { order: -1; }
.rwx-below .rwx-rango, .rwx-below .rwx-lane { pointer-events: auto; }
.rwx-chip.rwx-viewers { top: 84px; right: auto; left: 10px; bottom: auto; }
.rwx-below + .rwx-together { margin-top: 2px; }
.rwx-dock { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rwx-more { display: flex; flex-wrap: wrap; gap: 8px; }
.rwx-more a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; color: var(--rwx-cream); text-decoration: none; font-weight: 700; font-size: 13.5px; background: rgba(246, 241, 231, .06); box-shadow: inset 0 0 0 1px var(--rwx-line); }
.rwx-more a:hover, .rwx-more a:focus-visible { background: rgba(246, 241, 231, .12); }
.rwx-discover { max-width: 1040px; margin: 28px auto 8px; padding: 0 16px; }
.rwx-discover h2 { margin: 0 0 12px; font-size: 22px; }
.rwx-discover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rwx-disc { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border-radius: 18px; text-decoration: none; color: inherit; background: rgba(246, 241, 231, .05); box-shadow: inset 0 0 0 1px rgba(246, 241, 231, .12); }
.rwx-disc:hover, .rwx-disc:focus-visible { background: rgba(246, 241, 231, .1); }
.rwx-disc-i { grid-row: span 2; font-size: 30px; line-height: 1; text-align: center; }
.rwx-disc b { font-size: 15.5px; }
.rwx-disc small { font-size: 13px; opacity: .78; }
@media (max-width: 640px) {
  /* stream edge to edge: no double frame on phones */
  .rwx-stage { margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .rwx-screen { border-radius: 0; }
  .rwx-below { grid-template-columns: 112px minmax(0, 1fr); margin-top: -34px; }
  .rwx-rango { width: 108px; height: 108px; }
  .rwx-dock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rwx-discover-grid { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 900px) { .rwx-discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* larger live picture: Rango rises further into the picture's lower left corner; desktop shows the stream wide */
.rwx-below { margin-top: -62px; }
.rwx-home .rwx-bg { display: none; }
@media (max-width: 640px) { .rwx-below { margin-top: -52px; } }
@media (min-width: 900px) {
  .rwx-home > .rwx-inner { max-width: 980px; }
  .rwx-home > .rwx-inner > :not(.rwx-stage):not(.rwx-below):not(.rwx-top) { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
  .rwx-below { grid-template-columns: 150px minmax(0, 1fr); }
  .rwx-rango { width: 146px; height: 146px; }
}
/* phones: the picture's zoom buttons (+/−) sit bottom left – Rango stands right next to them, never on top of them */
@media (max-width: 640px) { .rwx-below { grid-template-columns: 224px minmax(0, 1fr); } .rwx-below .rwx-ledge { justify-items: end; } }
/* phones: the lower edge of the picture carries zoom (left), camera switch (middle) and heart/wave/full screen (right) –
   Rango sits directly on the picture's edge there instead of reaching into it, so every control stays free */
@media (max-width: 640px) { .rwx-below { grid-template-columns: 112px minmax(0, 1fr); margin-top: -8px; } .rwx-below .rwx-ledge { justify-items: center; } }
/* desktop: Rango reaches into the picture between the zoom buttons (left) and the camera switch (middle) */
@media (min-width: 900px) { .rwx-below { grid-template-columns: 300px minmax(0, 1fr); } .rwx-below .rwx-ledge { justify-items: end; } }
@media (min-width: 900px) { .rwx-below .rwx-ledge { justify-self: end; width: 156px; } }

/* GECKO AI as a fold-out assistant on the start page (a helper, not a visitor chat): small window on desktop,
   space-saving overlay on phones – always above the radio bar, closed with × or Escape. */
.ai-dock { position: fixed; z-index: 950; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 130px)); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #121715; color: #E9EFE8; box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(246, 241, 231, .12); }
.ai-dock[hidden] { display: none; }
.ai-dock .ai.panel { margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 0; box-shadow: none; background: none; }
.ai-dock .chat-messages { flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; }
.ai-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .35); color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.ai-close:focus-visible { outline: 2px solid #E2C97A; outline-offset: 2px; }
.rwx-more a[data-ai-open] { background: rgba(226, 184, 78, .14); box-shadow: inset 0 0 0 1px rgba(226, 184, 78, .4); }
@media (max-width: 640px) { .ai-dock { left: 8px; right: 8px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); max-height: 72dvh; } }
