@font-face {
  font-family: Barlow Condensed;
  src: url('/assets/barlow-condensed-700.woff2') format('woff2');
  font-display: swap;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --page: #101723;
  --card: #172436;
  --dark: #101a28;
  --line: #475568;
  --text: #f5eee4;
  --muted: #c0ccdb;
  --mint: #91e6d7;
  --gold: #ffd196;
  --berry: #dabef8;
  --fault: #ffb9ad;
  --display: 'Barlow Condensed',sans-serif;
  background: var(--page);
  color: var(--text);
  font: 16px/1.5 system-ui,sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

button,input,select {
  font: inherit;
}

button,select {
  cursor: pointer;
}

button:disabled,select:disabled {
  cursor: not-allowed;
  opacity: .66;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.icon[data-icon] {
  display: inline-block;
  width: 1.18em;
  height: 1.18em;
  flex: none;
  background: url('/assets/hud-icons.webp?v=13') var(--icon-x) var(--icon-y)/1000% 1000% no-repeat;
  vertical-align: -.18em;
}

.season-board { background: linear-gradient(145deg,#1d3b3b,#162736 64%); }
.season-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.season-header h2 { font: 700 clamp(2.2rem,5vw,3.5rem)/1 var(--display); margin: .3rem 0; }
.season-header p, .season-progress label { color: var(--muted); margin: .35rem 0; }
.season-header .btn, #market-new + .btn { text-decoration: none; }
.season-progress { display: grid; gap: .3rem; margin: .6rem 0 1rem; }
.season-progress progress { width: 100%; height: 1.15rem; accent-color: var(--mint); }
.season-missions, .season-previous { padding: .75rem; background: #14242d; border: 1px solid #5c706e; border-radius: .48rem; }
.season-missions summary, .season-previous summary { cursor: pointer; font-weight: 700; }
.season-missions ul { padding: 0; list-style: none; margin: .55rem 0 0; display: grid; gap: .4rem; }
.season-missions li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .7rem; align-items: center;
  background: #1b313a; padding: .36rem .55rem; border-radius: .25rem; }
.season-missions li strong { display: block; }
.season-missions li small { color: var(--muted); font-size: .875rem; }
.season-missions li span:last-child { color: var(--gold); }
.season-subhead { font: 700 1.5rem/1 var(--display); margin-bottom: .6rem; }
.season-tiers { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: .65rem; margin-block: .65rem; }
.season-tier { border: 1px solid #60746d; border-radius: .45rem; overflow: hidden; }
.season-tier-head { padding: .55rem .65rem; background: #243a40; }
.season-tier-head span, .season-tier-head small { display: block; color: var(--muted); font-size: .875rem; }
.season-tier-head strong { color: var(--gold); }
.season-reward { padding: .55rem .65rem; background: #17303b; }
.season-reward p { margin: .3rem 0 .45rem; font-size: .9rem; }
.season-reward.premium { background: #332f42; }
.season-reward.premium strong { color: var(--berry); }

.wrap {
  width: min(1152px,calc(100% - 2rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 5;
  background: var(--mint);
  color: #07191b;
  padding: .65rem;
}

.skip:focus {
  top: .5rem;
}

.bar {
  background: #111b28;
  border-bottom: 1px solid #627064;
}

.bar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  min-height: 4.6rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--gold);
  font: bold clamp(1.45rem,2.4vw,2rem)/1.1 Georgia,serif;
}

.brand img {
  object-fit: contain;
}

.brand small {
  font: 700 .9rem/1 var(--display);
  color: var(--mint);
}

nav {
  display: flex;
  gap: .4rem;
  justify-content: center;
}

nav a,.wallet a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .75rem;
  border-radius: .38rem;
  text-decoration: none;
  font-weight: 700;
}

nav a[aria-current] {
  background: #2b3950;
  color: var(--gold);
}

nav a:hover,.wallet a:hover {
  background: #243848;
}

.wallet {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.wallet a {
  border: 1px solid var(--line);
  color: var(--mint);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  width: fit-content;
  padding: .25rem .52rem;
  border: 1px solid #50677b;
  border-radius: .38rem;
  background: #1b2c3e;
  color: var(--mint);
  font-size: .875rem;
  font-weight: 750;
}

.chip.gold {
  color: var(--gold);
}

main {
  padding-block: 1.35rem 2.5rem;
}

.shop-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 17rem;
  display: flex;
  align-items: flex-end;
  padding: clamp(1rem,4vw,2.65rem);
  border: 1px solid #9f8268;
  border-radius: .35rem 1.65rem .35rem 1rem;
  background: #162337;
}

.shop-hero picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.shop-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 44%;
}

.shop-hero:after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg,#121c2bf7 0%,#121c2bbd 47%,#121c2b10 92%),linear-gradient(0deg,#111b29df,transparent 46%);
}

.kicker,.eyebrow {
  margin: 0 0 .32rem;
  color: var(--mint);
  font-size: .875rem;
  letter-spacing: .09em;
  font-weight: 800;
  text-transform: uppercase;
}

h1,h2,h3,p {
  margin: 0;
}

h1,h2,h3 {
  font-family: var(--display);
}

h1 {
  font-size: clamp(3rem,7vw,6.1rem);
  line-height: .96;
  font-style: italic;
  text-transform: uppercase;
  color: #ffebd0;
  text-shadow: 0 2px #644651;
  margin-bottom: .8rem;
}

.shop-hero p:not(.kicker) {
  color: #e3eaf2;
  max-width: 34rem;
}

.status,.notices {
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: .42rem;
  background: #162537;
  margin-top: .95rem;
}

.notices {
  color: var(--mint);
}

.notices[data-error="true"] {
  color: var(--fault);
  border-color: #aa695e;
}

.notices[hidden] {
  display: none;
}

.shop-section {
  margin-top: 1.2rem;
  padding: clamp(.8rem,2vw,1.1rem);
  border: 1px solid #415569;
  border-radius: .35rem 1rem .34rem .65rem;
  background: linear-gradient(142deg,#1a293c,#142132);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: .76rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}

.section-head p {
  color: var(--muted);
  max-width: 42rem;
  font-size: .94rem;
}

h2 {
  font-size: clamp(1.75rem,3vw,2.35rem);
  line-height: 1.05;
  letter-spacing: .015em;
}

h3 {
  font-size: 1.36rem;
  line-height: 1.05;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr));
  gap: .66rem;
}

.cards.offer-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.cards.two {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.offer,.goods,.list-card,.benefit {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .55rem;
  padding: .83rem;
  border: 1px solid #52637a;
  border-radius: .4rem .86rem .4rem .66rem;
  background: #132131;
}

.offer p,.goods p,.benefit p,.list-card p {
  font-size: .94rem;
  color: var(--muted);
}

.offer .chip {
  background: #1b3449;
}

.offer.vip {
  background: radial-gradient(ellipse at 90% 5%,#693b2a68,transparent 60%),#1b273a;
  border-color: #9a7357;
}

.offer.pass {
  background: radial-gradient(ellipse at 90% 5%,#59428370,transparent 60%),#192639;
  border-color: #8775a1;
}

.offer.crystal {
  background: radial-gradient(ellipse at 71% 15%,#285c746a,transparent 63%),#152637;
  border-color: #59778a;
}

.offer-art {
  float: right;
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  margin-left: .5rem;
  filter: drop-shadow(0 0 .85rem #70c5e273);
}

.offer-art.ruby {
  filter: drop-shadow(0 0 .85rem #e6aa7a73);
}

.price {
  font: 700 clamp(1.72rem,3vw,2.2rem)/1 var(--display);
  color: var(--gold);
  margin-top: auto;
}

.cost {
  font-size: .9375rem;
  font-weight: 800;
  color: var(--mint);
}

.cost.gold {
  color: var(--gold);
}

.subtext {
  color: var(--muted);
  font-size: .875rem;
}

.goods h3 .icon,.list-card h3 .icon {
  color: var(--mint);
  margin-right: .2rem;
}

.goods p {
  margin-bottom: auto;
}

.goods .subtext {
  color: #ecbdad;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
  padding: .45rem .75rem;
  border: 1px solid #657a8a;
  border-radius: .33rem .64rem .32rem .52rem;
  background: #21354b;
  color: #f5f2ec;
  text-decoration: none;
  font-weight: 800;
}

.btn.primary {
  background: linear-gradient(120deg,#ffda9b,#ecaf83);
  color: #221d2b;
  border-color: #efc492;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.12);
}

.btn:not(:disabled):active {
  transform: translateY(1px);
}

.offer .btn {
  align-self: flex-start;
}

.goods .btn {
  align-self: flex-start;
  margin-top: .2rem;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}

.toolbar>label {
  display: grid;
  gap: .25rem;
  font-size: .925rem;
  color: var(--muted);
  flex: 1 1 8rem;
}

.toolbar input,.toolbar select,textarea,.qr-label input {
  width: 100%;
  padding: .43rem .6rem;
  min-height: 44px;
  background: #0f1a29;
  color: var(--text);
  border: 1px solid #697e92;
  border-radius: .36rem;
}

.toolbar select {
  min-width: 10rem;
}

.market-grid {
  margin-top: .8rem;
}

.orders {
  padding-inline: 0;
  list-style: none;
  display: grid;
  gap: .36rem;
  margin: 0;
}

.orders li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  flex-wrap: wrap;
  background: #121f2e;
  border: 1px solid #4a5c6d;
  border-radius: .38rem;
  padding: .46rem .6rem;
  color: var(--muted);
}

.orders li strong {
  color: var(--text);
}

.orders .btn {
  padding: .35rem .6rem;
}

.footer {
  padding-block: 1.2rem;
  border-top: 1px solid #516474;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer .brand {
  font-size: 1.26rem;
}

.fine-print {
  margin-top: .7rem;
  color: var(--muted);
  font-size: .91rem;
}

dialog {
  width: min(30rem,calc(100% - 1.3rem));
  max-height: calc(100dvh - 2rem);
  padding: 1rem;
  color: var(--text);
  background: #192639;
  border: 1px solid #8795aa;
  border-radius: .46rem 1.1rem .55rem .7rem;
}

dialog::backdrop {
  background: #080d16d9;
}

dialog>header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .64rem;
}

dialog p {
  margin: .36rem 0;
  color: var(--muted);
}

.close {
  min-width: 44px;
  min-height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: #2b3e52;
  color: var(--text);
}

.providers {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin: .85rem 0;
}

.pix-image {
  display: block;
  width: min(200px,100%);
  height: auto;
  aspect-ratio: 1;
  margin: .75rem auto;
  image-rendering: pixelated;
  border: 4px solid white;
  background: white;
}

.qr-label {
  display: grid;
  gap: .28rem;
}

.qr-label textarea {
  height: 4.5rem;
  resize: vertical;
}

#pix-payer-note {
  font-size: .9rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width:820px) {
  .cards.offer-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .bar-inner {
    grid-template-columns: 1fr auto;
    gap: .35rem 1rem;
    padding: .45rem 0;
  }
  .bar-inner nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .wallet {
    justify-content: flex-end;
  }
}

@media (max-width:510px) {
  .wrap {
    width: calc(100% - 1rem);
  }
  .shop-hero {
    min-height: 14rem;
  }
  .shop-hero:after {
    background: linear-gradient(100deg,#101a28e5,#111a2880),linear-gradient(0deg,#111b29cf,transparent 70%);
  }
  h1 {
    font-size: clamp(2.75rem,14vw,4rem);
  }
  .bar-inner {
    column-gap: .35rem;
  }
  .wallet {
    row-gap: .18rem;
  }
  .wallet .chip {
    padding: .16rem .31rem;
    font-size: .8125rem;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .brand {
    gap: .3rem;
    font-size: 1.39rem;
  }
  nav a {
    padding-inline: .63rem;
  }
  .cards.two {
    grid-template-columns: 1fr;
  }
  .offer,.goods,.benefit {
    padding: .67rem;
  }
  .offer-art {
    width: 2.7rem;
    height: 2.7rem;
  }
  .offer .btn {
    align-self: stretch;
  }
  .shop-section {
    padding: .7rem;
  }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto!important;
    animation: none!important;
    transition: none!important;
  }
}
