/* Compadres' look: Amigos Work (work/work.css, guide docs/WORK-DESIGN-SYSTEM.md). This file holds only
   Compadres' own layout, built from --w- tokens: no raw colour, font or radius. The phone preview is an app
   zone and keeps the app's look from tokens.css (phone.css). Pink is a signal: the mark, the menu's "you are
   here" dot and one .btn.hot per view. */

.label { font: 600 var(--w-fs-label)/1.3 var(--w-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--w-ink-3); }
.small { font-size: var(--w-fs-small); }

/* ---- Sign-in */
.signin-card h1 { margin-bottom: var(--w-s2); }

/* ---- The shell: a side menu on a wide screen, a bottom bar on a phone. */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 248px; flex: none; background: var(--w-surface); border-right: 1px solid var(--w-line);
  padding: var(--w-s5) var(--w-s3); display: flex; flex-direction: column; gap: var(--w-s1);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side > .brand { padding: 0 var(--w-s2) var(--w-s5); }
.brand-pick { padding: 0 0 var(--w-s4); display: grid; gap: var(--w-s2); }
.brand-now { display: flex; align-items: center; gap: var(--w-s3); padding: var(--w-s2) var(--w-s3); background: var(--w-surface-2); border: 1px solid var(--w-line); border-radius: var(--w-r3); min-width: 0; }
.brand-now strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-now small { display: block; font-size: var(--w-fs-small); color: var(--w-ink-3); text-transform: capitalize; }
.logo { width: 32px; height: 32px; border-radius: 50%; background: var(--w-surface-3) center / cover no-repeat; flex: none; display: grid; place-items: center; font-weight: 700; color: var(--w-ink-2); }

.menu { display: grid; gap: 1px; }
.menu h3 { padding: var(--w-s4) var(--w-s2) var(--w-s1); }
.menu a {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--w-s2);
  padding: 0 var(--w-s2) 0 var(--w-s5); border-radius: var(--w-r2); min-height: var(--w-control);
  color: var(--w-ink-2); text-decoration: none; font-weight: 500;
}
.menu a:hover { background: var(--w-surface-2); color: var(--w-ink); }
.menu a.on { background: var(--w-surface-2); color: var(--w-ink); font-weight: 600; }
.menu a.on::before { content: ""; position: absolute; left: var(--w-s2); top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--w-signal); }
.menu a em { font-style: normal; font-size: var(--w-fs-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--w-ink-3); }
.who { margin-top: auto; padding: var(--w-s4) var(--w-s2) 0; border-top: 1px solid var(--w-line); display: grid; gap: var(--w-s2); font-size: var(--w-fs-small); overflow-wrap: anywhere; justify-items: start; }
.who-actions { display: flex; gap: var(--w-s1); flex-wrap: wrap; }

.main { flex: 1; min-width: 0; padding: var(--w-s8) var(--w-s10); outline: none; }
.page { display: grid; gap: var(--w-s5); max-width: 1120px; }
.page-head { display: grid; gap: var(--w-s1); }
.page-head p { color: var(--w-ink-3); max-width: 62ch; }

.card { padding: var(--w-s5); display: grid; gap: var(--w-s3); align-content: start; }
.numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--w-s3); }
.number .v { font: 600 var(--w-fs-number)/1.1 var(--w-font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--w-ink); }
.number p { font-size: var(--w-fs-small); color: var(--w-ink-3); }
/* A number's measure has its own chart colour, as a dot beside its name; the number itself stays ink. */
.number.action { --tone: var(--w-c1); } .number.social { --tone: var(--w-c3); } .number.live { --tone: var(--w-c4); } .number.score { --tone: var(--w-c5); }
.number:is(.action, .social, .live, .score) > .label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--tone); }

.coming { border-style: dashed; }
.coming ul { padding-left: var(--w-s5); color: var(--w-ink-2); display: grid; gap: var(--w-s1); }
.chip { justify-self: start; }

.rows { display: grid; }
.row { display: flex; justify-content: space-between; align-items: center; gap: var(--w-s3); padding: var(--w-s3) 0; border-top: 1px solid var(--w-line); min-height: var(--w-row); flex-wrap: wrap; }
.row:first-child { border-top: 0; }
.row > div { min-width: 0; overflow-wrap: anywhere; }
.row small { display: block; color: var(--w-ink-3); font-size: var(--w-fs-small); }

/* ---- Profile: the form beside the phone, and the fit tool. */
textarea { line-height: 1.45; }
input, select, textarea { width: 100%; }
.pv.pf { grid-template-columns: minmax(0, 1fr) auto; }
.pf-form { display: grid; gap: var(--w-s4); min-width: 0; }
.pf-phone { display: grid; gap: var(--w-s3); position: sticky; top: var(--w-s5); justify-items: center; }
.pf-status { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.pf-status small { display: block; color: var(--w-ink-3); font-size: var(--w-fs-small); }
.pf-actions { display: flex; gap: var(--w-s2); flex-wrap: wrap; }
.chip.draft { background: var(--w-info-bg); color: var(--w-info); }
.chip.live { margin-left: var(--w-s2); }
.pf-status .chip.live { margin-left: 0; }
.pf-field { display: grid; gap: var(--w-s1); }
.pf-label { display: flex; justify-content: space-between; gap: var(--w-s2); }
.pf-row { display: flex; align-items: center; gap: var(--w-s3); flex-wrap: wrap; }
.pf-row label.btn { display: inline-flex; align-items: center; }
.pf-banner { height: 110px; border-radius: var(--w-r3); background: var(--w-surface-2) center / cover no-repeat; border: 1px solid var(--w-line); }
.pf-logo { width: 56px; height: 56px; font-size: var(--w-fs-h2); }
.pf-choice { cursor: pointer; font-weight: 600; color: var(--w-ink); font-size: var(--w-fs-body); }
.pf-radio, .pf-switch { width: 18px; height: 18px; min-height: 0; flex: none; }
.pf-toggle { display: flex; align-items: center; gap: var(--w-s3); font-size: var(--w-fs-body); font-weight: 400; color: var(--w-ink); cursor: pointer; min-height: var(--w-control); }
.pf-moves { display: flex; gap: var(--w-s1); }
.shade { position: fixed; inset: 0; background: var(--w-scrim); z-index: 30; display: grid; place-items: center; padding: var(--w-s4); }
.fit { width: min(640px, 100%); justify-items: center; gap: var(--w-s4); border-radius: var(--w-r4); box-shadow: var(--w-shadow-pop); }
.fit-head { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.fit > p { justify-self: start; }
.fit-frame { position: relative; overflow: hidden; border-radius: var(--w-r3); box-shadow: 0 0 0 2px var(--w-line-strong); cursor: grab; touch-action: none; }
.fit-frame.round { border-radius: 50%; }
.fit-frame img { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.fit input[type=range] { width: 100%; min-height: var(--w-row); }
.fit .btn.hot { width: 100%; }
.toast { position: fixed; left: 50%; bottom: var(--w-s8); transform: translateX(-50%); background: var(--w-ink); color: var(--w-paper); padding: var(--w-s3) var(--w-s5); border-radius: var(--w-pill); font-weight: 600; z-index: 40; box-shadow: var(--w-shadow-pop); }
.pf .row > div { flex: 1 1 240px; }
@media (max-width: 1100px) {
  .pv.pf { grid-template-columns: 1fr; }
  .pf-phone { position: static; }
}
@media (max-width: 820px) {
  .pf-status { grid-template-columns: 1fr; }
}

/* ---- Games: the list and one game. */
.gm-tools { display: grid; gap: var(--w-s3); }
.gm-list { display: grid; gap: var(--w-s2); }
.gm-row { display: flex; align-items: center; gap: var(--w-s4); text-decoration: none; color: var(--w-ink); padding: var(--w-s3); flex-wrap: wrap; }
.gm-row:hover { border-color: var(--w-line-strong); background: var(--w-surface-2); }
.gm-pic { width: 54px; height: 72px; border-radius: var(--w-r2); background: var(--w-surface-3) center / cover no-repeat; flex: none; }
.gm-main { flex: 1 1 220px; min-width: 0; display: grid; gap: var(--w-s1); }
.gm-main strong { font: 600 var(--w-fs-h3)/1.3 var(--w-font-ui); overflow-wrap: anywhere; }
.gm-tags { display: flex; gap: var(--w-s2); align-items: center; flex-wrap: wrap; }
.gm-nums { display: flex; gap: var(--w-s4); flex-wrap: wrap; color: var(--w-ink-3); font-size: var(--w-fs-small); font-variant-numeric: tabular-nums; }
.gm-nums b { color: var(--w-ink); font-weight: 600; }
.gm-cover { aspect-ratio: 3 / 4; max-width: 240px; border-radius: var(--w-r3); background: var(--w-surface-2) center / cover no-repeat; display: grid; place-items: center; border: 1px solid var(--w-line); }
.chip.st-posted { background: var(--w-ok-bg); color: var(--w-ok); }
.chip.st-hidden { background: var(--w-surface-3); color: var(--w-ink-2); }
.chip.st-draft { background: var(--w-info-bg); color: var(--w-info); }
.chip.st-review { background: var(--w-warn-bg); color: var(--w-warn); }
.chip.st-removed { background: var(--w-bad-bg); color: var(--w-bad); }
.chip.ad { background: var(--w-surface-3); color: var(--w-ink); margin-left: var(--w-s2); }
.back { font-weight: 600; text-decoration: none; justify-self: start; min-height: var(--w-control); display: inline-flex; align-items: center; }
.pf-status .chip + .chip { margin-left: var(--w-s2); }

/* ---- Phone width: the side menu becomes a bottom bar with More. Controls grow to the 44 px touch size. */
.bottom { display: none; }
.more { position: fixed; inset: 0; background: var(--w-scrim); z-index: 20; display: flex; align-items: flex-end; }
.more-sheet { width: 100%; max-height: 80vh; overflow-y: auto; background: var(--w-surface); border-radius: var(--w-r4) var(--w-r4) 0 0; padding: var(--w-s4) var(--w-s3) calc(var(--w-s4) + env(safe-area-inset-bottom)); box-shadow: var(--w-shadow-pop); }
.more-head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--w-s2) var(--w-s2); }
.more .menu a { min-height: var(--w-row); }

@media (max-width: 820px) {
  .shell { display: block; }
  .side { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--w-line); padding: var(--w-s4) var(--w-s4) var(--w-s3); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--w-s3); }
  .side > .brand { padding: 0; }
  .side > .menu, .who { display: none; }
  .brand-pick { grid-column: 1 / -1; padding: 0; }
  .main { padding: var(--w-s5) var(--w-s4) calc(var(--w-row) + var(--w-s12) + env(safe-area-inset-bottom)); }
  .btn, input, select, .back { min-height: var(--w-row); }
  .btn.small { min-height: var(--w-row); }
  .bottom {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: var(--w-surface); border-top: 1px solid var(--w-line);
    padding: var(--w-s1) var(--w-s1) env(safe-area-inset-bottom);
  }
  .bottom a, .bottom button {
    position: relative; font: inherit; background: none; border: 0; cursor: pointer; color: var(--w-ink-3); text-decoration: none;
    min-height: calc(var(--w-row) + var(--w-s2)); display: grid; place-items: center; font-size: var(--w-fs-small); font-weight: 600;
  }
  .bottom .on { color: var(--w-ink); }
  .bottom .on::before { content: ""; position: absolute; top: var(--w-s1); left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--w-signal); }
  .number .v { font-size: var(--w-fs-h2); }
}

/* Insights (step 5). One series at a time in the first chart colour (never pink); grid and axes stay quiet. */
.in-controls { gap: var(--w-s3); }
.in-row { display: flex; gap: var(--w-s3); flex-wrap: wrap; align-items: center; justify-content: space-between; }
.in-row select { width: auto; flex: 1 1 220px; max-width: 360px; }
.in-custom { display: flex; gap: var(--w-s3); flex-wrap: wrap; }
.in-custom label { display: grid; gap: var(--w-s1); flex: 1 1 160px; max-width: 220px; }
.in-body { display: grid; gap: var(--w-s4); }
.in-num { cursor: default; }
.in-num.on { border-color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-ink); }
.number .change { color: var(--w-ink-2); font-weight: 600; min-height: 1.2em; font-variant-numeric: tabular-nums; }
.chip.sample { background: var(--w-warn-bg); color: var(--w-warn); }
.in-sample { display: flex; flex-wrap: wrap; align-items: center; }
.in-sample p { flex: 1 1 240px; }
.in-head { display: flex; gap: var(--w-s3); align-items: center; flex-wrap: wrap; }
.in-head h2 { margin-right: auto; }
.in-head select { width: auto; }
.in-section { margin-top: var(--w-s4); }
.in-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--w-s4); }
/* Who plays: two by two, so the bars keep room. Clicks and rewards: each card as tall as its content. */
.in-grid.in-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .in-grid.in-who { grid-template-columns: minmax(0, 1fr); } }
.in-grid.in-top { align-items: start; }
.in-chart { min-height: 240px; width: 100%; overflow: hidden; }
.in-chart svg { display: block; touch-action: pan-y; }
.in-chart .grid { stroke: var(--w-line); stroke-width: 1; }
.in-chart .base { stroke: var(--w-line-strong); stroke-width: 1; }
.in-chart .axis { fill: var(--w-ink-3); font-size: var(--w-fs-small); font-family: var(--w-font-ui); font-variant-numeric: tabular-nums; }
.in-chart .series { fill: none; stroke: var(--w-c1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.in-chart .series.sample { stroke-dasharray: 6 5; }
.in-chart .cross { stroke: var(--w-ink-3); stroke-width: 1; }
.in-chart .dot { fill: var(--w-c1); stroke: var(--w-surface); stroke-width: 2; }
.in-tip {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; background: var(--w-surface); color: var(--w-ink);
  border: 1px solid var(--w-line); border-radius: var(--w-r2); padding: var(--w-s2) var(--w-s3); box-shadow: var(--w-shadow-pop);
  font-size: var(--w-fs-small); font-weight: 600; max-width: 260px; font-variant-numeric: tabular-nums;
}
.in-bars.across { display: grid; gap: var(--w-s2); }
.in-bars.across .in-bar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 48px; gap: var(--w-s3); align-items: center; min-height: 28px; }
.in-bars.across .track { height: 12px; }
.in-bars.across .bar { display: block; height: 100%; background: var(--w-c1); border-radius: 0 var(--w-r1) var(--w-r1) 0; }
.in-bars.across .val { text-align: right; color: var(--w-ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.in-bars.across .name { color: var(--w-ink-2); font-size: var(--w-fs-small); }
.in-bars.up { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; height: 180px; }
.in-bars.up .in-bar { display: grid; grid-template-rows: 1fr auto; height: 100%; min-width: 0; }
.in-bars.up .track { display: flex; align-items: flex-end; }
.in-bars.up .bar { display: block; width: 100%; background: var(--w-c1); border-radius: var(--w-r1) var(--w-r1) 0 0; }
.in-bars.up .name { font-size: var(--w-fs-small); color: var(--w-ink-3); white-space: nowrap; height: 1.4em; }
.in-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--w-s3); }
.in-scores > div { display: grid; gap: var(--w-s1); }
.in-scores b { font: 600 var(--w-fs-h2)/1.2 var(--w-font-display); font-variant-numeric: tabular-nums; }
.in-table summary { cursor: pointer; color: var(--w-ink-2); min-height: var(--w-control); display: flex; align-items: center; }
.in-scroll { overflow-x: auto; }
.in-table table { width: auto; font-variant-numeric: tabular-nums; }
.in-table th, .in-table td { padding: var(--w-s1) var(--w-s3); text-align: right; white-space: nowrap; border-top: 0; border-bottom: 1px solid var(--w-line); }
.in-table th:first-child, .in-table td:first-child { text-align: left; }
.in-pulse .number { display: grid; gap: var(--w-s2); align-content: start; min-width: 0; }
.in-pulse a { justify-self: start; min-height: var(--w-control); display: inline-flex; align-items: center; }
.in-foot { margin-top: var(--w-s2); }
.in-body .numbers, .in-pulse .numbers { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ---- Community (step 7): the comment inbox, replies as the brand, blocked words. */
.cm-inbox { display: grid; gap: var(--w-s3); }
.cm-row { display: flex; gap: var(--w-s3); flex-wrap: wrap; }
.cm-row > input, .cm-row > select { flex: 1 1 220px; width: auto; }
.cm-item.off { opacity: .7; }
.cm-who { display: flex; gap: var(--w-s2); align-items: baseline; flex-wrap: wrap; }
.cm-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-reply { border-left: 2px solid var(--w-line-strong); padding-left: var(--w-s4); display: grid; gap: var(--w-s1); justify-items: start; }
.cm-more { display: grid; gap: var(--w-s3); }
.cm-more:empty { display: none; }
.cm-words { display: flex; flex-wrap: wrap; gap: var(--w-s2); }
.cm-word { display: inline-flex; align-items: center; gap: var(--w-s1); background: var(--w-surface-2); border: 1px solid var(--w-line); border-radius: var(--w-pill); padding-left: var(--w-s3); }
.cm-todo .btn { justify-self: start; text-decoration: none; display: inline-flex; align-items: center; }
.cm-likes { display: inline-flex; align-items: center; gap: 4px; color: var(--w-ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.cm-likes svg, .cm-item .btn svg { width: 14px; height: 14px; }
.cm-item .btn.on { border-color: var(--w-ink); }
.cm-item .btn.on svg { fill: currentColor; }
.mk-via { margin-left: var(--w-s2); }
.cm-fans .number { display: grid; gap: var(--w-s1); align-content: start; }
.number .v.few { font-family: inherit; font-size: var(--w-fs-body); font-weight: 600; color: var(--w-ink-2); letter-spacing: 0; line-height: 1.3; }

/* ---- Assets and brand kit (step 8). */
.as-drop { display: grid; gap: var(--w-s1); justify-items: center; text-align: center; padding: var(--w-s8) var(--w-s4); border: 1px dashed var(--w-control-line); border-radius: var(--w-r3); background: var(--w-surface-2); cursor: pointer; }
.as-drop.over { border-color: var(--w-focus); background: var(--w-surface-3); }
.as-drop:focus-within { outline: 2px solid var(--w-focus); outline-offset: 2px; }
.as-queue { display: grid; gap: var(--w-s3); }
.as-new { grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
.as-fields { display: grid; gap: var(--w-s2); min-width: 0; }
.as-switch { display: inline-flex; align-items: center; gap: var(--w-s2); font-size: var(--w-fs-small); }
.as-frame { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--w-r2); border: 1px solid var(--w-line);
  background: repeating-conic-gradient(var(--w-surface-2) 0 25%, var(--w-surface) 0 50%) 0 0 / 16px 16px; overflow: hidden; }
.as-frame img, .as-pic { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.as-new .as-frame { width: 120px; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--w-s3); }
.as-tile { font: inherit; color: var(--w-ink); text-align: left; display: grid; gap: var(--w-s2); align-content: start; padding: var(--w-s2); border: 1px solid var(--w-line); border-radius: var(--w-r3); background: var(--w-surface); cursor: pointer; min-width: 0; }
.as-tile:hover { background: var(--w-surface-2); }
.as-tile.on { border-color: var(--w-ink-2); background: var(--w-surface-2); }
.as-tile strong { overflow-wrap: anywhere; font-size: var(--w-fs-small); }
.as-detail { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--w-s5); border-top: 1px solid var(--w-line); padding-top: var(--w-s4); }
.as-frame.big { width: 240px; }
.as-detail .cm-row > label { flex: 1 1 200px; }
.as-used { margin: 0; padding-left: var(--w-s5); display: grid; gap: var(--w-s1); font-size: var(--w-fs-small); }
.as-tray { display: flex; flex-wrap: wrap; gap: var(--w-s3); }
.as-sticker { display: grid; gap: var(--w-s1); width: 96px; }
.as-sticker small { overflow-wrap: anywhere; }
.kt-colors { display: grid; gap: var(--w-s2); }
.kt-color { display: flex; align-items: center; gap: var(--w-s2); flex-wrap: wrap; }
.kt-color input[type=color] { width: 44px; min-height: 34px; padding: 2px; }
.kt-color .kt-hex { width: 110px; font-family: var(--w-font-mono); }
.kt-color select { width: auto; }
.kt-sound { align-items: center; }
.kt-sound audio { display: block; margin-top: var(--w-s2); width: min(320px, 100%); height: 36px; }
.kt-add-sound { align-items: center; margin-top: var(--w-s3); }
.kt-add-sound input[type=file] { flex: 1 1 220px; }
@media (max-width: 820px) {
  .as-detail { grid-template-columns: 1fr; }
  .as-frame.big { width: 100%; max-width: 280px; }
  .as-new { grid-template-columns: 88px minmax(0, 1fr); }
  .as-new .as-frame { width: 88px; }
}

/* Make and Drafts (step 9). */
.mk-steps { display: flex; gap: var(--w-s2); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.mk-steps li { display: inline-flex; align-items: center; gap: var(--w-s2); padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--w-line); color: var(--w-ink-3); font-size: var(--w-fs-small); font-weight: 600; }
.mk-steps li b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--w-surface-2); color: var(--w-ink-2); font-size: 12px; }
.mk-steps li.on { color: var(--w-ink); border-color: var(--w-line-strong); background: var(--w-surface); }
.mk-steps li.on b { background: var(--w-ink); color: var(--w-surface); }
.mk-side { display: grid; gap: var(--w-s4); align-content: start; width: 320px; position: sticky; top: var(--w-s5); }
.mk-cast-list { display: grid; }
.mk-cast { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 220px); gap: var(--w-s3); align-items: center; padding: var(--w-s2) 0; border-top: 1px solid var(--w-line); }
.mk-cast:first-child { border-top: 0; }
.mk-cast-words { display: grid; min-width: 0; }
.mk-thumb { width: 48px; }
.mk-thumb.empty { border-style: dashed; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--w-s3); }
.mk-kit { display: flex; align-items: center; gap: var(--w-s3); flex-wrap: wrap; }
.mk-swatches { display: inline-flex; gap: 4px; }
.mk-swatch { width: 20px; height: 20px; border-radius: var(--w-r1); border: 1px solid var(--w-line); }
.mk-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--w-s3); }
.mk-fact { padding: var(--w-s3); border: 1px solid var(--w-line); border-radius: var(--w-r2); }
.mk-fact p { margin: 2px 0 0; font-weight: 600; }
.mk-left { display: grid; justify-items: start; gap: 4px; }
.mk-check .chip { flex: none; }
.mk-progress p { margin: 0; }
.mk-bar { height: 6px; border-radius: 999px; background: var(--w-surface-2); overflow: hidden; }
.mk-bar span { display: block; width: 30%; height: 100%; border-radius: inherit; background: var(--w-ink-3); animation: mk-slide 1.6s ease-in-out infinite; }
@keyframes mk-slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .mk-bar span { animation: none; width: 100%; opacity: .4; } }
.row .btn.on { background: var(--w-ink); border-color: var(--w-ink); color: var(--w-paper); }
.mk-table td, .mk-table th { text-align: left; vertical-align: top; }
.table-wrap { overflow-x: auto; }
@media (max-width: 1100px) { .mk-side { position: static; width: auto; } }
@media (max-width: 820px) {
  .mk-cast { grid-template-columns: 48px minmax(0, 1fr); }
  .mk-cast select { grid-column: 1 / -1; }
}

/* Home's overview. */
.hm-now .numbers { margin-top: var(--w-s2); }
.hm-now .in-head small { margin-left: auto; }
.hm-now .in-head h2 { margin-right: 0; }
.in-section .in-head h3 { margin: 0 auto 0 0; font-size: var(--w-fs-body); }
.in-chart .area { fill: var(--w-c1); opacity: .12; stroke: none; }
.hm-total { margin: 0; color: var(--w-ink-2); }
.hm-total b { font: 600 var(--w-fs-h2)/1.2 var(--w-font-display); color: var(--w-ink); font-variant-numeric: tabular-nums; }
.hm-side { display: grid; gap: var(--w-s4); align-content: start; }
.hm-pic { flex-wrap: nowrap; }
.hm-pic > div { flex: 1 1 auto; }
.hm-thumb { width: 44px; flex: none; }
.hm-val { color: var(--w-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-now .number { display: grid; gap: var(--w-s2); align-content: start; min-width: 0; }
.hm-now .numbers { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.hm-now .in-bars.up { height: 140px; }
.hm-grid { align-items: start; }

/* Make, full (step 10): what it's for, a new look, a copy, and what players get at the end. */
.mk-seasons { display: flex; flex-wrap: wrap; gap: var(--w-s2); }
.mk-ticks { display: grid; gap: 0; }
.mk-tick { display: flex; align-items: center; gap: var(--w-s2); min-height: 44px; cursor: pointer; }
.mk-tick input:disabled + span { color: var(--w-ink-3); }
.mk-reward { display: grid; gap: var(--w-s3); padding: var(--w-s3) 0; border-top: 1px solid var(--w-line); }
.rows > .mk-reward:first-child { border-top: 0; }

/* Making a picture (step 10, E15 and F5): references to keep as they are, and pictures waiting for a yes. */
.as-refs { display: flex; flex-wrap: wrap; gap: var(--w-s2); margin-top: var(--w-s2); }
.as-ref { width: 56px; height: 56px; padding: 4px; border: 1px solid var(--w-line); border-radius: var(--w-r2); background: var(--w-surface-2); cursor: pointer; }
.as-ref img { width: 100%; height: 100%; object-fit: contain; display: block; }
.as-ref.on { border-color: var(--w-ink); box-shadow: 0 0 0 2px var(--w-ink); }
.as-made { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--w-s3); }
.as-made .as-sticker { width: auto; align-content: start; }
.mk-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

/* Ads (step 11). */
.chip.st-back { background: var(--w-bad-bg); color: var(--w-bad); }
.ad-row { position: relative; }
.ad-meter { flex: 1 1 100%; height: 6px; border-radius: 999px; background: var(--w-surface-2); overflow: hidden; }
.ad-meter span { display: block; height: 100%; border-radius: inherit; background: var(--w-ink-2); }
.ad-code { width: 5em; text-transform: uppercase; }
.ad-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
/* The ad's own Insights: the day-by-day line spans the row; the rings sit two to a card. */
.ad-insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--w-s4); align-items: start; }
.ad-insights > .ad-span { grid-column: 1 / -1; }
@media (max-width: 900px) { .ad-insights { grid-template-columns: minmax(0, 1fr); } }
.ad-rings { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--w-s2) 0; }
/* A checkbox with a title and a line under it (brand safety's comments). */
.pf-check { display: flex; align-items: flex-start; gap: var(--w-s2); min-height: 44px; cursor: pointer; }
.pf-check input { margin-top: 2px; flex: none; }
.pf-check span { display: grid; gap: 2px; }
.pf-check small { color: var(--w-ink-3); }

/* Home, the visual dashboard: big numbers with their days as a line, then cards in a grid. */
.hm2 { display: grid; gap: var(--w-s4); }
.hm2-top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--w-s4); flex-wrap: wrap; }
.hm2-top h1 { margin: 2px 0 4px; }
.hm2-date { margin: 0; color: var(--w-ink-3); font-size: var(--w-fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hm2-facts { margin: 0; color: var(--w-ink-2); }
.hm2-facts b { color: var(--w-ink); font-variant-numeric: tabular-nums; }
.hm2-tools { display: flex; align-items: center; gap: var(--w-s3); }
.hm2-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--w-fs-small); font-weight: 600; color: var(--w-ok); }
.hm2-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--w-ok); box-shadow: 0 0 0 0 var(--w-ok); animation: hm2-pulse 2s ease-out infinite; }
@keyframes hm2-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--w-ok) 50%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .hm2-pulse { animation: none; } }
.hm2-todo { display: flex; align-items: center; gap: var(--w-s3); padding: var(--w-s3) var(--w-s4); border-radius: var(--w-r3); background: var(--w-surface); border: 1px solid var(--w-line); flex-wrap: wrap; }
.hm2-todo > span:nth-child(2) { flex: 1 1 200px; color: var(--w-ink-2); }
.hm2-todo-n { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--w-ink); color: var(--w-paper); font-weight: 700; font-variant-numeric: tabular-nums; }
.hm2-sample { grid-column: 1 / -1; margin: 0; color: var(--w-ink-2); font-size: var(--w-fs-small); }

.hm2-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--w-s3); }
.hm2-kpi { display: grid; gap: 4px; padding: var(--w-s4) var(--w-s4) 0; overflow: hidden; --tone: var(--w-c1); }
.hm2-kpi.action { --tone: var(--w-c1); } .hm2-kpi.social { --tone: var(--w-c3); } .hm2-kpi.live { --tone: var(--w-c4); } .hm2-kpi.score { --tone: var(--w-c5); }
.hm2-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: var(--w-s2); }
.hm2-kpi-head .label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--tone); }
.hm2-kpi-v { font: 600 34px/1.1 var(--w-font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--w-ink); }
.hm2-spark { margin: var(--w-s2) calc(-1 * var(--w-s4)) 0; height: 40px; }
.hm2-spark svg { display: block; width: 100%; touch-action: pan-y; }
.hm2-spark .line { fill: none; stroke: var(--tone); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hm2-spark .fill { fill: var(--tone); opacity: .12; }
.hm2-spark .dot { fill: var(--tone); stroke: var(--w-surface); stroke-width: 2; }

.hm2-delta { justify-self: start; display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 999px; font-size: var(--w-fs-small); font-weight: 700; font-variant-numeric: tabular-nums; background: var(--w-surface-2); color: var(--w-ink-2); }
.hm2-delta:empty { display: none; }
.hm2-delta.up { background: var(--w-ok-bg); color: var(--w-ok); }
.hm2-delta.down { background: var(--w-bad-bg); color: var(--w-bad); }
.hm2-delta span { font-size: 9px; }
.hm2-delta.small { padding: 0 6px; font-size: 11px; margin-left: 6px; }
.hm2-big .hm2-delta { margin-left: var(--w-s2); vertical-align: 2px; }

.hm2-info { display: inline-grid; place-items: center; width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--w-line-strong); background: transparent; color: var(--w-ink-3); font: 700 11px/1 var(--w-font-ui); cursor: help; position: relative; }
.hm2-info::after { content: ""; position: absolute; inset: -12px; }
.hm2-info:hover, .hm2-info:focus-visible { color: var(--w-ink); border-color: var(--w-ink-3); }

.hm2-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--w-s4); }
.hm2-card { display: grid; gap: var(--w-s3); align-content: start; min-width: 0; }
.hm2-trend { grid-column: span 8; }
.hm2-now { grid-column: span 4; }
.hm2-games { grid-column: span 7; }
.hm2-where { grid-column: span 5; }
.hm2-how { grid-column: span 5; }
.hm2-pics { grid-column: span 7; }
.hm2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--w-s3); }
.hm2-head h2 { margin: 0; }
.hm2-head select { width: auto; }
.hm2-head a { font-size: var(--w-fs-small); font-weight: 600; white-space: nowrap; }
.hm2-big { margin: 4px 0 0; color: var(--w-ink-2); }
.hm2-big b { font: 600 28px/1.2 var(--w-font-display); color: var(--w-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.hm2-now-big { display: flex; align-items: baseline; gap: var(--w-s2); color: var(--w-ink-2); }
.hm2-now-v { font: 600 56px/1 var(--w-font-display); color: var(--w-ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hm2-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--w-s2); }
.hm2-pair > div { display: grid; gap: 2px; padding: var(--w-s2) var(--w-s3); border-radius: var(--w-r2); background: var(--w-surface-2); align-content: start; }
.hm2-pair b { font: 600 20px/1.2 var(--w-font-display); font-variant-numeric: tabular-nums; color: var(--w-ink); }
.hm2-pair .hm2-delta.small { margin: 0; justify-self: start; }
.hm2-24 { display: grid; gap: var(--w-s2); }
.hm2-24 .in-bars.up { height: 96px; }
.hm2-24 .in-bars.up .bar { background: var(--w-c4); }

.hm2-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hm2-rank a { display: grid; grid-template-columns: 20px 44px minmax(0, 1fr) auto; gap: var(--w-s3); align-items: center; padding: var(--w-s2); border-radius: var(--w-r2); color: var(--w-ink); text-decoration: none; min-height: 44px; }
.hm2-rank a:hover { background: var(--w-surface-2); }
.hm2-rank-n { color: var(--w-ink-3); font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.hm2-thumb { width: 44px; height: 44px; border-radius: var(--w-r2); background: var(--w-surface-3) center / cover no-repeat; display: grid; place-items: center; font-weight: 700; color: var(--w-ink-2); }
.hm2-rank-main { display: grid; gap: 2px; min-width: 0; }
.hm2-rank-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm2-rank-main small { color: var(--w-ink-3); font-size: var(--w-fs-small); }
.hm2-meter { display: block; height: 4px; border-radius: 999px; background: var(--w-surface-2); overflow: hidden; margin-top: 4px; }
.hm2-meter span { display: block; height: 100%; border-radius: inherit; background: var(--w-c1); }
.hm2-rank-v { display: grid; justify-items: end; }
.hm2-rank-v b { font: 600 20px/1.1 var(--w-font-display); font-variant-numeric: tabular-nums; }
.hm2-rank-v small { color: var(--w-ink-3); font-size: 11px; }

.hm2-donut-wrap { display: flex; align-items: center; gap: var(--w-s5); flex-wrap: wrap; }
.hm2-donut { position: relative; width: 140px; height: 140px; flex: none; }
.hm2-donut .track, .hm2-ring .track { fill: none; stroke: var(--w-surface-2); stroke-width: 14; }
.hm2-donut .arc { fill: none; stroke-width: 14; }
.hm2-donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.hm2-donut-mid b { font: 600 26px/1 var(--w-font-display); font-variant-numeric: tabular-nums; }
.hm2-donut-mid small { color: var(--w-ink-3); font-size: var(--w-fs-small); }
.hm2-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--w-s2); flex: 1 1 160px; }
.hm2-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: var(--w-s2); align-items: center; }
.hm2-legend i { width: 10px; height: 10px; border-radius: 3px; }
.hm2-legend b { font-variant-numeric: tabular-nums; }

.hm2-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--w-s2); }
.hm2-ring { display: grid; justify-items: center; gap: var(--w-s1); text-align: center; color: var(--w-ink-2); font-size: var(--w-fs-small); font-weight: 600; }
.hm2-ring-art { position: relative; width: 76px; height: 76px; }
.hm2-ring .track { stroke-width: 8; }
.hm2-ring .arc { fill: none; stroke-width: 8; stroke-linecap: round; }
.hm2-ring-art b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 18px/1 var(--w-font-display); color: var(--w-ink); font-variant-numeric: tabular-nums; }

.hm2-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--w-s3); }
.hm2-tile { display: grid; gap: 2px; min-width: 0; }
.hm2-tile .as-frame { aspect-ratio: 1; width: 100%; margin-bottom: var(--w-s1); }
.hm2-tile strong { font-size: var(--w-fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm2-tile small { color: var(--w-ink-3); font-size: var(--w-fs-small); font-variant-numeric: tabular-nums; }
.hm2-empty { display: grid; gap: 4px; place-content: center; text-align: center; min-height: 120px; padding: var(--w-s4); border: 1px dashed var(--w-line-strong); border-radius: var(--w-r3); color: var(--w-ink-2); }
.hm2-empty small { color: var(--w-ink-3); }

@media (max-width: 1200px) {
  .hm2-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm2-trend, .hm2-now, .hm2-games, .hm2-where, .hm2-how, .hm2-pics { grid-column: span 12; }
}
@media (max-width: 640px) {
  .hm2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm2-kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hm2-kpi-v { font-size: 28px; }
  .hm2-tools { width: 100%; justify-content: space-between; }
}
.hm2-24 .in-bars.up { grid-template-columns: repeat(24, minmax(0, 1fr)); }
.hm2-24 .in-bars.up .name { overflow: visible; }
.hm2-tiles { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.hm2-24 .in-bars.up { gap: 3px; }

/* An ad's A/B test (G12): the two halves side by side, one column on a phone. */
.ab-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--w-s3); margin-top: var(--w-s3); }
.ab-side { border: 1px solid var(--w-line); border-radius: var(--w-r3); padding: var(--w-s4); display: grid; gap: var(--w-s2); align-content: start; }
.ab-side.lead { border-color: var(--w-ok); box-shadow: inset 0 0 0 1px var(--w-ok); }
.ab-name { display: flex; justify-content: space-between; align-items: center; gap: var(--w-s2); }
.ab-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--w-s2); }
.ab-figs b { display: block; font: 600 var(--w-fs-h2)/1.2 var(--w-font-display); font-variant-numeric: tabular-nums; }
.ab-need { display: grid; gap: 4px; }
.ab-meter { height: 6px; border-radius: 3px; background: var(--w-surface-3); overflow: hidden; }
.ab-meter i { display: block; height: 100%; background: var(--w-c1); }
.card.ab .pf-actions { margin-top: var(--w-s3); }
@media (max-width: 700px) { .ab-sides { grid-template-columns: minmax(0, 1fr); } }

/* ---- The visual pass (24 November 2026): icons in the menu, the app's category pictures and every game
   shown with its picture. Tones come from the five chart colours, mixed into the surface; no new colour. */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu a { justify-content: flex-start; padding-left: var(--w-s6); }
.menu a .ic { color: var(--w-ink-3); }
.menu a:hover .ic, .menu a.on .ic { color: var(--w-ink); }
.menu a .menu-name { flex: 1; }
.menu a.on::before { left: 10px; }
.label .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

.tone-1 { --tone: var(--w-c1); } .tone-2 { --tone: var(--w-c2); } .tone-3 { --tone: var(--w-c3); } .tone-4 { --tone: var(--w-c4); } .tone-5 { --tone: var(--w-c5); }
.cat-pic { width: 20px; height: 20px; object-fit: contain; flex: none; display: block; }
.cat-tag { display: inline-flex; align-items: center; gap: 4px; font-size: var(--w-fs-small); color: var(--w-ink-2); font-weight: 600; white-space: nowrap; }

/* A game's picture. A cover or still fills it; otherwise the brand's pictures in the game stand on its
   background, or on a soft ground in its category's colour, with the category's picture in a corner. */
.ga {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--w-r3);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--tone) 34%, var(--w-surface)) 0, color-mix(in srgb, var(--tone) 14%, var(--w-surface)) 72%);
  background-size: cover; background-position: center;
}
.ga.pic { background-color: var(--w-surface-3); }
.ga-stack { position: absolute; inset: 10% 8% 14%; display: flex; align-items: center; justify-content: center; }
.ga-stack img { width: 52%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--w-ink) 22%, transparent)); }
.ga-stack.n1 img { width: 70%; }
.ga-stack.n2 img:nth-child(1) { transform: rotate(-8deg) translateX(10%); }
.ga-stack.n2 img:nth-child(2) { transform: rotate(7deg) translateX(-10%) translateY(8%); }
.ga-stack.n3 img { width: 44%; }
.ga-stack.n3 img:nth-child(1) { transform: rotate(-10deg) translate(22%, -6%); }
.ga-stack.n3 img:nth-child(2) { position: relative; z-index: 1; transform: translateY(10%); width: 50%; }
.ga-stack.n3 img:nth-child(3) { transform: rotate(9deg) translate(-22%, -4%); }
.ga-cat { position: absolute; inset: 0; margin: auto; width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 10px 12px color-mix(in srgb, var(--w-ink) 18%, transparent)); }
.ga-badge { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--w-surface); box-shadow: 0 1px 4px color-mix(in srgb, var(--w-ink) 18%, transparent); }
.ga-badge .cat-pic { width: 24px; height: 24px; }
.ga.sm { border-radius: var(--w-r2); }
.ga.sm .ga-badge { display: none; }
.ga.sm .ga-stack img { filter: none; }

/* Games: cards in a grid, the picture first. */
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--w-s4); }
.gm-card { display: grid; align-content: start; gap: var(--w-s3); padding: var(--w-s2) var(--w-s2) var(--w-s3); background: var(--w-surface); border: 1px solid var(--w-line); border-radius: var(--w-r4); color: var(--w-ink); text-decoration: none; min-width: 0; transition: transform .15s ease, box-shadow .15s ease; }
.gm-card:hover { transform: translateY(-2px); box-shadow: var(--w-shadow-pop); border-color: var(--w-line-strong); }
@media (prefers-reduced-motion: reduce) { .gm-card, .gm-card:hover { transition: none; transform: none; } }
.gm-art { position: relative; display: block; }
.gm-flags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.gm-flags .chip { margin: 0; box-shadow: 0 1px 3px color-mix(in srgb, var(--w-ink) 14%, transparent); }
.gm-flags .chip.ad, .gm-flags .chip.st-hidden { background: var(--w-surface); }
.gm-body { display: grid; gap: 6px; padding: 0 var(--w-s1); min-width: 0; }
.gm-body strong { font: 600 var(--w-fs-h3)/1.3 var(--w-font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-cats { display: flex; gap: var(--w-s2) var(--w-s3); flex-wrap: wrap; }
.gm-figs { display: flex; gap: var(--w-s3); flex-wrap: wrap; color: var(--w-ink-3); font-size: var(--w-fs-small); }
.fig { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.fig .ic { width: 14px; height: 14px; }
.fig b { color: var(--w-ink); font-weight: 600; }
@media (max-width: 520px) {
  .gm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--w-s3); }
  .gm-figs { gap: var(--w-s2); }
  .gm-body strong { font-size: var(--w-fs-body); }
}

/* One game: the picture beside its name, state, categories and numbers. */
.gm-hero { grid-template-columns: 200px minmax(0, 1fr); gap: var(--w-s5); align-items: start; }
.gm-hero-art .ga { box-shadow: var(--w-shadow-pop); }
.gm-hero-main { display: grid; gap: var(--w-s3); align-content: start; min-width: 0; }
.gm-hero-main h1 { margin: 0; overflow-wrap: anywhere; }
.gm-hero-main > p { margin: 0; max-width: 60ch; }
.gm-hero .gm-cats .cat-pic { width: 26px; height: 26px; }
.gm-hero .cat-tag { font-size: var(--w-fs-body); background: var(--w-surface-2); padding: 4px 12px 4px 6px; border-radius: var(--w-pill); }
.gm-hero-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--w-s2); margin-top: var(--w-s2); }
.gm-hero-figs > div { display: grid; gap: 4px; padding: var(--w-s3); border-radius: var(--w-r3); background: var(--w-surface-2); align-content: start; }
.gm-hero-figs b { font: 600 26px/1.1 var(--w-font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.gm-hero-figs .label { display: flex; align-items: center; }
.gm-best { background: color-mix(in srgb, var(--w-c5) 14%, var(--w-surface)) !important; }
.gm-cover { position: relative; overflow: hidden; }
.gm-cover > .ga { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.gm-nocover { position: absolute; left: 8px; top: 8px; background: var(--w-surface); }
.cat-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--w-s2); }
.cat-pick { font: inherit; display: flex; align-items: center; gap: var(--w-s2); min-height: 48px; padding: var(--w-s1) var(--w-s3) var(--w-s1) var(--w-s1); border: 1px solid var(--w-line); border-radius: var(--w-r3); background: var(--w-surface); color: var(--w-ink-2); font-weight: 600; font-size: var(--w-fs-small); text-align: left; cursor: pointer; }
.cat-pick .cat-pic { width: 36px; height: 36px; }
.cat-pick span { flex: 1; min-width: 0; }
.cat-pick small { font-size: 11px; color: var(--w-ink-3); }
.cat-pick:hover:not(:disabled) { background: var(--w-surface-2); }
.cat-pick.on { border-color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-ink); color: var(--w-ink); background: var(--w-surface-2); }
.cat-pick:disabled { opacity: .45; cursor: default; }
@media (max-width: 820px) {
  .gm-hero { grid-template-columns: 110px minmax(0, 1fr); gap: var(--w-s4); }
  .gm-hero-figs { grid-column: 1 / -1; }
}
/* A game's leaderboard: rank badges, the top three a step up, a bar against the best score. */
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lb-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--w-s3); align-items: center; min-height: 44px; padding: 4px var(--w-s2); border-radius: var(--w-r2); }
.lb-row.top { background: var(--w-surface-2); }
.lb-rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; font-size: var(--w-fs-small); color: var(--w-ink-2); background: var(--w-surface-2); font-variant-numeric: tabular-nums; }
.lb-row.top .lb-rank { background: color-mix(in srgb, var(--w-c5) 30%, var(--w-surface)); color: var(--w-ink); }
.lb-row.top-1 .lb-rank { background: color-mix(in srgb, var(--w-c5) 60%, var(--w-surface)); color: var(--w-ink); }
.lb-name { display: grid; gap: 2px; min-width: 0; }
.lb-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font: 600 var(--w-fs-h3)/1.2 var(--w-font-display); font-variant-numeric: tabular-nums; }
.lb + .btn { justify-self: start; margin-top: var(--w-s2); }
/* Home: the top games with their pictures, and a shelf of the brand's games. */
.hm2-rank a { grid-template-columns: 20px 44px minmax(0, 1fr) auto; }
.hm2-rank .ga { width: 44px; }
.hm2-shelf { grid-column: span 12; }
.hm2-shelf-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--w-s3); }
.hm2-shelf-row .gm-cats { display: none; }
@media (max-width: 1200px) { .hm2-shelf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hm2-shelf-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--w-s5)); padding: 2px var(--w-s5) var(--w-s2); }
  .hm2-shelf-row > .gm-card { flex: 0 0 150px; scroll-snap-align: start; }
}

/* Insights, visual (24 November 2026): the way from seen to played as four bars, the other numbers as tiles
   with their days as a line, the games with their pictures. What a number means sits behind its (i). */
.in-pick { cursor: pointer; }
.in-pick:focus-visible { outline: 2px solid var(--w-focus); outline-offset: 2px; }
.in-pick.on { border-color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-ink); }
.in-funnel .in-head h2 { margin-right: auto; }
.in-rate { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: var(--w-pill); background: var(--w-surface-2); color: var(--w-ink-2); font-size: var(--w-fs-small); font-weight: 600; }
.in-rate b { color: var(--w-ink); font-variant-numeric: tabular-nums; }
.in-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--w-s3); }
.in-step { display: grid; gap: 4px; align-content: start; padding: var(--w-s3); border: 1px solid var(--w-line); border-radius: var(--w-r3); background: var(--w-surface); min-width: 0; }
.in-step:hover { background: var(--w-surface-2); }
.in-step-head { display: flex; justify-content: space-between; align-items: center; gap: var(--w-s2); }
.in-step-head .label { display: flex; align-items: center; min-width: 0; }
.in-step-v { font: 600 30px/1.1 var(--w-font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.in-step-track { height: 96px; display: flex; align-items: flex-end; margin: var(--w-s2) 0 2px; border-bottom: 1px solid var(--w-line-strong); }
.in-step-bar { display: block; width: 100%; border-radius: var(--w-r2) var(--w-r2) 0 0; background: linear-gradient(to top, var(--tone), color-mix(in srgb, var(--tone) 55%, var(--w-surface))); }
.in-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--w-s3); }
.in-kpis .hm2-kpi-head .label { display: flex; align-items: center; }
.in-kpis .hm2-kpi-head .label::before { display: none; }
.in-kpis .hm2-kpi-head .label .ic { color: var(--tone); }
.in-kpis .hm2-kpi-v { font-size: 28px; }
.in-body .hm2-big { margin: 0; }
.in-game-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.in-game { display: grid; grid-template-columns: 20px 52px minmax(0, 1fr) auto; gap: var(--w-s3); align-items: center; padding: var(--w-s2); border-radius: var(--w-r2); color: var(--w-ink); text-decoration: none; }
.in-game:hover { background: var(--w-surface-2); }
.in-game .ga { width: 52px; }
.in-game-main { display: grid; gap: 6px; min-width: 0; }
.in-game-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-game-main .hm2-meter { margin: 0; height: 6px; }
.in-game-v { display: grid; justify-items: end; gap: 1px; }
.in-game-v b { font: 600 22px/1.1 var(--w-font-display); font-variant-numeric: tabular-nums; }
.in-game-v small { font-size: 11px; color: var(--w-ink-3); }
.in-locked { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--w-s4); }
.in-locked-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--w-surface-2); color: var(--w-ink-2); }
.in-locked-ic .ic { width: 22px; height: 22px; }
.in-locked p { margin: 2px 0 0; }
.in-locked-sides { grid-column: 1 / -1; display: flex; gap: var(--w-s2); flex-wrap: wrap; }
.in-locked-sides span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--w-pill); border: 1px dashed var(--w-line-strong); color: var(--w-ink-3); font-size: var(--w-fs-small); font-weight: 600; }
.hm2-pair.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm2-pair .label { display: flex; align-items: center; }
.in-split { display: flex; gap: 2px; height: 12px; border-radius: var(--w-pill); overflow: hidden; background: var(--w-surface-2); }
.in-split span { display: block; min-width: 4px; }
.hm2-legend.row { display: flex; gap: var(--w-s4); flex-wrap: wrap; }
.hm2-legend.row li { grid-template-columns: 10px auto auto; }
.in-reward { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--w-s4); align-items: center; }
.in-body .in-section { margin-top: var(--w-s5); }
@media (max-width: 1100px) { .in-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .in-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-step-track { height: 56px; }
  .in-step-v { font-size: 24px; }
  .in-kpis .hm2-kpi-v { font-size: 24px; }
  .in-game { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .in-game .hm2-rank-n { display: none; }
  .in-game .ga { width: 44px; }
  .in-reward { grid-template-columns: 1fr; justify-items: start; }
}
.hm2-kpi-head .label { display: flex; align-items: center; }
.hm2-kpi-head .label::before { display: none; }
.hm2-kpi-head .label .ic { color: var(--tone); }
.hm2-shelf-row .fig:nth-child(n+3) { display: none; }

/* Ads: each ad with its game's picture, where and when, its numbers and how much is spent. */
.ad-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 190px; gap: var(--w-s4); align-items: center; padding: var(--w-s3) var(--w-s4) var(--w-s3) var(--w-s3); color: var(--w-ink); text-decoration: none; }
.ad-card:hover { border-color: var(--w-line-strong); background: var(--w-surface-2); }
.ad-art .ga { width: 64px; }
.ad-main { display: grid; gap: 6px; min-width: 0; }
.ad-main strong { font: 600 var(--w-fs-h3)/1.3 var(--w-font-ui); overflow-wrap: anywhere; }
.ad-main .chip.ad { margin-left: 0; }
.ad-when { display: flex; flex-wrap: wrap; gap: 4px var(--w-s3); color: var(--w-ink-3); font-size: var(--w-fs-small); }
.ad-when > span { display: inline-flex; align-items: center; gap: 4px; }
.ad-when .ic { width: 14px; height: 14px; }
.ad-figs { display: grid; grid-template-columns: repeat(3, minmax(64px, auto)); gap: var(--w-s3); }
.ad-figs > div { display: grid; gap: 2px; }
.ad-figs .label { display: flex; align-items: center; }
.ad-figs b { font: 600 22px/1.1 var(--w-font-display); font-variant-numeric: tabular-nums; }
.ad-spend { display: grid; gap: 6px; }
.ad-spend-top b { font: 600 var(--w-fs-h3)/1.2 var(--w-font-display); font-variant-numeric: tabular-nums; }
.ad-spend-top small { color: var(--w-ink-3); font-size: var(--w-fs-small); }
.ad-spend .ad-meter { flex: none; height: 8px; }
.ad-spend .ad-meter span { background: var(--w-c1); }
@media (max-width: 1100px) {
  .ad-card { grid-template-columns: 64px minmax(0, 1fr); }
  .ad-figs, .ad-spend { grid-column: 2; }
}
@media (max-width: 520px) {
  .ad-card { grid-template-columns: 52px minmax(0, 1fr); gap: var(--w-s3); }
  .ad-art .ga { width: 52px; }
}

/* Community: the fans as tiles with icons, and every comment with a face and its game's picture. */
.cm-fans-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--w-s3); }
.cm-fan { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--w-s3); align-items: center; padding: var(--w-s3); border-radius: var(--w-r3); background: var(--w-surface-2); }
.cm-fan-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 18%, var(--w-surface)); color: var(--tone); }
.cm-fan-ic .ic { width: 22px; height: 22px; }
.cm-fan-head { display: flex; justify-content: space-between; align-items: center; gap: var(--w-s2); }
.cm-fan b { display: block; font: 600 26px/1.15 var(--w-font-display); font-variant-numeric: tabular-nums; }
.cm-fan b.few { font: 600 var(--w-fs-body)/1.6 var(--w-font-ui); color: var(--w-ink-3); }
.cm-back { display: grid; gap: 6px; }
.cm-back .hm2-meter { height: 8px; margin: 0; }
.cm-back .hm2-meter span { background: var(--w-c1); }
.cm-who { align-items: center; }
.cm-face { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; color: var(--w-ink); background: color-mix(in srgb, var(--tone) 24%, var(--w-surface)); flex: none; }
.cm-item .cm-text { margin-left: 40px; font-size: var(--w-fs-h3); line-height: 1.4; }
.cm-item > .gm-tags, .cm-item > .cm-reply, .cm-item > .pf-actions, .cm-item > .cm-more { margin-left: 40px; }
.cm-game { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border-radius: var(--w-pill); background: var(--w-surface-2); color: var(--w-ink-2); font-size: var(--w-fs-small); font-weight: 600; text-decoration: none; }
.cm-game .ga { width: 22px; border-radius: 50%; aspect-ratio: 1; }
.cm-game:hover { color: var(--w-ink); background: var(--w-surface-3); }
.cm-replied { display: inline-flex; align-items: center; gap: 6px; }
.cm-face-brand { width: 20px; height: 20px; font-size: 11px; }
/* A player's name or @handle (docs/MENTIONS.md): reads as a link inside its line, the line's own size. The
   whole word is the target; a row of names keeps the row's height. */
.btn.link.person-link { display: inline; min-height: 0; padding: 0; border: 0; font: inherit; font-weight: 600; color: var(--w-info); white-space: normal; text-align: start; }
.btn.link.person-link:hover { background: none; text-decoration: underline; }
.btn.link.person-link:focus-visible { outline: 2px solid var(--w-focus); outline-offset: 2px; border-radius: 2px; }
/* The player card over the page. */
.pl-card { width: min(520px, 100%); max-height: calc(100dvh - 2 * var(--w-s4)); overflow: auto; gap: var(--w-s3); border-radius: var(--w-r4); box-shadow: var(--w-shadow-pop); }
.pl-who { display: flex; align-items: center; gap: var(--w-s3); }
.pl-who .cm-face { width: 48px; height: 48px; font-size: 20px; --tone: var(--w-c3); }
.pl-who h2 { margin: 0; }
.pl-bio { margin: 0; line-height: 1.4; }
.pl-card h3 { margin: var(--w-s2) 0 0; font-size: var(--w-fs-small); color: var(--w-ink-2); text-transform: none; }
.pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pl-list li { display: flex; justify-content: space-between; gap: var(--w-s3); align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--w-line); }
.pl-list li.pl-said { display: grid; gap: 2px; }
.pl-list li.pl-said p { margin: 0; }
.pl-list a { color: var(--w-info); font-weight: 600; text-decoration: none; }
.pl-list a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .cm-item .cm-text, .cm-item > .gm-tags, .cm-item > .cm-reply, .cm-item > .pf-actions, .cm-item > .cm-more { margin-left: 0; }
  .cm-fans-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-fan { grid-template-columns: 1fr; }
}

/* Drafts: the games not posted yet as cards, and each build with its game's picture. */
.dr-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.dr-grid .gm-figs { display: none; }
.dr-game { display: inline-flex; align-items: center; gap: var(--w-s2); font-weight: 600; }
.dr-game .ga { width: 30px; flex: none; }
.mk-table td { vertical-align: middle; }

/* Profile: the pinned game picked from the games' pictures. */
.pin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--w-s3); }
.pin-pick { display: grid; gap: var(--w-s2); align-content: start; padding: var(--w-s2); border: 1px solid var(--w-line); border-radius: var(--w-r3); cursor: pointer; background: var(--w-surface); }
.pin-pick:hover { background: var(--w-surface-2); }
.pin-pick.on { border-color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-ink); }
.pin-pick:focus-within { outline: 2px solid var(--w-focus); outline-offset: 2px; }
.pin-name { display: flex; align-items: flex-start; gap: var(--w-s2); font-size: var(--w-fs-small); font-weight: 600; color: var(--w-ink); min-height: 36px; }
.pin-name .pf-radio { margin-top: 1px; }
.ga.pin-none { background: var(--w-surface-2); border: 1px dashed var(--w-line-strong); display: grid; place-items: center; color: var(--w-ink-3); }
.ga.pin-none .ic { width: 28px; height: 28px; }
.pf-section-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--w-r2); background: var(--w-surface-2); color: var(--w-ink-2); }
.pf-section.off .pf-section-ic, .pf-section.off .pf-toggle > span:last-child { color: var(--w-ink-3); }
@media (max-width: 820px) {
  .bottom a, .bottom button { align-content: center; gap: 2px; padding-top: 6px; }
  .bottom .ic { width: 20px; height: 20px; }
  .bottom .on::before { top: 2px; }
}
@media (min-width: 900px) { .cm-fans-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Rewards (step 13): the numbers and the code check on top, the store as cards with pictures and a stock
   meter, challenges with their game, prizes and board or winners, and got and used as bars. Tokens only. */
.rw-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: var(--w-s4); align-items: start; margin-bottom: var(--w-s5); }
.rw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rw-kpis .hm2-kpi { padding-bottom: var(--w-s3); }
.rw-kpis .hm2-kpi:first-child { padding-bottom: 0; }
.rw-kpis .hm2-kpi-head .ic { color: var(--w-ink-3); }
.rw-kpi-pad { display: none; }
.rw-till { display: grid; gap: var(--w-s3); align-content: start; }
.rw-till h2, .rw-wall h3, .rw-split3 h2 { display: flex; align-items: center; gap: var(--w-s2); margin: 0; }
.rw-till p { margin: 0; }
.rw-till-form { display: flex; gap: var(--w-s2); }
.rw-code-in { flex: 1; min-width: 0; font-family: var(--w-font-mono); text-transform: uppercase; letter-spacing: .06em; }
.rw-ticket { display: grid; gap: 6px; padding: var(--w-s3); border-radius: var(--w-r3); border: 1px dashed var(--w-line-strong); background: var(--w-surface-2); }
.rw-ticket.ok { border-color: var(--w-ok); background: var(--w-ok-bg); }
.rw-ticket.bad { border-color: var(--w-bad); background: var(--w-bad-bg); }
.rw-ticket.warn { border-color: var(--w-warn); background: var(--w-warn-bg); }
.rw-ticket-top { display: flex; justify-content: space-between; align-items: center; gap: var(--w-s2); flex-wrap: wrap; }
.rw-ticket code { font: 600 var(--w-fs-body)/1 var(--w-font-mono); letter-spacing: .06em; color: var(--w-ink); }
.rw-ticket .btn { justify-self: start; margin-top: var(--w-s1); }
.rw-tabs { margin-bottom: var(--w-s4); }
.rw-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: var(--w-pill); background: var(--w-surface-3); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rw-body-wrap { display: grid; gap: var(--w-s4); }
.rw-body-wrap > .gm-tools { margin: 0; }
.rw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--w-s4); }
.rw-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--w-s4); align-items: start; }
.rw-art .ga { width: 100%; }
.rw-pic { display: grid; place-items: center; }
.rw-pic img { width: 82%; height: 82%; object-fit: contain; }
.rw-pic-ic { width: 44%; height: 44%; color: var(--w-ink-2); stroke-width: 1.4; }
.ga.sm .rw-pic-ic { width: 50%; height: 50%; }
.rw-main, .rw-ch-main { display: grid; gap: var(--w-s2); align-content: start; min-width: 0; }
.rw-title { font: 600 var(--w-fs-h2)/1.25 var(--w-font-display); overflow-wrap: anywhere; }
.rw-main > small { margin-top: -4px; }
.rw-lines { display: grid; gap: 4px; }
.rw-line { display: flex; align-items: center; gap: 6px; font-size: var(--w-fs-small); color: var(--w-ink-2); min-width: 0; overflow-wrap: anywhere; }
.rw-line .ic { width: 15px; height: 15px; color: var(--w-ink-3); flex: none; }
.rw-stock { display: grid; gap: 6px; padding: var(--w-s2) var(--w-s3); border-radius: var(--w-r2); background: var(--w-surface-2); }
.rw-stock-top { display: flex; justify-content: space-between; gap: var(--w-s2); font-size: var(--w-fs-small); }
.rw-stock-top b { font: 600 18px/1 var(--w-font-display); font-variant-numeric: tabular-nums; }
.rw-meter { display: block; height: 6px; border-radius: var(--w-pill); background: var(--w-surface-3); overflow: hidden; }
.rw-meter span { display: block; height: 100%; border-radius: inherit; background: var(--w-c1); }
.rw-form { display: grid; gap: var(--w-s4); margin-bottom: var(--w-s2); }
.rw-form h2 { margin: 0; }
.rw-form-part { display: grid; gap: var(--w-s3); }
.rw-form .mk-grid { align-items: start; }
.rw-form textarea { font-family: var(--w-font-mono); }
.rw-pics { display: flex; flex-wrap: wrap; gap: var(--w-s2); }
.rw-pick { overflow: hidden; display: grid; place-items: center; width: 56px; height: 56px; padding: 4px; border: 1px solid var(--w-line); border-radius: var(--w-r3); background: var(--w-surface-2); cursor: pointer; color: var(--w-ink-3); }
.rw-pick img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rw-pick:hover { border-color: var(--w-line-strong); }
.rw-pick.on { border-color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-ink); background: var(--w-surface); }
.rw-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--w-s2); }
.rw-game { font: inherit; display: grid; gap: 6px; padding: 6px 6px var(--w-s2); border: 1px solid var(--w-line); border-radius: var(--w-r3); background: var(--w-surface); color: var(--w-ink-2); font-size: var(--w-fs-small); font-weight: 600; text-align: left; cursor: pointer; }
.rw-game span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-game:hover { background: var(--w-surface-2); }
.rw-game.on { border-color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-ink); color: var(--w-ink); }
.rw-prize-rows { display: grid; gap: var(--w-s2); }
.rw-prize-row { display: grid; grid-template-columns: 18px minmax(80px, 1fr) minmax(0, 2.4fr); gap: var(--w-s2); align-items: center; }
.rw-prize-row .ic { color: var(--w-ink-3); }
.rw-prize-rows + .btn { justify-self: start; }
.rw-chs { display: grid; gap: var(--w-s4); }
.rw-ch { display: grid; grid-template-columns: 96px minmax(0, 1.2fr) minmax(260px, 1fr); gap: var(--w-s5); align-items: start; }
.rw-ch-art { display: block; }
.rw-prizes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--w-s2); }
.rw-prizes li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: var(--w-pill); background: color-mix(in srgb, var(--w-c5) 16%, var(--w-surface)); font-size: var(--w-fs-small); color: var(--w-ink); }
.rw-prizes .ic { width: 15px; height: 15px; }
.rw-wall { display: grid; gap: var(--w-s2); align-content: start; padding: var(--w-s3); border-radius: var(--w-r3); background: var(--w-surface-2); min-width: 0; }
.rw-wall .lb-row.top { background: var(--w-surface); }
.rw-wall .lb-name small { display: flex; align-items: center; gap: 4px; }
.rw-wall .lb-name small .ic { width: 13px; height: 13px; }
.rw-wall .hm2-empty { background: transparent; }
.rw-soon { justify-items: start; }
.rw-soon > .ic { width: 28px; height: 28px; color: var(--w-info); }
.rw-chart { display: grid; gap: var(--w-s3); }
.rw-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--w-s2) var(--w-s5); font-size: var(--w-fs-small); color: var(--w-ink-2); }
.rw-legend li { display: inline-flex; align-items: center; gap: 6px; }
.rw-legend i { width: 10px; height: 10px; border-radius: 3px; }
.rw-days { min-height: 200px; }
.rw-split3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--w-s4); align-items: start; }
.rw-split3 > .card { display: grid; gap: var(--w-s3); align-content: start; min-width: 0; }
.rw-rows { display: grid; gap: var(--w-s3); }
.rw-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--w-s3); align-items: center; }
.rw-row-art .ga { width: 40px; }
.rw-row-main { display: grid; gap: 6px; min-width: 0; }
.rw-row-top { display: flex; justify-content: space-between; gap: var(--w-s2); align-items: baseline; flex-wrap: wrap; }
.rw-row-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rw-row-top b { color: var(--w-ink); font-variant-numeric: tabular-nums; }
.rw-row .in-split { height: 10px; }
@media (max-width: 1100px) {
  .rw-top { grid-template-columns: minmax(0, 1fr); }
  .rw-ch { grid-template-columns: 80px minmax(0, 1fr); }
  .rw-ch > .rw-wall { grid-column: 1 / -1; }
  .rw-split3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .rw-grid { grid-template-columns: minmax(0, 1fr); }
  .rw-card { grid-template-columns: 84px minmax(0, 1fr); gap: var(--w-s3); }
  .rw-ch { grid-template-columns: 64px minmax(0, 1fr); gap: var(--w-s3); }
  .rw-kpis .hm2-kpi-v { font-size: 28px; }
  .rw-prize-row { grid-template-columns: 18px minmax(0, 1fr); }
  .rw-prize-row input:last-child { grid-column: 2; }
}

/* ---- Step 14: Team, Activity log, the bell and the team's notes (team.js). */
.menu a.bell { margin-bottom: var(--w-s2); }
[data-bell][data-n]:not([data-n=""])::after {
  content: attr(data-n); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--w-signal-fill); color: var(--w-on-signal);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; margin-left: auto;
}
.bottom [data-bell][data-n]:not([data-n=""])::after { position: absolute; top: 4px; right: 18%; margin: 0; }
.bottom button[data-bell] { position: relative; }
.tm .card h3 { margin: var(--w-s4) 0 var(--w-s2); font-size: var(--w-fs-small); }
.tm-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--w-s2); }
.tm-person { align-items: flex-start; }
.tm-who { display: flex; gap: var(--w-s3); align-items: flex-start; }
.tm-who .btn.link { padding: 0; min-height: 0; }
.tm-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--w-surface-3); color: var(--w-ink); display: grid; place-items: center; font-weight: 650; flex: none; }
.tm-actions { display: flex; gap: var(--w-s2); align-items: center; flex-wrap: wrap; }
.tm-actions select, .tm-actions input { width: auto; min-width: 120px; }
.tm-name-edit { display: flex; gap: var(--w-s2); margin-top: var(--w-s1); }
.tm-name-edit input { width: 180px; }
.tm-invite { border-top: 1px solid var(--w-line); margin-top: var(--w-s3); padding-top: var(--w-s2); display: grid; gap: var(--w-s2); }
.tm-invite-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr auto; gap: var(--w-s2); align-items: center; }
.tm-invite-row label.tm-inline { white-space: nowrap; }
.tm-inline { display: inline-flex; gap: 6px; align-items: center; font-size: var(--w-fs-small); color: var(--w-ink-2); }
.tm-switch { display: flex; justify-content: space-between; align-items: center; gap: var(--w-s3); padding: var(--w-s2) 0; min-height: 44px; border-top: 1px solid var(--w-line); }
.tm-switch small { display: block; color: var(--w-ink-3); font-size: var(--w-fs-small); }
.tm-link { display: flex; gap: var(--w-s2); align-items: center; flex-wrap: wrap; margin-top: var(--w-s2); }
.tm-link input { flex: 1 1 260px; width: auto; }
.tm-kinds { display: grid; gap: var(--w-s2); }
.tm-mail { white-space: pre-wrap; font: 13px/1.5 var(--w-font-mono); background: var(--w-surface-2); border-radius: var(--w-r2); padding: var(--w-s3); }
.tm-roles summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.tm-filters { display: flex; flex-wrap: wrap; gap: var(--w-s2); align-items: center; }
.tm-filters select, .tm-filters input { width: auto; }
.tm-log-row { align-items: flex-start; }
.tm-log-who { text-align: right; font-size: var(--w-fs-small); }
.tm-log-who small { display: block; color: var(--w-ink-3); }
a.tm-alert { color: inherit; text-decoration: none; }
a.tm-alert:hover { background: var(--w-surface-2); }
.tm-alert.new strong::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--w-signal); margin-right: 8px; vertical-align: middle; }
.tm-notes { display: grid; gap: var(--w-s2); }
.tm-note-list { display: grid; gap: var(--w-s2); }
.tm-note { border: 1px solid var(--w-line); border-radius: var(--w-r2); padding: var(--w-s2) var(--w-s3); }
.tm-note.done { opacity: .62; }
.tm-note p { margin: var(--w-s1) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tm-note-head { display: flex; gap: var(--w-s2); align-items: baseline; flex-wrap: wrap; }
.tm-note-acts { margin-left: auto; display: flex; gap: var(--w-s2); }
.tm-note-acts .btn.link, .tm-note-foot .btn { min-height: 32px; }
.tm-tag { color: var(--w-info); font-weight: 600; }
.tm-note-foot { display: flex; justify-content: space-between; gap: var(--w-s2); align-items: center; flex-wrap: wrap; }
.tm-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tm-chip { cursor: pointer; border: 0; min-height: 28px; }
.tm-drawer-box { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: grid; justify-items: end; gap: var(--w-s2); }
.tm-drawer { width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--w-surface); border: 1px solid var(--w-line); border-radius: var(--w-r3); box-shadow: var(--w-shadow-pop); padding: var(--w-s2); }
.tm-drawer .card { border: 0; padding: var(--w-s2); }
.tm-drawer-head { display: flex; justify-content: flex-end; }
.tm-drawer-open { box-shadow: var(--w-shadow-pop); display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 760px) {
  .tm-invite-row { grid-template-columns: 1fr; }
  .tm-drawer-box { bottom: 76px; }
  .tm-log-who { text-align: left; }
}

/* ---- Portal pieces (portal.js): search, getting started, Help, Calendar, Exports, templates, language. */
.menu button.find {
  display: flex; align-items: center; gap: var(--w-s2); width: 100%; min-height: var(--w-control); margin-bottom: var(--w-s1);
  padding: 0 var(--w-s2) 0 var(--w-s6); border: 1px solid var(--w-line); border-radius: var(--w-r2); background: var(--w-surface);
  color: var(--w-ink-3); font: inherit; text-align: left; cursor: pointer;
}
.menu button.find:hover { border-color: var(--w-line-strong); color: var(--w-ink-2); }
.menu button.find span { flex: 1; }
.more .menu button.find { min-height: var(--w-row); }
.more .menu button.find kbd { display: none; }
kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--w-line); border-bottom-width: 2px; border-radius: var(--w-r1); background: var(--w-surface-2); color: var(--w-ink-2); font-size: var(--w-fs-label); line-height: 1.5; white-space: nowrap; }
.srch { position: fixed; inset: 0; z-index: 50; background: var(--w-scrim); display: flex; justify-content: center; align-items: flex-start; padding: 12vh var(--w-s4) var(--w-s4); }
.sr-sheet { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; background: var(--w-surface); border-radius: var(--w-r4); box-shadow: var(--w-shadow-pop); overflow: hidden; }
.sr-top { display: flex; align-items: center; gap: var(--w-s2); padding: var(--w-s3) var(--w-s4); border-bottom: 1px solid var(--w-line); }
.sr-top .ic { color: var(--w-ink-3); flex: none; }
.sr-top input { border: 0; background: transparent; box-shadow: none; flex: 1; min-height: var(--w-control); font-size: var(--w-fs-body); padding: 0; }
.sr-top input:focus { outline: none; }
.sr-list { overflow-y: auto; padding: var(--w-s2); display: grid; gap: 1px; }
.sr-item { display: flex; align-items: center; gap: var(--w-s3); min-height: 48px; padding: var(--w-s2) var(--w-s3); border-radius: var(--w-r2); color: var(--w-ink); text-decoration: none; }
.sr-item .ic { color: var(--w-ink-3); flex: none; }
.sr-item span { display: grid; min-width: 0; }
.sr-item small { color: var(--w-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-item.on, .sr-item:hover { background: var(--w-surface-2); }
.sr-none { padding: var(--w-s3); margin: 0; }
.sr-hint { margin: 0; padding: var(--w-s2) var(--w-s4); border-top: 1px solid var(--w-line); }

.st-card { display: grid; gap: var(--w-s3); margin-bottom: var(--w-s4); }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--w-s3); }
.st-head h2, .st-head p { margin: 0; }
.st-bar { display: block; height: 6px; border-radius: 3px; background: var(--w-surface-3); overflow: hidden; }
.st-bar span { display: block; height: 100%; background: var(--w-ok); border-radius: 3px; }
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--w-s2); }
.st-steps a { display: flex; gap: var(--w-s3); align-items: flex-start; min-height: 44px; padding: var(--w-s3); border: 1px solid var(--w-line); border-radius: var(--w-r3); color: var(--w-ink); text-decoration: none; }
.st-steps a:hover { border-color: var(--w-line-strong); }
.st-steps span:last-child { display: grid; gap: 2px; }
.st-steps small { color: var(--w-ink-3); }
.st-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--w-line-strong); flex: none; display: grid; place-items: center; }
.st-steps li.done a { color: var(--w-ink-3); }
.st-steps li.done strong { text-decoration: line-through; }
.st-steps li.done .st-dot { border-color: var(--w-ok); color: var(--w-ok); }
.st-dot .ic { width: 22px; height: 22px; }

.hp > input[type=search] { max-width: 420px; margin-bottom: var(--w-s4); }
.hp-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--w-s4); align-items: start; }
.hp-grid > div { display: grid; gap: var(--w-s4); }
.hp-faq { display: grid; gap: var(--w-s4); }
.hp-faq details { border-top: 1px solid var(--w-line); padding: var(--w-s2) 0; }
.hp-faq details:first-of-type { border-top: 0; }
.hp-faq summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; font-weight: 550; }
.hp-faq details p { margin: var(--w-s1) 0 var(--w-s2); color: var(--w-ink-2); }
.hp-contact { display: grid; gap: var(--w-s3); }
.hp-contact h2, .hp-contact > p { margin: 0; }
.hp-answer { color: var(--w-ink); margin-top: var(--w-s1); }
.hp .row kbd { min-width: 72px; text-align: center; }
@media (max-width: 900px) { .hp-grid { grid-template-columns: minmax(0, 1fr); } }

.cl-tools { display: flex; align-items: center; gap: var(--w-s2); flex-wrap: wrap; margin-bottom: var(--w-s3); }
.cl-title { margin: 0 var(--w-s2); min-width: 160px; text-align: center; }
.cl-tools input { width: 180px; margin-left: auto; }
.cl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--w-s4); align-items: start; }
.cl-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--w-line); border: 1px solid var(--w-line); border-radius: var(--w-r3); overflow: hidden; }
.cl-dow { background: var(--w-surface-2); padding: var(--w-s1) var(--w-s2); font-size: var(--w-fs-label); font-weight: 600; color: var(--w-ink-3); text-transform: uppercase; letter-spacing: .06em; }
.cl-day { background: var(--w-surface); min-height: 96px; padding: var(--w-s1); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-day.out { background: var(--w-surface-2); }
.cl-day.out .cl-n { color: var(--w-ink-3); }
.cl-n { font-size: var(--w-fs-small); font-weight: 600; padding: 2px 4px; align-self: flex-start; border-radius: var(--w-r1); }
.cl-day.today .cl-n { background: var(--w-ink); color: var(--w-paper); }
.cl-ev { display: block; font-size: 11px; line-height: 1.35; padding: 1px 6px; border-radius: var(--w-r1); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--w-ink); background: var(--w-surface-3); }
.cl-ev.k-ad { background: var(--w-info-bg); color: var(--w-info); }
.cl-ev.k-challenge { background: var(--w-warn-bg); color: var(--w-warn); }
.cl-ev.k-reward { background: var(--w-ok-bg); color: var(--w-ok); }
.cl-ev.k-board { background: var(--w-ai-bg); color: var(--w-ai); }
.cl-ev.k-moment { background: transparent; color: var(--w-ink-2); border: 1px dashed var(--w-line-strong); }
.cl-soon { display: grid; gap: var(--w-s3); }
.cl-soon h2, .cl-soon > p { margin: 0; }
.cl-moment { display: grid; gap: var(--w-s2); border-top: 1px solid var(--w-line); padding-top: var(--w-s3); }
.cl-moment > div { display: flex; justify-content: space-between; gap: var(--w-s2); }
.cl-moment ul { margin: 0; padding-left: 18px; color: var(--w-ink-2); font-size: var(--w-fs-small); }
.cl-moment .btn { justify-self: start; }
.cl-key { display: flex; flex-wrap: wrap; gap: var(--w-s1); border-top: 1px solid var(--w-line); padding-top: var(--w-s3); }
@media (max-width: 1000px) { .cl-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .cl-day { min-height: 56px; }
  .cl-day .cl-ev { font-size: 0; padding: 0; height: 6px; }
  .cl-tools input { margin-left: 0; width: 100%; }
}

.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--w-s3); margin-bottom: var(--w-s4); }
.ex-card { display: grid; gap: var(--w-s2); align-content: start; }
.ex-card .btn, .ex-card select { justify-self: start; }
.ex-ic { width: 36px; height: 36px; border-radius: var(--w-r2); background: var(--w-surface-2); display: grid; place-items: center; color: var(--w-ink-2); }
.ex-print { display: none; }
body.printing > *:not(.ex-print) { display: none !important; }
body.printing .ex-print { display: block; color: #000; background: #fff; padding: 24px; }
.ex-print table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 12px; }
.ex-print th, .ex-print td { text-align: left; border-bottom: 1px solid #ccc; padding: 4px 6px; }
@media print { body:not(.printing) .side, body:not(.printing) .bottom { display: none; } }

.tpl { display: grid; gap: var(--w-s2); margin-top: var(--w-s4); }
.tpl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--w-s2); }
.tpl-row button { display: grid; gap: 2px; text-align: left; padding: var(--w-s3); min-height: 44px; border: 1px solid var(--w-line); border-radius: var(--w-r3); background: var(--w-surface); color: var(--w-ink); font: inherit; cursor: pointer; }
.tpl-row button:hover { border-color: var(--w-line-strong); }
.tpl-row button small { color: var(--w-ink-3); }

.lang-pick { display: flex; gap: var(--w-s2); flex-wrap: wrap; }
.lang-pick .btn.on { border-color: var(--w-ink); color: var(--w-ink); font-weight: 600; }
.gm-grid > .tpl, .gm-grid > p { grid-column: 1 / -1; }

/* ---- Reaching players (reach.js): links, QR codes, embed cards, a poster. */
.lk-make { display: grid; gap: var(--w-s3); margin-bottom: var(--w-s4); }
.lk-make h2 { margin: 0; }
.lk-row { display: flex; gap: var(--w-s2); flex-wrap: wrap; align-items: flex-end; }
.lk-row > input { flex: 1; min-width: 160px; }
.lk-field { display: grid; gap: var(--w-s1); min-width: 160px; }
.lk-grow { flex: 1; }
.lk-places { display: flex; flex-wrap: wrap; gap: var(--w-s1); }
.lk-places .btn.on { border-color: var(--w-ink); color: var(--w-ink); font-weight: 600; }
.lk-utm summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--w-ink-2); font-size: var(--w-fs-small); }
.lk-utm[open] { display: grid; gap: var(--w-s2); }
.lk-list { display: grid; gap: var(--w-s3); }
.lk-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: var(--w-s4); align-items: start; }
.lk-card.stopped { opacity: .7; }
.lk-card.stopped .lk-qr { filter: grayscale(1); opacity: .35; }
.lk-qr { width: 132px; height: 132px; border: 1px solid var(--w-line); border-radius: var(--w-r3); background: #fff; image-rendering: pixelated; }
.lk-main { display: grid; gap: var(--w-s2); min-width: 0; }
.lk-top { display: flex; justify-content: space-between; gap: var(--w-s2); align-items: flex-start; }
.lk-title { display: block; font-size: var(--w-fs-h3); font-weight: 650; }
.lk-url { font-family: var(--w-font-mono); font-size: var(--w-fs-small); color: var(--w-ink); overflow-wrap: anywhere; }
.lk-tags { display: flex; gap: var(--w-s1); flex-wrap: wrap; }
.lk-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--w-s2); }
.lk-figs > div { background: var(--w-surface-2); border-radius: var(--w-r2); padding: var(--w-s2) var(--w-s3); display: grid; gap: 2px; }
.lk-figs .label { display: flex; gap: 4px; align-items: center; }
.lk-figs .ic { width: 14px; height: 14px; }
.lk-figs b { font-size: 20px; font-variant-numeric: tabular-nums; }
.lk-actions { display: flex; flex-wrap: wrap; gap: var(--w-s1); }
.lk-more:empty { display: none; }
.lk-more { display: grid; gap: var(--w-s2); border-top: 1px solid var(--w-line); padding-top: var(--w-s3); }
.lk-code { font-family: var(--w-font-mono); font-size: 12px; width: 100%; }
.lk-bars { display: flex; align-items: flex-end; gap: 2px; height: 96px; }
.lk-bar { flex: 1; max-width: 18px; height: 100%; position: relative; }
.lk-bar i, .lk-bar b { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; }
.lk-bar i { background: var(--w-c1); opacity: .35; }
.lk-bar b { background: var(--w-c1); }
.lk-legend { display: flex; gap: var(--w-s3); font-size: var(--w-fs-small); color: var(--w-ink-2); margin-top: var(--w-s1); }
.lk-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--w-c1); vertical-align: -1px; }
.lk-legend .o::before { opacity: .35; }
@media (max-width: 700px) {
  .lk-card { grid-template-columns: minmax(0, 1fr); }
  .lk-qr { width: 112px; height: 112px; }
  .lk-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.printing .lk-poster { text-align: center; padding: 48px 24px; font-family: var(--w-font-ui); }
.lk-poster h1 { font-size: 44px; line-height: 1.1; margin: 8px 0 28px; }
.lk-poster img { width: 70%; max-width: 420px; aspect-ratio: 1; image-rendering: pixelated; }
.lk-p-brand { font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.lk-p-line { font-size: 26px; font-weight: 700; margin: 24px 0 6px; }
.lk-p-url { font-family: var(--w-font-mono); font-size: 16px; margin: 0 0 32px; }
.lk-p-small { font-size: 13px; color: #555; margin: 0; }

/* ---- Making content faster (content.js): Ideas, the launch kit, a copy for the next big day, clips. */
.id-tools { display: flex; gap: var(--w-s3); align-items: flex-end; flex-wrap: wrap; margin-bottom: var(--w-s4); }
.id-tools small { max-width: 420px; }
.id-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: var(--w-s4); align-items: start; }
.id-body > .notice, .id-body > p { grid-column: 1; }
.id-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--w-s3); }
.id-card { display: grid; gap: var(--w-s2); align-content: start; }
.id-card .pf-actions { margin-top: auto; }
.id-kind { justify-self: start; display: inline-flex; gap: 4px; align-items: center; }
.id-kind .ic { width: 14px; height: 14px; }
.id-title { font-size: var(--w-fs-h3); font-weight: 650; line-height: 1.25; }
.id-card p { margin: 0; color: var(--w-ink-2); }
.id-side { display: grid; gap: var(--w-s3); grid-column: 2; grid-row: 1 / span 3; }
.id-trends { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--w-s2); }
.id-trends li { display: grid; grid-template-columns: minmax(0, 1fr) 56px auto; grid-template-areas: "tag n change" "bar bar bar"; gap: 4px var(--w-s2); align-items: center; }
.id-trends .cat-tag { grid-area: tag; min-width: 0; }
.id-trends .hm2-meter { grid-area: bar; }
.id-trends b { grid-area: n; text-align: right; font-variant-numeric: tabular-nums; }
.id-trends small { grid-area: change; white-space: nowrap; }
.id-trends small.up { color: var(--w-ok); }
.lc-step { display: grid; gap: var(--w-s3); }
.lc-head { display: flex; gap: var(--w-s3); align-items: flex-start; cursor: pointer; min-height: 44px; }
.lc-head input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.lc-head span { display: grid; gap: 2px; }
.lc-fields[hidden] { display: none; }
.lc-status:empty { display: none; }
.lc-status { margin: 0; display: flex; gap: var(--w-s3); align-items: center; flex-wrap: wrap; color: var(--w-ink-2); }
.lc-status.ok { color: var(--w-ok); }
.lc-status a { font-family: var(--w-font-mono); overflow-wrap: anywhere; }
.lc-qr { width: 96px; height: 96px; border: 1px solid var(--w-line); border-radius: var(--w-r2); background: #fff; image-rendering: pixelated; }
.lc-done:empty { display: none; }
.lc-done { margin-top: var(--w-s3); }
.lc-done .row { display: flex; align-items: center; min-height: 44px; color: var(--w-ink); }
.lc-done .row span { display: inline-flex; gap: var(--w-s2); align-items: center; }
.lc .page-head + .card, .lc .lc-step { margin-bottom: var(--w-s3); }
.cp-make { display: flex; gap: var(--w-s2); align-items: center; flex-wrap: wrap; }
.cp-make .btn.on { border-color: var(--w-ink); color: var(--w-ink); font-weight: 600; }
.cp-list { display: grid; gap: var(--w-s3); }
.cp-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--w-s3); align-items: start; }
.cp-row > div { display: grid; gap: 2px; }
.cp-video { width: 72px; aspect-ratio: 9 / 16; border-radius: var(--w-r2); background: var(--w-surface-3); object-fit: cover; }
.cp-wait { width: 72px; aspect-ratio: 9 / 16; border-radius: var(--w-r2); background: var(--w-surface-2); display: grid !important; place-items: center; color: var(--w-ink-3); }
@media (max-width: 900px) {
  .id-body { grid-template-columns: minmax(0, 1fr); }
  .id-side { grid-column: 1; grid-row: auto; }
}
.lc-head strong { font-size: var(--w-fs-h3); font-weight: 650; color: var(--w-ink); text-transform: none; letter-spacing: 0; }
.lc-head small { font-size: var(--w-fs-small); text-transform: none; letter-spacing: 0; font-weight: 400; }
.lc-fields { align-items: start; }
.lc-fields input, .lc-fields select { margin: 0; min-height: 40px; box-sizing: border-box; }

/* ---- Events (events.js): news to followers, tournament hours, countries, badges, fans' versions, contests, creators. */
.ev-tabs { flex-wrap: wrap; margin-bottom: var(--w-s4); }
.ev-tabs a.btn { text-decoration: none; }
.ev-body { display: grid; gap: var(--w-s3); }
.ev-row { display: flex; justify-content: space-between; gap: var(--w-s3); align-items: center; }
.ev-row > div { display: grid; gap: 2px; min-width: 0; }
.ev-icons { display: flex; gap: var(--w-s1); flex-wrap: wrap; }
.ev-icons .btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
.ev-icons .btn.on { border-color: var(--w-ink); color: var(--w-ink); font-weight: 600; }
.ev-games { display: flex; gap: var(--w-s2) var(--w-s4); flex-wrap: wrap; }
.ev-badges, .ev-creators { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--w-s3); }
.ev-badge, .ev-creator { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--w-s3); align-items: start; }
.ev-creator { grid-template-columns: minmax(0, 1fr) auto; }
.ev-badge > div, .ev-creator > div { display: grid; gap: 4px; min-width: 0; }
.ev-badge.stopped { opacity: .6; }
.ev-badge-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--w-surface-2); color: var(--w-ink); }
.ev-badge-icon .ic { width: 24px; height: 24px; }
.ev-contest { display: grid; gap: var(--w-s2); }
.ev .mk-grid { align-items: start; }
.ev .mk-grid input:not([type=checkbox]), .ev .mk-grid select { min-height: 40px; }
.ev input[type=number] { max-width: 180px; }
.ev .id-tools { display: flex; gap: var(--w-s2); flex-wrap: wrap; margin-bottom: var(--w-s3); }
.ev .id-tools select { width: auto; min-width: 200px; }
.ev-creators > .hm2-empty, .ev-badges > .hm2-empty { grid-column: 1 / -1; }
/* Ads that look after themselves (ads-more.js): the cover picker, rules and brand lift. */
.al-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--w-s2); }
.al-cover { aspect-ratio: 1; min-height: 44px; border: 1px solid var(--w-line); border-radius: var(--w-r2); background: var(--w-surface-2); padding: 0; overflow: hidden; display: grid; place-items: center; cursor: pointer; color: var(--w-ink-2); font-size: var(--w-fs-small); }
.al-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-cover.on { border: 2px solid var(--w-ink); }
.al-rules { display: grid; gap: var(--w-s2); justify-items: start; }
.al-rule { display: flex; flex-wrap: wrap; align-items: center; gap: var(--w-s2); }
.al-rule select { width: auto; }
.al-rule input[type=number] { width: 110px; }
.al-options { display: grid; gap: var(--w-s2); }
.al-option { display: grid; grid-template-columns: 24px minmax(0, 1fr) 40px auto; align-items: center; gap: var(--w-s2); }
.al-option input[type=radio] { width: 20px; height: 20px; }
.al-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--w-s4); }
.al-side { display: grid; gap: var(--w-s2); }
.al-share { display: grid; gap: 4px; }
.al-share-top { display: flex; justify-content: space-between; gap: var(--w-s2); font-size: var(--w-fs-small); }
.al-share-top b { font-variant-numeric: tabular-nums; }
.ab-meter.mine i { background: var(--w-ink); }
.al-lift { font-size: var(--w-fs-body); margin: 0 0 var(--w-s3); }
.al-lift b { font-size: var(--w-fs-h2); font-variant-numeric: tabular-nums; }
.al-look { display: flex; align-items: center; gap: var(--w-s3); margin-top: var(--w-s3); }
.al-look img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--w-r2); border: 1px solid var(--w-line); }
div.pf-field > .pf-label { font-size: 12px; font-weight: 600; color: var(--w-ink-2); }
.pf-form > .btn.small { justify-self: start; }

/* ---- Fair and safe (fair.js): the terms, the second step, fair scores, challenge rules, words per country. */
.terms-card { max-width: 560px; }
.terms-lines { margin: 0; padding-left: var(--w-s5); display: grid; gap: var(--w-s2); font-size: var(--w-fs-small); color: var(--w-ink-2); line-height: 1.5; }
#terms-form { display: grid; gap: var(--w-s3); }
.door-setup { display: grid; grid-template-columns: 168px 1fr; gap: var(--w-s4); align-items: start; }
.door-qr { width: 168px; height: 168px; border: 1px solid var(--w-line); border-radius: var(--w-r2); background: var(--w-surface); }
.door-key { font: 600 var(--w-fs-small)/1.4 var(--w-font-mono); letter-spacing: .06em; word-break: break-all; padding: var(--w-s2) var(--w-s3); background: var(--w-surface-2); border-radius: var(--w-r2); }
.door-add { display: flex; gap: var(--w-s3); align-items: end; flex-wrap: wrap; }
.door-add > .pf-field { flex: 1 1 220px; }
.rw-rules { font-size: var(--w-fs-small); color: var(--w-ink-2); }
.rw-rules summary { cursor: pointer; font-weight: 600; color: var(--w-ink); min-height: var(--w-control); display: flex; align-items: center; }
.rw-rules ol { margin: var(--w-s2) 0 0; padding-left: var(--w-s5); display: grid; gap: var(--w-s1); line-height: 1.5; }
.rw-checks { display: grid; gap: var(--w-s2); }
.wc-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(140px, 2fr) minmax(120px, 1fr) auto; gap: var(--w-s2); align-items: center; }
@media (max-width: 640px) {
  .door-setup { grid-template-columns: 1fr; }
  .wc-row { grid-template-columns: 1fr 1fr; }
}
.terms-card .pf-check { display: flex; align-items: center; gap: var(--w-s2); min-height: var(--w-control); font-weight: 600; color: var(--w-ink); }

/* Widgets on the brand page (Profile, widgets.js): each widget as an edged block with its form and its numbers. */
.wg-list { display: grid; gap: var(--w-s3); margin-bottom: var(--w-s4); }
.wg-item { display: grid; gap: var(--w-s3); padding: var(--w-s4); border: 1px solid var(--w-line); border-radius: var(--w-r3); background: var(--w-surface); }
.wg-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--w-s2); }
.wg-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--w-surface-2); color: var(--w-ink-2); flex: none; }
.wg-title { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.wg-head .pf-moves { margin-left: auto; }
.wg-answers { display: grid; gap: 8px; margin-bottom: 8px; }
.wg-answer { display: flex; gap: 8px; align-items: center; }
.wg-answer input { flex: 1; }
.wg-adds { display: flex; flex-wrap: wrap; gap: 8px; }
.wg-adds .btn { display: inline-flex; align-items: center; gap: 6px; }
.wg-numbers { display: flex; align-items: center; gap: 6px; margin: 0; }
.wg-poll { display: grid; gap: 6px; margin: 8px 0; }
.wg-poll-row { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr 44px; align-items: center; gap: 10px; font-size: var(--w-fs-small); }
.wg-poll-row b { text-align: right; font-variant-numeric: tabular-nums; }
.wg-poll-bar { height: 6px; border-radius: 3px; background: var(--w-surface-3); overflow: hidden; }
.wg-poll-bar i { display: block; height: 100%; background: var(--w-c1); }
.wg-form { align-items: start; }
.wg-form .wg-wide { grid-column: 1 / -1; }

/* Recommendations and trends (advice.js): Home's next best steps, the Trends page and suggested replies. */
.ad-steps { display: grid; gap: var(--w-s3); margin-bottom: var(--w-s4); }
.ad-steps-head { display: grid; gap: 2px; }
.ad-steps-head h2 { margin: 0; }
.ad-steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--w-s2); counter-reset: step; }
.ad-step { display: flex; align-items: center; gap: var(--w-s3); padding: var(--w-s3); border: 1px solid var(--w-line); border-radius: var(--w-r2); background: var(--w-surface); counter-increment: step; }
.ad-step::before { content: counter(step); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--w-surface-2); color: var(--w-ink-2); font-weight: 700; font-size: var(--w-fs-small); }
.ad-step-words { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ad-step .btn { flex: none; }
.ad-steps > .btn.link { justify-self: start; }
@media (max-width: 640px) { .ad-step { flex-wrap: wrap; } .ad-step .btn { margin-left: 40px; } }

.tr-body { display: grid; gap: var(--w-s4); margin-top: var(--w-s4); }
.tr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--w-s4); }
@media (max-width: 720px) { .tr-grid { grid-template-columns: 1fr; } }
.tr-card h2 { margin-top: 0; }
.tr-wide { grid-column: 1 / -1; }
.tr-list { margin: 0; padding-left: 1.4em; display: grid; gap: var(--w-s2); }
.tr-list li { display: flex; align-items: center; gap: var(--w-s2); }
.tr-name { flex: 1; min-width: 0; }
.tr-mine { display: grid; gap: var(--w-s3); }
.tr-game { display: grid; gap: var(--w-s2); padding-bottom: var(--w-s3); border-bottom: 1px solid var(--w-line); }
.tr-game:last-child { border-bottom: 0; padding-bottom: 0; }
.tr-game-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--w-s2); }
.tr-game-head a { font-weight: 600; }
.tr-tags { display: flex; flex-wrap: wrap; gap: var(--w-s2); }
.tr-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--w-surface-2); color: var(--w-ink-2); font-size: var(--w-fs-small); }
.tr-table { font-variant-numeric: tabular-nums; }
.tr-table td, .tr-table th { vertical-align: top; text-align: left; }
.tr-pair { display: grid; gap: 2px; justify-items: start; }
.tr-cmp td { text-align: right; }
.tr-cmp td.tr-label { text-align: left; color: var(--w-ink-2); }
.tr-cmp thead th { text-align: right; }
.tr-cmp thead th:first-child { text-align: left; }
.tr-best { font-weight: 700; }
.tr-picks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--w-s2) var(--w-s4); margin: var(--w-s3) 0; }
.tr-pick { display: inline-flex; align-items: center; gap: 6px; min-height: var(--w-control); }

.cm-suggest { display: grid; gap: var(--w-s2); justify-items: start; margin: var(--w-s2) 0; }
.cm-suggestion { display: block; width: 100%; text-align: left; padding: var(--w-s2) var(--w-s3); border: 1px solid var(--w-line); border-radius: var(--w-r2); background: var(--w-surface); color: var(--w-ink); font: inherit; cursor: pointer; min-height: var(--w-control); }
.cm-suggestion:hover, .cm-suggestion:focus-visible { border-color: var(--w-ink-3); background: var(--w-surface-2); }

/* ---- A support view (desk.js): Amigos support reading a brand's Compadres. Calm, never pink. */
.dk-support { display: flex; align-items: center; gap: var(--w-s3); flex-wrap: wrap; padding: var(--w-s3) var(--w-s4); margin-bottom: var(--w-s4);
  border-radius: var(--w-r3); background: var(--w-surface-2); border: 1px solid var(--w-line-strong); }
.dk-support > span { flex: 1 1 260px; color: var(--w-ink-2); }

/* ---- Compadres for creators (creator.html, creator.js): a Club member's earnings and brand deals. */
.cr-top { display: flex; align-items: center; gap: var(--w-s4); flex-wrap: wrap; padding: var(--w-s4) var(--w-s5); border-bottom: 1px solid var(--w-line); background: var(--w-surface); }
.cr-nav { display: flex; gap: var(--w-s2); flex: 1 1 auto; }
.cr-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--w-s4); border-radius: var(--w-pill); color: var(--w-ink-2); font-weight: 600; text-decoration: none; }
.cr-nav a:hover { background: var(--w-surface-2); }
.cr-nav a.on { background: var(--w-ink); color: var(--w-paper); }
.cr-who { display: flex; align-items: center; gap: var(--w-s2); flex-wrap: wrap; }
.cr-main { padding: var(--w-s6) var(--w-s5); max-width: 1120px; margin: 0 auto; outline: none; }
.cr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--w-s3); }
.cr-tile { gap: 4px; }
.cr-big { font: 600 30px/1.1 var(--w-font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--w-ink); }
.cr-note { color: var(--w-ink-2); padding: var(--w-s3) var(--w-s4); background: var(--w-surface-2); border: 1px solid var(--w-line); border-radius: var(--w-r3); }
.cr-chart { display: block; width: 100%; height: auto; }
.cr-bar { fill: var(--w-c1); }
.cr-hit { fill: transparent; }
.cr-chart rect.cr-hit:hover { fill: var(--w-ink); fill-opacity: .05; }
.cr-base { stroke: var(--w-line-strong); stroke-width: 1; }
.cr-axis { fill: var(--w-ink-3); font: 500 12px var(--w-font-ui); }
.cr-table td { padding: 6px 12px 6px 0; }
.cr-n { font-variant-numeric: tabular-nums; }
.cr-deal-head { display: flex; justify-content: space-between; gap: var(--w-s3); align-items: flex-start; flex-wrap: wrap; }
.cr-deal-head h2 { margin: 2px 0 0; }
.cr-text { white-space: pre-wrap; }
.cr-deal .pf-actions { display: flex; flex-wrap: wrap; gap: var(--w-s2); align-items: center; }
.cr-pick { width: auto; max-width: 100%; min-height: 44px; }
@media (max-width: 600px) { .cr-top, .cr-main { padding-left: 16px; padding-right: 16px; } .cr-big { font-size: 24px; } }

/* ---- Brand sign-up (/compadres/join, join.js): a top bar like the creators' page, the start with how it works
   beside the email card, the form as cards with a list of its sections, and the status as a track. Pink only for
   the mark and one .btn.hot per view (Send me a code, Continue, Send for review, Open Compadres or Start again). */
.jn-top { display: flex; align-items: center; gap: var(--w-s4); flex-wrap: wrap; justify-content: space-between; padding: var(--w-s4) var(--w-s5); border-bottom: 1px solid var(--w-line); background: var(--w-surface); }
.jn-home { text-decoration: none; }
.jn-who { display: flex; align-items: center; gap: var(--w-s2); flex-wrap: wrap; overflow-wrap: anywhere; }
.jn-main { padding: var(--w-s8) var(--w-s5) var(--w-s12); max-width: 1120px; margin: 0 auto; outline: none; }
.jn-start { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--w-s10); align-items: start; }
.jn-intro { display: grid; gap: var(--w-s4); }
.jn-intro h1 { font: 650 var(--w-fs-title)/1.15 var(--w-font-display); letter-spacing: -.02em; }
.jn-lede { color: var(--w-ink-2); max-width: 56ch; line-height: 1.55; }
.jn-how { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--w-s3); counter-reset: jn; }
.jn-how li { counter-increment: jn; display: grid; grid-template-columns: 32px 1fr; column-gap: var(--w-s3); row-gap: 2px; align-items: start; }
.jn-how li::before { content: counter(jn); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--w-surface-2); border: 1px solid var(--w-line); font-weight: 650; color: var(--w-ink); }
.jn-how span { color: var(--w-ink-3); font-size: var(--w-fs-small); line-height: 1.5; }
.jn-door { display: grid; gap: var(--w-s4); padding: var(--w-s6); box-shadow: var(--w-shadow-pop); border-radius: var(--w-r4); }
.jn-door form { display: grid; gap: var(--w-s2); }
.jn-door input, .jn-door .btn { min-height: 40px; }
.jn-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--w-s8); align-items: start; }
.jn-steps { position: sticky; top: var(--w-s5); display: grid; gap: 2px; }
.jn-steps a { display: flex; align-items: center; gap: var(--w-s2); min-height: var(--w-control); padding: 0 var(--w-s2); border-radius: var(--w-r2); color: var(--w-ink-2); text-decoration: none; font-weight: 500; font-size: var(--w-fs-small); }
.jn-steps a:hover { background: var(--w-surface-2); color: var(--w-ink); }
.jn-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--w-surface-2); border: 1px solid var(--w-line); font-size: 11px; font-weight: 650; color: var(--w-ink-2); flex: none; }
.jn-body { display: grid; gap: var(--w-s5); min-width: 0; }
.jn-form { display: grid; gap: var(--w-s4); }
.jn-sec { display: grid; gap: var(--w-s3); scroll-margin-top: var(--w-s5); }
.jn-sec h2, .jn-send h2, .jn-status h2 { font: 600 var(--w-fs-h2)/1.2 var(--w-font-display); }
.jn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--w-s3) var(--w-s4); }
.jn-field { display: grid; gap: 4px; align-content: start; }
.jn-field[hidden] { display: none; }
.jn-field input, .jn-field select, .jn-field textarea { width: 100%; }
.jn-field-error { color: var(--w-bad); font-weight: 600; }
.jn-field-error:empty { display: none; }
.jn-handle { display: flex; align-items: flex-end; gap: var(--w-s2); max-width: 420px; }
.jn-handle .jn-field { flex: 1; }
.jn-handle .jn-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.jn-at { font: 650 var(--w-fs-h2)/1 var(--w-font-display); color: var(--w-ink-3); padding-bottom: 7px; }
.jn-handle-says { display: flex; align-items: center; gap: var(--w-s1); flex-wrap: wrap; min-height: 24px; }
.jn-ideas { display: flex; align-items: center; gap: var(--w-s2); flex-wrap: wrap; }
.jn-goals { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--w-s4); }
.jn-goal { align-items: center; font-weight: 500; color: var(--w-ink); }
.jn-team { display: grid; gap: var(--w-s2); }
.jn-team:empty { display: none; }
.jn-member { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 130px auto; gap: var(--w-s2); align-items: center; }
.jn-member input, .jn-member select { width: 100%; }
.jn-roles summary { cursor: pointer; font-size: var(--w-fs-small); color: var(--w-ink-2); min-height: 32px; display: flex; align-items: center; }
.jn-roles ul { margin: var(--w-s1) 0 0; padding-left: var(--w-s5); display: grid; gap: 2px; font-size: var(--w-fs-small); color: var(--w-ink-2); }
.jn-agree { font-weight: 600; color: var(--w-ink); align-items: center; }
.jn-send { display: grid; gap: var(--w-s3); border-color: var(--w-line-strong); }
.jn-missing { margin: 0; padding-left: var(--w-s5); display: grid; gap: 2px; font-size: var(--w-fs-small); }
.jn-missing:empty { display: none; }
.jn-missing a { color: var(--w-warn); font-weight: 600; }
.jn-actions { display: flex; align-items: center; gap: var(--w-s3); flex-wrap: wrap; }
.jn-ask { align-items: flex-start; }
.jn-ask p { margin: 4px 0 0; white-space: pre-line; color: var(--w-ink); }
.jn-status { display: grid; gap: var(--w-s5); max-width: 760px; }
.jn-status .page-head { justify-items: start; gap: var(--w-s2); }
.jn-status .page-head h1 { font: 650 var(--w-fs-title)/1.15 var(--w-font-display); letter-spacing: -.02em; }
.jn-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--w-s2); }
.jn-track li { display: grid; gap: 4px; padding-top: var(--w-s3); border-top: 3px solid var(--w-surface-3); font-size: var(--w-fs-small); }
.jn-track li.done { border-top-color: var(--w-ok); }
.jn-track li.bad { border-top-color: var(--w-bad); }
.jn-track li.now { border-top-color: var(--w-ink); }
.jn-dot { display: none; }
.jn-next { margin: var(--w-s2) 0 0; padding-left: var(--w-s5); display: grid; gap: var(--w-s1); color: var(--w-ink-2); line-height: 1.5; }
.jn-facts { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: var(--w-s2) var(--w-s4); margin: var(--w-s2) 0 0; font-size: var(--w-fs-small); }
.jn-facts dt { color: var(--w-ink-3); font-weight: 600; }
.jn-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .jn-start, .jn-layout { grid-template-columns: 1fr; gap: var(--w-s6); }
  .jn-steps { display: none; }
  .jn-main { padding: var(--w-s5) var(--w-s4) var(--w-s10); }
}
@media (max-width: 560px) {
  .jn-grid, .jn-goals { grid-template-columns: 1fr; }
  .jn-member { grid-template-columns: 1fr 1fr; }
  .jn-member input[data-m=email] { grid-column: 1 / -1; }
  .jn-track { grid-template-columns: 1fr 1fr; }
  .jn-facts { grid-template-columns: 1fr; gap: 2px; }
  .jn-facts dd { margin-bottom: var(--w-s2); }
}
