/*
 * The home page, from demo/home.html.
 *
 * Copied from the design demo in public/demo/, unchanged. The demo is the
 * drawing; this is the same drawing served to players, and the only way to
 * keep those two the same over time is for one to be a copy of the other
 * rather than a reading of it.
 *
 * Edit the demo first, then copy it here.
 */

/* ----------------------------------------------------------------- hero -- */
.hero { padding: 40px 0 8px; }

.hero__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero__sub {
  margin-top: 14px;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__note {
  margin-top: 14px;
  font-size: .8125rem;
  color: var(--ink-mute);
}

/* The panel: today's five, with their state. */
.today {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.today__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.today__title { font-size: 1rem; font-weight: 700; }
.today__count { font-size: .8125rem; color: var(--ink-mute); font-weight: 600; }

.ring {
  --p: 20;
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--bg-tint) 0);
  font-size: .75rem;
  font-weight: 800;
}
.ring span {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
}

.today__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.today__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s ease;
}
.today__item:hover { background: var(--bg-tint); }
.today__name { font-weight: 600; flex: 1; min-width: 0; }
.today__state { font-size: .75rem; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.today__item[data-done="1"] .today__state { color: var(--accent); }
.today__item[data-done="1"] .today__name { color: var(--ink-mute); }

.tick {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: .75rem;
  color: var(--surface);
}
.today__item[data-done="1"] .tick { background: var(--accent); border-color: var(--accent); }

/* The week, as seven marks. */
.week { display: flex; gap: 6px; margin-top: 22px; }
.week div {
  flex: 1;
  text-align: center;
  padding: 8px 0 7px;
  border-radius: 10px;
  background: var(--bg-tint);
  font-size: .75rem;
  font-weight: 700;
  color: var(--ink-mute);
}
.week div[data-state="done"] { background: var(--accent); color: var(--accent-ink); }
.week div[data-state="today"] { background: var(--surface); border: 2px solid var(--accent); color: var(--ink); }

/* ---------------------------------------------------------------- games -- */
.section__link { font-weight: 600; font-size: .9375rem; color: var(--accent); text-decoration: none; white-space: nowrap; }

.games { display: grid; gap: 14px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }

.game {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .14s ease, border-color .14s ease;
}
.game:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.game__icon {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.game__icon svg { width: 26px; height: 26px; }

.game > span:last-child { display: block; min-width: 0; }
.game__name { display: block; font-size: 1.0625rem; font-weight: 700; }
.game__what { display: block; color: var(--ink-soft); font-size: .9375rem; margin-top: 3px; }
.game__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; }

.chip {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--ink-mute);
}
.chip--live { background: var(--accent-soft); color: var(--accent); }

/* ------------------------------------------------------------ the strip -- */
.strip {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  text-align: center;
  box-shadow: var(--shadow);
}
.strip b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.strip span { font-size: .8125rem; color: var(--ink-mute); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }

/* ----------------------------------------------------------------- how -- */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.step__n {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .875rem;
  margin-bottom: 10px;
}
.step h3 { font-size: 1rem; }
.step p { color: var(--ink-soft); font-size: .9375rem; margin-top: 4px; }

/* ------------------------------------------------------------ desktop --- */
@media (min-width: 620px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .strip { grid-template-columns: repeat(3, 1fr); text-align: left; }
}

@media (min-width: 820px) {
  .wrap { padding-inline: 28px; }
  .hero { padding: 64px 0 8px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .section { padding: 72px 0 0; }
  .games { grid-template-columns: repeat(3, 1fr); }
  .game { flex-direction: column; gap: 14px; padding: 20px; }
  .game__icon { width: 52px; height: 52px; }
}
