/* Pawball 5.0 - tokens & base (light park theme) */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Variable.woff") format("woff");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #BFD9EA;
  --ink: #1B2D20;
  --ink-dim: rgba(27, 45, 32, .8);
  --ink-faint: rgba(27, 45, 32, .55);

  --green-deep: #2E5638;
  --green-mid: #37663F;
  --green-btn: #2F5D3A;

  --gold: #B8860B;
  --gold-bright: #D9A93C;
  --gold-deep: #96712A;
  --gold-tint: rgba(197, 152, 58, .22);
  --line-gold: #C0995A;
  --rose: #D97F8E;
  --line-gold-soft: rgba(150, 118, 54, .55);

  --cream: #FDF8EB;
  --cream-2: #F6EFDB;
  --line-soft: rgba(58, 84, 54, .28);

  --ok: #3E8E4F;
  --warn: #C9922E;
  --bad: #C0614E;
  --red: #C64B3C;

  /* warm cream panels over the bright park wallpaper - controlled
     transparency lets the background show through while text stays readable */
  --panel-light: rgba(253, 248, 235, .86);
  --panel-lighter: rgba(253, 248, 235, .86);
  --panel-dash: rgba(253, 248, 235, .78);       /* left/right dashboard cards: Club Status, Today, Snapshot, Next Match, Tactics */
  --panel-contact: rgba(253, 248, 235, .78);    /* contact strip cards */
  --panel-blur: 6px;

  --r-panel: 16px;
  --r-card: 11px;
  --r-pill: 999px;
  --shadow-panel: 0 6px 22px rgba(40, 60, 35, .22);
  --shadow-card: 0 2px 9px rgba(40, 60, 35, .18);

  --serif: "Fraunces", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none; /* rubber-band/keyboard nudges never move the page */
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(13px, 0.9vw, 14px);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
/* iPhone Brave: a static body can still be shoved by the on-screen keyboard;
   fixing it removes the last way the whole page can shift. */
body { position: fixed; inset: 0; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
img { display: block; }
.ui-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  overflow: visible;
  color: currentColor;
  vertical-align: -.14em;
}
p { margin: 0; }
input, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(58, 84, 54, .4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(62, 88, 58, .5); }

/* curated reduced-motion tier: movement is removed, feedback is not. The
   bubble effects and typing dots define their own reduced equivalents later
   in the cascade; opacity-only fades below stay readable. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  #day-dim, #day-banner, .toast, .compose-hint, .status-time, .convo-thread {
    transition-duration: .3s !important;
  }
}

/* ---------- v5.1.31 typography and detail pass ---------- */

/* every number lines up: scores, times, attendance, reputation and league
   columns all use fixed-width figures so values never wobble as they change */
.status-v, .snap-val, .match-fact .v, .bubble .meta, .msg-item .when,
.table-row, .pressure .lbl, .t-fx, .day-change .chg, .log-row .d {
  font-variant-numeric: tabular-nums;
}

/* text selection wears the club gold */
::selection { background: rgba(217, 169, 60, .35); color: var(--ink); }
