/* =========================================================
   JYC 奶酪保险箱 · 盲盒开箱  (v3.9)
   ---------------------------------------------------------
   1) .jvault      纯 CSS 黄铜奶酪保险箱（图鉴区块 + 特效层共用）
   2) .gacha-zone  图鉴弹窗底部的盲盒区块
   3) .gc-fx       全屏开箱特效：蓄力 → 炸裂 → 翻卡 → 收下
   4) .gcc         卡牌 3D 翻转 + 稀有度光环
   ========================================================= */

/* ---------------------------------------------------------
   1. 黄铜保险箱（纯 CSS，零素材）
   --------------------------------------------------------- */
.jvault {
  position: relative;
  width: var(--vw, 132px);
  height: calc(var(--vw, 132px) * .88);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .62));
}
.jvault i { position: absolute; display: block; }

.jv-body {
  left: 0; right: 0; top: 21%; bottom: 0;
  border-radius: 12px 12px 9px 9px;
  background:
    linear-gradient(158deg, #6d4a13 0%, #c79433 20%, #f7dc95 38%, #cfa040 50%,
                    #9a6f22 66%, #5d3d0e 86%, #35230a 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 244, 205, .55),
    inset 0 -8px 14px rgba(0, 0, 0, .55),
    inset 6px 0 12px rgba(0, 0, 0, .3),
    inset -6px 0 12px rgba(0, 0, 0, .3);
}
/* 铆钉：用 box-shadow 打四角 */
.jv-body::after {
  content: ""; position: absolute; inset: 9% 8%;
  border-radius: 7px;
  border: 1px solid rgba(58, 36, 8, .55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 234, 178, .22),
    0 0 0 0 transparent;
}
.jv-lid {
  left: -4%; right: -4%; top: 2%; height: 24%;
  border-radius: 10px 10px 5px 5px;
  transform-origin: 50% 92%;
  background:
    linear-gradient(180deg, #f2d189 0%, #c99a37 36%, #8a6119 72%, #4c320c 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 248, 218, .7),
    0 3px 8px rgba(0, 0, 0, .5);
}
/* 箱缝透光 */
.jv-seam {
  left: 5%; right: 5%; top: 25.5%; height: 5%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--tone, #ffd77a) 22%, #fffbe8 50%, var(--tone, #ffd77a) 78%, transparent);
  filter: blur(2.4px);
  opacity: .5;
}
/* 转盘锁 */
.jv-dial {
  left: 50%; top: 55%; width: 30%; aspect-ratio: 1;
  margin-left: -15%; margin-top: -15%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff4d0 0%, #e0b352 24%, #96691d 58%, #4a300c 100%);
  box-shadow:
    inset 0 0 0 2px rgba(46, 29, 6, .6),
    inset 0 2px 4px rgba(255, 245, 210, .5),
    0 3px 7px rgba(0, 0, 0, .55);
}
.jv-dial::after {
  content: ""; position: absolute; inset: 30%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 44%, #3a2408 44% 56%, transparent 56%),
              linear-gradient(0deg, transparent 44%, #3a2408 44% 56%, transparent 56%);
  transform: rotate(24deg);
}
.jv-shine {
  left: 6%; top: 26%; width: 40%; height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 250, 226, .34), transparent 68%);
  pointer-events: none;
}

/* ---------------------------------------------------------
   2. 图鉴底部盲盒区块
   --------------------------------------------------------- */
.gacha-zone {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed rgba(245, 196, 81, .32);
}
.gz-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 800; color: #ffe6ab;
  letter-spacing: .02em;
}
.gz-head i { color: var(--gold, #f5c451); }
.gz-lore {
  margin: 7px 0 15px; font-size: 12.5px; line-height: 1.7; color: #bda6e6;
}

.gz-main {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px; align-items: center;
  padding: 16px 16px 15px;
  border-radius: 16px;
  border: 1px solid rgba(245, 196, 81, .3);
  background:
    radial-gradient(ellipse 70% 120% at 12% 50%, rgba(245, 196, 81, .13), transparent 70%),
    linear-gradient(180deg, rgba(40, 24, 62, .96), rgba(13, 9, 22, .99));
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, .12), 0 12px 30px rgba(0, 0, 0, .48);
}
.gz-boxwrap { display: flex; justify-content: center; }
.gz-boxwrap .jvault { animation: jvBreath 3.4s ease-in-out infinite; cursor: default; }
@keyframes jvBreath {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-5px) rotate(-.7deg); }
}
.gz-boxwrap .jv-seam { animation: jvSeam 2.2s ease-in-out infinite; }
@keyframes jvSeam { 0%, 100% { opacity: .35; } 50% { opacity: .95; } }

.gz-prog { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.gz-plabel, .gz-pity { font-size: 12px; color: #c9b6ee; }
.gz-plabel b, .gz-pity b { color: var(--gold, #f5c451); margin-left: 6px; font-family: Rajdhani, sans-serif; font-size: 14px; }
.gz-bar {
  display: block; height: 7px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6);
}
.gz-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #a855f7, #f5c451 70%, #fff3cd);
  box-shadow: 0 0 10px rgba(245, 196, 81, .7);
  transition: width .5s ease;
}

.gz-btns { display: flex; flex-wrap: wrap; gap: 9px; }
.gz-btn {
  flex: 1 1 132px; min-width: 122px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 10px 8px;
  border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(245, 196, 81, .4);
  background: linear-gradient(180deg, rgba(90, 62, 16, .55), rgba(30, 19, 6, .8));
  color: #ffe6ab;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.gz-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(245, 196, 81, .3); filter: brightness(1.12); }
.gz-btn:active { transform: translateY(0); }
.gz-btn b { font-size: 13px; font-weight: 800; }
.gz-btn small { font-size: 12px; font-family: Rajdhani, sans-serif; color: #ffd77a; }
.gz-btn em { font-size: 10px; font-style: normal; color: #9be7ff; letter-spacing: .02em; }
.gz-btn.is-main {
  border-color: rgba(255, 220, 130, .8);
  background: linear-gradient(180deg, #b8862a, #6b4610);
  box-shadow: inset 0 1px 0 rgba(255, 248, 222, .55), 0 6px 16px rgba(245, 196, 81, .28);
}
.gz-btn.is-gem {
  border-color: rgba(168, 85, 247, .6);
  background: linear-gradient(180deg, rgba(120, 62, 190, .6), rgba(34, 14, 58, .85));
  color: #eddcff;
}
.gz-btn.is-gem small { color: #d9b6ff; }

.gz-fair {
  margin: 11px 0 0; font-size: 11px; line-height: 1.65; color: #9d8fbe;
  display: flex; gap: 7px; align-items: flex-start;
}
.gz-fair i { color: #6ee7a8; margin-top: 2px; }

.gz-sub {
  margin: 20px 0 10px; font-size: 13.5px; font-weight: 800; color: #ffe6ab;
  display: flex; align-items: baseline;
}
.gz-sub small { font-size: 11px; font-weight: 500; color: #9d8fbe; }

/* 概率公示 */
.gz-rates { display: flex; flex-wrap: wrap; gap: 8px; }
.gzr {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--glow) 55%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--glow) 15%, transparent), rgba(10, 7, 18, .8));
}
.gzr b { font-family: Rajdhani, sans-serif; font-size: 13px; font-weight: 700; color: var(--glow); }
.gzr i { font-style: normal; font-size: 11.5px; color: #d6c8f2; }
.gzr em { font-style: normal; font-family: Rajdhani, sans-serif; font-size: 13px; color: #fff; }

/* 藏品册 */
.gz-album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.gza {
  position: relative; margin: 0;
  border-radius: 11px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #0b0714;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gza img { display: block; width: 100%; aspect-ratio: 9 / 13; object-fit: cover; }
.gza:not(.owned) img { filter: grayscale(1) brightness(.2) contrast(1.35); }
.gza.owned { border-color: color-mix(in srgb, var(--glow) 62%, transparent); }
.gza.owned:hover { transform: translateY(-4px); box-shadow: 0 12px 24px color-mix(in srgb, var(--glow) 45%, transparent); }
.gza-lock {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  font-size: 18px; color: rgba(255, 255, 255, .3);
}
.gza-t {
  position: absolute; top: 5px; left: 5px;
  padding: 1px 6px; border-radius: 6px;
  font-family: Rajdhani, sans-serif; font-size: 10px; font-weight: 700;
  color: #12080a; background: var(--glow);
}
.gza:not(.owned) .gza-t { background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .5); }
.gza-star {
  position: absolute; top: 5px; right: 5px;
  padding: 1px 5px; border-radius: 6px;
  font-size: 10px; font-weight: 700; color: #ffe6ab;
  background: rgba(0, 0, 0, .62);
}
.gza figcaption {
  padding: 5px 6px 6px; text-align: center;
  font-size: 10.5px; line-height: 1.3; color: #d6c8f2;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55));
}
.gza:not(.owned) figcaption { color: #6b5f85; }

/* ---------------------------------------------------------
   3. 全屏开箱特效层
   --------------------------------------------------------- */
.gc-fx {
  position: fixed; inset: 0; z-index: 85;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at 50% 48%, rgba(24, 12, 44, .92), rgba(2, 2, 6, .97) 68%);
  backdrop-filter: blur(9px);
  animation: fadeIn .22s ease;
  overflow: hidden;
}
.gc-fx.ph-out { animation: fadeOut .24s ease forwards; }
@keyframes fadeOut { to { opacity: 0; } }

/* 背景旋光 */
.gcf-sky {
  position: absolute; inset: -35%;
  background: conic-gradient(from 0deg,
    transparent 0deg, color-mix(in srgb, var(--tone) 26%, transparent) 16deg, transparent 34deg,
    transparent 90deg, color-mix(in srgb, var(--tone) 20%, transparent) 106deg, transparent 124deg,
    transparent 180deg, color-mix(in srgb, var(--tone) 26%, transparent) 196deg, transparent 214deg,
    transparent 270deg, color-mix(in srgb, var(--tone) 20%, transparent) 286deg, transparent 304deg);
  opacity: 0; pointer-events: none;
  animation: gcfSky 14s linear infinite;
  transition: opacity .6s ease;
}
@keyframes gcfSky { to { transform: rotate(360deg); } }
.gc-fx.ph-burst .gcf-sky, .gc-fx.ph-cards .gcf-sky { opacity: .55; }
.gc-fx[data-top="N"] .gcf-sky, .gc-fx[data-top="R"] .gcf-sky { opacity: .22 !important; }

/* 蓄力粒子：向箱体汇聚 */
.gcf-motes { position: absolute; inset: 0; pointer-events: none; }
.gcf-motes i {
  position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--tone, #ffd77a);
  box-shadow: 0 0 9px var(--tone, #ffd77a);
  opacity: 0;
}
.gc-fx.ph-charge .gcf-motes i { animation: gcfMote .9s ease-in infinite; }
@keyframes gcfMote {
  0%   { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) scale(.4); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(24px) scale(1.25); }
}
.gcf-motes i:nth-child(1)  { --a: 12deg;  --r: 300px; animation-delay: 0s;    }
.gcf-motes i:nth-child(2)  { --a: 48deg;  --r: 240px; animation-delay: .07s;  }
.gcf-motes i:nth-child(3)  { --a: 84deg;  --r: 330px; animation-delay: .15s;  }
.gcf-motes i:nth-child(4)  { --a: 120deg; --r: 260px; animation-delay: .22s;  }
.gcf-motes i:nth-child(5)  { --a: 156deg; --r: 310px; animation-delay: .3s;   }
.gcf-motes i:nth-child(6)  { --a: 192deg; --r: 250px; animation-delay: .37s;  }
.gcf-motes i:nth-child(7)  { --a: 228deg; --r: 340px; animation-delay: .45s;  }
.gcf-motes i:nth-child(8)  { --a: 264deg; --r: 270px; animation-delay: .52s;  }
.gcf-motes i:nth-child(9)  { --a: 300deg; --r: 320px; animation-delay: .6s;   }
.gcf-motes i:nth-child(10) { --a: 336deg; --r: 230px; animation-delay: .05s;  }
.gcf-motes i:nth-child(11) { --a: 30deg;  --r: 370px; animation-delay: .18s;  }
.gcf-motes i:nth-child(12) { --a: 150deg; --r: 380px; animation-delay: .34s;  }
.gcf-motes i:nth-child(13) { --a: 240deg; --r: 360px; animation-delay: .48s;  }
.gcf-motes i:nth-child(14) { --a: 330deg; --r: 390px; animation-delay: .62s;  }

/* 冲击波圆环 */
.gcf-rings { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.gcf-rings i {
  position: absolute; left: 0; top: 0; width: 80px; height: 80px;
  margin: -40px 0 0 -40px; border-radius: 50%;
  border: 2px solid var(--tone, #ffd77a);
  opacity: 0;
}
.gc-fx.ph-burst .gcf-rings i { animation: gcfRing .78s cubic-bezier(.15, .75, .3, 1) forwards; }
.gc-fx.ph-burst .gcf-rings i:nth-child(2) { animation-delay: .11s; }
.gc-fx.ph-burst .gcf-rings i:nth-child(3) { animation-delay: .22s; }
@keyframes gcfRing {
  0%   { opacity: .95; transform: scale(.25); border-width: 4px; }
  100% { opacity: 0;   transform: scale(9);   border-width: 1px; }
}

/* 闪屏 */
.gcf-flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #fff 0%, color-mix(in srgb, var(--tone) 80%, #fff) 26%, transparent 62%);
}
.gc-fx.ph-burst .gcf-flash { animation: gcfFlash .5s ease-out forwards; }
@keyframes gcfFlash { 0% { opacity: 0; } 14% { opacity: .92; } 100% { opacity: 0; } }

/* 箱体舞台 */
.gcf-stage { position: relative; display: flex; align-items: center; justify-content: center; }
.gc-fx.ph-charge .gcf-vault { animation: gcfShake .9s cubic-bezier(.36, .07, .19, .97) forwards; }
@keyframes gcfShake {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  20%  { transform: translate(-3px, 1px) rotate(-1.6deg) scale(1.02); }
  40%  { transform: translate(4px, -2px) rotate(2deg) scale(1.04); }
  60%  { transform: translate(-6px, 2px) rotate(-2.8deg) scale(1.07); }
  80%  { transform: translate(7px, -3px) rotate(3.2deg) scale(1.1); }
  100% { transform: translate(0, -6px) rotate(0deg) scale(1.16); }
}
.gc-fx.ph-charge .gcf-vault .jv-seam { animation: gcfSeam .9s ease-in forwards; }
@keyframes gcfSeam {
  0%   { opacity: .35; filter: blur(2.4px); }
  100% { opacity: 1; filter: blur(7px) brightness(2.2); }
}
.gc-fx.ph-burst .gcf-vault { animation: gcfPop .42s ease-out forwards; }
@keyframes gcfPop {
  0%   { transform: scale(1.16); opacity: 1; }
  100% { transform: scale(2.1); opacity: 0; }
}
.gc-fx.ph-burst .gcf-vault .jv-lid { animation: gcfLid .42s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes gcfLid {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-140px) rotate(-38deg); opacity: 0; }
}
.gc-fx.ph-cards .gcf-stage, .gc-fx.ph-done .gcf-stage, .gc-fx.ph-skip .gcf-stage { display: none; }

/* ---------------------------------------------------------
   4. 卡牌翻转
   --------------------------------------------------------- */
.gcf-cards {
  display: none;
  position: relative; z-index: 3;
  gap: 12px;
  max-width: 800px; width: 100%;
  justify-content: center;
  perspective: 1400px;
}
.gc-fx.ph-cards .gcf-cards, .gc-fx.ph-skip .gcf-cards { display: grid; }
.gcf-cards[data-n="1"]  { grid-template-columns: 250px; }
.gcf-cards[data-n="10"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.gcc { position: relative; }
.gcc-inner {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  animation: gccFlip .64s var(--d, 0ms) cubic-bezier(.18, .9, .28, 1.04) both;
}
@keyframes gccFlip {
  0%   { opacity: 0; transform: rotateY(180deg) scale(.52) translateY(34px); }
  20%  { opacity: 1; }
  72%  { transform: rotateY(0deg) scale(1.08) translateY(-8px); }
  100% { opacity: 1; transform: rotateY(0deg) scale(1) translateY(0); }
}
.gcc-back, .gcc-face {
  border-radius: 13px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.gcc-face {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--glow) 70%, transparent);
  background: linear-gradient(180deg, rgba(34, 20, 54, .96), rgba(10, 7, 18, .99));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .6),
              0 0 22px color-mix(in srgb, var(--glow) 42%, transparent);
}
/* 骨架底：图片未解码时也是一块有质感的暗木板，而不是空白 */
.gcc-face img, .gza img {
  background:
    linear-gradient(150deg, rgba(90, 62, 16, .5), rgba(24, 14, 38, .9) 60%),
    repeating-linear-gradient(115deg, rgba(255, 236, 190, .05) 0 3px, transparent 3px 8px);
}
.gcc-face img { display: block; width: 100%; aspect-ratio: 9 / 13; object-fit: cover; }

/* 卡背：黄铜压花 */
.gcc-back {
  position: absolute; inset: 0;
  transform: rotateY(180deg);
  background: linear-gradient(158deg, #5d3f10, #b8862a 26%, #f0d089 44%, #a9781f 62%, #4c320c);
  border: 1px solid rgba(255, 232, 176, .5);
}
.gcc-back i { position: absolute; display: block; }
.gcc-back .jv-body { inset: 7%; top: 7%; border-radius: 9px; background: none;
  box-shadow: inset 0 0 0 1px rgba(58, 36, 8, .6), inset 0 0 0 3px rgba(255, 240, 200, .16); }
.gcc-back .jv-lid { left: 12%; right: 12%; top: 13%; height: 3px; border-radius: 2px;
  background: rgba(58, 36, 8, .5); box-shadow: none; }
.gcc-back .jv-seam { left: 12%; right: 12%; top: auto; bottom: 13%; height: 3px; border-radius: 2px;
  background: rgba(58, 36, 8, .5); filter: none; opacity: 1; }
.gcc-back .jv-dial { left: 50%; top: 50%; width: 44%; margin: 0; transform: translate(-50%, -50%); }
.gcc-back .jv-shine { left: 8%; top: 10%; width: 52%; height: 34%; }

.gcc-tier {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 2px 8px; border-radius: 7px;
  font-family: Rajdhani, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: #14090c; background: var(--glow);
  box-shadow: 0 2px 9px color-mix(in srgb, var(--glow) 65%, transparent);
}
.gcc-flag {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 2px 7px; border-radius: 7px;
  font-family: Rajdhani, sans-serif; font-size: 10.5px; font-weight: 700;
}
.gcc-flag.is-new { color: #06210f; background: linear-gradient(100deg, #b9f6ca, #35d07f); }
.gcc-flag.is-dupe { color: #ffe6ab; background: rgba(0, 0, 0, .68); border: 1px solid rgba(245, 196, 81, .45); }

.gcc-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 16px 9px 8px;
  background: linear-gradient(180deg, transparent, rgba(4, 2, 10, .92) 46%);
  display: flex; flex-direction: column; gap: 2px;
}
.gcc-cap b { font-size: 12.5px; color: #fff4d8; line-height: 1.25; }
.gcc-cap small { font-size: 10px; color: #bda6e6; line-height: 1.3; }
.gcf-cards[data-n="1"] .gcc-cap b { font-size: 16px; }
.gcf-cards[data-n="1"] .gcc-cap small { font-size: 12px; }

/* 扫光 */
.gcc-shine {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(104deg, transparent 32%, rgba(255, 255, 255, .55) 48%, transparent 62%);
  transform: translateX(-130%);
  animation: gccShine .85s calc(var(--d, 0ms) + 480ms) ease-out both;
}
@keyframes gccShine { to { transform: translateX(130%); } }

/* 稀有度光环（传说 / 神话） */
.gcc-halo {
  position: absolute; inset: -6px; z-index: -1; border-radius: 17px; opacity: 0;
  background: conic-gradient(from 0deg, transparent, var(--glow), transparent 42%,
                             transparent 58%, var(--glow), transparent);
  filter: blur(7px);
  animation: gcfSky 3.2s linear infinite;
}
.gcc.t-SSR .gcc-halo, .gcc.t-UR .gcc-halo { opacity: .95; }
/* 神话光柱 */
.gcc-beam {
  position: absolute; left: 50%; top: -46%; width: 62%; height: 190%;
  margin-left: -31%; z-index: -2; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--glow) 65%, transparent) 42%, transparent);
  filter: blur(14px);
}
.gcc.t-UR .gcc-beam { opacity: 1; animation: gcfBeam 2.1s ease-in-out infinite; }
@keyframes gcfBeam { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------------------------------------------------------
   5. 页脚 / 跳过
   --------------------------------------------------------- */
.gcf-foot {
  position: relative; z-index: 4;
  margin-top: 20px; text-align: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.gc-fx.ph-done .gcf-foot, .gc-fx.ph-skip .gcf-foot { opacity: 1; transform: none; pointer-events: auto; }
.gcf-sum { display: block; margin-bottom: 11px; font-size: 12.5px; color: #d6c8f2; }
.gcf-sum b { font-family: Rajdhani, sans-serif; font-size: 15px; color: #fff; }
.gcf-sum b.gold { color: var(--gold, #f5c451); }
.gcf-btns { display: flex; gap: 10px; justify-content: center; }
.gcf-skip {
  position: absolute; top: 16px; right: 18px; z-index: 5;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font-size: 12px; color: #cbb9ee;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(10, 6, 20, .6);
}
.gcf-skip:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.gc-fx.ph-done .gcf-skip, .gc-fx.ph-skip .gcf-skip { display: none; }

/* 跳过：不依赖动画时序，直接钉死终态
   （教训：靠 animation-duration/delay 覆盖来"快进"不可靠 ——
     元素从 display:none 变为可见时动画会重新起算，改时长并不会把它推到终点。
     所以这里直接 animation:none + transform:none，终态由布局决定而非时间决定。） */
.gc-fx.ph-skip .gcc-inner {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}
.gc-fx.ph-skip .gcc-shine { animation: none !important; display: none; }
.gc-fx.ph-skip .gcf-foot { transition: none !important; }

/* ---------------------------------------------------------
   6. 响应式 + 降低动效偏好
   --------------------------------------------------------- */
@media (max-width: 720px) {
  .gz-main { grid-template-columns: 1fr; }
  .gz-boxwrap { margin-bottom: 4px; }
  .gcf-cards[data-n="10"] { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; }
  .gcf-cards[data-n="1"] { grid-template-columns: min(72vw, 250px); }
  .gz-album { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
  .gcc-cap { padding: 12px 6px 6px; }
  .gcc-cap b { font-size: 11px; }
  .gcc-cap small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gz-boxwrap .jvault, .gz-boxwrap .jv-seam,
  .gcf-sky, .gcc-halo, .gcc-beam, .gcf-motes i { animation: none !important; }
  .gcc-inner { animation-duration: .2s !important; }
  .gcc-shine { display: none; }
}
