/*
 * PHASE 8K -- LIVE UX DEFECTS
 *
 * Linked LAST, so these rules win over game.css, phase6.css and phase74.css by
 * order as well as by specificity. Presentation only: no source image is
 * changed, and the card still requests the 800px `card` derivative.
 */

/* ==========================================================================
   PRIZE CARDS SHOW THE WHOLE ITEM
   ==========================================================================

   THE DEFECT. Two rules cropped every prize photo on the Prizes screen:

     game.css    .prize__img { height: 100%; object-fit: cover }
                 -- fill the 16:10 box by cutting the photograph down to it;
     phase6.css  .prize__img { height: auto }
                 -- loaded later, so a portrait photo was laid out at its own
                 height inside an `overflow: hidden` box and lost its bottom.

   A player could not tell what some prizes were until they opened them. The
   card now FITS the photograph inside a padded box -- `contain`, centred, on
   the card's own neutral background -- so every shape shows the whole item.

   4:3 rather than 16:10: most prize photos are phone photos, which are taller
   than they are wide, and a deeper box keeps them a useful size. A very wide
   photo is letterboxed instead, which is the right way round to be wrong. */

.prize__media {
  aspect-ratio: 4 / 3;
}

.prize__media > .prize__img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  max-width: none;
  object-fit: contain;
  object-position: center;
  /* The box is the backdrop; a tinted image rectangle would show its edges. */
  background: transparent;
}

/* ==========================================================================
   GUESS THE OTHERS -- ONE CARD PER COMPLETED QUESTION
   ==========================================================================

   THE DEFECT. Answered questions were separated by a hairline, and each one
   carried a full-size state band ("YOU GOT IT RIGHT") that was louder than the
   question it was about. A finished round read as one long smear of banners.

   Each answered question is now its own bordered card with a fixed order:
   ABOUT [PERSON] (small), THE QUESTION (largest), YOUR RESULT (a compact
   chip), THE CORRECT ANSWER (when the server has revealed it). The result
   keeps a mark as well as a colour -- state is never colour-only. */

.today-answers .today-question--done {
  gap: 0.5rem;
  padding: 0.85rem 0.95rem 0.95rem;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--bg-elev-2);
}

.today-answers .today-question--done + .today-question,
.today-answers .today-question + .today-question--done {
  margin-top: 0.35rem;
}

.today-question--done.today-question--right { border-left-color: var(--accent); }
.today-question--done.today-question--wrong { border-left-color: var(--danger); }

.today-question--done .dailycard__eyebrow { margin: 0; }

.today-question--done .today-question__prompt {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.today-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0;
}

.today-result__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.today-result__chip--right { color: var(--accent); }
.today-result__chip--wrong { color: var(--text-dim); }

/* Phase 8R: LOCKED IN, NOT REVEALED. Deliberately neither colour above and no
   mark: the state is said in words, and nothing about it is right or wrong
   until the 20:00 reveal. The left border stays the neutral line colour. */
.today-question--done.today-question--locked { border-left-color: var(--line); }
.today-result__chip--locked { color: var(--text); }
.today-result__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.today-result__said {
  font-size: 0.85rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.today-question--done .result-block { margin-top: 0.15rem; }

.today-question--done .result-question__answer {
  margin: 0;
  display: grid;
  gap: 0.15rem;
  overflow-wrap: anywhere;
}
