/* Classroom invitations belong beside the cabinet, never on its playing surface. */
.pc-scope {
  --pc-paper: #edf4df;
  --pc-ink: #193b30;
  --pc-accent: #ffdc64;
  --pc-muted: #b9d1c2;
  font-family: "Trebuchet MS", sans-serif;
}
[data-pc-promotion][hidden], .pc-scope[hidden] { display: none !important; }
.pc-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 36vw, 420px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  background: #284b3b;
  color: var(--pc-paper);
  border-bottom: 1px solid #67816a;
}
.pc-strip p { margin: 0; font-size: 13px; line-height: 1.5; }
.pc-link {
  color: var(--pc-accent);
  font-weight: bold;
  text-underline-offset: 3px;
}
.pc-strip .pc-link { font-size: 13px; }
.pc-strip-copy { min-width: 0; }
.pc-strip-copy p { margin-bottom: 14px; }
.pc-scope .pc-signup {
  display: inline-block;
  padding: 10px 18px;
  background: #ffd700;
  color: #1a1a2e;
  border: 1px solid #b8a000;
  border-radius: 4px;
  font: bold 14px monospace;
  text-decoration: none;
}
.pc-scope .pc-signup:hover { background: #fff04d; color: #1a1a2e; }
.pc-demo-toggle { display: none; }
.pc-strip .pc-video .pc-demo-caption {
  width: 100%; margin: 0; padding: 0; border: 0; background: transparent;
  color: var(--pc-accent); font: inherit; font-weight: bold;
  text-align: center; cursor: pointer; white-space: nowrap;
}
.pc-demo-dialog {
  position: fixed; inset: 0; margin: auto;
  width: min(90vw, 1100px, calc((100dvh - 80px) * 16 / 9));
  max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid #67816a; border-radius: 8px;
  background: #162e24; color: var(--pc-paper); overflow: visible;
}
.pc-demo-dialog:not([open]) { display: none; }
.pc-demo-dialog::backdrop { background: rgb(7 18 13 / 86%); }
.pc-demo-player { position: relative; aspect-ratio: 16 / 9; }
.pc-demo-dialog video { display: block; width: 100%; height: 100%; object-fit: contain; }
.pc-demo-close {
  position: absolute; right: 0; bottom: calc(100% + 8px);
  width: 34px; height: 34px; border: 1px solid #8aa782; border-radius: 50%;
  background: #203f32; color: #edf4df; font-size: 24px; cursor: pointer;
}
.pc-demo-ended {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 18px;
  background: rgb(22 46 36 / 96%); padding: 20px; text-align: center;
}
.pc-demo-ended[hidden], .pc-demo-error[hidden] { display: none; }
.pc-demo-ended p { margin: 0; font-size: clamp(16px, 2.4vw, 27px); font-weight: bold; }
.pc-demo-replay { border: 0; padding: 8px; background: transparent; color: var(--pc-accent); font: bold 14px "Trebuchet MS", sans-serif; cursor: pointer; }
.pc-demo-error { position: absolute; inset: 20% 8%; padding: 16px; background: #203f32; text-align: center; }
.pc-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  .pc-strip .pc-video .pc-demo-caption { display: none; }
  .pc-demo-dialog { width: min(100vw, calc((100dvh - 76px) * 16 / 9)); border-radius: 0; }
  .pc-demo-ended { gap: 8px; padding: 10px; }
}
.pc-video.pc-video-compact { margin: 0; padding: 8px 18px; display:flex; align-items:center; gap:18px; background:#203f32; color:#edf4df; }
.pc-video-compact .pc-video-stage { min-height:0; padding:4px 8px; display:flex; align-items:center; gap:10px; font-size:12px; }
.pc-video-compact button { color:#ffdc64; background:#284b3b; border:1px solid #779284; border-radius:5px; padding:8px 16px; }
.pc-video-compact figcaption { font-size:12px; }
.pc-video-compact .pc-video-stage { padding:0; }
.pc-video.pc-video-compact [data-pc-video] { position:relative; display:block; width:192px; padding:0; overflow:hidden; border-radius:4px; background:#162e24; }
.pc-video [data-pc-video] img { display:block; width:100%; height:auto; }
.pc-video [data-pc-video] span { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); padding:10px 16px; border-radius:50%; background:#193b30; color:#ffdc64; box-shadow:0 2px 12px #0008; }
.pc-video.pc-video-playing { display:block; }
.pc-video.pc-video-playing video { width:100%; max-height:70vh; aspect-ratio:16/9; object-fit:contain; background:#000; }
@media(max-width:600px) { .pc-video.pc-video-compact { flex-wrap:wrap; gap:4px; } }
.pc-page {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 12px 16px;
  border: 1px solid #59755e;
  border-radius: 6px;
  background: #203f32;
  color: var(--pc-paper);
}
.pc-page p, .pc-result p { margin: 0; font-size: 13px; line-height: 1.6; }
.pc-share {
  border: 1px solid #8aa782;
  border-radius: 4px;
  padding: 9px 12px;
  background: transparent;
  color: var(--pc-paper);
  font: bold 12px "Trebuchet MS", sans-serif;
  cursor: pointer;
}
.pc-share:hover { background: #365940; }
.pc-status { font-size: 12px; color: var(--pc-muted); }
.pc-status:empty { display: none; }
.pc-result {
  padding: 14px 12px;
  margin: 12px auto 0;
  border-top: 1px solid #6c8369;
  max-width: 760px;
  color: var(--pc-paper);
  background: #203b30;
  border-radius: 0 0 6px 6px;
}
.pc-result .pc-share { margin-top: 10px; }
.pc-result .pc-status { display: block; margin-top: 5px; }
.pc-welcome {
  padding: 18px;
  border: 1px solid #afbe81;
  border-left: 4px solid var(--pc-accent);
  border-radius: 6px;
  background: #284b3b;
  color: var(--pc-paper);
  margin-bottom: 18px;
}
.pc-welcome p { margin: 0 0 8px; line-height: 1.6; }
.pc-skills { color: inherit; margin: 32px auto 16px; max-width: 760px; }
.pc-skills h2 { font-size: 20px; margin-bottom: 12px; }
.pc-skills p { line-height: 1.7; }
.pc-skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-skill-tags span { padding: 5px 9px; border: 1px solid #779284; border-radius: 4px; font-size: 12px; }
.pc-video { margin: 28px 0; border: 1px solid #57725b; border-radius: 8px; overflow: hidden; background: #162e24; }
.pc-video-stage { min-height: 180px; display: grid; place-items: center; padding: 24px; text-align: center; color: #d4e5ca; }
.pc-video-stage strong { display: block; margin: 10px 0; color: #ffdc64; font-size: 20px; }
.pc-video figcaption { padding: 12px 16px; color: #edf4df; font-size: 14px; border-top: 1px solid #57725b; }
.pc-video video { display: block; width: 100%; }
.pc-video button { padding: 12px 18px; background: #ffdc64; color: #193b30; border: 0; border-radius: 4px; font-weight: bold; cursor: pointer; }
.pc-scope a:focus-visible, .pc-scope button:focus-visible { outline: 3px solid #ffdc64; outline-offset: 4px; }
html.pc-assignment [data-pc-promotion],
html.pc-assignment #sc-share-btn,
html.pc-assignment #sc-share-msg,
html.pc-assignment #td-share-btn,
html.pc-assignment #td-share { display: none !important; }
.pc-strip .pc-video {
  width: 100%; min-width: 0; margin: 0;
  border-radius: 5px;
}
.pc-strip .pc-video-stage { min-height: 0; padding: 0; display: block; }
.pc-strip .pc-video [data-pc-video] {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; padding: 0; border-radius: 0;
  overflow: hidden; background: #162e24;
}
.pc-strip .pc-video [data-pc-video] img {
  width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}
.pc-strip .pc-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #162e24; }
.pc-strip .pc-video figcaption { padding: 7px 10px; font-size: 12px; }
/* Keep the cabinet in reach on classroom laptops; mobile retains its toggle. */
@media (min-width: 768px) {
  .pc-strip {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
    padding: 10px 16px;
  }
  .pc-strip-copy p { margin-bottom: 8px; }
  .pc-strip .pc-signup { padding: 8px 14px; }
  .pc-strip .pc-video figcaption { padding: 5px 8px; font-size: 11px; }
  .play-arcade .play-marquee { padding: 14px 18px 12px; }
  .play-arcade .play-cat-row { margin-top: 8px; }
}
@media (max-width: 767px) {
  .pc-strip { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 12px; }
  .pc-strip-copy p { margin-bottom: 10px; }
  .pc-demo-toggle {
    display: block; margin-top: 12px; padding: 6px 0;
    border: 0; background: transparent; color: var(--pc-accent);
    font: bold 12px "Trebuchet MS", sans-serif; cursor: pointer;
    text-align: left;
  }
  .pc-strip .pc-video:not(.pc-demo-open) { display: none; }
  .pc-page { align-items: flex-start; flex-direction: column; }
  .pc-video { margin: 20px 0; }
}
