/* A game's page on top of the design's own CSS (arcade-game.css): only what the design leaves to the page.
   The cover is the design's animated banner for the game (src/heroes.js, from its GamePage card). */
.pg-cover > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pgb-tote{text-transform:uppercase} /* the agent's name, as the card writes it */

/* Screenshots: phone captures of the boards, the top of the screen in the design's frame */
.pg-shot-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
/* The Play box: the agent picker and the send buttons as the design's fields */
.pg-playbox select.bv-input{width:100%;font:inherit;font-weight:400;color:inherit}
.pg-playbox #options{display:grid;gap:var(--space-4)}
.pg-playbox #options:empty,.pg-playbox #notes:empty{display:none}
.pg-playbox #notes{display:grid;gap:var(--space-2)}
.pg-playbox #notes p{margin:0;font-size:13px;line-height:18px;color:var(--text-2)}
.bv-send-btns .bv-btn.hidden{display:none}
/* Recent results: not in the design but kept, after Details, in the design's square panel as on the home */
.pg-sec .recent{border-radius:0;background:#1B1035;box-shadow:0 0 0 3px var(--gc-ink),inset 0 0 0 2px #3A2A63;margin:3px}
/* The Play box stays in view below the shell's sticky top bar (the design's 24px is from a page without one) */
@media (min-width:900px){.sh .pg-game .pg-playbox{top:91px}}
/* Captions wrap under their screenshot */
.pg-shot{max-width:226px;margin:0}
/* Our Play buttons are links (the card's are buttons): keep the button's own text colour over the page's link colour */
.bv-send-btns a.bv-btn{color:var(--ink);text-decoration:none}
/* Submit your game: the phone card has no "Your game here" cabinet */
@media (max-width:899px){.pg-yourgame{display:none}}
/* Wider than the design's 1280 laptop (7 Oct 2026: the game cover grew far too big): the inner pages (a game's
   page, Your stats, Submit your game) keep the cards' proportions, their content 984px wide at most, as in the 1280
   cards (a game's cover about 524 x 393 beside the 400px Play box), centred in the main column */
@media (min-width:900px){.sh .pg.pg--shell{max-width:984px;margin-inline:auto}}
/* Nudge (13 Oct 2026): with the player's agent linked, the game page's other ways to send fold under "or try other methods" */
.pg-other-ways{display:grid;gap:var(--space-2)}
.pg-other-ways>summary{cursor:pointer;font:600 14px/20px var(--font-body);color:var(--text-2);padding:4px 0;width:max-content}
.pg-other-ways>summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.pg-other-ways[open]>summary{color:var(--text-1)}
/* One tap (13 Oct 2026): the game page's card for signing up and linking the agent, so Play can nudge it */
/* 20 Oct 2026: one main button. The name once we know it, the other ways as links, and "Play in one tap" as one line */
.pg-who{margin:0;font-size:15px;line-height:22px;color:var(--text-2)}.pg-who b{color:var(--text-1)}
.pg-linkbtn{background:none;border:0;padding:0;font:inherit;font-weight:600;color:var(--human-text);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.pg-linkbtn:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.pg-more{margin:-4px 0 0;font-size:14px;line-height:22px;color:var(--text-2)}
.pg-more a{color:var(--human-text);font-weight:600}.pg-more a[aria-disabled="true"]{opacity:.5;pointer-events:none}
.pg-onetap{margin:0;padding:10px 12px;font-size:14px;line-height:20px;color:var(--text-2);background:var(--bg-2);box-shadow:inset 3px 0 0 var(--accent)}
.pg-onetap b{color:var(--text-1);font-weight:700}.pg-onetap a{color:var(--human-text);font-weight:600}

.pg-pick{max-width:340px}.pg-pick select{width:100%}
/* Share a game's page (20 Oct 2026): the button under the title, and its panel of choices */
.pg-share{position:relative;margin-top:12px}
.pg-share-box{position:absolute;z-index:20;top:calc(100% + 8px);left:0;display:flex;flex-wrap:wrap;gap:8px;width:max-content;max-width:min(560px,calc(100vw - 32px));padding:12px;background:var(--bg-1);box-shadow:0 0 0 2px var(--line-2),0 18px 40px -12px rgba(0,0,0,.7)}
.pg-share-box[hidden]{display:none}
.pg-share-box .share-btn{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border:0;background:var(--bg-2);color:var(--text-1);box-shadow:inset 0 0 0 2px var(--line-2),0 3px 0 0 var(--line-1);font:700 14px/1 var(--font-body);text-decoration:none;cursor:pointer}
.pg-share-box .share-btn:hover{box-shadow:inset 0 0 0 2px var(--text-2),0 3px 0 0 var(--line-1)}
.pg-share-box .share-btn:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.pg-share-box .share-whatsapp{box-shadow:inset 0 0 0 2px #25D366,0 3px 0 0 var(--line-1)}
.pg-share-box .share-copy{background:var(--accent);color:var(--on-accent);box-shadow:0 3px 0 0 var(--accent-lip,#B89A12)}
/* Your account (20 Oct 2026): four tabs, the short summary beside the scoreboard, My games and Settings */
.pg-tabs{display:flex;flex-wrap:wrap;gap:4px 24px;margin:4px 0 24px;box-shadow:inset 0 -2px 0 var(--line-1)}
.pg-tabs a{position:relative;padding:10px 0 12px;color:var(--text-2);font:700 15px/20px var(--font-body);text-decoration:none}
.pg-tabs a:hover{color:var(--text-1)}
.pg-tabs a[aria-selected="true"]{color:var(--text-1)}
.pg-tabs a[aria-selected="true"]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--accent)}
.pg-tabs a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.pg-panel[hidden]{display:none}
.acct-sum{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:14px;line-height:20px;color:var(--text-2)}
.acct-sum li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;box-shadow:inset 0 -1px 0 var(--line-1)}
.acct-sum b{color:var(--text-1)}
.pg-settings{max-width:720px}
.mg-list{display:grid;gap:14px}
.mg-card{display:grid;gap:10px;padding:16px;background:var(--bg-1);box-shadow:0 0 0 1px var(--line-1),0 0 0 4px #120A26}
.mg-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.mg-head h3{flex:1 1 200px;min-width:0;margin:0;font:400 13px/18px var(--font-arcade);text-transform:uppercase;overflow-wrap:anywhere}
.mg-title{color:var(--text-1);text-decoration:none}.mg-title:hover{color:var(--human-text)}
.mg-state{padding:4px 10px;font:700 12px/16px var(--font-body);background:var(--bg-2);color:var(--text-2);box-shadow:inset 0 0 0 1px var(--line-2)}
.mg-state.live{color:#0B2A1A;background:var(--success,#4ADE80);box-shadow:none}
.mg-state.warn{color:#2A1F00;background:var(--warning,#FFB547);box-shadow:none}
.mg-state.bad{color:#fff;background:var(--danger,#FF5A6E);box-shadow:none}
.mg-meta{margin:0;font-size:14px;line-height:20px;color:var(--text-2)}
.mg-acts{display:flex;flex-wrap:wrap;gap:8px}
.mg-acts a.bv-btn{text-decoration:none}
.mg-del.confirm{--fill:var(--danger,#FF5A6E);--ink:#fff}
.mg-msg{margin:0;font-size:13px;color:var(--text-2)}.mg-msg:empty{display:none}
.mg-rename{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 100%}.mg-rename .bv-input{flex:1 1 220px;min-width:0;min-height:36px}
.mg-acts .bv-btn.st-btn-y,.mg-rename .bv-btn.st-btn-y,.pg-sec-head .bv-btn.st-btn-y{--fill:var(--accent);--ink:var(--on-accent);--edge:var(--accent);--lip:var(--accent-lip);color:var(--on-accent)!important} /* the main button, yellow with dark text, as on Create (link colors would make the text white) */
/* 4 Nov 2026: under Play, an outlined button that copies the invite and opens the agent's app */
.pg-open-alt{--fill:transparent;--ink:var(--text-1);--edge:var(--line-2);--lip:var(--line-1);min-height:46px}
.pg-open-alt b{color:var(--accent);font-size:18px}
.pg-open-alt:hover{--fill:var(--bg-3)}
#send-open{white-space:normal;text-align:left}
/* the Play box's one column never grows past the box on a phone (a long label used to push every field out) */
.pg-playbox{grid-template-columns:minmax(0,1fr)}
