@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800;900&display=swap");

:root {
  --red: #ff2a2f;
  --red-bright: #ff4b50;
  --panel: rgba(8, 6, 10, 0.78);
  --line: rgba(255, 255, 255, 0.11);
  --muted: rgba(255, 255, 255, 0.66);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--red) #080808;
  scrollbar-width: thin;
}

body {
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  background: #030303;
  color: #fff;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 36, 36, 0.25), transparent 36%),
    radial-gradient(circle at 25% 72%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #050505;
  background-size: auto, auto, 72px 72px, 72px 72px;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020202 0%, transparent 18%, transparent 82%, #020202 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 45%, #050505 100%);
}

.navbar {
  width: min(1280px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-nav__logo {
  width: 48px;
  height: 48px;
  background-image: var(--site-logo-url);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 18px rgba(255, 35, 35, 0.85));
}

.brand span span {
  color: var(--red);
}

.navbar nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.navbar nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.35px;
  transition: 0.2s ease;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: #fff;
}

.store-page {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.store-hero {
  text-align: center;
  padding: 30px 0 55px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.72);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
}

.live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
}

.store-hero h1 {
  margin-top: 28px;
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.92;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -4px;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.4);
}

.store-hero h1 strong {
  color: var(--red);
  text-shadow: 0 0 30px rgba(255, 38, 43, 0.6);
}

.store-hero p {
  width: min(720px, 100%);
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.store-panel {
  padding: 28px;
  border: 1px solid rgba(255, 55, 65, 0.38);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 35, 40, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: inset 0 0 40px rgba(255, 35, 35, 0.04), 0 25px 80px rgba(0, 0, 0, 0.35);
}

.store-panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-kicker,
.footer-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
}

.store-panel__header h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -2px;
}

.store-balance {
  padding: 13px 16px;
  border: 1px solid rgba(255, 42, 47, 0.35);
  border-radius: 14px;
  background: rgba(255, 42, 47, 0.08);
  text-align: right;
}

.store-balance > span,
.store-total-cost > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.store-balance strong {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
  white-space: nowrap;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
}

.store-balance strong span {
  display: inline;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

.store-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}

.store-search input,
.store-sort select {
  width: 100%;
  min-height: 48px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #09090c;
  outline: none;
}

.store-search input {
  padding: 0 15px;
}

.store-sort {
  min-width: 210px;
}

.store-sort > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.store-sort select {
  padding: 0 38px 0 13px;
}

.store-search input:focus,
.store-sort select:focus {
  border-color: rgba(255, 42, 47, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 42, 47, 0.08);
}

.store-stock-filter {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #09090c;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.store-stock-filter input {
  accent-color: var(--red);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.store-card {
  position: relative;
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid rgba(255, 55, 65, 0.42);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 42, 47, 0.15), transparent 43%),
    rgba(6, 5, 8, 0.92);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 73, 80, 0.78);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.42), 0 0 30px rgba(255, 42, 47, 0.08);
  z-index: 5;
}

.store-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #0c0b0e;
}

.store-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.store-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 4, 7, 0.92));
}

.store-card__image--fallback {
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 70px;
  font-weight: 900;
}

.store-card__content {
  min-height: 410px;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.store-card__status-row {
  min-height: 28px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.store-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #d8ffd0;
  background: rgba(83, 252, 24, 0.08);
  border: 1px solid rgba(83, 252, 24, 0.2);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.store-stock-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #53fc18;
  box-shadow: 0 0 10px #53fc18;
}

.store-stock-badge.sold-out {
  color: #c8c8ca;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.store-stock-badge.sold-out i {
  background: #686b72;
  box-shadow: none;
}

.store-card h3 {
  min-height: 58px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.store-price {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 42, 47, 0.22);
  border-radius: 12px;
  background: rgba(255, 42, 47, 0.07);
}

.store-price span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.store-price strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 19px;
}

.store-description-wrap {
  position: relative;
  outline: none;
}

.store-description {
  min-height: 72px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.store-description-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 40;
  width: min(420px, calc(100vw - 60px));
  max-height: 230px;
  padding: 14px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #f4f4f5;
  background: #121116;
  border: 1px solid rgba(255, 42, 47, 0.45);
  border-radius: 12px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.62);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: 0.18s ease;
}

.store-description-wrap.is-truncated {
  cursor: help;
}

.store-description-wrap.is-truncated:hover .store-description-tooltip,
.store-description-wrap.is-truncated:focus .store-description-tooltip,
.store-description-tooltip:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.store-description-tooltip::-webkit-scrollbar {
  width: 8px;
}

.store-description-tooltip::-webkit-scrollbar-track {
  background: #09090c;
  border-radius: 999px;
}

.store-description-tooltip::-webkit-scrollbar-thumb {
  background: var(--red);
  border: 2px solid #09090c;
  border-radius: 999px;
}

.store-card__spacer {
  flex: 1;
  min-height: 18px;
}

.store-buy-form__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
}

.store-buy-form label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.store-buy-form input {
  width: 100%;
  height: 42px;
  margin-top: 6px;
  padding: 0 10px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #09090c;
  outline: none;
}

.store-total-cost {
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  text-align: right;
}

.store-total-cost strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.store-buy-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), #ad1117);
  box-shadow: 0 12px 30px rgba(255, 42, 47, 0.22);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.store-buy-button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.store-buy-button:disabled,
.store-buy-button.disabled {
  color: #767982;
  background: #15151a;
  box-shadow: none;
  cursor: not-allowed;
}

.store-card__message {
  min-height: 18px;
  margin-top: 9px;
  color: #b9f8a7;
  font-size: 12px;
  text-align: center;
}

.store-card__message.error {
  color: #ff8a8f;
}

.store-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 30px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  text-align: center;
}

.store-state strong {
  color: #fff;
  font-size: 18px;
}

.store-state.error strong,
.store-state.error span {
  color: #ff8b90;
}

.store-toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 26px;
  max-width: calc(100vw - 30px);
  padding: 12px 17px;
  color: #fff;
  background: #17171c;
  border: 1px solid rgba(83, 252, 24, 0.28);
  border-radius: 11px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: 0.22s ease;
}

.store-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.store-toast.error {
  border-color: rgba(255, 42, 47, 0.45);
}

.site-footer {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto 35px;
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

::-webkit-scrollbar-track {
  background: #080808;
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border: 3px solid #080808;
  border-radius: 999px;
}

@media (max-width: 1050px) {
  .navbar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .navbar nav {
    order: 3;
    width: 100%;
  }

  .store-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .store-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .navbar,
  .store-page,
  .site-footer {
    width: min(100% - 24px, 1280px);
  }

  .navbar nav {
    gap: 14px;
  }

  .store-panel {
    padding: 16px;
  }

  .store-panel__header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-balance {
    width: 100%;
    text-align: left;
  }

  .store-toolbar {
    grid-template-columns: 1fr;
  }

  .store-search {
    grid-column: auto;
  }

  .store-sort {
    min-width: 0;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  .store-card__content {
    min-height: 0;
  }

  .store-buy-form__row {
    grid-template-columns: 1fr;
  }

  .store-total-cost {
    text-align: left;
  }
}


/* =========================================================
   PRODUCT IMAGE SIZE FIX
   Keeps every product image aligned and prevents large source
   images from breaking the store card layout.
   ========================================================= */

.store-card,
.product-card,
.points-store-card {
    overflow: hidden;
}

.store-card__media,
.product-card__media,
.points-store-card__media,
.store-product-image,
.product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 240px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #090c13;
}

.store-card__media img,
.product-card__media img,
.points-store-card__media img,
.store-product-image img,
.product-image-wrap img,
.store-card > img,
.product-card > img,
.points-store-card > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 240px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 640px) {
    .store-card__media,
    .product-card__media,
    .points-store-card__media,
    .store-product-image,
    .product-image-wrap {
        max-height: 210px;
    }

    .store-card__media img,
    .product-card__media img,
    .points-store-card__media img,
    .store-product-image img,
    .product-image-wrap img,
    .store-card > img,
    .product-card > img,
    .points-store-card > img {
        max-height: 210px;
    }
}


/* =========================================================
   STORE LAYOUT CORRECTIONS
   ========================================================= */

.store-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
  justify-content: start;
  align-items: stretch;
}

.store-card {
  width: 100%;
  max-width: 340px;
}

.store-card__content {
  min-height: 370px;
}

.store-card__image {
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
}

.store-card__image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

/* Restore the same footer layout used by the rest of the public site. */
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-kicker {
  display: block;
  margin-bottom: 8px;
  color: #ff2a2f;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
}

.site-footer strong {
  display: block;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 55, 65, 0.42);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.7);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  transition: 0.2s ease;
}

.footer-social:hover {
  color: #fff;
  border-color: rgba(255, 55, 65, 0.95);
  background: rgba(255, 42, 47, 0.18);
  box-shadow: 0 0 24px rgba(255, 38, 43, 0.22);
  transform: translateY(-2px);
}

.footer-social__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.footer-social__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media (max-width: 760px) {
  .store-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-card {
    max-width: none;
  }

  .site-footer {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-socials {
    justify-content: flex-start;
  }
}


/* Floating Kick status */
.kick-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.78);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.kick-status:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(14, 14, 19, 0.92);
}

.kick-status--floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
}

.kick-status__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 14px #facc15;
}

.kick-status--loading .kick-status__dot {
  animation: kickPulse 1.1s infinite ease-in-out;
}

.kick-status--live .kick-status__dot {
  background: #22c55e;
  box-shadow: 0 0 16px #22c55e;
}

.kick-status--offline .kick-status__dot {
  background: #ff2a2f;
  box-shadow: 0 0 16px #ff2a2f;
}

@keyframes kickPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@media (max-width: 620px) {
  .kick-status--floating {
    right: 14px;
    bottom: 14px;
  }

  .kick-status {
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 1.4px;
  }
}
