/* TRX WinGo — ticket, history, and chart matched to the reference screen */
body.player-theme.trx-page,
body.player-theme.trx-page .mian.game {
    background: #070b09 !important;
}

body.player-theme.trx-page .mian.game {
    padding-bottom: 56px;
}

body.player-theme.trx-page .trx-times .trx-tab-icon {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain;
    opacity: 1;
    filter: none;
}

/* Ticket — user's scalloped green panel (698×375, transparent notches) */
body.player-theme.trx-page .game-betting .content .time-box.trx-ticket {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 698 / 375;
    margin: 8px 0 10px !important;
    padding: 0.28rem 0.4rem 0.62rem !important;
    overflow: visible !important;
    background: transparent url(/dm1/game/trx-ticket-bg.png?v=2) center / 100% 100% no-repeat !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.player-theme.trx-page .trx-ticket:after {
    display: none !important;
    content: none !important;
}

body.player-theme.trx-page .trx-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.player-theme.trx-page .trx-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

body.player-theme.trx-page .trx-pill svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

body.player-theme.trx-page .trx-pill.how-play {
    position: static !important;
    width: auto !important;
    height: 28px !important;
    background: #111 !important;
    border-color: #111 !important;
    border-radius: 8px !important;
}

body.player-theme.trx-page .trx-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 12px;
}

body.player-theme.trx-page .trx-ticket .info,
body.player-theme.trx-page .trx-ticket .out {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    align-items: center;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
    background: transparent !important;
}

body.player-theme.trx-page .trx-ticket .info {
    flex: 1;
    min-width: 0;
}

body.player-theme.trx-page .trx-ticket .info .number {
    position: static !important;
    height: auto !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap;
    line-height: 1.2 !important;
    text-align: left;
    letter-spacing: 0;
}

body.player-theme.trx-page .trx-draw {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

body.player-theme.trx-page .trx-ticket .out .txt {
    display: none !important;
}

body.player-theme.trx-page .trx-ticket .out .number {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    height: auto !important;
    margin: 0 !important;
}

body.player-theme.trx-page .trx-ticket .out .number .item,
body.player-theme.trx-page .trx-ticket .out .number .item:first-child,
body.player-theme.trx-page .trx-ticket .out .number .item:last-child,
body.player-theme.trx-page .trx-ticket .out .number .item:nth-child(3) {
    width: 18px !important;
    height: 24px !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    clip-path: none !important;
}

body.player-theme.trx-page .trx-ticket .out .number .item:nth-child(3) {
    width: 8px !important;
    background: transparent !important;
    color: #fff !important;
}

body.player-theme.trx-page .trx-hash-balls {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding: 0 6px 4px;
}

body.player-theme.trx-page .trx-hball {
    display: block;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

body.player-theme.trx-page .trx-hball--empty {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Bet panel */
body.player-theme.trx-page .game-betting .content .box {
    margin-top: 8px;
    padding: 12px 10px 14px !important;
    border-radius: 16px;
    background: #0e241b !important;
    background-color: #0e241b !important;
    box-shadow: inset 0 0 0 1px #1e4634;
}

body.player-theme.trx-page .color-box {
    gap: 10px;
}

body.player-theme.trx-page .color-box .btn {
    height: 40px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 40px !important;
}

body.player-theme.trx-page .color-box .green {
    background: #22c55e !important;
    border-radius: 8px !important;
}

body.player-theme.trx-page .color-box .violet {
    background: #c084fc !important;
    border-radius: 8px !important;
}

body.player-theme.trx-page .color-box .red {
    background: #fb7185 !important;
    border-radius: 8px !important;
}

body.player-theme.trx-page .number-box {
    margin-top: 12px !important;
    padding: 14px 10px 6px !important;
    border-radius: 16px;
    background: #071510 !important;
    box-shadow: inset 0 0 0 1px #143028;
}

body.player-theme.trx-page .random-box {
    margin-top: 12px !important;
}

body.player-theme.trx-page .random-box .random {
    flex: 0 0 86px;
    height: 36px !important;
    border-radius: 10px !important;
    border: 1px solid #e7c56a !important;
    background: transparent !important;
    color: #f3d27a !important;
}

body.player-theme.trx-page .random-box .item {
    height: 34px !important;
    text-transform: lowercase;
    border-radius: 8px !important;
    background: #141a17 !important;
    color: #d7e6de !important;
    font-size: 13px !important;
    line-height: 34px !important;
}

body.player-theme.trx-page .random-box .item.active {
    background: #1c2822 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px #3d5c4a;
}

body.player-theme.trx-page .btn-box {
    gap: 0 !important;
    margin-top: 12px !important;
    overflow: hidden;
    border-radius: 999px;
}

body.player-theme.trx-page .btn-box .item {
    height: 44px !important;
    border-radius: 0 !important;
    font-size: 18px !important;
}

body.player-theme.trx-page .btn-box .yellow {
    background: linear-gradient(180deg, #ffc14d, #f0a020) !important;
    border-radius: 999px 0 0 999px !important;
}

body.player-theme.trx-page .btn-box .green {
    background: linear-gradient(180deg, #8ecbff, #4aa3ef) !important;
    border-radius: 0 999px 999px 0 !important;
}

/* History tabs — Chart sits between Game history and My history */
body.player-theme.trx-page .game-list .tab .li:nth-child(1) { order: 1; }
body.player-theme.trx-page .game-list .tab .li:nth-child(2) { order: 3; }
body.player-theme.trx-page .game-list .tab .li:nth-child(3) { order: 2; }

body.player-theme.trx-page .game-list .tab .li .txt {
    border-radius: 12px !important;
    background: #123528 !important;
    border: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
}

body.player-theme.trx-page .game-list .tab .li .txt.action {
    background: #f3d27a !important;
    color: #3a2a08 !important;
}

body.player-theme.trx-page .game-list .list {
    background: #0c3b2c !important;
    border: 0 !important;
    border-radius: 12px;
}

body.player-theme.trx-page .game-list .list .wrap,
body.player-theme.trx-page .game-list .list .hb,
body.player-theme.trx-page .game-list .con-box,
body.player-theme.trx-page .game-list .list-fooder {
    background: transparent !important;
    background-color: transparent !important;
}

body.player-theme.trx-page .trx-hhead,
body.player-theme.trx-page .game-list .con-box .hb .trx-hrow {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 0 !important;
    width: 100%;
    margin: 0 !important;
    box-sizing: border-box;
}

body.player-theme.trx-page .game-list .list .wrap {
    padding: 8px 6px 4px !important;
    background: transparent !important;
}

body.player-theme.trx-page .trx-hhead .trx-hcell {
    color: #f3d27a !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

body.player-theme.trx-page .game-list .con-box .hb .trx-hrow {
    min-height: 42px;
    padding: 0 6px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: clamp(10px, 2.9vw, 12px);
    font-weight: 600;
}

body.player-theme.trx-page .trx-hcell {
    min-width: 0;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

body.player-theme.trx-page .trx-hrow .trx-hcell {
    white-space: nowrap;
}

body.player-theme.trx-page .trx-hcell.height {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

body.player-theme.trx-page .trx-hcell.result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

body.player-theme.trx-page .trx-q {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px 8px 8px 2px;
    background: #fb7185;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
    cursor: help;
}

body.player-theme.trx-page .trx-rball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
}

body.player-theme.trx-page .trx-rball.red { background: #f43f5e; }
body.player-theme.trx-page .trx-rball.green { background: #22c55e; }
body.player-theme.trx-page .trx-rball.violet {
    background: linear-gradient(135deg, #a855f7 50%, #f43f5e 50%);
}

body.player-theme.trx-page .trx-bs.s { color: #7dd3fc; }
body.player-theme.trx-page .trx-bs.b { color: #f5c451; }

body.player-theme.trx-page .game-list .page-nav {
    margin: 0 !important;
    padding: 12px 0 14px;
    background: #10281f !important;
    border-radius: 0 0 12px 12px;
}

body.player-theme.trx-page .game-list .page-nav .number {
    color: #f3d27a !important;
    font-weight: 800;
}

body.player-theme.trx-page .game-list .page-nav .arr {
    width: 42px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: #16a34a !important;
}

body.player-theme.trx-page .game-list .page-nav .arr.block-click {
    background: #1a2e26 !important;
}

/* Chart */
body.player-theme.trx-page .trx-chart {
    margin-top: 10px;
    padding: 12px 8px 16px;
    border-radius: 12px;
    background: #0c3b2c;
    color: #fff;
}

body.player-theme.trx-page .trx-stats-title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 800;
}

body.player-theme.trx-page .trx-stats-row {
    display: grid;
    grid-template-columns: 118px 1fr;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
}

body.player-theme.trx-page .trx-stats-row > span {
    color: #f3d27a;
    font-weight: 700;
}

body.player-theme.trx-page .trx-stats-row > div {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    text-align: center;
    font-weight: 700;
}

body.player-theme.trx-page .trx-trend {
    position: relative;
    margin-top: 12px;
}

body.player-theme.trx-page .trx-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

body.player-theme.trx-page .trx-trend-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr 22px;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
}

body.player-theme.trx-page .trx-trend-row .per {
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.player-theme.trx-page .trx-trend-row .dots {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    justify-items: center;
}

body.player-theme.trx-page .trx-trend-row .dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.55);
    font-style: normal;
    font-size: 9px;
    background: transparent;
}

body.player-theme.trx-page .trx-trend-row .dot.on {
    border: 0;
    color: #fff;
    font-weight: 800;
}

body.player-theme.trx-page .trx-trend-row .dot.on.red { background: #f43f5e; }
body.player-theme.trx-page .trx-trend-row .dot.on.green { background: #22c55e; }
body.player-theme.trx-page .trx-trend-row .dot.on.violet { background: #c084fc; }

body.player-theme.trx-page .trx-trend-row .bs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

body.player-theme.trx-page .trx-trend-row .bs.s { background: #3b82f6; }
body.player-theme.trx-page .trx-trend-row .bs.b { background: #eab308; color: #1a1404; }

body.player-theme.trx-page .game-betting .content .time-box.trx-ticket .info,
body.player-theme.trx-page .game-betting .content .time-box.trx-ticket .out {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    width: auto !important;
    height: auto !important;
    pointer-events: none;
}

body.player-theme.trx-page .game-betting .content .time-box.trx-ticket .info .number {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    height: auto !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-align: left;
    white-space: nowrap;
}

body.player-theme.trx-page .game-betting .content .time-box.trx-ticket .out .number {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
}

body.player-theme.trx-page .game-betting .content .time-box.trx-ticket .out .number .item,
body.player-theme.trx-page .game-betting .content .time-box.trx-ticket .out .number .item:first-child,
body.player-theme.trx-page .game-betting .content .time-box.trx-ticket .out .number .item:last-child,
body.player-theme.trx-page .game-betting .content .time-box.trx-ticket .out .number .item:nth-child(3) {
    width: 18px !important;
    height: 24px !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #111 !important;
    clip-path: none !important;
}

body.player-theme.trx-page .game-betting .content .time-box.trx-ticket .out .number .item:nth-child(3) {
    width: 8px !important;
    background: transparent !important;
    color: #fff !important;
}

body.player-theme.trx-page .game-betting .content .time-box.trx-ticket .how-play {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: 28px !important;
    background: #111 !important;
    border-radius: 8px !important;
}

/* PNG is 1010×1024 with transparent padding. Fit the glossy art inside the card. */
body.player-theme .home .gameList .item.trx-home-card .info.i3 .img {
    width: 128px !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 1010 / 1024 !important;
    object-fit: contain !important;
    top: -30px;
    right: -10px;
}
