* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #dfe4f0;
    color: #174079;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }

.lottery-app {
    position: relative;
    width: min(100vw, 430px);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: #eef2fb;
    box-shadow: 0 0 0 1px rgba(28, 73, 132, .08);
    padding-bottom: 146px;
}

.lottery-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 8px 10px 10px;
    background:
        radial-gradient(circle at 15% 0%, rgba(255,255,255,.95), rgba(255,255,255,0) 38%),
        linear-gradient(180deg, #f9fbff 0%, #eef3fb 100%);
    border-bottom: 1px solid #ccd8ec;
}

.header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 30px;
}

.game-title {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 68%;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #52659a;
    padding: 0;
    font-weight: 800;
    font-size: 18px;
    text-align: left;
}
.game-title span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.game-title small {
    flex: none;
    padding: 2px 5px;
    border-radius: 5px;
    background: #b031f4;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}
.game-title small.closed { background: #ef403b; }
.game-title i {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #c6cde0;
}
.balance {
    flex: none;
    color: #667394;
    font-size: 14px;
    white-space: nowrap;
}

.issue-card {
    position: relative;
    display: grid;
    grid-template-columns: 35% 1fr;
    align-items: center;
    gap: 8px;
    min-height: 78px;
    margin-top: 6px;
    padding: 8px 10px 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(201, 214, 236, .9);
    box-shadow: 0 6px 14px rgba(36, 79, 139, .14);
}
.issue-side {
    display: grid;
    gap: 2px;
    justify-items: center;
    color: #31446e;
    font-size: 13px;
}
.issue-side strong { font-size: 14px; }
.countdown-digits {
    display: grid;
    grid-template-columns: repeat(3, 35px);
    gap: 6px;
    margin-top: 2px;
}
.countdown-digits b {
    display: grid;
    place-items: center;
    height: 34px;
    border-radius: 5px;
    color: #315178;
    font-size: 20px;
    font-family: "Courier New", monospace;
    background: linear-gradient(180deg, #fff 0%, #edf1f7 100%);
    border: 1px solid #d4dce8;
    box-shadow: 0 2px 5px rgba(0,0,0,.18);
}
.result-side {
    min-width: 0;
    display: grid;
    gap: 10px;
    justify-items: end;
    padding-right: 5px;
}
.latest-title {
    width: 100%;
    padding-right: 96px;
    color: #536384;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.result-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
}
.result-ball {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #2f69d8;
    background: linear-gradient(180deg, #fff 0%, #bcd3ff 100%);
    border: 2px solid #75a6ff;
    box-shadow: 0 2px 5px rgba(33, 99, 219, .35);
    font-weight: 800;
}
.result-ball.sum-ball {
    color: #fff;
    background: linear-gradient(180deg, #ff6f6b 0%, #e63030 100%);
    border-color: #ff8f8b;
}
.operator {
    color: #475a7c;
    font-weight: 800;
}
.account-toggle {
    position: absolute;
    right: 10px;
    top: 9px;
    height: 26px;
    border: 0;
    border-radius: 15px;
    padding: 0 10px;
    background: linear-gradient(180deg, #7ba4e8, #5e7ec8);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.account-toggle.off { background: linear-gradient(180deg, #b8c0cf, #8894aa); }

.main-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.main-tabs button {
    height: 36px;
    border: 1px solid #d0d9e8;
    border-radius: 19px;
    color: #7c879e;
    background: linear-gradient(180deg, #fff 0%, #f3f5f8 100%);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.03);
    font-weight: 700;
}
.main-tabs button.active {
    border-color: #2d7bff;
    color: #fff;
    background: linear-gradient(180deg, #2f8bff 0%, #2368ff 100%);
    box-shadow: 0 5px 10px rgba(35, 104, 255, .28);
}

.lottery-body {
    height: calc(100vh - 168px);
    padding-bottom: 78px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.follow-mode,
.pro-mode { display: none; }
.follow-mode.active,
.pro-mode.active { display: block; }

.system-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 16px 12px 8px;
}
.speaker {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    background: #2d70ff;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}
.system-text {
    max-width: 100%;
    padding: 12px;
    border-radius: 5px;
    background: #fff;
    color: #1262ff;
    line-height: 1.55;
    font-size: 15px;
}
.system-text p { margin: 0 0 8px; }
.system-text .rule-title { margin-top: 18px; }
.rule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 8px;
}
.rule-grid span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.warn { color: #0b61e8; font-weight: 700; }
.chat-list {
    display: grid;
    gap: 14px;
    padding: 8px 64px 18px 12px;
}
.chat-empty {
    margin-left: 54px;
    padding: 12px;
    background: #fff;
    border-radius: 5px;
}
.bet-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
}
.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 5px;
    background: linear-gradient(180deg, #ffe99c, #ffcd58);
    color: #1a66c7;
    font-weight: 800;
    font-size: 13px;
}
.bet-content {
    padding: 9px 10px;
    border-radius: 5px;
    background: #fff;
    color: #2c3a50;
}
.bet-content header,
.bet-content footer,
.bet-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.bet-content header {
    padding-bottom: 8px;
    border-bottom: 1px dashed #d9dfeb;
}
.bet-content header strong { color: #2384ff; }
.bet-content header span { color: #4a4f5c; font-size: 13px; }
.bet-content header b { color: #135cff; }
.bet-line {
    min-height: 36px;
    color: #333;
    font-size: 15px;
}
.bet-line b { color: #145dff; }
.bet-content footer {
    color: #8c93a2;
    font-size: 13px;
}
.bet-content footer button {
    min-width: 90px;
    height: 31px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: #2b75f6;
    font-weight: 800;
}

.pro-mode {
    position: relative;
    min-height: calc(100vh - 238px);
    padding-left: 84px;
}
.pro-mode.active {
    padding-bottom: 80px;
}
.play-tabs {
    position: absolute;
    left: 0;
    top: 12px;
    display: grid;
    gap: 0;
    width: 84px;
    border-radius: 0 5px 5px 0;
    background: #fff;
    box-shadow: 1px 2px 8px rgba(37, 74, 128, .18);
    overflow: hidden;
}
.play-tabs button {
    position: relative;
    min-height: 54px;
    border: 0;
    border-bottom: 1px solid #edf1f7;
    background: #fff;
    color: #204d86;
    font-weight: 700;
}
.play-tabs button.active {
    color: #1f6cff;
    background: #f5f8ff;
}
.play-tabs button.active:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #2377ff;
}
.odds-board {
    padding: 12px 14px 158px 12px;
}
.odds-section {
    margin-bottom: 12px;
}
.odds-section h3 {
    margin: 0 0 7px;
    color: #314264;
    font-size: 14px;
    font-weight: 500;
}
.odds-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.odd-btn {
    min-width: 0;
    height: 44px;
    border: 1px solid #d7ddea;
    border-radius: 4px;
    background: #fff;
    color: #202b3e;
    box-shadow: 0 1px 2px rgba(42, 76, 126, .08);
}
.odd-btn b,
.odd-btn span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.odd-btn b { font-size: 16px; line-height: 19px; }
.odd-btn span { color: #385586; font-size: 12px; }
.odd-btn.active {
    border-color: #2e77ff;
    color: #fff;
    background: linear-gradient(180deg, #4092ff, #236bff);
}
.odd-btn.active span { color: #fff; }

.record-table-wrap {
    overflow: auto;
    background: #fff;
    border-top: 1px solid #d7e1ef;
}
.record-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}
.record-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 36px;
    padding: 0 5px;
    color: #fff;
    background: #1685ff;
    white-space: nowrap;
}
.record-table td {
    height: 31px;
    padding: 0 5px;
    border-bottom: 1px solid #edf1f5;
    color: #506078;
    text-align: center;
    white-space: nowrap;
}
.code-cell {
    min-width: 128px;
}
.mini-ball {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: #1970ff;
    background: #f8fbff;
    border: 2px solid #75aaff;
    font-weight: 800;
    vertical-align: middle;
}
.mini-ball.total {
    color: #fff;
    background: #2474ff;
    border-color: #2474ff;
}
.mini-op {
    display: inline-block;
    padding: 0 2px;
    color: #60708c;
}
.red { color: #e61d27; }
.blue { color: #1c68ff; }
.orange { color: #f29a00; }

.more-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 14px 12px;
}
.more-card button,
.game-item {
    min-height: 38px;
    border: 1px solid #d7e0ed;
    border-radius: 6px;
    background: #fff;
    color: #315078;
}
.more-card button {
    font-weight: 800;
}
.game-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 158px;
}
.game-item {
    min-width: 0;
    padding: 9px;
    text-align: left;
}
.game-item.active {
    border-color: #2675ff;
    background: #eef5ff;
}
.game-item strong,
.game-item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.game-item span {
    margin-top: 4px;
    color: #748098;
    font-size: 12px;
}

.float-actions {
    position: fixed;
    left: calc(50% + min(50vw, 215px) - 58px);
    bottom: 150px;
    z-index: 20;
    display: grid;
    gap: 14px;
    justify-items: center;
}
.float-btn,
.mode-btn {
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, #37a0ff, #1f71ff);
    box-shadow: 0 4px 10px rgba(26, 106, 255, .35);
}
.float-btn {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.float-btn span {
    width: 24px;
    height: 24px;
    background:
        linear-gradient(#fff,#fff) 0 0/9px 9px no-repeat,
        linear-gradient(#fff,#fff) 15px 0/9px 9px no-repeat,
        linear-gradient(#fff,#fff) 0 15px/9px 9px no-repeat,
        linear-gradient(#fff,#fff) 15px 15px/9px 9px no-repeat;
    border-radius: 3px;
}
.mode-btn {
    width: 58px;
    min-height: 54px;
    border-radius: 28px;
    padding: 7px 6px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}
.lottery-app.is-follow-mode .float-actions {
    bottom: 88px;
    gap: 10px;
}
.lottery-app.is-follow-mode .float-btn {
    width: 44px;
    height: 44px;
}
.lottery-app.is-follow-mode .mode-btn {
    width: 50px;
    min-height: 48px;
}

.bet-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 30;
    width: min(100vw, 430px);
    transform: translateX(-50%);
    padding: 12px;
    background: rgba(255, 255, 255, .96);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -6px 18px rgba(35, 60, 96, .12);
}
.follow-bet-panel {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 8px;
}
.follow-bet-panel input {
    min-width: 0;
    height: 44px;
    border: 0;
    border-radius: 5px;
    padding: 0 12px;
    background: #f1f1f3;
    color: #1d2f4a;
    outline: none;
}
.follow-bet-panel button {
    height: 44px;
    border: 0;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(180deg, #317eff, #1e62ff);
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 4px 8px rgba(37, 96, 209, .25);
}
.pro-bet-panel {
    display: none;
}
.bet-bar.is-pro {
    padding: 10px 14px 14px;
    background: #eef2fb;
    border-top: 1px solid #c3d0e7;
    border-radius: 0;
    box-shadow: 0 -7px 18px rgba(35, 60, 96, .14);
}
.bet-bar.is-pro .follow-bet-panel {
    display: none;
}
.bet-bar.is-pro .pro-bet-panel {
    display: grid;
    gap: 8px;
}
.pro-bet-top {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 82px;
    align-items: center;
    gap: 8px;
}
.pro-edit-btn {
    position: relative;
    width: 40px;
    height: 36px;
    border: 1px solid #8d9ccd;
    border-radius: 4px;
    background: linear-gradient(180deg, #f8faff, #e5ebf8);
}
.pro-edit-btn:before {
    content: "";
    position: absolute;
    left: 13px;
    top: 9px;
    width: 13px;
    height: 18px;
    border: 2px solid #7d8bbd;
    border-top: 0;
    transform: skew(-7deg);
}
.pro-edit-btn:after {
    content: "";
    position: absolute;
    left: 20px;
    top: 8px;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: #7d8bbd;
    transform: rotate(45deg);
}
.chip-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
}
.chip-btn {
    position: relative;
    justify-self: center;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #82b3ff;
    border-radius: 50%;
    color: #276cff;
    background:
        radial-gradient(circle, #f8fbff 0 35%, transparent 36%),
        conic-gradient(#2f78ff 0 10%, #fff 10% 20%, #2f78ff 20% 30%, #fff 30% 40%, #2f78ff 40% 50%, #fff 50% 60%, #2f78ff 60% 70%, #fff 70% 80%, #2f78ff 80% 90%, #fff 90% 100%);
    box-shadow: 0 2px 5px rgba(28, 94, 210, .22);
}
.chip-btn b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef5ff;
    font-size: 11px;
}
.chip-btn.active:after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -5px;
    height: 2px;
    border-radius: 2px;
    background: #256fff;
}
.pro-amount-input {
    width: 82px;
    height: 38px;
    border: 1px solid #7d8291;
    border-radius: 4px;
    padding: 0 8px;
    background: #f9fbff;
    color: #344056;
    text-align: center;
    outline: none;
}
.pro-bet-summary {
    justify-self: center;
    min-width: 226px;
    max-width: 100%;
    min-height: 22px;
    padding: 3px 10px;
    border-radius: 3px;
    background: #2d78ff;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}
.pro-bet-actions {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
}
.pro-clear-btn,
.pro-submit-btn {
    height: 55px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-weight: 900;
}
.pro-clear-btn {
    background: #b4c0cf;
    font-size: 16px;
}
.pro-submit-btn {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;
    background: #2f75ff;
    box-shadow: none;
}
.pro-submit-btn strong {
    font-size: 20px;
    line-height: 22px;
}
.pro-submit-btn span {
    font-size: 13px;
    line-height: 16px;
    font-weight: 500;
}

.amount-sheet-mask {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, .62);
}
.amount-sheet-mask.show {
    display: flex;
}
.amount-sheet {
    position: relative;
    width: min(100vw, 430px);
    background: #fff;
    box-shadow: 0 -8px 22px rgba(18, 31, 54, .2);
}
.amount-sheet-summary {
    position: absolute;
    left: 50%;
    top: -18px;
    z-index: 1;
    min-width: 226px;
    max-width: calc(100% - 96px);
    min-height: 22px;
    padding: 3px 10px;
    border-radius: 5px 5px 0 0;
    border: 3px solid #fff;
    border-bottom: 0;
    background: #2d78ff;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    transform: translateX(-50%);
}
.amount-sheet-head {
    position: relative;
    display: grid;
    place-items: center;
    height: 40px;
    background: #2f69ff;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
}
.amount-sheet-close {
    position: absolute;
    right: 14px;
    top: 8px;
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 50%;
    background: transparent;
}
.amount-sheet-close:before,
.amount-sheet-close:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 11px;
    width: 14px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
}
.amount-sheet-close:before {
    transform: rotate(45deg);
    transform-origin: right center;
}
.amount-sheet-close:after {
    transform: rotate(-45deg);
    transform-origin: left center;
}
.amount-sheet-body {
    display: grid;
    gap: 22px;
    padding: 14px 20px 18px;
}
.amount-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}
.amount-option {
    height: 40px;
    border: 0;
    border-radius: 5px;
    background: #e8edf7;
    color: #3d4858;
    font-size: 17px;
}
.amount-option.active {
    color: #fff;
    background: #2f75ff;
}
.amount-sheet-actions {
    display: grid;
    grid-template-columns: 110px 100px;
    justify-content: space-between;
    align-items: center;
    padding: 0 52px 0 44px;
}
.amount-default-btn,
.amount-save-btn {
    height: 38px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}
.amount-default-btn {
    background: #9facc0;
}
.amount-save-btn {
    background: #2f7cff;
}

.empty {
    color: #738198;
    font-size: 14px;
    line-height: 1.5;
}
.bet-record-modal {
    position: fixed;
    inset: 0;
    z-index: 72;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(23, 33, 53, .48);
}
.bet-record-modal.show {
    display: flex;
}
.bet-record-dialog {
    width: min(100vw, 430px);
    max-height: min(74vh, 620px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #eef2fb;
    box-shadow: 0 -12px 28px rgba(25, 47, 82, .24);
}
.bet-record-head {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 46px;
    background: #2f75ff;
    color: #fff;
}
.bet-record-head strong {
    font-size: 18px;
}
.bet-record-close {
    position: absolute;
    right: 12px;
    top: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 26px;
    line-height: 26px;
}
.bet-record-sub {
    padding: 9px 14px;
    border-bottom: 1px solid #d5dfef;
    color: #667394;
    background: #f8fbff;
    font-size: 13px;
}
.bet-record-list {
    display: grid;
    gap: 8px;
    padding: 10px 10px 16px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.bet-record-empty {
    padding: 34px 12px;
    color: #748098;
    text-align: center;
}
.bet-record-item {
    display: grid;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid #d9e2f0;
    border-radius: 7px;
    background: #fff;
    color: #2e3e59;
    box-shadow: 0 2px 6px rgba(38, 76, 130, .08);
}
.bet-record-item header,
.bet-record-item footer,
.bet-record-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.bet-record-item header strong {
    min-width: 0;
    overflow: hidden;
    color: #174079;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bet-record-item header span {
    flex: none;
    padding: 2px 8px;
    border-radius: 12px;
    color: #2368ff;
    background: #edf4ff;
    font-size: 12px;
    font-weight: 800;
}
.bet-record-main {
    color: #202b3e;
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}
.bet-record-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
}
.bet-record-meta span {
    padding: 3px 8px;
    border-radius: 4px;
    background: #eef3fb;
    color: #315178;
    font-size: 12px;
}
.bet-record-item footer {
    color: #8b95a8;
    font-size: 11px;
}
.bet-record-item footer span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.toast {
    position: fixed;
    left: 50%;
    bottom: 164px;
    z-index: 50;
    max-width: min(360px, calc(100vw - 40px));
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(20, 32, 52, .88);
    color: #fff;
    font-size: 14px;
    text-align: center;
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    transition: .18s ease;
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 360px) {
    .issue-card { grid-template-columns: 38% 1fr; padding-left: 6px; padding-right: 6px; }
    .countdown-digits { grid-template-columns: repeat(3, 30px); gap: 4px; }
    .countdown-digits b { height: 31px; font-size: 18px; }
    .result-ball { width: 24px; height: 24px; font-size: 13px; }
    .latest-title { font-size: 12px; }
    .main-tabs { gap: 6px; }
    .odds-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .float-actions { left: auto; right: 8px; }
    .bet-bar.is-pro { padding: 8px 10px 12px; }
    .pro-bet-top { grid-template-columns: 38px minmax(0, 1fr) 76px; gap: 6px; }
    .chip-row { gap: 3px; }
    .chip-btn { width: 36px; height: 36px; }
    .chip-btn b { width: 22px; height: 22px; font-size: 10px; }
    .pro-amount-input { width: 76px; }
    .pro-bet-actions { grid-template-columns: 66px 1fr; gap: 10px; }
    .pro-submit-btn strong { font-size: 18px; }
    .amount-sheet-body { padding-left: 12px; padding-right: 12px; }
    .amount-options { gap: 6px; }
    .amount-option { height: 38px; font-size: 16px; }
    .amount-sheet-actions {
        grid-template-columns: 108px 98px;
        padding: 0 38px 0 30px;
    }
}

@media (min-width: 431px) {
    .float-actions { left: calc(50% + 157px); }
}
