/* The playable ClickGUI on natureclient.store. Inside .panel one CSS pixel is one layout
   unit of the game's PanelScreen, so every number below is the client's own; clickgui.js
   scales the whole panel to fit. Colours arrive as CSS variables from the palette. */

@font-face { font-family: "NC Gui"; src: url("/assets/fonts/gui.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NC Gui"; src: url("/assets/fonts/gui-semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

.demo {
  --accent: #3dd68c; --accent-bright: #79e3b0;
  --panel: #181a1e; --sidebar: #181a1e; --card: #212328; --card-hover: #282b30; --card-active: #212a25;
  --input: #131417; --line: rgba(255, 255, 255, .11); --line-hover: rgba(255, 255, 255, .2);
  --ink: #eef0f3; --ink2: #b3b8c0; --ink3: #7c828b; --track: #131417; --popover: rgba(28, 30, 34, .99);
}

.demo-wrap { padding: 0 0 8px; }
.demo-stage {
  position: relative;
  display: flex; justify-content: center;
  border-radius: 18px;
  border: 3px solid #0f2f20;
  box-shadow: 8px 8px 0 #0f2f20;
  background: #0b140f url("/assets/demo-bg.jpg") center/cover no-repeat;
  overflow: hidden;
}
.demo-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(0, 0, 0, .14), rgba(6, 14, 9, .5));
}
.demo-fit { position: relative; z-index: 1; flex: none; }

/* ---------- the panel ---------- */
.panel {
  position: absolute; transform-origin: 0 0;
  border-radius: 15px; background: var(--panel); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 14px 40px rgba(0, 0, 0, .5);
  overflow: hidden; user-select: none; -webkit-user-select: none;
  font-family: "NC Gui", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: opacity .2s ease, transform .2s ease;
}
.panel * { box-sizing: border-box; }
.panel.closed { opacity: 0; pointer-events: none; }
.panel > *, .rail > *, .sheet > *, .mod > *, .pop-head > * { position: absolute; }

/* MC draws a TTF font of size N with ascent+descent = N; Inter's ascent is .8 of that, so
   these sizes and line heights put the baseline exactly where the game puts it. */
.t  { font-size: 8.26px; line-height: 10px; font-weight: 400; white-space: nowrap; }
.b  { font-weight: 600; }
.ts { font-size: 7.44px; line-height: 9px; font-weight: 400; white-space: nowrap; }
.desc { font-size: 6px; line-height: 9px; color: var(--ink2); }

.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; display: block; }
.ic.accent { color: var(--accent); }
.ic.bright { color: var(--accent-bright); }

/* Header */
.logo { display: block; }
.hdr-title { color: var(--ink); }
.hdr-line, .rail-line { background: var(--line); }
.hdr-close {
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px;
  background: transparent; color: var(--ink3); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.hdr-close:hover { background: var(--card-hover); color: var(--ink); }
.search {
  display: block; border-radius: 6px; background: var(--input);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink3); cursor: text;
  transition: box-shadow .2s, color .2s;
}
.search > * { position: absolute; }
.search.focus, .search:focus-within { box-shadow: inset 0 0 0 1px var(--accent-55); color: var(--accent-bright); }
.search input {
  left: 21px; right: 6px; top: 4px; height: 10px; padding: 0; margin: 0; border: 0;
  background: transparent; color: var(--ink); outline: none; caret-color: var(--accent-bright);
  font-family: inherit;
}
.search input::placeholder { color: var(--ink3); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.pill { border-radius: 7px; background: var(--card-hover); color: var(--ink2); padding: 2px 7px 0; }

/* Rail */
.rail { background: var(--sidebar); }
.cap { color: var(--ink3); letter-spacing: 0; }
.rail-mark {
  top: 0; border-radius: 6px; background: var(--accent-12); box-shadow: inset 0 0 0 1px var(--accent-10);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
.rail-mark::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; border-radius: 1px; background: var(--accent);
}
.panel.mini .rail-mark::before { display: none; }
.rrow {
  padding: 0; margin: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  color: var(--ink3); font-family: inherit; text-align: left;
  transition: background-color .2s, color .2s;
}
.rrow > * { position: absolute; transition: transform .2s, color .2s; }
.rrow .lbl { color: var(--ink2); }
.rrow .cnt { color: var(--ink3); }
.rrow:hover:not(.sel) { background: rgba(0, 0, 0, 0); background: color-mix(in srgb, var(--card-hover) 80%, transparent); color: var(--ink2); }
.rrow:hover:not(.sel) .lbl { color: var(--ink); }
.rrow:hover:not(.sel) > .ic, .rrow:hover:not(.sel) .lbl { transform: translateX(1.5px); }
.rrow.sel { color: var(--accent-bright); }
.rrow.sel .lbl { color: var(--ink); font-weight: 600; }
.rrow.sel .cnt { color: var(--accent-bright); }
.rrow .arrow { right: 9px; top: 7.5px; width: 5px; height: 5px; border: solid var(--ink3); border-width: 1.3px 1.3px 0 0; transform: rotate(45deg); }
.rrow:hover .arrow { border-color: var(--accent-bright); transform: translateX(1.5px) rotate(45deg); }
.rrow:focus-visible, .mod:focus-visible, .cog:focus-visible { outline: 1.5px solid var(--accent-bright); outline-offset: 1px; }

/* Page */
.sheet .meta { color: var(--ink3); }
.scroll { overflow: hidden; }
.scroll-in { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
.scroll-in::-webkit-scrollbar { display: none; }
.thumb {
  position: absolute; right: 3px; top: 0; width: 2.5px; border-radius: 2px;
  background: var(--ink3); opacity: .5; pointer-events: none;
}
.grid { display: grid; gap: 8px; grid-auto-rows: 60px; padding: 0 10px 10px; align-content: start; }
.empty { grid-column: 1 / -1; padding-top: 70px; text-align: center; color: var(--ink3); }

/* A module card */
.mod {
  position: relative; border-radius: 7px; background: var(--card); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, box-shadow .2s;
  animation: nc-rise .3s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes nc-rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.mod:hover { background: var(--card-hover); box-shadow: inset 0 0 0 1px var(--line-hover); }
.mod.on { background: var(--card-active); box-shadow: inset 0 0 0 1px var(--accent-28), 0 1px 5px var(--accent-06); }
.mod.on:hover { background: color-mix(in srgb, var(--card-active) 50%, var(--card-hover)); }
.ctitle { left: 10px; top: 9px; right: 32px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.mod .where { top: 10px; right: 23px; color: var(--ink3); }
.mod .desc { left: 10px; right: 10px; top: 19.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mod .desc.one { -webkit-line-clamp: 1; }
.mod .via { left: 10px; top: 31px; right: 10px; overflow: hidden; text-overflow: ellipsis; color: var(--accent-bright); }
.cog {
  right: 9px; top: 9px; width: 9px; height: 9px; padding: 0; border: 0; background: transparent;
  color: var(--ink3-55); cursor: pointer;
}
.cog::before { content: ""; position: absolute; inset: -3px; border-radius: 4px; background: var(--input); opacity: 0; transition: opacity .2s; }
.cog::after { content: ""; position: absolute; inset: -4px; }
.cog .ic { position: relative; }
.mod:hover .cog { color: var(--ink3); }
.cog:hover { color: var(--ink); }
.cog:hover::before { opacity: 1; }
.mod.popped .cog { color: var(--accent-bright); }
.kchip {
  left: 38px; bottom: 8px; height: 11px; padding: 1.5px 4px 0; border-radius: 3px;
  background: var(--input); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2);
}

/* The toggle: 22 x 11, knob r 4.2, eased like PanelScreen.drawToggle */
.tg {
  display: block; width: 22px; height: 11px; border-radius: 5.5px; padding: 0; border: 0;
  background: var(--track); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: background-color .2s, box-shadow .2s; cursor: pointer; position: relative;
}
.mod .tg { position: absolute; left: 10px; bottom: 8px; }
.mod:hover .tg { background: var(--track-hover); }
.tg i {
  position: absolute; left: 1.3px; top: 1.3px; width: 8.4px; height: 8.4px; border-radius: 50%;
  background: #f4f6f8; box-shadow: 0 .4px .6px rgba(0, 0, 0, .19);
  transition: transform .2s cubic-bezier(.45, 0, .55, 1);
}
.mod.on .tg, .tg.on { background: var(--accent); box-shadow: none; }
.mod.on .tg i, .tg.on i { transform: translateX(11px); }

/* Tooltip */
.tip {
  left: 0; top: 0; z-index: 40; padding: 4px 6px 3px; border-radius: 5px; pointer-events: none;
  background: var(--popover); box-shadow: inset 0 0 0 1px var(--line), 0 4px 12px rgba(0, 0, 0, .35);
  color: var(--ink2); font-size: 7.44px; line-height: 9px; white-space: nowrap;
}
.tip[hidden] { display: none; }

/* ---------- the settings popover (SettingsPopover: 252 wide, header 36, pad 12) ---------- */
.pop {
  z-index: 30; border-radius: 12px; background: var(--popover);
  box-shadow: inset 0 0 0 1px var(--line), 0 2px 10px rgba(0, 0, 0, .28);
  animation: nc-pop .2s cubic-bezier(.2, .8, .2, 1) both;
}
.pop.leaving { animation: nc-pop-out .2s ease both; pointer-events: none; }
@keyframes nc-pop { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes nc-pop-out { to { opacity: 0; transform: translateX(14px); } }
.pop-head { position: absolute; left: 0; right: 0; top: 0; height: 36px; }
.pop-head::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: var(--line); }
.pop-tile { left: 12px; top: 8px; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-14); }
.pop-tile .ic { position: absolute; }
.pop-name { color: var(--ink); font-weight: 600; }
.pop-meta { color: var(--ink3); }
.pop-x {
  right: 8px; top: 10px; width: 16px; height: 16px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--ink3); cursor: pointer;
}
.pop-x:hover { background: var(--card-hover); color: var(--ink); }
.pop-scroll { position: absolute; left: 0; right: 0; top: 37px; bottom: 0; }
.pop-body { padding: 4px 12px 12px; }
.pop-group { margin: 9px 0 3px; color: var(--ink3); font-weight: 600; letter-spacing: .04em; }
.pop-empty, .pop-note { margin-top: 10px; color: var(--ink3); white-space: normal; }
.set { position: relative; padding: 6px 0; }
.set + .set::before { content: ""; position: absolute; left: 0; right: 0; top: -.5px; height: 1px; background: var(--line); opacity: .8; }
.set-top { position: relative; display: flex; align-items: center; min-height: 11px; gap: 8px; }
.set-name { color: var(--ink); }
.set-ctl { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.set-why { margin: 1px 0 0; color: var(--ink3); line-height: 8px; }
.num-val { color: var(--ink2); font-variant-numeric: tabular-nums; }
.slider {
  display: block; width: 100%; height: 9px; margin: 5px 0 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.slider::-webkit-slider-runnable-track {
  height: 3px; border-radius: 1.5px;
  background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--track) var(--fill, 0%));
}
.slider::-moz-range-track { height: 3px; border-radius: 1.5px; background: var(--track); }
.slider::-moz-range-progress { height: 3px; border-radius: 1.5px; background: var(--accent); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 8px; height: 8px; margin-top: -2.5px; border-radius: 50%; background: #f4f6f8; border: 0; box-shadow: 0 0 0 1.5px var(--accent); }
.slider::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: #f4f6f8; border: 0; box-shadow: 0 0 0 1.5px var(--accent); }
.slider:focus { outline: none; }
.chips { position: relative; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.chip {
  height: 13px; padding: 2px 6px 0; border: 0; border-radius: 6.5px; cursor: pointer; font-family: inherit;
  background: var(--input); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2);
}
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-hover); }
.chip[aria-pressed="true"] { background: var(--accent-14); box-shadow: inset 0 0 0 1px var(--accent-55); color: var(--accent-bright); }
.chip.static { cursor: default; }
.swatch { width: 22px; height: 11px; padding: 0; border: 0; border-radius: 3px; cursor: pointer; background: none; box-shadow: inset 0 0 0 1px var(--line-hover); }
.swatch::-webkit-color-swatch-wrapper { padding: 0; }
.swatch::-webkit-color-swatch { border: 0; border-radius: 3px; }
.swatch::-moz-color-swatch { border: 0; border-radius: 3px; }
.bind, .act {
  height: 13px; min-width: 34px; padding: 2px 6px 0; border: 0; border-radius: 4px; cursor: pointer; font-family: inherit;
  background: var(--input); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2);
}
.bind.listening { box-shadow: inset 0 0 0 1px var(--accent-55); color: var(--accent-bright); }
.act { background: var(--accent-14); box-shadow: inset 0 0 0 1px var(--accent-28); color: var(--accent-bright); }
.act:hover { background: var(--accent-28); }
.txt {
  display: block; width: 100%; height: 16px; margin-top: 5px; padding: 3px 6px; border: 0; border-radius: 6px;
  background: var(--input); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-family: inherit; outline: none;
}
.txt:focus { box-shadow: inset 0 0 0 1px var(--accent-55); }

/* ---------- Settings + Configs ---------- */
.cpage { padding: 0 10px 10px; }
.cpage .pop-group:first-child { margin-top: 0; }
.page-note { margin-top: 10px; color: var(--ink3); }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.theme {
  position: relative; display: block; padding: 4px 4px 0; height: 56px; border: 0; border-radius: 7px; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-family: inherit;
  transition: background-color .2s, box-shadow .2s;
}
.theme:hover { background: var(--card-hover); box-shadow: inset 0 0 0 1px var(--line-hover); }
.theme[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.theme-prev { position: relative; display: block; height: 30px; border-radius: 4px; overflow: hidden; }
.theme-prev i { position: absolute; display: block; }
.tp-side { left: 0; top: 0; bottom: 0; width: 16px; }
.tp-card { left: 20px; top: 5px; width: 26px; height: 10px; border-radius: 2px; border: .75px solid; }
.tp-card.two { left: 49px; }
.tp-dot { left: 4px; top: 5px; width: 8px; height: 3px; border-radius: 1.5px; }
.theme-name { position: absolute; left: 6px; bottom: 4px; color: var(--ink2); }
.theme[aria-pressed="true"] .theme-name { color: var(--ink); font-weight: 600; }
.theme-new { position: absolute; right: 6px; bottom: 4px; color: var(--accent-bright); font-weight: 600; }
.cfg {
  position: relative; height: 34px; margin-bottom: 6px; border-radius: 7px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.cfg > * { position: absolute; }
.cfg .t { left: 10px; top: 6px; color: var(--ink); }
.cfg .desc { left: 10px; top: 17px; color: var(--ink3); }
.cfg .tag { right: 10px; top: 11px; height: 13px; padding: 2px 7px 0; border-radius: 6.5px; background: var(--card-hover); color: var(--ink2); }
.cfg .tag.live { background: var(--accent-14); color: var(--accent-bright); }

/* ---------- around the panel ---------- */
.reopen {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(8, 16, 11, .86); color: #eafbe5; border: 1px solid rgba(255, 255, 255, .2);
  font: 600 .95rem var(--font, system-ui, sans-serif);
}
.reopen[hidden] { display: none; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.demo-bar p { font-size: 1.02rem; color: var(--text2); }
.demo-hint {
  position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%);
  max-width: calc(100% - 28px); padding: 7px 15px; border-radius: 999px; text-align: center;
  background: rgba(8, 16, 11, .86); color: #eafbe5; font-size: .92rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .16); pointer-events: none;
}
.demo-hint[hidden] { display: none !important; }
@media (max-width: 560px) {
  .demo-hint { bottom: 6px; padding: 6px 12px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mod, .pop, .pop.leaving { animation: none; }
  .rail-mark, .tg i, .panel { transition: none; }
}

/* ---------- the turning preview (NatureClient's skin) ---------- */
.pv {
  position: relative; height: 84px; margin: 6px 0 4px; border-radius: 7px; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 100%, var(--accent-14), transparent), var(--input);
  box-shadow: inset 0 0 0 1px var(--line); perspective: 300px; --pv: var(--accent);
}
.pv-stage { position: absolute; left: 50%; top: 53%; width: 0; height: 0; transform-style: preserve-3d; }
.pv-fig { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; animation: nc-orbit 11s linear infinite; }
.pv-box { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.pv-face { position: absolute; display: block; background-image: url("/assets/skin-natureclient.png"); image-rendering: pixelated; backface-visibility: hidden; }
@keyframes nc-orbit { from { transform: rotateX(-12deg) rotateY(-25deg); } to { transform: rotateX(-12deg) rotateY(335deg); } }
.pv-frame { position: absolute; left: 50%; top: 15px; bottom: 6px; width: 34px; margin-left: -17px; border-radius: 3px; box-shadow: 0 0 0 1px var(--pv); opacity: .85; pointer-events: none; }
.pv-name { position: absolute; left: 0; right: 0; top: 3px; text-align: center; color: var(--pv); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .pv-fig { animation: none; transform: rotateX(-12deg) rotateY(-25deg); } }

/* ---------- the fitting room (FittingRoom.java) ---------- */
.room {
  left: 0; top: 0; z-index: 20; border-radius: 15px; background: var(--panel); overflow: hidden;
  transform: translateX(105%); opacity: 0;
  transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.room.shown { transform: none; opacity: 1; }
.room.still { transition: none; }
.room > * { position: absolute; }
.r-back {
  display: block; padding: 0; border: 0; border-radius: 10px; cursor: pointer; background: var(--input);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); transition: background-color .2s, color .2s;
}
.r-back > * { position: absolute; }
.r-back .ic { left: 7px; top: 6px; }
.r-back:hover { background: var(--card-hover); color: var(--ink); }
.r-div { background: var(--line); }
.r-sub { color: var(--ink3); }
.r-pill { border-radius: 8px; background: var(--input); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink3); padding: 3.5px 0 0 13px; }
.r-pill::before { content: ""; position: absolute; left: 6px; top: 6.5px; width: 4.4px; height: 4.4px; border-radius: 50%; background: var(--ink3); }
.r-pill.any { background: var(--accent-14); box-shadow: inset 0 0 0 1px var(--accent-55); color: var(--accent-bright); }
.r-pill.any::before { background: var(--accent-bright); }

.r-rail { background: var(--sidebar); box-shadow: inset -1px 0 0 var(--line); }
.r-rail > * { position: absolute; }
.r-row {
  cursor: pointer; border-radius: 6px; margin: 0 6px; width: 138px !important; transition: background-color .2s;
}
.r-row > * { position: absolute; }
.r-row:hover { background: color-mix(in srgb, var(--card-hover) 70%, transparent); }
.r-row.sel { background: var(--card-active); }
.r-row.sel::before { content: ""; position: absolute; left: -6px; top: 6px; bottom: 6px; width: 2px; background: var(--accent); }
.r-row:focus-visible { outline: 1.5px solid var(--accent-bright); outline-offset: -1px; }
.r-plate {
  left: 4px; top: 4px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(var(--card-hover), var(--input)); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink3);
}
.r-plate .ic { position: static; }
.r-row.on .r-plate { color: var(--art, var(--accent-bright)); box-shadow: inset 0 0 0 1px var(--accent-55); }
.r-row.sel:not(.on) .r-plate { color: var(--ink2); }
.r-name { left: 45px; top: 9px; color: var(--ink2); }
.r-row:hover .r-name, .r-row.sel .r-name { color: var(--ink); }
.r-state { left: 45px; top: 23px; color: var(--ink3); max-width: 62px; overflow: hidden; text-overflow: ellipsis; }
.r-row.on .r-state { color: var(--ink2); }
.r-row.sel:not(.on) .r-state { color: var(--accent-bright); }
.r-row .tg { right: 8px; top: 14.5px; position: absolute; }
.r-skin { left: 0; width: 150px; height: 70px; }
.r-skin > *, .r-field > * { position: absolute; }
.r-skin .cap { left: 13px; top: 0; }
.r-field { left: 10px; top: 14px; width: 130px; height: 19px; border-radius: 7px; background: var(--input); box-shadow: inset 0 0 0 1px var(--line); }
.r-field input { left: 7px; top: 4.5px; width: 80px; height: 10px; padding: 0; border: 0; background: transparent; color: var(--ink); font-family: inherit; outline: none; }
.r-load { right: 3px; top: 3px; width: 32px; height: 13px; border: 0; border-radius: 7px; background: var(--accent-14); color: var(--accent-bright); cursor: pointer; font-family: inherit; padding: 2px 0 0; }
.r-load:hover { background: var(--accent-28); }
.r-note { left: 12px; top: 40px; color: var(--ink3); }

.r-stage {
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; cursor: grab; touch-action: none;
  background: linear-gradient(color-mix(in srgb, var(--card) 89%, var(--accent)), color-mix(in srgb, var(--sidebar) 70%, #000));
}
.r-stage:active { cursor: grabbing; }
.r-stage > * { position: absolute; }
.r-scene { inset: 0; perspective: 900px; perspective-origin: 50% 40%; }
.r-world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.r-ground {
  position: absolute; border-radius: 50%; transform: rotateX(90deg);
  background-image: linear-gradient(var(--accent-14) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--accent-14) 1.5px, transparent 1.5px), radial-gradient(circle, var(--accent-28), transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 70%); mask-image: radial-gradient(circle, #000 40%, transparent 70%);
}
.r-shadow { transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .35), transparent); pointer-events: none; }
.r-hint { left: 0; right: 0; top: 10px; text-align: center; color: var(--ink3); pointer-events: none; }
.r-hint[hidden], .r-reset[hidden] { display: none; }
.r-reset {
  right: 8px; top: 8px; width: 18px; height: 18px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: var(--input); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink3); cursor: pointer;
}
.r-reset:hover { background: var(--card-hover); color: var(--ink); }
.r-motion { height: 20px; }
.r-motion::before { content: ""; position: absolute; left: 0; top: 0; width: 138px; height: 20px; border-radius: 10px; background: var(--popover); box-shadow: inset 0 0 0 1px var(--line-hover), 0 2px 6px rgba(0, 0, 0, .18); }
.r-motion > button { position: absolute; top: 0; height: 20px; border: 0; background: transparent; color: var(--ink2); cursor: pointer; font-family: inherit; padding: 5px 0 0; transition: color .2s; }
.r-motion > button:nth-child(1) { left: 0; width: 46px; }
.r-motion > button:nth-child(2) { left: 46px; width: 46px; }
.r-motion > button:nth-child(3) { left: 92px; width: 46px; }
.r-motion > button:hover { color: var(--ink); }
.r-motion > button.on { color: var(--accent-bright); }
.r-motion > button.on::before { content: ""; position: absolute; left: 2px; right: 2px; top: 2px; bottom: 2px; border-radius: 8px; background: var(--accent-14); z-index: -1; }
.r-jump { left: 144px !important; width: 58px !important; border-radius: 10px !important; background: var(--popover) !important; box-shadow: inset 0 0 0 1px var(--line-hover); }
.r-jump .ic { position: absolute; left: 14px; top: 6px; }
.r-jump span { position: absolute; left: 27px; top: 5px; }
.r-jump:hover { background: var(--card-hover) !important; }

.r-details > .scroll-in { padding: 0; }
.r-det-in { padding: 14px 14px 14px; }
.r-title { font-size: 17px; line-height: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.r-desc { margin: 3px 0 7px; white-space: normal; }
.r-wear {
  position: relative; display: block; width: 100%; height: 24px; margin-top: 7px; padding: 0; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); font-family: inherit; transition: background-color .2s, box-shadow .2s;
}
.r-wear:hover { background: var(--card-hover); color: var(--ink); }
.r-wear.on { background: var(--accent-14); box-shadow: inset 0 0 0 1px var(--accent-55); color: var(--accent-bright); }
.r-wear .t { position: absolute; left: 50%; top: 7px; transform: translateX(-30%); }
.r-sign { position: absolute; left: 50%; top: 7px; width: 9px; height: 9px; margin-left: -37px; }
.r-sign::before, .r-sign::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.r-sign::before { left: 0; right: 0; top: 4px; height: 1.6px; }
.r-sign::after { top: 0; bottom: 0; left: 3.7px; width: 1.6px; }
.r-wear.on .r-sign::before { left: -1px; width: 5px; top: 5.5px; transform: rotate(45deg); }
.r-wear.on .r-sign::after { left: 3px; width: 10px; top: 2.5px; height: 1.6px; bottom: auto; transform: rotate(-50deg); }
.r-head { position: relative; display: flex; align-items: center; gap: 6px; margin: 16px 0 6px; color: var(--ink3); font-weight: 600; }
.r-head i { flex: 1; height: 1px; background: var(--line); }
.r-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.r-tile {
  position: relative; height: 34px; padding: 0; border: 0; border-radius: 8px; cursor: pointer; text-align: left; font-family: inherit;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); transition: background-color .2s, box-shadow .2s;
}
.r-tile.wide { grid-column: 1 / -1; }
.r-tile:hover { background: var(--card-hover); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-hover); }
.r-tile.on { background: color-mix(in srgb, var(--card-active) 65%, var(--accent-14)); box-shadow: inset 0 0 0 1px var(--accent-55); color: var(--accent-bright); }
.r-art {
  position: absolute; left: 3px; top: 3px; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--art), color-mix(in srgb, var(--art) 45%, #000)); color: rgba(255, 255, 255, .92);
}
.r-art .ic { stroke-width: 2.2; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.r-tname { position: absolute; left: 37px; right: 20px; top: 50%; transform: translateY(-50%); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 8.5px; }
.r-tile.on .r-tname { font-weight: 600; }
.r-check { position: absolute; right: 7px; top: 11.5px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .2s; }
.r-check::after { content: ""; position: absolute; left: 3.6px; top: 2px; width: 2.6px; height: 5px; border: solid var(--on-accent); border-width: 0 1.3px 1.3px 0; transform: rotate(40deg); }
.r-tile.on .r-check { transform: scale(1); }
.r-det-in .set { padding: 6px 0; }

/* narrow: the rail turns into a row of plates, the details sit under the stage */
.room.narrow .r-row { margin: 0; }
.room.narrow .r-plate { left: 50%; margin-left: -16px; }
.room.narrow .r-row.sel::before { left: 6px; right: 6px; top: auto; bottom: -1px; width: auto; height: 2px; }
.room.narrow .r-rail { box-shadow: inset 0 -1px 0 var(--line); }
@media (prefers-reduced-motion: reduce) { .room { transition: none; } }

/* where the menu sits on natureclient.dev */
.gui-box { width: min(1120px, 100%); margin: 44px auto 0; text-align: left; }
.gui-box .demo { display: block; }
.gui-note { margin-top: 12px; text-align: center; font-size: .85rem; letter-spacing: .04em; color: var(--text2); }
