/* v2.0 (package P2): the umbrella site's browsing pages on the cream ground: the hub, every game's home, the set, word,
   rules and mystery pages, the TV guide, feedback, 404, privacy and terms. Built by tools/rf_pages.py; the page's column is
   <div class="page gn rf-pages rf-cream">. Components and tokens are the design system's (www/css/site.css, the rf- layer;
   reports/p1.md): this file only lays them out and re-colors the v1 content classes (.lede, .steps, .item-grid, .tv-help...)
   for the cream ground. Screen only: printouts (word cards, score sheets, worksheets, party kits) are untouched. */
@media screen {

body:has(> .page.rf-pages) { background: var(--rf-cream); color: var(--rf-ink); }
.page.rf-pages {
  max-width: 1080px; padding: max(12px, env(safe-area-inset-top, 0px)) 20px 40px; min-height: 100vh;
  --rf-gap: 28px;
}
.rf-pages main { display: block; }
.rf-pages h1, .rf-pages h2, .rf-pages h3 { color: var(--rf-ink); font-stretch: 100%; letter-spacing: -0.02em; }
.rf-pages h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; margin: 14px 0 10px; }
.rf-pages h2 { font-size: clamp(1.45rem, 4.6vw, 1.8rem); line-height: 1.15; margin: 36px 0 10px; }
.rf-pages h3 { font-size: 1.2rem; margin: 22px 0 6px; }
.rf-pages p, .rf-pages li { color: var(--rf-ink); }
.rf-pages .lede { color: var(--rf-muted-cream); font-size: 1.15rem; max-width: 42em; }
.rf-pages .note, .rf-pages .game-facts, .rf-pages .crumbs { color: var(--rf-muted-cream); }
.rf-pages .crumbs { font-size: 0.95rem; font-weight: 600; margin: 4px 0 0; }
.rf-pages .crumbs a { color: var(--rf-link-cream); }
.rf-pages a:not([class]) { color: var(--rf-link-cream); font-weight: 700; text-underline-offset: 2px; }
.rf-pages a:not([class]):hover { color: var(--rf-ink); }
.rf-pages .draft-note { background: var(--rf-yellow); border: 2px solid var(--rf-ink); }
.rf-pages .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- The footer (shell(): .site-foot) on cream. v2.20: the header's rules moved to site.css, for Roomful Trivia's pages too ---------- */
.rf-pages .site-foot { border-top: 2px solid var(--rf-line-cream); color: var(--rf-muted-cream); gap: 6px 18px; margin-top: 48px; }
.rf-pages .site-foot a { color: var(--rf-link-cream); display: inline-flex; align-items: center; min-height: 44px; }
.rf-pages .site-foot a.tip-link { color: var(--rf-ink); }
.rf-pages .site-foot .social a { color: var(--rf-ink); min-width: 44px; justify-content: center; }
.rf-pages .site-foot .social a:hover, .rf-pages .site-foot a:hover { color: var(--rf-ink); }
/* ---------- A home's first screen (rf_pages.home_top) ---------- */
.rf-home-top { display: flex; flex-direction: column; gap: 20px; }
.rf-home-lead { display: flex; flex-direction: column; gap: 16px; }
/* The join box: a blue card with the code input and the Join key (canvas 03 "Got a code?"). */
.rf-joinbox {
  position: relative; overflow: hidden; background: var(--rf-blue); color: var(--rf-white); border: var(--rf-line) solid var(--rf-outline);
  border-radius: var(--rf-r-card); box-shadow: var(--rf-press); padding: 20px 18px 18px;
  --rf-fg: var(--rf-white); --rf-muted: var(--rf-muted-room); --rf-focus: var(--accent); --rf-error: #ffe0ea; --rf-link: var(--accent);
}
.rf-joinbox::before, .rf-joinbox::after { content: ""; position: absolute; pointer-events: none; opacity: 0.18; }
.rf-joinbox::before { width: 150px; height: 150px; right: -44px; top: -50px; border-radius: 50%; background: var(--rf-yellow); }
.rf-joinbox::after { width: 90px; height: 90px; left: -34px; bottom: -40px; background: var(--rf-green); transform: rotate(45deg); }
.rf-join, .rf-pages .rf-join.join-strip {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 0; padding: 0; max-width: none;
  border: 0; border-radius: 0; background: none;
}
.rf-pages .rf-join-label { color: var(--rf-white); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.rf-join-row { display: flex; flex-direction: column; gap: 12px; }
.rf-pages .rf-join .rf-code-input {
  width: 100%; min-height: 72px; margin: 0; background: var(--rf-cream); color: var(--rf-ink); border: var(--rf-line) solid var(--rf-ink);
  border-radius: 18px; font-size: 44px; font-weight: 800; letter-spacing: 0.3em; padding: 0 0 0 0.3em; text-align: center; box-shadow: none;
  font-stretch: 100%;
}
.rf-pages .rf-join .rf-code-input::placeholder { color: #b9b2a3; }
.rf-pages .rf-join .rf-code-input:focus { outline: 3px solid var(--rf-yellow); outline-offset: 2px; }
.rf-join-go { width: 100%; }
.rf-pages .rf-join .rf-error { margin: 0; color: #ffe0ea; font-weight: 700; }
.rf-pages .rf-join .rf-error:empty { display: none; }
.rf-join-pick { display: flex; flex-direction: column; gap: 10px; }
.rf-join-pick[hidden] { display: none; }
.rf-pages .rf-join-pick-q { margin: 0; color: var(--rf-white); font-weight: 800; }
.rf-join-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rf-join-games .rf-gamechip { width: 100%; min-height: 52px; font-size: 18px; }
@media (min-width: 420px) {
  .rf-join-row { flex-direction: row; }
  .rf-join-go { width: auto; flex: none; min-width: 120px; }
  .rf-pages .rf-join .rf-code-input { flex: 1 1 auto; min-width: 0; }
}

/* The main buttons: an icon square, a title and a few words (canvas 04 "Host a game" / "Play solo"). */
.rf-home-actions { display: flex; flex-direction: column; gap: 12px; }
.rf-bigbtn { justify-content: flex-start; gap: 14px; min-height: 76px; padding: 10px 16px; text-align: left; border-radius: 24px; }
.rf-bigbtn-icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; border: var(--rf-line) solid var(--rf-ink); border-radius: 16px;
  background: var(--rf-cream);
}
.rf-bigbtn-icon .rf-icon { width: 28px; height: 28px; }
.rf-bigbtn-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-bigbtn-title { font-size: 22px; font-weight: 800; line-height: 1.1; }
.rf-bigbtn-sub { font-size: 15px; font-weight: 600; color: var(--rf-muted-cream); line-height: 1.2; }
.rf-btn--primary .rf-bigbtn-sub { color: var(--rf-ink); }

/* Picture tiles (canvas 03 "Start a game"): two across on a phone, three or four on wider screens. */
.rf-tiles-sec { display: flex; flex-direction: column; gap: 12px; }
.rf-pages .rf-tiles-title { margin: 6px 0 0; font-size: 26px; }
.rf-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rf-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; min-height: 148px; height: 100%;
  padding: 14px; border: var(--rf-line) solid var(--rf-outline); border-radius: 24px; background: var(--rf-tile, var(--rf-game, var(--rf-yellow)));
  color: var(--rf-ink); box-shadow: var(--rf-press); text-decoration: none;
  transition: transform var(--rf-dur-press) ease-out, box-shadow var(--rf-dur-press) ease-out;
}
a.rf-tile:hover { color: var(--rf-ink); }
.rf-tile:active { transform: translateY(var(--rf-drop)); box-shadow: var(--rf-pressed); }
.rf-tile:focus-visible { outline: 3px solid var(--rf-link-cream); outline-offset: 3px; }
.rf-tile-deco { position: absolute; right: -18px; bottom: -18px; width: 86px; height: 86px; fill: var(--rf-white); stroke: none; opacity: 0.35; pointer-events: none; }
.rf-tile-icon {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: var(--rf-line) solid var(--rf-ink);
  border-radius: 14px; background: var(--rf-cream);
}
.rf-tile-icon .rf-icon { width: 26px; height: 26px; }
.rf-tile-name { position: relative; margin-top: auto; padding-top: 14px; font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; }
.rf-tile-sub { position: relative; font-size: 15px; font-weight: 600; line-height: 1.2; }
@media (max-width: 340px) { .rf-tile-name { font-size: 18px; } }

/* "Today's Dailies" (#rf-today, filled by P7's script) and the four facts. */
.rf-today { display: flex; flex-direction: column; gap: 12px; margin-top: var(--rf-gap); }
.rf-today[hidden] { display: none; }
.rf-today .d-page { margin: 0; padding: 0; max-width: none; }   /* P7's strip (build_daily.today_strip) inside the home's column */
/* v2.3.1: the strip is embedded, not a daily page: no 100vh floor (daily.css .d-page), which left an empty band one screen
   tall under it, and no mid-word breaks. The eight dailies are a grid (2 columns on phones, 3 on tablets, 4 from 900 px):
   each tile is the icon with its done tick or Continue badge on top and the name under it, on one or two lines. */
.rf-today .d-page.d-today { min-height: 0; overflow-wrap: normal; }
.rf-today .d-today .d-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px 10px; overflow: visible; padding: 0 0 5px; }
.rf-today .d-today .d-list > li { display: flex; min-width: 0; }
.rf-today .d-today .d-tile {
  flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon state" "text text";
  align-items: center; align-content: start; gap: 10px 8px; min-width: 0; min-height: 100px; padding: 12px;
}
.rf-today .d-today .d-tile-icon { grid-area: icon; }
.rf-today .d-today .d-tile-text { grid-area: text; }
.rf-today .d-today .d-tile-name { font-size: 18px; line-height: 1.15; overflow-wrap: normal; word-break: normal; hyphens: none; }
.rf-today .d-today .d-tile-done, .rf-today .d-today .d-tile-go { grid-area: state; justify-self: end; }
.rf-today .d-today .d-tile-done { width: 36px; height: 36px; }
.rf-today .d-today .d-tile-go { min-height: 32px; padding: 0 10px; border-radius: 10px; font-size: 15px; }
@media (min-width: 600px) { .rf-today .d-today .d-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .rf-today .d-today .d-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rf-pages .rf-today h2 { margin: 0; font-size: 26px; }
.rf-facts { list-style: none; margin: var(--rf-gap) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rf-facts li {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 2px solid var(--rf-line-cream); border-radius: 999px;
  background: var(--rf-white); font-size: 15px; font-weight: 700;
}
.rf-facts--page { justify-content: flex-start; margin: 14px 0 0; }

@media (min-width: 760px) {
  .page.rf-pages { padding: 20px 32px 56px; --rf-gap: 40px; }
  .rf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rf-tile { min-height: 164px; }
  .rf-home-lead { max-width: 560px; }
}
@media (min-width: 1000px) {
  /* Wide screens: the join box and buttons on the left, the tiles on the right. */
  .rf-home-top { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px 36px; align-items: start; }
  .rf-pages .rf-tiles-title { margin-top: 0; }
}

/* ---------- The long text below the first screen ---------- */
.rf-prose { margin-top: 48px; padding-top: 8px; border-top: 3px solid var(--rf-line-cream); max-width: 800px; }
.rf-pages .rf-prose-title { margin-top: 28px; }
.rf-home .rf-prose { margin-top: 40px; }
.rf-pages ol.steps, .rf-pages .rf-prose ul:not([class]) { padding-left: 1.3em; }
.rf-pages ol.steps li::marker { font-weight: 800; color: var(--rf-ink); }
.rf-pages ol.how { margin-top: 8px; padding: 0; gap: 14px; }
.rf-pages ol.how li { color: var(--rf-ink); background: var(--rf-white); border: 2px solid var(--rf-line-cream); border-radius: 20px; padding: 14px 16px; }
.rf-pages ol.how li::before {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border: var(--rf-line) solid var(--rf-ink); border-radius: 50%;
  background: var(--rf-yellow); color: var(--rf-ink); font-size: 22px; font-stretch: 100%;
}
.rf-pages ol.how li:nth-child(2)::before { background: var(--rf-green); }
.rf-pages ol.how li:nth-child(3)::before { background: var(--rf-pink); }
.rf-setlist { padding-left: 1.3em; }
.rf-setlist li { margin: 6px 0; }
.rf-pages .topic-links { padding-left: 1.3em; }
.rf-pages .topic-links li { margin: 6px 0; }

/* The hub's "The games" list (below the fold): white cards with the game's color down the side. */
.rf-pages .games { margin: 14px 0 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rf-pages .game {
  background: var(--rf-white); border: 2px solid var(--rf-line-cream); border-left: 10px solid var(--rf-game, var(--rf-yellow)); border-radius: 20px;
  padding: 16px 18px 14px;
}
.rf-pages .game h3 { font-size: 1.35rem; margin: 0 0 6px; }
.rf-pages .game p { color: var(--rf-ink); margin: 0; }
.rf-pages .game .game-cta { margin-top: auto; padding-top: 12px; }

/* Content page buttons (rf_pages.cta) and facts. */
.rf-pages .rf-cta { gap: 12px; margin: 18px 0 8px; }
.rf-pages .rf-cta .rf-btn .rf-icon { margin-right: -2px; }
@media (max-width: 559px) { .rf-pages .rf-cta > .rf-btn, .rf-pages .rf-cta > .rf-gamechip { width: 100%; } }
.rf-pages .game-facts { font-weight: 700; }
.rf-pages .chips-note { display: inline-block; background: var(--rf-white); border: 2px solid var(--rf-line-cream); border-radius: 14px; padding: 8px 12px; font-weight: 600; }

/* Bingo squares, charades words and other v1 lists, as white cards on cream. */
.rf-pages .item-grid li { background: var(--rf-white); border: 2px solid var(--rf-line-cream); border-radius: 18px; }
.rf-pages .item-grid .fact { color: var(--rf-muted-cream); background: none; border: 0; padding: 0; margin: 2px 0 0; box-shadow: none; }
.rf-pages .print-form label { font-weight: 700; }
.rf-pages .print-form .rf-input, .rf-pages .print-form select, .rf-pages .print-form input[type="number"] {
  min-height: 52px; border: var(--rf-line) solid var(--rf-ink); border-radius: 14px; background: var(--rf-white); color: var(--rf-ink); box-shadow: none;
}
.rf-pages .print-buttons { gap: 12px; }

/* "Play on your TV" (tools/tv_help.py) on cream: the video card and the steps. */
.rf-pages .tv-help-text p, .rf-pages .tv-help-text .video-note { color: var(--rf-muted-cream); }
.rf-pages .tv-help-text .video-note a { color: var(--rf-link-cream); }
.rf-pages .video-facade { border: var(--rf-line) solid var(--rf-ink); border-radius: 24px; box-shadow: var(--rf-press); }
.rf-pages .video-facade:focus-visible { outline-color: var(--rf-link-cream); }
.rf-pages .tv-help-steps { background: var(--rf-white); border: 2px solid var(--rf-line-cream); border-radius: 20px; padding: 6px 16px; }
.rf-pages .tv-help-steps summary { display: flex; align-items: center; min-height: 44px; color: var(--rf-ink); font-weight: 800; }
.rf-pages .tv-help-ways li, .rf-pages .tv-help-ways strong { color: var(--rf-ink); }
.rf-pages .tv-help-steps .tv-help-small { color: var(--rf-muted-cream); }
/* The guide page's four ways as cards. */
.tv-ways { list-style: none; margin: 20px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tv-way {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; border: var(--rf-line) solid var(--rf-ink); border-radius: 22px;
  background: var(--rf-white); box-shadow: var(--rf-press-sm);
}
.tv-way:nth-child(1) { background: var(--rf-yellow); }
.tv-way:nth-child(2) { background: var(--rf-green); }
.tv-way:nth-child(3) { background: var(--rf-pink); }
.tv-way:nth-child(4) { background: var(--rf-orange); }
.tv-way-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border: var(--rf-line) solid var(--rf-ink); border-radius: 14px; background: var(--rf-cream); }
.tv-way-name { font-size: 19px; font-weight: 800; line-height: 1.1; }
.tv-way-sub { font-size: 15px; font-weight: 600; }
@media (min-width: 760px) { .tv-ways { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* The games' own content cards (css/mystery.css, words.css, charades.css were drawn for the blue ground): white on cream. */
.rf-pages .mystery-card, .rf-pages .way, .rf-pages .cast-list li, .rf-pages .rw-daily-box, .rf-pages .rw-words li, .rf-pages .word-list li {
  background: var(--rf-white); border: 2px solid var(--rf-line-cream); color: var(--rf-ink);
}
.rf-pages .mystery-card { border-left: 10px solid var(--rf-game-mystery); border-radius: 20px; }
.rf-pages .mystery-card h3 a { color: var(--rf-ink); }
.rf-pages .mystery-card p, .rf-pages .way p, .rf-pages .cast-list p, .rf-pages .rw-daily-box p, .rf-pages .rw-words .clue { color: var(--rf-muted-cream); }
.rf-pages .mystery-card .mystery-facts, .rf-pages .cast-list .cast-costume { color: var(--rf-ink); }
.rf-pages .mystery-card-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.rf-pages .way { border-radius: 22px; }
.rf-pages .cast-role { color: var(--rf-muted-cream); }
.rf-pages .rw-words .fact, .rf-pages .timings thead th { color: var(--rf-muted-cream); }
.rf-pages .rw-words .fact { background: none; border: 0; padding: 0; box-shadow: none; max-width: none; }
.rf-pages .rw-daily-box { border-left: 10px solid var(--rf-game-words); }
/* Charades' word picker: a Room Blue card, like the join box (white text on blue). */
.rf-pages .picker {
  background: var(--rf-blue); border: var(--rf-line) solid var(--rf-ink); border-radius: var(--rf-r-card); box-shadow: var(--rf-press); color: var(--rf-white);
}
.rf-pages .picker h2, .rf-pages .picker p, .rf-pages .picker legend, .rf-pages .picker label, .rf-pages .picker strong { color: var(--rf-white); }
.rf-pages .picker .picker-left { color: var(--rf-muted-room); }

/* Privacy and terms: restyle only (the words never change here). */
.rf-pages.legal main { max-width: 46em; }
.rf-pages.legal .effective { color: var(--rf-muted-cream); font-weight: 600; }
.rf-pages.legal .summary { background: var(--rf-white); border: 2px solid var(--rf-line-cream); border-left: 8px solid var(--rf-yellow); border-radius: 18px; }

/* Feedback. */
.rf-pages .feedback-form { gap: 16px; max-width: 40em; padding: 20px; }
.rf-pages .feedback-form legend, .rf-pages .feedback-form label { color: var(--rf-ink); font-weight: 700; }
.rf-pages .feedback-form .kind-pick { border: 0; padding: 0; margin: 0; }
.rf-pages .rf-fb-kinds { flex-wrap: wrap; }
.rf-pages .feedback-form .rf-input { width: 100%; background: var(--rf-white); color: var(--rf-ink); border: var(--rf-line) solid var(--rf-ink); border-radius: 14px; box-shadow: none; }
.rf-pages .feedback-form textarea.rf-input { min-height: 9em; padding: 12px 14px; font: inherit; }
.rf-pages .feedback-form .count, .rf-pages .feedback-form .hint, .rf-pages .feedback-form .optional { color: var(--rf-muted-cream); }
.rf-pages .thanks-card { max-width: 40em; }
.rf-pages .thanks-card h2 { margin: 0; }

/* 404. */
.rf-404-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px 0; }
.rf-404-shapes { width: 176px; height: 44px; fill: var(--rf-yellow); stroke: var(--rf-ink); stroke-width: 3; }
.rf-404-shapes use:nth-child(1) { fill: var(--rf-orange); }
.rf-404-shapes use:nth-child(3) { fill: var(--rf-green); }
.rf-404-shapes use:nth-child(4) { fill: var(--rf-pink); }

/* The ad space (shell(): aside.ad-slot), the design system's look while P8 places it: only after the text, never near a button. */
.rf-pages .ad-slot { max-width: 728px; margin: 48px auto; }   /* v2.17: the 48 px clear space above and below (was 40 px, 0 below) */


/* v2.1 (P13, review M5; canvas 15): the dailies (tools/build_daily.py, main_class "d-shell rf-pages rf-cream") in the same
   frame as the game homes: the rf- header and footer on the page's ground (cream, or the party colors' tint), the daily
   itself straight on that ground in its 560px column (no panel, no second gutter). daily.css keeps everything inside. */
.rf-pages.d-shell .d-page { background: transparent; border-radius: 0; margin: 0 auto; padding: 0 0 12px; min-height: 0; }
.rf-pages.d-shell .landing-top { max-width: 560px; margin-left: auto; margin-right: auto; }
.rf-pages.d-shell .site-foot { max-width: 560px; margin-left: auto; margin-right: auto; }
.rf-pages.d-shell .d-page h1, .rf-pages.d-shell .d-page h2, .rf-pages.d-shell .d-page h3 { color: inherit; letter-spacing: normal; }
.rf-pages.d-shell .d-page p, .rf-pages.d-shell .d-page li { color: inherit; }
/* v2.1 review M1: the countdown box is a <p> on ink, so the line above (and .rf-pages p) gave it the page's ink: navy on navy. */
.rf-pages.d-shell .d-page .d-count { color: var(--d-white); }
/* v2.1 review L3: a daily's header is short, so on a phone the games wrap onto a second row (all seven in view) rather than
   scrolling off the right edge with no cue, as the homes' one-row strip does. */
@media (max-width: 759px) {
  .rf-pages.d-shell .landing-top nav { flex-wrap: wrap; overflow-x: visible; margin: 0 -10px; padding: 0; row-gap: 0; }
}
/* v2.1 review M2: the Party colors panel is Room Blue on every page; .rf-pages p (ink) out-ranked site.css's .rf-themes-note. */
.rf-pages .rf-themes .rf-themes-note { color: var(--rf-muted-room); }
}

/* v2.10: Roomful Escape on the hub: its tile spans the row under the six (the odd one out of a two-column grid), the New
   mark on its tile and card, its color (a warm coral, 9:1 with ink), and the dated Christmas feature (js/feature.js). */
.rf-tiles > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
[data-game="escape"] { --rf-game: #ffa48a; }
/* v2.12.1: the Minecraft maps tile, after Escape: side by side on a phone, and across the last two columns of three. */
[data-game="minecraft"] { --rf-game: #9fd67a; }
@media (min-width: 760px) { .rf-tiles > li:has(> .rf-tile[data-game="minecraft"]):nth-child(3n + 2) { grid-column: span 2; } }
.rf-new {
  display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  vertical-align: middle; color: var(--rf-white); background: var(--rf-ink); border-radius: var(--rf-r-pill);
}
.esc-feature { display: grid; gap: 6px; margin: 16px 0; border: var(--rf-line) solid var(--rf-outline); background: #ffa48a; color: var(--rf-ink); }
.esc-feature h2, .esc-feature p { margin: 0; }
.esc-faq dt { font-weight: 800; margin-top: 12px; }
.esc-faq dd { margin: 4px 0 0; }

/* ---------- v2.20: the home page's two doors (tools/rf_pages.py home_doors, js/home-doors.js) ---------- */
.rf-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 14px; }
.rf-door { display: flex; flex-direction: column; gap: 2px; min-height: 104px; padding: 10px 12px; border: var(--rf-line) solid var(--rf-outline); border-radius: 20px; background: var(--rf-white); color: var(--rf-ink); text-decoration: none; }
.rf-pages a.rf-door:hover { color: var(--rf-ink); }
.rf-door[aria-selected="true"] { background: var(--rf-yellow); }
.rf-door-icon .rf-icon { width: 28px; height: 28px; }
.rf-door-title { font-size: 18px; font-weight: 800; line-height: 1.15; }
.rf-door-sub { font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--rf-ink); }
@media (max-width: 359px) { .rf-doors { grid-template-columns: 1fr; } .rf-door { min-height: 76px; } }
body[data-door="roomful"] #solo, body[data-door="solo"] #roomful { display: none; }
body[data-door] #solo { scroll-margin-top: 100vh; }
.rf-door-panel { margin-bottom: 18px; }
.rf-todaycard { display: flex; flex-direction: column; gap: 2px; padding: 16px; margin-bottom: 18px; border: var(--rf-line) solid var(--rf-outline); border-radius: 22px; background: var(--rf-blue); color: var(--rf-white); text-decoration: none; }
.rf-pages a.rf-todaycard, .rf-pages a.rf-todaycard:hover { color: var(--rf-white); }
.rf-todaycard-kicker { font-size: 14px; font-weight: 800; }
.rf-todaycard-name { font-size: 26px; font-weight: 800; line-height: 1.1; }
.rf-todaycard-line, .rf-todaycard-sub { font-size: 16px; font-weight: 600; }
.rf-allpuzzles { margin: 8px 0 0; font-weight: 700; }

/* v2.20: the guides' tables (a plan for an evening, who should play what): stacked on a phone, so they never widen the page */
.rf-guide .table-wrap { max-width: 100%; overflow-x: auto; }
.rf-guide .timings { width: 100%; border-collapse: collapse; margin: 10px 0; }
.rf-guide .timings th, .rf-guide .timings td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--rf-line-cream); }
.rf-guide .timings thead th { border-top: 0; color: var(--rf-muted-cream); }
@media (max-width: 559px) {
  .rf-guide .timings, .rf-guide .timings tbody, .rf-guide .timings tr, .rf-guide .timings th, .rf-guide .timings td { display: block; }
  .rf-guide .timings thead { display: none; }
  .rf-guide .timings tr { padding: 8px 0; border-top: 1px solid var(--rf-line-cream); }
  .rf-guide .timings th, .rf-guide .timings td { padding: 2px 0; border-top: 0; }
}
/* v2.27: the privacy page's "What we keep and for how long" table looks the same */
.rf-pages.legal .table-wrap { max-width: 100%; overflow-x: auto; }
.rf-pages.legal .timings { width: 100%; border-collapse: collapse; margin: 10px 0; }
.rf-pages.legal .timings th, .rf-pages.legal .timings td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--rf-line-cream); }
.rf-pages.legal .timings thead th { border-top: 0; color: var(--rf-muted-cream); }
@media (max-width: 559px) {
  .rf-pages.legal .timings, .rf-pages.legal .timings tbody, .rf-pages.legal .timings tr, .rf-pages.legal .timings th, .rf-pages.legal .timings td { display: block; }
  .rf-pages.legal .timings thead { display: none; }
  .rf-pages.legal .timings tr { padding: 8px 0; border-top: 1px solid var(--rf-line-cream); }
  .rf-pages.legal .timings th, .rf-pages.legal .timings td { padding: 2px 0; border-top: 0; }
}
.rf-pages.legal .timings td + td { font-weight: 700; }   /* the period stands out, above all when the rows stack on a phone */
/* v2.28: the /join page: room between the join box and the line under it */
.rf-joinpage .rf-joinbox + p { margin-top: 20px; }
