/* ---------- Đu quay may mắn ---------- */
.fw-wrap { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.fw-feed { display: flex; gap: 8px; overflow: hidden; height: 30px; mask-image: linear-gradient(90deg, #000 80%, transparent); }
.fw-feed span { flex: none; padding: 5px 12px; font-size: 13px; color: var(--muted); background: rgba(255, 42, 61, .1); border: 1px solid var(--line-red); border-radius: 999px; white-space: nowrap; }
.fw-feed b { color: #fff; }

.fw-stage { position: relative; width: 100%; aspect-ratio: 1; }
.fw-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fw-stage.closing .fw-hub b { color: var(--red); animation: fwBeat 1s infinite; }
@keyframes fwBeat { 50% { transform: scale(1.15); } }

.fw-slot {
  position: absolute; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: pointer;
  transition: transform .15s, filter .2s, opacity .2s; z-index: 2;
}
.fw-ball {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 32%), radial-gradient(circle at 50% 60%, #3a0a12, #0b0b0f 72%);
  border: 2px solid rgba(255, 42, 61, .75);
  box-shadow: 0 0 14px rgba(255, 42, 61, .45), inset 0 -6px 14px rgba(0, 0, 0, .6);
}
.fw-ball img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.fw-emo { font-size: clamp(26px, 7.5vw, 50px); line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.fw-mult {
  position: absolute; left: 50%; bottom: -9%; transform: translateX(-50%); padding: 2px 12px; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: clamp(12px, 2.6vw, 16px); color: #fff;
  background: linear-gradient(180deg, #ff3b4c, #a50c1c); border: 1px solid #ffb3ba; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.fw-mine {
  position: absolute; right: -6%; top: -4%; min-width: 26px; padding: 2px 7px; border-radius: 999px; font-size: clamp(10px, 2.2vw, 12px); font-weight: 700;
  color: #1a1000; background: linear-gradient(180deg, #ffe58a, #ffb81a); border: 1px solid #fff4c2; box-shadow: 0 0 10px rgba(255, 194, 26, .7);
}
.fw-miss {
  position: absolute; left: 50%; top: -24%; transform: translateX(-50%); padding: 2px 10px; white-space: nowrap; font-size: clamp(10px, 2.2vw, 12px);
  color: #fff; background: rgba(0, 0, 0, .75); border: 1px solid var(--line-red); border-radius: 6px;
}
.fw-slot:not(:disabled):hover { transform: translate(-50%, -50%) scale(1.06); }
.fw-slot.pop { animation: fwPop .35s; }
@keyframes fwPop { 40% { transform: translate(-50%, -50%) scale(1.14); } }
.fw-slot.on .fw-ball, .fw-slot.win .fw-ball { border-color: #fff4c2; box-shadow: 0 0 0 3px #ffc21a, 0 0 34px #ffc21a, inset 0 -6px 14px rgba(0, 0, 0, .4); }
.fw-slot.on { transform: translate(-50%, -50%) scale(1.08); }
.fw-slot.win { transform: translate(-50%, -50%) scale(1.12); animation: fwWin 1s infinite; }
@keyframes fwWin { 50% { filter: brightness(1.35); } }
.fw-slot.dim { opacity: .45; filter: grayscale(.5); }
.fw-stage.closed .fw-slot { cursor: default; }

.fw-hub {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  background: radial-gradient(circle at 40% 30%, #2d2d36, #09090c 70%);
  box-shadow: 0 0 0 4px var(--red), 0 0 0 7px #000, 0 0 30px rgba(255, 42, 61, .8), inset 0 2px 0 rgba(255, 255, 255, .15);
}
.fw-phase { font-size: clamp(11px, 2.6vw, 15px); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fw-hub b { font-family: var(--display); font-size: clamp(34px, 10vw, 64px); line-height: 1; color: #fff; }
.fw-hub small { font-size: clamp(10px, 2.2vw, 12px); color: var(--muted); }
.fw-res img { width: clamp(40px, 11vw, 70px); height: clamp(40px, 11vw, 70px); object-fit: contain; }
.fw-res .fw-emo { font-size: clamp(36px, 10vw, 62px); }

.fw-bar { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.fw-bal { flex: 1 1 140px; padding: 10px 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.fw-bal span { display: block; font-size: 12px; color: var(--muted); }
.fw-bal b { font-family: var(--display); font-size: 20px; color: #ffcf3f; }
.fw-bar .btn { flex: 0 0 auto; }

.fw-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 8px; }
.fw-chip {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; cursor: pointer; color: var(--muted);
  font-family: var(--display); font-weight: 700; font-size: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.fw-chip i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; color: #1a1000;
  background: radial-gradient(circle at 35% 30%, #fff2a8, #ffc21a 55%, #b86200); box-shadow: 0 0 10px rgba(255, 194, 26, .4); }
.fw-chip.on { color: #fff; border-color: var(--red); background: rgba(255, 42, 61, .18); box-shadow: 0 0 14px rgba(255, 42, 61, .4); }

.fw-history { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); overflow: hidden; }
.fw-history > span { flex: none; font-family: var(--display); color: #fff; text-transform: uppercase; }
.fw-history > div { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.fw-h { position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; }
.fw-h img { width: 32px; height: 32px; object-fit: contain; }
.fw-h .fw-emo { font-size: 26px; }
.fw-h.new::after { content: 'Mới'; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); font-size: 9px; padding: 0 4px; color: #fff; background: var(--red); border-radius: 4px; }
.fw-note { text-align: center; margin: 0; }
@media (max-width: 560px) { .fw-bar .btn { flex: 1 1 100%; } .fw-chip { font-size: 14px; padding: 8px 4px; } .fw-chip i { width: 26px; height: 26px; } }

