/* Temporal Apex homepage (Nov 1 2026). Loaded after style.css on / and /es/ only. Everything is scoped to body.home. */
body.home { overflow-x: hidden; }
body.home :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
body.home h1, body.home h2, body.home h3, body.home h4 { text-wrap: balance; }
body.home .hp-sec { scroll-margin-top: 70px; padding: 64px 0; border-top: 1px solid var(--line); }
body.home .hp-sec > .wrap > h2 { font-family: "Orbitron", "Inter", sans-serif; font-size: clamp(26px, 4.2vw, 38px); letter-spacing: .05em; line-height: 1.15; margin: 0 0 14px; }
body.home .hp-sec > .wrap > h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 12px; background: linear-gradient(90deg, var(--ember), transparent); border-radius: 2px; }
body.home .hp-sec > .wrap > p { max-width: 68ch; color: #d8cdd3; margin: 0 0 14px; }
body.home .hp-eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); font-weight: 800; margin: 0 0 10px; }
body.home .hp-note { color: var(--dim); font-size: 15px; }
body.home .hp-sec p.sub { margin-bottom: 20px; }

/* hero */
.hp-hero { position: relative; overflow: hidden; isolation: isolate; }
.hp-hero-img { position: absolute; right: 0; top: 0; width: 78%; height: 112%; object-fit: cover; object-position: 50% 20%; z-index: -3; filter: saturate(1.1); will-change: transform; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
.hp-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,6,10,.86) 0%, rgba(7,6,10,.6) 55%, rgba(7,6,10,.25) 100%), linear-gradient(180deg, rgba(7,6,10,0) 50%, var(--bg) 100%); }
.hp-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -2; }
.hp-hero .wrap { padding-top: clamp(64px, 12vw, 140px); padding-bottom: 56px; }
.hp-hero h1 { margin: 0 0 18px; display: flex; flex-direction: column; }
.hp-eye { font: 800 12px/1.4 "Inter", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); margin-bottom: 14px; }
.hp-head { font-family: "Orbitron", "Inter", sans-serif; font-size: clamp(34px, 7vw, 72px); line-height: 1.06; letter-spacing: .05em; max-width: 14ch; overflow-wrap: break-word; background: linear-gradient(180deg, #fff 20%, var(--ember2) 75%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 28px rgba(255,110,30,.5)); }
.hp-lead { font-size: clamp(18px, 2.3vw, 21px); color: #eadfd6; max-width: 620px; margin: 0 0 6px; }
.hp-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hp-btns .btn { margin: 0; }
.hp-btns .btn.ghost { border: 2px solid var(--line); background: rgba(7,6,10,.45); }
.hp-hero .pill { margin-bottom: 18px; }
.hp-tagline { margin: 22px 0 0; color: var(--dim); font-size: 15px; font-style: italic; }
.hp-platforms { margin: 6px 0 0; color: var(--dim); font-size: 14px; }
body.home .btn { transition: box-shadow .3s, transform .2s; }
body.home .btn:hover { box-shadow: 0 0 34px 2px rgba(255,122,46,.45); transform: translateY(-2px); }

/* stats */
.hp-statband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,122,46,.08), transparent 50%, rgba(255,122,46,.08)); }
.hp-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--line); }
.hp-stats li { background: var(--bg); padding: 20px 8px; text-align: center; min-width: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.hp-stats b { display: block; font-family: "Orbitron", "Inter", sans-serif; font-size: clamp(26px, 4.4vw, 40px); color: var(--gold); letter-spacing: .04em; text-shadow: 0 0 24px rgba(255,170,80,.4); margin-bottom: 2px; }

/* trailer + theme */
#trailer { border-top: 0; }
body.home .video { margin-top: 18px; }

/* split blocks */
.hp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.hp-split > * { min-width: 0; }
.hp-split figure { margin: 0; }
.hp-split figure img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; }
.hp-tick { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.hp-tick li { padding-left: 22px; position: relative; color: #d9cfc9; font-size: 16px; }
.hp-tick li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 2px; background: var(--ember); }
.hp-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 30px; }
body.home .card { min-width: 0; transition: transform .25s, border-color .25s, box-shadow .25s; }
body.home .card:hover { transform: translateY(-3px); border-color: var(--ember); box-shadow: 0 12px 40px -12px rgba(255,122,46,.4); }
body.home .card h4 { margin: 0 0 8px; font-size: 19px; color: var(--gold); }
.hp-h3 { font-family: "Orbitron", "Inter", sans-serif; font-size: clamp(20px, 3vw, 26px); letter-spacing: .04em; color: var(--gold); margin: 40px 0 10px; }
.hp-sec .grid { margin-top: 18px; }
.hp-block { margin-top: 12px; }

/* subsections folded in from the old page */
.hp-sub { padding-top: 52px; scroll-margin-top: 70px; }
.hp-sub > .hp-in > h3, .hp-sub > h3 { font-family: "Orbitron", "Inter", sans-serif; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: .04em; line-height: 1.2; margin: 0 0 12px; color: var(--text); }
.hp-sub h4, .hp-in > h4 { font-family: "Orbitron", "Inter", sans-serif; margin: 30px 0 6px; font-size: 19px; color: var(--gold); letter-spacing: .02em; }
.hp-sub .card h4 { font-family: "Inter", sans-serif; letter-spacing: 0; }
.hp-sub p.kicker { margin: 0 0 8px; }
.hp-in + .hp-in { margin-top: 36px; }
.hp-in.split { margin-top: 0; }
.hp-in.split + .hp-in { margin-top: 40px; }
.hp-sec .hp-sub .sub { max-width: 72ch; }
.hp-sub .grid { margin-top: 18px; }
body.home .hp-sec .band-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.hp-sub .grid:has(.cardpic) { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

/* more cards (details) */
.hp-more { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.hp-more > summary { cursor: pointer; padding: 16px 20px; font-weight: 800; letter-spacing: .04em; color: var(--ember2); list-style: none; }
.hp-more > summary::-webkit-details-marker { display: none; }
.hp-more > summary::after { content: "+"; float: right; font-size: 22px; line-height: 1; }
.hp-more[open] > summary::after { content: "\2212"; }
.hp-more > .grid { padding: 0 18px 18px; margin: 0; }

/* choose your path */
.hp-roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hp-path { font: inherit; font-size: 14px; color: #e5dad2; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.hp-path:hover { border-color: var(--ember2); }
.hp-path[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #1a0a02; font-weight: 800; }
.hp-pathbox { margin-top: 14px; min-height: 3.6em; }
.hp-pathtext { font-size: 18px; color: #efe4dc; max-width: 62ch; margin: 0; }
.hp-pathtext[hidden] { display: none !important; }

/* characters */
.hp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.hp-tabs button { font-family: "Orbitron", "Inter", sans-serif; font-size: 12px; letter-spacing: .08em; color: var(--dim); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; cursor: pointer; transition: all .2s; }
.hp-tabs button:hover { color: var(--text); border-color: var(--ember2); }
.hp-tabs button[aria-selected="true"] { background: var(--ember); color: #1a0a02; border-color: var(--ember); }
.hp-tabs button i { font-style: normal; opacity: .7; margin-left: 6px; }
.hp-panel[hidden] { display: none !important; }
h3.hp-grp { font-family: "Orbitron", "Inter", sans-serif; margin: 30px 0 0; color: var(--text); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; }
.hp-panel > h3.hp-grp { margin-top: 22px; }
h3.hp-grp small { display: block; font-family: "Inter", sans-serif; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--dim); font-weight: 400; margin-top: 6px; max-width: 68ch; line-height: 1.5; }
.hp-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.hp-cast figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; transition: transform .25s, border-color .25s, box-shadow .25s; }
.hp-cast figure:hover { transform: translateY(-4px); border-color: var(--ember2); box-shadow: 0 14px 44px -10px rgba(255,122,46,.5); }
.hp-cast img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.hp-cast figcaption { padding: 10px 12px 12px; font-size: 13px; line-height: 1.4; color: var(--dim); }
.hp-cast figcaption b { display: block; font-family: "Orbitron", "Inter", sans-serif; font-size: 12px; letter-spacing: .05em; color: var(--ember2); margin-bottom: 3px; }
.hp-castlink { margin-top: 26px; }

/* worlds grid */
.hp-worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-top: 20px; }
.hp-worlds figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); min-width: 0; background: #000; }
.hp-worlds img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .5s; }
.hp-worlds figure:hover img { transform: scale(1.05); }
.hp-worlds figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(0deg, rgba(7,6,10,.95) 25%, transparent); font-size: 13px; line-height: 1.4; color: #e2d6d0; }
.hp-worlds figcaption b { display: block; font-family: "Orbitron", "Inter", sans-serif; font-size: 13px; letter-spacing: .05em; color: var(--ember2); margin-bottom: 2px; }

/* Thraken, manifesto */
.hp-quote { font-family: "Orbitron", "Inter", sans-serif; font-size: clamp(20px, 3.4vw, 30px); line-height: 1.4; letter-spacing: .03em; color: var(--gold); max-width: 24ch; margin: 22px 0 0; text-shadow: 0 0 30px rgba(255,200,100,.4); }
#thraken { background: radial-gradient(ellipse 60% 70% at 25% 50%, rgba(255,122,46,.14), transparent 70%); }
.hp-manifesto { background: radial-gradient(ellipse 70% 90% at 0% 0%, rgba(255,122,46,.12), transparent 70%); }
.hp-manifesto p { font-size: 19px; color: #e7dcd4; max-width: 62ch; margin: 0 0 14px; }
body.home .hp-manifesto .wrap > p.hp-big { font-family: "Orbitron", "Inter", sans-serif; font-size: clamp(20px, 3vw, 28px); color: var(--text); letter-spacing: .03em; line-height: 1.4; max-width: 28ch; }

/* FAQ */
.hp-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; margin-top: 22px; }
.hp-faq .card p { color: #d8cdd3; font-size: 16px; }
.hp-faq .card h3 { font-size: 17px; letter-spacing: 0; font-family: "Inter", sans-serif; font-weight: 800; }

/* join */
.hp-join { text-align: center; background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(255,122,46,.26), transparent 70%), var(--panel); }
.hp-join .hp-btns { justify-content: center; }
body.home .hp-join > .wrap > h2 { margin-left: auto; margin-right: auto; max-width: 20ch; }
body.home .hp-join > .wrap > h2::after { margin-left: auto; margin-right: auto; }
body.home .hp-join > .wrap > p { margin-left: auto; margin-right: auto; }


@media (max-width: 760px) {
  .hp-split { grid-template-columns: 1fr; }
  body.home .hp-sec { padding: 48px 0; }
  .hp-hero-img { width: 100%; object-position: 55% 20%; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 520px) {
  .hp-cast { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hp-btns .btn { flex: 1 1 100%; text-align: center; }
  .hp-tabs button { padding: 9px 11px; font-size: 11px; }
}

/* motion */
.hp-rv { transform: translateY(24px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.hp-rv.hp-in-view { transform: none; }
@keyframes hp-glow { from { filter: drop-shadow(0 0 18px rgba(255,110,30,.35)); } to { filter: drop-shadow(0 0 42px rgba(255,130,40,.7)); } }
.hp-head { animation: hp-glow 4.5s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  .hp-rv { transform: none; transition: none; }
  .hp-head { animation: none; }
  body.home .card, .hp-cast figure, .hp-worlds img, body.home .btn { transition: none; }
}

#create .gallery { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.hp-stack { display: grid; gap: 18px; }

/* Live leaderboard ticker (ticker.js). Stays hidden until the game server returns scores. */
section.lb-ticker { padding: 0; }
.lb-ticker { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,122,46,.10), rgba(7,6,10,.6) 30%, rgba(7,6,10,.6) 70%, rgba(255,122,46,.10)); overflow: hidden; }
.lb-ticker[hidden] { display: none; }
.lb-in { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; min-width: 0; }
.lb-live { flex: none; font: 800 11px/1 "Inter", sans-serif; letter-spacing: .16em; color: #1a0a02; background: var(--ember); border-radius: 4px; padding: 5px 7px; }
.lb-title { flex: none; font-family: "Orbitron", "Inter", sans-serif; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.lb-track { flex: 1; min-width: 0; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.lb-run { list-style: none; margin: 0; padding: 0 0 0 24px; display: flex; flex: none; gap: 36px; white-space: nowrap; font-size: 14px; color: var(--text); }
.lb-board { display: flex; gap: 18px; align-items: baseline; }
.lb-name { font-family: "Orbitron", "Inter", sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ember2); }
.lb-rank { font-style: normal; color: var(--dim); }
.lb-entry em { font-style: normal; font-weight: 600; color: var(--gold); }
.lb-moving .lb-run { animation: lb-scroll 90s linear infinite; }
.lb-moving:hover .lb-run, .lb-moving:focus-within .lb-run { animation-play-state: paused; }
@keyframes lb-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .lb-moving .lb-run { animation: none; }
  .lb-track { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 560px) { .lb-title { display: none; } }
/* the ticker's LIVE badge and title open the Leaderboards page */
.lb-link { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 6px; }
.lb-link:hover .lb-title, .lb-link:focus-visible .lb-title { color: var(--ember2); text-decoration: underline; }
.lb-link:focus-visible { outline: 2px solid var(--ember2); outline-offset: 3px; }
/* the home nav uses slightly tighter spacing on wide screens */
@media (min-width: 1100px) { header.top nav a, header.top nav .lang { margin-left: 18px; } header.top nav .lang a { margin-left: 0; } }

/* Home "Reigning Champion" block (ticker.js renderChamp). Hidden until the server returns scores.
   Gold glow, crown and a watching Omniseer, like the #1 card on the Leaderboards page. Still under reduced motion. */
section.lb-champ { padding: 44px 0 40px; position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,150,40,.16), transparent 70%), #08070b; }
.lb-champ[hidden] { display: none; }
.lb-champ-in { position: relative; display: grid; gap: 18px; justify-items: center; text-align: center; }
.lb-champ-seer { position: absolute; z-index: -1; left: 50%; top: -90px; width: min(640px, 130vw); height: auto; transform: translateX(-50%); opacity: .3; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); }
.lb-champ-card { position: relative; overflow: hidden; width: min(560px, 100%); padding: 22px 20px 20px; border-radius: 18px; border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(40,26,12,.88), rgba(12,9,14,.92)); box-shadow: 0 0 0 1px rgba(255,210,122,.25) inset, 0 0 26px rgba(255,200,100,.4);
  animation: lb-champ-glow 3.2s ease-in-out infinite alternate; }
@keyframes lb-champ-glow { from { box-shadow: 0 0 0 1px rgba(255,210,122,.2) inset, 0 0 16px rgba(255,200,100,.3); } to { box-shadow: 0 0 0 1px rgba(255,226,160,.45) inset, 0 0 40px rgba(255,190,90,.65); } }
.lb-champ-crown { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 8px; color: var(--gold); font: 800 clamp(15px, 3.6vw, 18px)/1.2 "Orbitron", "Inter", sans-serif;
  letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 0 14px rgba(255,190,90,.6); }
.lb-champ-crown svg { width: 42px; height: 32px; flex: none; filter: drop-shadow(0 0 10px rgba(255,210,122,.8)); }
.lb-champ-name { margin: 0; font: 800 clamp(26px, 6.4vw, 40px)/1.15 "Orbitron", "Inter", sans-serif; color: #fff3df; letter-spacing: .03em; overflow-wrap: anywhere; text-shadow: 0 0 24px rgba(255,170,60,.45), 0 1px 3px #000; }
.lb-champ-leads { margin: 8px 0 0; color: var(--gold); font-weight: 700; font-size: 15px; }
.lb-champ-sparks { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.lb-champ-sparks i { position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: #ffe3a0; box-shadow: 0 0 8px 2px rgba(255,190,90,.7); opacity: 0; animation: lb-champ-spark 5.5s linear infinite; }
.lb-champ-sparks i:nth-child(1) { left: 10%; } .lb-champ-sparks i:nth-child(2) { left: 27%; animation-delay: -2s; }
.lb-champ-sparks i:nth-child(3) { left: 45%; animation-delay: -4s; } .lb-champ-sparks i:nth-child(4) { left: 62%; animation-delay: -1s; }
.lb-champ-sparks i:nth-child(5) { left: 78%; animation-delay: -3s; } .lb-champ-sparks i:nth-child(6) { left: 92%; animation-delay: -4.6s; }
@keyframes lb-champ-spark { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-200px); opacity: 0; } }
.lb-champ-boards { list-style: none; margin: 0; padding: 0; width: min(980px, 100%); display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr)); }
.lb-champ-b { --k: var(--gold); display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; text-align: left; min-width: 0; background: rgba(15,12,19,.92); border: 1px solid color-mix(in srgb, var(--k) 35%, var(--line)); }
.lb-champ-b[data-k="damage"] { --k: #ff7a2e; } .lb-champ-b[data-k="planets"] { --k: #6fc3ff; }
.lb-champ-b[data-k="stars"] { --k: #4fe3c1; } .lb-champ-b[data-k="celestials"] { --k: #b49bff; } .lb-champ-b[data-k="rampage"] { --k: #ff4767; }
.lb-champ-bt { font: 700 12px/1.3 "Orbitron", "Inter", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--k); }
.lb-champ-bn { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.lb-champ-bs { font-weight: 700; color: var(--k); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lb-champ-is { border-color: var(--gold); background: linear-gradient(180deg, rgba(255,210,122,.14), rgba(15,12,19,.92)); }
.lb-champ-is .lb-champ-bn::before { content: "\265B  "; color: var(--gold); }
.lb-champ-btn { margin: 4px 0 0; }
@media (max-width: 480px) { section.lb-champ { padding: 32px 0 30px; } .lb-champ-card { padding: 18px 14px 16px; } .lb-champ-crown svg { width: 34px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .lb-champ-card { animation: none; } .lb-champ-sparks { display: none; } }
.lb-champ-reign { margin: 10px 0 0; font-size: 14px; }
.lb-champ-reign a { color: #ffe3a0; text-underline-offset: 3px; }
.lb-champ-reign a:hover { color: #fff; }
@media (max-width: 480px) { .lb-champ-boards { grid-template-columns: 1fr 1fr; gap: 8px; } .lb-champ-b:last-child:nth-child(odd) { grid-column: 1 / -1; } .lb-champ-b { padding: 10px; } .lb-champ-bt { font-size: 11px; } .lb-champ-bn, .lb-champ-bs { font-size: 14px; } }
.lb-champ-seer { opacity: .42; }
.lb-champ-reign .lb-champ-howto { margin-left: 10px; color: var(--gold); font-weight: 600; white-space: nowrap; }
