/**
 * Chalk & Settle — Game catalog / launcher (Phase 3 · screen 2)
 * Wire: APPROVED — Game catalog / launcher (June 16 2026)
 */

#screen-picker.cs-cat-picker {
  padding-top: 0;
}

.cs-cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 0;
}

.cs-cat-trial {
  background: #f3ecd9;
  color: #8a6e27;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 20px;
  border: none;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.cs-cat-trial--guest {
  background: #faf0d7;
  color: #9a7b2d;
  font-weight: 600;
  font-size: 10.5px;
  padding: 4px 10px;
  cursor: pointer;
}

.cs-cat-trial--hidden {
  visibility: hidden;
  pointer-events: none;
}

.cs-cat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.cs-cat-avatar--hidden {
  visibility: hidden;
  pointer-events: none;
}

.cs-cat-head {
  padding: 14px 0 4px;
}

.cs-cat-title {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: var(--forest);
  margin: 0;
  line-height: 1.1;
}

.cs-cat-nudge {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.cs-cat-section {
  padding-top: 20px;
}

.cs-cat-section-hd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 9px;
}

.cs-cat-section-hd h2 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.01em;
  margin: 0;
}

.cs-cat-section-meta {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
}

.cs-cat-section-note {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  margin: -4px 0 10px;
  line-height: 1.45;
}

.cs-cat-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cs-cat-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--motion-fast);
}

.cs-cat-card:active {
  transform: scale(0.992);
}

.cs-cat-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #eeeae0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  flex-shrink: 0;
}

.cs-cat-ic svg {
  width: 22px;
  height: 22px;
}

.cs-cat-body {
  flex: 1;
  min-width: 0;
}

.cs-cat-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.cs-cat-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--forest);
}

.cs-cat-badge {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
}

.cs-cat-badge--play {
  background: rgba(59, 109, 17, 0.12);
  color: var(--birdie);
}

.cs-cat-badge--soon {
  background: #eae5db;
  color: #9a9183;
}

.cs-cat-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary, #6b6560);
  margin-top: 3px;
  line-height: 1.4;
  min-height: calc(1.4em * 2);
}

.cs-cat-players {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 3px 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cs-cat-chev {
  color: #c8c2b8;
  flex-shrink: 0;
  margin-top: 4px;
  display: flex;
}

.cs-cat-chev svg {
  width: 16px;
  height: 16px;
}

/* Coming soon band */
.cs-cat-section--soon .cs-cat-card {
  background: transparent;
  border-color: #e6e1d6;
  cursor: default;
}

.cs-cat-section--soon .cs-cat-card:active {
  transform: none;
}

.cs-cat-section--soon .cs-cat-ic {
  background: #ece8df;
  color: #bbb3a6;
}

.cs-cat-section--soon .cs-cat-name {
  color: #8a847a;
}

.cs-cat-section--soon .cs-cat-desc {
  color: #a8a096;
}

.cs-cat-section--soon .cs-cat-players {
  color: #b5ada2;
  border-color: #e6e1d6;
}

/* Request a game */
.cs-cat-request {
  margin-top: 6px;
  border: 1px dashed #cfc8bb;
  border-radius: 14px;
  padding: 15px;
  text-align: center;
}

.cs-cat-request h3 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--forest);
  margin: 0 0 3px;
  font-weight: 700;
}

.cs-cat-request p {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 11px;
}

.cs-cat-request-btn {
  display: inline-block;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  border-radius: 11px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

/* Rules bottom sheet */
.cs-cat-scrim {
  position: fixed;
  inset: 0;
  z-index: 520;
  background: rgba(27, 61, 47, 0.34);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.cs-cat-scrim.on {
  display: flex;
}

.cs-cat-sheet {
  width: 100%;
  max-width: 430px;
  background: var(--cream);
  border-radius: 26px 26px 0 0;
  padding: 8px 20px 22px;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cs-cat-grip {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: #d8d2c6;
  margin: 0 auto 14px;
}

.cs-cat-sheet-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cs-cat-sheet-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #eeeae0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  flex-shrink: 0;
}

.cs-cat-sheet-ic svg {
  width: 24px;
  height: 24px;
}

.cs-cat-sheet-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--forest);
  margin: 0;
  line-height: 1.15;
}

.cs-cat-sheet-players {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 3px 8px;
  display: inline-block;
  margin-top: 3px;
}

.cs-cat-mg-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--clay);
  margin-bottom: 12px;
}

.cs-cat-rblock {
  margin-bottom: 14px;
}

.cs-cat-rblock h4 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #9a7b2d;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 6px;
}

.cs-cat-rblock ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cs-cat-rblock li {
  font-family: var(--font-body);
  font-size: 13px;
  color: #4a453e;
  line-height: 1.4;
  padding-left: 15px;
  position: relative;
}

.cs-cat-rblock li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--olive);
}

.cs-cat-rblock p {
  font-family: var(--font-body);
  font-size: 13px;
  color: #4a453e;
  line-height: 1.45;
  margin: 0;
}

.cs-cat-start-btn {
  width: 100%;
  min-height: var(--touch-min);
  background: var(--forest);
  color: var(--cream);
  border: none;
  border-radius: 13px;
  padding: 15px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}

.cs-cat-start-btn:active {
  opacity: 0.94;
  transform: scale(0.99);
}

.cs-cat-foot-spacer {
  height: 26px;
}

/* Hide legacy catalog chrome superseded by wire */
#screen-picker.cs-cat-picker .catalog-toolbar,
#screen-picker.cs-cat-picker .picker-top-bar,
#screen-picker.cs-cat-picker .greeting,
#screen-picker.cs-cat-picker #cs-ob-guest-foot,
#screen-picker.cs-cat-picker #cs-ob-guest-pill {
  display: none !important;
}

#screen-picker.cs-cat-picker .section-label {
  display: none;
}
