/* The umbrella home page (humanenoughgames.com). Same paper, ink and cast as the game; one job: get you playing.
   The robot crowd sits beside the play button and looks at it. */
body.home { height: auto; min-height: 100dvh; }
.home {
  display: flex; flex-direction: column;
  max-width: 1180px; margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px))
           calc(16px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
}
.home a { color: inherit; }

.home-top { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.home-mark { margin-right: auto; font-weight: 800; font-size: 17px; letter-spacing: -0.015em; text-decoration: none; }
.home-mark span { color: var(--ink-2); font-weight: 600; }

/* ------------------------------------------------------------------ today's game */
.today { display: grid; gap: 18px; margin-top: 8px; }
.today-host { display: flex; align-items: flex-end; gap: 12px; }
.today-host .host { width: 72px; }
.today-bubble { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.today-title {
  margin-top: 18px; font-weight: 800; font-size: 46px; line-height: 0.95; letter-spacing: -0.04em;
}
.today-pitch { margin-top: 10px; font-size: 18px; font-weight: 500; line-height: 1.35; max-width: 34ch; text-wrap: pretty; }
.btn-play {
  margin-top: 20px; text-align: center; text-decoration: none;
  font-size: 22px; padding: 17px 20px 18px; border-radius: 18px; box-shadow: 0 5px 0 var(--ink);
}
.btn-play:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.today[data-state="done"] .btn-play { background: var(--card); }
.today-meta { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* the crowd: a strip of benches on a phone, the full studio beside the copy on a laptop */
.today-crowd {
  border: var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 5px 0 var(--ink);
  padding: 14px 14px 0; overflow: hidden; height: 190px;
}
.today-crowd .audience { width: 100%; aspect-ratio: 4 / 5; }

/* ------------------------------------------------------------------ how it works, the shelf of games */
.how, .shelf { margin-top: 34px; }
.how h2, .shelf h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.how-steps { display: grid; gap: 10px; margin-top: 12px; counter-reset: step; }
.how-steps li {
  counter-increment: step; position: relative; padding-left: 42px; font-size: 16.5px; line-height: 1.4; color: var(--ink-2);
}
.how-steps li b { color: var(--ink); font-weight: 800; }
.how-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px;
  display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--you-soft); color: var(--ink); font-weight: 800; font-size: 15px;
}

.shelf-list { display: grid; gap: 12px; margin-top: 12px; }
.game a, .game-soon { display: grid; gap: 3px; padding: 14px 16px; border-radius: 16px; text-decoration: none; }
.game-live a { border: var(--line); background: var(--card); box-shadow: 0 4px 0 var(--ink); }
.game-soon { border: 2.5px dashed var(--ink-3); color: var(--ink-2); }
.game-name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.game-line { font-size: 15px; font-weight: 500; color: var(--ink-2); }

.home-foot {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 14px;
  border-top: 2px dashed var(--ink-3); font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.home-foot a { text-underline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .game-live a:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
  .game-live a { transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out); }
}

/* ------------------------------------------------------------------ laptop: copy left, the studio right */
@media (min-width: 900px) {
  .home { padding: 22px 40px 28px; }
  .home-mark { font-size: 19px; }
  .today {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
    margin-top: 24px; min-height: min(640px, calc(100dvh - 140px));
  }
  .today-host .host { width: 96px; }
  .today-bubble { font-size: 17px; max-width: 30ch; }
  .today-title { margin-top: 28px; font-size: clamp(64px, 6.4vw, 92px); }
  .today-pitch { font-size: 21px; margin-top: 14px; }
  .btn-play { display: inline-block; width: auto; min-width: 320px; margin-top: 28px; font-size: 24px; padding: 19px 36px 20px; }
  .today-meta { font-size: 15.5px; }
  .today-crowd { height: auto; padding: 22px 26px 18px; border-radius: 28px; box-shadow: 0 7px 0 var(--ink); }
  .today-crowd .audience { width: min(100%, 480px); margin: 0 auto; }

  .how, .shelf { margin-top: 56px; }
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .shelf-list { grid-template-columns: repeat(3, 1fr); }
}
