/* Website redesign (November 13, 2026, John). The new look: near black, aged gold, bone white, one deep red.
   Everything here starts with "rd-" so it can't clash with site.css while the redesign is built on the redesign branch.
   Plan: Docs/Website_Redesign_Plan.md in the Card Game folder. Art: public/ui/rd (made from Claude Documents/Website Art). */
:root {
  --rd-black: #0b0a08;      /* page background, near black */
  --rd-panel: #12100c;      /* a raised panel, one step up */
  --rd-line: #2b2417;       /* quiet lines */
  --rd-gold: #c9a13a;       /* aged gold for titles and highlights, matched to the logo on screen */
  --rd-gold-deep: #88681c;  /* the logo file's gold, for thin lines and borders */
  --rd-bone: #e8e1d1;       /* body text */
  --rd-bone-dim: #a8a08f;   /* quiet text */
  --rd-red: #8c1c1c;        /* warnings and alerts only */
  --rd-ink: #24180a;        /* text on parchment and on gold */
  --rd-title: 'Cinzel', Georgia, serif;                          /* big titles only, never sentences */
  --rd-body: 'Lexend', 'Atkinson Hyperlegible', system-ui, sans-serif;   /* Lexend is loaded with the 10 digits only, so numbers get a plain zero (John, November 13: no slashed zero). Every letter is Atkinson. */
  --rd-side: 248px;
}

.rd { margin: 0; background: var(--rd-black); color: var(--rd-bone); font-family: var(--rd-body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
.rd img { max-width: 100%; height: auto; }
.rd h1, .rd h2 { font-family: var(--rd-title); font-weight: 600; color: var(--rd-gold); line-height: 1.15; letter-spacing: .03em; margin: 0 0 .5rem; text-wrap: balance; }
.rd h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
.rd h2 { font-size: clamp(1.4rem, 3.2vw, 1.75rem); }
.rd h3 { font-family: var(--rd-body); font-weight: 700; font-size: 1.15rem; color: var(--rd-bone); margin: 0 0 .35rem; }
.rd p { margin: 0 0 1rem; max-width: 62ch; }
.rd a { color: var(--rd-gold); text-underline-offset: .2em; }
.rd a:hover { color: var(--rd-bone); }
.rd :focus-visible { outline: 2px solid var(--rd-gold); outline-offset: 3px; }
.rd-quiet { color: var(--rd-bone-dim); }
.rd-small { font-size: .9rem; }
.rd-num { font-variant-numeric: tabular-nums; }

/* ---------- the frame: profile and menu. Left side on a computer, top strip and bottom icon bar on a phone ---------- */
.rd-side { position: fixed; inset: 0 auto 0 0; width: var(--rd-side); display: flex; flex-direction: column; background: var(--rd-black); border-right: 1px solid var(--rd-line); overflow-y: auto; z-index: 20; }
.rd-main { margin-left: var(--rd-side); padding: 44px 52px 80px; }
.rd-main > * { max-width: 940px; }

.rd-prof { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; padding: 22px 18px 6px; color: inherit; text-decoration: none; }
.rd-ring { position: relative; width: 104px; aspect-ratio: 1; }
.rd-ring .rd-face { position: absolute; inset: 12%; width: 76%; height: 76%; border-radius: 50%; object-fit: cover; background: #000; }
.rd-ring .rd-ringart { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd-level { position: relative; justify-self: center; line-height: 0; cursor: pointer; }
.rd-level .rd-shield { width: min(76px, calc(64px * var(--sc, 1))); margin: -4px 0; }
.rd-level .rd-sh-in b { font-size: max(16px, calc(var(--fdn) * .5cqw)); }

/* Level shields (November 15, 2026, John): every 5th level a cooler shield. frame.js rdShield() picks the art and where its face is.
   A number or a headshot sits on the face. --fx/--fy: the face's center, --fd: its width (all as % of the picture). */
.rd-shield { position: relative; display: inline-block; flex: none; aspect-ratio: 1; width: 48px; container-type: inline-size; vertical-align: middle; line-height: 0; }
.rd-shield .rd-sh { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .65)); }
.rd-shield .rd-sh-in { position: absolute; left: calc(var(--fx) - var(--fd) / 2); top: calc(var(--fy) - var(--fd) / 2); width: var(--fd); height: var(--fd); display: grid; place-items: center; line-height: 1; }
.rd-shield .rd-sh-in b { font-family: var(--rd-title, 'Cinzel', serif); font-weight: 700; font-size: calc(var(--fdn) * .5cqw); color: var(--rd-gold, #c9a13a); text-shadow: 0 1px 2px #000, 0 0 6px #000; font-variant-numeric: tabular-nums; }
.rd-shield .rd-sh-in img, .rd-shield .rd-sh-in i { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #000; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 0 0 2px rgba(201, 161, 58, .55); }
.rd-shield .rd-sh-in i { display: grid; place-items: center; font-style: normal; font-size: calc(var(--fdn) * .4cqw); color: var(--rd-bone-dim, #b9b2a2); }
/* the higher shields glow a little */
.rd-shield.t25 .rd-sh { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .65)) drop-shadow(0 0 4px rgba(201, 161, 58, .25)); }
.rd-shield.t40 .rd-sh, .rd-shield.t45 .rd-sh { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .65)) drop-shadow(0 0 6px rgba(140, 28, 28, .45)); }
.rd-shield.t50 .rd-sh { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .65)) drop-shadow(0 0 8px rgba(201, 161, 58, .5)); }
/* the level as a small tag just under the face, when the face holds a headshot */
.rd-shield .rd-sh-lv { position: absolute; left: 50%; top: calc(var(--fy) + var(--fd) / 2); transform: translate(-50%, -45%); min-width: calc(var(--fdn) * .42cqw); padding: 0 .35em; border-radius: 999px;
  font: 700 max(10px, calc(var(--fdn) * .26cqw))/1.35 'Lexend', var(--rd-body, sans-serif); color: #0b0a08; background: linear-gradient(#e2bf5a, #a8822a); box-shadow: 0 1px 3px #000, 0 0 0 1px #3a2c0c; text-align: center; font-variant-numeric: tabular-nums; }
.rd-shield .rd-sh-in .on { box-shadow: 0 0 0 2px #4cd27a, 0 0 8px rgba(76, 210, 122, .5); }
.rd-shield .rd-sh-in .off { box-shadow: 0 0 0 2px #e0564c, 0 0 6px rgba(224, 86, 76, .45); }
/* sized by the face: the headshot (or number) stays the same size and the shield grows around it, so a higher shield is bigger */
.rd-shield.byface { width: calc(var(--pw, 30px) * 100 / var(--fdn)); }
.rd-who { grid-column: 1 / -1; min-width: 0; }
.rd-name { display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.25; color: var(--rd-bone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-xp { display: block; height: 3px; margin-top: 8px; background: var(--rd-line); }
.rd-xp i { display: block; height: 100%; width: 0; background: var(--rd-gold); transition: width .6s ease; }
.rd-xpnote { display: block; margin-top: 5px; font-size: .82rem; color: var(--rd-bone-dim); }
.rd-prof:hover .rd-name { color: var(--rd-gold); }
/* November 22, 2026 (John): the bell sits at the right end of the name row, not crowding the shield. The name leaves room for it. */
@media (min-width: 901px) { .rd-name { padding-right: 42px; } .rd-side .rd-bell .rd-bellnum { top: -5px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; font-size: .66rem; } }

.rd-rule { display: block; width: calc(100% - 28px); margin: 10px 14px 8px; }

.rd-menu { display: flex; flex-direction: column; padding-bottom: 18px; }
.rd-menu a { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 7px 16px 7px 15px; border-left: 3px solid transparent; color: var(--rd-bone-dim); text-decoration: none; font-size: 1.02rem; line-height: 1.2; transition: color .25s ease, background-color .25s ease; }
.rd-menu img { width: 38px; height: 38px; flex: none; filter: brightness(1.1); transition: filter .35s ease; }
.rd-menu a:hover { color: var(--rd-bone); }
.rd-menu a:hover img { filter: brightness(1.35) drop-shadow(0 0 7px rgba(201, 161, 58, .45)); }
.rd-menu a[aria-current="page"] { color: var(--rd-gold); border-left-color: var(--rd-gold); background: rgba(136, 104, 28, .13); font-weight: 700; }
.rd-menu a[aria-current="page"] img { filter: brightness(1.35); }
.rd-menu .rd-short { display: none; }
.rd-menu .rd-locked { color: #6f695d; cursor: default; }
.rd-menu .rd-locked img { filter: grayscale(.6) brightness(.6); }
.rd-menu .rd-locked small { margin-left: auto; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #6f695d; border: 1px solid var(--rd-line); padding: 1px 6px; }
.rd-phonelogo { display: none; }

@media (max-width: 900px) {
  .rd { font-size: 17px; }
  .rd-side { position: static; width: auto; display: block; border: 0; overflow: visible; }
  .rd-main { margin-left: 0; padding: 22px 18px calc(96px + env(safe-area-inset-bottom)); }
  .rd-prof { position: sticky; top: 0; z-index: 20; grid-template-columns: auto auto 1fr auto; gap: 0 9px; padding: 7px 14px; background: var(--rd-black); border-bottom: 1px solid var(--rd-line); }
  .rd-ring { width: 54px; }
  .rd-level .rd-shield { width: min(52px, calc(42px * var(--sc, 1))); margin: -4px 0; }
  .rd-level .rd-sh-in b { font-size: max(13px, calc(var(--fdn) * .5cqw)); }
  .rd-who { grid-column: auto; }
  .rd-name { font-size: 1rem; }
  .rd-xp { max-width: 120px; margin-top: 5px; }
  .rd-xpnote { display: none; }
  .rd .rd-phonelogo { display: block; height: 30px; width: auto; justify-self: end; }
  .rd-rule { display: none; }
  .rd-menu { position: fixed; inset: auto 0 0 0; z-index: 20; flex-direction: row; padding: 0 2px env(safe-area-inset-bottom); background: var(--rd-black); border-top: 1px solid var(--rd-gold-deep); }
  .rd-menu a { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; min-height: 62px; padding: 6px 0 5px; border-left: 0; border-top: 2px solid transparent; margin-top: -1px; font-size: .75rem; }
  .rd-menu img { width: 30px; height: 30px; }
  .rd-menu a[aria-current="page"] { border-top-color: var(--rd-gold); background: rgba(136, 104, 28, .13); }
  .rd-menu .rd-long, .rd-menu .rd-locked { display: none; }
  .rd-menu .rd-short { display: block; }
}

/* ---------- the frame on the real pages (role 3). assets/frame.js writes the markup; body gets "rd-framed".
   Pages still on the old site.css get the black background from "rd-page" until each one is reskinned (role 4). ---------- */
body.rd-page { --night: #0b0a08; background: var(--rd-black); }
.rd-side [hidden] { display: none !important; }
.rd-top { display: contents; }
.rd-logo { order: 9; margin-top: auto; padding: 18px 22px 20px; line-height: 0; opacity: .9; transition: opacity .25s ease; }
.rd-logo:hover { opacity: 1; }
.rd-logo img { display: block; width: 100%; }
.rd-ring.rd-noface::before { content: '?'; position: absolute; inset: 12%; display: grid; place-items: center; border-radius: 50%; background: #000; color: var(--rd-gold-deep); font-family: var(--rd-title); font-weight: 700; font-size: 2rem; }
.rd-menu a { position: relative; }
.rd-menu a.rd-locked, .rd-menu a.rd-locked:hover { cursor: default; color: #6f695d; }
.rd-menu a.rd-locked:hover img { filter: grayscale(.6) brightness(.6); }
.rd-dot { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--rd-red); color: var(--rd-bone); font: 700 .78rem/1 var(--rd-body); }
.rd-sheet, .rd-sheetback { display: none; }
@media (min-width: 901px) {
  body.rd-framed { padding-left: var(--rd-side); }
  body.rd-framed .rd-main { margin-left: 0; }
  body.rd-framed .filters { top: 0; }
  body.rd-framed .toc { top: 20px; }
}
@media (max-width: 900px) {
  body.rd-framed { --rd-strip: 69px; padding-bottom: calc(63px + env(safe-area-inset-bottom)); }
  body.rd-framed .rd-side { position: sticky; top: 0; z-index: 20; }
  .rd-top { display: flex; align-items: center; gap: 12px; padding: 7px 14px; background: var(--rd-black); border-bottom: 1px solid var(--rd-line); }
  .rd-top .rd-prof { position: static; flex: 1 1 auto; min-width: 0; grid-template-columns: auto auto 1fr; padding: 0; border: 0; }
  .rd-logo { order: 0; margin: 0; padding: 0; flex: none; }
  .rd-logo img { width: auto; height: 30px; }
  .rd-ring.rd-noface::before { font-size: 1.2rem; }
  .rd-menu .rd-nophone { display: none; }
  .rd-menu a.rd-here { border-top-color: var(--rd-gold); color: var(--rd-gold); }
  .rd-dot { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; padding: 0 4px; font-size: .68rem; }
  .rd-sheetback { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(0, 0, 0, .6); }
  .rd-sheet { display: grid; position: fixed; left: 10px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 21; background: var(--rd-panel); border: 1px solid var(--rd-gold-deep); }
  .rd-sheet a { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 18px; color: var(--rd-bone); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
  .rd-sheet a + a { border-top: 1px solid var(--rd-line); }
  .rd-sheet a[aria-current="page"] { color: var(--rd-gold); background: rgba(136, 104, 28, .13); }
  .rd-sheet img { width: 40px; height: 40px; flex: none; }
  body.rd-framed .rd-main { padding-bottom: 28px; }
  body.rd-framed .filters { top: var(--rd-strip); }
  body.rd-framed #fbk-open { bottom: calc(73px + env(safe-area-inset-bottom)); }
  body.rd-sheet-open #fbk-open { display: none; }
}

/* ---------- buttons: sharp, no round corners, no glow until you hover ---------- */
.rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .55em 1.5em; border: 0; border-radius: 0; background: var(--rd-gold); color: var(--rd-ink); font: 700 1rem/1.2 var(--rd-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: background-color .25s ease, color .25s ease, filter .35s ease; }
.rd a.rd-btn { color: var(--rd-ink); }
.rd-btn:hover { background: #dcb955; filter: drop-shadow(0 0 10px rgba(201, 161, 58, .45)); }
.rd-btn:active { background: #a98426; }
.rd-btn.rd-line { background: transparent; color: var(--rd-bone); clip-path: none; border: 1px solid var(--rd-gold-deep); }
.rd a.rd-btn.rd-line { color: var(--rd-bone); }
.rd-btn.rd-line:hover { border-color: var(--rd-gold); color: var(--rd-gold); background: rgba(136, 104, 28, .12); filter: none; }
.rd-btn.rd-red { background: var(--rd-red); color: var(--rd-bone); }
.rd-btn.rd-red:hover { background: #a82424; filter: none; }
.rd-btn.rd-sm { min-height: 38px; padding: .3em 1em; font-size: .9rem; }
.rd-btn:disabled, .rd-btn[aria-disabled="true"] { background: #3a3426; color: #8a8372; cursor: not-allowed; filter: none; }
.rd-btnrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 1rem; }

/* ---------- panels, lines, fields, alerts ---------- */
.rd-panel { position: relative; padding: 26px 28px; background: var(--rd-panel); border: 1px solid var(--rd-gold-deep); }
.rd-panel > :last-child { margin-bottom: 0; }
.rd-cn { position: absolute; width: 36px; height: 34px; background: url(../ui/rd/iron_corner.webp) 0 0 / 100% 100% no-repeat; pointer-events: none; }
.rd-cn.tl { top: -5px; left: -5px; }
.rd-cn.tr { top: -5px; right: -5px; transform: scaleX(-1); }
.rd-cn.bl { bottom: -5px; left: -5px; transform: scaleY(-1); }
.rd-cn.br { bottom: -5px; right: -5px; transform: scale(-1); }
.rd .rd-divider { display: block; width: 100%; max-width: 940px; margin: 36px 0 28px; }
.rd-field { display: grid; gap: 6px; max-width: 360px; margin: 0 0 1rem; }
.rd-field span { font-weight: 700; font-size: .95rem; }
.rd-field input { min-height: 48px; padding: .5em .8em; background: #070605; color: var(--rd-bone); border: 1px solid #5a4a22; border-radius: 0; font: inherit; }
.rd-field input::placeholder { color: #7d7667; }
.rd-field input:focus { outline: 0; border-color: var(--rd-gold); box-shadow: 0 0 0 1px var(--rd-gold); }
.rd-alert { padding: 14px 18px; background: rgba(140, 28, 28, .16); border: 1px solid var(--rd-red); border-left-width: 5px; max-width: 62ch; }
.rd-alert b { display: block; }

/* ---------- parchment title band. 2 versions to pick from: .rd-parch (orange gold) and .rd-parch.rd-pale ---------- */
.rd-parch { display: flex; align-items: center; min-height: 86px; padding: 8px 30px 22px; background: url(../ui/rd/parchment_edge.webp) center / 100% 100% no-repeat; color: var(--rd-ink); font-family: var(--rd-title); font-weight: 700; font-size: clamp(1.15rem, 3vw, 1.5rem); letter-spacing: .04em; line-height: 1.15; }
.rd-parch.rd-pale { background-image: url(../ui/rd/parchment_edge_pale.webp); }

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

/* ---------- role 4: bits every reskinned page shares ---------- */
.rd-page .ai-note { margin: 0; padding: 7px 52px; background: transparent; border-bottom: 1px solid var(--rd-line); color: var(--rd-bone-dim); font: 400 .82rem/1.4 var(--rd-body); text-align: left; }
.rd-page .foot { border-top: 1px solid var(--rd-line); color: var(--rd-bone-dim); font: 400 .88rem/1.5 var(--rd-body); padding: 20px 52px; }
.rd-page .foot p { max-width: none; margin: 0; }
.rd-sec > h2 + p { margin-bottom: 1.6rem; }
.rd-kicker { display: block; margin-bottom: 8px; color: var(--rd-bone-dim); font: 700 .8rem/1.3 var(--rd-body); letter-spacing: .14em; text-transform: uppercase; }
.rd-btn.rd-big { min-height: 60px; padding: .6em 2.2em; font-size: 1.25rem; clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 11px, 100% calc(100% - 11px), calc(100% - 11px) 100%, 11px 100%, 0 calc(100% - 11px), 0 11px); }
.rd b { color: var(--rd-bone); }
@media (max-width: 900px) {
  .rd-page .ai-note { padding: 6px 18px; font-size: .76rem; }
  .rd-page .foot { padding: 16px 18px; }
}

/* ---------- the home page (role 4). The tavern picture is 1 of the site's 2 backgrounds. It sits behind the top of the page,
   runs under the left menu, and fades to black. Everything below it is on black. ---------- */
.rd-home .rd-main > * { max-width: 1060px; }
.rd-home .rd-side { background: transparent; border-right-color: rgba(43, 36, 23, .7); }
.rd-home .ai-note { position: absolute; top: 0; right: 0; z-index: 2; border: 0; padding: 10px 22px; text-align: right; text-shadow: 0 1px 3px #000; }
.rd-logo { transition: opacity .4s ease; }
.rd-biglogo .rd-logo { opacity: 0; pointer-events: none; }

.rd-home .rd-main > .rd-hero { position: relative; max-width: none; min-height: min(100vh, 780px); margin: -44px -52px 56px calc(-52px - var(--rd-side)); padding: 0 52px 90px calc(52px + var(--rd-side)); display: flex; align-items: center; isolation: isolate; }
.rd-hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #070605; }
.rd-hero-art > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 50%; }
.rd-hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 10, 8, .55) 0%, rgba(11, 10, 8, .35) 42%, transparent 62%), linear-gradient(0deg, var(--rd-black) 0%, rgba(11, 10, 8, .6) 9%, transparent 26%); }
.rd-flame { position: absolute; left: 95%; top: 50%; height: 62%; aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, rgba(255, 150, 50, .2), transparent); mix-blend-mode: screen; animation: rd-flicker 5s ease-in-out infinite; pointer-events: none; }
@keyframes rd-flicker { 0%, 100% { opacity: .35; } 18% { opacity: .9; } 31% { opacity: .5; } 47% { opacity: 1; } 66% { opacity: .55; } 82% { opacity: .85; } }
.rd-hero-copy { width: min(100%, 500px); }
.rd .rd-hero-logo { margin: 0 0 26px -6px; line-height: 0; }
.rd-hero-logo img { display: block; width: 100%; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .85)); }
.rd .rd-lede { font-size: 1.22rem; line-height: 1.5; margin-bottom: 1.6rem; max-width: 30ch; text-shadow: 0 1px 10px #000; }
.rd .rd-hero-sub { font-size: 1rem; color: var(--rd-bone); max-width: 40ch; margin: 0; text-shadow: 0 1px 8px #000; }

.rd-home-two { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.rd-welcome ol { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: .55rem; }
.rd-welcome li::marker { color: var(--rd-gold); font-weight: 700; }
.rd-welcome p { max-width: none; }
.rd-hand { margin: 0; display: grid; justify-items: center; gap: 22px; }
.rd-fan { position: relative; width: 100%; height: 330px; }
.rd-fan img { --x: -50%; --y: 0px; --r: 0deg; --s: 1; --lift: 0px; position: absolute; left: 50%; bottom: 0; width: 172px; max-width: none; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(136, 104, 28, .55), 0 18px 40px rgba(0, 0, 0, .8);
  transform: translateX(var(--x)) translateY(calc(var(--y) + var(--lift))) rotate(var(--r)) scale(var(--s)); transform-origin: 50% 110%; transition: transform .45s ease; }
.rd-fan .c-l { --x: -105%; --r: -11deg; --y: -6px; }
.rd-fan .c-r { --x: 5%; --r: 11deg; --y: -6px; }
.rd-fan .c-m { --y: -20px; --s: 1.1; z-index: 2; box-shadow: 0 0 0 1px var(--rd-gold-deep), 0 22px 50px rgba(0, 0, 0, .85); }
.rd-fan img:hover { --lift: -10px; z-index: 3; }
.rd-hand figcaption { color: var(--rd-bone-dim); font-size: .95rem; line-height: 1.5; max-width: 34ch; text-align: left; padding-left: 14px; border-left: 2px solid var(--rd-gold-deep); }

.rd-climb { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; counter-reset: rdstep; }
.rd-climb li { counter-increment: rdstep; display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 18px; }
.rd-climb img { align-self: end; justify-self: start; border-radius: 8px; box-shadow: 0 0 0 1px rgba(136, 104, 28, .45), 0 14px 34px rgba(0, 0, 0, .7); }
.rd-climb li:nth-child(1) img { width: 70%; }
.rd-climb li:nth-child(2) img { width: 84%; }
.rd-climb li:nth-child(3) img { width: 100%; }
.rd-climb li > div { align-self: start; border-top: 1px solid var(--rd-gold-deep); padding-top: 12px; }
.rd-climb h3 { display: flex; align-items: baseline; gap: 12px; }
.rd-climb h3::before { content: counter(rdstep); font-family: var(--rd-title); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--rd-gold); }
.rd-climb p { margin: 0; color: var(--rd-bone-dim); }

.rd-boxes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rd-line); border-bottom: 1px solid var(--rd-line); }
.rd-boxes li { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; gap: 4px; padding: 22px 22px 24px; }
.rd-boxes li + li { border-left: 1px solid var(--rd-line); }
.rd-boxes img { width: 76%; aspect-ratio: 1; object-fit: contain; justify-self: center; margin-bottom: 12px; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .8)); transition: filter .35s ease; }
.rd-boxes li:hover img { filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .8)) drop-shadow(0 0 14px rgba(201, 161, 58, .3)); }
.rd-boxes h3 { margin: 0; }
.rd-boxes p { margin: 0 0 6px; color: var(--rd-bone-dim); font-size: .98rem; line-height: 1.45; }
.rd-boxes a { font-size: .98rem; }

.rd-ready { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: 44px; }
.rd-ready h2 { margin-bottom: .3rem; }
.rd-ready p { margin: 0; }

.rd-log { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.rd-log li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--rd-line); }
.rd-log li:last-child { border-bottom: 1px solid var(--rd-line); }
.rd-log time { font-family: var(--rd-title); font-weight: 600; font-size: 1.05rem; color: var(--rd-gold); line-height: 1.6; }
.rd-log p { margin: 0; }

.rd-learn { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 44px; align-items: center; }
.rd-learn-pic { display: block; line-height: 0; border: 1px solid var(--rd-gold-deep); }
.rd-learn-pic img { display: block; width: 100%; transition: filter .35s ease; }
.rd-learn-pic:hover img { filter: brightness(1.12); }
.rd-learn .rd-btnrow { margin: 1.2rem 0 0; }

@media (max-width: 1180px) {
  .rd-home-two { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .rd-hand figcaption { max-width: 44ch; }
}
@media (max-width: 900px) {
  .rd-home .rd-side { background: var(--rd-black); }
  .rd-home .ai-note { position: static; padding: 6px 18px; text-align: left; border-bottom: 1px solid var(--rd-line); }
  .rd-home .rd-main > .rd-hero { min-height: 0; margin: -22px -18px 36px; padding: 34px 18px 250px; align-items: flex-start; }
  .rd-hero-art > img { object-position: 100% 100%; }
  /* a soft dark fade behind the logo and the words (the picture's chimney sits right behind them on a phone) */
  .rd-hero-art::after { background: linear-gradient(180deg, rgba(11, 10, 8, .93) 0%, rgba(11, 10, 8, .88) 48%, rgba(11, 10, 8, .25) 74%, transparent 84%), linear-gradient(0deg, var(--rd-black) 0%, transparent 12%); }
  .rd-flame { left: auto; right: 0; top: auto; bottom: 60px; height: 300px; translate: 40% 0; }
  .rd-hero-copy { width: min(100%, 440px); }
  .rd .rd-hero-logo { margin: 0 0 18px -3px; }
  .rd .rd-lede { font-size: 1.12rem; }
  .rd-btn.rd-big { width: 100%; }
  .rd-fan { height: 270px; }
  .rd-fan img { width: 132px; }
  .rd-climb { gap: 22px; }
  .rd-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-boxes li { padding: 18px 14px 20px; }
  .rd-boxes li:nth-child(3) { border-left: 0; }
  .rd-boxes li:nth-child(n+3) { border-top: 1px solid var(--rd-line); }
  .rd-boxes a { padding: 8px 0; }
  .rd-learn { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rd-ready .rd-btnrow { width: 100%; }
}
@media (max-width: 560px) {
  .rd-climb { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rd-climb li { grid-row: auto; grid-template-columns: 108px 1fr; grid-template-rows: auto; align-items: center; gap: 16px; }
  .rd-climb li img, .rd-climb li:nth-child(n) img { width: 100%; }
  .rd-climb li > div { align-self: center; }
  .rd-log li { grid-template-columns: 4.4rem 1fr; gap: 12px; }
  .rd-fan { height: 236px; }
  .rd-fan img { width: 116px; }
  .rd-panel { padding: 22px 18px; }
}
/* the Feedback button (assets/account.js makes it) in the new look */
body.rd-page #fbk-open, body.rd-framed #fbk-open { border-radius: 0; background: rgba(11, 10, 8, .92); color: var(--rd-gold); border: 1px solid var(--rd-gold-deep); font: 700 13px/1 var(--rd-body); padding: 9px 13px; }
body.rd-page #fbk-open:hover, body.rd-framed #fbk-open:hover { border-color: var(--rd-gold); color: var(--rd-bone); }

/* ---------- the skin (role 4): the new look laid over site.css on every page but Home and the table.
   site.css is built on a few color and font names, so most of the change is giving those names the new values.
   Then: titles in Cinzel, sharp corners everywhere, flat gold buttons, quiet lines. What is on each page is not touched. ---------- */
body.rd-skin {
  --night: #0b0a08; --oak: #12100c; --gold: #c9a13a; --gold-deep: #88681c; --candle: #c9a13a; --parchment: #e8e1d1; --smoke: #a8a08f; --line: #2b2417; --edge: #5a4a22;
  --display: 'Cinzel', Georgia, serif; --body: 'Lexend', 'Atkinson Hyperlegible', system-ui, sans-serif;
  color: var(--rd-bone); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
.rd-skin main { min-height: 78vh; padding-bottom: 60px; }
.rd-skin h1, .rd-skin h2 { font-family: var(--rd-title); font-weight: 600; letter-spacing: .03em; color: var(--rd-gold); text-wrap: balance; }
.rd-skin h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
.rd-skin h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.rd-skin h3 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; letter-spacing: 0; color: var(--rd-bone); }
.rd-skin a:hover { color: var(--rd-bone); }
.rd-skin :focus-visible { outline: 2px solid var(--rd-gold); outline-offset: 3px; }
.rd-skin .sub { max-width: 62ch; }
/* sharp corners. Pictures keep theirs (cards are cards), and so do the few things that are really round */
.rd-skin main *:not(img):not(.book-stage *), .rd-skin dialog, .rd-skin dialog *:not(img), .rd-skin .dk-open *:not(img), .rd-page #inv-pop *:not(img), .rd-page #achpop *:not(img):not(svg *), .rd-framed #inv-pop *:not(img), .rd-framed #achpop *:not(img):not(svg *) { border-radius: 0 !important; }
/* the few things that stay round, and card shaped things that keep a card's corners. "html body" so these win over the line above */
html body.rd-skin .pf-face, html body.rd-skin .pf-faces button, html body.rd-skin .pf-lockface, html body.rd-skin .rw-star, html body.rd-skin .pt-icon, html body.rd-skin .ring, html body.rd-skin .dk-info { border-radius: 50% !important; }
html body.rd-skin .dk-flip, html body.rd-skin .dk-flip .back, html body.rd-skin .dk-flip .front, html body.rd-skin .noart { border-radius: 9px !important; }
/* the page sits left, beside the menu, not centered in the window */
.rd-skin .band, .rd-skin .head, .rd-skin .filters, .rd-skin .count, .rd-skin .grid, .rd-skin .rules, .rd-skin .acct-wrap { margin-left: 0; margin-right: 0; padding-left: 52px; padding-right: 52px; }
.rd-skin .head { padding-top: 40px; }
/* buttons */
.rd-skin .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .5em 1.4em; border: 0; background: var(--rd-gold); color: var(--rd-ink); font: 700 1rem/1.2 var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer; box-shadow: none;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: background-color .25s ease, color .25s ease, filter .35s ease; }
.rd-skin .btn:hover { background: #dcb955; color: var(--rd-ink); filter: drop-shadow(0 0 10px rgba(201, 161, 58, .45)); }
.rd-skin .btn.ghost { background: transparent; color: var(--rd-bone); clip-path: none; border: 1px solid var(--rd-gold-deep); box-shadow: none; }
.rd-skin .btn.ghost:hover { border-color: var(--rd-gold); color: var(--rd-gold); background: rgba(136, 104, 28, .12); filter: none; box-shadow: none; }
.rd-skin .btn:disabled { background: #3a3426; color: #8a8372; cursor: not-allowed; filter: none; opacity: 1; }
/* typing boxes and chips */
.rd-skin input, .rd-skin select, .rd-skin textarea { background: #070605; color: var(--rd-bone); border: 1px solid #5a4a22; }
.rd-skin input::placeholder, .rd-skin textarea::placeholder { color: #7d7667; }
.rd-skin input:focus, .rd-skin select:focus, .rd-skin textarea:focus { outline: 0; border-color: var(--rd-gold); box-shadow: 0 0 0 1px var(--rd-gold); }
.rd-skin .chips button { background: transparent; border-color: var(--rd-gold-deep); color: var(--rd-bone); padding: .4rem .95rem; min-height: 40px; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.rd-skin .chips button:hover { border-color: var(--rd-gold); color: var(--rd-gold); }
.rd-skin .chips button[aria-pressed="true"] { background: var(--rd-gold); border-color: var(--rd-gold); color: var(--rd-ink); font-weight: 700; }
/* pop ups */
.rd-skin dialog { background: var(--rd-panel); border: 1px solid var(--rd-gold-deep); color: var(--rd-bone); box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
.rd-skin dialog::backdrop { background: rgba(0, 0, 0, .8); }
.rd-skin dialog .x { border-color: var(--rd-gold-deep); color: var(--rd-bone); min-height: 40px; }
.rd-skin dialog .x:hover { border-color: var(--rd-gold); color: var(--rd-gold); }
@media (max-width: 900px) {
  body.rd-skin { font-size: 17px; }
  .rd-skin .band, .rd-skin .head, .rd-skin .filters, .rd-skin .count, .rd-skin .grid, .rd-skin .rules, .rd-skin .acct-wrap { padding-left: 18px; padding-right: 18px; }
  .rd-skin .head { padding-top: 22px; }
}

/* ---------- All of the Cards ---------- */
.rd-skin .filters { background: var(--rd-black); border-bottom: 1px solid var(--rd-line); margin-bottom: 18px; padding-top: 14px; padding-bottom: 14px; max-width: none; }
.rd-skin .head, .rd-skin .count, .rd-skin .grid, .rd-skin .view-tabs, .rd-skin .r2lock, .rd-skin .decks-view { max-width: 1400px; }
.rd-skin .grid { gap: 20px 18px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.rd-skin .grid img { background: var(--rd-panel); transition: box-shadow .35s ease, filter .35s ease; }
.rd-skin .grid button:hover img { box-shadow: 0 0 0 1px var(--rd-gold), 0 0 18px rgba(201, 161, 58, .3); }
.rd-skin .cardtext { font-size: 1.1rem; }
@media (max-width: 900px) { .rd-skin .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px 10px; } }
.rd-skin .view-tabs, .rd-skin .decks-view, .rd-skin .r2lock { margin-left: 0; margin-right: 0; padding-left: 52px; padding-right: 52px; }
.rd-skin .decks-view .count { padding-left: 0; padding-right: 0; }
.rd-skin .deck-head { background: var(--rd-panel); border-color: var(--rd-gold-deep); }
.rd-skin .deck-head h2, .rd-skin .deck-sec h3 { font-weight: 600; }
.rd-skin .deck-sec h3 { font-family: var(--rd-title); color: var(--rd-gold); font-size: 1.2rem; letter-spacing: .03em; }
@media (max-width: 900px) { .rd-skin .view-tabs, .rd-skin .decks-view, .rd-skin .r2lock { padding-left: 18px; padding-right: 18px; } }

/* a box with the thin gold line and the 4 iron corners, with no extra markup: ui/rd/frame.webp is the line and corners as one picture,
   stretched around the box (made from iron_corner.webp). Same look as .rd-panel with its 4 .rd-cn corners. */
.rd-skin .acct-wrap .panel, .rd-skin .deck-head, .rd-skin dialog { background: var(--rd-panel); border: 1px solid transparent; border-image: url(../ui/rd/frame.webp) 128 / 36px / 5px stretch; }
.rd-skin .acct-wrap .panel { padding: 24px 26px; margin-bottom: 26px; }
.rd-skin .acct-wrap .panel .panel { border-image: none; border-color: var(--rd-line); background: var(--rd-black); margin-bottom: 14px; }

/* ---------- Your decks ---------- */
.rd-skin .dk-open { background: radial-gradient(ellipse at center, #14110b 0%, var(--rd-black) 70%); }
.rd-skin .dk-count { background: var(--rd-red); color: var(--rd-bone); box-shadow: 0 0 0 3px var(--rd-panel); }
.rd-skin .dk-tap { font-weight: 600; letter-spacing: .03em; }
.rd-skin .dk-info { font-family: var(--body); font-weight: 700; }
.rd-skin .dk-name input { font-weight: 600; letter-spacing: .03em; }

/* ---------- How to play: the rule book's pages are not touched, only the frame around them ---------- */
.rd-skin .book-head, .rd-skin .book { margin-left: 0; margin-right: 0; }
.rd-skin .book-view { border: 1px solid var(--rd-gold-deep); background: #070605; }
.rd-skin .book-bar select { min-height: 46px; }
.rd-skin .book-pos { color: var(--rd-bone-dim); }
.rd-skin .book { padding-left: 52px; padding-right: 52px; max-width: 1400px; }
.rd-skin .book:not(.full) .book-view { margin-left: 0; }
.rd-skin .book:not(.full):not(.read) .book-bar { justify-content: flex-start; }
.rd-skin .book.full { background: var(--rd-black); }
@media (max-width: 900px) {
  .rd-skin .book { padding-left: 18px; padding-right: 18px; }
  /* the page buttons sit just above the bottom icon bar */
  body.rd-framed.rd-skin .book.read .book-bar { bottom: calc(63px + env(safe-area-inset-bottom)); background: var(--rd-black); border-top: 1px solid var(--rd-line); }
}
@media (max-width: 900px) { body.rd-framed.rd-skin:has(.book.read) #fbk-open { bottom: calc(205px + env(safe-area-inset-bottom)); } }

/* ---------- Profile ---------- */
.rd-skin .pf-wrap { max-width: 1300px; }
.rd-skin .pf-tile { background: var(--rd-panel); border-color: var(--rd-line); transition: border-color .25s ease, background-color .25s ease; }
.rd-skin .pf-tile:hover, .rd-skin .pf-tile:focus-visible { border-color: var(--rd-gold-deep); }
.rd-skin .pf-tile[aria-pressed="true"] { border-color: var(--rd-gold-deep); background: rgba(136, 104, 28, .13); box-shadow: inset 3px 0 0 var(--rd-gold); }
.rd-skin .pf-tile .pt-icon { background: #070605; border-color: var(--rd-gold-deep); box-shadow: none; }
.rd-skin .pf-tile[aria-pressed="true"] .pt-icon { border-color: var(--rd-gold); box-shadow: 0 0 10px rgba(201, 161, 58, .3); }
.rd-skin .pf-bar { background: var(--rd-line); }
/* the open tile sits on pale parchment (parchment B, John's pick on the style page), between 2 thin iron bars */
.rd-skin .pf-scroll { filter: none; padding: 0; }
.rd-skin .pf-scroll .rod { height: 7px; margin: 0; background: linear-gradient(#5b5145, #2e2922); box-shadow: 0 0 0 1px var(--rd-gold-deep); }
.rd-skin .pf-scroll .rod::before, .rd-skin .pf-scroll .rod::after { display: none; }
.rd-skin .pf-scroll .parch-wrap { margin: 0; }
.rd-skin .pf-scroll .parch { background: linear-gradient(90deg, rgba(80, 60, 30, .16), transparent 5%, transparent 95%, rgba(80, 60, 30, .16)), linear-gradient(#e9e2d0, #dcd2ba);
  --parchment: #24180a; --smoke: #5d4f38; --edge: rgba(70, 50, 20, .4); --line: rgba(70, 50, 20, .28); --gold: #6b4a10; --gold-deep: #6b4a10; --candle: #6b4a10; --oak: rgba(255, 255, 255, .28); --night: #e9e2d0; color: #24180a; }
.rd-skin .pf-scroll .parch h2 { color: #24180a; font-weight: 700; }
.rd-skin .pf-scroll .parch h3, .rd-skin .pf-scroll .parch b { color: #24180a; }
.rd-skin .pf-scroll .parch a:hover { color: #24180a; }
.rd-skin .pf-scroll .parch .chips button { color: #24180a; border-color: #6b4a10; }
.rd-skin .pf-scroll .parch .chips button:hover { color: #6b4a10; }
.rd-skin .pf-scroll .parch .chips button[aria-pressed="true"] { background: #24180a; border-color: #24180a; color: #e9e2d0; }
.rd-skin .pf-scroll .parch .btn { background: #24180a; color: #e9e2d0; }
.rd-skin .pf-scroll .parch .btn:hover { background: #3a2a14; color: #e9e2d0; filter: none; }
.rd-skin .pf-scroll .parch .btn.ghost { background: transparent; color: #24180a; border-color: #6b4a10; }

/* ---------- pop ups every page shares (assets/account.js makes them): Feedback, table invites, achievements ---------- */
body.rd-page #fbk, body.rd-framed #fbk { border-radius: 0; background: var(--rd-panel); color: var(--rd-bone); border: 1px solid transparent; border-image: url(../ui/rd/frame.webp) 128 / 36px / 5px stretch; padding: 24px; font: 400 17px/1.5 var(--rd-body); }
body.rd-page #fbk::backdrop, body.rd-framed #fbk::backdrop { background: rgba(0, 0, 0, .8); }
body.rd-page #fbk h2, body.rd-framed #fbk h2 { font-family: var(--rd-title); font-weight: 600; letter-spacing: .03em; color: var(--rd-gold); font-size: 1.4rem; }
body.rd-page #fbk p, body.rd-framed #fbk p { color: var(--rd-bone-dim); }
body.rd-page #fbk textarea, body.rd-framed #fbk textarea { border-radius: 0; background: #070605; color: var(--rd-bone); border-color: #5a4a22; }
body.rd-page #fbk button, body.rd-framed #fbk button { border-radius: 0; border-color: var(--rd-gold-deep); color: var(--rd-bone); font: 700 14px/1 var(--rd-body); min-height: 40px; }
body.rd-page #fbk .k button[aria-pressed=true], body.rd-page #fbk .r .go, body.rd-framed #fbk .k button[aria-pressed=true], body.rd-framed #fbk .r .go { background: var(--rd-gold); border-color: var(--rd-gold); color: var(--rd-ink); }
body.rd-page #fbk .m, body.rd-framed #fbk .m { color: var(--rd-gold); }
/* achievements land on pale parchment (parchment B) */
body.rd-page #achpop .ach, body.rd-framed #achpop .ach { border-radius: 0; background: linear-gradient(#e9e2d0, #dcd2ba); color: #24180a; border: 1px solid #6b4a10; font-family: var(--rd-body); }
body.rd-page #achpop .ach small, body.rd-framed #achpop .ach small { color: #6b4a10; }
body.rd-page #inv-pop .c, body.rd-framed #inv-pop .c { border-radius: 0; background: var(--rd-panel); color: var(--rd-bone); border: 1px solid var(--rd-gold); font: 400 16px/1.4 var(--rd-body); }
body.rd-page #inv-pop .t b, body.rd-framed #inv-pop .t b { color: var(--rd-gold); }
body.rd-page #inv-pop button, body.rd-framed #inv-pop button { border-radius: 0; border-color: var(--rd-gold-deep); color: var(--rd-bone); font: 700 15px/1 var(--rd-body); }
body.rd-page #inv-pop .go, body.rd-framed #inv-pop .go { background: var(--rd-gold); border-color: var(--rd-gold); color: var(--rd-ink); }
.rd-skin .tabs button[aria-selected="true"], .rd-skin .tabs button[aria-pressed="true"] { font-weight: 700; }

/* ---------- review fixes (role 5 review, November 13, 2026, John said fix it all) ---------- */
/* Cinzel is for big titles only. Headings that read as a sentence, and the tap hints, use the reading font. */
.rd-skin .dk-packs h2, .rd-skin .dk-gate h2, .rd-skin .dk-tap, .rd-skin .dk-rhead { font-family: var(--rd-body); font-weight: 700; letter-spacing: 0; }
.rd-skin .dk-packs h2, .rd-skin .dk-gate h2 { font-size: 1.3rem; color: var(--rd-bone); }
.rd-skin .dk-tap, .rd-skin .dk-rhead { font-size: 1.25rem; }
.rd-skin .dk-name input { font-family: var(--rd-body); font-weight: 700; letter-spacing: 0; }
/* "Ready to play" was light green: only the 4 colors */
.rd-skin .dk-decks .ok, .rd-skin .dk-status.ok { color: var(--rd-gold); }
.rd-skin .dk-search input { min-width: 17rem; }
/* the padlock is a small drawn icon, not an emoji */
.rd-lock { width: .95em; height: .95em; vertical-align: -.1em; fill: currentColor; }
.rd-skin .dk-lock { color: var(--rd-gold); font-size: 1.5rem; line-height: 1; background: var(--rd-panel); padding: 3px; }
/* on a phone the deck you are building sits above the cards, in its own short scrolling box, so you can see it while you add cards */
@media (max-width: 899px) {
  .rd-skin .dk-ed .dk-deck { order: -1; max-height: 46vh; overflow-y: auto; margin-bottom: 18px; }
  .rd-skin .dk-packs { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .rd-skin .dk-packart { width: 84px; height: 112px; }
  .rd-skin .dk-packart img { width: 74px; }
}
/* Profile: the lines under each tile name wrap instead of being cut off */
.rd-skin .pf-tile .pt-txt span { white-space: normal; overflow: visible; line-height: 1.35; }
.rd-skin .pf-fine { font-size: .9rem; }
/* All of the Cards: the Tier picker had 2 borders, and the Release 2 line was easy to miss */
.rd-skin .filters label.tier { border: 0; padding: 0; }
.rd-skin .r2lock summary { display: list-item; color: var(--rd-gold); font-size: 1rem; }
.rd-skin .r2lock summary:hover { color: var(--rd-bone); }
/* How to play: the rule book's pages are in the new look now (tools/build_site.py rd_slide swaps the fonts and colors) */
.rd-skin .book-stage th { font-family: var(--rd-body); font-weight: 700; color: #24180a; }
.rd-skin .book-stage .goto:hover { background: #e3dac6; }
.rd-skin .book.read .book-stage > section { border-radius: 0 !important; }
/* Full screen: the page fills the screen, with the buttons under it */
.rd-skin .book.full { display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; max-width: none; }
.rd-skin .book.full .book-view { width: min(100%, calc((100vh - 96px) * 16 / 9)); margin: 0 auto; }
.rd-skin .book.full .book-bar { justify-content: center; }
.rd-skin .book.read .book-stage h1, .rd-skin .book.read .book-stage h2 { font-size: 1.7rem !important; }

/* ---------- Home: the tavern stays put behind the whole page (John, November 13, 2026: "frozen in the background") ----------
   The picture is pinned to the window. At the top it shows as before; once you scroll past the big logo it dims so the words
   on top stay easy to read. (body.rd-biglogo is set by the small script on the home page while the big logo is on screen.) */
.rd-home .rd-main > .rd-hero { isolation: auto; }
.rd-home .rd-main { background: transparent; }
.rd-home .rd-hero-art { position: fixed; inset: 0; z-index: -1; }
.rd-home .rd-hero-art > img { transition: filter .6s ease; filter: brightness(.34); }
.rd-home.rd-biglogo .rd-hero-art > img { filter: none; }
.rd-home .rd-flame { transition: opacity .6s ease; }
.rd-home:not(.rd-biglogo) .rd-flame { animation: none; opacity: .12; }
.rd-home .rd-hero-art::after { background: linear-gradient(90deg, rgba(11, 10, 8, .55) 0%, rgba(11, 10, 8, .35) 42%, transparent 62%); }
@media (max-width: 900px) {
  .rd-home .rd-hero-art { top: var(--rd-strip, 69px); }
  .rd-home .rd-hero-art::after { background: linear-gradient(180deg, rgba(11, 10, 8, .93) 0%, rgba(11, 10, 8, .88) 48%, rgba(11, 10, 8, .25) 74%, transparent 84%); }
  .rd-home:not(.rd-biglogo) .rd-hero-art > img { filter: brightness(.28); }
}

/* ---------- every page has its own picture pinned behind it (John, November 13, 2026) ----------
   Same idea as Home: the picture stays put while the page scrolls over it. Each picture is the same tavern, about what you do on
   that page, with its detail on the right. A dark veil over it keeps text easy to read; boxes keep their own near black.
   frame.js writes data-rd-page on <body>. The table itself (body.in-game) keeps its wood and leather mat. */
body[data-rd-page="play"] { --rd-bg: url(../ui/rd/play_lobby_bg.webp); }
body[data-rd-page="cards"] { --rd-bg: url(../ui/rd/cards_bg.webp); }
body[data-rd-page="decks"] { --rd-bg: url(../ui/rd/decks_bg.webp); }
body[data-rd-page="rules"] { --rd-bg: url(../ui/rd/rules_bg.webp); }
body[data-rd-page="profile"] { --rd-bg: url(../ui/rd/profile_bg.webp); }
body[data-rd-page="account"] { --rd-bg: url(../ui/rd/account_bg.webp); }
body[data-rd-page="friends"] { --rd-bg: url(../ui/rd/friends_bg.webp); }
body[data-rd-page="leaderboard"] { --rd-bg: url(../ui/rd/leaderboard_bg.webp); }
body[data-rd-page]:not(.rd-home):not(.in-game)::before {
  content: ''; display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 1; border: 0;
  background: linear-gradient(rgba(11, 10, 8, .5), rgba(11, 10, 8, .5)), var(--rd-bg, none) 100% 50% / cover no-repeat, #0b0a08;
}
@media (max-width: 900px) {
  body[data-rd-page]:not(.rd-home):not(.in-game)::before { top: var(--rd-strip, 69px); background: linear-gradient(rgba(11, 10, 8, .74), rgba(11, 10, 8, .74)), var(--rd-bg, none) 100% 50% / cover no-repeat, #0b0a08; }
}
/* ---------- Profile: a real scroll (Ben, November 14, 2026) ----------
   Wooden rollers with brass end caps (ui/rd/scroll_rod.webp, made in ChatGPT; border-image keeps the 2 caps their shape and stretches only the wood),
   pale parchment with a real paper texture (ui/rd/parchment_tile.webp), rough left and right paper edges, darker aged edges, and the paper
   curling out from under each roller. Opening a tile rolls it up and unrolls it again: the bottom roller drops as the paper comes out. */
.rd-skin .pf-scroll { display: block; --rod-h: 34px; --cap: 43px; padding: 0 calc(var(--cap) - 4px); filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .6)); }
.rd-skin .pf-scroll .rod { position: relative; z-index: 2; height: var(--rod-h); margin: 0 calc(4px - var(--cap)); border-radius: 0; background: none; box-shadow: none;
  border-style: solid; border-width: 0 var(--cap); border-image: url(../ui/rd/scroll_rod.webp) 0 122 fill / 0 var(--cap) stretch;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .55)); }
.rd-skin .pf-scroll .rod::before, .rd-skin .pf-scroll .rod::after { display: none; }
/* the paper tucks under each roller */
.rd-skin .pf-scroll .parch-wrap { display: block; position: relative; margin: -3px 0; overflow: hidden; transition: height .75s cubic-bezier(.22, .8, .24, 1); }
.rd-skin .pf-scroll.shutting .parch-wrap { transition-duration: .45s; transition-timing-function: cubic-bezier(.55, 0, .7, .4); }
.rd-skin .pf-scroll.shut .parch-wrap { height: 0; margin: 0; }
.rd-skin .pf-scroll .parch-wrap::before, .rd-skin .pf-scroll .parch-wrap::after { content: ''; position: absolute; left: 8px; right: 8px; height: 22px; z-index: 1; pointer-events: none; }
.rd-skin .pf-scroll .parch-wrap::before { top: 0; background: linear-gradient(rgba(58, 38, 12, .55), rgba(58, 38, 12, .18) 45%, transparent); }
.rd-skin .pf-scroll .parch-wrap::after { bottom: 0; background: linear-gradient(transparent, rgba(58, 38, 12, .18) 55%, rgba(58, 38, 12, .55)); }
.rd-skin .pf-scroll .parch {
  background-color: #e0c595;
  background-image: radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(110, 66, 20, .32) 100%), url(../ui/rd/parchment_tile.webp);
  background-size: 100% 100%, 900px auto; background-position: 0 0, 0 0;
  box-shadow: inset 18px 0 22px -12px rgba(95, 55, 15, .6), inset -18px 0 22px -12px rgba(95, 55, 15, .6);
  -webkit-mask: var(--rd-deckle-l) left top / 10px 180px repeat-y, linear-gradient(#000, #000) center / calc(100% - 18px) 100% no-repeat, var(--rd-deckle-r) right top / 10px 180px repeat-y;
  mask: var(--rd-deckle-l) left top / 10px 180px repeat-y, linear-gradient(#000, #000) center / calc(100% - 18px) 100% no-repeat, var(--rd-deckle-r) right top / 10px 180px repeat-y; }
.rd-skin .pf-scroll {
  --rd-deckle-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 180' preserveAspectRatio='none'%3E%3Cpath d='M10 0H4.2L3 9l2.1 8-2.6 11 1.8 9-2.9 13 2.4 10L2 72l2.7 9-1.6 12 2.3 8-3 12 2.5 9-1.4 11 2.6 10-2.2 10 1.8 9-2.4 9 2.1 9L4.2 180H10Z'/%3E%3C/svg%3E");
  --rd-deckle-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 180' preserveAspectRatio='none'%3E%3Cpath d='M0 0h5.8L7 8l-2.3 9 2.7 10-1.9 10 2.8 12-2.2 11L8 72l-2.6 10 1.7 11-2.4 9 2.9 11-2.3 9 1.6 11-2.7 9 2.3 11-1.9 9 2.5 9-2 10L5.8 180H0Z'/%3E%3C/svg%3E"); }
.rd-skin .pf-scroll .parch h2 { font-family: var(--rd-title); letter-spacing: .04em; text-align: center; margin-top: 1.1rem; }
.rd-skin .pf-scroll .parch h2::after { content: ''; display: block; width: min(260px, 60%); height: 10px; margin: .35rem auto 0; background: url(../ui/rd/gold_divider.webp) center / contain no-repeat; opacity: .8; }
.rd-skin .pf-scroll .pf-scroll-b { scrollbar-width: thin; scrollbar-color: rgba(107, 74, 16, .55) transparent; }
@media (max-width: 899px) {
  .rd-skin .pf-scroll { --rod-h: 26px; --cap: 33px; }
  .rd-skin .pf-scroll .parch { background-size: 100% 100%, 640px auto; }
}
@media (prefers-reduced-motion: reduce) { .rd-skin .pf-scroll .parch-wrap { transition: none; } }
/* the achievement pop ups on every page use the same paper */
body.rd-page #achpop .ach, body.rd-framed #achpop .ach { background: url(../ui/rd/parchment_tile.webp) 0 0 / 600px auto, #e0c595; box-shadow: inset 0 0 22px rgba(110, 76, 30, .35), 0 10px 28px rgba(0, 0, 0, .6); }

/* ---------- Achievements, second pass (Ben, November 14, 2026): what's left first, finished ones fold away ---------- */
.ac-tro { width: 30px; height: 30px; flex: none; }
.ac-tro .c { fill: rgba(70, 50, 20, .06); stroke: rgba(70, 50, 20, .45); stroke-width: 1.1; stroke-linejoin: round; }
.ac-tro .h { stroke: rgba(70, 50, 20, .45); stroke-width: 1.3; stroke-linecap: round; }
.ac-tro .gem { fill: none; stroke: rgba(140, 28, 28, .5); stroke-width: 1; }
.ac-tro.got { --m: #b8871d; --mh: #e7c766; filter: drop-shadow(0 1px 1px rgba(40, 25, 5, .45)); }
.ac-tro.got.m-common { --m: #9a5f2a; --mh: #d79a5c; }
.ac-tro.got.m-rare { --m: #7d848c; --mh: #d8dde2; }
.ac-tro.got.m-epic, .ac-tro.got.m-legendary { --m: #b8871d; --mh: #ecd07a; }
.ac-tro.got .c { fill: var(--m); stroke: rgba(40, 25, 5, .55); stroke-width: .7; }
.ac-tro.got .h { stroke: var(--m); stroke-width: 1.6; }
.ac-tro.got .sh { fill: var(--mh); opacity: .75; }
.ac-tro.got .gem { fill: #8c1c1c; stroke: #e7c766; stroke-width: .5; }
/* summary: ring, % and a trophy count per tier */
.ac-sum { display: flex; align-items: center; gap: 1.2rem; padding: .4rem 0 1rem; border-bottom: 1px solid rgba(70, 50, 20, .25); margin-bottom: .9rem; }
html body.rd-skin .ac-ring, html body.rd-skin .ac-ring > div { border-radius: 50% !important; }
.ac-ring { --p: 0; width: 104px; height: 104px; flex: none; border-radius: 50% !important; display: grid; place-items: center;
  background: conic-gradient(#8a6417 calc(var(--p) * 1%), rgba(70, 50, 20, .14) 0); animation: ac-fill 1.1s cubic-bezier(.22, .8, .24, 1) both; }
.ac-ring > div { width: 82px; height: 82px; border-radius: 50% !important; background: #efdfbd; display: grid; place-content: center; text-align: center; box-shadow: inset 0 0 8px rgba(110, 76, 30, .3); line-height: 1.05; }
.ac-ring b { font: 700 1.7rem/1 'Lexend', var(--rd-body); color: #24180a; }
.ac-ring span { font-size: .8rem; color: #5d4f38; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes ac-fill { from { --p: 0; } }
.ac-sum-r { min-width: 0; display: grid; gap: .35rem; }
.ac-pct { margin: 0; font-size: 1.05rem; color: #24180a; } .ac-pct b { font: 700 1.35rem/1 'Lexend', var(--rd-body); }
.ac-tally { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.ac-tally li { display: flex; align-items: center; gap: .25rem; font: 400 .95rem/1 'Lexend', var(--rd-body); color: #5d4f38; }
.ac-tally li b { color: #24180a; } .ac-tally .ac-tro { width: 24px; height: 24px; }
.ac-xpgot { margin: 0; font-size: .9rem; color: #5d4f38; }
/* still to earn */
.ac-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 .6rem; }
.ac-head h3 { margin: 0; font-size: 1.15rem; color: #24180a; }
.ac-head h3 span { display: inline-block; min-width: 1.7em; margin-left: .35rem; padding: .1rem .45rem; border-radius: 999px; background: #24180a; color: #e9e2d0; font: 700 .85rem/1.3 'Lexend', var(--rd-body); text-align: center; vertical-align: .1em; }
.ac-sort { display: inline-flex; border: 1px solid #6b4a10; }
.ac-sort button { font: 700 .85rem/1 var(--rd-body); color: #24180a; background: transparent; border: 0; padding: .5rem .8rem; min-height: 36px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.ac-sort button[aria-pressed="true"] { background: #24180a; color: #e9e2d0; }
.ac-grp { margin: 0 0 1.1rem; }
.ac-grp header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ac-grp h4 { margin: 0; font-size: 1rem; color: #24180a; }
.ac-gm { font: 400 .85rem/1.2 'Lexend', var(--rd-body); color: #5d4f38; text-align: right; display: grid; }
.ac-gm small { font-family: var(--rd-body); font-size: .76rem; color: #6b4a10; }
.ac-bar { height: 8px; background: rgba(70, 50, 20, .14); box-shadow: inset 0 1px 2px rgba(40, 25, 5, .25); overflow: hidden; }
.ac-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6b4a10, #b8871d); transform-origin: left; animation: ac-grow .9s cubic-bezier(.22, .8, .24, 1) both; }
.ac-bar.thin { height: 4px; margin: .35rem 0 .5rem; }
@keyframes ac-grow { from { transform: scaleX(0); } }
.ac-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ac-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .3rem .8rem; padding: .6rem .75rem; background: rgba(255, 246, 225, .3); border: 1px solid rgba(80, 50, 15, .28); transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.ac-item:hover { border-color: rgba(107, 74, 16, .6); background: rgba(255, 255, 255, .4); }
.ac-txt { min-width: 0; display: grid; gap: .1rem; }
.ac-txt b { color: #24180a; }
.ac-txt > span { color: #5d4f38; font-size: .92rem; line-height: 1.35; }
.ac-txt abbr { text-decoration: none; color: #6b4a10; cursor: help; }
.ac-prog { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; }
.ac-prog .ac-bar { flex: 1; max-width: 260px; }
.ac-prog small { font: 700 .8rem/1 'Lexend', var(--rd-body); color: #6b4a10; white-space: nowrap; }
.ac-parts { margin-top: .35rem; }
.ac-parts summary { cursor: pointer; font: 700 .82rem/1.2 'Lexend', var(--rd-body); color: #6b4a10; width: max-content; padding: .2rem 0; }
.ac-parts summary:hover, .ac-parts summary:focus-visible { color: #3d2a08; text-decoration: underline; }
.ac-parts ul { list-style: none; margin: .3rem 0 0; padding: .35rem .55rem; display: grid; gap: .2rem; background: rgba(255, 250, 235, .55); border: 1px solid rgba(80, 50, 15, .2); max-height: 15rem; overflow-y: auto; }
.ac-parts li { display: flex; justify-content: space-between; gap: .8rem; font-size: .88rem; color: #5d4f38; }
.ac-parts li small { white-space: nowrap; font-weight: 700; color: #7a6a50; }
.ac-parts li.ok { color: #24180a; }
.ac-parts li.ok small { color: #3f6b1f; }
.ac-xp { font-style: normal; text-align: right; font: 700 .95rem/1.1 'Lexend', var(--rd-body); color: #24180a; white-space: nowrap; display: grid; }
.ac-xp small { font-family: var(--rd-body); font-weight: 400; font-size: .74rem; color: #5d4f38; }
.ac-allset { margin: 0 0 1rem; font-weight: 700; }
/* completed: one bar you tap to open, closed by default */
.ac-done { margin: 1.4rem 0 1rem; border: 1px solid #6b4a10; background: linear-gradient(rgba(184, 135, 29, .14), rgba(184, 135, 29, .05)); }
.ac-done-h { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; min-height: 54px; background: none; border: 0; cursor: pointer; font: inherit; color: #24180a; text-align: left; }
.ac-done-h:hover { background: rgba(184, 135, 29, .12); }
.ac-done-t { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.08rem; }
.rd-skin .pf-scroll .parch .ac-done-t b { color: #f1e9d6; }
.ac-done-t b { font: 700 .85rem/1.3 'Lexend', var(--rd-body); background: #6b4a10; color: #f1e9d6; border-radius: 999px; padding: .1rem .5rem; }
.ac-done-s { font-size: .85rem; color: #5d4f38; }
.ac-chev { width: 22px; height: 22px; margin-left: auto; color: #6b4a10; transition: transform .35s cubic-bezier(.22, .8, .24, 1); }
.ac-done.open .ac-chev { transform: rotate(180deg); }
.ac-done-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.22, .8, .24, 1); }
.ac-done.open .ac-done-b { grid-template-rows: 1fr; }
.ac-done-in { min-height: 0; overflow: hidden; padding: 0 .75rem; opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .45s cubic-bezier(.22, .8, .24, 1), padding .5s ease; }
.ac-done.open .ac-done-in { opacity: 1; transform: none; padding: .2rem .75rem .9rem; }
.ac-item.got { background: rgba(255, 250, 235, .45); border-color: rgba(184, 135, 29, .55); }
.ac-item.got .ac-xp { color: #6b4a10; }
.ac-seals { list-style: none; margin: .2rem 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.ac-seals li { display: flex; align-items: center; gap: .5rem; }
.ac-seals .pg-seal { width: 40px; height: 40px; }
.ac-seals span { display: grid; line-height: 1.2; } .ac-seals small { color: #2f6a2f; font-weight: 700; font-size: .78rem; }
@media (max-width: 560px) {
  .ac-sum { gap: .9rem; } .ac-ring { width: 86px; height: 86px; } .ac-ring > div { width: 68px; height: 68px; } .ac-ring b { font-size: 1.4rem; }
  .ac-item { grid-template-columns: auto minmax(0, 1fr); padding: .55rem .6rem; gap: .2rem .6rem; }
  .ac-item .ac-xp { grid-column: 2; text-align: left; display: flex; gap: .4rem; align-items: baseline; }
  .ac-tro { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .ac-ring, .ac-bar i { animation: none; } .ac-done-b, .ac-done-in, .ac-chev { transition: none; } }

/* Customize your profile: 3 sections that open and close (November 14, 2026, John, feedback). profile-page.js customHTML */
.pf-sec { border-bottom: 1px solid var(--line); }
.pf-sec:first-child { border-top: 1px solid var(--line); }
.pf-sec > summary { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 4px; cursor: pointer; list-style: none; }
.pf-sec > summary::-webkit-details-marker { display: none; }
.pf-sec > summary::after { content: ''; width: 9px; height: 9px; margin: 0 6px 4px auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease; flex: none; }
.pf-sec[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.pf-sec-t { font-weight: 700; font-size: 1.05rem; min-width: 8.5em; }
.pf-sec-now { display: flex; align-items: center; gap: 10px; color: var(--smoke); min-width: 0; }
.pf-sec-now img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.pf-sec-now img.pf-sec-card { width: 29px; border-radius: 3px; }
.pf-sec-b { padding: 4px 4px 18px; }
.pf-sec > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* The left menu fits the screen with no scrolling (November 14, 2026, John, feedback). On a computer the Profile link is gone:
   the profile ring and the level badge at the top already open it. The phone bar keeps its Profile icon.
   Shorter screens get a tighter menu so nothing needs to scroll and the logo sits clear of the bottom edge. */
@media (min-width: 901px) {
  .rd-menu a[data-k="profile"] { display: none; }
  .rd-side { scrollbar-width: none; }
  .rd-side::-webkit-scrollbar { display: none; }
  .rd-logo { padding: 14px 26px 30px; }
}
@media (min-width: 901px) and (max-height: 860px) {
  .rd-menu a { min-height: 46px; padding-top: 4px; padding-bottom: 4px; }
  .rd-menu img { width: 34px; height: 34px; }
  .rd-menu { padding-bottom: 8px; }
  .rd-logo { padding: 8px 30px 24px; }
}
@media (min-width: 901px) and (max-height: 700px) {
  .rd-menu a { min-height: 40px; }
  .rd-menu img { width: 30px; height: 30px; }
  .rd-logo { padding: 6px 40px 18px; }
}

/* All of the Cards: section headings in the grid (November 14, 2026, John, feedback). assets/cards.js SECTIONS */
.grid > li.grid-h { grid-column: 1 / -1; margin: 22px 0 -4px; padding-bottom: 6px; border-bottom: 1px solid var(--rd-line, #2b2417); }
.grid > li.grid-h:first-child { margin-top: 0; }
.grid > li.grid-h h2 { margin: 0; font-size: 1.25rem; }
.grid > li.grid-h h2 span { font-family: inherit; font-size: .85rem; color: var(--rd-bone-dim, #a8a08f); font-weight: 400; margin-left: 6px; }

/* Level up rewards and Your stats, draft 2 (November 14, 2026, John, feedback). profile-page.js rewardsHTML, statsHTML. Sits on the parchment. */
.rr-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-bottom: 8px; }
.rr-next, .rr-ms { border: 1px solid rgba(70, 50, 20, .35); border-radius: 6px; padding: 14px 16px; background: rgba(255, 255, 255, .22); }
.rr-ms { background: rgba(107, 74, 16, .08); border-color: #6b4a10; }
.rr-kick { margin: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #6b4a10; font-weight: 700; }
.rr-next h3, .rr-ms h3 { margin: 2px 0 6px; font-size: 1.6rem; }
.rr-art { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; margin-top: 10px; }
.rr-art > span { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .88rem; max-width: 9.5rem; }
.rr-art .rr-card img { width: 92px; height: auto; border-radius: 5px; box-shadow: 0 6px 16px rgba(40, 25, 5, .35); }
.rr-art .rr-card.rr-head img { width: 112px; box-shadow: 0 0 0 2px #6b4a10, 0 8px 20px rgba(40, 25, 5, .45); }
.rr-art .rr-packimgs, .rr-faceimgs, .rr-bits .rr-packimgs { display: flex; }
.rr-art .rr-packimgs img { width: 62px; height: auto; margin-left: -34px; filter: drop-shadow(0 5px 8px rgba(40, 25, 5, .35)); }
.rr-art .rr-packimgs img:first-child { margin-left: 0; }
.rr-art .rr-faceimgs img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-left: -12px; border: 2px solid #e9e2d0; }
.rr-art .rr-faceimgs img:first-child { margin-left: 0; }
.rr-roadh { margin-top: 18px; }
.rr-road { list-style: none; margin: 6px 0 10px; padding: 0 0 0 4px; position: relative; display: block; }
.rr-road::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 3px; background: repeating-linear-gradient(#6b4a10 0 8px, transparent 8px 14px); opacity: .55; }
.rr-road .rr-road::before { display: none; }
.rr-stop { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 0; border: 0; background: none; }
.rr-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e9e2d0; border: 2px solid #6b4a10; font-weight: 700; font-size: .85rem; color: #24180a; }
.rr-stop.ms .rr-dot { width: 38px; height: 38px; margin-left: -2px; background: #6b4a10; color: #f4ecd8; box-shadow: 0 0 0 3px rgba(107, 74, 16, .25); }
.rr-stop.now .rr-dot { background: #24180a; color: #f4ecd8; animation: rrPulse 1.8s ease-in-out infinite; }
@keyframes rrPulse { 50% { box-shadow: 0 0 0 7px rgba(107, 74, 16, .18); } }
.rr-row b em { font-style: normal; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #6b4a10; margin-left: 6px; }
.rr-bits { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: .9rem; margin-top: 2px; }
.rr-bits > span { display: inline-flex; align-items: center; gap: 6px; }
.rr-bits img { width: 22px; height: auto; border-radius: 2px; }
.rr-bits .rr-faceimgs img { width: 24px; height: 24px; border-radius: 50%; margin-left: -8px; border: 1px solid #e9e2d0; }
.rr-bits .rr-faceimgs img:first-child, .rr-bits .rr-packimgs img:first-child { margin-left: 0; }
.rr-bits .rr-packimgs img { margin-left: -12px; }
.rr-stop.ms .rr-bits .rr-card img { width: 34px; }
.rr-done > details { grid-column: 1 / -1; }
.rr-done summary { display: grid; grid-template-columns: 38px auto 1fr; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.rr-done summary::-webkit-details-marker { display: none; }
.rr-done summary .pf-fine { justify-self: start; text-decoration: underline; }
.rr-done[open] summary .pf-fine, .rr-done details[open] summary .pf-fine { visibility: hidden; }
.rr-done .rr-dot { background: #4f6b3a; border-color: #4f6b3a; color: #f4ecd8; }
.rr-done .rr-stop { opacity: .7; }
.rr-none { opacity: .7; }

.st-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.st-ring { width: 128px; height: 128px; flex: none; }
.st-ring circle { fill: none; stroke-width: 9; }
.st-ring .bg { stroke: rgba(70, 50, 20, .18); }
.st-ring .fg { stroke: #6b4a10; stroke-linecap: round; }
.st-ring text { text-anchor: middle; fill: #24180a; font-family: inherit; }
.st-ring .big { font-size: 22px; font-weight: 700; dominant-baseline: middle; }
.st-ring .sm { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; fill: #5d4f38; }
.st-big { margin: 0 0 4px; font-size: 1.25rem; }
.st-big b { font-size: 1.6rem; }
.st-best { margin: 0 0 4px; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 0 0 8px; }
.st-tile { display: grid; gap: 2px; border: 1px solid rgba(70, 50, 20, .35); border-radius: 6px; padding: 10px 12px; background: rgba(255, 255, 255, .22); }
.st-tile b { font-size: 1.55rem; line-height: 1.1; }
.st-tile b i { font-style: normal; opacity: .5; margin: 0 2px; }
.st-tile span { font-weight: 700; font-size: .9rem; }
.st-tile small { color: #5d4f38; font-size: .82rem; }
/* top cards (November 15, 2026, John): most damage and most monsters destroyed */
.st-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 6px; }
.st-top { display: flex; gap: 12px; align-items: center; border: 1px solid rgba(70, 50, 20, .35); border-radius: 6px; padding: 8px 12px 8px 8px; background: rgba(255, 255, 255, .22); }
.st-top img { width: 64px; height: auto; border-radius: 4px; flex: none; }
.st-top div { display: grid; gap: 2px; }
.st-top span { font-weight: 700; font-size: .9rem; }
.st-top b { font-size: 1.15rem; line-height: 1.15; }
.st-top small { color: #5d4f38; font-size: .82rem; }
.st-decks { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 8px; }
.st-decks li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 8px; border-radius: 6px; }
.st-decks li.best { background: rgba(107, 74, 16, .1); box-shadow: inset 3px 0 0 #6b4a10; }
.st-decks img, .st-nobox { width: 52px; height: 52px; object-fit: contain; display: block; }
.st-nobox { border: 1px dashed rgba(70, 50, 20, .4); border-radius: 4px; }
.st-bar { height: 10px; border-radius: 999px; background: rgba(70, 50, 20, .15); overflow: hidden; margin: 4px 0 2px; }
.st-bar i { display: block; height: 100%; background: #6b4a10; }
.st-decks small { color: #5d4f38; }
@media (max-width: 640px) {
  .rr-top { grid-template-columns: 1fr; }
  .st-hero { flex-direction: column; align-items: flex-start; gap: 10px; }
  .st-ring { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) { .rr-stop.now .rr-dot { animation: none; } }

html body.rd-skin .rr-dot, html body.rd-skin .rr-art .rr-faceimgs img, html body.rd-skin .rr-bits .rr-faceimgs img { border-radius: 50% !important; }

/* Wooden buttons (November 14, 2026, John picked the oak plank from 3 ChatGPT options; art: ui/rd/button_oak.webp,
   source Claude Documents/Website Art/button_oak.png). Replaces the flat gold on every main button: .rd-btn, .btn in the reskinned pages,
   and the table's gold buttons (assets/table-rd.css). Outline (ghost, rd-line), red and disabled buttons keep their own look. */
.rd-btn:not(.rd-line):not(.rd-red):not(:disabled):not([aria-disabled="true"]),
.rd-skin .btn:not(.ghost):not(:disabled),
html body.rd-skin .pf-scroll .parch .btn:not(.ghost):not(:disabled) {
  background: #3a2414; border: 12px solid transparent; border-image: url(../ui/rd/button_oak.webp) 32 fill / 12px / 0 stretch;
  color: #f3e6c4; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); clip-path: none; padding-left: 1.1em; padding-right: 1.1em;
  transition: filter .2s ease, transform .1s ease;
}
.rd a.rd-btn:not(.rd-line):not(.rd-red) { color: #f3e6c4; }
.rd-btn:not(.rd-line):not(.rd-red):not(:disabled):hover, .rd-skin .btn:not(.ghost):not(:disabled):hover,
html body.rd-skin .pf-scroll .parch .btn:not(.ghost):not(:disabled):hover { background: #3a2414; color: #fff4d6; filter: brightness(1.18) drop-shadow(0 0 8px rgba(201, 161, 58, .35)); }
.rd-btn:not(.rd-line):not(.rd-red):not(:disabled):active, .rd-skin .btn:not(.ghost):not(:disabled):active { filter: brightness(.9); transform: translateY(1px); }
.rd-btn.rd-sm:not(.rd-line):not(.rd-red), .rd-skin .btn.sm:not(.ghost) { border-width: 9px; border-image-width: 9px; }
.rd-btn.rd-big:not(.rd-line):not(.rd-red) { border-width: 15px; border-image-width: 15px; }

/* ---------- Achievements, third pass (Ben, November 14, 2026): To earn / Completed / All along the top, trophies and groups filter the list ---------- */
.rd-skin .pf-scroll .parch .ac-sum-r b { color: inherit; }
.ac-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #6b4a10; margin: 0 0 1rem; background: rgba(255, 246, 225, .25); }
.ac-views button { font: 700 .98rem/1.1 var(--rd-body); color: #24180a; background: transparent; border: 0; border-left: 1px solid rgba(107, 74, 16, .45); padding: .7rem .5rem; min-height: 46px; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.ac-views button:first-child { border-left: 0; }
.ac-views button:hover { background: rgba(184, 135, 29, .14); }
.ac-views button[aria-selected="true"] { background: #24180a; color: #f1e9d6; }
.ac-views button span { font: 700 .8rem/1 'Lexend', var(--rd-body); opacity: .75; margin-left: .2rem; }
.ac-lbl { margin: 0 0 .4rem; font-weight: 700; font-size: .92rem; color: #24180a; }
.ac-lbl small { font-weight: 400; color: #5d4f38; margin-left: .35rem; }
.ac-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin: 0 0 .9rem; }
.ac-tier { display: flex; align-items: center; gap: .5rem; min-height: 52px; padding: .45rem .55rem; text-align: left; cursor: pointer; font: inherit; color: #24180a;
  background: rgba(255, 246, 225, .3); border: 1px solid rgba(80, 50, 15, .3); transition: background-color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease; }
.ac-tier:hover { border-color: #6b4a10; transform: translateY(-1px); }
.ac-tier[aria-pressed="true"] { background: rgba(184, 135, 29, .22); border-color: #6b4a10; box-shadow: inset 0 0 0 1px #6b4a10; }
.ac-tier .ac-tro { width: 30px; height: 30px; }
.ac-tier-t { display: grid; line-height: 1.15; min-width: 0; }
.ac-tier-t b { font: 700 1.05rem/1.1 'Lexend', var(--rd-body); } .ac-tier-t b small { font-weight: 400; font-size: .8rem; color: #5d4f38; }
.ac-tier-t > small { font-size: .74rem; color: #5d4f38; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.ac-chip { font: 700 .86rem/1.1 var(--rd-body); color: #24180a; background: rgba(255, 246, 225, .3); border: 1px solid rgba(80, 50, 15, .35); padding: .45rem .7rem; min-height: 38px; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.ac-chip span { font: 400 .78rem/1 'Lexend', var(--rd-body); color: #5d4f38; transition: color .25s ease; }
.ac-chip i { font-style: normal; color: #8c1c1c; font-size: .7rem; }
.ac-chip:hover { border-color: #6b4a10; }
.ac-chip[aria-pressed="true"] { background: #24180a; border-color: #24180a; color: #f1e9d6; }
.ac-chip[aria-pressed="true"] span { color: #d9c9a3; }
.ac-bar-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin: 0 0 .7rem; }
.ac-bar-row:has(.ac-sort[hidden]):has(.ac-filt:empty) { display: none; }
.ac-filt { margin: 0; font-size: .9rem; color: #5d4f38; }
.ac-filt button { margin-left: .4rem; font: 700 .82rem/1 var(--rd-body); color: #24180a; background: none; border: 1px solid #6b4a10; padding: .35rem .6rem; cursor: pointer; }
.ac-sort[hidden] { display: none; }
.ac-sort { margin-left: auto; }
.ac-results { transition: opacity .15s ease, transform .2s ease; }
.ac-results.out { opacity: 0; transform: translateY(4px); }
.ac-grp h4 { display: flex; align-items: center; gap: .4rem; } .ac-grp h4 .pg-seal { width: 30px; height: 30px; }
.ac-empty { margin: .4rem 0 1rem; padding: 1rem; text-align: center; font-weight: 700; color: #5d4f38; border: 1px dashed rgba(80, 50, 15, .4); }
@media (max-width: 760px) {
  .ac-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-tier-t > small { white-space: normal; }
  .ac-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -1rem; padding-right: 1rem; scrollbar-width: none; scroll-snap-type: x proximity; }
  .ac-chips::-webkit-scrollbar { display: none; }
  .ac-chip { flex: none; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .ac-results, .ac-tier, .ac-chip, .ac-views button { transition: none; } }


/* finished achievements look finished (Ben, November 14, 2026): warm gold card, gold edge, an Earned tick; open ones stay plain paper */
.ac-item { background: rgba(255, 248, 232, .22); }
.ac-item:not(.got) .ac-tro { opacity: .75; }
.rd-skin .pf-scroll .parch .ac-item.got { background: linear-gradient(90deg, rgba(196, 150, 40, .32), rgba(196, 150, 40, .12) 70%); border-color: #8a6417; box-shadow: inset 4px 0 0 #8a6417; }
.rd-skin .pf-scroll .parch .ac-item.got .ac-txt b { color: #4a3008; }
.ac-item.got .ac-tro { width: 34px; height: 34px; }
.ac-earned { display: inline-flex; align-items: center; justify-content: flex-end; gap: .2rem; font: 700 .72rem/1 var(--rd-body); letter-spacing: .04em; text-transform: uppercase; color: #2f6a2f; margin-bottom: .2rem; }
.ac-earned svg { width: 14px; height: 14px; }
@media (max-width: 560px) { .ac-earned { margin: 0 .3rem 0 0; } }

/* "All trophies" first, like "All groups" (Ben, November 14, 2026) */
.ac-tiers { grid-template-columns: minmax(64px, .6fr) repeat(4, minmax(0, 1fr)); }
.ac-tier-all { justify-content: center; text-align: center; }
.ac-tier-all .ac-tier-t b { font-family: var(--rd-body); font-size: 1rem; }
.rd-skin .pf-scroll .parch .ac-tier[aria-pressed="true"] { background: #24180a; border-color: #24180a; box-shadow: none; color: #f1e9d6; }
.rd-skin .pf-scroll .parch .ac-tier[aria-pressed="true"] b, .rd-skin .pf-scroll .parch .ac-tier[aria-pressed="true"] small { color: #f1e9d6; }
@media (max-width: 760px) { .ac-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-tier-all { grid-column: 1 / -1; min-height: 40px; } .ac-tier-all .ac-tier-t { grid-auto-flow: column; gap: .3rem; align-items: baseline; } }
.ac-tier-t > small { white-space: normal; overflow: visible; }

/* How to earn XP box in Level up rewards (November 14, 2026, Ben) */
.xp-how { border: 1px solid rgba(70, 50, 20, .35); padding: 14px 16px; background: rgba(255, 255, 255, .22); margin: 8px 0 18px; scroll-margin-top: 12px; }
.xp-how .pf-sub { margin: 0 0 10px; }
.xp-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; }
.xp-kick { margin: 0 0 4px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #5d4f38; font-weight: 700; }
.xp-how ul { list-style: none; margin: 0; padding: 0; }
.xp-how li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(70, 50, 20, .2); }
.xp-what { min-width: 0; } .xp-what small { display: block; font-size: .74rem; color: #5d4f38; }
.xp-n { white-space: nowrap; font: 700 1rem/1.1 'Lexend', var(--rd-body); color: #24180a; }
.xp-how .pf-fine { margin: 6px 0 0; }
.rd-skin .pf-scroll .parch a.xp-jump { color: #24180a; font-weight: 700; text-decoration: underline; }
@media (max-width: 760px) { .xp-cols { grid-template-columns: 1fr; } }

/* Profile top (November 14, 2026, Ben): no page heading, the panel sits at the top, and your account is a gear in the panel.
   The h1 stays for screen readers. */
.pf-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rd-skin main:has(> .pf-h1) { padding-top: 28px; }
.pf-gear { flex: none; align-self: flex-start; display: grid; justify-items: center; gap: 3px; min-width: 48px; padding: 6px 4px; color: var(--rd-bone-dim, #b9ad93); text-decoration: none; font-size: .75rem; line-height: 1.2; }
.pf-gear svg { width: 26px; height: 26px; transition: transform .35s ease; }
.pf-gear:hover, .pf-gear:focus-visible { color: #e6cd8c; }
.pf-gear:hover svg { transform: rotate(60deg); }
@media (min-width: 901px) { .pf-gear { display: none; } }   /* November 22, 2026 (John): computers reach Account from the side menu; phones keep the gear */
@media (prefers-reduced-motion: reduce) { .pf-gear svg { transition: none; } .pf-gear:hover svg { transform: none; } }
@media (max-width: 760px) { .rd-skin main:has(> .pf-h1) { padding-top: 14px; } .pf-hero { position: relative; } .pf-gear { position: absolute; top: 8px; right: 8px; } .pf-gear span { display: none; } }

/* Achievements and XP on the stats scroll (November 14, 2026, Ben) */
.st-ach { margin-top: 4px; }
.rd-skin .pf-scroll .parch .st-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #24180a; text-decoration: underline; cursor: pointer; }

/* ---------- the bell, Friends and messages, Leaderboard (November 14, 2026, John) ---------- */
.rd-bell { position: absolute; top: 121px; right: 16px; z-index: 3; width: 34px; height: 34px; padding: 2px; border: 0; background: none; cursor: pointer; line-height: 0; transition: transform .2s ease, filter .2s ease; }
.rd-bell img { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px #000); }
.rd-bell:hover { transform: rotate(-8deg); filter: brightness(1.15); }
.rd-bell[aria-expanded="true"] { filter: brightness(1.2); }
.rd-bellnum { position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--rd-red); color: var(--rd-bone); font: 700 .72rem/1 var(--rd-body); box-shadow: 0 0 0 2px var(--rd-black); }
.rd-bellpanel { position: fixed; z-index: 60; top: 14px; left: calc(var(--rd-side) + 10px); width: min(400px, calc(100vw - 20px)); max-height: min(560px, calc(100vh - 28px)); display: flex; flex-direction: column; background: var(--rd-panel); color: var(--rd-bone); border: 1px solid transparent; border-image: url(../ui/rd/frame.webp) 128 / 30px / 4px stretch; box-shadow: 0 18px 50px rgba(0,0,0,.7); font-family: var(--rd-body); }
.rd-bellpanel[hidden] { display: none; }
.rd-bhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.rd-bhead b { font-family: var(--rd-title); color: var(--rd-gold); font-size: 1.15rem; letter-spacing: .03em; }
.rd-bclose { border: 0; background: none; color: var(--rd-bone-dim); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 2px 8px; }
.rd-bclose:hover { color: var(--rd-gold); }
.rd-blist { overflow-y: auto; padding: 0 8px; }
.rd-bitem { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-top: 1px solid var(--rd-line); color: var(--rd-bone); text-decoration: none; line-height: 1.35; }
.rd-bitem:first-child { border-top: 0; }
a.rd-bitem:hover { background: rgba(136, 104, 28, .13); }
.rd-bitem.new { background: rgba(201, 161, 58, .07); box-shadow: inset 3px 0 0 var(--rd-gold); }
.rd-bitem b { color: var(--rd-gold); }
.rd-bitem small { display: block; color: var(--rd-bone-dim); font-size: .8rem; margin-top: 3px; }
.rd-bface { flex: none; width: 40px; height: 40px; overflow: hidden; display: grid; place-items: center; background: #000; border: 1px solid var(--rd-gold-deep); }
.rd-bface img { width: 100%; height: 100%; object-fit: cover; }
.rd-bface b { color: var(--rd-gold); font-family: var(--rd-title); }
.rd-bacts { display: flex; gap: 8px; margin-top: 8px; }
.rd-bbtn { font: 700 .85rem/1 var(--rd-body); padding: 8px 14px; border: 1px solid var(--rd-gold-deep); background: none; color: var(--rd-bone); cursor: pointer; }
.rd-bbtn.gold { background: var(--rd-gold); color: var(--rd-ink); border-color: var(--rd-gold); }
.rd-bempty { margin: 0; padding: 14px 16px 18px; color: var(--rd-bone-dim); }
.rd-bfoot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 14px; border-top: 1px solid var(--rd-gold-deep); }
.rd-bfoot a { display: flex; align-items: center; gap: 8px; padding: 8px; color: var(--rd-bone); text-decoration: none; font-weight: 700; font-size: .9rem; }
.rd-bfoot a:hover { color: var(--rd-gold); background: rgba(136, 104, 28, .13); }
.rd-bfoot img { width: 30px; height: 30px; }
@media (max-width: 900px) {
  .rd-bell { position: relative; top: auto; right: auto; flex: none; width: 40px; height: 40px; }
  .rd-bellpanel { top: calc(56px + env(safe-area-inset-top)); left: 8px; right: 8px; width: auto; max-height: calc(100vh - 150px); }
}

/* Friends and messages, Leaderboard pages (assets/social.js) */
.so-wrap { }
.so-panel h2 { margin-bottom: .4rem; }
.so-sub { color: var(--rd-bone-dim, #a8a08f); margin: 0 0 12px; }
.so-row { display: flex; align-items: center; gap: 14px; padding: 10px 6px; border-top: 1px solid var(--rd-line); color: inherit; text-decoration: none; }
.so-panel h2 + .so-row, .so-panel .so-sub + .so-row { border-top: 0; }
a.so-row:hover { background: rgba(136, 104, 28, .13); }
.so-thread.new .so-name { color: var(--rd-gold); }
.so-face { position: relative; flex: none; overflow: hidden; display: grid; place-items: center; background: #000; border: 2px solid var(--rd-gold-deep); }
.so-face img { width: 100%; height: 100%; object-fit: cover; }
.so-face b { font-family: var(--rd-title); color: var(--rd-gold); font-size: 1.1rem; }
.so-face.on { border-color: #4f9a4c; box-shadow: 0 0 0 2px rgba(79, 154, 76, .35); }
.so-name { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.so-name small { display: block; font-weight: 400; color: var(--rd-bone-dim, #a8a08f); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.so-acts .btn, .so-add .btn { white-space: nowrap; }
.so-acts .btn { padding: 9px 16px; font-size: .92rem; min-height: 0; }
.so-name { min-width: 120px; }
.so-tag { align-self: center; padding: 6px 12px; border: 1px solid var(--rd-gold-deep); border-radius: 999px; color: var(--rd-gold); font-size: .85rem; }
.so-when { flex: none; display: grid; justify-items: end; gap: 4px; color: var(--rd-bone-dim, #a8a08f); font-size: .82rem; }
.so-badge { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--rd-red); color: var(--rd-bone); font: 700 .75rem/1 var(--rd-body); }
.so-add { display: flex; gap: 10px; flex-wrap: wrap; }
.so-add input { flex: 1 1 220px; min-height: 46px; padding: 10px 14px; background: var(--rd-black); color: var(--rd-bone); border: 1px solid var(--rd-gold-deep); font: inherit; font-size: 1rem; }
.so-back { margin: 0 0 12px; }
.so-chatwrap { display: flex; flex-direction: column; }
.so-chathead { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rd-gold-deep); }
.so-chat { display: flex; flex-direction: column; gap: 10px; height: min(58vh, 560px); overflow-y: auto; padding: 16px 4px; }
.so-empty { margin: auto; }
.so-msg { max-width: 78%; align-self: flex-start; padding: 10px 14px; background: var(--rd-black); border: 1px solid var(--rd-line); border-radius: 4px 16px 16px 16px; }
.so-msg.mine { align-self: flex-end; background: rgba(136, 104, 28, .22); border-color: var(--rd-gold-deep); border-radius: 16px 4px 16px 16px; }
.so-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.so-msg small { display: inline-block; margin-top: 4px; margin-right: 10px; color: var(--rd-bone-dim, #a8a08f); font-size: .76rem; }
.so-repbtn { border: 0; background: none; padding: 0; color: var(--rd-bone-dim, #a8a08f); font: inherit; font-size: .76rem; text-decoration: underline; cursor: pointer; }
.so-repbtn:hover { color: #e08a7d; }
.so-rep { color: #e08a7d !important; }
.so-send { border-top: 1px solid var(--rd-gold-deep); padding-top: 12px; }
.so-send textarea { width: 100%; min-height: 64px; resize: vertical; padding: 10px 12px; background: var(--rd-black); color: var(--rd-bone); border: 1px solid var(--rd-gold-deep); font: inherit; font-size: 1rem; }
.so-sendrow { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.so-count { color: var(--rd-bone-dim, #a8a08f); }
.so-report { padding: 12px 0; border-top: 1px solid var(--rd-line); }
.so-ctx { margin: 2px 0; color: var(--rd-bone-dim, #a8a08f); }
.so-ctx.hit { color: #f0c3b9; }
#so-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); z-index: 70; padding: 12px 18px; background: #2a1d10; color: var(--rd-bone); border: 1px solid var(--rd-gold-deep); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 30px); }
#so-toast.on { opacity: 1; transform: translateX(-50%); }
#so-toast.ok { border-color: #4f9a4c; }
.lb-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 12px; margin: 10px 0 22px; }
.lb-top { display: grid; justify-items: center; gap: 6px; padding: 16px 8px 14px; text-align: center; background: var(--rd-black); border: 1px solid var(--rd-gold-deep); }
.lb-top.lb-1 { order: 2; padding-top: 26px; border-color: var(--rd-gold); background: linear-gradient(180deg, rgba(201,161,58,.16), var(--rd-black)); }
.lb-top.lb-2 { order: 1; } .lb-top.lb-3 { order: 3; }
.lb-top.me { box-shadow: 0 0 0 2px var(--rd-gold); }
.lb-rank { font-family: var(--rd-title); font-weight: 700; font-size: 1.4rem; color: var(--rd-gold); }
.lb-pts { color: var(--rd-bone-dim, #a8a08f); font-size: .9rem; }
.lb-scroll { overflow-x: auto; }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th, .lb-table td { padding: 9px 10px; border-bottom: 1px solid var(--rd-line); text-align: left; white-space: nowrap; }
.lb-table th { color: var(--rd-gold); font-weight: 700; font-size: .85rem; }
.lb-table .n { text-align: right; font-family: var(--rd-body); }
.lb-table .b { font-weight: 700; color: var(--rd-gold); }
.lb-table tr.me td { background: rgba(201, 161, 58, .1); }
.lb-table tr.lb-new td { color: var(--rd-bone-dim, #a8a08f); }   /* not ranked yet: under 5 games (November 15, 2026, Ben) */
.lb-you { margin: 4px 0 12px; font-weight: 700; color: var(--rd-gold); }   /* your rank under the title (November 23, 2026, John) */
.lb-table tr.lb-gap td { padding: 0 10px; line-height: 1; color: var(--rd-bone-dim, #a8a08f); border-bottom: 0; }
@media (max-width: 560px) { .lb-table th:nth-child(5), .lb-table td:nth-child(5) { display: none; } .lb-table th, .lb-table td { padding-left: 6px; padding-right: 6px; } .lb-who { gap: 6px; } }   /* phones: drop Games played so names fit (November 23, 2026) */
.lb-who { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.lb-how { margin: 0; padding-left: 20px; line-height: 1.7; }
.lb-how b { color: var(--rd-gold); }
@media (max-width: 560px) { .lb-podium { gap: 6px; } .lb-top .so-face { width: 54px !important; height: 54px !important; } .so-row { flex-wrap: wrap; } .so-acts { width: 100%; } }
/* Friends and Leaderboard use the whole page (John, November 14) */
body:has(.so-wrap) .head, .acct-wrap.so-wrap { max-width: 1560px; }
.acct-wrap.so-wrap > * { max-width: none; }
.so-grid { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(0, 1.35fr); gap: 0 28px; align-items: start; }
.so-col { min-width: 0; }
.so-right { position: sticky; top: 16px; }
.so-right .so-chat { height: calc(100vh - 340px); min-height: 320px; }
.so-thread.here { background: rgba(136, 104, 28, .2); box-shadow: inset 3px 0 0 var(--rd-gold); }
.so-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 24px; }
.so-cards .so-card { border-top: 1px solid var(--rd-line); }
.lb-grid { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.lb-grid .so-col:last-child { position: sticky; top: 16px; }
.lb-podium { max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 1100px) {
  .so-grid, .lb-grid { grid-template-columns: minmax(0, 1fr); }
  .so-right, .lb-grid .so-col:last-child { position: static; }
  .so-grid.so-chatting .so-left { display: none; }   /* a phone or small screen shows the open chat on its own */
  .so-right .so-chat { height: min(60vh, 560px); }
}
/* rows in narrow columns: buttons go on a second line under the name (John, November 14: was squished) */
.so-left .so-row, .so-cards .so-card { flex-wrap: wrap; row-gap: 8px; }
.so-left .so-acts, .so-cards .so-acts { flex: 1 1 100%; justify-content: flex-start; padding-left: 58px; }
.so-acts .btn { padding: 7px 14px; font-size: .88rem; }
.so-acts .btn.ghost { border-color: var(--rd-line); color: var(--rd-bone-dim); }
.so-acts .so-tag { padding: 5px 12px; }
/* Leaderboard table: the player column takes the spare room, the numbers sit together on the right (John, November 14: too spread out) */
.lb-table th, .lb-table td { padding: 10px 14px; }
.lb-table th:nth-child(2), .lb-table td:nth-child(2) { width: 100%; }
.lb-table .n { width: 1%; text-align: center; }
.lb-table th.n { font-size: .8rem; line-height: 1.2; white-space: normal; min-width: 64px; max-width: 84px; }
.lb-table td:first-child, .lb-table th:first-child { padding-left: 4px; }
.lb-table tbody tr:hover td { background: rgba(136, 104, 28, .1); }
.lb-table td.b { font-size: 1.1rem; }
/* Leaderboard fits one screen on a laptop (John, November 14: shouldn't need to scroll) */
body[data-social="leaderboard"] .head { padding-top: 0; margin-bottom: 4px; }
body[data-social="leaderboard"] .head .sub { display: none; }
body[data-social="leaderboard"] .so-panel { padding: 18px 22px; margin-bottom: 0; }
.lb-podium { grid-template-columns: repeat(3, minmax(0, 170px)); justify-content: center; gap: 10px; margin: 6px auto 12px; }
.lb-top { padding: 10px 6px 8px; gap: 3px; }
.lb-top.lb-1 { padding-top: 14px; }
.lb-top .so-face { width: 52px !important; height: 52px !important; }
.lb-rank { font-size: 1.15rem; }
.lb-table th, .lb-table td { padding-top: 7px; padding-bottom: 7px; }
.lb-table .so-face { width: 30px !important; height: 30px !important; }
.lb-how { line-height: 1.45; font-size: .95rem; }
.lb-how li { margin-bottom: 6px; }
/* the whole Leaderboard sits in one screen; a long list scrolls inside the table, never the page */
body[data-social="leaderboard"] .foot { display: none; }
@media (min-width: 1101px) {
  body[data-social="leaderboard"] .lb-grid { height: calc(100vh - 130px); min-height: 520px; }
  body[data-social="leaderboard"] .lb-grid > .so-col:first-child, body[data-social="leaderboard"] .lb-grid > .so-col:first-child > .so-panel { height: 100%; }
  body[data-social="leaderboard"] .lb-grid > .so-col:first-child > .so-panel { display: flex; flex-direction: column; }
  body[data-social="leaderboard"] .lb-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  body[data-social="leaderboard"] .lb-table thead th { position: sticky; top: 0; background: var(--rd-panel); z-index: 1; }
}
.lb-top b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-table td { line-height: 1.2; }
.lb-who { gap: 8px; }
body[data-social="leaderboard"] .acct-wrap { margin-bottom: 0; }
body[data-social="leaderboard"] main { padding-bottom: 0; margin-bottom: 0; }
@media (min-width: 1101px) { body[data-social="leaderboard"] .lb-grid { height: calc(100vh - 152px); } }
.lb-table td:nth-child(2) { max-width: 0; overflow: hidden; }
.lb-who { display: flex; min-width: 0; }
.lb-who > :last-child, .lb-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-table th.n { min-width: 54px; padding-left: 8px; padding-right: 8px; }
.lb-table td.n { padding-left: 8px; padding-right: 8px; }
@media (min-width: 1101px) { body[data-social="leaderboard"] .lb-grid { min-height: 420px; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); } }
@media (min-width: 1101px) {
  body[data-social="leaderboard"] .lb-grid > .so-col:last-child { height: 100%; position: static; }
  body[data-social="leaderboard"] .lb-grid > .so-col:last-child > .so-panel { max-height: 100%; overflow-y: auto; }
}
body[data-social="leaderboard"] .lb-grid .so-panel { box-sizing: border-box; }
@media (min-width: 1101px) { body[data-social="leaderboard"] .lb-grid { grid-template-rows: minmax(0, 1fr); align-items: stretch; } }
/* the bell's tabs and chats (John, November 14: messaging lives in the bell) */
.rd-bellpanel { width: min(420px, calc(100vw - 20px)); max-height: min(640px, calc(100vh - 28px)); }
.rd-btabs { display: flex; gap: 4px; }
.rd-btab { border: 0; border-bottom: 2px solid transparent; background: none; color: var(--rd-bone-dim); font: 700 1rem/1 var(--rd-title); letter-spacing: .03em; padding: 8px 10px; cursor: pointer; }
.rd-btab.on { color: var(--rd-gold); border-bottom-color: var(--rd-gold); }
.rd-btab i { font: 700 .7rem/1 var(--rd-body); font-style: normal; background: var(--rd-red); color: var(--rd-bone); padding: 2px 5px; vertical-align: 2px; }
button.rd-bitem { width: 100%; border: 0; border-top: 1px solid var(--rd-line); background: none; text-align: left; font: inherit; cursor: pointer; }
button.rd-bitem:hover { background: rgba(136, 104, 28, .13); }
.rd-bdotn { font-style: normal; background: var(--rd-red); color: var(--rd-bone); font: 700 .7rem/1 var(--rd-body); padding: 2px 6px; margin-left: 4px; }
.rd-bitem small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.rd-bfoot1 { grid-template-columns: 1fr; }
.rd-bchathead { display: flex; align-items: center; gap: 10px; padding: 4px 14px 10px; border-bottom: 1px solid var(--rd-gold-deep); }
.rd-bchathead > span { min-width: 0; }
.rd-bchathead small { display: block; color: var(--rd-bone-dim); font-size: .78rem; }
.rd-bback { border: 0; background: none; color: var(--rd-gold); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 6px 4px 0; }
.rd-bchat { flex: 1 1 auto; min-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.rd-bm { max-width: 82%; align-self: flex-start; padding: 8px 12px; background: var(--rd-black); border: 1px solid var(--rd-line); }
.rd-bm.mine { align-self: flex-end; background: rgba(136, 104, 28, .22); border-color: var(--rd-gold-deep); }
.rd-bm p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.rd-bm small { display: block; margin-top: 3px; color: var(--rd-bone-dim); font-size: .72rem; }
.rd-brep { border: 0; background: none; padding: 0; color: var(--rd-bone-dim); font: inherit; text-decoration: underline; cursor: pointer; }
.rd-brep:hover { color: #e08a7d; }
.rd-bsend { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 14px; border-top: 1px solid var(--rd-gold-deep); }
.rd-bsend textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 8px 10px; background: var(--rd-black); color: var(--rd-bone); border: 1px solid var(--rd-gold-deep); font: inherit; font-size: .95rem; }
/* How points work, short (John, November 14) */
.lb-how { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lb-how li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; gap: 10px; margin: 0; font-size: 1rem; }
.lb-how li b { text-align: right; font-family: var(--rd-body); font-size: 1.15rem; }
.lb-fine { margin: 14px 0 0; color: var(--rd-bone-dim); font-size: .85rem; line-height: 1.4; }
.rd-bchathead > span.rd-bface { flex: none; }
.rd-bchathead > span:not(.rd-bface) { flex: 1 1 auto; }
@media (min-width: 1101px) {
  body[data-social="leaderboard"] .lb-grid { align-items: start; }
  body[data-social="leaderboard"] .lb-grid > .so-col:first-child, body[data-social="leaderboard"] .lb-grid > .so-col:first-child > .so-panel { height: auto; max-height: 100%; }
  body[data-social="leaderboard"] .lb-grid > .so-col:first-child { display: flex; flex-direction: column; min-height: 0; }
}
@media (min-width: 1101px) { body[data-social="leaderboard"] .lb-grid > .so-col:first-child { height: 100%; } }

/* Level shields on the leaderboard, friends and messages (November 15, 2026, John): the headshot sits inside the player's shield.
   The old round .so-face sizes don't apply; the shield's size comes from --pw (the headshot's size) in social.js. */
.so-shield { margin: -6px 0; }
html body .rd-shield .rd-sh-in img, html body .rd-shield .rd-sh-in i { border-radius: 50% !important; }
.lb-top .so-shield { --pw: 46px !important; margin: -4px 0 2px; }
.lb-top.lb-1 .so-shield { --pw: 54px !important; }
.lb-table .so-shield { --pw: 24px !important; margin: -2px 0; }
html body .lb-who { overflow: visible; }
.lb-who > span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 6ch; }
@media (max-width: 560px) { .lb-top .so-shield, .lb-top.lb-1 .so-shield { --pw: 32px !important; } }

/* Profile (November 15, 2026, John): your level shield beside "Level N", and on the road each milestone shows the shield it unlocks */
.pf-lvlbig { display: flex; align-items: center; gap: 10px; }
.pf-lvlbig { margin-top: 6px !important; }
.pf-lvlbig .rd-shield { width: min(84px, calc(60px * var(--sc, 1))); margin: -2px 0 -4px -6px; }
.pf-lvlbig .rd-sh-in b { font-size: max(16px, calc(var(--fdn) * .5cqw)); }
.rr-msshield .rd-sh-in b { font-size: max(13px, calc(var(--fdn) * .5cqw)); }
html body .rr-stop.ms .rr-dot.rr-msshield { width: 38px; height: 38px; margin: 0; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible; }
.rr-msshield .rd-shield { position: absolute; left: 50%; top: 50%; width: min(60px, calc(46px * var(--sc, 1))); transform: translate(-50%, -50%); }
.rr-stop.now .rr-dot.rr-msshield { animation: none; }
.rr-stop.now .rr-msshield .rd-shield { animation: rrShield 1.8s ease-in-out infinite; }
@keyframes rrShield { 50% { filter: drop-shadow(0 0 8px rgba(201, 161, 58, .7)); } }
.rr-shieldnote { display: inline-block; margin-left: 8px; padding: 0 7px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b4a10; border: 1px solid rgba(107, 74, 16, .5); }
@media (prefers-reduced-motion: reduce) { .rr-stop.now .rr-msshield .rd-shield { animation: none; } }
.rr-stop.ms:has(.rr-msshield) { padding: 14px 0; }
html body .rd-shield .rd-sh-in b { color: #e2bf5a !important; }
.so-row .so-shield { --pw: 32px !important; width: min(72px, calc(var(--pw) * 100 / var(--fdn))); margin: -8px 0; }
html body .lb-who > span:last-child { flex: 1 0 auto; min-width: 5ch; }
@media (max-width: 560px) { .lb-table .so-shield { --pw: 18px !important; width: min(38px, calc(var(--pw) * 100 / var(--fdn))); } .lb-table .so-shield .rd-sh-lv { display: none; } .lb-who { gap: 5px !important; } }

/* Season 2 achievements (November 15, 2026, John): the note under a Season 2 group's name */
.ac-grp h4 .ac-s2 { display: block; margin-top: 2px; font: 400 .78rem/1.3 var(--rd-body, sans-serif); letter-spacing: 0; text-transform: none; opacity: .75; }

/* How to play video, first thing under the hero (November 16, 2026, John) */
.rd-video { text-align: center; scroll-margin-top: 80px; }
.rd-video video { display: block; width: 100%; max-width: 1100px; height: auto; margin: 1rem auto 0; border: 1px solid var(--rd-gold); border-radius: 10px; background: #000; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }

/* ---------- Cards page filter bar, second pass (November 18, 2026, John) ----------
   The see through bar was jarring with cards scrolling behind it: it is solid again, with a shadow so it floats over the grid.
   The flat chips were boring: each group is one dark rail, the picked choice is the oak plank with the gold inlay (same art as the main buttons),
   and every type has its own colored gem. */
.rd-skin .filters { background: linear-gradient(180deg, #15120d, #0b0a08); border-bottom: 1px solid var(--rd-gold-deep); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .8); }
.rd-skin .filters .chips { gap: 2px; padding: 3px; border: 1px solid #3a2e18; border-radius: 10px;
  background: linear-gradient(180deg, #0a0806, #17130d); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 1px 0 rgba(201, 161, 58, .12); }
.rd-skin .filters .chips button { border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--rd-bone-dim); min-height: 38px; padding: .35rem .9rem; }
.rd-skin .filters .chips button:hover { color: var(--rd-bone); background: rgba(201, 161, 58, .1); border-color: transparent; }
.rd-skin .filters .chips button[aria-pressed="true"] {
  background: #3a2414; border: 7px solid transparent; border-image: url(../ui/rd/button_oak.webp) 32 fill / 7px / 0 stretch; border-radius: 0;
  padding: calc(.35rem - 6px) calc(.9rem - 6px); color: #f3d58a; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.rd-skin .filters .chips button[aria-pressed="true"]:hover { filter: brightness(1.15); }
/* type gems */
.rd-skin .filters [data-fam] { --c: var(--rd-gold); }
.rd-skin .filters [data-fam="warrior"] { --c: #a9b6c4; } .rd-skin .filters [data-fam="beast"] { --c: #8fb36b; }
.rd-skin .filters [data-fam="dragon"] { --c: #e0603f; } .rd-skin .filters [data-fam="ethereal"] { --c: #8fa7e0; }
.rd-skin .filters [data-fam="neutral"] { --c: #c9bfae; } .rd-skin .filters [data-fam="fae"] { --c: #e08fd0; }
.rd-skin .filters [data-fam="mystic"] { --c: #a77de6; } .rd-skin .filters [data-fam="celestial"] { --c: #f2dc7a; }
.rd-skin .filters [data-fam="infernal"] { --c: #c0303a; } .rd-skin .filters [data-fam="insect"] { --c: #c7b648; }
.rd-skin .filters [data-fam="cosmic"] { --c: #5fc9d9; } .rd-skin .filters [data-fam="plant"] { --c: #4fa35f; }
.rd-skin .filters [data-fam]:not([data-fam=""])::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: .5em; vertical-align: .05em;
  transform: rotate(45deg); background: var(--c); opacity: .75; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.rd-skin .filters [data-fam]:not([data-fam=""]):hover::before { opacity: 1; }
.rd-skin .filters [data-fam]:not([data-fam=""])[aria-pressed="true"]::before { opacity: 1; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 8px var(--c); }

/* ---------- Oak sweep, site wide (November 18, 2026, John: every gold outline or gold box button fits the oak look) ----------
   Rows of choices: one dark rail, the picked choice sits on an oak plank that slides (assets/frame.js).
   Secondary buttons (ghost, rd-line): a darker oak plank (ui/rd/button_oak_dark.webp) so the main button still stands out. */
.rd-skin .view-tabs.chips, .rd-skin .dk-chips, .rd-skin .dk-steps, .rd-skin .fav-chips, .rd-skin .tabs {
  gap: 2px; padding: 3px; border: 1px solid #3a2e18; border-radius: 10px; width: fit-content; max-width: 100%;
  background: linear-gradient(180deg, #0a0806, #17130d); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 1px 0 rgba(201, 161, 58, .12); }
.rd-skin .view-tabs.chips button, .rd-skin .dk-chips button, .rd-skin .dk-steps button, .rd-skin .fav-chips button, .rd-skin .tabs button {
  border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--rd-bone-dim); min-height: 38px; }
.rd-skin .dk-chips button:hover, .rd-skin .dk-steps button:hover, .rd-skin .fav-chips button:hover, .rd-skin .tabs button:hover { color: var(--rd-bone); background: rgba(201, 161, 58, .1); border-color: transparent; }
.rd-skin .dk-chips button[aria-pressed="true"], .rd-skin .dk-steps button[aria-pressed="true"], .rd-skin .fav-chips button[aria-pressed="true"],
.rd-skin .tabs button[aria-selected="true"], .rd-skin .tabs button[aria-pressed="true"] {
  background: #3a2414; border-color: transparent; color: #f3d58a; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.rd-skin .dk-steps button em { background: rgba(0, 0, 0, .45); color: var(--rd-gold); }
/* the plank itself */
.rd-skin .has-plank { position: relative; }
.rd-skin .has-plank > button { position: relative; z-index: 1; }
.rd-skin .chip-plank { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0; box-sizing: border-box;
  background: #3a2414; border: 7px solid transparent; border-image: url(../ui/rd/button_oak.webp) 32 fill / 7px / 0 stretch;
  transition: transform .38s cubic-bezier(.3, 1.25, .45, 1), width .38s cubic-bezier(.3, 1.25, .45, 1), height .38s ease; }
.rd-skin .plank-on > .chip-plank { opacity: 1; }
.rd-skin .filters .chips.plank-on > button[aria-pressed="true"], .rd-skin .plank-on > button[aria-pressed="true"], .rd-skin .plank-on > button[aria-selected="true"] {
  background: transparent; border: 1px solid transparent; border-image: none; border-radius: 7px; padding: .35rem .9rem; filter: none; }
.rd-skin .dk-steps.plank-on > button[aria-pressed="true"] { padding: .3rem .75rem; }
.rd-skin .plank-on > button[aria-pressed="true"]:hover, .rd-skin .plank-on > button[aria-selected="true"]:hover { background: transparent; }
@media (prefers-reduced-motion: reduce) { .rd-skin .chip-plank { transition: none; } }
/* secondary buttons: dark oak */
.rd-skin .btn.ghost:not(:disabled), .rd-btn.rd-line:not(:disabled) {
  background: #1e140b; border: 9px solid transparent; border-image: url(../ui/rd/button_oak_dark.webp) 32 fill / 9px / 0 stretch; border-radius: 0;
  color: #eadfc4; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); clip-path: none; box-shadow: none; padding-left: 1.1em; padding-right: 1.1em;
  transition: filter .2s ease, transform .1s ease; }
.rd-skin .btn.ghost:not(:disabled):hover, .rd-btn.rd-line:not(:disabled):hover { background: #1e140b; color: #fff4d6; filter: brightness(1.35) drop-shadow(0 0 6px rgba(201, 161, 58, .25)); }
.rd-skin .btn.ghost:not(:disabled):active, .rd-btn.rd-line:not(:disabled):active { filter: brightness(.9); transform: translateY(1px); }
html body.rd-skin .pf-scroll .parch .btn.ghost:not(:disabled) { background: #1e140b; color: #eadfc4; border: 9px solid transparent; border-image: url(../ui/rd/button_oak_dark.webp) 32 fill / 9px / 0 stretch; }
body.rd-page #fbk-open, body.rd-framed #fbk-open { background: #1e140b; border: 7px solid transparent; border-image: url(../ui/rd/button_oak_dark.webp) 32 fill / 7px / 0 stretch; color: #f3d58a; text-shadow: 0 1px 2px #000; padding: 4px 9px; }
body.rd-page #fbk-open:hover, body.rd-framed #fbk-open:hover { filter: brightness(1.3); }
.rd-skin .fav-dlg .x { background: #1e140b; border: 7px solid transparent; border-image: url(../ui/rd/button_oak_dark.webp) 32 fill / 7px / 0 stretch; border-radius: 0; color: #eadfc4; text-shadow: 0 1px 2px #000; }
.rd-skin .fav-dlg .x:hover { filter: brightness(1.3); }

/* ---------- Frames, search slots and dividers (November 18, 2026, John; art made in ChatGPT, sources in Downloads/oak_*.png) ----------
   ui/rd/search_frame.webp: the recessed iron and walnut slot on every search box.
   ui/rd/divider_gem.webp: the gold filigree and red gem in the middle of the big section lines (the rest of the line is a gold fade).
   Text tiles use the rounded frames (frame_honey_wood, frame_leather, frame_bronze); see table-rd.css and the profile tiles below. */
.rd-skin input[type="search"] { background: #0b0907; border: 12px solid transparent; border-image: url(../ui/rd/search_frame.webp) 41 54 fill / 12px 16px / 0 stretch;
  border-radius: 0; color: var(--rd-bone); min-height: 50px; padding: 4px 8px; box-shadow: none; }
.rd-skin input[type="search"]:focus { outline: none; filter: brightness(1.15) drop-shadow(0 0 6px rgba(201, 161, 58, .35)); }
.rd-skin input[type="search"]::placeholder { color: #9b8f78; }
.rd-skin label.search, .rd-skin .dk-search { border: 0; background: none; }
/* big section lines: gold fading in from both ends with the gem in the middle */
.rd-skin .filters { border-bottom: 0; }
.rd-skin .filters::after, .rd-page .foot::before { content: ''; display: block; height: 22px; pointer-events: none;
  background: url(../ui/rd/divider_gem.webp) center / auto 22px no-repeat, linear-gradient(90deg, transparent, rgba(160, 122, 44, .9) 18%, #c9a13a 50%, rgba(160, 122, 44, .9) 82%, transparent) center / 100% 2px no-repeat; }
.rd-skin .filters { position: sticky; }
.rd-skin .filters::after { position: absolute; left: 0; right: 0; bottom: -11px; }
.rd-page .foot { border-top: 0; }
.rd-page .foot::before { margin: -31px 0 18px; }
/* thin lines: fade out at the ends instead of a flat rule */
.rd-side { border-right: 0; box-shadow: inset -2px 0 0 transparent; }
.rd-side::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(201, 161, 58, .55) 15%, rgba(201, 161, 58, .55) 85%, transparent); }
.rd-page .ai-note, .lb-table th, .lb-table td, .so-row, .rd-log li, .rd-bitem { border-image: linear-gradient(90deg, transparent, rgba(160, 122, 44, .55) 12%, rgba(160, 122, 44, .55) 88%, transparent) 1; }
body #fbk-open.inbar { border-width: 4px; border-image-width: 4px; padding: 4px 6px; }

/* Profile tiles (Daily challenges, Customize, Level up rewards, Your stats, Achievements): soft leather with gold stitching (November 18, 2026, John) */
.rd-skin .pf-tile { border: 16px solid transparent; border-image: url(../ui/rd/frame_leather.webp) 62 / 16px / 0 stretch; border-radius: 16px; padding: .2rem .4rem;
  background: linear-gradient(180deg, rgba(40, 26, 16, .96), rgba(20, 13, 8, .96)) border-box; box-shadow: none; transition: filter .2s ease, transform .15s ease; }
.rd-skin .pf-tile:hover, .rd-skin .pf-tile:focus-visible { border-color: transparent; filter: brightness(1.12); transform: translateY(-1px); }
.rd-skin .pf-tile[aria-pressed="true"] { border-color: transparent; box-shadow: none; filter: brightness(1.15) drop-shadow(0 0 9px rgba(242, 201, 76, .4));
  background: linear-gradient(180deg, rgba(58, 38, 20, .97), rgba(28, 18, 10, .97)) border-box; }
/* the deck builder checklist: warm bronze */
.rd-skin .dk-check { border: 14px solid transparent; border-image: url(../ui/rd/frame_bronze.webp) 64 / 14px / 0 stretch; border-radius: 14px; padding: .2rem .4rem;
  background: linear-gradient(180deg, rgba(30, 22, 13, .96), rgba(15, 11, 8, .96)) border-box; }
.rd-skin .dk-check.all { border-color: transparent; filter: drop-shadow(0 0 8px rgba(120, 190, 110, .35)); }
/* these framed tiles are rounded on purpose (John, Nov 18), so they skip the square corner rule above */
html body.rd-skin main .pf-tile { border-radius: 16px !important; }
html body.rd-skin main .dk-check { border-radius: 14px !important; }

/* ---------- site check fixes (November 21, 2026, John) ---------- */
/* greyed out buttons keep the oak look, just dimmed, so Back and Next match */
.rd-skin .btn:disabled { background: #1e140b; border: 9px solid transparent; border-image: url(../ui/rd/button_oak_dark.webp) 32 fill / 9px / 0 stretch;
  border-radius: 0; clip-path: none; box-shadow: none; color: #eadfc4; text-shadow: 0 1px 2px #000; opacity: .45; filter: grayscale(.4); }
/* drop downs: framed like the text boxes, with a gold arrow instead of the browser's */
.rd-skin select { appearance: none; -webkit-appearance: none; border-radius: 0; padding-right: 2.2em;
  background: #0b0907 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a13a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .8em center;
  border: 1px solid var(--rd-gold-deep); color: var(--rd-bone); }
/* Friends: the username box gets the same frame as the Cards search */
.rd-skin #so-add { background: #0b0907; border: 12px solid transparent; border-image: url(../ui/rd/search_frame.webp) 41 54 fill / 12px 16px / 0 stretch;
  border-radius: 0; min-height: 50px; padding: 4px 8px; box-shadow: none; }
/* account page: text boxes stay inside their panel */
.acct-form input, .acct-form select, .acct-form textarea { max-width: 100%; box-sizing: border-box; min-width: 0; }
.acct-form label { min-width: 0; }
/* access codes fold away while sign up is open */
.codes-box > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; }
.codes-box > summary::-webkit-details-marker { display: none; }
.codes-box > summary h2 { margin: 0; }
.codes-box > summary h2::after { content: " ▸"; color: var(--rd-gold, #c9a13a); font-size: .8em; }
.codes-box[open] > summary h2::after { content: " ▾"; }
.codes-box h3 { margin: 1rem 0 .4rem; font-size: 1.05rem; }
/* phone top bar: room for the username (the small logo hides on narrow phones; the big one is on the home page) */
@media (max-width: 480px) {
  .rd .rd-phonelogo, .rd-top .rd-logo { display: none; }
  .rd-top { gap: 8px; padding: 7px 10px; }
  .rd-top .rd-prof { gap: 0 7px; }
  .rd-who { min-width: 0; }
}
/* Delete my account (November 22, 2026, John): folded away at the bottom of the account page, red only once you open it */
.acct-del summary { cursor: pointer; color: var(--rd-bone-dim, #b9ad93); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.acct-del summary:hover, .acct-del summary:focus-visible { color: #e6cd8c; }
.acct-del[open] summary { color: #ff9b8f; margin-bottom: 8px; }
.btn.danger { background: #8e2a20; border-color: #b3392c; color: #fff4ec; }
.btn.danger:hover, .btn.danger:focus-visible { background: #a8342a; }
.btn.danger:disabled { opacity: .6; }

/* Achievements, art pass (November 22, 2026, John: "looks low budget"). profile-page.js achHTML, MEDAL, TROPHY, SEAL.
   ChatGPT art in ui/rd/ach, web copies made with Pillow: the gold trophy (Claude Documents/Website Art/site_icons_bell_friends_leaderboard.png)
   tinted bronze, silver, gold and ruby; a plain iron ring (Website Art/profile/profile_ring.png) for not earned yet and the gold dial
   (John and Ben Documents/Art/UI/life_dial.png) for earned; the top brass plate of Website Art/button_plates_options.png behind each group name; the wax seal.
   Ben's November 13 to 14 layout stays (views, trophy filters, groups, sort, Completed); this pass only changes the look,
   plus a small trophy hall at the top so you can see how far along you are. */
.rd-skin .pf-scroll .parch .ac-hall { display: flex; align-items: center; gap: 1rem; margin: .2rem 0 1rem; padding: .7rem .9rem .7rem .7rem;
  background: linear-gradient(rgba(36, 24, 10, .92), rgba(24, 16, 6, .95)); border: 1px solid #6b4a10;
  box-shadow: inset 0 0 0 1px rgba(231, 199, 102, .18), inset 0 0 24px rgba(0, 0, 0, .6), 0 3px 8px rgba(60, 35, 10, .35); }
.ac-dial { --p: 0; position: relative; flex: none; width: 112px; height: 112px; background: url(../ui/rd/ach/ring_gold_lg.webp) center / contain no-repeat; display: grid; place-items: center; }
html body.rd-skin .ac-dial > div { border-radius: 50% !important; }
.ac-dial > div { width: 62%; height: 62%; display: grid; place-content: center; text-align: center; line-height: 1;
  background: radial-gradient(circle, #1a1208 64%, transparent 65%), conic-gradient(#f0d27a, #b8871d calc(var(--p) * 1%), rgba(255, 240, 200, .1) 0);
  animation: ac-dial-in 1s cubic-bezier(.22, .8, .24, 1) both; }
@keyframes ac-dial-in { from { opacity: 0; transform: scale(.85) rotate(-40deg); } }
.rd-skin .pf-scroll .parch .ac-dial b { font: 700 1.45rem/1 'Lexend', var(--rd-body); color: #f0d27a; }
.ac-dial span { font-size: .72rem; color: #cbb68a; margin-top: 2px; }
.ac-hall-r { min-width: 0; flex: 1; display: grid; gap: .35rem; }
.rd-skin .pf-scroll .parch .ac-hall-t { margin: 0; font: 600 1.05rem/1.1 var(--rd-title); letter-spacing: .04em; color: #e9dcbc; }
.rd-skin .pf-scroll .parch .ac-hall-t b { font: 700 1.5rem/1 'Lexend', var(--rd-body); color: #f0d27a; margin-right: .2rem; }
.rd-skin .pf-scroll .parch .ac-hall-s { margin: 0; font-size: .86rem; line-height: 1.35; color: #cbb68a; }
.rd-skin .pf-scroll .parch .ac-hall-s b { color: #f0d27a; }
.ac-hall-bar.ac-bar { height: 10px; background: #0e0a04; box-shadow: inset 0 1px 3px #000, 0 0 0 1px rgba(184, 135, 29, .45); }
.ac-hall-bar.ac-bar i { background: linear-gradient(90deg, #7a5310, #e7c766 70%, #fff1c0); box-shadow: 0 0 8px rgba(231, 199, 102, .6); }

/* trophies are pictures now */
img.ac-tro { width: 30px; height: 30px; object-fit: contain; flex: none; filter: grayscale(1) sepia(.35) brightness(.75) opacity(.42); }
img.ac-tro.got { filter: drop-shadow(0 2px 2px rgba(40, 22, 5, .5)); }
.rd-skin .pf-scroll .parch .ac-tier img.ac-tro { width: 40px; height: 40px; }
.rd-skin .pf-scroll .parch .ac-tier { background: linear-gradient(rgba(255, 248, 228, .55), rgba(236, 220, 186, .35)); border: 1px solid rgba(107, 74, 16, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 4px rgba(70, 45, 12, .18); }
.rd-skin .pf-scroll .parch .ac-tier[aria-pressed="true"] img.ac-tro.got { filter: drop-shadow(0 0 6px rgba(240, 210, 122, .7)); }

/* each achievement: a medallion on the left */
.ac-med { position: relative; flex: none; width: 58px; height: 58px; display: grid; place-items: center; background: url(../ui/rd/ach/ring_iron.webp) center / contain no-repeat; }
.ac-med img.ac-tro { width: 34px; height: 34px; }
.ac-med.got { background-image: url(../ui/rd/ach/ring_gold.webp); width: 62px; height: 62px; }
.ac-med.got img.ac-tro { width: 34px; height: 34px; filter: drop-shadow(0 0 5px rgba(240, 210, 122, .45)); }
.ac-med.got.m-legendary::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 60, .28), transparent 65%); animation: ac-glow 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes ac-glow { 50% { opacity: .35; } }
.rd-skin .pf-scroll .parch .ac-item { position: relative; gap: .3rem .75rem; padding: .55rem .8rem .55rem .55rem;
  background: linear-gradient(rgba(255, 248, 230, .34), rgba(240, 225, 190, .2)); border: 1px solid rgba(80, 50, 15, .3);
  box-shadow: 0 1px 2px rgba(70, 45, 12, .12); }
.rd-skin .pf-scroll .parch .ac-item:not(.got) .ac-txt b { color: #3d2e18; }
.rd-skin .pf-scroll .parch .ac-item.got { background: linear-gradient(100deg, rgba(255, 236, 170, .55), rgba(255, 248, 225, .42) 45%, rgba(255, 244, 215, .3));
  border-color: #a37a22; box-shadow: inset 0 0 0 1px rgba(255, 240, 190, .7), 0 2px 6px rgba(120, 80, 15, .25); }
.rd-skin .pf-scroll .parch .ac-item.got::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(#f0d27a, #9a6d14); }
.rd-skin .pf-scroll .parch .ac-item.got.m-legendary::before { background: linear-gradient(#ff8a6a, #8c1c1c); }
.rd-skin .pf-scroll .parch .ac-item.got.m-rare::before { background: linear-gradient(#f2f4f6, #7d848c); }
.rd-skin .pf-scroll .parch .ac-item.got.m-common::before { background: linear-gradient(#e7ad74, #8a5326); }
.ac-earned { color: #2f6a2f; }
.rd-skin .pf-scroll .parch .ac-item .ac-xp { color: #24180a; }
.rd-skin .pf-scroll .parch .ac-item:not(.got) .ac-xp { color: #6d5a3a; }
/* the progress bar is a brass rail */
.rd-skin .pf-scroll .parch .ac-prog .ac-bar { height: 9px; background: rgba(60, 40, 12, .2); box-shadow: inset 0 1px 2px rgba(40, 25, 5, .45), 0 0 0 1px rgba(107, 74, 16, .35); }
.rd-skin .pf-scroll .parch .ac-bar i { background: linear-gradient(90deg, #7a5310, #c99a2e 60%, #f0d27a); }

/* group name on a brass plate, the wax seal when the group is finished */
.rd-skin .pf-scroll .parch .ac-grp { margin: 0 0 1.3rem; }
.rd-skin .pf-scroll .parch .ac-grp header { align-items: center; padding: 0 .1rem; margin: 0 0 .35rem; min-height: 50px;
  border: 14px solid transparent; border-image: url(../ui/rd/ach/plate_brass.webp) 36 52 fill / 14px 18px / 0 stretch; box-sizing: border-box;
  filter: drop-shadow(0 2px 3px rgba(50, 30, 8, .4)); }
.rd-skin .pf-scroll .parch .ac-grp h4 { font: 700 1.02rem/1.15 var(--rd-title); letter-spacing: .04em; color: #2a1a06; text-shadow: 0 1px 0 rgba(255, 236, 170, .55); }
.rd-skin .pf-scroll .parch .ac-grp .ac-gm { color: #2a1a06; font-weight: 700; text-shadow: 0 1px 0 rgba(255, 236, 170, .5); }
.rd-skin .pf-scroll .parch .ac-grp .ac-gm small { color: #2a1a06; font-weight: 400; }
.rd-skin .pf-scroll .parch .ac-grp h4 .ac-s2 { color: #4a3210; opacity: 1; font-family: var(--rd-body); }
.rd-skin .pf-scroll .parch .ac-grp h4 img.pg-seal { width: 40px; height: 40px; margin: -10px 0 -10px .2rem; filter: drop-shadow(0 2px 2px rgba(40, 10, 5, .5)); }
.rd-skin .pf-scroll .parch .ac-grp .ac-bar.thin { height: 5px; margin: 0 .2rem .55rem; }
.ac-seals img.pg-seal { width: 40px; height: 40px; }

/* the group chips and the All / Open / Completed tabs */
.rd-skin .pf-scroll .parch .ac-views { border-color: #6b4a10; background: rgba(255, 246, 225, .3); box-shadow: 0 2px 4px rgba(70, 45, 12, .15); }
.rd-skin .pf-scroll .parch .ac-views button[aria-selected="true"] { background: #2a1a0a url(../ui/rd/button_oak.webp) center / cover; color: #f6ecd2; text-shadow: 0 1px 2px #000; }
.rd-skin .pf-scroll .parch .ac-views button[aria-selected="true"] span { opacity: .9; }
.rd-skin .pf-scroll .parch .ac-chip.sealed { border-color: #a37a22; }
.rd-skin .pf-scroll .parch .ac-chip i { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e05a48, #8e1b14); font-size: 0; }
.rd-skin .pf-scroll .parch .ac-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scroll-snap-type: x proximity;
  -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent); }
.rd-skin .pf-scroll .parch .ac-chip { flex: none; scroll-snap-align: start; }

@media (max-width: 560px) {
  .rd-skin .pf-scroll .parch .ac-hall { gap: .75rem; padding: .6rem .7rem .6rem .5rem; }
  .ac-dial { width: 92px; height: 92px; }
  .rd-skin .pf-scroll .parch .ac-dial b { font-size: 1.2rem; }
  .ac-med, .ac-med.got { width: 50px; height: 50px; } .ac-med img.ac-tro, .ac-med.got img.ac-tro { width: 28px; height: 28px; }
  .rd-skin .pf-scroll .parch .ac-item { grid-template-columns: auto minmax(0, 1fr); }
  .rd-skin .pf-scroll .parch .ac-item .ac-med { grid-row: span 2; align-self: start; }
  .rd-skin .pf-scroll .parch .ac-tier img.ac-tro { width: 34px; height: 34px; }
  .rd-skin .pf-scroll .parch .ac-grp h4 { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .ac-dial > div, .ac-med.got.m-legendary::after { animation: none; } }
html body.rd-skin .pf-scroll .parch .ac-chip i { border-radius: 50% !important; }
.rd-skin .pf-scroll .parch .ac-views button[aria-selected="true"] { background-size: 100% 100%; }
@media (max-width: 560px) { .rd-skin .pf-scroll .parch .ac-views button { font-size: .9rem; padding: .6rem .3rem; } }

/* Achievements, buttons and frames (November 22, 2026, John: "what about these buttons, should there be an outline on the achievements? they are just boxes").
   Same art as the rest of the site: filter buttons are dark oak planks (button_oak_dark), the picked one is the light oak with gold text.
   Trophy tiles sit in the bronze frame. Each achievement is framed: stitched leather while open, bronze once earned. */
html body.rd-skin .pf-scroll .parch .ac-views { border: 0; background: none; box-shadow: none; gap: 6px; }
html body.rd-skin .pf-scroll .parch .ac-views button,
html body.rd-skin .pf-scroll .parch .ac-tier-all,
html body.rd-skin .pf-scroll .parch .ac-chip,
html body.rd-skin .pf-scroll .parch .ac-sort button,
html body.rd-skin .pf-scroll .parch .ac-filt button {
  background: #1e140b; border: 8px solid transparent; border-image: url(../ui/rd/button_oak_dark.webp) 32 fill / 8px / 0 stretch; border-radius: 0;
  color: #eadfc4; text-shadow: 0 1px 2px #000; box-shadow: none; transition: filter .2s ease, transform .2s ease; }
html body.rd-skin .pf-scroll .parch .ac-views button { padding: .45rem .4rem; min-height: 50px; }
html body.rd-skin .pf-scroll .parch .ac-chip { padding: .2rem .55rem; min-height: 42px; }
html body.rd-skin .pf-scroll .parch .ac-sort { border: 0; gap: 6px; }
html body.rd-skin .pf-scroll .parch .ac-sort button { padding: .25rem .6rem; min-height: 42px; }
html body.rd-skin .pf-scroll .parch .ac-filt button { padding: .1rem .5rem; }
html body.rd-skin .pf-scroll .parch .ac-chip span, html body.rd-skin .pf-scroll .parch .ac-views button span { color: #c9b88f; opacity: 1; }
html body.rd-skin .pf-scroll .parch .ac-views button:hover, html body.rd-skin .pf-scroll .parch .ac-chip:hover,
html body.rd-skin .pf-scroll .parch .ac-sort button:hover, html body.rd-skin .pf-scroll .parch .ac-tier-all:hover { filter: brightness(1.18); background: #1e140b; }
/* the picked one: light oak, gold text, a soft glow */
html body.rd-skin .pf-scroll .parch .ac-views button[aria-selected="true"],
html body.rd-skin .pf-scroll .parch .ac-tier-all[aria-pressed="true"],
html body.rd-skin .pf-scroll .parch .ac-chip[aria-pressed="true"],
html body.rd-skin .pf-scroll .parch .ac-sort button[aria-pressed="true"] {
  background: #3a2414; border-image: url(../ui/rd/button_oak.webp) 32 fill / 8px / 0 stretch; color: #f6d77e;
  filter: drop-shadow(0 0 5px rgba(240, 200, 90, .55)); }
html body.rd-skin .pf-scroll .parch .ac-views button[aria-selected="true"] span, html body.rd-skin .pf-scroll .parch .ac-chip[aria-pressed="true"] span,
html body.rd-skin .pf-scroll .parch .ac-tier-all[aria-pressed="true"] b, html body.rd-skin .pf-scroll .parch .ac-tier-all[aria-pressed="true"] small { color: #f6d77e; }
html body.rd-skin .pf-scroll .parch .ac-tier-all b, html body.rd-skin .pf-scroll .parch .ac-tier-all small { color: #eadfc4; }
html body.rd-skin .pf-scroll .parch .ac-chip.sealed { border-image: url(../ui/rd/button_oak_dark.webp) 32 fill / 8px / 0 stretch; }
html body.rd-skin .pf-scroll .parch .ac-chip[aria-pressed="true"].sealed { border-image: url(../ui/rd/button_oak.webp) 32 fill / 8px / 0 stretch; }
html body.rd-skin .pf-scroll .parch .ac-chips { gap: 6px; padding-top: 4px; padding-bottom: 6px; }
/* trophy tiles in the bronze frame */
html body.rd-skin .pf-scroll .parch .ac-tier:not(.ac-tier-all) { border: 10px solid transparent; border-image: url(../ui/rd/frame_bronze.webp) 64 / 10px / 0 stretch;
  background: rgba(255, 246, 222, .5) padding-box; box-shadow: none; padding: .2rem .35rem; border-radius: 0; }
html body.rd-skin .pf-scroll .parch .ac-tier:not(.ac-tier-all):hover { transform: translateY(-1px); filter: brightness(1.05); }
html body.rd-skin .pf-scroll .parch .ac-tier:not(.ac-tier-all)[aria-pressed="true"] { background: rgba(255, 228, 150, .55) padding-box; color: #24180a;
  filter: drop-shadow(0 0 6px rgba(230, 180, 60, .75)); }
html body.rd-skin .pf-scroll .parch .ac-tier:not(.ac-tier-all)[aria-pressed="true"] b, html body.rd-skin .pf-scroll .parch .ac-tier:not(.ac-tier-all)[aria-pressed="true"] small { color: #24180a; }
/* each achievement framed */
html body.rd-skin .pf-scroll .parch .ac-item { border: 11px solid transparent; border-image: url(../ui/rd/frame_leather.webp) 64 / 11px / 0 stretch;
  background: rgba(255, 246, 225, .38) padding-box; box-shadow: none; padding: .35rem .6rem .35rem .3rem; border-radius: 0; }
html body.rd-skin .pf-scroll .parch .ac-item:hover { background: rgba(255, 250, 235, .5) padding-box; }
html body.rd-skin .pf-scroll .parch .ac-item.got { border-image: url(../ui/rd/frame_bronze.webp) 64 / 11px / 0 stretch;
  background: linear-gradient(100deg, rgba(255, 232, 160, .6), rgba(255, 248, 225, .45) 50%, rgba(255, 244, 215, .35)) padding-box;
  filter: drop-shadow(0 2px 4px rgba(120, 80, 15, .3)); }
html body.rd-skin .pf-scroll .parch .ac-item.got::before { display: none; }
html body.rd-skin .pf-scroll .parch .ac-list { gap: .5rem; }
@media (max-width: 560px) {
  html body.rd-skin .pf-scroll .parch .ac-views button { font-size: .88rem; padding: .35rem .2rem; }
  html body.rd-skin .pf-scroll .parch .ac-item { padding: .3rem .7rem .3rem .2rem; }
}
/* trophy tiles stack: trophy on top, count, then metal and XP, so nothing is cut off inside the frame */
html body.rd-skin .pf-scroll .parch .ac-tier:not(.ac-tier-all) { flex-direction: column; justify-content: center; gap: 2px; text-align: center; padding: .3rem .2rem; }
html body.rd-skin .pf-scroll .parch .ac-tier:not(.ac-tier-all) .ac-tier-t { justify-items: center; }
html body.rd-skin .pf-scroll .parch .ac-tier:not(.ac-tier-all) .ac-tier-t > small { font-size: .72rem; line-height: 1.2; white-space: nowrap; }
html body.rd-skin .pf-scroll .parch .ac-tier-all { justify-content: center; }
/* the picked button stands out more: a gold line inside the light oak (an outline, since the oak picture paints over shadows) */
html body.rd-skin .pf-scroll .parch .ac-views button[aria-selected="true"],
html body.rd-skin .pf-scroll .parch .ac-tier-all[aria-pressed="true"],
html body.rd-skin .pf-scroll .parch .ac-chip[aria-pressed="true"],
html body.rd-skin .pf-scroll .parch .ac-sort button[aria-pressed="true"] { outline: 2px solid #e7c766; outline-offset: -5px; }
@media (max-width: 560px) { html body.rd-skin .pf-scroll .parch .ac-item .ac-xp { flex-wrap: wrap; min-width: 0; row-gap: 0; } }

/* The other 4 profile scrolls get the achievements look (November 22, 2026, John: "these other four sections need the same treatment").
   Daily challenges, Customize your profile, Level up rewards, Your stats. Same art: the gold dial in a dark panel at the top,
   bronze frames on tiles, stitched leather on rows (bronze once done), trophy medallions on daily challenges, iron rings on the level road. */
/* the dark panel at the top of Daily challenges and Your stats, and the Achievements and XP panel on Your stats */
html body.rd-skin .pf-scroll .parch .st-hero { padding: .7rem .9rem .7rem .7rem; gap: 1rem; flex-direction: row; align-items: center;
  background: linear-gradient(rgba(36, 24, 10, .92), rgba(24, 16, 6, .95)); border: 1px solid #6b4a10;
  box-shadow: inset 0 0 0 1px rgba(231, 199, 102, .18), inset 0 0 24px rgba(0, 0, 0, .6), 0 3px 8px rgba(60, 35, 10, .35); }
html body.rd-skin .pf-scroll .parch .st-hero .st-big, html body.rd-skin .pf-scroll .parch .st-hero .st-best { color: #e9dcbc; }
html body.rd-skin .pf-scroll .parch .st-hero b { color: #f0d27a; }
html body.rd-skin .pf-scroll .parch .st-hero .pf-fine { color: #cbb68a; }
html body.rd-skin .pf-scroll .parch .st-hero .st-link { color: #f0d27a; }
html body.rd-skin .pf-scroll .parch .st-hero .ac-dial b { font-size: 1.3rem; }
html body.rd-skin .pf-scroll .parch .st-hero .ac-dial span { color: #cbb68a; font-size: .72rem; text-transform: none; }
/* tiles and top cards in the bronze frame */
html body.rd-skin .pf-scroll .parch .st-tile, html body.rd-skin .pf-scroll .parch .st-top, html body.rd-skin .pf-scroll .parch .xp-cols > div {
  border: 10px solid transparent; border-image: url(../ui/rd/frame_bronze.webp) 64 / 10px / 0 stretch; border-radius: 0;
  background: rgba(255, 246, 222, .5) padding-box; box-shadow: none; }
html body.rd-skin .pf-scroll .parch .st-tile { padding: 4px 8px; }
html body.rd-skin .pf-scroll .parch .xp-cols > div { padding: 6px 10px; }
html body.rd-skin .pf-scroll .parch .xp-how { border: 0; background: none; padding: 0; }
html body.rd-skin .pf-scroll .parch .xp-how li:first-child { border-top: 0; }
/* deck rows: leather, the best deck bronze; bars are brass rails */
html body.rd-skin .pf-scroll .parch .st-decks li { border: 10px solid transparent; border-image: url(../ui/rd/frame_leather.webp) 64 / 10px / 0 stretch; border-radius: 0;
  background: rgba(255, 246, 225, .38) padding-box; box-shadow: none; padding: 4px 10px 4px 4px; }
html body.rd-skin .pf-scroll .parch .st-decks li.best { border-image: url(../ui/rd/frame_bronze.webp) 64 / 10px / 0 stretch;
  background: linear-gradient(100deg, rgba(255, 232, 160, .6), rgba(255, 248, 225, .45) 50%) padding-box; }
html body.rd-skin .pf-scroll .parch .st-bar { height: 10px; border-radius: 0; background: rgba(60, 40, 12, .2); box-shadow: inset 0 1px 2px rgba(40, 25, 5, .45), 0 0 0 1px rgba(107, 74, 16, .35); }
html body.rd-skin .pf-scroll .parch .st-bar i { background: linear-gradient(90deg, #7a5310, #c99a2e 60%, #f0d27a); }
/* daily challenges: the medallion sits left, so the row needs its 3 columns back on phones too */
html body.rd-skin .pf-scroll .parch .ac-list .ac-item .ac-txt > span { min-width: 0; }
/* level road: plain levels in the iron ring, levels you have in the gold dial, rows framed */
html body.rd-skin .pf-scroll .parch .rr-dot:not(.rr-msshield) { width: 40px; height: 40px; border: 0; background: url(../ui/rd/ach/ring_iron.webp) center / contain no-repeat; color: #24180a; box-shadow: none; }
html body.rd-skin .pf-scroll .parch .rr-stop.now .rr-dot:not(.rr-msshield) { background: #1a1208 url(../ui/rd/ach/ring_gold.webp) center / 120% 120% no-repeat; color: #f0d27a; }
html body.rd-skin .pf-scroll .parch .rr-done .rr-dot { background: url(../ui/rd/ach/ring_gold.webp) center / 120% 120% no-repeat; color: #f0d27a; text-shadow: 0 1px 2px #000; }
html body.rd-skin .pf-scroll .parch .rr-stop { grid-template-columns: 42px minmax(0, 1fr); }
html body.rd-skin .pf-scroll .parch .rr-row { border: 10px solid transparent; border-image: url(../ui/rd/frame_leather.webp) 64 / 10px / 0 stretch;
  background: rgba(255, 246, 225, .38) padding-box; padding: 2px 8px; }
html body.rd-skin .pf-scroll .parch .rr-stop.ms .rr-row, html body.rd-skin .pf-scroll .parch .rr-stop.now .rr-row { border-image: url(../ui/rd/frame_bronze.webp) 64 / 10px / 0 stretch;
  background: linear-gradient(100deg, rgba(255, 232, 160, .55), rgba(255, 248, 225, .42) 50%) padding-box; }
html body.rd-skin .pf-scroll .parch .rr-done summary { padding: 4px 0; }
/* Customize your profile: each section is a leather framed panel, bronze while open */
html body.rd-skin .pf-scroll .parch .pf-sec, html body.rd-skin .pf-scroll .parch .pf-sec:first-child { border: 10px solid transparent; border-image: url(../ui/rd/frame_leather.webp) 64 / 10px / 0 stretch;
  background: rgba(255, 246, 225, .38) padding-box; margin: 0 0 10px; }
html body.rd-skin .pf-scroll .parch .pf-sec[open] { border-image: url(../ui/rd/frame_bronze.webp) 64 / 10px / 0 stretch; background: rgba(255, 248, 230, .5) padding-box; }
html body.rd-skin .pf-scroll .parch .pf-sec > summary { padding: 4px 8px; min-height: 52px; }
html body.rd-skin .pf-scroll .parch .pf-sec > summary::after { color: #6b4a10; }
html body.rd-skin .pf-scroll .parch .pf-sec-b { padding: 4px 10px 14px; }
@media (max-width: 560px) {
  html body.rd-skin .pf-scroll .parch .st-hero { gap: .7rem; padding: .6rem .6rem .6rem .45rem; }
  html body.rd-skin .pf-scroll .parch .st-hero .ac-dial { width: 92px; height: 92px; }
  html body.rd-skin .pf-scroll .parch .st-big { font-size: 1.05rem; } html body.rd-skin .pf-scroll .parch .st-big b { font-size: 1.3rem; }
  html body.rd-skin .pf-scroll .parch .pf-sec-t { min-width: 0; }
}
html body.rd-skin .pf-scroll .parch .xp-cols { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
html body.rd-skin .pf-scroll .parch .ac-list + .st-tiles { margin-top: 10px; }
/* the picked favorite deck sits in the bronze frame, the picked headshot glows gold */
html body.rd-skin .pf-scroll .parch .pf-decks button { border: 10px solid transparent; border-radius: 0; background: none; }
html body.rd-skin .pf-scroll .parch .pf-decks button[aria-pressed="true"] { border-image: url(../ui/rd/frame_bronze.webp) 64 / 10px / 0 stretch;
  background: rgba(255, 232, 160, .45) padding-box; outline: 0; box-shadow: none; filter: drop-shadow(0 0 6px rgba(230, 180, 60, .6)); }
html body.rd-skin .pf-scroll .parch .pf-faces button[aria-pressed="true"] { outline: 3px solid #e7c766; outline-offset: 1px; box-shadow: 0 0 10px 2px rgba(240, 200, 90, .75); }
@media (max-width: 560px) {
  html body.rd-skin .pf-scroll .parch .pf-sec > summary { flex-wrap: wrap; gap: 4px 10px; padding: 6px 6px; }
  html body.rd-skin .pf-scroll .parch .pf-sec-t { flex: 1 0 100%; white-space: nowrap; }
  html body.rd-skin .pf-scroll .parch .pf-sec-now { flex: 1; min-width: 0; }
}
