/* Shared styles for the public pages: home, rules, your league, contact.
   The app (app.html) has its own styles and does not use this file. */

:root {
  --ink: #08090e;
  --ink-2: #0e1018;
  --ink-3: #151822;
  --ember: #ff7a18;
  --ember-hot: #ffb347;
  --ember-deep: #c2410c;
  --flame-red: #e0341f;
  --text: #f4efe6;
  --muted: rgba(244, 239, 230, .66);
  --faint: rgba(244, 239, 230, .40);
  --line: rgba(255, 122, 24, .22);
  --line-soft: rgba(244, 239, 230, .10);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Barlow, system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ember); }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 32px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
/* Inner pages get a solid bar instead of floating over a hero. */
.site-header.solid {
  position: sticky; top: 0;
  background: rgba(8, 9, 14, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ember);
}
.brand img { height: 46px; width: auto; filter: drop-shadow(0 0 10px rgba(255,122,24,.35)); }
.site-header.solid .brand img { height: 40px; }
.brand span {
  font-family: Cinzel, Georgia, serif; font-weight: 900;
  font-size: 26px; letter-spacing: .01em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--ember-hot), var(--ember) 55%, var(--ember-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-header.solid .brand span { font-size: 22px; }
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  color: var(--text); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ember); border-bottom-color: var(--ember); }
.head-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: rgba(8,9,14,.55); color: var(--text);
  border: 1.5px solid rgba(244,239,230,.25); border-radius: 10px; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 28px;
  border: 1.5px solid var(--ember); border-radius: 999px;
  background: rgba(8,9,14,.55); color: var(--ember);
  font: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--ember); color: var(--ink); box-shadow: 0 0 28px rgba(255,122,24,.55); }
.btn svg { width: 16px; height: 16px; }
.btn.big { min-height: 54px; padding: 14px 40px; font-size: 15px; box-shadow: 0 0 22px rgba(255,122,24,.25); }
.btn.fill { background: var(--ember); color: var(--ink); }
.btn.fill:hover { background: var(--ember-hot); border-color: var(--ember-hot); }
.btn:disabled { opacity: .5; cursor: wait; }

/* ---------- Bands and type ---------- */
section.band { padding: 88px 28px; border-top: 1px solid var(--line); }
.band.alt { background: var(--ink-2); }
.wrap { max-width: 1080px; margin: 0 auto; }
.eyebrow, h2.eyebrow {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ember);
}
.title {
  margin: 0 0 20px;
  font-family: Cinzel, Georgia, serif; font-weight: 700;
  font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12;
}
.lede { margin: 0 0 40px; max-width: 60ch; font-size: 18px; line-height: 1.65; color: var(--muted); }

/* Page hero for inner pages */
.page-hero {
  position: relative; overflow: hidden;
  padding: 72px 28px 64px; text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255,122,24,.16), transparent 70%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero img.mark { width: 110px; margin: 0 auto 10px; filter: drop-shadow(0 0 16px rgba(255,122,24,.45)); }
.page-hero h1 {
  margin: 0;
  font-family: Cinzel, Georgia, serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 6.4vw, 72px); line-height: 1.05;
  background: linear-gradient(180deg, var(--ember-hot) 10%, var(--ember) 55%, var(--ember-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(255,110,20,.35));
}
.page-hero p {
  margin: 18px auto 0; max-width: 56ch;
  font-size: 18px; line-height: 1.6; color: var(--muted);
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  padding: 28px 26px 30px;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,122,24,.06), transparent 60%);
}
.card .n {
  font-family: Cinzel, Georgia, serif; font-weight: 900;
  font-size: 40px; line-height: 1;
  background: linear-gradient(180deg, var(--ember-hot), var(--ember-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card h3, .card h4 { margin: 14px 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat { padding: 24px 26px; border-left: 2px solid var(--ember); }
.stat .v { font-family: Cinzel, Georgia, serif; font-weight: 900; font-size: 46px; line-height: 1; }
.stat .k {
  margin-top: 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}

.center { text-align: center; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.center .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 28px calc(36px + env(safe-area-inset-bottom, 0px));
  color: var(--faint); font-size: 13px;
}
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 44px; filter: drop-shadow(0 0 10px rgba(255,122,24,.35)); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--ember); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .site-header { padding-left: 16px; padding-right: 16px; }
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 12px; right: 12px; margin-top: 4px;
    flex-direction: column; gap: 0;
    background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px;
    padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.5);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 14px; border-bottom: 1px solid var(--line-soft); border-radius: 8px; }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a[aria-current="page"] { background: rgba(255,122,24,.10); border-bottom-color: var(--line-soft); }
  .brand img { height: 38px; }
  .brand span { font-size: 20px; }
  .site-header.solid .brand img { height: 34px; }
  .site-header.solid .brand span { font-size: 18px; }
  .head-actions .btn { min-height: 40px; padding: 9px 16px; font-size: 12px; letter-spacing: .12em; }
  section.band { padding: 64px 16px; }
  .page-hero { padding: 56px 16px 48px; }
  .site-footer { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .head-actions .btn svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Games (sport pages, game picker) ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.game {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,122,24,.07), transparent 55%), var(--ink-2);
}
.game.augury { background: radial-gradient(90% 60% at 50% 0%, rgba(255,122,24,.14), transparent 70%), #08090e; border-color: rgba(255,122,24,.35); }
.game.soon { opacity: .78; }
.game .logo { height: 92px; width: auto; align-self: flex-start; margin: 0 0 14px; filter: drop-shadow(0 0 12px rgba(255,122,24,.35)); }
.game h3 {
  margin: 0 0 6px; font-family: Cinzel, Georgia, serif; font-weight: 900; text-transform: uppercase;
  font-size: 28px; line-height: 1.1;
  background: linear-gradient(180deg, var(--ember-hot), var(--ember) 55%, var(--ember-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.game .kicker { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.game p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.game ul { margin: 0 0 20px; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.game li::marker { color: var(--ember); }
.game .chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line-soft); color: var(--faint);
}
.chip.live { border-color: var(--ember); color: var(--ember); }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.game .cta-row { margin-top: auto; padding-top: 6px; }
.game .btn { min-height: 42px; padding: 10px 20px; font-size: 13px; }

/* Rules: switch between games */
.rules-switch { display: flex; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.rules-switch a {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-soft);
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.rules-switch a[aria-current="page"] { border-color: var(--ember); color: var(--ember); background: rgba(255,122,24,.08); }

/* Home: sport tiles are links */
a.sport { text-decoration: none; color: inherit; }
a.sport:hover b { color: var(--ember-hot); }

/* ---------- Nav groups: Dynasty and The Augury, each with Rules and Play ---------- */
.nav-group { position: relative; display: flex; }
.nav-group .nav-top::after { content: ""; display: inline-block; margin-left: 7px; vertical-align: 3px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.nav-sub {
  display: none; position: absolute; top: 100%; left: -14px; z-index: 30; min-width: 170px;
  flex-direction: column; padding: 8px; margin-top: 6px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
/* A bridge so the menu doesn't close crossing the gap. */
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: flex; }
.site-nav .nav-sub a { padding: 10px 12px; border: 0; border-radius: 8px; font-size: 12px; }
.site-nav .nav-sub a:hover { background: rgba(255,122,24,.10); }
@media (max-width: 860px) {
  .nav-group { flex-direction: column; }
  .nav-group .nav-top::after { display: none; }
  .nav-sub { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; padding: 0 6px 8px;
    background: none; border: 0; box-shadow: none; min-width: 0; }
  .nav-sub::before { display: none; }
  .site-nav .nav-sub a { padding: 7px 12px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 11px; color: var(--muted); }
}

/* ---------- Sign in and starting a league ---------- */
.head-link {
  color: var(--text); text-decoration: none; white-space: nowrap;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 4px;
}
.head-link:hover { color: var(--ember); }
.hero-links {
  position: relative; display: flex; gap: 12px; justify-content: center; align-items: center;
  margin: 14px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.hero-links a { color: var(--muted); text-decoration: none; padding: 8px 2px; }
.hero-links a:hover { color: var(--ember); }
.hero-links span { color: var(--faint); }
.game .rules-link {
  align-self: flex-start; margin-top: 12px; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.game .rules-link:hover { color: var(--ember); }
.game .cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) {
  .head-link { font-size: 12px; letter-spacing: .1em; }
}

/* ---------- Enter the Arena: account panel ---------- */
section.acct-band { padding-top: 40px; padding-bottom: 56px; }
.acct { max-width: 640px; margin: 0 auto; }
.acct-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px 22px; box-shadow: 0 0 40px rgba(255,122,24,.07);
}
.acct-card h2 { margin: 0 0 6px; font-family: Cinzel, Georgia, serif; font-size: 26px; color: var(--ember); }
.acct-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.acct-h { margin: 22px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--text); }
.acct-tabs { display: flex; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid var(--line-soft); }
.acct-tabs button {
  flex: 1; background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 12px 6px; cursor: pointer;
}
.acct-tabs button[aria-selected="true"] { color: var(--ember); border-bottom-color: var(--ember); }
.acct-form { display: flex; flex-direction: column; gap: 14px; }
.acct-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.acct-form input[type=text], .acct-form input[type=email], .acct-form input[type=password], .acct-form select, .acct-invites input {
  font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--text);
  background: var(--ink); border: 1.5px solid var(--line-soft); border-radius: 10px; padding: 11px 13px; min-height: 46px; width: 100%;
}
.acct-form input:focus, .acct-form select:focus { outline: none; border-color: var(--ember); }
.acct-form .acct-check { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); }
.acct-check input { width: 18px; height: 18px; accent-color: var(--ember); }
.acct-check small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.acct-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.acct-go { width: 100%; }
.acct-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.acct-link { background: none; border: none; padding: 6px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; cursor: pointer; }
.acct-link:hover { color: var(--ember); }
.acct-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.acct-err { margin: 0; min-height: 0; font-size: 14px; color: #ff9b6b; }
.acct-err:empty { display: none; }
.acct-leagues, .acct-invites { list-style: none; margin: 0; padding: 0; }
.acct-leagues li, .acct-invites li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.acct-leagues li div { display: flex; flex-direction: column; min-width: 0; }
.acct-leagues b { font-size: 17px; }
.acct-leagues small { color: var(--muted); font-size: 13px; }
.acct-game { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ember); }
.acct-invites li b { flex: 0 0 110px; font-size: 14px; }
.acct-invites input { min-height: 40px; font-size: 13px; padding: 8px 10px; }
.btn.small-btn { min-height: 40px; padding: 8px 18px; font-size: 12px; }
.acct-start { margin-top: 18px; }
.acct-form.create { margin-top: 8px; }
.game-pick { display: grid; gap: 10px; }
.game-pick button {
  display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
  background: var(--ink); color: var(--text); border: 1.5px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; font: inherit;
}
.game-pick button b { font-size: 15px; letter-spacing: .04em; }
.game-pick button small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.game-pick button[aria-checked="true"] { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember) inset; }
.game-pick button[aria-checked="true"] b { color: var(--ember); }
@media (max-width: 520px) {
  .acct-card { padding: 20px 16px 18px; border-radius: 14px; }
  .acct-invites li { flex-wrap: wrap; }
  .acct-invites li b { flex-basis: 100%; }
  .acct-invites li input { flex: 1; }
}

/* Room for Sign in beside Enter the Arena: keep nav items on one line and
   tighten the spacing on mid-width screens. */
.site-nav a, .nav-top { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1360px) {
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 12px; letter-spacing: .12em; }
  .site-header { padding-left: 22px; padding-right: 22px; gap: 14px; }
  .brand span { font-size: 22px; }
  .head-actions .btn { padding: 10px 18px; font-size: 12px; letter-spacing: .12em; }
  .head-link { font-size: 12px; letter-spacing: .12em; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .brand span { display: none; }
}
.acct [hidden] { display: none !important; }
