/* The page you land on when you come back to play a saved game. Dark and immersive. */
.play-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: #05060d; }
.play-page .nav { position: static; flex: none; padding-block: 10px; }

.pbar { flex: none; display: flex; align-items: center; gap: 16px; padding: 9px max(16px, 2vw); border-bottom: 1px solid var(--line); background: rgba(16, 18, 29, 0.7); flex-wrap: wrap; }
.pb-back { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pb-back:hover { color: var(--text); }
.pb-title { flex: 1; min-width: 140px; display: flex; align-items: baseline; gap: 10px; overflow: hidden; }
.pb-title b { font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.pb-title span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* one size, one baseline: <a> and <button> actions render identically; hierarchy comes from fill, not size */
.pb-actions .btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 38px; padding: 0 16px; font-size: 13.5px; font-weight: 600; line-height: 1; border-radius: 10px; white-space: nowrap; text-decoration: none; }
.pb-actions .btn[hidden] { display: none; }
.pb-actions .btn.ghost { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.16); color: var(--text); }
.pb-actions .btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.32); }
.pb-actions .btn.primary { box-shadow: 0 6px 18px -8px rgba(31, 168, 31, 0.7); }
.pb-actions #pEdit { background: transparent; color: #7fe07f; border-color: rgba(127, 224, 127, 0.5); box-shadow: none; }
.pb-actions #pEdit:hover { background: rgba(127, 224, 127, 0.12); border-color: #7fe07f; opacity: 1; }
.pb-actions .btn:focus-visible { outline: 2px solid #9bf00b; outline-offset: 2px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.pstage { position: relative; flex: 1; min-height: 0; background: #000; }
.pstage iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.pstage .play-overlay { position: absolute; inset: 0; display: grid; place-items: center; }

.pmsg { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 30px; text-align: center; background: #05060d; }
.pmsg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pmsg-actions .btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; text-decoration: none; }
.pmsg-sub { margin: 6px 0 0; font-size: 13.5px; }
.pmsg-sub a { color: #9bf00b; }
.pmsg h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.pmsg p { margin: 0 0 12px; max-width: 46ch; color: var(--muted); }

.ptoast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 16px; border: 1px solid #f0cf9b; border-radius: 99px; background: #fff4e5; color: #7a4a05; font-size: 13.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.ptoast button { border: 0; background: none; font-size: 20px; line-height: 1; color: #7a4a05; cursor: pointer; }

@media (max-width: 900px) { .play-page { height: auto; min-height: 100vh; overflow: visible; } .pstage { min-height: 75vh; min-height: max(420px, calc(100svh - 200px)); } .pstage:not(.phone) iframe { position: absolute; inset: 0; } .pb-title span { display: none; } }

/* the site header stays light on every page, so give it light-theme text colours here */
.play-page .nav .user-chip { color: #5d6175; }
.play-page .nav .uname { color: #14151f; }

/* high scores on the start card */
.po-scores { width: 100%; margin-top: 4px; }
.po-scores h3 { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(238, 240, 255, 0.55); }
.po-scores ol { margin: 0; padding: 0; list-style: none; counter-reset: sc; display: grid; gap: 4px; }
.po-scores li { counter-increment: sc; display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); font-size: 13px; color: #eef0ff; }
.po-scores li::before { content: counter(sc); width: 1.4em; color: #9bf00b; font-weight: 700; }
.po-scores li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-scores li b { font-variant-numeric: tabular-nums; }

/* iPhone-app games play inside a phone-shaped frame */
.pstage.phone { display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 40%, #151826, #05060d); }
.pstage.phone iframe { width: auto; height: min(calc(100vh - 210px), 880px); max-height: 100%; max-width: 100%; box-sizing: border-box; aspect-ratio: 390 / 844; border: 11px solid #0c0d12; border-radius: 52px; box-shadow: 0 0 0 2px #2a2c38, 0 30px 80px -20px rgba(0, 0, 0, 0.8); background: #000; }
.pb-title .pb-by { flex: none; font-weight: 600; color: #5d6175; }

/* "Made with Station 720" on someone else's shared game: the badge in the bar and a line under Play on the start card */
.made-with { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid rgba(155, 240, 11, 0.35); border-radius: 99px; background: rgba(155, 240, 11, 0.08); color: #eef0ff; font-size: 13px; white-space: nowrap; text-decoration: none; }
.made-with:hover, .made-with:focus-visible { border-color: #9bf00b; background: rgba(155, 240, 11, 0.16); }
.made-with b { font-weight: 700; }
.made-with .mw-cta { color: #9bf00b; font-weight: 600; }
.made-with[hidden], .po-made[hidden] { display: none; }
.po-made { display: block; margin-top: 12px; font-size: 13px; color: rgba(238, 240, 255, 0.7); text-decoration: none; }
.po-made span { color: #9bf00b; font-weight: 600; }
.po-made:hover span, .po-made:focus-visible span { text-decoration: underline; }
@media (max-width: 600px) { .made-with .mw-cta { display: none; } }

/* "Remix this game" on someone else's game (play.js remixThis) */
.po-remix { margin-top: 8px; color: #eef0ff; border-color: rgba(238, 240, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.po-remix:hover { border-color: #9bf00b; color: #9bf00b; }
.po-remix[hidden], #pRemixThis[hidden] { display: none; }
#pContinue[hidden] { display: none; }
#pPlay.ghost { margin-top: 8px; font-size: 15px; padding: 11px 22px; color: #eef0ff; border-color: rgba(238, 240, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
#pPlay.ghost:hover { border-color: #9bf00b; color: #9bf00b; }
.pb-actions .pb-share { padding: 0 22px; font-weight: 700; }

/* Fullscreen: the icon button at the right end of the bar, the same height as the other actions */
.pb-full { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: var(--text); cursor: pointer; }
.pb-full:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.32); }
.pb-full:focus-visible { outline: 2px solid #9bf00b; outline-offset: 2px; }
.pb-full:disabled { display: none; }

/* "Loading game…" over the frame between pressing Play and the game being ready */
.ploading { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 12px; background: #05060d; color: #eef0ff; font-size: 15px; font-weight: 600; pointer-events: none; }
.ploading[hidden] { display: none; }
.ploading-cover { position: absolute; inset: 0; z-index: -1; opacity: 0.55; }
.ploading-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ploading { isolation: isolate; }
.ptap { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 99px; background: rgba(5, 6, 13, 0.82); border: 1px solid rgba(255, 255, 255, 0.2); color: #eef0ff; font-size: 15px; font-weight: 600; text-align: center; pointer-events: none; opacity: 0; animation: ptapPulse 2.4s ease-in-out forwards; }
.ptap[hidden] { display: none; }
/* "Tap the game to start", in the middle and only for a moment: two pulses, then it fades, so it never sits on the game's own
   "touch to start" (games put theirs at the bottom). play.js hides it when the animation is over. */
@keyframes ptapPulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  30% { transform: translate(-50%, -50%) scale(1.07); }
  48% { transform: translate(-50%, -50%) scale(1); }
  66% { transform: translate(-50%, -50%) scale(1.07); }
  82% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
@keyframes ptapFade { 0%, 100% { opacity: 0; } 10%, 85% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ptap { animation-name: ptapFade; } }
.ploading .spin { width: 22px; height: 22px; border: 3px solid rgba(238, 240, 255, 0.2); border-top-color: #9bf00b; border-radius: 50%; animation: pspin 0.8s linear infinite; }
@keyframes pspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ploading .spin { animation-duration: 2.4s; } }

/* the controls line: three lines, the rest behind "Show controls" */
.play-page .po-controls:not(.open):not(.cv) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.po-controls-more { margin: -4px 0 0; padding: 0; border: 0; background: none; color: #9bf00b; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.po-controls-more:hover { text-decoration: underline; }
.po-controls-more:focus-visible { outline: 2px solid #9bf00b; outline-offset: 2px; }
.po-controls-more[hidden] { display: none; }

/* heart on a shared game */
.pb-actions .pb-like { gap: 7px; padding: 0 14px; }
.pb-actions .pb-like svg { display: block; transition: transform 0.15s; }
.pb-actions .pb-like b { font-variant-numeric: tabular-nums; font-weight: 700; }
.pb-actions .pb-like.on { color: #ff7b9c; border-color: rgba(255, 123, 156, 0.55); background: rgba(255, 123, 156, 0.1); }
.pb-actions .pb-like.on svg { fill: currentColor; transform: scale(1.12); }
.pb-actions .pb-like[hidden] { display: none; }

/* "A friend scored 1,234. Can you beat it?" on the start card */
.po-beat { margin: 0; padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(155, 240, 11, 0.35); background: rgba(155, 240, 11, 0.08); font-size: 13.5px; font-weight: 600; color: #d8f7a0; }
.po-beat[hidden] { display: none; }

/* after a score is saved: show it and offer a challenge */
.pscore { position: absolute; left: 50%; bottom: 18px; z-index: 6; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px); padding: 8px 8px 8px 16px; border: 1px solid rgba(155, 240, 11, 0.4); border-radius: 99px; background: rgba(11, 12, 23, 0.94); color: #eef0ff; font-size: 13.5px; font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.pscore[hidden] { display: none; }
.pscore .btn { flex: none; white-space: nowrap; }
.pscore button[aria-label] { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #eef0ff; font-size: 18px; line-height: 1; cursor: pointer; }

/* phones: no second search bar on a play page, a tight one-row title, full-width actions, a compact start card */
@media (max-width: 900px) { .play-page .nav-search { display: none; } }
@media (max-width: 600px) {
  .play-page .nav { padding-block: 8px; }
  .pbar { gap: 6px 10px; padding: 8px 12px; }
  .made-with { display: none; }
  .pb-title { flex: 1 1 0; min-width: 0; }
  .pb-title b { overflow: hidden; text-overflow: ellipsis; }
  .pb-actions { flex: 1 1 100%; gap: 8px; }
  .pb-actions .btn { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 12px; }
  .pb-actions .pb-like { flex: 0 0 auto; padding: 0 14px; }
  .pb-actions .pb-share { padding: 0 10px; }
  .play-overlay { padding: 12px; }
  .po-cover { min-height: 96px; }
  .po-info { gap: 8px; padding: 16px; }
  .po-info h2 { font-size: 26px; }
  .po-info .btn.big { width: 100%; min-height: 48px; }
  .po-info .po-remix { width: 100%; }
  .pscore { left: 12px; right: 12px; transform: none; bottom: 12px; max-width: none; border-radius: 18px; flex-wrap: wrap; padding: 10px 10px 10px 14px; }
  .pscore span { flex: 1 1 100%; }
  .pscore .btn { flex: 1 1 0; min-height: 40px; }
}

/* phone, someone else's game (body.imm, see play.js): the game is the whole screen. No header, bar, fullscreen icon or start card.
   After the first run ends (body.imm-over) a slim Share / Remix strip floats over the top; only its buttons take taps. */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) { /* a phone, upright or sideways */
  .play-page.imm { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .play-page.imm .nav, .play-page.imm .pbar, .play-page.imm .pfull { display: none; }
  .play-page.imm .pstage { position: fixed; inset: 0; min-height: 0; }
  .play-page.imm.imm-over .pbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: 10px 12px 18px; border: 0; background: linear-gradient(rgba(5, 6, 13, 0.9), rgba(5, 6, 13, 0)); pointer-events: none; }
  .play-page.imm-over .pb-back, .play-page.imm-over .made-with, .play-page.imm-over .pb-title { display: none; }
  .play-page.imm-over .pb-actions { flex: 1 1 100%; pointer-events: none; }
  .play-page.imm-over .pb-actions .btn { pointer-events: auto; height: 46px; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.8); }
}

/* Continue / Play stacked in the sticky strip at the bottom of the start card (forge.css .po-sticky) */
.po-start { display: flex; flex-direction: column; align-items: flex-start; }
.po-start .btn { margin-top: 0; }
.po-start #pPlay.ghost { margin-top: 8px; }

/* phones: the screens after a run (play.js showEnd). First the top scores with a big Share button and a small arrow, then
   a Play again screen. They cover the game, the game's own end screen and the Share / Remix strip. */
.pend { position: absolute; inset: 0; z-index: 25; display: flex; background: #1e2a3f; color: #fff; font-family: inherit; }
.pend[hidden], .pend section[hidden], .pend [hidden] { display: none; }
.play-page.end-open .pbar, .play-page.imm.imm-over.end-open .pbar { display: none; }
.pend section { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: max(24px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)); overflow-y: auto; }
.pe-sum { text-align: center; padding-top: 12px; }
.pe-head { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #f0997b; }
.pe-score { margin: 0; font-size: 64px; font-weight: 800; line-height: 1.1; color: #ef9f27; font-variant-numeric: tabular-nums; }
.pe-line { margin: 0; font-size: 14px; color: #c9c8c4; }
.pe-rank { display: inline-block; margin: 14px 0 0; padding: 6px 14px; border-radius: 99px; background: #3c3489; color: #cecbf6; font-size: 14px; font-weight: 600; }
.pe-top { margin-top: 26px; }
.pe-top h3 { margin: 0 8px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #888780; }
.pe-top ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.pe-top li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid transparent; border-radius: 12px; background: #2a3750; font-size: 15px; }
.pe-top li i { width: 1.6em; font-style: normal; font-weight: 700; color: #b4b2a9; }
.pe-top li:first-child i { color: #fac775; }
.pe-top li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-top li b { font-variant-numeric: tabular-nums; }
.pe-top li.you { background: #0f6e56; border-color: #5dcaa5; }
.pe-top li.you i { color: #9fe1cb; }
.pe-top li.gap { padding: 0 14px; background: none; color: #888780; justify-content: center; }
.pe-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 8px; }
.pe-share { flex: 1; min-width: 0; min-height: 66px; border: 0; border-radius: 18px; background: #2e9e3a; color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.pe-next { flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #1e2a3f; cursor: pointer; }
.pe-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pe-bar-r { display: flex; gap: 8px; }
.pe-back { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #2a3750; color: #fff; cursor: pointer; }
.pe-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: #2a3750; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pe-chip.on { color: #ff7b9c; }
.pe-chip.on svg path { fill: currentColor; }
.pe-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 10px; text-align: center; }
.pe-mid h2 { margin: 0; font-size: 30px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pe-best { margin: 8px 0 0; font-size: 14px; color: #c9c8c4; }
.pe-play { width: 100%; max-width: 340px; min-height: 68px; margin-top: 36px; border: 0; border-radius: 18px; background: #ef9f27; color: #412402; font: inherit; font-size: 21px; font-weight: 800; letter-spacing: 0.04em; cursor: pointer; }
.pe-sharegame { min-height: 48px; border: 1px solid #444441; border-radius: 14px; background: none; color: #d3d1c7; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pe-remix { width: 100%; max-width: 340px; margin-top: 14px; }
.pe-remix button { width: 100%; min-height: 52px; border: 1.5px solid rgba(155, 240, 11, 0.55); border-radius: 16px; background: rgba(155, 240, 11, 0.08); color: #d8f7a0; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.pe-remix button:disabled { opacity: 0.6; }
.pe-remix p { margin: 7px 0 0; font-size: 13px; color: #b4b2a9; }
.pe-more { width: 100%; max-width: 340px; margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pe-make { display: grid; place-items: center; width: 100%; min-height: 52px; border-radius: 16px; background: #fff; color: #1e2a3f; font-size: 17px; font-weight: 700; text-decoration: none; }
.pe-games { display: grid; place-items: center; min-height: 44px; padding: 0 14px; color: #c9c8c4; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pe-make:focus-visible, .pe-games:focus-visible { outline: 2px solid #9fe1cb; outline-offset: 2px; }
.pend button:focus-visible { outline: 2px solid #9bf00b; outline-offset: 2px; }

/* a challenge to beat (?beat=), over the game for a few seconds */
.pbeat { position: absolute; left: 50%; top: max(14px, env(safe-area-inset-top)); z-index: 22; /* under the end screen (.pend), which says the result */ transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: #ef9f27; color: #412402; font-weight: 800; font-size: 15px; text-align: center; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.7); pointer-events: none; animation: pbeat-in 0.3s ease-out; }
@keyframes pbeat-in { from { opacity: 0; transform: translate(-50%, -8px); } }
@media (prefers-reduced-motion: reduce) { .pbeat { animation: none; } }
.pe-beat { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: #ef9f27; }

/* phones: a choice before the game loads (a keyboard game, or saved progress) */
.pchoice { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); background: rgba(9, 11, 20, 0.92); color: #fff; overflow-y: auto; }
.pc-card { width: 100%; max-width: 360px; display: grid; gap: 12px; text-align: center; }
.pc-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ef9f27; }
.pc-card h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pc-copy { margin: 0 0 6px; color: #c9c8c4; font-size: 15px; }
.pc-card .btn.big { width: 100%; min-height: 54px; }
.pc-more { margin-top: 14px; text-align: left; }
.pc-more h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #9fe1cb; }
.pc-games { display: grid; gap: 8px; }
.pc-game { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: #1e2a3f; color: #fff; text-decoration: none; }
.pc-game .pc-art { position: relative; width: 64px; height: 44px; border-radius: 8px; overflow: hidden; background: #0b0f1a; }
.pc-game .pc-art svg { width: 100%; height: 100%; display: block; }
.pc-game b { display: block; font-size: 15px; }
.pc-game span { font-size: 12.5px; color: #b4b2a9; }

/* guest end screen: what saving the score would do */
.pe-save { margin: 10px 0 0; font-size: 14px; color: #c9c8c4; }
.pe-top li.ghost { outline: 1.5px dashed rgba(159, 225, 203, 0.6); outline-offset: -1.5px; }

/* signing in without leaving the game */
.psheet { position: fixed; inset: 0; z-index: 2147483100; display: grid; align-items: end; justify-items: center; background: rgba(9, 11, 20, 0.55); }
.ps-card { position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; padding: 26px 22px max(22px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fcfcfb; color: #14151f; text-align: center; box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, 0.5); }
@media (min-width: 701px) { .psheet { align-items: center; } .ps-card { border-radius: 22px; padding-bottom: 24px; } }
.ps-card h2 { margin: 0 32px 8px; font-size: 22px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ps-copy { margin: 0 0 8px; font-size: 15px; color: #3a3d4f; }
.ps-fast { display: inline-flex; gap: 6px; margin: 0 0 16px; padding: 4px 12px; border-radius: 999px; background: #e8f3e2; color: #107c10; font-size: 13.5px; font-weight: 700; }
.ps-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: #5d6175; font-size: 26px; line-height: 1; cursor: pointer; }
.ps-x:focus-visible { outline: 2px solid #107c10; }
.ps-note { margin: 12px 0 0; font-size: 13px; color: #5d6175; min-height: 1em; }
.ps-note.err { color: #d6334f; }
.psheet .google-slot { display: flex; justify-content: center; min-height: 44px; }
.psheet .btn.ghost { color: #14151f; border-color: #d9d8d2; background: #fff; }

/* a remix credits the game it came from, on the Play again screen */
.pe-remixof { margin: 6px 0 0; font-size: 14px; color: #c9c8c4; }
.pe-remixof a { color: #9fe1cb; }

/* "More by Maya" on the Play again screen: the maker's other shared games, and their page */
.pe-maker { width: 100%; max-width: 340px; margin-top: 18px; text-align: left; }
.pe-maker h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pe-maker h3 a { display: inline-flex; align-items: center; min-height: 40px; color: #9fe1cb; text-decoration: none; }
.pe-maker h3 a::after { content: '→'; margin-left: 6px; }
.pe-maker .pc-game { min-height: 56px; background: #2a3750; }
.pe-maker .pc-game > div { min-width: 0; }
.pe-maker .pc-game b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-maker a:focus-visible { outline: 2px solid #9fe1cb; outline-offset: 2px; }
.pb-by a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* phones, the game filling the screen: a pause button in the top right corner opens the game's menu (play.js pausePress). It is
   on the page, over the frame, so it works in every game. Hidden while something covers the game: loading, a choice, the end
   screens, or the game's menu itself (play.js). */
.ppause { display: none; }
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  .play-page.imm .ppause:not([hidden]) { position: fixed; top: max(11px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 21; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; background: rgba(5, 6, 13, 0.42); color: rgba(255, 255, 255, 0.9); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .play-page.imm .ppause:active { background: rgba(5, 6, 13, 0.7); }
  .play-page.imm .ppause:focus-visible { outline: 2px solid #9bf00b; outline-offset: 2px; }
  .play-page.imm.end-open .ppause, .play-page.imm:has(#pLoading:not([hidden]), .pchoice:not([hidden]), #pMsg:not([hidden])) .ppause { display: none; }
  /* keep the Share / Remix strip and the challenge banner clear of it (the banner goes just under it, so a long name fits) */
  .play-page.imm.imm-over.has-pause .pbar { padding-right: 66px; }
  .play-page.imm.has-pause .pbeat { top: max(64px, calc(env(safe-area-inset-top) + 54px)); }
}
/* the end screen's headline takes focus when it opens (so a screen reader reads it); it is not a control, so no ring */
.pe-head:focus { outline: none; }
