/*
 * Season 04: the shell every page in this design shares.
 *
 * One bordered panel floating on black, one top bar, one palette, one set of
 * motion. Five pages use it, so it lives here rather than being pasted into
 * each of them and drifting apart the first time one is touched.
 *
 * The palette is deliberately narrow. One green does every affirmative thing,
 * one red does urgency, and rarity is the only place other colours appear. A
 * store where everything glows is a store where nothing reads.
 */

.season {
  --bg: #000;
  --panel: #0a0a0b;
  --tile: #101013;
  --line: #26262a;
  --rule: #1d1d21;
  --edge: #2c2c31;

  --ink: #e7e7e7;
  --mute: #9a9aa3;
  --dim: #5d5d66;
  --soft: #8b8b95;

  --green: #3fdc6f;
  --red: #c92a30;
  --amber: #ffae42;
  --danger: #ff5a5f;

  /* Rarity. The only colours allowed to compete with the green. */
  --legendary: #ffd66e;
  --epic: #b48cff;
  --rare: #7db8ff;

  margin: 0;
  padding: 28px;
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* The shared header is replaced by this page's own bar. */
.season .chrome { display: none; }

.page-shell {
  width: 100%;
  max-width: 1360px;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

/* ---------------- top bar ---------------- */

.ar-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--rule);
}

.ar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

/*
 * The wordmark.
 *
 * The real logo, replacing IMPAKT set in the body face at eight hundred
 * weight, which was a placeholder standing in for a brand that had one all
 * along. The text is kept inside the link and hidden, so the mark still reads
 * as the site's name to a screen reader and to anything crawling the page,
 * which an image alone would not.
 *
 * Sized by height rather than width: it is the bar's height that is fixed, and
 * the artwork is free to be as wide as it needs.
 */
.ar-mark {
  display: inline-flex;
  align-items: center;
  height: 46px;
  width: 129px;
  background: url('/assets/impakt-logo.png') left center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  text-decoration: none;
  flex: none;
}

.ar-nav { display: flex; gap: 14px; margin-right: 2px; }

.ar-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--mute);
  text-decoration: none;
  transition: color .15s ease;
  white-space: nowrap;   /* a two word section is one section, not two lines */
}

.ar-nav a:hover { color: var(--ink); }
.ar-nav a.is-on { color: var(--green); }

.ar-bal-label { font-size: 11px; letter-spacing: .1em; color: var(--dim); white-space: nowrap; }
.ar-bal { font-size: 16px; white-space: nowrap; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

.ar-daily {
  font: inherit;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--tile);
  border: 1px solid var(--edge);
  color: var(--mute);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.ar-daily:hover:not(:disabled) { border-color: var(--green); color: var(--ink); }
.ar-daily:disabled { color: var(--green); cursor: default; }

/*
 * The countdown, and it counts something real: the wait until the next daily
 * claim. A timer that is only theatre teaches people to ignore every timer on
 * the page, including the ones that matter.
 */
.ar-clock {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 4px;
  background: var(--red);
  overflow: hidden;
}

.ar-clock::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  animation: scanPulse 2.4s ease-in-out infinite;
}

.ar-clock span {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Claimed, so there is nothing to count down to. */
.ar-clock.is-idle { background: var(--tile); border: 1px solid var(--edge); }
.ar-clock.is-idle::before { animation: none; opacity: 0; }
.ar-clock.is-idle span { color: var(--dim); }

.ar-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

.ar-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 6px 12px;
  color: var(--mute);
  text-decoration: none;
}

a.ar-tag:hover { color: var(--ink); border-color: var(--mute); }

/* ---------------- motion ---------------- */

@keyframes scanPulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ringOut {
  0% { transform: scale(.35); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes popIn {
  0% { transform: scale(.2); opacity: 0; }
  65% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes partFly {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-150px) scale(.4); opacity: 0; }
}
@keyframes barSweep { 0% { left: -40%; } 100% { left: 110%; } }

/*
 * Every animation here is decoration over information that is already on the
 * page in text. Somebody who has asked their system for less movement loses
 * nothing by having all of it stop.
 */
@media (prefers-reduced-motion: reduce) {
  .season *,
  .season *::before,
  .season *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------------- narrower ---------------- */

@media (max-width: 860px) {
  .store-page { padding: 12px; }
  .page-shell { border-radius: 16px; min-height: 0; }
  .ar-top { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px; }
  .ar-right { justify-content: flex-start; }

  /*
   * Five sections do not fit across a phone. The row scrolls rather than
   * dropping one: the page shell clips its overflow, so anything past the right
   * edge used to be simply unreachable, and what fell off was whichever link
   * happened to be added last rather than whichever mattered least.
   */
  .ar-left { min-width: 0; }
  .ar-mark { height: 36px; width: 101px; }
  .ar-nav { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ar-nav::-webkit-scrollbar { display: none; }
  .ar-body { padding: 18px 16px; }
  .ar-title { font-size: 38px; }
  .ar-bottom { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  .ar-after { text-align: left; }
}

/*
 * The account chip, on every page.
 *
 * The count and the mark, no label: a coin beside a number does not need the
 * word "balance" next to it, and dropping it puts the number beside the name it
 * belongs to instead of beside a caption.
 */
.ar-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.ar-bal[hidden] { display: none; }

/* The supplied gold coin is the shared ICE currency mark. */
.ar-coin {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
  background: url('/assets/currency/impakt-coin-icon.webp') center / contain no-repeat;
  vertical-align: -.18em;
}


/* ------------------------------------------------------------------ */
/* The season screen: the arc, the pass pitch, the ladder.            */
/*                                                                    */
/* Its own block rather than the store's, because a ladder is a       */
/* vertical journey and a shelf is a grid, and forcing one layout to  */
/* be both is how both end up mediocre.                               */
/* ------------------------------------------------------------------ */

.sn { max-width: 780px; margin: 0 auto; padding: 8px 20px 90px; }

.sn-head { text-align: center; padding: 30px 0 20px; }
.sn-num { font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.sn-title {
  font-size: clamp(34px, 7vw, 58px); font-weight: 800; letter-spacing: -.03em;
  margin: 6px 0 10px; line-height: 1;
}
.sn-meta { color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.sn-dot { margin: 0 8px; opacity: .5; }

/* The arc bar. One accent fill on a hairline track, animated to width by JS. */
.sn-track {
  height: 8px; border-radius: 999px; background: rgba(255,255,255,.08);
  margin: 22px auto 12px; max-width: 460px; overflow: hidden;
}
.sn-track i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent, #f4c63c), #ffe08a);
  border-radius: 999px;
  transition: width var(--dur-slow, 560ms) var(--ease, cubic-bezier(.22,1,.36,1));
}
.sn-xp { font-size: 12px; letter-spacing: .16em; color: var(--muted); }

/* The pass pitch: a single gold-edged panel, present only when unowned. */
.sn-pass {
  display: flex; align-items: center; gap: 20px; justify-content: space-between;
  border: 1px solid rgba(244,198,60,.35); border-radius: 14px;
  background: linear-gradient(180deg, rgba(244,198,60,.08), rgba(244,198,60,.02));
  padding: 18px 20px; margin: 26px 0 8px;
}
.sn-pass-kicker { font-size: 11px; letter-spacing: .2em; color: #f4c63c; font-weight: 700; }
.sn-pass-line { color: var(--ink, #fafafa); font-size: 14px; margin-top: 6px; max-width: 46ch; }
.sn-pass-buy {
  flex: none; text-decoration: none; font-weight: 800; letter-spacing: .06em; font-size: 13px;
  color: #0a0a0a; background: #f4c63c; border-radius: 999px; padding: 12px 18px; white-space: nowrap;
}

.sn-h2 { font-size: 11px; letter-spacing: .2em; color: var(--muted); margin: 40px 0 14px; text-align: center; }

/* The ladder itself: a spine with a node per tier, the earned ones lit. */
.sn-ladder { list-style: none; margin: 0; padding: 0; position: relative; }
.sn-ladder::before {
  content: ''; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 2px;
  background: rgba(255,255,255,.08);
}
.sn-tier {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center;
  gap: 16px; padding: 12px 0; position: relative;
}
.sn-node {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: var(--card, #16161a); border: 2px solid rgba(255,255,255,.12);
  color: var(--muted); z-index: 1;
  transition: transform var(--dur, 320ms) var(--ease, cubic-bezier(.22,1,.36,1));
}
.sn-tier.is-earned .sn-node {
  background: var(--accent, #f4c63c); border-color: var(--accent, #f4c63c); color: #0a0a0a;
}
.sn-tier.is-current .sn-node { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(244,198,60,.2); }
.sn-reward { min-width: 0; }
.sn-reward-free { font-size: 14px; color: var(--ink, #fafafa); font-weight: 600; }
.sn-reward-elite { font-size: 12px; letter-spacing: .04em; margin-top: 3px; }
.sn-reward-elite.locked { color: var(--muted); }
.sn-reward-elite.owned { color: #8b5cf6; }
.sn-need { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sn-tier.is-earned .sn-need { color: var(--ok, #7ddb8a); }

.sn-foot { color: var(--muted); font-size: 12px; text-align: center; margin: 40px auto 0; max-width: 52ch; line-height: 1.6; }

@media (max-width: 560px) {
  .sn-pass { flex-direction: column; align-items: flex-start; }
  .sn-tier { grid-template-columns: 40px 1fr; }
  .sn-need { grid-column: 2; }
}
