.mpi { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.nav-a .mpi { width: 20px; height: 20px; }

.nfx { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(#120b14, #120b14) padding-box, linear-gradient(120deg, #f28c28, #ff4fa3, #f28c28) border-box; border: 2px solid transparent; box-shadow: 0 0 14px rgba(242, 140, 40, .45), 0 0 34px rgba(255, 79, 163, .18), inset 0 0 18px rgba(242, 140, 40, .15); transition: box-shadow .2s, transform .2s; text-align: left; }
.nfx:hover { box-shadow: 0 0 20px rgba(242, 140, 40, .7), 0 0 46px rgba(255, 79, 163, .3), inset 0 0 22px rgba(242, 140, 40, .25); transform: translateY(-2px); }
.nfxorb { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a1a10, #0d0a10 70%); box-shadow: 0 0 0 2px #f28c28, 0 0 14px rgba(242, 140, 40, .65), inset 0 0 12px rgba(242, 140, 40, .35); }
.nfxfox { width: 40px; height: 42px; filter: drop-shadow(0 0 4px rgba(242, 140, 40, .8)); transition: transform .25s; }
.nfx:hover .nfxfox { transform: rotate(-8deg) scale(1.06); }
.nfxtx { display: flex; flex-direction: column; line-height: 1.1; }
.nfxtx small { font-size: 11px; color: #f7c99a; letter-spacing: .06em; }
.nfxtx b { font-size: 20px; font-weight: 900; letter-spacing: .16em; color: #fff; text-shadow: 0 0 6px #f28c28, 0 0 14px #f28c28, 0 0 26px #ff4fa3; }
.nfxtx em { font-style: normal; font-size: 12px; color: #ff9fcf; }
.about .by { margin-top: 18px; }
.set-nova { max-width: 820px; display: flex; justify-content: flex-end; margin-top: 18px; }

.mp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
.mp-bal { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: radial-gradient(circle at 0% 0%, rgba(140, 107, 255, .35), transparent 60%), var(--panel); }
.mp-bal > div:nth-child(2) { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.mp-bal b { font-size: 34px; font-weight: 900; line-height: 1.1; }
.mp-orb { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(140, 107, 255, .45), transparent 70%); flex: none; animation: mpFloat 3s ease-in-out infinite; }
.mp-orb .mpi { width: 54px; height: 54px; filter: drop-shadow(0 6px 18px rgba(140, 107, 255, .7)); }
@keyframes mpFloat { 50% { transform: translateY(-5px) rotate(6deg); } }
.mp-ex { display: flex; flex-direction: column; gap: 12px; }
.mp-ex-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mp-ex-h b { font-size: 17px; }
.mp-ex-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mp-ex-row .amt { flex: 1; min-width: 160px; }
.mp-ex-row .amt input { text-align: center; }
.mp-ex-row .amt > button:first-child { border-left: 0; border-right: 1px solid var(--line); }
.mp-q { display: flex; gap: 6px; }
.mp-q .chip { height: 46px; padding: 0 14px; border-radius: var(--r1); }
.mp-cost { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: var(--r1); background: var(--bg2); border: 1px dashed var(--line); }
.mp-cost .money { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; }
.gift-break { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(255, 203, 82, .14), transparent 60%), var(--panel); }
.gb-i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #ffe08a, #f5b02e); color: #3a2300; flex: none; }
.gb-i .ic { width: 26px; height: 26px; }
.gb-t { display: flex; flex-direction: column; min-width: 180px; flex: 1; }
.gb-t span { font-size: 13px; }
.gb-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gb-f > span { display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-weight: 800; }
.gb-f small { font-size: 11px; color: var(--muted); font-weight: 600; font-family: var(--font, inherit); }
.gb-f i { font-style: normal; color: var(--dim); font-weight: 800; }
.gb-f .gb-tot { background: linear-gradient(135deg, #ffe08a, #f5b02e); color: #3a2300; border: 0; }
.gb-f .gb-tot small { color: #6b4a00; }
.up-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.upc { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r3); background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.upc:hover { transform: translateY(-2px); border-color: var(--violet); }
.upc.max { border-color: var(--gold); }
.upc-i { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #1a1030; flex: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.upc-i .ic { width: 26px; height: 26px; }
.upc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.upc-t > span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.upc-fx { display: flex; align-items: center; gap: 6px; font-weight: 800; margin-top: 4px; }
.upc-fx i .ic { width: 14px; height: 14px; color: var(--dim); }
.upc-lv { display: flex; align-items: center; gap: 10px; }
.upc-lv .mini-bar { margin: 0; flex: 1; }
.upc-lv small { white-space: nowrap; }
.upc .btn { min-width: 104px; padding: 0 14px; flex: none; }
.mp-promo { display: flex; align-items: center; gap: 16px; margin-top: 16px; cursor: pointer; flex-wrap: wrap; background: linear-gradient(135deg, rgba(140, 107, 255, .25), rgba(58, 216, 255, .08)); border-color: rgba(140, 107, 255, .4); }
.mp-promo > div:nth-child(2) { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.mp-promo .mp-orb { width: 56px; height: 56px; }
.mp-promo .mp-orb .mpi { width: 40px; height: 40px; }

.lb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lb-join, .lb-me { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lb-j-i { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; flex: none; }
.lb-j-i .ic { width: 28px; height: 28px; }
.lb-j-t { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.lb-j-f { display: flex; gap: 10px; flex-wrap: wrap; }
.lb-j-f .amt { width: 220px; }
.lbErr { flex-basis: 100%; min-height: 0; }
.lbErr:empty { display: none; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; flex: none; }
.av.big { width: 54px; height: 54px; }
.av.big .ic { width: 26px; height: 26px; }
.lb-me { background: radial-gradient(circle at 0% 50%, rgba(140, 107, 255, .3), transparent 60%), var(--panel); border-color: rgba(140, 107, 255, .45); }
.lb-me-t { flex: 1; min-width: 120px; display: flex; flex-direction: column; }
.lb-me-t b { font-size: 20px; }
.lb-me-r { font-size: 30px; font-weight: 900; color: var(--violet2); }
.lb-me-p { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; }
.lb-me-p .mpi { width: 22px; height: 22px; }
.lb-note { margin: -12px 0 18px; font-size: 13px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; max-width: 760px; margin: 10px auto 24px; }
.pd { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; animation: pdIn .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.pd1 { animation-delay: .15s; } .pd3 { animation-delay: .3s; }
@keyframes pdIn { from { opacity: 0; transform: translateY(30px); } }
.pd .av { width: 58px; height: 58px; font-size: 22px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--pc, var(--line)); }
.pd1 .av { width: 74px; height: 74px; font-size: 28px; }
.pd b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.pd > .num { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); }
.pd-b { width: 100%; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: rgba(255, 255, 255, .9); font-family: var(--num); }
.pd1 { --pc: #ffcb52; } .pd2 { --pc: #c9d3e6; } .pd3 { --pc: #d08b5b; }
.pd1 .pd-b { height: 150px; background: linear-gradient(180deg, #ffe08a, #f5b02e); color: #6b4a00; box-shadow: 0 10px 40px rgba(255, 203, 82, .35); }
.pd2 .pd-b { height: 110px; background: linear-gradient(180deg, #e4ebf7, #9aa7c2); color: #3c4660; }
.pd3 .pd-b { height: 84px; background: linear-gradient(180deg, #f0b48a, #b06a3c); color: #4a2410; }
.pd.empty .pd-b { display: none; }
.lb-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 auto; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); animation: rowIn .35s both; }
.lb-row.me { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, var(--panel)); }
.lb-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-r { width: 46px; color: var(--muted); font-weight: 800; }
.lb-v svg { width: 26px; height: 26px; display: block; }
.lb-p { display: flex; align-items: center; gap: 6px; font-weight: 800; min-width: 90px; justify-content: flex-end; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--panel3); border-top-color: var(--violet); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mbox.guide { max-width: 760px; }
.gd-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 12px; margin-bottom: 8px; }
.gd-tab { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 30px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; white-space: nowrap; color: var(--muted); transition: background .15s, color .15s, border-color .15s; flex: none; }
.gd-tab .tg { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.gd-tab .tg .ic { width: 15px; height: 15px; color: #fff; }
.gd-tab:hover { color: var(--text); }
.gd-tab.on { color: var(--text); border-color: var(--violet); background: color-mix(in srgb, var(--violet) 16%, var(--panel)); }
.gd { display: flex; flex-direction: column; gap: 16px; }
.gd-hero { position: relative; display: flex; align-items: center; gap: 22px; padding: 22px; border-radius: var(--r3); color: #fff; overflow: hidden; isolation: isolate; }
.gd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, rgba(10, 8, 30, .55)); z-index: -1; }
.gd-art { width: 120px; height: 120px; flex: none; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); animation: mpFloat 4s ease-in-out infinite; }
.gd-art svg { width: 100%; height: 100%; }
.gd-ht { min-width: 0; flex: 1; }
.gd-ht h2 { margin: 6px 0 4px; font-size: 30px; font-weight: 900; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.gd-ht p { margin: 0 0 12px; opacity: .92; line-height: 1.5; }
.gd-k { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: rgba(0, 0, 0, .25); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gd-k .ic { width: 14px; height: 14px; }
.gd-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.gd-chips span { padding: 5px 12px; border-radius: 20px; background: rgba(255, 255, 255, .18); font-size: 13px; backdrop-filter: blur(4px); }
.gd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.gd-step { position: relative; padding: 16px; border-radius: var(--r2); background: var(--panel2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.gd-step i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--ga), var(--gb)); margin-bottom: 6px; box-shadow: 0 6px 16px color-mix(in srgb, var(--ga) 40%, transparent); }
.gd-step b { font-size: 15px; }
.gd-step span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.gd-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.gd-card { padding: 16px; border-radius: var(--r2); background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.gd-card h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; }
.gd-card h4 .ic { color: var(--ga); width: 18px; height: 18px; }
.gd-card.tips ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gd-card.tips li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.gd-card.tips li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, var(--ga), var(--gb)); transform: rotate(45deg); }
.gd-tbl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.gd-th, .gd-tr { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; }
.gd-th { color: var(--muted); font-weight: 700; font-size: 12px; }
.gd-tr { background: var(--bg2); }
.gd-tr b { font-weight: 700; }
.gd-tr .num { font-weight: 700; }
.gd-tbl.keno .gd-tr { grid-template-columns: none; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.gd-tbl.keno .gd-tr b { flex-basis: 100%; }
.gd-sym { display: inline-grid; width: 28px; height: 28px; }
.gd-sym svg { width: 100%; height: 100%; }
.gd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gd-row:last-child { border-bottom: 0; }
.gd-row b { width: 100%; font-size: 13px; }
.gd-pill { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--pc) 22%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 60%, transparent); }
.gd-pill i { font-style: normal; color: var(--muted); font-weight: 600; }
.gd-play { margin-top: 18px; max-width: 420px; }

.mbox.gift { max-width: 400px; overflow: visible; }
.gift-pop { position: relative; text-align: center; padding: 26px 26px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gp-x { position: absolute; top: 14px; right: 14px; }
.gift-pop h2 { margin: 4px 0 0; font-size: 26px; }
.gift-pop p { margin: 0; }
.gift-pop .gd-k { background: rgba(255, 203, 82, .16); color: var(--gold); }
.gp-box { position: relative; width: 150px; height: 150px; margin-top: -60px; }
.gp-box svg { position: relative; z-index: 2; width: 100%; height: 100%; filter: drop-shadow(0 14px 28px rgba(140, 107, 255, .55)); animation: gpWob 2.2s ease-in-out infinite; }
.gp-lid { transform-origin: 60px 50px; transition: transform .6s cubic-bezier(.2, .9, .3, 1.4); }
.gift-pop.open .gp-lid { transform: translate(18px, -34px) rotate(22deg); }
.gift-pop.open .gp-box svg { animation: none; }
.gp-rays { position: absolute; inset: -30px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 203, 82, .28) 0 10deg, transparent 10deg 30deg); animation: spin 14s linear infinite; mask: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); }
@keyframes gpWob { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-6deg); } 85% { transform: rotate(6deg); } 92% { transform: rotate(-3deg); } }
.gp-amt { display: flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 900; margin: 6px 0; color: var(--gold); }
.gp-amt .coin { width: 32px; height: 32px; }
.gp-st { justify-content: center; }
.gift-pop .btn { margin-top: 10px; }

.w-wrap { display: grid; place-items: center; padding: 4px 0; }
.w-box { position: relative; width: min(100%, 380px); aspect-ratio: 1; }
.w-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-ptr { position: absolute; left: 50%; top: -6px; width: 30px; height: 36px; transform: translateX(-50%); background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); z-index: 2; }
.w-ptr::after { content: ""; position: absolute; inset: 4px 6px 10px; background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.w-res { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.7); font-size: 34px; font-weight: 900; color: #fff; opacity: .35; transition: transform .35s cubic-bezier(.2, .9, .3, 1.5), opacity .2s, color .2s; text-shadow: 0 0 18px rgba(0, 0, 0, .5); }
.w-res.on { opacity: 1; transform: translate(-50%, -50%) scale(1); color: var(--pc); text-shadow: 0 0 22px var(--pc); }
.w-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.w-chip { display: flex; flex-direction: column; align-items: center; min-width: 72px; padding: 6px 12px; border-radius: 12px; background: var(--panel); border-bottom: 4px solid var(--pc); transition: transform .2s, box-shadow .2s; }
.w-chip b { font-size: 14px; }
.w-chip span { font-size: 11px; color: var(--muted); }
.w-chip.on { transform: translateY(-4px); box-shadow: 0 8px 20px color-mix(in srgb, var(--pc) 45%, transparent); }
.sel { height: 46px; border-radius: var(--r1); background: var(--bg2); border: 1px solid var(--line); padding: 0 12px; font-weight: 700; color: var(--text); width: 100%; }

.h-wrap { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 22px 0 8px; }
.h-card .pcard { width: 120px; height: 172px; }
.h-card .ck { font-size: 26px; }
.h-card .cs { font-size: 60px; }
.h-card { transition: transform .3s; }
.lost .h-card { animation: shake .45s; }
.lost .h-card .face { box-shadow: 0 0 0 4px var(--red), 0 10px 26px rgba(255, 77, 109, .45); }
.h-side { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); min-width: 74px; }
.h-side span .ic { width: 30px; height: 30px; }
.h-side.hi span { color: var(--mint); transform: rotate(-90deg); }
.h-side.lo span { color: var(--red); transform: rotate(90deg); }
.h-side b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.h-side small { font-weight: 800; color: var(--text); }
.h-mult { text-align: center; font-size: 28px; font-weight: 900; min-height: 36px; color: var(--muted); transition: color .2s, transform .2s; }
.h-mult.on { color: var(--mint); text-shadow: 0 0 18px rgba(46, 242, 166, .4); }
.h-trail { display: flex; gap: 8px; overflow-x: auto; padding: 8px 4px 6px; min-height: 92px; scrollbar-width: thin; }
.h-t { position: relative; flex: none; animation: pillIn .35s cubic-bezier(.2, .9, .3, 1.4); }
.h-t .pcard { width: 52px; height: 74px; }
.h-t .ck { font-size: 14px; top: 4px; left: 5px; }
.h-t .ck i { font-size: 11px; }
.h-t .ck.br, .h-t .cs { display: none; }
.h-t > i { position: absolute; z-index: 2; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel3); color: #fff; }
.h-t > i .ic { width: 14px; height: 14px; }
.h-t > i .ic.up { transform: rotate(-90deg); }
.h-t > i .ic.down { transform: rotate(90deg); }
.h-t.ok > i { background: var(--mint2); }
.h-t.bad > i { background: var(--red); }
.h-t.bad .face { box-shadow: 0 0 0 3px var(--red); }
.h-t.start .face { box-shadow: 0 0 0 3px var(--violet); }
.h-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hBtn { height: 58px; width: 100%; justify-content: flex-start; padding: 0 12px; gap: 10px; }
.hBtn > span:last-child { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; min-width: 0; }
.hBtn small { font-size: 11px; color: var(--muted); font-weight: 700; }
.h-ar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.h-ar.up { background: rgba(46, 242, 166, .18); color: var(--mint); }
.h-ar.up .ic { transform: rotate(-90deg); }
.h-ar.down { background: rgba(255, 77, 109, .18); color: var(--red); }
.h-ar.down .ic { transform: rotate(90deg); }
.hBtn:not(:disabled):hover { border-color: var(--violet); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.k-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.k-n { aspect-ratio: 1.15; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-weight: 800; font-size: 16px; display: grid; place-items: center; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s; position: relative; }
.k-n:hover { transform: translateY(-2px); border-color: var(--violet); }
.k-n.pick { background: linear-gradient(135deg, var(--violet), #6a4be0); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(140, 107, 255, .35); }
.k-n.drawn { animation: kPop .35s cubic-bezier(.2, .9, .3, 1.5); }
.k-n.drawn:not(.pick) { background: var(--panel3); color: var(--muted); border-color: transparent; }
.k-n.drawn:not(.pick)::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 2px solid var(--red); opacity: .5; }
.k-n.hit { background: linear-gradient(135deg, #3cffb5, var(--mint2)); color: #04281a; box-shadow: 0 0 0 3px var(--bg2), 0 0 0 5px var(--mint), 0 0 22px rgba(46, 242, 166, .55); }
.k-grid.locked .k-n { pointer-events: none; }
@keyframes kPop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } }
.k-pay { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 2px 6px; }
.k-p { flex: 1 0 58px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); transition: transform .2s, background .2s; }
.k-p b { font-size: 14px; }
.k-p span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.k-p.hit { background: linear-gradient(135deg, #3cffb5, var(--mint2)); color: #04281a; transform: translateY(-3px); border-color: transparent; }
.k-p.hit span { color: #0a5a3a; }
.k-p.miss { border-color: var(--red); }
.k-empty { padding: 14px; text-align: center; width: 100%; }
.s-note { font-size: 12px; line-height: 1.5; }

.t-wrap { display: grid; place-items: center; }
.t-board { --cols: 3; display: flex; flex-direction: column; gap: 7px; width: min(100%, 460px); padding: 14px; border-radius: var(--r3); background: linear-gradient(180deg, rgba(180, 140, 255, .14), rgba(255, 77, 109, .08)); border: 1px solid var(--line); }
.t-row { display: grid; grid-template-columns: 70px repeat(var(--cols), minmax(0, 1fr)); gap: 7px; align-items: center; opacity: .55; transition: opacity .25s; }
.t-row.act, .t-row.done { opacity: 1; }
.t-board:not(.live) .t-row { opacity: .8; }
.t-m { font-size: 12px; font-weight: 800; color: var(--muted); text-align: right; padding-right: 4px; white-space: nowrap; }
.t-row.act .t-m { color: var(--gold); }
.t-cell { height: 40px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s; }
.t-cell svg { width: 24px; height: 24px; animation: kPop .35s cubic-bezier(.2, .9, .3, 1.5); }
.t-row.act .t-cell:not(.open) { background: color-mix(in srgb, var(--violet) 30%, var(--panel)); border-color: var(--violet); cursor: pointer; animation: tGlow 1.4s ease-in-out infinite; }
.t-row.act .t-cell:not(.open):hover { transform: translateY(-2px) scale(1.03); background: color-mix(in srgb, var(--violet) 50%, var(--panel)); }
@keyframes tGlow { 50% { box-shadow: 0 0 14px rgba(140, 107, 255, .55); } }
.t-cell.open.safe { background: linear-gradient(135deg, rgba(255, 203, 82, .35), rgba(46, 242, 166, .25)); border-color: var(--gold); }
.t-cell.open.trap { background: rgba(255, 77, 109, .3); border-color: var(--red); }
.t-cell.ghost { opacity: .45; }
.t-cell.ghost svg { animation: none; }
.t-row:not(.act) .t-cell { cursor: default; }

@media (max-width: 900px) {
  .mp-top, .gd-cols { grid-template-columns: minmax(0, 1fr); }
  .up-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .gd-steps { grid-template-columns: minmax(0, 1fr); }
  .gd-hero { flex-direction: column; text-align: center; }
  .gd-chips { justify-content: center; }
  .gd-art { width: 90px; height: 90px; }
  .k-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .h-wrap { gap: 12px; }
  .h-card .pcard { width: 96px; height: 138px; }
  .h-side { min-width: 56px; }
  .upc { flex-wrap: wrap; }
  .upc .btn { width: 100%; }
  .lb-j-f, .lb-j-f .amt { width: 100%; }
  .lb-j-f .btn { width: 100%; }
  .podium { gap: 8px; }
  .pd .av { width: 46px; height: 46px; }
  .pd1 .av { width: 58px; height: 58px; }
  .pd b { font-size: 13px; }
  .t-row { grid-template-columns: 56px repeat(var(--cols), minmax(0, 1fr)); }
  .set-nova { justify-content: center; }
}

.bigwin { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; cursor: pointer; overflow: hidden; transition: opacity .4s; --c1: #ffcb52; --c2: rgba(255, 203, 82, .16); }
.bigwin.out { opacity: 0; }
.bigwin.lv2 { --c1: #3ad8ff; --c2: rgba(58, 216, 255, .16); }
.bigwin.lv3 { --c1: #ff6fcf; --c2: rgba(255, 111, 207, .18); }
.bigwin.lv4 { --c1: #b48cff; --c2: rgba(180, 140, 255, .2); }
.bw-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, rgba(30, 18, 70, .55), rgba(4, 4, 14, .88) 70%); animation: bwFade .35s ease-out both; }
.bw-rays { position: absolute; left: 50%; top: 48%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; background: repeating-conic-gradient(from 0deg, var(--c2) 0 7deg, transparent 7deg 18deg); -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .7) 18%, transparent 46%); mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .7) 18%, transparent 46%); animation: bwRays 14s linear infinite, bwRaysIn .7s cubic-bezier(.2, .9, .3, 1) both; }
.bigwin.lv4 .bw-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 111, 207, .2) 0 6deg, transparent 6deg 12deg, rgba(58, 216, 255, .2) 12deg 18deg, transparent 18deg 24deg, rgba(255, 203, 82, .2) 24deg 30deg, transparent 30deg 36deg); }
.bw-ring { position: absolute; left: 50%; top: 48%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 5px solid var(--c1); box-shadow: 0 0 40px var(--c1), inset 0 0 30px var(--c1); opacity: 0; animation: bwRing 1.1s cubic-bezier(.1, .7, .3, 1) .15s both; }
.bw-ring.r2 { animation-delay: .4s; border-width: 3px; }
.bigwin.land .bw-ring { animation: bwRing 1.1s cubic-bezier(.1, .7, .3, 1) both; }
.bigwin.land .bw-ring.r2 { animation-delay: .18s; }
.bw-stars { position: absolute; left: 50%; top: 48%; width: 0; height: 0; }
.bw-stars em { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 6px var(--c1)); opacity: 0; animation: bwStar 1.6s cubic-bezier(.15, .8, .3, 1) var(--d) both; }
.bigwin.land .bw-stars em { animation: bwStar 1.6s cubic-bezier(.15, .8, .3, 1) calc(var(--d) * .4) both; }
.bigwin .bw { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 16px; max-width: 100%; }
.bigwin.lv3 .bw, .bigwin.lv4 .bw { animation: bwShake .5s .2s both; }
.bigwin.land .bw { animation: bwThump .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.bw-moon { width: 96px; height: 96px; filter: drop-shadow(0 0 26px rgba(255, 200, 80, .7)); animation: bwMoon .7s cubic-bezier(.2, 1.5, .4, 1) both, bwFloat 2.4s ease-in-out .7s infinite; }
.bw-moon svg { width: 100%; height: 100%; }
.bw-t { display: flex; flex-wrap: wrap; justify-content: center; font-family: var(--num); font-weight: 900; font-size: clamp(30px, 6.5vw, 58px); letter-spacing: 4px; line-height: 1.1; color: #fff; text-shadow: 0 0 18px var(--c1), 0 4px 0 rgba(0, 0, 0, .35); }
.bw-t i { font-style: normal; display: inline-block; animation: bwLetter .5s cubic-bezier(.2, 1.6, .4, 1) calc(.2s + var(--i) * 55ms) both; }
.bw-t i.sp { width: .4em; }
.bw-x { font-family: var(--num); font-weight: 800; font-size: clamp(48px, 11vw, 104px); line-height: 1.05; background: linear-gradient(100deg, #fff6d6 0%, #ffcb52 35%, #fff 48%, #ffcb52 60%, #f08a1c 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 26px rgba(255, 160, 40, .55)); animation: bwPop .6s cubic-bezier(.2, 1.5, .4, 1) .35s both, bwShine 1.8s linear 1s infinite; white-space: nowrap; }
.bw-p { display: flex; align-items: center; gap: 10px; font-family: var(--num); font-weight: 800; font-size: clamp(20px, 4vw, 30px); color: #fff; padding: 8px 20px; border-radius: 99px; background: rgba(46, 242, 166, .14); border: 1px solid rgba(46, 242, 166, .45); box-shadow: 0 0 30px rgba(46, 242, 166, .25); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); animation: bwUp .5s cubic-bezier(.2, 1.3, .4, 1) .55s both; white-space: nowrap; }
.bw-p .coin { width: 26px; height: 26px; flex: none; }
.bw-skip { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .55); animation: bwFade .4s 1.2s both; }
@keyframes bwFade { from { opacity: 0; } }
@keyframes bwRays { to { transform: rotate(360deg); } }
@keyframes bwRaysIn { from { opacity: 0; scale: .3; } }
@keyframes bwRing { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes bwStar { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) scale(var(--s)) rotate(180deg); } }
@keyframes bwMoon { from { opacity: 0; transform: scale(0) rotate(-90deg); } }
@keyframes bwFloat { 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes bwLetter { 0% { opacity: 0; transform: scale(3) translateY(-20px); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes bwPop { from { opacity: 0; transform: scale(.3); } }
@keyframes bwUp { from { opacity: 0; transform: translateY(24px) scale(.8); } }
@keyframes bwShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes bwShake { 10%, 50%, 90% { transform: translate(-6px, 3px); } 30%, 70% { transform: translate(6px, -3px); } }
@keyframes bwThump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

.accw { display: flex; flex: none; }
.gsign { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: var(--r2); background: #fff; color: #1f1f1f; font-weight: 700; font-size: 14px; border: 1px solid rgba(0, 0, 0, .08); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.gsign:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(140, 107, 255, .35); }
.glogo { width: 20px; height: 20px; flex: none; }
.gsign .gdot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); border: 2px solid var(--bg); }
.gsign .gdot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--mint); animation: gPing 1.8s ease-out infinite; }
@keyframes gPing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.achip { position: relative; width: 44px; height: 44px; border-radius: 50%; padding: 0; background: var(--panel); border: 2px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s; }
.achip:hover { border-color: var(--violet); }
.achip .av { width: 100%; height: 100%; }
.achip .adot { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--bg); background: var(--mint); }
.achip.st-sync .adot { background: var(--cyan); animation: gBlink 1s infinite; }
.achip.st-err .adot, .achip.st-off .adot { background: var(--gold); }
.achip.st-ask .adot { background: var(--violet); }
@keyframes gBlink { 50% { opacity: .35; } }
.av { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; flex: none; }
.av b { font-size: 15px; font-weight: 800; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 22px; height: 22px; } .av.sm b { font-size: 11px; }
.av.big { width: 84px; height: 84px; border: 3px solid var(--violet); box-shadow: var(--glow); } .av.big b { font-size: 36px; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 50px; padding: 0 22px; border-radius: 99px; background: #fff; color: #1f1f1f; font-weight: 700; font-size: 15px; border: 1px solid #dadce0; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.gbtn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.gbtn.sm { height: 40px; padding: 0 16px; font-size: 14px; gap: 10px; }
.acc-m { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 4px; max-width: 420px; margin: 0 auto; }
.acc-m h2 { margin: 6px 0 0; }
.acc-m p { margin: 0; }
.acc-m .row2 { width: 100%; margin-top: 6px; }
.acc-hero { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--violet), var(--cyan)); box-shadow: var(--glow); }
.acc-hero .ic { width: 40px; height: 40px; }
.acc-l { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 8px; text-align: left; width: 100%; }
.acc-l li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r1); background: var(--panel2); font-size: 14px; }
.acc-l .ic { width: 18px; height: 18px; color: var(--mint); flex: none; margin-top: 1px; }
.acc-m small { margin-top: 4px; }
.acc-st { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; border-radius: var(--r2); background: var(--panel2); border: 1px solid var(--line); }
.acc-st > i { width: 12px; height: 12px; border-radius: 50%; background: var(--mint); flex: none; box-shadow: 0 0 10px var(--mint); }
.acc-st.st-sync > i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: gBlink 1s infinite; }
.acc-st.st-err > i, .acc-st.st-off > i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.acc-st b { display: block; font-size: 14px; }
.acc-st span { font-size: 13px; color: var(--muted); }
.sv-ask { text-align: center; }
.sv-ask h2 { margin: 10px 0 4px; }
.sv-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.sv-ic .ic { width: 34px; height: 34px; }
.sv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sv-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r2); background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.sv-h { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.sv-h .ic { width: 18px; height: 18px; }
.sv-bal { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 22px; font-weight: 800; flex-wrap: wrap; }
.sv-bal .coin { width: 22px; height: 22px; }
.sv-st { display: flex; flex-direction: column; gap: 6px; font-size: 13px; align-items: center; }
.sv-st span { display: flex; align-items: center; gap: 6px; }
.sv-st .medal, .sv-st svg { width: 18px; height: 18px; }
.sv-card .btn { width: 100%; margin-top: auto; }
@media (max-width: 1180px) { .gsign span { display: none; } .gsign { width: 44px; padding: 0; justify-content: center; } }
@media (max-width: 560px) { .sv-grid { grid-template-columns: 1fr; } .gsign, .achip { width: 40px; height: 40px; } .bw-moon { width: 72px; height: 72px; } }
