/* GAME SHOP THEME. Loaded last. Battle-royale item-shop feel: sky-to-storm ground, rarity colours,
   heavy slanted type, yellow buttons. Own art only: no Epic logos, fonts, characters or item art. */

:root {
  --ground: #2B6FF2;
  --ground-dot: #2459D4;
  --yellow: #FFE52E;
  --orange: #FFE52E; /* the numeral ink on the $25 card */
  --cream: #FFFFFF;
  --tape: #FFE52E;

  /* rarity */
  --r-epic-1: #D77BFF;
  --r-epic-2: #9B3BEA;
  --r-epic-3: #5A139E;
  --r-leg-1: #FFD15C;
  --r-leg-2: #F08A24;
  --r-leg-3: #9C3E0B;
}

/* ── the ground: daylight sky at the top, the storm coming in below ─────── */
.ground,
:root[data-tex] .ground {
  background-color: #2B6FF2;
  background-image: var(--tex-grain), var(--tex-ground),
    linear-gradient(180deg, #3FA2FF 0%, #2B6FF2 28%, #3B3FC9 62%, #5A1FA6 86%, #3A0F73 100%);
  background-size: 256px 256px, 16px 896px, 100% 100%;
  background-attachment: scroll, scroll, fixed;
}

/* heavy slanted display type, white with a hard dark outline */
.print,
.wordmark__name,
.card__ticker,
.card__in,
.launch__title,
.launch__ticker,
.launch__dollar,
.past__usd,
.past__ticker,
.sticker__text {
  font-style: oblique 9deg;
}
.print {
  color: #fff;
  text-shadow: 0.05em 0.06em 0 #12093A, -1px -1px 0 #12093A, 1px -1px 0 #12093A, -1px 1px 0 #12093A;
}
.print--orange {
  color: var(--yellow);
}
.wordmark__name {
  color: #fff;
  text-shadow: 3px 4px 0 #12093A, -2px -2px 0 #12093A, 2px -2px 0 #12093A, -2px 2px 0 #12093A;
}
.wordmark__ticker {
  color: var(--yellow);
}

/* buttons: the big yellow game button */
.sticker--orange,
.sticker--yellow {
  --st-bg: var(--yellow);
  --st-fg: #12093A;
}

/* ── the card = an item-shop tile. $25 = EPIC (purple), $100 = LEGENDARY (gold/orange) ── */
.card,
.past__card {
  --stock: var(--r-epic-2);
}
.card .card__plate,
.past__plate {
  color: #fff;
  background-color: var(--r-epic-2);
  background-image:
    repeating-conic-gradient(from 0deg at 62% 48%, rgba(255, 255, 255, 0.10) 0deg 7deg, transparent 7deg 18deg),
    radial-gradient(circle at 62% 48%, var(--r-epic-1) 0%, var(--r-epic-2) 42%, var(--r-epic-3) 100%);
  background-size: 100% 100%, 100% 100%;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
}
.card--gold,
.past--gold .past__card {
  --stock: var(--r-leg-2);
}
.card--gold .card__plate,
.past--gold .past__plate {
  background-color: var(--r-leg-2);
  background-image:
    repeating-conic-gradient(from 0deg at 62% 48%, rgba(255, 255, 255, 0.14) 0deg 7deg, transparent 7deg 18deg),
    radial-gradient(circle at 62% 48%, var(--r-leg-1) 0%, var(--r-leg-2) 45%, var(--r-leg-3) 100%);
}

/* white text with a dark outline on the tile */
.card .card__plate *,
.past__plate * {
  color: #fff;
}
.card__ticker,
.card__in,
.card__money,
.past__usd,
.past__ticker,
.launch__ticker,
.launch__dollar {
  color: #fff !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: 0.04em 0.05em 0 #12093A, -1px -1px 0 #12093A, 1px -1px 0 #12093A, -1px 1px 0 #12093A !important;
}
.card__no,
.card__buys,
.card__togo,
.card__name,
.card__out,
.past__no,
.past__ago,
.past__winner {
  text-shadow: 1px 1px 0 #12093A;
}

/* rarity bar at the bottom of the tile, like a shop item */
.card__band {
  background: #12093A !important;
  color: #fff !important;
}
.card--gold .card__band {
  background: #3A1405 !important;
}

/* inputs on the launch card stay readable on purple */
.launch__card .card__face {
  color: #fff;
}
.launch__ticker::placeholder,
.launch__name::placeholder,
.launch__desc::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.launch__name,
.launch__desc,
.launch__no,
.launch__buys {
  color: #fff;
}
.launch__num {
  -webkit-text-stroke-color: #fff;
}
.launch__tick-wrap,
.launch__name {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}
.launch__band {
  border-top-color: #fff;
}
.launch__pic {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

/* the YOUR CARDS tab and the proof lip in shop colours */
.chrome__tab {
  background-color: var(--yellow) !important;
}
.lip {
  background-color: #12093A !important;
  color: #fff !important;
}

/* legendary numeral: bright gold-white bands so it pops off the orange tile */
:root {
  --gold-1: #FFE9A3;
  --gold-2: #FFFFFF;
  --gold-3: #FFC93C;
}

/* ── our squad (original characters) ───────────────────────────────────── */
.art {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  height: auto;
  filter: drop-shadow(6px 8px 0 rgba(18, 9, 58, 0.55));
}
.home__hero,
.launch__slot,
.art-host {
  position: relative;
}
.art--left {
  left: -14px;
  bottom: -18px;
  width: clamp(96px, 26vw, 230px);
  transform: rotate(-4deg);
}
.art--right {
  right: -14px;
  bottom: -18px;
  width: clamp(96px, 26vw, 230px);
  transform: rotate(4deg) scaleX(-1);
}
@media (min-width: 900px) {
  .art--left {
    left: -150px;
    bottom: -10px;
  }
  .art--right {
    right: -150px;
    bottom: -10px;
  }
}
/* on phones keep them small at the bottom corners so they never cover the numbers */
@media (max-width: 899px) {
  .art--left,
  .art--right {
    width: 92px;
    bottom: -26px;
  }
  .art--left {
    left: -6px;
  }
  .art--right {
    right: -6px;
  }
}
.home__rackhead {
  position: relative;
}
.art--crate {
  right: 0;
  top: -70px;
  width: clamp(90px, 22vw, 170px);
  transform: rotate(8deg);
  animation: art-bob 3.2s ease-in-out infinite;
}
@keyframes art-bob {
  50% {
    transform: rotate(4deg) translateY(-10px);
  }
}
.art-sky {
  position: relative;
  margin: 0 -16px 4px;
  height: clamp(150px, 34vw, 380px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.art-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
@media (min-width: 900px) {
  .art-sky {
    margin: 0 -40px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .art--crate {
    animation: none;
  }
}

/* item-shop row of our squad */
.art-shop {
  display: flex;
  gap: 10px;
  margin: 10px 0 26px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 4px 12px;
}
.art-shop::-webkit-scrollbar {
  display: none;
}
.art-tile {
  flex: 0 0 auto;
  width: clamp(104px, 28vw, 200px);
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: 5px 6px 0 #12093A;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: skewX(-4deg);
}
.art-tile img {
  width: 112%;
  height: auto;
  transform: skewX(4deg) translateY(6%);
}
.art-tile--epic {
  background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 255, 255, 0.13) 0deg 8deg, transparent 8deg 20deg), radial-gradient(circle at 50% 45%, #E28CFF, #9B3BEA 50%, #4B0E86);
}
.art-tile--legendary {
  background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 255, 255, 0.15) 0deg 8deg, transparent 8deg 20deg), radial-gradient(circle at 50% 45%, #FFD877, #F08A24 50%, #8E360A);
}
.art-tile--rare {
  background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 255, 255, 0.13) 0deg 8deg, transparent 8deg 20deg), radial-gradient(circle at 50% 45%, #8FE3FF, #2D8BF0 50%, #123E9E);
}
.art-sky {
  height: clamp(190px, 46vw, 460px);
}
