/* 刮刮乐 Vue 页（首页 + 子页顶栏，WebView 兼容） */

.pn-page.ggl-home-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 0;
  background: #f5a623;
  display: flex;
  flex-direction: column;
}

.pn-page.ggl-home-page .pn-nav {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.98);
}

.pn-page.ggl-home-page .pn-dash {
  flex-shrink: 0;
  margin-top: 0;
}

.ggl-stage {
  position: relative;
  flex: 1;
  min-height: 220px;
  overflow: hidden;
}

.ggl-stage-bg {
  position: absolute;
  inset: 0;
  background: #f5a623 url(/static/ggl/images/home-bg.png) center top / cover no-repeat;
  pointer-events: none;
}

.ggl-stage-deco {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 20px 24px;
  pointer-events: none;
}

.ggl-stage-deco .title-img {
  width: min(280px, 78vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.12));
}

.ggl-stage-deco .sub {
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  color: #8a4b00;
  line-height: 1.4;
  text-align: center;
  max-width: 92%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.ggl-dock {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 10px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent 0%, rgba(245, 166, 35, 0.92) 28%, #f5a623 100%);
}

.ggl-dock-btn {
  flex: 1;
  max-width: 118px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.ggl-dock-btn--play {
  flex: 1.12;
  max-width: 132px;
}

.ggl-dock-btn img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.ggl-dock-btn:active {
  transform: scale(0.97);
}

.ggl-dock-badge {
  position: absolute;
  top: -4px;
  right: 21px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.45);
  pointer-events: none;
}

.ggl-tip-card {
  margin: 0 16px 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ggl-tip-card .hd {
  font-size: 13px;
  font-weight: 700;
  color: var(--app-ink, #1c1c1c);
  margin-bottom: 8px;
}

.ggl-tip-card .txt {
  font-size: 12px;
  color: #666;
  line-height: 1.65;
}

.ggl-tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ggl-tier-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff8d6;
  border: 1px solid rgba(255, 184, 77, 0.45);
  font-size: 11px;
  font-weight: 700;
  color: #8a4b00;
}

.ggl-rules-popup {
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: 70vh;
  overflow-y: auto;
}

.ggl-rules-popup h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--app-ink, #1c1c1c);
}

.ggl-rules-popup ul {
  margin: 0;
  padding-left: 18px;
}

.ggl-rules-popup li {
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* 刮刮乐子页（购买 / 刮卡 / 兑换） */
.pn-page.ggl-game-page {
  min-height: 100vh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 180px);
}

.ggl-game-body {
  padding: 12px 16px 24px;
}

.ggl-game-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.ggl-game-card .ico {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 10px;
}

.ggl-game-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--app-ink, #1c1c1c);
}

.ggl-game-card p {
  margin: 10px 0 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.ggl-game-card .hint {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff9e6;
  font-size: 12px;
  color: #8a4b00;
}

.ggl-game-card--intro {
  margin-bottom: 12px;
}

.ggl-game-card--intro p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  text-align: center;
}

.ggl-list-card {
  background: #fff;
  border-radius: 18px;
  padding: 4px 16px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.ggl-action-btn {
  display: block;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffb84d 0%, #ff9500 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 149, 0, 0.35);
}

.ggl-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ggl-action-btn--sm {
  width: auto;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
}

.ggl-choose-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ggl-choose-item:last-child {
  border-bottom: 0;
}

.ggl-choose-item .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ggl-choose-item .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--app-ink, #1c1c1c);
}

.ggl-choose-item .cnt {
  margin-top: 4px;
  font-size: 12px;
  color: #888;
}

.ggl-empty-state {
  padding: 32px 16px;
  text-align: center;
}

.ggl-empty-state__ico {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}

.ggl-empty-state__msg {
  margin: 0 0 16px;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

.ggl-buy-success-mask {
  z-index: 400;
}

.ggl-buy-success-mask .ggl-modal-box.ggl-buy-success {
  width: min(300px, 86vw);
  max-width: 300px;
  padding: 28px 22px 22px;
  text-align: center;
}

.ggl-buy-success-mask .ggl-modal-box .msg.ggl-buy-success__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1c1c1c !important;
  line-height: 1.4;
}

.ggl-buy-success__ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb84d 0%, #ff9500 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 56px;
  box-shadow: 0 6px 18px rgba(255, 149, 0, 0.35);
}

.ggl-buy-success__sub {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.ggl-buy-success__hint {
  margin: 12px 0 18px;
  font-size: 12px;
  color: #d0021b;
  line-height: 1.5;
}

.ggl-buy-success__hint span {
  font-weight: 700;
}

.ggl-buy-success__link {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.ggl-game-page .ggl-buy-card {
  margin-top: 0;
}

.ggl-game-page .ggl-exchange-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ggl-game-page .ggl-exchange-item:last-child {
  border-bottom: 0;
}

.ggl-game-page .ggl-exchange-item .info {
  flex: 1;
  font-size: 14px;
  color: var(--app-ink, #1c1c1c);
  line-height: 1.5;
}
