/* ═══════════ 奖品图 + 转盘（v5 精修版）═══════════ */

/* ── 格子 ─────────────────────── */
.cell {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform .13s ease, box-shadow .13s ease, background .13s ease;
}

/* 图片容器：四周留 4px 呼吸空间，图片完整显示不裁切 */
.cell-img {
  position: absolute;
  inset: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cell-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: transform .13s ease;
}

/* 高亮（抽奖中） */
.cell.active {
  background: #fffdf5;
  border-color: rgba(255,201,60,.95);
  box-shadow: 0 0 0 2.5px var(--gold), 0 6px 20px rgba(255,150,0,.5);
  transform: scale(1.045);
  z-index: 2;
}
.cell.active .cell-img img { transform: scale(1.08); }

/* 中奖格 */
.cell.win {
  background: #fff8e1;
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 0 0 3px #fff, 0 0 28px rgba(255,201,60,.95), 0 8px 28px rgba(255,150,0,.6);
  animation: winPop .55s cubic-bezier(.24,1.5,.4,1) 3;
}
@keyframes winPop {
  0%, 100% { transform: scale(1.045); }
  50% { transform: scale(1.13); }
}
.cell.win .cell-img img { transform: scale(1.05); }

/* 谢谢惠顾格：视觉弱化 */
.cell[data-pos="5"] { background: #faf9f6; }
.cell[data-pos="5"] .cell-img { inset: 2px; }

/* ── 中心按钮 ─────────────────── */
.cell.center {
  background: radial-gradient(circle at 50% 32%, #ff5c88, #c9184a 72%);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255,61,113,.55), inset 0 -3px 0 rgba(0,0,0,.28),
    inset 0 2px 0 rgba(255,255,255,.2);
  gap: 1px;
  padding: 4px;
}
.cell.center::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.3) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: btnShine 2.8s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 55% { transform: translateX(-130%); }
  90%, 100% { transform: translateX(130%); }
}
.cell.center:active { transform: scale(.94); }
.cell.center .c-icon { font-size: 20px; line-height: 1; position: relative; z-index: 1; }
.cell.center .c-text {
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .06em;
  position: relative;
  z-index: 1;
}
.cell.center:disabled { opacity: .55; }
.cell.center:disabled::after { display: none; }

/* 中心按钮外圈脉冲 */
.c-ring {
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  border: 2px solid rgba(255,201,60,.85);
  animation: ringPulse 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ringPulse {
  0%, 100% { opacity: .3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.cell.center:disabled .c-ring { animation: none; opacity: .2; }

/* ── 奖品说明网格 ─────────────── */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.prize-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px;
}
.pc-img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-name {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.22;
}
.pc-odds {
  font-size: 9px;
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── 结果抽屉里的奖品图 ───────── */
.prize-emoji {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(0,0,0,.4), 0 0 0 2.5px rgba(255,201,60,.6);
  animation: prizePop .5s cubic-bezier(.24,1.5,.4,1);
  padding: 5px;
}
@keyframes prizePop {
  from { transform: scale(.6) rotate(-8deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.prize-emoji img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 已抽过：压暗 */
.prize-box.dim { filter: grayscale(.65); opacity: .72; }

/* 未中奖（谢谢惠顾） */
.prize-box.lose {
  background: linear-gradient(135deg, rgba(160,160,180,.14), rgba(120,120,140,.08));
  border-color: rgba(180,180,200,.28);
}
.prize-box.lose::after { animation: none; opacity: 0; }
.prize-box.lose .prize-name { color: #c9c3d8; }

/* 未中奖的次按钮 */
.cta-ghost {
  background: rgba(255,255,255,.08) !important;
  color: var(--text-2) !important;
  box-shadow: none !important;
}
.cta-ghost::before { display: none; }

/* ── 免费标签 ─────────────────── */
.play-note {
  margin: 11px 0 0;
  font-size: 10.5px;
  color: var(--text-3);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}
.note-free {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  color: #052e1f;
  background: linear-gradient(95deg, #34d399, #6ee7b7);
  padding: 3px 8px;
  border-radius: 4px;
}
.play-note b { color: var(--text-2); }
/* ══ 重点奖品格强化 ══ */

/* 角标：贴在格子顶部，压住图片上缘 */
.cell-featured {
  position: relative;
  overflow: hidden;
}

.cell-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* 图片下移，给角标让出空间 */
.cell-featured .cell-img {
  transform: translateY(7px);
}

.cell-featured .cell-img img {
  transform: scale(0.84);
}

/* 手机特写：图已裁成上半截，铺满整格 */
.cell-smartphone .cell-img {
  transform: translateY(7px) scale(1);
}

.cell-smartphone .cell-img img {
  transform: scale(1.22);
  object-fit: cover;
  object-position: top center;
}

/* ── iPhone 18 Duo：金色 ── */
.cell-smartphone .cell-badge {
  background: linear-gradient(135deg, #ffcf4d 0%, #ff9e2c 55%, #ff7a18 100%);
  box-shadow: 0 1px 6px rgba(255, 158, 44, 0.55);
}

.cell-smartphone {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 196, 80, 0.26) 0%, rgba(255, 158, 44, 0.08) 45%, transparent 72%),
    var(--card-2, #1c1830);
  border: 1px solid rgba(255, 178, 56, 0.5) !important;
  box-shadow:
    inset 0 0 12px rgba(255, 178, 56, 0.2),
    0 0 9px rgba(255, 158, 44, 0.32) !important;
}

/* 金色呼吸光（慢速，不抢转盘动画） */
.cell-smartphone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255, 214, 120, 0.35), transparent 62%);
  animation: gold-breathe 2.8s ease-in-out infinite;
}

@keyframes gold-breathe {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.85; }
}

/* ── 10GB 流量：青色 ── */
.cell-kuota .cell-badge {
  background: linear-gradient(135deg, #4be0ff 0%, #22b8e6 55%, #0f8fc4 100%);
  box-shadow: 0 1px 6px rgba(45, 190, 235, 0.55);
}

.cell-kuota {
  background:
    radial-gradient(circle at 50% 42%, rgba(75, 224, 255, 0.22) 0%, rgba(34, 184, 230, 0.07) 45%, transparent 72%),
    var(--card-2, #1c1830);
  border: 1px solid rgba(75, 210, 240, 0.45) !important;
  box-shadow:
    inset 0 0 12px rgba(75, 210, 240, 0.18),
    0 0 9px rgba(45, 190, 235, 0.28) !important;
}

/* 高亮态优先于重点色 */
.cell.active {
  border-color: var(--pink) !important;
  box-shadow:
    inset 0 0 18px rgba(255, 60, 140, 0.35),
    0 0 16px rgba(255, 60, 140, 0.5) !important;
  background: linear-gradient(160deg, #ff3f8e 0%, #ff6aae 100%) !important;
}

.cell.active .cell-badge {
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: none;
  text-shadow: none;
}

.cell.active .cell-img img {
  filter: brightness(1.08);
}
