/* Styles shared by the game modes, shared by the big screen and the phone. */

/* the blank in a prompt or fact */
.blank { color: var(--sea-1); letter-spacing: 0.05em; }
.blank--truth { color: var(--ink); background: var(--sun); padding: 0 0.3em; border-radius: 8px; letter-spacing: 0; }

/* a name with its fish */
.who { display: inline-flex; align-items: center; gap: 0.35em; }
.who__av { display: grid; place-items: center; }
.who__name { font-weight: 600; }

/* ---------- punchline: the two answers side by side ---------- */
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 30px); flex: 1; align-content: center; width: min(1100px, 100%); margin: 0 auto; }
@media (max-width: 760px) { .duel { grid-template-columns: 1fr; } }
.duel__card { position: relative; padding: clamp(18px, 2.2vw, 30px); display: grid; gap: 0.8rem; align-content: center; min-height: 24vh; }
.duel__card.is-winner { background: var(--sun); box-shadow: var(--shadow), 0 0 0 5px var(--sun); }
.duel__letter {
  position: absolute;
  top: -16px;
  left: -14px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--water);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  font: 700 1.3rem var(--display);
}
.duel__text { margin: 0; text-align: center; font: 600 clamp(1.3rem, 2.6vw, 2.2rem) var(--display); line-height: 1.25; }
.duel__foot { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.duel__votes { font-weight: 600; }
.duel__votes b { font-size: 1.4em; }
.duel__voters { margin: 0; color: #555; font-size: 0.9rem; }
.sweep {
  position: absolute;
  right: -12px;
  top: -20px;
  transform: rotate(8deg);
  padding: 0.3em 0.9em;
  background: var(--coral);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font: 700 1.1rem var(--display);
  animation: pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1);
}

/* ---------- lists of answers (final round, bluff entries) ---------- */
.answers { display: grid; gap: 0.7rem; width: min(1000px, 100%); margin: 0 auto; }
.answers--grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); width: min(1200px, 100%); }
.answer { position: relative; padding: 1rem 1.2rem 1rem 3.6rem; display: grid; gap: 0.5rem; align-content: start; }
.answer p { margin: 0; font: 600 clamp(1.05rem, 1.8vw, 1.5rem) var(--display); line-height: 1.25; }
.answer__n {
  position: absolute;
  left: 0.8rem;
  top: 0.9rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--water);
  font-weight: 700;
}
.answer__foot { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.95rem; }
.answer__picks { font-weight: 600; color: #444; }
.answer.is-winner { background: var(--sun); }
.answer--entry.is-lie { background: #ffe3dc; }
.answer--entry.is-lie .answer__n { background: var(--coral); }
.answer--entry.is-truth { background: var(--sun); box-shadow: var(--shadow), 0 0 0 5px var(--sun); }
.answer--entry.is-truth .answer__n { background: var(--paper); }
.medal { padding: 0.15em 0.6em; border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; }
.medal--gold { background: var(--sun); }
.medal--silver { background: #e3e8f0; }
.medal--bronze { background: #e0a06a; }

/* ---------- doodle: the album on the big screen ---------- */
.album { display: grid; gap: 1.1rem; width: min(820px, 100%); margin: 0 auto; }
.album__entry { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.album__entry:nth-child(even) { grid-template-columns: 1fr auto; }
.album__entry:nth-child(even) .album__who { order: 2; }
.album__entry:nth-child(even) .album__text { border-radius: 18px 18px 4px 18px; }
.album__who { display: grid; justify-items: center; gap: 0.2rem; width: 96px; }
.album__who .name-chip { font-size: 0.8rem; padding: 0.25em 0.7em; }
.album__text {
  margin: 0;
  padding: 1rem 1.2rem;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: 18px 18px 18px 4px;
  box-shadow: var(--shadow-sm);
  font: 600 clamp(1.1rem, 2vw, 1.6rem) var(--display);
}
.album__img {
  display: block;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.album__entry:nth-child(even) .album__img { margin-left: auto; }
.album__img--missed { display: grid; place-items: center; color: #666; font-weight: 600; }

.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; width: min(1100px, 100%); margin: 0 auto; }
.albumcard { padding: 0.6rem; display: grid; gap: 0.5rem; }
.albumcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; }
.albumcard__blank { aspect-ratio: 4 / 3; border: 2.5px dashed var(--ink); border-radius: 10px; }
.albumcard__foot { display: grid; gap: 0.3rem; }
.albumcard__first { font-size: 0.9rem; color: #444; }

/* ---------- phone: tappable rows ---------- */
.pickrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font: 600 1rem var(--display);
  text-align: left;
  cursor: pointer;
}
.pickrow > span:not(.pickrow__badge):not(.chip) { flex: 1; }
.pickrow:disabled { opacity: 0.55; cursor: not-allowed; }
.pickrow.is-picked { background: var(--sun); }
.pickrow.is-lie { background: #ffe3dc; }
.pickrow.is-truth { background: var(--sun); }
.pickrow--static { cursor: default; }
.pickrow__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--water);
  font-weight: 700;
  font-size: 0.95rem;
}
.pickrow__sub { display: block; margin-top: 0.15rem; font-size: 0.78rem; color: #555; font-weight: 500; }
.pickrow--album img { flex: none; width: 76px; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; border: 2px solid var(--ink); border-radius: 8px; }
.pickrow--album small { font-weight: 500; color: #444; }
.doodle-src { width: 100%; max-width: 380px; aspect-ratio: 4 / 3; background: #fff; border: var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.tile .shape b { font: 700 1rem var(--display); }

.punchres { display: flex; gap: 0.7rem; padding: 0.8rem 1rem; align-items: flex-start; }
.punchres.is-winner { background: var(--sun); }
.punchres.is-mine { box-shadow: var(--shadow), 0 0 0 4px var(--kelp); }
.punchres__text { margin: 0; font: 600 1.05rem var(--display); }
.punchres__by { margin: 0.2rem 0 0; font-size: 0.85rem; color: #444; }
.pickres { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.pickres__row { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.6rem; padding: 0.7rem 0.9rem; }
.pickres__row.is-mine { background: var(--sun); }
.pickres__text { font-weight: 600; }
.pickres__by { grid-column: 1; font-size: 0.85rem; color: #444; }
.pickres__pts { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; }

/* ---------- the sketchpad ---------- */
.sketch { display: grid; gap: 0.5rem; }
.sketch__canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  touch-action: none;
  cursor: crosshair;
}
.sketch__tools { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.sketch__colours { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.sketch__colour { width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--c); border: 2.5px solid var(--ink); cursor: pointer; }
.sketch__colour.is-on { outline: 3px solid var(--sun); outline-offset: 2px; }
.sketch__sizes { display: flex; gap: 0.3rem; }
.sketch__size { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); cursor: pointer; }
.sketch__size i { display: block; border-radius: 50%; background: var(--ink); }
.sketch__size.is-on { background: var(--sun); }
.sketch__btn {
  padding: 0.5em 1em;
  font: 600 1rem var(--display);
  color: var(--ink);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}
.sketch__btn:active { transform: translate(2px, 2px); box-shadow: none; }
