:root {
  --pine: #1b2b22;
  --pine-2: #243a2d;
  --bone: #f1f3ec;
  --paper: #ffffff;
  --ink: #14201a;
  --moss: #4c6b52;
  --mute: #6f7f73;
  --line: #d3d9cf;
  --target: #c1332a;
  --gold: #b8892d;
  --serif: "Noto Serif Armenian", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans Armenian", "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bone);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- header ---------- */
.masthead {
  background: var(--pine);
  color: var(--bone);
  padding: 28px 20px 24px;
}
.masthead .wrap { max-width: 1180px; margin: 0 auto; display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.masthead h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.15;
  margin: 0;
  max-width: 30ch;
}
.masthead .sub { margin: 8px 0 0; color: #b9c7bd; font-size: 15px; }
.live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: #b9c7bd;
}
.live .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--target); box-shadow: 0 0 0 0 rgba(193,51,42,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(193,51,42,.55);} 70% { box-shadow: 0 0 0 9px rgba(193,51,42,0);} 100% { box-shadow: 0 0 0 0 rgba(193,51,42,0);} }
@media (prefers-reduced-motion: reduce) { .live .dot { animation: none; } }

/* ---------- leaders ---------- */
.leaders {
  background: var(--pine-2);
  color: var(--bone);
  border-top: 1px solid rgba(255,255,255,.08);
}
.leaders .wrap {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.leader { padding: 18px 0; display: flex; gap: 14px; align-items: center; min-width: 0; }
.leader + .leader { border-left: 1px solid rgba(255,255,255,.1); padding-left: 20px; }
.leader .ring { flex: none; width: 56px; height: 56px; }
.leader .who { min-width: 0; }
.leader .label { font-size: 13px; color: #a8b8ad; }
.leader .name { font-family: var(--serif); font-size: 19px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader .pts { font-size: 13px; color: #a8b8ad; }
.leader .pts b { color: var(--bone); font-size: 16px; }
@media (max-width: 760px) {
  .leaders .wrap { grid-template-columns: 1fr; }
  .leader + .leader { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .leader { padding: 12px 0; }
}

/* ---------- boards ---------- */
.boards {
  max-width: 1180px; margin: 0 auto; padding: 24px 20px 48px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px;
}
@media (max-width: 960px) { .boards { grid-template-columns: 1fr; } }
.board { background: var(--paper); border: 1px solid var(--line); }
.board h2 {
  font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 0;
  padding: 14px 16px; border-bottom: 2px solid var(--pine);
  display: flex; justify-content: space-between; align-items: baseline;
}
.board h2 small { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--mute); }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 500; font-size: 12px; color: var(--mute); }
tr:last-child td { border-bottom: 0; }
td.rank { width: 2.4em; color: var(--mute); text-align: right; padding-right: 4px; }
td.score { text-align: right; font-weight: 600; font-size: 17px; width: 4em; }
td.team { color: var(--mute); font-size: 13px; }
tr.top td.rank { color: var(--target); font-weight: 700; }
tr.top td.score { color: var(--target); }
tr.pending td { color: var(--mute); }
.prog { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--mute); }

/* teams board: expandable rows */
.team-row { cursor: pointer; }
.team-row .nm { font-family: var(--serif); font-size: 16px; }
.team-row td.score .mx { font-size: 12px; font-weight: 400; color: var(--mute); display: block; }
.team-detail td { background: var(--bone); padding: 6px 12px 10px 44px; }
.team-detail table { font-size: 14px; }
.team-detail td, .team-detail th { padding: 4px 8px; border: 0; }
.team-detail .shots span { display: inline-block; min-width: 1.8em; text-align: center; }
.team-detail .shots span.drop { color: var(--mute); text-decoration: line-through; }
.team-detail .shots span.none { color: var(--line); }
.team-detail .sc { font-weight: 600; text-align: right; }
.empty { padding: 28px 16px; color: var(--mute); text-align: center; }
.footer { text-align: center; color: var(--mute); font-size: 13px; padding: 0 20px 40px; }
