/* hoss.link — shared design tokens.
 *
 * Near-monochrome on purpose. The games are the colour; the site is the frame
 * around them. That means no accent hue, no gradients, and no coloured glow:
 * emphasis is carried by weight, contrast and a hairline, which is harder to
 * get right and much harder to mistake for a template.
 *
 * The glass is real glass rather than the preset: low opacity, a crisp lit top
 * edge, a tight shadow, and a grain layer over the whole page so the flat
 * digital surfaces have some tooth. */

:root {
  --void: #08090b;

  --ink-1: #f2f3f5;
  --ink-2: rgba(240, 242, 246, 0.62);
  --ink-3: rgba(240, 242, 246, 0.36);

  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.062);
  --edge: rgba(255, 255, 255, 0.085);
  --edge-2: rgba(255, 255, 255, 0.17);

  /* Destructive only. The one place a hue earns its keep. */
  --danger: #d9584f;

  --blur: blur(20px) saturate(140%);
  --lift: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 10px 26px rgba(0, 0, 0, 0.42);

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

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

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

body {
  margin: 0;
  background: var(--void);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* One cool light from above. Neutral, so it reads as a lit room rather than as
   a colour wash. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(75rem 46rem at 50% -22%, rgba(226, 234, 255, 0.062), transparent 68%),
    radial-gradient(40rem 34rem at 100% 100%, rgba(226, 234, 255, 0.028), transparent 66%);
}

/* Grain. Two percent of noise is the difference between a screen and a
   surface, and it is the cheapest way to stop large flat fields banding. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink-1);
}

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

/* Tailwind used to supply this. The clicker's JS toggles the class on
   #statsPanel and #goldenPizza, so it has to keep existing. */
.hidden { display: none !important; }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.glass {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: var(--lift);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--edge);
}

/* Solid white on near-black. No gradient, no glow: the contrast is the
   emphasis. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  background: var(--ink-1);
  color: #0a0b0d;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1;
  transition: background 0.18s var(--ease), transform 0.1s var(--ease);
}
.btn:hover { background: #ffffff; }
.btn:active { transform: scale(0.98); }

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--edge-2);
  color: var(--ink-1);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.1s var(--ease);
}
.btn-glass:hover { background: var(--glass); border-color: rgba(255, 255, 255, 0.28); }
.btn-glass:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
