@layer velora-flat {
/* A170 — source-verified public theme fixes. No page structure, data, or API changes.
   Loaded after the selected theme's final CSS and A166 Flat Dark, before user custom CSS. */

/* Cart and gifts inherit an older dark-hero gradient even in the light scheme.
   Keep flat surfaces and explicit high-contrast headings in both modes. */
html[data-theme="light"] body.public-body :is(.cart-page,.gifts-page) .minecraft-page-head {
  background: #f8fafc !important;
  background-image: none !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
}
html[data-theme="light"] body.public-body :is(.cart-page,.gifts-page) .minecraft-page-head :is(h1,h2,h3,p,strong) {
  color: #111827 !important;
  background-image: none !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme="light"] body.public-body :is(.cart-page,.gifts-page) :is(.empty-state-card,.minecraft-empty) {
  color: #111827 !important;
  background-color: #f8fafc !important;
  background-image: none !important;
  border-color: #d1d5db !important;
}
html[data-theme="light"] body.public-body :is(.cart-page,.gifts-page) :is(.empty-state-card,.minecraft-empty) :is(h2,h3,p,strong) {
  color: #111827 !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme="light"] body.public-body :is(.cart-page,.gifts-page) :is(.eyebrow,.section-head .eyebrow) {
  color: #1d4ed8 !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme="dark"] body.public-body :is(.cart-page,.gifts-page) :is(.minecraft-page-head,.empty-state-card,.minecraft-empty) {
  background: #121215 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #374151 !important;
}
html[data-theme="dark"] body.public-body :is(.cart-page,.gifts-page) :is(.minecraft-page-head,.empty-state-card,.minecraft-empty) :is(h1,h2,h3,strong,p) {
  color: #fff !important;
  -webkit-text-fill-color: currentColor !important;
}

/* The three application steps were absolutely positioned over the first letters.
   Grid participates in normal layout at desktop/tablet/mobile breakpoints. */
html[data-theme] body.public-body .applications-stage10 .applications-process article {
  display:grid !important;
  grid-template-columns: 2.5rem minmax(0,1fr) !important;
  grid-template-rows:auto 1fr;
  align-items:start;
  column-gap:.75rem;
  row-gap:.25rem;
  padding:1rem !important;
  min-width:0;
  background-image:none !important;
}
html[data-theme] body.public-body .applications-stage10 .applications-process article>b {
  position:static !important;
  inset:auto !important;
  grid-column:1;
  grid-row:1 / span 2;
  width:2.5rem;
  height:2.5rem;
  margin:0 !important;
  padding:0 !important;
  display:grid;
  place-items:center;
  color:#0c0c0d !important;
  background:#3b82f6 !important;
  -webkit-text-fill-color:currentColor !important;
  border-radius:.5rem;
  font-weight:700;
}
html[data-theme] body.public-body .applications-stage10 .applications-process article>span {
  grid-column:2;
  grid-row:1;
  min-width:0;
  padding:0 !important;
  margin:0 !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  color:inherit;
}
html[data-theme] body.public-body .applications-stage10 .applications-process article>p {
  grid-column:2;
  grid-row:2;
  min-width:0;
  margin:0 !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
}
/* Avoid splitting short brand names inside the decorative hero badge. */
html[data-theme] body.public-body .applications-stage10 .applications-hero-mark b {
  display:block;
  max-width:100%;
  font-size:clamp(.65rem,1.05vw,1rem) !important;
  letter-spacing:.04em !important;
  white-space:nowrap !important;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:normal !important;
  overflow-wrap:normal !important;
}
html[data-theme="light"] body.public-body .applications-stage10 .applications-summary article>span {
  color:#1d4ed8 !important;
  -webkit-text-fill-color:currentColor !important;
  background:#dbeafe !important;
}
html[data-theme="dark"] body.public-body .applications-stage10 .applications-summary article>span {
  color:#0c0c0d !important;
  -webkit-text-fill-color:currentColor !important;
  background:#3b82f6 !important;
}

/* Gifts cards: old nested card rules removed their horizontal padding. */
html[data-theme] body.public-body .gifts-stage10 .gift-layout>.pixel-card {
  box-sizing:border-box;
  min-width:0;
  padding:clamp(1.125rem,2.5vw,1.5rem) !important;
}
html[data-theme] body.public-body .gifts-stage10 .gift-claim-card form {min-width:0;}
html[data-theme] body.public-body .gifts-stage10 .gift-claim-card input {min-width:0;}

/* Blue remains the sole default flat accent in both modes. Hover and text colors
   must pass AA on their own backgrounds; don't globally rewrite custom palettes. */
html[data-theme="light"] body.public-body :is(
  .primary-btn,.buy-btn,.checkout-submit,.topup-submit,.auth-submit,
  .pumpkin-credit-cta,.vp-credit-cta,.vp-mobile-credit,
  .vh-store-sale-cta,.pc-store-goal-cta,.velora-mobile-play
) {
  background-color:#2563eb !important;
  background-image:none !important;
  color:#fff !important;
  -webkit-text-fill-color:currentColor !important;
}
html[data-theme="light"] body.public-body :is(
  .primary-btn,.buy-btn,.checkout-submit,.topup-submit,.auth-submit,
  .pumpkin-credit-cta,.vp-credit-cta,.vp-mobile-credit,
  .vh-store-sale-cta,.pc-store-goal-cta,.velora-mobile-play
) :is(span,b,strong,small,i,em) {color:#fff !important;-webkit-text-fill-color:currentColor !important;}
html[data-theme="light"] body.public-body :is(
  .primary-btn,.buy-btn,.checkout-submit,.topup-submit,.auth-submit,
  .pumpkin-credit-cta,.vp-credit-cta,.vp-mobile-credit,
  .vh-store-sale-cta,.pc-store-goal-cta,.velora-mobile-play
):is(:hover,:focus-visible) {background-color:#1d4ed8 !important;color:#fff !important;}
html[data-theme="dark"] body.public-body :is(
  .primary-btn,.buy-btn,.checkout-submit,.topup-submit,.auth-submit,
  .pumpkin-credit-cta,.vp-credit-cta,.vp-mobile-credit,
  .vh-store-sale-cta,.pc-store-goal-cta,.velora-mobile-play
) {
  background-color:#3b82f6 !important;
  background-image:none !important;
  color:#0c0c0d !important;
  -webkit-text-fill-color:currentColor !important;
}
html[data-theme="dark"] body.public-body :is(
  .primary-btn,.buy-btn,.checkout-submit,.topup-submit,.auth-submit,
  .pumpkin-credit-cta,.vp-credit-cta,.vp-mobile-credit,
  .vh-store-sale-cta,.pc-store-goal-cta,.velora-mobile-play
) :is(span,b,strong,small,i,em) {color:#0c0c0d !important;-webkit-text-fill-color:currentColor !important;}
html[data-theme="dark"] body.public-body :is(
  .primary-btn,.buy-btn,.checkout-submit,.topup-submit,.auth-submit,
  .pumpkin-credit-cta,.vp-credit-cta,.vp-mobile-credit,
  .vh-store-sale-cta,.pc-store-goal-cta,.velora-mobile-play
):is(:hover,:focus-visible) {background-color:#60a5fa !important;color:#0c0c0d !important;}

/* Light labels on white cards and footers were below 4.5:1. */
html[data-theme="light"] body.public-body :is(.eyebrow,.footer-title,.footer-business-title,.footer-column h3,.site-footer h3,.staff-count,.staff-count-badge) {
  color:#1d4ed8 !important;
  -webkit-text-fill-color:currentColor !important;
}
html[data-theme="dark"] body.public-body :is(.eyebrow,.footer-title,.footer-business-title,.footer-column h3,.site-footer h3) {
  color:#93c5fd !important;
  -webkit-text-fill-color:currentColor !important;
}
/* A narrow danger button must never break between letters. */
html[data-theme] body.public-body :is(.page-account-security,.security-page) :is(.danger-btn,.ghost-btn,.secondary-btn,button) {
  word-break:normal !important;
  overflow-wrap:normal !important;
}
html[data-theme] body.public-body :is(.page-account-security,.security-page) :is(.danger-btn,.ghost-btn,button):not(.icon-btn) {
  white-space:nowrap;
  min-width:max-content;
}

/* cPanel-included Discord dock: remove the old forced white slab only in dark. */
html[data-theme="dark"] body.public-body .velora-discord-mascot-btn {
  background:#121215 !important;
  background-image:none !important;
  color:#e5e7eb !important;
  border-color:#374151 !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body.public-body .velora-discord-mascot-btn:is(:hover,:focus-visible) {
  background:#1c1b23 !important;
}

/* Jodit can append status and dropdown nodes outside the rich editor wrapper. */
html[data-theme="dark"] body.public-body :is(
 .jodit-container,.jodit-workplace,.jodit-wysiwyg,
 .jodit-toolbar__box,.jodit-status-bar,.jodit-popup,
 .jodit-dropdownlist,.jodit-toolbar-editor-collection
) {
  background:#0c0c0d !important;
  background-image:none !important;
  color:#e5e7eb !important;
  border-color:#374151 !important;
}
html[data-theme="dark"] body.public-body .jodit-status-bar :is(a,span,div,small) {
  color:#d1d5db !important;
  background:transparent !important;
}

/* All interactive elements keep a visible keyboard indicator. */
html[data-theme] body.public-body :is(
  .applications-process a,.gift-layout a,.gift-layout button,
  .cart-page a,.cart-page button,.velora-discord-mascot-btn
):focus-visible {outline:3px solid #93c5fd !important;outline-offset:3px !important;}
html[data-theme="light"] body.public-body :is(
  .applications-process a,.gift-layout a,.gift-layout button,
  .cart-page a,.cart-page button,.velora-discord-mascot-btn
):focus-visible {outline-color:#1d4ed8 !important;}
@media (max-width:680px) {
  html[data-theme] body.public-body .applications-stage10 .applications-process {grid-template-columns:minmax(0,1fr) !important;}
  html[data-theme] body.public-body .applications-stage10 .applications-process article {min-height:0;}
  html[data-theme] body.public-body .gifts-stage10 .gift-layout>.pixel-card {padding:1.125rem !important;}
  html[data-theme] body.public-body .gifts-stage10 .gift-claim-card form {flex-wrap:wrap;}
}
/* Legacy active skin rules have an extra body class and can otherwise reapply
   orange/white text after the Flat Dark layer. Explicitly resolve that tie. */
html[data-theme="light"] body.public-body.site-theme-pumkincraft :is(
 .primary-btn,.buy-btn,.checkout-submit,.topup-submit,.auth-submit,
 .pumpkin-credit-cta,.vp-credit-cta,.vp-mobile-credit,
 .vh-store-sale-cta,.pc-store-goal-cta,.velora-mobile-play
) {
  background:#2563eb !important;
  background-image:none !important;
  color:#fff !important;
  -webkit-text-fill-color:currentColor !important;
}
html[data-theme="light"] body.public-body.site-theme-pumkincraft :is(
 .primary-btn,.buy-btn,.checkout-submit,.topup-submit,.auth-submit,
 .pumpkin-credit-cta,.vp-credit-cta,.vp-mobile-credit,
 .vh-store-sale-cta,.pc-store-goal-cta,.velora-mobile-play
):is(:hover,:focus-visible) {
  background:#1d4ed8 !important;
  background-image:none !important;
  color:#fff !important;
}

}
@layer velora-flat {
  html[data-theme] body.public-body .applications-stage10 .applications-process {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-auto-flow:row !important;
    grid-auto-columns:minmax(0,1fr) !important;
    overflow:visible !important;
    min-width:0;
  }
  @media (max-width:680px) {
    html[data-theme] body.public-body .applications-stage10 .applications-process {
      grid-template-columns:minmax(0,1fr) !important;
    }
  }
}
