/* Shared category system: one Ember rhythm across catalogs and service pages. */
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) {
  --category-radius: 18px;
  --category-control: 46px;
  --category-gap: clamp(18px, 2.2vw, 28px);
}
/* Every category uses the same page canvas as the home page. Theme colour is
   reserved for cards and hero art so navigation never feels like a new site. */
html body.hub-page,
html body.accounts-page,
html body.rent-page,
html body.digital-page,
html body.steam-page,
html body.vpn-page,
html body.boost-page {
  background: var(--grad-bg) !important;
  background-color: var(--bg) !important;
  background-image: var(--grad-bg) !important;
  color: var(--text);
}
html body.hub-page::before,
html body.accounts-page::before,
html body.rent-page::before,
html body.digital-page::before,
html body.steam-page::before,
html body.vpn-page::before,
html body.boost-page::before {
  display: block !important;
  content: '' !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(58% 36% at 50% 0%, rgba(255, 92, 31, .09), transparent 72%),
    radial-gradient(40% 30% at 88% 8%, rgba(255, 174, 61, .045), transparent 72%);
}
html body.hub-page #emberCanvas,
html body.accounts-page #emberCanvas,
html body.rent-page #emberCanvas,
html body.digital-page #emberCanvas,
html body.steam-page #emberCanvas,
html body.vpn-page #emberCanvas,
html body.boost-page #emberCanvas { display: none !important; }
html body.vpn-page .vpn-backdrop { display: none !important; }

/* The home hero has a quiet ember glow in its upper right. Reuse that same
   layer on the account catalogue so entering a category does not change the
   page canvas. */
html body.accounts-page .accounts-hero {
  position: relative;
  overflow: hidden;
}
html body.hub-page .hub-hero::after,
html body.accounts-page .accounts-hero::after {
  content: '';
  position: absolute;
  width: min(835px, 78vw);
  height: 360px;
  left: 50%;
  right: auto;
  top: -90px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 105, 58, .13), transparent 68%);
}
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(.container) {
  width: min(100% - 40px, var(--container));
}
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(h1,h2,h3,p) {
  text-wrap: pretty;
}
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(.section-head,.steam-section-head,.rent-section-head,.services-section-head) {
  margin-bottom: 26px;
}
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(.section-title,.steam-section-head h2,.rent-section-head h2) {
  letter-spacing: -.04em;
}
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(.game-tile,.rent-game,.rent-order,.subscription-card,.region-service-card,.topup-workspace,.steam-hero-card,.steam-order-card,.service-panel,.boost-card,.vpn-plan-card,.vpn-hero-panel) {
  border-radius: var(--category-radius);
}
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(.game-tile,.rent-game,.subscription-card,.region-service-card,.boost-card,.vpn-plan-card) {
  transition: transform .25s cubic-bezier(.22,.61,.36,1), border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(.game-tile:hover,.rent-game:hover,.subscription-card:hover,.region-service-card:hover,.boost-card:hover,.vpn-plan-card:hover) {
  transform: translateY(-3px);
}
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  border-radius: 11px;
}
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(button.btn-primary,.btn-primary,.digital-submit,.rent-modal-submit,.steam-btn-primary,.vpn-primary-link,.form-submit) {
  min-height: var(--category-control);
  border-radius: 11px;
  font-weight: 700;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease, background-color .2s ease;
}
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(button.btn-primary,.btn-primary,.digital-submit,.rent-modal-submit,.steam-btn-primary,.vpn-primary-link,.form-submit):hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
:where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(button.btn-primary,.btn-primary,.digital-submit,.rent-modal-submit,.steam-btn-primary,.vpn-primary-link,.form-submit):active:not(:disabled) {
  transform: translateY(0);
}
@media (max-width: 700px) {
  :where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(.container) { width: min(100% - 32px, var(--container)); }
  :where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(.section-head,.steam-section-head,.rent-section-head,.services-section-head) { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  :where(.hub-page,.accounts-page,.rent-page,.digital-page,.steam-page,.vpn-page,.boost-page) :where(.game-tile,.rent-game,.subscription-card,.region-service-card,.boost-card,.vpn-plan-card,.btn-primary,.digital-submit,.rent-modal-submit,.steam-btn-primary,.vpn-primary-link,.form-submit) { transition: none !important; }
}
