/* AASN hub styles — industrial scoreboard look shared with AAHL.
 * Desktop/laptop: the whole home page fits one screen (no scrolling).
 * Phones: the same blocks stack and scroll normally. */
:root {
  --bg: #0B0D10;
  --panel: #12161B;
  --panel-2: #0F1216;
  --border: #1F252C;
  --border-2: #2E353D;
  --ice: #00D4FF;
  --amber: #FFB800;
  --text: #E8ECF0;
  --text-2: #C9D1D9;
  --dim: #9AA4AF;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); min-height: 100vh; }
a { color: var(--ice); }
.mono { font-family: var(--font-mono); }
.dim { color: var(--dim); }
.ice { color: var(--ice); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.hdr { background: var(--panel-2); border-bottom: 1px solid var(--border); }
.hdr-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.brand-mark { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: 2px; line-height: 1; }
.brand-sub { font-size: 10px; letter-spacing: 1.5px; color: var(--dim); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--ice); }
.btn-outline { min-height: 40px; padding: 0 18px; border: 1px solid var(--ice); background: transparent; color: var(--ice); border-radius: 4px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }

/* Page body */
.main { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; padding-bottom: 20px; }

/* Hero strip: one line, not a full screen */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.eyebrow { font-size: 11px; letter-spacing: 3px; color: var(--amber); margin-bottom: 6px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.2vw, 54px); line-height: 0.95; letter-spacing: 1px; }
.hero p { max-width: 520px; font-size: 15px; line-height: 1.45; color: #B4BDC7; }

/* Pool cards: AAHL · AABL · Death Pool in one row */
.pools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.league { background: var(--panel); border: 1px solid var(--border); border-top: 4px solid var(--c); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.league-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.league-abbr { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--c); }
.league-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 1px; color: var(--text-2); }
.tag { padding: 5px 9px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.tag-live { background: #0E3A2A; color: #5BE3A4; }
.tag-soon { background: #3A2E0A; color: var(--amber); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat span { font-size: 10px; letter-spacing: 1px; }
.stat b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-note { font-size: 14px; line-height: 1.4; color: var(--dim); }
.btn-solid, .btn-ghost { margin-top: auto; min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 4px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 1.5px; }
.btn-solid { background: var(--c); color: var(--bg); }
.btn-ghost { border: 1px solid var(--c); color: var(--c); }

/* Death Pool card (flatline) */
.dp-flat { --dp: #8BE37A; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #07110A; border: 1px solid #1E3A24; border-top: 4px solid var(--dp); border-radius: 6px; text-decoration: none; color: var(--text); box-shadow: inset 0 0 40px rgba(139,227,122,.08); min-width: 0; }
.dp-flat:focus-visible { outline: 2px solid var(--dp); outline-offset: 4px; }
.dp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dp-title { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--dp); }
.dp-sub { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 1px; color: var(--text-2); }
.dp-bpm { font-size: 10px; color: var(--dp); text-align: right; line-height: 1.3; transition: color .25s; }
.dp-bpm-n { font-size: 22px; font-weight: 700; }
.dp-bpm-n::after { content: '72'; }
.dp-monitor { position: relative; height: 54px; background: #040A06; border: 1px solid #16301C; border-radius: 4px; overflow: hidden; flex: none; }
.dp-monitor svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dp-monitor path { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.dp-alive path { stroke: var(--dp); stroke-dasharray: 900; animation: dpBeat 2.4s linear infinite; transition: opacity .25s; }
.dp-dead path { stroke: #FF5C5C; }
.dp-dead { opacity: 0; transition: opacity .25s; }
@keyframes dpBeat { 0% { stroke-dashoffset: 900; } 100% { stroke-dashoffset: 0; } }
.dp-flat:hover .dp-alive, .dp-flat:focus-visible .dp-alive { opacity: 0; }
.dp-flat:hover .dp-dead, .dp-flat:focus-visible .dp-dead { opacity: 1; }
.dp-flat:hover .dp-bpm, .dp-flat:focus-visible .dp-bpm { color: #FF5C5C; }
.dp-flat:hover .dp-bpm-n::after, .dp-flat:focus-visible .dp-bpm-n::after { content: '0'; }
.dp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dp-stats[hidden], .dp-lead[hidden] { display: none; }
.dp-stats div { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 7px 10px; display: flex; flex-direction: column; gap: 1px; }
.dp-stats span { font-size: 10px; letter-spacing: .5px; }
.dp-stats b { font-size: 17px; color: var(--text); }
.dp-lead { font-size: 11px; color: var(--text-2); line-height: 1.5; white-space: pre-line; }
.dp-btn { margin-top: auto; min-height: 46px; display: flex; align-items: center; justify-content: center; background: var(--dp); color: #07110A; border-radius: 4px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 1.5px; }

/* Hall of Champions: compact panel */
.hall { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.hall-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hall-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: 1.5px; line-height: 1; }
.hall-title small { margin-left: 10px; font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: 1px; color: var(--dim); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { min-height: 36px; padding: 0 16px; border-radius: 4px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 1.5px; background: transparent; color: var(--text-2); border: 1px solid var(--border-2); }
.tab.active { background: var(--ice); color: var(--bg); border-color: var(--ice); }
.champs { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; }
.champ-row { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.champ-season { flex: 0 0 110px; display: flex; flex-direction: column; gap: 2px; }
.champ-season span { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 2px; }
.champ-season b { font-size: 18px; }
.champ-places { flex: 999 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.place { border-radius: 4px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; min-width: 0; }
.place span { font-weight: 700; font-size: 15px; }
.place em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p1 { background: #1E1906; border: 1px solid #5A4508; color: #FFE3A3; }
.p1 span { color: var(--amber); }
.p2 { background: #161A1F; border: 1px solid var(--border-2); }
.p2 span { color: var(--text-2); }
.p3 { background: #1A1410; border: 1px solid #3D2B1E; }
.p3 span { color: #E0A47A; }

/* Footer */
.ftr { padding-top: 10px; padding-bottom: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--dim); border-top: 1px solid var(--border); }

/* One screen on desktop/laptop: header + hero + cards + hall + footer fill the viewport. */
@media (min-width: 900px) and (min-height: 620px) {
  body { height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .main, .ftr { width: 100%; }
  .main { min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .champs { max-height: 132px; }
}
@media (min-width: 900px) and (min-height: 620px) and (max-height: 820px) {
  .hero { min-height: 104px; }
  .main { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .hero p { display: none; }
  .league, .dp-flat { padding: 14px; gap: 10px; }
  .dp-monitor { height: 40px; }
}

/* Tablets/phones: stack and scroll */
@media (max-width: 899px) {
  .pools { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; }
  /* Phones: active pools first — Death Pool moves above the AABL (2nd card). */
  .pools > :nth-child(2) { order: 3; }
}
@media (max-width: 520px) {
  .champ-places { grid-template-columns: 1fr; }
  .league-abbr, .dp-title { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { .dp-alive path { animation: none; stroke-dasharray: none; } }
[hidden].btn-ghost, [hidden].btn-solid { display: none; }
.btn-solid, .btn-ghost, .dp-btn { gap: 10px; }
.card-logo { position: relative; flex: 1 1 0; min-height: 90px; }
.card-logo img, .card-logo svg { position: absolute; inset: 0; margin: auto; height: 100%; max-height: 190px; width: auto; max-width: 80%; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.card-logo img { border-radius: 8px; }
.card-logo img.round { border-radius: 50%; aspect-ratio: 1; }
.card-logo svg { aspect-ratio: 1; }
.league, .dp-flat { min-height: 0; }
@media (max-width: 899px) { .card-logo { flex: none; height: 150px; } }

/* AASN logo: header mark + hero banner */
.brand { flex-direction: row; align-items: center; gap: 10px; }
.brand-txt { display: flex; flex-direction: column; }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.hero { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; padding: 18px 22px; min-height: 128px; align-items: center;
  background: linear-gradient(90deg, rgba(11,13,16,1) 0%, rgba(11,13,16,.96) 60%, rgba(11,13,16,.2) 80%, rgba(11,13,16,0) 100%), url(img/aasn-hero.jpg) right center / auto 112% no-repeat, #0B0D10; padding-right: 260px; }
.hero > * { position: relative; }
.hero p { text-shadow: 0 1px 6px rgba(0,0,0,.8); }
@media (max-width: 899px) {
  .hero { background: linear-gradient(180deg, rgba(11,13,16,0) 0%, rgba(11,13,16,0) 38%, rgba(11,13,16,.95) 62%), url(img/aasn-hero.jpg) center top / 100% auto no-repeat, #0B0D10; padding: 175px 18px 16px; }
}
