/* ============================================================================
   Cabarita Beach Bowls & Sports Club — Honour Boards
   Shared design system: varnished-timber gallery + gold-leaf lettering.
   Used by the hub (index.html) and every board page (via board.js).
   ========================================================================== */

:root {
  /* Varnished timber */
  --wood-0: #150c05;
  --wood-1: #24160a;
  --wood-2: #34210f;
  --wood-3: #4a3018;
  --wood-edge: #0d0703;

  /* Gold leaf / brass */
  --gold-0: #faf0cf;
  --gold-1: #eccd82;
  --gold-2: #cfa74f;
  --gold-3: #9d7529;
  --gold-line: rgba(236, 205, 130, 0.26);

  /* Engraved text on timber */
  --ink: #f1e7d2;
  --muted: #b09b78;
  --faint: rgba(176, 155, 120, 0.42);

  --star: #c1452f;               /* the painted banner star */
  --accent: var(--gold-1);       /* per-board override */

  --f-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --f-label: 'Marcellus', 'Optima', Georgia, serif;
  --f-body: 'Spectral', Georgia, 'Times New Roman', serif;

  --frame-max: 1500px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--f-body);
  color: var(--ink);
  background-color: var(--wood-2);
  background-image:
    /* fine vertical grain — lifted so the timber texture actually reads */
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.20) 0 1px, rgba(255,236,200,0.055) 1px 2px,
      rgba(0,0,0,0) 2px 6px),
    /* broad plank shading at the sides (eased so the wood shows near the edges) */
    linear-gradient(90deg,
      rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 15%,
      rgba(0,0,0,0) 85%, rgba(0,0,0,0.30) 100%),
    /* warm overhead light falling down the board — brighter, warmer timber */
    radial-gradient(130% 100% at 50% -12%,
      #6d4a27 0%, #513719 30%, #3a250f 60%, var(--wood-0) 100%);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.idle { cursor: none; }

/* fibrous wood-grain noise overlay (inline SVG turbulence, no external asset) */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.012' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: overlay;
}
/* soft framing vignette (eased so the brighter timber isn't swallowed at the edges) */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  box-shadow: inset 0 0 200px rgba(0,0,0,0.42);
}

/* ---- gold-leaf lettering ------------------------------------------------- */
.gold {
  background: linear-gradient(180deg,
    var(--gold-0) 0%, var(--gold-1) 40%, var(--gold-2) 64%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.55));
}

/* ---- brass ornamental rule ---------------------------------------------- */
.rule {
  height: 2px; border: 0;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: 0.6;
}

/* =========================================================================
   HUB (index.html)
   ========================================================================= */
.hub {
  position: relative; z-index: 1;
  height: 100vh; display: flex; flex-direction: column;
  padding: clamp(1.1rem, 3.2vh, 2.6rem) clamp(1rem, 3.5vw, 3rem);
  max-width: var(--frame-max); margin: 0 auto;
}

.hub-head { text-align: center; flex: 0 0 auto; }
.hub-crestline {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0.6rem, 1.6vw, 1.2rem);
}
.hub-crestline .sport-logo { display: block; height: clamp(140px, 22vh, 264px); }
/* black-on-white source mark rendered as light gold on timber */
.hub-crestline .sport-logo img {
  height: 100%; width: auto; display: block;
  filter: invert(1) sepia(1) saturate(0.55) brightness(1.08) hue-rotate(3deg);
  opacity: 0.94;
}
.hub h1 {
  font-family: var(--f-display); font-weight: 700;
  letter-spacing: 0.06em; line-height: 1.04;
  font-size: clamp(1.5rem, 4.4vw, 3.4rem);
  margin-top: clamp(0.5rem, 1.4vh, 1rem);
}
.hub .kicker {
  font-family: var(--f-label); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.42em;
  font-size: clamp(0.6rem, 1.15vw, 0.9rem);
  margin: clamp(0.7rem, 1.6vh, 1.1rem) 0 clamp(0.3rem, 0.9vh, 0.6rem);
}
.hub .estd {
  font-family: var(--f-label); color: var(--gold-2);
  letter-spacing: 0.3em; text-transform: uppercase;
  font-size: clamp(0.56rem, 0.95vw, 0.8rem);
}
.hub-head .rule { max-width: 340px; margin: clamp(0.7rem,1.6vh,1.1rem) auto 0; }

/* the grid of board plaques */
.tiles {
  flex: 1 1 auto; min-height: 0;
  display: grid; gap: clamp(0.8rem, 1.8vw, 1.5rem);
  grid-template-columns: repeat(6, 1fr);
  align-content: center;
  padding: clamp(1rem, 3vh, 2.2rem) 0 clamp(0.6rem, 1.6vh, 1.2rem);
}
/* First three tiles fill the top row (3-up); the rest pair up (2-up per row) */
.tiles > .tile:nth-child(-n+3) { grid-column: span 2; }
.tiles > .tile:nth-child(n+4)  { grid-column: span 3; }

.tile {
  --a: var(--accent);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(0.4rem, 1vh, 0.8rem);
  text-align: center; text-decoration: none; color: inherit;
  padding: clamp(1.1rem, 3vh, 2.4rem) clamp(0.8rem, 2vw, 1.6rem);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(74,48,24,0.5), rgba(21,12,5,0.62));
  border: 1px solid var(--gold-line);
  box-shadow:
    inset 0 1px 0 rgba(255,240,200,0.10),
    inset 0 0 34px rgba(0,0,0,0.5),
    0 12px 30px rgba(0,0,0,0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
/* brass bevel frame */
.tile::before {
  content: ""; position: absolute; inset: 6px; border-radius: 9px;
  border: 1px solid rgba(236,205,130,0.18);
  pointer-events: none;
}
/* accent hairline glow at the top edge */
.tile::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--a), transparent);
  opacity: 0.7; pointer-events: none;
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(236,205,130,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,240,200,0.14),
    inset 0 0 34px rgba(0,0,0,0.45),
    0 18px 44px rgba(0,0,0,0.6),
    0 0 26px -6px var(--a);
  outline: none;
}
.tile .ic {
  width: clamp(40px, 5.4vw, 68px); height: clamp(40px, 5.4vw, 68px);
  color: var(--a);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.55));
}
.tile .ic svg { width: 100%; height: 100%; display: block; }
.tile .name {
  font-family: var(--f-display); font-weight: 700;
  letter-spacing: 0.05em; line-height: 1.08;
  font-size: clamp(0.98rem, 1.9vw, 1.65rem);
}
.tile .desc {
  font-family: var(--f-label); color: var(--muted);
  letter-spacing: 0.16em; text-transform: uppercase;
  font-size: clamp(0.54rem, 0.92vw, 0.78rem);
}
.tile .go {
  margin-top: clamp(0.2rem, 0.6vh, 0.5rem);
  font-family: var(--f-label); color: var(--gold-2);
  letter-spacing: 0.22em; text-transform: uppercase;
  font-size: clamp(0.5rem, 0.82vw, 0.68rem);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.35s, transform 0.35s;
}
.tile:hover .go, .tile:focus-visible .go { opacity: 1; transform: translateY(0); }

.hub-foot {
  flex: 0 0 auto; text-align: center;
  font-family: var(--f-label); color: var(--faint);
  letter-spacing: 0.24em; text-transform: uppercase;
  font-size: clamp(0.52rem, 0.85vw, 0.74rem);
}

/* =========================================================================
   BOARD PAGES (built by board.js)
   ========================================================================= */
.board {
  position: relative; z-index: 1;
  height: 100vh; display: flex; flex-direction: column;
}

header.board-bar {
  flex: 0 0 auto; position: relative; z-index: 3;
  display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.4rem);
  padding: clamp(0.6rem, 1.7vh, 1.15rem) clamp(0.9rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, rgba(21,12,5,0.82), rgba(21,12,5,0.32));
  border-bottom: 2px solid var(--gold-3);
}
header.board-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}

.back {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.5em;
  text-decoration: none; cursor: pointer;
  font-family: var(--f-label); letter-spacing: 0.16em; text-transform: uppercase;
  font-size: clamp(0.58rem, 1vw, 0.82rem);
  color: var(--gold-1);
  padding: 0.55em 1.05em; border-radius: 999px;
  border: 1.5px solid var(--gold-3);
  background: rgba(21,12,5,0.5);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.back:hover, .back:focus-visible {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  color: var(--wood-0); border-color: var(--gold-1); outline: none;
}
.back .chev { font-size: 1.15em; line-height: 1; margin-top: -0.08em; }

.board-title { flex: 1 1 auto; min-width: 0; }
.board-title h1 {
  font-family: var(--f-display); font-weight: 700;
  letter-spacing: 0.045em; line-height: 1.05;
  font-size: clamp(1.15rem, 3vw, 2.4rem);
}
.board-title .sub {
  font-family: var(--f-label); color: var(--muted);
  letter-spacing: 0.2em; text-transform: uppercase;
  font-size: clamp(0.58rem, 1vw, 0.86rem); margin-top: 0.24rem;
}
.board-mark { flex: 0 0 auto; width: clamp(38px, 4.6vw, 62px); height: clamp(38px, 4.6vw, 62px);
  color: var(--accent); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.board-mark svg { width: 100%; height: 100%; }

/* section navigation (sub-category pills) */
nav.sections {
  flex: 0 0 auto; position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(0.35rem, 0.8vw, 0.6rem);
  padding: clamp(0.55rem, 1.5vh, 1rem) clamp(0.8rem, 3vw, 2.4rem);
  background: rgba(13,7,3,0.35);
  border-bottom: 1px solid var(--gold-line);
}
nav.sections button {
  appearance: none; cursor: pointer;
  font-family: var(--f-label); letter-spacing: 0.1em;
  font-size: clamp(0.6rem, 1.02vw, 0.86rem);
  color: var(--muted); background: transparent;
  padding: 0.5em 1.05em; border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
nav.sections button:hover { color: var(--gold-0); border-color: var(--gold-line); }
nav.sections button.active {
  color: var(--wood-0); font-weight: 600;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  border-color: var(--gold-1);
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* stage that holds the active section */
.board-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.panel {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease;
  display: flex; flex-direction: column;
}
.panel.show { opacity: 1; visibility: visible; }

.panel-scroll {
  flex: 1 1 auto; min-height: 0;
  /* touch/drag scrollable on the venue hardware (IR touch frames emulate a mouse,
     so drag-scroll.js pans it; real touch pans natively via touch-action) */
  overflow-y: auto; overflow-x: hidden;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: clamp(0.7rem, 2vh, 1.6rem) clamp(0.9rem, 3.2vw, 2.8rem)
           clamp(0.4rem, 1.2vh, 1rem);
}
.panel-inner { max-width: 1360px; margin: 0 auto; }

/* slim brass scrollbar — a gentle "this scrolls" affordance without clutter */
.panel-scroll, .search-results { scrollbar-width: thin; scrollbar-color: rgba(236,205,130,0.4) transparent; }
.panel-scroll::-webkit-scrollbar, .search-results::-webkit-scrollbar { width: 10px; }
.panel-scroll::-webkit-scrollbar-thumb, .search-results::-webkit-scrollbar-thumb {
  background: rgba(236,205,130,0.28); border-radius: 10px;
}
.panel-scroll::-webkit-scrollbar-track, .search-results::-webkit-scrollbar-track { background: transparent; }

/* ---- table section ------------------------------------------------------- */
table.roll {
  width: 100%; border-collapse: collapse;
  font-size: clamp(0.66rem, 1.16vw, 1.04rem);
}
table.roll thead th {
  position: sticky; top: 0; z-index: 2;
  font-family: var(--f-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gold-0);
  padding: 0.7em 0.7em; white-space: nowrap;
  background: linear-gradient(180deg, #2a1a0c, #1c1006);
  border-bottom: 2px solid var(--gold-2);
}
table.roll thead th:first-child { text-align: left; }
table.roll td {
  padding: 0.48em 0.7em; text-align: center;
  border-bottom: 1px solid var(--gold-line);
  color: var(--ink); vertical-align: top; line-height: 1.25;
}
table.roll td.year {
  text-align: left; white-space: nowrap;
  font-family: var(--f-label); color: var(--gold-1); letter-spacing: 0.03em;
}
table.roll td.blank { color: var(--faint); }
table.roll tbody tr:nth-child(even) td { background: rgba(255,240,210,0.022); }
table.roll tbody tr.latest td {
  background: rgba(236,205,130,0.12);
  color: var(--gold-0); font-weight: 600;
}
table.roll tbody tr.latest td.year { color: var(--gold-0); }
table.roll tr.covid td {
  color: var(--muted); font-style: italic;
  font-family: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase;
}
.tag {
  display: inline-block; margin-left: 0.5em; vertical-align: middle;
  font-family: var(--f-label); font-size: 0.68em; letter-spacing: 0.08em;
  color: var(--wood-0); border-radius: 999px; padding: 0.1em 0.66em;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
}

/* ---- roll section (single event, dotted-leader columns) ------------------ */
.leaders {
  columns: 2; column-gap: clamp(1.6rem, 5vw, 5rem);
}
.leaders.dense { columns: 3; }
.lead {
  display: flex; align-items: baseline; gap: 0.6em;
  padding: clamp(0.08rem, 0.5vh, 0.36rem) 0;
  border-bottom: 1px dotted var(--gold-line);
  break-inside: avoid;
  font-size: clamp(0.7rem, 1.28vw, 1.14rem);
}
.lead .yr {
  flex: 0 0 auto; width: 5em;
  font-family: var(--f-label); color: var(--gold-2); letter-spacing: 0.02em;
}
.lead .dots {
  flex: 1 1 auto; border-bottom: 1px dotted var(--faint);
  transform: translateY(-0.28em); min-width: 1em;
}
.lead .who { flex: 0 1 auto; text-align: right; color: var(--ink); }
.lead.latest .who { color: var(--gold-0); font-weight: 600; }
.lead.latest .yr { color: var(--gold-0); }
.lead.covid .who { color: var(--muted); font-style: italic; }

/* ---- achievements section ------------------------------------------------ */
.achis {
  columns: 2; column-gap: clamp(1.4rem, 4vw, 3.4rem);
}
.achi {
  break-inside: avoid; margin-bottom: clamp(0.7rem, 1.6vh, 1.2rem);
  padding: clamp(0.6rem, 1.4vh, 1rem) clamp(0.8rem, 1.6vw, 1.2rem);
  border-left: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(74,48,24,0.34), rgba(21,12,5,0.36));
  border-radius: 0 10px 10px 0;
}
.achi .head { display: flex; align-items: baseline; gap: 0.7em; }
.achi .yr {
  font-family: var(--f-label); color: var(--gold-1);
  letter-spacing: 0.04em; font-size: clamp(0.72rem, 1.1vw, 0.98rem);
  white-space: nowrap;
}
.achi .title {
  font-family: var(--f-display); font-weight: 600; color: var(--gold-0);
  letter-spacing: 0.02em; line-height: 1.2;
  font-size: clamp(0.78rem, 1.24vw, 1.08rem);
}
.achi .team {
  color: var(--ink); font-size: clamp(0.72rem, 1.14vw, 1rem);
  margin-top: 0.28em; line-height: 1.32;
}
.achi .team + .team { margin-top: 0.12em; }

.empty-note {
  text-align: center; color: var(--muted); font-family: var(--f-label);
  letter-spacing: 0.14em; padding: 2rem;
}

/* footer — parent-club credit */
footer.board-foot {
  flex: 0 0 auto; position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: clamp(0.7rem,2vw,1.6rem);
  padding: clamp(0.4rem, 1.1vh, 0.85rem) clamp(1rem, 3vw, 2.4rem);
  border-top: 2px solid var(--gold-3);
  background: linear-gradient(0deg, rgba(21,12,5,0.82), rgba(21,12,5,0.28));
}
footer.board-foot .hint {
  font-family: var(--f-label); color: var(--faint);
  letter-spacing: 0.2em; text-transform: uppercase;
  font-size: clamp(0.5rem, 0.82vw, 0.72rem);
}

/* =========================================================================
   Responsive — portrait kiosks & tablets
   ========================================================================= */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles > .tile { grid-column: auto !important; }   /* drop the 3/2/2 spans */
  .leaders { columns: 2; }
  .achis { columns: 1; }
}
@media (max-width: 620px) {
  .tiles { grid-template-columns: 1fr; align-content: start; overflow-y: auto;
           touch-action: pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .tiles > .tile { grid-column: auto !important; }
  .leaders, .leaders.dense { columns: 1; }
  table.roll { font-size: 0.72rem; }
  .board-title .sub { display: none; }
}
/* portrait: 2 columns of taller plaques */
@media (orientation: portrait) and (min-width: 621px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles > .tile { grid-column: auto !important; }
}

/* =========================================================================
   Hub actions + "Find a name" button
   ========================================================================= */
.hub-actions {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: clamp(0.8rem, 2.4vw, 2rem);
}
.find-btn {
  display: inline-flex; align-items: center; gap: 0.6em; cursor: pointer;
  font-family: var(--f-label); letter-spacing: 0.16em; text-transform: uppercase;
  font-size: clamp(0.64rem, 1.05vw, 0.9rem); color: var(--gold-0);
  padding: 0.7em 1.5em; border-radius: 999px;
  border: 1.5px solid var(--gold-3); background: rgba(21,12,5,0.55);
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.find-btn svg { width: 1.15em; height: 1.15em; }
.find-btn:hover, .find-btn:focus-visible {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  color: var(--wood-0); border-color: var(--gold-1); outline: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* =========================================================================
   Find a Name (search view)
   ========================================================================= */
.search-view[hidden] { display: none; }
.search-view {
  position: fixed; inset: 0; z-index: 6;
  display: flex; flex-direction: column;
  padding: clamp(0.8rem, 2.4vh, 1.6rem) clamp(1rem, 4vw, 3rem) clamp(0.6rem, 1.6vh, 1rem);
  background:
    radial-gradient(130% 100% at 50% -12%, var(--wood-3) 0%, var(--wood-2) 34%, var(--wood-1) 62%, var(--wood-0) 100%);
}
.search-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem);
  margin-bottom: clamp(0.6rem, 1.6vh, 1.1rem);
}
.search-head h1 {
  font-family: var(--f-display); font-weight: 700; letter-spacing: 0.045em;
  font-size: clamp(1.15rem, 3vw, 2.2rem);
}
.search-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.7em;
  padding: clamp(0.5rem, 1.4vh, 0.9rem) clamp(0.9rem, 2vw, 1.4rem);
  border: 1.5px solid var(--gold-3); border-radius: 14px;
  background: rgba(13,7,3,0.55);
}
.search-bar svg { width: 1.4em; height: 1.4em; color: var(--gold-2); flex: 0 0 auto; }
.search-bar input {
  flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--ink); font-family: var(--f-body);
  font-size: clamp(1.1rem, 2.6vw, 1.9rem); letter-spacing: 0.02em;
}
.search-bar input::placeholder { color: var(--faint); }
.search-clear {
  flex: 0 0 auto; cursor: pointer; border: 0; background: transparent;
  color: var(--muted); font-size: 1.8em; line-height: 1; padding: 0 0.2em;
}
.search-results {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin-top: clamp(0.6rem, 1.6vh, 1.1rem);
  /* grid (not CSS multicolumn): in a fixed-height box, `columns` lays cards out
     HORIZONTALLY (scrollWidth blew out to ~15000px), which hid most results and
     made drag-scroll fling sideways forever. grid grows downward → vertical scroll. */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;   /* cards (overflow:hidden) collapse without this */
  gap: 0 clamp(1.2rem, 3vw, 2.6rem);
  align-content: start; align-items: start;
}
.search-hint {
  color: var(--muted); font-family: var(--f-label); letter-spacing: 0.04em;
  font-size: clamp(0.8rem, 1.4vw, 1.05rem); padding: 1rem 0.2rem;
}
.person {
  break-inside: avoid; margin-bottom: clamp(0.7rem, 1.6vh, 1.1rem);
  border: 1px solid var(--gold-line); border-radius: 12px;
  background: linear-gradient(180deg, rgba(74,48,24,0.34), rgba(21,12,5,0.4));
  overflow: hidden;
}
.person-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.6em;
  padding: 0.55em 0.9em; background: rgba(13,7,3,0.4);
  border-bottom: 1px solid var(--gold-line);
}
.person-head b {
  font-family: var(--f-display); font-weight: 600; color: var(--gold-0);
  letter-spacing: 0.03em; font-size: clamp(0.9rem, 1.5vw, 1.15rem);
}
.person-head span {
  font-family: var(--f-label); color: var(--muted); white-space: nowrap;
  font-size: clamp(0.62rem, 1vw, 0.82rem); letter-spacing: 0.06em;
}
.person-rows { padding: 0.3em 0.9em 0.6em; }
.person-row {
  display: flex; align-items: baseline; gap: 0.7em;
  padding: 0.28em 0; border-bottom: 1px dotted var(--gold-line);
  font-size: clamp(0.72rem, 1.15vw, 0.98rem);
}
.person-row:last-child { border-bottom: 0; }
.pr-year { flex: 0 0 auto; width: 4.6em; color: var(--gold-2); font-family: var(--f-label); }
.pr-board { flex: 0 0 9.5em; color: var(--gold-1); }
.pr-role { flex: 1 1 auto; color: var(--ink); }

/* on-screen keyboard */
.keyboard {
  flex: 0 0 auto; margin-top: clamp(0.6rem, 1.4vh, 1rem);
  display: flex; flex-direction: column; gap: clamp(0.3rem, 0.8vh, 0.5rem);
  max-width: 900px; width: 100%; align-self: center;
}
.kb-row { display: flex; justify-content: center; gap: clamp(0.25rem, 0.7vw, 0.5rem); }
.kb-key {
  flex: 1 1 0; min-width: 0; cursor: pointer;
  padding: clamp(0.5rem, 1.4vh, 0.95rem) 0; border-radius: 9px;
  border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(74,48,24,0.5), rgba(21,12,5,0.6));
  color: var(--ink); font-family: var(--f-label);
  font-size: clamp(0.8rem, 1.5vw, 1.15rem); letter-spacing: 0.04em;
  transition: background 0.12s, transform 0.06s;
}
.kb-key:active { transform: translateY(1px); background: linear-gradient(180deg, var(--gold-1), var(--gold-3)); color: var(--wood-0); }
.kb-space { flex: 4 1 0; text-transform: uppercase; font-size: 0.8em; letter-spacing: 0.16em; }
.kb-act { flex: 1.6 1 0; color: var(--gold-1); }
.kb-key-dot { flex: 0.7 1 0; }

/* =========================================================================
   Attract screensaver (hub)  +  Spotlight (boards) — shared look
   ========================================================================= */
.attract, .spotlight {
  position: fixed; inset: 0; z-index: 20;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.6s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(130% 100% at 50% -12%, var(--wood-3) 0%, var(--wood-2) 30%, var(--wood-1) 60%, var(--wood-0) 100%);
  text-align: center;
}
.attract.on, .spotlight.on { opacity: 1; visibility: visible; pointer-events: auto; }

.attract-brand { position: absolute; top: clamp(1.2rem, 4vh, 2.6rem); }
.attract-brand .sport-logo { display: block; height: clamp(162px, 27vh, 312px); }
.attract-brand .sport-logo img {
  height: 100%; width: auto;
  filter: invert(1) sepia(1) saturate(0.55) brightness(1.08) hue-rotate(3deg); opacity: 0.9;
}

.attract-stage, .spot-stage {
  position: relative; flex: 1 1 auto; width: 100%; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
.attract-slide, .spot-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transform: scale(1.015); transition: opacity 0.8s ease, transform 8s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(4rem, 12vh, 8rem) clamp(1.4rem, 5vw, 4rem) clamp(3rem, 8vh, 6rem);
}
.attract-slide.show, .spot-slide.show { opacity: 1; visibility: visible; transform: scale(1); }

.a-eyebrow, .spot-eyebrow {
  font-family: var(--f-label); color: var(--muted);
  letter-spacing: 0.36em; text-transform: uppercase;
  font-size: clamp(0.62rem, 1.2vw, 0.95rem); margin-bottom: 0.8rem;
}
.attract-slide.intro h2, .spot-slide.hero h2 {
  font-family: var(--f-display); font-weight: 700; letter-spacing: 0.05em;
  font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.02;
}
.a-sub, .spot-since {
  font-family: var(--f-label); color: var(--gold-2); letter-spacing: 0.2em;
  text-transform: uppercase; font-size: clamp(0.7rem, 1.3vw, 1rem); margin-top: 1rem;
}
.a-title {
  font-family: var(--f-display); font-weight: 700; letter-spacing: 0.06em;
  font-size: clamp(1.4rem, 3.6vw, 2.8rem); margin-bottom: clamp(1rem, 3vh, 2rem);
}
.a-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.6rem); width: min(1200px, 92vw);
}
.a-card {
  border: 1px solid var(--gold-line); border-radius: 14px;
  padding: clamp(0.9rem, 2.4vh, 1.6rem) clamp(0.8rem, 1.6vw, 1.4rem);
  background: linear-gradient(165deg, rgba(74,48,24,0.5), rgba(21,12,5,0.6));
  box-shadow: inset 0 0 26px rgba(0,0,0,0.4);
}
.a-ev {
  font-family: var(--f-label); color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: clamp(0.54rem, 0.95vw, 0.78rem);
}
.a-name {
  font-family: var(--f-display); font-weight: 600; line-height: 1.12;
  font-size: clamp(1rem, 2vw, 1.7rem); margin: 0.35em 0 0.25em;
}
.a-yr { font-family: var(--f-label); color: var(--gold-2); letter-spacing: 0.08em; font-size: clamp(0.62rem, 1vw, 0.85rem); }

/* spotlight hero (board) */
.spot-mark { width: clamp(64px, 9vw, 120px); height: clamp(64px, 9vw, 120px); color: var(--accent); margin-bottom: 1rem; }
.spot-mark svg, .spot-mark img { width: 100%; height: 100%; object-fit: contain; }
.spot-hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(0.7rem, 1.6vw, 1.2rem); width: min(1200px, 92vw);
  margin-top: clamp(1.2rem, 3vh, 2.2rem);
}
.spot-hero-card {
  border: 1px solid var(--gold-line); border-radius: 12px; text-align: left;
  padding: clamp(0.7rem, 1.6vh, 1.1rem) clamp(0.8rem, 1.4vw, 1.1rem);
  background: linear-gradient(165deg, rgba(74,48,24,0.46), rgba(21,12,5,0.56));
  min-width: 0; overflow: hidden;
}
.sh-head {
  font-family: var(--f-label); color: var(--gold-1); letter-spacing: 0.06em;
  font-size: clamp(0.66rem, 1.1vw, 0.9rem); text-transform: uppercase;
  margin-bottom: 0.4em; display: flex; justify-content: space-between; gap: 0.5em;
}
.sh-yr { color: var(--gold-3); }
.sh-line { display: flex; gap: 0.5em; font-size: clamp(0.72rem, 1.15vw, 0.98rem); line-height: 1.35; }
.sh-k { color: var(--muted); flex: 0 0 auto; }
.sh-v { color: var(--ink); overflow-wrap: anywhere; min-width: 0; }

/* spotlight feature slide (board) */
.spot-label {
  font-family: var(--f-display); font-weight: 700; letter-spacing: 0.05em;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem); margin-bottom: clamp(0.6rem, 1.6vh, 1.1rem);
}
.spot-body { width: min(1340px, 95vw); max-height: 64vh; overflow: hidden; }
/* attract mode auto-tours the slide, so keep it clipped (no scrollbar); scrollTop
   still animates it. drag-scroll is not attached here — a touch exits the spotlight. */
.spot-body .panel-scroll { padding: 0; overflow: hidden; touch-action: auto; }
.spot-body table.roll { font-size: clamp(0.62rem, 1.02vw, 0.94rem); }
.spot-body table.roll td, .spot-body table.roll th { padding: 0.42em 0.5em; }

/* dots + prompt (shared) */
.attract-dots, .spot-dots {
  position: absolute; bottom: clamp(3.4rem, 9vh, 5.4rem);
  display: flex; gap: 0.6rem; justify-content: center;
}
.attract-dots .ad, .spot-dots .sd {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(176,155,120,0.32); border: 1px solid var(--gold-3);
  transition: background 0.3s, transform 0.3s;
}
.attract-dots .ad.on, .spot-dots .sd.on { background: var(--gold-1); transform: scale(1.3); }

.attract-prompt, .spot-prompt {
  position: absolute; bottom: clamp(1.2rem, 4vh, 2.4rem);
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--f-label); color: var(--gold-0);
  letter-spacing: 0.24em; text-transform: uppercase;
  font-size: clamp(0.7rem, 1.3vw, 1rem);
  animation: promptPulse 2.4s ease-in-out infinite;
}
.attract-prompt .pulse, .spot-prompt .pulse {
  width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--gold-1);
  box-shadow: 0 0 0 0 rgba(236,205,130,0.6); animation: dotPulse 2.4s ease-out infinite;
}
@keyframes promptPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(236,205,130,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(236,205,130,0); }
  100% { box-shadow: 0 0 0 0 rgba(236,205,130,0); }
}

/* fishing club logo, left of the board title */
.board-logo {
  flex: 0 0 auto; display: grid; place-items: center;
  height: clamp(46px, 5.6vw, 78px); aspect-ratio: 4 / 3;
  padding: clamp(2px, 0.4vw, 6px) clamp(4px, 0.7vw, 9px);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(74,48,24,0.6), rgba(21,12,5,0.7));
  border: 1.5px solid var(--gold-3);
  box-shadow: inset 0 0 16px rgba(0,0,0,0.45), 0 3px 12px rgba(0,0,0,0.4);
}
.board-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* cursor hidden while idle/attract */
body.attracting, body.spotting { cursor: none; }

@media (max-width: 1000px) {
  .search-results { grid-template-columns: 1fr; }
  .a-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .a-grid { grid-template-columns: 1fr; }
  .pr-board { flex-basis: 7em; }
  .board-logo { height: 42px; }
}
