/* Fake Artist (fa-). Tokens only, so light and dark mode both work.
   --pc is a player's drawing colour (content colour, same in both themes). */

.fa-stage,
.fa-intro {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.fa-head-side {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fa-center {
  display: flex;
  justify-content: center;
}
.fa-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* colour markers */
.fa-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--pc);
  border: var(--bw) solid var(--line);
  vertical-align: -3px;
}
.fa-title .fa-dot {
  width: 22px;
  height: 22px;
}
.fa-ring {
  display: inline-grid;
  padding: 3px;
  border-radius: 50%;
  background: var(--pc);
  flex: none;
}

/* shared canvas */
.fa-board {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-inline: auto;
  background: #ffffff;
  border: var(--bw) solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--shadow);
}
.fa-lg {
  width: min(100%, calc(58vh * 4 / 3));
}
.fa-md {
  width: min(100%, calc(46vh * 4 / 3));
}
.fa-sm {
  box-shadow: 4px 4px 0 var(--shadow);
}
.fa-thumb {
  box-shadow: none;
  border-radius: 10px;
}
.fa-board canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.fa-board.is-live {
  outline: 4px solid var(--pc);
  outline-offset: 3px;
}
.fa-board.is-live canvas {
  cursor: crosshair;
}
.fa-board-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #6b6f78;
  font-weight: 700;
  pointer-events: none;
}
.fa-board-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 2px solid #16161b;
  border-radius: 99px;
  background: #fbfbf8;
  color: #16161b;
  font-size: 14px;
  font-weight: 750;
  pointer-events: none;
}
.fa-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pc);
  animation: pulse 1s var(--ease) infinite;
}

/* role card (intro) */
.fa-role {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 22px 24px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--shadow);
  text-align: center;
  animation: fade-up 0.5s 0.3s var(--ease) both;
}
.fa-role-ic {
  width: 44px;
  height: 44px;
}
.fa-role-title {
  font-size: 24px;
  font-weight: 800;
}
.fa-role-cat {
  font-size: 15px;
}
.fa-role-cat span {
  opacity: 0.75;
}
.fa-role-label {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.75;
}
.fa-role-word {
  font-family: var(--meme);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.fa-role-tip {
  max-width: 42ch;
  font-size: 14px;
  opacity: 0.8;
}
.fa-role-artist {
  background: var(--accent);
  color: var(--accent-ink);
}
.fa-role-fake {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.fa-role-watch {
  border-style: dashed;
  box-shadow: none;
}
.fa-intro-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-weight: 700;
  animation: fade-up 0.5s 0.5s var(--ease) both;
}
.fa-intro-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fa-intro .intro {
  min-height: 0;
  padding-block: 0;
}

/* role bar (during the round) */
.fa-rolebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 14px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--surface);
  font-size: 15px;
}
.fa-rolebar .ic {
  width: 20px;
  height: 20px;
}
.fa-rolebar span {
  color: var(--ink-2);
}
.fa-rb-sep {
  width: 2px;
  height: 18px;
  margin-inline: 4px;
  background: var(--paper-2);
}
.fa-rb-word {
  font-family: var(--meme);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.fa-rolebar.is-artist {
  background: var(--accent);
  color: var(--accent-ink);
}
.fa-rolebar.is-artist span {
  color: inherit;
  opacity: 0.75;
}
.fa-rolebar.is-fake {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.fa-rolebar.is-fake span {
  color: inherit;
  opacity: 0.75;
}
.fa-rolebar.is-watch {
  border-style: dashed;
}

/* turn order strip */
.fa-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 8px;
  scrollbar-width: thin;
}
.fa-seat {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 76px;
  padding: 8px 4px 6px;
  border: var(--bw) solid transparent;
  border-radius: 14px;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.fa-seat.is-cur {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--shadow);
  transform: translateY(-3px);
}
.fa-seat-nm {
  max-width: 100%;
  font-size: 12.5px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fa-pips {
  display: flex;
  gap: 3px;
}
.fa-pips i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
}
.fa-pips i.done {
  background: var(--pc);
}
.fa-pips i.cur {
  background: var(--pc);
  animation: pulse 1s var(--ease) infinite;
}
.fa-pips i.skip {
  border-style: dashed;
  opacity: 0.5;
}

/* tips */
.fa-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-2);
  text-align: center;
}
.fa-tip.is-live {
  color: var(--ink);
  font-weight: 750;
}

/* vote */
.fa-vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.fa-vote {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 10px 12px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--shadow);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease), background-color 0.14s;
}
.fa-vote:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--shadow);
}
.fa-vote:disabled {
  cursor: default;
  opacity: 0.6;
}
.fa-vote.on {
  background: var(--danger);
  color: var(--danger-ink);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow);
  opacity: 1;
}
.fa-vote-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}
.fa-vote-check .ic {
  width: 13px;
  height: 13px;
}
.fa-vote-nm {
  max-width: 100%;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fa-vote-st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.75;
}
.fa-vote-st .ic {
  width: 14px;
  height: 14px;
}

/* guess */
.fa-guess {
  display: grid;
  gap: 12px;
  animation: pop-in 0.35s var(--ease) both;
}
.fa-guess-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  font-size: 17px;
}
.fa-guess-row {
  display: flex;
  gap: 10px;
}
.fa-guess-row .input {
  flex: 1;
  min-width: 0;
  font-size: 19px;
}
.fa-caught {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  /* always dark, so the lime icon stays readable in both themes */
  background: #16161b;
  color: #eef0e8;
}
.fa-caught .muted {
  color: inherit;
  opacity: 0.75;
}
.fa-caught-ic {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

/* reveal */
.fa-unmask {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  animation: pop-in 0.4s var(--ease) both;
}
.fa-unmask .fa-ring {
  animation: slam 0.6s var(--ease) both;
}
.fa-unmask-who {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.fa-unmask-who small,
.fa-wordcard small {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.fa-unmask-who strong {
  font-size: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fa-wordcard {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 18px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
}
.fa-wordcard small {
  color: inherit;
  opacity: 0.75;
}
.fa-wordcard strong {
  font-family: var(--meme);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
}
.fa-wordcard span {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
}
.fa-reveal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.fa-vote-list {
  display: grid;
  gap: 8px;
}
.fa-vrow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 12px;
}
.fa-vrow.is-fake {
  background: color-mix(in srgb, var(--danger) 22%, transparent);
}
.fa-vrow-nm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fa-vrow-by {
  display: flex;
}
.fa-vrow-by > span + span {
  margin-left: -6px;
}
.fa-vrow-by .av {
  border-width: 1.5px;
  font-size: 12px;
}
.fa-vrow-n {
  min-width: 28px;
  text-align: center;
  font-family: var(--meme);
  font-size: 20px;
}
.fa-vrow-n.is-top {
  color: var(--danger);
}

/* final gallery */
.fa-gallery {
  display: grid;
  gap: 16px;
}
.fa-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.fa-gcard {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.fa-gcard-body {
  display: grid;
  gap: 4px;
}
.fa-gcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fa-gcard-round {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.fa-gcard-word {
  font-size: 19px;
}
.fa-gcard-fake {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.fa-gcard-fake .av {
  border-width: 1.5px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .fa-unmask {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .fa-wordcard {
    grid-column: 1 / -1;
  }
  .fa-reveal-grid {
    grid-template-columns: 1fr;
  }
  .fa-vote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .fa-guess-row {
    flex-direction: column;
  }
  .fa-seat {
    width: 66px;
  }
}
