/* Member pages the Worker renders (/account), on top of the game site's site.css. */
main .panel.account { max-width: 640px; margin: 0 auto 16px; padding: 12px 16px; }
.account h2 { margin-top: 0; }
.devices { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.devices td { padding: 6px 8px; border-top: 1px solid rgba(255, 255, 255, .15); }
.devices td:last-child { text-align: right; }
.account form { display: inline-block; margin: 0 8px 8px 0; }
.account label { margin-right: 12px; }
.invite-form { display: grid !important; grid-template-columns: minmax(0, 420px); gap: 8px; margin: 8px 0 12px !important; }   /* one email per invite left, the note, then Send */
.invite-form input { font: 14px var(--game, inherit); padding: 6px 8px; min-width: 0; }
.invite-form button { justify-self: start; }
.account .notice { color: var(--cm-title, #ff0); }
/* Account's Signing in buttons on phones: one per line, full width (21 Nov 2026), not two and one. */
@media (max-width: 600px) { .signin-actions form, .signin-actions > .btn { display: block; margin: 0 0 8px; } .signin-actions .btn { display: block; width: 100%; box-sizing: border-box; text-align: center; } }

/* Clubhouse unread badge on the nav tab */
:is(.minimenu, .menu) .tile { position: relative; }
:is(.minimenu, .menu) .badge { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; box-sizing: border-box;
  background: #fcfe02; color: #000; font: 700 11px/18px var(--game, sans-serif); text-shadow: none; text-align: center; box-shadow: 0 0 0 2px #000; z-index: 5; }   /* above the next menu tile, under the drop-downs (40) */

/* Clubhouse (src/clubhouse.ts) */
.post-img { display: block; max-width: 100%; height: auto; margin: 8px 0; border: 2px solid var(--cm-tile-edge, #0627ac); }
.clubhouse { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.clubhouse .screen-title { margin-bottom: 0; }
.clubhouse .crumbs { margin: 0; font-size: 13px; text-shadow: 1px 1px 0 #000; }
.clubhouse .crumbs a, .clubhouse .panel > h2 a { color: inherit; }
.clubhouse .panel > h2 a.small { color: #e6f2e6; }
.clubhouse .threads { list-style: none; margin: 8px 0 0; padding: 0; }
.clubhouse .threads li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.clubhouse .threads li a { color: var(--cm-text, #fff); text-decoration: none; font-weight: 700; }
.clubhouse .threads li a:hover { color: var(--cm-title, #ff0); }
.clubhouse .threads li.unread a { color: var(--cm-title, #ff0); }
.clubhouse .threads li.unread { background: rgba(252, 254, 2, .12); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }   /* a faint yellow wash on unread threads */
/* Share to Community's threads, one line at the top of their channel on the Community page (clubhouse.ts shareRow) */
.clubhouse .share-threads { margin: 8px 0 0; padding: 6px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); line-height: 1.6; }
.clubhouse .share-threads > span { color: var(--cm-muted, #ccc); }
.clubhouse .share-threads a { color: var(--cm-text, #fff); font-weight: 700; text-decoration: none; }
.clubhouse .share-threads a:hover, .clubhouse .share-threads a.unread { color: var(--cm-title, #ff0); }
.clubhouse .share-threads small { color: var(--cm-muted, #ccc); }
.clubhouse .cm-read-all { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.clubhouse .panel > h2 .unread-n { display: inline-block; margin-right: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; box-sizing: border-box;
  background: #fcfe02; color: #000; font: 700 11px/18px var(--game, sans-serif); text-shadow: none; text-align: center; }   /* unread threads in this channel, like the menu's pill; the auto margin keeps it by the name */
.clubhouse .threads .meta { display: block; font-size: 12px; color: var(--cm-muted, #ccc); margin-top: 2px; }
.clubhouse .panel > h2 small.viewers { white-space: nowrap; }   /* the thread's "viewed by N", on one line at the right */
.clubhouse .tag.unread { background: var(--cm-title, #ff0); color: #000; }   /* yellow, so it stands out from Pinned and Locked */
.clubhouse .tag { display: inline-block; font: 700 10px/1 var(--game, sans-serif); padding: 3px 5px; background: var(--cm-tile-edge, #0627ac); color: #fff; vertical-align: 2px; }
.clubhouse .more { margin: 10px 0 0; font-size: 13px; }
/* Long threads (clubhouse.ts showThread): Latest post / Back to top, and the line above the first post since your last visit */
.clubhouse .jump { margin: 0 0 10px; font-size: 13px; color: var(--cm-muted, #ccc); }
.clubhouse #reply .jump { margin: 10px 0 0; }
.clubhouse .new-posts { margin: 6px 0 0; padding: 4px 0 0; border-top: 2px solid var(--cm-title, #ff0); color: var(--cm-title, #ff0); font: 700 11px/1.4 var(--game, sans-serif); text-transform: uppercase; scroll-margin-top: 64px; }
.clubhouse .new-posts + .post { border-top: 0; }
.clubhouse .post, .clubhouse #reply { scroll-margin-top: 64px; }   /* clear of the sticky title bar */
.clubhouse .quiet { margin: 8px 0 0; }
.clubhouse .post { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.clubhouse .post:first-of-type { border-top: 0; padding-top: 0; }
.clubhouse .post header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.clubhouse .post header strong { color: var(--cm-title, #ff0); }
.clubhouse .post header .meta { font-size: 12px; color: var(--cm-muted, #ccc); }
.clubhouse .post header form, .clubhouse .post header .reported { margin-left: auto; }
.clubhouse .notice { color: var(--cm-title, #ff0); font-weight: 700; }
.clubhouse .post .text { line-height: 1.55; overflow-wrap: anywhere; }
.clubhouse .post .text a { color: var(--cm-good, #5fe07a); }
.clubhouse .quote { margin: 4px 0 10px; padding: 6px 12px; border-left: 3px solid var(--cm-title, #ff0); background: rgba(255, 255, 255, .06); color: #ddd; }
.clubhouse .quote cite { display: block; font-style: normal; font-weight: 700; font-size: 12px; color: var(--cm-title, #ff0); }
.clubhouse form.inline { display: inline; }
/* Polls and videos in admins' posts (src/polls.ts): a bar fills each option to its share once you've voted */
/* Tags (src/mentions.ts) */
.clubhouse .mention { color: var(--cm-title, #ff0); font-weight: 700; }
.clubhouse .tag-list { list-style: none; margin: -4px 0 8px; padding: 4px 0; max-width: 320px; background: #fff; color: #222; border-radius: 6px; box-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.clubhouse .tag-list li { padding: 5px 12px; cursor: pointer; }
.clubhouse .tag-list li.on, .clubhouse .tag-list li:hover { background: #e6efe6; }
.clubhouse .tagged { border-color: var(--cm-title, #ff0); }
.clubhouse .poll { display: grid; gap: 6px; max-width: 520px; margin: 10px 0 4px; }
.clubhouse .poll .opt { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; font: inherit; text-align: left; cursor: pointer;
  color: inherit; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, .16) var(--pct, 0%), rgba(255, 255, 255, .05) var(--pct, 0%)); }
.clubhouse .poll .opt:hover { border-color: rgba(255, 255, 255, .5); }
.clubhouse .poll .opt.mine { border-color: var(--cm-title, #ff0); }
.clubhouse .poll .n { font-size: 12px; color: var(--cm-muted, #ccc); white-space: nowrap; }
.clubhouse .poll .who { margin: -2px 0 2px 12px; font-size: 12px; color: var(--cm-muted, #ccc); }
.clubhouse .poll .meta { margin: 0; font-size: 12px; color: var(--cm-muted, #ccc); }
.clubhouse .video, .msg .video { position: relative; max-width: 720px; aspect-ratio: 16 / 10.4; margin: 10px 0; }
.clubhouse .video iframe, .msg .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Reactions under a post (src/clubhouse.ts reactRow): a summary pill and ☺+, each opening a small pop-up */
.clubhouse .reacts { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.clubhouse .reacts details { position: relative; }
.clubhouse .reacts summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-size: 14px; line-height: 22px; user-select: none; }
.clubhouse .reacts summary::-webkit-details-marker { display: none; }
.clubhouse .reacts summary span { font-size: 12px; color: var(--cm-muted, #ccc); }
.clubhouse .reacts summary.mine { border-color: var(--cm-title, #ff0); }
.clubhouse .reacts .picker summary { color: var(--cm-muted, #ccc); }
.clubhouse .reacts .pop { position: absolute; z-index: 5; left: 0; bottom: calc(100% + 6px); display: flex; flex-wrap: wrap; gap: 6px; width: max-content; max-width: 280px;
  padding: 10px; border-radius: 16px; background: #fff; color: #333; box-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.clubhouse .reacts .pop p { flex-basis: 100%; margin: 0 0 2px; font-size: 13px; font-weight: 700; color: #666; }
.clubhouse .reacts .pop.pick { border-radius: 999px; padding: 6px 10px; flex-wrap: nowrap; max-width: none; }
.clubhouse .reacts button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.clubhouse .reacts .pe { font-size: 24px; line-height: 1; padding: 4px; border-radius: 50%; transition: transform .1s; }
.clubhouse .reacts .pe:hover { transform: scale(1.25); }
.clubhouse .reacts .pe.mine { background: #e6e6e6; }
.clubhouse .reacts .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid #ccc; font-size: 18px; }
/* Message Admin (messages.ts): the reaction under a message, as a pill like Community's summary. */
.clubhouse .reacts > .pe.mine, .clubhouse .reacts .reacted { font-size: 16px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--cm-title, #ff0); }
.clubhouse .reacts .chip span { font-size: 13px; color: #555; }
.clubhouse .reacts .chip.mine { border-color: #0627ac; background: #eef1ff; }
.clubhouse .admin-tools { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 8px; }
.clubhouse .err { color: var(--cm-bad, #f66); }

/* Members' Home (src/home.ts) */
.page-home main { padding-top: 0; }
.page-home .hero { max-width: 720px; margin: 8px auto 22px; text-align: center; text-shadow: 1px 1px 0 #000; }
.page-home .hero h1 { margin-bottom: 12px; }
.page-home .hero > p:not(.small) { font-size: 17px; line-height: 1.5; margin: 0 auto 18px; }
.page-home .hero { margin-top: 26px; }
.page-home #pcardBody .strip { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; font-weight: 700; text-shadow: none; border: 1px solid #000; }
.page-home #pcardBody .pdl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 10px 0; }
.page-home #pcardBody .pdl dt { color: var(--cm-title, #ff0); } .page-home #pcardBody .pdl dd { margin: 0; }
.page-home #pcardBody .attrs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(9, auto); grid-auto-flow: column; gap: 4px 14px; font-size: 13px; }   /* A to Z down each column, as the game's player screen */
.page-home #pcardBody .attr { display: grid; grid-template-columns: 92px 1fr 20px; align-items: center; gap: 6px; }
.page-home #pcardBody .bar { height: 8px; background: #22252e; border: 1px solid var(--cm-tile-edge, #0627ac); }
.page-home #pcardBody .bar i { display: block; height: 100%; background: var(--cm-good, #3c3); }
.page-home #pcardBody .attr b { text-align: right; }
.page-home #nextPlayer { float: right; }
@media (max-width: 600px) { .page-home #pcardBody .attrs { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
.page-home .hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.page-home .hero > p.hero-cap { margin: 12px 0 0; font-size: 14px; opacity: .85; }   /* the daily_cap setting, visitors only */
.page-home .hero > p.places { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-home .places .blocks { display: inline-flex; gap: 3px; }   /* separate blocks, like the game's gauges: reads as places, not loading */
.page-home .places .blocks i { width: 10px; height: 12px; background: #22252e; border: 1px solid var(--cm-tile-edge, #0627ac); }
.page-home .places .blocks i.on { background: var(--cm-title, #fcfe02); }
.page-home .places .blocks i.held { background: #7d7e22; }   /* held by a join link not used yet */
.page-home .places b { color: var(--cm-title, #fcfe02); font-weight: 700; }
.page-home .numbers { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; margin: 0 auto 22px; padding: 0; max-width: 900px; text-shadow: 1px 1px 0 #000; }
.page-home .numbers li { text-align: center; font-size: 13px; color: var(--cm-muted, #ccc); }
.page-home .numbers b { display: block; font: 700 24px var(--game, sans-serif); color: var(--cm-title, #ff0); }
@media (max-width: 600px) { .page-home .numbers { gap: 8px 20px; } }   /* three fit on one line */
.page-home .compare { max-width: 1100px; margin: 0 auto 14px; }
.page-home .home-grid { max-width: 1100px; margin: 0 auto; }
.page-home .home-side { display: grid; gap: 14px; align-content: start; }   /* Announcements, then Player Info */
.page-home .newsrow { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid rgba(6, 39, 172, .7); color: var(--cm-text, #fff); text-decoration: none; }
.page-home .newsrow:last-child { border-bottom: 0; }
.page-home .newsrow .muted { flex: 0 0 auto; min-width: 92px; }
.page-home .newsrow:hover b, .page-home .newsrow.unread b { color: var(--cm-title, #ff0); }
@media (max-width: 760px) { .page-home .grid > .s7, .page-home .grid > .s5 { grid-column: span 12; } }

/* Play page: the game with its control panel beside it (below it on narrow screens), and the pop-up keyboard */
.page-play .playwrap { flex: 1; min-height: 0; display: flex; gap: 8px; justify-content: center; }
/* No black bars on wide screens: the game's box is never wider than the 4:3 game at full height, and
   the game and menu sit together in the middle. */
.page-play .playwrap #dos { flex: 1; min-width: 0; max-width: calc((100vh - var(--play-chrome, 95px) - var(--ticker-h, 0px)) * 4 / 3); }
html.ticker-on { --ticker-h: 38px; }   /* the ticker above the game (site.css) takes 38px of its height */
/* The menu grows into the spare width beside the game, up to 340px, and never takes width the game needs: the game is
   4:3 and fills the height (the page around #dos is ~101px tall; 95px leaves a margin), so it needs (100vh - 95px) * 4/3 of the width;
   the rest, less the page's side padding, the gap and #dos's border (28px), is the menu's. */
.page-play .controls { flex: 0 0 clamp(176px, calc(100vw - 28px - var(--rail-w, 0px) - (100vh - var(--play-chrome, 95px) - var(--ticker-h, 0px)) * 4 / 3), 340px); display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
/* On wide screens the menu sits at the right-hand edge and the game is centred in the space to its left: the game
   fills to its full 4:3 size first, then its auto margins share out what's left. */
@media (min-width: 901px) {
  /* The game sits against the menu, 10px from it, and the spare width goes on the far side. */
  .page-play .playwrap { gap: 10px; }
  .page-play .playwrap #dos { flex-grow: 1000; margin-left: auto; margin-right: 0; }
  html.menu-left .page-play .playwrap #dos { margin-left: 0; margin-right: auto; }
  .page-play .controls > * { width: 100%; max-width: 340px; box-sizing: border-box; }
  .page-play .controls { padding-top: 10px; }   /* the same gap above Menu as between the boxes */
  /* The panels sit left of the game by default (panels.js: drag a heading across, or the ⇄). Remembered per browser. */
  html.menu-left .page-play .playwrap { flex-direction: row-reverse; }
  .page-play .playwrap { --panels-top: 10px; }
}
/* A computer's game pages have no title bar (issue 158): the name and "Signed in as" head the panel column instead
   (panels.js), and --play-chrome drops by the bar's height so the game grows to fill it. Narrow screens and touch keep the bar. */
.side-brand { display: none; }
@media (min-width: 901px) {
  html:not(.touch) body.brand-in-panels { --play-chrome: 28px; }   /* the legal line's 25px, and 3px to spare */
  html:not(.touch) body.brand-in-panels:has([data-panels-row]:not([hidden])) .titlebar { display: none; }   /* not on Play with Friends' front page, before the game shows */
  html:not(.touch) .side-brand { display: flex; flex-direction: column; justify-content: center; order: -9; position: relative; text-align: center; padding: 8px 6px;   /* above Get started (order -1) too */
    margin: 0 0 8px;   /* room for the drop shadow below */
    background: var(--cm-bar, #004000); border: 0;
    /* the game's own panels (its red team banner): a bevel lit from the top left, and a deep hard black shadow below it */
    box-shadow: inset 3px 3px 0 #2f7a2f, inset -3px -3px 0 #002400, 0 8px 0 #000; }
  .side-brand > button.menu-swap { position: absolute; bottom: 6px; right: 6px; float: none; margin: 0; }   /* on the Signed in row, so the name keeps one line; button. outranks SWOS's [data-tip] rule */
  .side-brand .longdate { font-size: 19px; text-shadow: 3px 3px 0 #000; }   /* the game title's deep black shadow; one line in the 340px column (issue 158: it was 300px and wrapped) */
  .side-who { margin: 4px 0 0; font-size: 12px; text-shadow: 1px 1px 0 #000; }
  .side-who .whoami { color: var(--cm-muted, #ccc); text-decoration: none; }
  .side-who .whoami b { color: var(--cm-text, #fff); }
  .side-who .whoami:hover, .side-who .whoami:hover b { color: var(--cm-title, #ff0); }
  .side-who .adminlink { margin-left: 10px; color: var(--cm-title, #ff0); text-decoration: none; }
  .side-who .adminlink:hover { text-decoration: underline; }
}
.menu-swap { display: none; float: right; margin: -2px -4px 0 0; padding: 0 5px; font: 700 13px var(--game, sans-serif); color: var(--cm-muted, #ccc);
  background: none; border: 0; cursor: pointer; text-shadow: 1px 1px 0 #000; }
.menu-swap:hover, .menu-swap:focus-visible { color: var(--cm-title, #ff0); outline: none; }
@media (min-width: 901px) { html:not(.touch) .menu-swap { display: inline-block; } }
.ctl-group { background: var(--cm-panel, rgba(4, 6, 22, .82)); border: 2px solid var(--cm-tile-edge, #0627ac); padding: 0 8px 8px; display: flex; flex-direction: column; gap: 4px; }
.ctl-group h2 { margin: 0 -8px 4px; padding: 4px 8px; font: 700 13px var(--game, sans-serif); color: var(--cm-title, #ff0); background: var(--cm-bar, #004000);
  border-bottom: 2px solid var(--cm-tile-edge, #0627ac); text-shadow: 1px 1px 0 #000; }
.ctl-group h2 .buildtag { float: right; font-weight: 400; font-size: 11px; line-height: 15px; color: var(--cm-muted, #ccc); }   /* Game's header: Build 51 · 23 Oct 2026 */
.ctl { font: 13px/1.2 var(--game, sans-serif); color: #fff; background: var(--cm-tile, rgba(0, 0, 10, .38)); border: 2px solid var(--cm-tile-edge, #0627ac);
  padding: 7px 8px; cursor: pointer; text-shadow: 1px 1px 0 #000; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
a.ctl { display: block; text-align: center; text-decoration: none; position: relative; }   /* the Club box's links on Play */
.ctl:hover, .ctl:focus-visible { background: var(--cm-tile-hover, rgba(6, 39, 172, .45)); outline: none; }
.ctl:active, .ctl.on { background: var(--cm-tile-edge, #0627ac); }
.ctl.go { color: var(--cm-title, #ff0); }
.ctl.sm { padding: 3px 8px; font-size: 12px; }
.ctl[hidden] { display: none; }
.ctl-group:empty { display: none; }   /* a panel nothing filled: Career Review on 97/98 (review.js reads 26/27 saves only) */
.ctl-group { background: #151a28; }   /* Play's boxes: dark slate so they stand clear of the black page */
.ctl-group .ctl { background: #242b40; border-color: #3f4f8c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 0 #000; }   /* raised buttons on the slate */
.ctl-group .ctl:hover, .ctl-group .ctl:focus-visible { background: #2f3a5e; }
.ctl-group .ctl:active, .ctl-group .ctl.on { background: #0627ac; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .4); }
.ctl-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
/* Menu two to a row (a lone last one takes the row); Game's pairs side by side, one alone (the other hidden) takes the row. */
.ctl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ctl-grid > .ctl:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ctl-pair { display: flex; gap: 4px; }
.ctl-pair > .ctl { flex: 1 1 0; min-width: 0; }
.ctl-grid > .ctl, .ctl-pair > .ctl { padding: 5px 3px; }
.ctl-pair:not(:has(> :not([hidden]))) { display: none; }
.touch-ctl { display: none; }   /* Tap to Drag and Right Click: touch screens only (html.touch from site.js) */
html.touch .touch-ctl { display: grid; }
.ctl-note { margin: 2px 0 0; font-size: 12px; color: var(--cm-muted, #ccc); text-align: center; }
.link-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--cm-title, #ff0); }
/* Play's Game box message line (play.js): saving, what to do next, warnings, errors */
.game-msg { margin: 0 0 2px; font-size: 12px; line-height: 1.35; color: #fff; text-align: center; }
.game-msg.ok { color: var(--cm-good, #3fd65a); }
.game-msg.busy { color: var(--cm-bad, #ff5a5a); animation: busy 1.2s ease-in-out infinite alternate; }
@keyframes busy { to { color: #ffb4ad; } }
@media (prefers-reduced-motion: reduce) { .game-msg.busy { animation: none; } }
@media (max-width: 900px) {
  .page-play .playwrap { flex-direction: column; }
  .page-play .playwrap #dos { flex: none; height: min(calc((100vw - 16px) * .75), 100svh); min-height: 0; max-width: none; }   /* a set 4:3 height: js-dos fills its box, so a min-height alone left the game 0 px tall on phones */
  .page-play .controls { flex: none; flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .page-play .ctl-group { flex: 1 1 260px; }
  /* Two boxes a row stretch to the taller one, so a folded box beside an open one showed as a tall empty panel
     (Shaun, Android tablet, 14 Nov 2026: "Community and Achievements look blank"). Folded keeps its heading's height. */
  .page-play .ctl-group.folded { align-self: flex-start; }
  .ctl-keys { grid-template-columns: repeat(5, 1fr); }
  .ctl-keys.touch-ctl { grid-template-columns: 1fr 1fr; }
  body.page-play { height: auto; min-height: 100vh; }   /* the controls stack under the game, so the page grows instead of the legal line covering them */
  .page-play main { flex: none; }
}
.gamekbd { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(760px, calc(100vw - 16px)); z-index: 60;
  background: #04061a; border: 2px solid var(--cm-tile-edge, #0627ac); padding: 0 8px 8px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 8px 30px rgba(0, 0, 0, .6); }
.gamekbd[hidden] { display: none; }
.gamekbd h2 { display: flex; justify-content: space-between; align-items: center; margin: 0 -8px 4px; padding: 6px 8px; font: 700 15px var(--game, sans-serif);
  color: var(--cm-title, #ff0); background: var(--cm-bar, #004000); border-bottom: 2px solid var(--cm-tile-edge, #0627ac); }
.gamekbd-row { display: flex; gap: 4px; }
.gamekbd-row .ctl { flex: 1; min-width: 0; padding: 10px 0; font-size: 16px; }
.gamekbd-row .ctl.wide { flex: 1.6; }
.gamekbd-row .ctl.space { flex: 4; }

/* Title bar, top right: "Signed in as <name>" or "Sign in" (the Worker puts it where the date tag was) */
.titlebar .whoami { position: absolute; top: 8px; right: 12px; font-size: 13px; color: var(--cm-muted, #ccc); text-decoration: none; text-shadow: 1px 1px 0 #000; }
.titlebar .whoami b { color: var(--cm-text, #fff); }
.titlebar .whoami:hover, .titlebar .whoami:hover b { color: var(--cm-title, #ff0); }
.titlebar .adminlink { position: absolute; top: 28px; right: 12px; font-size: 12px; color: var(--cm-title, #ff0); text-decoration: none; text-shadow: 1px 1px 0 #000; }   /* admins only (index.ts) */
.titlebar .adminlink:hover { text-decoration: underline; }
.adminlink .badge { display: inline-block; margin-left: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; box-sizing: border-box; vertical-align: 1px;
  background: #fcfe02; color: #000; font: 700 10px/16px var(--game, sans-serif); text-shadow: none; text-align: center; box-shadow: 0 0 0 1px #000; }   /* what's waiting for an admin (adminAlerts) */
@media (max-width: 700px) { .titlebar .whoami, .titlebar .adminlink { position: static; display: inline-block; margin-top: 4px; } .titlebar .adminlink { margin-left: 10px; } }

/* Cards with tabs (Account), as a page and inside the overlay */
.card { background: var(--cm-panel, rgba(4, 6, 22, .92)); border: 2px solid var(--cm-tile-edge, #0627ac); padding: 22px 26px 24px; }
.account-card { max-width: 640px; margin: 24px auto; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h1 { margin: 0; font: 700 24px var(--game, sans-serif); text-shadow: 2px 2px 0 #000; }
.card .tile { min-height: 0; font-size: 15px; padding: 8px 16px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs .tile.on { background: var(--cm-bar, #004000); color: var(--cm-title, #ff0); }
.card h2 { font: 700 17px var(--game, sans-serif); color: var(--cm-title, #ff0); margin: 18px 0 8px; }
.card p { line-height: 1.5; }
@media (max-width: 600px) { .card { padding: 16px; } .card-head h1 { font-size: 20px; } }
/* The overlay: the card in a frame over the page */
dialog.overlay { padding: 0; border: 2px solid var(--cm-tile-edge, #0627ac); background: #04061a; width: min(640px, calc(100vw - 24px)); max-height: 90vh;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .6); overflow: hidden; }
dialog.overlay::backdrop { background: rgba(0, 0, 0, .6); }
dialog.overlay iframe { display: block; width: 100%; border: 0; }
body.page-embed { background: #04061a; margin: 0; padding: 0; min-height: 0; height: auto; display: block; }
.page-embed .card { margin: 0; border: 0; max-width: none; }
.btn.danger { background: #8b1a1a; color: #fff; }
.name-form { display: grid !important; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: end; margin: 0 0 6px !important; }
.name-form .l { grid-column: 1 / -1; }
.name-form input { font: 15px var(--game, inherit); padding: 6px 8px; min-width: 0; }
/* Account, Profile's switches (21 Nov 2026): a row per setting, its words on the left and a toggle on the right. */
.prefs { margin: 14px 0 0; }
.account .prefs-head { margin: 18px 0 4px; font: 700 17px var(--game, inherit); color: var(--cm-title); }
.name-form .l { font: 700 17px var(--game, inherit); margin: 0 0 4px; }   /* Display name reads as a section heading, as Preferences and Signing in (21 Nov 2026) */
.signin-actions .btn.danger { margin-left: 16px; }   /* set apart from the sign-out buttons */
@media (max-width: 600px) { .signin-actions .btn.danger { margin: 16px 0 0; } }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); cursor: pointer; }
.prefs-head + .switch-row { border-top: 0; }
.switch-text { display: grid; gap: 2px; }
.switch-text small { color: var(--cm-muted); font-size: 13px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 24px; margin: 0; border-radius: 12px; background: var(--cm-grey-lo);
  border: 1px solid var(--cm-grey-hi); position: relative; cursor: pointer; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: #1f8a3a; border-color: var(--cm-good); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--cm-title); outline-offset: 2px; }

/* Every page but Play, on phones: iPhone Safari enlarges text by its own rules and lets anything a little too wide
   (a long email address, a long word) slide the whole page sideways, which feels broken. Play pins its own layout. */
html:has(> body:not(.page-play)) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body:not(.page-play) main { overflow-wrap: break-word; }
/* Play on touch screens (html.touch, from site.js): only the keys a finger needs, nearest the game. A match needs
   Space (speed up), taps, drags (Tap to Drag) and now and then the Keyboard. */
.menu-ctl, .rotate-hint, .computer-nudge { display: none; }
/* "Easier on a computer" is an overlay on phones now (#deskgate), so the old side panel stays hidden everywhere. */
html.touch .page-play .desk-key { display: none; }
.page-play #dos { user-select: none; -webkit-user-select: none; }   /* a selection over the game could be dragged, swallowing the mouse release (23 Nov 2026) */
html.touch .page-play #dos { touch-action: none; }   /* taps and drags go to the game, never pinch-zoom or scroll the page */
html.touch .page-play #keys { order: -1; }
html.touch .page-play #keys .ctl-keys:not(.touch-ctl) { grid-template-columns: 1fr 1fr; }
html.touch .page-play #keys .ctl { min-height: 40px; }
/* Each key says what it is, and in small grey text when to use it. */
html:not(.touch) .page-play #keys #rightclick { grid-column: 1 / -1; }   /* on a computer, Pause Match has the top row; the keyboard keys pair up below */
.page-play #keys .key-sub { display: block; margin-top: 1px; font-size: 11px; font-weight: 400; line-height: 1.2; color: #d6d6d6; }
/* Phone upright: just "Signed in as" in the title bar, then the turn-sideways hint, the game, Keys, Get involved and Menu.
   The Game box (saves, screenshots, full screen) is for computers. */
@media (orientation: portrait) {
  html.touch .page-play .rotate-hint { display: block; margin: 4px 0; font-size: 12px; color: var(--cm-muted, #ccc); text-align: center; }
}
/* Not on a tablet: it says "phone", and upright an iPad's game is already big (DrChampMan's screenshots, 18 Nov 2026). */
html.tablet .page-play .rotate-hint { display: none !important; }
@media (orientation: portrait) {
  html.touch .page-play .titlebar { padding: 6px 10px; }
  html.touch .page-play .titlebar :is(.longdate, .tagline) { display: none; }
  html.touch .page-play .titlebar .whoami, html.touch .page-play .titlebar .adminlink { position: static; margin: 0; }
  html.touch .page-play .titlebar .adminlink { margin-left: 10px; }
  html.touch .page-play #menubox { order: 2; }
}
/* Phones only (html.tablet, site.js): an iPad has room for the Game box, and without it a tablet player had no
   Screenshot, Export or Import (DrChampMan, 18 Nov 2026). */
html.touch:not(.tablet) .page-play #gamebox { display: none !important; }   /* beats the landscape Menu view showing every panel */
/* A starting player on a phone or tablet: no career saved past its first day (data-day-one, index.ts; a brand-new
   member, or one who has the Quick Start world but hasn't played it). Play is kept to the game: the Club's extras wait,
   the computer panel (Email me a link for my computer) stays, since the full game is easier there, and the Game box
   comes back with only its message line, Stuck? (new players gave up without ever finding Help), and for players with
   no save at all the Quick Start nudge and button. Upright the box sits above the keys; sideways, at the top. */
html.touch body.page-play:not([data-new-player="1"], [data-day-one="1"]) .computer-nudge { display: none !important; }
html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) :is(#supportbox, #invitebox, #labs, #careerbox) { display: none !important; }
html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) .computer-nudge { display: flex !important; order: 3; }
html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) #gamebox { display: flex !important; order: -2; }
html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) #gamebox > :not(#gamemsg, #quicknudge, #instant, #stuckline) { display: none !important; }
html.touch body.page-play:not([data-new-player="1"]) #gamebox > :is(#quicknudge, #instant) { display: none !important; }
@media (orientation: landscape) and (max-height: 600px) {
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) #gamebox { order: -3; }   /* top of the column: the step to take */
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) .menu-ctl { order: 9; }   /* Menu at the bottom */
}
/* Upright, a starter's page is one column: the computer panel, the message (Choose Restore Game) with Stuck?, the
   game, the turn-sideways line (sideways is optional), the keys, then Menu (folded, panels.js). The play area and its
   side panel let their boxes take part in the page's own column (display: contents) so the order can mix them. */
@media (orientation: portrait) {
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) main { row-gap: 8px; }
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) :is(.playwrap, .controls) { display: contents; }
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) :is(.computer-nudge, #gamebox, #keys, #menubox) { flex: none; }
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) .stuck { text-align: center; }
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) .computer-nudge { order: 6; }   /* below the keys (3 Nov 2026) */
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) #gamebox { order: 2; }
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) #dos { order: 3; }
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) .rotate-hint { order: 4; }
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) #keys { order: 5; }
  html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) #menubox { order: 7; }
}
.stuck { display: none; margin: 4px 0 0; font-size: 12px; color: var(--cm-muted, #ccc); }
.stuck a { color: var(--cm-title, #ff0); }
html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) .stuck { display: block; }
/* While Get started is showing a starter the step (play.js firstSteps), it's the one box above the game on a phone: the
   Game box goes when its message only repeats it (play.js .quiet), Stuck? comes along inside Get started, and the
   computer panel waits until they're set up (George, 3 Nov 2026: too much clutter on a first visit). */
.fs-stuck { display: none; }
html.touch body.page-play:has(#firststeps:not([hidden]):not(.all-done)) .fs-stuck { display: block; margin-top: 6px; }
html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) #gamebox.quiet,
html.touch body.page-play .computer-nudge.sent { display: none !important; }   /* the link went (club.js): no need to ask again */

/* Quick Start's message (play.js quick-ready) is the step to take, so it reads loud; the Keyboard pulses while the game wants a name typed. */
html.touch body.quick-ready #gamemsg { font-size: 14px; font-weight: 700; color: var(--cm-title, #ff0); }
html.touch body.kbd-hint #kbdopen { animation: kbd-hint 1.2s ease-in-out infinite; }
@keyframes kbd-hint { 50% { box-shadow: 0 0 0 3px var(--cm-title, #ff0); } }
/* Phone in landscape: the game fills the height; a slim column on the right holds the keys, or Club and Game via Menu. */
/* --top-gap: Safari on iPhone lays its address bar over the top of the page in landscape, so the game starts below it. */
html.touch { --top-gap: max(0px, var(--nudge)); }
@supports (-webkit-touch-callout: none) { html.touch { --top-gap: max(0px, calc(28px + var(--nudge))); } }
@media (orientation: landscape) and (max-height: 600px) {
  /* Pinned in place: Safari on iPhone ignores overflow: hidden on the body, so a scroll in the side column could
     slide the whole page up under its address bar. */
  html.touch body.page-play { position: fixed; inset: 0; height: 100svh; min-height: 0; overflow: hidden; overscroll-behavior: none; padding: 0; }
  html.touch .page-play .controls { overscroll-behavior: contain; }
  html.touch .page-play .touch-help { font-size: 11px; line-height: 1.3; }
  html.touch .page-play .nudge.touch-ctl { display: flex; }
  html.touch .page-play :is(.titlebar, .foot.legal) { display: none; }   /* the pitch (#bg) stays behind the keys, as upright (George, 11 Nov 2026) */
  html.touch .page-play main { flex: 1; min-height: 0; padding: 0 0 0 env(safe-area-inset-left); }
  /* The game may stretch up to 15% wider than 4:3 (js-dos renderAspect Fit on touch screens), using spare width for a bigger picture. */
  /* The game fills the height, a little wider than 4:3, and leaves the keys a column of at least 230px, wide enough
     for two keys a row (George, 1 Nov 2026: up to 16:9 left a column that could only fit one). */
  html.touch { --game-h: calc(100svh - var(--top-gap)); --game-w: min(calc(var(--game-h) * 4 / 3 * 1.15), calc(100vw - 230px)); }
  html.touch .page-play #keys .ctl-keys { grid-template-columns: 1fr 1fr; }
  html.touch .page-play #keys .ctl { padding: 6px; font-size: 14px; }
  html.touch body.page-play.page-play .computer-nudge { display: none !important; }   /* sideways it's the game only: the panel is upright */
  html.touch .page-play .playwrap { flex-direction: row; height: var(--game-h); margin-top: var(--top-gap); gap: 4px; }
  html.touch .page-play .playwrap #dos { flex: none; height: var(--game-h); width: var(--game-w); max-width: none; border-width: 0; }
  html.touch .page-play .controls { flex: 1 1 auto; flex-direction: column; flex-wrap: nowrap; gap: 6px; overflow-y: auto; padding: 4px 4px 28px 0; }
  html.touch .page-play .controls > .ctl-group:not(#keys) { display: none; }
  html.touch.touch-menu .page-play .controls > .ctl-group:not(#keys) { display: flex; }
  html.touch.touch-menu .page-play #keys { display: none; }
  html.touch .page-play .controls .ctl-group { flex: none; }
  html.touch .page-play #keys h2 { display: none; }
  html.touch .page-play .menu-ctl { display: block; order: -2; }
  html.touch .page-play #menubox { order: 2; }
}

/* The pop-up game keyboard on phones: in landscape it takes over the key column, so the game (and the name or search
   box being typed into) stays in view; in portrait it takes at most 60% of the screen. */
html.touch .gamekbd { max-height: 60svh; overflow-y: auto; }
@media (orientation: landscape) and (max-height: 600px) {
  html.touch .gamekbd { left: auto; right: 0; top: 0; bottom: 0; transform: none; max-height: none; z-index: 60;
    width: calc(100vw - var(--game-w) - 4px); top: var(--top-gap); padding: 0 4px 4px; gap: 3px; }
  html.touch .gamekbd h2 { margin: 0 -4px 2px; padding: 4px 6px; font-size: 13px; }
  html.touch .gamekbd-row { gap: 3px; }
  html.touch .gamekbd-row .ctl { padding: 7px 0; font-size: 13px; min-height: 0; }
}

.touch-help { display: none; }
/* Game position (phones in landscape): ▲ ▼ move the game by --nudge, saved per device by play.js, for browsers whose bars cover the top.
   Upright they'd do nothing (--top-gap is only used sideways), so they're hidden there, past html.touch .touch-ctl. */
html.touch { --nudge: 0px; }
html.touch .nudge.touch-ctl, .nudge.touch-ctl { display: none; align-items: center; gap: 4px; font-size: 12px; color: var(--cm-muted, #ccc); }
.nudge .ctl { flex: 1; min-height: 0 !important; padding: 4px; }
html.touch .page-play .touch-help { display: block; margin: 2px 0 0; font-size: 12px; line-height: 1.35; color: var(--cm-muted, #ccc); }

/* Quick Start's note for new members (play.js quickNudge), just above the button it points at */
.quick-nudge { padding: 6px 8px; border: 2px solid var(--cm-title, #ff0); background: rgba(6, 39, 172, .35); font-size: 12px; line-height: 1.4; color: #fff; text-align: center; }
.quick-nudge p { margin: 0 0 6px; }
.quick-nudge b { color: var(--cm-title, #ff0); }
.quick-nudge[hidden] { display: none; }
/* Quick Start England: after the world is placed, the button grows to show the one step left */
#instant .instant-next { display: block; margin-top: 4px; font-size: 12px; line-height: 1.3; color: #fff; }
#instant .instant-next[hidden] { display: none; }
#instant > .badge, #othergame > .badge { margin-left: 4px; vertical-align: 2px; }
/* One line under Quick Start and Play Original 97/98, like the Try New Games buttons (.lab-blurb) */
#instant .btn-blurb, #othergame .btn-blurb, #multi .btn-blurb { display: block; margin-top: 2px; font-size: 11px; line-height: 1.3; color: #e8e8e8; }
#instant:has(.instant-next:not([hidden])) .btn-blurb { display: none; }
html.touch #multi { display: none; }   /* Play Multiplayer needs a keyboard */
#instant .instant-next b { color: var(--cm-title, #ff0); font-weight: 700; }


/* Message George (src/messages.ts): the conversation as bubbles, yours on the right. */
.msgs { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.msg { max-width: 80%; padding: 8px 12px; background: rgba(0, 0, 10, .45); border: 2px solid var(--cm-tile-edge, #0627ac); align-self: flex-start; }
.msg.mine { align-self: flex-end; background: var(--cm-bar, #004000); }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }   /* pictures sent with a message (messages.ts) */
.msg img { max-width: 100%; }
.msg-img { display: block; max-width: 240px; max-height: 240px; width: auto; height: auto; border: 2px solid var(--cm-tile-edge, #0627ac); }
.msg header { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.msg header strong { color: var(--cm-title, #ff0); }
.msg header .meta { font-size: 12px; color: var(--cm-muted, #ccc); }
.msg .text { line-height: 1.55; overflow-wrap: anywhere; }
.msg .text a { color: var(--cm-good, #5fe07a); }

/* "Did you mean …@gmail.com?" under email boxes (emailhint.js) */
.email-hint { margin: 4px 0 0; color: var(--cm-title, #ff0); flex-basis: 100%; }
.email-hint.bad { color: var(--cm-bad, #ff6b6b); }
.email-hint.bad .linkish { color: inherit; }
.invite-form .email-hint { grid-column: 1 / -1; margin: 0; }

.computer-nudge.lit { border-color: var(--cm-title, #ff0); }   /* after the first cloud save on a phone (play.js) */
/* A starter's phone (3 Nov 2026, George: less clutter): the computer panel is just a small Email me a link button, and a
   Game message worth reading (saving to the cloud: keep this tab open, or a problem) sits pinned at the bottom of the
   screen rather than above the game, where it pushed the game down. The rest are quiet (play.js) and left out. */
html.touch body.page-play .computer-nudge { padding: 0; border: 0; background: none; justify-content: center; }
html.touch body.page-play .computer-nudge .ctl-note { display: none; }
html.touch body.page-play .computer-nudge .ctl { flex: none; width: auto; align-self: center; margin: 0 auto; padding: 5px 14px; font-size: 13px; }
html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) #gamebox:not(.quiet) { position: fixed; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom));   /* above Safari's floating toolbar */
  z-index: 60; padding: 6px 10px; box-shadow: 0 4px 16px rgba(0, 0, 0, .6); }
html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) #gamebox:not(.quiet) #gamemsg { font-size: 12px; margin: 0; }
html.touch body.page-play:is([data-new-player="1"], [data-day-one="1"]) #gamebox:not(.quiet) #stuckline { display: none; }

/* Phones and tablets: "CM 26/27 plays best on a computer" before the game (play.html #deskgate, play.js) */
.deskgate { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .78); }
.deskgate[hidden] { display: none; }
.deskgate-card { max-width: 420px; width: 100%; background: var(--cm-panel, #04061a); border: 2px solid var(--cm-title, #ff0); padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px; text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .6); }
.deskgate-card h2 { margin: 0; font: 700 20px/1.25 var(--game, sans-serif); color: var(--cm-title, #ff0); }
.deskgate-card { position: relative; }
.deskgate-x { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: #fff;
  font: 700 24px/32px sans-serif; cursor: pointer; }
.deskgate-card p { margin: 0; line-height: 1.5; }
.deskgate-card .btn { width: 100%; }
/* Desktop first on phones, the 50/50 test's test half (play.js phoneHold, src/phonetest.ts): this page instead of the game */
body.phone-hold .playwrap, body.phone-hold .rotate-hint, body.phone-hold #deskgate { display: none !important; }
.phonehold { max-width: 460px; margin: 16px auto; padding: 18px 16px; background: var(--cm-panel, #04061a); border: 2px solid var(--cm-title, #ff0);
  display: flex; flex-direction: column; gap: 10px; }
.phonehold h2 { margin: 0; font: 700 21px/1.25 var(--game, sans-serif); color: var(--cm-title, #ff0); text-align: center; }
.phonehold p { margin: 0; line-height: 1.5; text-align: center; }
.phonehold-shot { display: block; width: 100%; height: auto; border: 2px solid var(--cm-tile-edge, #0627ac); }
.phonehold .phonehold-note { font-size: 14px; color: var(--cm-muted, #ccc); }
.phonehold .phonehold-again { background: none; border: 0; box-shadow: none; color: var(--cm-muted, #ccc); text-decoration: underline;
  text-transform: none; font-size: 14px; padding: 4px; }
/* Home, members on a phone not yet on a computer (home.ts) */
.touch-push { display: none; }
html.touch .touch-push { display: block; max-width: 420px; margin: 14px auto 0; padding: 10px 12px; border: 2px solid var(--cm-title, #ff0);
  background: rgba(4, 6, 22, .85); text-align: center; }
.touch-push p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.deskgate-card #deskgate-play { background: none; border: 0; box-shadow: none; color: var(--cm-muted, #ccc); text-decoration: underline;
  text-transform: none; font-size: 14px; padding: 4px; }

/* Community screenshots (shots.ts): the game frame at up to double size, pixels kept sharp. */
.shots { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.shots .shot { display: block; width: 100%; max-width: 640px; height: auto; image-rendering: pixelated; border: 2px solid var(--cm-tile-edge, #0627ac); }
.shot-pick .shot-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.shot-pick summary { cursor: pointer; }
.shot-pick .shot-tile { position: relative; }
.shot-pick .shot-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0; border: 1px solid #000; border-radius: 50%;
  background: #c62828; color: #fff; font: 700 15px/20px sans-serif; text-align: center; cursor: pointer; box-shadow: 1px 1px 0 #000; }
.shot-pick .shot-del:hover { background: #e53935; }
.shot-pick .shot-del.ask { width: auto; padding: 0 8px; border-radius: 11px; font-size: 12px; }
.shot-pick label { display: flex; align-items: flex-start; gap: 4px; cursor: pointer; }
.shot-pick img { width: 160px; height: auto; image-rendering: pixelated; border: 2px solid var(--cm-tile-edge, #0627ac); }
.shot-pick input:checked + img { border-color: var(--cm-good, #5fe07a); }
.shot-pick .shot-msg.err { color: #ff8a80; }
.shot-pick .shot-up { display: inline-block; position: relative; margin: 4px 0; }
.shot-pick .shot-up[hidden] { display: none; }
.shot-pick .shot-up input { position: absolute; width: 1px; height: 1px; opacity: 0; }   /* the label is the button */
.shot-pick .shot-up:focus-within { outline: 2px solid var(--cm-title); }
.shot-pick.inline input[name=shot] { display: none; }
.shot-pick .shot-ins { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; padding: 0; border: 1px solid #000; border-radius: 50%;
  background: #2e7d32; color: #fff; font: 700 17px/19px sans-serif; text-align: center; cursor: pointer; box-shadow: 1px 1px 0 #000; }
.shot-pick .shot-ins:hover { background: #43a047; }
.shot-pick .shot-ins.in { background: #fff; color: #000; }
.shot-pick .shot-ins.in:hover { background: #ddd; }
.shot-pick .shot-ins[hidden] { display: none; }
.shot-pick.inline label { cursor: zoom-in; }
.shot-view { padding: 0; border: 2px solid var(--cm-tile-edge, #0627ac); background: #000; max-width: calc(100vw - 32px); overflow: hidden; cursor: zoom-out; outline: none; }
.shot-view::backdrop { background: rgba(0, 0, 0, .75); cursor: zoom-out; }
.shot-view img { display: block; width: min(960px, calc(100vw - 36px), calc((100vh - 40px) * 4 / 3)); height: auto; image-rendering: pixelated; }

/* Play: the pinned threads at the foot of the Menu, under Hide / Show Tips, one at a time (play.js): the title, then the
   start of its first post below. Its own class names, since site.css's .spot (one-line, ellipsis) is something else. */
.pin-spot { display: block; margin-top: 6px; padding: 6px 2px 4px; border-top: 1px solid var(--cm-tile-edge, #0627ac); color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.pin-spot[hidden] { display: none; }
.pin-spot:hover .pin-title { text-decoration: underline; }
.pin-title { display: block; font-size: 14px; line-height: 1.3; color: var(--cm-title, #ff0); }
.pin-text { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: #e8e8e8; }
.pin-spot.in { animation: spotin .5s ease; }
@keyframes spotin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pin-spot.in { animation: none; } }
/* "How's your experience?" (play.js): outside the panels, a strip at the foot of Play's side column: held to the
   bottom of the column on computers (it scrolls), under the keys sideways on a phone, and under Menu upright (George, 6 Nov 2026). */
.page-play .controls > .mood { order: 99; margin-top: auto; flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 2px 8px; padding: 4px 22px 4px 8px; position: relative; background: transparent; font-family: var(--game, sans-serif); }   /* no box: not one of the panels */
/* Gone while Get started is up (#firststeps, play.js), whatever the screen: a starting player has one thing to do. */
.page-play .controls > .mood[hidden], body:has(#firststeps:not([hidden])) .controls > .mood { display: none; }
@media (max-width: 900px) { .page-play .controls > .mood { flex-basis: 100%; box-sizing: border-box; } }
html:not(.touch) .page-play .controls > .mood { position: sticky; bottom: 0; z-index: 2; background: #0b0d10; }   /* the column scrolls: it stays at its foot, on the page's own black so panels don't show through */
@media (max-width: 900px) { html:not(.touch) .page-play .controls > .mood { position: relative; } }
/* × closes it for the rest of the day (play.js), in the strip's top right corner. */
.mood-x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; padding: 0; background: none; border: 0;
  color: #8a8f99; font: 700 15px/1 var(--game, sans-serif); cursor: pointer; }
.mood-x:hover, .mood-x:focus-visible { color: #fff; }
.mood-q { margin: 0; font-size: 13px; color: #fff; }
.mood-btns { display: flex; gap: 6px; }
.mood-btns[hidden] { display: none; }
.mood-btn { padding: 1px; line-height: 0; background: none; border: 2px solid transparent; border-radius: 50%; cursor: pointer; }
.mood-btn[data-mood=good] { color: #3fd65a; }   /* the faces draw in currentColor */
.mood-btn[data-mood=bad] { color: #ff5a5a; }
.mood-btn:hover, .mood-btn:focus-visible, .mood-btn.picked { border-color: currentColor; }
.mood-btn.picked { background: rgba(255, 255, 255, .1); }
.mood-done { margin: 0; font-size: 12px; color: var(--cm-title, #ff0); }
.mood-q[hidden], .mood-done[hidden] { display: none; }
/* What went wrong? after a 😞 (play.js): six reasons two to a row, an optional line for George, Send and No thanks. */
.mood-why { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.mood-why[hidden] { display: none; }
.mood-why .mood-q { text-align: center; }
.why-reasons, .why-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mood-why :is(a, button).head-chip { justify-content: center; }
.mood-why :is(a, button).head-chip.picked { background: #3f4f8c; color: #fff; border-color: var(--cm-title, #ff0); }
.mood-why :is(a, button).head-chip:disabled { opacity: .6; cursor: default; }
.mood-why textarea { width: 100%; box-sizing: border-box; resize: vertical; font: 12px/1.4 var(--game, sans-serif); color: #fff; background: rgba(0, 0, 10, .6); border: 1px solid #3f4f8c; padding: 5px; }
.why-err { margin: 0; font-size: 12px; color: #ff8080; }
.why-err[hidden] { display: none; }
/* Phones and tablets: the strip is too small to ask in, so the question opens as a sheet over the game and the keys (60), under the computer prompt (80). */
html.touch .page-play .controls > .mood.asking { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 70; max-width: 420px; margin: 0 auto;
  flex: none; padding: 10px; background: #0b0d10; border: 2px solid var(--cm-tile-edge, #0627ac); }

/* Community reactions: hovering the pill or a chip says who reacted (data-who, one emoji a line). */
.clubhouse .reacts [data-who] { position: relative; }
.clubhouse .reacts [data-who]:hover::after { content: attr(data-who); position: absolute; z-index: 6; left: 0; top: calc(100% + 6px); width: max-content; max-width: 260px;
  padding: 6px 9px; white-space: pre-line; text-align: left; font: 400 12px/1.4 var(--body, sans-serif); color: #fff; background: #0c1630;
  border: 1px solid var(--cm-title, #ff0); box-shadow: 2px 2px 0 #000; pointer-events: none; }
.clubhouse .reacts details[open] summary[data-who]:hover::after { display: none; }

/* Top ten players on the Community page (src/leaderboard.ts): a compact panel, your own row lit. */
.leaderboard .body { padding: 6px 10px 8px; }
/* Leaderboards (/leaderboards, leaderboards.ts, leaderboards.js): the names of the boards stay in view, ‹ › under them,
   then one board at a time in a row that snaps (swipe on touch). */
.lb-jump { position: sticky; top: var(--titlebar-h, 0px); z-index: 9; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px max(6px, env(safe-area-inset-left, 0px)); margin: 0 auto; max-width: 760px; background: rgba(0, 20, 0, .94); border: 2px solid var(--cm-tile-edge, #0627ac); }
.lb-jump::-webkit-scrollbar { display: none; }
.lb-jump a { flex: none; padding: 4px 10px; border: 1px solid var(--cm-tile-edge, #0627ac); background: rgba(0, 0, 10, .45); color: #fff; text-decoration: none; font-size: 13px; white-space: nowrap; }
.lb-jump a:hover, .lb-jump a:focus-visible { border-color: var(--cm-title, #ff0); color: var(--cm-title, #ff0); }
.lb-jump a[aria-current] { background: var(--cm-title, #ff0); border-color: var(--cm-title, #ff0); color: #000; font-weight: 700; }
.lb-controls { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 760px; margin: 10px auto; }
.lb-controls .ctl { min-width: 54px; font-size: 22px; line-height: 1; padding: 6px 0; }
.lb-controls .ctl:disabled { opacity: .35; cursor: default; }
.lb-where { min-width: 70px; text-align: center; font-size: 13px; color: var(--cm-muted, #ccc); }
.lb-boards { max-width: 760px; margin: 0 auto; display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; transition: height .2s; }
.lb-boards::-webkit-scrollbar { display: none; }
.lb-boards > .panel { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.lb-page-intro { max-width: 760px; margin: 12px auto 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .lb-boards { transition: none; scroll-behavior: auto; } }
.leaderboard table.lb td.lb-val { text-align: right; white-space: nowrap; color: var(--cm-title, #ff0); font-weight: 700; padding-right: 10px; }
.leaderboard table.lb td.lb-note { color: var(--cm-muted, #ccc); font-size: 12px; }
.leaderboard .lb-cups { display: block; font-size: 15px; line-height: 1.25; letter-spacing: 1px; word-break: break-all; }
.leaderboard table.lb { width: 100%; border-collapse: collapse; font-size: 14px; }
.leaderboard table.lb td { padding: 3px 4px; border-bottom: 1px solid rgba(6, 39, 172, .6); }
.leaderboard table.lb td:first-child { width: 26px; text-align: right; padding-right: 8px; color: var(--cm-muted, #ccc); }
.leaderboard table.lb td.lb-date { text-align: right; white-space: nowrap; padding-right: 12px; }
.leaderboard table.lb tr.me td { color: var(--cm-title, #ff0); font-weight: 700; }
.leaderboard .lb-you { margin: 6px 0 2px; font-size: 13px; }
.leaderboard .small { margin: 6px 0 0; }
.leaderboard .lb-intro { margin: 0 0 6px; }
.leaderboard td.lb-prog { width: 38%; white-space: nowrap; }
.leaderboard th.lb-finish { padding: 0 4px 2px; border: 0; line-height: 1; white-space: nowrap; }   /* the flag sits over the end of the bars */
.leaderboard th.lb-finish span { display: inline-block; width: calc(100% - 44px); text-align: right; font-size: 20px; }
.leaderboard .lb-bar { display: inline-block; vertical-align: middle; width: calc(100% - 44px); height: 9px; background: rgba(255, 255, 255, .12); border: 1px solid #000; }
.leaderboard .lb-bar i { display: block; height: 100%; background: var(--cm-title, #ff0); }
.leaderboard td.lb-prog small { display: inline-block; width: 42px; text-align: right; font-size: 11px; color: var(--cm-muted, #ccc); }

/* The Club page (src/clubhome.ts): what members land on at /. Welcome and the way into the game, then a card per
   part of the Club, each with one live fact. */
.club-hero { text-align: center; margin: 4px auto 18px; max-width: 640px; }
.club-hero .screen-title { margin-bottom: 14px; }
/* The page's one filled yellow button, so the way into the game is the loudest thing on it (George, 2 Nov 2026) */
.club-hero .btn.go { background: var(--cm-title); color: var(--cm-bar); text-shadow: none; font-size: 24px; padding: 14px 44px;
  box-shadow: inset 2px 2px 0 #fffe9a, inset -2px -2px 0 #9c9d00, 0 0 0 1px #000; }
.club-hero .btn.go:hover { background: #fff; }
.club-hero .btn.go.big { white-space: nowrap; }   /* "Continue your save" on one line, over the screenshot too */
@media (max-width: 420px) { .club-hero .btn.go { font-size: 21px; padding: 12px 26px; } }
.hero-go { display: grid; grid-template-areas: "shot" "sub" "standing"; justify-items: center; }   /* the button sits on the screenshot, the save line under it */
.hero-shot { grid-area: shot; position: relative; display: block; border: 2px solid var(--cm-tile-edge, #0627ac); line-height: 0; }
.hero-shot::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }   /* quiets the game's own buttons */
.hero-shot img { width: 380px; height: auto; display: block; }
.hero-go .btn.go { grid-area: shot; align-self: center; z-index: 1; }
.hero-go .club-sub { grid-area: sub; }
.hero-go .club-sub.club-standing { grid-area: standing; margin-top: 0; }   /* "Arsenal: 1st in Premier League", under the save line */
html.touch .hero-shot { display: none; }   /* desktop only */
.club-hero .club-sub { margin: 10px 0 0; font-size: 14px; color: var(--cm-muted, #ccc); }
.club-hero .club-sub b { color: var(--cm-title, #ff0); }
.club-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; max-width: 980px; margin: 0 auto; }
.club-card { display: block; background: var(--cm-panel, rgba(4, 6, 22, .82)); border: 2px solid var(--cm-tile-edge, #0627ac); color: #fff; text-decoration: none; }
a.club-card:hover { border-color: var(--cm-title, #ff0); }
.club-card h2 { margin: 0; padding: 5px 10px; font: 700 15px var(--game, sans-serif); color: var(--cm-title, #ff0); background: var(--cm-bar, #004000);
  border-bottom: 2px solid var(--cm-tile-edge, #0627ac); display: flex; align-items: center; gap: 6px; }
.club-card p { margin: 0; padding: 10px; font-size: 14px; line-height: 1.45; }
.club-card p b { color: var(--cm-title, #ff0); }
.club-bring .btn { align-self: flex-start; margin: 0 10px 10px; }   /* Bring a Friend's Copy link (21 Nov 2026) */
.club-card .club-shotrow { display: flex; align-items: center; flex: 1; }   /* a game card: its screenshot left, its line beside it */
.club-card .club-shot { display: block; width: 46%; max-width: 150px; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; border-right: 2px solid var(--cm-tile-edge, #0627ac); }
.club-card.soon { opacity: .75; }
.club-card .tag { margin-left: auto; padding: 1px 7px; font-size: 11px; color: #000; background: var(--cm-title, #ff0); border-radius: 999px; }
/* Three columns side by side (Community, Game data, Support), each a heading and up to three cards. The columns share
   one set of rows (subgrid), so cards side by side are the same height and the page reads as a grid. One column on phones. */
.club-sections { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 12px; max-width: 1240px; margin: 0 auto; }
.club-section { margin: 0 0 16px; min-width: 0; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; }
.club-section .club-cards { display: contents; }
.club-section > h2 { margin: 0; align-self: end; }
.club-section .club-card { display: flex; flex-direction: column; }
@media (max-width: 1100px) { .club-sections { grid-template-columns: repeat(2, 1fr); max-width: 980px; } }   /* Community and Game data, then Help and Try New Games */
@media (max-width: 760px) { .club-sections { grid-template-columns: 1fr; } }
html.touch .club-card.desktop-only { display: none; }   /* needs a keyboard, as on Play */
.club-section > h2 { margin: 0 0 8px; font: 700 17px var(--game, sans-serif); color: #fff; text-shadow: 1px 1px 0 #000; }
.club-foot { text-align: center; margin: 16px 0 0; font-size: 13px; color: var(--cm-muted, #ccc); }

/* Team Difficulty (src/difficulty.ts): nation pills, a panel per division, job and band chips. */
.difficulty { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.difficulty .dif-intro { margin: 0; text-align: center; color: #e8e8e8; }
.difficulty .pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.difficulty .pills a { padding: 4px 11px; font-size: 13px; border: 1px solid #000; border-radius: 999px; background: #0c1630; color: #fff; text-decoration: none; box-shadow: inset 1px 1px 0 #2a3a66; }
.difficulty .pills a[aria-current="page"] { background: var(--cm-title, #ff0); color: #000; font-weight: 700; }
.difficulty .body { padding: 6px 10px 8px; }
table.dif { width: 100%; border-collapse: collapse; font-size: 14px; }
table.dif th { text-align: left; font-size: 12px; color: var(--cm-title, #ff0); padding: 3px 6px; white-space: nowrap; }
table.dif td { padding: 4px 6px; border-top: 1px solid rgba(6, 39, 172, .6); }
.job, .dband { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap; border: 1px solid #000; }
.job-dream-job { background: #1f6b2a; color: #fff; } .job-steady-job { background: #2f5c8a; color: #fff; } .job-time-to-build { background: #6b5a1f; color: #fff; }
.job-must-deliver { background: #8a5a12; color: #fff; } .job-hot-seat { background: #9a3b12; color: #fff; } .job-poisoned-chalice { background: #6b1414; color: #fff; }
.dband { background: none; border-color: transparent; padding: 0; font-weight: 700; }
.dband-easy { color: #6fe07f; } .dband-comfortable { color: #b7e36a; } .dband-challenging { color: #ffd84a; } .dband-hard { color: #ff9b4a; } .dband-very-hard { color: #ff6b5e; }
.difficulty dl.jobs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0; align-items: center; }
.difficulty dl.jobs dd { margin: 0; font-size: 14px; }
@media (max-width: 600px) { table.dif .wide { display: none; } .difficulty dl.jobs { grid-template-columns: 1fr; } }

/* Phones: the title bar keeps the name and Signed in as, without the tagline. */
@media (max-width: 600px) { .titlebar .tagline { display: none; } }

/* Help: Message Admin, for members, under the heading (it left the top menu on 24 Oct 2026). */
.faq-ask { text-align: center; margin: -4px 0 14px; color: #e8e8e8; }
.faq-ask .btn { margin-left: 8px; }
/* Players (src/players.ts, assets/players-page.js): filters, the list, and a player's skills opened under their row. */
.players { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pl-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.pl-filters > label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--cm-title, #ff0); }
.pl-filters input[type="search"], .pl-filters select { font: 15px var(--body, inherit); height: 36px; box-sizing: border-box; padding: 0 8px; min-width: 0; margin: 0; }
.pl-filters input[type="search"] { -webkit-appearance: none; appearance: none; }
.pl-league-f { display: flex; flex-direction: column; gap: 4px; position: relative; }
.pl-label { font-size: 13px; color: var(--cm-title, #ff0); }
.pl-league summary { list-style: none; height: 36px; box-sizing: border-box; padding: 0 28px 0 8px; display: flex; align-items: center; cursor: pointer;
  font: 15px var(--body, inherit); color: #000; background: #fff; border: 1px solid #767676; border-radius: 2px; position: relative; white-space: nowrap; overflow: hidden; }
.pl-league summary::-webkit-details-marker { display: none; }
.pl-league summary::after { content: '▾'; position: absolute; right: 9px; color: #444; }
.pl-league-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: max-content; min-width: 100%; max-width: min(560px, 92vw); max-height: 60vh; overflow: auto;
  padding: 8px 10px; background: #04061a; border: 2px solid var(--cm-title, #ff0); box-shadow: 0 6px 20px rgba(0, 0, 0, .6);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.pl-league-menu fieldset { border: 0; margin: 0; padding: 0; }
.pl-league-menu legend { padding: 0; margin-bottom: 2px; color: var(--cm-title, #ff0); }
.pl-league-menu label { display: flex; flex-direction: row; align-items: center; gap: 6px; font-size: 13px; padding: 2px 0 2px 18px; color: #fff; cursor: pointer; }
.pl-league-menu input { margin: 0; display: inline-block; }
.pl-league-menu legend label { padding-left: 0; }
.pl-league-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; margin: 4px 0 0; }
.pl-count { margin: 0; font-size: 13px; color: var(--cm-muted, #ccc); }
.players .body { padding: 4px 10px 8px; }
table.pl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.pl th { text-align: left; font-size: 12px; color: var(--cm-title, #ff0); padding: 4px 6px; white-space: nowrap; }
table.pl td { padding: 5px 6px; border-top: 1px solid rgba(6, 39, 172, .6); }
table.pl .r { text-align: right; }
table.pl th[data-sort], table.dif th[data-sort] { cursor: pointer; user-select: none; text-decoration: underline dotted; text-underline-offset: 3px; }
table.pl th[data-sort]:hover, table.pl th.on, table.dif th[data-sort]:hover, table.dif th.on { color: #fff; }
table.pl th[data-sort]::after, table.dif th[data-sort]::after { content: attr(data-arrow); margin-left: 3px; }
table.pl tr.pl-row { cursor: pointer; }
table.pl tr.pl-row:hover td, table.pl tr.pl-row:focus td { background: rgba(6, 39, 172, .35); outline: none; }
table.pl tr.pl-open td { background: rgba(0, 0, 10, .5); }
table.pl tr.pl-row.on td { color: var(--cm-title, #ff0); }
table.pl .pl-suggest, table.dif .dif-suggest { padding: 1px 8px; font-size: 12px; white-space: nowrap; }
table.dif td.r { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pl-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 14px; padding: 4px 2px; }
.pl-skills span { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.pl-skills em { font-style: normal; color: #e8e8e8; }
.pl-skills b { min-width: 22px; text-align: right; }
.pl-skills .s0 { color: #ff6b5e; } .pl-skills .s1 { color: #ffb15e; } .pl-skills .s2 { color: #e8e8e8; } .pl-skills .s3 { color: #b7e36a; } .pl-skills .s4 { color: #6fe07f; }
.pl-filters.pl-one { grid-template-columns: minmax(0, 420px); justify-content: center; }
.pl-pages { display: flex; gap: 8px; justify-content: center; margin: 0; }
@media (max-width: 700px) { .pl-filters { grid-template-columns: 1fr 1fr; } .pl-filters > label:first-child { grid-column: 1 / -1; } table.pl .wide { display: none; } }
/* Compare (players-page.js): the picks' bar just above the list, and the side-by-side table above that. */
table.pl td.pl-act { white-space: nowrap; }
table.pl .pl-pick { padding: 1px 8px; font-size: 12px; }
table.pl .pl-pick.on { background: var(--cm-bar); color: var(--cm-title, #ff0); }
.pl-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px;
  background: #04061a; border: 2px solid var(--cm-tile-edge, #0627ac); font-size: 14px; }
.pl-tray[hidden] { display: none; }
.pl-tray-l { color: var(--cm-title, #ff0); }
.pl-chip { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.pl-chip button, .pl-x { background: none; border: 0; color: var(--cm-muted, #ccc); cursor: pointer; padding: 0 2px; font-size: 13px; }
.pl-chip button:hover, .pl-x:hover { color: #fff; }
.pl-tray-note { font-size: 12px; color: var(--cm-muted, #ccc); }
.pl-tray-b { margin-left: auto; white-space: nowrap; }
.pl-compare { max-width: 640px; margin: 0 auto; width: 100%; }
table.pl-cmp tbody th { text-align: left; font-size: 13px; color: #e8e8e8; font-weight: normal; }
table.pl-cmp td.best { font-weight: bold; }
table.pl-cmp td.best::before { content: '▸'; color: var(--cm-title, #ff0); margin-right: 3px; }
table.pl-cmp small { font-size: 11px; } table.pl-cmp small.up { color: #6fe07f; } table.pl-cmp small.down { color: #ff6b5e; }
table.pl-cmp tr.pl-cmp-gap td { border: 0; padding: 4px; }
table.pl-cmp .s0 { color: #ff6b5e; } table.pl-cmp .s1 { color: #ffb15e; } table.pl-cmp .s2 { color: #e8e8e8; } table.pl-cmp .s3 { color: #b7e36a; } table.pl-cmp .s4 { color: #6fe07f; }
.pl-cmp-b { display: flex; gap: 6px; justify-content: flex-end; margin: 8px 0 0; }
.pl-compare .body { overflow-x: auto; }
table.pl-cmp tbody th { white-space: normal; }
@media (max-width: 700px) { table.pl td.pl-act { white-space: normal; } table.pl td.pl-act .btn { display: block; margin: 2px 0 2px auto; }
  table.pl-cmp { font-size: 13px; } table.pl-cmp th, table.pl-cmp td { padding: 4px 3px; } table.pl-cmp thead th { white-space: normal; } }

/* The site menu's drop-downs (pages.ts siteNav): Game data and Support open a short list under their tile. */
.minimenu .menu-group { position: relative; }
.minimenu .menu-group > summary { list-style: none; cursor: pointer; }
.minimenu .menu-group > summary::-webkit-details-marker { display: none; }
.minimenu .menu-group > summary::after { content: '▾'; margin-left: 6px; font-size: 12px; }
.minimenu .menu-drop { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; min-width: 200px; display: flex; flex-direction: column; padding: 4px;
  background: #04061a; border: 2px solid var(--cm-tile-edge, #0627ac); box-shadow: 0 6px 20px rgba(0, 0, 0, .6); }
.minimenu .menu-drop a { position: relative; padding: 8px 12px; font: 15px var(--game, sans-serif); color: var(--cm-text, #fff); text-decoration: none; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.minimenu .menu-drop a:hover, .minimenu .menu-drop a:focus-visible, .minimenu .menu-drop a.on { background: var(--cm-tile-edge, #0627ac); outline: none; }

/* Manager Rankings: a wider page, names on one line, and the table scrolls sideways rather than spilling out. */
.players.managers { max-width: 1120px; }
.players.managers .body { overflow-x: auto; }
.players.managers table.pl td:nth-child(2) { white-space: nowrap; }

/* Play: the save reminder (play.js). A slim panel in the side boxes' colours, at the top over the game, sliding in. */
/* The first-season goal under Report Issue in the Game box (career.ts careerPlayUnlock, deep-dive R-19). */
.career-unlock-box { margin: 6px 0 2px; }
.career-unlock-box p { margin: 0; font-size: 12px; line-height: 1.35; color: var(--cm-text, #fff); }
.career-unlock-box .cu-title { color: var(--cm-title, #ff0); font-weight: 700; }
.career-unlock-box .career-bar { margin: 4px 0; height: 7px; }
/* Not beside Get started: a new career has one thing to do at a time (as the spotlights, below). */
body.page-play:has(#firststeps:not([hidden]):not(.all-done)) #careerunlock { display: none; }
/* Season finished (play.js seasonFinished, deep-dive R-15): the save reminder's bar, with its link in the game's yellow. */
.season-note a { color: var(--cm-title, #ff0); text-decoration: underline; font-weight: 700; }
.save-reminder { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 1000; max-width: calc(100vw - 20px); box-sizing: border-box;
  display: flex; gap: 10px; align-items: center; padding: 6px 8px 6px 12px; background: #04061a; color: #fff;
  border: 2px solid var(--cm-tile-edge, #0627ac); box-shadow: 0 6px 18px rgba(0, 0, 0, .55); font: 13px/1.35 var(--game, sans-serif);
  text-shadow: 1px 1px 0 #000; animation: reminder-in .35s ease-out; }
@keyframes reminder-in { from { opacity: 0; transform: translate(-50%, -12px); } }
@media (prefers-reduced-motion: reduce) { .save-reminder { animation: none; } }
.save-reminder[hidden] { display: none; }
.save-reminder p { margin: 0; }
@media (min-width: 700px) { .save-reminder p { white-space: nowrap; } }   /* one line where it fits */
.save-reminder b { color: var(--cm-title, #ff0); font-weight: 700; }
.save-reminder button { flex: none; width: 24px; height: 24px; padding: 0; font: 700 16px/1 var(--game, sans-serif); cursor: pointer;
  background: none; color: var(--cm-muted, #ccc); border: 0; }
.save-reminder button:hover, .save-reminder button:focus-visible { color: #fff; }
/* The game's own menu tile, small, so it's spotted on CM's menu screen. */
.save-reminder .cm-tile { display: inline-block; vertical-align: middle; margin: 0 2px; padding: 1px 6px; background: #0a0d1c; border: 1px solid #0627ac;
  color: #e8e8e8; font-size: 12px; white-space: nowrap; }
.save-reminder button { flex: none; font: 700 14px var(--game, sans-serif); padding: 6px 12px; cursor: pointer; background: #000; color: #fcfe02; border: 0; }

/* Share to Community (play.js openShare, WP6): a small Share chip on the notice's own line (20 Nov 2026: it was a full
   row of its own), and the picture, the line, the member's words and extra screenshots in a dialog. */
.notice .share-row, .save-reminder .share-row, .ach-toast .share-row { display: flex; justify-content: center; margin-top: 6px; }
/* Full Screen's chip (head-chip) at a size to tap, over the notices' own button rules. */
.share-row .share-go.share-go { position: static; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; width: auto; height: auto; padding: 1px 10px; font: 700 12px/20px var(--game, sans-serif);
  color: var(--cm-title, #ff0); background: #242b40; border: 1px solid #3f4f8c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 0 #000; }
.share-row .share-go.share-go:hover, .share-row .share-go.share-go:focus-visible { background: #2f3a5e; color: #fff; }
.share-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-sizing: border-box; padding: 16px; background: #04061a; color: #fff;
  border: 2px solid var(--cm-tile-edge, #0627ac); font: 14px/1.4 var(--game, sans-serif); }
.share-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.share-dialog h2 { margin: 0 0 10px; color: var(--cm-title, #ff0); font-size: 18px; }
.share-dialog .share-card img { image-rendering: pixelated; }
.share-dialog .share-card canvas, .share-dialog .share-card img { display: block; width: 100%; height: auto; max-height: 50vh; object-fit: contain; border: 2px solid var(--cm-tile-edge, #0627ac); }
.share-dialog label { display: block; margin: 12px 0 4px; font-weight: 700; }
.share-dialog textarea { width: 100%; box-sizing: border-box; padding: 6px 8px; font: inherit; color: #fff; background: #0a0d1c; border: 1px solid #0627ac; }
.share-dialog .share-hint { margin: 6px 0 0; font-size: 12px; color: var(--cm-muted, #ccc); }
.share-dialog .share-error { margin: 8px 0 0; color: #ff8a80; }
.share-dialog .share-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.share-dialog .share-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.share-dialog .share-head h2 { margin: 0; }
.share-dialog .share-head .ctl { flex: none; }
.share-dialog .share-done { display: flex; gap: 12px; align-items: center; }
.share-dialog .share-done p { margin: 0 0 4px; }
.share-dialog .share-done-pic { flex: none; width: 160px; }
.share-dialog .share-done-pic canvas, .share-dialog .share-done-pic img { display: block; width: 100%; height: auto; border: 2px solid var(--cm-tile-edge, #0627ac); }
@media (max-width: 480px) { .share-dialog .share-done { flex-direction: column; align-items: stretch; } .share-dialog .share-done-pic { width: 100%; } }
.share-dialog .share-line { margin: 10px 0 0; font-size: 13px; color: var(--cm-muted, #ccc); }
.share-dialog .share-line b { color: #fff; }
.share-dialog label .muted, .share-dialog summary .muted { font-weight: 400; }
.share-dialog .share-shots { margin-top: 10px; }
.share-dialog .share-shots summary { cursor: pointer; font-weight: 700; }
.share-dialog .share-shots-count { font-weight: 400; color: var(--cm-muted, #ccc); }
.share-dialog .share-shot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; max-height: 200px; overflow-y: auto; }
.share-dialog .share-shot { padding: 0; background: none; border: 2px solid #0627ac; cursor: pointer; }
.share-dialog .share-shot img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.share-dialog .share-shot[aria-pressed="true"] { border-color: #fcfe02; box-shadow: 0 0 0 1px #fcfe02; }
.share-dialog .share-shot:disabled { opacity: .4; cursor: default; }
.share-dialog .share-shot-list > p { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.share-dialog .share-shot-actions { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }

/* Achievement unlocked (play.js achUnlocked): at the foot of the screen, so it never covers the save reminder or the
   season note at the top. Closes itself after 12 seconds. */
.ach-toast { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 1001; width: 340px; max-width: calc(100vw - 20px); box-sizing: border-box;
  padding: 8px 32px 8px 12px; background: #04061a; color: #fff; border: 2px solid var(--cm-title, #ff0); box-shadow: 0 6px 18px rgba(0, 0, 0, .6);
  font: 13px/1.35 var(--game, sans-serif); text-shadow: 1px 1px 0 #000; animation: ach-in .4s ease-out; transition: opacity .3s; }
.ach-toast.out { opacity: 0; }
@keyframes ach-in { from { opacity: 0; transform: translate(-50%, 14px); } }
@media (prefers-reduced-motion: reduce) { .ach-toast { animation: none; transition: none; } }
.ach-toast-head { margin: 0 0 4px; font-weight: 700; color: var(--cm-title, #ff0); text-transform: uppercase; letter-spacing: .03em; font-size: 12px; }
.ach-toast ul { list-style: none; margin: 0; padding: 0; }
.ach-toast li { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.ach-toast-icon { font-size: 20px; line-height: 1; }
.ach-toast li b { color: #fff; }
.ach-toast li small { display: block; color: var(--cm-muted, #ccc); font-size: 11px; }
.ach-toast .ach-tier { margin-left: 4px; }
.ach-toast-more { margin: 4px 0 0; font-size: 11px; color: var(--cm-muted, #ccc); }
.ach-toast button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; background: none; border: 0; color: var(--cm-muted, #ccc);
  font: 700 16px/1 var(--game, sans-serif); cursor: pointer; }
.ach-toast button:hover, .ach-toast button:focus-visible { color: #fff; }

/* Play's bedtime nudge (play.js) shares the save reminder's look and spot; Don't ask again is quieter than the answers. */
.save-reminder.bedtime button, .save-reminder.slow-tip button { width: auto; height: auto; }
.save-reminder.bedtime button.quiet, .save-reminder.slow-tip button.quiet { background: none; color: var(--cm-muted, #ccc); font-weight: 400; font-size: 12px; padding: 6px 4px; text-decoration: underline; }
.save-reminder.bedtime button.quiet:hover, .save-reminder.bedtime button.quiet:focus-visible,
.save-reminder.slow-tip button.quiet:hover, .save-reminder.slow-tip button.quiet:focus-visible { color: #fff; }
.save-reminder.slow-tip p { white-space: normal; }   /* the slow-window tip (play.js slowTip) is two sentences: let it wrap */
/* Its buttons (23 Nov): Full Screen as the Game box's chip, Dismiss a grey secondary button, Don't show again a quiet link. */
.save-reminder.slow-tip .slow-row { display: flex; flex: none; align-items: center; gap: 8px; }
.notice.slow-tip .slow-row { flex-wrap: wrap; margin: 6px -22px 0 0; }   /* under the text in the slot, using the close button's gutter (none here) */
.save-reminder.slow-tip .slow-row .head-chip, .save-reminder.slow-tip .slow-row .grey { width: auto; height: auto; padding: 1px 10px; font: 700 12px/20px var(--game, sans-serif);
  text-shadow: none; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 0 #000; }
.save-reminder.slow-tip .slow-row .head-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--cm-title, #ff0); background: #242b40; border: 1px solid #3f4f8c; }
.save-reminder.slow-tip .slow-row .grey { color: #ddd; background: #3a3d48; border: 1px solid #5c606e; }
.save-reminder.slow-tip .slow-row .head-chip:hover, .save-reminder.slow-tip .slow-row .head-chip:focus-visible { background: #2f3a5e; color: #fff; outline: none; }
.save-reminder.slow-tip .slow-row .grey:hover, .save-reminder.slow-tip .slow-row .grey:focus-visible { background: #4a4e5c; color: #fff; outline: none; }
#lastsaved.busy { color: var(--cm-bad, #ff5a5a); }   /* Saving… in place of Last saved */
/* A floppy before Last saved and a clock before Time in dugout, in the line's own colour (a mask, so it follows it). */
#lastsaved::before, #dugout::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
#lastsaved { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2h9.5L14 4.5V14H2zM5 2v4h5V2M5 14V9.5h6V14' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E"); }
#dugout { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M8 4.5V8l2.5 1.6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E"); }

/* The corner note on Play (club.js) when something new arrives: small, bottom right, clear of the game's controls' text. */
.cm-note { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center;
  max-width: min(300px, calc(100vw - 32px)); padding: 10px 12px; background: var(--cm-panel); border: 2px solid var(--cm-tile-edge); box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
  font-size: 14px; animation: cm-note-in .3s ease-out; transition: opacity .4s; }
.cm-note.gone { opacity: 0; }
.cm-note-go { color: var(--cm-title); font-weight: bold; }
.cm-note-x { background: none; border: 0; color: var(--cm-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
@keyframes cm-note-in { from { transform: translateY(12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cm-note { animation: none; } }

/* Labs (src/labs.ts): on Play, a Try New Games box with a line per beta; on a lab's page, the verdict box above its Controls. */
.labs[hidden] { display: none; }
html.touch .labs .lab.desktop-only { display: none; }   /* needs a keyboard: not on phones and tablets */
html.touch .labs:not(:has(.lab:not(.desktop-only))) { display: none; }   /* no box when every line is hidden */
.labs .lab-blurb { display: block; margin-top: 2px; font-size: 11px; color: #e8e8e8; }   /* the game's one line, under its name */
.invitebox .ctl-note { margin: 0 0 6px; }   /* Play's Invite a Friend (invites.ts invitePlayPanel) */
.labs .lab .badge { margin-left: 4px; vertical-align: 2px; }   /* the game's label after its name: Classic, Beta, Invite only (labs.ts) */
.labs .lab-ask { display: flex; flex-direction: column; gap: 4px; }
.labs .lab-ask label { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: #fff; cursor: pointer; }
.labs .lab-status, .labs .lab-err { margin: 0; font-size: 12px; text-align: center; color: var(--cm-title, #ff0); }
.labs .lab-err { color: #ff5a5a; }
/* Try Other Games on Play (labs.ts gameCard): the Club page's game cards, fitted to the side column (21 Nov 2026) */
.labs .play-card { display: flex; flex-direction: column; margin: 0; text-align: left; }   /* the box's own 4px gap between cards (George: less margin) */
.labs .play-card h2 { margin: 0; padding: 3px 8px; font-size: 14px; gap: 0; }
.labs .play-card h2 .badge { margin-left: 6px; }   /* Play's badge (New, Updated), straight after the name */
.labs .play-card .club-shot { width: 23%; }   /* half the Club page size, so the box stays small (George, 21 Nov 2026) */
.labs .play-card p { padding: 6px 8px; font-size: 13px; line-height: 1.35; }
/* Play's Support box (helpask.ts): Ask a question, then a link to Help. */
.tips-more { font-size: 12px; text-align: right; color: var(--cm-title, #ff0); }
.help-ask { display: flex; flex-direction: column; gap: 4px; }
.help-ask-l { font-size: 12px; color: #fff; }
.help-ask-row { display: flex; gap: 4px; }
.help-ask-row input { flex: 1; min-width: 0; font: 13px var(--body, sans-serif); padding: 5px 6px; background: #fff; color: #000; border: 2px solid var(--cm-tile-edge, #0627ac); }
.help-ask-row .ctl { flex: none; padding: 4px 10px; }
.help-answer { padding: 6px 8px; background: rgba(6, 39, 172, .25); border-left: 3px solid var(--cm-title, #ff0); font-size: 12px; line-height: 1.4; color: #fff; }
.help-answer p { margin: 0 0 4px; white-space: pre-line; }
.help-answer a { color: var(--cm-title, #ff0); }
.help-answer.busy p { color: var(--cm-muted, #ccc); }
.help-answer.err p { color: #ff8a80; }
.help-rate { display: flex; gap: 4px; align-items: center; font-size: 11px; color: var(--cm-muted, #ccc); }
.help-rate button { background: none; border: 1px solid transparent; cursor: pointer; font-size: 14px; padding: 0 3px; }
.help-rate button[aria-pressed=true] { border-color: var(--cm-title, #ff0); }
.help-ask-note { margin: 0; font-size: 10px; color: var(--cm-muted, #ccc); }
.faq-search { max-width: 640px; margin: 0 auto 12px; padding: 10px 12px; background: var(--cm-tile, #0627ac); border: 2px solid var(--cm-tile-edge, #0627ac); }   /* Help's Ask box */
.faq-search .help-ask-l { font-size: 14px; }
.faq-search .help-ask-row input { font-size: 15px; }
.faq-search .help-answer { font-size: 14px; }
.help-hits { margin: 2px 0 6px; font-size: 13px; color: var(--cm-muted, #ccc); }
.help-hits ul { margin: 2px 0 0; padding-left: 18px; }
.faq details .faq-link { margin: -4px 0 0; padding: 0 12px 8px 28px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cm-muted, #ccc); }
.faq-link button { background: none; border: 0; padding: 2px; color: var(--cm-muted, #ccc); cursor: pointer; line-height: 0; }
.faq-link button:hover { color: var(--cm-title, #ff0); }
.faq details:target > summary { color: var(--cm-title, #ff0); }
.faq details { scroll-margin-top: 90px; }   /* clear the sticky title bar when a link opens one */
.careerbox .career-when { margin-top: 4px; }
.career-bar { height: 8px; margin-top: 8px; background: rgba(102, 100, 102, .5); border: 1px solid var(--cm-tile-edge, #0627ac); }
.career-bar i { display: block; height: 100%; background: var(--cm-title, #fcfe02); }
.careerbox .career-preview { margin-bottom: 6px; }
.careerbox .career-preview a { display: block; line-height: 0; }
.careerbox .career-preview a:hover .career-thumb, .careerbox .career-preview a:focus-visible .career-thumb { outline: 2px solid var(--cm-title, #fcfe02); outline-offset: -2px; }
.careerbox .career-thumb { width: 100%; height: auto; display: block; }
/* Regen Finder (regens.js, admins only for now) */
.regenbox .regen-form { display: flex; gap: 4px; margin: 6px 0 2px; }
.regenbox .regen-form input { flex: 1; min-width: 0; font: 13px var(--game, sans-serif); padding: 3px 5px; background: #000; color: #fff; border: 1px solid var(--cm-muted, #888); }
.regenbox .regen-form .ctl { flex: 0 0 auto; }
.regenbox #regen-slot:not([hidden]) { display: block; width: 100%; margin: 2px 0; font-size: 12px; background: #000; color: #fff; border: 1px solid var(--cm-muted, #888); }
.regenbox #regen-out > .ctl-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.regenbox .regen-pages { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 0; font-size: 12px; color: var(--cm-muted, #ccc); }
.regenbox .regen-pages button[disabled] { opacity: .4; cursor: default; }
.regenbox .regen-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; }
/* One line a result (George, 21 Nov 2026): the rest ends in … with the full text on hover (title) */
.regenbox .regen-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.regenbox .regen-list b { color: #fff; }
.regenbox .regen-list .regen-orig { color: var(--cm-title, #ff0); }
.regenbox .regen-list small { color: #fff; font-size: 11px; }
/* AI Assistant Manager (assistant.js, admins only for now): the save, then the four tabs, then one tab */
.assistbox .scout-pick { display: flex; gap: 6px; align-items: center; margin: 6px 0 4px; }
.assistbox #as-slot { flex: 1; min-width: 0; font-size: 12px; color: #fff; border: 1px solid var(--cm-muted, #888); padding: 2px 24px 2px 4px;
  -webkit-appearance: none; appearance: none; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center; }   /* its own arrow, 8px in from the edge (George, 22 Nov 2026) */
.assistbox .as-tabs .as-ai { display: inline-block; margin-left: 3px; padding: 0 3px; font: 700 8px/11px var(--game, sans-serif); color: #000; background: var(--cm-title, #ff0); border-radius: 2px; vertical-align: 1px; }   /* uses AI */
/* Today's AI requests (assistant.js usage): a ring in the heading with a bubble on hover or tap, like Claude's usage tracker */
.assistbox h2 .as-usage { float: right; position: relative; margin: 0; padding: 0 2px; background: none; border: 0; color: var(--cm-title, #ff0); line-height: 0; cursor: default; }
.assistbox h2 .as-usage[hidden] { display: none; }
.assistbox h2 .as-usage .as-usage-tip { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 170px; padding: 7px 10px;
  background: #0b0d10; border: 1px solid #2a2f3a; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); text-align: left; white-space: nowrap; line-height: 1.35; }
.assistbox h2 .as-usage .as-usage-tip b { display: block; font: 700 12px var(--game, sans-serif); color: #fff; }
.assistbox h2 .as-usage .as-usage-tip small { display: block; font: 400 11px var(--game, sans-serif); color: #9aa0ab; }
.assistbox h2 .as-usage:is(:hover, :focus-visible, :focus) .as-usage-tip { display: block; }
.assistbox h2 .as-usage:focus { outline: none; }
.assistbox .as-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }   /* six tabs, two rows of three (22 Nov 2026) */
/* Player tab: Assess a player (22 Nov 2026) */
.assistbox #as-player { flex: 1; min-width: 0; font-size: 12px; color: #fff; border: 1px solid var(--cm-muted, #888); padding: 2px 24px 2px 4px;
  -webkit-appearance: none; appearance: none; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center; }
/* Contracts' verdicts (22 Nov 2026) */
.assistbox small.as-why { color: var(--cm-muted, #ccc); }
.assistbox .as-verdict { float: right; margin-left: 4px; padding: 0 4px; font: 700 9px/14px var(--game, sans-serif); border-radius: 2px; color: #000; }
.assistbox .as-verdict.as-renew { background: #6fdc6f; }
.assistbox .as-verdict.as-sell { background: var(--cm-title, #ff0); }
.assistbox .as-verdict.as-let { background: var(--cm-muted, #aaa); }
.assistbox .as-tabs button[hidden] { display: none; }   /* Regens before a save's first season ends */
.assistbox .as-go { justify-content: center; }
.assistbox .scout-line { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: #fff; }
.assistbox .scout-line b, .assistbox .regen-list b { color: #fff; }
.assistbox .regen-orig { color: var(--cm-title, #ff0) !important; }
.assistbox .scout-needs { text-align: left; }
.assistbox .regen-form { display: flex; gap: 4px; margin: 6px 0 2px; }
.assistbox .regen-form input { flex: 1; min-width: 0; font: 13px var(--game, sans-serif); padding: 3px 5px; background: #000; color: #fff; border: 1px solid var(--cm-muted, #888); }
.assistbox .regen-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; }
.assistbox .regen-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.assistbox .regen-list li.as-mine b, .assistbox .regen-list li.as-warn b { color: var(--cm-title, #ff0); }
.assistbox .regen-list.as-two li { white-space: normal; padding: 3px 0; }   /* Scout: name line, then the numbers line */
.assistbox small { color: #fff; font-size: 11px; }
.assistbox .regen-pages { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 0; font-size: 12px; color: var(--cm-muted, #ccc); }
.assistbox .regen-pages button[disabled] { opacity: .4; cursor: default; }
.assistbox .as-clauses { display: inline-flex; gap: 3px; vertical-align: -1px; color: var(--cm-title, #ff0); }   /* Contracts: release clause icons */
.assistbox .as-clause.fired, .assistbox .as-fired { color: #ff5a5a; }
.assistbox .as-table { width: 100%; margin: 4px 0 0; border-collapse: collapse; table-layout: fixed; font-size: 11px; color: #fff; }   /* Scout: the watch list */
.assistbox .as-table th, .assistbox .as-table td { padding: 2px 3px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid rgba(255, 255, 255, .15); }
.assistbox .as-table th { font-weight: 700; color: var(--cm-title, #ff0); border-top: 0; }
.assistbox .as-table .as-p { width: 40%; text-align: left; font-weight: 700; }
.assistbox .as-table .as-c { text-align: left; color: var(--cm-muted, #ccc); }
.assistbox .as-table th.as-c { color: var(--cm-title, #ff0); }
.assistbox .as-table th:nth-child(3), .assistbox .as-table th:nth-child(4) { width: 20px; }   /* the numbers keep their width; names share the rest */
.assistbox .as-table th:nth-child(5) { width: 36px; }
.assistbox .as-table th:nth-child(6) { width: 32px; }
.assistbox .as-key { margin: 6px 0 0; font-size: 10px; color: var(--cm-muted, #ccc); }
.assistbox .as-key .as-clause, .assistbox .as-clauses .as-clause { display: inline-block; color: var(--cm-title, #ff0); vertical-align: -1px; }
.assistbox .as-key .as-clause.fired, .assistbox .as-clauses .as-clause.fired { color: #ff5a5a; }
/* Scout Report (scout.js, admins only for now): the Regen Finder's rows, with the needs line and the AI's note above */
.scoutbox .scout-pick { display: flex; gap: 6px; align-items: center; margin: 6px 0 2px; }   /* the save, then Scout Squad to its right (George, 21 Nov 2026) */
.scoutbox #scout-slot { flex: 1; min-width: 0; font-size: 12px; background: #000; color: #fff; border: 1px solid var(--cm-muted, #888); padding: 2px; }
.scoutbox #scout-go { flex: none; }
.scoutbox #scout-go[disabled] { opacity: .5; cursor: default; }
.scoutbox .scout-needs { text-align: left; white-space: normal; }
.scoutbox .scout-note { margin: 4px 0; font-size: 12px; line-height: 1.4; color: #fff; }
.scoutbox .scout-line { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: #fff; }
.scoutbox .scout-line b { color: #fff; }
.scoutbox .scout-line .regen-orig { color: var(--cm-title, #ff0); }
.scoutbox .regen-list { list-style: none; margin: 2px 0 0; padding: 0; font-size: 12px; }
.scoutbox .regen-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.scoutbox .regen-list b { color: #fff; }
.scoutbox .regen-orig { color: var(--cm-title, #ff0); }
.scoutbox small { color: #fff; font-size: 11px; }
.scoutbox .regen-pages { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 0; font-size: 12px; color: var(--cm-muted, #ccc); }
.scoutbox .regen-pages button[disabled] { opacity: .4; cursor: default; }
/* Play's side boxes fold up from their heading (play.js); a folded box keeps only the heading. */
/* The side panels on every game page (panels.js): fold from the heading, the column either side of the game, and drag
   a heading up or down to reorder. */
[data-panels] :is(.ctl-group, .panel) > h2[role=button] { cursor: pointer; user-select: none; }
[data-panels] :is(.ctl-group, .panel) > h2[role=button]::before { content: '\25BE'; display: inline-block; width: 12px; font-size: 11px; }
[data-panels] :is(.ctl-group, .panel).folded > h2[role=button]::before { content: '\25B8'; }
/* Community's panels: the fold arrow, then the name on the left; New thread stays on the right */
[data-panels] .panel > h2[role=button] { justify-content: flex-start; }
[data-panels] .panel > h2[role=button] > a.small { margin-left: auto; }
[data-panels] .panel > h2[role=button] > a.small ~ a.small { margin-left: 12px; }
[data-panels] :is(.ctl-group, .panel).folded > h2 { margin-bottom: 0; border-bottom: 0; }
[data-panels] :is(.ctl-group, .panel).folded { padding-bottom: 0; }
[data-panels] :is(.ctl-group, .panel).folded > :not(h2) { display: none !important; }
[data-panels] .ctl-group:not(.folded) .fold-total, .fold-total[hidden] { display: none; }
@media (min-width: 901px) {
  html.menu-left .swos[data-panels-row] { flex-direction: row-reverse; }
  html:not(.touch) [data-panels] > :is(.ctl-group, .panel) > h2.panel-handle { cursor: grab; }
  [data-panels-row] { position: relative; }
  [data-panels-row].menu-dragging [data-panels] { opacity: .85; position: relative; z-index: 2; pointer-events: none; }
  :is([data-panels-row].menu-dragging, [data-panels].panels-sorting), :is([data-panels-row].menu-dragging, [data-panels].panels-sorting) * { cursor: grabbing !important; user-select: none; }
  /* Where the column lands once let go past the middle: a dashed box on the other side of the game */
  [data-panels-row].menu-drop::after { content: ''; position: absolute; top: var(--panels-top, 0); bottom: 0; width: var(--menu-w, 300px);
    border: 2px dashed var(--cm-title, #ff0); background: rgba(6, 39, 172, .25); pointer-events: none; z-index: 1; }
  html:not(.menu-left) [data-panels-row].menu-drop::after { left: 0; }
  html.menu-left [data-panels-row].menu-drop::after { right: 0; }
  /* A panel being moved up or down rides on top, and a yellow line shows where it will go */
  [data-panels] > .panel-lifting { position: relative; z-index: 3; opacity: .92; box-shadow: 0 8px 18px rgba(0, 0, 0, .6); pointer-events: none; }
  [data-panels] > .drop-before { box-shadow: 0 -7px 0 -3px var(--cm-title, #ff0); }
  [data-panels] > .drop-after { box-shadow: 0 7px 0 -3px var(--cm-title, #ff0); }
}
.fold-total { margin-left: 6px; vertical-align: 1px; }
/* State of play (labs.ts statePanel), top of a lab page's side panel: three short lines. */
.lab-state p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--cm-text, #fff); }
.lab-state p:first-of-type { color: var(--cm-muted, #ccc); }
.lab-state b { color: var(--cm-title, #ff0); font-weight: 700; }
.lab-say .verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.lab-say .verdicts .ctl { padding: 5px 2px; white-space: nowrap; }
.lab-say .verdicts .ctl[aria-pressed=true] { background: var(--cm-tile-edge, #0627ac); color: var(--cm-title, #ff0); }
.lab-say .lab-feedback { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.lab-say textarea { display: block; width: 100%; box-sizing: border-box; padding: 5px 6px; resize: vertical; font: 13px var(--body, sans-serif);
  color: #fff; background: var(--cm-tile, rgba(0, 0, 10, .38)); border: 2px solid var(--cm-tile-edge, #0627ac); }
.lab-say textarea:focus { outline: none; border-color: var(--cm-title, #ff0); }
.lab-say .send-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #fff; }
.lab-say .send-row label { cursor: pointer; }
.lab-say .send-row .ctl { margin-left: auto; padding: 4px 16px; }
.lab-say .verdict-done, .lab-say .lab-sent { color: var(--cm-good, #3fd65a); }

/* The Beta badge after a lab's title (SWOS). */
.titlebar .titlebeta { position: relative; top: -4px; margin-left: 6px; padding: 2px 8px; font-size: 13px; vertical-align: middle; }
/* Help's two tabs: Using the Club and the Manager's Handbook (site.js), like the menu's tiles; the open one is lit. */
.help-tabs, .data-tabs { display: flex; justify-content: center; gap: 6px; margin: 0 0 12px; }
.help-tabs a, .data-tabs a { font: 17px/1.15 var(--game); color: var(--cm-text); text-shadow: 2px 2px 0 #000; text-decoration: none; padding: 7px 16px;
  background: var(--cm-tile); border: 2px solid var(--cm-tile-edge); }
.help-tabs a:hover, .data-tabs a:hover { background: var(--cm-tile-hover); }
.help-tabs a[aria-current="page"], .data-tabs a[aria-current="page"] { background: var(--cm-tile-edge); color: var(--cm-title, #ff0); }
.help-tabs[hidden] { display: none; }
/* A box over the game (play.js firstChoice). */
.setup-play { position: absolute; z-index: 40; display: flex; flex-direction: column; background: rgba(0, 0, 12, .25);
  box-sizing: border-box; }   /* a light veil over the game, which shows all round the windows below */
.setup-play[hidden] { display: none; }
.sp-offer { margin: auto; max-width: 460px; padding: 24px; text-align: center; color: var(--cm-text, #fff);
  background: rgba(0, 0, 12, .85); border: 2px solid var(--cm-tile-edge); }
.sp-offer h2 { margin: 0 0 10px; color: var(--cm-title, #ff0); font: 22px/1.2 var(--game); text-shadow: 2px 2px 0 #000; }
.sp-offer p { margin: 0 0 16px; line-height: 1.45; }
/* First career (play.js firstChoice): a new member's Quick Start or New Game. */
.first-choice .sp-offer { max-width: 820px; padding: 32px; }   /* the box over an empty game screen: room to read (George, 6 Nov 2026) */
.first-choice .sp-offer h2 { font-size: 28px; }
.fc-rec { display: inline-block; align-self: center; padding: 1px 8px; background: var(--cm-title, #ff0); color: #000; font: 700 12px/1.6 var(--game, sans-serif); font-style: normal; }
/* The loading card over the game while DOSBox starts (play.js bootCard): its text console isn't for members. */
.boot-card { position: absolute; z-index: 39; display: flex; align-items: center; justify-content: center; background: #000; text-align: center; }
.boot-card[hidden] { display: none; }
.boot-card h2 { margin: 0 0 10px; color: var(--cm-title, #ff0); font: 22px/1.2 var(--game); text-shadow: 2px 2px 0 #000; }
.boot-card p { margin: 0; color: var(--cm-muted, #ccc); font-size: 14px; }
.first-choice .sp-offer:focus { outline: none; }   /* focus starts on the box (play.js), so neither option looks chosen */
.fc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.fc-opt { display: flex; flex-direction: column; gap: 6px; padding: 14px; cursor: pointer; color: var(--cm-text, #fff); font: inherit;
  background: var(--cm-bar, #004000); border: 2px solid var(--cm-tile-edge, #0627ac); }
.fc-opt b { color: var(--cm-title, #ff0); font: 700 18px/1.2 var(--game, sans-serif); white-space: nowrap; }
.fc-opt span { font-size: 14px; line-height: 1.45; }
.fc-opt:hover, .fc-opt:focus-visible { border-color: var(--cm-title, #ff0); }
.fc-foot { margin: 14px 0 0 !important; font-size: 12px; color: var(--cm-muted, #ccc); }
@media (max-width: 600px) { .fc-options { grid-template-columns: 1fr; } .first-choice .sp-offer { padding: 14px; } }

/* Play's First steps (play.js firstSteps): the one thing to do next, for careers still on their first day. */
.first-steps h2 .fs-x { float: right; background: none; border: 0; color: var(--cm-muted, #ccc); font: 700 16px/1 var(--game, sans-serif); cursor: pointer; padding: 0 2px; }
.first-steps h2 .fs-x:hover, .first-steps h2 .fs-x:focus-visible { color: #fff; }
.first-steps .fs-step { margin: 2px 0 0; font-size: 14px; line-height: 1.6; }
.first-steps .cm-tile { display: inline-block; padding: 0 5px; line-height: 1.4; background: #0a0d1c; border: 1px solid #0627ac; color: #e8e8e8; font-size: 12px; white-space: nowrap; }
.first-steps.all-done .fs-step { color: #8fd18f; }
/* The checklist above the step: ticked, current (yellow) and to come (muted). Phones keep the one step only. */
.first-steps .fs-list { list-style: none; margin: 4px 0 6px; padding: 0; font-size: 13px; line-height: 1.7; color: var(--cm-muted, #ccc); }
.first-steps .fs-list li::before { content: '\25CB'; display: inline-block; width: 1.4em; }
.first-steps .fs-list li.now { color: var(--cm-title, #ff0); }
.first-steps .fs-list li.now::before { content: '\25B6'; font-size: 10px; }
.first-steps .fs-list li.done { color: #8fd18f; }
.first-steps .fs-list li.done::before { content: '\2713'; }
html.touch body.page-play #firststeps .fs-list { display: none; }
/* v2 on a computer: the step's words under its item, in plain text colour. */
.first-steps .fs-list li .fs-step { margin: 0 0 6px 1.4em; color: var(--cm-text, #fff); font-size: 13px; line-height: 1.5; }
.first-steps .fs-list li:not(.now) .fs-step { color: var(--cm-muted, #ccc); }
.first-steps .fs-step:empty { display: none; }
.first-steps .fs-b { display: block; padding-left: 1em; text-indent: -1em; }
.first-steps .fs-b::before { content: '\2022\00a0\00a0'; }
.first-steps .fs-b .cm-tile { text-indent: 0; }   /* an inline-block takes the hanging indent too */
/* A starter's phone: Get started as tight as it reads well, as the one box above the game. */
html.touch body.page-play[data-day-one="1"] #firststeps { padding: 6px 10px 8px; }
html.touch body.page-play[data-day-one="1"] #firststeps h2 { margin-bottom: 2px; }
/* The step and Stuck? share a paragraph's worth of space: two lines at most on a phone (George, 3 Nov 2026). */
html.touch body.page-play[data-day-one="1"] #firststeps .fs-step { display: inline; font-size: 13px; line-height: 1.4; }
html.touch body.page-play[data-day-one="1"] #firststeps .fs-stuck { display: inline !important; margin: 0 0 0 6px; font-size: 12px; white-space: nowrap; }
html.touch body.page-play[data-day-one="1"] #firststeps .cm-tile { font-size: 11px; padding: 0 4px; }
/* "Signed in as" at the bottom instead (play.js who-below), so the title bar goes. */
html.touch body.page-play.who-below .titlebar { display: none; }
.foot.who { margin: 6px 0 0; text-align: center; }
.foot.who .whoami { font-size: 12px; color: var(--cm-muted, #ccc); text-decoration: none; }
.foot.who .whoami b { color: var(--cm-text, #fff); }
.foot.who .adminlink { margin-left: 10px; font-size: 12px; color: var(--cm-title, #ff0); text-decoration: none; }
/* On a computer, at the top of the side column (whatever order the member gave the other boxes). Starting players on
   touch screens see it above the game, where the Game box's message was (3 Nov 2026). */
.page-play #firststeps { order: -1; }
html.touch body.page-play[data-day-one="1"] #firststeps:not([hidden]) { display: block !important; order: 2; flex: none; }   /* block: the step and Stuck? run on (above) */

/* The game keyboard as a Windows 95 window (George, 3 Nov 2026): grey with bevelled keys and a navy title bar, so it
   reads as something over the game, not part of the Club's blue panels; and shorter keys, to cover less of the game. */
.gamekbd { background: #c0c0c0; border: 0; padding: 3px 4px 4px; gap: 3px;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff, 0 8px 30px rgba(0, 0, 0, .6); }
.gamekbd h2 { margin: 0 0 2px; padding: 3px 4px 3px 6px; font: 700 13px var(--game, sans-serif); color: #fff; text-shadow: none;
  background: linear-gradient(90deg, #000080, #1084d0); border: 0; }
.gamekbd .ctl, .gamekbd h2 .ctl { color: #000; background: #c0c0c0; border: 0; border-radius: 0; text-shadow: none;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; }
.gamekbd .ctl:active, .gamekbd .ctl.on { box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff, inset 2px 2px #808080, inset -2px -2px #dfdfdf; background: #b4b4b4; }
.gamekbd .ctl.go { color: #000; font-weight: 700; }
.gamekbd h2 .ctl { padding: 1px 8px; font-size: 12px; min-height: 0; }
.gamekbd-row { gap: 3px; }
.gamekbd-row .ctl { padding: 6px 0; font-size: 15px; min-height: 0; }
@media (orientation: landscape) and (max-height: 600px) {
  html.touch .gamekbd { padding: 2px 3px 3px; }
  html.touch .gamekbd h2 { margin: 0 0 2px; padding: 2px 4px; font-size: 12px; }
  html.touch .gamekbd-row .ctl { padding: 5px 0; font-size: 13px; }
}

/* Sideways on a phone (George, 3 Nov 2026): the keys share out the column's height rather than leaving it empty, so
   their second lines have room instead of spilling out, and the game keyboard's rows fill its column the same way. */
@media (orientation: landscape) and (max-height: 600px) {
  html.touch .page-play .controls #keys { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  html.touch .page-play #keys .ctl-keys { flex: 1 1 auto; grid-auto-rows: minmax(min-content, 1fr); }
  html.touch .page-play #keys .ctl { min-height: 0; padding: 4px; line-height: 1.15; }
  html.touch .page-play #keys .key-sub { font-size: 10px; line-height: 1.15; }
  html.touch .page-play #keys .nudge { flex: none; margin-top: 4px; }
  html.touch .gamekbd-row { flex: 1 1 0; min-height: 0; }
  html.touch .gamekbd-row .ctl { padding: 0; }
}
/* How's your experience? on phones and tablets (George, 6 Nov 2026). Sideways it takes the foot of the keys' column,
   15% of its height, and the keys share out the rest. Upright, under the game: the keys on their own (no Keys box),
   then Help, then Menu, then the strip; Invite a Friend, Try New Games and Career Review are left to computers. */
@media (orientation: landscape) and (max-height: 600px) {
  html.touch .page-play .controls > .mood { flex: 0 0 15%; min-height: 0; margin-top: 0; padding: 2px 4px; row-gap: 0; box-sizing: border-box; }
  html.touch .page-play .controls > .mood .mood-q { font-size: 12px; }
  html.touch .page-play .controls > .mood .mood-btn svg { width: 20px; height: 20px; }
}
@media (orientation: portrait) {
  html.touch .page-play #keys { background: none; border: 0; padding: 0; }
  html.touch .page-play #keys h2 { display: none; }
  html.touch .page-play #supportbox { order: 1; }
  html.touch .page-play :is(#invitebox, #labs, #careerbox) { display: none !important; }
}
/* Compact keys on phones (George, 11 Nov 2026: a member found them too big; Slow Down Match went the same day, since
   matches start on fast commentary). Upright, the four keys make one 2 x 2 grid (Pause Match, Keyboard, Tap to Drag,
   Set Runs). Sideways the column is too narrow for two, so it's one slim key a row, at the column's top (no longer
   stretched to fill its height, and never squeezed by a notice above: the column scrolls), with ▲ ▼ at its foot. */
@media (orientation: portrait) {
  html.touch .page-play #keys:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  html.touch .page-play #keys .ctl-keys { display: contents; }
}
html.touch .page-play #keys .ctl { min-height: 0; padding: 5px 3px; font-size: 13px; line-height: 1.15; }
html.touch .page-play #keys .key-sub { font-size: 10px; line-height: 1.15; color: #bfc3cc; }
@media (orientation: landscape) and (max-height: 600px) {
  html.touch .page-play .controls #keys { flex: 1 0 auto; background: none; border: 0; padding: 0; }   /* no box: the keys sit on the pitch, as upright */
  html.touch .page-play #keys :is(.ctl-keys:not(.touch-ctl), .ctl-keys.touch-ctl) { flex: none; grid-template-columns: 1fr; grid-auto-rows: auto; }
  html.touch .page-play #keys .ctl { padding: 5px 4px; font-size: 13px; }
  html.touch .page-play #keys .nudge { margin-top: auto; }
}
/* No Menu sideways (George, 3 Nov 2026): the column is for the keys; the Club's panels are there upright. */
@media (orientation: landscape) and (max-height: 600px) {
  html.touch .page-play .menu-ctl { display: none !important; }
  html.touch.touch-menu .page-play .controls > .ctl-group:not(#keys) { display: none; }
  html.touch.touch-menu .page-play #keys { display: flex; }
}

/* Play's new side column (play-v2.html, body data-menu="2"; admins only while it's tried, 6 Nov 2026): Game, Community
   and Support, each folding but never reordered (panels.js data-panels-fixed), My Account in the column's title, and
   More Games (Original 97/98, SWOS 26/27) and How's your experience? at the foot. Support is headed Help. The rules for phones put it where Menu went. */
/* The new column's small buttons, one look: an icon and a name, raised like the game's tiles (:is(a, button) outranks js-dos.css's button reset, which loads later). My Account in the title,
   and the rows in the boxes: Quick Start New Save, Play Multiplayer, Full Screen, Take Screenshot, Export, Import,
   Forum, Leaderboards, Report Issue, Message Admin. */
:is(a, button).head-chip { display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; font: 700 11px/17px var(--game, sans-serif); color: var(--cm-title, #ff0);
  text-decoration: none; text-shadow: none; white-space: nowrap; background: #242b40; border: 1px solid #3f4f8c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 0 #000; cursor: pointer; }
:is(a, button).head-chip:hover, :is(a, button).head-chip:focus-visible { background: #2f3a5e; color: #fff; outline: none; }
.head-chip[hidden] { display: none; }
.head-chip svg { flex: none; }
.head-chip .badge { margin-left: 2px; padding: 0 4px; font-size: 10px; line-height: 13px; }
body[data-menu="2"] .controls > .ctl-group > h2:has(> .head-chip) { position: relative; padding-right: 110px; }
body[data-menu="2"] .controls > .ctl-group > h2 > .head-chip { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin: 0; }
.side-brand .side-links { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }   /* My Account and Community */
/* When the box stretches to the game's banner (panels.js min-height), the buttons drop to its foot, level with the ⇄,
   and the name stays put: the spare height splits above the name and above the buttons, as centring had it (George, 8 Nov 2026). */
html:not(.touch) .side-brand:has(> .side-links) { padding-bottom: 6px; }   /* html: outranks the box's own padding */
.side-brand:has(> .side-links) > :first-child, .side-brand > .side-links { margin-top: auto; }
.side-brand > .side-links { padding-top: 6px; }   /* the 6px gap under the name, now the margin is auto */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;   /* 10px between buttons everywhere (George) */
  margin-top: 2px; font-size: 12px; color: var(--cm-muted, #ccc); }
.chip-row:not(:has(> :is(a, button):not([hidden]))) { display: none; }   /* Game's rows wait for the game: their buttons need it running */
.chip-row .row-label { margin-right: 1px; }
#gamebox .chip-row .row-label { min-width: 86px; }   /* Options: and Save file: one width, so the rows line up */
#gamebox .chip-row .head-chip { padding: 0 5px; gap: 4px; }   /* Full Screen and Take Screenshot fit one 320px row with 10px gaps */
/* Quick Start New Save and Play Multiplayer, side by side. Quick Start's next step, once its world is in a slot,
   opens under its name (play.js), so the button takes the row's width then. */
#instant.head-chip:has(.instant-next:not([hidden])) { flex-wrap: wrap; flex-basis: 100%; white-space: normal; padding: 3px 7px; }
#instant.head-chip .instant-next { flex-basis: 100%; margin-top: 2px; font-weight: 400; }
/* A starter on a phone: Quick Start stays (it's in a row now), Play Multiplayer doesn't (it needs a keyboard). */
html.touch body.page-play[data-menu="2"]:is([data-new-player="1"], [data-day-one="1"]) #gamebox > #startrow { display: flex !important; }
html.touch body.page-play[data-menu="2"] #startrow > #multi { display: none; }
/* Play's Community box tabs: Latest, Popular, Pinned (17 Nov 2026). */
.cm-tabs { display: flex; gap: 3px; margin: 0 0 6px; }
.cm-tabs button { flex: 1 1 0; min-width: 0; padding: 0 1px; white-space: nowrap; overflow: hidden; font: 700 11px/19px var(--game, sans-serif); color: var(--cm-muted, #ccc); background: transparent;
  border: 1px solid rgba(63, 79, 140, .8); cursor: pointer; }
.cm-tabs button:hover, .cm-tabs button:focus-visible { color: #fff; background: #2f3a5e; outline: none; }
.cm-tabs button[aria-selected="true"] { color: var(--cm-title, #ff0); background: #3f4f8c; border-color: #3f4f8c; }
/* The Poll tab (src/playpoll.ts, 18 Nov 2026). */
.cm-poll { margin: 0 0 4px; }
.cm-poll-q { margin: 0 0 5px; font-size: 13px; font-weight: 700; color: #fff; }
.cm-poll-opt { display: block; width: 100%; margin: 0 0 3px; padding: 4px 6px; font: inherit; font-size: 12px; line-height: 1.3; text-align: left;
  color: #fff; cursor: pointer; background: #242b40; border: 1px solid #3f4f8c; }
.cm-poll-opt:hover, .cm-poll-opt:focus-visible { border-color: #fff; outline: none; }
.cm-poll-opt.mine { color: var(--cm-title, #ff0); }
.cm-poll-opt.picked { border-color: var(--cm-title, #ff0); color: var(--cm-title, #ff0); background: #3f4f8c; }
.cm-poll-note { display: grid; gap: 5px; margin: 4px 0 6px; padding: 5px; background: #1b2240; border: 1px solid var(--cm-title, #ff0); }
.cm-poll-note[hidden] { display: none; }
.cm-poll-note textarea { width: 100%; box-sizing: border-box; padding: 4px 6px; font: inherit; font-size: 12px; color: #fff; background: #0d1124; border: 1px solid #3f4f8c; resize: vertical; }
.cm-poll-note textarea:focus { border-color: #fff; outline: none; }
.cm-poll-send { padding: 6px; font: 13px/1.25 var(--game, sans-serif); color: #fff; text-shadow: 1px 1px 0 #000; cursor: pointer; border: 0; background: var(--cm-grey);
  box-shadow: inset 2px 2px 0 var(--cm-grey-hi), inset -2px -2px 0 var(--cm-grey-lo), 0 0 0 1px #000; }   /* the Report Issue button's look */
.cm-poll-send:is(:hover, :focus-visible) { color: var(--cm-title, #ff0); outline: none; }
.cm-poll-send:active { box-shadow: inset 2px 2px 0 var(--cm-grey-lo), inset -2px -2px 0 var(--cm-grey-hi), 0 0 0 1px #000; }
/* After you've voted (19 Nov): each answer is a bar of its share, the % on the right, yours ticked and edged in yellow. */
.cm-poll-opt { position: relative; overflow: hidden; }
.cm-poll-opt.voted { padding-right: 40px; }
.cm-poll-opt.mine { border-color: var(--cm-title, #ff0); }
.cm-poll-bar { position: absolute; inset: 0 auto 0 0; background: #3f4f8c; pointer-events: none; }
.cm-poll-opt.mine .cm-poll-bar { background: #56619e; }
.cm-poll-label, .cm-poll-pct { position: relative; }
.cm-poll-pct { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-weight: 700; }
.cm-poll-meta { margin: 4px 0 3px; font-size: 11px; color: var(--cm-muted, #ccc); }
.cm-poll-mynote { margin: 3px 0 5px; font-size: 12px; line-height: 1.35; color: #fff; overflow-wrap: anywhere; }
.cm-poll-mynote > span { color: var(--cm-muted, #ccc); }
.cm-poll-link { padding: 0; font: inherit; font-size: 12px; color: var(--cm-title, #ff0); text-decoration: underline; cursor: pointer; background: none; border: 0; }
.cm-poll-ask { font-size: 12px; font-weight: 700; color: var(--cm-title, #ff0); }
.cm-poll-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cm-poll:has(.cm-poll-note:not([hidden])) [data-poll-open] { display: none; }
/* Only one answer looks chosen (George, 19 Nov): while Other's box is open, Other is the chosen one and your vote so
   far loses its tick and yellow edge (club.js marks it .was-mine); Cancel gives them back. */
.cm-poll-opt.cm-poll-other.picked { border-color: var(--cm-title, #ff0); color: var(--cm-title, #ff0); }
.cm-poll-opt:not(.mine) .cm-poll-tick { display: none; }   /* the box is open: no Add / Edit link above it */
.cm-latest .cm-none { padding: 4px 2px; font-size: 12px; color: var(--cm-muted, #ccc); }
.cm-latest { list-style: none; margin: 0 0 4px; padding: 0; border-top: 1px solid rgba(63, 79, 140, .5); }
.cm-latest li { border-bottom: 1px solid rgba(63, 79, 140, .5); }
.cm-latest a { display: block; padding: 4px 2px; color: #fff; text-decoration: none; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.cm-latest a b { display: block; font-weight: 400; }
.cm-latest .tag { display: inline-block; padding: 2px 4px; font: 700 10px/1 var(--game, sans-serif); color: #000; background: var(--cm-title, #ff0); vertical-align: 1px; }
.cm-latest .unread a b { font-weight: 700; color: var(--cm-title, #ff0); }
.cm-latest a span { display: block; font-size: 11px; color: var(--cm-muted, #ccc); }
.cm-latest a:hover b { text-decoration: underline; }
.cm-latest a .cm-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cm-latest a .cm-go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 13px;
  color: var(--cm-title, #ff0); background: #242b40; border: 1px solid #3f4f8c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 0 #000; }   /* the head-chip look (Full Screen) */
.cm-latest a:is(:hover, :focus-visible) .cm-go { background: #2f3a5e; color: #fff; }
body:has(#supportbox.lit) :is(#reportbtn, .report-btn) { box-shadow: inset 2px 2px 0 var(--cm-grey-hi), inset -2px -2px 0 var(--cm-grey-lo), 0 0 0 2px var(--cm-title, #ff0); }   /* after a 👎 on an answer: the next step */
/* How's your experience? at the foot of the new column (play.js). */
body.page-play[data-menu="2"] .controls > .mood { order: 97; }
/* More Games at the very foot of the column, below How's your experience? (George, 21 Nov 2026), where the spotlights were. */
body.page-play[data-menu="2"] .controls > #labs { order: 98; margin-top: auto; }
body.page-play[data-menu="2"] .controls:has(> .mood:not([hidden])) > #labs { margin-top: 0; }
/* A starter on a computer, while Get started has a step to take: just the game, Get started, Game and Support. */
body.page-play:has(#firststeps:not([hidden]):not(.all-done)) :is(#communitybox, #labs, #regenbox, #achievementsbox) { display: none; }
/* Phones and tablets: the Game box is for computers (as before), More Games too; Community then Support; a starter
   gets Support's links in Menu's place. */
html.touch body.page-play[data-menu="2"] #labs { display: none !important; }
html.touch body.page-play[data-menu="2"]:is([data-new-player="1"], [data-day-one="1"]) :is(#communitybox, #helpask, #achievementsbox) { display: none !important; }
@media (orientation: portrait) {
  html.touch body.page-play[data-menu="2"] #communitybox { order: 1; }
  html.touch body.page-play[data-menu="2"] #supportbox { order: 3; }
  html.touch body.page-play[data-menu="2"] #achievementsbox { order: 4; }   /* last, below Help, as on computers */
  html.touch body.page-play[data-menu="2"]:is([data-new-player="1"], [data-day-one="1"]) #supportbox { display: flex !important; order: 7; flex: none; }
}
/* An admin's switch between the members' column and the new one (src/playmenu.ts), at the end of the footer line. */
/* Game's heading in the new column: no build number (George, 6 Nov 2026). */
body[data-menu="2"] #gamebox > h2 .buildtag { display: none; }
.help-ask-note a { color: var(--cm-title, #ff0); text-decoration: underline; }   /* yellow and underlined, so it reads as a link (George, 8 Nov 2026) */
.help-ask-note a:hover { color: #fff; }
/* Quick Start / Play Multiplayer, Forum / Leaderboards and Report Issue / Message Admin share their row's full width,
   10px apart, names centred (George, 6 Nov 2026). One alone takes it all. */
/* The home page's grey button (career.ts), and on the Game, Community and Help pairs (George, 6 Nov 2026). js-dos.css has
   its own .btn (loaded later), so these restate site.css's. Half-width pairs wrap their labels onto two lines. */
/* "Ask a question" sits in the Help heading (George, 8 Nov 2026), only while Ask is there: not when it's switched off,
   on 97/98 or for a first-day phone player. Its label over the box stays for screen readers only. */
/* The box is called Ask a Question while Ask is on and shown (George, 12 Nov 2026); Help when it isn't. */
body[data-menu="2"] #supportbox .h2-ask { display: none; }
body[data-menu="2"] #supportbox:has(#helpask) .h2-ask { display: inline; }
body[data-menu="2"] #supportbox:has(#helpask) .h2-help { display: none; }
html.touch body[data-menu="2"]:is([data-new-player="1"], [data-day-one="1"]) #supportbox:has(#helpask) .h2-ask { display: none; }   /* :has as above, to outrank it */
html.touch body[data-menu="2"]:is([data-new-player="1"], [data-day-one="1"]) #supportbox:has(#helpask) .h2-help { display: inline; }
body[data-menu="2"] #supportbox .help-ask-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Report Issue lives in Game (8 Nov 2026); phones and tablets don't show Game, so Help keeps one for them. */
body[data-menu="2"] #supportbox .touch-report { display: none; }
html.touch body[data-menu="2"] #supportbox .touch-report { display: flex; }
/* Help's My Account and Help & Handbook row: phones and tablets only, where the column's title isn't shown (8 Nov 2026). */
body[data-menu="2"] #supportbox > #phonerow { display: none; margin-top: 6px; }
html.touch body[data-menu="2"] #supportbox > #phonerow { display: flex; }
#gamebox #careerrow > .head-chip, #gamebox #startrow > .head-chip, #communitybox #communityrow > .head-chip, #supportbox .chip-row > .head-chip, #achievementsbox .ach-links > .head-chip { flex: 1 1 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; height: auto; min-height: 0; min-width: 0;
  padding: 6px 6px; border: 0; border-radius: 0; text-align: center; text-transform: none; white-space: normal;
  font: 13px/1.25 var(--game); color: #fff; background: var(--cm-grey); text-shadow: 1px 1px 0 #000; animation: none;
  box-shadow: inset 2px 2px 0 var(--cm-grey-hi), inset -2px -2px 0 var(--cm-grey-lo), 0 0 0 1px #000; }
:is(#gamebox #careerrow > .head-chip, #gamebox #startrow > .head-chip, #communitybox #communityrow > .head-chip, #supportbox .chip-row > .head-chip, #achievementsbox .ach-links > .head-chip):is(:hover, :focus-visible) { background: var(--cm-grey); color: var(--cm-title, #ff0); outline: none; }
:is(#gamebox #careerrow > .head-chip, #gamebox #startrow > .head-chip, #communitybox #communityrow > .head-chip, #supportbox .chip-row > .head-chip, #achievementsbox .ach-links > .head-chip):active { box-shadow: inset 2px 2px 0 var(--cm-grey-lo), inset -2px -2px 0 var(--cm-grey-hi), 0 0 0 1px #000; }
:is(#gamebox #startrow, #gamebox #careerrow, #communitybox #communityrow, #supportbox .chip-row, #achievementsbox .ach-links) > .head-chip[hidden] { display: none; }
:is(#gamebox #startrow, #gamebox #careerrow, #communitybox #communityrow, #supportbox .chip-row, #achievementsbox .ach-links) > .head-chip > svg { display: none; }
#gamebox #startrow > #instant:has(.instant-next:not([hidden])) { flex-basis: 100%; }   /* its next-step hint takes the row */
/* Options: and Save file: the same, after their labels, so the four buttons line up in two columns. */
#gamebox .chip-row:has(> .row-label) { flex-wrap: nowrap; }
#gamebox .chip-row > .row-label ~ .head-chip { flex: 1 1 0; min-width: 0; justify-content: center; }

/* The new column when it's narrow: Play's column shrinks to 176px in a short window (George's screenshot, 6 Nov 2026).
   The grey pairs keep one height; under 200px they stack. Options: and Save file: go above their buttons under
   260px, and the header's My Account and Community wrap rather than run out of the box. */
body[data-menu="2"] :is(#gamebox, #communitybox, #supportbox) { container-type: inline-size; }
:is(#startrow, #careerrow, #communityrow, #supportbox .chip-row, #achievementsbox .ach-links) { align-items: stretch; }
body[data-menu="2"] .side-brand .side-links { flex-wrap: wrap; }
body[data-menu="2"] #gamebox > .chip-row:not([hidden]) ~ .chip-row { margin-top: 6px; }   /* rows 10px apart (with the box's 4px gap), as the buttons in a row are (George, 6 Nov 2026) */
@container (max-width: 259px) {
  #gamebox .chip-row:has(> .row-label) { flex-wrap: wrap; row-gap: 10px; }
  #gamebox .chip-row .row-label { flex-basis: 100%; min-width: 0; }
}
@container (max-width: 199px) {
  :is(#gamebox #startrow, #communitybox #communityrow, #supportbox .chip-row, #achievementsbox .ach-links) > .head-chip { flex-basis: 100%; }
  #gamebox .chip-row > .row-label ~ .head-chip > svg { display: none; }
}

/* How smoothly does the game run for you? (play.js speedAsk): once, bottom right, like the corner note. */
.speed-ask { position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: min(320px, calc(100vw - 32px)); padding: 12px 14px;
  background: var(--cm-panel); border: 2px solid var(--cm-tile-edge); box-shadow: 0 4px 16px rgba(0, 0, 0, .5); font-size: 14px; animation: cm-note-in .3s ease-out; }
.speed-ask .speed-q { margin: 0 18px 8px 0; font-weight: bold; color: var(--cm-title); }
.speed-ask .speed-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--cm-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.speed-ask .speed-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.speed-ask .speed-btns[hidden], .speed-ask .speed-when[hidden] { display: none; }
.speed-ask button[data-a], .speed-ask .speed-send { padding: 5px 9px; font: inherit; cursor: pointer; background: var(--cm-grey, #555); color: #fff; border: 1px solid var(--cm-tile-edge); }
.speed-ask label { display: block; margin: 3px 0; cursor: pointer; }
.speed-ask .speed-send { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .speed-ask { animation: none; } }

/* Play's Achievements box (achievements.ts, #169). A page a group, named between Prev and Next at the top; yellow name and white how-to on one line, how it was earned below once earned; the save note at the foot. */
.achbox h2 .ach-count { float: right; margin-top: 2px; font-size: 11px; color: var(--cm-muted, #ccc); font-weight: 400; }   /* right-aligned in the heading */
.achbox .ach-links { margin-top: 6px; }   /* Your Career Review and Leaderboards, moved here for admins (index.ts) */
.achbox .ach-note { margin: 6px 0 0; text-align: center; font-size: 11px; }
.ach-page { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(63, 79, 140, .5); }
.ach-page[hidden] { display: none; }
.ach { display: flex; gap: 6px; align-items: center; padding: 2px 2px; border-bottom: 1px solid rgba(63, 79, 140, .5); }
.ach-icon { flex: 0 0 16px; font-size: 13px; line-height: 1; text-align: center; filter: grayscale(1); opacity: .55; }
.ach.got .ach-icon { filter: none; opacity: 1; }
.ach-text { flex: 1; min-width: 0; }
.ach-line { display: block; font-size: 10.5px; line-height: 1.25; color: var(--cm-muted, #ccc); overflow-wrap: anywhere; }   /* wraps rather than cutting text off (George, 10 Nov 2026) */
.ach-line b { color: var(--cm-title, #ff0); }
.ach-detail { font-size: 9.5px; color: #fff; }   /* a step smaller (George, 12 Nov 2026: less wordy) */
.ach:not(.got) .ach-line { opacity: .6; }   /* still to earn: the same colours, dimmed */
.ach-earned { display: block; font-size: 9.5px; line-height: 1.25; color: var(--cm-muted, #ccc); overflow-wrap: anywhere; }
.ach-tier { flex: 0 0 auto; align-self: flex-start; margin-top: 1px; font-size: 8.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }   /* rarity (achievements.ts rarity) */
.ach-tier.tier-common { color: #b8b8b8; } .ach-tier.tier-uncommon { color: #5fd16f; } .ach-tier.tier-rare { color: #5aa9ff; }
.ach-tier.tier-epic { color: #c58bff; } .ach-tier.tier-legendary { color: #ffb300; } .ach-tier.tier-unclaimed { color: #8a8a9a; font-weight: 400; }
.ach-pager { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 6px; }
.ach-pager[hidden] { display: none; }
.ach-at { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: #fff; }

/* Notices (play.js cmPlaceNotice; admins first, body[data-notices]): every Play notice as one card. In the side column
   above Game (#notices), over the game in full screen (#notices-over), pinned to the foot on phones when urgent
   (#notices-pin). A coloured edge says what kind: reminder blue, good green, question yellow, problem red. */
.notices { display: flex; flex-direction: column; gap: 6px; }
.notices:not(:has(> .notice:not([hidden]))) { display: none; }
#notices { margin: 0 0 8px; }
html.touch .page-play #notices { order: -2; flex: 0 0 100%; width: 100%; box-sizing: border-box; }   /* a full row under the game */
#notices-over { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 1001; width: min(420px, calc(100vw - 20px)); }
/* Exit Full Screen (play.js): over the game while it's full screen, top right; faint until the mouse comes to it. */
/* Screenshot sits to its left (George, 24 Nov 2026). */
#fullscreen-bar { position: fixed; top: 8px; right: 8px; z-index: 1002; display: flex; gap: 6px; }
#fullscreen-bar > button { padding: 5px 10px; background: #04061a; color: #fff;
  border: 1px solid var(--cm-tile-edge, #0627ac); font: 12px/1.2 var(--game, sans-serif); cursor: pointer; opacity: .55; transition: opacity .2s; }
#fullscreen-bar > button:hover { opacity: 1; color: var(--cm-title, #ff0); }
#fullscreen-bar > button[hidden] { display: none; }
/* Full Screen and Screenshot icons beside the game (play-v2.html #gamerail): computers only, against the game's outer edge,
   top aligned. --rail-w comes off the panel column's width (above), so the game keeps its full 4:3 size. */
.game-rail { display: none; }
@media (min-width: 901px) {
  html:not(.touch) .page-play .playwrap:has(> .game-rail) { --rail-w: 40px; }
  html:not(.touch) .page-play .game-rail { display: flex; flex-direction: column; gap: 6px; flex: none; align-self: flex-start; margin-top: var(--ticker-h, 0px); margin-left: auto; }
  html:not(.touch) .page-play .playwrap:has(> .game-rail) #dos { margin-left: 0; margin-right: 0; }
  html.menu-left:not(.touch) .page-play .game-rail { margin-left: 0; margin-right: auto; }
}
.rail-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; cursor: pointer; color: var(--cm-muted, #ccc);
  background: #242b40; border: 2px solid #3f4f8c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 0 #000; }
.rail-btn:hover, .rail-btn:focus-visible { background: #2f3a5e; color: var(--cm-title, #ff0); outline: none; }
.rail-btn:active { background: #0627ac; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .4); }
.rail-btn[hidden] { display: none; }
#notices-pin { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 1001; }
.notice.notice { position: relative; inset: auto; transform: none; width: auto; max-width: none; margin: 0; z-index: auto; box-sizing: border-box;
  display: block; padding: 8px 30px 8px 10px; background: #04061a; color: #fff; border: 1px solid var(--cm-tile-edge, #0627ac);
  border-left: 4px solid var(--notice, #5aa9ff); box-shadow: 0 4px 12px rgba(0, 0, 0, .45); font: 13px/1.35 var(--game, sans-serif);
  text-shadow: 1px 1px 0 #000; animation: notice-in .3s ease-out; }
.notice.notice[hidden] { display: none; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .notice.notice { animation: none; } }
.notice-reminder { --notice: #5aa9ff; } .notice-good { --notice: #5fd16f; } .notice-question { --notice: #fcfe02; } .notice-problem { --notice: #e04848; }
.notice.notice p { margin: 0; white-space: normal; }
.notice.notice b { color: var(--cm-title, #ff0); }
/* One close button, top right, whatever the notice called it. */
.notice.notice > button[aria-label="Close"], .notice.notice > button[aria-label="Remind me later"], .notice.notice > .speed-x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0; background: none; border: 0; color: var(--cm-muted, #ccc);
  font: 700 16px/1 var(--game, sans-serif); cursor: pointer; }
.notice.notice > button[aria-label="Close"]:hover, .notice.notice > button[aria-label="Remind me later"]:hover, .notice.notice > .speed-x:hover { color: #fff; }
/* The achievement card's own frame gives way to the notice's. */
.notice.ach-toast { border-top-color: var(--cm-tile-edge, #0627ac); }
.notice.ach-toast.out { opacity: 0; }
/* The newest unread thread in the note (club.js), a row of Play's Latest list: across the note, under the heading. */
.cm-note .cm-note-thread { grid-column: 1 / -1; margin: 2px 0 0; }

/* The Achievements page (achievements.ts achievementsPage, /achievements; #169): every group in turn,
   what's earned and what's left, with its rarity and the share of players who have it on the right. */
.achbox h2 a.ach-count { color: var(--cm-muted, #ccc); text-decoration: underline dotted; }
.achbox h2 a.ach-count:is(:hover, :focus-visible) { color: var(--cm-title, #ff0); }
.ach-all .ach-summary { margin: 0 0 4px; }
.ach-bar { height: 6px; background: rgba(63, 79, 140, .5); margin: 0 0 10px; }
.ach-bar > span { display: block; height: 100%; background: var(--cm-title, #ff0); }
.ach-all .ach { padding: 8px 2px; gap: 12px; }
/* Each one a badge: the icon big in a round frame, its rim the rarity's colour; still to earn, greyed with a small lock. */
.ach-badge { position: relative; flex: 0 0 52px; height: 52px; display: grid; place-items: center; font-size: 30px; line-height: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2c3a78, #10183f 70%); border: 2px solid currentColor; box-shadow: 0 0 0 1px #000, inset 0 2px 4px rgba(0, 0, 0, .5); }
.ach-badge.tier-common { color: #b8b8b8; } .ach-badge.tier-uncommon { color: #5fd16f; } .ach-badge.tier-rare { color: #5aa9ff; }
.ach-badge.tier-epic { color: #c58bff; } .ach-badge.tier-legendary { color: #ffb300; } .ach-badge.tier-unclaimed { color: #8a8a9a; }
.ach:not(.got) .ach-badge { color: #4a5070; background: #141a36; }
.ach:not(.got) .ach-glyph { filter: grayscale(1); opacity: .4; }
.ach-lock { position: absolute; right: -5px; bottom: -5px; font-size: 17px; text-shadow: 0 0 3px #000; }
.ach-all .ach-pager { margin: 4px 0 8px; }
.ach-all .ach-pager .ach-at { font-size: 14px; }
@media (max-width: 480px) { .ach-badge { flex-basis: 44px; height: 44px; font-size: 25px; } .ach-all .ach { gap: 10px; } }
.ach-all .ach-line { font-size: 13px; }
.ach-all .ach-detail { font-size: 12px; }
.ach-all .ach-earned { font-size: 11.5px; }
.ach-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; align-self: flex-start; gap: 1px; text-align: right; }
.ach-side .ach-tier { margin-top: 2px; font-size: 10px; }
.ach-pct { font-size: 11px; color: var(--cm-muted, #ccc); white-space: nowrap; }

/* The Club page's Honours column (clubhome.ts; #169): its New pill, the last three badges
   on Achievements, and the first season's bar on Career Review. */
.club-section > h2 .tag { margin-left: 6px; padding: 1px 7px; font-size: 11px; color: #000; background: var(--cm-title, #ff0); border-radius: 999px; text-shadow: none; vertical-align: 3px; }
.club-badges { display: flex; gap: 8px; margin: 0 0 8px; }
.club-badge { display: grid; place-items: center; width: 40px; height: 40px; font-size: 22px; line-height: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2c3a78, #10183f 70%); border: 2px solid var(--cm-title, #ff0); box-shadow: 0 0 0 1px #000; }
.club-card .career-bar { display: block; margin: 0 0 8px; }
/* Play's box: the name on its own line, what to do (or how it was earned) under it (George, 12 Nov 2026: cleaner). */
#achievementsbox .ach-head { display: flex; align-items: baseline; gap: 6px; }
#achievementsbox .ach-head b { flex: 1; min-width: 0; }
#achievementsbox .ach-head .ach-tier { margin: 0; }
#achievementsbox .ach-detail { display: block; }

/* Tablets (html.tablet, site.js; George, 18 Nov 2026: "the UI on ipad is in a poor state"). The phone's stand-ins go:
   Report Issue is in the Game box, My Account and Community sit under "Signed in as" in the title bar (play.js), so
   Help is Ask a Question and Message Admin again. Keys as on phones: no box or heading, the keys straight under the
   game, upright in one row of four across the page; sideways at the top of the column, two a row (the phone rules
   left Pause Match alone on a row of two there). */
html.tablet body[data-menu="2"] #supportbox .touch-report,
html.tablet body[data-menu="2"] #supportbox > #phonerow { display: none !important; }
html.tablet .page-play #keys:not([hidden]) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start;
  background: none; border: 0; padding: 0; box-shadow: none; }
html.tablet .page-play #keys > h2 { display: none !important; }
html.tablet .page-play #keys .ctl-keys { display: contents !important; }
html.tablet .page-play #keys .ctl { width: 100%; min-height: 52px; padding: 6px 4px; font-size: 15px; }
html.tablet .page-play #keys .key-sub { font-size: 11px; }
@media (orientation: portrait) {
  html.tablet .page-play #keys:not([hidden]) { grid-template-columns: repeat(4, 1fr); flex: 0 0 100%; }
}
html.tablet .page-play #keys .nudge { display: none !important; }
.titlebar .title-links { display: none; }
/* A computer window under 901px wide shows the title bar too (the column title is for wider ones): the three buttons as a
   centred row under the name (George, 21 Nov 2026). */
@media (max-width: 900px) {
  html:not(.touch) .titlebar .title-links { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
  html:not(.touch) .titlebar .title-links .head-chip { font-size: 12px; padding: 3px 8px; }
}
html.tablet .titlebar .title-links { display: flex; gap: 8px; justify-content: flex-end; position: absolute; top: 32px; right: 12px; }
html.tablet .titlebar .title-links .head-chip { font-size: 12px; padding: 3px 8px; }
@media (orientation: portrait) {
  html.tablet .page-play .titlebar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
  html.tablet .titlebar .title-links { position: static; }
}
