/* Megawheel game v1 - mobile-first; default = dark theme, body.light-theme = light. PC layout in megawheel-pc.v1.css */
.mw-page { width: 100%; }
body:not(.light-theme) .mw-page .cards { background: #1a1d29 !important; background-color: #1a1d29 !important; border-radius: 16px !important; box-shadow: none !important; }
body.light-theme .mw-page .cards { background: #ffffff !important; background-color: #ffffff !important; border-radius: 16px !important; box-shadow: 0 25px 65px rgb(224 221 240 / 45%) !important; }
.mw-content { padding: 12px 12px 16px; }
.mw-loading { display: flex; align-items: center; justify-content: center; min-height: 260px; }
.mw-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(128,128,160,.25); border-top-color: #f5b301; animation: mwspin .8s linear infinite; }
@keyframes mwspin { to { transform: rotate(360deg); } }

.mw-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 14px; margin-bottom: 12px; color: #e8ecf5; }
body.light-theme .mw-card { background: #f5f6fa; border-color: #e6e9f2; color: #1c1e2b; }

/* wheel (reference look): rounded tiles on a big arc, static gold rim + bulbs, gold pointer under the tiles */
.mw-card.mw-top { background: transparent !important; border: 0 !important; padding: 0 0 6px !important; box-shadow: none !important; }
.mw-stage { position: relative; overflow: hidden; height: 0; padding-bottom: 62%; border-radius: 16px; }
.mw-wheelbox { position: absolute; left: -35%; width: 170%; top: 0; }
.mw-wheel { display: block; width: 100%; height: auto; overflow: visible; }
.mw-tile { stroke: none; }
.mw-sec { stroke: #d9a13a; stroke-width: 2; }
.mw-inbg { fill: none; stroke: #6a1414; stroke-width: 82; }
.mw-tile { stroke-width: 9; stroke-linejoin: round; }
.mw-blank { fill: #8d1c1c; stroke: #8d1c1c; }
.mw-st1 { fill: #48a7e6; stroke: #48a7e6; } .mw-st2 { fill: #efc24f; stroke: #efc24f; } .mw-st3 { fill: #7d47e6; stroke: #7d47e6; } .mw-st4 { fill: #ea5aa7; stroke: #ea5aa7; }
.mw-st5 { fill: #5cc65f; stroke: #5cc65f; } .mw-st6 { fill: #2f8f46; stroke: #2f8f46; } .mw-st7 { fill: #f28c48; stroke: #f28c48; } .mw-st8 { fill: #eb4b44; stroke: #eb4b44; }
.mw-lbl-t { fill: #fff; font-size: 27px; font-weight: 800; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(0,0,0,.25); stroke-width: 2px; pointer-events: none; }
.mw-mid { fill: none; stroke: url(#mwgold); stroke-width: 26; }
.mw-mid2 { fill: none; stroke: url(#mwgold); stroke-width: 18; }
.mw-edge { fill: none; stroke: #a8621a; stroke-width: 3; opacity: .95; }
.mw-hi { fill: none; stroke: #fff4c8; stroke-width: 2; opacity: .55; }
.mw-markb { fill: url(#mwgold2); stroke: #a8621a; stroke-width: 1.5; stroke-linejoin: round; }
.mw-mark { fill: #e23636; stroke: #ff9f96; stroke-width: 1; stroke-linejoin: round; }
.mw-markhi { fill: #fff; opacity: .7; }
.mw-center { fill: url(#mwcenter); }
.mw-rim { fill: none; stroke: url(#mwgold); stroke-width: 24; }
.mw-rim2 { fill: none; stroke: #fff2b8; stroke-width: 2.5; opacity: .75; }
.mw-bulb { fill: url(#mwbulb); stroke: #b8830c; stroke-width: 1.2; }
.mw-bulb-hi { fill: #fff; opacity: .85; }
.mw-shadow { fill: none; stroke: #c9cce0; stroke-width: 10; opacity: .55; }
body:not(.light-theme) .mw-shadow { stroke: #000; opacity: .35; }
.mw-pointer { position: absolute; top: 0; left: 50%; width: 8%; min-width: 34px; max-width: 72px; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 4px 6px rgba(120,80,0,.28)); }
.mw-pointer svg { width: 100%; height: auto; display: block; overflow: visible; }
.mw-beam { fill: url(#mwbeam); }
.mw-ptr-body { fill: url(#mwpg); stroke: #a8621a; stroke-width: 2; stroke-linejoin: round; }
.mw-ptr-hi { fill: #fff; opacity: .3; }
.mw-ptr-gem { fill: #e3393a; stroke: #8f1010; stroke-width: 1.5; }
.mw-ptr-gemhi { fill: #fff; opacity: .7; }

/* timer */
.mw-timer { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; z-index: 3; pointer-events: none; }
.mw-page .mw-timer__lbl { font-size: 10px; font-weight: 600; color: #fff !important; -webkit-text-fill-color: #fff !important; opacity: .95; }
.mw-page .mw-timer__val { font-size: 24px; font-weight: 800; letter-spacing: 1px; line-height: 1.1; color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.mw-tx1 { color: #9dbcff; } .mw-tx2 { color: #ffe38a; } .mw-tx3 { color: #c9b3ff; } .mw-tx4 { color: #ffb0ea; }
.mw-tx5 { color: #9df0b8; } .mw-tx6 { color: #b6e8c3; } .mw-tx7 { color: #ffc39d; } .mw-tx8 { color: #ffb3b3; }
.mw-hist { display: flex; gap: 6px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: none; }
.mw-hist::-webkit-scrollbar { display: none; }
.mw-page .mw-hchip { flex: 0 0 auto; min-width: 44px; text-align: center; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.mw-page .mw-hchip.mw-bg2 { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.mw-page .mw-cb.mw-bg2, .mw-page .mw-cb.mw-bg2 b, .mw-page .mw-cb.mw-bg2 small { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.mw-bgn { background: #6b7280; }

/* bet panel */
.mw-page .mw-lbl { font-size: 18px; font-weight: 600; color: #9296c4 !important; -webkit-text-fill-color: #9296c4 !important; opacity: 1; margin: 2px 0 12px; }
body:not(.light-theme) .mw-page .mw-lbl { color: #aab0d8 !important; -webkit-text-fill-color: #aab0d8 !important; }
.mw-amt { display: flex; gap: 6px; align-items: stretch; margin-bottom: 14px; }
.mw-ab { flex: 0 0 auto; min-width: 46px; padding: 0 10px; height: 42px; border: 0; border-radius: 10px; background: #262b3d; color: #e8ecf5; font-weight: 700; font-size: 13px; cursor: pointer; }
.mw-ab:active { transform: scale(.97); }
body.light-theme .mw-ab { background: #eef0f7; color: #1c1e2b; }
.mw-in { flex: 1 1 auto; min-width: 0; height: 42px; border: 1px solid rgba(128,128,160,.25); border-radius: 10px; background: #12141d; color: #fff; text-align: center; font-size: 16px; font-weight: 700; outline: none; }
body.light-theme .mw-in { background: #fff; color: #1c1e2b; border-color: #dde0ea; }
.mw-in::-webkit-outer-spin-button, .mw-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mw-in[type=number] { -moz-appearance: textfield; }
.mw-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mw-cb { position: relative; min-width: 0; width: 100%; padding: 0; height: 48px; border: 0; border-radius: 12px; color: #fff; font-weight: 800; font-size: 17px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; box-shadow: 0 4px 12px rgba(0,0,0,.18); transition: transform .1s, opacity .2s; }
.mw-cb small { font-size: 11px; font-weight: 600; opacity: .95; }
.mw-cb:active { transform: scale(.97); }
.mw-cb.dis, .mw-cb:disabled { opacity: .6; cursor: default; box-shadow: none; }
.mw-bg1 { background: linear-gradient(90deg, #2c62e8, #3b82ff); }
.mw-bg2 { background: linear-gradient(90deg, #eab308, #f5c33b); }
.mw-bg3 { background: linear-gradient(90deg, #6d28d9, #8b5cf6); }
.mw-bg4 { background: linear-gradient(90deg, #c026d3, #ec4899); }
.mw-bg5 { background: linear-gradient(90deg, #16a34a, #34c26a); }
.mw-bg6 { background: linear-gradient(90deg, #166534, #22863a); }
.mw-bg7 { background: linear-gradient(90deg, #ea580c, #f97b2c); }
.mw-bg8 { background: linear-gradient(90deg, #dc2626, #ef4444); }
/* amount chips (gear-shaped, svg) */
.mw-chips { display: flex; justify-content: space-between; gap: 8px; }
.mw-chip { flex: 1 1 0; min-width: 0; max-width: 74px; position: relative; background: none; border: 0; padding: 0; cursor: pointer; transition: transform .15s; }
.mw-chip svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.14)); }
.mw-chip span { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.mw-chip__bg { fill-opacity: .4; }
.mw-chip.on .mw-chip__bg { fill-opacity: 1; }
.mw-chip.on { transform: scale(1.04); }
.mw-chip:active { transform: scale(.95); }
.mw-chip__ring { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 6 5; opacity: .95; }
.mw-chip1 .mw-chip__bg { fill: #5b1fd6; } .mw-chip10 .mw-chip__bg { fill: #f2c24f; } .mw-chip50 .mw-chip__bg { fill: #5b8cff; } .mw-chip250 .mw-chip__bg { fill: #3fbf7f; } .mw-chip1000 .mw-chip__bg { fill: #ef5350; }
/* header */
.mw-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.mw-head__t { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.mw-head__i { width: 38px; height: 38px; border-radius: 10px; }
.mw-page .mw-hbtn { border: 0; border-radius: 12px; padding: 10px 16px; background: #eef0f7; color: #7f83a8 !important; -webkit-text-fill-color: #7f83a8 !important; font-weight: 600; font-size: 14px; cursor: pointer; }
body:not(.light-theme) .mw-page .mw-hbtn { background: #262b3d; color: #e8ecf5 !important; -webkit-text-fill-color: #e8ecf5 !important; }
.mw-page .mw-hbtn.on { background: #6d5bd0; color: #fff !important; -webkit-text-fill-color: #fff !important; }
/* last win */
.mw-last { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.mw-last__l { opacity: .7; font-size: 14px; font-weight: 600; }
.mw-last__v { font-size: 18px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.mw-note { margin-top: 10px; font-size: 12px; text-align: center; opacity: .6; }

/* bets list by color */
.mw-list { margin-bottom: 12px; }
.mw-row { background: rgba(255,255,255,.04); border-radius: 14px; margin-bottom: 8px; color: #e8ecf5; overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
body.light-theme .mw-row { background: #f5f6fa; color: #1c1e2b; border-color: #e6e9f2; }
.mw-row.hit { border-color: #e8b923; }
.mw-row__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; user-select: none; }
.mw-sq { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.mw-users { flex: 1 1 auto; font-weight: 700; font-size: 14px; opacity: .85; }
.mw-users i { margin-right: 4px; opacity: .7; }
.mw-sum { font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.mw-coin { width: 16px; height: 16px; border-radius: 50%; }
.mw-chev { opacity: .5; transition: transform .2s; }
.mw-row.open .mw-chev { transform: rotate(180deg); }
.mw-row__body { border-top: 1px solid rgba(128,128,160,.15); padding: 6px 14px 10px; }
.mw-empty { font-size: 13px; opacity: .6; padding: 6px 0; }
.mw-bet { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed rgba(128,128,160,.12); }
.mw-bet:last-child { border-bottom: 0; }
.mw-bet__u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-page .mw-bet .win, .mw-page .mw-hrow__w.win { color: #2fb86b !important; -webkit-text-fill-color: #2fb86b !important; font-weight: 700; }
.mw-page .mw-bet .lose, .mw-page .mw-hrow__w.lose { color: #ef3f3f !important; -webkit-text-fill-color: #ef3f3f !important; }

/* left-menu icon (bundle: <div class="games-img megawheel">) */
.games-img.megawheel { background: url("/assets/image/megawheel-icon.svg?ver=1") center / contain no-repeat !important; }

/* round multiplier (top slot) */
.mw-boost { display: flex; justify-content: center; align-items: center; gap: 6px; margin-bottom: 3px; }
.mw-page .mw-boost__x { background: linear-gradient(180deg, #ffe98a, #f3b62b); color: #5a3a00 !important; -webkit-text-fill-color: #5a3a00 !important; font-weight: 900; font-size: 14px; line-height: 1; padding: 5px 10px; border-radius: 9px; box-shadow: 0 3px 10px rgba(0,0,0,.35); animation: mwpop .45s cubic-bezier(.2,1.4,.4,1); }
.mw-page .mw-boost__c { color: #fff !important; -webkit-text-fill-color: #fff !important; font-weight: 800; font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 9px; box-shadow: 0 3px 10px rgba(0,0,0,.35); animation: mwpop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes mwpop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
