/* Word games: Categories (ca-), Bluff (bl-) and One Word (ow-), plus shared pieces (pg-). */

/* ---------------------------------------------------------------- shared */

.pg-stage {
  display: grid;
  gap: 18px;
}
.pg-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pg-head-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.pg-hint {
  margin: 0;
  font-weight: 650;
  text-align: center;
}
.pg-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: var(--bw) dashed var(--ink-2);
  border-radius: var(--r-ctl);
  font-weight: 700;
  font-size: 15px;
  animation: fade-up 0.4s var(--ease) both;
}
.pg-note .ic {
  flex: none;
}
.pg-done {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.pg-done-chip {
  padding: 3px 9px 3px 3px;
}
.pg-done-chip .av {
  border-width: 1.5px;
  font-size: 12px;
}
.pg-done-chip .nm {
  max-width: 10ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg-recap {
  display: grid;
  gap: 16px;
}
.pg-recap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pg-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ------------------------------------------------------------ categories */

.ca-board {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ca-letter {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--line);
  border-radius: 24px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 6px 6px 0 var(--shadow);
  font-family: var(--meme);
  font-size: 92px;
  line-height: 1;
  transform: rotate(-4deg);
  animation: pop-in 0.45s var(--ease) both;
  position: sticky;
  top: 90px;
}
.ca-letter.small {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 34px;
  box-shadow: 3px 3px 0 var(--shadow);
  position: static;
  animation: none;
}
.ca-form {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2.2vw, 22px);
}
.ca-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(96px, 30%) minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
}
.ca-cat {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}
.ca-field.ok .input {
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
}
.ca-field.bad .input {
  border-style: dashed;
}
.ca-warn {
  grid-column: 2;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.ca-actions {
  align-items: center;
}
.ca-stop-note {
  border-style: solid;
  background: var(--danger);
  color: var(--danger-ink);
}
.ca-check {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.ca-cat-card {
  padding: 14px 16px;
  box-shadow: 4px 4px 0 var(--shadow);
  animation: fade-up 0.4s var(--ease) both;
}
.ca-cat-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.ca-cat-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ca-ans {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}
.ca-ans .av {
  border-width: 1.5px;
  font-size: 14px;
}
.ca-ans-txt {
  display: grid;
  min-width: 0;
}
.ca-ans-txt strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}
.ca-ans-txt span {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
}
.ca-ans.blank strong,
.ca-ans.bad strong {
  color: var(--ink-2);
  font-weight: 600;
}
.ca-ans.bad strong,
.ca-ans.struck strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.ca-pts {
  min-width: 36px;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.ca-pts.won {
  color: var(--ink);
}
.ca-veto {
  --sh: 2px;
  min-height: 34px;
  width: 34px;
}
.ca-veto.on {
  background: var(--danger);
  color: var(--danger-ink);
}
.ca-veto-space {
  width: 34px;
}
.ca-totals h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.ca-total-list {
  display: grid;
  gap: 8px;
}
.ca-total {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  animation: fade-up 0.4s var(--ease) both;
}
.ca-total.me .nm {
  font-weight: 800;
}
.ca-total .nm {
  font-weight: 650;
}
.ca-total .pts {
  font-family: var(--meme);
  font-size: 24px;
}
.ca-recap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.ca-recap-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  box-shadow: 4px 4px 0 var(--shadow);
  animation: fade-up 0.4s var(--ease) both;
}
.ca-recap-card > div {
  display: grid;
  gap: 2px;
}
.ca-recap-stop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

/* ---------------------------------------------------------------- bluff */

.bl-card {
  padding: clamp(18px, 3vw, 30px);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.bl-q {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.bl-blank {
  display: inline-block;
  min-width: 4.5em;
  margin: 0 0.15em;
  padding: 0 0.3em;
  border-bottom: 4px solid var(--accent);
  color: var(--accent);
  line-height: 1.1;
}
.bl-blank.filled {
  border-bottom-style: solid;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  min-width: 0;
  animation: pop-in 0.5s var(--ease) both;
}
.bl-recap .bl-q,
.bl-recap .bl-blank {
  color: inherit;
}
.bl-form .field {
  width: 100%;
}
.bl-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bl-row .input {
  flex: 1 1 220px;
  min-height: 60px;
  font-size: 19px;
}
.bl-mine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.bl-mine strong {
  font-size: 20px;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
.bl-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.bl-opt {
  --sh: var(--lift);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 14px 16px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow);
  font-size: 18px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease), background-color 0.14s;
  animation: fade-up 0.35s var(--ease) both;
}
.bl-opt:hover:not([disabled]) {
  transform: translate(-1px, -1px);
  box-shadow: calc(var(--sh) + 1px) calc(var(--sh) + 1px) 0 var(--shadow);
}
.bl-opt.on {
  background: var(--accent);
  color: var(--accent-ink);
}
.bl-opt.mine {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  border-style: dashed;
}
.bl-opt-t {
  overflow-wrap: anywhere;
}
.bl-me {
  margin: 0;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
}
.bl-me.good {
  color: var(--ink);
}
.bl-reveal {
  display: grid;
  gap: 12px;
}
.bl-res {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  box-shadow: 4px 4px 0 var(--shadow);
  animation: fade-up 0.45s var(--ease) both;
}
.bl-res.truth {
  background: var(--accent);
  color: var(--accent-ink);
}
.bl-res-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bl-res-top strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.bl-pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bl-picker {
  padding: 3px 9px 3px 3px;
}
.bl-picker .av {
  border-width: 1.5px;
  font-size: 12px;
}
.bl-recap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.bl-recap-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  box-shadow: 4px 4px 0 var(--shadow);
  animation: fade-up 0.4s var(--ease) both;
}
.bl-recap-card .bl-q {
  font-size: 17px;
}
.bl-recap-card .bl-blank.filled {
  color: var(--accent-ink);
}

/* -------------------------------------------------------------- one word */

.ow-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.ow-word {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  animation: pop-in 0.45s var(--ease) both;
}
.ow-word .muted {
  color: inherit;
  opacity: 0.75;
  font-weight: 750;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ow-word strong {
  font-family: var(--meme);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.ow-wait {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}
.ow-wait p {
  margin: 0;
}
.ow-wait .ic {
  width: 40px;
  height: 40px;
}
.ow-clues {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.ow-clue {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  box-shadow: 4px 4px 0 var(--shadow);
  animation: pop-in 0.35s var(--ease) both;
}
.ow-clue strong {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.ow-clue.out {
  box-shadow: none;
  border-style: dashed;
  background: transparent;
}
.ow-clue.out strong {
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  color: var(--ink-2);
}
.ow-by {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
}
.ow-by .av {
  border-width: 1.5px;
  font-size: 11px;
}
.ow-why {
  font-size: 12px;
  font-weight: 800;
  color: var(--danger-ink);
  background: var(--danger);
  justify-self: start;
  padding: 1px 8px;
  border-radius: 99px;
}
.ow-strike {
  justify-self: start;
}
.ow-result {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ow-result > div {
  display: grid;
  gap: 2px;
}
.ow-result strong {
  font-family: var(--meme);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
}
.ow-result.right {
  background: var(--accent);
  color: var(--accent-ink);
}
.ow-result.right .muted {
  color: inherit;
  opacity: 0.8;
}
.ow-lost {
  font-weight: 750;
  font-size: 14px;
}
.ow-recap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.ow-recap-card {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  box-shadow: 4px 4px 0 var(--shadow);
  animation: fade-up 0.4s var(--ease) both;
}
.ow-recap-card > .ic {
  flex: none;
  width: 26px;
  height: 26px;
}
.ow-recap-card.right > .ic {
  color: #2b8a3e;
}
.ow-recap-card > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ow-recap-card strong {
  font-size: 18px;
}
.ow-recap-clues {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px;
  font-weight: 650;
}
.ow-recap-clues .out {
  text-decoration: line-through;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .ca-board {
    grid-template-columns: minmax(0, 1fr);
  }
  .ca-letter {
    width: 84px;
    height: 84px;
    font-size: 60px;
    border-radius: 18px;
    justify-self: center;
    position: static;
  }
  .ca-field {
    grid-template-columns: minmax(0, 1fr);
  }
  .ca-warn {
    grid-column: 1;
  }
  .ca-check {
    grid-template-columns: minmax(0, 1fr);
  }
  .bl-opts {
    grid-template-columns: minmax(0, 1fr);
  }
  .ow-clues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
