/* Lucky Gold Foil — match mockup fidelity */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Noto+Serif+SC:wght@600;700&display=swap');

:root {
  --ggl-bg0: #4a0c10;
  --ggl-bg1: #6b141c;
  --ggl-bg2: #2c070a;
  --ggl-gold-hi: #ffe9a0;
  --ggl-gold: #e0b84a;
  --ggl-gold-mid: #c9962e;
  --ggl-gold-lo: #8a6218;
  --ggl-cream: #f7ecd2;
  --ggl-cream2: #efe0b8;
  --ggl-ink: #5a1a12;
  --ggl-red: #9b1c1c;
  --ggl-text: #fff4d6;
  --ggl-muted: rgba(255, 236, 180, 0.78);
  --ggl-tab-h: 68px;
  --ggl-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ggl-gold-grad: linear-gradient(180deg, #fff1b8 0%, #f0d06a 28%, #c9962e 72%, #8f6a1c 100%);
  --ggl-gold-text: linear-gradient(180deg, #fff6c8 0%, #f3d36a 45%, #b8862a 100%);
  --ggl-btn-shadow: 0 8px 0 #5a3a0a, 0 14px 28px rgba(0,0,0,.45);
}

html, body { background: var(--ggl-bg2); }

body.ggl-theme {
  color: var(--ggl-text);
  font-family: "Noto Serif SC", "PingFang SC", "Noto Sans SC", "Noto Sans Arabic",
    "Segoe UI", Roboto, sans-serif;
}

/* leather-like crimson field */
.ggl-theme #container.container {
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(224, 184, 74, 0.18), transparent 55%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.03) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 20% 30%, rgba(120, 20, 30, 0.5), transparent 40%),
    linear-gradient(180deg, #7a1a22 0%, #4a0c12 40%, #2a0609 100%) !important;
  background-size: auto !important;
  min-height: 100vh;
  height: auto !important;
  padding-bottom: calc(var(--ggl-tab-h) + var(--ggl-safe-bottom) + 18px);
  overflow-x: hidden;
}

/* 首页/购买/我的菜单：锁 document 橡皮筋上滑，只滚 #container */
html.ggl-app-scroll,
body.ggl-app-scroll {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  height: 100% !important;
  width: 100%;
  position: fixed;
  left: 0;
  right: 0;
  touch-action: manipulation;
}
body.ggl-theme.ggl-app-scroll #container.container {
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  padding-bottom: calc(var(--ggl-tab-h) + var(--ggl-safe-bottom) + 18px) !important;
  touch-action: pan-y;
}
body.ggl-theme.ggl-app-scroll .ggl-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
}

/* ===== Top bar ===== */
.ggl-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 4px;
  background: linear-gradient(180deg, rgba(30,4,6,.95), rgba(30,4,6,0));
}
.ggl-brand { display: none; } /* brand shown in hero like mockup */
.ggl-top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.ggl-chip {
  appearance: none;
  border: 1.5px solid rgba(240, 208, 106, .65);
  background: linear-gradient(180deg, rgba(90,20,28,.9), rgba(40,8,10,.95));
  color: var(--ggl-gold-hi);
  border-radius: 999px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 8px rgba(0,0,0,.35);
  cursor: pointer;
}
.ggl-chip:active { transform: translateY(1px); }
.ggl-chip-login {
  background: var(--ggl-gold-grad);
  color: #4a2f08;
  border-color: rgba(255, 241, 184, .85);
  font-weight: 700;
}
body.ggl-theme:not(.ggl-guest) .ggl-guest-only { display: none !important; }
.ggl-guest-gift {
  margin: 0 14px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: #4a2f08;
  border-radius: 14px;
  background:
    linear-gradient(90deg, #fff1b8, #f0d06a 42%, #c9962e);
  box-shadow: 0 6px 16px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.45);
}
.ggl-guest-gift-tag {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #7a1418;
  color: #ffe9a0;
  font-size: 11px;
  font-weight: 700;
}
.ggl-guest-gift-copy { flex: 1; min-width: 0; line-height: 1.25; }
.ggl-guest-gift-copy b { display: block; font-size: 15px; }
.ggl-guest-gift-copy small { display: block; margin-top: 2px; font-size: 11px; color: #6a3a10; opacity: .9; }
.ggl-guest-gift-cta {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #7a1418;
  color: #ffe9a0;
  font-size: 12px;
  font-weight: 700;
}
.ggl-guest-dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(var(--ggl-tab-h) + var(--ggl-safe-bottom) + 10px);
  z-index: 320;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 36px 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #5a1016, #2e080c);
  border: 1.5px solid rgba(224,184,74,.65);
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
  color: var(--ggl-gold-hi);
}
.ggl-guest-dock.is-hide { display: none !important; }
.ggl-guest-dock-copy { flex: 1; min-width: 0; line-height: 1.25; }
.ggl-guest-dock-copy b { display: block; font-size: 14px; color: #ffe9a0; }
.ggl-guest-dock-copy span { display: block; font-size: 11px; color: rgba(255,236,180,.75); }
.ggl-guest-dock-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--ggl-gold-grad);
  color: #4a2f08;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.ggl-guest-dock-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: rgba(255,236,180,.7);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
body.ggl-theme.ggl-guest:not(.ggl-guest-dock-off) .tg-cs-float {
  bottom: calc(var(--ggl-tab-h) + var(--ggl-safe-bottom) + 78px) !important;
}
body.ggl-theme.ggl-guest:not(.ggl-guest-dock-off).ggl-app-scroll #container.container {
  padding-bottom: calc(var(--ggl-tab-h) + var(--ggl-safe-bottom) + 86px) !important;
}

/* ===== Home hero banner (750×360) ===== */
.ggl-home-banner {
  margin: 4px 14px 10px;
  position: relative;
}
.ggl-home-banner-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 750 / 360;
  border-radius: 16px;
  overflow: hidden;
  border: 2.5px solid transparent;
  background:
    linear-gradient(#3a0c10, #3a0c10) padding-box,
    linear-gradient(135deg, #fff1b8, #c9962e 40%, #8f6a1c 70%, #ffe9a0) border-box;
  box-shadow:
    0 10px 28px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.ggl-home-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s cubic-bezier(.22,.7,.28,1);
  will-change: transform;
  touch-action: pan-y;
}
.ggl-home-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  background: #2a0609;
}
.ggl-home-banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.ggl-home-banner-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}
.ggl-home-banner-dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 233, 160, .35);
  box-shadow: inset 0 0 0 1px rgba(201, 150, 46, .45);
  cursor: pointer;
}
.ggl-home-banner-dot.is-on {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff1b8, #c9962e);
  box-shadow: 0 1px 0 #5a3a0a;
}

/* legacy hero text (kept for second CTA block) */
.ggl-home-hero {
  margin: 4px 14px 18px;
  text-align: center;
  position: relative;
}
.ggl-theme .ggl-home-logo {
  display: block;
  width: 78px;
  height: 78px;
  margin: 0 auto 8px;
  border-radius: 18px;
  object-fit: cover;
  border: 1.5px solid rgba(240, 208, 106, .55);
  box-shadow:
    0 8px 20px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,236,170,.2);
  background: #3a0a10;
}
.ggl-home-hero .ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
  color: var(--ggl-gold);
  font-size: 14px;
  opacity: .85;
}
.ggl-home-hero .title {
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: clamp(30px, 9vw, 40px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  background: var(--ggl-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #5a3a08) drop-shadow(0 6px 10px rgba(0,0,0,.45));
  margin: 0;
}
.ggl-home-hero .subtitle {
  margin: 8px auto 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ggl-gold-hi);
  font-size: 13px;
  font-weight: 600;
}
.ggl-home-hero .subtitle::before,
.ggl-home-hero .subtitle::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ggl-gold), transparent);
}

/* win ticker gold frame */
.ggl-theme .index_one {
  height: auto !important;
  margin-bottom: 12px;
}
.ggl-theme .index_one > div {
  width: 90% !important;
  margin: 0 auto !important;
  height: auto !important;
  min-height: 34px;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(50,10,14,.92), rgba(30,6,8,.92)) !important;
  border: 1.5px solid rgba(224, 184, 74, .7) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 233, 160, .15), 0 4px 14px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
}
.ggl-theme .index_one .iconfont { color: var(--ggl-gold-hi) !important; }
.ggl-win-label {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ggl-gold-hi);
  font-weight: 700;
  margin-inline-end: 8px;
  white-space: nowrap;
}

/* dual ticket stage */
.ggl-ticket-stage {
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  border: 2.5px solid transparent;
  background:
    linear-gradient(#3a0c10, #3a0c10) padding-box,
    linear-gradient(135deg, #fff1b8, #c9962e 40%, #8f6a1c 70%, #ffe9a0) border-box;
  box-shadow: 0 10px 28px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
}
.ggl-ticket-stage .denoms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ggl-ticket-stage .denom {
  flex: 1 1 calc(50% - 5px);
  min-width: calc(50% - 5px);
  box-sizing: border-box;
  position: relative;
  min-height: 108px;
  border-radius: 14px;
  padding: 10px 6px 10px;
  background: linear-gradient(165deg, #1a080a 0%, #3a1014 55%, #120406 100%);
  border: 1.5px solid rgba(224, 184, 74, .55);
  box-shadow: inset 0 0 24px rgba(0,0,0,.45);
  overflow: hidden;
}
.ggl-ticket-stage .denom.foil::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-32deg,
      transparent 0 8px,
      rgba(224, 184, 74, .22) 8px 10px,
      transparent 10px 18px),
    linear-gradient(120deg, transparent 30%, rgba(255, 233, 160, .18), transparent 70%);
  pointer-events: none;
}
.ggl-ticket-stage .denom b {
  position: relative;
  display: block;
  font-family: "Cinzel", serif;
  font-size: 28px;
  font-weight: 800;
  background: var(--ggl-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #4a3008);
}
.ggl-ticket-stage .denom .face {
  position: relative;
  font-size: 11px;
  color: var(--ggl-muted);
  margin: 2px 0 10px;
}
.ggl-ticket-stage .ribbon {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ggl-gold-grad);
  color: #4a2f08;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 3px 0 #6a4a10, 0 6px 12px rgba(0,0,0,.35);
}
.ggl-ticket-stage .stage-tip {
  margin-top: 10px;
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--ggl-gold-hi);
  border: 1px solid rgba(224,184,74,.45);
  border-radius: 8px;
  background: rgba(0,0,0,.25);
}

.ggl-home-cta {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--ggl-gold-grad);
  color: #4a2f08;
  font-size: 17px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.02em;
  box-shadow: var(--ggl-btn-shadow);
  cursor: pointer;
  position: relative;
}
.ggl-home-cta:active {
  transform: translateY(3px);
  box-shadow: 0 4px 0 #5a3a0a, 0 8px 16px rgba(0,0,0,.4);
}
.ggl-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--ggl-gold-hi);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.ggl-home-link::before,
.ggl-home-link::after {
  content: "◆";
  font-size: 9px;
  opacity: .7;
}

/* ===== Bottom tabs — 对齐 mockup ===== */
.ggl-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  height: calc(var(--ggl-tab-h) + var(--ggl-safe-bottom));
  padding: 6px 10px var(--ggl-safe-bottom);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #4a1016 0%, #2e080c 55%, #1a0407 100%);
  border-top: 1px solid rgba(180, 120, 50, .55);
  box-shadow: 0 -6px 18px rgba(0,0,0,.4);
}
.ggl-tab {
  flex: 1;
  max-width: 104px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0 auto;
  padding: 4px 10px 5px;
  color: #E0B84A;
  font-size: 12px;
  font-weight: 600;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  letter-spacing: .04em;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.ggl-tab .ico {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E0B84A;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.ggl-tab .ico svg {
  display: block;
  width: 30px;
  height: 30px;
}
.ggl-tab.active {
  color: #F0D06A;
  border-color: #C9A04A;
  background: rgba(224, 184, 74, .06);
  box-shadow: inset 0 0 0 0.5px rgba(255, 233, 160, .25);
}
.ggl-tab.active .ico { color: #F0D06A; }

.ggl-theme .index_five { display: none !important; }

/* ===== CS float — 好运金箔 ===== */
.ggl-theme .tg-cs-float {
  z-index: 850 !important; /* 低于抽屉/弹层，避免挡住「立即刮卡」 */
  width: 64px;
  height: 64px;
  bottom: calc(var(--ggl-tab-h) + var(--ggl-safe-bottom) + 16px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 4px 5px;
  box-sizing: border-box;
  color: #F5E6A8;
  isolation: isolate;
  background:
    radial-gradient(circle at 30% 26%, #6e1e26 0%, #3a0c12 55%, #24070a 100%);
  border: none;
  outline: none;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, .5),
    0 0 0 1.5px rgba(240, 208, 106, .35),
    inset 0 1px 0 rgba(255, 236, 170, .22),
    inset 0 -3px 8px rgba(0, 0, 0, .4);
  line-height: 1.05;
  overflow: visible;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
/* 卡包/记录抽屉打开时彻底隐藏客服浮钮 */
body.ggl-sheet-open .tg-cs-float {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(.9);
}
.ggl-theme .tg-cs-float::before {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFF6D0 0%, #E8C45A 38%, #A67A22 72%, #F2D978 100%);
  z-index: -1;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 2.5px;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.ggl-theme .tg-cs-float:active {
  transform: scale(.96);
  filter: brightness(.95);
}
.ggl-theme .tg-cs-float .tg-cs-ico,
.ggl-theme .tg-cs-float .ggl-cs-ico {
  width: 22px;
  height: 22px;
  margin: 0 0 2px;
}
.ggl-theme .tg-cs-float .tg-cs-ico svg,
.ggl-theme .tg-cs-float .ggl-cs-ico svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.45));
}
.ggl-theme .tg-cs-float .tg-cs-brand {
  display: none; /* 不再展示渠道品牌名，保持通用客服 */
}
.ggl-theme .tg-cs-float .tg-cs-label,
.ggl-theme .tg-cs-float .ggl-cs-label {
  font-size: 12px;
  font-weight: 700;
  color: #FFE9A0;
  text-shadow: 0 1px 1px rgba(0,0,0,.55);
}
body.is-rtl .tg-cs-float.right { right: auto; left: 0.3rem; }
body.is-rtl .tg-cs-float.left { left: auto; right: 0.3rem; }

/* ===== Buy page — compact header + qty-from-zero ===== */
.ggl-theme #page_buy.ggl-buy-page,
.ggl-theme #page_buy {
  padding: 0 8px 12px;
  min-height: 0;
  box-sizing: border-box;
}
.ggl-theme .ggl-buy-frame {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 430px;
  min-height: 0;
  height: auto;
  padding: 4px 8px 8px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1.5px solid rgba(224, 184, 74, .55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 233, 160, .18),
    0 8px 22px rgba(0,0,0,.36);
  background: linear-gradient(180deg, #5c1018 0%, #3a0a10 42%, #24060a 100%);
  overflow: hidden;
}
.ggl-theme .ggl-buy-filigree { display: none !important; }

.ggl-theme .ggl-buy-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
  padding: 2px 0 0;
  min-height: 0;
}
.ggl-theme .ggl-buy-top { display: none; }
.ggl-theme .ggl-buy-back {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 208, 106, .75);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,241,184,.22), transparent 50%),
    linear-gradient(180deg, #6e1c24, #2e080c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 4px 12px rgba(0,0,0,.35);
}
body.ggl-theme .ggl-topbar .ggl-buy-back { display: none; }
body.ggl-theme.ggl-show-back .ggl-topbar .ggl-buy-back { display: inline-flex; }
.ggl-theme .ggl-buy-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  border: 1.5px solid rgba(224, 184, 74, .62);
  background: linear-gradient(180deg, rgba(72,16,22,.94), rgba(32,6,10,.97));
  color: #FFE9A0;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,236,170,.14), 0 4px 12px rgba(0,0,0,.28);
}
.ggl-theme .ggl-buy-yen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFF1B8, #E0B84A 55%, #9A6E1C);
  color: #4a2f08;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 1px 0 #6a4a10, inset 0 1px 0 rgba(255,255,255,.4);
}

.ggl-theme .ggl-buy-hero,
.ggl-theme .ggl-buy-hero-ornament,
.ggl-theme .ggl-buy-spark { display: none !important; }
.ggl-theme .ggl-buy-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: clamp(16px, 4.6vw, 20px);
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.2;
  background: linear-gradient(180deg, #FFF8D6 0%, #F3D36A 42%, #C9962E 78%, #A67A22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 #3a2508);
}
.ggl-theme .ggl-buy-head .ggl-buy-balance-pill {
  flex: 0 0 auto;
  max-width: 58%;
}

.ggl-theme .ggl-buy-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

/* —— 票卡：设计图底（票根 + 流云），文字叠在空白处 —— */
.ggl-theme #buyDiv1.ggl-buy-card,
.ggl-theme #buyDiv2.ggl-buy-card,
.ggl-theme .ggl-buy-card {
  position: relative;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0;
  height: auto !important;
  aspect-ratio: 612 / 320;
  border-radius: 16px !important;
  box-sizing: border-box;
  overflow: hidden;
  color: #5a1a12 !important;
  background: #F6EEDC url("/home/images/ggl/card-art-blank.png?v=1") center / 100% 100% no-repeat !important;
  border: none !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.34);
}
.ggl-theme #buyDiv2.ggl-buy-card,
.ggl-theme .ggl-buy-card-10,
.ggl-theme .ggl-buy-card-alt {
  background-image: url("/home/images/ggl/card-art-blank-alt.png?v=1") !important;
}
.ggl-theme .ggl-buy-empty {
  text-align: center;
  padding: 24px 12px;
  color: rgba(255,241,184,.75);
  font-size: 14px;
}
.ggl-theme .ggl-buy-card::before,
.ggl-theme .ggl-buy-card::after,
.ggl-theme .ggl-buy-card-edge,
.ggl-theme .ggl-buy-card-edge::before,
.ggl-theme .ggl-buy-card-edge::after,
.ggl-theme .ggl-buy-cloud,
.ggl-theme .ggl-buy-stub,
.ggl-theme .ggl-buy-rule {
  display: none !important;
}
.ggl-theme .ggl-buy-card-edge {
  position: absolute;
  inset: 4px;
  border-radius: 10px;
  border: 1px solid rgba(201, 160, 74, .4);
  pointer-events: none;
  z-index: 1;
}
/* 四角内凹咬边 */
.ggl-theme .ggl-buy-card::before,
.ggl-theme .ggl-buy-card::after,
.ggl-theme .ggl-buy-card-edge::before,
.ggl-theme .ggl-buy-card-edge::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #3a0a10;
  border-radius: 50%;
  z-index: 5;
}
.ggl-theme .ggl-buy-card::before { top: -8px; left: -8px; }
.ggl-theme .ggl-buy-card::after { top: -8px; right: -8px; }
.ggl-theme .ggl-buy-card-edge::before { bottom: -12px; left: -12px; }
.ggl-theme .ggl-buy-card-edge::after { bottom: -12px; right: -12px; }
.ggl-theme .ggl-buy-cloud {
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 52px;
  width: 46%;
  z-index: 0;
  pointer-events: none;
  opacity: .95;
}
.ggl-theme .ggl-buy-cloud svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ggl-theme .ggl-buy-card-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.ggl-theme .ggl-buy-ticket {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
/* 无金额底图上实时叠字：深棕高对比，贴在 LUCKY GOLD 下方 */
.ggl-theme .ggl-buy-face {
  position: absolute;
  left: 12.2%;
  top: 39.5%;
  width: 23.5%;
  height: 16%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-9deg);
  pointer-events: none;
}
.ggl-theme .ggl-buy-face-mark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: "Cinzel", "Noto Serif SC", Georgia, serif;
  font-weight: 800;
  font-size: clamp(20px, 5.8vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: #3a2412;
  -webkit-text-fill-color: #3a2412;
  text-shadow: 0 1px 0 rgba(255, 236, 180, .25);
  filter: none;
}
.ggl-theme .ggl-buy-face-mark i {
  font-style: normal;
  font-size: .56em;
  margin-right: 1px;
  position: relative;
  top: -0.04em;
}
.ggl-theme .ggl-buy-face.is-long .ggl-buy-face-mark {
  font-size: clamp(15px, 4.5vw, 22px);
}
.ggl-theme .ggl-buy-stub {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  /* crop cream edges slightly so the stub sits tight */
  transform: scale(1.08);
  transform-origin: left center;
}
.ggl-theme .ggl-buy-cash-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.ggl-theme .ggl-buy-info {
  position: absolute;
  left: 45%;
  top: 9%;
  width: 48%;
  pointer-events: none;
  text-align: start;
}
.ggl-theme .ggl-buy-price {
  font-family: "Cinzel", "Noto Serif SC", Georgia, serif;
  font-size: clamp(20px, 6.2vw, 32px);
  font-weight: 800;
  color: #7a161c;
  line-height: 1.05;
  letter-spacing: .01em;
}
.ggl-theme .ggl-buy-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #C9A24A 0%, #9A6E1C 100%);
  color: #FFF8E8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 2px 0 #5a3a0a, inset 0 1px 0 rgba(255,236,170,.35);
}
.ggl-theme .ggl-buy-jackpot {
  margin-top: 2px;
  font-family: "Cinzel", "Noto Serif SC", Georgia, serif;
  font-size: clamp(28px, 8.6vw, 46px);
  font-weight: 800;
  color: #8B1A1A;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ggl-theme .ggl-buy-jackpot-sub {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(110, 30, 22, .72);
  font-family: "Noto Serif SC", Georgia, serif;
}

.ggl-theme .ggl-buy-rule {
  position: relative;
  z-index: 2;
  height: 1px;
  margin: 10px 8px 12px;
  background: linear-gradient(90deg, transparent, rgba(180, 130, 50, .55), transparent);
}

.ggl-theme .ggl-buy-stepper {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 7.5%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}
.ggl-theme .ggl-buy-step {
  width: 42px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid #C9A04A;
  background: #FFF9EE;
  color: #6b141c;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  box-shadow: none;
}
.ggl-theme .ggl-buy-step:active { filter: brightness(.95); }
.ggl-theme .ggl-buy-qty,
.ggl-theme #buyCount1,
.ggl-theme #buyCount2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 800;
  color: #5a1a12;
  background: #FFFaf0;
  border: 1.5px solid #C9A04A;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.ggl-theme .ggl-buy-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 4px;
}
.ggl-theme .ggl-buy-total {
  flex: 0 0 38%;
  max-width: 150px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.5px solid rgba(224, 184, 74, .55);
  background: linear-gradient(180deg, rgba(72,16,22,.95), rgba(28,6,10,.98));
  box-shadow: inset 0 1px 0 rgba(255,236,170,.12), 0 6px 16px rgba(0,0,0,.28);
  box-sizing: border-box;
}
.ggl-theme .ggl-buy-total-label {
  font-size: 11px;
  color: rgba(255, 233, 160, .78);
}
.ggl-theme .ggl-buy-total-val {
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 800;
  color: #FFE9A0;
  line-height: 1.15;
  margin-top: 4px;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}
.ggl-theme .ggl-buy-confirm {
  flex: 1;
  appearance: none;
  border: 1.5px solid rgba(255, 236, 170, .65);
  border-radius: 14px;
  min-height: 56px;
  padding: 0 14px;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 800;
  color: #4a2f08;
  cursor: pointer;
  background: linear-gradient(180deg, #FFF6C8 0%, #F0D06A 32%, #C9962E 72%, #9A6E1C 100%);
  box-shadow:
    0 6px 0 #5a3a0a,
    0 12px 22px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.45);
}
.ggl-theme .ggl-buy-confirm:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #5a3a0a, 0 6px 12px rgba(0,0,0,.3);
}
.ggl-theme .ggl-buy-confirm.is-disabled,
.ggl-theme .ggl-buy-confirm:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.25);
  box-shadow: 0 3px 0 #5a3a0a, 0 6px 12px rgba(0,0,0,.2);
  transform: none;
}

.ggl-theme .ggl-buy-cs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  color: #F0D06A;
  font-size: 12.5px;
  text-decoration: none;
  letter-spacing: .02em;
}
.ggl-theme .ggl-buy-cs:active { opacity: .75; }
.ggl-theme .ggl-buy-cs-ico { display: inline-flex; align-items: center; }

body.is-rtl .ggl-theme .ggl-buy-top { justify-content: flex-start; }
body.is-rtl .ggl-theme .ggl-buy-footer { flex-direction: row-reverse; }
body.is-rtl .ggl-theme .ggl-buy-info { text-align: end; }

/* ===== Me page — 好运金箔 ===== */
.ggl-theme #page_personal_center.ggl-me-page,
.ggl-theme #page_personal_center {
  color: var(--ggl-text);
  padding: 8px 0 28px;
  min-height: calc(100vh - var(--ggl-tab-h));
  box-sizing: border-box;
}
/* 子页（提现记录等）：禁止整页上滑把标题顶出视口，列表在卡片内滚 */
.ggl-theme #page_personal_center[data-ggl-me="panel"] {
  min-height: 0;
  height: calc(100dvh - var(--ggl-tab-h) - var(--ggl-safe-bottom) - 52px);
  max-height: calc(100dvh - var(--ggl-tab-h) - var(--ggl-safe-bottom) - 52px);
  padding: 4px 0 0;
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
}
.ggl-theme #page_personal_center[data-ggl-me="panel"] .ggl-me-panel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 8px !important;
}
.ggl-theme #page_personal_center[data-ggl-me="panel"] .ggl-me-panel > div {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  height: 100% !important;
}
.ggl-theme #page_personal_center[data-ggl-me="panel"] .ggl-me-panel-head {
  flex: 0 0 auto;
}
.ggl-theme #page_personal_center[data-ggl-me="panel"] .ggl-me-list,
.ggl-theme #page_personal_center[data-ggl-me="panel"] .ggl-wd-form {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.ggl-theme .ggl-me-shell {
  padding: 0 14px 8px;
}
/* 彻底覆盖旧 rem 布局：.page_personal_center_three > div 等 */
.ggl-theme #page_personal_center .page_personal_center_three,
.ggl-theme #page_personal_center .page_personal_center_three > div,
.ggl-theme #page_personal_center .page_personal_center_four,
.ggl-theme #page_personal_center .page_personal_center_four > div,
.ggl-theme #page_personal_center .page_personal_center_four > div > div {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  float: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.ggl-theme .ggl-me-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(224, 184, 74, .45);
  background:
    radial-gradient(ellipse 70% 80% at 20% 0%, rgba(224,184,74,.12), transparent 55%),
    linear-gradient(180deg, rgba(72,16,22,.94), rgba(28,6,10,.98));
  box-shadow: 0 10px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,236,170,.1);
  box-sizing: border-box;
}
.ggl-theme .ggl-me-avatar.user-avatar-wrap,
.ggl-theme #page_personal_center .user-avatar-wrap.ggl-me-avatar {
  position: relative;
  flex: 0 0 64px;
  width: 64px !important;
  height: 64px !important;
  margin: 0 0 8px !important;
  overflow: visible !important;
}
.ggl-theme .ggl-me-avatar .user_header,
.ggl-theme #page_personal_center .user_header {
  display: block;
  width: 64px !important;
  height: 64px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #F0D06A;
  box-shadow: 0 0 0 2px rgba(90, 18, 24, .85), 0 6px 14px rgba(0,0,0,.35);
}
.ggl-theme #page_personal_center .ggl-me-avatar.is-vip .user_header {
  border-color: #FFE9A0;
  box-shadow:
    0 0 0 2px rgba(90, 18, 24, .85),
    0 0 12px rgba(240, 208, 106, .55),
    0 6px 14px rgba(0,0,0,.35);
}
.ggl-theme #page_personal_center .vip-badge {
  position: absolute;
  left: 50%;
  bottom: -8px;
  top: auto;
  right: auto;
  z-index: 2;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 38px;
  height: auto;
  line-height: 1;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 170, .75);
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  background: linear-gradient(180deg, #FFF1B8 0%, #F0D06A 48%, #C8962A 100%);
  color: #4a2f08;
  box-shadow: 0 2px 0 #6a4a10, 0 4px 10px rgba(0,0,0,.28);
  white-space: nowrap;
}
.ggl-theme #page_personal_center .vip-badge.on {
  display: inline-flex;
}
.ggl-theme #page_personal_center .vip-badge::before {
  content: "♛";
  font-size: 9px;
  line-height: 1;
}
.ggl-theme .ggl-me-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.ggl-theme .ggl-me-name.user_nickname,
.ggl-theme #page_personal_center .user_nickname {
  margin: 0;
  padding: 0;
  width: auto !important;
  height: auto !important;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 17px;
  font-weight: 800;
  color: #FFF1B8;
  line-height: 1.25;
  word-break: break-all;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
.ggl-theme .ggl-me-id {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  margin: 0;
  padding: 2px 8px;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(224, 184, 74, .4);
  background: rgba(0,0,0,.28) !important;
  box-shadow: none !important;
  color: rgba(255, 233, 160, .8);
  font-size: 11px;
  line-height: 1.3;
}
.ggl-theme .ggl-me-id b { color: #FFF1B8; font-weight: 700; }
.ggl-theme .ggl-me-balance-inline {
  margin: 2px 0 0;
  padding: 0;
  width: auto !important;
  height: auto !important;
  font-size: 12px;
  color: rgba(255, 233, 160, .75);
  line-height: 1.25;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
.ggl-theme .ggl-me-balance-inline b {
  margin-left: 4px;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 800;
  color: #FFF1B8;
  text-shadow: 0 1px 0 #5a3a0a;
}
.ggl-theme .ggl-me-cs-avatar {
  appearance: none;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #F0D06A;
}
.ggl-theme .ggl-me-cs-face {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 236, 170, .85);
  background:
    radial-gradient(circle at 32% 28%, rgba(255,250,220,.55), transparent 42%),
    linear-gradient(160deg, #FFF1B8 0%, #F0D06A 42%, #C8962A 100%);
  box-shadow:
    0 3px 0 #5a3a0a,
    0 7px 14px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.35);
  overflow: hidden;
}
.ggl-theme .ggl-me-cs-face img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: none;
}
.ggl-theme .ggl-me-cs-label {
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #FFE9A0;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}
.ggl-theme .ggl-me-cs-avatar:active .ggl-me-cs-face {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #5a3a0a, 0 3px 8px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.25);
}
.ggl-theme .ggl-me-btn,
.ggl-theme #page_personal_center .ggl-me-btn {
  appearance: none;
  float: none !important;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 42px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 999px !important;
  border: 1.5px solid rgba(255, 236, 170, .55) !important;
  background: var(--ggl-gold-grad) !important;
  color: #4a2f08 !important;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  box-shadow: 0 4px 0 #5a3a0a, 0 8px 16px rgba(0,0,0,.28) !important;
  text-align: center;
}
.ggl-theme .ggl-me-btn-block { margin-top: 12px; }

.ggl-theme .ggl-me-menu,
.ggl-theme #page_personal_center #centerMenu.ggl-me-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 4px 0;
  border-radius: 16px;
  border: 1.5px solid rgba(224, 184, 74, .42);
  background: linear-gradient(180deg, rgba(72,16,22,.88), rgba(24,6,8,.96)) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  overflow: hidden;
}
.ggl-theme .ggl-wd-panel .ggl-wd-form {
  margin: 12px 14px 24px;
  padding: 16px 14px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(224, 184, 74, .45);
  background: linear-gradient(180deg, rgba(72,16,22,.92), rgba(24,6,8,.96));
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  box-sizing: border-box;
}
.ggl-theme .ggl-wd-bal {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 233, 160, .78);
  font-size: 13px;
}
.ggl-theme .ggl-wd-bal b {
  color: #FFF1B8;
  font-size: 22px;
  font-weight: 800;
  font-family: "Cinzel", "Noto Serif SC", serif;
}
.ggl-theme .ggl-wd-label {
  display: block;
  margin: 10px 0 6px;
  color: #F0D06A;
  font-size: 13px;
  font-weight: 700;
}
.ggl-theme .ggl-wd-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1.5px solid rgba(224, 184, 74, .45);
  background: rgba(20, 6, 8, .85);
  color: #FFE9A0;
  font-size: 15px;
  padding: 12px 12px;
  outline: none;
  font-family: inherit;
}
.ggl-theme .ggl-wd-textarea {
  resize: vertical;
  min-height: 72px;
  word-break: break-all;
}
.ggl-theme .ggl-wd-hint {
  margin-top: 6px;
  color: rgba(255, 233, 160, .55);
  font-size: 12px;
}
.ggl-theme .ggl-wd-chains {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ggl-theme .ggl-wd-chain {
  appearance: none;
  border: 1.5px solid rgba(224, 184, 74, .4);
  background: rgba(40, 10, 14, .9);
  color: rgba(255, 233, 160, .75);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.ggl-theme .ggl-wd-chain.is-on {
  color: #4a2f08;
  background: linear-gradient(180deg, #fff1b8, #c9962e);
  border-color: #8f6a1c;
  box-shadow: 0 2px 0 #5a3a0a;
}
.ggl-theme .ggl-wd-submit {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1b8 0%, #f0d06a 40%, #c9962e 100%);
  color: #4a2f08;
  font-size: 16px;
  font-weight: 800;
  font-family: "Noto Serif SC", serif;
  box-shadow: 0 3px 0 #5a3a0a, 0 10px 22px rgba(0,0,0,.35);
  cursor: pointer;
}
.ggl-theme .ggl-wd-submit.is-busy { opacity: .65; pointer-events: none; }
.ggl-theme .ggl-wd-submit:active { transform: translateY(1px); }
.ggl-theme .ggl-wd-note {
  margin: 12px 2px 0;
  color: rgba(255, 233, 160, .55);
  font-size: 12px;
  line-height: 1.5;
}
.ggl-theme .ggl-me-menu-item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 14px;
  border: 0;
  border-bottom: 1px solid rgba(224, 184, 74, .18);
  background: transparent;
  color: #FFE9A0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.ggl-theme .ggl-me-menu-item:last-child { border-bottom: 0; }
.ggl-theme .ggl-me-menu-item:active { background: rgba(224, 184, 74, .08); }
.ggl-theme .ggl-me-menu-item.ggl-me-menu-action .ggl-me-menu-txt {
  color: #FFF6C8;
}
.ggl-theme a.ggl-me-menu-item {
  text-decoration: none;
  color: inherit;
}
.ggl-theme .ggl-me-menu-item.ggl-me-menu-logout .ggl-me-menu-txt {
  color: rgba(255, 210, 170, .92);
}
.ggl-theme .ggl-me-menu-ico {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(240, 208, 106, .55);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,246,200,.16), transparent 50%),
    rgba(20, 4, 6, .55);
  box-shadow: inset 0 1px 0 rgba(255,236,170,.12);
  overflow: hidden;
}
.ggl-theme .ggl-me-menu-ico img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.ggl-theme .ggl-me-menu-item.ggl-me-menu-action .ggl-me-menu-ico {
  border-color: rgba(255, 236, 170, .7);
  background:
    radial-gradient(circle at 35% 28%, rgba(255,246,200,.28), transparent 48%),
    linear-gradient(160deg, rgba(90, 28, 20, .95), rgba(40, 10, 12, .98));
  box-shadow: 0 2px 0 rgba(90, 40, 10, .35), inset 0 1px 0 rgba(255,236,170,.18);
}
.ggl-theme .ggl-me-menu-txt {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #FFF1B8;
}
.ggl-theme .ggl-me-menu-chev {
  color: rgba(240, 208, 106, .7);
  font-size: 22px;
  line-height: 1;
}

.ggl-theme .ggl-me-panel.page_personal_center_five,
.ggl-theme #page_personal_center .page_personal_center_five {
  width: auto !important;
  height: auto !important;
  min-height: 0;
  margin: 0 14px 18px !important;
  padding: 12px 12px 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(224, 184, 74, .45);
  background: linear-gradient(180deg, #5c1218, #2a080c) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  box-sizing: border-box;
  overflow: hidden;
}
/* 干掉旧 rem：黄橙渐变、固定 9rem 高 */
.ggl-theme #page_personal_center .page_personal_center_five > div {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.ggl-theme .ggl-me-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  color: #FFF1B8;
  font-size: 16px;
  font-weight: 800;
  font-family: "Noto Serif SC", serif;
  background: transparent !important;
}
.ggl-theme .ggl-me-panel-side {
  margin-inline-start: auto;
  font-size: 12px;
  font-weight: 600;
  color: #F0D06A;
}
.ggl-theme .ggl-me-back {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(224, 184, 74, .5);
  background: rgba(40, 8, 10, .85);
  color: #F0D06A;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ggl-theme .ggl-me-field {
  margin: 0 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(224, 184, 74, .35);
  background: rgba(20, 4, 6, .55);
  overflow: hidden;
}
.ggl-theme .ggl-me-field input {
  width: 100%;
  height: 48px;
  border: 0;
  background: transparent;
  color: #FFF1B8;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
}
.ggl-theme .ggl-me-field input::placeholder { color: rgba(255,233,160,.45); }
.ggl-theme .ggl-me-rules {
  margin: 0 0 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(224, 184, 74, .28);
  background: rgba(20, 4, 6, .45);
  color: rgba(255, 233, 160, .82);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.ggl-theme .ggl-me-em { color: #FFF1B8; font-weight: 800; }
.ggl-theme .ggl-me-list {
  /* 高度随内容收缩；仅记录很多时才出现滚动，避免一条下面大片空白 */
  overflow: auto;
  max-height: min(58vh, 420px);
  margin: 0;
  padding: 2px 0 0;
  border-radius: 12px;
  background: transparent;
  color: #FFE9A0;
  font-size: 14px;
  -webkit-overflow-scrolling: touch;
}
.ggl-theme .ggl-me-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(224, 184, 74, .28);
  background: rgba(40, 8, 10, .45);
}
.ggl-theme .ggl-me-row-main { flex: 1; min-width: 0; }
.ggl-theme .ggl-me-row-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFE9A0;
}
.ggl-theme .ggl-me-row-meta {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255, 233, 160, .55);
}
.ggl-theme .ggl-me-row-amt {
  flex: 0 0 auto;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 800;
  color: #F0D06A;
}
.ggl-theme .ggl-rec-head-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 208, 106, .5);
  background: rgba(20, 4, 6, .45);
}
.ggl-theme .ggl-rec-head-ico img {
  width: 16px;
  height: 16px;
  display: block;
}
.ggl-theme .ggl-rec-sum {
  font-size: 12px;
  color: rgba(255, 233, 160, .75);
}
.ggl-theme .ggl-rec-sum b {
  margin-left: 2px;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 14px;
  color: #FFF1B8;
}
.ggl-theme .ggl-rec-card {
  margin: 0 0 10px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1.5px solid rgba(224, 184, 74, .38);
  background:
    radial-gradient(ellipse 80% 70% at 10% 0%, rgba(224,184,74,.1), transparent 55%),
    linear-gradient(180deg, rgba(72,16,22,.72), rgba(24,6,8,.92));
  box-shadow: 0 6px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,236,170,.08);
  box-sizing: border-box;
}
.ggl-theme .ggl-rec-card.is-pending {
  padding-bottom: 12px;
}
.ggl-theme .ggl-rec-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ggl-theme .ggl-rec-tag {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(224, 184, 74, .4);
  background: rgba(0,0,0,.28);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 233, 160, .85);
  line-height: 1.2;
}
.ggl-theme .ggl-rec-tag.is-win {
  border-color: rgba(255, 236, 170, .75);
  background: linear-gradient(180deg, rgba(240,208,106,.4), rgba(200,150,42,.28));
  color: #FFF6C8;
}
.ggl-theme .ggl-rec-tag.is-miss {
  color: rgba(255, 233, 160, .55);
}
.ggl-theme .ggl-rec-tag.is-wait {
  border-color: rgba(240, 208, 106, .45);
  background: rgba(240, 208, 106, .12);
  color: #F0D06A;
}
.ggl-theme .ggl-rec-time {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: rgba(255, 233, 160, .5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ggl-theme .ggl-rec-profit {
  flex: 0 0 auto;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 233, 160, .7);
}
.ggl-theme .ggl-rec-profit.is-win {
  color: #FFF1B8;
  text-shadow: 0 1px 0 #5a3a0a;
}
.ggl-theme .ggl-rec-profit.is-out { color: #E8B070; }
.ggl-theme .ggl-rec-sub {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 233, 160, .55);
  line-height: 1.4;
}
.ggl-theme .ggl-rec-hits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.ggl-theme .ggl-rec-hits-label {
  font-size: 11px;
  color: rgba(255, 233, 160, .45);
  margin-right: 2px;
}
.ggl-theme .ggl-rec-hit-detail {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ggl-theme .ggl-rec-hit-detail > .ggl-rec-hits-label {
  margin: 0;
  flex: 0 0 auto;
}
.ggl-theme .ggl-rec-hit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  border: 1px solid rgba(224, 184, 74, .32);
  background: rgba(20, 4, 6, .4);
}
.ggl-theme .ggl-rec-hit-chip .ggl-rec-num.is-award {
  min-width: 26px;
  height: 26px;
  font-size: 11px;
  box-shadow: none;
}
.ggl-theme .ggl-rec-hit-amt {
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 12px;
  font-weight: 800;
  color: #FFF1B8;
  line-height: 1;
  white-space: nowrap;
}
.ggl-theme .ggl-rec-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.ggl-theme .ggl-rec-num {
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(224, 184, 74, .32);
  background: rgba(20, 4, 6, .55);
  color: rgba(255, 233, 160, .78);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}
.ggl-theme .ggl-rec-num.is-hit {
  border-color: rgba(255, 236, 170, .9);
  background: linear-gradient(160deg, rgba(255,241,184,.35), rgba(200,150,42,.25));
  color: #FFF6C8;
  box-shadow: 0 0 8px rgba(240, 208, 106, .3);
}
.ggl-theme .ggl-rec-num.is-award {
  min-width: 30px;
  height: 30px;
  border-color: rgba(255, 236, 170, .85);
  background: var(--ggl-gold-grad);
  color: #4a2f08;
  font-size: 12px;
  box-shadow: 0 2px 0 #5a3a0a;
}
.ggl-theme .ggl-rec-card-money {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
}
.ggl-theme .ggl-rec-money-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(240, 208, 106, .55);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,246,200,.18), transparent 50%),
    rgba(20, 4, 6, .55);
  color: #F0D06A;
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
}
.ggl-theme .ggl-rec-money-ico.is-in {
  border-color: rgba(255, 236, 170, .7);
  color: #4a2f08;
  background: var(--ggl-gold-grad);
}
.ggl-theme .ggl-rec-money-ico.is-out {
  color: #FFF1B8;
}
.ggl-theme .ggl-rec-money-main {
  flex: 1;
  min-width: 0;
}
.ggl-theme .ggl-rec-money-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFE9A0;
  line-height: 1.3;
  word-break: break-word;
  text-align: start;
}
.ggl-theme .ggl-rec-money-addr {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.ggl-theme .ggl-rec-money-addr-txt {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 233, 160, .92);
  line-height: 1.35;
  word-break: break-all;
  text-decoration: underline;
  text-decoration-color: rgba(240, 208, 106, .45);
  text-underline-offset: 2px;
}
.ggl-theme .ggl-rec-money-addr-hint {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px dashed rgba(224, 184, 74, .45);
  background: rgba(240, 208, 106, .1);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 233, 160, .72);
  line-height: 1.4;
}
.ggl-theme .ggl-rec-money-addr-hint.is-copied {
  border-style: solid;
  border-color: rgba(240, 208, 106, .7);
  background: rgba(240, 208, 106, .22);
  color: #FFF1B8;
}
.ggl-theme .ggl-rec-money-addr:active .ggl-rec-money-addr-txt {
  color: #FFF6C8;
}
.ggl-theme .ggl-rec-money-meta {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 233, 160, .5);
  text-align: start;
}
.ggl-theme .ggl-rec-money-amt {
  flex: 0 0 auto;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 800;
  color: #F0D06A;
  line-height: 1.2;
}
.ggl-theme .ggl-rec-money-amt.is-in { color: #FFF1B8; }
.ggl-theme .ggl-rec-money-amt.is-out { color: #E8B070; }
.ggl-theme .ggl-rec-money-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.ggl-theme .ggl-rec-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(224, 184, 74, .4);
  background: rgba(0,0,0,.28);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 233, 160, .85);
  line-height: 1.2;
  white-space: nowrap;
}
.ggl-theme .ggl-rec-status.is-pending {
  border-color: rgba(240, 208, 106, .55);
  background: rgba(240, 208, 106, .14);
  color: #F0D06A;
}
.ggl-theme .ggl-rec-status.is-ok {
  border-color: rgba(255, 236, 170, .7);
  background: linear-gradient(180deg, rgba(240,208,106,.4), rgba(200,150,42,.28));
  color: #FFF6C8;
}
.ggl-theme .ggl-rec-status.is-reject {
  border-color: rgba(200, 120, 90, .55);
  background: rgba(120, 40, 30, .35);
  color: #E8B070;
}
.ggl-theme .ggl-rec-money-sub {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 210, 160, .62);
  line-height: 1.4;
  word-break: break-word;
}
.ggl-theme .ggl-rec-empty {
  padding: 48px 16px 36px;
  text-align: center;
}
.ggl-theme .ggl-rec-empty-ico {
  margin: 0 auto 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(224, 184, 74, .35);
  color: rgba(240, 208, 106, .55);
  font-size: 18px;
}
.ggl-theme .ggl-rec-empty-txt,
.ggl-theme .ggl-rec-end,
.ggl-theme .ggl-me-list .bottom_of_page {
  float: none !important;
  width: 100% !important;
  height: auto !important;
  line-height: 1.4 !important;
  text-align: center;
  color: rgba(255, 233, 160, .45);
  font-size: 12px;
  padding: 8px 0 4px;
}
.ggl-theme .ggl-me-qr-box {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(224, 184, 74, .28);
  background: rgba(20, 4, 6, .45);
  text-align: center;
  color: rgba(255, 233, 160, .85);
  font-size: 13px;
}
.ggl-theme .ggl-me-qr-box #image img {
  margin-top: 8px;
  max-width: 140px;
  height: auto;
  border: 2px solid rgba(224, 184, 74, .45);
  border-radius: 8px;
  background: #fff;
}
.ggl-theme .ggl-me-upload-label { display: block; cursor: pointer; }
.ggl-theme .ggl-me-upload-label .ggl-me-btn { pointer-events: none; }
.ggl-theme .ggl-me-reward {
  background: transparent !important;
  height: auto !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 12px;
  overflow: hidden;
}
.ggl-theme .ggl-me-reward-nav {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(224, 184, 74, .35);
}
.ggl-theme .ggl-me-reward-nav > div {
  float: none !important;
  flex: 1;
  height: auto !important;
  line-height: 1.3 !important;
  padding: 8px 6px;
  background: rgba(0,0,0,.25) !important;
  color: rgba(255, 233, 160, .7) !important;
}
.ggl-theme .ggl-me-reward-nav .page_personal_center_six_nav_active {
  background: var(--ggl-gold-grad) !important;
  color: #4a2f08 !important;
}
.ggl-theme #page_personal_center[data-ggl-me="menu"] .ggl-me-shell { display: block; }
.ggl-theme #page_personal_center[data-ggl-me="panel"] .ggl-me-shell { display: none; }

/* ===== Play page — 好运金箔 ===== */
/* 玩乐页：整页禁止上下滑动（未刮卡也锁）；弹层列表仍可滚 */
html.ggl-play-on,
body.ggl-play-on,
html.ggl-me-panel-on,
body.ggl-me-panel-on {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  height: 100% !important;
  width: 100%;
  position: fixed;
  left: 0;
  right: 0;
  touch-action: manipulation;
}
body.ggl-theme.ggl-play-on #container.container,
body.ggl-theme.ggl-me-panel-on #container.container {
  box-sizing: border-box !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  padding-bottom: calc(var(--ggl-tab-h) + var(--ggl-safe-bottom)) !important;
  touch-action: manipulation;
}
html.ggl-scratch-lock,
body.ggl-scratch-lock {
  touch-action: none;
}
.ggl-theme #page_play.ggl-play-page,
.ggl-theme #page_play {
  padding: 4px 0 0;
  height: calc(100vh - var(--ggl-tab-h) - var(--ggl-safe-bottom) - 48px);
  height: calc(100dvh - var(--ggl-tab-h) - var(--ggl-safe-bottom) - 48px);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  box-sizing: border-box;
}
body.ggl-play-on .ggl-guest-dock { display: none !important; }
.ggl-theme #page_play #myCanvasDiv,
.ggl-theme #page_play #myCanvas,
.ggl-theme #page_play #myCanvasUpDiv,
.ggl-theme #page_play .ggl-play-stage-frame {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.ggl-theme .ggl-play-shell {
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  height: 100% !important;
  max-height: 100%;
  padding: 0 14px 8px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ggl-theme .ggl-play-legacy-img {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.ggl-theme .ggl-play-hero {
  text-align: center;
  padding: 0 8px 2px;
}
.ggl-theme .ggl-play-ornament { display: none; }
.ggl-theme .ggl-play-title {
  margin: 0;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.15;
  background: var(--ggl-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 #4a3008);
}
.ggl-theme .ggl-play-hint {
  margin: 2px 0 0;
  color: var(--ggl-muted);
  font-size: 12px;
  line-height: 1.25;
}

.ggl-theme .ggl-play-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}
.ggl-theme .ggl-play-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(224, 184, 74, .5);
  background: linear-gradient(180deg, rgba(72,16,22,.94), rgba(32,6,10,.97));
  color: #FFE9A0;
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,236,170,.12);
}
.ggl-theme .ggl-play-status-pill b {
  color: #FFF6C8;
  font-size: 14px;
  font-family: "Cinzel", "Noto Serif SC", serif;
}
.ggl-theme .ggl-play-status-face { min-width: 88px; justify-content: center; }
.ggl-theme #page_play #myCanvasTitle.ggl-play-meta,
.ggl-theme #page_play #myCanvasTitle {
  position: static !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #FFE9A0 !important;
  font-size: 13px !important;
  font-weight: 700;
}

.ggl-theme .ggl-play-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
  padding: 0 12px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(90, 18, 24, .92), rgba(40, 8, 10, .96));
  border: 1.5px solid rgba(224, 184, 74, .45);
  box-shadow: inset 0 1px 0 rgba(255, 236, 170, .12), 0 4px 14px rgba(0,0,0,.28);
  overflow: hidden;
}
.ggl-theme .ggl-play-ticker-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #4a2f08;
  background: var(--ggl-gold-grad);
  box-shadow: 0 1px 0 #6a4a10;
}
.ggl-theme .ggl-play-ticker-body,
.ggl-theme #playNotice {
  position: relative;
  flex: 1;
  height: 32px;
  overflow: hidden;
  float: none !important;
  width: auto !important;
  min-width: 0;
  color: var(--ggl-gold-hi) !important;
  font-size: 12px;
}
.ggl-theme #playNoticeBody {
  position: relative;
  height: 32px;
  overflow: hidden;
  white-space: nowrap;
}
.ggl-theme #playNoticeBody .ggl-marquee-run {
  display: inline-flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  line-height: 32px;
  height: 32px;
  color: #FFE9A0;
  will-change: transform;
  animation: gglMarqueeLtr 22s linear infinite;
}
.ggl-theme #playNoticeBody .ggl-marquee-run > span {
  flex: 0 0 auto;
  padding-right: 28px;
}
.ggl-theme #playNoticeBody .ggl-marquee-run b {
  color: #FFF1B8;
  font-weight: 800;
  margin: 0 1px;
}
.ggl-theme #playNoticeBody .ggl-marquee-sep {
  color: rgba(240, 208, 106, .7);
  padding: 0 6px;
}
/* 双份内容 + 移一半宽度，无缝循环；不依赖父级宽度，隐藏页也能正常显示 */
@keyframes gglMarqueeLtr {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ggl-theme .ggl-play-stage {
  margin: 0 0 8px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ggl-theme .ggl-play-cta {
  flex: 0 0 auto;
}
.ggl-theme .ggl-play-stage-frame {
  position: relative;
  padding: 14px 10px 12px;
  border-radius: 18px;
  border: 3px solid transparent;
  background-image:
    linear-gradient(180deg, #5c1218 0%, #3a0a10 42%, #22060a 100%),
    linear-gradient(145deg, #fff6c8 0%, #f0d06a 28%, #c8962a 55%, #8f6a1c 78%, #f0d06a 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 16px 40px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255, 236, 170, .28),
    inset 0 0 0 1px rgba(90, 18, 24, .65);
}
.ggl-theme .ggl-play-stage-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 14px;
  border: 1px solid rgba(240, 208, 106, .35);
  pointer-events: none;
  z-index: 1;
}
.ggl-theme .ggl-play-stage-ornament {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, #fff1b8 0 22%, transparent 24%),
    linear-gradient(135deg, transparent 42%, #f0d06a 43% 57%, transparent 58%),
    linear-gradient(45deg, transparent 42%, #c8962a 43% 57%, transparent 58%);
  opacity: .85;
}
.ggl-theme .ggl-play-stage-ornament-tl { top: 8px; left: 8px; }
.ggl-theme .ggl-play-stage-ornament-tr { top: 8px; right: 8px; transform: scaleX(-1); }
.ggl-theme .ggl-play-stage-ornament-bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.ggl-theme .ggl-play-stage-ornament-br { bottom: 8px; right: 8px; transform: scale(-1); }

.ggl-theme .ggl-play-stage-brand {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0 8px 10px;
  padding: 2px 0 4px;
  text-align: center;
}
.ggl-theme .ggl-play-crown {
  display: block !important;
  font-size: 18px;
  line-height: 1;
  color: #F0D06A;
  text-shadow: 0 2px 0 #5a3a0a, 0 0 10px rgba(240, 208, 106, .45);
  margin-bottom: 0;
}
.ggl-theme .ggl-play-brand-title {
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: clamp(22px, 6.5vw, 28px);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.1;
  background: linear-gradient(180deg, #FFF8D2 0%, #F0D06A 42%, #C8962A 78%, #FFF1B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #4a3008);
}
.ggl-theme .ggl-play-spark {
  display: inline-block;
  font-size: 12px;
  vertical-align: middle;
  margin: 0 4px;
  color: #F0D06A;
  filter: none;
  -webkit-text-fill-color: #F0D06A;
}
.ggl-theme .ggl-play-brand-sub {
  margin-top: 2px;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255, 233, 160, .82);
}

.ggl-theme #page_play .page_play_page_card {
  position: relative;
  z-index: 2;
  width: 100% !important;
  height: auto !important;
  filter: none;
  display: flex;
  justify-content: center;
}
.ggl-theme #page_play .page_play_page_card_one.ggl-play-card-bg,
.ggl-theme #page_play #myCanvasUpDiv {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  /* mockup：酒红织纹底板 */
  background-color: #4a1016 !important;
  background-image:
    radial-gradient(ellipse 40% 30% at 20% 25%, rgba(224,184,74,.08), transparent 60%),
    radial-gradient(ellipse 35% 28% at 80% 70%, rgba(224,184,74,.07), transparent 55%),
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(0,0,0,.18) 100%),
    linear-gradient(180deg, #6e1a22 0%, #4a1016 45%, #2a080c 100%) !important;
  background-size: 100% 100% !important;
  box-shadow:
    0 8px 22px rgba(0,0,0,.38),
    inset 0 0 0 1.5px rgba(224, 184, 74, .4),
    inset 0 0 24px rgba(0,0,0,.25);
}
.ggl-theme #page_play #myCanvasDiv {
  border-radius: 10px;
  overflow: hidden;
}
.ggl-theme #page_play #myCanvas {
  filter: none;
  border-radius: 10px;
  display: block;
}
.ggl-theme #page_play .page_play_page_card_three > div,
.ggl-theme #page_play .awards {
  color: #FFF6C8 !important;
  font-family: "Cinzel", "Noto Serif SC", serif !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 0 8px rgba(255,241,184,.25);
}
.ggl-theme #page_play .page_play_page_card_twelve > div {
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(224, 184, 74, .22);
  background: rgba(18, 4, 6, .28);
}
.ggl-theme #page_play .ownCodes {
  color: #FFE9A0 !important;
  font-weight: 700;
}
.ggl-theme #page_play .page_play_page_card_twelve_cash,
.ggl-theme #page_play .cashs {
  color: #FFF1B8 !important;
  font-family: "Cinzel", "Noto Serif SC", serif !important;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.ggl-theme .ggl-play-empty {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(90,20,28,.55), transparent 70%),
    linear-gradient(180deg, rgba(40,8,10,.78), rgba(20,4,6,.88));
  color: #FFE9A0;
  pointer-events: none;
}
.ggl-theme .ggl-play-empty-ico {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.35));
}
.ggl-theme .ggl-play-empty p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  font-family: "Noto Serif SC", Georgia, serif;
}
.ggl-theme .ggl-play-empty span {
  font-size: 12px;
  color: rgba(255, 233, 160, .72);
}

/* highlight matches */
.ggl-theme #page_play .page_play_page_card_three_active {
  color: #fff6c8 !important;
  background-image: linear-gradient(180deg, #c9962e, #8a1a1a) !important;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(224, 184, 74, .55);
}
.ggl-theme #page_play .page_play_page_card_twelve_active {
  color: #fff6c8 !important;
  text-shadow: 0 0 8px rgba(255, 220, 120, .8);
}
.ggl-theme #page_play .page_play_page_card_twelve_cash {
  color: #f0d06a !important;
}

.ggl-theme #page_play .ggl-play-meta-x {
  color: #ffd36a !important;
  margin-inline-start: 2px;
}

.ggl-theme .ggl-play-stage-tip {
  margin: 10px 0 0;
  text-align: center;
  color: rgba(255, 233, 160, .72);
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 12px;
  letter-spacing: .06em;
}

/* CTA strip below stage — single primary action */
.ggl-theme .ggl-play-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.ggl-theme .ggl-play-cta-btn,
.ggl-theme #page_play #gglPlayStartBtn,
.ggl-theme #page_play #gglPlayBuyBtn,
.ggl-theme #page_play #oneKeyFinish {
  appearance: none;
  position: static !important;
  transform: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 320px;
  min-height: 52px !important;
  height: auto !important;
  line-height: 1.2 !important;
  margin: 0 auto;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(255, 236, 170, .65) !important;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 16px !important;
  font-weight: 800;
  color: #4a2f08 !important;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(180deg, #FFF6C8 0%, #F0D06A 32%, #C9962E 72%, #9A6E1C 100%) !important;
  box-shadow:
    0 6px 0 #5a3a0a,
    0 12px 22px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.45) !important;
  box-sizing: border-box;
}
/* 次要：去购买 — 描边金钮，避免与「开始刮卡」同色误点 */
.ggl-theme #page_play #gglPlayBuyBtn {
  color: #F6E7B0 !important;
  background: linear-gradient(180deg, rgba(90, 28, 36, .92) 0%, rgba(52, 12, 18, .96) 100%) !important;
  border: 1.5px solid rgba(240, 208, 106, .72) !important;
  box-shadow:
    0 4px 0 rgba(42, 10, 14, .85),
    0 10px 18px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255, 236, 170, .12) !important;
}
.ggl-theme #page_play #oneKeyFinish[style*="display: none"],
.ggl-theme #page_play #oneKeyFinish[style*="display:none"],
.ggl-theme #page_play #gglPlayStartBtn[style*="display: none"],
.ggl-theme #page_play #gglPlayStartBtn[style*="display:none"],
.ggl-theme #page_play #gglPlayBuyBtn[style*="display: none"],
.ggl-theme #page_play #gglPlayBuyBtn[style*="display:none"] {
  display: none !important;
}
.ggl-theme .ggl-play-cta-btn:active,
.ggl-theme #page_play #gglPlayStartBtn:active,
.ggl-theme #page_play #oneKeyFinish:active {
  transform: translateY(3px) !important;
  box-shadow: 0 3px 0 #5a3a0a, 0 6px 12px rgba(0,0,0,.3) !important;
}
.ggl-theme #page_play #gglPlayBuyBtn:active {
  transform: translateY(2px) !important;
  box-shadow: 0 2px 0 rgba(42, 10, 14, .85), 0 5px 10px rgba(0,0,0,.28) !important;
}
.ggl-theme .ggl-play-cta-link,
.ggl-theme #page_play #oneKey,
.ggl-theme #page_play #gglPlayChangeBtn,
.ggl-theme #page_play #gglPlayRecordLink {
  position: static !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.3 !important;
  margin: 0;
  padding: 4px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #F0D06A !important;
  font-size: 13px !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ggl-theme #page_play #oneKey[style*="display: none"],
.ggl-theme #page_play #gglPlayChangeBtn[style*="display: none"],
.ggl-theme #page_play #gglPlayRecordLink[style*="display: none"] {
  display: none !important;
}

/* play state helpers */
.ggl-theme #page_play[data-ggl-play-state="empty"] .ggl-play-status-face { opacity: .45; }
.ggl-theme #page_play[data-ggl-play-state="scratching"] #gglPlayFacePill {
  border-color: rgba(255, 236, 170, .75);
  box-shadow: 0 0 12px rgba(224, 184, 74, .25);
}

/* tabs: record / pack */
.ggl-theme #page_play .page_play_page_record.ggl-play-tabs {
  margin-top: 8px !important;
  height: auto !important;
}
.ggl-theme #page_play .ggl-play-tabbar,
.ggl-theme #page_play .page_play_page_record_one.ggl-play-tabbar {
  display: flex;
  gap: 10px;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 360px;
  height: auto !important;
  float: none;
}
.ggl-theme #page_play .ggl-play-tab,
.ggl-theme #page_play .page_play_page_record_one > div {
  float: none !important;
  flex: 1;
  width: auto !important;
  height: 42px !important;
  line-height: 42px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 700;
  color: var(--ggl-gold-hi) !important;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(90, 20, 28, .9), rgba(40, 8, 10, .95)) !important;
  border: 1.5px solid rgba(224, 184, 74, .4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.28);
}
.ggl-theme #page_play .page_play_page_record_one_active,
.ggl-theme #page_play .ggl-play-tab.page_play_page_record_one_active {
  color: #4a2f08 !important;
  background: var(--ggl-gold-grad) !important;
  border-color: rgba(255, 236, 170, .65);
  box-shadow: 0 5px 0 #5a3a0a, 0 10px 18px rgba(0,0,0,.35) !important;
}

/* popup lists gold-ish */
.ggl-theme .page_play_page_record_prize {
  background-image: var(--ggl-gold-grad) !important;
  color: #4a2f08 !important;
  font-weight: 700;
}
.ggl-theme .page_play_page_record_no_prize {
  border-color: rgba(224, 184, 74, .45) !important;
  color: var(--ggl-muted) !important;
  background: rgba(40, 8, 10, .35);
}
.ggl-theme .page_play_page_record_exchange_prize {
  background-image: linear-gradient(180deg, #fff1b8, #c9962e) !important;
  color: #4a2f08 !important;
}

/* ===== Gold bottom sheet: pack / records ===== */
.ggl-theme .ggl-sheet.popup_modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1200 !important;
  background: rgba(10, 2, 4, .62) !important;
}
.ggl-theme .ggl-sheet-mask {
  position: absolute;
  inset: 0;
}
.ggl-theme .ggl-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  border: 1.5px solid rgba(224, 184, 74, .55);
  border-bottom: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(224,184,74,.14), transparent 55%),
    linear-gradient(180deg, #5c1218 0%, #2e080c 48%, #1a0407 100%);
  box-shadow: 0 -12px 40px rgba(0,0,0,.45);
  padding-bottom: calc(12px + var(--ggl-safe-bottom));
  box-sizing: border-box;
}
.ggl-theme .ggl-sheet-grab {
  width: 42px;
  height: 4px;
  margin: 10px auto 6px;
  border-radius: 999px;
  background: rgba(224, 184, 74, .45);
}
.ggl-theme .ggl-sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 10px;
}
.ggl-theme .ggl-sheet-tabs {
  flex: 1;
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,.22);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(224, 184, 74, .28);
}
.ggl-theme .ggl-sheet-tab {
  flex: 1;
  appearance: none;
  border: 0;
  border-radius: 999px;
  height: 34px;
  background: transparent;
  color: rgba(255, 233, 160, .7);
  font-size: 13px;
  font-weight: 700;
  font-family: "Noto Serif SC", Georgia, serif;
  cursor: pointer;
}
.ggl-theme .ggl-sheet-tab.is-on {
  color: #4a2f08;
  background: var(--ggl-gold-grad);
  box-shadow: 0 2px 0 #5a3a0a;
}
.ggl-theme .ggl-sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(224, 184, 74, .5);
  background: rgba(40, 8, 10, .85);
  color: #F0D06A;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.ggl-theme .ggl-sheet-body,
.ggl-theme .ggl-sheet .popup_choose_card_page,
.ggl-theme .ggl-sheet .page_play_page_myrecord-wrap {
  position: relative !important;
  flex: 1;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  overflow: auto !important;
  background: transparent !important;
  padding: 4px 14px 8px !important;
  text-align: left !important;
  font-size: 14px !important;
  color: #FFE9A0 !important;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.ggl-theme .ggl-sheet .popup_choose_card_page > div {
  width: auto !important;
  height: auto !important;
  margin: 0 0 10px !important;
  color: inherit !important;
  float: none !important;
}
/* 干掉旧布局：第2列被当成 1% 宽竖虚线，把「立即刮卡」挤成竖排 */
.ggl-theme .ggl-sheet .popup_choose_card_page > div > div,
.ggl-theme .ggl-sheet .popup_choose_card_page > div > div:nth-of-type(1),
.ggl-theme .ggl-sheet .popup_choose_card_page > div > div:nth-of-type(2),
.ggl-theme .ggl-sheet .popup_choose_card_page > div > div:nth-of-type(3) {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  line-height: normal !important;
  border: 0 !important;
  border-left: 0 !important;
}
.ggl-theme .ggl-sheet-loading {
  position: absolute !important;
  left: 0;
  right: 0;
  top: 56px;
  bottom: 0;
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 4, 6, .72) !important;
  color: #F0D06A !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  padding: 0 !important;
  z-index: 3;
  border-radius: 0 0 0 0;
}

.ggl-theme .ggl-sheet-card {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px !important;
  padding: 14px 12px 14px 14px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(224, 184, 74, .42) !important;
  background: linear-gradient(180deg, rgba(72,16,22,.92), rgba(28,6,10,.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255,236,170,.1), 0 6px 16px rgba(0,0,0,.28);
  cursor: pointer;
  box-sizing: border-box;
}
.ggl-theme .ggl-sheet-card-main {
  flex: 1 1 auto !important;
  min-width: 0;
  width: auto !important;
  height: auto !important;
  float: none !important;
  text-align: left;
}
.ggl-theme .ggl-sheet-card-face {
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 26px;
  font-weight: 800;
  color: #FFF1B8;
  line-height: 1.1;
}
.ggl-theme .ggl-sheet-card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 233, 160, .75);
  line-height: 1.3 !important;
}
.ggl-theme .ggl-sheet-card-meta b { color: #F0D06A; font-size: 14px; }
.ggl-theme .ggl-sheet-card-btn {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  width: auto !important;
  min-width: 96px;
  height: auto !important;
  margin: 0 !important;
  padding: 11px 16px !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(255, 236, 170, .7) !important;
  border-left: 1.5px solid rgba(255, 236, 170, .7) !important;
  background: linear-gradient(180deg, #FFF1B8 0%, #F0D06A 48%, #C8962A 100%) !important;
  color: #4a2f08 !important;
  font-family: "Noto Serif SC", "Cinzel", serif;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .04em;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  box-shadow: 0 3px 0 #5a3a0a, 0 6px 12px rgba(0,0,0,.25);
  box-sizing: border-box;
}
.ggl-theme .ggl-sheet-card:active .ggl-sheet-card-btn {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #5a3a0a, 0 3px 8px rgba(0,0,0,.22);
}

.ggl-theme .ggl-sheet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(224, 184, 74, .32);
  background: rgba(40, 8, 10, .55);
}
.ggl-theme .ggl-sheet-row-main { flex: 1; min-width: 0; }
.ggl-theme .ggl-sheet-row-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFE9A0;
}
.ggl-theme .ggl-sheet-row-meta {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255, 233, 160, .55);
}
.ggl-theme .ggl-sheet-row-side { flex: 0 0 auto; }
.ggl-theme .ggl-sheet-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-sizing: border-box;
}
.ggl-theme .ggl-sheet-badge-win {
  color: #4a2f08;
  background: var(--ggl-gold-grad);
  border: 1px solid rgba(255,236,170,.55);
}
.ggl-theme .ggl-sheet-badge-lose {
  color: rgba(255, 233, 160, .72);
  border: 1px solid rgba(224, 184, 74, .4);
  background: rgba(0,0,0,.2);
}
.ggl-theme .ggl-sheet-badge-done {
  color: #4a2f08;
  background: linear-gradient(180deg, #fff1b8, #c9962e);
}
.ggl-theme .ggl-sheet-end {
  text-align: center;
  padding: 12px 8px 4px;
  color: rgba(255, 233, 160, .5);
  font-size: 12px;
}
.ggl-theme .ggl-sheet-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  text-align: center;
  padding: 24px 16px;
  color: #FFE9A0;
}
.ggl-theme .ggl-sheet-empty p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.ggl-theme .ggl-sheet-empty span {
  font-size: 12px;
  color: rgba(255, 233, 160, .7);
  line-height: 1.4;
}
.ggl-theme .ggl-sheet-empty-btn {
  appearance: none;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 236, 170, .55);
  background: var(--ggl-gold-grad);
  color: #4a2f08;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #5a3a0a;
}

/* ===== Gold dialogs: buy success / fail / withdraw ===== */
.ggl-theme .ggl-dialog.popup_modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1300 !important;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 2, 4, .72) !important;
  padding: 24px 20px;
  box-sizing: border-box;
}
.ggl-theme .ggl-dialog.popup_modal[style*="display: block"] {
  display: flex !important;
}
.ggl-theme .ggl-dialog-card {
  width: min(86vw, 320px);
  margin: 0 auto;
  padding: 28px 22px 24px;
  text-align: center;
  border-radius: 20px;
  border: 1.5px solid rgba(224, 184, 74, .55);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(224,184,74,.18), transparent 55%),
    linear-gradient(180deg, #5c1218 0%, #2e080c 55%, #1a0407 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,236,170,.12);
  box-sizing: border-box;
}
.ggl-theme .ggl-dialog-ornament {
  margin: 0 0 14px;
  color: rgba(240, 208, 106, .7);
  font-size: 12px;
  letter-spacing: .12em;
}
.ggl-theme .ggl-dialog-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  border: 2px solid rgba(255, 236, 170, .55);
  box-shadow: 0 6px 0 #5a3a0a, inset 0 1px 0 rgba(255,255,255,.35);
}
.ggl-theme .ggl-dialog-icon-ok {
  color: #4a2f08;
  background: var(--ggl-gold-grad);
}
.ggl-theme .ggl-dialog-icon-fail {
  color: #ffe9a0;
  background: linear-gradient(180deg, #6b1a22, #3a0a0e);
  box-shadow: 0 6px 0 #2a080a, inset 0 1px 0 rgba(255,236,170,.15);
}
.ggl-theme .ggl-dialog-title {
  margin: 0 0 8px;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 800;
  color: #FFF1B8;
  line-height: 1.3;
}
.ggl-theme .ggl-dialog-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(255, 233, 160, .78);
  line-height: 1.45;
}
.ggl-theme .ggl-dialog-count {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #F0D06A;
  line-height: 1.4;
}
.ggl-theme .ggl-dialog-count #popupBuyTime,
.ggl-theme .ggl-dialog-count #funcFailTime,
.ggl-theme .ggl-dialog-count #popupWithdrawTime {
  font-family: "Cinzel", serif;
  font-size: 18px;
  color: #FFF6C8;
}

/* ===== Win confetti (金箔散花) ===== */
.ggl-confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 1400;
  pointer-events: none;
  display: none;
}

/* ===== Gold result: win / lose after scratch ===== */
.ggl-theme .ggl-result-modal.popup_modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1250 !important;
  background: rgba(10, 2, 4, .72) !important;
}
.ggl-theme .ggl-result {
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  box-sizing: border-box;
}
.ggl-theme .ggl-result[style*="display: none"],
.ggl-theme .ggl-result[style*="display:none"] {
  display: none !important;
}
.ggl-theme .ggl-result-card {
  width: min(88vw, 340px);
  padding: 22px 18px 20px;
  border-radius: 20px;
  border: 1.5px solid rgba(224, 184, 74, .55);
  background:
    radial-gradient(ellipse 90% 45% at 50% -10%, rgba(224,184,74,.22), transparent 50%),
    linear-gradient(180deg, #6b161e 0%, #3a0a10 48%, #1c0508 100%);
  box-shadow: 0 20px 48px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,236,170,.14);
  text-align: center;
  box-sizing: border-box;
}
.ggl-theme .ggl-result-ornament {
  margin: 0 0 12px;
  color: rgba(240, 208, 106, .65);
  font-size: 11px;
  letter-spacing: .14em;
}
.ggl-theme .ggl-result-badge {
  display: inline-block;
  margin: 0 auto 14px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
}
.ggl-theme .ggl-result-badge-win {
  color: #4a2f08;
  background: var(--ggl-gold-grad);
  border: 1.5px solid rgba(255,236,170,.6);
  box-shadow: 0 4px 0 #5a3a0a;
}
.ggl-theme .ggl-result-badge-lose {
  color: #FFE9A0;
  background: rgba(0,0,0,.28);
  border: 1.5px solid rgba(224, 184, 74, .45);
}
.ggl-theme .ggl-result-body {
  margin: 0 0 18px;
  padding: 14px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(224, 184, 74, .28);
  background: rgba(20, 4, 6, .45);
}
.ggl-theme .ggl-result-body p {
  margin: 0 0 6px;
  font-size: 14px;
  color: rgba(255, 233, 160, .88);
  line-height: 1.45;
}
.ggl-theme .ggl-result-muted {
  color: rgba(255, 233, 160, .62) !important;
  font-size: 13px !important;
}
.ggl-theme .ggl-result-prize {
  margin-top: 4px !important;
  font-size: 15px !important;
}
.ggl-theme .ggl-result-prize b {
  color: #FFF1B8;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 800;
}
.ggl-theme .ggl-result-face {
  margin: 10px auto 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1.5px solid rgba(224, 184, 74, .4);
  color: #F0D06A;
  background: rgba(0,0,0,.22);
}
.ggl-theme .ggl-result-face-win {
  color: #4a2f08;
  background: var(--ggl-gold-grad);
  border-color: rgba(255,236,170,.55);
}
.ggl-theme .ggl-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.ggl-theme .ggl-result-btn {
  appearance: none;
  flex: 1 1 110px;
  max-width: 150px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 236, 170, .55);
  background: var(--ggl-gold-grad);
  color: #4a2f08;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 0 #5a3a0a, 0 10px 18px rgba(0,0,0,.3);
}
.ggl-theme .ggl-result-btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #5a3a0a, 0 6px 12px rgba(0,0,0,.28);
}
.ggl-theme .ggl-result-btn-ghost {
  color: #FFE9A0;
  background: rgba(40, 8, 10, .85);
  border-color: rgba(224, 184, 74, .5);
  box-shadow: 0 5px 0 #2a080a, 0 10px 18px rgba(0,0,0,.28);
}

body.is-rtl .ggl-theme #page_play .ggl-play-ticker {
  flex-direction: row-reverse;
}

/* lang sheet */
.ggl-lang-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.6);
}
.ggl-lang-mask.on { display: block; }
.ggl-lang-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #6a1a20, #2c070a);
  border-radius: 18px 18px 0 0;
  padding: 16px 14px calc(16px + var(--ggl-safe-bottom));
  border-top: 2px solid rgba(224, 184, 74, .55);
  box-shadow: 0 -12px 40px rgba(0,0,0,.45);
}
.ggl-lang-sheet h3 {
  margin: 0 0 12px;
  text-align: center;
  color: var(--ggl-gold-hi);
  font-size: 16px;
  font-family: "Cinzel", "Noto Serif SC", serif;
}
.ggl-lang-item {
  display: block;
  width: 100%;
  text-align: start;
  border: 1.5px solid rgba(224, 184, 74, .28);
  background: rgba(255, 244, 225, .07);
  color: var(--ggl-text);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}
.ggl-lang-item.active {
  border-color: var(--ggl-gold);
  background: rgba(224, 184, 74, .2);
  color: var(--ggl-gold-hi);
  box-shadow: inset 0 0 0 1px rgba(255,233,160,.2);
}

/* CS channel picker */
.ggl-cs-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(0, 0, 0, 0.62);
}
.ggl-cs-mask.on { display: block; }
.ggl-cs-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #6a1a20, #2c070a);
  border-radius: 18px 18px 0 0;
  padding: 18px 14px calc(14px + var(--ggl-safe-bottom));
  border-top: 2px solid rgba(224, 184, 74, .55);
  box-shadow: 0 -12px 40px rgba(0,0,0,.45);
}
.ggl-cs-sheet h3 {
  margin: 0 0 6px;
  text-align: center;
  color: var(--ggl-gold-hi);
  font-size: 16px;
  font-family: "Cinzel", "Noto Serif SC", serif;
}
.ggl-cs-sheet-tip {
  margin: 0 0 14px;
  text-align: center;
  color: rgba(255, 244, 225, .72);
  font-size: 12px;
}
.ggl-cs-channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ggl-cs-channel-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1.5px solid rgba(224, 184, 74, .32);
  background: rgba(255, 244, 225, .08);
  color: var(--ggl-text);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  text-align: start;
}
.ggl-cs-channel-btn:active {
  transform: scale(0.985);
}
.ggl-cs-channel-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background-size: 22px 22px;
  background-repeat: no-repeat;
  background-position: center;
}
.ggl-cs-channel-btn.telegram .ggl-cs-channel-ico {
  background-color: #2AABEE;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M21.8 4.2 2.9 11.5c-1.3.5-1.3 1.2-.2 1.5l4.8 1.5 1.9 5.7c.2.7.4.9 1 .9.6 0 .8-.3 1.1-.6l2.9-2.8 4.9 3.6c.9.5 1.5.2 1.7-.8L23 5.4c.3-1.2-.4-1.7-1.2-1.2z'/%3E%3C/svg%3E");
}
.ggl-cs-channel-btn.line .ggl-cs-channel-ico {
  background-color: #06C755;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 3.2C6.8 3.2 2.6 6.8 2.6 11.2c0 3.9 3.4 7.1 8.1 7.7.3.1.8.3.9.6.1.3.1.7 0 1l-.3 1.1c-.1.4-.1.5.3.4 1.6-.7 8.5-5 8.5-10.8C20.1 6.8 16.5 3.2 12 3.2z'/%3E%3C/svg%3E");
}
.ggl-cs-channel-txt {
  font-weight: 600;
  color: #fff6d8;
}
.ggl-cs-sheet-cancel {
  margin-top: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 244, 225, .7);
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  font-family: inherit;
}

/* Auth */
.ggl-auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(224,184,74,.22), transparent 55%),
    linear-gradient(180deg, #6b141c, #2c070a);
  color: var(--ggl-text);
  font-family: "Noto Serif SC", "PingFang SC", "Noto Sans Arabic", sans-serif;
}
.ggl-auth-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, rgba(90,20,28,.9), rgba(40,8,10,.95));
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 26px 20px;
  background-image:
    linear-gradient(180deg, rgba(90,20,28,.95), rgba(40,8,10,.98)),
    linear-gradient(135deg, #fff1b8, #c9962e, #8f6a1c);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}
.ggl-auth-brand {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--ggl-gold-hi);
  margin: 4px 0 10px;
}
.ggl-auth-card h1 {
  margin: 0;
  text-align: center;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 26px;
  background: var(--ggl-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #4a3008);
}
.ggl-auth-card .sub {
  text-align: center;
  color: var(--ggl-muted);
  font-size: 13px;
  margin: 8px 0 18px;
}
.ggl-auth-card label {
  display: block;
  font-size: 13px;
  margin: 12px 0 6px;
  color: var(--ggl-gold-hi);
}
.ggl-auth-card input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(224,184,74,.35);
  background: rgba(0,0,0,.32);
  color: #fff;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}
.ggl-auth-card input:focus { border-color: var(--ggl-gold); }
.ggl-auth-card .row { display: flex; gap: 10px; align-items: center; }
.ggl-auth-card .row input { flex: 1; }
.ggl-auth-card .captcha { height: 44px; border-radius: 10px; cursor: pointer; background: #fff; }
.ggl-auth-card .btn {
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ggl-gold-grad);
  color: #4a2f08;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--ggl-btn-shadow);
  font-family: inherit;
}
.ggl-auth-card .btn:disabled { opacity: .6; }
.ggl-auth-card .links { margin-top: 16px; text-align: center; font-size: 13px; color: var(--ggl-muted); }
.ggl-auth-card .links a { color: var(--ggl-gold-hi); text-decoration: none; font-weight: 700; }
.ggl-auth-card .links.ggl-auth-skip { margin-top: 10px; }
.ggl-auth-card .links.ggl-auth-skip a {
  color: rgba(255, 233, 160, .78);
  font-weight: 600;
  border-bottom: 1px solid rgba(224, 184, 74, .35);
  padding-bottom: 1px;
}
.ggl-auth-card .err {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,107,107,.18);
  color: #ffb4b4;
  font-size: 13px;
}
.ggl-auth-card .tip { margin-top: 10px; font-size: 12px; color: #c8f59a; text-align: center; }
.ggl-auth-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ggl-auth-top .ggl-auth-home {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.is-rtl .ggl-topbar,
body.is-rtl .ggl-top-actions,
body.is-rtl .ggl-auth-top { flex-direction: row-reverse; }
body.is-rtl .ggl-lang-item { text-align: right; }
