@font-face {
  font-family: "Special Elite";
  src: url("/assets/fonts/SpecialElite-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f0e5;
  --paper-bright: #fffdf7;
  --ink: #282b27;
  --muted: #656359;
  --wax: #a33327;
  --brass: #a47d34;
  --line: #d6cebd;
  --display: "Special Elite", "Courier New", monospace;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --carnival-nav-height: 80px;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--wax); outline-offset: 5px; }
h1, h2, h3, p { margin-top: 0; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; min-width: 64px; padding: 16px 28px;
  border: 1px solid var(--wax); border-radius: 6px;
  background: var(--wax); color: white; font-size: 18px; font-weight: 650;
  text-decoration: none;
}
.button:active { transform: translateY(1px); }
.button-secondary { color: var(--ink); background: var(--paper-bright); border-color: var(--line); }
.button-small { padding: 12px 20px; font-size: 16px; }

/* Optional game layout helpers; the iframe itself is already below navigation. */
.carnival-game { height: 100vh; height: 100dvh; min-height: 0; overflow: auto; }
.carnival-standalone body { padding-top: var(--carnival-nav-height); }
.carnival-standalone carnival-nav[data-standalone] { position: fixed; inset: 0 0 auto; z-index: 1000; }
.carnival-standalone .carnival-game { height: calc(100vh - var(--carnival-nav-height)); height: calc(100dvh - var(--carnival-nav-height)); }

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