:root{
  color-scheme: dark;
  --bg: #11100d;
  --panel: #201d18;
  --panel-2: #302b24;
  --line: #ff7a0a;
  --line-soft: rgba(255, 122, 10, .35);
  --gold: #ffdf38;
  --text: #f5f0df;
  --muted: #b9b0a0;
  --green: #4ee06d;
  --purple: #b682ff;
  --blue: #56c7ff;
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(17, 16, 13, .9), rgba(17, 16, 13, .94)),
    repeating-linear-gradient(135deg, rgba(255,122,10,.08) 0 2px, transparent 2px 34px),
    var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.shop-shell{
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.sidebar{
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  padding: 18px;
  border: 3px solid var(--line);
  background: rgba(24, 22, 18, .96);
  box-shadow: 8px 8px 0 #050505, inset 0 0 0 2px #4b2b14;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line-soft);
}

.brand-mark{
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--line);
  background: #0c0b09;
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #000;
}

.brand strong{
  display: block;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.brand span:not(.brand-mark){
  display: block;
  color: var(--muted);
  font-size: 15px;
}

.category-nav{
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.category-nav a{
  display: block;
  padding: 14px 16px;
  border: 2px solid #4b2b14;
  background: #2c2822;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #080808;
}

.category-nav a:hover,
.category-nav a:focus-visible{
  border-color: var(--line);
  color: var(--gold);
  outline: none;
  transform: translate(-1px, -1px);
}

.discord-button,
.header-discord{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, #ff8a14, #c94d00);
  color: #fff7d6;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 #070707;
  text-shadow: 2px 2px 0 #4b1b00;
}

.discord-button{
  width: 100%;
  margin-bottom: 16px;
}

.discord-button:hover,
.discord-button:focus-visible,
.header-discord:hover,
.header-discord:focus-visible{
  background: linear-gradient(180deg, #ffb22e, #e55d00);
  outline: none;
  transform: translate(-1px, -1px);
}

.note{
  margin: auto 0 0;
  padding: 14px;
  border-left: 4px solid var(--green);
  background: rgba(78, 224, 109, .08);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.content{
  min-width: 0;
}

.page-header{
  margin-bottom: 22px;
  padding: 26px;
  border: 3px solid var(--line);
  background: rgba(32, 29, 24, .95);
  box-shadow: 8px 8px 0 #050505;
}

.eyebrow{
  margin: 0 0 8px;
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p{
  margin-top: 0;
}

h1{
  margin-bottom: 8px;
  color: var(--gold);
  font-size: clamp(44px, 6vw, 82px);
  line-height: .92;
  text-transform: uppercase;
  text-shadow: 6px 6px 0 #050505;
}

.page-header p:last-child{
  margin: 0;
  color: var(--muted);
  font-size: 22px;
}

.header-discord{
  margin-top: 18px;
}

.category-section{
  margin: 0 0 26px;
  padding: 20px;
  border: 3px solid #4b2b14;
  background: rgba(25, 23, 19, .92);
  box-shadow: inset 0 0 0 2px #11100d;
}

.section-title{
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title span{
  color: var(--line);
  font-size: 20px;
  font-weight: 900;
}

h2{
  margin: 0;
  color: var(--gold);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #050505;
}

.product-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.product-grid.compact{
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.product-grid.grade-grid{
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.product-card{
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 16px;
  border: 2px solid #5a3518;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 5px 5px 0 #090909;
}

a.product-card{
  color: inherit;
  text-decoration: none;
}

.compact .product-card{
  grid-template-columns: 64px minmax(0, 1fr);
}

.product-card.featured{
  border-color: var(--line);
  box-shadow: 5px 5px 0 #090909, inset 0 0 0 2px rgba(255, 223, 56, .14);
}

.product-card.grade-card{
  min-height: 128px;
}

.product-card.grade-link,
.product-card.detail-link{
  align-items: center;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.product-card.grade-link:hover,
.product-card.grade-link:focus-visible,
.product-card.detail-link:hover,
.product-card.detail-link:focus-visible{
  border-color: var(--line);
  background: linear-gradient(180deg, #3a3025, var(--panel));
  outline: none;
  transform: translate(-1px, -1px);
}

.product-info{
  min-width: 0;
}

.product-card img{
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #11100d;
  border: 2px solid #4b2b14;
  padding: 8px;
}

.product-card h3{
  margin: 0;
  color: var(--text);
  font-size: 23px;
  line-height: 1.05;
}

.compact .product-card h3{
  font-size: 20px;
}

.product-card p{
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
}

.card-action{
  display: inline-block;
  margin-top: 9px;
  color: var(--line);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card strong{
  justify-self: end;
  color: var(--gold);
  font-size: 27px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 3px 3px 0 #050505;
}

.perk-list{
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 13px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

.perk-list li{
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.32;
}

.perk-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 8px;
  height: 8px;
  background: var(--line);
  box-shadow: 2px 2px 0 #050505;
}

.compact .product-card strong{
  grid-column: 2;
  justify-self: start;
  font-size: 24px;
}

#grades .product-card:nth-child(2){
  border-color: rgba(182, 130, 255, .75);
}

#battlepass .product-card:nth-child(n+3){
  border-color: rgba(86, 199, 255, .55);
}

.detail-page{
  grid-template-columns: 280px minmax(0, 1fr);
}

.back-link{
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover,
.back-link:focus-visible{
  color: var(--line);
  outline: none;
}

.detail-panel{
  padding: 24px;
  border: 3px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 122, 10, .12), transparent 32%),
    rgba(32, 29, 24, .97);
  box-shadow: 8px 8px 0 #050505, inset 0 0 0 2px #4b2b14;
}

.detail-header{
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line-soft);
}

.detail-header img{
  width: 104px;
  height: 104px;
  object-fit: contain;
  image-rendering: pixelated;
  padding: 12px;
  border: 3px solid #5a3518;
  background: #11100d;
  box-shadow: 5px 5px 0 #090909;
}

.detail-header h1{
  font-size: clamp(42px, 5vw, 72px);
}

.detail-header p:not(.eyebrow){
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.35;
}

.detail-price{
  color: var(--gold);
  font-size: clamp(34px, 4vw, 54px);
  text-shadow: 4px 4px 0 #050505;
  white-space: nowrap;
}

.detail-section{
  margin-top: 24px;
}

.detail-perks{
  gap: 12px;
  margin-top: 16px;
  padding: 18px;
  border: 2px solid #5a3518;
  background: rgba(17, 16, 13, .55);
}

.detail-perks li{
  color: var(--text);
  font-size: 19px;
}

.buy-panel{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 2px solid var(--line);
  background: rgba(255, 122, 10, .1);
}

.buy-panel h2{
  margin-bottom: 6px;
  font-size: 30px;
}

.buy-panel p{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 860px){
  .shop-shell{
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .sidebar{
    position: static;
    height: auto;
  }

  .detail-page{
    grid-template-columns: 1fr;
  }

  .category-nav{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px){
  .category-nav{
    grid-template-columns: 1fr;
  }

  .page-header,
  .category-section{
    padding: 14px;
  }

  .product-card,
  .compact .product-card{
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .product-grid.grade-grid{
    grid-template-columns: 1fr;
  }

  .product-card img{
    width: 56px;
    height: 56px;
    padding: 6px;
  }

  .product-card strong,
  .compact .product-card strong{
    grid-column: 2;
    justify-self: start;
    font-size: 23px;
  }

  .detail-header{
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .detail-header img{
    width: 68px;
    height: 68px;
    padding: 8px;
  }

  .detail-price{
    grid-column: 2;
    justify-self: start;
  }

  .buy-panel{
    align-items: stretch;
    flex-direction: column;
  }
}
