/* Pre-season launch pieces, the founding-players form, site-manager edit mode and the blog pages. */

/* ---------- season switches ---------- */
.preseason .live-only, .in-season .preseason-only { display: none !important; }
body:not(.banner-on) .launch-banner { display: none; }
.s-hero-copy h1 span.plain, [data-theme] .s-hero-copy h1 span.plain { color: inherit; }

/* ---------- launch banner ---------- */
.launch-banner { position: relative; overflow: hidden; background: var(--yellow); color: var(--ink); border-bottom: 3px solid var(--ink); padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 64px); }
.launch-banner::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(20, 20, 20, .06) 0 18px, transparent 18px 36px); pointer-events: none; }
.lb-inner { position: relative; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.lb-badge { flex: none; display: grid; place-items: center; width: clamp(64px, 9vw, 110px); aspect-ratio: 1; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font-size: clamp(32px, 5vw, 58px); animation: lb-spin 6s linear infinite; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lb-badge { animation: none; } }
.lb-copy { flex: 1; min-width: 0; }
.lb-kicker { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.lb-title { margin: 4px 0 8px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 7.5vw, 104px); line-height: .9; color: var(--red); text-shadow: 4px 4px 0 var(--ink); }
.lb-sub { margin: 0; font-weight: 700; font-size: clamp(15px, 1.6vw, 19px); max-width: 720px; }
.lb-btn { flex: none; background: var(--ink); color: #fff; font-size: 18px; padding: 16px 26px; box-shadow: 4px 4px 0 #fff; }
@media (max-width: 760px) {
  .lb-inner { flex-direction: column; text-align: center; }
  .lb-sub { margin: 0 auto; }
}
[data-theme="pitch"] .launch-banner { background: #0b0f0c; color: var(--chalk); border-color: #2a2f2b; }
[data-theme="pitch"] .lb-title { font-family: var(--score); font-weight: 600; color: var(--led); text-shadow: 0 0 18px rgba(255, 179, 0, .55); letter-spacing: .04em; }
[data-theme="pitch"] .lb-badge { background: var(--chalk); }
[data-theme="pitch"] .lb-btn { background: var(--card-yellow); color: var(--navy); }

/* ---------- countdown (shares the stat-strip look) ---------- */
.countdown b { font-variant-numeric: tabular-nums; }

/* ---------- why list ---------- */
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: var(--border); border-radius: 18px; box-shadow: var(--pop); padding: 16px 18px; }
.why-list li > span { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); border: 2px solid var(--ink); }
.why-list b { font-weight: 900; font-size: 18px; }
.why-list p { margin: 4px 0 0; color: var(--muted); font-weight: 600; line-height: 1.45; }

/* ---------- founding-players form ---------- */
.founding-form { width: 100%; display: grid; gap: 12px; text-align: left; }
.founding-form label { display: grid; gap: 5px; font-weight: 900; font-size: 14px; color: var(--ink); }
.founding-form input:not([type="checkbox"]), .founding-form select { width: 100%; font: inherit; font-weight: 600; font-size: 16px; padding: 11px 13px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); }
.founding-form input:focus, .founding-form select:focus { outline: 3px solid var(--red); outline-offset: 1px; }
.founding-form .ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.founding-form .ff-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 14px; line-height: 1.35; }
.founding-form .ff-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--red); }
.founding-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ff-msg { margin: 0; min-height: 1.4em; font-weight: 800; text-align: center; }
.ff-msg.ok { color: var(--green-ink); }
.ff-msg.err { color: #b42318; }
#join .join-right { justify-content: flex-start; }

/* ---------- site-manager edit mode ---------- */
.cms-editing [data-cms] { outline: 2px dashed rgba(58, 134, 255, .9); outline-offset: 3px; border-radius: 4px; cursor: text; }
.cms-editing [data-cms]:hover { outline-style: solid; }
.cms-editing [data-cms]:focus { outline: 3px solid #3a86ff; background: rgba(58, 134, 255, .08); }
.cms-editing [data-cms].cms-dirty { outline-color: #f59e0b; outline-style: solid; }
.cms-editing .reveal { opacity: 1; transform: none; }
.cms-editing .fab-join { display: none; }
.cms-bar { position: fixed; z-index: 100; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; width: max-content; max-width: calc(100vw - 24px); background: #141414; color: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); font-family: system-ui, sans-serif; }
.cms-bar .cms-count { color: #cfcfcf; font-size: 14px; }
.cms-bar .btn.ghost { color: #fff; border-color: #fff; }

/* ---------- blog: shared page chrome ---------- */
.page .site-nav { position: sticky; }
.page-main { min-height: 60vh; padding-top: calc(70px + var(--safe-t)); }
.page-main > .s-section:first-child { padding-top: clamp(24px, 4vw, 48px); }
.site-nav nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
.blog-head h1 { font-size: clamp(36px, 6vw, 72px); line-height: .95; margin: 14px 0 0; }
.blog-head .s-head { margin-bottom: 0; }

/* ---------- blog: list ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: var(--card); border: var(--border); border-radius: 22px; box-shadow: var(--pop); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: var(--pop-lg); }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: var(--border); }
.post-card-img.placeholder { background: radial-gradient(70% 70% at 70% 40%, #ff6a4d 0%, #e63b2e 55%, #c42a1f 100%); }
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h2 { margin: 0; font-size: 22px; line-height: 1.15; }
.post-card p { margin: 0; color: var(--muted); font-weight: 600; line-height: 1.5; }
.read-more { margin-top: auto; font-weight: 900; color: var(--red); }
.post-meta { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.empty-blog { max-width: 620px; margin: 0 auto; text-align: center; padding: 36px 24px; }
.empty-blog h1, .empty-blog h2 { margin: 12px 0 8px; }
.empty-blog p { color: var(--muted); font-weight: 600; margin: 0 0 18px; }

/* ---------- blog: post ---------- */
.post-wrap { max-width: 820px; }
.post { background: var(--card); color: var(--text); border: var(--border); border-radius: 26px; box-shadow: var(--pop-lg); padding: clamp(20px, 5vw, 56px); }
.back-link { font-weight: 900; color: var(--red); text-decoration: none; }
.post-header h1 { font-size: clamp(32px, 5.4vw, 58px); line-height: 1; margin: 14px 0 12px; }
.post-cover { width: 100%; border-radius: 18px; border: var(--border); margin: 18px 0 8px; display: block; }
.post-content { font-size: 18px; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; }
.post-content > :first-child { margin-top: 18px; }
.post-content h2 { font-size: 30px; line-height: 1.15; margin: 1.6em 0 .5em; }
.post-content h3 { font-size: 23px; line-height: 1.2; margin: 1.4em 0 .4em; }
.post-content h4 { font-size: 19px; margin: 1.2em 0 .3em; }
.post-content p { margin: 0 0 1.1em; }
.post-content a { color: var(--red); font-weight: 700; text-underline-offset: 3px; }
.post-content blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 6px solid var(--red); background: var(--bg-2); border-radius: 0 14px 14px 0; font-size: 20px; font-weight: 700; }
.post-content ul, .post-content ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.post-content li { margin: .3em 0; }
.post-content img, .post-content video { max-width: 100%; height: auto; border-radius: 14px; display: block; margin: 0 auto; }
.post-content figure { margin: 1.6em 0; }
.post-content figure.media-wide { margin-left: clamp(-56px, -5vw, -20px); margin-right: clamp(-56px, -5vw, -20px); }
.post-content figure.media-wide img, .post-content figure.media-wide video { border-radius: 0; width: 100%; }
.post-content figcaption { text-align: center; font-size: 14px; color: var(--muted); font-weight: 700; margin-top: 8px; }
.post-content figure.video-embed { position: relative; aspect-ratio: 16 / 9; }
.post-content figure.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px; }
.post-content hr { border: 0; border-top: 3px dashed var(--line); margin: 2em 0; }
.post-content pre { background: #141414; color: #f5f5f5; padding: 14px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.post-content mark { padding: 0 .15em; border-radius: 3px; }
.post-cta { margin-top: 36px; text-align: center; background: var(--yellow); color: var(--ink); }
.post-cta h2 { margin: 0 0 6px; }
.post-cta p { margin: 0 0 16px; font-weight: 700; }
.preview-flag { background: #3a86ff; color: #fff; font-weight: 800; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; text-align: center; }

/* Text spans inside tick lists are copy, not icon boxes. */
.ticks .tick-text { font-style: normal; flex: 1; }
.founding-form .small { text-decoration: none; font-weight: 600; }
[data-theme="pitch"] .post-cta { background: var(--card-yellow); color: var(--navy); border: 2px solid #13261a; }
[data-theme="pitch"] .post-cta .btn { background: var(--navy); color: var(--card-yellow); }

/* Edit-mode bar: themed buttons must not inherit the site's white button styles. */
.cms-bar .btn, [data-theme] .cms-bar .btn { background: #2a2a2a; color: #fff; border: 1px solid #4a4a4a; box-shadow: none; font-family: system-ui, sans-serif; font-size: 13px; text-transform: none; letter-spacing: 0; transform: none; }
.cms-bar .btn.primary, [data-theme] .cms-bar .btn.primary { background: #c33533; border-color: #c33533; }
.cms-bar .btn.ghost, [data-theme] .cms-bar .btn.ghost { background: transparent; border-color: #fff; }
.cms-bar .btn:disabled { opacity: .45; }
.lb-badge span { display: grid; place-items: center; }

/* ---------- red constellation sky (public/constellation.js) behind every website page ---------- */
html:has(body.site) { background: #0b0607; }
[data-theme="pitch"] body.site { background: transparent; }
#sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: block; }
