/* The home page. The whole site's grid, type scale, surfaces and buttons live
   in assets/shell/base.css, which index.html links in before this file. What is
   here is the home page's own: the hero, the bands, the chat, the roster scene
   and the two-up. */

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.center { text-align: center; }

/* The home page speaks louder than the interior pages: the hero title and the
   band headings step up from the shared scale, everything else keeps it. */
.hero-inner h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; }
h1 em { font-style: normal; color: var(--goldsoft); display: inline-block; }
.band h2, .closer h2 { font-size: clamp(25px, 2.8vw, 38px); line-height: 1.14; margin: 0 0 14px; }
h2.tight { margin-bottom: 18px; }
h2.big { font-size: clamp(30px, 4vw, 50px); margin-bottom: 12px; }

.body { color: #b3b9c9; font-size: 16px; margin: 0 0 16px; max-width: 60ch; }
.body.small { font-size: 13.5px; }
.body.narrow { max-width: 42ch; font-size: 14.5px; }
.body a, .lockermore a { color: var(--goldsoft); text-decoration: none; border-bottom: 1px solid rgba(240,217,168,.35); }
.body a:hover, .lockermore a:hover { border-bottom-color: var(--goldsoft); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(94vh, 860px); display: flex; align-items: center;
  overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg canvas { position: absolute; left: 63%; top: 52%; width: 168%; height: auto;
  transform: translate(-50%, -50%); opacity: .62;
  filter: blur(2.5px) saturate(1.15) contrast(1.05); }
.hero-scrim { position: absolute; inset: 0;
  background:
    radial-gradient(100% 88% at 10% 46%, rgba(6,7,12,.985) 30%, rgba(6,7,12,.80) 54%, rgba(6,7,12,.26) 80%),
    linear-gradient(90deg, rgba(6,7,12,.95) 0%, rgba(6,7,12,.55) 42%, rgba(6,7,12,.05) 72%),
    linear-gradient(180deg, rgba(6,7,12,.9) 0%, rgba(6,7,12,.10) 36%, rgba(6,7,12,.94) 100%); }
.hero-inner { position: relative; width: 100%; margin: 0 auto; padding: 96px var(--gutter) 120px;
  max-width: calc(var(--maxw) + var(--gutter) * 2); }
.eyebrow { display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font: 600 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .18em; color: var(--dim); margin: 0 0 20px; }
.live { display: inline-flex; align-items: center; gap: 7px; color: #7fe0a4; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #4ddc8a;
  box-shadow: 0 0 0 0 rgba(77,220,138,.7); animation: pulse 2.1s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(77,220,138,0); } 100% { box-shadow: 0 0 0 0 rgba(77,220,138,0); } }
.tagline { font: 600 clamp(17px, 1.9vw, 23px)/1.35 ui-serif, Georgia, serif; color: var(--gold);
  max-width: 26ch; margin: 14px 0 0; letter-spacing: -.01em; }
.lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: #c2c8d8; max-width: 54ch; margin: 20px 0 30px; }

.paste { background: rgba(13,16,24,.86); border: 1px solid #2b3145; border-radius: 12px;
  padding: 16px 18px; max-width: 660px; backdrop-filter: blur(8px); }
.paste.solo { margin: 22px auto 0; }
.pastelabel { font: 600 10px/1 ui-monospace, Menlo, monospace; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 11px; }
.pasterow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pasterow code { flex: 1 1 340px; font: 13.5px/1.5 ui-monospace, Menlo, monospace; color: var(--goldsoft);
  background: #090b12; border: 1px solid #232838; border-radius: 7px; padding: 11px 13px; word-break: normal; overflow-wrap: break-word; }
.pastefoot { margin: 12px 0 0; font-size: 12.5px; color: var(--dim); }
.findrow { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; max-width: 660px; }
.findrow input { flex: 1 1 240px; background: rgba(10,12,19,.8); border: 1px solid #232838; border-radius: 7px;
  padding: 11px 13px; color: var(--ink); font: 14px inherit; }
.findrow input::placeholder { color: #6b7186; }

.hero-stats { position: absolute; right: 26px; bottom: 22px; display: flex; gap: 26px;
  font: 11px/1.5 ui-monospace, Menlo, monospace; color: var(--dim); text-align: right; }
.hero-stats b { display: block; color: var(--goldsoft); font: 600 19px/1.2 ui-serif, Georgia, serif; }

/* ---------- bands ---------- */
.band { padding: 84px 0; border-bottom: 1px solid var(--line); }
.band.alt { background: var(--bg2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.two > *, .two.wide-left > *, .twoup > * { min-width: 0; }
.two.wide-left { grid-template-columns: 1.5fr 1fr; align-items: start; }
.bandhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  flex-wrap: wrap; margin-bottom: 30px; }
.beats { list-style: none; padding: 0; margin: 22px 0 0; }
.beats li { padding: 11px 0 11px 20px; border-left: 2px solid #23283a; color: #a9b0c2; font-size: 14.5px; }
.beats li b { color: var(--ink); font-weight: 600; }
.beats li:hover { border-left-color: var(--gold); }

/* ---------- chat ---------- */
.chat { background: #0a0c13; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 26px 60px -30px rgba(0,0,0,.9); }
.chathead { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #10131c;
  border-bottom: 1px solid var(--line); font: 11px ui-monospace, monospace; color: #626982; }
.chathead span:last-child { margin-left: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.r { background: #e05c58; } .dot.y { background: #dfa73f; } .dot.g { background: #57b95c; }
.chatbody { padding: 16px; min-height: 316px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 11px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }
.msg.you { align-self: flex-end; background: #1d2740; border: 1px solid #2b3855; color: #dbe3f4; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.msg.ai { align-self: flex-start; background: #12151f; border: 1px solid #222738; color: #c3cadb; }
.msg.ai b { color: var(--goldsoft); font-weight: 600; }
.caret::after { content: '▍'; color: var(--gold); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- roster ---------- */
.scene { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); background: #0b0d14; }
.scene img { display: block; width: 100%; height: auto; }
.scene::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 70px rgba(6,7,12,.5); pointer-events: none; }
.scenebar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; }
.scenebar p { font-size: 13px; color: var(--dim); margin: 0; }
.explore { font: 600 13px/1 ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--goldsoft); background: none; border: 0; border-bottom: 1px solid rgba(240,217,168,.4); padding: 0 0 8px; cursor: pointer; white-space: nowrap; }
.explore span { display: inline-block; margin-left: 6px; transition: transform .25s ease; }
.explore:hover { border-bottom-color: var(--goldsoft); }
.explore[aria-expanded="true"] span { transform: rotate(135deg); }
.lockerwrap { margin-top: 26px; animation: lockerIn .35s ease; }
@keyframes lockerIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- two-up panels ---------- */
.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.panel figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 2px 4px 10px; }
.tag { font: 600 10px/1 ui-monospace, Menlo, monospace; letter-spacing: .18em; color: var(--gold); }
.panel figcaption small { color: var(--dim); font-size: 11.5px; }
.canvasfit { border-radius: 7px; overflow: hidden; background: #05060b; }
.canvasfit canvas { display: block; width: 100%; height: auto; }
.canvasfit.score { background: #07080e; padding: 6px 4px; }
.panelbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 0 2px; }
.panelbar .mono { font-size: 11px; }

/* ---------- standings ---------- */
.tablewrap { border: 1px solid var(--line); border-radius: 11px; overflow-x: auto; background: var(--panel); -webkit-overflow-scrolling: touch; }
table.standings { min-width: 420px; }
table.standings { width: 100%; border-collapse: collapse; font-size: 13px; }
.standings th { text-align: left; font: 600 10px/1 ui-monospace, monospace; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim); padding: 12px 14px; background: #11141d; }
.standings td { padding: 11px 14px; border-top: 1px solid #161a26; }
.standings tr:hover td { background: #12151f; }
.standings .rank { color: var(--dim); width: 34px; font-family: ui-monospace, monospace; }
.standings .team { font-weight: 600; }
.standings .rating { font-family: ui-monospace, monospace; color: var(--goldsoft); }
.standings .rec { font-family: ui-monospace, monospace; color: var(--dim); }
.pill { display: inline-block; background: #171b28; border: 1px solid #262c3c; border-radius: 5px;
  padding: 3px 7px; margin: 2px 3px 2px 0; font: 11px ui-monospace, monospace; color: #aab1c4; }
.house { font: 9px ui-monospace, monospace; color: #6a7189; border: 1px solid #262c3c;
  border-radius: 4px; padding: 1px 4px; margin-left: 6px; vertical-align: middle; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 16px 18px; margin-bottom: 16px; }
/* The two small cards sit beside the heading; the ladder gets the full width. */
.bandhead:has(.ladderside) { align-items: flex-start; }
.ladderside { display: flex; gap: 16px; align-items: flex-start; flex: 0 1 430px; }
.ladderside .card { flex: 1 1 0; min-width: 0; margin-bottom: 0; }
/* The countdown reads better as a line under the heading than as a card that
   has to stretch to match the results beside it. */
.nextline { margin: 0; color: var(--dim); font-size: 14px; max-width: 46ch; }
.nextline b { color: var(--goldsoft); font: 700 22px/1 ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; vertical-align: -1px; }
#ladder { margin-top: 22px; }
@media (max-width: 980px) {
  .ladderside { flex: 1 1 100%; flex-wrap: wrap; }
  .ladderside .card { flex: 1 1 260px; }
}
.card.next { border-color: #34302a; background: linear-gradient(160deg, #14110c, #0e111a 60%); }
.countdown { font: 600 42px/1 ui-serif, Georgia, serif; color: var(--goldsoft); margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.results { list-style: none; margin: 0; padding: 0; }
.results li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #161a26; font-size: 13px; }
.results li:first-child { border-top: 0; }
.results li.empty { display: block; color: var(--dim); }
.results .who { color: var(--ink); }
.results .meta { color: var(--dim); font: 11px ui-monospace, monospace; white-space: nowrap; }

/* ---------- closer ---------- */
.closer { padding: 96px 0 104px; background:
  radial-gradient(70% 130% at 50% 0%, #16120a 0%, var(--bg) 62%); }
.closer .body { margin: 0 auto 6px; }
.finefoot { color: var(--dim); font-size: 12.5px; margin-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .two, .two.wide-left, .twoup { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .hero-inner { padding: 64px 20px 84px; }
  .scenebar { flex-wrap: wrap; align-items: flex-start; }
  .scenebar p { flex: 1 1 100%; }
  .band { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live i { animation: none; }
  .caret::after { animation: none; }
}
