:root {
  --swgc-gold: #f7cf70;
  --swgc-ink: #f3f4f6;
  --swgc-muted: #aeb6c2;
  --swgc-line: #34383f;
}
body.swgc-store-open { overflow: hidden; }
.swgc-store { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 24px; background: #05070bd6; backdrop-filter: blur(10px); }
.swgc-store.is-open { display: flex; }
#swgcStore, #swgcStore *, .swgc-success, .swgc-success * { box-sizing: border-box; letter-spacing: 0; }
#swgcStore { font-family: Inter, system-ui, sans-serif; color: var(--swgc-ink); }
#swgcStore .swgc-store__dialog { width: min(850px, 100%); max-height: calc(100dvh - 48px); overflow: auto; background: #16191e; border: 1px solid #44464c; border-radius: 16px; box-shadow: 0 30px 100px #0009; scrollbar-width: thin; }
#swgcStore .swgc-store__head { display: grid; grid-template-columns: 46px minmax(0, 1fr) 44px; align-items: center; gap: 16px; padding: 26px; border-bottom: 1px solid var(--swgc-line); position: sticky; top: 0; z-index: 5; background: #16191e; }
#swgcStore .swgc-store__coin { position: relative; width: 46px; height: 46px; border: 1px solid #f7cf704d; border-radius: 50%; background: #f7cf7010; }
#swgcStore .swgc-store__coin::before { content: ''; position: absolute; inset: 9px; border: 2px solid var(--swgc-gold); border-radius: 50%; }
#swgcStore .swgc-store__coin::after { content: ''; position: absolute; left: 21px; top: 16px; height: 12px; width: 2px; background: var(--swgc-gold); }
#swgcStore .swgc-store__eyebrow, .swgc-success .swgc-store__eyebrow { font-size: 10px; color: var(--swgc-gold); font-weight: 600; }
#swgcStore h2 { font: 700 24px/1.3 Inter, system-ui, sans-serif; color: var(--swgc-ink); margin: 4px 0; }
#swgcStore .swgc-store__head p { font-size: 12px; line-height: 18px; color: var(--swgc-muted); margin: 0; }
#swgcStore button { font-family: inherit !important; text-transform: none !important; letter-spacing: 0 !important; min-width: 0 !important; }
#swgcStore button:focus-visible { outline: 2px solid #7fd9e4 !important; outline-offset: 3px; }
#swgcStore .swgc-store__close { position: relative; width: 44px !important; min-height: 44px !important; height: 44px; padding: 0 !important; border: 1px solid var(--swgc-line) !important; border-radius: 12px !important; color: var(--swgc-muted) !important; background: #ffffff04 !important; box-shadow: none !important; cursor: pointer; }
#swgcStore .swgc-store__close::before, #swgcStore .swgc-store__close::after { content: none !important; }
#swgcStore .swgc-store__close span::before, #swgcStore .swgc-store__close span::after { content: ''; position: absolute; top: 20px; left: 13px; width: 16px; height: 2px; background: currentColor; transform: rotate(45deg); }
#swgcStore .swgc-store__close span::after { transform: rotate(-45deg); }
#swgcStore .swgc-store__close:hover { background: #ffffff0c !important; color: #fff !important; }
#swgcStore .swgc-store__layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); }
#swgcStore .swgc-store__picker { padding: 24px 26px 28px; min-width: 0; }
#swgcStore .swgc-store__section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; margin-bottom: 14px; }
#swgcStore .swgc-store__section-title small { font-size: 11px; font-weight: 500; color: var(--swgc-muted); }
#swgcStore .swgc-packs { display: grid; gap: 8px; }
#swgcStore .swgc-pack { position: relative !important; isolation: isolate; display: grid !important; grid-template-columns: 18px minmax(0, 1fr) auto !important; align-items: center !important; gap: 12px !important; width: 100% !important; min-height: 64px !important; padding: 11px 13px !important; border: 1px solid var(--swgc-line) !important; border-radius: 8px !important; background: #ffffff03 !important; box-shadow: none !important; color: var(--swgc-ink) !important; overflow: hidden; text-align: left !important; cursor: pointer; transform: none !important; transition: border-color 180ms ease, background-color 180ms ease !important; }
#swgcStore .swgc-pack::before { content: '' !important; position: absolute !important; inset: 0 !important; z-index: -1 !important; width: 100% !important; height: 100% !important; background: #f7cf700a !important; opacity: 0 !important; transform: translateX(-15%) !important; transition: opacity 180ms ease, transform 200ms ease !important; }
#swgcStore .swgc-pack::after { content: none !important; }
#swgcStore .swgc-pack:hover { border-color: #777572 !important; }
#swgcStore .swgc-pack.is-selected { border-color: #d1ad58 !important; background: #f7cf7008 !important; }
#swgcStore .swgc-pack.is-selected::before, #swgcStore .swgc-pack:hover::before { opacity: 1 !important; transform: translateX(0) !important; }
#swgcStore .swgc-pack__radio { position: relative; width: 18px; height: 18px; border: 1px solid #777f8a; border-radius: 50%; }
#swgcStore .swgc-pack.is-selected .swgc-pack__radio { border-color: var(--swgc-gold); }
#swgcStore .swgc-pack.is-selected .swgc-pack__radio::after { content: ''; position: absolute; inset: 4px; background: var(--swgc-gold); border-radius: 50%; }
#swgcStore .swgc-pack__copy { display: grid !important; min-width: 0; gap: 4px; }
#swgcStore .swgc-pack__amount { font: 600 16px/20px Inter, system-ui, sans-serif !important; color: var(--swgc-ink) !important; white-space: nowrap; }
#swgcStore .swgc-pack__label { font: 400 11px/15px Inter, system-ui, sans-serif !important; color: var(--swgc-muted); white-space: normal; }
#swgcStore .swgc-pack__best { color: var(--swgc-gold); }
#swgcStore .swgc-pack__price { font: 600 15px/20px Inter, system-ui, sans-serif !important; color: var(--swgc-ink) !important; white-space: nowrap; font-variant-numeric: tabular-nums !important; }
#swgcStore .swgc-checkout { padding: 24px 26px; background: #101317; border-left: 1px solid var(--swgc-line); min-width: 0; }
#swgcStore .swgc-checkout__summary { padding: 16px 0 0; }
#swgcStore .swgc-checkout__label { display: block; color: var(--swgc-muted); font-size: 12px; margin-bottom: 12px; }
#swgcStore .swgc-checkout__summary > strong { font: 700 34px/42px Inter, system-ui, sans-serif; color: var(--swgc-gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
#swgcStore .swgc-checkout__unit { color: var(--swgc-muted); font-size: 11px; margin-left: 6px; }
#swgcStore .swgc-checkout__total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--swgc-line); color: var(--swgc-muted); font-size: 12px; }
#swgcStore .swgc-checkout__total b { font-size: 21px; line-height: 28px; color: var(--swgc-ink); white-space: nowrap; }
#swgcStore .swgc-checkout__secure { display: flex; gap: 8px; align-items: center; margin: 24px 0 14px; color: #b1c6bc; font-size: 11px; }
#swgcStore .swgc-checkout__secure i { display: inline-block; width: 6px; height: 6px; background: #74cead; border-radius: 50%; }
#swgcStore .swgc-paypal { min-height: 48px; border-radius: 8px; }
#swgcStore .swgc-paypal iframe { background: transparent !important; }
#swgcStore .swgc-paypal:has(iframe) { overflow: hidden; border-radius: 24px; height: 48px; line-height: 0; }
#swgcStore .swgc-paypal__loading, #swgcStore .swgc-paypal__error { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; text-align: center; font-size: 12px; line-height: 18px; color: var(--swgc-muted); }
#swgcStore .swgc-paypal__error { color: #ffa2ac; }
#swgcStore .swgc-paypal__retry { width: 100%; min-height: 44px !important; padding: 10px !important; border: 1px solid var(--swgc-line) !important; border-radius: 8px !important; color: var(--swgc-ink) !important; background: #ffffff08 !important; cursor: pointer; }
#swgcStore .swgc-checkout__note { margin: 12px 0 0; font-size: 11px; line-height: 17px; color: var(--swgc-muted); }
#swgcStore .swgc-checkout__mode { color: var(--swgc-gold); font-size: 11px; }
.swgc-toast { position: fixed; z-index: 100004; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: #25292f; border: 1px solid #9c8249; color: #fff; border-radius: 8px; padding: 14px 18px; font: 500 13px/20px Inter, system-ui, sans-serif; opacity: 0; pointer-events: none; }
.swgc-toast.is-visible { opacity: 1; }
.swgc-success { position: fixed; inset: 0; z-index: 100003; display: flex; align-items: center; justify-content: center; padding: 20px; background: #05070bea; font-family: Inter, system-ui, sans-serif; color: var(--swgc-ink); }
.swgc-success__dialog { width: min(420px, 100%); padding: 28px; background: #171b20; border: 1px solid #555047; border-radius: 16px; text-align: center; }
.swgc-success__dialog h2 { font-size: 24px; }
.swgc-success__dialog p, .swgc-success__balance { font-size: 13px; line-height: 20px; color: var(--swgc-muted); }
.swgc-success__dialog > strong { display: block; font-size: 32px; color: var(--swgc-gold); margin: 20px 0 12px; }
.swgc-success__dialog > strong small { font-size: 13px; }
.swgc-success__balance { display: block; }
#swgcSuccessBtn { width: 100%; min-height: 48px; margin-top: 24px; border: 1px solid #d1ad58; border-radius: 10px; background: #f7cf7014 !important; color: var(--swgc-gold); cursor: pointer; font: 600 14px Inter, system-ui, sans-serif; }
.swgc-confetti { display: none; }
.kz-buy { display: inline-flex; gap: 6px; align-items: center; min-height: 40px; padding: 0 13px; border: 1px solid #d1ad5880; border-radius: 10px; background: #f7cf7014; color: var(--swgc-gold); text-decoration: none; font: 600 11px Inter, system-ui, sans-serif; white-space: nowrap; transition: background 180ms ease; }
.kz-buy::before { content: '+'; font-size: 20px; }
.kz-buy:hover { background: #f7cf7026; }
.kz-buy:focus-visible { outline: 2px solid #7fd9e4; outline-offset: 3px; }
@media (max-width: 700px) {
  .swgc-store { padding: 12px; }
  #swgcStore .swgc-store__dialog { max-height: calc(100dvh - 24px); }
  #swgcStore .swgc-store__layout { grid-template-columns: 1fr; }
  #swgcStore .swgc-store__head { padding: 16px; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
  #swgcStore .swgc-store__coin { display: none; }
  #swgcStore h2 { font-size: 21px; }
  #swgcStore .swgc-store__picker { padding: 16px; }
  #swgcStore .swgc-store__section-title { margin-bottom: 10px; }
  #swgcStore .swgc-pack { min-height: 56px !important; padding: 8px 10px !important; gap: 10px !important; }
  #swgcStore .swgc-pack__copy { gap: 2px; }
  #swgcStore .swgc-pack__amount { font-size: 14px !important; }
  #swgcStore .swgc-pack__price { font-size: 14px !important; }
  #swgcStore .swgc-checkout { padding: 14px 16px 18px; border-left: 0; border-top: 1px solid var(--swgc-line); }
  #swgcStore .swgc-checkout > .swgc-store__section-title, #swgcStore .swgc-checkout__label { display: none; }
  #swgcStore .swgc-checkout__summary { display: flex; align-items: baseline; padding: 0; gap: 5px; }
  #swgcStore .swgc-checkout__summary > strong { font-size: 24px; line-height: 32px; }
  #swgcStore .swgc-checkout__unit { margin: 0; }
  #swgcStore .swgc-checkout__total { border: 0; margin: 0 0 0 auto; padding: 0; }
  #swgcStore .swgc-checkout__total > span { display: none; }
  #swgcStore .swgc-checkout__total b { font-size: 18px; }
  #swgcStore .swgc-checkout__secure { margin: 8px 0 12px; }
  #swgcStore .swgc-checkout__note { margin-top: 8px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  #swgcStore *, #swgcStore *::before, .kz-buy { transition: none !important; animation: none !important; }
}
