/* SideKwest Play UI styles (moved out of live.html 27.11, as is). */
  .pl { max-width: 980px; margin: 0 auto; }
  .pl-streams { display: grid; gap: 8px; }
  .pl-streams.two { grid-template-columns: 1fr 1fr; }
  @media (max-width: 720px) { .pl-streams.two { grid-template-columns: 1fr; } }
  .pl-video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
  .pl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .pl-video .tag { position: absolute; left: 8px; top: 8px; z-index: 2; background: rgba(0,0,0,.65); padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; pointer-events: none; }
  .pl-card { margin-top: 10px; padding: 14px; }
  .pl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .pl-title { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: -.01em; text-transform: lowercase; display: flex; align-items: center; gap: 8px; }
  .pl-tools { display: flex; gap: 6px; }
  .pl-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); display: grid; place-items: center; cursor: pointer; font-size: 18px; }
  .pl-score { display: grid; gap: 10px; margin-top: 10px; }
  .pl-score.two { grid-template-columns: 1fr 1fr; }
  .pl-p { background: var(--panel-2); border-radius: 18px; padding: 12px; min-width: 0; }
  .pl-p .who { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pl-p .who.pl-car { white-space: normal; overflow: visible; line-height: 1.35; }   /* car + value + where to: wraps (27.11) */
  .pl-big { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: 1.05; font-variant-numeric: tabular-nums; }
  .pl-big small { font-size: 22px; color: var(--faint); }
  .pl-score.two .pl-big { font-size: 40px; }
  .pl-pips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 10px; }
  .pl-pips i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--panel-3); }
  .pl-pips i.on { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 8px rgba(62, 247, 71, .6); }
  .pl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; font-weight: 750; font-size: 13.5px; background: var(--bg-2); }
  .pl-badge.ok { color: var(--lime); background: rgba(62, 247, 71, .12); } .pl-badge.bad { color: var(--pinkx); background: transparent; box-shadow: inset 0 0 0 2px var(--pinkx); }
  .pl-badge { line-height: 1.25; text-align: left; }
  .pl-mini { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(247,255,248,.25); background: transparent; color: var(--lime); font-weight: 700; cursor: pointer; margin-left: 6px; }
  .pl-howto video { max-height: 50vh !important; }
  /* tutorial box: title, scrolling body (video + rules), then Got it BELOW the body (never over the last rule) */
  .pl-howto > div { display: flex; flex-direction: column; overflow: hidden !important; }
  .pl-howto .pl-hbody { overflow: auto; min-height: 0; flex: 1 1 auto; margin-bottom: 10px; }
  /* my own match on a phone: the score first (the player looks at the TV; the phone is for the score), streams below */
  @media (max-width: 720px) { #app.mine { display: flex; flex-direction: column; } #app.mine #streamslot { order: 2; margin-top: 10px; } }
  .pl-badge.gold { color: #000; background: var(--lime); box-shadow: var(--glow-lime); } .pl-badge.wait { color: var(--muted); }
  .pl-clock { font-family: var(--display); font-weight: 900; font-size: 22px; font-variant-numeric: tabular-nums; }
  .pl-feed { list-style: none; margin: 10px 0 0; padding: 0; max-height: 220px; overflow: auto; }
  .pl-feed li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; }
  .pl-feed li b { min-width: 40px; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
  .pl-games { display: grid; gap: 8px; }
  .pl-game { background: var(--panel-2); border: 2px solid var(--line); border-radius: 22px; padding: 10px 10px 10px 12px; cursor: pointer; color: var(--text); }
  .pl-game[aria-pressed="true"] { border-color: var(--lime); background: rgba(62, 247, 71, .07); box-shadow: var(--glow-lime); }
  .pl-game .top { display: flex; align-items: center; gap: 10px; min-height: 40px; }
  .pl-game .nm { font-weight: 800; font-size: 15.5px; flex: 1; min-width: 0; }
  .pl-game .nm small { display: block; font-weight: 600; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
  .pl-game .top > .i { width: 24px; height: 24px; flex: none; }
  .pl-game .info { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 800 15px/1 var(--font); display: grid; place-items: center; cursor: pointer; }
  .pl-rule { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
  .pl-levels { display: flex; gap: 6px; margin-top: 10px; }
  .pl-steps { margin: 10px 0 4px; padding-left: 20px; line-height: 1.55; font-size: 15px; color: var(--text); }
  .pl-steps li { margin-bottom: 6px; }
  /* language picker + "Possible problems": styles live in assets/style.css (.gfi-*) since 26.11 */
  .pl-steps a { color: var(--lime); }
  .pl-pad { display: block; width: 100%; max-width: 300px; margin: 8px 0 4px; }
  .pl-pad .pl-glow { animation: plglow 1.2s ease-in-out infinite; }
  @keyframes plglow { 50% { opacity: .35; } }
  .pl-lost { border: 1.5px solid var(--pinkx); border-radius: 16px; padding: 8px 12px; color: var(--text); }
  .pl-howto { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.82); display: grid; place-items: center; padding: 12px; }
  .pl-howto > div { background: var(--panel); border-radius: 28px; padding: 12px; width: min(420px, 100%); max-height: 100%; overflow: auto; box-sizing: border-box; }
  .pl-howto video { width: 100%; max-height: 70vh; border-radius: 18px; background: #000; display: block; }
  .pl-howto h3 { margin: 4px 2px 8px; display: flex; justify-content: space-between; align-items: center; }
  .pl-howto ul { margin: 10px 0 12px; padding-left: 18px; color: var(--muted); line-height: 1.5; font-size: 14.5px; }
  .pl-levels button { flex: 1; min-height: 44px; padding: 8px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
  .pl-levels button[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); color: #000; }
  .pl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .pl-btn { padding: 15px 14px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; font-size: 16px; color: #000; cursor: pointer; background: var(--pinkx); box-shadow: var(--glow-pink); text-decoration: none; text-align: center; display: block; }
  .pl-btn.alt { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
  .pl-btn.wide { grid-column: 1 / -1; }
  .pl-btn:disabled { opacity: .5; cursor: default; }
  .pl-input { width: 100%; box-sizing: border-box; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px; margin-top: 10px; }
  .pl-msg { margin-top: 8px; font-size: 14px; color: var(--down); min-height: 1em; }
  .pl-center { text-align: center; padding: 22px 14px; }
  .pl-center h2 { margin: 0 0 6px; font-size: 21px; font-family: var(--display); font-weight: 900; text-transform: lowercase; letter-spacing: -.02em; }
  .pl-me { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
  .pl-me img { width: 26px; height: 26px; border-radius: 50%; }
  .pl-result { font-family: var(--display); font-weight: 900; text-transform: lowercase; color: var(--lime); text-shadow: 0 0 22px rgba(62, 247, 71, .45); font-size: 30px; margin: 4px 0; }
  .pl-delta.up { color: var(--up); } .pl-delta.down { color: var(--down); }
  .pl-sheet { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 60; display: grid; place-items: end center; }
  .pl-sheet > div { background: var(--panel); border-top-left-radius: 28px; border-top-right-radius: 28px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-width: 640px; width: 100%; box-sizing: border-box; }
  .pl-sheet h3 { margin: 0 0 8px; }
  .pl-sheet ul { margin: 0 0 14px; padding-left: 18px; color: var(--muted); line-height: 1.5; font-size: 15px; }
  #dbg { font: 11px/1.35 ui-monospace, monospace; white-space: pre-wrap; background: #000; color: #3EF747; padding: 8px; margin-top: 12px; max-height: 260px; overflow: auto; border-radius: 8px; }
/* Mechanic card after 27.11 (proposal) */
.pl-dest { margin: 4px 0 6px; }
.pl-dest small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pl-dest b { display: block; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1.05; color: var(--lime); overflow-wrap: anywhere; }
.pl-score.two .pl-dest b { font-size: 24px; }
.pl-do { font-family: var(--display); font-weight: 850; font-size: 22px; line-height: 1.15; margin: 4px 0 6px; }
.pl-do.bad { color: var(--pinkx); }
.pl-money { font-size: 15px; color: var(--muted); margin-top: 4px; } .pl-money b { color: var(--text, #fff); font-size: 20px; }
.pl-do.ok { color: var(--lime); }
