@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rubik:wght@400;500;600;700;800&display=swap");

:root {
  --color-text: #211532;
  --color-text-darker: #3a2a55;
  --color-text-secondary: #6b5d7c;
  --color-text-dark: #170b28;
  --color-bg: #f8f7ff;
  --color-brighter-bg: #ffffff;
  --color-primary: #7c3aed;
  --color-primary-hover: #5b21b6;
  --color-primary-text: #ffffff;
  --color-primary-text-hover: #ffffff;
  --color-secondary: #ede9fe;
  --color-secondary-hover: #ddd6fe;
  --color-secondary-text: #4c1d95;
  --color-secondary-text-hover: #35106f;
  --color-tertiary: #ffffff;
  --color-tertiary-hover: #f3f0ff;
  --color-tertiary-text: #4c1d95;
  --color-tertiary-text-hover: #2e1065;
  --color-removed: #dc2626;
  --color-sale-banner-bg: #7c3aed;
  --color-sale-banner-text: #ffffff;
  --color-stone: #d7d3df;
  --color-stone-dark: #8c849b;
  --color-grass: #5bbf67;
  --color-dirt: #9b6a3a;
  --color-sky: #dff3ff;
  --pixel-shadow: #4c1d95;
  --pixel-border: #211532;
  --soft-shadow: 0 18px 45px rgb(76 29 149 / 0.12);
  --btn-size: 48px;
  --content-inner-width: 1200px;
  --sidebar-width: 310px;
}

html {
  scrollbar-color: var(--color-primary) var(--color-bg);
}

body {
  overflow-x: hidden;
  padding-top: var(--header-height-current, min(300px, 33vh));
  color: var(--color-text);
  background:
    linear-gradient(rgb(124 58 237 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(124 58 237 / 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgb(223 243 255 / 0.35), transparent 360px),
    linear-gradient(90deg, rgb(196 181 253 / 0.10), transparent 28%, rgb(124 58 237 / 0.07) 72%, transparent),
    var(--color-bg);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  font-family: Rubik, Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.75), rgb(248 247 255 / 0.9) 70%),
    var(--bg-image, none) center top / cover no-repeat;
  mask-image: linear-gradient(#000 0%, #000 42%, transparent 78%);
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-hover);
}

.site {
  position: relative;
  isolation: isolate;
  gap: 28px;
}

.site > :not(.pixels-bg):not(.site-header):not(.site-content-widgets) {
  position: relative;
  z-index: 1;
}

.site > .site-header {
  position: fixed;
  z-index: 5000;
}

.site > .site-content-widgets {
  position: relative;
  z-index: auto;
}

.pixels-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.pixel-float {
  position: absolute;
  width: 8px;
  height: 8px;
  opacity: 0;
  background: var(--color-primary);
  box-shadow: 8px 0 0 rgb(168 85 247 / 0.72), 0 8px 0 rgb(196 181 253 / 0.8);
  animation: floatPixel linear infinite;
}

.pixel-float:nth-child(1) { left: 7%; animation-duration: 17s; animation-delay: -2s; }
.pixel-float:nth-child(2) { left: 16%; animation-duration: 21s; animation-delay: -8s; background: #a855f7; }
.pixel-float:nth-child(3) { left: 25%; animation-duration: 15s; animation-delay: -5s; }
.pixel-float:nth-child(4) { left: 34%; animation-duration: 23s; animation-delay: -11s; background: #5b21b6; }
.pixel-float:nth-child(5) { left: 45%; animation-duration: 19s; animation-delay: -1s; }
.pixel-float:nth-child(6) { left: 54%; animation-duration: 24s; animation-delay: -13s; background: #a855f7; }
.pixel-float:nth-child(7) { left: 63%; animation-duration: 18s; animation-delay: -7s; }
.pixel-float:nth-child(8) { left: 72%; animation-duration: 22s; animation-delay: -3s; background: #5b21b6; }
.pixel-float:nth-child(9) { left: 80%; animation-duration: 16s; animation-delay: -9s; }
.pixel-float:nth-child(10) { left: 88%; animation-duration: 25s; animation-delay: -15s; background: #a855f7; }
.pixel-float:nth-child(11) { left: 94%; animation-duration: 20s; animation-delay: -6s; }
.pixel-float:nth-child(12) { left: 3%; animation-duration: 26s; animation-delay: -17s; background: #5b21b6; }

@keyframes floatPixel {
  0% {
    transform: translateY(112vh) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.5;
  }
  82% {
    opacity: 0.28;
  }
  100% {
    transform: translateY(-14vh) rotate(360deg);
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 3px solid var(--color-primary);
  background: var(--color-secondary);
  color: var(--color-primary-hover);
  box-shadow: 4px 4px 0 var(--color-secondary-hover);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  line-height: 1.4;
}

.section-heading {
  margin: 0 auto 28px;
  max-width: 760px;
  padding: 0 var(--content-padding);
  text-align: center;
}

.section-heading .section-kicker {
  margin-inline: auto;
}

.section-heading h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 24px;
  line-height: 1.45;
}

@media (width <= 700px) {
  .section-heading h2 {
    font-size: 18px;
  }
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  min-height: var(--btn-size);
  height: auto;
  padding: 13px 18px;
  border: 3px solid var(--pixel-border);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--pixel-shadow);
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: normal;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
  --btn-color-text: var(--color-primary-text);
  --btn-color-bg: var(--color-primary);
  --btn-color-text-hover: var(--color-primary-text-hover);
  --btn-color-bg-hover: var(--color-primary-hover);
}

.btn-secondary {
  --btn-color-text: var(--color-secondary-text);
  --btn-color-bg: var(--color-secondary);
  --btn-color-text-hover: var(--color-secondary-text-hover);
  --btn-color-bg-hover: var(--color-secondary-hover);
  --pixel-shadow: #c4b5fd;
}

.btn-tertiary {
  --btn-color-text: var(--color-tertiary-text);
  --btn-color-bg: var(--color-tertiary);
  --btn-color-text-hover: var(--color-tertiary-text-hover);
  --btn-color-bg-hover: var(--color-tertiary-hover);
  --pixel-shadow: #c4b5fd;
}

.btn-primary::after,
.btn-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -110%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.28), transparent);
  transition: left 0.38s ease;
}

.btn-primary,
.btn-secondary {
  position: relative;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  left: 110%;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-tertiary:hover,
.btn-tertiary:focus {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--pixel-shadow);
}

.btn-primary:active,
.btn-secondary:active,
.btn-tertiary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--pixel-shadow);
}

.btn-icon,
.btn-glyph {
  display: block;
  width: var(--btn-size);
  height: var(--btn-size);
  padding: 0;
}

.btn-glyph-text,
.btn-icon-text {
  gap: var(--btn-icon-gap);
}

.btn-glyph-text::before,
.btn-icon-text::before {
  margin-right: 0;
}

.quantity-field {
  border: 3px solid var(--pixel-border);
  border-radius: 0;
  background: #fff;
  box-shadow: 4px 4px 0 #d8cff8;
}

.quantity-field input[type=number] {
  color: var(--color-text);
  font-weight: 700;
}

.site-header {
  --header-height-current: min(300px, 33vh);
  --header-logo-height-current: 256px;
  --header-content-opacity: 1;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: none !important;
  margin: 0 !important;
  z-index: 5000;
  padding: 0 var(--content-padding);
  overflow: hidden;
  height: var(--header-height-current);
  border-bottom: 3px solid var(--pixel-border);
  background:
    linear-gradient(180deg, rgb(248 247 255 / 0.08), rgb(33 21 50 / 0.28)),
    url("https://i.servimg.com/u/f48/18/06/99/75/fr-min10.jpg") repeat-x center center / cover,
    var(--color-bg);
  box-shadow: 0 7px 0 #d8cff8, 0 18px 38px rgb(76 29 149 / 0.16);
  animation: header-panorama 165s linear infinite;
  will-change: background-position;
  transition: height 0.08s linear;
}

.site-header-inner {
  max-width: var(--content-inner-width);
  margin: 0 auto;
}

@keyframes header-panorama {
  0% {
    background-position: 0 0, 0 center, center;
  }

  50% {
    background-position: 0 0, -4096px center, center;
  }

  100% {
    background-position: 0 0, 0 center, center;
  }
}

.site-header-inner {
  min-height: var(--header-height-current);
  color: var(--color-text);
  transition: min-height 0.08s linear;
}

.site-header-inner > .actions {
  display: none !important;
}

.site-header-inner .site-title {
  z-index: 2;
  font-family: "Press Start 2P", monospace;
  line-height: 1.25;
  text-shadow: 4px 4px 0 #ddd6fe;
}

.site-header-inner .site-title a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header-inner .site-title img {
  max-height: var(--header-logo-height-current);
  filter: drop-shadow(5px 5px 0 #ddd6fe);
  image-rendering: auto;
  transition: max-height 0.08s linear;
}

.site-header-inner .info {
  padding: 14px;
  border: 3px solid var(--pixel-border);
  background: rgb(255 255 255 / 0.86);
  box-shadow: 5px 5px 0 #d8cff8;
  backdrop-filter: blur(8px);
  opacity: var(--header-content-opacity);
  transition: opacity 0.08s linear, transform 0.08s linear;
}

.site-header.is-compact .site-header-inner .info {
  pointer-events: none;
  transform: translateY(-10px);
}

.site-header-inner .info .image {
  border-radius: 0;
  image-rendering: pixelated;
}

.site-header-inner .info .title {
  color: var(--color-text);
}

.site-header-inner .info .action {
  color: var(--color-primary);
  font-weight: 700;
}

.site-header-inner .info:hover .action {
  color: var(--color-primary-hover);
}

.site-sale-banner {
  border: 3px solid var(--pixel-border);
  box-shadow: 6px 6px 0 var(--pixel-shadow);
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  line-height: 1.5;
}

@media (width > 960px) {
  .site-header-inner {
    height: var(--header-height-current);
  }

  body.is-navigation-horizontal .site-header-inner {
    height: var(--header-height-current);
  }

  .site-header-inner .site-title {
    inset: 0 300px;
    font-size: 36px;
  }

  .site-header-inner .site-title img {
    max-height: var(--header-logo-height-current);
  }

  .site-header-inner .info {
    top: 0;
  }
}

@media (width <= 960px) {
  .site-header-inner {
    min-height: var(--header-height-current);
    padding-top: 70px;
  }

  .site-header-inner .site-title {
    font-size: 30px;
  }

  .site-header-inner .site-title img {
    max-height: var(--header-logo-height-current);
  }

  .site-header-inner .info {
    width: calc(50% - 6px);
    min-height: 72px;
  }
}

@media (width <= 600px) {
  .site-header-inner {
    gap: 14px;
    padding-top: 92px;
  }

  .site-header-inner .site-title {
    font-size: 22px;
  }

  .site-header-inner .info,
  .site-header-inner .info.discord {
    width: 100%;
    padding: 12px 12px 12px 54px;
    text-align: left;
  }

  .site-header-inner .info.discord .image {
    left: 10px;
    right: auto;
  }
}

.navigation-horizontal .menu,
.navigation-vertical.widget {
  border: 3px solid var(--pixel-border);
  background: rgb(255 255 255 / 0.92);
  box-shadow: 6px 6px 0 #d8cff8;
  backdrop-filter: blur(10px);
}

@media (width > 960px) {
  .navigation-horizontal .menu {
    gap: 4px;
    font-family: "Press Start 2P", monospace;
    font-size: 10px;
    line-height: 1.35;
  }

  .navigation-horizontal .menu > li > a {
    padding: 12px 14px;
  }

  .navigation-horizontal a:hover,
  .navigation-horizontal a.link-active {
    color: var(--color-primary);
    background: var(--color-secondary);
  }

  .navigation-horizontal .has-children > ul {
    border: 3px solid var(--pixel-border);
    background: rgb(255 255 255 / 0.96);
    box-shadow: 5px 5px 0 #d8cff8;
  }
}

.home-hero {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 520px;
  margin-top: -8px;
  padding: 72px var(--content-padding) 126px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(223 243 255 / 0.96), rgb(248 247 255 / 0.86) 58%, rgb(237 233 254 / 0.88)),
    linear-gradient(90deg, rgb(255 255 255 / 0.5), transparent 30%, rgb(255 255 255 / 0.5));
  border-block: 3px solid rgb(124 58 237 / 0.18);
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  background:
    linear-gradient(90deg, #7c3aed 25%, #a855f7 0 50%, #5b21b6 0 75%, #8b5cf6 0) 0 0 / 48px 48px,
    linear-gradient(90deg, #5bbf67 25%, #83d375 0 50%, #3c9b48 0 75%, #6ed279 0) 0 48px / 48px 48px;
  box-shadow: 8px 8px 0 rgb(76 29 149 / 0.18);
  image-rendering: pixelated;
  opacity: 0.85;
  animation: heroBlock 5s ease-in-out infinite;
}

.home-hero::before {
  top: 82px;
  left: max(28px, calc((100vw - var(--content-inner-width)) / 2));
}

.home-hero::after {
  right: max(32px, calc((100vw - var(--content-inner-width)) / 2));
  bottom: 150px;
  width: 72px;
  height: 72px;
  animation-delay: -1.8s;
}

@keyframes heroBlock {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 850px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 3px solid var(--pixel-border);
  background: #ffffff;
  color: var(--color-primary-hover);
  box-shadow: 5px 5px 0 #d8cff8;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-title {
  color: var(--color-primary);
  font-family: "Press Start 2P", monospace;
  font-size: 46px;
  line-height: 1.28;
  text-shadow: 6px 6px 0 #ddd6fe, 10px 10px 0 rgb(76 29 149 / 0.12);
}

.hero-subtitle {
  margin: 22px auto 0;
  max-width: 700px;
  color: var(--color-text-darker);
  font-size: 18px;
  line-height: 1.7;
}

.hero-ip {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 18px;
  margin-top: 28px;
  padding: 14px 18px;
  border: 4px solid var(--color-primary);
  background: #ffffff;
  color: var(--color-text);
  box-shadow: 7px 7px 0 var(--pixel-shadow);
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.hero-ip:hover,
.hero-ip:focus {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--pixel-shadow);
}

.hero-ip span,
.hero-ip em {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  line-height: 1.35;
  color: var(--color-text-secondary);
  font-style: normal;
  text-transform: uppercase;
}

.hero-ip strong {
  grid-column: 1;
  color: var(--color-primary);
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.hero-ip em {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 8px 10px;
  border: 2px solid var(--color-primary);
  background: var(--color-secondary);
  color: var(--color-primary-hover);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.hero-cloud {
  position: absolute;
  width: 132px;
  height: 36px;
  background:
    linear-gradient(#fff 0 0) 0 12px / 36px 24px,
    linear-gradient(#fff 0 0) 36px 0 / 48px 36px,
    linear-gradient(#fff 0 0) 84px 12px / 48px 24px;
  background-repeat: no-repeat;
  filter: drop-shadow(4px 4px 0 rgb(124 58 237 / 0.08));
}

.hero-cloud-one {
  top: 42px;
  left: 12%;
}

.hero-cloud-two {
  top: 92px;
  right: 11%;
  transform: scale(0.82);
}

@media (width <= 760px) {
  .home-hero {
    min-height: 560px;
    padding-top: 58px;
  }

  .home-hero::before {
    width: 64px;
    height: 64px;
    top: 36px;
    left: 18px;
    opacity: 0.5;
  }

  .home-hero::after {
    width: 56px;
    height: 56px;
    right: 22px;
    bottom: 118px;
    opacity: 0.55;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-ip {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    text-align: center;
  }

  .hero-ip strong,
  .hero-ip em {
    grid-column: auto;
    grid-row: auto;
  }
}

.stats-section,
.awesome-things,
.home-features {
  padding: 56px var(--content-padding);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  max-width: var(--content-inner-width);
  margin: 0 auto;
}

.stat-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 184px;
  padding: 24px 18px;
  border: 3px solid var(--pixel-border);
  background: #ffffff;
  box-shadow: 7px 7px 0 #d8cff8;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 7px 13px 0 #d8cff8, var(--soft-shadow);
}

.stat-icon,
.feature-icon {
  display: block;
  width: 46px;
  height: 46px;
  position: relative;
  image-rendering: pixelated;
}

.stat-icon-online {
  background:
    linear-gradient(#22c55e 0 0) 14px 14px / 18px 18px,
    linear-gradient(#86efac 0 0) 6px 6px / 10px 10px,
    linear-gradient(#16a34a 0 0) 30px 30px / 10px 10px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 4px #14532d;
}

.stat-icon-chest,
.feature-icon-safe {
  background:
    linear-gradient(#f59e0b 0 0) 4px 10px / 38px 28px,
    linear-gradient(#7c2d12 0 0) 4px 22px / 38px 5px,
    linear-gradient(#fde68a 0 0) 20px 18px / 8px 12px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 4px #7c2d12;
}

.stat-icon-shield,
.feature-icon-world {
  background:
    linear-gradient(#7c3aed 0 0) 9px 4px / 28px 34px,
    linear-gradient(#a855f7 0 0) 15px 10px / 16px 18px,
    linear-gradient(#5b21b6 0 0) 18px 32px / 10px 8px;
  background-repeat: no-repeat;
  clip-path: polygon(50% 100%, 8% 72%, 8% 8%, 92% 8%, 92% 72%);
}

.stat-icon-diamond,
.feature-icon-lag {
  background:
    linear-gradient(45deg, transparent 27%, #38bdf8 0 73%, transparent 0),
    linear-gradient(135deg, transparent 27%, #a855f7 0 73%, transparent 0);
  border: 4px solid #4c1d95;
  transform: rotate(45deg) scale(0.78);
}

.stat-number {
  color: var(--color-primary);
  font-family: "Press Start 2P", monospace;
  font-size: 24px;
  line-height: 1.35;
}

.stat-label {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.awesome-things {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.72), rgb(237 233 254 / 0.55)),
    linear-gradient(90deg, transparent 0 31px, rgb(124 58 237 / 0.06) 31px 32px) 0 0 / 32px 32px;
}

.mc-inventory {
  display: grid;
  grid-template-columns: repeat(9, minmax(46px, 1fr));
  gap: 5px;
  max-width: 690px;
  margin: 0 auto 28px;
  padding: 12px;
  border: 4px solid #4b4b4b;
  background: #c6c6c6;
  box-shadow: inset 0 0 0 3px #f6f6f6, 8px 8px 0 rgb(33 21 50 / 0.18);
}

.mc-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 3px solid;
  border-color: #373737 #ffffff #ffffff #373737;
  background: #8b8b8b;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.mc-slot:hover,
.mc-slot:focus,
.mc-slot.selected {
  z-index: 1;
  background: #adadad;
  box-shadow: 0 0 0 3px #a855f7, 0 0 18px rgb(124 58 237 / 0.42);
  transform: translateY(-4px);
}

.mc-slot.empty {
  cursor: default;
  opacity: 0.55;
}

.mc-slot.empty:hover {
  transform: none;
  box-shadow: none;
  background: #8b8b8b;
}

.mc-item {
  display: block;
  position: relative;
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.mc-item-crown {
  background:
    linear-gradient(#facc15 0 0) 4px 12px / 26px 16px,
    linear-gradient(#fde047 0 0) 6px 4px / 6px 12px,
    linear-gradient(#fde047 0 0) 14px 0 / 6px 16px,
    linear-gradient(#fde047 0 0) 22px 4px / 6px 12px,
    linear-gradient(#7c3aed 0 0) 14px 16px / 6px 6px;
  background-repeat: no-repeat;
}

.mc-item-chest {
  background:
    linear-gradient(#f59e0b 0 0) 4px 8px / 26px 20px,
    linear-gradient(#78350f 0 0) 4px 17px / 26px 4px,
    linear-gradient(#fde68a 0 0) 14px 15px / 6px 8px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 3px #78350f;
}

.mc-item-pickaxe::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 6px;
  width: 6px;
  height: 28px;
  background: #8b5e34;
  transform: rotate(35deg);
  transform-origin: center;
}

.mc-item-pickaxe::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 24px;
  height: 8px;
  background: #a855f7;
  box-shadow: 4px 4px 0 #5b21b6;
  transform: rotate(35deg);
}

.mc-item-sword::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1px;
  width: 7px;
  height: 25px;
  background: #dff3ff;
  box-shadow: inset 0 0 0 2px #7c3aed;
  transform: rotate(45deg);
}

.mc-item-sword::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 6px;
  width: 18px;
  height: 6px;
  background: #4c1d95;
  transform: rotate(45deg);
}

.mc-item-diamond {
  background:
    linear-gradient(45deg, transparent 25%, #38bdf8 0 75%, transparent 0),
    linear-gradient(135deg, transparent 25%, #a855f7 0 75%, transparent 0);
  border: 4px solid #4c1d95;
  transform: rotate(45deg) scale(0.72);
}

.mc-item-key::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 22px;
  height: 8px;
  background: #facc15;
  box-shadow: 0 4px 0 #b45309, 18px -4px 0 #fde047, 22px -4px 0 #b45309;
}

.mc-item-key::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 4px solid #facc15;
  background: transparent;
  box-shadow: 2px 2px 0 #b45309;
}

.mc-item-star {
  background:
    linear-gradient(#facc15 0 0) 14px 2px / 6px 30px,
    linear-gradient(#facc15 0 0) 2px 14px / 30px 6px,
    linear-gradient(#fde047 0 0) 8px 8px / 18px 18px;
  background-repeat: no-repeat;
}

.mc-item-orb {
  background:
    linear-gradient(#a855f7 0 0) 9px 5px / 16px 24px,
    linear-gradient(#7c3aed 0 0) 5px 9px / 24px 16px,
    linear-gradient(#ffffff 0 0) 12px 8px / 6px 6px;
  background-repeat: no-repeat;
}

.mc-item-heart {
  background:
    linear-gradient(#dc2626 0 0) 7px 9px / 8px 8px,
    linear-gradient(#dc2626 0 0) 19px 9px / 8px 8px,
    linear-gradient(#ef4444 0 0) 5px 15px / 24px 10px,
    linear-gradient(#b91c1c 0 0) 11px 25px / 12px 6px;
  background-repeat: no-repeat;
}

.inventory-feature-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px;
  border: 3px solid var(--pixel-border);
  background: #ffffff;
  box-shadow: 8px 8px 0 #d8cff8, var(--soft-shadow);
}

.inventory-feature-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.inventory-feature-header h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
  line-height: 1.45;
}

.inventory-feature-box p {
  color: var(--color-text-darker);
  font-size: 16px;
  line-height: 1.55;
}

.inventory-feature-benefits {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.inventory-feature-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.inventory-feature-benefits li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  background: var(--color-primary);
  box-shadow: 3px 3px 0 #ddd6fe;
}

@media (width <= 720px) {
  .mc-inventory {
    grid-template-columns: repeat(3, minmax(58px, 1fr));
    max-width: 360px;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--content-inner-width);
  margin: 0 auto;
}

.feature-card {
  min-height: 260px;
  padding: 26px;
  border: 3px solid var(--pixel-border);
  background: #ffffff;
  box-shadow: 7px 7px 0 #d8cff8;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 7px 13px 0 #d8cff8, var(--soft-shadow);
}

.feature-card h3 {
  margin-top: 18px;
  color: var(--color-primary-hover);
  font-family: "Press Start 2P", monospace;
  font-size: 14px;
  line-height: 1.45;
}

.feature-card p {
  margin-top: 12px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

@media (width <= 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.site-home-categories {
  display: grid;
  gap: 18px;
}

@media (width > 600px) {
  .site-home-categories {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

.site-home-categories .category {
  position: relative;
  min-height: 178px;
  padding: 22px;
  border: 3px solid var(--pixel-border);
  background: #ffffff;
  box-shadow: 7px 7px 0 #d8cff8;
  color: var(--color-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.site-home-categories .category::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  background: #7c3aed;
  box-shadow: 16px 0 0 #a855f7, 0 16px 0 #c4b5fd;
  opacity: 0.8;
}

.site-home-categories .category:hover {
  color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: 7px 13px 0 #d8cff8, var(--soft-shadow);
}

.site-home-categories .category .image {
  max-height: 94px;
  object-fit: contain;
}

.site-home-categories .category span {
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.store-text,
.category-description,
.no-products,
.store-product-full,
.store-product-options,
.store-quote,
.store-category-tiered,
.widget,
.popup-content {
  border: 3px solid var(--pixel-border);
  border-radius: 0;
  background: rgb(255 255 255 / 0.94);
  box-shadow: 7px 7px 0 #d8cff8;
}

.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6,
.category-heading h2,
.store-category-tiered-header h2,
.store-product-full .product-title,
.store-product-options .product-title {
  color: var(--color-primary-hover);
  font-family: "Press Start 2P", monospace;
  line-height: 1.45;
}

.store-text {
  color: var(--color-text-darker);
  line-height: 1.65;
}

.store-lore .section-kicker {
  margin-bottom: 18px;
}

.category-heading {
  margin-bottom: 18px;
  padding: 0 0 6px;
}

.category-heading h2,
.store-category-tiered-header h2 {
  font-size: 24px;
}

.store-products-images {
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 22px;
}

.store-products-images .store-product-card {
  display: flex;
  flex-direction: column;
}

.store-product-card,
.store-product-tiered,
.basket .basket-item {
  position: relative;
  border: 3px solid var(--pixel-border);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 7px 7px 0 #d8cff8;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-product-card:hover,
.store-product-tiered:hover {
  transform: translateY(-6px);
  box-shadow: 7px 13px 0 #d8cff8, var(--soft-shadow);
}

.store-product-card::before,
.store-product-tiered::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  box-shadow: 12px 0 0 #a855f7, 0 12px 0 #5bbf67;
}

.store-products-list .store-product-card::before {
  display: none;
}

.store-product .image-link,
.store-product-tiered .image {
  min-height: 130px;
}

.store-product .image {
  max-height: 152px;
  object-fit: contain;
}

.store-products-list .store-product .image-link {
  min-height: 0;
}

.store-product .image-default::before,
.site-home-categories .category .image-default::before {
  background-color: var(--color-primary);
}

.store-product .product-title {
  color: var(--color-primary-hover);
  font-family: "Press Start 2P", monospace;
  font-size: 14px;
  line-height: 1.45;
}

.store-product .descr {
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.store-product-card .descr {
  max-height: 7.2em;
  overflow: hidden;
}

.store-product .price {
  color: var(--color-text-secondary);
  font-weight: 600;
}

.store-product .price strong {
  color: var(--color-primary);
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
}

.store-product .actions {
  gap: 10px;
}

.package-selector {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.package-selector-detail,
.package-selector-list {
  border: 3px solid var(--pixel-border);
  border-radius: 0;
  background: rgb(255 255 255 / 0.94);
  box-shadow: 7px 7px 0 #d8cff8;
}

.package-selector-detail {
  min-width: 0;
}

.package-selector-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
}

.package-selector-panel[hidden] {
  display: none;
}

.package-selector-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.package-selector-image,
.package-selector-option-image {
  display: block;
  border: 3px solid var(--pixel-border);
  background: #f6f2ff;
  object-fit: contain;
}

.package-selector-image {
  width: 150px;
  height: 150px;
  padding: 10px;
}

.package-selector-image-default {
  position: relative;
}

.package-selector-image-default::before {
  content: "";
  position: absolute;
  inset: 18px;
  background: var(--color-primary);
  mask: url("https://template-assets.tebex.io/images/package-default.svg") center center/contain no-repeat;
}

.package-selector-summary h3 {
  margin: 8px 0 0;
  color: var(--color-primary-hover);
  font-family: "Press Start 2P", monospace;
  font-size: 20px;
  line-height: 1.45;
}

.package-selector-description {
  max-height: 380px;
  overflow: auto;
  padding: 18px;
  border: 3px solid var(--color-primary);
  background: #f7fbff;
  color: var(--color-text-darker);
  line-height: 1.6;
}

.package-selector-buy {
  margin-top: auto;
  padding-top: 6px;
}

.package-selector-buy .product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.package-selector-buy .price {
  width: 100%;
  margin: 0;
}

.package-selector-buy .price strong {
  color: var(--color-primary);
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
}

.package-selector-buy .wide {
  flex: 1 1 100%;
}

.package-selector-buy .half {
  flex: 1 1 calc(50% - 5px);
  min-width: 150px;
}

.package-selector-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding: 16px;
}

.package-selector-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  width: 100%;
  padding: 14px;
  border: 3px solid #eadfff;
  border-radius: 0;
  background: #ffffff;
  color: var(--color-text-darker);
  text-align: center;
  cursor: pointer;
  box-shadow: 4px 4px 0 #efe7ff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.package-selector-option:hover,
.package-selector-option:focus {
  border-color: var(--color-primary);
  box-shadow: 5px 5px 0 #d8cff8;
  transform: translateY(-2px);
}

.package-selector-option.is-active {
  border-color: var(--color-primary);
  background: #f2f8ff;
  box-shadow: 5px 5px 0 var(--pixel-shadow);
}

.package-selector-option-image {
  width: 100%;
  height: 132px;
  padding: 10px;
}

.package-selector-option-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.package-selector-option-body strong {
  color: var(--color-primary-hover);
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.package-selector-option-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.package-selector-option-price {
  color: var(--color-text-secondary);
  font-weight: 700;
  line-height: 1.35;
}

.store-product-full .actions {
  border-top: 3px solid var(--pixel-border);
  background: rgb(255 255 255 / 0.86);
}

.store-product-full .product-title {
  font-size: 24px;
}

.store-form input[type=text],
.store-form input[type=password],
.store-form input[type=email],
.store-form input[type=number],
.store-form input[type=search],
.store-form input[type=url],
.store-form input[type=tel],
.store-form input[type=date],
.store-form input[type=time],
.store-form input[type=datetime-local],
.store-form input[type=file],
.store-form input[type=month],
.store-form input[type=week],
.store-form select,
.store-form textarea,
.widget-gift-card .gift-card-input {
  border: 3px solid var(--pixel-border);
  border-radius: 0;
  background: #ffffff;
  color: var(--color-text);
  box-shadow: 4px 4px 0 #d8cff8;
}

.popup .store-form input[type=text],
.popup .store-form input[type=password],
.popup .store-form input[type=email],
.popup .store-form input[type=number],
.popup .store-form input[type=search],
.popup .store-form input[type=url],
.popup .store-form input[type=tel],
.popup .store-form input[type=date],
.popup .store-form input[type=time],
.popup .store-form input[type=datetime-local],
.popup .store-form input[type=file],
.popup .store-form input[type=month],
.popup .store-form input[type=week],
.popup .store-form select,
.popup .store-form textarea {
  background: #ffffff;
}

.widget-title {
  color: var(--color-primary-hover);
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.widget + .widget {
  margin-top: 18px;
}

.widget-recent .avatar,
.widget-top-donator .avatar {
  border: 3px solid var(--pixel-border);
  border-radius: 0;
  background: var(--color-secondary);
  image-rendering: pixelated;
}

.widget-community-goal .progress,
.widget-goal .progress {
  height: 14px;
  border: 3px solid var(--pixel-border);
  border-radius: 0;
  background: #ede9fe;
}

.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  height: 100%;
  border-radius: 0;
  background: var(--color-primary);
}

.widget-server-status h6 {
  display: inline-flex;
  padding: 8px 10px;
  border: 3px solid var(--color-primary);
  background: var(--color-secondary);
  color: var(--color-primary-hover);
  cursor: pointer;
}

.badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 6px;
  border: 2px solid currentColor;
  font-family: Rubik, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.badge-success {
  color: #15803d;
}

.badge-danger {
  color: #b91c1c;
}

.site-footer {
  color: var(--color-text-secondary);
  background: #ffffff;
  border-top: 3px solid var(--pixel-border);
  box-shadow: 0 -7px 0 #d8cff8;
}

.site-footer-inner {
  padding-block: 24px;
}

.site-footer-inner .copyright {
  color: var(--color-text-secondary);
}

.popup {
  background-color: rgb(33 21 50 / 0.62);
}

.popup-content {
  color: var(--color-text);
}

.popup-close {
  border-left: 3px solid var(--pixel-border);
  border-bottom: 3px solid var(--pixel-border);
  border-radius: 0;
  background: var(--color-secondary);
}

.popup-close::before {
  background-color: var(--color-primary-hover);
}

.basket-popup-content {
  border-left: 3px solid var(--pixel-border);
  background: var(--color-bg);
  box-shadow: -7px 0 0 #d8cff8;
}

.basket .basket-header {
  background: var(--color-primary);
  color: #ffffff;
}

.basket .basket-second-header,
.basket .basket-checkout {
  background: rgb(255 255 255 / 0.9);
}

.basket .basket-title::before {
  background-color: #ffffff;
}

.basket .basket-item .title {
  color: var(--color-primary-hover);
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.toast {
  border: 3px solid var(--pixel-border);
  border-radius: 0;
  background: #ffffff;
  color: var(--color-text);
  box-shadow: 6px 6px 0 #d8cff8;
}

.toast.toast-success {
  background: #dcfce7;
}

.toast.toast-warning {
  background: #fef9c3;
}

.toast.toast-error {
  background: #fee2e2;
}

.media-slider .slider,
.media-slider .thumb,
.media-slider .open-lightbox {
  border-radius: 0;
}

.store-product-tiered {
  background: #ffffff;
}

.store-product-tiered.store-product-cta {
  background-image: linear-gradient(to bottom, #ffffff 55%, rgb(237 233 254 / 0.92));
}

@media (width <= 600px) {
  .btn-primary,
  .btn-secondary,
  .btn-tertiary {
    padding-inline: 13px;
    font-size: 9px;
  }

  .category-heading h2,
  .store-category-tiered-header h2,
  .store-product-full .product-title {
    font-size: 18px;
  }

  .store-product-card,
  .store-product-tiered,
  .feature-card,
  .stat-card,
  .inventory-feature-box,
  .site-home-categories .category {
    box-shadow: 5px 5px 0 #d8cff8;
  }
}

.page-index .site {
  gap: 0;
}

.page-index.home-categories-enabled .site {
  grid-auto-rows: auto;
}

.pixels-bg .pixel-float {
  background: var(--color-primary);
  box-shadow: 8px 0 0 rgb(168 85 247 / 0.72), 0 8px 0 rgb(196 181 253 / 0.8);
}

.pixels-bg .pixel-float:nth-child(2n) {
  background: #a855f7;
}

.pixels-bg .pixel-float:nth-child(3n) {
  background: #5b21b6;
}

.home-hero {
  min-height: 470px;
  padding-bottom: 72px;
}

.home-hero::after {
  bottom: 78px;
}

.page-index .stats-section {
  padding-top: 46px;
  padding-bottom: 0;
}

.page-index .stats-section + .awesome-things {
  margin-top: -1px;
  padding-top: 10px;
}

.site-content-widgets {
  display: block !important;
}

.site-content-widgets > main {
  width: 100%;
}

.sidebar-toggle {
  position: absolute;
  top: 22px;
  left: max(18px, calc((100vw - var(--content-inner-width)) / 2 + 18px));
  z-index: 20000;
  display: grid;
  gap: 4px;
  place-items: center;
  width: 64px;
  min-height: 64px;
  padding: 9px 7px;
  border: 3px solid var(--pixel-border);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 5px 5px 0 var(--pixel-shadow), 0 0 0 4px rgb(255 255 255 / 0.82);
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease, visibility 0.14s ease;
}

.sidebar-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: currentColor;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--pixel-shadow);
}

.sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 3px solid var(--pixel-border);
  background: var(--color-secondary);
  box-shadow: 4px 4px 0 #c4b5fd;
  color: transparent;
  font-size: 0;
}

.sidebar-close::before,
.sidebar-close::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 24px;
  height: 4px;
  margin: auto;
  background: var(--color-primary-hover);
}

.sidebar-close::before {
  rotate: 45deg;
}

.sidebar-close::after {
  rotate: -45deg;
}

.store-sidebar {
  position: fixed !important;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30000;
  width: min(350px, calc(100vw - 62px));
  padding: 74px 18px 24px;
  overflow: hidden auto;
  border-right: 3px solid var(--pixel-border);
  background:
    linear-gradient(rgb(124 58 237 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(124 58 237 / 0.05) 1px, transparent 1px),
    rgb(255 255 255 / 0.98);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 8px 0 0 #d8cff8, 24px 0 55px rgb(76 29 149 / 0.18);
  transform: translateX(calc(-100% - 28px));
  transition: transform 0.22s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

body.show-sidebar .store-sidebar {
  transform: translateX(0);
}

body.show-sidebar .sidebar-toggle {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.store-sidebar .widget {
  box-shadow: 5px 5px 0 #d8cff8;
}

.store-sidebar .site-navigation {
  position: static;
  visibility: visible;
  opacity: 1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.store-sidebar .site-navigation .menu {
  position: static;
  inset: auto;
  padding: 0;
  background: transparent;
  color: var(--color-text-secondary);
  translate: 0 0;
  opacity: 1;
  scale: 1;
}

.store-sidebar .site-navigation .close-navigation,
.store-sidebar .site-navigation.drawer .menu::after {
  display: none;
}

body:not(.show-navigation) .store-sidebar .site-navigation,
body:not(.show-navigation) .store-sidebar .site-navigation .menu {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

.store-products-list,
.store-products-images {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.store-products-list .store-product-card,
.store-products-images .store-product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: 100%;
}

.store-products-list .store-product-card::before {
  display: block;
}

.store-products-list .store-product .image-link,
.store-products-images .store-product .image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 126px;
  margin: 0 auto;
}

.store-products-list .store-product .image,
.store-products-images .store-product .image {
  width: auto;
  max-height: 136px;
}

.store-products-list .store-product .product-title {
  margin-right: 0;
}

.store-product-card .actions,
.store-product-tiered .actions {
  align-content: end;
  margin-top: auto;
  gap: 8px;
}

.store-products-list .store-product-card .actions,
.store-products-images .store-product-card .actions,
.store-products-tiered .store-product-tiered .actions {
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.store-products-list .store-product-card .wide,
.store-products-images .store-product-card .wide,
.store-products-tiered .store-product-tiered .wide {
  flex: 1 1 auto;
  min-width: 0;
}

.store-products-list .store-product-card .half,
.store-products-images .store-product-card .half,
.store-products-tiered .store-product-tiered .half {
  flex: 1 1 calc(50% - 4px);
  min-width: 112px;
}

.store-products-list .store-product-card .price,
.store-products-images .store-product-card .price {
  width: 100%;
  margin-bottom: 0;
}

.store-product-card .btn-primary,
.store-product-card .btn-secondary,
.store-product-card .btn-tertiary,
.store-product-tiered .btn-primary,
.store-product-tiered .btn-secondary,
.store-product-tiered .btn-tertiary {
  min-height: 38px;
  padding: 8px 10px;
  border-width: 2px;
  box-shadow: 3px 3px 0 var(--pixel-shadow);
  font-size: 8px;
}

.store-product-card .btn-secondary,
.store-product-card .btn-tertiary,
.store-product-tiered .btn-secondary,
.store-product-tiered .btn-tertiary {
  box-shadow: 3px 3px 0 #c4b5fd;
}

.store-product-card .btn-primary:hover,
.store-product-card .btn-primary:focus,
.store-product-card .btn-secondary:hover,
.store-product-card .btn-secondary:focus,
.store-product-card .btn-tertiary:hover,
.store-product-card .btn-tertiary:focus,
.store-product-tiered .btn-primary:hover,
.store-product-tiered .btn-primary:focus,
.store-product-tiered .btn-secondary:hover,
.store-product-tiered .btn-secondary:focus,
.store-product-tiered .btn-tertiary:hover,
.store-product-tiered .btn-tertiary:focus {
  box-shadow: 4px 4px 0 var(--pixel-shadow);
}

.store-product-card .btn-secondary:hover,
.store-product-card .btn-secondary:focus,
.store-product-card .btn-tertiary:hover,
.store-product-card .btn-tertiary:focus,
.store-product-tiered .btn-secondary:hover,
.store-product-tiered .btn-secondary:focus,
.store-product-tiered .btn-tertiary:hover,
.store-product-tiered .btn-tertiary:focus {
  box-shadow: 4px 4px 0 #c4b5fd;
}

.store-product-card .btn-glyph,
.store-product-tiered .btn-glyph {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.store-product-card .quantity-field,
.store-product-tiered .quantity-field {
  --btn-size: 34px;
  height: 40px;
  border-width: 2px;
  box-shadow: 3px 3px 0 #d8cff8;
}

.store-product-card .quantity-field .open-basket,
.store-product-tiered .quantity-field .open-basket {
  font-size: 11px;
}

.store-product-card .quantity-field input[type=number],
.store-product-tiered .quantity-field input[type=number] {
  font-size: 14px;
}

@media (width <= 760px) {
  .package-selector {
    grid-template-columns: 1fr;
  }

  .package-selector-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .package-selector-panel {
    padding: 16px;
  }

  .package-selector-hero {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .package-selector-image {
    width: 96px;
    height: 96px;
  }

  .package-selector-summary h3 {
    font-size: 15px;
  }

  .package-selector-description {
    max-height: 320px;
    padding: 14px;
  }

  .package-selector-option {
    padding: 10px;
  }

  .package-selector-option-image {
    height: 120px;
  }

  .package-selector-option-body strong {
    font-size: 10px;
  }

  .package-selector-option-description {
    font-size: 13px;
  }

  .home-hero {
    min-height: 490px;
    padding-bottom: 64px;
  }

  .page-index .stats-section {
    padding-top: 34px;
    padding-bottom: 0;
  }

  .page-index .stats-section + .awesome-things {
    padding-top: 8px;
  }

  .sidebar-toggle {
    top: 14px;
    left: 14px;
  }

  .store-products-list,
  .store-products-images {
    grid-template-columns: 1fr;
  }
}

@media (width <= 520px) {
  .package-selector-list {
    grid-template-columns: 1fr;
  }
}

/* Subscription / Package Variants Styling */
.variants-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.variant-label {
  cursor: pointer;
  display: block;
}

.variant-label input[type="radio"] {
  display: none;
}

.variant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border: 3px solid var(--pixel-border);
  background: #ffffff;
  box-shadow: 4px 4px 0 #d8cff8;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  height: 100%;
}


.variant-label:hover .variant-card {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 var(--pixel-shadow);
}

.variant-label input[type="radio"]:checked + .variant-card {
  border-color: var(--color-primary);
  background: var(--color-secondary);
  box-shadow: 4px 4px 0 var(--color-primary);
}

.variant-name {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.variant-label input[type="radio"]:checked + .variant-card .variant-name {
  color: var(--color-primary);
}

.variant-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}
