* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: Roboto, Arial, sans-serif; min-height: 100vh; }
.screen { display: none; }
.screen.active { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
button { font: inherit; }
.player-icon-library { display: none; }
.player-icon {
  display: inline-block;
  flex: none;
  width: var(--icon-size, 20px);
  height: var(--icon-size, 20px);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
[hidden] { display: none !important; }
.body { padding: 18px; }
.lbl { display: block; color: #45208a; font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.txt { width: 100%; padding: 15px; font-size: 17px; border: 1px solid #b39ae2; border-radius: 10px; }
.txt:focus { border-color: #6330b8; }
.err { color: #d61f3b; font-size: 13px; margin-top: 6px; min-height: 16px; }
.btn { margin-top: 18px; background: #6330b8; color: #fff; border: 0; border-radius: 8px; padding: 15px 22px; font-size: 18px; font-weight: 600; cursor: pointer; }
.btn:disabled { background: #c3cbe6; cursor: not-allowed; }
.btn.full { width: 100%; }
.btn.gray { background: #e8edf7; color: #243055; }
.ic-img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; display: block; }
.topbar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 12px; }
.timer { background: #fff3cd; color: #8a5a00; padding: 4px 12px; border-radius: 14px; font-weight: 700; }
.uname { display: flex; justify-content: space-between; align-items: center; background: #f3ecff; border-radius: 8px; padding: 10px 12px; font-size: 15px; margin-bottom: 12px; }
.uname button { background: none; border: 0; color: #6330b8; font-weight: 600; cursor: pointer; font-size: 15px; }
#edit-user { display: inline-flex; align-items: center; gap: 4px; }
.edit-ic { width: 13px; height: 13px; }
.editbox { margin-bottom: 12px; }
.sec { color: #4b169c; font-weight: 700; font-size: 17px; margin: 6px 0 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.opt { flex: 1 1 44%; display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid #cab5e8; border-radius: 10px; background: #fff; font-size: 16px; cursor: pointer; color: inherit; text-align: left; }
.opt.sel { background: #f1e3ff; border-color: #6330b8; }
.opt.one { flex: 0 0 44%; cursor: default; }
#networks .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#networks .opt:disabled,
#s3 .btns button:disabled { opacity: 0.55; cursor: not-allowed; }
#network-notice { margin: -4px 0 12px; }
.card { border: 1px solid #e2e6ef; border-radius: 10px; padding: 14px; background: #f8f9fc; }
.card.plain { background: #fff; }
.qr { width: 100%; max-width: 310px; aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: 6px; position: relative; }
#qrhost { height: 100%; }
.qr svg { width: 100%; height: 100%; display: block; }
.mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 15%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 2px solid #fff; overflow: hidden; box-shadow: 0 2px 8px #0003; }
.mid-full { width: 100%; height: 100%; object-fit: contain; display: block; }
.addr { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e6ef; border-radius: 8px; padding: 12px; margin: 12px 0 10px; color: #50476b; font-size: 14px; overflow: hidden; white-space: nowrap; width: 100%; cursor: pointer; }
#addrlabel { overflow: hidden; text-overflow: ellipsis; }
.btns { display: flex; gap: 10px; }
.btns button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; border: 1px solid #cab5e8; background: #fff; border-radius: 8px; font-size: 15px; color: #1d2d5c; cursor: pointer; }
.act-ic { width: 18px; height: 18px; object-fit: contain; display: block; flex-shrink: 0; }
.inline-ic { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.safe { display: flex; align-items: center; justify-content: center; gap: 8px; background: #f4ecff; color: #391779; text-align: center; padding: 12px; border-radius: 8px; margin-top: 12px; font-size: 14px; }
.verified-icon { color: #4b169c; }
.video { background: #000; border-radius: 8px; height: 150px; display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; color: #fff; overflow: hidden; }
.video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.play { width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #222; }
.video small { position: absolute; left: 10px; bottom: 8px; }
.step { display: flex; gap: 10px; margin-top: 16px; }
.num { width: 26px; height: 26px; border-radius: 50%; background: #e8edf7; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.step h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.grow { flex: 1; }
.cash-note { font-size: 15px; line-height: 1.4; margin-bottom: 12px; }
.big { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 8px; border: 1px solid #6330b8; background: #eef4ff; color: #1d2d5c; font-size: 15px; font-weight: 500; cursor: pointer; margin-bottom: 8px; }
.big.sec2 { border-color: #cab5e8; background: #fff; color: #4b5563; }
.rec { background: #6330b8; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-left: 2px; }
.hint { font-size: 13px; color: #6b7390; }
.sub { list-style: none; font-size: 15px; color: #1f2937; }
.sub li { display: flex; align-items: center; gap: 8px; margin-top: 8px; line-height: 1.35; }
.sub-num { color: #6b7390; font-weight: 500; min-width: 16px; flex-shrink: 0; }
.sub-ic { width: 20px; height: 20px; object-fit: contain; display: block; flex-shrink: 0; }
.wallet-go { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: #00d632; color: #fff; font-weight: 700; border-radius: 8px; padding: 13px; font-size: 16px; text-decoration: none; }
.wallet-go.is-speed { background: #1556f0; }
.wallet-web-link { display: inline-block; margin-top: 10px; color: #4b169c; font-size: 14px; font-weight: 600; }
.wallet-go-icon { width: 22px; height: 22px; object-fit: contain; display: block; flex-shrink: 0; }
.foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid #dde3f3; color: #391779; font-size: 14px; margin-top: 18px; }
.foot-lock { display: inline-flex; align-items: center; gap: 6px; }
.footer-lock { --icon-size: 17px; }
.footer-shield { --icon-size: 23px; }
.foot a { color: #391779; text-decoration: none; }
.support { text-align: center; font-size: 14px; margin-top: 10px; color: #555; }
.support a { color: #491ba0; font-weight: 600; }
.demo { margin: 14px 0 0; border: 2px dashed #f59e0b; background: #fffbeb; border-radius: 10px; padding: 10px; font-size: 12px; color: #92400e; }
.demo div { display: flex; gap: 6px; margin-top: 6px; }
.demo button { flex: 1; padding: 8px 2px; border: 0; border-radius: 6px; font-size: 12px; cursor: pointer; font-weight: 600; color: #fff; }
.demo .paid { background: #16a34a; }
.demo .failed { background: #dc2626; }
.result { text-align: center; padding: clamp(24px, 6vw, 44px); }
.big-ic { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; color: #fff; }
.result-icon { --icon-size: 44px; }
.big-ic.ok { background: #16a34a; }
.big-ic.bad { background: #dc2626; }
.big-ic.wait { background: #6b7280; }
.result h2 { font-size: 26px; margin-bottom: 8px; }
.result p { color: #555; font-size: 15px; line-height: 1.45; }
.kv { text-align: left; background: #f3ecff; border-radius: 10px; padding: 6px 14px; margin: 20px 0; }
.kv div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #e3e8f4; font-size: 14px; gap: 10px; }
.kv div:last-child { border: 0; }
.kv span:first-child { color: #6b7390; }
.kv span:last-child { font-weight: 600; text-align: right; word-break: break-all; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 14px; opacity: 0; pointer-events: none; transition: 0.25s; z-index: 9; }
.toast.show { opacity: 1; }
.floating-support {
  position: fixed;
  z-index: 8;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 17px;
  border-radius: 999px;
  background: #37157e;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid #9553e9;
  box-shadow: 0 0 16px #6026cf80;
}
.floating-support:hover { background: #4a1ba5; }
.floating-support img { display: block; }


:focus-visible { outline: 3px solid #9462ff; outline-offset: 3px; }

.welcome-landing, .username-layout, .payment-layout {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: clamp(12px, 2.8vw, 34px);
}

.welcome-landing { text-align: center; }

.welcome-hero, .username-hero, .pay-hero-top {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: 42% minmax(0, 1fr);
  align-items: center;
  text-align: center;
}

.panda-art {
  position: absolute;
  z-index: -1;
  inset: 0 41% 0 0;
  background: url("../images/goldenpandagaming-hero.webp") center / cover no-repeat;
  mask-image: radial-gradient(ellipse 69% 66% at 48% 47%, #000 48%, transparent 88%);
  pointer-events: none;
}

.wordmark {
  color: #fbf7ff;
  font-size: clamp(25px, 6.8vw, 62px);
  font-weight: 900;
  font-style: italic;
  line-height: .95;
  letter-spacing: -.065em;
  text-shadow: 0 2px #ab9cfe, 0 4px #231048, 0 5px 15px #08021d;
}
.brand-gold {
  color: var(--gp-gold);
  text-shadow: 0 2px #c36a08, 0 4px #452101, 0 0 20px #ffc33d66;
}
.brand-gaming {
  display: block;
  color: var(--gp-gold);
  margin-top: .45em;
  font-size: .37em;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px #000;
}

.welcome-hero { min-height: clamp(240px, 41vw, 455px); }
.welcome-copy, .username-hero .wordmark, .pay-copy { grid-column: 2; }
.welcome-copy { padding: 8px 4px 16px; }
.welcome-tagline {
  margin-top: .52em;
  font-size: clamp(27px, 7vw, 78px);
  font-weight: 900;
  font-style: italic;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 3px #442a99, 0 6px 18px #070320;
}
.welcome-tagline strong {
  color: var(--gp-gold);
  text-shadow: 0 3px #ca6501, 0 6px 10px #100417;
}
.welcome-desc {
  max-width: 24em;
  margin: .85em auto 0;
  font-weight: 600;
  font-size: clamp(14px, 2.4vw, 22px);
  line-height: 1.35;
  color: var(--gp-muted);
  text-shadow: 0 2px 8px #060021;
}

.welcome-deposit, #open-wallet {
  border: 2px solid #fff1a2;
  background: var(--gp-gold-fill);
  color: #231007;
  box-shadow: 0 0 0 3px #d2760a, 0 0 20px #ffba47b0, inset 0 -3px #d07807;
  font-weight: 900;
}
.welcome-deposit {
  width: min(86%, 445px);
  min-height: 56px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: clamp(22px, 4vw, 34px);
  font-style: italic;
  cursor: pointer;
}
.button-arrow, .button-chevron { margin-inline-start: .3em; }
.button-arrow { --icon-size: clamp(21px, 4vw, 31px); }
.play-icon { --icon-size: 25px; }

.welcome-games, .wallet-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.4vw, 16px);
}
.welcome-games { width: min(100%, 770px); margin: clamp(20px, 3vw, 36px) auto 0; }
.welcome-game {
  display: block;
  border-radius: clamp(8px, 1.6vw, 18px);
  box-shadow: 0 0 14px #1eb2ff9c;
}
.welcome-game img { display: block; width: 100%; height: auto; aspect-ratio: 1.12; object-fit: contain; border-radius: inherit; }
.welcome-game:hover { box-shadow: 0 0 0 2px var(--gp-gold), 0 0 16px #ffbb55; }
.welcome-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  margin: clamp(16px, 3vw, 30px) auto 0;
  font-size: clamp(15px, 3vw, 24px);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  font-style: italic;
}
.welcome-rule::before, .welcome-rule::after {
  content: "";
  width: clamp(20px, 11vw, 140px);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gp-gold), transparent);
  box-shadow: 0 0 12px #ffc54766;
}
.welcome-showcase {
  display: block;
  width: min(100%, 690px);
  height: auto;
  margin: clamp(12px, 2vw, 22px) auto 0;
  border-radius: clamp(8px, 1.6vw, 18px);
}

.username-layout, .payment-layout { display: grid; gap: 20px; }
.username-hero { min-height: clamp(190px, 50vw, 340px); }
.username-desc, .pay-note {
  text-align: center;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.4;
}
.username-desc strong, .pay-note strong, .pay-amt strong { color: var(--gp-gold); }
.username-desc em { color: var(--gp-sky); font-style: normal; }
.wallet-list { margin-top: 16px; list-style: none; }
.wallet-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 54px;
  padding: 8px 5px;
  border: 1px solid #65e9ff;
  border-radius: 13px;
  background: linear-gradient(170deg, #14256b, #100635);
  box-shadow: inset 0 0 8px #257eff90, 0 0 10px #18a1ff66;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.wallet-list img { flex: none; width: 29px; height: 29px; object-fit: contain; }

.s2-body, .payment-body, .result {
  min-width: 0;
  padding: clamp(14px, 3vw, 25px);
  border: 1px solid #a877eb;
  border-radius: clamp(16px, 3vw, 26px);
  background: linear-gradient(155deg, #fff, #f7f1ff);
  color: #241742;
  box-shadow: 0 10px 24px #08022277, 0 0 22px #8729f17a;
}
.s2-body {
  position: relative;
  margin-top: 19px;
  padding-top: 31px;
  border-color: #ffe18a;
  box-shadow: 0 0 0 2px #be6d35, 0 0 23px #fbaa5866;
}
.s2-body .lbl {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  inset: auto auto 100% 12px;
  margin: 0;
  transform: translateY(50%);
  padding: 9px 17px;
  border: 1px solid #d79aff;
  border-radius: 999px;
  color: #fff;
  background: var(--gp-purple-fill);
  box-shadow: 0 0 9px #a34affaa;
}
.username-label-icon, .username-input-icon { --icon-size: 23px; }
.username-field { position: relative; }
.username-input-icon {
  position: absolute;
  color: #4b169c;
  inset-block-start: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}
.s2-body .txt { min-height: 52px; padding-inline-start: 46px; border: 1px solid #9f7ed7; color: #241742; }
.s2-body .txt::placeholder { color: #6e5d94; }
.btn, #copy-address {
  background: var(--gp-purple-fill);
  color: #fff;
  border: 1px solid #c986ff;
  box-shadow: 0 0 11px #a43dff66;
  font-weight: 700;
}
#sub {
  width: 100%;
  min-height: 54px;
  margin-top: 5px;
  border: 2px solid #ffe486;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #d78936, 0 0 14px #d986ff8a;
  font-size: clamp(17px, 4vw, 23px);
}
.btn:disabled { background: #5b398e; color: #f2e8ff; }
.btn:hover:not(:disabled), .btns button:hover:not(:disabled), .welcome-deposit:hover { filter: brightness(1.1); }

.username-hero .panda-art, .pay-hero-top .panda-art {
  background-position: 37% center;
  mask-image: radial-gradient(ellipse 67% 66% at 44% 48%, #000 45%, transparent 86%);
}
.pay-hero-top { min-height: clamp(168px, 43vw, 300px); }
.payment-nav {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: 10px clamp(12px, 2.8vw, 34px) 0;
}
.payment-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid #a969ef80;
  border-radius: 999px;
  background: #21104cb3;
  color: var(--gp-ink);
  font-weight: 700;
  cursor: pointer;
}
.payment-back:hover { background: #351872; }
.close-session-dialog {
  max-width: min(calc(100% - 28px), 430px);
  margin: auto;
  padding: clamp(18px, 5vw, 26px);
  border: 1px solid #a877eb;
  border-radius: 20px;
  background: linear-gradient(155deg, #fff, #f7f1ff);
  color: #241742;
  box-shadow: 0 10px 30px #08022299, 0 0 22px #8729f17a;
}
.close-session-dialog::backdrop { background: #0b0428c9; }
.close-session-dialog h2 { margin-bottom: 8px; font-size: 24px; }
.close-session-dialog p { line-height: 1.45; }
.close-session-error { margin-top: 12px; }
.close-session-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.close-session-actions .btn {
  flex: 1 0 max-content;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  font-size: 15px;
}
.close-session-actions .btn.gray { border-color: #cab5e8; box-shadow: none; }
.pay-copy .wordmark { font-size: clamp(23px, 5.7vw, 48px); }
.pay-amt { margin: 10px 0 5px; font-size: clamp(16px, 4.2vw, 35px); line-height: 1.06; }
.pay-slot {
  display: block;
  width: min(100%, 290px);
  height: auto;
  margin-inline: auto;
  mask-image: radial-gradient(ellipse 72% 76% at center, #000 45%, transparent 77%);
}
.pay-note { margin: 8px auto 0; max-width: 31em; color: var(--gp-muted); }
.sec { display: flex; align-items: center; gap: 6px; }
.uname > span { min-width: 0; overflow-wrap: anywhere; }
.opt { min-height: 46px; padding: 8px; font-weight: 700; }
.opt .ic-img { width: 27px; height: 27px; }
.opt.sel { box-shadow: 0 0 0 1px #8b43d4; }
.qr { border: 1px solid #ad80eb; border-radius: 12px; overflow: hidden; }
.mid { width: 13%; border: 0; background: transparent; box-shadow: none; }
.mid-full { object-fit: cover; }
#v-qr { border: 0; padding: 3px 0 0; background: transparent; }
.btns button { min-width: 0; min-height: 45px; padding: 8px 5px; border-radius: 12px; }
.addr .player-icon { --icon-size: 18px; color: #4b169c; }
#open-wallet { box-shadow: 0 2px 7px #b9671555, inset 0 -2px #d7880a; }
.result { width: min(calc(100% - 24px), 460px); margin: clamp(20px, 8vw, 90px) auto; }

.foot {
  width: min(100%, 72rem);
  margin: auto auto 0;
  gap: 8px;
  flex-wrap: wrap;
  border-color: #a969ef65;
  color: var(--gp-muted);
}
.foot a { color: var(--gp-ink); }
.foot a:hover { text-decoration: underline; }
.foot b { color: var(--gp-gold); }
#s1 .foot { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.floating-support { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }

@media (max-width: 479px) {
  .wallet-list li { flex-direction: column; font-size: 12px; }
  .opt { font-size: 14px; }
  .opt .ic-img { width: 24px; height: 24px; }
  .btns button { font-size: 14px; gap: 4px; }
  .big { flex-wrap: wrap; }
}

@media (min-width: 820px) {
  .username-layout, .payment-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
    gap: clamp(22px, 4vw, 52px);
    align-items: start;
    padding-block: clamp(30px, 6vw, 64px) 32px;
  }
  .username-layout { align-items: center; }
  .payment-layout { padding-top: clamp(14px, 2.5vw, 30px); }
  .username-hero, .pay-hero-top { min-height: clamp(240px, 31vw, 370px); }
  .username-hero .wordmark, .pay-copy .wordmark { font-size: clamp(31px, 4vw, 48px); }
  .wallet-list li { flex-direction: column; }
  #s1 .foot { padding-right: min(190px, 17vw); padding-bottom: 18px; }
}
