:root {
  --ink: #080d11;
  --ivory: #fff2da;
  --gold-bright: #f8d58c;
  --gutter: clamp(1rem, 4vw, 5rem);
  --heading: "Baskervville", Georgia, serif;
}
body {
  color: var(--ivory);
  background: radial-gradient(ellipse at 75% 50%, #17212b 0, #0a1015 42%, #06090b 85%);
  min-height: 100vh;
}
.skip { z-index: 4; }
.mast {
  position: relative;
  z-index: 1;
  padding: .68rem var(--gutter);
  background: #080d11;
  border-bottom-color: #6b6455;
}
.mast .wordmark {
  font: 700 clamp(1.6rem, 3vw, 2.8rem)/1.2 var(--heading);
  letter-spacing: -.045em;
  color: var(--ivory);
}
.mast nav { gap: .4rem clamp(.9rem, 2vw, 2.1rem); }
.mast nav a { font: 500 clamp(.92rem, 1.45vw, 1.3rem)/1.5 Georgia, serif; color: var(--gold-bright); }
.mast nav [aria-current] { color: white; text-decoration-thickness: 2px; text-underline-offset: .36em; }
.wish-hero {
  display: grid;
  align-items: center;
  min-height: clamp(23rem, 34vw, 40rem);
  padding: clamp(2.5rem, 3.5vw, 4rem) var(--gutter) clamp(3.5rem, 4.5vw, 5.5rem);
  background: linear-gradient(to top, var(--ink), transparent 12%),
    url("/media/twisted-wishes-djinn.webp") center center / cover no-repeat;
}
.hero-copy { max-width: 45%; }
.byline {
  margin: 0 0 .7rem;
  color: var(--gold-bright);
  font: 700 clamp(.75rem, 1.15vw, 1.15rem)/1.35 Georgia, serif;
  letter-spacing: .22em;
}
h1 {
  margin: 0;
  width: fit-content;
  font: 500 clamp(4.8rem, 8.5vw, 9.6rem)/.85 var(--heading);
  letter-spacing: -.065em;
  color: #ffe3a3;
}
h1 span { display: block; }
@supports (background-clip: text) {
  h1 {
    background: linear-gradient(165deg, #fffaf0 6%, #ffe7b0 39%, #e9ac4c 65%, #fff1c2 90%);
    background-clip: text;
    color: transparent;
  }
}
.score-rule {
  color: #f8eedc;
  max-width: 38ch;
  margin: 1.2rem 0 0;
  font: italic clamp(1.08rem, 1.7vw, 1.55rem)/1.36 Georgia, serif;
  text-shadow: 0 2px 8px #000;
}
.standings {
  position: relative;
  margin: -1.3rem var(--gutter) 2rem;
  border: 1px solid #99723c;
  border-radius: 3px 14px;
  background: linear-gradient(140deg, #141d22, #0a0f12 45%, #10171e);
  box-shadow: 0 12px 48px #020407a6, inset 0 0 0 3px #0b0e11;
  padding: clamp(1.35rem, 2.7vw, 3.1rem) clamp(1.1rem, 3.8vw, 4rem);
}
.standings h2 {
  margin: 0;
  font: 600 clamp(2.2rem, 3.45vw, 4rem)/1 var(--heading);
  letter-spacing: -.045em;
}
#board-status {
  margin: .4rem 0 1.4rem;
  font: italic 1.09rem/1.5 Georgia, serif;
  color: #dbd0b9;
}
#scores { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; }
#scores th, #scores td {
  padding: .42rem clamp(.35rem, .9vw, 1rem);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #746b594f;
}
#scores th { font: 600 1rem/1.6 Georgia, serif; color: #e1d5bf; }
#scores td { font: 500 clamp(1.05rem, 1.65vw, 1.8rem)/1.35 var(--heading); }
#scores :is(th, td):first-child { width: 14%; }
#scores td:nth-child(2) { overflow-wrap: anywhere; }
#scores :is(th, td):last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#scores tr[data-rank="1"] {
  background: linear-gradient(90deg, #b9862e20, #131719 65%, #b9862e14);
  box-shadow: inset 0 1px #d3a754, inset 0 -1px #d3a754;
}
#scores tr[data-rank="1"] td { color: var(--gold-bright); font-weight: 700; }
#scores tr[data-rank="1"] td:first-child { color: #ffe3a1; }
#refresh {
  min-height: 44px;
  padding: .6rem 1.25rem;
  color: #1c1206;
  background: linear-gradient(155deg, #ffe59e, #e4b65e 64%, #cea052);
  border: 1px solid #f4d18a;
  border-radius: 4px;
  font: 700 1.05rem/1.3 Georgia, serif;
}
#refresh:hover { filter: brightness(1.1); }
#refresh:disabled { opacity: .65; cursor: wait; }
footer { padding: 1rem var(--gutter); border-color: #4e4538; }
@media (max-width: 740px) {
  .mast { gap: .45rem; }
  .mast nav { column-gap: 1rem; }
  .wish-hero {
    position: relative;
    display: block;
    padding: clamp(12rem, 45vw, 20rem) var(--gutter) 2.65rem;
    min-height: 0;
    background: var(--ink);
    isolation: isolate;
  }
  .wish-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: clamp(14rem, 49vw, 22.5rem);
    background: linear-gradient(to top, var(--ink), transparent 16%),
      url("/media/twisted-wishes-djinn.webp") right center / cover no-repeat;
  }
  .hero-copy { max-width: none; }
  .byline { margin-bottom: .55rem; }
  h1 { font-size: clamp(3.45rem, 11vw, 5.7rem); line-height: .99; }
  h1 span { display: inline; }
  .score-rule { font-size: 1.07rem; margin-top: .55rem; }
  .standings { margin-top: -.6rem; }
  #scores :is(th, td):first-child { width: auto; }
  footer { gap: .5rem; }
}
@media (forced-colors: active) {
  h1 { color: CanvasText; }
  #scores tr[data-rank="1"] { outline: 1px solid Highlight; }
}
.top-rank {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 2.6em;
  margin-left: -.95em;
}
.top-rank::before, .top-rank::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .08em;
  width: .9em;
  height: 1.13em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 32'%3E%3Cg fill='%23e3b859'%3E%3Cpath d='M20 30C7 26 4 13 9 2C5 16 10 25 20 30Z'/%3E%3Cpath d='M8 8Q5 4 10 0Q11 4 8 8ZM7 14Q2 12 2 7Q7 9 7 14ZM7 19Q1 18 0 13Q5 14 7 19ZM10 24Q4 25 1 20Q7 20 10 24ZM14 28Q9 31 5 27Q10 25 14 28ZM7 13Q7 8 12 6Q12 11 7 13ZM8 19Q7 13 12 11Q13 16 8 19ZM11 24Q9 19 14 16Q15 21 11 24ZM16 28Q13 24 17 20Q19 25 16 28Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.top-rank::after { left: auto; right: 0; transform: scaleX(-1); }
@media (max-width: 460px) {
  .top-rank { min-width: 2.05em; margin-left: -.45em; }
  .top-rank::before, .top-rank::after { width: .66em; }
}
