/* TikVui button surfaces. This layer leaves layout and action handlers to each page. */
body[data-dq-buttons] :is(button,.button,input[type="submit"],.customer-navigation a,.ctv-auth-nav a,.product-guide-link,.catalog-watch,summary):where(:not(.dq-community-qr)) {
  --dq-face: #2b1937;
  --dq-edge: #bc8fd6;
  --dq-light: #8d5cbe;
  --dq-ink: #fff4ff;
  isolation: isolate;
  box-sizing: border-box;
  border: 1px solid var(--dq-edge);
  border-radius: 13px 5px 13px 5px;
  background: linear-gradient(105deg, color-mix(in srgb, var(--dq-face), #ffdbff 9%), var(--dq-face) 46%, #181224 100%);
  box-shadow: inset 0 1px #ffffff38, inset 0 -2px #09061099, 0 3px 11px #07041150;
  color: var(--dq-ink);
  font-weight: 730;
  text-shadow: none;
  transition: box-shadow 160ms ease, filter 140ms ease, transform 140ms ease;
}

body[data-dq-buttons] :is(.button.primary,[id="buy-submit"],[id="cart-checkout"],[id="acc-create"],[id="wallet-pay"],[href^="/mua-game?game="]) {
  --dq-face: #721f49;
  --dq-edge: #ff92b0;
  --dq-light: #f45dab;
}
body[data-dq-buttons] :is(.plan-online,[href^="/choi-game?game="],[href="/tai-app"],[href*="/downloads/Qdragon"],.plan-download[aria-label^="Tải miễn phí"],.store-card[data-free="true"] .plan-download) {
  --dq-face: #124753;
  --dq-edge: #7edce9;
  --dq-light: #45bdd3;
}
body[data-dq-buttons] :is(.cart-add-button,[href="/gio-hang"],[href^="/nap-tien"]) {
  --dq-face: #483028;
  --dq-edge: #ffcc8d;
  --dq-light: #e9a957;
}
body[data-dq-buttons] :is(.google-login,[href^="/api/account/google/start"],[href^="https://zalo.me/"],[href^="https://discord.gg/"]) {
  --dq-face: #263f69;
  --dq-edge: #93bfff;
  --dq-light: #658aff;
}
body[data-dq-buttons] :is(.danger,.button.danger,button[data-cart-remove]) {
  --dq-face: #5c2235;
  --dq-edge: #fa95aa;
  --dq-light: #e36a89;
}
body[data-dq-buttons] :is(button,.button,.customer-navigation a,.ctv-auth-nav a):is([aria-pressed="true"],[aria-current="page"],[aria-current="true"],.active) {
  --dq-face: #224b4b;
  --dq-edge: #a5f6db;
  --dq-light: #58d5b4;
  box-shadow: inset 0 0 0 1px #abffdf61, 0 2px 10px #019d7430;
}

body[data-dq-buttons] :is(button,.button,input[type="submit"],.customer-navigation a,.ctv-auth-nav a,.product-guide-link,.catalog-watch,summary):not(.dq-community-qr):not([aria-hidden="true"])::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: none;
  background: none;
}

body[data-dq-buttons] :is(button,.button,input[type="submit"],.customer-navigation a,.ctv-auth-nav a,.product-guide-link,summary):not(:disabled,[aria-disabled="true"],.dq-community-qr):focus-visible,
body[data-dq-buttons] a[data-game-demo]:focus-visible {
  outline: 2px solid #f9df9f;
  outline-offset: 3px;
}
body[data-dq-buttons] :is(button,.button,input[type="submit"],.customer-navigation a,.ctv-auth-nav a,.product-guide-link,summary):not(:disabled,[aria-disabled="true"],.dq-community-qr):hover,
body[data-dq-buttons] a[data-game-demo]:hover .catalog-watch {
  filter: brightness(1.12);
  box-shadow: inset 0 1px #ffffff66, 0 0 14px color-mix(in srgb, var(--dq-light), transparent 58%);
}
body[data-dq-buttons] :is(button,.button,input[type="submit"],.customer-navigation a,.ctv-auth-nav a):not(:disabled,[aria-disabled="true"],.dq-community-qr):active {
  transform: translateY(1px);
  filter: brightness(.94);
}
body[data-dq-buttons] :is(button,.button,input[type="submit"]):is(:disabled,[aria-disabled="true"],.plan-disabled) {
  border-color: #887681;
  color: #e0d0dc;
  background: #302733;
  box-shadow: none;
  filter: saturate(.5);
  cursor: not-allowed;
  opacity: .75;
}
body[data-dq-buttons] :is(.button,.customer-navigation a,button) :is(.plan-title,.plan-price,small) {
  overflow-wrap: normal;
}
body[data-dq-buttons] .compact-catalog .store-card .plan-choice small {
  display: block;
  width: 100%;
  color: #f5dff0;
  font-size: .67rem;
  line-height: 1.15;
  margin: 0;
}
body[data-dq-buttons] .compact-catalog .store-card .cart-add-button {
  border-radius: 9px 4px;
  min-height: 38px;
}
body[data-dq-buttons] .compact-catalog .store-card .catalog-watch {
  position: absolute;
  z-index: 2;
  max-width: calc(100% - .8rem);
  white-space: normal;
  --dq-face: #432c64;
  --dq-edge: #d5b4fd;
  --dq-light: #bf8cff;
}


body[data-dq-buttons] :is(.button,.customer-navigation a,.ctv-auth-nav a,button,input[type="submit"],summary):where(:not(.fx-toggle,.dq-community-qr)) {
  position: relative;
}
body[data-dq-buttons] :is(.button.primary,.button.outline).plan-choice {
  color: var(--dq-ink);
  border-color: var(--dq-edge);
}
body[data-dq-buttons] .plan-choice .plan-price,
body[data-dq-buttons] .plan-choice .plan-title {
  color: var(--dq-ink);
}
body[data-dq-buttons] .compact-catalog .store-card .cart-add-button:not([aria-pressed="true"]) {
  background: linear-gradient(114deg, #54372c, #281d2a);
  border-color: #bc925f;
}
body[data-dq-buttons] .compact-catalog .store-card .cart-add-button[aria-pressed="true"] {
  background: linear-gradient(114deg, #25473f, #172937);
  border-color: #a5f6db;
}

@media (prefers-reduced-motion: no-preference) {
  body[data-dq-buttons][data-effects="on"]:not(.fx-paused) :is(button,.button,.customer-navigation a,.ctv-auth-nav a,.product-guide-link,summary):not(:disabled,[aria-disabled="true"],.dq-community-qr):is(:hover,:focus-visible,:active,[data-dq-flash])::before,
  body[data-dq-buttons][data-effects="on"]:not(.fx-paused) a[data-game-demo]:is(:hover,:focus-visible) .catalog-watch::before {
    background: url("/media/tikvui-muse-plasma-v1.png") 8% 58% / 113% auto no-repeat;
    animation: dq-plasma-pass 520ms cubic-bezier(.18,.6,.3,1) both;
  }
}
@keyframes dq-plasma-pass {
  0% { opacity: 0; background-position: 96% 63%; }
  43% { opacity: .85; }
  100% { opacity: .28; background-position: 12% 49%; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-dq-buttons] :is(button,.button,input[type="submit"],.customer-navigation a,.ctv-auth-nav a,summary) {
    transition: none;
    transform: none;
  }
  body[data-dq-buttons] :is(button,.button,.customer-navigation a,.catalog-watch,summary)::before { animation: none; }
}
@media (forced-colors: active) {
  body[data-dq-buttons] :is(button,.button,.customer-navigation a,summary) { border-color: ButtonText; }
}

/* The original shop paints primary actions and active filters with pale fills.
   Keep the matching dark surface and light text together in every state. */
body[data-dq-buttons].q-theme :is(.button.primary,.button.card-buy,.plan-choice,.game-filters button,.payment-switch button,.amount-options button,.discount-options button):not(:disabled,[aria-disabled="true"],.plan-disabled),
body[data-dq-buttons].q-theme :is(.button.primary,.button.card-buy,.plan-choice,.game-filters button,.payment-switch button,.amount-options button,.discount-options button):not(:disabled,[aria-disabled="true"],.plan-disabled):is(:hover,:focus-visible,:active) {
  background-image: linear-gradient(108deg, color-mix(in srgb, var(--dq-face), #ffdaff 13%), var(--dq-face) 56%, #1c1427);
  border-color: var(--dq-edge);
  color: var(--dq-ink);
}
body[data-dq-buttons].q-theme :is(.game-filters,.payment-switch,.amount-options,.discount-options) button:is([aria-pressed="true"],.active):not(:disabled) {
  background: linear-gradient(108deg, #2e665b, #233a48);
  border-color: #b2f9df;
  color: #f4fffb;
}
