* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; }
body { font-family: Georgia, 'Times New Roman', serif; }
.board { height: 100vh; padding: 4vmin 6vmin; display: flex; flex-direction: column; }
header { text-align: center; margin-bottom: 3vmin; }
.club { font-size: 2.2vmin; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
h1 { font-size: 6vmin; margin-top: 1vmin; }
.subtitle { font-size: 2.6vmin; font-style: italic; opacity: .85; }
:root { --entry-size: 3vmin; }
/* Same text size on every board and competition: 3 columns landscape, 2 portrait. Long lists page. */
.entries { list-style: none; padding: 0; columns: 3; column-gap: 5vmin; flex: 1; min-height: 0; overflow: hidden; column-fill: balance; position: relative; font-size: var(--entry-size); line-height: 1.25; }
.entries.measuring { column-fill: auto; }
.portrait .entries { columns: 2; }
.page { font-size: 2vmin; letter-spacing: .15em; text-transform: uppercase; opacity: .7; margin-top: 1vmin; }

/* Portrait boards on a screen mounted on its side that still outputs landscape:
   lay the board out in swapped dimensions and turn it 90°. */
@media (orientation: landscape) {
  .portrait .board { position: absolute; top: 0; left: 0; width: 100vh; height: 100vw; transform-origin: top left; background: inherit; }
  .turn-cw .board { transform: translateX(100vw) rotate(90deg); }
  .turn-ccw .board { transform: translateY(100vh) rotate(-90deg); }
}
.entries li { display: flex; gap: .5em; padding: .25em 0; break-inside: avoid; }
.year { width: 2.4em; flex: none; }
.portrait .board { padding-left: 4vmin; padding-right: 4vmin; }
.portrait .entries { column-gap: 4vmin; }
.winner { flex: 1; }
.score { opacity: .8; }
.loading { margin: auto; font-size: 3vmin; }

/* Classic: varnished wood with gold leaf lettering */
.style-classic { background: #3b2412 linear-gradient(90deg, #3b2412, #5a3a1e 50%, #3b2412); color: #e8c667; }
.style-classic header { border-bottom: .4vmin double #c9a24a; padding-bottom: 2vmin; }

/* Contemporary: clean, high contrast */
.style-modern { background: #0f1b2d; color: #f4f6fa; font-family: system-ui, sans-serif; }
.style-modern h1 { font-weight: 600; }
.style-modern .year { color: #7fb2ff; }

/* Bespoke: club colours and crest (modelled on Mellor's printed boards) */
.style-bespoke { --green: #1f5a4c; --gold: #b8963e; background: var(--green); color: #fff; font-family: Montserrat, Arial, sans-serif; }
.style-bespoke .board { position: relative; isolation: isolate; padding: 5vmin 4vmin; }
.style-bespoke .board::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .035; pointer-events: none;
  background-image: var(--watermark-logo), var(--watermark-text);
  background-size: 22vmin auto, 34vmin auto; background-repeat: repeat;
  background-position: 4vmin 3vmin, 0 0;
}
.bespoke-head { text-align: center; margin-bottom: 3vmin; }
.bespoke-head .heading { font-size: 3.4vmin; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.bespoke-head .crest { display: flex; align-items: center; justify-content: center; gap: 2vmin; margin: 1.5vmin 0; font-family: Georgia, serif; font-size: 2.2vmin; letter-spacing: .25em; }
.bespoke-head .crest img { height: 11vmin; width: auto; }
.bespoke-head .club { font-size: 3.2vmin; font-weight: 700; letter-spacing: .35em; text-transform: uppercase; opacity: 1; margin-left: .35em; }
.bespoke-head hr { width: 26vmin; margin: 2.5vmin auto 3.5vmin; border: 0; border-top: .7vmin solid #fff; border-radius: 1vmin; opacity: .9; }
.style-bespoke h1 { font-size: 5.6vmin; font-weight: 800; text-transform: uppercase; margin: 0; line-height: 1.1; }
.style-bespoke .entries { column-gap: 4vmin; column-rule: .5vmin solid rgba(255, 255, 255, .9); color: var(--gold); font-weight: 700; text-transform: uppercase; padding: 0; }
.style-bespoke .entries li { display: block; padding: .25em 0 .25em 2.6em; text-indent: -2.6em; }
/* Landscape bespoke: shorter header, three columns, so the list stays readable */
.landscape.style-bespoke .board { padding: 3vmin 5vmin; }
.landscape .bespoke-head { margin-bottom: 2vmin; }
.landscape .bespoke-head .crest { margin: .8vmin 0; }
.landscape .bespoke-head .crest img { height: 8vmin; }
.landscape .bespoke-head hr { margin: 1.5vmin auto 2vmin; }
.landscape.style-bespoke h1 { font-size: 5vmin; }
