/* One-Card Schmuck — the visual language of ivantohelpyou.com, copied in.
 *
 * Tokens lifted from the speaker site (teal / yellow / red on white, League
 * Spartan headings, Libre Franklin body) so the take-home game reads as
 * Ivan's from the first screen. Copied, not linked: nothing on a table page
 * may depend on another origin, and the fonts fall back to the system stack
 * rather than being fetched — a dealer page that waits on a font server is a
 * dealer page that waits.
 *
 * The card faces are untouched. This styles the pages around the game only. */
:root {
  --teal: #3B9B9B; --teal-dark: #2D7A7A;
  --yellow: #FBBF24; --yellow-dark: #D4A017;
  --red: #C0432F; --red-dark: #93291a;
  --ink: #1f2630; --muted: #5a6675; --line: #e2e8f0;
  --bg: #ffffff; --bg-soft: #f7fafc;
  --head: 'League Spartan', 'Avenir Next', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0; }
.wrap { width: 100%; max-width: 30rem; margin: 0 auto; padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); }
.mark { font-family: var(--head); font-weight: 800; font-size: 1.1rem; letter-spacing: -.5px; color: var(--ink); text-decoration: none; }
.mark .hl, .hl { color: var(--red); }
.headline { font-size: clamp(2.4rem, 12vw, 3.6rem); font-weight: 700; letter-spacing: -1.5px; margin: 1rem 0 .4rem; }
.pitch { font-family: var(--head); font-weight: 700; color: var(--teal-dark); font-size: 1.25rem; letter-spacing: -.2px; margin: 0 0 1.2rem; line-height: 1.2; }
.lead { color: var(--muted); margin: 0 0 1rem; }
.bar {
  font-family: var(--head); font-weight: 600; font-size: 1.25rem; letter-spacing: -.3px;
  display: inline-block; padding: .3rem .8rem; border-radius: 8px; margin: 1.2rem 0 .8rem;
}
.bar.teal { background: var(--teal); color: #fff; }
.bar.yellow { background: var(--yellow); color: var(--ink); }
.bar.red { background: var(--red); color: #fff; }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rules li {
  position: relative; padding: .45rem 0 .45rem 2.4rem; border-bottom: 1px solid var(--line);
  counter-increment: rule;
}
.rules li:last-child { border-bottom: 0; }
.rules li::before {
  content: counter(rule); position: absolute; left: 0; top: .5rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--teal); color: #fff;
  font-family: var(--head); font-weight: 700; font-size: 1rem; line-height: 1.7rem; text-align: center;
}
.rules li.out { font-weight: 600; }
.rules li.out::before { background: var(--red); }
/* The site's button: yellow slab, teal ink, a hard shadow. Sized for a thumb. */
.btn {
  display: block; width: 100%; text-align: center; font-family: var(--body); font-weight: 700;
  text-decoration: none; border: 0; border-radius: 12px; padding: 1.05rem 1.5rem; font-size: 1.15rem;
  background: var(--yellow); color: var(--teal-dark); box-shadow: 0 3px 0 var(--yellow-dark);
  transition: transform .12s, box-shadow .12s; cursor: pointer;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-dark); }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-dark); }
.btn.red:active { box-shadow: 0 1px 0 var(--red-dark); }
.btn.teal { background: var(--teal); color: #fff; box-shadow: 0 3px 0 var(--teal-dark); }
.btn.teal:active { box-shadow: 0 1px 0 var(--teal-dark); }
.btn.ghost { background: transparent; color: var(--teal-dark); box-shadow: none; border: 2px solid var(--teal); }
.btn[disabled] { opacity: .45; transform: none; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 30px; padding: .35rem .9rem; font-size: .9rem; background: var(--bg-soft); }
.pill b { color: var(--teal-dark); }
.made { border-top: 2px solid var(--line); margin-top: 1.6rem; padding-top: 1rem; color: var(--muted); font-size: .9rem; text-align: center; }
.made a { font-weight: 600; }
.card-box { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; background: var(--bg); }
.small { color: var(--muted); font-size: .9rem; }

/* Next game, on the same table (purr-c7c.3). */
#next-game { margin-top: 18px; }
#next-game summary { cursor: pointer; color: var(--teal-dark); font-weight: 600; }
.switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.switch label { font-size: 14px; }
.switch select { flex: 1; min-width: 10rem; padding: 8px 10px; font: inherit; border-radius: 10px; border: 1px solid #cfd3da; }

/* The code field's chips (purr-6js): vocabulary-aware completion under the
 * join form on the apex and the gone page. Additive — the form works
 * without them, and without join.js at all. */
.join-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: .6rem 0 0; }
/* An author display beats the UA's [hidden] rule from any origin, so the
 * hidden attribute needs its own counter-rule or hidden-when-empty never
 * actually hides (and the .6rem margin gapped every page load). */
.join-chips[hidden] { display: none; }
.join-chips .chip {
  font: inherit; font-size: .95rem; padding: .4rem .85rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 30px; background: var(--bg-soft); color: var(--teal-dark);
}
.join-chips .chip-miss { color: var(--muted); font-size: .9rem; padding: .4rem 0; }
