/* Page chrome for the standalone card games (Spider, Golf, the shedding game, blackjack, poker): the site header
   with the masthead, a compact title row, the table and a row of 42 px controls, the how-to, the end box and the
   visible "what just happened" line. The cards and felt are cards.css. See the card-games skill. */
@font-face { font-family: "Archivo Black"; src: url(/fonts/archivo-black-latin.woff2) format("woff2"); font-weight: 400 1000; font-display: swap; }
@font-face { font-family: "Archivo Black Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Noto Sans Bold"), local("NotoSans-Bold"); size-adjust: 112%; }
:root { color-scheme: light; --paper: #f4f1e8; --ink: #171815; --acid: #e3ff59; --muted: #76766d; --line: #d4d2c9; --red: #c0281c; }
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #728600; outline-offset: 3px; }
[hidden] { display: none !important; }
html:not(.can-install) [data-install] { display: none !important; }
.wrap { max-width: 1040px; margin: auto; padding: 0 16px; }

/* The site header (slopped-brand, "Subsite header"): the wordmark goes to slopped.site, the hairline + "Games"
   to the games page. Nothing else repeats it. */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 72px; border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; min-width: 0; }
.masthead .brand { display: flex; align-items: center; flex: none; min-height: 42px; }
.masthead .brand img { display: block; width: auto; height: 26px; }
.site-name { display: inline-flex; align-items: center; min-height: 42px; margin-left: 14px; padding-left: 15px; background: linear-gradient(var(--line), var(--line)) left center / 1px 20px no-repeat; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.site-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.head-tools { display: flex; align-items: center; gap: 8px; }
.icon { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); }
.icon svg { width: 18px; height: 18px; }
.icon[aria-pressed="false"] { opacity: .55; }

/* Title row: the game's name and one deadpan line; stats on the right. */
.game-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; padding: 18px 0 10px; }
h1 { margin: 0; font: 1000 clamp(34px, 6vw, 56px)/.95 "Archivo Black", "Arial Black", "Archivo Black Fallback", Arial, sans-serif; letter-spacing: -.05em; font-synthesis: none; }
.tagline { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.record { color: var(--muted); font: 12px/1.4 Arial, Helvetica, sans-serif; }
.record b { color: var(--ink); }

/* The bar over the table: what deal / hand this is, and the running numbers. */
.table-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 2px 2px 8px; color: var(--muted); font: 700 10px/1.3 Arial, Helvetica, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.table-bar b { margin-left: 3px; color: var(--ink); font: 1000 15px "Archivo Black", "Arial Black", "Archivo Black Fallback", Arial, sans-serif; letter-spacing: -.02em; text-transform: none; font-synthesis: none; font-variant-numeric: tabular-nums; }
.table-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* Controls under (or over) the table: every one 42 px. */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; min-width: 42px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 14px Arial, Helvetica, sans-serif; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.main { border-color: var(--ink); background: var(--ink); color: var(--acid); }
.btn.main:hover:not(:disabled) { color: var(--acid); }
.btn kbd { font: 700 11px Arial, Helvetica, sans-serif; opacity: .7; }
.seg { display: inline-flex; }
.seg .btn { border-radius: 0; }
.seg .btn + .btn { margin-left: -1px; }
.seg .btn:first-child { border-radius: 999px 0 0 999px; }
.seg .btn:last-child { border-radius: 0 999px 999px 0; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.spacer { flex: 1; }
.done-today { color: #4d5a00; font-size: 13px; font-weight: 700; }

/* The visible commentary line ("The stapler plays 8♣ and asks for hearts"); also the screen reader's live region. */
.say { min-height: 1.4em; margin: 8px 2px 0; font: 700 14px/1.4 Arial, Helvetica, sans-serif; }
.say.quiet { color: var(--muted); font-weight: 400; }

/* How to play: short, under the table. */
.howto { margin: 18px 0 0; border-top: 1px solid var(--line); }
.howto summary { display: flex; align-items: center; min-height: 42px; color: var(--muted); font-weight: 700; cursor: pointer; }
.howto summary:hover { color: var(--ink); }
.howto p, .howto li { color: #3a3b35; font-size: 14px; line-height: 1.5; }
.howto ul { margin: 4px 0 10px; padding-left: 18px; }
kbd { display: inline-block; min-width: 12px; padding: 1px 6px; border-radius: 4px; background: var(--ink); color: var(--paper); font: 700 11px Arial, sans-serif; text-align: center; }
.site-foot p { margin: 0; }
.site-foot { margin: 28px 0 0; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* The end of a game: a dark box over the felt. */
.table-over { position: absolute; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 12px; background: #f4f1e8b0; }
.over-box { position: relative; max-width: 100%; padding: 22px 26px 20px; border-radius: 12px; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; text-align: left; box-shadow: 0 20px 60px #0004; }
.over-box p { margin: 0; }
.over-title { font: 1000 32px/1 "Archivo Black", "Arial Black", "Archivo Black Fallback", Arial, sans-serif; letter-spacing: -.04em; font-synthesis: none; text-transform: capitalize; }
.over-line { margin-top: 10px !important; color: #3a3b35; font-size: 15px; }
.over-hint { margin: 6px 0 16px !important; color: var(--muted); font-size: 12px; }
.over-box .btn { border-color: var(--ink); background: var(--ink); color: var(--acid); }
.over-box .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.over-badge { position: absolute; top: 16px; right: 16px; padding: 3px 9px; border: 1px solid var(--ink); border-radius: 999px; background: var(--acid); color: var(--ink); font: 700 11px Arial, Helvetica, sans-serif; letter-spacing: 1px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 600px) {
  .site-head { height: 60px; }
  .masthead .brand img { height: 22px; }
  .site-name { margin-left: 10px; padding-left: 11px; font-size: 15px; background-size: 1px 16px; }
  .wrap { padding: 0 8px; }
  .game-head { padding: 10px 2px 6px; }
  h1 { font-size: 30px; }
  .tagline { display: none; }
  .btn { padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
