body {
    background: transparent !important;
}

.wrap {
    padding: 0 4px 8px !important;
}

.panel {
    overflow: hidden !important;
    border: 2px solid #d7a14a !important;
    border-radius: 7px !important;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.58), transparent 22%),
        linear-gradient(180deg, #fff7e8 0%, #fffdf7 35%, #f8edd9 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 1px 3px rgba(0, 0, 0, 0.18);
}

.tabs {
    display: none !important;
}

.draw-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 47px;
    align-items: center;
    border-bottom: 1px solid #d9bb75;
    background:
        linear-gradient(180deg, rgba(255, 234, 156, 0.94) 0%, rgba(246, 187, 61, 0.94) 50%, rgba(251, 220, 119, 0.94) 100%),
        repeating-linear-gradient(90deg, rgba(119, 67, 0, 0.12) 0 1px, transparent 1px 8px);
}

.draw-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9a5a00;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.draw-tab:before {
    content: "";
    width: 25px;
    height: 18px;
    background: radial-gradient(circle at 50% 50%, #d31313 0 3px, transparent 4px), linear-gradient(45deg, transparent 42%, #a56b14 43% 48%, transparent 49%), linear-gradient(-45deg, transparent 42%, #a56b14 43% 48%, transparent 49%);
    opacity: 0.58;
}

.draw-tab.active {
    color: #653700;
}

.draw-tab.active:before {
    opacity: 1;
}

.header {
    grid-template-columns: minmax(0, 1fr) 82px 54px !important;
    gap: 5px !important;
    padding: 13px 10px 8px !important;
}

.title {
    font-size: 15px !important;
    color: #050505 !important;
}

.title .issue {
    color: #e00012 !important;
}

.timer-box {
    width: auto !important;
    height: 22px !important;
    background: transparent !important;
    color: #030303 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.history-link {
    color: #f11222 !important;
    font-size: 14px !important;
}

.balls {
    gap: 1px !important;
    padding: 0 9px 3px !important;
}

.ball-num {
    width: 39px !important;
    height: 39px !important;
    margin-bottom: 2px !important;
    font-size: 19px !important;
    line-height: 39px !important;
}

.ball-text {
    color: #050505 !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
}

.plus {
    padding-top: 8px !important;
    color: #f10a1b !important;
    font-size: 24px !important;
}

.footer {
    margin-top: 5px !important;
    padding: 6px 10px 8px !important;
    border-top: 0 !important;
    background: transparent !important;
}

.next-text {
    color: #111 !important;
    font-size: 15px !important;
}

.next-text .issue {
    color: #e00012 !important;
}

.refresh-btn {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 50% 50%, #ffffff 0 44%, #dff3ff 45% 62%, #1f78bd 63% 100%) !important;
    color: transparent !important;
    box-shadow: none !important;
    position: relative;
}

.refresh-btn:before {
    content: "⟳";
    position: absolute;
    inset: 0;
    color: #0a62ad;
    font-size: 27px;
    font-weight: 900;
    line-height: 30px;
    text-align: center;
}

.refresh-btn.is-loading:before {
    animation: refreshSpin .7s linear infinite;
}

.refresh-btn.is-success:before {
    content: "✓";
    color: #13a538;
}

.refresh-btn.is-error:before {
    content: "!";
    color: #d71920;
}

@keyframes refreshSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 380px) {
    .header {
        grid-template-columns: minmax(0, 1fr) 74px 50px !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .title,
    .next-text {
        font-size: 13px !important;
    }

    .ball-num {
        width: 34px !important;
        height: 34px !important;
        font-size: 17px !important;
        line-height: 34px !important;
    }

    .ball-text {
        font-size: 14px !important;
    }
}
