.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(75, 0, 130, 0.35) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(75, 0, 130, 0.35) 100%);
    color: #f3e8ff;
    padding: 10px 0;
    white-space: nowrap;
    border-top: 1px solid rgba(188, 19, 254, 0.4);
    border-bottom: 1px solid rgba(188, 19, 254, 0.4);
}

.ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

html,
body,
#app,
button,
input,
textarea,
select,
a,
label,
p,
span,
div,
h1,
h2,
h3,
h4,
h5,
h6,
li,
td,
th,
small,
b,
strong {
    font-family: 'Kanit', sans-serif;
}

button,
a,
span,
div {
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.cs-header {
    background: linear-gradient(180deg, rgba(12, 2, 30, 0.98) 0%, rgba(8, 2, 22, 0.96) 100%) !important;
    border-bottom: 1px solid rgba(188, 19, 254, 0.55) !important;
}

.cs-body {
    background: transparent !important;
}

.cs-main-menu {
    background: linear-gradient(180deg, rgba(75, 0, 130, 0.55) 0%, rgba(8, 2, 22, 0.95) 100%) !important;
    border: 1px solid rgba(188, 19, 254, 0.45);
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(188, 19, 254, 0.2);
}

.cs-border-main-menu {
    border: 1px solid rgba(188, 19, 254, 0.45) !important;
}

.cs-border-text-slide {
    border-bottom: 1px solid rgba(188, 19, 254, 0.4);
}

.cs-boder-color {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: rgba(188, 19, 254, 0.55) !important;
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(188, 19, 254, 0.18);
}

.cs-card-bg {
    background: linear-gradient(180deg, rgba(18, 4, 42, 0.92) 0%, rgba(8, 2, 22, 0.96) 100%) !important;
    border: 1px solid rgba(188, 19, 254, 0.45) !important;
    box-shadow: 0 0 16px rgba(188, 19, 254, 0.15), inset 0 0 20px rgba(138, 43, 226, 0.06) !important;
}

.cs-btn {
    background: linear-gradient(90deg, #4b0082 0%, #8a2be2 45%, #bc13fe 100%) !important;
    border: 1px solid rgba(217, 70, 255, 0.75) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(188, 19, 254, 0.3) !important;
    border-radius: 8px !important;
}

.cs-btn:hover {
    filter: brightness(1.08);
}

.cs-btn.btn-success {
    background: linear-gradient(90deg, #006400 0%, #228b22 45%, #32cd32 100%) !important;
    border-color: rgba(50, 205, 50, 0.75) !important;
    box-shadow: 0 0 12px rgba(50, 205, 50, 0.3) !important;
}

.cs-bg-cat-huay {
    background: linear-gradient(180deg, rgba(18, 4, 42, 0.88) 0%, rgba(8, 2, 22, 0.95) 100%) !important;
}

.cs-bd {
    border-color: rgba(188, 19, 254, 0.65) !important;
}

.cs-bd-card {
    border: 1px solid rgba(188, 19, 254, 0.55) !important;
    box-shadow: 0 0 12px rgba(188, 19, 254, 0.15);
}

.cs-color {
    color: rgba(255, 255, 255, 0.9);
}

.cs-bg-mlogin {
    background: linear-gradient(180deg, rgba(18, 4, 42, 0.92) 0%, rgba(8, 2, 22, 0.96) 100%);
}

.cs-navh {
    background: linear-gradient(90deg, #4b0082 0%, #8a2be2 55%, #bc13fe 100%) !important;
}

.cs-navb::before {
    border-left-color: rgba(75, 0, 130, 0.9) !important;
}

.cs-bgcolor{
    background-color: #12042ae6 !important;
    border: 1px solid rgba(188, 19, 254, 0.45) !important;
}

.lotto-rate {
    position: relative;
    width: 100%;
    max-width: 26rem;
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid rgba(216, 180, 254, 0.7);
    background: linear-gradient(180deg, rgba(28, 8, 58, 0.98), rgba(10, 2, 24, 0.98));
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.38);
    color: #fff;
}

.lotto-rate__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.lotto-rate__head {
    padding: 0.9rem 2.6rem 0.85rem 1rem;
    border-bottom: 1px solid rgba(192, 132, 252, 0.35);
}

.lotto-rate__head small {
    display: block;
    color: #e9d5ff;
    font-size: 0.72rem;
    font-weight: 600;
}

.lotto-rate__head strong {
    display: block;
    margin-top: 0.1rem;
    font-size: 1.15rem;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(192, 132, 252, 0.7);
}

.lotto-rate__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem;
}

.lotto-rate__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    padding: 0.8rem 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(192, 132, 252, 0.5);
    background: linear-gradient(90deg, rgba(76, 29, 149, 0.45), rgba(18, 4, 42, 0.9));
    box-shadow: inset 0 0 14px rgba(168, 85, 247, 0.12);
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.lotto-rate__card:hover {
    border-color: #e9d5ff;
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.35);
}

.lotto-rate__name {
    font-size: 1.05rem;
    font-weight: 800;
}

.lotto-rate__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.lotto-rate__meta em {
    color: #f0abfc;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 600;
}

.lotto-rate__meta b {
    font-size: 0.95rem;
    font-weight: 700;
}

.lotto-rate__pick {
    align-self: flex-end;
    margin-top: 0.15rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    font-size: 0.75rem;
    font-weight: 700;
}

.lotto-list {
    padding: 0.7rem 0.7rem 6.2rem;
}

.lotto-list__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(192, 132, 252, 0.6);
    background: linear-gradient(90deg, rgba(76, 29, 149, 0.65), rgba(88, 28, 135, 0.4));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.lotto-list__back svg {
    width: 1rem;
    height: 1rem;
}

.lotto-list__head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.7rem 0 0.35rem;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    border-radius: 1rem;
    border: 1px solid rgba(216, 180, 254, 0.7);
    background:
        radial-gradient(circle at 8% 50%, rgba(192, 132, 252, 0.35), transparent 32%),
        linear-gradient(90deg, rgba(76, 29, 149, 0.72), rgba(18, 4, 42, 0.94));
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.32), inset 0 0 16px rgba(168, 85, 247, 0.14);
}

.lotto-list__head img {
    width: 3.15rem;
    height: 3.15rem;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid rgba(243, 232, 255, 0.75);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.55);
}

.lotto-list__head small {
    display: block;
    color: #e9d5ff;
    font-size: 0.68rem;
    font-weight: 600;
}

.lotto-list__head strong {
    display: block;
    margin-top: 0.05rem;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.75);
}

.lotto-list__section {
    margin-top: 0.9rem;
}

.lotto-list__cat {
    margin: 0 0 0.55rem;
    color: #f5e9ff;
    font-size: 0.95rem;
    font-weight: 800;
}

.lotto-list__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.lotto-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0.9rem;
    border: 1px solid rgba(192, 132, 252, 0.5);
    background: #14041f;
    color: #fff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.lotto-card img {
    width: 100%;
    height: 92px;
    object-fit: cover;
}

.lotto-card__name {
    padding: 0.4rem 0.5rem 0;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
}

.lotto-card__close {
    padding: 0.12rem 0.5rem 0;
    color: #e9d5ff;
    font-size: 0.68rem;
    font-weight: 600;
}

.lotto-card__count {
    margin: 0.4rem 0.45rem 0.45rem;
    padding: 0.22rem 0.4rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.lotto-card.is-closed {
    opacity: 0.48;
    cursor: default;
}

.lotto-card__count.is-off {
    background: rgba(255, 255, 255, 0.12);
}

.lotto-play {
    padding: 0.7rem 0.7rem 6.2rem;
    color: #fff;
}

.lotto-play .lotto-list__head > div {
    flex: 1;
    min-width: 0;
}

.lotto-play__timer {
    margin-left: auto;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.lotto-play__tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin: 0.65rem 0;
}

.lotto-play__tools button {
    padding: 0.48rem 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(216, 180, 254, 0.55);
    background: rgba(18, 4, 42, 0.8);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.lotto-play__tools button:last-child {
    background: linear-gradient(90deg, #9d174d, #db2777);
    border-color: transparent;
}

.lotto-play__panel {
    padding: 0.55rem !important;
}

.lotto-play__board {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.lotto-play__slip {
    padding: 0.45rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(192, 132, 252, 0.4);
    background: rgba(8, 2, 22, 0.45);
}

.lotto-play__slip hr {
    border-color: rgba(192, 132, 252, 0.3);
}

.lotto-play__slip .px-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.lotto-play__slip .px-2 h4.text-base {
    width: 100%;
    margin: 0.25rem 0 0;
}

.lotto-play__slip .px-2 h4.text-lg {
    margin: 0;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.4);
    font-size: 0.82rem;
    line-height: 1.4;
}

.lotto-play .btn {
    border-radius: 0.7rem;
}

.lotto-play .btn-outline-primary {
    background: rgba(18, 4, 42, 0.8) !important;
    color: #f5e9ff !important;
    border-color: rgba(192, 132, 252, 0.55) !important;
}

.lotto-play .btn-success,
.lotto-play .btn-primary,
.lotto-play .cs-btn {
    background: linear-gradient(90deg, #7c3aed, #c026d3) !important;
    border-color: rgba(233, 213, 255, 0.7) !important;
    color: #fff !important;
}

.lotto-play .btn-dark,
.lotto-play .btn-warning {
    background: rgba(76, 29, 149, 0.55) !important;
    border-color: rgba(192, 132, 252, 0.45) !important;
    color: #fff !important;
}

.lotto-play a.flex-auto {
    color: #e9d5ff !important;
}

.lotto-play a.text-primary {
    color: #fff !important;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.45), transparent);
    border-color: rgba(216, 180, 254, 0.65) !important;
}

.lotto-play .border-\[\#808080\] {
    border-color: rgba(192, 132, 252, 0.45) !important;
    background: rgba(18, 4, 42, 0.4);
}

.lotto-play .badge {
    color: #f5d0fe;
    border-color: rgba(216, 180, 254, 0.55);
}

.lotto-sheet {
    max-width: 440px !important;
    margin: 0.6rem auto !important;
    border-radius: 1.1rem !important;
    border: 1px solid rgba(216, 180, 254, 0.7) !important;
    background: linear-gradient(180deg, #1c083a, #0a0218) !important;
    color: #fff !important;
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.38);
}

.lotto-sheet > .text-lg {
    background: transparent !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(192, 132, 252, 0.35);
}

.lotto-sheet th,
.lotto-sheet td,
.lotto-sheet h3,
.lotto-sheet h4,
.lotto-sheet p {
    color: #fff;
}

.lotto-sheet .form-input {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
    border-color: rgba(192, 132, 252, 0.5) !important;
}

.lotto-sheet button.absolute {
    color: rgba(255, 255, 255, 0.75);
}

.lotto-price {
    display: flex;
    flex-direction: column;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 auto !important;
    overflow: hidden;
}

.lotto-price > .text-lg {
    flex: 0 0 auto;
}

.lotto-price__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.lotto-price__table {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.lotto-price__foot {
    flex: 0 0 auto;
    padding: 0.45rem 0.45rem 0.65rem;
    border-top: 1px solid rgba(192, 132, 252, 0.4);
    background: rgba(8, 2, 22, 0.98);
}