/* Final typography clarity layer. Visual-only; keeps layout, game glow and Woo logic unchanged. */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.tmc24-theme,
body.tmc24-theme button,
body.tmc24-theme input,
body.tmc24-theme select,
body.tmc24-theme textarea {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.tmc24-theme :where(
  .tmc24-header,
  .tmc24-menu,
  .tmc24-stats,
  .tmc24-tabs,
  .tmc24-section-head,
  .tmc24-card,
  .tmc25-ticket-buy-form,
  .tmc79-entry-bundles,
  .tmc24-mobile-buy,
  .tmc-instant-prize-showcase,
  .woocommerce-cart-form,
  .cart_totals,
  .woocommerce-checkout,
  .wc-block-cart,
  .wc-block-components-sidebar,
  .wc-block-checkout,
  .tmc-cart-savings-notice,
  .tmc-wallet-credit-panel
) {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

body.tmc24-theme :where(
  .tmc24-card h3,
  .tmc24-card__desc,
  .tmc24-card__cash,
  .tmc24-card__meta,
  .tmc24-section-head,
  .tmc25-ticket-buy-form,
  .tmc79-entry-bundle,
  .tmc79-entry-bundle__badge,
  .tmc79-entry-bundle__meta,
  .tmc79-bulk-discounts,
  .tmc24-mobile-buy,
  .tmc-instant-prize-showcase,
  .woocommerce-cart-form,
  .cart_totals,
  .woocommerce-checkout,
  .wc-block-components-button,
  .tmc-cart-savings-notice,
  .tmc-wallet-credit-panel
) {
  text-shadow: none !important;
}

body.tmc24-theme :where(
  .tmc24-stat b,
  .tmc24-card__countdown,
  .tmc24-card__price,
  .tmc24-card__meta strong,
  .tmc25-ticket-buy-form,
  .tmc25-ticket-buy-form input,
  .tmc25-ticket-buy-form output,
  .tmc79-entry-bundle__price,
  .tmc79-entry-bundle strong,
  .tmc24-mobile-buy,
  .tmc24-mobile-buy input,
  .tmc-instant-prize-card__ticket,
  .tmc-instant-prize-card__count,
  .tmc-instant-prize-card__value,
  .woocommerce-cart-form .qty,
  .cart_totals,
  .wc-block-formatted-money-amount,
  .wc-block-components-quantity-selector,
  .tmc-cart-savings-notice
) {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

body.tmc24-theme :where(
  .tmc24-card h3,
  .tmc24-section-head h1,
  .tmc24-section-head h2,
  .product_title,
  .tmc25-ticket-buy-form h2,
  .tmc79-entry-bundle strong,
  .tmc-instant-prize-card__title
) {
  text-wrap: balance;
}

body.tmc24-theme :where(
  .tmc24-card__desc,
  .tmc24-product__summary,
  .tmc-cart-savings-notice,
  .tmc-wallet-credit-panel__text,
  .wc-block-components-product-metadata,
  .woocommerce-checkout p
) {
  text-wrap: pretty;
}

body.tmc24-theme :where(
  .tmc24-card a,
  .tmc25-ticket-buy-form button,
  .tmc25-ticket-buy-form input,
  .tmc24-mobile-buy button,
  .tmc24-mobile-buy input,
  .woocommerce-cart-form button,
  .woocommerce-cart-form input,
  .woocommerce-checkout button,
  .woocommerce-checkout input
) {
  -webkit-tap-highlight-color: rgba(0, 137, 255, .14);
}

@media (max-width: 760px) {
  body.tmc24-theme.single-product {
    overflow-x: hidden !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form {
    box-sizing: border-box !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form *,
  body.tmc24-theme.single-product .tmc25-ticket-buy-form *::before,
  body.tmc24-theme.single-product .tmc25-ticket-buy-form *::after {
    box-sizing: border-box !important;
  }
}

@media (max-width: 420px) {
  body.tmc24-theme.single-product .tmc25-ticket-buy-form {
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
  }
}
