/* ------------------------------------------------------------------
   The opening screen, the profile and the leaderboard.

   The title and the two ways to play own the first screenful. Everything
   underneath is a quiet ledger: small uppercase labels, large figures, no
   card around anything that does not need one. Loaded after game.css so it
   wins where the two overlap.
   ------------------------------------------------------------------ */

/*
 * The whole screen, with the photograph given room to be one.
 *
 * The page used to be as tall as its contents, which on a phone left a band
 * of photograph at the top, the button, and then a third of a screen of empty
 * cream underneath — and taking options off the page only made that worse.
 * Filling the viewport lets the foot sit at the foot, and lets the content
 * start further down, which is the same thing as showing more of the picture.
 */
.screen-home {
  padding: 0;
  min-height: 100dvh;
}

.h-inner {
  width: min(560px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  /*
   * The top padding is what pushes the title clear of the roofline and gives
   * the photograph the space to read as a photograph rather than as a strip.
   */
  padding: 7vh 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/*
 * Where the free space goes.
 *
 * Filling the viewport gave the page a third of a screen of empty cream in
 * one lump. Two automatic margins split it instead: one above the button, so
 * it sits low over the building rather than crowding the masthead, and one
 * above the footnotes, so they sit at the foot. The title stays in the sky,
 * the button lands on the photograph, and there is no gap anywhere that reads
 * as something missing.
 */
.h-play { margin-top: auto; }
.h-links { margin-top: auto; }

/* --------------------------------------------------------------- hero */

.h-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 12px 0 4px;
}

.h-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.h-welcome {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-wrap: balance;
}
.h-welcome strong { color: var(--cream); }

/* --------------------------------------------------- the two big ones */

.h-play {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h-play-btn.is-solo {
  background: linear-gradient(168deg, var(--wheat) 0%, var(--wheat-deep) 100%);
  border-color: var(--wheat);
  color: #1a1305;
  box-shadow: 0 16px 34px var(--wash-gold-2);
}
.h-play-btn.is-solo .h-play-sub { color: rgba(18, 32, 54, 0.42); }

.h-play-btn.is-friends {
  border-color: var(--wash-blue-2);
  background: linear-gradient(168deg, var(--wash-blue-2) 0%, var(--ink-2) 100%);
}
.h-play-btn.is-friends .h-play-sub { color: var(--river); }

/* ---------------------------------------------------- pick it up again */

.h-resume {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: -12px;
}

/* -------------------------------------------------------------- blocks */

.h-block:empty { display: none; }

.h-block-title {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wheat);
}
.h-block-head .h-block-title { margin-bottom: 0; }

.h-kicker {
  margin: -4px 0 10px;
  font-size: 0.7rem;
  color: var(--muted-2);
}

.h-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}.pf-figure {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 4px;
  border-top: 1px solid var(--line-soft);
}.pf-figure-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}.pf-figure-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.h-stats .h-note { margin-top: 8px; }

/* ---------------------------------------------------------- top players */

.h-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.h-board-row .portrait { border-radius: 50%; }
.h-board-blank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink-3);
}
.h-profile .portrait { border-radius: 50%; }.pf-history-row {
  display: grid;
  grid-template-columns: 54px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0 9px 10px;
  border-top: 1px solid var(--line-soft);
  border-left: 2px solid var(--party, var(--line));
}.pf-history-party {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--party, var(--cream));
}.pf-history-seats {
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}.pf-history-result {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.h-recent-row.is-win .h-recent-result,
.pf-history-row.is-win .pf-history-result { color: var(--wheat); }

/* ==================================================================
   Profile and leaderboard
   ================================================================== */

.screen-profile { padding: 0; }

.pf-inner {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 14px 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pf-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pf-body,
.pf-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pf-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

/* Quiet, because the record beside it is what the screen is for. */
.pf-edit {
  appearance: none;
  align-self: start;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-2);
  cursor: pointer;
}
.pf-edit:hover { border-color: var(--gold); color: var(--navy); }
.pf-edit:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pf-card .portrait { border-radius: 50%; }
.pf-who {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pf-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.pf-level {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
}
.pf-level-track {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--ink-3);
  overflow: hidden;
}
.pf-level-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--wheat-deep), var(--wheat));
}
.pf-level-note {
  font-size: 0.68rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.pf-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pf-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted-2);
}

.pf-parties {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pf-party {
  display: grid;
  grid-template-columns: 54px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0 9px 10px;
  border-top: 1px solid var(--line-soft);
  border-left: 2px solid var(--party, var(--line));
}
.pf-party:first-child { border-top: 0; }
.pf-party-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--party, var(--cream));
}
.pf-party-record {
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pf-party-seats {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------- achievements */

.pf-achievements {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pf-achievement {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  opacity: 0.42;
}
.pf-achievement:first-child { border-top: 0; }
.pf-achievement.is-earned { opacity: 1; }
.pf-achievement-icon {
  font-size: 1.2rem;
  text-align: center;
  filter: grayscale(1);
}
.pf-achievement.is-earned .pf-achievement-icon { filter: none; }
.pf-achievement-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pf-achievement-name {
  font-size: 0.86rem;
  font-weight: 700;
}
.pf-achievement-blurb {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted-2);
}
.pf-achievement-tick {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wheat);
}

/* ------------------------------------------------------------- history */

.pf-history {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pf-history-row { grid-template-columns: 34px 54px 1fr auto auto; }
.pf-history-row:first-child { border-top: 0; }
.pf-history-n {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.pf-history-solo {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* --------------------------------------------------------- leaderboard */

.lbd-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.lbd-row {
  display: grid;
  grid-template-columns: 22px 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.lbd-row:first-child { border-top: 0; }
.lbd-row .portrait { border-radius: 50%; }
.lbd-rank {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.lbd-row.is-top .lbd-rank { color: var(--wheat); }
.lbd-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lbd-name {
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lbd-sub {
  font-size: 0.68rem;
  color: var(--muted-2);
}
.lbd-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wheat);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- narrow */

@media (max-width: 359px) {
  .h-inner { padding: 26px 14px 40px; }
  .h-figures,
  .pf-figures,
  .h-profile-figures { gap: 6px; }
  .h-figure-value,
  .pf-figure-value { font-size: 1.45rem; }
  .h-figure-label,
  .pf-figure-label { letter-spacing: 0.1em; }
  .h-play-btn { padding: 16px; }
}

/* ================================================== the opening screen */

/*
 * The page itself.
 *
 * A very faint engraved wash, the way security paper is printed: hairlines at
 * an angle, far enough apart and light enough that you read it as texture
 * rather than as a pattern. It is the difference between a screen and a sheet,
 * and it costs one gradient.
 */
.screen-home {
  position: relative;
  isolation: isolate;
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(18, 32, 54, 0.014) 0 1px,
      transparent 1px 9px
    );
}

/*
 * The assembly, behind the masthead.
 *
 * A band across the top rather than a full-page background: the photograph is
 * an establishing shot, and an establishing shot that carries on behind a list
 * of buttons stops establishing anything. It fades to nothing well before the
 * cards, so what a player reads is always ink on paper.
 *
 * It is a ::before layer, not a background on the element itself, for three
 * reasons. The element already carries the engraved wash and would have to
 * stack them. A separate layer can be sized in viewport units without the
 * content having to match. And most of all it cannot widen the page: pinned to
 * both edges of a block that is already the width of the screen, there is
 * nothing for it to overflow.
 */
/*
 * The assembly, behind the masthead.
 * ------------------------------------------------------------------
 * WHERE THINGS ARE IN THE PHOTOGRAPH
 *
 * It is 1536x1024, three by two, and the parts that matter are not in the
 * middle of it:
 *
 *   sky            the top 44%
 *   dome           68% to 83% across, 20% to 45% down
 *   flag           above the dome, from 6% down
 *   grand portico  49% to 65% across
 *   west wing      25% to 49% across
 *   fountain       2% to 20% across, bottom left
 *   gardens        the bottom 19%
 *
 * Everything that makes the building recognisable — the dome, the flag above
 * it, the portico under it — sits in the RIGHT-HAND HALF. That single fact is
 * what all the positioning below is for.
 *
 * WHY `center` WAS WRONG
 *
 * A landscape photograph in a tall narrow band is scaled until its height
 * fills, and then cropped horizontally. On a 390px phone that leaves about
 * 41% of the width on screen — and `center` keeps the middle 41%, which is
 * 30% to 70%: the west wing, the trees, and no dome at all. The building was
 * being cropped away on precisely the screens most people play on.
 *
 * So the position is stated per width, in terms of what survives the crop.
 * The narrower the screen, the further right it has to look.
 */
.screen-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: clamp(400px, 68vh, 660px);
  pointer-events: none;

  background-image:
    /*
     * The veil, over the photograph.
     *
     * Light where the building is and heavy only where the page has to take
     * over. It used to close to 82% opacity across the middle band — which is
     * exactly where the stonework is, so the building was being washed out to
     * make room for text that was nowhere near it. The title sits in the sky,
     * which is pale and needs a little; the dome and the portico need none.
     */
    linear-gradient(
      to bottom,
      rgba(252, 249, 243, 0.46) 0%,
      rgba(252, 249, 243, 0.36) 15%,
      rgba(251, 248, 241, 0.13) 38%,
      rgba(251, 247, 239, 0.13) 72%,
      rgba(250, 246, 238, 0.40) 86%,
      rgba(249, 245, 236, 0.86) 96%,
      var(--paper) 100%
    ),
    url('../assets/backgrounds/punjab-assembly-bg.png');

  /*
   * `cover` and nothing else. The photograph keeps its own proportions at
   * every width — it is never stretched to fit a box, only ever cropped by
   * one, which is what the position above decides.
   */
  background-size: cover;
  background-repeat: no-repeat;

  /*
   * The default, for phones: look at the right-hand half.
   *
   * 74% keeps roughly the 43%-84% slice — the portico and the whole dome,
   * with sky above both.
   *
   * The exact figure is doing one more job. The flagpole stands directly
   * above the dome, and at 82% it landed behind the middle of "Election
   * Time", so the masthead had a saturated tricolour running through it. Four
   * percent to the left drops the flag clear of the last letter without
   * pushing the dome off the other edge, which is the whole width available
   * to solve it in.
   */
  background-position: 74% top;
}

/*
 * Wider screens need to look less far right, because less is cropped away.
 *
 * At 768 the crop takes about a tenth off each side; by 1024 the whole width
 * very nearly fits and the photograph only needs centring rather than
 * framing. Each step is the same picture seen more completely, not a
 * different crop of it.
 */
@media (min-width: 431px) {
  .screen-home::before { background-position: 78% top; }
}

@media (min-width: 768px) {
  .screen-home::before {
    height: clamp(470px, 70vh, 780px);
    background-position: 72% top;
  }
}

@media (min-width: 1024px) {
  /*
   * Wide enough that the width fits and the crop moves to the vertical.
   * `top` keeps the sky and the whole building and loses only the gardens at
   * the foot, which the veil was closing over anyway.
   */
  .screen-home::before {
    height: clamp(520px, 74vh, 900px);
    background-position: center top;
  }
}

/*
 * A note on why the band gets taller as the screen gets wider.
 *
 * The veil's stops are percentages of the band, but the band shows a
 * different amount of the photograph at every width. On a phone it shows the
 * whole height of it; on a desktop the width is the binding dimension, so the
 * same band is only the top two thirds of the picture — and a stop at 86% of
 * the band lands at 60% of the image instead of 86% of it, half way up the
 * colonnade. That is what was bleaching the lower building on wide screens.
 *
 * Giving wide screens more band pushes those stops back down the picture, so
 * the fade happens below the stonework rather than through it.
 */

/*
 * Short screens in landscape get less of it.
 *
 * 68vh of a 380px-tall window is a band with nothing under it, so the whole
 * screen becomes photograph and the button somebody came for is below the
 * fold.
 */
@media (max-height: 520px) {
  .screen-home::before { height: 220px; }
  .h-inner { padding-top: 22px; }
}

/*
 * The content sits above its own establishing shot.
 *
 * z-index rather than order alone, because the band is pulled to -1 to keep it
 * out of the way of anything that opens over the page.
 */
.h-inner { position: relative; z-index: 0; }

/*
 * A large image behind text is a bet on the image loading.
 *
 * Where somebody has asked for less data, the band is the gradient alone -
 * which is the same colours, so the page looks intentional rather than
 * broken.
 */
@media (prefers-reduced-data: reduce) {
  .screen-home::before { background-image: none; background: var(--paper); }
}

/*
 * `.h-inner` is declared once, at the top of this file.
 *
 * A second copy used to sit here — same selector, different padding and gap,
 * further down the file and therefore winning. Whatever was written at the
 * top was being quietly discarded, which is why spacing changes made there
 * had less effect than they should have. There is one of it now.
 */

/*
 * One card shape for everything you can press.
 *
 * The page used to be five differently-sized boxes and four blocks of
 * statistics; it is a short list of choices now, and a list reads as a list
 * only if the items look like each other. What varies between them is weight,
 * not shape: an icon, a name, a line of explanation, a chevron.
 */
.h-card {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 15px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-card);
  font-family: var(--font);
  text-align: left;
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.h-card:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.h-card:active { transform: translateY(0); }
.h-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.h-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.h-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--blue);
  flex: none;
}
.h-icon { width: 20px; height: 20px; display: block; }

/* The chevron says "this goes somewhere" without a word doing it. */
.h-card-chev {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--navy-3);
}

/*
 * The label over its own line of explanation.
 *
 * This had no rule at all. Both children are spans, and the only reason they
 * ever appeared on separate lines was that together they were too wide for
 * the column and happened to wrap — which held on the home screen and did not
 * on the play page, where the same card came out as one run-on line. Stacking
 * them is what was always meant; now it is what is written down.
 */
.h-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.h-card-label {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.h-card-sub {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy-2);
  line-height: 1.35;
}

/*
 * The way in: the one thing on the page that is meant to be pressed.
 *
 * It is the only gold surface on the screen and the only one with a shadow
 * that reads at arm's length. Nothing else is allowed to come near it —
 * that is the whole hierarchy, and it is why the leaderboard had to go.
 */
.h-card.is-primary {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 88px;
  padding: 18px 18px;
  background: linear-gradient(168deg, #d3ac3c 0%, #a8811f 100%);
  border-color: var(--gold-deep);
  color: #1a1305;
  box-shadow: 0 8px 22px -6px rgba(154, 116, 32, 0.45);
}
.h-card.is-primary:hover {
  border-color: var(--gold-deep);
  box-shadow: 0 12px 28px -6px rgba(154, 116, 32, 0.5);
}
.h-card.is-primary .h-card-label { font-size: 1.42rem; }
.h-card.is-primary .h-card-sub { color: rgba(26, 19, 5, 0.72); }
.h-card.is-primary .h-card-icon {
  width: 46px;
  height: 46px;
  border-color: rgba(26, 19, 5, 0.24);
  background: rgba(255, 253, 246, 0.28);
  color: #1a1305;
}
.h-card.is-primary .h-icon { width: 24px; height: 24px; }
.h-card.is-primary .h-card-chev { color: rgba(26, 19, 5, 0.5); }

/* Playing alone: the same shape, in the second voice rather than the first. */
.h-card.is-solo .h-card-icon {
  border-color: var(--wash-blue-2);
  background: var(--wash-blue);
}

/*
 * Something left unfinished, which is the only card that is not always there.
 * It leads with the blue accent because picking a game back up is a different
 * kind of act from starting one.
 */
.h-card.is-continue {
  border-left: 3px solid var(--blue);
}
.h-card.is-continue .h-card-sub { color: var(--blue); font-weight: 500; }

/*
 * The two places to go.
 *
 * Flat, ruled, and never competing with Play: no card fill, no shadow, one
 * hairline between them. They are a contents list, not two more offers.
 */
/*
 * Statistics and profile, as one quiet line.
 *
 * They were two full-width cards under a heading — a table of other people's
 * results and a page for changing your photograph, given the same weight on
 * the page as the button somebody came here to press. This is a footnote in
 * the shape of a footnote.
 */
.h-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.h-link {
  appearance: none;
  padding: 6px 2px;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-2);
  cursor: pointer;
  transition: color 0.14s ease;
}
.h-link:hover { color: var(--navy); text-decoration: underline; }
.h-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.h-link-dot { color: var(--navy-3); }

.h-resume:empty { display: none; }

@media (max-width: 430px) {
  .h-inner { padding: 6vh 14px 24px; gap: 18px; }
  .h-card { padding: 14px; gap: 12px; }
  .h-card.is-primary { min-height: 82px; padding: 16px 14px; }
  .h-card.is-primary .h-card-label { font-size: 1.28rem; }
  .h-card-label { font-size: 1.08rem; }
  .h-card-sub { font-size: 0.72rem; }
  .h-card-icon { width: 34px; height: 34px; }
}

/* Under about 340px the icon is the first thing worth its space. */
@media (max-width: 339px) {
  .h-card:not(.is-primary) .h-card-icon { display: none; }
  .h-card { grid-template-columns: minmax(0, 1fr) auto; }
  .h-card.is-primary { grid-template-columns: auto minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  .h-card { transition: none; }
  .h-card:hover { transform: none; }
}

/* The three pages a store review and a privacy request both need to find. */
.h-foot {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 6px;
}
.h-foot-link {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-decoration: none;
}
.h-foot-link:hover { color: var(--wheat); }


/* ------------------------------------------------------------ play page */

/*
 * Alone, or with other people.
 *
 * The same two cards the home screen used to carry, on a page whose only job
 * is to ask the question — so they get the width and the quiet around them
 * that a decision deserves, and neither has to compete with a masthead.
 */
.screen-playmode { padding: 20px 18px 40px; }

.pm-inner {
  width: min(560px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.pm-choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-card { min-height: 84px; }

/* Playing with other people is not the lesser option, only the quieter one. */
.pm-card.is-team {
  border-color: var(--blue);
  background: var(--paper-2);
}
.pm-card.is-team .h-card-icon { color: var(--blue); }
