/* Community header and menu (community-rooms-ui.js).
   21 Oct 2026 evening rebuild (Eman: "cramped, old, not futuristic, we can't even see the writing"; inspiration: Eden's community):
   Eden's structure in LOWiSPIKE's own look. Dark translucent glass on the galaxy, glowing cyan edges instead of white ones,
   high-contrast type (every text >= WCAG AA 4.5:1, checked by tools/community-hub/probe.cjs), lots of air, no white pills.
   Selectors that colour buttons start with #cmPaneChat[data-spirit-chat] because community-chat.css sets
   `#cmPaneChat[data-spirit-chat] button{color:inherit}`, which beat the old `.rm-tab[aria-selected=true]{color:#141836}` and
   left a white label on a white pill. */
:root{--rm-ink:#f2f8ff;--rm-ink2:#c3d5ec;--rm-glass:rgba(9,18,48,.8);--rm-glass-hi:rgba(14,26,66,.95);--rm-edge:rgba(143,231,255,.34);--rm-glow:rgba(28,247,249,.22);--rm-cyan:#8fe7ff}
#cmPaneChat[data-spirit-chat]>.rm-bar{position:relative;z-index:30;display:flex;flex-direction:column;gap:12px;margin:0 0 12px;padding:2px 2px 0;color:var(--rm-ink)}
.rm-head{display:flex;align-items:center;min-height:52px}
/* keeps clear of the Day/Night switch and the profile picture floating top right (--rm-tr, community-rooms-ui.js fit) */
#cmPaneChat[data-spirit-chat]>.rm-bar .rm-top{padding-right:var(--rm-tr,0px);padding-left:var(--rm-tl,0px)}
#cmPaneChat[data-spirit-chat] .rm-id{appearance:none;display:flex;align-items:center;gap:12px;max-width:100%;min-width:0;min-height:52px;padding:6px 14px 6px 6px;border-radius:22px;cursor:pointer;color:var(--rm-ink);text-align:left;
 background:var(--rm-glass);border:1px solid var(--rm-edge);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 8px 24px rgba(0,0,0,.28),0 0 16px var(--rm-glow);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);transition:border-color .2s,box-shadow .2s}
#cmPaneChat[data-spirit-chat] .rm-id[aria-expanded=true]{border-color:rgba(143,231,255,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 0 1px rgba(143,231,255,.3),0 0 22px rgba(28,247,249,.35)}
.rm-logo{position:relative;flex:none;width:40px;height:40px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#d6fbff 0,#5ef3f6 28%,#1a7fd0 62%,#0a1f5c 100%);box-shadow:0 0 14px rgba(28,247,249,.55),inset 0 0 8px rgba(255,255,255,.35)}
.rm-logo i{position:absolute;inset:-5px;border-radius:50%;border:1.5px solid rgba(143,231,255,.55);transform:rotateX(64deg) rotateZ(-18deg)}
.rm-idt{display:flex;flex-direction:column;gap:3px;min-width:0}
.rm-name{font-size:18px;line-height:1.15;font-weight:700;letter-spacing:-.01em;color:var(--rm-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rm-live{display:flex;align-items:center;gap:6px;min-width:0;font-size:13px;line-height:1.2;font-weight:500;color:var(--rm-ink2);white-space:nowrap}
.rm-sub{overflow:hidden;text-overflow:ellipsis;min-width:0}
/* 25 Oct 2026: "2 here now" opens People at Online right now (community-rooms-ui.js bar click). The tap area reaches down to the
   button's bottom edge and a little to the sides, not up into the name, which still opens the menu. */
.rm-live[data-here]{position:relative;cursor:pointer}
/* the faces and the count are repainted every few seconds; with no pointer events on them the tap always lands on .rm-live itself,
   which is never replaced, so a repaint between finger down and up cannot turn the tap into a menu tap */
.rm-live[data-here] *{pointer-events:none}
.rm-live[data-here]::after{content:'';position:absolute;left:-8px;right:-14px;top:-2px;bottom:-12px}
.rm-faces{display:inline-flex;flex:none}
.rm-faces i{display:grid;place-items:center;width:20px;height:20px;margin-left:-6px;border-radius:50%;font:700 9px/1 inherit;font-family:inherit;font-style:normal;color:#06122c;background:var(--fc,#8fe7ff);border:1.5px solid #0b1636}
.rm-faces i:first-child{margin-left:0}
.rm-dot{flex:none;width:8px;height:8px;border-radius:50%;background:#3ef0a0;box-shadow:0 0 8px rgba(62,240,160,.8)}
.rm-chev{flex:none;width:8px;height:8px;margin:0 2px 4px 2px;border-right:2px solid var(--rm-cyan);border-bottom:2px solid var(--rm-cyan);transform:rotate(45deg);transition:transform .2s}
.rm-id[aria-expanded=true] .rm-chev{transform:rotate(225deg);margin-bottom:-4px}
@media (max-width:359px){.rm-sep,.rm-sep~*{display:none}.rm-faces{display:none}}
/* the four sections: one glass segmented control, full width under the floating buttons */
#cmPaneChat[data-spirit-chat] .rm-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;border-radius:18px;background:var(--rm-glass);border:1px solid var(--rm-edge);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 6px 20px rgba(0,0,0,.25);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%)}
#cmPaneChat[data-spirit-chat] .rm-tab{appearance:none;min-width:0;min-height:40px;padding:0 6px;border:0;border-radius:14px;background:transparent;color:var(--rm-ink2);font:600 14px/1 inherit;font-family:inherit;letter-spacing:.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
#cmPaneChat[data-spirit-chat] .rm-tab[aria-selected=true]{color:#fff;background:linear-gradient(180deg,rgba(47,149,255,.34),rgba(10,132,255,.26));box-shadow:inset 0 0 0 1px rgba(143,231,255,.8),0 0 14px rgba(47,149,255,.34);text-shadow:0 0 10px rgba(143,231,255,.35)}
#cmPaneChat[data-spirit-chat] .rm-tab:focus-visible,#cmPaneChat[data-spirit-chat] .rm-id:focus-visible{outline:2px solid var(--rm-cyan);outline-offset:2px}
@media (max-width:359px){#cmPaneChat[data-spirit-chat] .rm-tab{font-size:12.5px;padding:0 3px}}
@media (min-width:700px){#cmPaneChat[data-spirit-chat] .rm-tabs{max-width:560px}#cmPaneChat[data-spirit-chat] .rm-tab{font-size:15px;min-height:42px}}
/* knock / note banner */
.rm-banner{display:none;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;border-radius:16px;background:var(--rm-glass-hi);color:var(--rm-ink);font-size:14px;line-height:1.35;border:1px solid var(--rm-edge);box-shadow:0 0 14px var(--rm-glow)}
.rm-banner[data-on]{display:flex}.rm-banner span{flex:1 1 160px;overflow-wrap:anywhere}
#cmPaneChat[data-spirit-chat] .rm-banner button{appearance:none;border:0;border-radius:999px;padding:8px 16px;min-height:36px;font:600 14px/1 inherit;font-family:inherit;cursor:pointer}
/* Chat tab: the galaxy game is not drawn at all underneath (its energy loop sees it hidden and stops) */
#cmPaneChat[data-spirit-chat][data-room] #cgGalaxy{display:none}
/* Community menu (Eden's dropdown) */
.rm-menu{position:fixed;inset:0;z-index:2147483001;background:rgba(2,4,14,.32)}
.rm-menu[hidden]{display:none}
.rm-menu-card{position:absolute;top:var(--rm-mt,80px);left:var(--rm-ml,12px);width:min(300px,calc(100vw - 24px));padding:6px;border-radius:20px;color:var(--rm-ink);background:var(--rm-glass-hi);border:1px solid rgba(143,231,255,.42);box-shadow:0 18px 50px rgba(0,0,0,.5),0 0 24px rgba(28,247,249,.22);-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%);transform-origin:top left;animation:rmMenuIn .18s ease-out}
@keyframes rmMenuIn{from{transform:scale(.96) translateY(-4px)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.rm-menu-card{animation:none}.rm-chev,.rm-tab,.rm-id{transition:none}}
.rm-menu-card button{appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:0 14px;border:0;border-radius:14px;background:transparent;color:var(--rm-ink);font:500 15px/1.2 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;text-align:left;cursor:pointer}
.rm-menu-card button:hover,.rm-menu-card button:focus-visible{background:rgba(143,231,255,.12);outline:none;box-shadow:inset 0 0 0 1px rgba(143,231,255,.45)}
.rm-mi{width:24px;text-align:center;font-size:18px}
/* bottom sheet base (the Community welcome sheet, .rm-ob) */
.rm-sheet{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-end;justify-content:center;background:rgba(2,4,14,.55)}
.rm-x{appearance:none;border:1px solid var(--rm-edge);background:rgba(143,231,255,.08);color:var(--rm-ink);width:40px;height:40px;border-radius:50%;font-size:22px;cursor:pointer}
/* Creation + Affiliates tabs. The pane shows only the bar and that page (in a frame); the galaxy and chat are hidden, so they pause. */
#cmPaneChat[data-spirit-chat]>.rm-view{display:none}
#cmPaneChat[data-spirit-chat][data-rm-view]>*:not(.rm-bar):not(.rm-view):not(.rm-chans):not(.rm-rank){display:none!important}
#cmPaneChat[data-spirit-chat][data-rm-view=chans]>.rm-view{display:none!important}
/* 23 Oct, second pass (Eman on the iPad: "Bei Ranking ist auf einmal so ein rechteckiger schwarzer Rand und Ranking selber ist nicht in
   so einer Box ... ich moechte, dass das immer gleich aussieht"): the Ranking (ranking.js) now sits in the same panel as Creation and
   Affiliates, the shared .rm-view box with an .rm-frame panel (same width, edge, glow and radius, right under the tabs). Its list
   scrolls inside that panel like a page in a frame, so the pane never scrolls, the bar stays put and needs no dark box of its own. */
#cmPaneChat[data-spirit-chat] .rm-view>.rm-rank[hidden]{display:none}
#cmPaneChat[data-spirit-chat][data-rm-view=rank]>.rm-view>.rm-rank:not([hidden]){display:block;position:relative;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:6px 12px 28px}
@media (max-width:400px){#cmPaneChat[data-spirit-chat][data-rm-view=rank]>.rm-view>.rm-rank:not([hidden]){padding:4px 6px 24px}}
#cmPaneChat[data-spirit-chat][data-rm-view]>.rm-view{display:flex;flex-direction:column;position:relative;z-index:20;height:calc(100vh - 196px);height:calc(100dvh - 196px);min-height:380px;margin:0 2px}
.rm-frame{flex:1;width:100%;min-height:0;border:1px solid rgba(143,231,255,.4);border-radius:22px;background:#050b1e;color-scheme:dark;box-shadow:0 0 18px rgba(28,247,249,.16)}
.rm-frame[hidden]{display:none}
/* Channel list (Eden's channels) in the Chat tab: big glowing icon circles, name, last message with its sender, time, unread badge */
#cmPaneChat[data-spirit-chat]>.rm-chans{display:none}
#cmPaneChat[data-spirit-chat][data-rm-view=chans]>.rm-chans:not([hidden]){display:block;position:relative;z-index:20;margin:0 2px;padding-bottom:calc(var(--sab,0px) + 120px)}
.rm-ch-h{margin:6px 6px 12px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rm-ink2)}
.rm-ch-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
#cmPaneChat[data-spirit-chat] .rm-ch{appearance:none;display:flex;align-items:center;gap:14px;width:100%;min-height:76px;padding:12px 14px;border-radius:22px;text-align:left;color:var(--rm-ink);cursor:pointer;
 background:var(--rm-glass);border:1px solid rgba(143,231,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 6px 18px rgba(0,0,0,.22);-webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%);transition:border-color .2s,box-shadow .2s}
#cmPaneChat[data-spirit-chat] .rm-ch:hover,#cmPaneChat[data-spirit-chat] .rm-ch:focus-visible{border-color:rgba(143,231,255,.7);box-shadow:0 0 18px rgba(28,247,249,.25);outline:none}
#cmPaneChat[data-spirit-chat] .rm-ch:disabled{cursor:default;opacity:1}
.rm-ch-ic{flex:none;display:grid;place-items:center;width:50px;height:50px;border-radius:50%;font-size:24px;background:radial-gradient(circle at 35% 30%,rgba(143,231,255,.28),rgba(20,50,120,.55) 70%);box-shadow:inset 0 0 0 1px rgba(143,231,255,.4),0 0 14px rgba(28,247,249,.22)}
.rm-ch-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.rm-ch-top{display:flex;align-items:baseline;gap:8px}.rm-ch-top b{flex:1;min-width:0;font-size:16px;font-weight:650;letter-spacing:-.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rm-ch-top time{flex:none;font-size:12px;color:var(--rm-ink2)}
.rm-ch-p{font-size:14px;line-height:1.35;color:var(--rm-ink2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.rm-ch-n{flex:none;min-width:24px;height:24px;padding:0 7px;border-radius:12px;display:grid;place-items:center;font-size:12px;font-weight:700;color:#04202a;background:#7cf0f2;box-shadow:0 0 10px rgba(28,247,249,.55)}
/* in a thread: a floating pill with the way back to the channels */
.rm-crumb{display:flex;align-items:center;gap:10px;align-self:flex-start;max-width:100%;padding:4px 14px 4px 4px;border-radius:999px;background:var(--rm-glass);border:1px solid var(--rm-edge);box-shadow:0 0 12px var(--rm-glow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.rm-crumb[hidden]{display:none}
#cmPaneChat[data-spirit-chat] .rm-back{appearance:none;border:0;min-height:36px;padding:0 12px;border-radius:999px;background:rgba(143,231,255,.14);color:var(--rm-ink);font:600 14px/1 inherit;font-family:inherit;cursor:pointer}
.rm-crumb-t{font-size:15px;font-weight:650;color:var(--rm-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Welcome sheet (phase C, Eden's onboarding): 5 steps, progress bar, "1 of 5", dark glass with glowing edges */
.rm-ob .rm-ob-card-wrap{width:min(560px,100%);max-height:min(88vh,760px);display:flex;flex-direction:column;border-radius:28px 28px 0 0;background:var(--rm-glass-hi);color:var(--rm-ink);border:1px solid rgba(143,231,255,.42);border-bottom:0;box-shadow:0 -16px 50px rgba(0,0,0,.55),0 0 30px rgba(28,247,249,.2);-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif}
.rm-ob-top{display:flex;align-items:center;gap:12px;padding:16px 18px 6px}
.rm-ob-bar{flex:1;height:6px;border-radius:3px;background:rgba(143,231,255,.16);overflow:hidden}.rm-ob-bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#1cf7f9,#4d8bff);box-shadow:0 0 10px rgba(28,247,249,.6);transition:width .3s}
.rm-ob-step{font-size:13px;font-weight:600;color:var(--rm-ink2);white-space:nowrap}
.rm-ob-body{flex:1;min-height:0;overflow:auto;padding:10px 22px 8px;-webkit-overflow-scrolling:touch}
.rm-ob-hero{display:flex;justify-content:center;margin:8px 0 14px}.rm-ob-hero .rm-logo{width:64px;height:64px}
.rm-ob-h{margin:4px 0 10px;font-size:24px;line-height:1.2;font-weight:750;letter-spacing:-.015em;color:var(--rm-ink)}
.rm-ob-h3{margin:18px 0 10px;font-size:15px;font-weight:650;color:var(--rm-ink)}
.rm-ob-p{margin:0 0 6px;font-size:16px;line-height:1.5;color:var(--rm-ink2)}
.rm-ob-know{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.rm-ob-know li{padding:12px 14px;border-radius:16px;background:rgba(143,231,255,.07);border:1px solid rgba(143,231,255,.18);font-size:15px;line-height:1.4}
.rm-ob-rules{margin:0;padding:0;list-style:none;counter-reset:r;display:flex;flex-direction:column;gap:10px}
.rm-ob-rules li{counter-increment:r;display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.45}
.rm-ob-rules li::before{content:counter(r);flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-weight:700;font-size:14px;color:#04202a;background:#7cf0f2;box-shadow:0 0 10px rgba(28,247,249,.45)}
.rm-chips{display:flex;flex-wrap:wrap;gap:8px}
.rm-ob .rm-chipq{appearance:none;min-height:42px;padding:0 16px;border-radius:999px;border:1px solid rgba(143,231,255,.3);background:rgba(143,231,255,.07);color:var(--rm-ink);font:500 15px/1 inherit;font-family:inherit;cursor:pointer}
.rm-ob .rm-chipq[aria-pressed=true]{color:#fff;background:linear-gradient(180deg,rgba(28,247,249,.3),rgba(48,120,255,.24));border-color:rgba(143,231,255,.9);box-shadow:0 0 12px rgba(28,247,249,.35)}
.rm-ob-me{display:flex;align-items:center;gap:12px;margin:4px 0 10px}.rm-ob-me div{display:flex;flex-direction:column;gap:2px;min-width:0}.rm-ob-me small{color:var(--rm-ink2);font-size:13px}
.rm-ob-av{flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;font-weight:700;color:#04202a;background:radial-gradient(circle at 35% 30%,#d6fbff,#5ef3f6 45%,#1a7fd0);box-shadow:0 0 14px rgba(28,247,249,.45)}
.rm-fld{display:flex;flex-direction:column;gap:6px;margin:12px 0 0;font-size:13px;font-weight:600;color:var(--rm-ink2)}
.rm-fld input,.rm-fld textarea{appearance:none;width:100%;box-sizing:border-box;padding:12px 14px;border-radius:14px;border:1px solid var(--rm-edge);background:rgba(3,8,24,.75);color:var(--rm-ink);font:16px/1.35 inherit;font-family:inherit;resize:vertical}
.rm-fld input:focus,.rm-fld textarea:focus{outline:none;border-color:rgba(143,231,255,.85);box-shadow:0 0 0 3px rgba(28,247,249,.18)}
.rm-ob-handles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}.rm-ob-handles .rm-fld{margin-top:0}
.rm-ob-note{margin:12px 0 0;font-size:13px;color:var(--rm-ink2)}
.rm-ob-cards{display:flex;flex-direction:column;gap:10px}
.rm-ob .rm-ob-card{appearance:none;display:flex;align-items:center;gap:14px;width:100%;min-height:72px;padding:12px 14px;border-radius:20px;border:1px solid rgba(143,231,255,.24);background:rgba(143,231,255,.06);color:var(--rm-ink);text-align:left;cursor:pointer;font-family:inherit}
.rm-ob .rm-ob-card span:last-child{display:flex;flex-direction:column;gap:3px}.rm-ob .rm-ob-card b{font-size:16px}.rm-ob .rm-ob-card small{font-size:14px;color:var(--rm-ink2)}
.rm-ob .rm-ob-hot{border-color:rgba(143,231,255,.85);box-shadow:0 0 16px rgba(28,247,249,.3)}
.rm-ob-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px calc(16px + var(--sab,0px));border-top:1px solid rgba(143,231,255,.14)}
.rm-ob .rm-ob-go{appearance:none;min-height:50px;min-width:150px;padding:0 24px;border:0;border-radius:999px;font:700 16px/1 inherit;font-family:inherit;color:#04202a;background:linear-gradient(180deg,#9ff8fa,#4fe3f0);box-shadow:0 0 18px rgba(28,247,249,.45);cursor:pointer}
.rm-ob .rm-ob-sec{appearance:none;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--rm-edge);background:rgba(143,231,255,.08);color:var(--rm-ink);font:600 15px/1 inherit;font-family:inherit;cursor:pointer}
.rm-ob-body>.rm-ob-sec{margin:0 0 4px}
.rm-ob .rm-ob-go:focus-visible,.rm-ob .rm-ob-sec:focus-visible,.rm-ob .rm-chipq:focus-visible,.rm-ob .rm-ob-card:focus-visible{outline:2px solid var(--rm-cyan);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.rm-ob-bar i{transition:none}}

/* ===== Phase E, Eden rebuild in LOWiSPIKE's galaxy (21 Oct 2026). Eman: "rebuild the design for the whole Community, I don't like
   how it looks at all". Reference: Eden's Plan screen and room (segmented pill, small pill label, one huge headline, muted line,
   ONE rounded card with icon tiles and thin dividers, one big primary button, faint dotted grid, round floating buttons).
   LOWiSPIKE instead of white: dark-blue galaxy with glowing rings, dark glass with glowing cyan edges (never white borders),
   cyan-to-blue brand gradient for the one primary action, every text >= WCAG AA. Spacious: one clear thing per view. */
:root{--rm-grad:linear-gradient(135deg,#8ff8f9 0%,#46c8ff 48%,#5b8cff 100%);--rm-stage:radial-gradient(ellipse 130% 60% at 50% 0%,#0f2d6b 0%,#09193f 48%,#040b1f 100%)}
/* header: Eden's floating pill (logo, name, live line) on the left; the Day/Night switch and picture keep their own spot on the right */
#cmPaneChat[data-spirit-chat]>.rm-bar{gap:14px;margin:0 0 16px;padding:4px 2px 0}
#cmPaneChat[data-spirit-chat] .rm-id{border-radius:999px;padding:5px 18px 5px 5px;min-height:54px;gap:12px}
#cmPaneChat[data-spirit-chat] .rm-name{font-size:17px;font-weight:750;letter-spacing:-.015em}
#cmPaneChat[data-spirit-chat] .rm-live{font-size:12.5px}
/* the sections: Eden's segmented pill. One glowing pill slides under the open section (--rm-i from community-rooms-ui.js paint). */
#cmPaneChat[data-spirit-chat] .rm-tabs{position:relative;isolation:isolate;border-radius:999px;padding:4px;gap:4px}
#cmPaneChat[data-spirit-chat] .rm-tabs::before{content:'';position:absolute;z-index:-1;top:4px;bottom:4px;left:4px;width:calc((100% - (var(--rm-n,4) + 1) * 4px)/var(--rm-n,4));border-radius:999px;
 background:linear-gradient(180deg,rgba(47,149,255,.34),rgba(10,132,255,.26));box-shadow:inset 0 0 0 1px rgba(143,231,255,.8),0 0 16px rgba(47,149,255,.36);
 transform:translateX(calc(var(--rm-i,0) * (100% + 4px)));transition:transform .32s cubic-bezier(.2,.8,.2,1)}
#cmPaneChat[data-spirit-chat] .rm-tabs .rm-tab{border-radius:999px;min-height:42px;background:transparent}
#cmPaneChat[data-spirit-chat] .rm-tabs .rm-tab[aria-selected=true]{background:transparent;box-shadow:none}
@media (prefers-reduced-motion:reduce){#cmPaneChat[data-spirit-chat] .rm-tabs::before{transition:none}}
/* 23 Oct: five tabs (Ranking joined): the bar follows the tab count (community-rooms-ui.js sets --rm-n) and the labels get a bit smaller on phones */
#cmPaneChat[data-spirit-chat] .rm-tabs{grid-template-columns:repeat(var(--rm-n,4),minmax(0,1fr))}
@media (max-width:699px){#cmPaneChat[data-spirit-chat] .rm-tabs .rm-tab{font-size:13px;padding:0 3px}}
@media (max-width:359px){#cmPaneChat[data-spirit-chat] .rm-tabs .rm-tab{font-size:11.5px;padding:0 2px}}
/* Chat section = the Community landing (Eden's Plan): dark galaxy stage, faint star dots, glowing rings behind the headline */
.rm-chans{position:relative;isolation:isolate}
#cmPaneChat[data-spirit-chat][data-rm-view=chans]>.rm-chans:not([hidden]){padding:0 4px calc(var(--sab,0px) + 120px)}
.rm-chans::before{content:'';position:absolute;z-index:-2;inset:-6px -2px 0;border-radius:32px;pointer-events:none;
 background:radial-gradient(rgba(190,236,255,.16) .9px,transparent 1.4px) 0 0/22px 22px,var(--rm-stage);border:1px solid rgba(143,231,255,.12)}
.rm-l-hero{position:relative;text-align:center;padding:40px 10px 30px}
.rm-l-hero::before,.rm-l-hero::after{content:'';position:absolute;z-index:-1;left:50%;top:50%;border-radius:50%;pointer-events:none;transform:translate(-50%,-56%)}
.rm-l-hero::before{width:230px;height:230px;border:1px solid rgba(143,231,255,.2);box-shadow:0 0 44px rgba(28,247,249,.12),inset 0 0 36px rgba(28,247,249,.08)}
.rm-l-hero::after{width:330px;height:330px;border:1px solid rgba(143,231,255,.09);box-shadow:0 0 60px rgba(48,120,255,.08)}
.rm-l-pill{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:8px 15px;border-radius:999px;font-size:13px;line-height:1;font-weight:600;color:var(--rm-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 background:var(--rm-glass);border:1px solid rgba(143,231,255,.4);box-shadow:0 0 14px rgba(28,247,249,.18);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.rm-l-dot{flex:none;width:7px;height:7px;border-radius:50%;background:#3ef0a0;box-shadow:0 0 8px rgba(62,240,160,.85)}
.rm-l-h{margin:20px 0 12px;font-size:clamp(42px,13vw,60px);line-height:.96;font-weight:800;letter-spacing:-.04em;font-stretch:condensed;color:#fff;text-shadow:0 0 30px rgba(28,247,249,.28)}
.rm-l-sub{margin:0 auto;max-width:30ch;font-size:15px;line-height:1.5;color:var(--rm-ink2)}
.rm-chans .rm-ch-h{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* ONE card: the three channels as rows with icon tiles and thin dividers (no box per row) */
.rm-chans .rm-ch-list{gap:0;overflow:hidden;border-radius:26px;background:var(--rm-glass);border:1px solid var(--rm-edge);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 14px 34px rgba(0,0,0,.32),0 0 24px rgba(28,247,249,.14);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%)}
.rm-chans .rm-ch-list li{position:relative}
.rm-chans .rm-ch-list li+li::before{content:'';position:absolute;top:0;left:78px;right:18px;height:1px;background:rgba(143,231,255,.15)}
#cmPaneChat[data-spirit-chat] .rm-ch-list .rm-ch{min-height:76px;padding:14px 18px 14px 16px;gap:16px;border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#cmPaneChat[data-spirit-chat] .rm-ch-list .rm-ch:hover,#cmPaneChat[data-spirit-chat] .rm-ch-list .rm-ch:focus-visible{background:rgba(143,231,255,.08);box-shadow:inset 0 0 0 1px rgba(143,231,255,.4)}
.rm-chans .rm-ch-ic{width:46px;height:46px;border-radius:15px;font-size:22px;background:linear-gradient(145deg,rgba(28,247,249,.34),rgba(48,120,255,.24));box-shadow:inset 0 0 0 1px rgba(143,231,255,.5),0 0 16px rgba(28,247,249,.22)}
.rm-chans .rm-ch-ic[data-ic=replies]{background:linear-gradient(145deg,rgba(170,128,255,.38),rgba(80,90,255,.24));box-shadow:inset 0 0 0 1px rgba(196,170,255,.55),0 0 16px rgba(150,110,255,.24)}
.rm-chans .rm-ch-top b{font-size:16px;font-weight:650}
.rm-chans .rm-ch-p{font-size:13.5px;-webkit-line-clamp:1}
.rm-ch-go{flex:none;width:8px;height:8px;margin-right:4px;border-right:2px solid var(--rm-ink2);border-bottom:2px solid var(--rm-ink2);transform:rotate(-45deg);opacity:.8}
/* the one primary action: big rounded brand button */
#cmPaneChat[data-spirit-chat] .rm-l-go{appearance:none;display:block;width:100%;min-height:58px;margin:22px 0 0;padding:0 20px;border:0;border-radius:22px;cursor:pointer;
 font:750 17px/1 inherit;font-family:inherit;letter-spacing:-.01em;color:#03122e;background:var(--rm-grad);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 12px 30px rgba(48,140,255,.34),0 0 26px rgba(28,247,249,.34);transition:transform .15s,box-shadow .2s}
#cmPaneChat[data-spirit-chat] .rm-l-go:active{transform:scale(.985)}
#cmPaneChat[data-spirit-chat] .rm-l-go:focus-visible{outline:3px solid var(--rm-cyan);outline-offset:3px}
@media (min-width:700px){.rm-chans>.rm-l-hero,.rm-chans>.rm-ch-list,.rm-chans>.rm-l-go{max-width:560px;margin-left:auto;margin-right:auto}.rm-l-hero{padding-top:64px}}
/* in the galaxy chat: Eden's round floating back button and a centred name pill */
#cmPaneChat[data-spirit-chat] .rm-crumb{align-self:stretch;gap:10px;padding:0;background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#cmPaneChat[data-spirit-chat] .rm-back{flex:none;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;background:var(--rm-glass);border:1px solid var(--rm-edge);box-shadow:0 0 14px var(--rm-glow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.rm-back i{display:block;width:10px;height:10px;margin-left:4px;border-left:2.5px solid var(--rm-ink);border-bottom:2.5px solid var(--rm-ink);transform:rotate(45deg)}
#cmPaneChat[data-spirit-chat] .rm-crumb-t{padding:12px 20px;border-radius:999px;background:var(--rm-glass);border:1px solid var(--rm-edge);box-shadow:0 0 14px var(--rm-glow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);font-size:15px}
/* Creation + Affiliates sit in one rounded glass frame with a soft glowing edge */
#cmPaneChat[data-spirit-chat] .rm-frame{border-radius:28px;border-color:rgba(143,231,255,.3);box-shadow:0 0 22px rgba(28,247,249,.14)}
/* menu */
.rm-menu-card{border-radius:24px;padding:8px}
.rm-menu-card button{min-height:50px;border-radius:16px}
.rm-x{border-radius:50%}
/* the app's tab headings rule (html.lg #app #main .tab h2) would shrink the landing headline to 20px: this one wins */
#app #main #cmPaneChat h2.rm-l-h{margin:20px 0 12px;font-size:clamp(42px,13vw,60px);line-height:.96;font-weight:800;letter-spacing:-.04em;color:#fff;text-transform:none}
#app #main #cmPaneChat p.rm-l-sub{margin:0 auto;font-size:15px;line-height:1.5;color:var(--rm-ink2)}
/* tighter on short screens (Safari with its bars, iPhone SE): the card and the button come up sooner */
.rm-l-hero{padding:18px 8px 24px}
#app #main #cmPaneChat h2.rm-l-h{margin:16px 0 10px}
#cmPaneChat[data-spirit-chat] .rm-ch-list .rm-ch{min-height:68px;padding-top:11px;padding-bottom:11px}
@media (max-height:600px){#app #main #cmPaneChat h2.rm-l-h{font-size:clamp(36px,11vw,44px)}.rm-l-hero{padding-top:10px}}
@media (min-width:700px){.rm-l-hero{padding-top:56px}}
/* the landing is taller than a short screen: it scrolls inside the pane (the pane clips everything else), the top bar floats */
#cmPaneChat[data-spirit-chat][data-rm-view=chans]{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
#cmPaneChat[data-spirit-chat][data-rm-view=chans]>.rm-bar{position:sticky;top:0;z-index:5}
#cmPaneChat[data-spirit-chat][data-rm-view=chans]>.rm-bar{padding-bottom:12px;margin-bottom:4px;background:linear-gradient(180deg,rgba(4,10,28,.97) 0%,rgba(4,10,28,.9) 78%,rgba(4,10,28,0) 100%)}
/* Create and Affiliates: the frame fits the pane on short screens (it scrolls inside itself), and the bar stays pinned so the tabs never slide under the profile picture */
#cmPaneChat[data-spirit-chat][data-rm-view]>.rm-bar{position:sticky;top:0}
@media (max-height:600px){#cmPaneChat[data-spirit-chat][data-rm-view]>.rm-view{min-height:0}}
/* Oct 22 (item 33 sweep): the "Back to Home" X (section-nav.css, fixed top-left since the no-menu-bar release) sat on top of the
   Community name button's logo, and in a chat room on top of the room's own back button, so tapping back there left Community.
   The name button now starts right of the X, and inside a chat room the X steps aside: the room's back arrow goes to the channel
   list, where the X is back. */
html.sec-open #cmPaneChat[data-spirit-chat]>.rm-bar .rm-head{padding-left:calc(52px + env(safe-area-inset-left,0px))}
/* item 38: the Home back button stays in its place on Chat too (it used to step aside in the room) */
/* 23 Oct (E-man on the live Ranking: "when scrolling down we can still see ... 'Chat Room Affiliate Creation Ranking Community' in the
   background. That's weird."): on the scrolling pages (Ranking and the Room list) the pinned top bar sat at z-index 5 while the page
   under it sits at 20, so the podium and the Your place card slid over the Community pill and the tabs. The bar now stays above what
   scrolls (30, as on Chat, Creation and Affiliates) and is one frosted glass sheet in the app's dark blue, solid down to its lower
   edge, with a soft shadow instead of a see-through fade. Nothing reads through it. */
#cmPaneChat[data-spirit-chat][data-rm-view=chans]>.rm-bar{z-index:30;isolation:isolate;
 background:rgba(4,10,28,.95);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);
 box-shadow:0 1px 0 rgba(143,231,255,.16),0 12px 18px -10px rgba(0,0,0,.6);border-radius:0 0 22px 22px}
/* the strip above the bar (the pane's own top padding) is covered too, so nothing peeks out over the Community pill */
#cmPaneChat[data-spirit-chat][data-rm-view=chans]>.rm-bar::before{content:'';position:absolute;z-index:-1;left:0;right:0;top:-40px;height:40px;background:rgba(4,10,28,.95)}
/* 24 Oct 2026 (Emmanuel: "Let's put the fyp here. And fuse Erstellen & Affiliates zusammen"):
   Studio = Affiliates + Creation in one tab. Its switch is a small copy of the tab pill (same glass, same sliding glow), right above
   the page, centred and only as wide as its two words. */
#cmPaneChat[data-spirit-chat] .rm-view>.rm-sw[hidden]{display:none}
#cmPaneChat[data-spirit-chat] .rm-view>.rm-sw{position:relative;isolation:isolate;flex:none;align-self:center;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:min(320px,100%);box-sizing:border-box;margin:0 0 8px;padding:3px;border-radius:999px;background:var(--rm-glass,rgba(16,26,58,.62));border:1px solid var(--rm-edge,rgba(143,231,255,.22));box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 4px 14px rgba(0,0,0,.22);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%)}
#cmPaneChat[data-spirit-chat] .rm-view>.rm-sw::before{content:'';position:absolute;z-index:-1;top:3px;bottom:3px;left:3px;width:calc((100% - 10px)/2);border-radius:999px;background:linear-gradient(180deg,rgba(47,149,255,.3),rgba(10,132,255,.22));box-shadow:inset 0 0 0 1px rgba(143,231,255,.7),0 0 12px rgba(47,149,255,.3);transform:translateX(calc(var(--rm-sw-i,0) * (100% + 4px)));transition:transform .28s cubic-bezier(.2,.8,.2,1)}
#cmPaneChat[data-spirit-chat] .rm-view>.rm-sw>.rm-swb{appearance:none;min-width:0;min-height:36px;padding:0 8px;border:0;border-radius:999px;background:transparent;box-shadow:none;color:var(--rm-ink2,rgba(235,235,245,.7));font:600 13.5px/1 inherit;font-family:inherit;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .2s}
#cmPaneChat[data-spirit-chat] .rm-view>.rm-sw>.rm-swb[aria-selected=true]{color:#fff}
#cmPaneChat[data-spirit-chat] .rm-view>.rm-sw>.rm-swb:focus-visible{outline:2px solid var(--rm-cyan,#8fe7ff);outline-offset:2px}
@media (max-width:359px){#cmPaneChat[data-spirit-chat] .rm-view>.rm-sw>.rm-swb{font-size:12.5px;padding:0 4px}}
@media (prefers-reduced-motion:reduce){#cmPaneChat[data-spirit-chat] .rm-view>.rm-sw::before{transition:none}}
/* Oct 25 2026: spring.js drives --rm-i / --rm-sw-i (community-rooms-ui.js pillTo), so the CSS timer steps aside */
#cmPaneChat[data-spirit-chat] .rm-tabs.sp-var::before,#cmPaneChat[data-spirit-chat] .rm-view>.rm-sw.sp-var::before{transition:none}
/* For You: the feed in the same glowing panel as Ranking, Creation and Affiliates. Each post fills the panel and snaps; the overlay
   offsets match the old Cook window (the panel is not under the notch or the menu bar). */
#cmPaneChat[data-spirit-chat] .rm-view>.rm-fy[hidden]{display:none}
#cmPaneChat[data-spirit-chat][data-rm-view=fy]>.rm-view>.rm-fy:not([hidden]){display:block;position:relative;overflow:hidden;padding:0;contain:layout paint}
#cmPaneChat .rm-fy>#cmPaneFeed{display:block!important;position:absolute;inset:0;width:100%;height:100%;min-width:0;margin:0;padding:0;overflow:hidden;opacity:1;visibility:visible;transform:none}
#cmPaneChat .rm-fy #cmFeed{height:100%;max-height:none}
#cmPaneChat .rm-fy .fy-feed{height:100%;max-height:none}
#cmPaneChat .rm-fy .fy-slide{height:100%;min-height:0}
#cmPaneChat .rm-fy .fyv-fab{top:12px;left:12px;right:auto}
#cmPaneChat .rm-fy .fy-rail,#cmPaneChat .rm-fy .fy-meta{bottom:16px}
/* Nov 7 2026 (For You like TikTok): with the round back button at the bottom (bottom-close.js), the words and Save end above it */
html.lw-bx-on #cmPaneChat .rm-fy .fy-rail,html.lw-bx-on #cmPaneChat .rm-fy .fy-meta{bottom:64px}
#cmPaneChat .rm-fy .fy-endin{padding-bottom:0}
#cmPaneChat .rm-fy .fy-rail{gap:10px;right:6px}
#cmPaneChat .rm-fy .fy-feed{touch-action:pan-y;overscroll-behavior:contain}
#cmPaneChat .rm-fy .fy-slide{width:100%;margin:0;border-radius:0;outline:0;box-shadow:none}

/* 5 Nov 2026 (owner: "the community thingy up there makes everything crammed ... nuke it ... chat, circle, ranking, for you and then
   profile"): no Community heading. The tabs are the top row, and a round profile button in the same glass sits at its end and opens
   the one settings page (community-rooms-ui.js .rm-pf). Who is online lives behind Ranking's Members button, not above the Chat. */
#cmPaneChat[data-spirit-chat]>.rm-bar .rm-top{display:flex;align-items:center;gap:8px;min-width:0}
#cmPaneChat[data-spirit-chat]>.rm-bar .rm-top>.rm-tabs{flex:1 1 auto;min-width:0}
#cmPaneChat[data-spirit-chat] .rm-pf{appearance:none;flex:none;display:grid;place-items:center;width:52px;height:52px;padding:0;border-radius:50%;cursor:pointer;color:var(--rm-ink);
 background:var(--rm-glass);border:1px solid var(--rm-edge);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 6px 20px rgba(0,0,0,.25);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);transition:border-color .2s,box-shadow .2s}
#cmPaneChat[data-spirit-chat] .rm-pf svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#cmPaneChat[data-spirit-chat] .rm-pf[aria-expanded=true]{border-color:rgba(143,231,255,.75)}
#cmPaneChat[data-spirit-chat] .rm-pf:focus-visible{outline:2px solid var(--rm-cyan);outline-offset:2px}
#cmPaneChat[data-spirit-chat] .rm-pf:active{transform:scale(.94)}
@media (max-width:399px){#cmPaneChat[data-spirit-chat]>.rm-bar .rm-top{gap:6px}#cmPaneChat[data-spirit-chat] .rm-pf{width:48px;height:48px}#cmPaneChat[data-spirit-chat] .rm-tabs .rm-tab{font-size:12.5px;padding:0 2px}}
@media (max-width:359px){#cmPaneChat[data-spirit-chat] .rm-pf{width:44px;height:44px}#cmPaneChat[data-spirit-chat] .rm-tabs .rm-tab{font-size:11px;padding:0 1px}}
@media (prefers-reduced-motion:reduce){#cmPaneChat[data-spirit-chat] .rm-pf{transition:none}#cmPaneChat[data-spirit-chat] .rm-pf:active{transform:none}}
/* 5 Nov 2026 (owner: "remove the old chat button and 'Write to the galaxy' from the Billiard page, the main Chat has it"): on the
   Circle (billiard table) page the To-everyone row with its Chat button and the message field are hidden; they stay in the Chat tab
   (html.cr-room) and in the games' own screens are untouched. A tap on a companion still opens their card. */
html.csp-circle:not(.cr-room):not(.csp-game) #cmPaneChat[data-spirit-chat]:not([data-room]) #cgTo,
html.csp-circle:not(.cr-room):not(.csp-game) #cmPaneChat[data-spirit-chat]:not([data-room]) .cm-compose{display:none!important}
