/* ===== GLOBAL THEME BASE (add once in main css top) ===== */
:root {
    --mcw-primary: #1f2f9b;
    --mcw-primary-dark: #141f6b;
    --mcw-accent: #ff7a00;
    --mcw-white-text: #fff;
    --mcw-tab-bg: white;

}

/* ===== DESKTOP = BLACK BLOCK ===== */
@media (min-width: 769px) {
    .mcw-home-slider-wrap {
        width: 100%;
        height: 260px;
        background: #000;
    }
}

/* ===== MOBILE SLIDER ===== */
@media (max-width: 768px) {

    .mcw-home-slider-wrap {
        width: 100%;
        background: linear-gradient(to bottom,
                var(--mcw-primary),
                var(--mcw-primary-dark));
        padding: 10px 0 12px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .mcw-home-slider {
        display: flex;
        gap: 10px;
        padding: 0 12px;
        transition: transform .45s cubic-bezier(.4, 0, .2, 1);
        will-change: transform;
    }

    /* ===== Peek Slide Width ===== */
    .mcw-slide {
        min-width: 95%;
        /* side peek visible */
        flex: 0 1 auto;
        border-radius: 10px;
        overflow: hidden;
        background: #111;
    }

    .mcw-slide img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px;
        object-fit: contain;
        /* full image visible */
    }

    /* ===== DOTS ===== */
    .mcw-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
    }

    .mcw-dots span {
        width: 14px;
        height: 4px;
        border-radius: 4px;
        background: rgba(255, 255, 255, .25);
        transition: .25s;
    }

    .mcw-dots span.active {
        width: 26px;
        background: var(--mcw-accent);
    }
}

/* notice bar */
/* desktop hide */
@media (min-width: 769px) {
    .mcw-notice-wrap {
        display: none;
    }
}

/* mobile */
@media (max-width: 768px) {

    .mcw-notice-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--mcw-primary);
        border-top: 1px solid rgba(255, 255, 255, .08);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        padding: 5px 12px;
        overflow: hidden;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    }

    #not_bg {
        background: yellow;
        padding-bottom: 6px;
    }

    .mcw-notice-icon {
        flex: 0 0 auto;
        color: var(--mcw-white-text, #ffff);
        font-size: 13px;
    }

    .mcw-notice-track {
        position: relative;
        overflow: hidden;
        flex: 1;
    }

    .mcw-notice-text {
        white-space: nowrap;
        display: inline-block;
        color: #fff;
        font-size: 11px;
        will-change: transform;
    }
}

/* tab bar */
/* ===== DESKTOP HIDE ===== */
@media (min-width:769px) {
    .mcw-tabs-wrap {
        display: none;
    }
}

/* ===== MOBILE ===== */
@media (max-width:768px) {
    .mcw-tabs-wrap {
        padding: 0px 0px 4px;
        background: var(--mcw-tab-bg);
    }

    /* ===== TAB BAR ===== */
    .mcw-tabbar {
        display: flex;
        gap: 1px;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
        margin-left: 5px;
    }

    .mcw-tabbar::-webkit-scrollbar {
        display: none;
    }

    .mcw-tab.active {
        background: yellow;
        /* margin-top: 2px; */
    }

    .mcw-tab {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-width: 65px;
        padding: 2px 5px;
        margin-right: 5px;
        color: #ffd700;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        border: 1px solid #000;
        border-radius: 4px;
        background: linear-gradient(90deg, #2B0547 0%, #220339 50%, #2B0547 100%);
        background-size: 200% 100%;
        background-position: left center;
        transition: background-position .4s ease, transform .3s ease, box-shadow .3s ease, color .3s ease;
    }

    .mcw-tab img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        display: block;
        margin: auto;
        border-radius: 12px;
        padding: 5px;
        transition: .2s;
    }

    .mcw-tab span {
        display: block;
        margin-top: 4px;
        font-size: 9px;
        font-weight: bold;
    }

    .mcw-tab.active span {
        color: var(--mcw-accent);
        font-weight: 600;
    }

    .mcw-tab.active img {

        transform: translateY(-2px);
    }

    /* ===== TAB CONTENT ===== */

    .mcw-tab-content {
        display: none;
        /* only hide */
        margin-top: 10px;
    }

    .mcw-tab-content.active {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        animation: mcwFade .50s ease;
        padding: 5px 15px;
        background: #f3f3f3;
        align-items: stretch;
    }

    @keyframes mcwFade {
        from {
            opacity: .4;
            transform: translateY(4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ===== GAME CARD ===== */

    .mcw-game {
        text-align: center;
        display: flex;
        flex-direction: column;
        height: 100%;
        gap: 8px;
    }

    .mcw-game-link {
        display: block;
        height: 100%;
    }

    .mcw-game-img {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
        aspect-ratio: 1 / 1;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
        border: 1px solid rgba(15, 23, 42, .06);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    }

    .mcw-game-img>img:first-child {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        border-radius: 10px;
        background: #fff;
    }

    .mcw-game.compact-game-card .mcw-game-img {
        background: transparent !important;
        box-shadow: none !important;
        border: 1px solid #fff !important;
        border-radius: 0 !important;
        display: block;
        padding: 3px !important;
    }

    .mcw-game.compact-game-card .mcw-game-img>img:first-child {
        object-fit: cover;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .mcw-game-link:hover .mcw-game-img,
    .mcw-game-link:focus-visible .mcw-game-img {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
        border-color: rgba(226, 27, 60, .18);
    }

    .mcw-game-link:hover .mcw-game.compact-game-card .mcw-game-img,
    .mcw-game-link:focus-visible .mcw-game.compact-game-card .mcw-game-img {
        box-shadow: none !important;
        border: 1px solid #fff !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    /* badge */
    .mcw-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        min-width: 34px;
        max-width: calc(100% - 10px);
        padding: 2px 6px;
        border-radius: 10px;
        background: linear-gradient(135deg, #ff7a00, #ff3d00);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .3px;
        line-height: 1.2;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none;
        animation: mcwZoom 1.6s infinite ease-in-out;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
    }

    /* zoom animation smoother */
    @keyframes mcwZoom {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.18);
        }

        100% {
            transform: scale(1);
        }
    }

    .mcw-game p {
        margin-top: 0;
        font-size: 13px;
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        line-height: 1.25;
        min-height: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: normal;
        overflow-wrap: normal;
    }
}

/* refer section */
/* desktop hide */
@media (min-width:769px) {
    .mcw-ref-wrap {
        display: none;
        height: 200px;
        background: #000;
    }
}

.mcw-side-top {
    background: #a90101 !important;
}

/* mobile */
@media (max-width:768px) {

    .mcw-ref-wrap {
        padding: 15px;
        background: yellow;
        margin-top: -5px;
    }

    .mcw-ref-title {
        color: black;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .mcw-ref-card {
        border-radius: 10px;
        overflow: hidden;
        background: #1a1a1a;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
        transition: .25s;
    }

    .mcw-ref-card:active {
        transform: scale(.98);
    }

    .mcw-ref-card img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

}

/* live match */
/* desktop hide */
@media(min-width:769px) {
    .mcw-live-wrap {
        display: none;
        height: 220px;
        background: #000;
    }
}

.my-cidess {
    background: linear-gradient(180deg, #0A4A37 0%, #03241A 100%) !important;
    padding-top: 7px !important;
    padding-bottom: 10px !important;
}

@media(max-width:768px) {

    .mcw-live-wrap {
        background: yellow;
        padding: 15px;
    }

    .mcw-live-head {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        margin-bottom: 8px;
        color: black;
    }

    .mcw-now {
        background: #27c24c;
        color: #fff;
        font-size: 11px;
        padding: 3px 15px;
        border-radius: 4px;
    }

    .mcw-live-slider {
        display: flex;
        gap: 12px;
        overflow: hidden;
        scroll-behavior: smooth;
    }

    .mcw-live-card {
        min-width: 92%;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
        background: #111;
    }

    .mcw-live-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
    }

    /* overlay */
    .mcw-live-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35));
        padding: 14px;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .mcw-live-title {
        font-weight: 700;
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .mcw-live-time {
        font-size: 12px;
        opacity: .9;
        margin-bottom: 10px;
    }

    .mcw-live-row {
        display: flex;
        justify-content: space-around;
        font-size: 14px;
        font-weight: 600;
    }

    .mcw-live-row b {
        display: block;
        margin-top: 4px;
        font-size: 16px;
    }

}

.mcw-spin-float {
	position: fixed;
	left: 10px;
	bottom: 135px;
	z-index: 1200;
	width: 59px;
	height: 59px;
	border: 2px solid rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 28%, #fff7b0 0 18%, #ffcf35 19% 48%, #f04b32 49% 100%);
	color: #111;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	animation: mcwSpinBlink 1.35s ease-in-out infinite;
}

.mcw-spin-float i {
  font-size: 20px;
}

.mcw-spin-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.mcw-spin-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.mcw-spin-card {
  position: relative;
  width: min(94vw, 390px);
  padding: 18px 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, #201632 0%, #111827 100%);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  text-align: center;
  transform: translateY(18px) scale(0.96);
  transition: transform 0.24s ease;
}

.mcw-spin-modal.is-open .mcw-spin-card {
  transform: translateY(0) scale(1);
}

.mcw-spin-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mcw-spin-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.mcw-spin-subtitle {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.mcw-spin-stage {
  position: relative;
  width: 256px;
  height: 256px;
  margin: 18px auto 14px;
}

.mcw-spin-pointer {
  position: absolute;
  top: -5px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 26px solid #fff;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35));
}

.mcw-spin-wheel {
  position: absolute;
  inset: 0;
  border: 7px solid #fff;
  border-radius: 50%;
  background: conic-gradient(
    #facc15 0deg 45deg,
    #ef4444 45deg 90deg,
    #22c55e 90deg 135deg,
    #3b82f6 135deg 180deg,
    #fb923c 180deg 225deg,
    #a855f7 225deg 270deg,
    #14b8a6 270deg 315deg,
    #f43f5e 315deg 360deg
  );
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.16), 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 3.8s cubic-bezier(0.12, 0.72, 0.08, 1);
}

.mcw-spin-wheel span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  margin-left: -22px;
  margin-top: -12px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  transform-origin: 22px 12px;
}

.mcw-spin-wheel span:nth-child(1) { transform: rotate(22.5deg) translateY(-94px) rotate(-22.5deg); }
.mcw-spin-wheel span:nth-child(2) { transform: rotate(67.5deg) translateY(-94px) rotate(-67.5deg); }
.mcw-spin-wheel span:nth-child(3) { transform: rotate(112.5deg) translateY(-94px) rotate(-112.5deg); }
.mcw-spin-wheel span:nth-child(4) { transform: rotate(157.5deg) translateY(-94px) rotate(-157.5deg); }
.mcw-spin-wheel span:nth-child(5) { transform: rotate(202.5deg) translateY(-94px) rotate(-202.5deg); }
.mcw-spin-wheel span:nth-child(6) { transform: rotate(247.5deg) translateY(-94px) rotate(-247.5deg); }
.mcw-spin-wheel span:nth-child(7) { transform: rotate(292.5deg) translateY(-94px) rotate(-292.5deg); }
.mcw-spin-wheel span:nth-child(8) { transform: rotate(337.5deg) translateY(-94px) rotate(-337.5deg); }

.mcw-spin-action {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff7ad 0%, #facc15 100%);
  color: #111;
  font-size: 16px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.mcw-spin-action:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.mcw-spin-prizes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mcw-spin-prizes span {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mcw-spin-message {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.mcw-spin-message.is-success {
  color: #86efac;
}

.mcw-spin-message.is-error {
  color: #fecaca;
}

.mcw-spin-message.is-info {
  color: #fde68a;
}

@keyframes mcwSpinBlink {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(250, 204, 21, 0.55);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32), 0 0 0 10px rgba(250, 204, 21, 0);
  }
}

@media (max-width: 420px) {
.mcw-spin-float {
	left: 9px;
	bottom: 137px;
	width: 57px;
	height: 57px;
}
  .mcw-spin-stage {
    width: 232px;
    height: 232px;
  }

  .mcw-spin-wheel span:nth-child(1) { transform: rotate(22.5deg) translateY(-84px) rotate(-22.5deg); }
  .mcw-spin-wheel span:nth-child(2) { transform: rotate(67.5deg) translateY(-84px) rotate(-67.5deg); }
  .mcw-spin-wheel span:nth-child(3) { transform: rotate(112.5deg) translateY(-84px) rotate(-112.5deg); }
  .mcw-spin-wheel span:nth-child(4) { transform: rotate(157.5deg) translateY(-84px) rotate(-157.5deg); }
  .mcw-spin-wheel span:nth-child(5) { transform: rotate(202.5deg) translateY(-84px) rotate(-202.5deg); }
  .mcw-spin-wheel span:nth-child(6) { transform: rotate(247.5deg) translateY(-84px) rotate(-247.5deg); }
  .mcw-spin-wheel span:nth-child(7) { transform: rotate(292.5deg) translateY(-84px) rotate(-292.5deg); }
  .mcw-spin-wheel span:nth-child(8) { transform: rotate(337.5deg) translateY(-84px) rotate(-337.5deg); }

  .mcw-spin-prizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
