/* Highscore-siden (19/10; 29/10: spilbillede pr. sektion, podie-rækker, spring-til-menu – Emil: «pænere, med et lille billede af spillet»). Bygger på spil.css (.tavle, .afsnit-titel, .arkade-hero …). */
.hs-hero .arkade-hero__indhold h1 { letter-spacing: 0.04em; }

.hs-indhold {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  display: grid;
  gap: 3.25rem;
}

.hs-spil__hoved {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.hs-spil__hoved .afsnit-titel { margin: 0 0 0.35rem; }

.hs-spil__under {
  margin: 0;
  color: var(--text-muted, #a9c2a0);
}

.hs-spil__knap {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  background: #ec6b34;
  color: #12280f;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  transition: background 0.2s, transform 0.2s;
}

.hs-spil__knap:hover,
.hs-spil__knap:focus-visible {
  background: #f2a63c;
  transform: translate(-1px, -1px);
}

.hs-tavler {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.hs-tavle--altid .tavle__hoved h3 { color: #f3e9d0; }

.hs-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  min-height: 3rem;
}

.hs-liste li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: rgba(12, 29, 9, 0.45);
  border-left: 4px solid var(--gray-muted, #5f7a56);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  color: var(--text-secondary, #d7e6cf);
}

.hs-liste li:nth-child(1) { border-left-color: #f2c53d; background: rgba(242, 197, 61, 0.12); }
.hs-liste li:nth-child(2) { border-left-color: #c9d1c4; }
.hs-liste li:nth-child(3) { border-left-color: #d98b4a; }

.hs-nr {
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
}

.hs-hvem {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hs-navn {
  color: #f3e9d0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-by {
  font-size: 0.72rem;
  color: var(--text-muted, #a9c2a0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-score {
  color: #f6c56f;
  font-weight: 700;
  white-space: nowrap;
}

.hs-liste li.hs-liste__tom {
  display: block;
  border-left-color: var(--gray-muted, #5f7a56);
  background: rgba(12, 29, 9, 0.3);
  color: var(--text-muted, #a9c2a0);
  font-size: 0.85rem;
  line-height: 1.6;
}

.hs-note {
  margin: 1rem 0 0;
  color: var(--text-muted, #a9c2a0);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .hs-tavler { grid-template-columns: 1fr; }
  .hs-indhold { padding: 2.25rem 1rem 3rem; gap: 2.5rem; }
  .hs-spil__knap { width: 100%; text-align: center; }
}

/* Rally-sektionen er skjult, til tavlen svarer – hidden skal vinde over .hs-spil's egen display (fund-log 21/10) */
.hs-spil[hidden] { display: none; }

/* ---------- 29/10: spilbillede + podie ---------- */
.hs-hop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 1120px;
  margin: -1.4rem auto 0;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}
.hs-hop a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--bg-card, #1d4023);
  border: 2px solid var(--border-color, rgba(243, 217, 166, 0.22));
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  color: #f3e9d0;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.hs-hop a:hover, .hs-hop a:focus-visible { border-color: #f6c56f; transform: translate(-1px, -1px); }
.hs-hop a[hidden] { display: none; }
.hs-hop__prik { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #f2c53d; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35); }
.hs-hop__prik--hl { background: #ec6b34; }
.hs-hop__prik--rally { background: #7fae5e; }
.hs-hop__prik--runner { background: #e5bc63; }

.hs-spil {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-areas: "billede hoved" "tavler tavler" "gammel gammel" "note note";
  column-gap: 1.75rem;
  align-items: center;
  scroll-margin-top: 5rem;
}
.hs-spil__billede { grid-area: billede; margin: 0 0 1.4rem; }
.hs-spil__billede picture, .hs-spil__billede img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hs-spil__billede {
  border: 3px solid var(--border-color, rgba(243, 217, 166, 0.35));
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
  background: #0c1d09;
  transform: rotate(-1.2deg);
  transition: transform 0.25s;
}
.hs-spil:hover .hs-spil__billede { transform: rotate(0deg) scale(1.01); }
.hs-spil__hoved { grid-area: hoved; align-self: center; margin-bottom: 1.4rem; }
.hs-spil .hs-tavler { grid-area: tavler; }
.hs-spil .hs-gammel { grid-area: gammel; }
.hs-spil .hs-note { grid-area: note; }

/* Podiet: de tre første rækker større, nr. 1 i guld */
.hs-liste li { border-radius: 0 6px 6px 0; }
.hs-liste li:nth-child(-n+3) { padding: 0.7rem 0.85rem; font-size: 0.95rem; }
.hs-liste li:nth-child(-n+3) .hs-nr { font-size: 1.35rem; }
.hs-liste li:nth-child(1) {
  background: linear-gradient(90deg, rgba(242, 197, 61, 0.26), rgba(242, 197, 61, 0.08));
  box-shadow: inset 0 0 0 1px rgba(242, 197, 61, 0.35);
}
.hs-liste li:nth-child(1) .hs-navn { color: #ffe9a8; font-size: 1.05em; }
.hs-liste li:nth-child(1) .hs-score { color: #f2c53d; font-size: 1.1em; }
.hs-liste li:nth-child(2) { background: rgba(201, 209, 196, 0.1); }
.hs-liste li:nth-child(3) { background: rgba(217, 139, 74, 0.1); }
.hs-liste li:nth-child(n+4) .hs-nr { color: var(--text-muted, #a9c2a0); }

@media (max-width: 760px) {
  .hs-hop { margin-top: -1rem; padding: 0 1rem; }
  .hs-hop a { padding: 0.5rem 0.8rem; font-size: 0.72rem; }
  .hs-spil { grid-template-columns: 1fr; grid-template-areas: "billede" "hoved" "tavler" "gammel" "note"; }
  .hs-spil__billede { transform: none; margin: 0 0 1.1rem; }
  .hs-spil__billede picture, .hs-spil__billede img { aspect-ratio: 16 / 8; }
}
