/* Ludu's "Painted Board" look for the web pages: warm paper, ink outlines on
   hard, unblurred offset shadows, the four seat colours. Values match
   lib/ux/resources/colors.dart. */
:root {
  --paper: #F7EEDC;
  --card: #FFFBF3;
  --inset: #EFE2C8;
  --ink: #1F1A2E;
  --ink-soft: #4A4458;
  --ink-muted: #6E6680;
  --on-ink: #FFFBF3;
  --red: #E63B2E;
  --green: #1FA45B;
  --yellow: #FFC531;
  --blue: #2D6CDF;
  --yellow-tint: #FFEDB8;
  --ring: #EADCC2;
  --dot: #F2C9B8;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--paper);
  /* The wax-print ground: rings and dots, as on the app's splash. */
  background-image:
    radial-gradient(circle at 50% 50%, transparent 9px, var(--ring) 9px, var(--ring) 11px, transparent 11px,
      transparent 15px, var(--ring) 15px, var(--ring) 17px, transparent 17px),
    radial-gradient(circle at 50% 50%, var(--dot) 3px, transparent 3.5px);
  background-size: 48px 48px, 48px 48px;
  background-position: 0 0, 24px 24px;
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 440px;
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.wordmark {
  margin: 12px 0 0;
  font-family: 'Bricolage Grotesque', 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  letter-spacing: 2px;
}

.wordmark span {
  display: inline-block;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 5px 0 var(--ink);
}

.wordmark .l { color: var(--red); transform: rotate(-4deg); }
.wordmark .u { color: var(--green); transform: translateY(3px); }
.wordmark .d { color: var(--yellow); transform: rotate(2deg); }
.wordmark .u2 { color: var(--blue); transform: rotate(4deg) translateY(2px); }

.card {
  width: 100%;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 7px 0 var(--ink);
  padding: 28px 22px 24px;
  text-align: center;
}

.pieces {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.pieces i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink), inset 0 0 0 5px currentColor, inset 0 0 0 8px var(--card);
  background: currentColor;
}

.pieces i:nth-child(even) { transform: translateY(5px); }
.pieces .red { color: var(--red); }
.pieces .green { color: var(--green); }
.pieces .yellow { color: var(--yellow); }
.pieces .blue { color: var(--blue); }

.lead, .title {
  margin: 0 0 20px;
  font-family: 'Bricolage Grotesque', 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
}

.title { margin-bottom: 12px; }

.eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.code {
  display: inline-block;
  margin: 0 0 24px;
  padding: 10px 18px 10px 26px;
  background: var(--yellow-tint);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
  font-family: 'Bricolage Grotesque', 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 8px;
  line-height: 1.1;
}

.button {
  display: block;
  margin: 0 0 22px;
  padding: 16px 20px;
  background: var(--ink);
  color: var(--on-ink);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--red);
  font-family: 'Bricolage Grotesque', 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  transition: transform 80ms ease, box-shadow 80ms ease;
}

.button:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--red);
}

.note {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* A friend's code is eight long: a size smaller, so it fits a phone. */
.code.long { font-size: 32px; letter-spacing: 5px; padding-left: 23px; }

@media (max-width: 360px) {
  .wordmark { font-size: 60px; }
  .code { font-size: 32px; letter-spacing: 6px; }
  .code.long { font-size: 26px; letter-spacing: 4px; }
}
