/* RomsNSBrasil — main stylesheet
   Order: fonts and variables, reset, type, layout, components, pages, breakpoints.
   Mobile first; breakpoints at 768 and 1024. */

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fira-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fira-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fira-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fira-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fira-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fira-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #eceef2;
  --paper: #ffffff;
  --ink: #15171b;
  --mute: #535a66;
  --line: #d5d9e0;
  --edge: #8a919c;      /* form borders, 3.3:1 on white */
  --red: #c8102e;
  --red-dk: #a00d25;
  --red-tint: #fbeef0;
  --night: #1b1e24;
  --night-2: #2b303a;
  --night-txt: #c9ced8;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 1240px;
  --head: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 56px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Fira Sans", -apple-system, "Segoe UI", sans-serif;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; }
h1 { font-size: 30px; letter-spacing: -0.01em; }
h2 { font-size: 22px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.rnl-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rnl-hide {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.rnl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- layout ---------- */
.rnl-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.rnl-page { padding-top: 8px; padding-bottom: 56px; }
.rnl-narrow { max-width: 820px; }
.rnl-block { margin-top: 44px; }

.rnl-skip {
  position: absolute; left: 12px; top: -60px; z-index: 1001;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 6px; text-decoration: none;
}
.rnl-skip:focus { top: 12px; }

/* ---------- header ---------- */
.rnl-top {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.rnl-top__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding-top: 8px; padding-bottom: 8px;
}
.rnl-brand {
  display: inline-flex; align-items: center; gap: 9px; margin-right: auto;
  min-height: 44px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}
.rnl-brand img { width: 34px; height: 34px; }
.rnl-seek { order: 5; flex: 1 0 100%; display: flex; position: relative; }
.rnl-seek input {
  width: 100%; min-height: 44px; padding: 0 52px 0 14px;
  border: 1px solid var(--edge); border-radius: 8px; background: var(--bg);
  font-size: 16px;
}
.rnl-seek input::placeholder { color: var(--mute); opacity: 1; }
.rnl-seek input:focus { background: #fff; border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(200, 16, 46, .25); }
.rnl-seek button {
  position: absolute; right: 2px; top: 2px; bottom: 2px; width: 46px;
  display: grid; place-items: center; border: 0; border-radius: 6px; background: var(--ink); color: #fff;
}
.rnl-seek button:hover { background: var(--red); }
.rnl-who { display: flex; align-items: center; gap: 8px; }

.rnl-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.rnl-iconbtn:hover { border-color: var(--ink); }
.rnl-avatar {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--night); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
}
.rnl-bell { position: relative; }
.rnl-bell__n {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; line-height: 20px; text-align: center;
}
.rnl-drop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 110; width: 290px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(21, 23, 27, .16); padding: 6px;
}
.rnl-drop a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-size: 15px; }
.rnl-drop a:hover { background: var(--bg); }
.rnl-drop small { display: block; color: var(--mute); font-size: 13px; }
.rnl-logout { display: none; }

.rnl-drawer {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(21, 23, 27, .12);
}
.rnl-drawer nav { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px 16px; }
.rnl-drawer a {
  display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: 600;
}

/* genre tabs: scroll sideways on phones */
.rnl-tabs { background: var(--paper); border-bottom: 1px solid var(--line); }
.rnl-tabs .rnl-wrap {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.rnl-tabs .rnl-wrap::-webkit-scrollbar { display: none; }
.rnl-tabs a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--mute);
  border-bottom: 3px solid transparent;
}
.rnl-tabs a:hover { color: var(--ink); }
.rnl-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.rnl-tabs__help { display: none !important; }

/* ---------- buttons ---------- */
.rnl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 7px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.rnl-btn--go { background: var(--red); color: #fff; }
.rnl-btn--go:hover { background: var(--red-dk); }
.rnl-btn--ink { background: var(--ink); color: #fff; }
.rnl-btn--ink:hover { background: var(--red); }
.rnl-btn--line { background: var(--paper); border-color: var(--edge); color: var(--ink); }
.rnl-btn--line:hover { border-color: var(--ink); }

.rnl-more {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--red); font-weight: 600; font-size: 15px; text-decoration: none;
}
.rnl-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.rnl-more--light { color: #fff; }

.rnl-h2row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px;
  margin-bottom: 12px;
}

/* ---------- the cartridge label (size + format on every art) ---------- */
.rnl-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 14px 3px 8px; border-radius: 3px;
  background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 600; line-height: 20px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.rnl-tag b { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.rnl-tag span { color: var(--red); }
.rnl-tag b + span { padding-left: 7px; border-left: 1px solid var(--line); }

/* ---------- art box ---------- */
.rnl-art {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--night-2);
}
.rnl-art img { width: 100%; height: 100%; object-fit: cover; }
.rnl-art.is-nocover, .rnl-hero.is-nocover {
  display: grid; place-items: center; color: var(--night-txt); font-weight: 600; font-size: 15px;
  background: var(--night-2) linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, .06) 48% 52%, transparent 52%) ;
}

/* ---------- catalogue tile ---------- */
.rnl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.rnl-tile {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  text-decoration: none;
}
.rnl-tile:hover { border-color: #aab0ba; }
.rnl-tile:hover .rnl-tile__name { color: var(--red); }
.rnl-tile__name {
  padding: 10px 12px 2px; font-weight: 600; font-size: 15px; line-height: 1.3;
  overflow-wrap: anywhere;
}
.rnl-tile__genre { padding: 0 12px 12px; color: var(--mute); font-size: 14px; }

/* ---------- home: dark showcase ---------- */
.rnl-show { background: var(--night); color: #fff; padding: 24px 0 32px; }
.rnl-show__intro h1 { font-size: 30px; }
.rnl-show__intro p { margin: 8px 0 0; color: var(--night-txt); max-width: 62ch; }
.rnl-show__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  margin: 22px 0 12px;
}
.rnl-show__bar h2 { font-size: 20px; }
.rnl-show__ctrl { display: flex; align-items: center; gap: 8px; }
.rnl-arrow {
  display: none; place-items: center; width: 44px; height: 44px;
  border: 1px solid #4a505c; border-radius: 50%; background: transparent; color: #fff;
}
.rnl-arrow:hover { border-color: #fff; }

.rnl-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px;
}
.rnl-strip::-webkit-scrollbar { display: none; }
.rnl-pick {
  position: relative; display: block; aspect-ratio: 16 / 9; min-width: 0; overflow: hidden;
  border-radius: 8px; background: var(--night-2); scroll-snap-align: start;
  text-decoration: none; color: #fff;
}
.rnl-pick img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.rnl-pick::after {
  content: ""; position: absolute; inset: 30% 0 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(14, 16, 20, 0), rgba(14, 16, 20, .6) 45%, rgba(14, 16, 20, .92));
}
.rnl-pick:hover img { opacity: .85; }
.rnl-pick .rnl-tag { top: 8px; bottom: auto; }
.rnl-pick__txt {
  position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2;
  display: flex; flex-direction: column;
}
.rnl-pick__name { font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.rnl-pick__genre { font-size: 14px; color: var(--night-txt); }
.rnl-pick__none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--night-txt); }

/* ---------- home: about + author ---------- */
.rnl-about { display: grid; gap: 24px; margin-top: 48px; }
.rnl-author {
  align-self: start; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 20px;
  font-size: 15px;
}
.rnl-author__av {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; font-size: 19px;
}
.rnl-author__name { margin: 0; font-weight: 700; font-size: 18px; }
.rnl-author__role { color: var(--mute); margin-bottom: 10px; }

/* ---------- compact lists (shelves) ---------- */
.rnl-shelves { display: grid; gap: 32px; margin-top: 44px; }
.rnl-rows {
  list-style: none; margin: 0; padding: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
}
.rnl-rows li + li { border-top: 1px solid var(--line); }
.rnl-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "pic name size" "pic name fmt";
  align-items: center; gap: 0 12px; padding: 10px 12px; text-decoration: none;
}
.rnl-row img, .rnl-row__none {
  grid-area: pic; width: 96px; height: 54px; object-fit: cover; border-radius: 4px; background: var(--night-2);
}
.rnl-row__name { grid-area: name; font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.rnl-row__size { grid-area: size; font-family: var(--mono); font-size: 14px; font-weight: 700; text-align: right; }
.rnl-row__fmt { grid-area: fmt; font-size: 13px; color: var(--red); font-weight: 600; text-align: right; }
.rnl-row:hover .rnl-row__name { color: var(--red); }

/* ---------- crumbs ---------- */
.rnl-crumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 4px 0; font-size: 14px; color: var(--mute); }
.rnl-crumb li { display: flex; align-items: center; }
.rnl-crumb li + li::before { content: "/"; margin: 0 8px; color: #9aa0aa; }
.rnl-crumb a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: underline; text-decoration-color: #9aa0aa; text-underline-offset: 3px; }
.rnl-crumb a:hover { text-decoration-color: var(--red); }

/* ---------- game page: art + label ---------- */
.rnl-gametop { display: grid; gap: 0; margin-top: 4px; }
.rnl-hero {
  margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px 8px 0 0; background: var(--night-2);
}
.rnl-hero img { width: 100%; height: 100%; object-fit: cover; }
.rnl-label {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 8px 8px; padding: 18px 16px 18px;
}
.rnl-label h1 { font-size: 30px; overflow-wrap: anywhere; }
.rnl-label__by { margin: 4px 0 12px; color: var(--mute); font-size: 16px; }
.rnl-label__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.rnl-fmt {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 4px;
  border: 1.5px solid var(--ink); font-weight: 700; font-size: 14px;
}
.rnl-label__reg { color: var(--mute); font-size: 15px; }
.rnl-dl { width: 100%; min-height: 58px; font-size: 19px; border-radius: 8px; }
.rnl-label__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 10px; }
.rnl-label__link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--red); font-weight: 600; font-size: 15px;
}
.rnl-fav .rnl-fav__on { display: none; }
.rnl-fav[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rnl-fav[aria-pressed="true"] .rnl-fav__on { display: inline; }
.rnl-fav[aria-pressed="true"] .rnl-fav__off { display: none; }
.rnl-fav[aria-pressed="true"] svg { fill: currentColor; }
.rnl-label__tid {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
}
.rnl-label__tid span { color: var(--mute); font-size: 14px; }
.rnl-label__tid b { font-size: 17px; letter-spacing: .02em; }
.rnl-label__added { margin: 14px 0 0; color: var(--mute); font-size: 14px; }
.rnl-label__added a { color: var(--ink); }

.rnl-nofile {
  padding: 14px 16px; border-radius: 8px; background: var(--red-tint); border-left: 4px solid var(--red);
}
.rnl-nofile p { margin: 0 0 4px; font-weight: 600; }
.rnl-nofile a { display: inline-flex; align-items: center; min-height: 32px; color: var(--red-dk); font-weight: 600; }

/* contents bar: base / update / DLC */
.rnl-parts { margin-top: 14px; }
.rnl-parts__label { margin: 0 0 6px; color: var(--mute); font-size: 14px; }
.rnl-parts ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; list-style: none; margin: 0; padding: 0; }
.rnl-part {
  display: flex; flex-direction: column; padding: 8px 10px; border-radius: 4px;
  border: 1px dashed var(--edge); color: var(--mute);
  background: repeating-linear-gradient(-45deg, #fff 0 6px, #f1f2f5 6px 12px);
}
.rnl-part.is-in { border: 1px solid var(--red); background: var(--red); color: #fff; }
.rnl-part__name { font-weight: 700; font-size: 16px; }
.rnl-part__note { font-size: 14px; }
.rnl-part__note b { font-weight: 700; }
.rnl-parts li:first-child { border-radius: 6px 3px 3px 6px; }
.rnl-parts li:last-child { border-radius: 3px 6px 6px 3px; }

/* game body: main column + file sheet */
.rnl-gamebody { display: flex; flex-direction: column; gap: 36px; margin-top: 32px; }
.rnl-gamebody__main { min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.rnl-ficha {
  order: -1; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px 16px 6px;
}
.rnl-ficha h2 { font-size: 19px; margin-bottom: 8px; }
.rnl-ficha__list { margin: 0; }
.rnl-ficha__list div {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; padding: 9px 0;
  border-top: 1px solid var(--line); font-size: 15px;
}
.rnl-ficha__list dt { color: var(--mute); }
.rnl-ficha__list dd { margin: 0; overflow-wrap: anywhere; }

/* prints */
.rnl-prints h2 { margin-bottom: 12px; }
.rnl-prints__stage { margin: 0 0 8px; max-width: 640px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--night); }
.rnl-prints__stage img { width: 100%; height: 100%; object-fit: cover; }
.rnl-prints__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 640px; list-style: none; margin: 0; padding: 0; }
.rnl-prints__thumb {
  display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none;
}
.rnl-prints__thumb img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.rnl-prints__thumb[aria-current="true"] { border-color: var(--red); }

/* long text */
.rnl-prose { max-width: 68ch; }
.rnl-prose h2 { font-size: 24px; margin: 1.4em 0 .5em; }
.rnl-prose h2:first-child { margin-top: 0; }
.rnl-prose h3 { margin: 1.3em 0 .4em; }
.rnl-prose p, .rnl-prose li { line-height: 1.65; }
.rnl-prose ul, .rnl-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.rnl-prose li { margin-bottom: .35em; }
.rnl-prose a { color: var(--red-dk); text-underline-offset: 3px; }
.rnl-prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; background: var(--paper); }
.rnl-prose th, .rnl-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.rnl-prose th { font-weight: 600; color: var(--mute); }
.rnl-lead { font-size: 19px; color: var(--mute); max-width: 62ch; margin-top: 8px; }

/* run steps */
.rnl-run h2, .rnl-faq h2, .rnl-older h2 { margin-bottom: 14px; }
.rnl-steps { list-style: none; counter-reset: step; margin: 0 0 12px; padding: 0; max-width: 68ch; }
.rnl-steps li {
  counter-increment: step; position: relative; padding: 10px 0 10px 48px; line-height: 1.55;
  border-bottom: 1px solid var(--line);
}
.rnl-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 9px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.rnl-run p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--red-dk); font-weight: 600; }

/* faq */
.rnl-faq details { border-bottom: 1px solid var(--line); max-width: 68ch; }
.rnl-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 8px 0; font-weight: 600; cursor: pointer; list-style: none;
}
.rnl-faq summary::-webkit-details-marker { display: none; }
.rnl-faq summary::after { content: "+"; flex: 0 0 auto; font-size: 24px; line-height: 1; color: var(--red); }
.rnl-faq details[open] summary::after { content: "\2212"; }
.rnl-faq details p { margin: 0 0 14px; color: var(--mute); }

/* older versions */
.rnl-older p { color: var(--mute); }
.rnl-older__list { list-style: none; margin: 0; padding: 0; max-width: 520px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.rnl-older__list li { display: grid; grid-template-columns: 1fr auto 56px; gap: 12px; padding: 12px 14px; font-size: 15px; }
.rnl-older__list li + li { border-top: 1px solid var(--line); }
.rnl-older__what { font-weight: 600; }

/* comments */
.rnl-talk__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rnl-talk__n { display: inline-block; min-width: 28px; padding: 0 8px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; line-height: 26px; text-align: center; vertical-align: 3px; }
.rnl-sort { display: inline-flex; border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; }
.rnl-sort button { min-height: 40px; padding: 0 14px; border: 0; background: var(--paper); font-size: 15px; font-weight: 600; }
.rnl-sort button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rnl-invite { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.rnl-invite a { color: var(--red-dk); font-weight: 600; }
.rnl-cform { margin-bottom: 20px; }
.rnl-hint { color: var(--mute); font-size: 14px; margin: 0; }
.rnl-err { color: var(--red-dk); font-size: 14px; font-weight: 600; margin: -6px 0 0; }
.rnl-clist { display: flex; flex-direction: column; gap: 10px; }
.rnl-note { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.rnl-note p { margin: 0 0 8px; line-height: 1.55; }
.rnl-note p a { color: var(--red-dk); }
.rnl-note__by { margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--mute); }
.rnl-note__by b { color: var(--ink); font-size: 15px; }
.rnl-note.is-waiting { background: var(--red-tint); border-color: #efc4cb; }
.rnl-flag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #fff; border: 1px solid var(--red); color: var(--red-dk); font-size: 13px; font-weight: 600; }
.rnl-flag--ok { border-color: var(--edge); color: var(--mute); }
.rnl-note__acts { display: flex; gap: 6px; }
.rnl-note__acts button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--paper); font-size: 14px; color: var(--mute);
}
.rnl-note__acts button:hover { color: var(--red); border-color: var(--red); }
.rnl-note__sub { margin: 12px 0 0 6px; padding-left: 14px; border-left: 3px solid var(--line); }
.rnl-note--team { border-color: var(--line); background: var(--bg); }
.rnl-talk__empty { padding: 18px; border: 1px dashed var(--edge); border-radius: 8px; color: var(--mute); text-align: center; }

/* ---------- forms ---------- */
.rnl-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.rnl-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.rnl-form input:not([type="checkbox"]), .rnl-form textarea, .rnl-form select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 7px; background: #fff;
  font-weight: 400; font-size: 16px;
}
.rnl-form textarea { resize: vertical; min-height: 110px; }
.rnl-form input[aria-invalid="true"] { border-color: var(--red); }
.rnl-form button { align-self: flex-start; }
.rnl-form .rnl-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.45; }
.rnl-check input { width: 24px; height: 24px; margin: 0; flex: 0 0 auto; accent-color: var(--red); }
.rnl-form__line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rnl-form__line a { display: inline-flex; align-items: center; min-height: 44px; color: var(--red-dk); font-weight: 600; font-size: 15px; }
.rnl-alert { padding: 12px 16px; border-radius: 8px; font-weight: 600; max-width: 560px; }
.rnl-alert--ok { background: #e8f3ec; color: #1d5b34; }
.rnl-alert--bad { background: var(--red-tint); color: var(--red-dk); }

/* ---------- hub, search, empty ---------- */
.rnl-hubhead { margin: 8px 0 16px; }
.rnl-hubhead p { max-width: 70ch; color: var(--mute); margin: 8px 0 0; }
.rnl-filter { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; margin-bottom: 16px; }
.rnl-filter__label { display: block; margin: 0; color: var(--mute); font-size: 14px; }
.rnl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rnl-chips a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px;
  border: 1px solid var(--edge); background: var(--paper); text-decoration: none; font-size: 15px; font-weight: 600;
}
.rnl-chips a:hover { border-color: var(--ink); }
.rnl-chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rnl-count-line { color: var(--mute); font-size: 15px; margin: 0 0 12px; }
.rnl-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 28px 0 8px; }
.rnl-pager a, .rnl-pager span {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.rnl-pager a { background: var(--paper); border: 1px solid var(--line); }
.rnl-pager a:hover { border-color: var(--ink); }
.rnl-pager a[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }
.rnl-pager__off { color: #9aa0aa; }
.rnl-hubtext { margin-top: 32px; }
.rnl-empty { margin-top: 36px; padding: 24px; background: var(--paper); border: 1px dashed var(--edge); border-radius: 8px; max-width: 720px; }
.rnl-empty h2 { margin-bottom: 8px; }

/* account */
.rnl-subnav { display: flex; gap: 4px; overflow-x: auto; margin: 12px 0 24px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.rnl-subnav a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; color: var(--mute); border-bottom: 3px solid transparent; }
.rnl-subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.rnl-page > h2 { margin-bottom: 12px; }
.rnl-page > h1:first-child { margin-top: 20px; margin-bottom: 4px; }
.rnl-inbox { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.rnl-inbox li + li { border-top: 1px solid var(--line); }
.rnl-inbox a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none; }
.rnl-inbox small { color: var(--mute); font-size: 14px; }
.rnl-inbox .is-new a { border-left: 4px solid var(--red); font-weight: 600; }
.rnl-auth { max-width: 520px; }
.rnl-auth h1 { margin: 16px 0 12px; }

/* text pages */
.rnl-text .rnl-page > h1 { margin: 8px 0 4px; }
.rnl-doc__cols { display: grid; gap: 24px; margin-top: 24px; }
.rnl-toc { align-self: start; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.rnl-toc p { margin: 0 0 4px; font-weight: 700; }
.rnl-toc ol { margin: 0; padding-left: 1.2em; }
.rnl-toc a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); }
.rnl-form--grid { margin-top: 20px; }

/* 404 / 500 */
.rnl-oops { max-width: 760px; padding-top: 32px; }
.rnl-oops__code { margin: 0; font-family: var(--mono); font-size: 64px; font-weight: 700; line-height: 1; color: var(--red); }
.rnl-oops h1 { margin: 12px 0; }
.rnl-oops > p { color: var(--mute); max-width: 60ch; }
.rnl-form--inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; max-width: none; margin: 20px 0; }
.rnl-form--inline label { flex: 1 1 260px; }
.rnl-chips--err { margin-top: 8px; }

/* ---------- download gate (one per page) ---------- */
.rnl-gate { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 16px; }
.rnl-gate:target, .rnl-gate.is-on { display: grid; }
.rnl-gate__back { position: absolute; inset: 0; background: rgba(21, 23, 27, .62); }
.rnl-gate__box {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--paper); border-radius: 10px; padding: 24px 22px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.rnl-gate__x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
.rnl-gate__x:hover { background: var(--bg); }
.rnl-gate__kicker { margin: 0; color: var(--mute); font-size: 14px; }
.rnl-gate h2 { margin: 2px 48px 14px 0; font-size: 24px; }
.rnl-gate__file { margin: 0 0 16px; border-top: 1px solid var(--line); }
.rnl-gate__file div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rnl-gate__file dt { color: var(--mute); }
.rnl-gate__file dd { margin: 0; overflow-wrap: anywhere; }
.rnl-wait { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--mute); font-size: 15px; }
.rnl-count {
  flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--red); color: var(--red); font-family: var(--mono); font-weight: 700; font-size: 22px;
}
.rnl-filebtn { width: 100%; min-height: 54px; font-size: 18px; }
.rnl-gate.is-hold .rnl-filebtn { background: #b9bec7; pointer-events: none; }
.rnl-gate__h { margin: 18px 0 6px; font-weight: 700; }
.rnl-gate__steps { margin: 0; padding-left: 1.2em; font-size: 15px; color: var(--mute); }
.rnl-gate__steps li { margin-bottom: 4px; }
.rnl-gate .rnl-form { margin-top: 8px; }

/* ---------- footer ---------- */
.rnl-foot { margin-top: 64px; background: var(--night); color: var(--night-txt); font-size: 15px; padding: 36px 0 28px; }
.rnl-foot__grid { display: grid; gap: 24px; }
.rnl-foot__name { margin: 0 0 6px; color: #fff; font-weight: 700; font-size: 19px; }
.rnl-foot__nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.rnl-foot__nav a, .rnl-foot__note a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; text-underline-offset: 3px; }
.rnl-foot__note p { margin: 0 0 6px; }
.rnl-foot__copy { color: #9aa1ad; }

.rnl-up {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 22px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 18px rgba(21, 23, 27, .25);
}
.rnl-up:hover { background: var(--red); }

/* ---------- 768+ ---------- */
@media (min-width: 768px) {
  .rnl-wrap { padding: 0 24px; }
  h1, .rnl-show__intro h1, .rnl-label h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  .rnl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
  .rnl-tile__name { font-size: 16px; padding: 12px 14px 2px; }
  .rnl-tile__genre { padding: 0 14px 14px; }
  .rnl-strip { grid-auto-columns: 44%; margin: 0 -24px; padding: 0 24px; }
  .rnl-arrow { display: inline-grid; }
  .rnl-shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .rnl-foot__grid { grid-template-columns: 1.1fr 1fr 1.3fr; }
  .rnl-foot__nav { flex-direction: column; }
  .rnl-tabs__help { display: inline-flex !important; margin-left: auto; color: var(--ink) !important; }
}

/* ---------- 1024+ ---------- */
@media (min-width: 1024px) {
  .rnl-top__bar { flex-wrap: nowrap; gap: 16px; min-height: var(--head); }
  .rnl-brand { margin-right: 8px; }
  .rnl-seek { order: 0; flex: 1 1 auto; max-width: 620px; margin-right: auto; }
  .rnl-burger { display: none; }
  .rnl-logout { display: inline-flex; }
  .rnl-tabs { position: sticky; top: var(--head); z-index: 99; }   /* sits under the header bar */

  .rnl-show { padding: 32px 0 40px; }
  .rnl-show__intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 32px; }
  .rnl-show__intro h1 { font-size: 40px; }
  .rnl-show__intro p { margin: 0 0 4px; font-size: 18px; }
  /* mosaic: first pick spans 2x2, the rest run on two rows and scroll sideways */
  .rnl-strip {
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: calc((100% - 48px) / 4);
    gap: 16px; margin: 0; padding: 0; scroll-padding: 0;
  }
  .rnl-strip > .rnl-pick:first-child { grid-row: span 2; grid-column: span 2; aspect-ratio: auto; }
  .rnl-strip > .rnl-pick:first-child .rnl-pick__name { font-size: 30px; }
  .rnl-strip > .rnl-pick:first-child .rnl-pick__genre { font-size: 16px; }
  .rnl-strip > .rnl-pick:first-child .rnl-pick__txt { left: 20px; bottom: 18px; }
  .rnl-strip > .rnl-pick:first-child .rnl-tag { left: 16px; top: 16px; font-size: 14px; }

  .rnl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
  .rnl-about { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }

  .rnl-page { padding-top: 12px; }
  .rnl-gametop { grid-template-columns: minmax(0, 1.72fr) minmax(360px, 1fr); gap: 24px; align-items: start; }
  .rnl-hero { border-radius: 8px; }
  .rnl-label {
    border-top: 1px solid var(--line); border-radius: 8px; padding: 24px 24px 20px;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  }
  .rnl-label::before {       /* the cut corner gets its own edge line */
    content: ""; position: absolute; top: -1px; left: calc(100% - 22px); width: 32px; height: 2px;
    background: var(--line); transform: rotate(45deg); transform-origin: 0 0;
  }
  .rnl-gamebody { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
  .rnl-ficha { order: 0; position: sticky; top: calc(var(--head) + 60px); }

  .rnl-doc__cols { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
  .rnl-toc { position: sticky; top: calc(var(--head) + 60px); }
  .rnl-form--grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 760px; }
  .rnl-form__wide { grid-column: 1 / -1; }
}

@media (min-width: 1440px) {
  .rnl-wrap { padding: 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* print: just the sheet and the text */
@media print {
  .rnl-top, .rnl-tabs, .rnl-foot, .rnl-up, .rnl-gate, .rnl-talk, .rnl-dl { display: none !important; }
  body { background: #fff; }
}

/* ---------- theme hooks: parts drawn by the site core ---------- */
.rnl-gate[hidden] { display: none !important; }
.rnl-filebtn.is-hold, .rnl-filebtn[aria-disabled="true"] { background: #b9bec7; pointer-events: none; cursor: default; }
.rnl-gate__err { margin: 10px 0 0; }
.rnl-gate__err:empty { display: none; }
.rnl-sort button.is-on { background: var(--ink); color: #fff; }
.rnl-note__acts button.is-on { color: var(--red); border-color: var(--red); }
.rnl-note__acts button.is-on svg { fill: currentColor; }
.rnl-who { position: relative; }
.rnl-bell__btn { position: relative; font-size: 0; color: var(--ink); }
.rnl-bell__btn::before {
  content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16.5V10a6 6 0 1 1 12 0v6.5L19.5 19H4.5L6 16.5z'/%3E%3Cpath d='M10 19.5a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16.5V10a6 6 0 1 1 12 0v6.5L19.5 19H4.5L6 16.5z'/%3E%3Cpath d='M10 19.5a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rnl-me { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0; text-decoration: none; }
.rnl-me .rnl-avatar { font-size: 15px; }
.rnl-drop p { margin: 0; padding: 10px 12px; color: var(--mute); font-size: 15px; }
.rnl-drop a.is-new { font-weight: 600; border-left: 3px solid var(--red); }
.rnl-pend { display: block; }
.rnl-pend .rnl-avatar { display: none; }
.rnl-pend__name { color: var(--ink); font-size: 15px; margin-right: 8px; }
.rnl-pend__when { color: var(--mute); font-size: 14px; margin-right: 8px; }
.rnl-pend__text { margin-top: 8px; line-height: 1.55; }
.rnl-cform .rnl-err:empty { display: none; }
.rnl-show__intro p + p { margin-top: 8px; }
.rnl-doc__one { margin-top: 24px; max-width: 760px; }
.rnl-doc__one .rnl-form { margin-top: 24px; }
.rnl-roles { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rnl-roles legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.rnl-run .rnl-prose { max-width: none; }
.rnl-oops > .rnl-oops__code { color: var(--red); }

/* ссылки на хабы игры (SEO-аудит 05.12.2026) */
.rnl-gamehubs{margin-top:1.5rem;margin-bottom:1.5rem}
.rnl-gamehubs__h{font-size:1.05rem;margin:0 0 .6rem}
.rnl-gamehubs__list{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none;margin:0;padding:0}
.rnl-gamehubs__a{display:inline-block;padding:.32rem .75rem;border:1px solid currentColor;border-radius:999px;font-size:.9rem;line-height:1.3;text-decoration:none;opacity:.85}
.rnl-gamehubs__a:hover,.rnl-gamehubs__a:focus-visible{opacity:1;text-decoration:underline}

/* справочные хабы в подвале (SEO-аудит 05.12.2026) */
.rnl-foot-guides{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.1rem;max-width:1200px;margin:0 auto;padding:.9rem 1rem 1.1rem;font-size:.85rem}
.rnl-foot-guides a{color:inherit;opacity:.8}
.rnl-foot-guides a:hover{opacity:1}
