@view-transition { navigation: none; }

[hidden] { display: none !important; }
body::before { content: none; }
.site-header {
  max-width: none;
  background:
    linear-gradient(to bottom, transparent 12%, rgb(25 25 25 / 20%) 65%, var(--color-bg)),
    var(--bg-image) center 30% / cover no-repeat;
}
.site-header-inner {
  max-width: calc(var(--content-width) - 2 * var(--content-padding));
  margin-inline: auto;
}
.site-header-inner .site-title img {
  display: block;
  width: min(75vw, 385px);
  height: auto;
  max-height: none;
  filter: drop-shadow(0 6px 16px rgb(22 12 27 / 60%));
}
.community-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 12px;
  color: var(--theme-c-text-h);
  background: rgb(25 25 25 / 86%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--theme-border-radius-small);
  text-align: left;
  cursor: pointer;
}
.community-link:hover,
.community-link:focus-visible {
  border-color: var(--theme-c-primary);
}
.community-icon {
  position: relative;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--theme-c-primary);
  color: var(--theme-c-button-text);
  border-radius: 7px;
  font-size: 21px;
}
.community-icon .il { margin: 0; }
.community-count {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  translate: -50% 0;
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--theme-c-primary);
  color: var(--theme-c-button-text);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.community-text {
  display: grid;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.community-text strong {
  color: var(--theme-c-primary);
  font-size: 16px;
  letter-spacing: .035em;
  text-transform: uppercase;
}
:is(.button-primary, .button-success, .button-danger).button,
.store-icon {
  color: var(--theme-c-button-text) !important;
}
.category-link.button {
  color: var(--theme-c-text-h) !important;
  background-color: var(--theme-category-bg) !important;
  border: 1px solid var(--theme-category-border) !important;
  border-bottom-width: 3px !important;
}
.category-link.button:is(:hover, :focus-visible) {
  background-color: var(--theme-category-hover) !important;
}
.navbar-link > .il { width: 48px; margin: 0; text-align: center; }
.navbar-img:has(.il), .home-category-img:has(.il) {
  display: grid;
  place-items: center;
  color: var(--theme-c-text);
}
.home-category-img:has(.il) {
  min-height: 52px;
  background: var(--theme-category-hover);
  color: var(--theme-c-primary);
  font-size: 26px;
}
.home-category-grid,
.home-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home-category-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(58px, 34%);
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  min-height: 164px;
  padding: clamp(15px, 2vw, 24px);
  padding-left: clamp(20px, 2.4vw, 29px);
  color: var(--theme-c-text-h);
  background: var(--theme-category-bg);
  border: 1px solid var(--theme-category-border);
  border-radius: 16px;
  transition: background-color .15s ease, border-color .15s ease;
}
.home-category-card::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--theme-c-primary);
}
.home-category-card:is(:hover, :focus-visible) {
  background: var(--theme-category-hover);
  border-color: var(--theme-c-primary);
}
.home-category-copy { min-width: 0; }
.home-category-copy h2 {
  margin: 0 0 4px;
  color: var(--theme-c-text-h);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.home-category-action {
  display: block;
  color: var(--theme-c-primary);
  font-weight: 700;
}
.home-category-price {
  display: block;
  margin-top: 14px;
  color: var(--theme-c-text);
}
.home-category-visual {
  display: grid;
  place-items: center;
  color: var(--theme-c-primary);
  font-size: 36px;
}
.home-category-visual .il { margin: 0; }
.home-category-art {
  display: block;
  width: 100%;
  max-width: 126px;
  height: auto;
  max-height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgb(0 0 0 / 30%));
}
.home-info-card {
  position: relative;
  padding: 29px clamp(16px, 2vw, 30px);
  background: var(--theme-c-block);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 16px;
  text-align: center;
}
.home-info-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 52px;
  height: 4px;
  margin-inline: auto;
  border-radius: 0 0 4px 4px;
  background: var(--theme-c-primary);
}
.home-info-card h2 {
  margin: 0 0 12px;
  color: var(--theme-c-text-h);
  font-size: 22px;
  font-weight: 800;
}
.home-info-card p {
  margin: 0;
  color: var(--theme-c-text);
  line-height: 1.65;
}
.home-info-card a {
  color: var(--theme-c-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .16em;
}
.server-funding { margin-top: 18px; }
.server-funding-track {
  position: relative;
  height: 36px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--theme-c-bg);
  border: 1px solid var(--theme-category-border);
  border-radius: 10px;
}
.server-funding-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--theme-c-success), var(--theme-c-primary));
  border-radius: 9px;
}
.server-funding-percentage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  text-shadow: 0 1px 3px black, 0 1px 5px black;
}
.server-funding-track + p { margin-top: 12px; }
@media (width <= 600px) {
  .home-category-grid, .home-info-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-category-card { min-height: 132px; }
  .home-category-art { max-height: 90px; }
  .server-funding { margin-top: 12px; }
}
.toolbar .basket-button {
  width: auto;
  line-height: 1;
  font-size: 16px !important;
  padding: 0 18px !important;
}
#basket-count { margin-left: 8px; }
.navigation-list li > ul .navbar-link { padding-left: 20px; }
.store-products-images { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.widget-recent_payments .widget-content { display: grid; gap: 16px; }
.payment-entry { display: flex; align-items: center; gap: 16px; }
.payment-entry .avatar { width: 36px; height: 36px; border-radius: 6px; }

.widget-top-customer { text-align: center; }
.widget-top-customer .widget-content {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.top-customer-skin {
  display: block;
  width: 110px;
  height: 174px;
  object-fit: contain;
  margin: 4px 0 12px;
  filter: drop-shadow(0 8px 12px rgb(0 0 0 / 45%));
}
.top-customer-name {
  color: var(--theme-c-text-h);
  font-size: 24px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.top-customer-label {
  color: var(--theme-c-primary);
  font-weight: 700;
}
.top-customer-empty { color: var(--theme-c-text); }

#basket {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  overflow: auto;
  color: var(--theme-c-text);
}
#basket::backdrop { background: rgb(0 0 0 / 68%); }
.basket-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.basket-heading h2 { color: var(--theme-c-text-h); }
#basket-lines { padding: 0; list-style: none; }
#basket-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px auto;
  align-items: center;
  gap: 8px;
  margin-block: 12px;
}
#basket-lines input, #basket-username {
  padding: 8px;
  color: var(--theme-c-text-h);
  background: var(--theme-c-bg);
  border: 1px solid var(--theme-c-text);
  border-radius: var(--theme-border-radius-small);
}
#basket-username { display: block; margin-top: 6px; }
#basket-error { color: var(--theme-c-danger); }

@media (width > 960px) {
  .mobile-navigation-only { display: none; }
  .community-link {
    position: absolute;
    inset-block: calc(var(--widget-padding) + 46px) 0;
    height: max-content;
    margin-block: auto;
  }
  .community-server { left: 0; }
  .community-discord { right: 0; flex-direction: row-reverse; text-align: right; }
}
@media (width <= 960px) {
  .site-header-inner .site-title img { width: min(75vw, 330px); }
  .site-header-inner:has(.community-link) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 8px;
    padding-bottom: 20px;
  }
  .site-header-inner:has(.community-link) .site-title { grid-column: 1 / -1; }
  .community-link { gap: 7px; padding: 5px; }
  .community-icon { flex-basis: 32px; width: 32px; height: 32px; font-size: 16px; }
  .community-text { font-size: 10px; overflow-wrap: anywhere; }
  .community-text strong { font-size: clamp(10px, 3vw, 14px); }
  .community-server .community-text strong { letter-spacing: 0; text-transform: none; }
  .community-count { bottom: calc(100% + 7px); min-width: 22px; padding: 2px 5px; font-size: 11px; }
  body.show-navigation { overflow: hidden; }
  .site-navigation { background: rgb(0 0 0 / 65%); }
}
