/* LIVE/DIE calls in the reveal lower third (hud/predict.js). */

.predict-slot { width: 100%; }
.predict-slot:empty { display: none; }
.predict { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.predict-ask { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.predict-label {
  flex: none;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-yellow);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.predict-btn {
  --tone: var(--c-green);
  --shade: #00804a;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1.5px solid var(--tone);
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 20%, rgba(7, 8, 22, 0.92));
  color: var(--c-text);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 var(--shade), 0 0 22px color-mix(in srgb, var(--tone) 35%, transparent);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
  animation: predict-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.predict-die { --tone: var(--c-red); --shade: #85001f; animation-delay: 0.06s; }
.predict-btn:hover { filter: brightness(1.15); }
.predict-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shade), 0 0 14px color-mix(in srgb, var(--tone) 35%, transparent); }
.predict-icon { color: var(--tone); font-size: 1.05rem; line-height: 1; }
.predict-word { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.predict-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--tone);
  color: #05060f;
  font-size: 0.62rem;
  line-height: 1.4;
}
.predict-count:empty { display: none; }
.predict-key { color: var(--c-text); border-color: color-mix(in srgb, var(--tone) 60%, transparent); }
.predict.no-keys .predict-key { display: none; }
@keyframes predict-in { from { opacity: 0; transform: translateY(8px) scale(0.9); } }

.predict-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 30px; }
.predict-mine { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.predict-mine:empty { display: none; }
.predict-mine-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-dim);
}
.predict-mine-call {
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.predict-mine-call.is-live { background: rgba(0, 255, 136, 0.16); border: 1px solid var(--c-green); color: var(--c-green); }
.predict-mine-call.is-die { background: rgba(255, 51, 85, 0.16); border: 1px solid var(--c-red); color: #ffb3c0; }
.predict-mine-call.is-pending { opacity: 0.7; }
.predict.is-called .predict-mine-call { animation: chip-pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.5) both; }

.predict-chips { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.predict-chip {
  --seat: var(--c-cyan);
  --tone: var(--c-green);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 26px;
  padding: 0 7px 0 2px;
  border-radius: 999px;
  background: rgba(7, 8, 22, 0.86);
  border: 1.5px solid var(--seat);
  animation: chip-pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.5) both;
}
.predict-chip.is-die { --tone: var(--c-red); }
.predict-chip-avatar { width: 20px; text-align: center; font-size: 0.9rem; line-height: 1; }
.predict-chip i { font-style: normal; font-size: 0.72rem; font-weight: 900; color: var(--tone); }
.predict-more { font-size: 0.7rem; font-weight: 700; color: var(--c-dim); }

@media (orientation: landscape) and (min-width: 700px) {
  .predict { align-items: center; }
  .predict-ask { width: min(100%, 520px); }
  .predict-status { justify-content: center; }
}

/* Phone landscape: the lower third is a sidebar (captions.css). */
@media (orientation: landscape) and (min-width: 700px) and (max-height: 500px) {
  .predict { align-items: stretch; }
  .predict-ask { width: 100%; }
  .predict-label { display: none; }
  .predict-btn { min-height: 44px; padding: 0 8px; gap: 5px; font-size: 0.76rem; letter-spacing: 0.02em; }
  .predict-status { justify-content: flex-start; }
}

/* Narrow phones: the question is obvious from the two buttons. */
@media (max-width: 400px) {
  .predict-label { display: none; }
  .predict-btn { min-height: 44px; padding: 0 8px; gap: 6px; font-size: 0.84rem; letter-spacing: 0.03em; }
}

@media (prefers-reduced-motion: reduce) {
  .predict-btn, .predict-chip, .predict.is-called .predict-mine-call { animation: none; }
}
