@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap";

@scope (#sicbo-root) {
    :scope {
        --background: #091b1a;
        --foreground: #f3ead6;
        --card: #102b27;
        --primary: #e9c579;
        --border: #56715a;
        --muted: #94aaa0;
        --lightningcss-light: ;
        --lightningcss-dark: initial;
        color-scheme: dark
    }
    * {
        box-sizing: border-box
    }
    :scope {
        background: radial-gradient(ellipse at top, #17342c, transparent 70%), var(--background);
        color: var(--foreground);
        margin: 0;
        font-family: DM Sans, sans-serif;
        font-size: 16px
    }
    button, input, select {
        font: inherit
    }
    button, a {
        -webkit-tap-highlight-color: transparent
    }
    button {
        cursor: pointer;
        color: inherit;
        background: 0 0;
        border: 1px solid #ffffff25;
        border-radius: 7px;
        padding: 9px 14px
    }
    button:hover {
        background: #ffffff0b;
        border-color: #d5bd7a
    }
    button:disabled {
        opacity: .45;
        cursor: default
    }
    button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
        outline-offset: 3px;
        outline: 3px solid #f1ca78
    }
    a {
        color: inherit;
        text-decoration: none
    }
    main {
        max-width: 1260px;
        margin: auto;
        padding: 0 38px
    }
    header {
        border-bottom: 1px solid #ffffff15;
        align-items: center;
        gap: 25px;
        height: 88px;
        display: flex
    }
    .wordmark {
        align-items: center;
        gap: 2px;
        font-family: Georgia, serif;
        font-size: 30px;
        font-weight: 700;
        display: flex
    }
    .wordmark span {
        color: #ddb969
    }
    .wordmark small {
        letter-spacing: 1px;
        max-width: 70px;
        margin-left: 10px;
        font: 600 10px DM Sans, sans-serif
    }
    .practice {
        letter-spacing: 1.7px;
        color: #a9b9aa;
        font-size: 12px
    }
    .profile {
        border: 0;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        padding-right: 0;
        font-size: 14px;
        display: flex
    }
    .avatar {
        background-image: url(./avatars-e0xJtaQ0.png);
        background-size: 500% 400%;
        border: 1px solid #b5935e;
        border-radius: 50%;
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        display: inline-block
    }
    .game-head {
        justify-content: space-between;
        align-items: center;
        padding: 27px 0 20px;
        display: flex
    }
    .eyebrow {
        letter-spacing: 2.3px;
        color: #c9b77d;
        font-size: 12px;
        font-weight: 600
    }
    h1, h2 {
        margin: 5px 0;
        font-family: Playfair Display, Georgia, serif;
        font-weight: 500
    }
    h1 {
        font-size: 46px;
        line-height: 1.1
    }
    h1 span {
        color: #bd9a56;
        margin-left: 16px;
        font-family: serif;
        font-size: 25px
    }
    h2 {
        font-size: 29px
    }
    .head-actions {
        gap: 8px;
        font-size: 14px;
        display: flex
    }
    .table {
        background: #103b31;
        border: 1px solid #b89759;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 20px 70px #0005
    }
    .table-top {
        background: linear-gradient(120deg, #13362d, #0b2a24);
        justify-content: space-between;
        align-items: center;
        min-height: 137px;
        padding: 22px 30px 12px;
        display: flex
    }
    .bank small, .last-win small {
        color: #aeb8a1;
        letter-spacing: 1px;
        font-size: 12px;
        display: block
    }
    .bank strong {
        margin: 7px 0;
        font-size: 29px;
        display: block
    }
    .bank strong span {
        color: #c3c8ac;
        font-size: 14px;
        font-weight: 400
    }
    .last-win {
        text-align: right;
        min-width: 145px
    }
    .last-win strong {
        margin: 5px 0;
        font-size: 29px;
        display: block
    }
    .positive {
        color: #edce82
    }
    .dice-tray {
        justify-content: center;
        gap: 12px;
        padding-bottom: 25px;
        display: flex;
        position: relative
    }
    .dice-tray > span:last-child {
        letter-spacing: 2px;
        color: #d6ba78;
        font-size: 12px;
        position: absolute;
        bottom: 0
    }
    .die {
        color: #9d3433;
        background: #f5edda;
        border-radius: 9px;
        justify-content: center;
        align-items: center;
        width: 54px;
        height: 54px;
        line-height: 1;
        display: inline-flex;
        overflow: hidden;
        box-shadow: 0 4px #aa9e80, 0 8px 15px #0004
    }
    .die > span {
        font-family: Arial, sans-serif;
        font-size: 61px;
        line-height: 1;
        transform: translateY(-1px)
    }
    .status {
        text-align: center;
        color: #e5c984;
        background: #092b24;
        border-block: 1px solid #dbbf6b20;
        min-height: 37px;
        padding: 9px;
        font-size: 14px
    }
    .felt {
        background: radial-gradient(#1c4a3b, #123c30);
        padding: 17px 24px 20px
    }
    .major-grid {
        grid-template-columns:1.35fr 1fr 1.15fr 1fr 1.35fr;
        gap: 5px;
        display: grid
    }
    .bet {
        isolation: isolate;
        border: 1px solid #abbb8770;
        border-radius: 5px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 62px;
        padding: 7px 3px;
        transition: background .2s;
        display: flex;
        position: relative
    }
    .bet strong {
        font-size: 19px;
        font-weight: 500
    }
    .bet small {
        color: #c2cda5;
        margin-top: 2px;
        font-size: 12px
    }
    .major-grid .bet {
        min-height: 70px
    }
    .major-grid .bet strong {
        font-family: Playfair Display, Georgia, serif;
        font-size: 25px
    }
    .major-grid .bet:nth-child(3) {
        background: #a3823715;
        border-color: #d4b569
    }
    .triple-note {
        text-align: center;
        color: #abc09e;
        margin: 6px 0 12px;
        font-size: 12px
    }
    .section-label {
        letter-spacing: 1.3px;
        color: #d9cb97;
        justify-content: space-between;
        margin: 12px 0 6px;
        font-size: 12px;
        display: flex
    }
    .section-label span {
        letter-spacing: 0;
        color: #a5bd9d;
        font-size: 12px
    }
    .double-row {
        grid-template-columns:1fr 1fr;
        gap: 18px;
        display: grid
    }
    .double-row .section-label {
        margin-top: 0
    }
    .six-grid {
        grid-template-columns:repeat(6, 1fr);
        gap: 5px;
        display: grid
    }
    .double-row .bet strong {
        color: #efe5c5;
        font-size: 16px
    }
    .double-row .bet {
        min-height: 48px
    }
    .double-row .bet small {
        display: none
    }
    .totals-grid {
        grid-template-columns:repeat(14, 1fr);
        gap: 4px;
        display: grid
    }
    .pairs-grid {
        grid-template-columns:repeat(15, 1fr);
        gap: 4px;
        display: grid
    }
    .pairs-grid .bet {
        min-height: 43px
    }
    .pairs-grid .bet strong {
        font-size: 14px
    }
    .pairs-grid .bet small {
        display: none
    }
    .singles .bet {
        flex-direction: row;
        gap: 15px;
        min-height: 57px
    }
    .singles .die {
        border-radius: 5px;
        width: 32px;
        height: 32px;
        box-shadow: 0 2px #aa9e80
    }
    .singles .die > span {
        font-size: 38px
    }
    .bet.placed {
        background: #d9ba7220;
        border-color: #e5c574
    }
    .bet.won {
        background: #bf9c3d35;
        box-shadow: inset 0 0 15px #e3cb8130
    }
    .bet-chip {
        z-index: 2;
        background: #a93c44;
        border: 2px dashed #f3dcc1;
        border-radius: 20px;
        min-width: 28px;
        min-height: 25px;
        padding: 3px;
        font-size: 12px;
        font-weight: 700;
        position: absolute;
        bottom: 2px;
        right: 3px;
        box-shadow: 0 2px 6px #0005
    }
    .win-label {
        color: #253728;
        z-index: 3;
        background: #edcb80;
        border-radius: 8px;
        padding: 2px 4px;
        font-size: 12px;
        position: absolute;
        top: -7px;
        right: 1px
    }
    .controls {
        background: #0c2823;
        align-items: center;
        gap: 20px;
        padding: 18px 24px;
        display: flex
    }
    .chip-picker {
        gap: 10px;
        display: flex
    }
    .chip {
        border: 3px dashed #e1dac1;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        padding: 0;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 0 0 2px #47634a, 0 4px 6px #0007
    }
    .chip-1 {
        color: #293e39;
        background: #d7d0b9
    }
    .chip-5 {
        background: #9e3a40
    }
    .chip-10 {
        background: #2a7590
    }
    .chip-25 {
        background: #397759
    }
    .chip-100 {
        background: #483c60
    }
    .chip.selected {
        outline-offset: 4px;
        outline: 2px solid #ebcb7e;
        transform: translateY(-3px)
    }
    .bet-tools {
        gap: 7px;
        margin-left: auto;
        display: flex
    }
    .bet-tools button {
        white-space: nowrap;
        font-size: 14px
    }
    .roll-button, .primary {
        color: #203327;
        background: linear-gradient(120deg, #efd292, #ccaa60);
        border: 0;
        font-weight: 700
    }
    .roll-button {
        justify-content: space-between;
        gap: 25px;
        min-width: 190px;
        padding: 15px 20px;
        display: flex
    }
    .roll-button:hover, .primary:hover {
        background: #f3d593
    }
    .history {
        color: #9caf9e;
        align-items: center;
        gap: 10px;
        min-height: 50px;
        display: flex
    }
    .history > span:first-child {
        letter-spacing: 1.3px;
        font-size: 12px
    }
    .history b {
        text-align: center;
        background: #ffffff09;
        border-radius: 50%;
        min-width: 25px;
        padding: 4px;
        font-size: 12px;
        font-weight: 500
    }
    .history small, .payout-label {
        font-size: 12px
    }
    .payout-label {
        margin-left: auto
    }
    .leaderboard {
        border-top: 1px solid #ffffff15;
        margin: 15px 0 20px;
        padding-top: 20px
    }
    .leader-head {
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        display: flex
    }
    .leader-head h2 {
        font-size: 26px
    }
    .leader-head h2 small {
        color: #8fa898;
        margin-left: 12px;
        font-family: DM Sans, sans-serif;
        font-size: 12px
    }
    .leader-head button {
        color: #dcc38c;
        font-size: 14px
    }
    .leaders {
        grid-template-rows:repeat(2, auto);
        grid-template-columns:repeat(5, 1fr);
        gap: 8px;
        display: grid
    }
    .leader {
        background: #ffffff04;
        border: 1px solid #ffffff0b;
        border-radius: 6px;
        align-items: center;
        gap: 10px;
        min-width: 0;
        padding: 11px 9px;
        display: flex
    }
    .leader .avatar {
        width: 32px;
        height: 32px
    }
    .rank {
        color: #c9b574;
        font-size: 12px
    }
    .leader > div {
        min-width: 0
    }
    .leader strong {
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
        font-weight: 500;
        display: block;
        overflow: hidden
    }
    .leader small {
        color: #b6c2a6;
        margin-top: 3px;
        font-size: 12px;
        display: block
    }
    .empty-board {
        text-align: center;
        color: #aebea8;
        border: 1px dashed #ffffff25;
        border-radius: 8px;
        grid-area: 1/1/3/-1;
        padding: 30px;
        font-size: 14px
    }
    .leaderboard > p {
        color: #809887;
        margin-top: 12px;
        font-size: 12px
    }
    footerr {
        color: #819b8d;
        border-top: 1px solid #ffffff15;
        justify-content: space-between;
        padding: 20px 0 28px;
        font-size: 12px;
        display: flex
    }
    .overlay {
        -webkit-backdrop-filter: blur(7px);
        backdrop-filter: blur(7px);
        z-index: 20;
        background: #041410ce;
        justify-content: center;
        align-items: center;
        padding: 22px;
        display: flex;
        position: fixed;
        inset: 0
    }
    .dialog {
        background: linear-gradient(145deg, #17372f, #0d2420);
        border: 1px solid #8e8050;
        border-radius: 17px;
        width: 550px;
        max-height: 94dvh;
        padding: 34px;
        position: relative;
        overflow: auto;
        box-shadow: 0 30px 100px #0008
    }
    .dialog h2 {
        margin-top: 10px;
        font-size: 31px;
        line-height: 1.2
    }
    .dialog p, .dialog li {
        color: #b7c5b8;
        font-size: 16px;
        line-height: 1.65
    }
    .dialog ol {
        padding-left: 20px
    }
    .close {
        border: 0;
        padding: 0 6px;
        font-size: 24px;
        position: absolute;
        top: 10px;
        right: 12px
    }
    .name-label {
        margin-top: 20px;
        font-size: 14px;
        display: block
    }
    .name-label input, .name-label select {
        color: #f7ebcd;
        background: #061e18;
        border: 1px solid #718069;
        border-radius: 6px;
        width: 100%;
        margin-top: 7px;
        padding: 12px;
        font-size: 16px;
        display: block
    }
    .avatar-label {
        color: #c1cdb8;
        justify-content: space-between;
        margin-top: 20px;
        font-size: 14px;
        display: flex
    }
    .avatar-label span {
        color: #e7c87f
    }
    .avatar-grid {
        grid-template-columns:repeat(5, 1fr);
        gap: 9px;
        margin: 12px 0 21px;
        display: grid
    }
    .avatar-grid button {
        border-color: #0000;
        justify-content: center;
        align-items: center;
        padding: 3px;
        display: flex
    }
    .avatar-grid .avatar {
        border: 0;
        border-radius: 12px;
        width: 61px;
        height: 61px
    }
    .avatar-grid button.chosen {
        background: #e7c78215;
        border-color: #e8c678;
        box-shadow: 0 0 0 1px #e8c678
    }
    .primary {
        width: 100%;
        padding: 14px
    }
    .fine {
        text-align: center;
        color: #839e8e;
        margin-top: 12px;
        font-size: 12px;
        display: block
    }
    .toggle {
        border-bottom: 1px solid #ffffff15;
        justify-content: space-between;
        align-items: center;
        padding: 18px 0;
        font-size: 14px;
        display: flex
    }
    .toggle input {
        accent-color: #d8b971;
        width: 20px;
        height: 20px
    }
    .all-list {
        gap: 6px;
        display: grid
    }
    .all-list .leader b {
        color: #e3c783;
        margin-left: auto;
        font-size: 14px
    }
    .error {
        color: #ffd2c8;
        background: #75363650;
        border-radius: 6px;
        margin: 10px 0;
        padding: 12px;
        font-size: 14px
    }
    @media (width >= 1500px) {
        main {
            max-width: 1320px
        }

        .felt {
            padding: 23px 28px
        }

        .bet {
            min-height: 65px
        }
    }
    @media (width <= 900px) {
        main {
            padding: 0 18px
        }

        .practice {
            display: none
        }

        .table-top {
            padding: 18px
        }

        .controls {
            flex-wrap: wrap;
            gap: 18px
        }

        .bet-tools {
            margin-left: auto
        }

        .roll-button {
            width: 100%
        }

        .leaders {
            grid-template-columns:repeat(5, minmax(170px, 1fr));
            overflow-x: auto
        }

        .pairs-grid {
            grid-template-columns:repeat(8, 1fr)
        }

        .totals-grid {
            grid-template-columns:repeat(7, 1fr)
        }

        .payout-label {
            display: none
        }

        .double-row {
            gap: 10px
        }

        .double-row .bet strong {
            font-size: 14px
        }
    }
    @media (width <= 580px) {
        main {
            padding: 0 10px
        }

        header {
            height: 66px
        }

        .wordmark {
            font-size: 24px
        }

        .profile span:not(.avatar) {
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100px;
            overflow: hidden
        }

        .game-head {
            padding: 21px 4px 17px
        }

        h1 {
            font-size: 38px
        }

        .head-actions button {
            padding: 8px;
            font-size: 12px
        }

        .head-actions button span {
            display: none
        }

        .table-top {
            flex-wrap: wrap;
            gap: 15px;
            padding: 16px 12px
        }

        .bank strong {
            font-size: 22px
        }

        .bank small, .last-win small {
            letter-spacing: 0;
            font-size: 12px
        }

        .last-win {
            min-width: 45px;
            margin-left: auto
        }

        .last-win strong {
            font-size: 21px
        }

        .dice-tray {
            flex-basis: 100%;
            order: 3;
            gap: 12px
        }

        .dice-tray .die {
            border-radius: 6px;
            width: 42px;
            height: 42px
        }

        .dice-tray .die > span {
            font-size: 50px
        }

        .dice-tray > span:last-child {
            white-space: nowrap;
            font-size: 12px
        }

        .felt {
            padding: 12px 9px
        }

        .major-grid {
            gap: 3px
        }

        .major-grid .bet strong {
            font-size: 17px
        }

        .major-grid .bet {
            min-height: 68px
        }

        .bet small {
            font-size: 12px
        }

        .double-row {
            grid-template-columns:1fr;
            gap: 10px
        }

        .section-label {
            letter-spacing: .5px;
            flex-wrap: wrap;
            gap: 4px
        }

        .section-label, .section-label span {
            font-size: 12px
        }

        .pairs-grid {
            grid-template-columns:repeat(5, 1fr)
        }

        .pairs-grid .bet strong {
            font-size: 14px
        }

        .singles .bet {
            flex-direction: column;
            gap: 4px;
            min-height: 82px
        }

        .singles .bet small {
            max-width: 40px;
            font-size: 12px
        }

        .controls {
            gap: 17px;
            padding: 16px 12px
        }

        .chip-picker {
            justify-content: center;
            gap: 12px;
            width: 100%
        }

        .bet-tools {
            justify-content: center;
            width: 100%;
            margin: 0
        }

        .roll-button {
            padding: 14px
        }

        .status {
            padding: 9px 6px;
            font-size: 14px
        }

        .leader-head {
            gap: 10px
        }

        .leader-head h2 small {
            margin: 6px 0 0;
            display: block
        }

        .leader-head .eyebrow {
            font-size: 12px
        }

        .leader-head button {
            padding: 9px;
            font-size: 12px
        }

        .dialog {
            padding: 30px 20px 22px
        }

        .dialog h2 {
            font-size: 28px
        }

        .avatar-grid {
            gap: 5px
        }

        .avatar-grid .avatar {
            width: 48px;
            height: 48px
        }

        .avatar-label {
            font-size: 12px
        }

        .overlay {
            padding: 10px
        }

        .history {
            flex-wrap: wrap;
            gap: 6px;
            padding: 12px 0
        }

        .history small {
            font-size: 12px
        }

        footerr {
            gap: 15px;
            font-size: 12px
        }

        .bet-chip {
            min-width: 23px;
            font-size: 12px
        }

        .leaderboard > p {
            line-height: 1.6
        }
    }
    @media (prefers-reduced-motion: reduce) {
        *, :before, :after {
            transition: none !important;
            animation: none !important
        }
    }
    .table-top {
        grid-template-columns:minmax(180px, 1fr) minmax(280px, 400px) minmax(100px, 1fr);
        align-items: center;
        gap: 16px;
        padding-top: 12px;
        padding-bottom: 18px;
        display: grid
    }
    .dice-station {
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-width: 0;
        display: flex
    }
    .dice-stage {
        --cube-size: 44px;
        --cube-half: 22px;
        isolation: isolate;
        width: 100%;
        height: 112px;
        position: relative;
        overflow: hidden
    }
    .dice-caption {
        letter-spacing: 2px;
        color: #d6ba78;
        min-height: 16px;
        margin: 0 0 12px;
        font-size: 12px
    }
    .dice-station .roll-button {
        justify-content: center;
        gap: 18px;
        width: 220px;
        max-width: 100%;
        padding: 12px 20px
    }
    .thrown-die {
        width: var(--cube-size);
        height: var(--cube-size);
        perspective: 600px;
        position: absolute
    }
    .die-tumble {
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transform: rotateX(-16deg) rotateY(20deg) rotateZ(var(--rest-angle))
    }
    .dice-cube {
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        position: relative
    }
    .cube-face {
        backface-visibility: hidden;
        background: #f5ecda;
        border: 1px solid #c5b896;
        border-radius: 7px;
        grid-template:repeat(3, 1fr)/repeat(3, 1fr);
        gap: 3px;
        padding: 7px;
        display: grid;
        position: absolute;
        inset: 0;
        box-shadow: inset 0 0 7px #af9f7450
    }
    .face-1 {
        transform: translateZ(var(--cube-half))
    }
    .face-6 {
        transform: rotateY(180deg) translateZ(var(--cube-half));
        background: #d4c6a8
    }
    .face-3 {
        transform: rotateY(90deg) translateZ(var(--cube-half));
        background: #dfd0b1
    }
    .face-4 {
        transform: rotateY(-90deg) translateZ(var(--cube-half));
        background: #e8dcc5
    }
    .face-2 {
        transform: rotateX(90deg) translateZ(var(--cube-half));
        background: #fff7e6
    }
    .face-5 {
        transform: rotateX(-90deg) translateZ(var(--cube-half));
        background: #c7b99a
    }
    .pip {
        background: #a22e36;
        border-radius: 50%;
        box-shadow: inset 0 1px 2px #47131770
    }
    .die-shadow {
        filter: blur(5px);
        background: #0006;
        border-radius: 50%;
        width: 52px;
        height: 20px;
        position: absolute;
        top: 46px;
        left: -4px;
        transform: rotate(-10deg)
    }
    .is-throwing .thrown-die {
        animation: dice-travel 1.25s cubic-bezier(.18, .58, .28, 1) var(--throw-delay) both
    }
    .is-throwing .die-tumble {
        animation: dice-spin 1.25s cubic-bezier(.15, .45, .28, 1) var(--throw-delay) both
    }
    .is-throwing .die-shadow {
        animation: dice-shadow 1.25s ease-out var(--throw-delay) both
    }
    @keyframes dice-travel {
        0% {
            transform: translate(-400px, -8px)
        }
        38% {
            transform: translate(-145px, -17px)
        }
        63% {
            transform: translate(-48px, 8px)
        }
        78% {
            transform: translate(-15px, -9px)
        }
        90% {
            transform: translate(3px, 3px)
        }
        to {
            transform: translate(0, 0)
        }
    }
    @keyframes dice-spin {
        0% {
            transform: rotateX(704deg) rotateY(-700deg) rotate(-190deg)
        }
        42% {
            transform: rotateX(330deg) rotateY(-330deg) rotate(-100deg)
        }
        70% {
            transform: rotateX(70deg) rotateY(-60deg) rotate(20deg)
        }
        86% {
            transform: rotateX(-26deg) rotateY(30deg) rotateZ(var(--rest-angle))
        }
        to {
            transform: rotateX(-16deg) rotateY(20deg) rotateZ(var(--rest-angle))
        }
    }
    @keyframes dice-shadow {
        0%, 38% {
            opacity: .3;
            scale: .7
        }
        63% {
            opacity: .9;
            scale: 1.1
        }
        78% {
            opacity: .5;
            scale: .85
        }
        to {
            opacity: 1;
            scale: 1
        }
    }
    @media (width <= 900px) {
        .table-top {
            grid-template-columns:minmax(125px, 1fr) minmax(260px, 340px) minmax(80px, 1fr);
            gap: 10px;
            padding-inline: 16px
        }

        .bank strong {
            font-size: 24px
        }

        .bank small {
            letter-spacing: 0
        }

        .last-win {
            min-width: 0
        }
    }
    @media (width <= 680px) {
        .table-top {
            grid-template-columns:1fr 1fr;
            gap: 10px;
            padding: 16px 12px
        }

        .bank {
            grid-area: 1/1
        }

        .last-win {
            grid-area: 1/2
        }

        .dice-station {
            grid-area: 2 / 1 /auto/ -1;
            justify-self: center;
            max-width: 350px
        }

        .dice-stage {
            height: 105px
        }

        .dice-station .roll-button {
            width: 230px
        }

        .dice-caption {
            margin-bottom: 10px
        }

        .bank strong {
            font-size: 22px
        }
    }
    @media (prefers-reduced-motion: reduce) {
        .is-throwing .thrown-die, .is-throwing .die-tumble, .is-throwing .die-shadow {
            animation: none !important
        }
    }
    :scope {
        --background: #fff;
        --foreground: #213b32;
        --lightningcss-light: initial;
        --lightningcss-dark: ;
        color-scheme: light
    }
    :scope {
        color: var(--foreground);
        background: #fff
    }
    main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0
    }
    .game-head {
        gap: 10px;
        padding: 10px 0 12px
    }
    .game-head .eyebrow, .leader-head .eyebrow {
        color: #75602f
    }
    h1 {
        margin: 3px 0 0;
        font-size: 34px
    }
    .head-actions button, .leader-head button {
        color: #294638;
        border-color: #ced7d1
    }
    .head-actions button:hover, .leader-head button:hover {
        background: #f0f4f1
    }
    .table {
        color: #f3ead6;
        box-shadow: none
    }
    .bank .profile {
        text-align: left;
        justify-content: flex-start;
        gap: 8px;
        max-width: 100%;
        margin: 0 0 13px;
        padding: 0
    }
    .bank .profile .avatar {
        width: 30px;
        height: 30px
    }
    .bank .profile > span:not(.avatar) {
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 180px;
        overflow: hidden
    }
    .history {
        color: #596d62;
        min-height: 40px
    }
    .history b {
        background: #edf1ee
    }
    .leaderboard {
        border-color: #dce3de;
        margin: 8px 0 12px;
        padding-top: 14px
    }
    .leader-head {
        margin-bottom: 10px
    }
    .leader-head h2 small, .leaderboard > p {
        color: #607367
    }
    .leader {
        background: #f4f7f4;
        border-color: #e0e7e1
    }
    .leader .rank {
        color: #84672d
    }
    .leader small {
        color: #526a5b
    }
    .leader.you {
        background: #f8f3e5;
        border-color: #c7b274
    }
    .empty-board {
        color: #596d62;
        border-color: #c7d3cb;
        padding: 20px
    }
    footerr {
        color: #607367;
        border-color: #dce3de;
        padding: 12px 0;
        font-size: 12px
    }
    .dialog {
        color: #f3ead6;
        --lightningcss-light: ;
        --lightningcss-dark: initial;
        color-scheme: dark
    }
    .dialog .leader {
        background: #ffffff04;
        border-color: #ffffff0b
    }
    .dialog .leader .rank {
        color: #c9b574
    }
    .error {
        color: #8b2727;
        background: #fff0ed
    }
    .dialog .error {
        color: #ffd2c8;
        background: #75363650
    }
    @media (width <= 580px) {
        .game-head {
            padding: 8px 0 10px
        }

        .game-head .eyebrow {
            letter-spacing: 1.6px;
            font-size: 10px
        }

        h1 {
            font-size: 30px
        }

        .bank .profile > span:not(.avatar) {
            max-width: 125px
        }

        .bank .profile {
            margin-bottom: 10px
        }
    }
}

#sicbo-root {
    isolation: isolate
}

#sicbo-root .overlay {
    z-index: 30
}

#sicbo-root footerr.page-footer {
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 0;
    padding: 12px 0;
    background: none;
    border-top: 1px solid #dce3de;
    color: #607367;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .04em;
}

#sicbo-root .page-footer * {
    font-family: inherit;
    color: inherit
}

#sicbo-root .page-footer a {
    text-decoration: none
}

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

.sb-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);
}

.sb-login-reminder.is-open {
    display: flex
}

.sb-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;
}

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

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

.sb-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
}

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

.sb-login-reminder-box .primary {
    width: auto;
    padding: 12px 18px;
    cursor: pointer
}

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