/* Journey power-up quick recharge — Stars directly beside rewarded ads.
 * NOTE: this stylesheet only affects the existing in-game quick-buy popup.
 * Actual pricing, account balances, and idempotent purchase logic remain
 * inside game.js and the server-authoritative game economy.
 */
#modal .wp-quick-buy .wp-qp-charge-options{
  display:grid!important;
  box-sizing:border-box!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  align-items:start!important;
}
#modal .wp-quick-buy .wp-qp-charge-options > :is(.wp-qp-ad-offer,.wp-qp-star-offer){
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:0!important;
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-ad-button,
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-star-button{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  min-height:76px!important;
  height:76px!important;
  max-height:none!important;
  padding:5px 5px 4px!important;
  margin:0!important;
  border-radius:15px!important;
  border-width:2px!important;
  gap:2px!important;
  line-height:1.08!important;
  text-align:center!important;
  cursor:pointer;
  touch-action:manipulation!important;
  overflow:hidden!important;
  white-space:normal!important;
  transition:filter .16s ease,transform .16s ease!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-ad-button{
  border:2px solid #a87826!important;
  background:linear-gradient(160deg,#fff3ae 0%,#ffde77 55%,#ffc65a)!important;
  box-shadow:0 3px #b5833b,inset 0 1px #fffad4!important;
  color:#694323!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-ad-button .wp-qp-play{
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  margin:0!important;
  border:1px solid #c8a35c!important;
  box-shadow:0 1px #cd9a4a!important;
  background:#fff9d7!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-ad-button .wp-qp-play svg{
  width:13px!important;
  height:13px!important;
  margin-left:1px!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-ad-button .wp-qp-ad-gain{
  display:none!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-ad-button .wp-qp-ad-label{
  flex:0 0 auto!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  font:950 clamp(10px,3.3vw,13px)/1.06 ui-rounded,system-ui,sans-serif!important;
  letter-spacing:-.15px!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-ad-button .wp-qp-ad-label small{
  display:block!important;
  margin-top:3px!important;
  font:850 clamp(8px,2.5vw,10px)/1 ui-rounded,system-ui,sans-serif!important;
  letter-spacing:.15px!important;
  color:#856025!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-star-button{
  border:2px solid #a173bb!important;
  background:linear-gradient(155deg,#fff6ed 0%,#ecd7ff 45%,#e0c6fd 100%)!important;
  box-shadow:0 3px #845cb0,inset 0 1px #fff!important;
  color:#613c8d!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-star-button .wp-qp-star-symbol{
  display:block!important;
  margin:0!important;
  padding:0!important;
  width:23px!important;
  height:23px!important;
  max-width:23px!important;
  max-height:23px!important;
  object-fit:contain!important;
  line-height:1!important;
  filter:drop-shadow(0 1px 2px #aa783f63)!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-star-button .wp-qp-star-label{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  font:950 clamp(10px,3.2vw,13px)/1.05 ui-rounded,system-ui,sans-serif!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  text-align:center!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-star-button .wp-qp-star-label small{
  display:none!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-star-button .wp-qp-star-cost{
  display:block!important;
  max-width:100%!important;
  margin:1px 0 0!important;
  font:1000 clamp(12px,3.5vw,15px)/1.06 ui-rounded,system-ui,sans-serif!important;
  color:#6a4d91!important;
  text-shadow:0 1px #fff1e9!important;
  white-space:nowrap!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-ad-offer > small,
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-star-hint{
  display:block!important;
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:19px!important;
  margin:5px 0 0!important;
  padding:0 2px!important;
  color:#877186!important;
  font:800 clamp(8px,2.5vw,10px)/1.2 ui-rounded,system-ui,sans-serif!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  text-align:center!important;
}
#modal .wp-quick-buy .wp-qp-charge-options .wp-qp-star-hint{
  color:#80619f!important;
}
#modal .wp-quick-buy .wp-qp-charge-options button:disabled{
  opacity:.83!important;
  cursor:not-allowed!important;
  filter:saturate(.62)!important;
}
#modal .wp-quick-buy .wp-qp-charge-options button:disabled .wp-qp-star-cost{
  color:#83758d!important;
}
@media (hover:hover) and (pointer:fine){
  #modal .wp-quick-buy .wp-qp-charge-options button:hover:not(:disabled){
    filter:brightness(1.08)!important;
  }
}
#modal .wp-quick-buy .wp-qp-charge-options button:active:not(:disabled){
  transform:translateY(1px)!important;
}
#modal .wp-quick-buy .wp-qp-charge-options button:focus-visible{
  outline:3px solid #f8d476!important;
  outline-offset:3px!important;
}

#modal .wp-quick-buy .wp-qp-ad-or{
  margin:7px 0 6px!important;
  color:#a591aa!important;
  font-size:9px!important;
}
@media(max-width:350px){
  #modal .wp-quick-buy .wp-qp-charge-options{
    gap:7px!important;
  }
  #modal .wp-quick-buy .wp-qp-charge-options .wp-qp-ad-button,
  #modal .wp-quick-buy .wp-qp-charge-options .wp-qp-star-button{
    min-height:76px!important;
    height:76px!important;
    padding:5px 4px 4px!important;
  }
  #modal .wp-quick-buy .wp-qp-charge-options .wp-qp-ad-button .wp-qp-ad-label,
  #modal .wp-quick-buy .wp-qp-charge-options .wp-qp-star-button .wp-qp-star-label{
    font-size:11px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #modal .wp-quick-buy .wp-qp-charge-options button{
    transition:none!important;
    transform:none!important;
  }
}


/* One-tap Star recharge final compact polish — existing modal only. */
#modal .card:has(> .wp-quick-buy) .wp-quick-buy{
  box-sizing:border-box!important;
  padding:12px!important;
}
#modal .wp-quick-buy .wp-qp-summary{
  margin:7px 0 10px!important;
  font-size:11px!important;
}
#modal .wp-quick-buy .wp-qp-hero{gap:9px!important}
#modal .wp-quick-buy .wp-qp-icon{
  flex:0 0 43px!important;
  width:43px!important;
  height:43px!important;
}
#modal .wp-quick-buy .wp-qp-top{gap:7px!important}
#modal .wp-quick-buy .wp-qp-charge-options{gap:7px!important}
#modal .wp-quick-buy .wp-qp-buy{
  min-height:44px!important;
  padding:8px 10px!important;
}
#modal .wp-quick-buy .wp-qp-wallet{margin-top:7px!important}
#modal .wp-quick-buy .wp-qp-hint{margin-top:7px!important}
#modal .wp-quick-buy #quickPowerStar[disabled]{
  cursor:default!important;
}
@media(max-width:350px){
  #modal .card:has(> .wp-quick-buy) .wp-quick-buy{padding:11px!important;}
}
