/* Dealt Party on the web. The app's own look, drawn in CSS: the whole logo
   palette on one surface, die-cut stickers (a hard ink outline and a hard
   offset shadow), Space Grotesk set tight and large over Inter, sentence case
   throughout. Colours come from brand/tokens.json and nowhere else. */

:root {
  --yellow: #ffd500;
  --violet: #3b2fb5;
  --red: #e8402a;
  --white: #ffffff;
  --cream: #fff7e6;
  --black: #101010;

  --violet-tint: #c9c2f0;
  --cream-shade: #7a6a3a;
  --yellow-shade: #8a7300;

  --ink: var(--black);
  --paper: var(--white);

  --display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1080px;
  --prose: 46rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link, for a keyboard landing on the page. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 600;
  z-index: 50;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---- Type ---- */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
}
h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
}
h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.5;
}

.muted {
  opacity: 0.72;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---- Layout ---- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: var(--prose);
}

section {
  padding-block: clamp(56px, 9vw, 104px);
}

.band-cream {
  background: var(--cream);
}
.band-violet {
  background: var(--violet);
  color: var(--white);
}
.band-yellow {
  background: var(--yellow);
}
.band-white {
  background: var(--white);
}
.band-black {
  background: var(--black);
  color: var(--white);
}

.band-violet .muted {
  color: var(--violet-tint);
  opacity: 1;
}
.band-cream .muted {
  color: var(--cream-shade);
  opacity: 1;
}

/* On yellow the cream shade only reaches 3.7:1, so muted text there is the
   app's own 72% ink (6.5:1), as in the yellow colourway. */
.band-yellow .muted,
.contact-card .muted,
.hero .lead.muted {
  opacity: 1;
}
.band-yellow .muted,
.contact-card .muted {
  color: rgba(16, 16, 16, 0.72);
}

.hero .muted {
  color: var(--violet-tint);
  opacity: 1;
}

/* Ben-Day dots, on grounds only and never behind body text. */
.dots {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.dots::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 33%;
  background-image: radial-gradient(currentColor 1.6px, transparent 1.7px);
  background-size: 10px 10px;
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}

/* ---- Stickers: a hard ink outline and a hard offset shadow ---- */

.sticker {
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--yellow);
  color: var(--ink);
  transition:
    transform 280ms var(--ease),
    box-shadow 280ms var(--ease);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-quiet {
  background: var(--paper);
}

.band-black .btn,
.band-violet .btn {
  border-color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---- Header ---- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 2.5px solid var(--ink);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}
.brand img {
  width: 116px;
}
.brand span {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 26px);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 2.5px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  border-bottom-color: var(--ink);
}

/* A narrow phone has no room for the lockup, the word and three links at full
   size, so the mark shrinks first and the word goes last. */
@media (max-width: 640px) {
  .site-head .wrap {
    padding-block: 10px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 88px;
  }
  .brand span {
    font-size: 0.95rem;
  }
  .site-nav {
    gap: 14px;
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 78px;
  }
  .brand span {
    display: none;
  }
  .site-nav {
    gap: 12px;
  }
}

/* ---- Hero ---- */

.hero {
  background: var(--violet);
  color: var(--white);
  border-bottom: 2.5px solid var(--ink);
}

.hero .wrap {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
  padding-block: clamp(48px, 8vw, 88px);
}

@media (min-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 {
  margin-bottom: 18px;
}

.hero-shot {
  justify-self: center;
  max-width: 300px;
  border: 2.5px solid var(--ink);
  border-radius: 28px;
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
  transform: rotate(-2deg);
}

/* ---- Numbers ---- */

.counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.counts li {
  padding: 22px;
  text-align: center;
}
.counts strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.counts span {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---- Game grid ---- */

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.games li {
  padding: 18px 20px;
  background: var(--paper);
}

.games li:nth-child(5n + 1) {
  background: var(--yellow);
}
.games li:nth-child(5n + 2) {
  background: var(--paper);
}
.games li:nth-child(5n + 3) {
  background: var(--red);
  color: var(--black);
}
.games li:nth-child(5n + 4) {
  background: var(--cream);
}
.games li:nth-child(5n + 5) {
  background: var(--violet);
  color: var(--white);
}

.games h3 {
  margin-bottom: 4px;
}
.games p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ---- Feature rows ---- */

.row {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .row {
    grid-template-columns: 1fr 1fr;
  }
  .row.flip > *:first-child {
    order: 2;
  }
}

.row img {
  justify-self: center;
  max-width: 280px;
  border: 2.5px solid var(--ink);
  border-radius: 26px;
  box-shadow: 9px 9px 0 var(--ink);
}

/* ---- Price table ---- */

.prices {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}

.prices caption {
  text-align: left;
  padding-bottom: 12px;
  font-weight: 600;
  color: var(--cream-shade);
}

.prices th,
.prices td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1.5px solid rgba(16, 16, 16, 0.14);
  font-size: 0.97rem;
}

.prices thead th {
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--display);
  letter-spacing: -0.01em;
}

.prices tbody tr:last-child th,
.prices tbody tr:last-child td {
  border-bottom: 0;
}

.prices td:last-child,
.prices th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- Prose pages (privacy, support, terms) ---- */

.page-head {
  background: var(--yellow);
  border-bottom: 2.5px solid var(--ink);
  padding-block: clamp(40px, 7vw, 72px);
}

.page-head p {
  margin: 14px 0 0;
  font-weight: 600;
}

.doc h2 {
  margin-top: 2.2em;
  margin-bottom: 0.5em;
  scroll-margin-top: 90px;
}

.doc h3 {
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}

.doc > h2:first-of-type {
  margin-top: 1.2em;
}

.doc ul,
.doc ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.5em;
}

.doc a {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* The short version, up top. */
.summary {
  background: var(--paper);
  padding: 24px 26px;
  margin: 28px 0 8px;
}

.summary h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.summary ul {
  margin: 0;
  padding-left: 1.2em;
}

.summary li {
  margin-bottom: 0.45em;
}

/* Contents list on a long page. */
.toc {
  margin: 28px 0 0;
  padding: 20px 24px;
  background: var(--cream);
}
.toc h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-family: var(--ui);
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.7;
}
.toc ol {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 28px;
}
@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}

/* Question and answer blocks on support. */
.faq {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.faq details {
  background: var(--paper);
  padding: 4px 22px;
}

.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-block: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after {
  content: '\2013';
}

.faq details > *:not(summary) {
  margin-bottom: 18px;
}

.contact-card {
  background: var(--yellow);
  padding: 26px;
  margin-top: 32px;
}

.contact-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.contact-card a {
  font-weight: 700;
}

/* ---- Footer ---- */

.site-foot {
  background: var(--black);
  color: var(--white);
  border-top: 2.5px solid var(--ink);
  padding-block: 52px;
}

.site-foot .wrap {
  display: grid;
  gap: 32px;
}

@media (min-width: 720px) {
  .site-foot .wrap {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.site-foot h2 {
  font-size: 0.95rem;
  font-family: var(--ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.site-foot a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-foot a:hover {
  border-bottom-color: var(--yellow);
}

.site-foot img {
  width: 132px;
  margin-bottom: 14px;
}

.site-foot .small {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.66);
  margin: 0;
}

/* The pack list. Forty-two of them, so names and counts rather than a table. */
.packs-head {
  margin-top: 38px;
  margin-bottom: 14px;
}

.packlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.packlist li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.packlist .n {
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  color: var(--cream-shade);
  flex: none;
}
