/*
 * 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 currency mark: the brand's diamond, from the design.
 *
 * It was a gold disc drawn in CSS, which was fine as a stand-in and wrong as a
 * brand: the design's currency is a blue cut gem, and it appears beside every
 * balance and every price on the site, so it is the single most repeated mark
 * on the product.
 *
 * Sized in em so it tracks whatever text it sits in, from the thirteen pixel
 * price on a tile to the balance in the header, without a second rule.
 *
 * This is the real brand asset. It was briefly drawn as SVG because the design
 * tool caps file reads at 256 KiB and the original came back truncated every
 * time; the actual file turned up alongside the streamer portraits. Trimmed of
 * its transparent margin and stored at 96px, which is twice the largest place
 * it appears, so it stays sharp on a retina screen for fifteen kilobytes.
 */
.ar-coin {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  background: url('/assets/impakt-diamond.png') center / contain no-repeat;
  vertical-align: -.18em;
}

