:root {
  --bg: #0f0a06;
  --bg-soft: #17110b;
  --bg-card: #1b140d;
  --surface: #eadfcf;
  --surface-soft: #dcc8a7;
  --text: #f7f2ea;
  --text-muted: rgba(247, 242, 234, 0.74);
  --text-dark: #1a120c;
  --gold: #c8a45d;
  --gold-bright: #e0c27f;
  --gold-dim: rgba(200, 164, 93, 0.22);
  --border: rgba(200, 164, 93, 0.32);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --display-font: "Graduate", Georgia, serif;
  --body-font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --site-sponsor-height: 120px;
  --site-sponsor-track-height: 56px;
  --site-sponsor-scale: .8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(224, 194, 127, 0.1), transparent 32%),
    radial-gradient(circle at left 18%, rgba(200, 164, 93, 0.05), transparent 22%),
    linear-gradient(180deg, #090603 0%, #0f0a06 24%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 1000;
  background: var(--gold);
  color: #110b06;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(15, 10, 6, 0.84);
  border-bottom: 1px solid rgba(200, 164, 93, 0.28);
}

.site-nav,
.container,
.site-footer,
.hero-copy {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.92);
  transform-origin: left center;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.has-passed-hero .site-nav .brand,
.site-nav .brand:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.brand-logo {
  width: clamp(106px, 12.8vw, 152px);
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

.brand {
  font-family: var(--display-font);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 1.45rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-links-panel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(200, 164, 93, 0.08);
  color: var(--text);
  padding: 0;
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-bright);
  transition: transform 180ms ease, opacity 180ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: rgba(247, 242, 234, 0.9);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(200, 164, 93, 0.12);
  color: var(--gold-bright);
  transform: translateY(-1px);
  outline: none;
}

.nav-cta {
  border: 1px solid var(--border);
  background: rgba(200, 164, 93, 0.1);
}

.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.section-light {
  position: relative;
  z-index: 3;
  color: var(--text-dark);
  background:
    radial-gradient(circle at top left, rgba(224, 194, 127, 0.16), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(200, 164, 93, 0.12), transparent 24%),
    linear-gradient(180deg, #3f2b12 0%, #6f4f22 46%, #8d6930 100%);
}

.section-dark {
  position: relative;
  z-index: 1;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(200, 164, 93, 0.14), transparent 26%),
    linear-gradient(180deg, #120d08, #0f0a06);
  border-top: 1px solid rgba(200, 164, 93, 0.32);
}

#club {
  z-index: 2;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(clamp(4rem, 9vw, 7rem), calc(var(--site-sponsor-height) * var(--site-sponsor-scale) + 2rem)) clamp(1rem, 4vw, 4rem) clamp(10rem, 18vw, 15rem);
  overflow: visible;
  background:
    linear-gradient(rgba(15, 10, 6, 0.18), rgba(15, 10, 6, 0.3)), url(img/Hero-background_v2.v0.8.0.jpg) 50% 50% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  max-width: 44rem;
  min-width: 0;
  margin: 0;
}

.hero-logo-lockup {
  display: grid;
  justify-items: center;
  gap: clamp(0.75rem, 2.1vw, 1.35rem);
  max-width: min(426px, 100%);
  text-align: center;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(426px, 49.3vw);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.32));
}

.hero-logo-lockup .eyebrow {
  justify-content: center;
  margin: 0;
}

.hero-dart {
  position: relative;
  z-index: 1;
  width: clamp(44px, 6vw, 70px);
  pointer-events: none;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.32));
  animation: dartFloat 7s ease-in-out infinite;
}

.hero-dart img {
  display: block;
  width: 100%;
  height: auto;
}

/* Both hero variants share sponsor placement and member portraits.
   Switch #top's data-hero to "normal" after the game. */
.hero[data-hero="match"] .hero-normal,
.hero:not([data-hero="match"]) .hero-match {
  display: none;
}

.hero .hero-match-lockup {
  display: grid;
  justify-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 960px;
  text-align: center;
}

.hero-match-kicker {
  display: block;
  width: max-content;
  margin: 0;
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(0.9rem, 2.7vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-match-kicker span {
  padding-inline: 0.4em;
}

.hero-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.65rem, 3vw, 2.5rem);
  width: 100%;
}

.hero-match-team {
  min-width: 0;
}

.hero-match-logo-frame {
  display: grid;
  place-items: center;
  height: clamp(112px, 22vw, 240px);
}

.hero-match-logo-frame img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px #0006);
}

/* Balance the wide Kierre wordmark against Matsi's square badge optically. */
.hero-match-team-kierre img {
  max-width: 360px;
}

.hero-match-team-opponent img {
  max-width: 240px;
  width: 78%;
}

.hero-match-vs {
  align-self: center;
  display: block;
  width: clamp(72px, 16vw, 180px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px #0008);
}

.hero-match-details {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0;
  line-height: 1.4;
}

.hero-match-details time {
  color: #fff;
  font-family: var(--body-font);
  font-size: clamp(1.3rem, 4.2vw, 2.625rem);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
}

.hero-characters {
position: absolute;
    justify-self: center;
    align-self: center;
    bottom: clamp(-4.2rem, -5vw, -3.2rem);
    z-index: 0;
    --hero-character-width: clamp(179px, 22.4vw, 323px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0rem, 0.45vw, 0.45rem);
    width: min(1120px, calc(100% - 1rem));
    opacity: 0;
    transform: translateX(-50%) translateY(38px);
    transition: opacity 500ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto;
    width: calc(100% - 5vw);
    left: 50%;
}

.hero-characters.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-character-frame {
  position: relative;
  flex: 1 1 var(--hero-character-width);
  width: var(--hero-character-width);
  min-width: 0;
  height: auto;
  margin: 0;
  opacity: 0;
  transform: translateY(52px) scale(0.9);
  transform-origin: center center;
  transition:
    opacity 550ms ease,
    transform 700ms ease-in-out;
  transition-delay: var(--hero-delay, 0ms);
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.38));
  will-change: transform, opacity;
}

.hero-characters.visible .hero-character-frame {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (min-width: 1400px) {
  .hero-characters {
    --hero-character-width: clamp(312px, 37.8vw, 571px);
  }
}

.hero-character {
  display: block;
  width: 100%;
  margin: 0;
}

.hero-character img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  transform: none;
  transform-origin: bottom center;
  transition: transform 700ms ease-in-out;
}

.hero-character-frame:hover {
  z-index: 20;
}

.hero-character-frame:hover img {
  transform: scale(1.4);
}

@media (min-width: 1025px) {
  .hero-characters {
    gap: clamp(0rem, 0.32vw, 0.35rem);
    --hero-character-width: clamp(179px, 22.4vw, 323px);
  }

  .hero-character img {
    transform: scale(1.1);
  }

  .hero-character-frame:hover img {
    transform: scale(1.32);
  }

}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-characters {
    --hero-character-width: clamp(119px, 24.5vw, 164px);
  }

}

@keyframes heroLogoFloat {
  0%, 100% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(8px);
  }
}

@keyframes dartFloat {
  0%, 100% {
    transform: translateY(-8px) rotate(1deg);
  }

  50% {
    transform: translateY(8px) rotate(-1deg);
  }
}

.hero-character-samppa {
  z-index: 2;
}

.hero-character-jani {
  z-index: 2;
}

.hero-character-vesa {
  z-index: 3;
}

.hero-character-ville {
  z-index: 4;
}

.hero-character-jenni {
  z-index: 5;
}

.hero-character-atte {
  z-index: 1;
}

.hero-character-seppo {
  z-index: 2;
}

.hero-character-olavi {
  z-index: 3;
}

.hero-character-valtteri {
  z-index: 4;
}

.hero-characters.visible .hero-character-frame--from-left {
  animation: heroPopLeft 1.45s cubic-bezier(0.2, 0.85, 0.2, 1) var(--hero-delay, 0ms) both;
}

.hero-characters.visible .hero-character-frame--from-up {
  animation: heroPopUp 1.5s cubic-bezier(0.18, 0.88, 0.16, 1) var(--hero-delay, 0ms) both;
}

.hero-characters.visible .hero-character-frame--from-right {
  animation: heroPopRight 1.5s cubic-bezier(0.2, 0.85, 0.2, 1) var(--hero-delay, 0ms) both;
}

@keyframes heroPopLeft {
  0% {
    opacity: 0;
    transform: translateX(-70px) translateY(78px) scale(0.84);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes heroPopUp {
  0% {
    opacity: 0;
    transform: translateY(86px) scale(0.86);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroPopRight {
  0% {
    opacity: 0;
    transform: translateX(72px) translateY(80px) scale(0.84);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

.eyebrow,
.section-label,
.card-kicker {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}

.eyebrow {
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(247, 242, 234, 0.18);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(247, 242, 234, 0.12), rgba(247, 242, 234, 0.06));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.eyebrow-link {
  text-decoration: none;
}

.eyebrow-link:hover,
.eyebrow-link:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

.section-label-wide,
.section-head-label {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
}

.hero h1,
.section-title {
  margin: 0;
  font-family: var(--display-font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  max-width: 12ch;
  display: grid;
  gap: 0.18rem;
}

.hero-line {
  display: block;
}

.hero-line-main {
  line-height: 1em;
}

.hero-line-sub {
  font-size: 0.24em;
  margin-top: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  opacity: 0.88;
}

.section-title {
  font-size: clamp(2.25rem, 5.25vw, 4.125rem);
}

.title-inverse {
  color: var(--text);
}

.lead,
.section-intro,
.join-copy {
  font-size: 1.1rem;
  max-width: 44rem;
}

.lead {
  margin: 1.8rem 0 0;
  color: var(--text-muted);
}

.hero .lead {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-solid {
  background: var(--gold);
  color: #120d08;
  border: 1px solid var(--gold);
  box-shadow: 0 14px 30px rgba(200, 164, 93, 0.18);
}

.button-solid:hover,
.button-solid:focus-visible {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.button-ghost {
  border: 1px solid rgba(200, 164, 93, 0.4);
  color: var(--gold-bright);
  background: transparent;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(200, 164, 93, 0.1);
}

.two-column,
.section-head,
.stats,
.info-grid {
  display: grid;
  gap: 1.5rem;
}

.two-column {
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.25fr);
  align-items: start;
}

.stack {
  display: grid;
  gap: 1rem;
}

.section-light .section-label,
.section-light .card-kicker {
  color: #9f7c35;
}

.section-light .section-title,
.section-light .join-copy,
.section-light .section-intro,
.section-light p,
.section-light span {
  color: #f6e8c8;
}

.section-intro {
  margin: 0;
  color: rgba(246, 232, 200, 0.82);
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(246, 232, 200, 0.18);
}

.stat {
  padding-right: 1.5rem;
  border-right: 1px solid rgba(246, 232, 200, 0.18);
}

.stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--display-font);
  font-size: clamp(3.2rem, 6vw, 5rem);
  color: #f1d08a;
}

.stat span {
  display: block;
  margin-top: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(246, 232, 200, 0.72);
}

.section-head {
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.8fr);
  align-items: start;
  margin-bottom: 2.2rem;
}

.section-dark .section-label {
  color: var(--gold-bright);
}

.section-dark .section-intro {
  color: rgba(247, 242, 234, 0.75);
}

.player-toolbar {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.player-toolbar-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(246, 232, 200, 0.78);
}

.player-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-button {
  appearance: none;
  border: 1px solid rgba(246, 232, 200, 0.2);
  background: rgba(15, 10, 6, 0.22);
  color: #f6e8c8;
  border-radius: 999px;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
  border-color: rgba(224, 194, 127, 0.55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.filter-button.is-active {
  background: #f1d08a;
  color: #1a120c;
  border-color: #f1d08a;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.player-grid-empty {
  grid-column: 1 / -1;
  margin: 0;
}

/* The member introduction and game statistics are two faces of one card. */
#flip-all-players { display:inline-flex; align-items:center; justify-content:center; gap:0.65rem; }
#flip-all-players>svg { width:18px; height:18px; flex-shrink:0; }
.player-card { position:relative; perspective:1400px; cursor:pointer; --member-portrait-shadow:drop-shadow(0 3px 8px #0005); --member-portrait-shade:linear-gradient(0deg,#160e08dc,transparent); }
.player-flip-inner { display:grid; flex:1; -webkit-transform-style:preserve-3d; transform-style:preserve-3d; transition:transform 620ms cubic-bezier(.4, 0, .2, 1); }
.player-card.is-flipped .player-flip-inner { transform:rotateY(180deg); }
.player-front,.player-back { grid-area:1/1; display:flex; flex-direction:column; backface-visibility:hidden; -webkit-backface-visibility:hidden; min-width:0; transition:visibility 0s linear 217ms; }
/* Safari can composite positioned face contents above the reverse face.
   Give both faces a transform and hide the inactive face at the edge-on
   midpoint (35% of the eased 620ms flip). Visibility preserves layout. */
.player-back { transform:rotateY(180deg); background:#1b140d; visibility:hidden; }
.player-front { position:relative; transform:rotateY(0deg); visibility:visible; --player-figure-height:clamp(290px, 28vw, 390px); }
.player-card.is-flipped .player-front { visibility:hidden; }
.player-card.is-flipped .player-back { visibility:visible; }
.player-front .player-body { align-content:start; }
.is-portrait-transitioning .player-figure>img,.is-portrait-transitioning .member-back-hero>img { visibility:hidden; }
.member-portrait-transition { position:absolute; inset:0; z-index:2; pointer-events:none; overflow:hidden; }
.member-portrait-sprite { position:absolute; top:0; left:0; transform-origin:0 0; }
.member-portrait-sprite>img { display:block; width:100%; height:100%; max-width:none; }
.member-portrait-shade { position:absolute; inset:0; background-image:var(--member-portrait-shade); background-repeat:no-repeat; mask-size:100% 100%; mask-repeat:no-repeat; }
.player-figure::after { content:''; position:absolute; z-index:2; left:0; right:0; bottom:var(--member-portrait-overlap,2rem); height:var(--member-portrait-shade-height,68px); background:var(--member-portrait-shade); pointer-events:none; }
.member-flip>svg { width:18px; height:18px; flex-shrink:0; }
/* One control glides between both faces, outside the rotating card content. */
.member-flip { position:absolute; z-index:3; top:var(--member-flip-top); right:12px; width:34px; transition:top 620ms cubic-bezier(.4, 0, .2, 1),background-color 160ms ease; }
.member-start:focus-visible,.member-help:not(.member-flip):focus-visible { outline:2px solid #f1d08a; outline-offset:4px; }
.member-flip:focus { outline:none; }
.member-flip:focus-visible { background-color:#49351c; }
.member-back-hero { position:relative; min-height:225px; padding:22px; overflow:hidden; background:radial-gradient(ellipse at 75% 35%,#e3c58a30,transparent 65%),linear-gradient(140deg,#65471e,#ad8543); }
.member-back-hero>img { position:absolute; bottom:0; right:12px; height:215px; width:169px; object-fit:contain; object-position:center bottom; filter:var(--member-portrait-shadow); }
.member-overall { position:relative; z-index:1; max-width:110px; color:#fff7e8; }
.member-overall strong { display:block; font-family:Inter,'Segoe UI',sans-serif; font-size:56px; font-weight:700; line-height:1; letter-spacing:-.04em; }
.member-overall span { display:block; margin-top:7px; font-size:10px; line-height:1.5; }
.member-back-hero h3 { position:relative; z-index:1; margin:65px -22px -22px; padding:20px 22px 15px; background:var(--member-portrait-shade); font-family:var(--display-font); font-size:28px; font-weight:700; text-transform:uppercase; color:#fff7e8; }
.member-back-hero>.member-help { position:absolute; right:12px; top:12px; z-index:2; }
.member-help { display:inline-grid; place-items:center; min-width:34px; height:34px; padding:0; flex-shrink:0; border:1px solid #c8a45d88; border-radius:50%; background:#21180e; color:#f7f2ea; font:inherit; font-size:17px; cursor:pointer; }
.member-back-details { flex:1; display:flex; flex-direction:column; padding:22px; gap:16px; }
.player-back .attribute-list { margin:0 0 10px; }
.player-back .attribute-list>div { display:grid; grid-template-columns:minmax(95px,1fr) minmax(95px,1.3fr); gap:12px; margin:18px 0; align-items:center; }
.player-back .attribute-list dt { font-size:13px; color:#eee5d7; font-weight:400; }
.player-back .attribute-list dd { display:flex; gap:10px; align-items:center; margin:0; font-size:13px; }
.player-back .attribute-list dd>span:first-child { min-width:22px; text-align:right; font-variant-numeric:tabular-nums; }
.player-back .attribute-strength strong { font-weight:800; color:#ffe7af; }
.player-back .attribute-track { display:block; flex:1; height:6px; background:#c8a45d24; border-radius:2px; overflow:hidden; }
.player-back .attribute-track i { display:block; height:100%; background:#c8a45d; }
.member-start { margin-top:auto; display:flex; justify-content:center; align-items:center; min-height:48px; padding:12px; border:1px solid #e0c27f; border-radius:6px; background:linear-gradient(#d7b674,#b9914d); color:#1a120c; font-weight:700; text-decoration:none; }
.member-start:hover { background:#e0c27f; }
.member-no-portrait { align-self:center; text-align:center; color:#c8a45d; }
.member-no-portrait>span { display:block; font-size:140px; line-height:1.3; font-weight:600; }
.member-no-portrait small { font-size:12px; }
.member-back-initial { position:absolute; right:45px; bottom:12px; font-size:135px; font-weight:600; color:#fff0c970; }
#member-ratings-dialog { width:calc(100% - 36px); max-width:520px; max-height:85svh; overflow:auto; padding:26px; border:1px solid #c8a45d70; border-radius:8px; background:#1b140d; color:#f7f2ea; }
#member-ratings-dialog::backdrop { background:#080704c9; backdrop-filter:blur(6px); }
.member-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.close-icon-button { display:inline-grid; place-items:center; padding:0; line-height:1; }
.close-icon-button svg { display:block; width:18px; height:18px; pointer-events:none; }
.member-dialog-heading h2 { font-family:Inter,'Segoe UI',sans-serif; font-size:18px; line-height:1.5; }
#member-ratings-dialog p,#member-ratings-effects dd { font-size:12px; line-height:1.7; color:#d3c9b6; }
#member-ratings-dialog h3 { margin-top:24px; font-family:Inter,'Segoe UI',sans-serif; font-size:15px; }
#member-ratings-effects dt { margin-top:12px; color:#c8a45d; font-size:12px; }
#member-ratings-effects dd { margin:4px 0 0; }
.ratings-example { max-width:340px; margin:16px 0; border:1px solid #c8a45d70; border-radius:8px; overflow:hidden; background:#1b140d; color:#f7f2ea; }
.ratings-example-hero { position:relative; height:230px; overflow:hidden; background:radial-gradient(ellipse at 75% 35%,#e3c58a40,transparent 65%),linear-gradient(140deg,#65471e,#ad8543); }
.ratings-example-hero img { position:absolute; bottom:0; right:4px; width:181px; height:230px; object-fit:contain; filter:drop-shadow(0 3px 8px #0005); }
.ratings-example-overall { position:absolute; top:22px; left:20px; max-width:100px; z-index:1; }
.ratings-example-overall strong { display:block; font:700 54px/1 Inter,'Segoe UI',sans-serif; letter-spacing:-.04em; }
.ratings-example-overall span { display:block; margin-top:7px; font-size:10px; line-height:1.5; }
.ratings-example-hero h4 { position:absolute; bottom:0; left:0; right:0; margin:0; padding:22px 20px 14px; font:700 25px/1.2 var(--display-font); text-transform:uppercase; background:linear-gradient(0deg,#160e08ed,transparent); }
.ratings-example-details { padding:16px 20px; }
.ratings-example .ratings-example-label { margin:0 0 16px; font-size:11px; line-height:1.5; color:#e0c27f; }
.ratings-example .attribute-list { margin:0; }
.ratings-example .attribute-list>div { display:grid; grid-template-columns:minmax(90px,1fr) minmax(90px,1.3fr); gap:10px; align-items:center; margin:12px 0; }
.ratings-example .attribute-list dt { font-size:12px; font-weight:400; }
.ratings-example .attribute-list dd { display:flex; align-items:center; gap:10px; margin:0; font-size:12px; }
.ratings-example .attribute-list dd>span:first-child { min-width:24px; text-align:right; font-variant-numeric:tabular-nums; }
.ratings-example .attribute-strength strong { font-weight:800; color:#ffe7af; }
.ratings-example .attribute-track { display:block; flex:1; height:6px; background:#c8a45d24; border-radius:2px; overflow:hidden; }
.ratings-example .attribute-track i { display:block; height:100%; background:#c8a45d; }

.player-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(200, 164, 93, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, opacity 260ms ease;
}

.player-card.reveal,
.info-card.reveal {
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: 0ms;
}

.player-card.visible {
  opacity: 1;
  transform: translateY(0);
  max-width: 400px;
}

.player-card:hover {
  transform: translateY(-8px);
  border-color: rgba(224, 194, 127, 0.6);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.44);
}

.player-figure {
  position: relative;
  isolation: isolate;
  height: var(--player-figure-height);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(224, 194, 127, 0.16), transparent 48%),
    linear-gradient(180deg, #231a11, #110c08);
}

.player-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: var(--member-portrait-shadow);
}

/* Keep Vesa's laptop and both hands inside the introduction portrait. */
.player-card[data-member-id="vesa"] .player-figure img {
  object-fit: contain;
  object-position: center bottom;
}

.player-body {
  position: relative;
  z-index: 2;
  flex: 1;
  margin-top: -2rem;
  padding: 2.95rem 1.25rem 1.45rem;
  display: grid;
  gap: 0.85rem;
  background: var(--bg-card);
  box-shadow: 0 -1px 0 rgba(200, 164, 93, 0.12);
}

.player-play {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border: 1px solid #efd799;
  border-radius: 999px;
  background: #e0c27f;
  color: #1a120c;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.player-play svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.player-play:hover {
  background: #f1d08a;
}

.player-play:focus-visible,
.game-launcher button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

body.game-is-open {
  position: fixed;
  top: var(--game-scroll-top);
  left: 0;
  right: 0;
  overflow: hidden;
}

.game-launcher {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #100d09;
  color: var(--text);
  overflow: hidden;
}

.game-launcher[open] {
  display: flex;
  flex-direction: column;
}

.game-launcher::backdrop {
  background: transparent;
}

.game-launcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #241b10;
  color: var(--gold-bright);
  font: 600 0.75rem var(--body-font);
  cursor: pointer;
}

.game-launcher button:hover {
  background: #382a18;
}

.game-launcher [hidden] {
  display: none !important;
}

.game-host {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.game-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #100d09;
}

.game-loading {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: #100d09;
  color: var(--gold-bright);
  text-align: center;
}

.game-loading p {
  margin: 0;
}

.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.player-name {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.95rem, 3vw, 2.5rem);
  color: #fff;
  text-transform: uppercase;
}

.player-role {
  margin: 0;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.player-quote {
  margin: 0;
  color: rgba(247, 242, 234, 0.78);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
}

.player-club {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
  color: #e0c27f;
  font-size: 0.9rem;
  font-weight: 700;
}

.player-club-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.player-club img {
  display: block;
  width: min(104px, 100%);
  height: 104px;
  object-fit: contain;
  object-position: left center;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 164, 93, 0.22);
  background: rgba(200, 164, 93, 0.08);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247, 242, 234, 0.9);
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 2rem 1.65rem;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top left, rgba(224, 194, 127, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(24, 16, 10, 0.58), rgba(12, 8, 5, 0.78));
  border: 1px solid rgba(224, 194, 127, 0.14);
  box-shadow: 0 18px 40px rgba(26, 18, 12, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(26, 18, 12, 0.12);
}

.info-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display-font);
  text-transform: uppercase;
  font-size: clamp(2rem, 3vw, 3rem);
  color: #f4deaa;
}

.info-card p {
  margin: 0;
  color: rgba(247, 242, 234, 0.78);
}

.info-card .card-kicker {
  color: #e8c97f;
}

.join-section {
  padding-top: calc(var(--site-sponsor-height) * var(--site-sponsor-scale) + clamp(2rem, 4vw, 4rem));
  padding-bottom: clamp(5.5rem, 10vw, 8rem);
}

/* These anchors reserve the marked full-width hero and footer positions.
   The carousel itself remains reusable without any of this placement logic. */
.site-sponsor-slot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--site-sponsor-height) * var(--site-sponsor-scale));
  pointer-events: none;
}
.site-sponsors {
  --sponsor-track-height: calc(var(--site-sponsor-track-height) * var(--site-sponsor-scale));
  position: absolute;
  top: var(--site-sponsor-top, 76px);
  left: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  width: 100%;
  height: calc(var(--site-sponsor-height) * var(--site-sponsor-scale));
  transform-origin: center bottom;
}
.site-sponsors[hidden] { display: none; }
.site-sponsors[data-position="sticky"] {
  --sponsor-track-height: calc(var(--site-sponsor-sticky-track-height, var(--site-sponsor-track-height)) * var(--site-sponsor-scale));
  position: fixed;
  top: auto;
  bottom: 0;
  height: calc(var(--site-sponsor-height) * var(--site-sponsor-scale) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(15, 10, 6, .96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 36px #0003;
}
.site-sponsors[data-position="hero"] {
  --sponsor-track-height: calc(var(--site-sponsor-hero-track-height, var(--site-sponsor-track-height)) * var(--site-sponsor-scale));
}
.site-sponsors[data-position="footer"] {
  --sponsor-track-height: calc(var(--site-sponsor-footer-track-height, var(--site-sponsor-track-height)) * var(--site-sponsor-scale));
}
.game-is-open .site-sponsors { visibility: hidden; }

.join-box {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
}

.join-copy {
  margin: 0;
  color: rgba(247, 242, 234, 0.75);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 1.75rem;
  color: rgba(247, 242, 234, 0.7);
  border-top: 1px solid rgba(200, 164, 93, 0.26);
}

.site-footer span:last-child {
  font-size: 0.9rem;
}

.footer-logo {
  width: clamp(132px, 16vw, 190px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  :root { --site-sponsor-scale: .56; }

  .player-card {
    grid-column: span 6;
  }

  .player-front {
    --player-figure-height: clamp(250px, 40vw, 340px);
  }

  .section-head,
  .two-column {
    grid-template-columns: 1fr;
  }

  .site-nav {
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 130;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    z-index: 120;
    display: none;
    width: min(340px, calc(100vw - 2rem));
    padding: 0.75rem;
    border: 1px solid rgba(200, 164, 93, 0.28);
    border-radius: 18px;
    background: rgba(15, 10, 6, 0.96);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(16px);
  }

  .nav-links.open {
    display: block;
  }

  .nav-links-panel {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  

  .nav-links-panel a {
    width: 100%;
    text-align: left;
  }
  

  .hero-content {
    gap: clamp(1.25rem, 3vw, 2.25rem);
  }

  .hero {
    padding-inline: clamp(1rem, 3vw, 2rem);
    padding-bottom: clamp(9rem, 20vw, 13rem);
  }

  .hero-characters {
    gap: clamp(0.15rem, 0.6vw, 0.6rem);
    --hero-character-width: clamp(119px, 24.5vw, 164px);
  }

}

@media (max-width: 850px) {
  :root { --site-sponsor-height: 88px; --site-sponsor-track-height: 44px; }
}

@media (max-width: 767px) {
  .site-nav,
  .container,
  .site-footer,
  .hero-copy {
    width: min(var(--container), calc(100% - 2rem));
  }

  .hero-copy {
    width: 100%;
    max-width: 44rem;
    margin: 0;
  }

  .hero-content {
    min-height: auto;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--site-sponsor-height) * var(--site-sponsor-scale) + 2rem);
    padding-bottom: 8.75rem;
  }

  .hero-logo {
    width: min(210px, 36.4vw);
  }

  .hero-dart {
    width: clamp(40px, 11vw, 52px);
  }

  .stats,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(26, 18, 12, 0.12);
    padding-right: 0;
    padding-bottom: 1.2rem;
  }

  .stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .player-card {
    grid-column: span 12;
  }

  .player-front {
    --player-figure-height: clamp(350px, 62vw, 280px);
  }

  .hero-characters {
    width: min(640px, calc(100% - 1rem));
    bottom: clamp(-2.1rem, -4.5vw, -1rem);
    gap: 0.2rem;
    --hero-character-width: clamp(119px, 24.5vw, 164px);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero {
    padding-bottom: 6.5rem;
  }

  .hero-logo-lockup {
    gap: 0.7rem;
  }

  .hero-characters {
    width: min(520px, calc(100% - 0.8rem));
  }

  .player-filters {
    flex-direction: column;
  }

  .filter-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .player-card {
    opacity: 1;
    transform: none;
  }
}
