/* Epic Battles lobby, catalog and account pages share the arena's red and indigo stage lighting. */
@font-face {
  font-family: "Epic Battles Display";
  src: url("/playtests/theme-barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

html:has(> body[data-site-theme="fight-night"]:not(:has(.arena-app))) { background: #100e16; }

body[data-site-theme="fight-night"]:not(:has(.arena-app)) {
  --fight-ink: #fff4ef;
  --fight-muted: #c6bacb;
  --fight-hot: #ff9a71;
  --fight-cool: #c5b9ff;
  --fight-line: #504158;
  --fight-display: "Epic Battles Display", "Arial Narrow", "Segoe UI", sans-serif;
  --fight-surface: linear-gradient(125deg, #251e30, #19141e 72%);
  --fight-stage: url("/tabletop/assets/epic_battles/arena.webp");
  --fight-signal: linear-gradient(90deg, #9381ff, #4c3768 52%, #ee6548);
  --bg: #100e16;
  --panel: #1b1622;
  --panel2: #282033;
  --line: var(--fight-line);
  --muted: var(--fight-muted);
  --teal: var(--fight-hot);
  --teal-dark: #332130;
  --amber: #ffd296;
  --site-bg: var(--bg);
  --site-panel: var(--panel);
  --site-border: var(--fight-line);
  --site-accent: var(--fight-hot);
  --site-muted: var(--fight-muted);
  --site-text: var(--fight-ink);
  min-height: 100vh;
  color: var(--fight-ink);
  background:
    radial-gradient(ellipse at 1% 10%, #33274872, transparent 58%),
    radial-gradient(ellipse at 100% 22%, #4a232850, transparent 54%),
    var(--bg);

  & :is(h1, h2, h3, .brand, .eyebrow, .little-label) { font-family: var(--fight-display); }
  & :is(h1, h2) { text-transform: uppercase; letter-spacing: .015em; }
  & :is(.eyebrow, .little-label, .brand-sub) { color: var(--fight-hot); }
  & :is(.status-dot, .live-dot) { background: var(--fight-hot); }
  & :is(.discovery-intro p, .hero-copy > p, .discovery-panel p) { color: var(--fight-muted); }

  & .site-header {
    background: var(--fight-signal) bottom / 100% 2px no-repeat, #140f1a;
    border-color: transparent;
  }
  & .site-header nav a { white-space: nowrap; color: var(--fight-muted); }
  & .site-header nav a:is(:hover, .active), & .brand { color: var(--fight-ink); }
  & .site-header nav a.active::after { background: var(--fight-hot); }
  & .game-brand { max-width: none; white-space: nowrap; }

  & :is(.quests-panel, .battle-pass, .saved-deck-shelf, .product-card, .pass-tier, .pass-trail-card, .discovery-panel,
        .modal, .history-pack, .lobby-loading-reserve, .empty, .deck-builder, .card-artwork, .card-rules,
        .card-set-panel, .pass-spotlight, .match-row) {
    color: var(--fight-ink);
    border: 1px solid var(--fight-line);
    border-radius: 5px;
    background: var(--fight-surface);
    box-shadow: inset 2px 0 #9f88d047, 0 8px 24px #08060c60;
  }
  & :is(.quest-row, .saved-deck-tile, .card-details > div, .pass-summary-reward, .first-run) {
    background: var(--panel2);
    border-color: var(--fight-line);
    border-radius: 5px;
  }
  & .quest-bar > span { background: var(--fight-signal); }
  & :is(.text-button, .card-set-action, .product-price, .quest-reward) { color: var(--fight-hot); }
  & :is(.count-badge, .tag, .avatar) { color: #19101d; background: var(--fight-cool); }
  & :is(input, select, .search-field) { background: #100d17; color: var(--fight-ink); border-color: var(--fight-line); }
  & .search-field input { background: transparent; }
  & :is(.header-menu a, .card-set-label a, .card-set-panel a) { color: var(--fight-cool); }

  & :is(.primary, .secondary, .discovery-button) {
    border-radius: 4px;
    font-family: var(--fight-display);
    font-size: 1.05rem;
    letter-spacing: .045em;
    text-transform: uppercase;
  }
  & :is(.primary, .discovery-button) {
    background: linear-gradient(105deg, #ffb18b, #fe926c);
    border: 1px solid #ffc6a6;
    color: #271019;
    box-shadow: inset 0 -2px #74284142;
  }
  & :is(.primary, .discovery-button):hover:not(:disabled) { background: #ffc0a1; }
  & .secondary { background: #20172ae8; color: var(--fight-ink); border-color: #7e678d; }
  & .secondary:hover:not(:disabled) { background: #352642; border-color: var(--fight-cool); }
  & :is(a, button, input, select):focus-visible { outline: 2px solid #ffbc90; outline-offset: 3px; }

  & .lobby .hero {
    min-height: 330px;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    border: 1px solid #745064;
    border-radius: 6px;
    align-items: center;
    background:
      var(--fight-signal) top / 100% 3px no-repeat,
      linear-gradient(90deg, #140d19 0%, #140d19ed 29%, #140d1970 60%, #1c0d1e12 100%),
      var(--fight-stage) center 51% / cover,
      #25182f;
    box-shadow: 0 22px 46px #08060cc2;
  }
  & .lobby .hero::after { display: none; }
  & .lobby .hero-copy { padding: clamp(22px, 4vw, 55px); }
  & .hero h1 {
    font-size: clamp(3.7rem, 7.1vw, 7.5rem);
    line-height: .84;
    letter-spacing: -.02em;
    font-weight: 700;
    font-style: italic;
    font-synthesis: style;
    text-shadow: 4px 4px #0c0811;
  }
  & .hero h1 span { display: block; color: var(--fight-hot); }
  & .lobby .hero-copy > p {
    max-width: 36ch;
    margin-top: 18px;
    font-size: clamp(.9rem, 1.3vw, 1rem);
    line-height: 1.5;
  }
  & .lobby .hero-visual { height: clamp(270px, 33vw, 390px); }
  & .hero-visual::before { background: none; }
  & .orbital-ring { display: none; }
  & .lobby .hero-visual .card-fan { transform: scale(.86); }
  & .hero .fan-card { border-color: #ebc1af8a; box-shadow: 0 6px 35px #100716, 0 0 28px #f37d6347; }
  & .discovery-panel .discovery-button { margin-top: 10px; }

  @media (max-width: 850px) {
    & .site-header { flex-wrap: wrap; height: auto; gap: 0 14px; padding-block: 12px 0; }
    & .site-header nav {
      order: 3;
      width: 100%;
      height: 44px;
      gap: 20px;
      flex-wrap: nowrap;
      justify-content: flex-start;
      overflow-x: auto;
      scrollbar-width: none;
    }
  }
  @media (max-width: 760px) {
    & .lobby .hero {
      grid-template-columns: minmax(0, 1fr);
      background:
        var(--fight-signal) top / 100% 3px no-repeat,
        linear-gradient(180deg, #140d19 0%, #140d19e8 38%, #140d1929 100%),
        var(--fight-stage) 64% 72% / cover,
        #25182f;
    }
    & .lobby .hero-copy { padding-bottom: 8px; }
    & .hero h1 { font-size: clamp(3.2rem, 11vw, 5.5rem); }
    & .hero h1 span { display: inline; }
    & .lobby .hero-visual { height: 218px; margin-top: 0; }
    & .lobby .hero-visual .card-fan { top: 12px; transform: scale(.62); }
  }
}
