
:root {
  --bg1: #12110f;
  --bg2: #22140d;
  --surface: #1c1411;
  --surface2: #251a14;
  --line: #4a3528;
  --text: #fff8ec;
  --muted: #d8c8b7;
  --accent: #ff8b2c;
  --accent2: #7b61ff;
  color-scheme: dark;
}
body[data-site="7"] {
  --bg1: #061411; --bg2: #102018; --surface: #0e1d18; --surface2: #14251d; --line: #27483c; --accent: #20d69b; --accent2: #f0c14a;
}
body[data-site="38"] {
  --bg1: #071209; --bg2: #19170c; --surface: #101a0f; --surface2: #172314; --line: #334326; --accent: #8cff66; --accent2: #ffcc57;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 70% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34rem),
    radial-gradient(circle at 10% 18%, color-mix(in srgb, var(--accent2) 12%, transparent), transparent 30rem),
    linear-gradient(145deg, var(--bg1), var(--bg2) 54%, #080705);
  color: var(--text);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg1) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 900; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.site-header nav a {
  padding: .65rem .8rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: .92rem;
}
.site-header nav a:hover { color: var(--text); background: color-mix(in srgb, var(--surface2) 80%, transparent); }
.hero {
  width: min(1500px, calc(100vw - 2rem));
  margin: 0 auto;
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(18rem, .8fr) minmax(32rem, 1.2fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem) 0;
}
.inner-hero { min-height: 70vh; }
.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.6rem, 11vw, 10rem);
  line-height: .82;
  letter-spacing: 0;
}
.inner-hero .hero-copy h1 { font-size: clamp(3.8rem, 8vw, 7.5rem); }
.hero-copy p {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.62;
}
.home-play-first {
  width: min(1500px, calc(100vw - 2rem));
  margin: 0 auto;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(17rem, .33fr) minmax(42rem, .67fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2.6rem) 0;
}
.home-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.3rem, 8vw, 8rem);
  line-height: .84;
  letter-spacing: 0;
}
.home-intro p {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.6;
}
.home-play-first .play-shell { width: 100%; }
.home-play-first .game-top {
  padding: clamp(1rem, 2vw, 1.4rem);
}
.home-play-first .game-top h2 {
  font-size: clamp(2.15rem, 4vw, 4rem);
}
.home-play-first .game-top p {
  line-height: 1.45;
  margin-bottom: 0;
}
.home-play-first .draft-layout {
  grid-template-columns: minmax(18rem, .95fr) minmax(21rem, 1.05fr);
  min-height: clamp(31rem, 58vh, 43rem);
}
.home-play-first .slot-panel,
.home-play-first .player-panel {
  padding: clamp(.9rem, 1.7vw, 1.25rem);
}
.home-play-first .slot-grid {
  grid-template-columns: repeat(3, minmax(5.6rem, 1fr));
  gap: .65rem;
}
.home-play-first .slot {
  min-height: 7.1rem;
  padding: .75rem;
}
.home-play-first .player-card {
  min-height: 5.9rem;
  padding: .72rem;
}
.home-play-first .player-card strong { font-size: .98rem; }
.home-play-first .player-grid { max-height: 28rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.4rem; }
.btn {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--line) 90%, white 8%);
  border-radius: 8px;
  padding: .95rem 1.2rem;
  font-weight: 950;
  font-size: .98rem;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
}
.btn.primary { background: var(--accent); color: #0c0806; border-color: transparent; }
.btn.ghost { background: color-mix(in srgb, var(--surface) 78%, transparent); color: var(--text); }
.hero-art {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-height: 32rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.play-band, .leaderboard-band, .wall-band, .content-band, .media-band, .related-band, .faq-band {
  width: min(1500px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.play-shell {
  background: color-mix(in srgb, var(--surface) 82%, black 8%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}
.game-top {
  padding: clamp(1.1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.game-top h2, .section-head h2, .media-band h2, .related-band h2, .copy-block h2, .faq-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: .95;
  margin: .2rem 0 .7rem;
}
.game-top p, .section-head p, .media-band p, .copy-block p, .faq-list p, .related-band p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.05rem;
}
.overline {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 950;
  font-size: .8rem;
}
.mode-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.mode-tab {
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--muted);
  border-radius: 999px;
  padding: .7rem .95rem;
  font-weight: 950;
  cursor: pointer;
}
.mode-tab.active { background: var(--accent); color: #0a0604; border-color: transparent; }
.draft-layout {
  display: grid;
  grid-template-columns: minmax(22rem, .9fr) minmax(26rem, 1.1fr);
  min-height: 36rem;
}
.slot-panel, .player-panel { padding: clamp(1rem, 3vw, 2rem); }
.slot-panel { border-right: 1px solid var(--line); }
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(7rem, 1fr));
  gap: .8rem;
}
.slot {
  min-height: 8.5rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, white 8%);
  border-radius: 8px;
  padding: 1rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface2) 90%, transparent), color-mix(in srgb, var(--surface) 70%, black 20%));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.slot.active { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); }
.slot strong { font-size: 1.45rem; }
.slot span { color: var(--muted); font-weight: 800; }
.player-panel { display: flex; flex-direction: column; gap: 1rem; }
.panel-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
.panel-row label { font-weight: 950; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; color: var(--accent); }
input {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface2) 70%, white 3%);
  color: var(--text);
  padding: 0 .9rem;
  font: inherit;
  font-weight: 800;
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  max-height: 34rem;
  overflow: auto;
  padding-right: .2rem;
}
.player-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface2) 72%, transparent);
  color: var(--text);
  border-radius: 8px;
  padding: .9rem;
  text-align: left;
  cursor: pointer;
  min-height: 6.8rem;
}
.player-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.player-card strong { display: block; font-size: 1.05rem; margin-bottom: .4rem; }
.player-card small { color: var(--muted); font-weight: 850; }
.stat-row { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .6rem; }
.stat-row span {
  border-radius: 999px;
  padding: .22rem .46rem;
  background: color-mix(in srgb, var(--bg1) 72%, white 5%);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}
.result-panel {
  margin-top: 1rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 8px;
  padding: 1rem;
  background: color-mix(in srgb, var(--surface2) 70%, transparent);
}
.result-panel strong { font-size: clamp(2rem, 4vw, 3.6rem); font-family: Georgia, serif; color: var(--accent); }
.share-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.leaderboard-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.3rem 0; }
.metric-card, .board-table, .wall-card, .copy-block, .wide-visual, .faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}
.metric-card { padding: 1.1rem; }
.metric-card strong { display: block; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.8rem); line-height: .9; }
.metric-card span { color: var(--muted); font-weight: 900; }
.board-row {
  display: grid;
  grid-template-columns: 4rem 1fr 7rem 7rem;
  gap: .8rem;
  padding: .95rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  align-items: center;
}
.board-row:last-child { border-bottom: 0; }
.board-row b { color: var(--accent); }
.wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.wall-card { padding: 1rem; }
.wall-card strong { display: block; margin-bottom: .55rem; }
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.copy-block { padding: clamp(1rem, 2vw, 1.5rem); }
.copy-block h3 { color: var(--accent2); font-size: 1rem; margin-top: 1.2rem; }
.media-band {
  display: grid;
  grid-template-columns: .55fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.wide-visual { overflow: hidden; margin: 0; }
.wide-visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.wide-visual figcaption { padding: .85rem 1rem; color: var(--muted); font-weight: 850; }
.related-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.related-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface2);
  font-weight: 900;
}
.faq-list { display: grid; gap: .7rem; background: transparent; border: 0; }
.faq-list details { padding: 1rem; }
.faq-list summary { cursor: pointer; font-weight: 950; }
.site-footer {
  width: min(1500px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0c0806;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-weight: 950;
  z-index: 50;
}
@media (max-width: 1100px) {
  .hero, .home-play-first, .draft-layout, .media-band { grid-template-columns: 1fr; }
  .slot-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero, .home-play-first { min-height: auto; }
  .hero-art { min-height: 22rem; }
}
@media (max-width: 760px) {
  .site-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .site-header nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .hero, .home-play-first, .play-band, .leaderboard-band, .wall-band, .content-band, .media-band, .related-band, .faq-band, .site-footer { width: min(100vw - 1rem, 100%); }
  .hero-copy h1, .home-intro h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .home-play-first { gap: 1rem; padding-top: 1rem; }
  .game-top, .panel-row, .share-tools, .leaderboard-wrap, .content-grid, .wall-grid, .related-links { grid-template-columns: 1fr; }
  .slot-grid, .home-play-first .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .slot { min-height: 7rem; }
  .player-grid { grid-template-columns: 1fr; max-height: none; }
  .board-row { grid-template-columns: 2.5rem 1fr 4.8rem 4.8rem; font-size: .9rem; }
  .site-header nav a { padding: .62rem .7rem; background: color-mix(in srgb, var(--surface2) 54%, transparent); text-align: center; }
}
