/* ============================================================
   LL123 幸运刮刮乐 舞台（.gg-*），配套 js/fun-guagua.js。
   配色：酒红横幅 + 金色标题，牌桌深莓色，刮奖票米白纸面；人物、奖品、银箔、票背是二次元生图（images/fun/gg/）。
   标题 / 数字用 LL Game GG（得意黑子集 assets/fonts/ll-game-gg.woff2，tools/minigame_art/game_font.py 生成）。
   ============================================================ */
@font-face { font-family: 'LL Game GG'; src: url(../assets/fonts/ll-game-gg.woff2) format('woff2'); font-display: swap; }

.fw-overlay[data-entry="LL123"] .fw-stage { height: auto; overflow: visible; }
@media (min-width: 761px) {
  .fw-overlay[data-entry="LL123"] .fw-entry { position: sticky; top: 0; }
}

/* 变量也给刮奖弹窗用（弹窗在工作区的弹窗层里，不在 .gg 里面） */
.gg, .fw-dialog.gg-dialog {
  --gg-wine: #7a1230; --gg-ink: #5b1a2b; --gg-font: 'LL Game GG', 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif;
}
.gg {
  container-type: inline-size;
  display: flex; flex-direction: column; gap: 14px; color: var(--gg-ink);
}
.gg svg { flex: none; }

/* ---------- 横幅 ---------- */
.gg-hero {
  position: relative; display: flex; align-items: center; min-height: 172px; padding: 20px 24px; overflow: hidden;
  border-radius: 20px; color: #fff;
  background: url(../images/fun/gg/hero.webp) 70% center / cover no-repeat, #6d0f2c;
  box-shadow: 0 16px 34px rgba(110, 14, 44, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.gg-hero::before {
  content: ''; position: absolute; inset: 6px; z-index: 3; border-radius: 15px; pointer-events: none;
  border: 1px solid rgba(255, 214, 140, 0.42); box-shadow: inset 0 0 0 3px rgba(122, 18, 48, 0.25);
}
.gg-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(74, 6, 26, 0.72) 0%, rgba(90, 10, 34, 0.35) 46%, transparent 70%);
}
.gg-hero-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 64%; }
.gg-eyebrow-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gg-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 3px; color: #ffcf8a; }
.gg-title {
  margin: 0; font-family: var(--gg-font); font-size: 42px; font-weight: 400; line-height: 1.08; letter-spacing: 2px;
  color: #ffd56b; background: linear-gradient(180deg, #fffbe6 8%, #ffe08a 42%, #f7b23b 78%, #e48a10 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #5e0a22) drop-shadow(0 3px 0 rgba(60, 4, 20, 0.6)) drop-shadow(0 0 14px rgba(255, 190, 90, 0.35));
}
.gg-tier { margin: 0; font-size: 14px; font-weight: 800; color: #ffe9c7; text-shadow: 0 1px 2px rgba(60, 0, 20, 0.5); }
.gg-goal {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; padding: 6px 12px; border-radius: 12px;
  background: rgba(46, 2, 16, 0.42); border: 1px solid rgba(255, 214, 140, 0.34); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.gg-goal span { font-size: 12px; font-weight: 700; color: #ffd9a8; }
.gg-goal b { font-family: var(--gg-font); font-size: 26px; font-weight: 400; line-height: 1; color: #ffe08a; text-shadow: 0 2px 0 #5e0a22; }
.gg-goal small { font-size: 12px; font-weight: 700; color: #ffc3d5; }
.gg-badge {
  padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.5;
  color: #ffe7c8; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 220, 170, 0.36);
}
.gg-badge.hot { color: #6a3500; border-color: #fff0b8; background: linear-gradient(135deg, #fff0a8, #ffc23d); animation: gg-glow 1.6s ease-in-out infinite; }
.gg-badge.ok { color: #7a1230; border-color: #fff; background: linear-gradient(135deg, #ffffff, #ffd7e5); }
@keyframes gg-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 90, 0.55); } 50% { box-shadow: 0 0 0 6px rgba(255, 210, 90, 0); } }
.gg-hero-girl {
  position: absolute; right: 4%; bottom: -44px; z-index: 1; height: 122%; width: auto; pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(60, 0, 20, 0.4));
}
.gg.ready .gg-hero-girl { animation: gg-bob 2.4s ease-in-out infinite; }
.gg.done .gg-hero-girl { bottom: -30px; }
@keyframes gg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) rotate(-1deg); } }

/* ---------- 奖项 ---------- */
.gg-prizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gg-prize {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; overflow: hidden;
  border-radius: 16px; border: 1px solid #f1d7a2;
  background: linear-gradient(180deg, #fffaf1, #fff0d9);
  box-shadow: 0 6px 14px rgba(150, 90, 20, 0.08), inset 0 1px 0 #fff;
}
.gg-prize img { flex: none; width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(150, 90, 20, 0.25)); }
.gg-prize div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gg-prize b { font-family: var(--gg-font); font-size: 19px; font-weight: 400; line-height: 1.15; color: var(--gg-wine); }
.gg-prize strong { font-size: 12px; font-weight: 800; color: #c27200; white-space: nowrap; }
.gg-prize small { font-size: 11px; color: #a37766; white-space: nowrap; }
.gg-prize.p1 { border-color: #f0c056; background: linear-gradient(160deg, #fff7d9, #ffe3a3); box-shadow: 0 8px 18px rgba(230, 160, 30, 0.22), inset 0 1px 0 #fff; }
.gg-prize.p1::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%) -150% 0 / 60% 100% no-repeat;
  animation: gg-sheen 3.6s ease-in-out infinite;
}
.gg-prize.out { filter: grayscale(0.75); opacity: 0.55; box-shadow: none; }
.gg-prize.out::after { animation: none; }
.gg-prize.out::before {
  content: '已刮出'; position: absolute; top: 6px; right: -2px; z-index: 1; padding: 1px 8px; transform: rotate(12deg);
  font-size: 11px; font-weight: 900; color: #c2133f; border: 1.5px solid #c2133f; border-radius: 6px; background: rgba(255, 255, 255, 0.7);
}
@keyframes gg-sheen { 0%, 55% { background-position: -150% 0; } 100% { background-position: 250% 0; } }

/* ---------- 牌桌 ---------- */
.gg-deck {
  position: relative; padding: 14px 16px 16px; border-radius: 20px; color: #ffe9d2;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 120, 170, 0.16), transparent 60%),
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(255, 220, 160, 0.5) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 82% 18%, rgba(255, 220, 160, 0.45) 50%, transparent 52%),
    radial-gradient(1px 1px at 64% 86%, rgba(255, 220, 160, 0.45) 50%, transparent 52%),
    linear-gradient(180deg, #46142f 0%, #2c0c20 100%);
  border: 1px solid rgba(255, 200, 140, 0.22);
  box-shadow: 0 14px 30px rgba(44, 12, 32, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.gg-deck-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gg-deck-head h4 { display: flex; align-items: baseline; gap: 8px; margin: 0; font-family: var(--gg-font); font-size: 20px; font-weight: 400; color: #ffe08a; }
.gg-deck-head h4 svg { align-self: center; width: 18px; height: 18px; color: #ffc6d8; }
.gg-deck-head h4 small { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 12px; font-weight: 700; color: #f2bfd0; }
.gg-chance { margin-left: auto; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #f6d4df; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 200, 220, 0.25); white-space: nowrap; }
.gg-chance.hot { color: #6a3500; border-color: #fff0b8; background: linear-gradient(135deg, #fff0a8, #ffc23d); animation: gg-glow 1.6s ease-in-out infinite; }
.gg-chance.ok { color: #7a1230; background: #fff; border-color: #fff; }
.gg-deck-head .mg-sound { flex: none; }

.gg-cards { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; perspective: 900px; }
.gg-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; aspect-ratio: 2 / 3; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 10px; color: inherit; font: inherit;
}
.gg-card.back {
  background: url(../images/fun/gg/back.webp) center / cover no-repeat, #a3173f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 220, 150, 0.35);
}
div.gg-card.back { filter: saturate(0.7) brightness(0.72); }
.gg-no {
  position: absolute; top: 7%; left: 0; right: 0; text-align: center; font-family: var(--gg-font); font-size: 11px; line-height: 1;
  color: #ffe2a0; text-shadow: 0 1px 2px rgba(60, 0, 20, 0.7);
}
.gg-cta {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  font-family: var(--gg-font); font-size: 12px; line-height: 1.2; color: #6a3500; background: linear-gradient(180deg, #fff0a8, #ffc23d);
  box-shadow: 0 2px 6px rgba(60, 0, 20, 0.45);
}
.gg-card.ready { cursor: pointer; transition: transform 0.18s cubic-bezier(.2, .8, .2, 1), box-shadow 0.18s; animation: gg-float 2.8s ease-in-out infinite; }
.gg-card.ready:nth-child(2n) { animation-delay: -0.7s; }
.gg-card.ready:nth-child(3n) { animation-delay: -1.4s; }
.gg-card.ready:nth-child(5n) { animation-delay: -2.1s; }
.gg-card.ready::after, .gg-card.half::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, transparent 66%) -160% 0 / 70% 100% no-repeat;
  animation: gg-sheen 2.8s ease-in-out infinite;
}
.gg-card.ready:hover, .gg-card.ready:focus-visible {
  animation: none; transform: translateY(-7px) scale(1.05);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45), 0 0 0 2px #ffd56b, 0 0 22px rgba(255, 200, 80, 0.55);
  outline: none;
}
.gg-card.ready:active { transform: translateY(-2px) scale(0.98); }
.gg-card.half {
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)), url(../images/fun/gg/foil.webp) center / cover no-repeat, #d9d6e0;
  box-shadow: 0 0 0 2px #ff7aa8, 0 0 18px rgba(255, 122, 168, 0.6);
  animation: gg-ring 1.4s ease-in-out infinite;
}
.gg-card.half .gg-no { color: #6b5a78; text-shadow: 0 1px 0 #fff; }
div.gg-card.half { cursor: default; }
@keyframes gg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes gg-ring { 0%, 100% { box-shadow: 0 0 0 2px #ff7aa8, 0 0 12px rgba(255, 122, 168, 0.45); } 50% { box-shadow: 0 0 0 3px #ffb3cb, 0 0 22px rgba(255, 122, 168, 0.75); } }
.gg-card.open {
  border: 1px solid #f1c97a; background: radial-gradient(circle at 50% 38%, #fffdf6 0%, #fff1d6 60%, #ffe1ad 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.gg-card.open .gg-no { color: #b0866a; text-shadow: none; }
.gg-card.open img { width: 62%; height: auto; aspect-ratio: 1; object-fit: contain; margin-top: 10%; filter: drop-shadow(0 2px 3px rgba(150, 90, 20, 0.3)); }
.gg-card.open b { font-family: var(--gg-font); font-size: 13px; font-weight: 400; line-height: 1.1; color: var(--gg-wine); }
.gg-card.open em { font-style: normal; font-size: 11px; font-weight: 800; color: #c27200; }
.gg-card.open.p1 { border-color: #ffd04a; background: radial-gradient(circle at 50% 38%, #fffbe0 0%, #ffe48f 62%, #f5b43a 100%); box-shadow: 0 0 0 1px #fff2b5, 0 0 18px rgba(255, 200, 60, 0.7); }
.gg-card.open.p2 { border-color: #f5c860; background: radial-gradient(circle at 50% 38%, #fffaf0 0%, #ffeec2 62%, #ffd27a 100%); }
.gg-card.open.p4 { background: radial-gradient(circle at 50% 38%, #fff8f6 0%, #ffe9e4 70%, #ffd2cb 100%); border-color: #f3b7b0; }
.gg-card.fresh { animation: gg-flip 0.7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes gg-flip { 0% { transform: rotateY(90deg) scale(0.9); } 60% { transform: rotateY(-8deg) scale(1.06); } 100% { transform: none; } }

.gg-tip { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #f6cfd9; }
.gg-tip svg { color: #ffd56b; }
.gg.ready .gg-tip { color: #fff1c9; font-weight: 700; }
.gg-history { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; padding: 10px 0 0; list-style: none; border-top: 1px dashed rgba(255, 200, 140, 0.25); }
.gg-history li { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: #f2c9d6; }
.gg-history b { font-family: var(--gg-font); font-weight: 400; font-size: 14px; color: #ffe08a; white-space: nowrap; }
.gg-history em { margin-left: auto; font-style: normal; font-weight: 800; color: #ffd56b; white-space: nowrap; }

/* ---------- 刮奖弹窗 ---------- */
.fw-dialog-layer:has(.gg-dialog) { background: rgba(36, 6, 22, 0.58); }
.fw-dialog.gg-dialog {
  width: min(430px, 100%); max-height: 94%; padding: 14px 16px 16px; color: #ffe9d2;
  border: 1px solid rgba(255, 200, 140, 0.3);
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 120, 170, 0.22), transparent 60%), linear-gradient(180deg, #4a1532 0%, #2a0b1f 100%);
  box-shadow: 0 30px 80px rgba(20, 0, 10, 0.55);
  animation: gg-in 0.32s cubic-bezier(.2, .9, .3, 1.2) both;
}
.fw-dialog.gg-dialog .fw-section-title { margin-bottom: 10px; }
.fw-dialog.gg-dialog .fw-section-title h3 { font-size: 15px; color: #ffe08a; }
.fw-dialog.gg-dialog .fw-section-title .fw-button.icon { color: #ffe9d2; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
@keyframes gg-in { from { opacity: 0; transform: translateY(18px) scale(0.94); } to { opacity: 1; transform: none; } }

.gg-scratch { filter: drop-shadow(0 14px 24px rgba(10, 0, 6, 0.45)); }
.gg-ticket {
  position: relative; padding: 12px; border-radius: 16px; color: var(--gg-ink);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.9), transparent 55%),
    repeating-radial-gradient(circle at 50% 115%, rgba(214, 160, 90, 0.1) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #fffaf0, #fde7c4);
  box-shadow: inset 0 0 0 2px #e8b960, inset 0 0 0 5px #fff7e6, inset 0 0 0 6px rgba(200, 140, 40, 0.45);
  -webkit-mask: radial-gradient(circle 8px at 0 62%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 62%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 8px at 0 62%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 62%, transparent 97%, #000) right / 51% 100% no-repeat;
}
.gg-ticket-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 10px; padding: 10px 14px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(90, 8, 34, 0.85), rgba(90, 8, 34, 0.35)), url(../images/fun/gg/hero.webp) 75% center / cover no-repeat, #7a1230;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 140, 0.5);
}
.gg-ticket-head span { grid-column: 1 / -1; font-size: 10px; font-weight: 800; letter-spacing: 3px; color: #ffcf8a; }
.gg-ticket-head b {
  font-family: var(--gg-font); font-size: 30px; font-weight: 400; line-height: 1.1; letter-spacing: 1px;
  background: linear-gradient(180deg, #fffbe6 8%, #ffe08a 45%, #f0a020 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #5e0a22);
}
.gg-ticket-head em { font-style: normal; font-family: var(--gg-font); font-size: 14px; color: #ffd9e4; white-space: nowrap; padding-bottom: 4px; }

.gg-zone {
  position: relative; margin-top: 12px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 50% 45%, #fffbe8 0%, #ffecbd 45%, #f8cd7c 100%);
  box-shadow: inset 0 0 0 2px #e9b65c, inset 0 4px 14px rgba(150, 90, 20, 0.25);
}
.gg-scratch.p1 .gg-zone { background: radial-gradient(circle at 50% 45%, #fffbe0 0%, #ffe07a 50%, #f2a72a 100%); }
.gg-scratch.p4 .gg-zone { background: radial-gradient(circle at 50% 45%, #fffaf6 0%, #ffe6df 55%, #ffc9bf 100%); }
.gg-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; visibility: hidden; }
.gg-zone.armed .gg-under { visibility: visible; }
.gg-rays {
  position: absolute; left: 50%; top: 44%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.55) 0 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 62%); mask: radial-gradient(circle, #000 0%, transparent 62%);
  opacity: 0.55; animation: gg-spin 18s linear infinite;
}
@keyframes gg-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.gg-under img { position: relative; width: auto; height: 48%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(150, 80, 10, 0.35)); }
.gg-under b {
  position: relative; font-family: var(--gg-font); font-size: 34px; font-weight: 400; line-height: 1.1; letter-spacing: 2px; color: #c2133f;
  text-shadow: 0 2px 0 #fff, 0 -1px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 4px 8px rgba(160, 20, 60, 0.3);
}
.gg-under span { position: relative; padding: 2px 12px; border-radius: 999px; font-size: 14px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #ff6f9c, #c2133f); box-shadow: 0 3px 8px rgba(160, 20, 60, 0.35); }
.gg-zone.revealed .gg-under img { animation: gg-pop 0.7s cubic-bezier(.2, 1.6, .4, 1) both; }
.gg-zone.revealed .gg-under b { animation: gg-pop 0.7s 0.08s cubic-bezier(.2, 1.6, .4, 1) both; }
.gg-zone.revealed .gg-under span { animation: gg-pop 0.6s 0.16s cubic-bezier(.2, 1.6, .4, 1) both; }
.gg-zone.revealed .gg-rays { opacity: 0.9; animation-duration: 7s; }
@keyframes gg-pop { 0% { transform: scale(0.55); } 60% { transform: scale(1.12); } 100% { transform: none; } }

.gg-foil { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; touch-action: none; cursor: pointer; transition: opacity 0.5s ease; }
.gg-zone.revealed .gg-foil { opacity: 0; pointer-events: none; }
.gg-zone-label {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.gg-zone-label b { font-family: var(--gg-font); font-size: 36px; font-weight: 400; letter-spacing: 4px; color: rgba(104, 92, 124, 0.78); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 -1px 0 rgba(70, 60, 90, 0.25); }
.gg-zone-label small { font-size: 10px; font-weight: 800; letter-spacing: 4px; color: rgba(104, 92, 124, 0.6); }
.gg-zone.touched .gg-zone-label { opacity: 0; transform: scale(1.06); }
.gg-zone:not(.armed) .gg-zone-label { opacity: 0; }
.gg-flake { position: absolute; z-index: 3; width: 6px; height: 4px; border-radius: 1px; pointer-events: none; background: linear-gradient(135deg, #f2eff6, #b9b3c6); }

.gg-ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.gg-hint { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.5; color: #9a6a52; }
.gg-hint svg { color: #d58a2a; }
.gg-scratch.revealed .gg-ticket-foot { display: none; }
.fw-overlay .gg-auto { flex: none; color: #8a4b00; background: #fff; border-color: #e8b960; }
.fw-overlay .gg-auto:not(:disabled):hover { background: #fff6e0; }

.gg-result { display: none; }
.gg-result.show {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; margin-top: 14px; padding: 12px 14px 14px 6px;
  border-radius: 16px; border: 1px solid rgba(255, 214, 140, 0.36);
  background: linear-gradient(135deg, rgba(255, 215, 120, 0.2), rgba(255, 120, 170, 0.16));
  animation: gg-in 0.4s cubic-bezier(.2, .9, .3, 1.2) both;
}
.gg-result-girl { width: auto; height: 124px; margin: -50px 0 -8px; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
.gg-result.show .gg-result-girl { animation: gg-hop 0.6s 0.1s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes gg-hop { 0% { transform: translateY(30px) scale(0.8); opacity: 0; } 100% { transform: none; opacity: 1; } }
.gg-result-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gg-result-text b {
  font-family: var(--gg-font); font-size: 28px; font-weight: 400; line-height: 1.1;
  background: linear-gradient(180deg, #fffbe6 10%, #ffe08a 50%, #f5a623 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #5e0a22);
}
.gg-result-text span { font-size: 14px; font-weight: 800; color: #fff1dc; }
.gg-result-text small { font-size: 12px; color: #ffc3d5; }
.fw-overlay .gg-result .fw-button { grid-column: 1 / -1; justify-content: center; margin: 6px 0 0 8px; color: #6a3500; border-color: #fff0b8; background: linear-gradient(135deg, #fff0a8, #ffc23d); box-shadow: 0 8px 18px rgba(245, 166, 35, 0.35); }

/* ---------- 窄屏（舞台本身变窄时，按容器宽度收） ---------- */
@container (max-width: 640px) {
  .gg-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .gg-card.open b { font-size: 12px; }
}
@container (max-width: 560px) {
  .gg-hero { min-height: 150px; padding: 16px; }
  .gg-hero-text { max-width: 66%; }
  .gg-title { font-size: 34px; letter-spacing: 1px; }
  .gg-tier { font-size: 12px; }
  .gg-tier-x { display: none; }
  .gg-goal { padding: 5px 10px; }
  .gg-goal b { font-size: 22px; }
  .gg-hero-girl { right: -2%; height: 116%; bottom: -40px; }
  .gg-prizes { gap: 6px; }
  .gg-prize { flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 9px; text-align: center; }
  .gg-prize div { align-items: center; }
  .gg-prize img { width: 42px; height: 42px; }
  .gg-prize b { font-size: 16px; }
  .gg-prize strong { font-size: 11px; }
  .gg-prize small { font-size: 10px; }
  .gg-prize.out::before { top: 4px; right: -4px; font-size: 10px; padding: 0 6px; }
  .gg-deck { padding: 12px; }
  .gg-deck-head { flex-wrap: wrap; gap: 8px; }
  .gg-deck-head h4 { font-size: 18px; }
  .gg-deck-head .mg-sound span { display: none; }
  .gg-cta { font-size: 11px; padding: 2px 6px; }
}
@media (max-width: 420px) {
  .fw-dialog.gg-dialog { padding: 12px; }
  .gg-ticket { padding: 10px; }
  .gg-ticket-head b { font-size: 26px; }
  .gg-under b { font-size: 28px; }
  .gg-zone-label b { font-size: 30px; }
  .gg-ticket-foot { flex-wrap: wrap; }
  .gg-ticket-foot .gg-auto { margin-left: auto; }
  .gg-result-girl { height: 100px; margin-top: -38px; }
  .gg-result-text b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .gg *, .gg-scratch * { animation: none !important; transition: none !important; }
  .fw-dialog.gg-dialog, .gg-result.show { animation: none; }
}
