/* odyssey-brand.css — the rich Stardust look, in ONE place.
 *
 * Jason, 28 Oct 2026: "let's make it more branded it looks boring compare to
 * pokemon go". It was boring: flat --panel cards and plain text.
 *
 * WHY A FILE AND NOT ANOTHER <style> BLOCK. The first brand pass wrote this
 * same sky/glow/gradient-title block inline in templates/missions/crew_calls.html.
 * A second page needing it would have been a copy, and a third a third, which
 * is how five different "brand looks" end up on one platform and a token change
 * reaches none of them. Pages include this and add only what is theirs.
 *
 * The values are NOT invented here. apps/events/banner.py copies
 * templates/showcase.html's :root deliberately and its comment says "Straight
 * off :root in templates/showcase.html - do not tidy these". This is the same
 * four things: two slow drifting glows (amber top-right, violet bottom-left,
 * 110px blur), a twinkling starfield, the 90deg amber-gold-ember gradient
 * clipped to a title, and a mono kicker at .3em tracking.
 *
 * THE TYPE FLOOR IS 12px AND IT IS NOT A SUGGESTION. `shot` exits non-zero on
 * sub-12px text on a phone and it was right to: the first version of the crew
 * card shipped a 10px pill and an 11px counter, and the missions grid shipped
 * 9px status chips and 11.5px course names. Nothing in this file goes below 12.
 */

/* ---------- the sky ---------------------------------------------------- */
/* THEME-SAFE: white dots on a near-white page are invisible, so the starfield
   is DARK ONLY, behind both the media query and the explicit data-theme. */
.sd-sky{position:fixed;inset:0;overflow:hidden;z-index:0;pointer-events:none;display:none}
.sd-sky i{position:absolute;background:#fff;border-radius:50%;opacity:.5;
  animation:sdtw 4s ease-in-out infinite}
@keyframes sdtw{0%,100%{opacity:.18}50%{opacity:.85}}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sd-sky{display:block}}
:root[data-theme="dark"] .sd-sky{display:block}

.sd-glow{position:fixed;border-radius:50%;filter:blur(110px);z-index:0;pointer-events:none}
.sd-g1{width:52vw;height:52vw;right:-16vw;top:-20vw;background:rgba(246,146,62,.22);
  animation:sdd1 22s ease-in-out infinite alternate}
.sd-g2{width:46vw;height:46vw;left:-16vw;bottom:-20vw;background:rgba(164,99,242,.18);
  animation:sdd2 26s ease-in-out infinite alternate}
@keyframes sdd1{to{transform:translate(-6vw,6vh)}}
@keyframes sdd2{to{transform:translate(6vw,-5vh)}}

/* THE LIGHT THEME NEEDS MORE, NOT THE SAME. Measured on the first render: the
   top-right glow moved the corner to rgb(240,210,206) against rgb(243,234,241)
   mid-page — present, but a whisper. The brand's rich look was built for DARK
   (showcase is a deck, the event banners are dark PNGs), so a low-alpha wash on
   a near-white page is most of the reason this read flat. Light gets its own
   strength rather than a faded copy of the dark one. */
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]) .sd-g1{background:rgba(246,146,62,.42)}
  :root:not([data-theme="dark"]) .sd-g2{background:rgba(164,99,242,.34)}
}
:root[data-theme="light"] .sd-g1{background:rgba(246,146,62,.42)}
:root[data-theme="light"] .sd-g2{background:rgba(164,99,242,.34)}

/* Someone who has asked their machine to stop moving things gets a still page.
   The glows and stars are decoration; none of them carry meaning. */
@media (prefers-reduced-motion:reduce){
  .sd-sky i,.sd-glow,.sd-rail i{animation:none}
}

/* Everything the page itself draws sits ABOVE the sky. Without this the
   fixed glows paint over the content and the page looks fogged. */
.sd-above{position:relative;z-index:2}

/* ---------- the hero -------------------------------------------------- */
.sd-kicker{font-family:var(--fd);font-size:12px;letter-spacing:.3em;text-transform:uppercase;
  color:var(--orange);margin-bottom:8px}
.sd-hero-title{font-family:var(--fh);font-weight:900;font-size:clamp(30px,5.4vw,52px);
  line-height:1.04;letter-spacing:-.01em;margin-bottom:10px;
  background:linear-gradient(90deg,#fb923c,#f5d061,#ea580c);-webkit-background-clip:text;
  background-clip:text;color:transparent}
.sd-hero-sub{color:var(--dim);font-size:15px;line-height:1.65;max-width:62ch}

/* ---------- the chip -------------------------------------------------- */
/* 12px floor, so the tracking comes down to .09em to keep it the same WIDTH as
   the 9px/.13em version it replaces. A chip that grew would have pushed the
   card art around, which is why the first attempt went small in the first place. */
.sd-chip{font-family:var(--fd);font-size:12px;letter-spacing:.09em;text-transform:uppercase;
  padding:3px 9px;border-radius:999px;background:rgba(8,10,20,.72);
  border:1px solid rgba(255,238,247,.16);color:#fff;white-space:nowrap}
.sd-chip.gold{border-color:rgba(245,208,97,.55);color:var(--gold)}
.sd-chip.amber{border-color:rgba(246,146,62,.6);color:var(--orange)}
.sd-chip.done{border-color:rgba(0,255,136,.5);color:var(--ok)}

/* ---------- the progress rail ----------------------------------------- */
/* Amber and gold only. --ok green is a STATUS colour, not a Stardust accent
   ([[odyssey-brand-artwork]]); it went onto a "going ahead" bar once and read
   as a different product. */
.sd-rail{height:7px;border-radius:999px;background:var(--faint);overflow:hidden}
.sd-rail i{display:block;height:100%;min-width:4px;border-radius:999px;
  background:linear-gradient(90deg,#fb923c,#f5d061)}
.sd-rail i.go{background:linear-gradient(90deg,#f5d061,#fb923c)}

/* ---------- the card -------------------------------------------------- */
.sd-brand-card{background:var(--panel);border:1px solid var(--faint);border-radius:16px;
  display:block;position:relative;overflow:hidden;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.sd-brand-card:before{content:'';position:absolute;inset:0 auto 0 0;width:3px;
  background:linear-gradient(180deg,#fb923c,#f5d061)}
.sd-brand-card:hover{border-color:var(--orange);transform:translateY(-2px);
  box-shadow:0 10px 30px -18px rgba(246,146,62,.9)}

/* ---------- the XP card ----------------------------------------------- */
/* Jason, 28 Oct 2026: "we have atlas and the exp look" and "it looks boring
 * compare to pokemon go". This is the one component on the platform that IS
 * the game layer, and it was 24 lines of inline style with four labels under
 * the 12px floor: YOUR RANK at 10px and XP / STREAK / BADGES at 9px. A stat
 * nobody can read is not a stat.
 *
 * The CSS lives here rather than in the partial because the tag's own docstring
 * says "drop {% rank_card %} anywhere", so the card cannot assume the host page
 * loaded a sheet — the partial carries its own <link> to this file.
 *
 * WHAT MAKES IT READ AS A GAME HUD and not a dashboard panel: the numbers are
 * big and the labels are small-but-legible, the rank name is in the display
 * face (--fh Orbitron), the progress rail is the shared amber-gold gradient,
 * and there is one soft amber glow behind the whole card instead of a flat
 * panel fill. None of it is a new colour.
 */
.xpc{display:block;position:relative;overflow:hidden;border-radius:16px;padding:16px 18px;
  margin-bottom:16px;border:1px solid var(--faint);
  background:linear-gradient(120deg,rgba(246,146,62,.14),rgba(164,99,242,.07));
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.xpc:hover{border-color:var(--orange);transform:translateY(-2px);
  box-shadow:0 12px 34px -20px rgba(246,146,62,.95)}
/* the glow sits behind the content and is decoration, so it never takes a click */
.xpc:before{content:'';position:absolute;width:180px;height:180px;right:-70px;top:-90px;
  border-radius:50%;background:rgba(246,146,62,.20);filter:blur(42px);pointer-events:none}
.xpc-row{position:relative;display:flex;align-items:center;justify-content:space-between;
  gap:12px;flex-wrap:wrap}
.xpc-label{font-family:var(--fd);font-size:12px;color:var(--dim);letter-spacing:.14em;
  text-transform:uppercase}
.xpc-rank{font-family:var(--fh);font-size:21px;font-weight:900;letter-spacing:-.01em;
  line-height:1.15}
.xpc-stats{display:flex;gap:18px;text-align:center;font-family:var(--fd)}
.xpc-n{font-size:18px;line-height:1.2}
.xpc-n.gold{color:var(--gold)}
.xpc-n.amber{color:var(--orange)}
/* 12px at .1em, not 9px at .14em: the label is the same WIDTH and now readable. */
.xpc-k{font-size:12px;color:var(--dim);letter-spacing:.1em;margin-top:2px}
.xpc-next{position:relative;font-size:12.5px;color:var(--dim);margin-top:7px}
.xpc-next b{color:var(--ink);font-weight:800}
.xpc-max{position:relative;margin-top:10px;font-size:12.5px;color:var(--gold)}
.xpc-rail{position:relative;margin-top:12px}
