/* Rolls-first pages (8 Nov 2026): the home feed, roll pages, channels and player profiles.
   Brand tokens as site/next/next.css. Dark ground, Hanken Grotesk, orange only where it means something. */
:root {
  --ink: #000000; --panel: #141416; --raise: #1C1C1F; --onbar: #EDEDEB; --white: #FFFFFF; --dmuted: #A8A8AD; --dhair: #26262A; --dhair2: #38383E;
  --dtext: #CFCFD3;
  --signal: #FF4F1F; --tide: #5BA8C9; --moss: #8DB36A; --gold: #D9B45A;
  --pad: clamp(16px, 3.2vw, 64px); --bar: 60px; --r: 14px;
  /* one spacing scale, fluid: gaps grow with the screen instead of a fixed-width column */
  --s1: 4px; --s2: 8px; --s3: clamp(12px, 1vw, 16px); --s4: clamp(16px, 1.4vw, 24px); --s5: clamp(24px, 2.2vw, 40px); --s6: clamp(40px, 4vw, 72px); --s7: clamp(56px, 6vw, 112px);
  --cols: 1; --gap: clamp(16px, 2vw, 40px);
  --attack: cubic-bezier(.16, 1, .3, 1);
  --small: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--onbar); font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--onbar); color: var(--ink); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--onbar); outline-offset: 3px; }
.cat { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dmuted); font-variant-numeric: tabular-nums; }
.muted { color: var(--dmuted); }

/* the bar and the footer are the site chrome: /share/chrome.css */

main { padding: var(--s5) var(--pad) var(--s7); }
@media (min-width: 640px) { :root { --cols: 2; } }
@media (min-width: 1040px) { :root { --cols: 3; } }

/* ---------- avatars ---------- */
.av { --ring: transparent; width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--raise) center/cover no-repeat; box-shadow: 0 0 0 2px var(--ring); }
.av.c-signal { --ring: var(--signal); } .av.c-tide { --ring: var(--tide); } .av.c-moss { --ring: var(--moss); }
.av.f-ring { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--ring, var(--onbar)); }
.av.f-ring:not([class*="c-"]) { --ring: var(--onbar); }
.av.f-gold { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold); }
.av.big { width: 96px; height: 96px; }
.av.s22 { width: 22px; height: 22px; }

/* ---------- feed head ---------- */
.head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.head h1 { font-size: clamp(32px, 4vw, 72px); font-weight: 300; letter-spacing: -.03em; line-height: 1.02; }
.head .say { color: var(--dmuted); max-width: 46ch; font-size: clamp(16px, 1.1vw, 19px); margin-top: var(--s3); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--dhair); border-radius: 99px; }
.tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 99px; cursor: pointer; font-size: 15px; color: var(--dmuted); }
.tabs button[aria-selected="true"] { background: var(--onbar); color: var(--ink); font-weight: 500; }
.tabs button:hover:not([aria-selected="true"]) { color: var(--onbar); }

/* ---------- channels row ---------- */
.chans { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--s6); }
.chans .hand { margin: 0; }
.chan { position: relative; display: flex; gap: var(--s3); align-items: center; padding: var(--s3); border: 1px solid var(--dhair); border-radius: var(--r); background: var(--panel); text-decoration: none; min-height: 88px; }
.chan:hover { border-color: var(--dhair2); background: var(--raise); }
.chan .art { width: 60px; height: 60px; border-radius: 10px; background: #000 center/cover; flex: none; }
.chan .art.sealed { display: grid; place-items: center; background: var(--raise); font-size: 12px; letter-spacing: .12em; color: var(--dmuted); }
.chan .t { font-weight: 500; }
.chan .s { font-size: 13px; color: var(--dmuted); }
.chan .live { position: absolute; top: 10px; right: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dmuted); display: inline-flex; align-items: center; gap: 6px; }
.chan .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* ---------- roll cards ----------
   Three across on a desktop, two on a tablet, one on a phone. A card is a picture, a title and one line: who made it and how many played. */
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--s6) var(--gap); }
.feedhead { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.feedhead h2 { font-size: clamp(20px, 1.6vw, 28px); font-weight: 400; letter-spacing: -.01em; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card .pic { position: relative; }
.card .thumb { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: #0B0E0D; border: 1px solid var(--dhair); aspect-ratio: 16 / 10; }
.card .thumb svg { display: block; width: 100%; height: 100%; }
.card:hover .thumb { border-color: var(--dhair2); }
.card .go { position: absolute; right: var(--s3); bottom: var(--s3); z-index: 2; height: 36px; padding: 0 14px 0 12px; border-radius: 99px; background: var(--onbar); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .3s var(--attack); }
.card:hover .go, .card .go:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .card .go { display: none; } }
.card .go svg { width: 12px; height: 12px; fill: currentColor; }
/* the card as a thing you hold: it tilts toward the pointer and a light slides across it (TCG-style, cosmetic) */
.card .thumb { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--attack), border-color .2s; will-change: transform; }
.card .thumb::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), rgba(255,255,255,0) 45%); mix-blend-mode: soft-light; }
.card.tilt .thumb { transition: transform .08s linear, border-color .2s; }
.card.tilt .thumb::after { opacity: 1; }
.card.hot .thumb { border-color: rgba(255,79,31,.45); }
.card.hot .thumb::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,190,150,.12) 45%, rgba(170,220,255,.1) 55%, transparent 70%) var(--mx, 50%) 0 / 250% 100%; mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .card .thumb { transform: none !important; } .card .thumb::after { display: none; } }
.card h3 { font-size: clamp(17px, 1.2vw, 21px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; margin-top: var(--s3); }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.card .meta { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); font-size: clamp(14px, .95vw, 16px); color: var(--dmuted); font-variant-numeric: tabular-nums; min-width: 0; }
.card .meta i { font-style: normal; opacity: .6; }
.card .meta .who { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; position: relative; z-index: 1; }
.card .meta .who a { text-decoration: none; color: var(--onbar); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .meta .who a:hover { text-decoration: underline; }
.card .meta .rx { color: var(--signal); }
.av.s20 { width: 20px; height: 20px; }
.stat { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.stat svg { width: 13px; height: 13px; }
.ems { display: inline-flex; gap: 6px; }
.em { display: inline-flex; align-items: center; gap: 3px; }
.em svg { width: 15px; height: 15px; }
.tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--dhair2); padding: 1px 6px; border-radius: 99px; color: var(--dmuted); }
.lv { font-size: 12px; font-weight: 500; color: var(--ink); background: var(--onbar); border-radius: 99px; padding: 0 6px; }
.house { font-size: 12px; color: var(--ink); background: var(--onbar); border-radius: 99px; padding: 0 6px; }

.empty, .note { color: var(--dmuted); padding: 40px 0; }
.note { padding: 0; font-size: 14px; color: var(--dtext); }
.skel { border-radius: var(--r); background: linear-gradient(90deg, var(--panel), var(--raise), var(--panel)); background-size: 200% 100%; aspect-ratio: 16 / 10; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.more-btn { display: block; margin: 30px auto 0; border: 1px solid var(--dhair2); background: none; border-radius: 99px; padding: 10px 20px; cursor: pointer; }

/* ---------- buttons ---------- */
.key { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--onbar); color: var(--ink); font-weight: 500; border: 0; border-radius: 99px; padding: 14px 24px; cursor: pointer; font-size: 17px; }
.key svg { width: 14px; height: 14px; fill: currentColor; }
.key:hover { background: #fff; }
.key:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.ghost { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: none; border: 1px solid var(--dhair2); border-radius: 99px; padding: 12px 18px; cursor: pointer; font-size: 15px; }
.ghost:hover { border-color: var(--dmuted); }
.ghost[aria-pressed="true"] { border-color: var(--onbar); }
.ghost svg { width: 16px; height: 16px; }
.link { background: none; border: 0; padding: 0; color: var(--dmuted); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* ---------- roll page ---------- */
.roll { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (max-width: 860px) { .roll { grid-template-columns: 1fr; } }
.roll .thumb { border-radius: 18px; overflow: hidden; border: 1px solid var(--dhair); background: #0C0F0E; aspect-ratio: 16 / 10; }
.roll .thumb svg { display: block; width: 100%; height: 100%; }
.roll h1 { font-size: clamp(30px, 3.4vw, 50px); font-weight: 400; letter-spacing: -.03em; line-height: 1.04; margin: 8px 0 14px; }
.roll h1 { margin-bottom: var(--s4); }
/* the roll panel reads top down: who made it, what it is, play it, then the small stuff (Kyle, 8 Nov: too dense) */
.roll .by { display: flex; gap: 12px; align-items: center; text-decoration: none; margin-bottom: var(--s5); line-height: 1.35; }
.roll .by .av { width: 40px; height: 40px; }
.roll .by b { font-weight: 500; }
.roll .by:hover b { text-decoration: underline; text-underline-offset: 3px; }
.roll .by .lvl, .roll .by .s { font-size: 14px; color: var(--dtext); font-variant-numeric: tabular-nums; }
.roll .lead { font-size: 18px; line-height: 1.5; max-width: 34em; }
.roll .doc { color: var(--dmuted); font-style: italic; margin-top: 10px; max-width: 34em; }
.roll .acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: var(--s5) 0 12px; }
.roll .acts .sub { display: flex; flex-wrap: wrap; gap: 8px; }
.roll .acts .ghost { padding: 11px 16px; font-size: 14px; }
.roll .free { font-size: 14px; color: var(--dtext); }
.roll .free + .free { margin-top: 4px; }
.roll .remixof { margin-top: 4px; }
.roll .remixof q { color: var(--dtext, inherit); }
.roll .changed { margin: 6px 0 0; padding: 0 0 0 16px; font-size: 14px; color: var(--dtext); display: grid; gap: 2px; }
.roll .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--dhair); }
.roll .foot .embar { margin-top: 0; }
.roll .foot .link { font-size: 14px; color: var(--dmuted); flex: none; }
.nums { display: flex; gap: 6px 20px; margin: 16px 0 0; flex-wrap: wrap; font-size: 16px; color: var(--dtext); font-variant-numeric: tabular-nums; }
.nums b { font-weight: 500; color: var(--onbar); }
.maker { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--dhair); border-radius: var(--r); background: var(--panel); text-decoration: none; margin-top: 18px; }
.maker:hover { border-color: var(--dhair2); }
.maker .av { width: 44px; height: 44px; }
.maker .s { font-size: 13px; color: var(--dmuted); }
.embar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.embar button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--dhair2); background: none; border-radius: 99px; padding: 10px 12px; min-height: 44px; cursor: pointer; font-size: 13px; font-variant-numeric: tabular-nums; }
.embar button svg { width: 18px; height: 18px; }
.embar button[aria-pressed="true"] { border-color: var(--onbar); background: var(--raise); }
.embar button[disabled], .embar button[aria-disabled="true"] { opacity: .38; cursor: default; }
.sec { margin-top: var(--s6); }
.sec h2 { font-size: clamp(20px, 1.6vw, 28px); font-weight: 400; letter-spacing: -.01em; margin-bottom: var(--s4); display: flex; align-items: baseline; gap: 12px; }
.sec h2 a { font-size: 14px; color: var(--dmuted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--onbar); color: var(--ink); padding: 10px 16px; border-radius: 99px; font-size: 14px; z-index: 60; }

/* ---------- channel ---------- */
/* The art is square and exactly as tall as the text beside it: top and bottom flush (Kyle, 8 Nov).
   rolls.js measures the text and sets --art; the default only shows until then. */
.chead { --art: 280px; display: grid; grid-template-columns: var(--art) minmax(0, 1fr); column-gap: var(--s5); align-items: start; margin-bottom: var(--s6); }
.chead .art { width: var(--art); height: var(--art); border-radius: 18px; background: #000 center/cover; border: 1px solid var(--dhair); box-sizing: border-box; }
.chead .cat { line-height: 1; }
.chead h1 { font-size: clamp(34px, 4.4vw, 64px); font-weight: 400; letter-spacing: -.035em; line-height: 1; margin: 10px 0 8px; }
/* Phones: the art sits beside the name block only, and the numbers and keys run full width below. */
@media (max-width: 640px) {
  .chead { --art: 112px; column-gap: var(--s4); }
  .chead > div:last-child { display: contents; }
  .chead .art { grid-row: 1 / span 3; }
  .chead .cat, .chead h1, .chead .line { grid-column: 2; }
  .chead > div > :not(.cat, h1, .line) { grid-column: 1 / -1; }
  .chead .line { font-size: 16px; }
}
.chead .line { color: var(--dmuted); font-size: 18px; }
.chead .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }

/* ---------- player ---------- */
.phead { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.phead .mylook { margin-top: 8px; font-size: 14px; }
.phead .mylook a { color: var(--dmuted); text-underline-offset: 3px; }
.phead .mylook a:hover { color: var(--onbar); }
#look { scroll-margin-top: calc(var(--bar) + 16px); }
.phead h1 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 400; letter-spacing: -.03em; line-height: 1.04; }
.level { margin: 22px 0 6px; max-width: 520px; }
.level .barw { height: 8px; background: var(--raise); border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.level .barw i { display: block; height: 100%; background: var(--onbar); border-radius: 99px; }
.level p { font-size: 14px; color: var(--dmuted); }
.picks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.picks button { border: 1px solid var(--dhair2); background: none; border-radius: 99px; padding: 8px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.picks button[aria-pressed="true"] { border-color: var(--onbar); background: var(--raise); }
.picks button[disabled], .picks button[aria-disabled="true"] { opacity: .38; cursor: default; }
.picks button[aria-disabled="true"][aria-pressed="false"] { border-style: dashed; }
.picks .sw { width: 14px; height: 14px; border-radius: 50%; }
.self { margin-top: 30px; padding: 20px; border: 1px solid var(--dhair); border-radius: 18px; background: var(--panel); display: grid; gap: 18px; }
.self h3 { font-size: 15px; font-weight: 500; }
.sample { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--dmuted); border: 1px dashed var(--dhair2); border-radius: 99px; padding: 4px 12px; }

footer { padding: var(--s5) var(--pad) var(--s6); color: var(--dmuted); font-size: 13px; border-top: 1px solid var(--dhair); display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--dmuted); margin-right: 14px; }

/* ---------- your hand of free rolls ---------- */
.hand { display: flex; align-items: center; gap: var(--s3); border: 1px solid var(--dhair); border-radius: var(--r); padding: var(--s3); min-height: 88px; background: linear-gradient(120deg, rgba(255,79,31,.07), transparent 60%); }
.hand > div:not(.slots) { flex: 1 1 180px; min-width: 0; }
/* When the card is too narrow for text and key side by side, the key drops to its own row. */
.hand { flex-wrap: wrap; }
.hand .key { padding: 10px 16px; font-size: 15px; flex: none; }
.hand .s { font-size: 14px; color: var(--dmuted); }
.hand .slots { display: flex; gap: 8px; }
.hand .slot { width: 30px; height: 42px; border-radius: 6px; border: 1px dashed var(--dhair2); }
.hand .slot.on { border: 1px solid rgba(255,79,31,.7); background: linear-gradient(135deg, #2a1712, #0C0F0E 55%, #14202a); box-shadow: inset 0 0 0 2px rgba(255,255,255,.04); position: relative; overflow: hidden; }
.hand .slot.on::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%); animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .hand .slot.on::after { animation: none; display: none; } }
.cost { font-size: 14px; color: var(--dmuted); margin-top: 10px; }
.opt { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--signal); }

/* phone: rolls come first, so the hand and channels become one swipeable row */
@media (max-width: 639px) {
  .chans { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)) var(--s6); padding: 0 var(--pad); scroll-padding: var(--pad); scrollbar-width: none; }
  .chans > * { scroll-snap-align: start; }
}
.chan .t, .hand b { font-size: clamp(16px, 1.05vw, 19px); }
.chan .s, .hand .s { font-size: clamp(14px, .9vw, 16px); }

/* platform icons (site/share/icons.svg) */
.i { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.n { display: inline-flex; align-items: center; gap: .35em; font-variant-numeric: tabular-nums; }
.card .meta .n .i { width: .8em; height: .8em; }
.card .meta .rx { display: inline-flex; align-items: center; gap: .3em; }
.key .i, .ghost .i { width: 16px; height: 16px; }

/* ---------- campaign and trophies ---------- */
:root { --bronze: #C58B5C; --silver: #B9C0C8; --plat: #BFE3F2; }
.camp { margin-bottom: var(--s7); }
.camp .feedhead { align-items: end; }
.camp .muted { margin-top: var(--s2); font-size: clamp(14px, .95vw, 16px); }
.camp-n { display: inline-flex; align-items: center; gap: var(--s2); color: var(--dmuted); font-size: 15px; }
.camp-n b { color: var(--onbar); font-weight: 500; }
.camp-n .i { color: var(--gold); width: 18px; height: 18px; }
.card .tags { position: absolute; top: var(--s3); left: var(--s3); z-index: 2; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card .step { position: static; font-size: 13px; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--onbar); border-radius: 99px; padding: 3px 10px; }
.card.done .step { background: var(--gold); }
/* your status on a roll: finished in gold (as a won campaign step and gold trophies), played in a quiet glass pill */
.card .st { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; border-radius: 99px; padding: 3px 10px 3px 9px; line-height: 1.35; }
.card .st svg { width: 13px; height: 13px; }
.card .st.fin { background: var(--gold); color: var(--ink); }
.card .st.try { background: rgba(0,0,0,.72); color: var(--onbar); border: 1px solid rgba(237,237,235,.22); padding: 2px 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card .meta .won { display: inline-flex; align-items: center; gap: .3em; color: var(--gold); }
.card .meta .won .i { width: .9em; height: .9em; }
.tts { display: flex; gap: var(--s3); flex-wrap: wrap; }
.tt { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-size: 16px; }
.tt .i { width: 20px; height: 20px; }
.t-bronze .i { color: var(--bronze); } .t-silver .i { color: var(--silver); } .t-gold .i { color: var(--gold); } .t-platinum .i { color: var(--plat); }
.tgroup { padding: var(--s4) 0; border-top: 1px solid var(--dhair); }
.tghead { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.tghead h3 { font-size: clamp(17px, 1.2vw, 20px); font-weight: 500; }
.tghead .muted { font-size: 14px; font-variant-numeric: tabular-nums; }
.tgroup .barw { height: 4px; background: var(--raise); border-radius: 99px; overflow: hidden; margin: var(--s3) 0 var(--s4); }
.tgroup .barw i { display: block; height: 100%; background: var(--onbar); border-radius: 99px; }
.tlist { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--s3) var(--gap); }
.troph { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); border: 1px solid var(--dhair); border-radius: var(--r); background: var(--panel); }
.troph .i { width: 30px; height: 30px; }
/* a trophy you haven't earned: a dashed, empty plate and a dim cup; the words stay readable */
.troph.off { border-style: dashed; background: none; }
.troph.off .i { color: var(--dmuted); opacity: .4; }
.troph.off .t { color: var(--dmuted); font-weight: 400; }
.troph .t { font-weight: 500; font-size: 15px; }
.troph .s { font-size: 13px; color: var(--dmuted); }
.troph.t-platinum { border-color: rgba(191,227,242,.35); }
.av.f-plat { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--plat), 0 0 12px 2px rgba(191,227,242,.35); }

/* ---------- the hero: featured rolls above the fold, cutting between their endings ----------
   9 Nov: Netflix. The clip itself is the background of the fold, full bleed and at full strength, running up under
   the bar. Only a shade on the left (for the copy) and a fade at the foot (into the page, so the first row of rolls
   reads as the next thing) sit over it. Short enough that the first row of rolls shows above the fold. */
.hero { position: relative; margin: calc(-1 * var(--s5)) calc(-1 * var(--pad)) 0; padding: var(--s6) var(--pad) var(--s6); min-height: clamp(420px, calc(100svh - var(--bar) - 300px), 760px); box-sizing: border-box; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); align-content: end; isolation: isolate; }
.hero[hidden] { display: none; }
.hero-media { position: absolute; top: calc(-1 * var(--bar)); left: 0; right: 0; bottom: 0; z-index: -2; overflow: hidden; background: #05080A; pointer-events: none; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; opacity: 0; transition: opacity .6s var(--attack); background: #05080A; }
.hero-media video.on { opacity: 1; }
.hero::after { content: ''; position: absolute; top: calc(-1 * var(--bar)); left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, var(--ink) 0%, rgba(0,0,0,.75) 16%, rgba(0,0,0,0) 45%),
    linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.7) 26%, rgba(0,0,0,0) 56%),
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) calc(var(--bar) + 80px)); }
/* the copy over the video (Kyle, 10 Nov: "hard to read", "too spread out"; Netflix): all white, nothing thin,
   one tight block. Label and title touch, the maker and the brief sit right under, the keys close the block. */
.hero-copy { grid-column: 1; grid-row: 1; align-self: end; transition: opacity .22s ease, transform .22s var(--attack); min-width: 0; max-width: 34em; color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.5); }
.hero-copy.out { opacity: 0; transform: translateY(6px); }
.hero-copy .cat { color: var(--white); font-weight: 500; }
/* the title always sits on one line (Kyle, 10 Nov): rolls.js steps the size down until it fits; the ellipsis is only the net under that */
.hero-copy h2 { font-size: clamp(40px, 4.2vw, 72px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; margin: 8px 0 12px; white-space: nowrap; overflow-x: clip; text-overflow: ellipsis; }
@media (min-width: 1040px) { .hero-copy { grid-column: 1 / span 2; max-width: none; } .hero-copy .lead { max-width: 34em; } }
.hero-copy h2 a { text-decoration: none; }
.hero-copy .by { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 16px; font-weight: 500; color: var(--white); }
.hero-copy .by b { font-weight: 500; }
.hero-copy .by .av { width: 28px; height: 28px; }
.hero-copy .by .house { font-size: 12px; font-weight: 500; padding: 1px 7px; border: 0; background: rgba(255,255,255,.2); border-radius: 99px; color: var(--white); margin-left: 4px; text-shadow: none; }
.hero-copy .lead { font-size: clamp(17px, 1.25vw, 21px); font-weight: 400; line-height: 1.4; margin-top: 10px; max-width: 30em; color: var(--white); text-wrap: pretty; }
.hero-copy .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; text-shadow: none; }
/* Netflix's second key: a grey glass, so it reads on any frame of the video */
.hero-copy .acts .ghost { background: rgba(110,110,115,.55); border-color: transparent; color: var(--white); font-weight: 500; font-size: 17px; padding: 14px 22px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-copy .acts .ghost:hover { background: rgba(110,110,115,.75); }
.hero-ctl { grid-column: -2 / -1; grid-row: 1; align-self: end; justify-self: end; width: min(100%, 380px); display: flex; align-items: center; gap: 14px; }
.hero-ctl .ticks { display: flex; gap: 6px; flex: 1; justify-content: flex-end; }
.hero-ctl .ticks button { flex: 1; max-width: 72px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hero-ctl .ticks button::before, .hero-ctl .ticks i { content: ''; grid-area: 1 / 1; height: 3px; border-radius: 3px; background: rgba(237,237,235,.35); }
.hero-ctl .ticks i { background: var(--onbar); transform-origin: left; transform: scaleX(0); }
.hero-ctl .ticks .done i { transform: scaleX(1); }
.hero-ctl .ticks .on i { animation: tick linear forwards; animation-duration: 8s; }
.hero.paused .ticks .on i { animation-play-state: paused; }
@keyframes tick { to { transform: scaleX(1); } }
.hero-pause { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(237,237,235,.4); background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.hero-pause svg { width: 15px; height: 15px; fill: currentColor; }
.hero-pause:hover { border-color: var(--onbar); }
@media (prefers-reduced-motion: reduce) { .hero-media video, .hero-copy { transition: none; } .hero-ctl .ticks .on i { animation: none; transform: scaleX(1); } }
/* two columns: the copy takes the left half, the ticks the right */
@media (max-width: 1039px) {
  .hero { min-height: clamp(400px, 58svh, 620px); }
  .hero-copy { max-width: 34em; }
  .hero-copy h2 { font-size: clamp(34px, 5.4vw, 56px); margin: 8px 0 12px; }
  .hero-copy .acts { margin-top: 18px; }
  .hero::after { background:
    linear-gradient(0deg, var(--ink) 0%, rgba(0,0,0,.78) 22%, rgba(0,0,0,0) 58%),
    linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) calc(var(--bar) + 60px)); }
}
/* phones: the clip fills the top of the screen edge to edge, the copy rises out of its foot, the ticks under it */
@media (max-width: 639px) {
  .hero { min-height: 0; padding-top: calc(56.25vw + var(--s5)); padding-bottom: var(--s4); row-gap: var(--s2); }
  .hero-media { bottom: auto; height: calc(var(--bar) + 56.25vw + 120px); }
  .hero::after { bottom: auto; height: calc(var(--bar) + 56.25vw + 121px); background:
    linear-gradient(0deg, var(--ink) 0%, rgba(0,0,0,.85) 30%, rgba(0,0,0,0) 62%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) calc(var(--bar) + 40px)); }
  .hero-copy, .hero-ctl { grid-column: 1; }
  .hero-ctl { grid-row: 2; justify-self: stretch; width: auto; }
  .hero-ctl .ticks { justify-content: flex-start; }
  .hero-copy .lead { display: none; }   /* phones: the title, the maker and Play; the brief is one tap away */
  .hero-copy .acts .key { flex: 1; justify-content: center; }
  .head .say { display: none; }
}
/* the feed's head: the headline left, the tabs right, the cards straight under */
.hero:not([hidden]) + .head { position: relative; }
.head { align-items: center; margin-bottom: var(--s4); }
.head h1 { font-size: clamp(20px, 1.6vw, 28px); font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.head .say { margin-top: var(--s1); font-size: clamp(14px, .95vw, 16px); max-width: none; }
.tabs { background: rgba(24,24,27,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
main > .grid, main > .head { position: relative; }
.chsec { margin-top: var(--s7); }

/* ---------- 10 Nov pass: black ground, roll cost, reactions, the home page below the feed ---------- */
/* roll cost (Kyle, 10 Nov: "show how many rolls each game is"). One mark, two forms:
   .rc  an info tag: the orange roll mark, the number in bold, "roll(s) to make"
   .rcb the price on a key that spends rolls: the mark and the number in a small capsule at the key's end */
.rc { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--onbar); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc .i { width: 15px; height: 15px; color: var(--signal); }
.rc b { font-weight: 500; }
.rcb { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 2px 8px 2px 6px; border-radius: 99px; font-size: 13px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.12); color: inherit; }
.key .rcb { background: rgba(0,0,0,.1); }
.rcb .i, .key .rcb .i, .ghost .rcb .i { width: 13px; height: 13px; color: var(--signal); }
.chan .rc { margin-top: 4px; font-size: 13px; }
.cost { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--dmuted); margin-top: 14px; }
.hand .key { display: inline-flex; align-items: center; }

/* icons sit dead centre in every pill: no empty text box beside them */
.ghost, .key, .embar button { justify-content: center; line-height: 1; }
.embar button:empty, .embar button span:empty { display: none; }
.ghost svg, .key svg, .embar button svg { display: block; flex: none; }

/* reactions under a roll: a label, and every pill says its name (and its count when it has one) */
.react { display: grid; gap: 10px; min-width: 0; }
.embar { margin-top: 0; }
.embar button { gap: 6px; padding: 9px 14px 9px 11px; font-size: 14px; color: var(--onbar); }
.embar button .ct { color: var(--dmuted); font-variant-numeric: tabular-nums; }
.embar button[aria-pressed="true"] .ct { color: var(--onbar); }
.roll .foot { align-items: end; }

/* the channel's long line */
.chead .about { margin-top: 14px; max-width: 46ch; font-size: 17px; line-height: 1.5; color: var(--onbar); }
@media (max-width: 640px) { .chead .about { grid-column: 1 / -1; margin-top: var(--s4); font-size: 16px; } }

/* ================= 18 Nov 2026: the channel panel and the profile, rebuilt (one-shot-games ops/STYLE-GUIDE.md) =================
   Text is never under 14px. Secondary text is --dtext, not grey. Every row shares one set of columns. */
.pf-bar, .lb .barw.xp { height: 8px; background: var(--dhair2); border-radius: 99px; overflow: hidden; }
.pf-bar i { display: block; height: 100%; background: var(--onbar); border-radius: 99px; }

/* ---- channel: the name and Play on the left, your rank and loadout on the right (lobby.js makes .ctop) ---- */
.ctop { margin-bottom: var(--s6); }
.ctop .lobby { margin: var(--s5) 0 0; }
.ctop .chead { margin-bottom: 0; }
@media (min-width: 1180px) {
  .ctop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 30vw); gap: var(--s5); align-items: start; }
  .ctop .lobby { margin: 0; }
  .ctop .chead { --cap: clamp(220px, 21vw, 400px); grid-template-columns: min(var(--art), var(--cap)) minmax(0, 1fr); }
  .ctop .chead .art { width: min(var(--art), var(--cap)); height: min(var(--art), var(--cap)); }
}
.lb { border: 1px solid var(--dhair2); border-radius: 18px; background: var(--panel); overflow: hidden; }
.lb-rank { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px 16px; align-items: center; padding: var(--s4); }
.lb-rank .emb { display: block; }
.lb-k { font-size: 15px; color: var(--dtext); }
.lb-n { font-size: clamp(26px, 2.2vw, 32px); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lb-n span { font-size: 16px; letter-spacing: 0; color: var(--dtext); }
.lb-all { background: none; border: 1px solid var(--dhair2); border-radius: 99px; padding: 0 16px; min-height: 44px; cursor: pointer; font-size: 15px; white-space: nowrap; }
.lb-all:hover { border-color: var(--onbar); }
.lb-rank .barw.xp, .lb-next, .lb-g { grid-column: 1 / -1; }
.lb-next { font-size: 16px; line-height: 1.45; color: var(--dtext); }
.lb-next b { color: var(--onbar); font-weight: 500; }
.lb-g { font-size: 15px; color: var(--dtext); margin-top: -6px; }
.lb-rows { border-top: 1px solid var(--dhair2); }
.lb-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; width: 100%; min-height: 60px; padding: 10px var(--s4); background: none; border: 0; border-top: 1px solid var(--dhair); text-align: left; font-size: 16px; }
.lb-row:first-child { border-top: 0; }
button.lb-row { cursor: pointer; }
button.lb-row:hover:not(.locked) { background: var(--raise); }
button.lb-row:focus-visible { outline-offset: -3px; }
.lb-l { font-size: 15px; color: var(--dtext); }
.lb-v { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-v svg { width: 22px; height: 22px; flex: none; color: var(--signal); }
.lb-a { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.lb-row.locked { cursor: default; }
.lb-row.locked .lb-v { color: var(--dtext); }
.lb-row.locked .lb-v svg { color: var(--dmuted); }
.lb-row.tier { grid-template-columns: 104px minmax(0, 1fr); }
.lb-tiers { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-tiers button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; background: none; border: 1px solid var(--dhair2); border-radius: 99px; cursor: pointer; font-size: 15px; white-space: nowrap; }
.lb-tiers button svg { width: 15px; height: 15px; }
.lb-tiers button small { font-size: 14px; color: var(--dtext); }
.lb-tiers button[aria-checked="true"] { background: var(--onbar); border-color: var(--onbar); color: var(--ink); font-weight: 500; }
.lb-tiers button[aria-disabled="true"] { cursor: default; color: var(--dtext); border-style: dashed; }
.lb-t { grid-column: 2; font-size: 15px; color: var(--dtext); }
.ctop .sets { border-color: var(--dhair2); }
.ctop .sets summary { align-items: center; }
.ctop .sgrid { grid-template-columns: 1fr; }
/* laptop and wider: Settings sits under the name and Play, so the rank panel never leaves a black band beside it */
@media (min-width: 1180px) {
  .ctop .lobby { display: contents; }
  .ctop .chead { grid-column: 1; grid-row: 1; }
  .ctop .lb { grid-column: 2; grid-row: 1 / span 2; }
  .ctop .sets { grid-column: 1; grid-row: 2; margin: 0; align-self: start; }
}
.lb-tiers button[aria-checked="true"] { background: none; border-color: var(--onbar); box-shadow: inset 0 0 0 1px var(--onbar); color: var(--white); }
.ctop .sets summary small, .camp .feedhead .muted, .camp-n, .lb-g { color: var(--dtext); }
/* a card's play count says what it counts; a remix tag is a label, not a button */
.card .meta .n .vh { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; }
.card .meta .rx { color: var(--dtext); }
@media (max-width: 480px) {
  .lb-rank { grid-template-columns: 56px minmax(0, 1fr); }
  .lb-rank .emb { width: 56px; height: 56px; }
  .lb-all { grid-column: 1 / -1; justify-self: start; order: 9; }
  .lb-row, .lb-row.tier { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .lb-row.tier { grid-template-columns: 1fr; }
  .lb-t { grid-column: 1; }
}

/* ---- profile ---- */
.pf-head { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.pf-head .av.big { width: clamp(72px, 7vw, 104px); height: clamp(72px, 7vw, 104px); flex: none; }
.pf-id { flex: 1; min-width: min(100%, 240px); }
.pf-id h1 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 400; letter-spacing: -.03em; line-height: 1.04; overflow-wrap: anywhere; }
.pf-id h1 .house { font-size: 14px; vertical-align: middle; }
.pf-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; font-size: 16px; color: var(--dtext); font-variant-numeric: tabular-nums; }
.pf-stats .ptitle { margin: 0; font-size: 14px; }
.pf-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pf-edit { flex: none; font-size: 15px; min-height: 44px; }
.pf-head .sample { font-size: 14px; color: var(--dtext); }
@media (min-width: 1040px) { .pf-cards.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-favs:not(.all) > :nth-child(n+4) { display: none; }
.pf-more { margin-top: var(--s4); min-height: 44px; font-size: 15px; cursor: pointer; }
.pf-cards { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--s3) var(--gap); margin-top: var(--s5); }
.pf-card { display: flex; flex-direction: column; gap: 10px; padding: var(--s4); border: 1px solid var(--dhair2); border-radius: 18px; background: var(--panel); color: inherit; text-decoration: none; min-width: 0; }
a.pf-card:hover { border-color: var(--dmuted); }
.pf-k { font-size: 15px; color: var(--dtext); }
.pf-n { font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.pf-n span { font-size: 16px; letter-spacing: 0; color: var(--dtext); }
.pf-l { font-size: 16px; line-height: 1.45; color: var(--dtext); }
.pf-l b { color: var(--onbar); font-weight: 500; }
.pf-s { font-size: 16px; line-height: 1.45; color: var(--dtext); }
.pf-s a { color: var(--onbar); }
.pf-go { margin-top: auto; color: var(--onbar); text-decoration: underline; text-underline-offset: 3px; }
.pf-card .key { align-self: flex-start; margin-top: auto; }
.pf-sec { margin-top: var(--s6); }
#look { scroll-margin-top: calc(var(--bar) + 16px); }
.pf-sh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px var(--s4); margin-bottom: var(--s4); }
.pf-sh h2 { font-size: clamp(22px, 1.8vw, 30px); font-weight: 400; letter-spacing: -.01em; }
.pf-sh h2 span { font-size: 16px; color: var(--dtext); margin-left: 8px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pf-none { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); padding: var(--s4); border: 1px solid var(--dhair2); border-radius: 18px; background: var(--panel); }
.pf-none p { font-size: 17px; line-height: 1.45; max-width: 52ch; }
.pf-tts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--dtext); font-variant-numeric: tabular-nums; }
.pf-tt { display: inline-flex; align-items: center; gap: 6px; }
.pf-tt .i { width: 18px; height: 18px; }
.pf-tt b { color: var(--onbar); font-weight: 500; }
.pf-tg + .pf-tg { margin-top: var(--s5); }
.pf-tgh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px var(--s3); margin-bottom: 10px; }
.pf-tgh h3 { font-size: 18px; font-weight: 500; }
.pf-tgh p { font-size: 15px; color: var(--dtext); font-variant-numeric: tabular-nums; }
.pf-tg .pf-bar { height: 6px; margin-bottom: var(--s3); }
.pf-tl { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--s2) var(--gap); }
@media (min-width: 1200px) { .pf-tl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-tr { display: flex; gap: 14px; align-items: center; min-height: 72px; padding: 12px 16px; border: 1px solid var(--dhair2); border-radius: var(--r); background: var(--panel); }
.pf-tr .i { width: 28px; height: 28px; flex: none; }
.pf-tr .t { font-size: 16px; font-weight: 500; }
.pf-tr .s { font-size: 15px; line-height: 1.4; color: var(--dtext); }
.pf-tr.off { background: none; border-color: var(--dhair); }
.pf-tr.off .i { color: var(--dhair2); }
.pf-tr.off .t { font-weight: 400; color: var(--dtext); }
.pf-tr:not(.off) { border-color: var(--dmuted); }
.pf-tr.t-platinum:not(.off) { border-color: rgba(191,227,242,.45); }
.pf-look { display: grid; border: 1px solid var(--dhair2); border-radius: 18px; background: var(--panel); padding: 4px var(--s4) var(--s4); }
.pf-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--dhair); }
.pf-row h3 { font-size: 15px; font-weight: 400; color: var(--dtext); }
.pf-row .picks { margin-top: 0; }
.pf-row .picks button { min-height: 40px; font-size: 15px; }
.pf-row .picks button[aria-disabled="true"] { opacity: 1; color: var(--dtext); border-style: dashed; }
.pf-row .picks .lk { width: 14px; height: 14px; color: var(--dmuted); }
.pf-check { display: flex; gap: 10px; align-items: center; font-size: 16px; cursor: pointer; }
.pf-check input { width: 20px; height: 20px; accent-color: var(--onbar); flex: none; }
.pf-look > .pf-s { margin-top: var(--s3); }
@media (max-width: 560px) { .pf-row { grid-template-columns: 1fr; } .pf-none .ghost, .pf-acts, .pf-acts > a { width: 100%; } .pf-acts > a { justify-content: center; text-align: center; } }

/* the channels row carries a short line beside its heading */
.chsec .feedhead { justify-content: flex-start; align-items: baseline; }
.chsec .feedhead .muted, .how .feedhead .muted { font-size: 15px; }

/* how rolls work: three steps, one line each */
.how { margin-top: var(--s7); }
.how .feedhead { justify-content: flex-start; align-items: baseline; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.steps li { display: grid; gap: 6px; align-content: start; padding: var(--s4); border: 1px solid var(--dhair); border-radius: var(--r); background: var(--panel); }
.steps .i { width: 22px; height: 22px; color: var(--white); margin-bottom: 6px; }
.steps b { font-size: clamp(17px, 1.2vw, 20px); font-weight: 500; }
.steps span { color: var(--dmuted); font-size: 15px; line-height: 1.45; }
@media (min-width: 640px) and (max-width: 1039px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the next game's clock */
.next { margin-top: var(--s7); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5) var(--gap); align-items: center; padding: var(--s6) var(--s5); border: 1px solid var(--dhair); border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, rgba(255,79,31,.12), rgba(255,79,31,0) 55%), var(--panel); }
.next h2 { font-size: clamp(30px, 3.2vw, 56px); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; margin: 10px 0 10px; color: var(--white); }
.next .cat { color: var(--onbar); }
.next .muted { font-size: 16px; }
.next-f { display: flex; gap: 8px; margin-top: var(--s4); max-width: 460px; }
.next-f input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--white); background: var(--ink); border: 1px solid var(--dhair2); border-radius: 99px; padding: 12px 18px; }
.next-f input:focus { outline: 2px solid var(--onbar); outline-offset: 2px; }
.next-f .key { padding: 12px 22px; font-size: 16px; }
.next-ok { margin-top: var(--s4); font-weight: 500; }
.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.clock div { display: grid; justify-items: center; gap: 6px; min-width: clamp(64px, 6vw, 112px); padding: 14px 8px; border-radius: 14px; background: var(--ink); border: 1px solid var(--dhair); }
.clock b { font-size: clamp(32px, 3.4vw, 60px); font-weight: 500; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--white); }
.clock span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dmuted); }
@media (max-width: 860px) { .next { grid-template-columns: 1fr; padding: var(--s5) var(--s4); } .clock div { min-width: 0; } }

/* ---------- the lobby: rank, loadout, tier and settings on the channel page (16 Nov 2026, ops/CHANNEL-PAGE.md) ---------- */
.lobby { margin: calc(var(--s6) * -.4) 0 var(--s6); scroll-margin-top: calc(var(--g-bar, 60px) + 16px); }
.lob { display: grid; grid-template-columns: minmax(260px, 1.1fr) minmax(0, 2fr); gap: var(--s3); padding: var(--s4); border: 1px solid var(--dhair); border-radius: 18px; background: linear-gradient(140deg, rgba(255,79,31,.06), transparent 55%), var(--panel); }
.lob .tierw { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: var(--s3); border-top: 1px solid var(--dhair); }
.lob .tierw .cat { margin-right: 4px; }
.rankc { display: flex; gap: var(--s3); align-items: flex-start; }
.rankc .emb { flex: none; }
/* the rank block also carries .rk, which the profile's rank rows (further down) style as a bordered flex row:
   the lobby keeps its own stacked layout, and its XP bar stays orange */
.rankc .rk { min-width: 0; flex: 1; display: block; padding: 0; border: 0; border-radius: 0; background: none; }
.rankc .rk .barw.xp { height: 6px; }
.rankc .rk .barw.xp i { background: var(--signal); }
.rankc .rn { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.02em; line-height: 1.05; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.rankc .rn span { color: var(--dmuted); font-size: .5em; letter-spacing: 0; margin-left: 4px; }
.barw.xp { height: 6px; background: var(--raise); border-radius: 99px; overflow: hidden; }
.barw.xp i { display: block; height: 100%; background: var(--signal); border-radius: 99px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.rankc .rl { font-size: 14px; color: var(--dmuted); margin-top: 8px; }
.rankc .rl b { color: var(--onbar); font-weight: 500; }
.rankc .gs { font-size: 13px; color: var(--dmuted); margin-top: 8px; }
.rankc .loy { color: var(--gold); }
.ladder-b { margin-top: 12px; background: none; border: 1px solid var(--dhair2); border-radius: 99px; padding: 8px 14px; min-height: 40px; cursor: pointer; font-size: 13px; }
.ladder-b:hover { border-color: var(--onbar); }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s3); }
.slot { position: relative; text-align: left; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "k k" "i t" "l l" "c c"; gap: 6px 12px; align-items: center; padding: var(--s3); border: 1px solid var(--dhair2); border-radius: var(--r); background: var(--raise); cursor: pointer; min-height: 132px; color: var(--onbar); font: inherit; }
.slot:hover:not(.locked) { border-color: var(--onbar); }
.slot .sl-k { grid-area: k; display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dmuted); }
.slot .sl-n { letter-spacing: .04em; font-weight: 400; text-transform: none; }
.slot .sl-i { grid-area: i; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,79,31,.12); color: var(--signal); }
.slot .sl-i svg { width: 24px; height: 24px; }
.slot .sl-t { grid-area: t; font-size: 18px; letter-spacing: -.01em; }
.slot .sl-l { grid-area: l; font-size: 13px; color: var(--dmuted); line-height: 1.4; }
.slot .sl-c { grid-area: c; font-size: 13px; color: var(--onbar); text-decoration: underline; text-underline-offset: 3px; }
.slot.locked { cursor: not-allowed; background: none; border-style: dashed; }
.slot.locked .sl-i { background: var(--raise); color: var(--dmuted); }
.slot.locked .sl-t { color: var(--dmuted); }
.tiers { display: inline-flex; gap: 4px; padding: 4px; background: var(--ink); border: 1px solid var(--dhair); border-radius: 99px; flex-wrap: wrap; }
.tiers button { display: inline-flex; gap: 8px; align-items: baseline; background: none; border: 0; border-radius: 99px; padding: 9px 16px; min-height: 40px; cursor: pointer; color: var(--dmuted); font-size: 14px; }
.tiers button .tn { display: inline-flex; gap: 6px; align-items: center; color: var(--onbar); }
.tiers button .tn svg { width: 14px; height: 14px; }
.tiers button .tm { font-size: 12px; font-variant-numeric: tabular-nums; }
.tiers button[aria-checked="true"] { background: var(--onbar); }
.tiers button[aria-checked="true"] .tn, .tiers button[aria-checked="true"] .tm { color: var(--ink); }
.tiers button[aria-disabled="true"] { cursor: not-allowed; }
.tiers button[aria-disabled="true"] .tn { color: var(--dmuted); }
.tline { font-size: 13px; color: var(--dmuted); }
.sets { margin-top: var(--s3); border: 1px solid var(--dhair); border-radius: 18px; background: var(--panel); }
.sets summary { list-style: none; cursor: pointer; padding: var(--s3) var(--s4); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; min-height: 52px; }
.sets summary::-webkit-details-marker { display: none; }
.sets summary span { font-size: 16px; }
.sets summary span::after { content: '+'; margin-left: 10px; color: var(--dmuted); }
.sets[open] summary span::after { content: '–'; }
.sets summary small { color: var(--dtext); font-size: 14px; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px var(--s4); padding: 0 var(--s4) var(--s4); }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--dhair); min-height: 52px; }
.srow > span { display: grid; gap: 2px; }
.srow b { font-weight: 400; font-size: 15px; }
.srow small { color: var(--dtext); font-size: 14px; }
.srow input[type="checkbox"] { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--dhair2); position: relative; cursor: pointer; flex: none; margin: 0; }
.srow input[type="checkbox"]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--onbar); transition: transform .18s; }
.srow input[type="checkbox"]:checked { background: var(--signal); }
.srow input[type="checkbox"]:checked::after { transform: translateX(18px); }
.srow input[type="range"] { width: 140px; accent-color: var(--signal); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--dhair2); border-radius: 99px; flex-wrap: wrap; }
.seg button { background: none; border: 0; border-radius: 99px; padding: 6px 10px; min-height: 36px; cursor: pointer; color: var(--dtext); font-size: 14px; }
.seg button[aria-checked="true"] { background: var(--raise); color: var(--onbar); }
.ldlg { width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: var(--s4); border: 1px solid var(--dhair2); border-radius: 18px; background: var(--panel); color: var(--onbar); }
.ldlg.wide { width: min(720px, calc(100vw - 32px)); }
.ldlg::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.ldlg h2 { font-size: 26px; font-weight: 400; letter-spacing: -.02em; margin: 0 40px 6px 0; }
.ldlg > .muted { font-size: 15px; color: var(--dtext); margin-bottom: var(--s3); }
.ldlg .x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; color: var(--dmuted); font-size: 26px; cursor: pointer; }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; text-align: left; padding: 14px; border: 1px solid var(--dhair2); border-radius: var(--r); background: none; color: var(--onbar); cursor: pointer; font: inherit; }
.opt:hover:not(.locked) { border-color: var(--onbar); }
.opt[aria-checked="true"] { border-color: var(--signal); background: rgba(255,79,31,.07); }
.opt .oi { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,79,31,.12); color: var(--signal); }
.opt .oi svg { width: 24px; height: 24px; }
.opt .ot { display: grid; gap: 4px; }
.opt .ot b { font-weight: 400; font-size: 17px; }
.opt .ot small { color: var(--dtext); font-size: 14px; line-height: 1.45; }
.opt .ot .say { color: var(--onbar); font-style: italic; }
.opt .olk, .opt .oon { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dmuted); }
.opt .oon { color: var(--signal); }
.opt.locked { cursor: not-allowed; border-style: dashed; }
.opt.locked .oi { background: var(--raise); color: var(--dmuted); }
.ladder { list-style: none; display: grid; gap: 2px; padding: 0; margin: 0; }
.ladder li { display: grid; grid-template-columns: 36px 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--dhair); }
.ladder .lr { font-variant-numeric: tabular-nums; color: var(--dmuted); text-align: right; font-size: 15px; }
.ladder .li svg { width: 22px; height: 22px; color: var(--dmuted); }
.ladder .lt { display: grid; gap: 2px; }
.ladder .lt small { color: var(--dtext); font-size: 14px; }
.ladder .lg { font-size: 13px; color: var(--signal); letter-spacing: .1em; text-transform: uppercase; }
.ladder li.got .li svg { color: var(--signal); }
.ladder li.nx { background: rgba(255,79,31,.06); border-radius: 10px; }
@media (max-width: 760px) {
  .lob { grid-template-columns: 1fr; padding: var(--s3); }
  .slot { min-height: 0; }
  .srow input[type="range"] { width: 110px; }
  .lob .tierw { display: grid; }
  .tiers { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-radius: 14px; }
  .tiers button { flex-direction: column; align-items: center; gap: 2px; border-radius: 10px; padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) { .barw.xp i, .srow input[type="checkbox"]::after { transition: none; } }

/* ---------- meta progression on the profile (16 Nov 2026): account level, channel ranks, titles, new looks ---------- */
:root { --ember: #E0703A; --dusk: #9A7BD0; --ice: #9FD8E6; }
.av.c-ember { --ring: var(--ember); } .av.c-dusk { --ring: var(--dusk); } .av.c-ice { --ring: var(--ice); }
.av.f-bracket { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--ring, var(--onbar)); border-radius: 30%; }
.av.f-bracket:not([class*="c-"]) { --ring: var(--onbar); }
.av.f-double { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--ring, var(--onbar)), 0 0 0 5px var(--ink), 0 0 0 6px var(--ring, var(--onbar)); }
.av.f-double:not([class*="c-"]) { --ring: var(--onbar); }
.av.f-halo { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--ring, var(--onbar)), 0 0 16px 3px var(--ring, rgba(237,237,235,.4)); }
.av.f-halo:not([class*="c-"]) { --ring: var(--onbar); }
.av.f-rank { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold), 0 0 0 6px var(--ink), 0 0 0 7px rgba(217,180,90,.6); }
.ptitle { display: inline-block; margin: 2px 0 6px; padding: 3px 10px; border: 1px solid var(--dhair2); border-radius: 99px; font-size: 13px; letter-spacing: .04em; color: var(--onbar); }
.level.acct { margin-top: 0; }
.rks { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--s3) var(--gap); margin-top: var(--s4); }
.rk { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); border: 1px solid var(--dhair); border-radius: var(--r); background: var(--panel); color: inherit; text-decoration: none; }
.rk:hover { border-color: var(--dhair2); }
.rk-n { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--onbar); font-size: 20px; font-variant-numeric: tabular-nums; }
.rk-t { display: grid; gap: 3px; min-width: 0; flex: 1; }
.rk-t b { font-weight: 500; font-size: 15px; }
.rk-t > span:not(.barw) { font-size: 13px; color: var(--dmuted); }
.rk .barw { height: 5px; background: var(--raise); border-radius: 99px; overflow: hidden; }
.rk .barw i { display: block; height: 100%; background: var(--onbar); border-radius: 99px; }
.rk .loy { color: var(--gold) !important; }

/* ---------- the feed's channel filter: all games, or one ---------- */
.chf { display: flex; gap: 8px; margin: calc(-1 * var(--s3)) 0 var(--s5); }
.chf[hidden] { display: none; }
.chf button { display: inline-flex; align-items: center; gap: 8px; flex: none; border: 1px solid var(--dhair2); background: none; color: var(--dmuted); border-radius: 99px; padding: 6px 14px 6px 6px; min-height: 40px; cursor: pointer; font-size: 15px; white-space: nowrap; }
.chf button:first-child { padding-left: 14px; }
.chf button .art { width: 26px; height: 26px; border-radius: 99px; background: #000 center/cover; flex: none; }
.chf button:hover { color: var(--onbar); }
.chf button[aria-pressed="true"] { border-color: var(--onbar); background: var(--raise); color: var(--onbar); }
@media (max-width: 639px) { .chf { overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); padding: 0 var(--pad); } }

/* ---------- every channel (/c/) ---------- */
.chans.dir { --cols: 1; margin-top: var(--s2); }
@media (min-width: 900px) { .chans.dir { --cols: 2; } }
.chans.dir .chan { min-height: 132px; padding: var(--s4); gap: var(--s4); }
.chans.dir .chan .art { width: 96px; height: 96px; border-radius: 14px; }
.chans.dir .chan .ln { display: inline-block; color: var(--onbar); margin: 2px 0 4px; }
@media (max-width: 639px) { .chans.dir { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: var(--s2) 0 var(--s6); padding: 0; } .chans.dir .chan .art { width: 72px; height: 72px; } }

/* ---------- a day's road and monsters, under its picture (Luke's Long Day) ---------- */
.dayd { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s4); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--dhair); }
.dayd .cat { margin-bottom: 10px; }
.dayd .route { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: act; }
.dayd .route li { counter-increment: act; display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.dayd .route li::before { content: counter(act); font-size: 12px; color: var(--dmuted); width: 14px; flex: none; font-variant-numeric: tabular-nums; }
.dayd .kin { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dayd .kin li { display: flex; gap: 10px; align-items: center; font-size: 15px; min-width: 0; }
/* a title, a plate item or a monster's name can be one long word (a pasted link): it wraps instead of widening the page */
.roll h1, .roll .lead, .dayd li, .dayd li span { overflow-wrap: anywhere; }
.roll > div, .dayd > div, .dayd li span { min-width: 0; }
.dayd .kin li > span:not(.vh) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dayd .kin small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dmuted); flex: none; }
.dayd .kin .boss small { color: #FF5FA2; }
.dayd .ink { width: 20px; height: 20px; flex: none; border-radius: 5px; background: #E9EBE6; padding: 1px; }

/* ---------- the lobby's rank block also carries .rk, which the profile's rank rows above style as a bordered flex row:
   keep the lobby's own stacked layout and orange XP bar ---------- */
.rankc .rk { display: block; padding: 0; border: 0; border-radius: 0; background: none; }
.rankc .rk .barw.xp { height: 6px; }
.rankc .rk .barw.xp i { background: var(--signal); }

/* ---------- a roll page with a channel's detail (.wd): the facts span both rows beside the picture and the detail ---------- */
@media (min-width: 861px) {
  .roll.wd { grid-template-rows: auto 1fr; }
  .roll.wd > :nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  .roll.wd > .dayd { grid-column: 1; grid-row: 2; margin-top: 0; }
}
