.claw-ov { z-index: 10; background: rgba(15, 8, 30, .9); }
#claw-win h2 { font-size: 30px; opacity: 1; color: #ffcc33; z-index: 1; }
#claw-win p, #claw-win button { z-index: 1; }
.cw-burst { position: absolute; left: 50%; top: 40%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.10) 0 10deg, transparent 10deg 20deg); animation: cw-spin 8s linear infinite; pointer-events: none; }
.cw-burst.r1 { background: repeating-conic-gradient(rgba(95,227,255,.18) 0 10deg, transparent 10deg 20deg); }
.cw-burst.r2 { background: repeating-conic-gradient(rgba(255,204,51,.28) 0 10deg, transparent 10deg 20deg); }
@keyframes cw-spin { to { transform: rotate(360deg); } }
.cw-card { position: relative; z-index: 1; width: 210px; padding: 14px 14px 12px; border-radius: 22px; background: #fff; color: #222;
  display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 8px 0 rgba(0,0,0,.25); animation: cw-pop .5s cubic-bezier(.2,1.6,.4,1); }
.cw-card img { width: 160px; height: 160px; }
.cw-card b { font-size: 24px; }
.cw-card span { font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: #e9e6f0; color: #555; }
.cw-card.r1 span { background: #5fe3ff; color: #063a48; }
.cw-card.r2 { background: linear-gradient(135deg, #fff6c9, #ffd23f 45%, #fff3b0 55%, #ffb02e); }
.cw-card.r2 span { background: #2a1846; color: #ffd23f; }
.cw-card.r2::after, .cd-item.r2.got::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 45%, transparent 60%); background-size: 250% 100%; animation: shine 2.2s linear infinite; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes cw-pop { from { transform: scale(.3) rotate(-8deg); opacity: 0; } }

#claw-dex { justify-content: flex-start; padding: 14px 12px 0; gap: 8px; }
.cd-head { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.cd-head h2 { font-size: 22px; opacity: 1; }
.cd-head button { min-width: 0 !important; padding: 8px 16px !important; font-size: 15px !important; }
.cd-tabs { display: flex; gap: 8px; width: 100%; }
.cd-tabs button { flex: 1; min-width: 0 !important; padding: 8px !important; font-size: 15px !important; background: #2b2340 !important; color: #fff !important; box-shadow: none !important; }
.cd-tabs button.on { background: #ffcc33 !important; color: #2a1f00 !important; }
.cd-body { width: 100%; flex: 1; overflow-y: auto; padding-bottom: 16px; text-align: left; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.cd-body h3 { font-size: 15px; margin: 10px 2px 6px; opacity: .8; }
.cd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cd-item { position: relative; border-radius: 14px; background: rgba(255,255,255,.08); padding: 6px 4px 6px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.cd-item img { width: 76px; height: 76px; }
.cd-item.no img { filter: brightness(0) invert(1); opacity: .16; }
.cd-item b { font-size: 13px; }
.cd-item.no b { opacity: .45; }
.cd-item i { position: absolute; top: 5px; right: 7px; font-style: normal; font-size: 12px; font-weight: 800; color: #ffcc33; }
.cd-item em { position: absolute; top: 5px; left: 6px; font-style: normal; font-size: 10px; font-weight: 800; background: #ff5fa8; color: #fff; padding: 1px 6px; border-radius: 999px; }
.cd-item.r1.got { background: rgba(95,227,255,.22); }
.cd-item.r2.got { background: linear-gradient(135deg, rgba(255,210,63,.55), rgba(255,176,46,.35)); }
.cd-note { font-size: 13px !important; opacity: .6 !important; text-align: center; margin-top: 12px; }
#cd-board p { text-align: center; margin: 12px 0; }
#cd-board input { display: block; margin: 8px auto; font-size: 18px; padding: 10px 14px; border-radius: 12px; border: 0; width: 240px; text-align: center; }
#cd-board button { display: block; margin: 8px auto; }
.cb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cb-table th { font-size: 12px; opacity: .6; text-align: left; padding: 4px 6px; }
.cb-table td { padding: 8px 6px; border-top: 1px solid rgba(255,255,255,.08); }
.cb-table tr.me td { color: #ffcc33; font-weight: 800; }

/* 收藏櫃：每台一層木頭展示架 */
.cd-body h3 { display: flex; justify-content: space-between; align-items: baseline; }
.cd-body h3 span { font-size: 13px; color: #ffcc33; opacity: 1; }
.cd-shelf { gap: 0 !important; background: linear-gradient(#3a2618, #2a1b10); border-radius: 12px; padding: 6px 6px 0; box-shadow: inset 0 6px 14px rgba(0,0,0,.45); }
.cd-shelf .cd-item { border-radius: 0; background: transparent !important; padding: 10px 2px 14px; cursor: pointer;
  border-bottom: 9px solid #9a6a3e; box-shadow: 0 3px 0 #5e3d20; margin-bottom: 8px; }
.cd-shelf .cd-item img { filter: drop-shadow(0 6px 3px rgba(0,0,0,.5)); position: relative; z-index: 1; }
.cd-shelf .cd-item.no img { filter: brightness(0) invert(1) opacity(.16); }
.cd-shelf .cd-item img.cd-back { position: absolute; top: 4px; left: 50%; margin-left: -30px; width: 62px; height: 62px; z-index: 0; opacity: .75; transform: rotate(-12deg); }
.cd-shelf .cd-item b { color: #fff; font-size: 12px; margin-top: 2px; }
.cd-shelf .cd-item.r1.got { background: radial-gradient(ellipse at 50% 15%, rgba(95,227,255,.35), transparent 70%) !important; }
.cd-shelf .cd-item.r2.got { background: radial-gradient(ellipse at 50% 10%, rgba(255,220,120,.6), transparent 72%) !important; } /* 稀有的有聚光燈 */
/* 點開的詳細 */
.cd-detail { position: absolute; inset: 0; background: #1b1626; z-index: 5; padding: 14px 18px; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cd-detail.hidden { display: none; }
.cd-ret { align-self: flex-start; min-width: 0 !important; padding: 8px 14px !important; font-size: 14px !important; }
.cd-pol { position: relative; background: #fbf8f1; padding: 10px 10px 34px; border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.5); transform: rotate(-2.5deg); margin: 6px 0 4px; }
.cd-pol img { display: block; width: 240px; height: 180px; object-fit: cover; background: #222; }
.cd-pol .cd-ph { width: 240px; height: 180px; background: #e9e4f5; display: flex; align-items: center; justify-content: center; }
.cd-pol .cd-ph img.cd-solo { width: 150px; height: 150px; object-fit: contain; background: none; }
.cd-pol.no .cd-ph img.cd-solo { filter: brightness(0) opacity(.28); }
.cd-pol img.cd-stk { position: absolute; right: -16px; top: -18px; width: 78px; height: 78px; object-fit: contain; background: none; filter: drop-shadow(0 4px 4px rgba(0,0,0,.4)); transform: rotate(8deg); }
.cd-pol p { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; color: #555; font-size: 14px; font-weight: 700; }
.cd-detail h3 { font-size: 22px; margin: 4px 0 0; }
.cd-rare { font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: #e9e6f0; color: #555; }
.cd-rare.r1 { background: #5fe3ff; color: #063a48; }
.cd-rare.r2 { background: #ffd23f; color: #2a1846; }
.cd-detail ul { list-style: none; padding: 0; margin: 6px 0 0; width: 100%; max-width: 300px; }
.cd-detail li { padding: 9px 4px; border-top: 1px solid rgba(255,255,255,.08); font-size: 15px; text-align: left; }
.cd-detail li.ok { color: #7cff9b; }

.cw-praise { margin: -4px 0 4px !important; font-size: 16px !important; font-weight: 800; color: #ffd23f; opacity: 1 !important; }

/* 開箱：盒子抖一抖、蓋子彈開、公仔卡片跳出來 */
.ub { position: relative; z-index: 2; height: 0; width: 0; }
.ub-box { position: absolute; left: -80px; top: 40px; width: 160px; height: 140px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1d6fd6, #36b4ff); box-shadow: 0 10px 0 rgba(0,0,0,.3), inset 0 -10px 0 rgba(0,0,0,.15);
  animation: ub-shake 1.05s ease-in-out, ub-gone .35s 1.15s forwards; }
.ub-box::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; margin-left: -11px; background: #ffd23f; }
.ub-box b { position: relative; color: #fff; font-size: 26px; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.ub-lid { position: absolute; left: -8px; right: -8px; top: -18px; height: 30px; border-radius: 8px; background: #ffd23f; box-shadow: 0 4px 0 rgba(0,0,0,.2);
  animation: ub-lid .5s 1s forwards cubic-bezier(.3,.6,.4,1); }
@keyframes ub-shake { 0%, 100% { transform: rotate(0); } 10%, 30%, 50%, 70%, 90% { transform: rotate(-6deg) translateY(-3px); } 20%, 40%, 60%, 80% { transform: rotate(6deg); } }
@keyframes ub-lid { to { transform: translate(60px, -160px) rotate(70deg); opacity: 0; } }
@keyframes ub-gone { to { transform: scale(.6) translateY(30px); opacity: 0; } }
.cw-card.late { animation: cw-pop .6s 1.25s both cubic-bezier(.2,1.6,.4,1); }
.cw-card.late img { animation: ub-spin .9s 1.3s both ease-out; }
@keyframes ub-spin { from { transform: rotateY(-540deg) scale(.4); } }
