/* Ruby's Globe: a glowing night-garden observatory inside the Rose Garden station */
.rg { padding-bottom: 40px; }
.rg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 2px 10px; }
.rg-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rg-title b { display: block; font-family: 'Playfair Display', serif; font-size: 22px; color: #7a2a4f; line-height: 1.1; }
.rg-title small { display: block; font-size: 12.5px; color: #9a5d7c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.rg-gem { width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, #ffd2e6 30%, #ff5c8f 75%, #b0124a 100%); box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255, 60, 120, .55); animation: rgGem 3.2s ease-in-out infinite; }
@keyframes rgGem { 50% { box-shadow: 0 0 0 2px #fff, 0 0 30px rgba(255, 60, 120, .85); } }
.rg-follow { flex: none; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(201, 120, 160, .45); background: rgba(255, 255, 255, .7); color: #8a3a63;
  border-radius: 999px; padding: 7px 12px; font: 600 13px Quicksand, sans-serif; }
.rg-follow.on { background: linear-gradient(135deg, #ff7aa8, #d94f86); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(217, 79, 134, .35); }

.rg-stage { position: relative; height: min(118vw, 560px); border-radius: 28px; overflow: hidden; touch-action: none; isolation: isolate;
  background: radial-gradient(ellipse at 50% 38%, #2a0f33 0%, #170824 45%, #0a0414 100%);
  box-shadow: 0 0 0 1px rgba(255, 200, 230, .35), 0 0 0 5px rgba(255, 255, 255, .55), 0 0 0 6px rgba(230, 170, 200, .5), 0 18px 40px rgba(90, 20, 60, .35); }
.rg-stage::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .75;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #ffe1f0 50%, transparent 51%), radial-gradient(1.4px 1.4px at 88% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 82%, #ffd1e8 50%, transparent 51%), radial-gradient(1.2px 1.2px at 52% 6%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 30%, #e7d4ff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 22% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 64% 92%, #fff 50%, transparent 51%);
  animation: rgTw 5s ease-in-out infinite alternate; }
@keyframes rgTw { to { opacity: .35; } }
.rg-glow { position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 110, 170, .22) 0%, rgba(255, 110, 170, .08) 45%, transparent 70%); }
#rgglobe { position: absolute; inset: 0; z-index: 1; }
#rgglobe canvas { outline: none; }
.rg-gauge { position: absolute; left: 50%; top: 50%; width: min(96%, 540px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; overflow: visible; }
.rg-gt { fill: none; stroke: rgba(255, 220, 240, .16); stroke-width: 6; stroke-linecap: round; }
.rg-tk line { stroke: rgba(255, 220, 240, .45); stroke-width: 1.2; }
.rg-gf { fill: none; stroke: url(#rgGg); stroke-width: 10; stroke-linecap: round; opacity: .75; }
.rg-gl { fill: none; stroke: url(#rgGg); stroke-width: 4.5; stroke-linecap: round; }
.rg-gh { fill: #fff; stroke: #ff4f8b; stroke-width: 3; filter: drop-shadow(0 0 6px #ff4f8b); animation: rgHp 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.rg-gh.est { stroke-dasharray: 3 3; }
@keyframes rgHp { 50% { transform: scale(1.35); } }
.rg-gv { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3; text-align: center; pointer-events: none; color: #fff; }
.rg-gv b { display: block; font: 800 26px 'Playfair Display', serif; text-shadow: 0 0 14px rgba(255, 80, 140, .9); line-height: 1; }
.rg-gv small { font: 600 11px Quicksand, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #ffc9e2; }
.rg-layers { position: absolute; left: 0; right: 0; top: 10px; z-index: 4; display: flex; gap: 6px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
.rg-layers::-webkit-scrollbar { display: none; }
.rg-layers button { flex: none; display: flex; align-items: center; gap: 4px; border: 1px solid rgba(255, 190, 225, .35); background: rgba(30, 10, 40, .55); color: #ffd9ec;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 5px 10px; font: 600 12px Quicksand, sans-serif; opacity: .7; }
.rg-layers button.on { opacity: 1; background: rgba(255, 90, 150, .35); border-color: rgba(255, 170, 210, .8); color: #fff; box-shadow: 0 0 12px rgba(255, 90, 150, .35); }
.rg-zoom { position: absolute; right: 10px; bottom: 12px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.rg-zoom button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 190, 225, .45); background: rgba(30, 10, 40, .6); color: #fff; font-size: 17px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rg-load { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px; color: #ffd6ea; font: 600 14px Quicksand, sans-serif; text-align: center; padding: 20px; transition: opacity .8s; }
.rg-load i { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(255, 150, 200, .25); border-top-color: #ff7aa8; animation: rgSpin 1s linear infinite; }
.rg-load.gone { opacity: 0; pointer-events: none; }
@keyframes rgSpin { to { transform: rotate(360deg); } }

/* Ruby herself */
.rg-ruby { position: relative; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; display: grid; place-items: center; }
.rg-ruby b { position: relative; z-index: 2; font-size: 22px; filter: drop-shadow(0 0 6px #ff2d6f) drop-shadow(0 0 14px #ff2d6f); animation: rgBob 2.4s ease-in-out infinite; }
.rg-ruby i { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 60, 120, .55), transparent 70%); animation: rgAura 1.8s ease-out infinite; }
.rg-ruby span { position: absolute; top: 28px; font: 700 10px Quicksand, sans-serif; color: #fff; background: rgba(217, 40, 100, .8); padding: 1px 6px; border-radius: 8px; white-space: nowrap; letter-spacing: .04em; }
.rg-ruby.fly b { animation: rgFly .5s ease-in-out infinite; }
.rg-ruby.fly i { animation-duration: .6s; }
@keyframes rgBob { 50% { transform: translateY(-3px) rotate(-6deg); } }
@keyframes rgFly { 50% { transform: scale(1.25) rotate(12deg); } }
@keyframes rgAura { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* pop card on the globe */
.rg-pop { position: absolute; left: 10px; right: 54px; bottom: 12px; z-index: 6; max-height: 58%; overflow: auto; border-radius: 20px; padding: 14px 14px 12px;
  background: linear-gradient(160deg, rgba(255, 246, 251, .97), rgba(255, 228, 241, .95)); color: #5b2343; box-shadow: 0 10px 30px rgba(40, 0, 30, .45), 0 0 0 1px rgba(255, 255, 255, .9) inset; }
.rg-pop.in { animation: rgPop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes rgPop { from { transform: translateY(18px) scale(.94); opacity: 0; } }
.rg-x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 22px; color: #b0628a; padding: 2px 6px; }
.rg-pk { font: 700 11px Quicksand, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--bc, #d94f86); margin-bottom: 3px; padding-right: 22px; }
.rg-pt { display: block; font: 700 17px 'Playfair Display', serif; color: #7a2a4f; margin-bottom: 4px; padding-right: 20px; }
.rg-pop p { margin: 6px 0; font-size: 14px; line-height: 1.45; }
.rg-why { font-style: italic; color: #8a4a6b; }
.rg-read { background: rgba(255, 90, 150, .1); border-left: 3px solid #ff5c8f; padding: 6px 9px; border-radius: 0 10px 10px 0; }
.rg-ps { display: block; color: #9a6a84; font-size: 12px; }
.rg-open { display: inline-block; margin-top: 8px; color: #c23a73; font-weight: 700; font-size: 13px; text-decoration: none; }
.rg-mini { display: block; margin-top: 10px; width: 100%; border: 0; border-radius: 14px; padding: 9px; font: 700 13px Quicksand, sans-serif; color: #fff; background: linear-gradient(135deg, #ff6f9f, #c93a78); }
.rg-links { display: flex; gap: 6px; margin-top: 6px; }
.rg-links a { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #ffd6e7; color: #a32a5e; font: 700 12px Quicksand; text-decoration: none; }
.rg-ekg { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.rg-sp { width: 120px; height: 28px; }
.rg-tip { font: 500 12px Quicksand, sans-serif; color: #fff; background: rgba(40, 10, 40, .88); padding: 7px 9px; border-radius: 10px; max-width: 240px; line-height: 1.35; border: 1px solid rgba(255, 160, 210, .4); }
.rg-tip b { color: #ffc6e0; }

/* rewind */
.rg-rew { display: flex; align-items: center; gap: 10px; margin: 14px 4px 8px; }
#rgplay { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; color: #fff; font-size: 14px; background: linear-gradient(135deg, #ff7aa8, #b8326c); box-shadow: 0 4px 12px rgba(184, 50, 108, .35); }
.rg-rw { flex: 1; min-width: 0; }
#rgrew { width: 100%; accent-color: #d94f86; }
.rg-rl { display: flex; justify-content: space-between; font: 600 11px Quicksand, sans-serif; color: #a86b8a; }
.rg-rl b { color: #7a2a4f; }

/* tabs + sheet */
.rg-tabs { display: flex; gap: 6px; margin: 8px 0 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.rg-tabs::-webkit-scrollbar { display: none; }
.rg-tabs button { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid rgba(220, 160, 190, .45); background: rgba(255, 255, 255, .65);
  border-radius: 16px; padding: 7px 10px; font: 600 12px Quicksand, sans-serif; color: #8a3a63; }
.rg-tabs button i { font-style: normal; font-size: 17px; }
.rg-tabs button.on { background: linear-gradient(160deg, #fff, #ffe1ee); border-color: #f08db5; box-shadow: 0 4px 14px rgba(217, 79, 134, .22); color: #b02a63; }
.rg-card { display: block; width: 100%; text-align: left; margin-bottom: 12px; padding: 14px; border-radius: 22px; border: 1px solid rgba(232, 180, 205, .55);
  background: linear-gradient(160deg, rgba(255, 255, 255, .88), rgba(255, 238, 246, .82)); box-shadow: 0 6px 20px rgba(160, 60, 110, .1); color: #5b2343; font: inherit; }
.rg-card > b { display: block; font: 700 16px 'Playfair Display', serif; color: #7a2a4f; }
.rg-card > small { display: block; color: #9a6a84; font-size: 12.5px; margin: 2px 0 8px; }
.rg-card p { margin: 6px 0; font-size: 14px; line-height: 1.45; }
.rg-empty { padding: 14px; text-align: center; color: #9a6a84; font-size: 13.5px; }
.rg-sub { display: block; margin-top: 8px; color: #8a5a74; font-size: 12.5px; line-height: 1.5; }
.rg-sub a { color: #b02a63; text-decoration: underline dotted; }
.rg-me { display: flex; gap: 12px; align-items: flex-start; }
.rg-me .rg-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
  background: radial-gradient(circle at 35% 30%, #fff, #ffc4dc 35%, #ff4f8b 80%); box-shadow: 0 0 16px rgba(255, 60, 120, .45); }
.rg-me.hot .rg-av { animation: rgGem 1.2s ease-in-out infinite; }
.rg-me b { font: 700 16px 'Playfair Display', serif; color: #7a2a4f; }
.rg-me small { color: #a07890; font-size: 12px; }
.rg-in { display: flex; gap: 8px; margin-top: 8px; }
.rg-in input { flex: 1; min-width: 0; border: 1px solid rgba(220, 150, 185, .6); border-radius: 14px; padding: 10px 12px; font: 500 15px Quicksand, sans-serif; background: #fff; color: #5b2343; }
.rg-in button { flex: none; border: 0; border-radius: 14px; padding: 0 16px; font: 700 14px Quicksand, sans-serif; color: #fff; background: linear-gradient(135deg, #ff6f9f, #c93a78); }
.rg-chips { display: flex; gap: 6px; margin: 10px 0 4px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.rg-chips::-webkit-scrollbar { display: none; }
.rg-chips button, .rg-chips span { flex: none; border: 1px solid rgba(220, 150, 185, .5); background: #fff6fa; border-radius: 999px; padding: 6px 11px; font: 600 12.5px Quicksand, sans-serif; color: #9a3a6a; }
.rg-pop .rg-chips { flex-wrap: wrap; }
.rg-pop .rg-chips span { border-color: var(--bc, #f0a); }
.rg-ord { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; border-radius: 16px; background: linear-gradient(135deg, #fff, #ffe8f2); border: 1px solid #f6b9d2; }
.rg-ord i { font-style: normal; font-size: 18px; }
.rg-ord span { flex: 1; min-width: 0; }
.rg-ord b { display: block; font-size: 14px; color: #6a2347; }
.rg-ord small { display: block; font-size: 12.5px; color: #925d78; line-height: 1.4; }
.rg-ord button { flex: none; border: 1px solid #e79bbd; background: #fff; color: #b02a63; border-radius: 12px; padding: 6px 10px; font: 700 12px Quicksand, sans-serif; }
.rg-ord.pend { border-style: dashed; }
.rg-ord.old { opacity: .65; background: #fff; }
.rg-back { margin-top: 10px; width: 100%; border: 1px dashed #e08ab0; background: #fff; color: #a32a5e; border-radius: 14px; padding: 9px; font: 700 13px Quicksand, sans-serif; }
.rg-log { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; }
.rg-le { display: flex; gap: 10px; text-align: left; border: 1px solid #f3cadb; background: #fff; border-radius: 16px; padding: 10px; font: inherit; color: #5b2343; }
.rg-le > i { font-style: normal; font-size: 18px; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #ffe6f0; }
.rg-le.order > i { background: linear-gradient(135deg, #ffe08a, #ffb84d); }
.rg-le span { min-width: 0; }
.rg-le b { font-size: 14.5px; color: #6a2347; }
.rg-le .rg-lt { margin-left: 6px; color: #b08aa0; font-size: 11.5px; }
.rg-le em { display: block; font-size: 13px; color: #8a4a6b; margin-top: 2px; }
.rg-le p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; }
.rg-chat { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.rg-m { max-width: 86%; padding: 8px 12px; border-radius: 16px; font-size: 14px; line-height: 1.42; }
.rg-m.u { align-self: flex-end; background: linear-gradient(135deg, #ff7aa8, #d94f86); color: #fff; border-bottom-right-radius: 4px; }
.rg-m.a { align-self: flex-start; background: #fff; border: 1px solid #f3cadb; color: #5b2343; border-bottom-left-radius: 4px; }
.rg-beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.rg-beats button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px 8px; border-radius: 18px; border: 1px solid rgba(232, 180, 205, .6);
  background: linear-gradient(160deg, #fff, #fff1f7); font: inherit; color: #5b2343; overflow: hidden; }
.rg-beats button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--bc); opacity: .8; }
.rg-beats button.on { box-shadow: 0 0 0 2px var(--bc), 0 6px 16px rgba(160, 60, 110, .18); }
.rg-beats i { font-style: normal; font-size: 20px; }
.rg-beats b { font: 800 20px 'Playfair Display', serif; color: #7a2a4f; line-height: 1.1; }
.rg-beats small { font: 700 11px Quicksand, sans-serif; color: #8a4a6b; text-align: center; }
.rg-beats em { font-style: normal; font-size: 10.5px; color: #b08aa0; }
.rg-li { display: flex; gap: 10px; width: 100%; text-align: left; align-items: flex-start; border: 0; border-top: 1px solid rgba(240, 200, 220, .7); background: none; padding: 9px 2px; font: 500 13.5px/1.4 Quicksand, sans-serif; color: #5b2343; }
.rg-li > i { font-style: normal; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--bc, #f5c0d6) inset; font-size: 14px; }
.rg-li span { min-width: 0; }
.rg-li b { display: block; color: #7a2a4f; font-size: 13px; }
.rg-li small { display: block; color: #a07890; font-size: 11.5px; margin-top: 1px; }
.rg-pop .rg-li small { display: inline; margin-left: 4px; }
.rg-seg { display: flex; gap: 6px; margin-bottom: 10px; background: rgba(255, 255, 255, .6); padding: 4px; border-radius: 16px; border: 1px solid rgba(232, 180, 205, .5); }
.rg-seg button { flex: 1; border: 0; background: none; border-radius: 12px; padding: 8px; font: 700 13px Quicksand, sans-serif; color: #8a3a63; }
.rg-seg button.on { background: linear-gradient(135deg, #ff7aa8, #d94f86); color: #fff; }
.rg-pl { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-top: 1px solid rgba(240, 200, 220, .7); background: none; padding: 9px 2px; font: inherit; color: #5b2343; text-align: left; }
.rg-pl em { font-style: normal; flex: none; width: 24px; font: 800 14px 'Playfair Display', serif; color: #d94f86; text-align: center; }
.rg-pl span { flex: 1; min-width: 0; position: relative; padding-bottom: 6px; }
.rg-pl b { display: block; font-size: 14px; color: #6a2347; }
.rg-pl small { font-size: 12px; color: #925d78; }
.rg-pl u { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #ffb3d1, #e0457f); text-decoration: none; }
.rg-pl strong { flex: none; font: 800 18px 'Playfair Display', serif; color: #7a2a4f; }
.rg-pat { cursor: pointer; }
.rg-pat.on { border-color: #f2c14e; box-shadow: 0 0 0 2px #ffd970, 0 8px 22px rgba(220, 160, 40, .25); background: linear-gradient(160deg, #fffdf3, #fff1d6); }
.rg-pat > b { font: 700 15px Quicksand, sans-serif; color: #6a2347; }
.rg-hearts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rg-hearts button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border-radius: 14px; border: 1px solid #f3cadb; background: #fff; font: inherit; color: #5b2343; }
.rg-hearts b { font-size: 12.5px; color: #6a2347; }
.rg-hearts .rg-sp { width: 100%; height: 22px; }
.rg-hearts small { font: 700 11.5px Quicksand, sans-serif; color: #c2477e; }
.rg-hearts small.weak { color: #d98a1f; }
.rg-hearts small.flat { color: #e0203f; }
.rg-src { font-size: 11px; color: #b08aa0; text-align: center; margin: 10px 8px 0; line-height: 1.4; }
.rg-row > i, .rg-cta > i { background: radial-gradient(circle at 35% 30%, #fff, #ffc4dc 35%, #ff4f8b 85%) !important; }
.rg-cta { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0 12px; padding: 12px 14px; border-radius: 20px; border: 0; text-align: left; font: inherit;
  background: linear-gradient(135deg, #2a0f33, #4a1846 60%, #7a2357); color: #fff; box-shadow: 0 8px 22px rgba(90, 20, 60, .35), 0 0 0 1px rgba(255, 190, 225, .4) inset; }
.rg-cta > i { flex: none; font-style: normal; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; box-shadow: 0 0 16px rgba(255, 60, 120, .6); }
.rg-cta span { flex: 1; }
.rg-cta b { display: block; font: 700 16px 'Playfair Display', serif; }
.rg-cta small { color: #ffc9e2; font-size: 12.5px; }
.rg-cta em { font-style: normal; font-size: 22px; color: #ffc9e2; }
@media (prefers-reduced-motion: reduce) { .rg-ruby b, .rg-ruby i, .rg-gem, .rg-gh, .rg-stage::before { animation: none; } }

/* ---------- Ruby alive: caption, drops, scanning ---------- */
.rg-cap { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; max-width: 88%; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(40, 12, 44, .72); color: #fff; font: 600 12.5px Quicksand, sans-serif; line-height: 1.25; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(30, 0, 30, .35), 0 0 0 1px rgba(255, 180, 220, .35) inset; pointer-events: none; }
.rg-cap #rgcapt { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rg-capg { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: radial-gradient(circle at 35% 30%, #fff, #ffc4dc 35%, #ff4f8b 85%); box-shadow: 0 0 12px rgba(255, 60, 120, .7); animation: rgBob 2.4s ease-in-out infinite; }
.rg-cap[data-m="pin"] .rg-capg { background: radial-gradient(circle at 35% 30%, #fff, #ffd38a 40%, #f08a1f 90%); }
.rg-cap[data-m="link"] .rg-capg { background: radial-gradient(circle at 35% 30%, #fff, #ffe7a3 40%, #d4a017 90%); box-shadow: 0 0 14px rgba(240, 190, 40, .8); }
.rg-cap[data-m="patrol"] .rg-capg { background: radial-gradient(circle at 35% 30%, #fff, #e3d4ff 40%, #9a6ae0 90%); }
.rg-cap.nw { animation: rgCapIn .45s ease-out; }
@keyframes rgCapIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.rg-ruby.scan i { animation: rgAura .9s ease-out infinite; background: radial-gradient(circle, rgba(255, 220, 120, .55), transparent 70%); }
.rg-drop { position: relative; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; animation: rgDrop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.rg-drop i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--bc, #ff4f8b); box-shadow: 0 0 14px var(--bc, #ff4f8b), 0 0 0 2px #fff inset; font-style: normal; font-size: 13px; }
.rg-drop i { text-indent: 0; }
.rg-drop::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 22px; height: 8px; margin-left: -11px; border-radius: 50%; background: radial-gradient(var(--bc, #ff4f8b), transparent 70%); opacity: .6; }
@keyframes rgDrop { 0% { transform: translate(-50%, -260%); opacity: 0; } 60% { opacity: 1; } 100% { transform: translate(-50%, -100%); } }

/* ---------- her desk ---------- */
.rg-desk { margin: 12px 0; }
.rg-now { padding: 14px; border-radius: 24px; color: #fff; background: linear-gradient(140deg, #2a0f33, #4a1846 55%, #8a2a5f); box-shadow: 0 10px 26px rgba(90, 20, 60, .35), 0 0 0 1px rgba(255, 190, 225, .35) inset; }
.rg-nowh { display: flex; align-items: center; gap: 10px; }
.rg-nowh .rg-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: radial-gradient(circle at 35% 30%, #fff, #ffc4dc 35%, #ff4f8b 85%); box-shadow: 0 0 18px rgba(255, 60, 120, .7); animation: rgBob 2.4s ease-in-out infinite; }
.rg-nowh span:not(.rg-av) { flex: 1; min-width: 0; }
.rg-nowh b { display: block; font: 700 17px 'Playfair Display', serif; }
.rg-nowh small { color: #ffc9e2; font-size: 12px; }
.rg-nowh em { font-style: normal; display: flex; align-items: center; gap: 5px; font: 700 11px Quicksand, sans-serif; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ffd6e7; }
.rg-nowh em i { width: 7px; height: 7px; border-radius: 50%; background: #c99; }
.rg-nowh em.on i { background: #4dff9a; box-shadow: 0 0 8px #4dff9a; animation: rgAura 1.6s ease-out infinite; }
.rg-nowg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 8px; }
.rg-nowg > div { padding: 9px 11px; border-radius: 16px; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(255, 200, 230, .2) inset; min-width: 0; }
.rg-nowg small { display: block; font: 700 10.5px Quicksand, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #ffb3d4; }
.rg-nowg b { display: block; font: 600 13.5px Quicksand, sans-serif; line-height: 1.3; margin-top: 2px; }
.rg-nowf { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-nowf span { font: 600 11.5px Quicksand, sans-serif; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #ffe0ee; }
.rg-nowb { display: flex; gap: 8px; margin-top: 12px; }
.rg-nowb button { flex: 1; padding: 10px 8px; border-radius: 16px; border: 0; font: 700 13px Quicksand, sans-serif; }
.rg-nowb .rg-boss { background: linear-gradient(135deg, #ffd27a, #ff7aa8); color: #4a1030; box-shadow: 0 6px 16px rgba(255, 110, 150, .4); }
.rg-nowb .rg-ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 0 0 1px rgba(255, 200, 230, .4) inset; }
.rg-moves { margin-top: 12px; padding: 12px; border-radius: 22px; border: 1px solid rgba(232, 180, 205, .55); background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 238, 246, .84)); box-shadow: 0 6px 20px rgba(160, 60, 110, .1); }
.rg-moves > b { display: block; font: 700 15px 'Playfair Display', serif; color: #7a2a4f; margin: 0 2px 6px; }
.rg-mv { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 8px 4px; border: 0; border-top: 1px solid rgba(232, 180, 205, .35); background: none; font: inherit; color: #5b2343; }
.rg-mv:first-of-type { border-top: 0; }
.rg-mv > i { flex: none; font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: #ffe3ef; }
.rg-mv span { flex: 1; font-size: 13.5px; line-height: 1.35; }
.rg-mv small { display: block; color: #a77a94; font-size: 11.5px; margin-top: 1px; }
.rg-outslot { margin-top: 12px; }
.rg-outslot > b { display: block; font: 700 15px 'Playfair Display', serif; color: #7a2a4f; margin: 0 4px 6px; }
.rg-orow { width: 100%; }
.rg-orow > i { background: radial-gradient(circle at 35% 30%, #fff, #c9c3e8 35%, #3a2a6a 85%) !important; }
.rg-lock .rg-in { display: flex; gap: 8px; margin-top: 8px; }
.rg-card.rg-boss { background: linear-gradient(160deg, #fff7ea, #ffe6f0); }

/* ---------- Ruby's door on the home screen ---------- */
.rooms .room.room-ruby { grid-column: 1 / -1; aspect-ratio: auto; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 18px; min-height: 92px; text-align: left;
  --a1: #ffc4dc; --a2: #ff2d6f; --a3: #5a0f2e; --ag: rgba(255, 45, 111, .6);
  background: radial-gradient(120% 140% at 0 0, rgba(255, 90, 150, .35), transparent 55%), linear-gradient(135deg, #2a0f33, #4a1846 55%, #8a2a5f) padding-box, var(--goldg, linear-gradient(135deg, #f6d9a8, #c9963f)) border-box !important;
  color: #fff; box-shadow: 0 18px 34px -14px rgba(90, 20, 60, .6), 0 0 0 1px rgba(255, 190, 225, .3) inset; }
.rooms .room.room-ruby > i { flex: none; background: radial-gradient(circle at 35% 30%, #fff, #ffc4dc 35%, #ff2d6f 85%) !important; box-shadow: 0 0 22px rgba(255, 45, 111, .75) !important; }
.rooms .room.room-ruby .rr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rooms .room.room-ruby b { color: #fff !important; margin: 0; font-size: 23px; }
.rooms .room.room-ruby small { color: #ffc9e2 !important; letter-spacing: .2px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rooms .room.room-ruby .rr-live { flex: none; font-style: normal; display: flex; align-items: center; gap: 5px; font: 700 11px Quicksand, sans-serif; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #ffe0ee; }
.rooms .room.room-ruby .rr-live s { width: 7px; height: 7px; border-radius: 50%; background: #4dff9a; box-shadow: 0 0 8px #4dff9a; animation: rgAura 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .rg-capg, .rg-nowh .rg-av, .rg-drop, .rooms .room.room-ruby .rr-live s { animation: none; } }

/* ---- round 2: rows open right where you are, with a way back to the globe ---- */
.rg-stage { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 64px); }
.rg-li.open, .rg-pl.open, .rg-le.open, .rg-mv.open, .rg-pat.open { background: linear-gradient(180deg, rgba(255, 228, 240, .75), rgba(255, 240, 247, .3)); border-radius: 14px 14px 0 0; }
.rg-xp { margin: 0 0 8px; padding: 10px 12px 12px; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, rgba(255, 240, 247, .95), rgba(255, 250, 252, .95)); border: 1px solid #f6cfe0; border-top: 0;
  box-shadow: 0 8px 18px -12px rgba(190, 60, 120, .45); animation: rgXp .32s ease-out; font-size: 13.5px; color: #5b2343; }
@keyframes rgXp { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rg-xp p { margin: 4px 0 6px; line-height: 1.45; }
.rg-xp .rg-li { padding: 7px 2px; font-size: 13px; }
.rg-xp .rg-xp { margin: 0 0 4px; box-shadow: none; }
.rg-xb { margin: 2px 0 8px; }
.rg-xb > b { display: inline-block; font: 700 12px Quicksand, sans-serif; color: #7a2a4f; background: #fff; border-radius: 999px; padding: 3px 10px; box-shadow: 0 0 0 1.5px var(--bc, #f5c0d6) inset; margin-bottom: 2px; }
.rg-xm { display: block; color: #a77a94; font-size: 11.5px; padding: 2px 4px; }
.rg-xq { color: #925d78; font-style: italic; }
.rg-xt { display: block; color: #6a2347; font-size: 14px; }
.rg-xa { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.rg-xa .rg-mini { margin: 0; }
.rg-see { border: 0; border-radius: 999px; padding: 8px 14px; font: 700 13px Quicksand, sans-serif; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #e0457f, #b0306a 60%, #8e2a8a); box-shadow: 0 6px 14px -6px rgba(176, 48, 106, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.rg-see:active { transform: scale(.97); }
#rgfab { position: fixed; right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); z-index: 30; border: 0; border-radius: 999px; padding: 9px 14px 9px 10px; display: flex; gap: 6px; align-items: center;
  font: 700 13px Quicksand, sans-serif; color: #fff; background: linear-gradient(135deg, #b0306a, #6b1f5a); box-shadow: 0 8px 20px -6px rgba(107, 31, 90, .6), 0 0 0 2px rgba(255, 214, 231, .7);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: .3s; }
#rgfab.on { opacity: 1; transform: none; pointer-events: auto; }
#rgfab i { font-style: normal; font-size: 16px; }
body:not([data-pane="globe"]) #rgfab { display: none; }
.og-n[data-ogx], .og-io[data-ogx], .og-row[data-ogx] { cursor: pointer; }
.og-n.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.og-xp { margin: 0 0 12px; }
.og-io.open, .og-row.open { background: rgba(255, 228, 240, .6); border-radius: 12px 12px 0 0; }
.rg-desk[hidden] { display: none !important; }
.rg-sheet > .rg-orow { margin: 0 0 10px; }
/* a card on the globe always wins: Ruby's caption slides up out of its way */
.rg-cap { transition: top .3s, bottom .3s, opacity .3s; }
.rg-pop:not([hidden]) ~ .rg-cap { bottom: auto; top: 50px; max-width: 80%; }
.rg-pop:not([hidden]) ~ .rg-load { display: none; }
/* ---- round 2: intercom, home watch, tags, scorecard, scout radio */
.rg-ask { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; padding: 13px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #8a1f4f, #c23a72 60%, #ff7aa8); box-shadow: 0 10px 24px rgba(194, 58, 114, .4), 0 0 0 1px rgba(255, 220, 235, .5) inset; animation: rgAskIn .5s ease-out; }
.rg-ask .rg-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: radial-gradient(circle at 35% 30%, #fff, #ffc4dc 35%, #ff4f8b 85%); box-shadow: 0 0 16px rgba(255, 220, 235, .8); animation: rgBob 2.4s ease-in-out infinite; }
.rg-ask > div { flex: 1; min-width: 0; }
.rg-ask small { display: block; font: 700 11px Quicksand, sans-serif; color: #ffd6e7; letter-spacing: .03em; }
.rg-ask b { display: block; font: 600 14.5px/1.35 Quicksand, sans-serif; margin: 3px 0 9px; }
.rg-askb { display: flex; gap: 8px; }
.rg-askb button { flex: 1; border: 0; border-radius: 999px; padding: 9px 10px; font: 700 13px Quicksand, sans-serif; background: #fff; color: #a3245c; box-shadow: 0 4px 12px rgba(90, 10, 40, .25); }
.rg-askb button.rg-ghost { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: 0 0 0 1px rgba(255, 220, 235, .6) inset; }
@keyframes rgAskIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.rg-homew { margin-bottom: 12px; padding: 12px 13px; border-radius: 22px; border: 1px solid rgba(232, 180, 205, .6); background: linear-gradient(160deg, #fffaf3, #ffeef6); box-shadow: 0 6px 18px rgba(160, 60, 110, .1); }
.rg-homew > b { display: block; font: 700 15px 'Playfair Display', serif; color: #7a2a4f; margin-bottom: 4px; }
.rg-homew > small { display: block; color: #9a6a84; font-size: 12.5px; line-height: 1.4; }
.rg-homew.hot { border-color: rgba(255, 120, 160, .8); box-shadow: 0 0 0 2px rgba(255, 140, 180, .25), 0 8px 22px rgba(200, 60, 110, .18); }
.rg-tags { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px; }
.rg-cf, .rg-stt { font-style: normal; display: inline-block; padding: 1px 7px; border-radius: 999px; font: 700 10.5px Quicksand, sans-serif; background: #f3e6ee; color: #7a4a64; white-space: nowrap; }
.rg-cf.confirmed { background: #dff6e8; color: #1f7a47; }
.rg-cf.likely { background: #e6eefc; color: #2f569a; }
.rg-cf.single { background: #f1ecfb; color: #6040a0; }
.rg-cf.rumor { background: #fff1d9; color: #9a5a10; }
.rg-cf.odd { background: #ffe0ea; color: #b0204f; }
.rg-cf.n { background: #fff; color: #9a6a84; box-shadow: 0 0 0 1px #f0d0de inset; }
.rg-stt.resolved { background: #e3f5e9; color: #2a7a4a; }
.rg-stt.ongoing { background: #eef0ff; color: #4a50a0; }
.rg-stt.escalated { background: #ffe1e1; color: #b02020; }
.rg-stt.dropped { background: #eee; color: #888; }
.rg-hl { display: block; padding: 6px 2px; border-top: 1px dashed rgba(230, 190, 210, .8); font: 500 12.5px/1.35 Quicksand, sans-serif; color: #6b3a55; text-decoration: none; }
.rg-hl small { display: block !important; margin: 1px 0 0 !important; color: #a07890; font-size: 11px; }
.rg-cf.home { background: #fff0d6; color: #8a4a10; }
.rg-score, .rg-chat { margin-top: 12px; padding: 12px; border-radius: 22px; border: 1px solid rgba(232, 180, 205, .55); background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 238, 246, .86)); box-shadow: 0 6px 20px rgba(160, 60, 110, .1); }
.rg-score > b, .rg-chat > b { display: block; font: 700 15px 'Playfair Display', serif; color: #7a2a4f; margin: 0 2px 6px; }
.rg-score > small, .rg-chat > small { display: block; color: #9a6a84; font-size: 12.5px; line-height: 1.4; margin: 0 2px; }
.rg-scn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
.rg-scn span { display: grid; justify-items: center; padding: 8px 4px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #f3d3e1 inset; font: 800 17px Quicksand, sans-serif; color: #7a2a4f; }
.rg-scn i { font-style: normal; font-size: 14px; }
.rg-scn small { font: 600 10.5px Quicksand, sans-serif; color: #a07890; }
.rg-chat { background: linear-gradient(160deg, #24102c, #3e1640 70%, #5e1f4f); border-color: rgba(255, 180, 220, .35); }
.rg-chat > b { color: #ffd6e7; }
.rg-chat > small { color: #e8b7cf; }
.rg-chat .rg-li { color: #ffe9f3; border-top-color: rgba(255, 190, 225, .18); }
.rg-chat .rg-li b { color: #fff; }
.rg-chat .rg-li small { color: #e2a9c6; }
.rg-chat .rg-li.open { background: rgba(255, 255, 255, .08); }
.rg-chat .rg-xp { color: #ffe9f3; }
i.rg-sc { background: radial-gradient(circle at 35% 30%, #fff, #9ff3ff 40%, #2bb7d9 90%) !important; box-shadow: 0 0 10px rgba(80, 220, 255, .7) !important; color: #063a4a; font: 800 12px Quicksand, sans-serif !important; }
/* ---- scouts parked on the globe */
.rg-scout { position: relative; transform: translate(-10px, -50%); display: flex; align-items: center; gap: 4px; pointer-events: auto; cursor: pointer; }
.rg-scout i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: radial-gradient(circle at 35% 30%, #fff, #b8f6ff 40%, #2bb7d9 95%); box-shadow: 0 0 10px rgba(90, 225, 255, .85), 0 0 0 1.5px rgba(255, 255, 255, .8); animation: rgScout 2.8s ease-in-out infinite; }
.rg-scout.home i { background: radial-gradient(circle at 35% 30%, #fff, #ffe3b0 40%, #f0a040 95%); box-shadow: 0 0 10px rgba(255, 200, 110, .9), 0 0 0 1.5px rgba(255, 255, 255, .8); }
.rg-scout.hot i { animation-duration: 1.1s; box-shadow: 0 0 16px rgba(255, 120, 170, .95), 0 0 0 2px #fff; }
.rg-scout span { white-space: nowrap; padding: 2px 7px; border-radius: 999px; font: 700 10px Quicksand, sans-serif; color: #eafcff; background: rgba(10, 40, 60, .72); box-shadow: 0 0 0 1px rgba(150, 235, 255, .45) inset; backdrop-filter: blur(4px); }
@keyframes rgScout { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.1); } }
.rg-scr { margin: 6px 0 0; font-size: 13px; line-height: 1.4; }
.rg-scr small { color: #a07890; font-size: 11px; }
/* ---- red alert */
.rg-redbar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 11px 12px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #5a0010, #c1121f 55%, #ff3a3a); box-shadow: 0 0 0 1px rgba(255, 200, 200, .5) inset, 0 0 26px rgba(255, 30, 50, .55); animation: rgRedBar 1.4s ease-in-out infinite; cursor: pointer; }
.rg-redbar > div { flex: 1; min-width: 0; }
.rg-redbar small { display: block; font: 800 11px Quicksand, sans-serif; letter-spacing: .08em; color: #ffd0d0; }
.rg-redbar b { display: block; font: 600 13.5px/1.35 Quicksand, sans-serif; }
.rg-redbar button { flex: none; border: 0; border-radius: 999px; padding: 8px 12px; font: 800 12.5px Quicksand, sans-serif; background: #fff; color: #b0101c; }
.rg-siren { font-size: 24px; animation: rgSiren .6s steps(2) infinite; }
@keyframes rgSiren { 50% { filter: brightness(1.8) drop-shadow(0 0 8px #ff2a2a); transform: scale(1.12); } }
@keyframes rgRedBar { 50% { box-shadow: 0 0 0 1px rgba(255, 220, 220, .7) inset, 0 0 40px rgba(255, 30, 50, .9); } }
.rg-red .rg-stage { box-shadow: 0 0 0 2px rgba(255, 40, 60, .85), 0 0 40px rgba(255, 20, 40, .6) !important; animation: rgRedStage 1.4s ease-in-out infinite; }
.rg-red .rg-glow { background: radial-gradient(circle at 50% 50%, rgba(255, 30, 50, .45), transparent 65%) !important; }
.rg-red .rg-title b { color: #ff3a4a !important; }
@keyframes rgRedStage { 50% { box-shadow: 0 0 0 3px rgba(255, 80, 90, 1), 0 0 60px rgba(255, 20, 40, .85) !important; } }
@media (prefers-reduced-motion: reduce) { .rg-redbar, .rg-siren, .rg-red .rg-stage, .rg-scout i { animation: none !important; } }
/* ---- pulling live feed */
.rg-feed { margin: 10px 0 0; padding: 10px 11px 8px; border-radius: 20px; background: linear-gradient(160deg, #1d0d26, #34123a 70%, #4d1745); box-shadow: 0 0 0 1px rgba(255, 170, 215, .25) inset, 0 8px 22px rgba(60, 10, 50, .3); color: #ffe6f2; }
.rg-fh { display: flex; align-items: center; gap: 8px; }
.rg-fh b { font: 800 12.5px Quicksand, sans-serif; letter-spacing: .04em; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.rg-fdot { width: 8px; height: 8px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 8px #3dff9a; animation: rgFdot 1s ease-in-out infinite; }
@keyframes rgFdot { 50% { opacity: .35; transform: scale(.8); } }
.rg-fc { flex: 1; min-width: 0; font: 600 11px Quicksand, sans-serif; color: #e7b5cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.rg-fc em { font-style: normal; font-weight: 800; color: #fff; display: inline-block; font-variant-numeric: tabular-nums; }
.rg-fc em.tk { animation: rgTick .5s ease-out; }
@keyframes rgTick { from { color: #7dffc0; transform: translateY(-2px); } }
#rgfire { flex: none; border: 0; border-radius: 999px; padding: 4px 8px; font: 700 11px Quicksand, sans-serif; background: rgba(255, 255, 255, .12); color: #ffd6e7; }
#rgfire.on { background: rgba(80, 180, 255, .25); color: #dff2ff; box-shadow: 0 0 0 1px rgba(120, 200, 255, .5) inset; }
.rg-fl { margin-top: 7px; display: grid; gap: 4px; min-height: 30px; }
.rg-fi { display: flex; align-items: baseline; gap: 6px; padding: 5px 9px; border-radius: 12px; background: rgba(255, 255, 255, .06); font: 600 12px/1.3 Quicksand, sans-serif; color: #ffe6f2; text-decoration: none; animation: rgFi .45s ease-out; overflow: hidden; }
.rg-fi b { flex: none; font-weight: 700; color: #fff; white-space: nowrap; max-width: 62%; overflow: hidden; text-overflow: ellipsis; }
.rg-fi em { flex: none; font-style: normal; font-weight: 800; color: #9fe8ff; }
.rg-fi em u { text-decoration: none; color: #7dffc0; }
.rg-fi span { min-width: 0; color: #e7b5cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-fi.nw { background: rgba(125, 255, 192, .12); box-shadow: 0 0 0 1px rgba(125, 255, 192, .35) inset; }
.rg-fi.err em { color: #ffb0b0; }
a.rg-fi:active { background: rgba(255, 255, 255, .14); }
@keyframes rgFi { from { opacity: 0; transform: translateX(-10px); background: rgba(255, 140, 200, .3); } }
.rg-mw { display: block; margin-top: 4px; font: 600 11px Quicksand, sans-serif; color: #b07a96; }
.rg-m a { color: #c2185b; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .rg-fi, .rg-fdot, .rg-fc em.tk { animation: none !important; } }
/* globe button lives at the top now, never over inputs, buttons or Pearl's orb */
#rgfab { top: calc(env(safe-area-inset-top, 0px) + 70px) !important; bottom: auto !important; right: auto !important; left: 50% !important; transform: translate(-50%, -10px) !important; padding: 7px 13px 7px 9px !important; }
#rgfab.on { transform: translate(-50%, 0) !important; }
body.rg-typing #rgfab { display: none !important; }

/* ---------- Globe button docks into Ruby's tab bar (sticky) instead of floating over her text */
#rgfab { display: none !important; }
.rg-tabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 50px); z-index: 12; border-radius: 18px; transition: background .25s, box-shadow .25s; }
.rg-tabs.away { background: linear-gradient(160deg, rgba(58, 10, 32, .92), rgba(110, 18, 52, .9)); box-shadow: 0 10px 24px -10px rgba(60, 0, 20, .6), 0 0 0 1px rgba(233, 190, 98, .55); padding: 5px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rg-tabs .rg-tglobe { display: none; }
.rg-tabs.away .rg-tglobe { display: flex; order: -1; position: sticky; left: 0; z-index: 2; background: linear-gradient(135deg, #e0234e, #8a0b2a) !important; color: #fff !important; border-color: #e9be62 !important; }
body.rg-typing .rg-tabs { position: relative; top: auto; }

/* ---------- Ask Ruby preview card (tap opens the full-screen chat) */
.rg-askc .rg-askprev { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 8px; padding: 10px; border: 1px solid rgba(255, 170, 205, .45); border-radius: 20px; text-align: left; cursor: pointer;
  background: radial-gradient(120% 90% at 100% 0, rgba(224, 35, 78, .35), transparent 60%), linear-gradient(160deg, #2a0a1c, #4a0f2e 65%, #6e1640); box-shadow: inset 0 0 0 1px rgba(233, 190, 98, .35), 0 10px 26px -12px rgba(90, 0, 30, .6); }
.rg-askc .rg-askprev .rg-m { font-size: 13.5px; max-width: 88%; }
.rg-askc .rg-askprev .rg-m.a { background: rgba(255, 255, 255, .95); }
.rg-fakein { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 190, 220, .4); color: #ffd6e7; font: 600 15px Quicksand, sans-serif; }
.rg-fakein em { flex: 1; font-style: normal; opacity: .85; }
.rg-fakein i { font-style: normal; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #ff6f9f, #c93a78); color: #fff; font-size: 14px; box-shadow: 0 0 12px rgba(255, 90, 150, .7); }

/* ---------- Ask Ruby, full screen */
html.rg-cv-on, html.rg-cv-on body { overflow: hidden !important; overscroll-behavior: none; }
.rg-cv { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100dvh; z-index: 2147483000; display: flex; flex-direction: column; opacity: 0; transition: opacity .22s ease;
  background: radial-gradient(90% 50% at 85% -5%, rgba(255, 60, 110, .38), transparent 60%), radial-gradient(80% 45% at 0 105%, rgba(201, 58, 120, .35), transparent 60%), linear-gradient(170deg, #1d0613 0%, #3a0b25 45%, #5a1236 100%);
  color: #ffe9f3; font-family: Quicksand, sans-serif; }
.rg-cv.on { opacity: 1; }
.rg-cv:not(.on) { pointer-events: none; }
.rg-cv[hidden] { display: none; }
.rg-cv::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(1.5px 1.5px at 12% 22%, #ffd88a, transparent 60%), radial-gradient(1.5px 1.5px at 78% 14%, #fff, transparent 60%), radial-gradient(2px 2px at 64% 58%, #ff9fbf, transparent 60%), radial-gradient(1.5px 1.5px at 30% 76%, #ffd88a, transparent 60%), radial-gradient(1.5px 1.5px at 90% 84%, #fff, transparent 60%), radial-gradient(2px 2px at 8% 52%, #ff9fbf, transparent 60%); }
.rg-cvh { position: relative; flex: none; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 10px 6px;
  background: linear-gradient(180deg, rgba(40, 6, 22, .96), rgba(70, 12, 38, .9)); border-bottom: 1px solid rgba(233, 190, 98, .5); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
.rg-cvh::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, #ffd88a, #ff8fb5, #ffd88a, transparent); }
.rg-cvback { flex: none; width: 44px; height: 44px; border: 0; background: none; color: #ffd6e7; font: 400 38px/1 Georgia, serif; padding: 0 0 4px; cursor: pointer; }
.rg-cvav { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: radial-gradient(circle at 35% 30%, #ffb3c4, #e0234e 45%, #7a0a26); box-shadow: 0 0 0 2px #e9be62, 0 0 16px rgba(255, 50, 90, .7); animation: rg-cvglow 3.2s ease-in-out infinite; }
@keyframes rg-cvglow { 50% { box-shadow: 0 0 0 2px #ffd88a, 0 0 26px rgba(255, 80, 120, .95); } }
.rg-cvh b { display: block; font: 700 18px 'Playfair Display', serif; color: #fff; }
.rg-cvh small { display: block; font-size: 12px; color: #f2b8d0; }
.rg-cvh small::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #5df2a0; box-shadow: 0 0 6px #5df2a0; vertical-align: 1px; }
.rg-cvgem { margin-left: auto; width: 34px; height: 34px; background: url(img/lu-ruby.svg) center/contain no-repeat; opacity: .9; }
.rg-cvlist { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 10px; }
.rg-cvlist .rg-m { max-width: 84%; font-size: 15.5px; line-height: 1.45; padding: 10px 13px; border-radius: 20px; flex: none; }
.rg-cvlist .rg-m.a { background: linear-gradient(160deg, #fff, #ffeef5); color: #4a1430; border: 0; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .9); border-bottom-left-radius: 6px; }
.rg-cvlist .rg-m.u { background: linear-gradient(135deg, #ff5d8f, #c2185b 60%, #8a0b2a); color: #fff; box-shadow: 0 6px 18px -6px rgba(255, 60, 110, .65); border-bottom-right-radius: 6px; }
.rg-cvlist .rg-m.late { box-shadow: 0 0 0 1.5px #e9be62, 0 6px 16px -8px rgba(0, 0, 0, .5); }
.rg-cvlist .rg-m a { color: #c2185b; font-weight: 700; }
.rg-cvlist .rg-mw { display: block; margin-top: 5px; font-size: 11.5px; color: #a0567a; }
.rg-cvlist .rg-m.u .rg-mw { color: #ffd6e7; }
.rg-cvin { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 8px); background: linear-gradient(0deg, rgba(40, 6, 22, .98), rgba(60, 10, 34, .94)); border-top: 1px solid rgba(233, 190, 98, .45); }
.rg-cvin textarea { flex: 1; min-width: 0; resize: none; max-height: 120px; border: 1px solid rgba(255, 190, 220, .55); border-radius: 22px; padding: 10px 14px; font: 500 16px/1.35 Quicksand, sans-serif; color: #4a1430; background: #fff8fb; outline: none; }
.rg-cvin textarea:focus { box-shadow: 0 0 0 2px rgba(233, 190, 98, .8), 0 0 18px rgba(255, 90, 150, .55); }
.rg-cvin button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; font-size: 17px; background: linear-gradient(135deg, #ff6f9f, #c2185b 60%, #8a0b2a); box-shadow: 0 0 0 1.5px #e9be62, 0 0 14px rgba(255, 70, 120, .7); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .rg-cvav { animation: none; } .rg-cv { transition: none; } }
body.atblackout .rg-cv { display: none; }
/* no iPhone zoom-jump when typing in Ruby's boxes (iOS zooms any field under 16px) */
.rg-in input { font-size: 16px !important; }
/* Pearl's chat: keep the page behind still while her sheet is open */
html:has(body.pearl-open), body.pearl-open { overflow: hidden; overscroll-behavior: none; }
.pearlsheet .sheet { overscroll-behavior: contain; }
/* scout radio: readable cards in the dark feed, clear purpose, each scout's post */
.rg-chat .rg-xp { background: linear-gradient(180deg, rgba(70, 22, 66, .96), rgba(48, 14, 46, .96)); border-color: rgba(255, 180, 220, .35); color: #ffe9f3; }
.rg-chat .rg-xp p, .rg-chat .rg-xp small { color: #ffe9f3; opacity: 1; }
.rg-chat .rg-xp a { color: #ffb3d1; font-weight: 700; }
.rg-chat > b { color: #ffd6e7; }
.rg-chat > small, .rg-chat .rg-scin { color: #f4c6dc; font-size: 13px; line-height: 1.45; margin-bottom: 8px; }
.rg-scl { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.rg-sct { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px; border-radius: 16px; border: 1px solid rgba(233, 190, 98, .45); background: linear-gradient(150deg, rgba(120, 20, 60, .55), rgba(60, 14, 50, .6)); color: #ffe9f3; cursor: pointer; }
.rg-sct span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rg-sct b { color: #fff; font-size: 14px; }
.rg-sct em { font-style: normal; color: #ffd6e7; font-size: 13px; }
.rg-sct small { color: #f2b8d0; font-size: 12px; }
.rg-sct .rg-scf { color: #ffe08a; }
.rg-sct .rg-scf.q { color: #c99ab4; }
.rg-chat .rg-li { color: #ffe9f3; }
.rg-chat .rg-li small { color: #f2b8d0; }
