/* MyRomsFun — a living-room bookcase of PlayStation discs.
   Order: tokens & reset, type, frame (header/footer), components, pages, wider screens. Mobile first. */

/* ---------- tokens & reset ---------- */
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #f2f4f3;
  --card: #ffffff;
  --ink: #172322;
  --muted: #52615f;
  --line: #d8dfdd;
  --line-strong: #b9c6c3;
  --wall: #143f3b;
  --wall-deep: #0e2f2c;
  --wall-soft: #e2ebe9;
  --on-wall: #e9f1ef;
  --on-wall-muted: #a9c4bf;
  --amber: #f2aa2e;
  --amber-edge: #c9861a;
  --link: #0d6b62;
  --serif: "Lora", Georgia, serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--amber-edge); outline-offset: 2px; border-radius: 4px; }

.mrf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mrf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mrf-num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .95em; }
.mrf-line__meta .mrf-num { font-size: 1em; }
.mrf-skip { position: absolute; left: 12px; top: -60px; z-index: 1001; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.mrf-skip:focus { top: 10px; }

.mrf-wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 16px; }
.mrf-main { display: block; padding-bottom: 56px; }
.mrf-block { margin-top: 40px; }
.mrf-i { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
/* Phones: logo row + search stay; consoles and pages sit behind the burger (shown inline without JS). */
.mrf-top { position: sticky; top: 0; z-index: 100; background: var(--card); border-bottom: 1px solid var(--line); }
.mrf-top__in {
  max-width: 1248px; margin: 0 auto; padding: 6px 16px 10px;
  display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "logo acct burger" "seek seek seek" "sys sys sys";
  align-items: center; column-gap: 8px;
}
.mrf-logo { grid-area: logo; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; color: var(--ink); }
.mrf-logo__disc { width: 30px; height: 30px; }
.mrf-logo__name { font: 700 22px/1 var(--serif); letter-spacing: -.01em; }

.mrf-sys { grid-area: sys; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.mrf-js .mrf-sys { display: none; }
.mrf-js .mrf-top.is-open .mrf-sys { display: flex; }
.mrf-sys a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: 19px; background: var(--wall-soft); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.mrf-sys a[aria-current="page"] { background: var(--wall); color: #fff; }

.mrf-seek { grid-area: seek; position: relative; margin-top: 4px; }
.mrf-seek input { width: 100%; height: 44px; padding: 0 52px 0 18px; border: 1.5px solid var(--line-strong); border-radius: 22px; background: var(--paper); font-size: 16px; }
.mrf-seek input::placeholder { color: #6b7977; }
.mrf-seek input:focus { outline: none; border-color: var(--wall); background: #fff; box-shadow: 0 0 0 3px rgba(242, 170, 46, .45); }
.mrf-seek__go { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--wall); color: #fff; display: grid; place-items: center; }
.mrf-seek__go:hover { background: var(--wall-deep); }

.mrf-acct { grid-area: acct; display: flex; align-items: center; gap: 6px; }
.mrf-acct__btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--wall); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.mrf-acct__btn:hover { background: var(--wall-deep); color: #fff; }
.mrf-acct__me { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.mrf-bell { position: relative; }
.mrf-bell__btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; }
.mrf-bell__n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--amber); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 20px; text-align: center; }
.mrf-bell__drop { position: absolute; right: 0; top: 48px; width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(14, 47, 44, .18); padding: 6px; z-index: 110; }
.mrf-bell__drop a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.mrf-bell__drop a:hover { background: var(--paper); }
.mrf-bell__drop a.is-new { font-weight: 700; }
.mrf-bell__drop a:last-child { color: var(--link); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }

.mrf-burger { grid-area: burger; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; }
.mrf-burger .mrf-i { width: 24px; height: 24px; }
.mrf-extra { display: flex; flex-wrap: wrap; gap: 4px 6px; max-width: 1248px; margin: 0 auto; padding: 0 16px 10px; }
.mrf-extra a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.mrf-js .mrf-extra { display: none; }
.mrf-js .mrf-top.is-open .mrf-extra { display: flex; border-top: 1px solid var(--line); padding-top: 6px; }
.mrf-burger[aria-expanded="true"] { background: var(--wall-soft); }

/* ---------- footer ---------- */
.mrf-foot { background: var(--wall-deep); color: var(--on-wall-muted); padding: 40px 0 32px; font-size: 15px; }
.mrf-foot__in { max-width: 1248px; margin: 0 auto; padding: 0 16px; display: grid; gap: 18px; }
.mrf-foot__name { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 21px/1 var(--serif); margin-bottom: 10px; }
.mrf-foot__name svg { width: 28px; height: 28px; }
.mrf-foot__nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.mrf-foot__nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; color: var(--on-wall); font-weight: 600; }
.mrf-foot__nav a:first-child { padding-left: 0; }
.mrf-foot a:hover { color: var(--amber); }
.mrf-foot__copy { color: #8fb0aa; }

.mrf-up { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 12px; border-radius: 22px; background: var(--wall); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px rgba(14, 47, 44, .3); transition: opacity .2s; }
.mrf-js .mrf-up { opacity: 0; pointer-events: none; }
.mrf-js .mrf-up.is-on { opacity: 1; pointer-events: auto; }
.mrf-up:hover { color: #fff; background: var(--wall-deep); }

/* ---------- components ---------- */
.mrf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 10px; font: 700 16px/1.2 var(--sans); text-decoration: none; text-align: center; }
.mrf-btn--amber { background: var(--amber); color: var(--ink); box-shadow: inset 0 -4px 0 var(--amber-edge); padding-bottom: 3px; }
.mrf-btn--amber:hover { background: #f5b84d; color: var(--ink); }
.mrf-btn--big { min-height: 58px; font-size: 18px; padding-left: 28px; padding-right: 28px; }
.mrf-btn--big .mrf-i { width: 22px; height: 22px; }
.mrf-btn--wall { background: var(--wall); color: #fff; }
.mrf-btn--wall:hover { background: var(--wall-deep); color: #fff; }
.mrf-btn--line { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); }
.mrf-btn--line:hover { border-color: var(--wall); color: var(--ink); }
.mrf-btn--small { min-height: 38px; font-size: 14.5px; padding: 0 14px; }
.mrf-btn--full { width: 100%; }

.mrf-fav__on { display: none; }
.mrf-fav[aria-pressed="true"] { border-color: var(--amber-edge); background: #fff6e3; }
.mrf-fav[aria-pressed="true"] .mrf-fav__on { display: inline; }
.mrf-fav[aria-pressed="true"] .mrf-fav__off { display: none; }
.mrf-fav[aria-pressed="true"] .mrf-i { fill: var(--amber); stroke: var(--amber-edge); }

.mrf-face { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--amber); color: var(--ink); font: 700 13.5px/1 var(--sans); }
.mrf-face--big { width: 64px; height: 64px; font: 700 22px/1 var(--serif); background: var(--wall); color: var(--amber); }

.mrf-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }

.mrf-head2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.mrf-more { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 20px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.mrf-more:hover { border-color: var(--wall); color: var(--ink); }

.mrf-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; padding: 8px 0 4px; font-size: 14.5px; color: var(--muted); }
.mrf-crumbs li { display: flex; align-items: center; }
.mrf-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.mrf-crumbs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 2px; color: var(--muted); font-weight: 600; }
.mrf-crumbs li[aria-current] { color: var(--ink); overflow-wrap: anywhere; }
.mrf-crumbs--dark ol, .mrf-crumbs--dark a { color: var(--on-wall-muted); }
.mrf-crumbs--dark li[aria-current] { color: var(--on-wall); }
.mrf-crumbs--dark li + li::before { color: #4d7a74; }
.mrf-crumbs--dark a:hover { color: #fff; }

.mrf-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.mrf-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line-strong); color: var(--ink); font-weight: 700; text-decoration: none; }
.mrf-chips a:hover { border-color: var(--wall); }
/* phone-only console strip on the home page (the header menu is behind the burger there) */
.mrf-chips--strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 0 16px; }
.mrf-chips--strip::-webkit-scrollbar { display: none; }
.mrf-chips--strip a { flex: none; background: var(--wall-soft); border-color: transparent; }

/* game card: cover 4:5 with system and size on it */
.mrf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.mrf-box { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--ink); text-decoration: none; }
.mrf-box__art { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #dfe6e4; box-shadow: 0 1px 2px rgba(14, 47, 44, .22), 0 6px 14px -8px rgba(14, 47, 44, .35); }
.mrf-box__img { width: 100%; height: 100%; object-fit: cover; }
.mrf-box__sys { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 4px; background: var(--wall); color: #fff; font-size: 13px; font-weight: 700; line-height: 20px; }
.mrf-box__size { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(14, 47, 44, .88); color: #fff; font: 600 13px/20px var(--mono); font-variant-numeric: tabular-nums; }
.mrf-box__name { font-weight: 700; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mrf-box__meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.mrf-box__reg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrf-box__fmt { flex: none; white-space: nowrap; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 13px; line-height: 19px; }
.mrf-box:hover .mrf-box__name { text-decoration: underline; text-underline-offset: 3px; }
.mrf-box:hover .mrf-box__art { box-shadow: 0 0 0 3px var(--amber), 0 6px 14px -8px rgba(14, 47, 44, .35); }
.mrf-box__art.is-nocover { background: var(--wall); display: grid; place-items: center; }
.mrf-box__ph { width: 64%; aspect-ratio: 1; border-radius: 50%; border: 10px solid #1f5650; display: grid; place-items: center; color: var(--on-wall-muted); font: 700 20px/1 var(--serif); }

/* compact row: thumb, name, system and size */
.mrf-lines { list-style: none; }
.mrf-lines li + li { border-top: 1px solid var(--line); }
.mrf-line { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-height: 64px; padding: 8px 0; color: var(--ink); text-decoration: none; }
.mrf-line__img { grid-row: 1 / 3; width: 44px; height: 55px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 2px rgba(14, 47, 44, .25); }
.mrf-line__name { font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; align-self: end; }
.mrf-line__meta { font-size: 13.5px; color: var(--muted); align-self: start; }
.mrf-line:hover .mrf-line__name { text-decoration: underline; }

/* forms */
.mrf-form { display: grid; gap: 6px; max-width: 560px; }
.mrf-form label { font-weight: 700; font-size: 15px; margin-top: 10px; }
.mrf-form input:not([type="checkbox"]), .mrf-form select, .mrf-form textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 16px; }
.mrf-form textarea { min-height: 120px; resize: vertical; }
.mrf-form input:focus, .mrf-form select:focus, .mrf-form textarea:focus { outline: none; border-color: var(--wall); box-shadow: 0 0 0 3px rgba(242, 170, 46, .45); }
.mrf-form [aria-invalid="true"] { border-color: #b3361f; }
.mrf-form .mrf-btn { margin-top: 16px; justify-self: start; }
.mrf-form .mrf-btn--full { justify-self: stretch; }
.mrf-check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 600 !important; font-size: 15px; cursor: pointer; }
.mrf-check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--wall); flex: none; }
.mrf-hint { font-size: 14px; color: var(--muted); }
.mrf-fielderr { font-size: 14px; color: #a3261b; font-weight: 600; }
.mrf-err { color: #a3261b; font-weight: 600; }
.mrf-msg { padding: 12px 16px; border-radius: 10px; font-weight: 600; margin: 14px 0; }
.mrf-msg--ok { background: #e1f1eb; color: #134a3f; border: 1px solid #a9d6c6; }
.mrf-msg--bad { background: #fcebe7; color: #8a2216; border: 1px solid #efb9ab; }
.mrf-msg[hidden] { display: none; }

/* modal (opens by :target without JS, .is-open with JS) */
.mrf-modal { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 16px; }
.mrf-modal:target, .mrf-modal.is-open { display: grid; }
.mrf-modal__bg { position: absolute; inset: 0; background: rgba(8, 26, 24, .66); }
.mrf-modal__card { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 16px; padding: 28px 24px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.mrf-modal__card--file { border-top: 8px solid var(--amber); }
.mrf-modal__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.mrf-modal__x:hover { background: var(--paper); }
.mrf-modal__t { font: 700 23px/1.25 var(--serif); padding-right: 40px; margin-bottom: 12px; }
.mrf-modal__card > p + p, .mrf-modal__card > p + .mrf-btn { margin-top: 12px; }
.mrf-modal__sub { margin-top: 20px; font-weight: 700; }
.mrf-file { display: grid; gap: 0; margin: 0 0 16px; }
.mrf-file div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mrf-file dt { color: var(--muted); }
.mrf-file dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.mrf-wait { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--wall-soft); font-weight: 600; margin-bottom: 14px; }
.mrf-wait__ring { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--amber); display: grid; place-items: center; background: #fff; }
.mrf-wait__n { font: 700 20px/1 var(--serif); }
.mrf-wait__go { width: 100%; min-height: 54px; }
.mrf-modal.is-wait .mrf-wait__go { display: none; }
.mrf-modal.is-ready .mrf-wait { display: none; }

/* numbered steps: a real sequence, so numbers are allowed */
.mrf-steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.mrf-steps li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; }
.mrf-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--wall); color: var(--amber); display: grid; place-items: center; font: 700 16px/1 var(--serif); }
.mrf-steps a { display: inline-block; padding: 2px 0; }
.mrf-steps--tight { gap: 10px; font-size: 15px; }
.mrf-steps--tight li { padding-left: 40px; }
.mrf-steps--tight li::before { width: 28px; height: 28px; font-size: 14px; }

.mrf-pending { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #fdecc8; color: #6b4a06; font-size: 13px; font-weight: 700; }

.mrf-empty { display: flex; align-items: center; gap: 14px; padding: 22px; border: 2px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-weight: 600; }
.mrf-empty .mrf-i { width: 28px; height: 28px; color: var(--amber-edge); }
.mrf-empty[hidden] { display: none; }

/* ---------- home ---------- */
.mrf-intro { padding-top: 22px; display: grid; gap: 14px; }
.mrf-intro h1 { font-size: 31px; letter-spacing: -.01em; }
.mrf-lead { font-size: 17px; line-height: 1.6; color: #2c3b39; }
.mrf-byline { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 12px; font-size: 15px; color: var(--muted); }
.mrf-nowrap { white-space: nowrap; }

/* the bookcase: boxes of real proportions standing on an amber shelf */
.mrf-case { margin-top: 24px; background: var(--wall); color: var(--on-wall); padding: 24px 0 30px; }
.mrf-case__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mrf-case__head h2 { color: #fff; }
.mrf-case__shelf { list-style: none; display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px; }
.mrf-case__shelf::-webkit-scrollbar { display: none; }
.mrf-slot { flex: 0 0 124px; scroll-snap-align: start; min-width: 0; }
.mrf-slot__a { display: block; color: var(--on-wall); text-decoration: none; }
.mrf-slot__stand { height: 196px; display: flex; align-items: flex-end; justify-content: center; padding: 0 10px; border-bottom: 12px solid var(--amber); box-shadow: 0 7px 0 var(--amber-edge); }
.mrf-slot__img { width: 100%; max-height: 100%; border-radius: 2px 3px 3px 2px; box-shadow: 5px 0 12px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mrf-slot__img.is-wide { aspect-ratio: 1; object-fit: cover; }
.mrf-slot__cap { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; padding: 18px 8px 0 10px; }
.mrf-slot__n { grid-row: 1 / 3; font: italic 400 28px/1 var(--serif); color: var(--amber); }
.mrf-slot__name { font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mrf-slot__sub { font-size: 13.5px; color: var(--on-wall-muted); margin-top: 2px; }
.mrf-slot__sub .mrf-num { display: block; font-size: 13px; }
.mrf-slot__a:hover .mrf-slot__name { text-decoration: underline; }
.mrf-slot__a:hover .mrf-slot__img { outline: 3px solid var(--amber); outline-offset: 2px; }
.mrf-slot--gap .mrf-slot__cap { display: block; }
.mrf-slot--gap .mrf-slot__name { color: var(--amber); }
.mrf-slot__empty { width: 100%; height: 140px; border: 2px dashed #4f807a; border-radius: 4px; display: grid; place-items: center; color: var(--amber); }
.mrf-slot__empty .mrf-i { width: 34px; height: 34px; }

.mrf-cols { display: grid; gap: 16px; }
.mrf-col { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; display: flex; flex-direction: column; }
.mrf-col h3 { font-size: 21px; font-weight: 700; padding-bottom: 8px; border-bottom: 3px solid var(--amber); align-self: flex-start; margin-bottom: 6px; }
.mrf-col .mrf-lines { flex: 1; }
.mrf-col .mrf-more { margin-top: 12px; align-self: flex-start; }

.mrf-story { display: grid; gap: 20px; }
.mrf-story__text { max-width: 68ch; }
.mrf-story__text p { font-size: 17px; line-height: 1.65; margin-top: 12px; }
.mrf-story__text h3 { margin-top: 24px; }
.mrf-note-card { padding: 26px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; align-self: start; }
.mrf-note-card__name { font: 700 21px/1.2 var(--serif); margin-top: 8px; }
.mrf-note-card__where { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.mrf-note-card .mrf-btn { margin-top: 16px; }

/* ---------- console hub ---------- */
.mrf-band { background: var(--wall); color: var(--on-wall); padding: 6px 0 28px; }
.mrf-band__in { display: grid; gap: 20px; }
.mrf-band h1 { color: #fff; font-size: 30px; margin: 6px 0 10px; }
.mrf-band p { color: var(--on-wall); font-size: 16.5px; max-width: 62ch; }
.mrf-band__shelf { list-style: none; display: flex; align-items: flex-end; gap: 10px; padding: 0 12px; border-bottom: 10px solid var(--amber); box-shadow: 0 6px 0 var(--amber-edge); justify-self: start; }
.mrf-mini { display: block; }
.mrf-mini__img { width: 56px; border-radius: 2px; box-shadow: 4px 0 10px rgba(0, 0, 0, .35); }
.mrf-mini:hover .mrf-mini__img { outline: 3px solid var(--amber); outline-offset: 2px; }
.mrf-filter { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mrf-filter__g { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mrf-filter__g span { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.mrf-filter__g a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 18px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.mrf-filter__g a:hover { border-color: var(--wall); }
.mrf-filter__g a[aria-current="page"] { background: var(--wall); border-color: var(--wall); color: #fff; }
.mrf-count { margin: 18px 0 14px; color: var(--muted); font-weight: 600; }
.mrf-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 36px 0 0; }
.mrf-pages a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.mrf-pages a:hover { border-color: var(--wall); }
.mrf-pages a[aria-current="page"] { background: var(--wall); border-color: var(--wall); color: #fff; }
.mrf-prose--after { margin-top: 44px; }

/* ---------- game ---------- */
.mrf-game {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); column-gap: 14px; row-gap: 14px; margin-top: 6px;
  grid-template-areas: "h1 h1" "tags tags" "niche quick" "act act" "pills pills" "added added";
}
.mrf-game__h1 { grid-area: h1; font-size: 29px; letter-spacing: -.01em; }
.mrf-tags { grid-area: tags; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.mrf-tags li { padding: 3px 10px; border-radius: 4px; background: var(--wall-soft); font-size: 14px; font-weight: 700; color: var(--wall); }
.mrf-tags li.is-note { background: #fdecc8; color: #6b4a06; }
.mrf-niche { grid-area: niche; align-self: start; }
.mrf-niche__wall { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-start; padding: 16px 12px 0; background: var(--wall); border-radius: 10px 10px 0 0; border-bottom: 10px solid var(--amber); box-shadow: 0 6px 0 var(--amber-edge); }
.mrf-niche__disc { position: absolute; width: 70%; right: -26%; top: 10%; }
.mrf-niche__cover { position: relative; width: 80%; border-radius: 2px 3px 3px 2px; box-shadow: 8px 0 18px rgba(0, 0, 0, .4); }
.mrf-quick { grid-area: quick; margin: 0; display: grid; gap: 8px; align-content: start; }
.mrf-quick div { min-width: 0; }
.mrf-quick dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.mrf-quick dd { margin: 0; font-weight: 700; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.mrf-act { grid-area: act; display: flex; flex-wrap: wrap; gap: 10px; }
.mrf-act .mrf-grab { flex: 1 1 100%; }
.mrf-act .mrf-fav { flex: 1 1 auto; min-height: 50px; }
.mrf-pills { grid-area: pills; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.mrf-pills a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.mrf-pills a:hover { border-color: var(--wall); }
.mrf-pills .mrf-i { width: 18px; height: 18px; color: var(--link); }
.mrf-added { grid-area: added; font-size: 14px; color: var(--muted); }
.mrf-nofile { flex: 1 1 100%; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: #fff4dc; border: 1.5px solid #e8c47a; }
.mrf-nofile .mrf-i { width: 24px; height: 24px; color: var(--amber-edge); margin-top: 1px; }
.mrf-nofile p { font-size: 15.5px; }
.mrf-nofile a { display: inline-flex; align-items: center; min-height: 32px; margin-top: 2px; font-weight: 700; }

.mrf-body { display: grid; gap: 32px; margin-top: 36px; }
.mrf-body__main { min-width: 0; }
.mrf-sec { margin-top: 40px; }
.mrf-sec:first-child { margin-top: 0; }
.mrf-body__main > .mrf-prose { margin-top: 44px; }
.mrf-body__main > .mrf-prose:first-child { margin-top: 0; }
.mrf-sec > h2, .mrf-talk__bar h2 { margin-bottom: 14px; }

.mrf-film { margin: 0; }
.mrf-film__stage { max-width: 640px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--wall-deep); }
.mrf-film__big { width: 100%; height: 100%; object-fit: cover; }
.mrf-film__strip { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.mrf-film__strip::-webkit-scrollbar { display: none; }
.mrf-film__pick { flex: none; width: 104px; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; background: none; opacity: .75; }
.mrf-film__pick.is-on, .mrf-film__pick:hover { border-color: var(--amber); opacity: 1; }
.mrf-film__thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mrf-film.is-single .mrf-film__strip, .mrf-film.is-none { display: none; }

.mrf-prose { max-width: 68ch; }
.mrf-prose > * + * { margin-top: 14px; }
.mrf-prose p, .mrf-prose li { font-size: 17px; line-height: 1.65; }
.mrf-prose h2 { margin-top: 36px; }
.mrf-prose h2:first-child { margin-top: 0; }
.mrf-prose h3 { margin-top: 26px; }
.mrf-prose ul, .mrf-prose ol { padding-left: 22px; }
.mrf-prose li + li { margin-top: 6px; }
.mrf-prose li::marker { color: var(--amber-edge); }
.mrf-prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--amber); }
.mrf-prose blockquote p { font: italic 400 21px/1.5 var(--serif); color: var(--wall); }
.mrf-prose table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; border-radius: 10px; overflow: hidden; }
.mrf-prose caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.mrf-prose th, .mrf-prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.mrf-prose thead th { background: var(--wall-soft); font-size: 14.5px; }

.mrf-howto { background: var(--wall-soft); border-radius: 14px; padding: 22px 20px; }
.mrf-howto .mrf-steps li { font-size: 16.5px; }
.mrf-howto__more { margin-top: 16px; font-size: 15.5px; }

.mrf-sheet { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15.5px; }
.mrf-sheet th, .mrf-sheet td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.mrf-sheet tr:last-child th, .mrf-sheet tr:last-child td { border-bottom: 0; }
.mrf-sheet th { width: 38%; color: var(--muted); font-weight: 600; }
.mrf-sheet td { font-weight: 700; overflow-wrap: anywhere; }

.mrf-faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.mrf-faq details + details { margin-top: 8px; }
.mrf-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 12px 18px; font-weight: 700; cursor: pointer; }
.mrf-faq summary::-webkit-details-marker { display: none; }
.mrf-faq summary::after { content: "+"; font: 400 26px/1 var(--serif); color: var(--amber-edge); }
.mrf-faq details[open] summary::after { content: "\2013"; }
.mrf-faq details p { padding: 0 18px 16px; font-size: 16px; }

.mrf-older { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mrf-older li + li { border-top: 1px solid var(--line); }
.mrf-older a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; color: var(--ink); font-weight: 700; text-decoration: none; }
.mrf-older a:hover span:first-child { text-decoration: underline; }
.mrf-older__f { font-weight: 600; font-size: 14px; color: var(--muted); }

.mrf-talk__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.mrf-talk__bar h2 { margin-bottom: 0; }
.mrf-talk__n { display: inline-block; min-width: 30px; padding: 0 8px; border-radius: 14px; background: var(--wall); color: #fff; font: 700 15px/26px var(--sans); text-align: center; vertical-align: 4px; }
.mrf-seg { display: inline-flex; padding: 3px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.mrf-seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: none; font-weight: 700; font-size: 14.5px; }
.mrf-seg button[aria-pressed="true"] { background: var(--wall); color: #fff; }
.mrf-talk__form { max-width: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 18px 18px; margin-bottom: 10px; }
.mrf-talk__guest { padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.mrf-c { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.mrf-c header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.mrf-c header time { font-size: 13.5px; color: var(--muted); }
.mrf-c p { font-size: 16px; }
.mrf-c.is-pending { background: #fff8e9; border: 1px dashed #e8c47a; border-radius: 12px; padding: 14px; }
.mrf-c--sophie .mrf-face { background: var(--wall); color: var(--amber); }
.mrf-c__do { display: flex; gap: 6px; margin-top: 6px; }
.mrf-c__do button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 18px; background: none; color: var(--muted); font-weight: 700; font-size: 14px; }
.mrf-c__do button:hover { background: #fff; color: var(--ink); }
.mrf-c__do .mrf-i { width: 18px; height: 18px; }
.mrf-replies .mrf-c { border-top: 0; padding-bottom: 4px; padding-left: 14px; border-left: 3px solid var(--wall-soft); margin-top: 10px; }

.mrf-body__side { display: grid; gap: 16px; align-content: start; }
.mrf-filecard { padding: 20px; border-top: 6px solid var(--amber); }
.mrf-filecard__t { font: 700 20px/1.2 var(--serif); margin-bottom: 6px; }
.mrf-filecard .mrf-btn { width: 100%; }
.mrf-side-me { display: flex; gap: 12px; padding: 16px; font-size: 15px; color: #2c3b39; }
.mrf-side-me .mrf-face { background: var(--wall); color: var(--amber); }
.mrf-side-like { padding: 18px 18px 8px; }
.mrf-side-like h2 { font-size: 20px; margin-bottom: 6px; }
.mrf-related { margin-top: 56px; }

/* ---------- about / help / dmca ---------- */
.mrf-paper { max-width: 980px; }
.mrf-paper > h1 { margin: 8px 0 10px; }
.mrf-paper > .mrf-lead { max-width: 64ch; margin-bottom: 26px; }
.mrf-paper__head { display: flex; gap: 18px; align-items: center; margin: 10px 0 30px; }
.mrf-paper__head .mrf-lead { margin-top: 6px; }
.mrf-paper .mrf-form { margin-top: 10px; }
.mrf-paper__cols { display: grid; gap: 24px; }
.mrf-toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; align-self: start; }
.mrf-toc__t { font: 700 18px/1.2 var(--serif); margin-bottom: 6px; }
.mrf-toc ol { padding-left: 20px; }
.mrf-toc a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }
.mrf-form--two { max-width: 760px; }

/* ---------- sign-in pages ---------- */
.mrf-door { display: grid; gap: 24px; padding-top: 28px; max-width: 1040px; }
.mrf-door__card { padding: 26px 22px; }
.mrf-door__card h1 { font-size: 27px; margin-bottom: 8px; }
.mrf-door__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 16px; }
.mrf-door__links a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 700; }
.mrf-door__side { display: none; }

/* ---------- account ---------- */
.mrf-me { padding-top: 22px; }
.mrf-me__head { display: flex; align-items: center; gap: 16px; }
.mrf-me__head p { color: var(--muted); margin-top: 4px; }
.mrf-tabs { display: flex; gap: 4px; margin: 22px 0 24px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.mrf-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 0 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); font-weight: 700; text-decoration: none; }
.mrf-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }
.mrf-me__h2 { margin-bottom: 16px; }
.mrf-hold { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mrf-feed { list-style: none; display: grid; gap: 10px; max-width: 760px; }
.mrf-feed li { padding: 14px 18px; }
.mrf-feed li.is-new { border-left: 5px solid var(--amber); }
.mrf-feed__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.mrf-feed__top a { font-weight: 700; display: inline-flex; align-items: center; min-height: 32px; }
.mrf-feed__top time { font-size: 14px; color: var(--muted); }
.mrf-feed li > p + p { margin-top: 6px; }
.mrf-form--narrow { max-width: 460px; }

/* ---------- search ---------- */
.mrf-results h1 { font-size: 30px; }
.mrf-results .mrf-count { margin: 8px 0 0; }
.mrf-miss { padding: 26px; border: 2px dashed var(--line-strong); border-radius: 14px; text-align: center; }
.mrf-miss[hidden] { display: none; }
.mrf-miss__t { font: 700 21px/1.3 var(--serif); }
.mrf-miss .mrf-btn { margin-top: 14px; }

/* ---------- 404 / 500 ---------- */
.mrf-lost { max-width: 720px; text-align: center; padding-top: 40px; }
.mrf-lost__shelf { display: inline-flex; align-items: flex-end; gap: 8px; padding: 0 16px; border-bottom: 10px solid var(--amber); box-shadow: 0 6px 0 var(--amber-edge); margin-bottom: 30px; }
.mrf-lost__img { width: 64px; border-radius: 2px; box-shadow: 4px 0 10px rgba(14, 47, 44, .3); }
.mrf-lost__gap { width: 72px; height: 92px; border: 2px dashed var(--line-strong); border-radius: 4px; display: grid; place-items: center; font: 700 20px/1 var(--serif); color: var(--amber-edge); }
.mrf-lost p { margin-top: 10px; font-size: 17px; }
.mrf-lost h1 { font-size: 30px; }
.mrf-seek--page { max-width: 480px; margin: 24px auto 0; }
.mrf-lost .mrf-chips { justify-content: center; }

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .mrf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mrf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrf-game { grid-template-columns: 200px minmax(0, 1fr); }
  .mrf-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .mrf-act .mrf-grab { flex: 0 1 auto; }
  .mrf-mini__img { width: 72px; }
  .mrf-form--two { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .mrf-form--two > div { display: grid; gap: 6px; align-content: start; }
  .mrf-form__wide { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .mrf-wrap, .mrf-top__in, .mrf-foot__in, .mrf-extra { padding-left: 24px; padding-right: 24px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .mrf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
  .mrf-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 40px; padding-top: 34px; }
  .mrf-intro h1 { font-size: 40px; }
  .mrf-intro .mrf-chips--strip { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .mrf-case { padding: 30px 0 34px; }
  .mrf-band__in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
  .mrf-band h1 { font-size: 38px; }
  .mrf-mini__img { width: 88px; }
  .mrf-game { grid-template-columns: 300px minmax(0, 1fr); column-gap: 36px; row-gap: 16px; margin-top: 10px;
    grid-template-areas: "niche h1" "niche tags" "niche quick" "niche act" "niche pills" "added ."; grid-template-rows: auto auto auto auto 1fr auto; }
  .mrf-game__h1 { font-size: 38px; align-self: end; }
  .mrf-niche__wall { padding: 34px 30px 0; min-height: 330px; border-radius: 14px 14px 0 0; border-bottom-width: 14px; box-shadow: 0 8px 0 var(--amber-edge); }
  .mrf-niche__cover { width: 72%; max-width: 240px; }
  .mrf-niche__disc { width: 66%; right: -14%; top: 50%; transform: translateY(-50%); margin-top: -10px; }
  .mrf-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
  .mrf-quick div { padding: 14px 16px; }
  .mrf-quick div + div { border-left: 1px solid var(--line); }
  .mrf-quick dd { font-size: 17px; margin-top: 2px; }
  .mrf-act .mrf-fav { flex: 0 0 auto; min-height: 58px; padding: 0 22px; }
  .mrf-added { padding-top: 22px; }
  .mrf-howto { padding: 28px 30px; }
  .mrf-paper__cols { grid-template-columns: 230px minmax(0, 1fr); gap: 44px; }
  .mrf-toc { position: sticky; top: 92px; }
  .mrf-door { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); align-items: start; gap: 40px; padding-top: 44px; }
  .mrf-door__side { display: block; background: var(--wall); border-radius: 16px; padding: 44px 36px 32px; color: var(--on-wall); }
  .mrf-door__shelf { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 0 16px; border-bottom: 12px solid var(--amber); box-shadow: 0 7px 0 var(--amber-edge); }
  .mrf-door__img { width: 92px; border-radius: 2px; box-shadow: 5px 0 12px rgba(0, 0, 0, .35); }
  .mrf-door__side p { margin-top: 28px; font: italic 400 19px/1.5 var(--serif); text-align: center; }
  .mrf-story { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .mrf-foot__in { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 48px; }
  .mrf-foot__about { max-width: 46ch; }
  .mrf-foot__note, .mrf-foot__copy { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  :root { --head-h: 68px; }
  .mrf-top__in { grid-template-columns: auto minmax(0, 1fr) 300px auto; grid-template-areas: "logo sys seek acct"; column-gap: 28px; min-height: 68px; padding-top: 0; padding-bottom: 0; }
  .mrf-sys, .mrf-js .mrf-sys { display: flex; flex-wrap: nowrap; padding: 0; gap: 2px; }
  .mrf-chips--strip { display: none; }
  .mrf-sys a { background: none; min-height: 40px; padding: 0 12px; border-radius: 20px; font-size: 16px; }
  .mrf-sys a:hover { background: var(--wall-soft); }
  .mrf-sys a[aria-current="page"] { background: var(--wall); color: #fff; }
  .mrf-seek { margin: 0; }
  .mrf-burger, .mrf-extra, .mrf-js .mrf-top.is-open .mrf-extra { display: none; }
  .mrf-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mrf-case__shelf { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); row-gap: 34px; overflow: visible; margin: 0; padding: 0; }
  .mrf-slot__stand { height: 226px; padding: 0 15px; border-bottom-width: 14px; box-shadow: 0 8px 0 var(--amber-edge); }
  .mrf-slot__cap { padding: 20px 12px 0 14px; }
  .mrf-slot__empty { height: 166px; }
  .mrf-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
  .mrf-body__side { position: sticky; top: 92px; }
  .mrf-game { grid-template-columns: 360px minmax(0, 1fr); column-gap: 44px; }
  .mrf-niche__cover { max-width: 250px; }
}

@media (min-width: 1200px) {
  .mrf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mrf-grid--8 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 24px 16px; }
  .mrf-grid--holds { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- theme: pieces the core draws or the macket did not need ---------- */
/* download window: the core shows it (hidden -> .is-open) and holds the file link (.is-held) while counting */
.mrf-modal[hidden] { display: none; }
.mrf-modal.is-open { display: grid; }
.mrf-wait__go.is-held { display: none; }
.mrf-modal:has(.mrf-wait__go:not(.is-held)) .mrf-wait { display: none; }
.mrf-err:empty { display: none; }
.mrf-dlerr { margin-top: 10px; }
.mrf-modal__card > .mrf-wait__go { margin-top: 0; }

/* signed-in header block (rendered by the core script) */
.mrf-acct { position: relative; }
.mrf-bell__btn { font-size: 0; color: transparent; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172322' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16v-5a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 20.5h4'/%3E%3C/svg%3E") center / 20px no-repeat; }
.mrf-bell__btn .mrf-bell__n { font-size: 13px; color: var(--ink); }
.mrf-acct > .mrf-bell__drop { top: 48px; }
.mrf-bell__drop small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.mrf-bell__drop p { padding: 10px 12px; color: var(--muted); }
.mrf-acct__who { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mrf-acct__who .mrf-face { width: 40px; height: 40px; font-size: 14px; }
button.mrf-acct__btn { border: 0; font: 700 15px/1 var(--sans); cursor: pointer; }
@media (max-width: 599px) { .mrf-acct__who { font-size: 0; gap: 0; } .mrf-acct__who .mrf-face { font-size: 14px; } }

/* comments: sort, likes, pending comment drawn by the core */
.mrf-seg button.is-on { background: var(--wall); color: #fff; }
.mrf-c__do button.is-on { color: var(--amber-edge); }
.mrf-c__do button.is-on .mrf-i { fill: var(--amber); stroke: var(--amber-edge); }
.mrf-c.is-pending > div > .mrf-c__name { margin-right: 8px; }
.mrf-c__when { font-size: 13.5px; color: var(--muted); margin-right: 8px; }
.mrf-c__text { margin-top: 4px; font-size: 16px; }
.mrf-talk__form .mrf-trap { position: absolute; }
.mrf-talk__guest:has(form) { padding: 0; border: 0; background: none; }
.mrf-clist > .mrf-empty { margin-top: 4px; }

/* game without a cover: a disc placeholder stands in the niche */
.mrf-niche__ph { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--wall-deep); border: 1px solid #1f5650; }
.mrf-niche__ph .mrf-box__ph { width: 70%; font-size: 22px; }
/* rows and shelf boxes without a cover */
.mrf-line__ph { display: block; background: var(--wall); }
.mrf-slot__ph { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--wall-deep); border: 2px solid #1f5650; color: var(--on-wall-muted); font: 700 16px/1 var(--serif); }

/* text that comes from the database */
.mrf-lead > p + p, .mrf-band__lead > p + p { margin-top: 10px; }
.mrf-story__text h2 { font-size: 23px; margin-top: 24px; }
.mrf-story__text h2:first-child { margin-top: 0; }
.mrf-howto .mrf-steps { margin-top: 4px; }
.mrf-pages__gap { display: inline-flex; align-items: center; min-width: 24px; height: 46px; justify-content: center; color: var(--muted); font-weight: 700; }
.mrf-paper > .mrf-prose { margin-top: 10px; }
.mrf-contact, .mrf-dmca { margin-top: 28px; }
.mrf-dmca h2 { margin-bottom: 6px; }

@media (min-width: 1100px) {
  .mrf-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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