/* Shared design tokens and base resets for every thirsty-party page.
   Page-specific layout lives in each page's own <style> block, this file
   only holds what truly needs to be identical everywhere: the palette,
   fonts, resets, and a handful of reusable pieces (buttons, chips, the
   crown icon, focus states) so TV and phone pages stay visually one
   family without duplicating the same rules five times. */

:root {
  --cream: #f4efdf;
  --ink: #141311;
  --lime: #c8e64a;
  --blue: #2b49c8;
  --red: #e0472e;

  --ink-soft: #2a2823;
  --cream-dim: #e7e0c9;
  --line: rgba(20, 19, 17, 0.14);

  --font-display: "Archivo Black", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
}

a {
  color: inherit;
}

/* ---- reusable button ---------------------------------------------------- */

.tp-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  cursor: pointer;
  background: var(--ink);
  color: var(--cream);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.tp-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.tp-btn:not(:disabled):hover {
  transform: translateY(-2px);
}

.tp-btn:not(:disabled):active {
  transform: translateY(0);
}

.tp-btn:focus-visible {
  outline: 5px solid var(--lime);
  outline-offset: 4px;
}

.tp-btn--lime {
  background: var(--lime);
  color: var(--ink);
}

.tp-btn--blue {
  background: var(--blue);
  color: var(--cream);
}

.tp-btn--red {
  background: var(--red);
  color: var(--cream);
}

.tp-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

/* ---- chips / pills ------------------------------------------------------- */

.tp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border-radius: 999px;
  padding: 0.35em 0.9em;
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--ink);
  color: var(--cream);
}

.tp-chip--dim {
  background: var(--cream-dim);
  color: var(--ink);
}

/* ---- crown icon, used on both winner screens ----------------------------- */

.tp-crown {
  display: inline-block;
  filter: drop-shadow(0 6px 14px rgba(20, 19, 17, 0.25));
}

/* ---- misc ---------------------------------------------------------------- */

.tp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tp-mono {
  font-family: var(--font-mono);
}
