/* Birdie design tokens - canonical from screens-web.jsx / tokens.js */
:root {
  /* surfaces */
  --bone: #F4F0E6;
  --paper: #FBF8F1;
  --ink: #13110E;
  --ink2: #3A3732;
  --ink3: #7A756C;
  --rule: rgba(19, 17, 14, 0.08);
  --rule2: rgba(19, 17, 14, 0.16);

  /* accent (moss green to match iOS) */
  --signal: #4C7A2F;
  --signal-soft: #D9E3C9;
  --signal-ink: #23421A;

  /* score semantics */
  --eagle: #0C6B52;
  --birdie: #1F8A6B;
  --par: #13110E;
  --bogey: #B97A1E;
  --dbl: #A83221;

  /* radii */
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-xl: 32px;

  /* type */
  --display: 'Inter Tight', 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* shadows */
  --shadow-sheet: 0 -6px 30px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

input {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

a {
  color: inherit;
  text-decoration: none;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-shell {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bone);
  position: relative;
  overflow-x: hidden;
}

/* Mono utility */
.mono {
  font-family: var(--mono);
}

/* Tabular nums utility */
.tnum {
  font-variant-numeric: tabular-nums;
}
