:root {
    --lightningcss-light: ;
    --lightningcss-dark: initial;
    color-scheme: dark;
    --background: #091411;
    --foreground: #eee9da;
    --card: #12231d;
    --primary: #d9b96f;
    --muted: #93a69a;
    --line: #ffffff16;
    --jade: #60c49b;
    --gold: #dfbb72;
    --red: #e08068
}

* {
    box-sizing: border-box
}

body {
    background: var(--background);
    color: var(--foreground);
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45
}

button, input, select {
    font: inherit
}

button, a, input, select {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer;
    color: inherit
}

button:disabled {
    cursor: not-allowed;
    opacity: .45
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px
}

button {
    transition: background .18s, transform .18s, border-color .18s
}

button:hover:not(:disabled) {
    filter: brightness(1.12)
}

a {
    color: inherit;
    text-decoration: none
}

main {
    max-width: 1220px;
    margin: auto;
    padding: 0 36px
}

.topbar {
    justify-content: space-between;
    align-items: center;
    height: 94px;
    display: flex
}

.wordmark {
    letter-spacing: 3px;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex
}

.wordmark small {
    letter-spacing: 2.8px;
    color: var(--muted);
    margin-top: 3px;
    font-size: 10px;
    display: block
}

.seal {
    width: 40px;
    height: 40px;
    color: var(--gold);
    border: 1px solid #c7a564;
    border-radius: 7px;
    place-items: center;
    font-size: 24px;
    display: grid;
    transform: rotate(-5deg)
}

.top-actions {
    align-items: center;
    gap: 9px;
    display: flex
}

.top-actions button, #dragon-tiger-root .close {
    border: 1px solid var(--line);
    background: 0 0;
    border-radius: 50%;
    place-items: center;
    width: 38px;
    height: 38px;
    display: grid
}

.free-label {
    letter-spacing: 1.4px;
    color: var(--muted);
    margin-right: 16px;
    font-size: 11px
}

.game {
    background: radial-gradient(at 50% 28%, #24524180, #0000 65%), #12271f;
    border: 1px solid #8e9b6745;
    border-radius: 24px;
    padding: 26px 32px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 65px #0003
}

.game:before {
    content: "";
    pointer-events: none;
    border: 1px solid #ae9a6030;
    border-radius: 18px;
    position: absolute;
    inset: 8px
}

.table-top {
    justify-content: space-between;
    align-items: center;
    display: flex;
    position: relative
}

.eyebrow {
    letter-spacing: 2px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600
}

h1 {
    letter-spacing: -1px;
    margin: 6px 0 0;
    font-family: Georgia, Times New Roman, serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.2
}

h1 em {
    color: var(--gold);
    margin: 0 3px;
    font-size: .8em;
    font-weight: 400
}

.wallet {
    text-align: right
}

.wallet > span {
    letter-spacing: 1.7px;
    color: var(--muted);
    font-size: 10px;
    display: block
}

.wallet strong {
    color: #f4ddaa;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.25;
    display: flex
}

.wallet small {
    color: var(--muted);
    font-size: 12px
}

.arena {
    grid-template-columns:1fr 310px 1fr;
    align-items: center;
    gap: 18px;
    padding: 16px 0 10px;
    display: grid
}

.avatar {
    vertical-align: middle;
    background-color: #143b31;
    background-image: url(/ext-playff-games/dragon-tiger/avatars.png);
    background-size: 500% 400%;
    border-radius: 50%;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-block
}

.contender {
    text-align: center
}

.mascot {
    border-radius: 50%;
    width: 132px;
    height: 132px;
    transform: scale(1.15);
    -webkit-mask-image: radial-gradient(#000 58%, #0000 72%);
    mask-image: radial-gradient(#000 58%, #0000 72%)
}

.contender .eyebrow {
    letter-spacing: 2.5px;
    margin-top: 10px;
    font-size: 12px;
    display: block
}

.dragon .eyebrow {
    color: #96daba
}

.tiger .eyebrow {
    color: #e9ac87
}

.contender p {
    color: #b1c0ae;
    margin: 5px 0;
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic
}

.cards {
    justify-content: center;
    align-items: center;
    gap: 18px;
    display: flex
}

.cards > div:not(.versus) {
    text-align: center
}

.cards > div > span {
    color: #adb6a7;
    letter-spacing: 2px;
    margin-top: 12px;
    font-size: 10px;
    display: block
}

.versus {
    color: #cdb37990;
    font: italic 18px Georgia, serif
}

.playing-card {
    border-radius: 10px;
    width: 114px;
    height: 159px;
    position: relative;
    box-shadow: 0 12px 22px #0004
}

.back {
    background: #dbc99b;
    border: 1px solid #fff7;
    padding: 7px
}

.card-pattern {
    background: repeating-linear-gradient(45deg, #294c3f 0 2px, #1a382d 2px 8px);
    border: 1px solid #c6ad6d;
    border-radius: 5px;
    place-items: center;
    height: 100%;
    display: grid
}

.card-pattern span {
    color: #cfb376;
    background: #1a382d;
    border: 1px solid #b69a5d;
    border-radius: 50%;
    outline: 5px solid #1e3c30;
    width: 64px;
    height: 88px;
    padding: 12px 0;
    font-family: serif;
    font-size: 23px;
    line-height: 1.25
}

.face {
    color: #172a24;
    background: #faf5e7;
    animation: .4s ease-out flip
}

.face.red {
    color: #b34539
}

.corner {
    font: 23px/1 Georgia, serif;
    position: absolute;
    top: 7px;
    left: 10px
}

.corner small {
    text-align: center;
    margin-top: 2px;
    font-size: 16px;
    display: block
}

.corner.bottom {
    inset: auto 10px 7px auto;
    transform: rotate(180deg)
}

.pip {
    place-items: center;
    height: 100%;
    font-size: 59px;
    display: grid
}

.round-status {
    text-align: center;
    color: #cbcfbd;
    min-height: 35px;
    margin: 8px 0;
    font-size: 14px
}

.round-status.winning {
    color: #e9ce8c;
    font-weight: 600
}

.bet-layout {
    grid-template-columns:1fr .78fr 1fr;
    gap: 12px;
    display: grid
}

.bet {
    text-align: left;
    background: #204b3c80;
    border: 1px solid #6baf8c70;
    border-radius: 12px;
    min-height: 136px;
    padding: 15px 20px 12px;
    position: relative
}

.bet.tiger {
    background: #74403140;
    border-color: #cd836255
}

.bet.tie {
    background: #8d7c3022;
    border-color: #ccb07160
}

.bet > div:first-child {
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    display: flex
}

.bet-name {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #b7e9cf;
    font-size: 15px;
    font-weight: 600
}

.bet.tiger .bet-name {
    color: #f0b197
}

.bet.tie .bet-name {
    color: #e6cb8c
}

.odds {
    color: #b8c7b3;
    font-size: 12px
}

.bet-chips {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 55px;
    display: flex
}

.chip-stack {
    color: #273829;
    background: radial-gradient(circle, #e6d39d 52%, #a78b4c 53%, #d4bb7c 62%, #806837 64%, #dcc897 73%);
    border: 3px dashed #594e31aa;
    border-radius: 50%;
    min-width: 55px;
    min-height: 55px;
    padding: 13px 5px;
    font-size: 14px;
    font-weight: 700;
    animation: .25s ease-out chipIn;
    box-shadow: 0 3px #a99359, 0 6px #6f603c, 0 10px 12px #0006
}

.bet-chips small {
    letter-spacing: 1px;
    color: #dccb92;
    font-size: 9px
}

.bet-hint {
    color: #adc2af;
    margin-top: 4px;
    font-size: 11px;
    display: block
}

.empty-spot {
    color: #ffffff40;
    border: 1px dashed #ffffff29;
    border-radius: 50%;
    place-items: center;
    width: 40px;
    height: 40px;
    font-size: 22px;
    font-weight: 200;
    display: grid
}

.bet.won {
    border-color: var(--gold);
    box-shadow: inset 0 0 22px #dabc4a13
}

.suited-bet {
    letter-spacing: 1px;
    color: #b8c0a7;
    background: #00000012;
    border: 1px solid #a9a77930;
    border-radius: 8px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 11px;
    display: flex
}

.suited-bet small {
    color: var(--gold);
    margin-left: 12px;
    font-size: 11px
}

.suited-bet > span:last-child {
    letter-spacing: 0;
    font-size: 12px
}

.plus {
    color: var(--gold);
    margin-left: 12px;
    font-size: 16px
}

.suited-bet.active {
    border-color: var(--gold);
    color: #efdcad
}

.controls {
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 21px 0 20px;
    display: flex
}

.chip-picker {
    gap: 15px;
    padding: 0 5px;
    display: flex
}

.chip {
    outline-offset: 1px;
    background: #4e7467;
    border: 4px dashed #fff7;
    border-radius: 50%;
    outline: 1px solid #ffffff30;
    width: 51px;
    height: 51px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px #0002, 0 4px #0003
}

.chip-1 {
    background: #8f514c
}

.chip-2 {
    background: #466985
}

.chip-3 {
    background: #755484
}

.chip.selected {
    outline-offset: 5px;
    outline: 2px solid #f0d590;
    transform: translateY(-3px)
}

.deal-actions {
    align-items: center;
    gap: 22px;
    display: flex
}

.clear {
    color: #b7c0ac;
    background: 0 0;
    border: none;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    display: flex
}

.deal {
    color: #17261c;
    background: linear-gradient(120deg, #e7cf93, #c4a45e);
    border: 1px solid #f4dfac;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    gap: 34px;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    box-shadow: 0 4px 12px #0002
}

.table-footer {
    color: #9aab9a;
    border-top: 1px solid #ffffff12;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 0 17px;
    font-size: 10px;
    display: flex
}

.table-footer strong {
    color: #e1d5b5;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500
}

.table-footer button {
    color: #c8b67e;
    background: 0 0;
    border: none;
    padding: 0;
    font-size: 11px
}

.history {
    align-items: center;
    gap: 20px;
    min-height: 25px;
    margin: 17px 0 27px;
    display: flex
}

.history > span {
    letter-spacing: 1.3px;
    color: #829889;
    white-space: nowrap;
    font-size: 10px
}

.history > span:last-child {
    letter-spacing: .5px;
    margin-left: auto
}

.history > div {
    gap: 5px;
    display: flex;
    overflow: hidden
}

.history small {
    color: #6f8777;
    font-size: 12px
}

.history b {
    border-radius: 50%;
    flex-shrink: 0;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: 10px;
    display: grid
}

.history b.dragon {
    color: #9fe2bf;
    background: #204f3d
}

.history b.tiger {
    color: #f3b097;
    background: #62392f
}

.history b.tie {
    color: #e5cd81;
    background: #6b5b28
}

.section-heading {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    display: flex
}

.section-heading > div {
    align-items: center;
    gap: 9px;
    display: flex
}

.section-heading svg {
    color: var(--gold)
}

h2 {
    margin: 12px 0 18px;
    font: 400 30px/1.15 Georgia, serif
}

.section-heading h2 {
    margin: 0;
    font: 400 22px Georgia, serif
}

.section-heading > div > span {
    color: #96a294;
    letter-spacing: 1px;
    border: 1px solid #ffffff19;
    border-radius: 4px;
    margin-left: 8px;
    padding: 3px 6px;
    font-size: 9px
}

.section-heading > button {
    color: #d2bd8b;
    background: 0 0;
    border: none;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    display: flex
}

.leaders {
    grid-template-rows:repeat(2, auto);
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap: 8px;
    display: grid
}

.leader {
    background: #12231bd0;
    border: 1px solid #ffffff0e;
    border-radius: 8px;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 12px 10px;
    display: flex
}

.rank {
    color: #b99f69;
    min-width: 15px;
    font-size: 12px
}

.leader > div {
    min-width: 0
}

.leader strong {
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    display: block;
    overflow: hidden
}

.leader div > span {
    color: #d3c193;
    margin-top: 3px;
    font-size: 12px;
    display: block
}

.leader small {
    color: #738b79;
    font-size: 10px
}

.leader.vacant {
    opacity: .52;
    min-height: 70px
}

.vacant strong {
    color: #a5b5a5
}

.vacant div > span {
    color: #879989;
    font-size: 10px
}

.leader-note {
    color: #829080;
    margin: 12px 0 26px;
    font-size: 11px
}

#dragon-tiger-root .page-footer {
    color: #778e7e;
    border-top: 1px solid #ffffff12;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 21px 0 25px;
    font-size: 10px;
    display: flex
}

#dragon-tiger-root .page-footer i {
    color: #b19c69;
    margin: 0 8px;
    font-style: normal
}

#dragon-tiger-root .page-footer a {
    color: #97a991
}

.error, .notice, .celebration {
    color: #ffe0bd;
    background: #553529;
    border: 1px solid #c9896860;
    border-radius: 8px;
    margin: 12px 0;
    padding: 12px 15px;
    font-size: 14px
}

.error button, .notice button {
    color: #fff0c9;
    background: 0 0;
    border: none;
    font-size: 14px;
    text-decoration: underline
}

.celebration {
    color: #e2d99c;
    background: #2e492b;
    border-color: #b3a55640
}

.notice {
    background: #33462b
}

#dragon-tiger-root dialog {
    color: var(--foreground);
    background: #11271f;
    border: 1px solid #9d99604a;
    border-radius: 18px;
    width: 100%;
    max-width: min(520px, 100vw - 32px);
    max-height: 90dvh;
    padding: 0;
    box-shadow: 0 35px 110px #000a
}

#dragon-tiger-root dialog::backdrop {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: #020b08ba
}

#dragon-tiger-root .modal {
    padding: 34px;
    position: relative
}

#dragon-tiger-root .close {
    color: #aec0ae;
    border: none;
    position: absolute;
    top: 15px;
    right: 15px
}

#dragon-tiger-root .modal p {
    color: #afc0ad;
    margin: 14px 0;
    font-size: 14px;
    line-height: 1.6
}

.join-modal h2 {
    margin: 10px 0 12px;
    font-size: 36px
}

.join-modal p {
    max-width: 340px
}

#dragon-tiger-root .modal label {
    color: #d6dfcb;
    margin-bottom: 8px;
    font-size: 13px;
    display: block
}

#dragon-tiger-root .modal input:not([type=checkbox]), #dragon-tiger-root .modal select {
    color: #f2eddb;
    background: #071b13;
    border: 1px solid #798b664d;
    border-radius: 7px;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px
}

.avatar-label {
    justify-content: space-between;
    align-items: center;
    margin: 21px 0 10px;
    display: flex
}

.avatar-label label {
    margin: 0
}

.avatar-label > span {
    color: #ccba87;
    font-size: 11px
}

.avatar-grid {
    grid-template-columns:repeat(5, 1fr);
    gap: 10px;
    display: grid
}

.avatar-grid button {
    aspect-ratio: 1;
    background: 0 0;
    border: 2px solid #0000;
    border-radius: 13px;
    padding: 0;
    position: relative;
    overflow: hidden
}

.avatar-grid button.chosen {
    border-color: #e6c17b;
    box-shadow: 0 0 0 3px #d7b06018
}

.avatar-grid .avatar {
    border-radius: 9px;
    width: 100%;
    height: 100%
}

.avatar-grid svg {
    color: #163a25;
    background: #e6c17b;
    border-radius: 50%;
    padding: 1px;
    position: absolute;
    bottom: 2px;
    right: 2px
}

.join-button {
    width: 100%;
    margin-top: 24px
}

.privacy {
    text-align: center;
    color: #94a68f;
    margin-top: 12px;
    font-size: 10px;
    display: block
}

.payout-row {
    border-bottom: 1px solid #ffffff15;
    justify-content: space-between;
    padding: 13px 0;
    font-size: 14px;
    display: flex
}

.payout-row strong {
    color: var(--gold)
}

#dragon-tiger-root .modal a {
    color: var(--gold);
    font-size: 14px
}

.all-scores {
    gap: 8px;
    max-height: 50vh;
    display: grid;
    overflow: auto
}

.all-scores .leader strong {
    font-size: 15px
}

.all-scores .leader div > span {
    font-size: 14px
}

#dragon-tiger-root .modal .toggle {
    border-bottom: 1px solid #ffffff18;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 0;
    display: flex
}

.toggle input {
    accent-color: #d6b778;
    width: 19px;
    height: 19px
}

.toggle span {
    font-size: 14px
}

#dragon-tiger-root .modal select {
    margin-bottom: 10px
}

@keyframes flip {
    0% {
        transform: perspective(700px) rotateY(85deg)
    }
    to {
        transform: perspective(700px) rotateY(0)
    }
}

@keyframes chipIn {
    0% {
        opacity: 0;
        transform: translateY(-12px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (width >= 1400px) {
    main {
        padding-top: 15px
    }

    .arena {
        padding: 23px 0 18px
    }

    .game {
        padding-top: 30px
    }

    .mascot {
        width: 150px;
        height: 150px
    }
}

@media (width <= 900px) {
    main {
        padding: 0 22px
    }

    .arena {
        grid-template-columns:1fr 270px 1fr;
        gap: 8px
    }

    .mascot {
        width: 110px;
        height: 110px
    }

    .game {
        padding: 22px 24px 0
    }

    .contender p {
        font-size: 12px
    }

    .leader {
        gap: 6px;
        padding: 10px 6px
    }

    .leader .avatar {
        width: 25px;
        height: 25px
    }

    .leader strong {
        font-size: 11px
    }

    .rank {
        min-width: 12px;
        font-size: 10px
    }

    .leader div > span {
        font-size: 10px
    }
}

@media (width <= 650px) {
    main {
        padding: 0 12px
    }

    .topbar {
        height: 76px;
        padding: 0 4px
    }

    .wordmark {
        letter-spacing: 2px;
        font-size: 12px
    }

    .wordmark small {
        font-size: 9px
    }

    .seal {
        width: 34px;
        height: 34px;
        font-size: 21px
    }

    .free-label {
        display: none
    }

    .top-actions {
        gap: 5px
    }

    .top-actions button {
        width: 33px;
        height: 33px
    }

    .game {
        border-radius: 18px;
        padding: 20px 15px 0
    }

    .game:before {
        border-radius: 13px;
        inset: 6px
    }

    h1 {
        font-size: 29px
    }

    .eyebrow {
        letter-spacing: 1.5px;
        font-size: 9px
    }

    .wallet strong {
        font-size: 23px
    }

    .wallet small {
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 130px;
        font-size: 10px;
        display: block;
        overflow: hidden
    }

    .arena {
        grid-template-columns:1fr;
        padding: 22px 0 6px;
        position: relative
    }

    .cards {
        gap: 20px
    }

    .playing-card {
        width: 96px;
        height: 134px
    }

    .card-pattern span {
        width: 55px;
        height: 76px;
        padding: 8px;
        font-size: 22px
    }

    .contender {
        z-index: 0;
        position: absolute;
        top: 57px
    }

    .contender.dragon {
        left: -5px
    }

    .contender.tiger {
        right: -5px
    }

    .contender .mascot {
        width: 58px;
        height: 58px
    }

    .contender > div {
        display: none
    }

    .round-status {
        min-height: 29px;
        margin: 6px 0;
        font-size: 12px
    }

    .bet-layout {
        grid-template-columns:1fr .8fr 1fr;
        gap: 7px
    }

    .bet {
        min-height: 125px;
        padding: 11px 10px 9px
    }

    .bet > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px
    }

    .bet-name {
        letter-spacing: 1px;
        font-size: 12px
    }

    .odds {
        font-size: 10px
    }

    .bet-chips {
        min-height: 49px
    }

    .chip-stack {
        min-width: 42px;
        min-height: 42px;
        padding: 9px 5px;
        font-size: 12px
    }

    .bet-chips small {
        letter-spacing: 0;
        font-size: 8px
    }

    .bet-hint {
        font-size: 10px
    }

    .empty-spot {
        width: 30px;
        height: 30px;
        font-size: 18px
    }

    .controls {
        flex-direction: column;
        gap: 16px;
        padding: 20px 0 17px
    }

    .chip-picker {
        gap: 20px
    }

    .chip {
        width: 47px;
        height: 47px
    }

    .deal-actions {
        justify-content: space-between;
        gap: 15px;
        width: 100%
    }

    .deal-actions .deal {
        flex: 1;
        padding: 13px 17px
    }

    .clear {
        padding: 10px 8px
    }

    .table-footer {
        flex-wrap: wrap;
        gap: 7px;
        font-size: 10px
    }

    .table-footer > span:nth-child(2) {
        order: 3;
        width: 100%;
        font-size: 9px
    }

    .table-footer > button {
        margin-left: auto
    }

    .suited-bet {
        padding: 9px 12px;
        font-size: 10px
    }

    .suited-bet > span:last-child {
        font-size: 10px
    }

    .history {
        gap: 10px;
        margin: 14px 0 22px
    }

    .history > span {
        font-size: 8px
    }

    .history > span:last-child {
        display: none
    }

    .history small {
        font-size: 10px
    }

    .history b {
        width: 19px;
        height: 19px
    }

    .section-heading {
        align-items: flex-start
    }

    .section-heading h2 {
        font-size: 20px
    }

    .section-heading > div {
        flex-wrap: wrap;
        gap: 7px
    }

    .section-heading > div > span {
        flex-basis: auto;
        margin-left: 25px;
        font-size: 8px
    }

    .section-heading > button {
        white-space: nowrap;
        font-size: 11px
    }

    .leaders {
        grid-template-rows:repeat(2, auto);
        grid-template-columns:repeat(5, 143px);
        padding-bottom: 5px;
        overflow-x: auto
    }

    .leader {
        gap: 7px;
        padding: 11px 8px
    }

    .leader strong {
        font-size: 12px
    }

    .leader .avatar {
        width: 29px;
        height: 29px
    }

    .leader div > span {
        font-size: 12px
    }

    .leader-note {
        margin-bottom: 22px;
        font-size: 10px
    }

    #dragon-tiger-root .page-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
        padding-top: 17px;
        font-size: 9px
    }

    #dragon-tiger-root .modal {
        padding: 28px 23px
    }

    .join-modal h2 {
        font-size: 31px
    }

    .avatar-grid {
        gap: 8px
    }

    #dragon-tiger-root .modal p {
        font-size: 14px
    }

    .avatar-label > span {
        font-size: 10px
    }

    .join-button {
        margin-top: 20px
    }

    .privacy {
        font-size: 10px
    }
}

@media (prefers-reduced-motion: reduce) {
    *, :before, :after {
        transition: none !important;
        animation: none !important
    }
}

.free-label, .eyebrow, .wallet > span, .wallet small, .cards > div > span, .odds, .bet-hint, .suited-bet, .suited-bet small, .suited-bet > span:last-child, .table-footer, .table-footer > span:nth-child(2), .table-footer button, .history > span, .history small, .section-heading > div > span, .leader-note, #dragon-tiger-root .page-footer, .avatar-label > span, .privacy {
    font-size: 12px
}

.bet-name, .clear, .section-heading > button, .leader strong, .leader div > span, #dragon-tiger-root .modal label {
    font-size: 14px
}

.bet-chips small {
    font-size: 10px
}

.leader small, .vacant div > span {
    font-size: 12px
}

.wallet small {
    max-width: 190px
}

.table-footer {
    flex-wrap: wrap
}

.table-footer > span:nth-child(2) {
    text-align: center
}

.leaders {
    column-gap: 8px
}

.leader .avatar {
    width: 30px;
    height: 30px
}

@media (width <= 900px) {
    .leaders {
        grid-template-columns:repeat(5, 175px);
        padding-bottom: 5px;
        overflow-x: auto
    }

    .leader {
        padding: 12px 9px
    }
}

@media (width <= 650px) {
    .contender {
        display: none
    }

    .eyebrow, .wallet > span, .cards > div > span {
        font-size: 10px
    }

    .wallet small {
        max-width: 130px;
        font-size: 10px
    }

    .table-footer > span:nth-child(2) {
        text-align: left;
        font-size: 11px
    }

    .bet-name {
        font-size: 14px
    }

    .bet-hint {
        font-size: 11px
    }

    .bet-chips small {
        font-size: 9px
    }

    .suited-bet small {
        margin-left: 6px
    }

    .plus {
        margin-left: 5px
    }

    .section-heading > div > span {
        margin-left: 25px;
        font-size: 10px
    }

    .history > span {
        font-size: 10px
    }

    .avatar-label > span, .privacy {
        font-size: 11px
    }

    .section-heading > button {
        font-size: 12px
    }

    .table-top .eyebrow {
        font-size: 9px
    }

    #dragon-tiger-root .page-footer {
        font-size: 11px
    }

    .leader-note {
        font-size: 12px
    }
}

.side-bets {
    grid-template-columns:1fr 1fr;
    gap: 14px;
    margin-top: 15px;
    display: grid
}

.side-group {
    border: 1px solid #6baf8c40;
    border-radius: 10px;
    min-width: 0;
    padding: 10px
}

.side-group.tiger {
    border-color: #cd836240
}

.side-heading {
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    display: flex
}

.side-heading strong {
    text-transform: capitalize;
    color: #b7e9cf;
    font-size: 14px;
    font-weight: 500
}

.tiger .side-heading strong {
    color: #f0b197
}

.side-heading > span {
    color: #cbb984;
    font-size: 12px
}

.side-options {
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 7px;
    display: grid
}

.side-bet {
    background: #081c1640;
    border: 1px solid #ffffff21;
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 109px;
    padding: 10px 4px;
    display: flex
}

.side-bet strong {
    text-transform: capitalize;
    font-size: 14px;
    font-weight: 500
}

.side-bet small {
    color: #b9c5b3;
    text-align: center;
    min-height: 18px;
    font-size: 12px
}

.side-stack {
    color: #20372a;
    background: #dfc88e;
    border: 2px dashed #8b7137;
    border-radius: 50%;
    place-items: center;
    min-width: 36px;
    min-height: 32px;
    padding: 3px 6px;
    font-size: 13px;
    font-weight: 700;
    display: grid;
    box-shadow: 0 3px #8b7137
}

.side-empty {
    color: #b9c5b380;
    font-size: 22px;
    line-height: 30px
}

.side-bet.won {
    background: #c6a54c16;
    border-color: #dabc70
}

.side-win {
    color: #e2cd96;
    text-align: center;
    font-size: 9px
}

.side-note {
    color: #b3bfaa;
    text-align: center;
    margin: 10px 0 0;
    font-size: 12px
}

@media (width <= 750px) {
    .side-bets {
        grid-template-columns:1fr;
        gap: 10px
    }

    .side-options {
        gap: 6px
    }

    .side-bet small {
        font-size: 11px
    }

    .side-note {
        text-align: left
    }

    .side-bet {
        min-height: 105px
    }
}

:root {
    --lightningcss-light: initial;
    --lightningcss-dark: ;
    color-scheme: light;
    --background: transparent
}

html, body {
    background: 0 0
}

body {
    color: #263f32
}

main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0
}

.game {
    color: #eee9da;
    box-shadow: none
}

.table-utilities {
    align-items: center;
    gap: 20px;
    display: flex
}

.table-utilities .top-actions {
    gap: 6px
}

.game, dialog {
    --lightningcss-light: ;
    --lightningcss-dark: initial;
    color-scheme: dark
}

.history > span, .history small, .leader-note {
    color: #576d5e
}

.section-heading h2 {
    color: #263f32
}

.section-heading > div > span {
    color: #526747;
    border-color: #d6ded4
}

.section-heading > button, .section-heading svg {
    color: #796027
}

.leader {
    color: #263f32;
    background: #f1f5ef;
    border-color: #dce5d7
}

.leader.you {
    background: #e9f2df;
    border-color: #b5c696
}

.leader .rank {
    color: #80682e
}

.leader div > span {
    color: #6b5525
}

.leader small {
    color: #566b58
}

.leader.vacant {
    opacity: 1;
    background: #f7f9f5
}

.vacant strong, .vacant div > span {
    color: #64715e
}

#dragon-tiger-root .page-footer {
    color: #55694e;
    border-color: #d9e1d5
}

#dragon-tiger-root .page-footer a {
    color: #536447
}

.history, .leaderboard, #dragon-tiger-root .page-footer {
    padding-left: 0;
    padding-right: 0
}

@media (width >= 1400px) {
    main {
        padding-top: 0
    }
}

@media (width <= 900px) {
    main {
        padding-left: 0;
        padding-right: 0
    }
}

@media (width <= 650px) {
    main {
        padding: 0
    }

    .table-utilities {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px
    }

    .table-utilities .top-actions button {
        width: 28px;
        height: 28px
    }

    .table-top {
        align-items: flex-start;
        gap: 8px
    }

    .table-utilities .top-actions {
        order: 2
    }

    .wallet small {
        max-width: 140px
    }

    .game {
        border-radius: 14px
    }

    .table-top h1 {
        font-size: 27px
    }
}

.table-portrait {
    vertical-align: middle;
    background-image: url(/ext-playff-games/dragon-tiger/table-portraits.png);
    background-repeat: no-repeat;
    background-size: 200% 100%;
    width: 160px;
    height: 160px;
    display: inline-block;
    -webkit-mask-image: radial-gradient(#000 45%, #000d 57%, #0000 72%);
    mask-image: radial-gradient(#000 45%, #000d 57%, #0000 72%)
}

.dragon-portrait {
    background-position: 0
}

.tiger-portrait {
    background-position: 100%
}

@media (width <= 900px) {
    .table-portrait {
        width: 125px;
        height: 125px
    }
}

/*$vite$:1*/

/* fix */
#dragon-tiger-root dialog {
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    width: min(90vw, 480px) !important;
    height: fit-content !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    border: none !important;
    border-radius: 16px !important;
    background: #18191c !important;
    color: #ffffff !important;
    padding: 24px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
    z-index: 99999 !important;
}

#dragon-tiger-root dialog[open] {
    display: block !important;
}

#dragon-tiger-root dialog:not([open]) {
    display: none !important;
}

#dragon-tiger-root dialog::backdrop {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
}

#dragon-tiger-root dialog .modal,
#dragon-tiger-root dialog form {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
}

.avatar-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
}

.dt-login-reminder {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #020b08ba;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dt-login-reminder.is-open {
    display: flex;
}

.dt-login-reminder-box {
    position: relative;
    width: 100%;
    max-width: min(520px, 100vw - 32px);
    padding: 34px;
    color: #f2eddb;
    background: #11271f;
    border: 1px solid #9d99604a;
    border-radius: 18px;
    box-shadow: 0 35px 110px #000a;
}

.dt-login-reminder-box h2 {
    margin: 8px 0 12px;
    font-family: Georgia, Times New Roman, serif;
    font-size: 32px;
    font-weight: 400;
}

.dt-login-reminder-box p {
    margin: 0 0 16px;
    color: #d6dfcb;
    line-height: 1.45;
}

.dt-login-reminder-box .close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 1px solid #8e9b6745;
    border-radius: 50%;
    background: transparent;
    color: #f2eddb;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.dt-login-reminder-box .login-reminder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.dt-login-reminder-box .text-button {
    color: #d6dfcb;
    background: transparent;
    border: 1px solid #798b664d;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
}

#dragon-tiger-root footerr.page-footer {
    display: flex;
    box-sizing: border-box;
    margin: 0;
    margin-top: 8px;
    background: none;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
    letter-spacing: .04em;
}

#dragon-tiger-root .page-footer * {
    font-family: inherit;
}

#dragon-tiger-root .page-footer a {
    text-decoration: none;
}

#dragon-tiger-root .page-footer a:hover {
    color: #3f5340;
    text-decoration: underline;
}
