/* REVOZA rooms (owner brief 2026-10-08): the six destinations behind the lobby. Needs v6.css (reset, fonts) and lobby.css (tokens on
   body.lb, the rail, the brand pill, the red action, focus rings). Prefix: rm-. Behaviour: rooms.js.
   One shell, six compositions: every room shares the rail, the top line, the title face, ivory panels, dark drawers and the controls
   below, and then places them its own way (see "the rooms" further down). Layout is physical (left/right) on purpose: the rooms are
   spatial pictures, as in the owner's references; the text inside every control is RTL.
   Desktop: the room fills the window and the page scrolls when the window is too short. Phones: picture band, then the controls.
   Motion: transform and opacity only, 160-320ms. Moving between rooms cross-fades (view transitions) where the browser supports it. */

/* only the lobby and its rooms opt in (v6.css is shared with the live site and stays untouched); a page outside simply opens as usual */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-old(root) { animation: 160ms ease-in both rm-out; }
::view-transition-new(root) { animation: 280ms cubic-bezier(.16, 1, .3, 1) both rm-inn; }
@keyframes rm-out { to { opacity: 0; } }
@keyframes rm-inn { from { opacity: 0; transform: scale(1.015); } }

body.rm-body { --line: #C9C2B2; --ink: #14161B; --ink2: #3C404A; --ink3: #5A5F6B; --card: #FFFDF8; }
.rm svg, .rm-dock svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rm :focus-visible, .rm-dock :focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px rgba(225, 29, 46, .85); border-radius: 6px; }
.rm-ivory :focus-visible { outline-color: var(--ink); }
.lb-rail a[aria-current=page] { color: #fff; box-shadow: inset 3px 0 0 var(--red); background: rgba(255, 255, 255, .05); }

/* ---------- the environment ---------- */
.rm-scene { position: fixed; z-index: -1; inset: 0 0 0 var(--rail); overflow: hidden; background: var(--coal); }
.rm-plate { position: absolute; inset: -1%; width: 102%; height: 102%; max-width: none; object-fit: cover; object-position: var(--px, 50%) var(--py, 50%); }
.rm-shade { position: absolute; inset: 0; pointer-events: none; }
.rm-marks { position: absolute; inset: 0; pointer-events: none; }
.rm-marks > * { pointer-events: auto; }

/* ---------- shell ---------- */
.rm { position: relative; z-index: 1; isolation: isolate; pointer-events: none; direction: ltr; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; min-height: 100dvh; padding: 1rem 1.4rem 1.2rem calc(var(--rail) + 1.6rem); color: #fff; }
/* the picture sits under the room's controls and its markers stay clickable between them */
.rm > * { pointer-events: auto; }
.rm-stage, .rm-low, .rm-title, .rm-ask { pointer-events: none; }
.rm-stage > *, .rm-low > *, .rm-ask > * { pointer-events: auto; }
.rm-title, .rm-stage > .rm-title, .rm-ask > .rm-title { pointer-events: none; }
.rm-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; direction: ltr; min-height: 44px; }
.rm-crumbs { display: flex; align-items: center; gap: 1rem; direction: ltr; }
.rm-back { display: inline-flex; align-items: center; gap: .6rem; direction: rtl; min-height: 44px; padding: 0 1rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: 6px; background: rgba(10, 11, 14, .6); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color 160ms ease-out, background-color 160ms ease-out; }
.rm-back svg { width: 20px; height: 20px; transition: transform 200ms var(--out); }
@media (hover: hover) { .rm-back:hover { border-color: #fff; background: rgba(10, 11, 14, .85); } .rm-back:hover svg { transform: translateX(-3px); } }
.rm-trail { font-size: .72rem; font-weight: 700; letter-spacing: .3em; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); white-space: nowrap; }
.rm-trail b { font-weight: 800; }
.rm .lb-brand { position: static; }
.rm-title { display: grid; gap: .5rem; justify-items: start; direction: ltr; text-align: left; pointer-events: none; }
.rm-title h1 { margin: 0; font-family: 'Lobby Serif', 'Bodoni MT', 'Didot', Georgia, serif; font-weight: 400; font-size: clamp(2.6rem, 1rem + 4.3vw, 5.4rem); line-height: .9; color: var(--ivory); text-shadow: 0 6px 40px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .65); }
.rm-title p { direction: rtl; margin: 0; font-size: clamp(1.05rem, .9rem + .6vw, 1.5rem); font-weight: 600; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .95); }

/* ---------- surfaces ---------- */
.rm-ivory, .rm-dark, .rm-find, .rm-none { direction: rtl; }
.rm-console, .rm-ribbon { direction: ltr; }
.rm-console > *, .rm-ribbon > * { direction: rtl; }
[data-load]:empty { display: none; }
/* a legend on a padded panel would sit on its edge: float it back inside */
.rm-maps > legend, .rm-style > legend, .rm-os > legend { float: right; width: 100%; margin-bottom: .2rem; }
.rm-maps > legend + *, .rm-style > legend + *, .rm-os > legend + * { clear: both; }
.rm-ivory { border-radius: 14px; background: var(--ivory); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .5); }
.rm-dark { border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(12, 13, 17, .9); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 40px 90px -30px #000; }
.rm-k { display: flex; align-items: center; gap: .55rem; font-size: .84rem; font-weight: 800; }
.rm-k svg { width: 20px; height: 20px; flex: none; }
.rm-hint { font-size: .8rem; line-height: 1.5; color: var(--ink3); }
.rm-dark .rm-hint { color: var(--t2); }

/* ---------- controls ---------- */
.rm-seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.rm-seg label { position: relative; flex: 1 1 0; min-width: max-content; }
.rm-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rm-seg span { display: grid; place-items: center; align-content: center; gap: .1rem; min-height: 46px; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 7px; background: var(--card); font-size: .92rem; font-weight: 700; text-align: center; transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, box-shadow 200ms ease-out; }
.rm-seg span small { font-size: .72rem; font-weight: 600; color: var(--ink3); }
.rm-seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 0 0 2px var(--red); }
.rm-seg input:checked + span small { color: #D9DCE3; }
.rm-seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.rm-seg input:active + span { transform: scale(.98); }
@media (hover: hover) { .rm-seg input:not(:checked):hover + span { border-color: var(--ink); } }
.rm-dark .rm-seg span { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); color: #fff; }
.rm-dark .rm-seg input:checked + span { border-color: var(--red-2); background: rgba(120, 8, 18, .9); box-shadow: 0 0 24px rgba(225, 29, 46, .5); }
.rm-field { display: grid; gap: .35rem; min-width: 0; }
.rm-field > label, .rm-field > .rm-l, fieldset.rm-field > legend { padding: 0; font-size: .84rem; font-weight: 800; }
.rm-field input[type=text], .rm-field input[type=search], .rm-field select, .rm-field textarea { width: 100%; min-height: 46px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: 1rem; }
.rm-field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.rm-field input::placeholder, .rm-field textarea::placeholder { color: #7B808C; }
.rm-dark .rm-field input[type=text], .rm-dark .rm-field select, .rm-dark .rm-field textarea { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .05); color: #fff; }
.rm-dark .rm-field select option { color: #14161B; }
.rm-dark .rm-field textarea::placeholder, .rm-dark .rm-field input::placeholder { color: #9AA0AD; }
.rm-field [aria-invalid=true] { border-color: #C0182A; box-shadow: 0 0 0 1px #C0182A; }
.rm-err { font-size: .82rem; font-weight: 700; color: #B01020; }
.rm-dark .rm-err { color: #FF8C96; }
.rm-count { justify-self: end; direction: ltr; font-size: .76rem; color: var(--ink3); font-variant-numeric: tabular-nums; }
.rm-dark .rm-count { color: var(--t2); }
.rm-cta { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.rm-cta[aria-disabled=true] { background: #8B8F99; box-shadow: none; }
.rm-free { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .86rem; font-weight: 700; color: var(--ink2); text-align: center; }
.rm-dark .rm-free, .rm-free--on-dark { color: #fff; }
.rm-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; transition: border-color 160ms ease-out, background-color 160ms ease-out; }
.rm-ghost svg { width: 20px; height: 20px; }
.rm-dark .rm-ghost { border-color: rgba(255, 255, 255, .3); }
@media (hover: hover) { .rm-ghost:hover { border-color: currentColor; } }
.rm-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(10, 11, 14, .72); color: #fff; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color 160ms ease-out, background-color 160ms ease-out; }
.rm-chip[aria-pressed=true] { border-color: var(--red-2); background: rgba(120, 8, 18, .92); box-shadow: 0 0 22px rgba(225, 29, 46, .55); }
@media (hover: hover) { .rm-chip:hover { border-color: #fff; } }
.rm-sum { display: grid; gap: .45rem; margin: 0; }
.rm-sum div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px solid rgba(20, 22, 27, .14); font-size: .92rem; }
.rm-sum dt { color: var(--ink3); font-weight: 600; white-space: nowrap; }
.rm-sum dd { margin: 0; font-weight: 800; text-align: left; overflow-wrap: anywhere; }
.rm-dark .rm-sum div { border-color: rgba(255, 255, 255, .14); }
.rm-dark .rm-sum dt { color: var(--t2); }
.rm-state { display: grid; gap: .6rem; justify-items: start; padding: .4rem 0; font-size: .92rem; font-weight: 600; }
.rm-skel { display: block; height: 46px; border-radius: 7px; background: rgba(20, 22, 27, .1); animation: lb-pulse 1.3s ease-in-out infinite alternate; }
.rm-dark .rm-skel { background: rgba(255, 255, 255, .1); }
.rm-pks { display: grid; gap: .5rem; }
.rm-pk { position: relative; display: block; }
.rm-pk input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rm-pk > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; align-items: baseline; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 9px; background: var(--card); transition: border-color 160ms ease-out, box-shadow 200ms ease-out, background-color 160ms ease-out; }
.rm-pk b { font-size: 1.05rem; font-weight: 900; }
.rm-pk em { font-style: normal; font-weight: 900; font-size: 1.05rem; white-space: nowrap; }
.rm-pk em small { font-size: .74rem; font-weight: 600; color: var(--ink3); }
.rm-pk i { grid-column: 1 / -1; font-style: normal; font-size: .84rem; font-weight: 700; direction: rtl; color: var(--ink2); }
.rm-pk u { grid-column: 1 / -1; text-decoration: none; font-size: .8rem; color: var(--ink3); }
.rm-pk input:checked + span { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 2px var(--red); }
.rm-pk input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
@media (hover: hover) { .rm-pk input:not(:checked):hover + span { border-color: var(--ink); } }

/* markers that sit on a place in the picture (rooms.js keeps them on their place whatever the window) */
.rm-mark { position: absolute; left: 0; top: 0; display: inline-flex; align-items: stretch; direction: ltr; min-height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .55); border-radius: 3px; background: rgba(10, 11, 14, .86); color: #fff; font: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) translate(-50%, -50%); transition: border-color 160ms ease-out, background-color 160ms ease-out, box-shadow 200ms ease-out, opacity 200ms ease-out; }
.rm-mark b { display: grid; place-items: center; padding: 0 1rem; font-weight: 700; font-size: .98rem; letter-spacing: .1em; }
.rm-mark svg { align-self: stretch; width: 42px; height: auto; padding: 0 11px; border-left: 1px solid rgba(255, 255, 255, .28); }
.rm-mark small { display: grid; place-items: center; padding: 0 .7rem; border-left: 1px solid rgba(255, 255, 255, .28); direction: rtl; font-size: .74rem; font-weight: 700; color: #FFB3BA; }
.rm-mark[aria-pressed=true], .rm-mark[aria-current=true] { border-color: var(--red-2); background: rgba(120, 8, 18, .92); box-shadow: 0 0 0 1px var(--red-2), 0 0 34px rgba(225, 29, 46, .7); }
.rm-mark.is-out { opacity: .28; }
.rm-mark:active { background: rgba(40, 42, 50, .95); }
@media (hover: hover) { .rm-mark:hover { border-color: #fff; } }
html:not(.v6-js) .rm-marks { display: none; }

/* phones: bottom navigation */
.rm-dock { display: none; }

/* =========================== the rooms =========================== */

/* ---- 1. World Directory: four gates across the hall, search above them, the chosen game on a ribbon below ---- */
.rm--worlds .rm-shade { background: linear-gradient(180deg, rgba(10, 11, 14, .78) 0%, rgba(10, 11, 14, 0) 30%), linear-gradient(0deg, rgba(10, 11, 14, .86) 0%, rgba(10, 11, 14, 0) 30%), radial-gradient(36rem 22rem at 12% 14%, rgba(10, 11, 14, .7), rgba(10, 11, 14, 0) 70%); }
.rm--worlds .rm-stage { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); align-items: start; gap: 2rem; }
.rm--worlds .rm-title h1 { font-size: clamp(2.6rem, 1rem + 3.6vw, 4.6rem); }
.rm--worlds .rm-find { display: grid; gap: .7rem; justify-self: center; width: min(100%, 36rem); margin-right: 8rem; }
.rm--worlds .rm-filters, .rm--worlds .rm-results { justify-content: center; }
.rm-search { position: relative; }
.rm-search input { width: 100%; min-height: 48px; padding: 0 3rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: rgba(10, 11, 14, .8); color: #fff; font-size: 1rem; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rm-search input::placeholder { color: #B9BEC9; }
.rm-search svg { position: absolute; right: 1rem; top: 50%; width: 20px; height: 20px; margin-top: -10px; pointer-events: none; }
.rm-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.rm-results { display: flex; flex-wrap: wrap; gap: .4rem; }
.rm-results[hidden] { display: none; }
.rm-results .rm-chip small { margin-inline-start: .5rem; font-size: .72rem; color: #FFB3BA; }
.rm-none { display: grid; gap: .6rem; justify-items: start; padding: .9rem 1rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(10, 11, 14, .85); font-weight: 600; }
.rm-ribbon { display: grid; grid-template-columns: 11rem minmax(0, 15rem) minmax(0, 1fr) auto auto; align-items: center; gap: 1.4rem; padding: .7rem 1.2rem .7rem .7rem; }
.rm-ribbon img { width: 100%; height: 5rem; border-radius: 8px; object-fit: cover; }
.rm-ribbon h2 { margin: 0; direction: ltr; text-align: left; font-family: 'Lobby Serif', Georgia, serif; font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.3rem); line-height: 1; }
.rm-ribbon h2 + p { margin-top: .3rem; font-weight: 700; color: var(--ink2); text-align: left; }
.rm-ribbon__desc { padding-left: 1.4rem; border-left: 1px solid rgba(20, 22, 27, .2); font-size: .95rem; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.rm-ribbon__desc b { display: block; margin-top: .2rem; color: var(--ink); }
.rm-ribbon .lb-cta { min-width: 15rem; min-height: 54px; font-size: 1.15rem; }
.rm-ribbon .rm-free { padding-left: 1.2rem; border-left: 1px solid rgba(20, 22, 27, .2); min-height: 3rem; white-space: nowrap; }

/* ---- 2. Minecraft Workshop: the world on the bench at the left, the inspector as a tall ivory column at the right ---- */
.rm--minecraft .rm-shade { background: linear-gradient(90deg, rgba(10, 11, 14, .5) 0%, rgba(10, 11, 14, 0) 34%), linear-gradient(0deg, rgba(10, 11, 14, .7) 0%, rgba(10, 11, 14, 0) 26%), linear-gradient(180deg, rgba(10, 11, 14, .55) 0%, rgba(10, 11, 14, 0) 20%); }
.rm--minecraft { grid-template-columns: minmax(0, 1fr) minmax(20rem, 25.5rem); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 1.6rem; }
.rm--minecraft .rm-top { grid-column: 1 / -1; }
.rm--minecraft .rm-title { align-self: start; }
.rm--minecraft .rm-insp { grid-column: 2; grid-row: 2 / 4; align-self: start; max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: .8rem; padding: 1.2rem 1.3rem; min-height: 0; }
.rm-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.rm-step { flex: 1; }
.rm-insp h2 { margin: 0; direction: ltr; text-align: right; font-family: 'Lobby Serif', Georgia, serif; font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.5rem); line-height: .95; }
.rm-insp h2 + p { margin-top: .4rem; font-size: .95rem; font-weight: 600; color: var(--ink2); }
.rm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; direction: rtl; }
.rm-steps button { display: grid; gap: .1rem; justify-items: start; min-height: 48px; padding: .35rem .7rem; border: 1px solid transparent; border-radius: 7px; background: rgba(20, 22, 27, .06); color: var(--ink3); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; text-align: start; transition: background-color 160ms ease-out, color 160ms ease-out; }
.rm-steps button i { font-style: normal; font-size: .78rem; font-variant-numeric: tabular-nums; }
.rm-steps button[aria-current=step] { border-color: var(--red); background: #fff; color: var(--red-d); box-shadow: 0 0 0 1px var(--red); }
.rm-steps button.is-done i::after { content: ' ✓'; }
.rm-step { display: grid; gap: .9rem; align-content: start; min-height: 0; overflow-y: auto; padding: .1rem; }
.rm-step[hidden] { display: none; }
.rm-step__nav { display: grid; grid-template-columns: auto 1fr; gap: .5rem; align-items: center; margin-top: auto; }
.rm-step__nav > :only-child { grid-column: 1 / -1; }
.rm-next { min-height: 52px; font-size: 1.1rem; }
.rm--minecraft .rm-style { grid-column: 1; align-self: end; justify-self: start; display: grid; gap: .5rem; padding: .8rem; max-width: 44rem; }
.rm--minecraft .rm-style .rm-seg span { min-width: 9.5rem; min-height: 56px; }

/* ---- 3. Counter-Strike Operations: map choice at the left, title at the upper right, one console along the bottom ---- */
.rm--cs2 .rm-shade { background: linear-gradient(270deg, rgba(10, 11, 14, .6) 0%, rgba(10, 11, 14, 0) 40%), linear-gradient(0deg, rgba(10, 11, 14, .8) 0%, rgba(10, 11, 14, 0) 30%), linear-gradient(180deg, rgba(10, 11, 14, .5) 0%, rgba(10, 11, 14, 0) 18%); }
.rm--cs2 .rm-stage { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); align-items: start; gap: 2rem; }
.rm--cs2 .rm-maps { display: grid; gap: .55rem; padding: .9rem; direction: rtl; }
.rm-maps .rm-seg { display: grid; gap: .45rem; }
.rm-maps .rm-seg span { justify-items: start; min-height: 58px; padding: .4rem .9rem; direction: ltr; font-size: 1.02rem; background: linear-gradient(120deg, #E9E2D2, #FFFDF8); }
.rm-maps .rm-seg span small { direction: rtl; }
.rm--cs2 .rm-title { justify-self: end; justify-items: end; text-align: right; }
.rm-console { display: grid; align-items: end; gap: 1rem 1.4rem; padding: 1rem 1.2rem; direction: rtl; }
.rm--cs2 .rm-console { grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(15.5rem, 17rem); }
.rm-console__go { display: grid; gap: .45rem; }
.rm-console .lb-cta { min-height: 54px; font-size: 1.05rem; padding: 0 1rem 0 2.8rem; white-space: nowrap; }
.rm-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; padding-top: .7rem; border-top: 1px solid rgba(20, 22, 27, .16); font-size: .88rem; color: var(--ink2); }
.rm-line b { color: var(--ink); }

/* ---- 4. FiveM City Studio: markers over the skyline, a compact ribbon in the middle, a quiet drawer at the lower right ---- */
.rm--fivem .rm-shade { background: linear-gradient(90deg, rgba(10, 11, 14, .62) 0%, rgba(10, 11, 14, 0) 42%), linear-gradient(0deg, rgba(10, 11, 14, .82) 0%, rgba(10, 11, 14, 0) 32%), linear-gradient(180deg, rgba(10, 11, 14, .45) 0%, rgba(10, 11, 14, 0) 16%); }
.rm--fivem .rm-low { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem); align-items: end; gap: 1.2rem; }
.rm--fivem .rm-console { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(14rem, 16rem); justify-self: center; width: min(100%, 60rem); }
.rm-drawer { display: grid; gap: .8rem; padding: 1.1rem 1.2rem; direction: rtl; }
.rm-drawer h2 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.rm-planned { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .7rem; border: 1px solid var(--red-2); border-radius: 999px; font-size: .78rem; font-weight: 800; color: #FFB3BA; }

/* ---- 5. VPS Core: everything on the axis of the chamber: title above the machine, one wide console below it ---- */
.rm--vps .rm-shade { background: radial-gradient(40rem 18rem at 50% 16%, rgba(10, 11, 14, .66), rgba(10, 11, 14, 0) 72%), linear-gradient(0deg, rgba(10, 11, 14, .86) 0%, rgba(10, 11, 14, 0) 36%), linear-gradient(180deg, rgba(10, 11, 14, .5) 0%, rgba(10, 11, 14, 0) 16%); }
.rm--vps .rm-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.rm--vps .rm-title { justify-self: center; justify-items: center; text-align: center; padding-left: 9rem; }
.rm-way { display: grid; gap: 0; margin: 4.4rem 0 0; padding: 0; direction: rtl; }
.rm-way li { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 4.4rem; font-weight: 700; color: var(--t2); text-shadow: 0 1px 10px #000; }
.rm-way li::before { content: ''; flex: none; width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; background: var(--coal); }
.rm-way li + li::after { content: ''; position: absolute; right: 7px; top: -1.9rem; width: 1px; height: 3.2rem; background: rgba(255, 255, 255, .5); }
.rm-way li.is-on { color: #fff; }
.rm-way li.is-on::before { border-color: var(--red-2); background: var(--red); box-shadow: 0 0 16px rgba(225, 29, 46, .9); }
.rm--vps .rm-console { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.05fr); align-items: start; }
.rm-res { display: grid; gap: .5rem; padding-right: 1.2rem; border-right: 1px solid rgba(20, 22, 27, .16); }
.rm-res__h { display: flex; align-items: center; gap: .7rem; direction: ltr; justify-content: flex-end; }
.rm-res__h svg { width: 34px; height: 34px; }
.rm-res__h b { font-size: 1.15rem; font-weight: 900; }
.rm-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; direction: ltr; padding: .6rem .4rem .3rem; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.rm-track::before { content: ''; position: absolute; left: 16.66%; right: 16.66%; top: 1.52rem; height: 1px; background: #8B8F99; }
.rm-track label { position: relative; display: grid; justify-items: center; gap: .5rem; min-height: 4.2rem; cursor: pointer; }
.rm-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rm-track i { position: relative; width: 15px; height: 15px; margin-top: .5rem; border: 2px solid #8B8F99; border-radius: 50%; background: var(--card); transition: transform 200ms var(--out), border-color 160ms ease-out, background-color 160ms ease-out; }
.rm-track span { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink3); transition: color 160ms ease-out; }
.rm-track input:checked ~ i { border-color: var(--red); background: var(--red); transform: scale(1.25); box-shadow: 0 0 0 4px rgba(225, 29, 46, .18); }
.rm-track input:checked ~ span { color: var(--ink); }
.rm-track input:focus-visible ~ i { outline: 2px solid var(--ink); outline-offset: 3px; }
.rm-os { display: grid; gap: .5rem; }
.rm-os .rm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.rm-os .rm-seg span { direction: ltr; min-height: 44px; }
.rm--vps .rm-foot { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem) auto; align-items: center; gap: 1.2rem; padding-top: .8rem; border-top: 1px solid rgba(20, 22, 27, .16); }
.rm--vps .rm-foot .lb-cta { min-height: 54px; font-size: 1.15rem; }

/* ---- 6. Support Concierge: the question at the left over the desk, the composer on the dark wall at the right ---- */
.rm--support .rm-shade { background: linear-gradient(90deg, rgba(10, 11, 14, .62) 0%, rgba(10, 11, 14, .1) 46%, rgba(10, 11, 14, 0) 60%), linear-gradient(0deg, rgba(10, 11, 14, .5) 0%, rgba(10, 11, 14, 0) 24%), linear-gradient(180deg, rgba(10, 11, 14, .45) 0%, rgba(10, 11, 14, 0) 16%); }
.rm--support { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr) minmax(19rem, 23rem); grid-template-rows: auto minmax(0, 1fr); column-gap: 1.6rem; }
.rm--support .rm-top { grid-column: 1 / -1; }
.rm--support .rm-ask { grid-column: 1; align-self: center; display: grid; gap: 1.2rem; padding-bottom: 14vh; }
.rm--support .rm-search input { min-height: 54px; border: 0; background: var(--ivory); color: var(--ink); font-size: 1.05rem; box-shadow: 0 20px 50px -20px #000; }
.rm--support .rm-search input::placeholder { color: var(--ink3); }
.rm--support .rm-search svg { color: var(--ink); }
.rm-topics { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; direction: rtl; }
.rm-topics a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: #fff; font-weight: 700; text-decoration: none; text-shadow: 0 1px 10px #000; }
.rm-topics svg { width: 20px; height: 20px; transition: transform 200ms var(--out); }
@media (hover: hover) { .rm-topics a:hover { text-decoration: underline; text-underline-offset: 5px; } .rm-topics a:hover svg { transform: translateX(-4px); } }
.rm-guides { display: grid; gap: .35rem; margin: 0; padding: .6rem; direction: rtl; max-height: 17rem; overflow-y: auto; }
.rm-guides[hidden] { display: none; }
.rm-guides a { display: grid; gap: .1rem; min-height: 48px; padding: .5rem .8rem; border-radius: 8px; color: #fff; text-decoration: none; transition: background-color 160ms ease-out; }
.rm-guides a b { font-weight: 800; }
.rm-guides a span { font-size: .84rem; color: var(--t2); }
@media (hover: hover) { .rm-guides a:hover { background: rgba(255, 255, 255, .08); } }
.rm-guides p { padding: .6rem .8rem; font-weight: 600; }
.rm--support .rm-compose { grid-column: 3; align-self: start; max-height: 100%; display: grid; align-content: start; gap: .9rem; padding: 1.4rem 1.3rem; border: 0; border-radius: 4px; background: rgba(12, 13, 17, .72); box-shadow: none; overflow-y: auto; }
.rm-compose h2 { margin: 0 0 .3rem; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 900; }
.rm-compose .lb-cta { min-height: 54px; font-size: 1.1rem; }
.rm-or { display: flex; align-items: center; gap: .8rem; font-size: .8rem; color: var(--t2); }
.rm-or::before, .rm-or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .2); }
.rm-two { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

/* ---------- short or narrow desktop windows: keep everything reachable, let the page scroll ---------- */
@media (min-width: 900px) and (max-width: 1279.98px) {
  .rm--worlds .rm-find { margin-right: 0; margin-top: 0; }
  .rm-ribbon { grid-template-columns: 8rem minmax(0, 1fr) auto; }
  .rm-ribbon__desc { display: none; }
  .rm-ribbon .rm-free { grid-column: 1 / -1; border: 0; padding: 0; min-height: 0; justify-content: flex-start; }
  .rm--cs2 .rm-console { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm--cs2 .rm-console__go { grid-column: 1 / -1; }
  .rm--vps .rm-console { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-res { border: 0; padding: 0; }
  .rm--vps .rm-foot { grid-template-columns: 1fr; }
  .rm--vps .rm-title { padding-left: 0; }
  .rm--support { grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem); }
  .rm--support .rm-compose { grid-column: 2; }
  .rm--fivem .rm-low { grid-template-columns: 1fr; }
  .rm--fivem .rm-console { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm--fivem .rm-console__go { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (max-height: 759.98px) {
  .rm-title h1 { font-size: clamp(2.2rem, 1rem + 3.2vw, 3.6rem); }
  .rm-way { margin-top: 1rem; } .rm-way li { min-height: 3rem; } .rm-way li + li::after { top: -1.2rem; height: 2rem; }
  .rm--support .rm-ask { padding-bottom: 2vh; }
}

/* ---------- phones and small tablets: a picture band, then the room's controls in reading order ---------- */
@media (max-width: 899.98px) {
  .rm { display: block; min-height: 0; padding: 0 0 calc(9rem + env(safe-area-inset-bottom)); }
  .rm--minecraft .rm-insp, .rm--support .rm-compose { max-height: none; overflow: visible; }
  .rm > * + * { margin-top: .9rem; }
  .rm-scene { position: relative; z-index: 0; inset: auto; height: clamp(13rem, 38svh, 21rem); margin: 0; }
  .rm-shade, .rm--worlds .rm-shade, .rm--minecraft .rm-shade, .rm--cs2 .rm-shade, .rm--fivem .rm-shade, .rm--vps .rm-shade, .rm--support .rm-shade { background: linear-gradient(0deg, var(--coal) 0%, rgba(10, 11, 14, .15) 50%, rgba(10, 11, 14, .5) 100%); }
  .rm-marks { display: none; }
  .rm-top { position: absolute; z-index: 2; top: .6rem; left: .8rem; right: .8rem; margin: 0; }
  .rm-trail { display: none; }
  .rm .lb-brand { display: none; }
  .rm-title, .rm--cs2 .rm-title, .rm--vps .rm-title { position: relative; z-index: 2; justify-self: start; justify-items: start; text-align: left; margin: -5.6rem 1rem 0; padding: 0; }
  .rm-title h1 { font-size: clamp(2rem, 9.6vw, 3.2rem); }
  .rm-title h1 br { display: none; }
  .rm-title p { font-size: 1.02rem; }
  .rm-stage, .rm--worlds .rm-stage, .rm--cs2 .rm-stage, .rm--vps .rm-stage, .rm--fivem .rm-low { display: block; }
  .rm-stage > * + *, .rm--fivem .rm-low > * + * { margin-top: .9rem; }
  .rm--worlds .rm-find { margin: .9rem 1rem 0; }
  .rm-filters, .rm-results { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
  .rm-filters::-webkit-scrollbar, .rm-results::-webkit-scrollbar { display: none; }
  .rm-chip { flex: none; min-height: 44px; }
  .rm-ivory, .rm-dark { margin-inline: .8rem; }
  .rm-dark { -webkit-backdrop-filter: none; backdrop-filter: none; }   /* a filter would trap the fixed action button inside the panel */
  .rm-ribbon { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .8rem; padding: .8rem; }
  .rm-ribbon img { height: 4.4rem; }
  .rm-ribbon__desc, .rm-ribbon .lb-cta, .rm-ribbon .rm-free { grid-column: 1 / -1; border: 0; padding-left: 0; min-height: 0; white-space: normal; }
  .rm-ribbon .lb-cta { min-height: 54px; }
  .rm--minecraft .rm-insp { margin-top: .9rem; }
  .rm-step { overflow: visible; }
  .rm--minecraft .rm-style .rm-seg span { min-width: 0; }
  .rm--cs2 .rm-maps .rm-seg { grid-template-columns: repeat(2, 1fr); }
  .rm--cs2 .rm-console, .rm--fivem .rm-console, .rm--vps .rm-console, .rm--vps .rm-foot { grid-template-columns: 1fr; width: auto; }
  .rm-res { border: 0; padding: 0; }
  .rm-way { display: none; }
  .rm--support .rm-ask { margin: .9rem 1rem 0; padding: 0; }
  .rm--support .rm-compose { border-radius: 14px; overflow: visible; }
  .rm-guides { margin-inline: 0; max-height: none; }
  .rm-dock { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; min-height: calc(3.6rem + env(safe-area-inset-bottom)); padding: 0 .2rem env(safe-area-inset-bottom); border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(10, 11, 14, .96); }
  .rm-dock a { flex: 1 1 0; display: grid; justify-items: center; align-content: center; gap: .15rem; min-height: 3.6rem; color: var(--t2); font-size: .72rem; font-weight: 700; text-decoration: none; }
  .rm-dock a[aria-current=page] { color: #fff; box-shadow: inset 0 3px 0 var(--red); }
  .rm-dock svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .rm *, .rm-dock * { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
