/* ==========================================================================
   Prediction panel — additions on top of app.css
   ========================================================================== */

.brand-mini { display: flex; align-items: center; gap: 8px; }
.brand-mini b { font-size: 14px; font-weight: 900; }

/* --- points ------------------------------------------------------------- */
.points-card {
  display: block; width: 100%; text-align: right;
  background: var(--fill); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px; transition: border-color .18s;
}
.points-card:hover { border-color: var(--line-2); }
.points-card .num { display: block; font-size: 19px; font-weight: 900; color: var(--accent-soft); }
.points-card .plus { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.points-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--fill-2); border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: 5px 12px; font-size: 12px;
}
.points-pill b { font-size: 14px; font-weight: 900; color: var(--accent-soft); }
.points-pill span { color: var(--muted); font-size: 11px; }
.points-pill i {
  font-style: normal; font-weight: 900; color: var(--text);
  background: var(--accent); border-radius: 50%; width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
  animation: mgPulse 1.8s ease-in-out infinite;
}

.guest-card {
  background: var(--fill); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 14px;
}
.guest-card b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 4px; }

/* --- team badge --------------------------------------------------------- */
.tbadge {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: var(--r-sm);
  background: var(--fill-2); border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; overflow: hidden;
}
.tbadge img { width: 100%; height: 100%; object-fit: cover; }

/* --- match cards -------------------------------------------------------- */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .games { grid-template-columns: 1fr; gap: 10px; } }

.game {
  background: var(--fill); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px; transition: border-color .18s;
}
.game:hover { border-color: var(--line-2); }
.game.is-picked { border-color: rgba(187,64,51,.4); }

.game-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; font-size: 11px; color: var(--muted); margin-bottom: 12px;
}
.game-top .when { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.game-top .stage { color: var(--faint); }

.game-teams {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 13px;
}
.game-teams .side { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.game-teams .side.away { flex-direction: row; justify-content: flex-end; }
.game-teams b {
  font-size: 13.5px; font-weight: 800;
  overflow-wrap: anywhere; line-height: 1.35;
}
.game-teams .vs { color: var(--faint); font-size: 12px; flex: 0 0 auto; }

.game-cta { width: 100%; }
.game-foot { font-size: 12px; color: var(--muted); text-align: center;
             padding-top: 4px; display: flex; align-items: center;
             justify-content: center; gap: 7px; flex-wrap: wrap; }
.game-foot.closed { color: var(--faint); }
.game-foot b { color: var(--text); }

/* --- prediction rows ---------------------------------------------------- */
.preds { display: flex; flex-direction: column; gap: 9px; }
.pred {
  display: flex; align-items: center; gap: 12px;
  background: var(--fill); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px;
}
.pred .match { font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.pred .pick  { font-size: 11.5px; color: var(--muted); }
.pred .pick b { color: var(--accent-soft); }
.pred .right { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.pred .pts { font-size: 14px; font-weight: 900; direction: ltr; }
.pred .pts.up   { color: var(--ok); }
.pred .pts.down { color: var(--danger); }

/* --- status chips ------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 800; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--fill-2); color: var(--muted);
}
.chip.ok   { color: var(--ok);     background: var(--ok-bg);     border-color: var(--ok-br); }
.chip.lost { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-br); }
.chip.wait { color: var(--warn);   background: var(--warn-bg);   border-color: var(--warn-br); }
.chip.wait i { width: 5px; height: 5px; border-radius: 50%; background: currentColor;
               animation: mgBlink 1.4s infinite; }

/* --- leaderboard -------------------------------------------------------- */
.board td.ltr { direction: ltr; text-align: left; }
.my-rank { border-color: rgba(187,64,51,.4); background: var(--accent-dim); }
.my-rank .accent { color: var(--accent-soft); }

/* --- pick grid inside the sheet ---------------------------------------- */
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pick {
  padding: 16px 12px; border-radius: var(--r-md); text-align: center;
  background: rgba(44,44,41,.7); border: 1px solid var(--line-2);
  transition: border-color .18s, background .18s;
}
.pick:hover { border-color: rgba(187,64,51,.5); }
.pick.is-active { border-color: var(--accent); background: var(--accent-dim); }
.pick .tbadge { margin: 0 auto 9px; width: 42px; height: 42px; flex-basis: 42px;
                font-size: 17px; border-radius: 13px; }
.pick .nm  { display: block; font-size: 13.5px; font-weight: 800; }
.pick .cap { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }

/* --- sheet feedback ----------------------------------------------------- */
.sheet-err {
  font-size: 12.5px; font-weight: 700; color: var(--danger);
  background: var(--danger-bg); border: 1px solid var(--danger-br);
  border-radius: var(--r-xs); padding: 9px 12px; margin-bottom: 14px;
}
.sheet-err.is-info { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-br); }

.ok-mark {
  width: 62px; height: 62px; margin: 4px auto 14px; border-radius: 50%;
  background: var(--ok-bg); border: 1px solid var(--ok-br);
  color: var(--ok); font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  animation: mgPop .5s cubic-bezier(.22,1,.36,1);
}

/* --- rewards ladder ----------------------------------------------------- */
.reward {
  display: flex; align-items: center; gap: 12px;
  background: var(--fill); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 14px; margin-bottom: 9px;
}
.reward.locked   { opacity: .45; }
.reward.approved { border-color: var(--ok-br); background: var(--ok-bg); }
.reward.pending  { border-color: var(--warn-br); }
.reward .side { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; flex-wrap: wrap;
                justify-content: flex-end; }
.reward-pts {
  font-size: 13px; font-weight: 900; color: var(--gold);
  background: rgba(230,192,106,.12); border: 1px solid rgba(230,192,106,.35);
  border-radius: var(--r-pill); padding: 3px 11px; white-space: nowrap;
}

/* ==========================================================================
   Reviewer round 2
   ========================================================================== */

/* --- the whole match card is the hit area --------------------------------- */
.game.is-clickable { cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.game.is-clickable:hover { border-color: var(--accent); background: var(--fill-2); }
.game.is-clickable:active { transform: translateY(1px); }
.game.is-clickable:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.game.is-clickable .game-cta { pointer-events: none; }

/* --- stat tiles: score on top, the pair beneath --------------------------- */
.stat-stack { display: flex; flex-direction: column; gap: 12px; }
.stat-stack .stat.wide { padding: 20px 16px; }
.stat-stack .stat.wide .num { font-size: 32px; }
.stat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* --- OTP step: the number must read left-to-right ------------------------- */
.phone-shown {
  direction: ltr; unicode-bidi: isolate; display: inline-block;
  font-weight: 800; color: var(--text);
}

.done-title {
  text-align: center; font-size: 18px; font-weight: 900;
  margin-bottom: 16px; color: var(--text);
}

/* --- "get more points": a button that asks to be pressed ------------------ */
.points-readout {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 0 4px 8px;
}
.points-readout .num { font-size: 20px; font-weight: 900; color: var(--accent-soft); }

.more-points {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  padding: 11px 14px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--accent), #d4553f);
  color: var(--text); font-size: 12.5px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(187,64,51,.38);
  animation: mgHeartbeat 2.2s ease-in-out infinite;
  position: relative; overflow: hidden;
}
.more-points::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  animation: mgSheen 3.2s ease-in-out infinite;
}
.more-points:hover { filter: brightness(1.09); }
.more-points:active { transform: translateY(1px); }
.more-points .spark { font-size: 15px; animation: mgWiggle 2.2s ease-in-out infinite; }
.more-points.compact { width: auto; padding: 8px 14px; font-size: 12px; }

@keyframes mgHeartbeat {
  0%, 100%   { transform: scale(1); box-shadow: 0 8px 22px rgba(187,64,51,.38); }
  8%         { transform: scale(1.045); box-shadow: 0 10px 28px rgba(187,64,51,.55); }
  16%        { transform: scale(1); }
  24%        { transform: scale(1.03); }
  32%        { transform: scale(1); }
}
@keyframes mgSheen {
  0%, 62%  { transform: translateX(-160%); }
  86%, 100%{ transform: translateX(320%); }
}
@keyframes mgWiggle {
  0%, 70%, 100% { transform: rotate(0); }
  78%           { transform: rotate(-16deg) scale(1.12); }
  86%           { transform: rotate(14deg) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .more-points, .more-points::after, .more-points .spark { animation: none; }
}
