.ch-how { background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
/* segmented choices: the pressed one is a pink road sign */
.ch-platform, .ch-groups { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); max-width: 100%; }
.ch-platform button, .ch-groups button { min-height: 36px; padding: 6px 12px 4px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.ch-platform button:hover, .ch-groups button:hover { background: var(--line); }
.ch-platform button[aria-pressed="true"], .ch-groups button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); font-weight: 800; box-shadow: inset 0 0 0 2px var(--on-primary); }
.ch-platform button:focus-visible, .ch-groups button:focus-visible, .ch-known:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.ch-steps { margin: 12px 0 0; padding-left: 22px; }
.ch-steps li { margin: 6px 0; }
.ch-steps li::marker { color: var(--primary); font-weight: 800; }
.ch-warn { margin: 12px 0 0; padding: 8px 12px 6px; border-left: 4px solid var(--lime); background: var(--card); border-radius: 0 6px 6px 0; color: var(--cream); font-size: 15px; font-weight: 600; }
/* D-pad and shoulder buttons: small pink sign keys */
kbd { display: inline-block; min-width: 26px; padding: 1px 6px 0; border-radius: 6px; background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1.5px var(--on-primary), 0 2px 0 var(--primary-dark); font-family: inherit; font-weight: 800; font-size: 14px; line-height: 22px; text-align: center; }
kbd[hidden] { display: none; }
.ch-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 16px 0; position: sticky; top: var(--head-h, 0px); z-index: 5; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line); }
.ch-search { flex: 1 1 240px; min-width: 0; height: 44px; padding: 0 14px; border-radius: 8px; border: 2px solid var(--muted); background: var(--card); color: var(--text); font: inherit; font-size: 16px; }
.ch-search::placeholder { color: var(--muted); opacity: 1; }
.ch-search:focus { outline: none; border-color: var(--lime); }
.ch-opt { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; font-size: 15px; color: var(--text); cursor: pointer; }
.ch-known { appearance: none; -webkit-appearance: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0; flex: none; border: 2px solid var(--muted); border-radius: 5px; background: var(--bg-deep); cursor: pointer; }
.ch-known::after { content: ""; width: 6px; height: 10px; margin-top: -3px; border-right: 3px solid var(--on-primary); border-bottom: 3px solid var(--on-primary); transform: rotate(45deg); opacity: 0; }
.ch-known:checked { background: var(--lime); border-color: var(--lime); }
.ch-known:checked::after { opacity: 1; }
.ch-count { font-size: 15px; font-weight: 700; color: var(--cream); margin-left: auto; font-variant-numeric: tabular-nums; }
/* group heading: outlined pink plate */
.ch-section h2 { display: inline-block; margin: 28px 0 12px; padding: 5px 12px 3px; border: 2px solid var(--primary); border-radius: 7px; color: var(--primary); font-size: 20px; }
.ch-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.ch-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.ch-card:hover { border-color: var(--primary); }
.ch-card h3 { margin: 0; font-size: 18px; color: var(--cream); }
.ch-card p { margin: 0; font-size: 15px; color: var(--muted); }
.ch-code { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ch-code kbd { font-size: 17px; min-width: 30px; line-height: 28px; }
.ch-nocode { font-size: 14px; color: var(--muted); font-style: italic; }
.ch-badge { justify-self: start; font-size: 14px; font-weight: 800; padding: 3px 9px 1px; border-radius: 6px; background: var(--lime); color: var(--on-primary); }
.ch-unlock strong { color: var(--text); font-weight: 700; }
.ch-code + .ch-code::before { content: "or"; align-self: center; margin-right: 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .ch-bar { gap: 8px; padding: 8px 0; }
  .ch-opt { gap: 6px; }
  .ch-search { flex-basis: 100%; }
  /* one scrollable row of types so the sticky bar stays short on phones */
  .ch-groups { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; }
  .ch-groups button { flex: none; white-space: nowrap; }
  .ch-count { font-size: 14px; }
  .ch-card p, .ch-steps li { font-size: 15px; }
}
