#ganzhou-gift {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 10000;
  pointer-events: none;
  font-family: "Microsoft YaHei", sans-serif;
  --product-width: 112px;
  --product-height: 138px;
}
#ganzhou-gift [hidden] { display: none !important; }
.ganzhou-gift-art {
  position: absolute;
  width: 140px;
  height: 140px;
  left: -70px;
  top: -106px;
  transform-origin: 50% 50%;
  transform: scale(.333333);
  transition: transform 260ms cubic-bezier(.2,.75,.3,1);
  pointer-events: none;
}
#ganzhou-gift[data-state="ready"] .ganzhou-gift-view { transform-origin: 50% 82%; animation: ganzhou-gift-callout 2.7s cubic-bezier(.36,.07,.19,.97) infinite; }
#ganzhou-gift[data-state="ready"] .ganzhou-gift-art::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 80%;
  width: 172px;
  height: 62px;
  margin: -31px -86px;
  border: 4px solid rgba(255, 219, 139, .96);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(255, 113, 70, .3), inset 0 0 12px rgba(255, 239, 187, .48);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transform: scale(.3);
  animation: ganzhou-gift-ripple 2.7s ease-out infinite;
  z-index: 0;
}
@keyframes ganzhou-gift-callout {
  0%, 60%, 100% { transform: translateY(0) scale(1); }
  66% { transform: translateY(-28px) scale(.93, 1.08); }
  73% { transform: translateY(0) scale(1.09, .91); }
  81% { transform: translateY(-13px) scale(.97, 1.04); }
  89% { transform: translateY(0) scale(1.04, .97); }
  95% { transform: translateY(-4px) scale(.99, 1.01); }
}
@keyframes ganzhou-gift-ripple {
  0%, 57%, 100% { opacity: 0; transform: scale(.3); }
  63% { opacity: .95; transform: scale(.5); }
  72% { opacity: .76; transform: scale(.86); }
  84% { opacity: .24; transform: scale(1.34); }
  89% { opacity: 0; transform: scale(1.5); }
}
.ganzhou-gift-view { position: relative; z-index: 1; }
.ganzhou-gift-view, .ganzhou-gift-view canvas { width: 100%; height: 100%; display: block; }
#ganzhou-gift[data-state="loading-products"] .ganzhou-gift-art { opacity: .72; }
#ganzhou-gift[data-state="loading-products"] .ganzhou-gift-art::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px;
  border: 4px solid rgba(255,255,255,.32);
  border-top-color: #ffca67;
  border-radius: 50%;
  box-sizing: border-box;
  animation: ganzhou-gift-loading-spin .7s linear infinite;
}
#ganzhou-gift[data-state="opening"] .ganzhou-gift-art { transform: scale(1.7); }
.ganzhou-gift-trigger {
  position: absolute;
  left: -27px;
  top: -64px;
  width: 54px;
  height: 54px;
  border: 0;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  color: #fff4cc;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ganzhou-gift-trigger:focus-visible, .ganzhou-product:focus-visible { outline: 2px solid #ffdc85; outline-offset: 5px; }
.ganzhou-product {
  position: absolute;
  left: calc(var(--product-width) / -2);
  top: calc(var(--product-height) / -2 - 36px);
  width: var(--product-width);
  height: var(--product-height);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ganzhou-product:disabled { cursor: default; pointer-events: none; }
.ganzhou-product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 7px #0008) drop-shadow(0 0 2px #fff4);
  transition: filter 140ms ease;
  user-select: none;
  -webkit-user-drag: none;
}
.ganzhou-product:hover:not(:disabled) img { filter: drop-shadow(0 8px 9px #0008) drop-shadow(0 0 7px #fff7); }
.ganzhou-gift-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes ganzhou-gift-loading-spin { to { transform: rotate(360deg); } }
#ganzhou-star-collection {
  position: fixed;
  inset: 0;
  z-index: 30001;
  pointer-events: none;
  font-family: "Microsoft YaHei", sans-serif;
  --sky-orange: #ff9837;
}
#ganzhou-star-collection [hidden] { display: none !important; }
.ganzhou-sky-slot {
  position: absolute; width: 0; height: 0; --reveal: 1;
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  transition: opacity 260ms, transform 360ms cubic-bezier(.2,.8,.2,1), visibility 360ms;
}
#ganzhou-star-collection[data-gifts-visible="false"] .ganzhou-sky-slot {
  opacity: 0; visibility: hidden; transform: translateY(-14px) scale(.88);
}
.ganzhou-sky-product {
  position: absolute;
  width: var(--sky-size);
  height: calc(var(--sky-size) * 1.28);
  left: calc(var(--sky-size) * -.5);
  top: calc(var(--sky-size) * -.64);
  border: 0;
  padding: 0;
  background: transparent;
  color: #ffe0ab;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transform: scale(var(--reveal));
  opacity: var(--reveal);
}
.ganzhou-sky-product img {
  display: block;
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 12px #ffc57644) drop-shadow(0 8px 14px #0008);
  animation: ganzhou-sky-float 4s ease-in-out infinite;
  user-select: none;
}
.ganzhou-sky-halo {
  position: absolute; left: calc(var(--sky-size) * -.66); top: calc(var(--sky-size) * -.66);
  width: calc(var(--sky-size) * 1.32); height: calc(var(--sky-size) * 1.32);
  border-radius: 50%; background: radial-gradient(ellipse, #f6c78924, #f6c78909 45%, transparent 70%);
  opacity: var(--reveal); animation: ganzhou-sky-glow 3s ease-in-out infinite;
}
.ganzhou-sky-hint {
  display: block; position: absolute; width: 150px; left: calc(50% - 75px); bottom: -25px;
  text-align: center; font-size: 10px; letter-spacing: .12em; opacity: .8;
  text-shadow: 0 2px 6px #000; animation: ganzhou-sky-glow 3s ease-in-out infinite;
}
.ganzhou-sky-hint::before { content: '·'; padding-right: 5px; color: #ffc76e; }
.ganzhou-sky-slot[data-open="true"] .ganzhou-sky-hint { opacity: 0; animation: none; }
.ganzhou-sky-actions {
  position: absolute; left: calc(var(--sky-size) * .5 + 12px); top: -22px;
  display: flex; gap: 12px; transform: translateX(-54px) scale(.75); transform-origin: left center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 380ms cubic-bezier(.2,.85,.2,1), opacity 220ms ease, visibility 380ms;
}
.ganzhou-sky-slot[data-open="true"] .ganzhou-sky-actions {
  transform: translateX(0) scale(1); opacity: 1; visibility: visible;
}
.ganzhou-sky-actions button {
  width: 44px; height: 44px; border: 1px solid #ffad633b; border-radius: 50%;
  display: grid; place-items: center; padding: 10px; background: #071322d9;
  box-shadow: 0 3px 15px #0005; cursor: pointer; pointer-events: auto;
  transition: background 160ms, transform 160ms;
}
.ganzhou-sky-actions button:hover { background: #4e2c1beb; transform: translateY(-3px); }
.ganzhou-sky-actions img, .ganzhou-sky-actions svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.ganzhou-sky-contact {
  position: absolute; top: calc(var(--sky-size) * .9); left: 50%;
  width: min(292px, calc(100vw - 24px)); box-sizing: border-box;
  transform: translateX(-50%); padding: 12px 14px;
  border: 1px solid #ffad6370; border-radius: 12px;
  background: #071322f2; color: #ffe0ab; box-shadow: 0 8px 26px #0009;
  pointer-events: auto; text-align: center;
}
.ganzhou-sky-contact-title { display: block; font-size: 13px; }
.ganzhou-sky-contact-value-row { display: flex; align-items: center; gap: 6px; }
.ganzhou-sky-contact-value {
  flex: 1; margin: 8px 0; font-size: 12px; line-height: 1.45;
  overflow-wrap: anywhere; user-select: text; color: #fff;
}
.ganzhou-sky-contact-copy {
  flex: 0 0 30px; width: 30px; height: 30px; padding: 6px;
  border: 1px solid #ffad6370; border-radius: 8px; background: #ffffff12;
  color: #ffe0ab; cursor: pointer;
}
.ganzhou-sky-contact-copy:hover { background: #ffffff26; }
.ganzhou-sky-contact-copy svg { display: block; width: 100%; height: 100%; }
.ganzhou-sky-contact-hint { display: block; font-size: 11px; line-height: 1.5; }
.ganzhou-sky-actions .ganzhou-sky-dismiss {
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #ffe0ab; font: 300 30px/1 "Segoe UI", Arial, sans-serif;
}
.ganzhou-sky-product:focus-visible, .ganzhou-sky-actions button:focus-visible, .ganzhou-sky-contact-copy:focus-visible, .ganzhou-overview:focus-visible {
  outline: 2px solid #ffd28b; outline-offset: 5px; border-radius: 12px;
}
.ganzhou-sky-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ganzhou-star-effects { position: fixed; inset: 0; z-index: 19999; pointer-events: none; overflow: hidden; }
.ganzhou-star-effects canvas { width: 100%; height: 100%; }
.ganzhou-collection-star {
  position: absolute; left: -19px; top: -20px; width: 38px; height: 40px;
  filter: drop-shadow(0 3px 3px #00334cd9) drop-shadow(0 0 9px #58dfffc4); will-change: transform;
}
.ganzhou-collection-star svg { width: 100%; height: 100%; overflow: visible; }
.ganzhou-collection-star::after {
  content: ''; position: absolute; left: 25px; top: -5px; width: 14px; height: 14px;
  background: #fff; filter: drop-shadow(0 0 4px #eaffff);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: ganzhou-star-spark 1.8s var(--spark-delay, 0s) ease-in-out infinite;
}
.ganzhou-sky-controls {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
}
.ganzhou-layer-panel {
  position: absolute; left: max(14px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top));
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: max-content; padding: 0; box-sizing: border-box; pointer-events: auto;
  border: 0; background: none; box-shadow: none;
}
.ganzhou-layer-tabs {
  display: grid; grid-template-columns: repeat(3, 30px); gap: 4px;
  max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px) scale(.92); transform-origin: top center;
  transition: max-height 220ms ease, opacity 160ms ease, transform 220ms ease, visibility 0s 220ms;
}
.ganzhou-layer-panel[data-expanded="true"] .ganzhou-layer-tabs {
  max-height: 38px; overflow: visible; opacity: 1; visibility: visible; pointer-events: auto;
  transform: none; transition-delay: 0s;
}
.ganzhou-layer-tab {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0; overflow: hidden;
  border: 1px solid #91a4bb5c; border-radius: 8px; background: #07111dc9; cursor: pointer;
  box-shadow: inset 0 1px #edf7ff22, 0 3px 7px #0007;
  opacity: .62; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ganzhou-layer-icon { display: block; width: 28px; height: 28px; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.ganzhou-layer-tab[data-layer="capitals"] .ganzhou-layer-icon { width: 13px; height: 18px; }
.ganzhou-layer-tab[aria-selected="true"] { opacity: 1; border-color: #fff9; box-shadow: inset 0 1px #fff4, 0 0 9px #fff4; }
.ganzhou-layer-tab[data-layer="red"][aria-selected="true"] { background: #501117d9; border-color: #ff7471cc; }
.ganzhou-layer-tab[data-layer="blue"][aria-selected="true"] { background: #0a2a5bd9; border-color: #60a5ffcc; }
.ganzhou-layer-tab[data-layer="capitals"][aria-selected="true"] { background: #32175bd9; border-color: #c484ffcc; }
.ganzhou-layer-tab:focus-visible { outline: 2px solid #9fdcff; outline-offset: 2px; }
body[data-red-gifts-visible="false"] #ganzhou-gift,
body[data-red-gifts-visible="false"] .ganzhou-star-effects,
body[data-blue-gifts-visible="false"] .map-gift-reveal,
body[data-capitals-visible="false"] .capital-marker-anchor,
body[data-capitals-visible="false"] .china-special-region-anchor {
  visibility: hidden !important; pointer-events: none !important;
}
.ganzhou-sky-toggle {
  display: block; width: 71px; height: 71px; padding: 0; border: 0; background: transparent;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}
.ganzhou-toggle-machine {
  position: relative; display: block; width: 71px; height: 71px;
  filter: drop-shadow(0 6px 7px #000b) drop-shadow(0 0 9px #f64a402d);
}
.ganzhou-toggle-frame {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
  transition: opacity 160ms ease;
}
.ganzhou-toggle-frame--on { opacity: 1; }
.ganzhou-toggle-frame--off { opacity: 0; }
.ganzhou-sky-toggle[aria-checked="false"] .ganzhou-toggle-frame--on { opacity: 0; }
.ganzhou-sky-toggle[aria-checked="false"] .ganzhou-toggle-frame--off { opacity: 1; }
.ganzhou-sky-toggle:focus-visible { outline: 2px solid #fb968e; outline-offset: 5px; border-radius: 12px; }
@keyframes ganzhou-star-spark {
  0%, 38%, 80%, 100% { opacity: .15; transform: scale(.45) rotate(0); }
  58% { opacity: 1; transform: scale(1.15) rotate(90deg); }
}
.ganzhou-overview {
  position: fixed; z-index: 9000; left: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom));
  padding: 9px 13px; border-radius: 22px; border: 1px solid #bbd9ed3a;
  color: #c4d7e5; background: #06111dc9; cursor: pointer; font: 11px "Microsoft YaHei", sans-serif;
  backdrop-filter: blur(8px); touch-action: manipulation; pointer-events: auto;
}
.ganzhou-overview span { margin-right: 5px; font-size: 16px; vertical-align: -1px; }
@keyframes ganzhou-sky-float { 50% { transform: translateY(-6px) rotate(1.5deg); } }
@keyframes ganzhou-sky-glow { 50% { opacity: .45; } }
@media (max-width: 600px) {
  .ganzhou-layer-panel { left: max(10px, env(safe-area-inset-left)); }
  .ganzhou-layer-tabs { grid-template-columns: 37.333px; gap: 4px; }
  .ganzhou-layer-panel[data-expanded="true"] .ganzhou-layer-tabs { max-height: 128px; }
  .ganzhou-layer-tab { width: 37.333px; height: 37.333px; padding: 0; border-radius: 9px; }
  .ganzhou-layer-icon { width: 37.333px; height: 37.333px; }
  .ganzhou-layer-tab[data-layer="red"] .ganzhou-layer-icon,
  .ganzhou-layer-tab[data-layer="blue"] .ganzhou-layer-icon { transform: translate(-1px, -1.33px); }
  .ganzhou-layer-tab[data-layer="capitals"] .ganzhou-layer-icon { width: 17.333px; height: 24px; }
  .ganzhou-sky-toggle { width: 59px; height: 59px; }
  .ganzhou-toggle-machine { width: 59px; height: 59px; }
  #ganzhou-gift { --product-width: 84px; --product-height: 110px; }
  .ganzhou-gift-trigger span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ganzhou-layer-tabs { transition: none; }
  .ganzhou-sky-slot { transition-duration: 100ms; }
  .ganzhou-collection-star::after { animation: none; opacity: .75; }
  .ganzhou-sky-product img, .ganzhou-sky-hint, .ganzhou-sky-halo { animation: none; }
  .ganzhou-sky-actions { transition-duration: 100ms; }
  .ganzhou-toggle-frame { transition-duration: 80ms; }
  .ganzhou-gift-art { transition: none; }
  #ganzhou-gift[data-state="ready"] .ganzhou-gift-view { animation: none; }
  #ganzhou-gift[data-state="ready"] .ganzhou-gift-art::before { animation: none; opacity: .42; transform: scale(.55); }
  #ganzhou-gift[data-state="loading-products"] .ganzhou-gift-art::after { animation-duration: 1.4s; }
}
