/* showdown-autopilot.css */
/* ============================================================
   CLASSROOM SHOWDOWN — the Autopilot screen (showdown-autopilot.js), on the
   board's 1672 × 941 stage: the blue bar and logo from showdown-board.css,
   a top band (mode · counter + clock · join code), the scoreboard as a
   grid of cards ranked by points, a status line and four buttons.
   ============================================================ */
.sh-stage-auto > *{position:absolute}
.ap-top{left:385px;top:64px;z-index:4;display:flex;align-items:center;gap:12px}
.ap-modep{display:flex;align-items:center;gap:14px;width:330px;height:104px;padding:0 20px}
.ap-mode-ico{width:54px;height:54px;flex:0 0 auto}
.ap-modet{min-width:0;line-height:1.15}
.ap-mode-lab{font-family:var(--display);font-size:26px;font-weight:700;color:var(--ink);letter-spacing:.04em}
.ap-game{font-size:14px;font-weight:800;color:var(--royal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px}
.ap-clockp{width:560px;height:104px;padding:10px 22px 8px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.ap-counter{font-family:var(--display);font-size:22px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ap-bar{height:14px;border-radius:99px;background:#DCEFFF;overflow:hidden}
.ap-bar-fill{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#50E8FF,#2F63D8);transition:width .9s linear}
.ap-bar-fill.ap-bar-low{background:linear-gradient(90deg,#FFC52E,#F0441F)}
.ap-clock{font-size:15px;font-weight:900;color:var(--grey);font-variant-numeric:tabular-nums}
.ap-codep{width:330px;height:104px;padding:6px 14px 0;display:flex;flex-direction:column;align-items:center}
.ap-code{font-family:var(--display);font-size:38px;font-weight:700;letter-spacing:.06em;font-variant-numeric:tabular-nums;color:var(--ink);line-height:1.1}
.ap-code-sub{font-size:13px;font-weight:800;color:var(--royal)}

/* the scoreboard — every team on screen, ranked */
.ap-list{left:120px;top:214px;width:1432px;height:560px;z-index:3;display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);align-content:stretch}
.ap-list-md{grid-template-columns:repeat(3,minmax(0,1fr))}
.ap-list-sm{grid-template-columns:repeat(3,minmax(0,1fr))}
.ap-list-xs{grid-template-columns:repeat(4,minmax(0,1fr))}
.ap-card{
  display:flex;align-items:center;gap:16px;min-width:0;padding:14px 22px;
  background:linear-gradient(180deg,#FFFFFF,#F1F8FF);border:4px solid var(--tc,#7E858F);border-radius:30px;
  box-shadow:0 12px 30px rgba(20,85,170,.16);transition:transform .25s ease,box-shadow .25s ease;
}
.ap-card-win{transform:scale(1.03);box-shadow:0 0 0 6px rgba(255,197,46,.55),0 16px 40px rgba(20,85,170,.22)}
.ap-card-av{flex:0 0 auto}
.ap-card-mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.ap-card-name{font-family:var(--display);font-size:28px;font-weight:700;line-height:1.1;color:var(--tc,var(--ink));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ap-card-sub{font-size:15px;font-weight:800;color:var(--grey);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ap-card-pows{display:flex;flex-wrap:wrap;gap:4px;max-height:52px;overflow:hidden}
.ap-card-pows:empty{display:none}
.ap-card-pts{flex:0 0 auto;font-family:var(--display);font-size:52px;font-weight:700;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.ap-list-md .ap-card{padding:12px 18px;gap:12px}
.ap-list-md .ap-card-name{font-size:23px}
.ap-list-md .ap-card-pts{font-size:42px}
.ap-list-md .sh-av-lg{width:64px;height:64px}
.ap-list-sm .ap-card{padding:10px 14px;gap:10px;border-width:3px;border-radius:22px}
.ap-list-sm .ap-card-name{font-size:19px}
.ap-list-sm .ap-card-sub{font-size:13px}
.ap-list-sm .ap-card-pts{font-size:34px}
.ap-list-sm .sh-av-lg{width:50px;height:50px}
.ap-list-xs .ap-card{padding:8px 12px;gap:8px;border-width:3px;border-radius:18px}
.ap-list-xs .ap-card-name{font-size:16px}
.ap-list-xs .ap-card-sub{font-size:12px}
.ap-list-xs .ap-card-pts{font-size:28px}
.ap-list-xs .sh-av-lg{width:40px;height:40px}
.ap-list-xs .ap-card-pows{max-height:24px}

/* the line and the buttons */
.ap-foot{left:120px;top:796px;width:1432px;height:120px;z-index:4;display:flex;align-items:center;gap:16px}
.ap-line{flex:1;min-width:0;padding:14px 24px;font-family:var(--display);font-size:24px;font-weight:600;color:var(--ink);line-height:1.25;border-radius:28px}
.ap-line-win{background:linear-gradient(180deg,#FFF6D6,#FFE9A8);border-color:#FFC52E}
.ap-line-miss{background:linear-gradient(180deg,#FFF,#FFECE8);border-color:#F0441F}
.ap-acts{flex:0 0 auto;display:flex;align-items:center;gap:10px}
.ap-btn{
  display:flex;align-items:center;justify-content:center;gap:8px;height:62px;padding:0 22px;
  border:3px solid #9DD6FF;border-radius:999px;background:#fff;color:var(--royal);cursor:pointer;
  font-family:var(--display);font-size:19px;font-weight:700;white-space:nowrap;
  box-shadow:0 6px 16px rgba(20,85,170,.16);
}
.ap-btn:hover{background:#EAF6FF}
.ap-btn[hidden]{display:none}
.ap-btn.ap-start{height:74px;padding:0 34px 6px;font-size:24px;border:0;box-shadow:none}
.ap-btn.ap-pause-on{background:var(--royal);border-color:var(--royal);color:#fff}
.ap-btn.ap-end{border-color:#F0441F;color:#C2321B}
.ap-btn.ap-end img{height:1em}
.ap-btn.ap-end.ap-end-now{background:linear-gradient(180deg,#FF9A2E,#F0441F);border-color:#F0441F;color:#fff;box-shadow:0 0 0 5px rgba(255,197,46,.5)}
