/* "Landing" hero for the file selector. Shared by the regular viewer
   (index.html) and the mock-league page (mock-league/index.html); ponce's
   pptv/ondemand.php keeps its own inlined copy. When no replay is loaded the
   toolbar becomes a centered call-to-action so the Open File button is the
   obvious next step; once a replay loads (file pick, manifest dropdown, or
   ?replay= URL) the JS removes body.no-replay and the toolbar collapses to
   app.css's normal .app-toolbar flex-row.

   This MUST be an external stylesheet (not an inline <style>): the
   puckreplay.rayeh.org deployment serves a strict CSP from serve.py
   (style-src 'self', no 'unsafe-inline'), which silently drops inline
   <style> blocks. ponce gets away with inlining because poncepuck.net
   serves no CSP. */
body.no-replay .ondemand-landing {
  min-height: 20vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
body.no-replay .ondemand-landing .mod-link-group {
  /* Override shell.css's margin-left:auto so it sits centered under the
     hero button instead of being pinned right. */
  margin-left: 0;
}
/* The manifest dropdown ("select a replay") on the regular viewer: keep it a
   sensible width in the centered landing instead of stretching full-bleed. */
body.no-replay .ondemand-landing .replay-select {
  min-width: 240px;
  max-width: min(420px, 100%);
}
body.no-replay .ondemand-landing .replay-paths-help {
  max-width: min(960px, 100%);
  align-self: center;
  text-align: left;
}
body.no-replay .ondemand-landing .file-btn-hero {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 36px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(180deg, rgba(59,169,255,.22), rgba(59,169,255,.10));
  border-color: rgba(59,169,255,.55);
  box-shadow: 0 10px 30px rgba(59,169,255,.18);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
body.no-replay .ondemand-landing .file-btn-hero:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(59,169,255,.32), rgba(59,169,255,.16));
  box-shadow: 0 14px 36px rgba(59,169,255,.28);
}
body.no-replay .ondemand-landing .file-btn-hero .file-btn-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-2);
}
body.no-replay .ondemand-landing .file-btn-hero .file-btn-sub {
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  letter-spacing: .2px;
}

/* "Where are my replay files?" — a modal <dialog> instead of an inline
   <details> so opening it overlays the page rather than reflowing the toolbar.
   The trigger button is styled like the old <summary>; the dialog reuses the
   existing .replay-paths-help styling for its body. (Mirrors pptv's version.) */
.replay-paths-trigger {
  cursor: pointer; user-select: none;
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--accent-2);
  background: transparent; border: none;
  padding: 4px 8px; border-radius: 8px;
}
.replay-paths-trigger::before { content: '▸'; margin-right: 6px; font-size: 10px; }
.replay-paths-trigger:hover { background: rgba(59,169,255,.12); }
.replay-paths-modal {
  width: min(680px, 92vw); padding: 0;
  border: 1px solid var(--line, #233052); border-radius: 14px;
  background: var(--card, #0f1428); color: var(--text, #eaf0ff);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.replay-paths-modal::backdrop { background: rgba(5,9,20,.6); }
.replay-paths-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line, #233052);
}
.replay-paths-modal-head h3 { margin: 0; font-size: 16px; }
.replay-paths-close {
  cursor: pointer; background: transparent; border: none;
  color: var(--muted); font-size: 16px; line-height: 1;
  padding: 6px 8px; border-radius: 8px;
}
.replay-paths-close:hover { background: rgba(255,255,255,.08); color: var(--text); }
[data-theme="light"] .replay-paths-close:hover { background: rgba(27,36,68,.06); }
.replay-paths-modal .replay-paths-help {
  margin-top: 0; padding: 6px 18px 18px;
  max-height: 70vh; overflow-y: auto;
}
