* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: #101010;
    color: #fff;
    font: 15px Arial,sans-serif;
}
main {
    max-width: 760px;
    margin: auto;
    padding: 16px;
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #806332;
    padding-bottom: 14px;
}
header img {
    width: 42%;
    max-width: 240px;
    height: auto;
}
button,a.btn {
    font: bold 13px Arial;
    cursor: pointer;
    border: 1px solid #98763c;
    border-radius: 7px;
    padding: 13px 8px;
    color: #edca79;
    background: linear-gradient(#353025,#211d16);
    text-align: center;
    text-decoration: none;
}
button:hover,a.btn:hover {
    filter: brightness(1.2);
}
.gold {
    background: linear-gradient(#ffe4a2,#b38b3c)!important;
    color: #17120b!important;
}
.nav,.sub,.animals,.numbers {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}
.nav {
    margin: 16px 0;
}
.animals {
    grid-template-columns: repeat(3,1fr);
}
.animals button span {
    display: block;
    font-size: 28px;
    margin-bottom: 6px;
}
input {
    width: 100%;
    background: #242424;
    color: white;
    border: 1px solid #9e8044;
    border-radius: 7px;
    padding: 13px;
    font: inherit;
}
h2,h3 {
    color: #edca79;
    text-align: center;
}
small,p {
    color: #aaa;
    line-height: 1.5;
}
.group {
    border: 1px solid #655332;
    border-radius: 7px;
    margin: 8px 0;
    overflow: hidden;
}
.head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: #242424;
    border: 0;
    text-align: left;
}
.sub {
    padding: 10px;
}
.overlay {
    position: fixed;
    inset: 0;
    background: #000c;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 10;
}
.overlay.open {
    display: flex;
}
.modal {
    width: min(100%,460px);
    max-height: 95dvh;
    overflow: auto;
    background: #151515;
    border: 1px solid #c9a659;
    border-radius: 10px;
    animation: zoom .25s ease;
}
@keyframes zoom {
    from {
        opacity: 0;
        transform: scale(.75);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.modalhead {
    position: relative;
    text-align: center;
    padding: 17px;
}
.modalhead strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}
.close {
    position: absolute;
    right: 6px;
    top: 5px;
    border: 0;
    background: none;
    color: inherit;
    font-size: 23px;
    padding: 3px 8px;
}
.body,.card {
    padding: 14px;
}
.card {
    border: 1px solid #655332;
    border-radius: 10px;
    margin: 12px 0;
    background: #191919;
}
.label {
    text-align: center;
    color: #e7c473;
    font-weight: bold;
    font-size: 13px;
    margin: 13px 0 8px;
}
.nums {
    display: flex;
    gap: 4px;
    justify-content: center;
}
.digit,.set,.number {
    flex: 1;
    min-width: 0;
    background: #242424;
    border: 1px solid #695634;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    padding: 10px 2px;
    font-variant-numeric: tabular-nums;
}
.digit {
    font-size: 23px;
    color: #ffda83;
    max-width: 47px;
}
.set small,.number small {
    display: block;
    color: #e4bf6d;
    margin-bottom: 7px;
}
.full {
    display: block;
    width: 100%;
    margin-top: 10px;
}
.note {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    margin: 10px 0;
}
.quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}
.quick button {
    padding: 8px;
}
.number strong {
    font-size: 23px;
}
.field {
    margin: 10px 0;
}
.hidden {
    display: none!important;
}
#shio {
    z-index: 20;
}
button:disabled {
    opacity: .6;
}
footer {
    text-align: center;
    color: #aaa;
    font-size: 12px;
    padding: 20px;
}
.banner {
    display: block;
    width: 100%;
    height: auto;
    margin: 15px 0 0;
    border-radius: 9px;
    border: 1px solid #655332;
}
.dreamrolling strong {
    animation: rollpulse .12s infinite alternate;
}
@keyframes rollpulse {
    from {
        transform: translateY(-2px);
        filter: blur(.7px);
    }
    to {
        transform: translateY(2px);
        filter: blur(0);
    }
}
.number strong {
    display: block;
}

/* Black and gold theme */
body {background: radial-gradient(ellipse at top,#302005 0,#110e07 35%,#080808 75%); color:#fff3d4; min-height:100vh;}
header {border-bottom:1px solid #d4a332;}
button,a.btn {border-color:#c99b35;color:#ffe19a;background:linear-gradient(180deg,#4e370b,#241804 55%,#140e04);}
.gold {background:linear-gradient(180deg,#fff0b1 0%,#edc45c 35%,#c28b20 70%,#edc45c 100%)!important;color:#201300!important;border-color:#f6d16b!important;}
.group {border-color:#b68a30;background:#161006;}
.head {background:linear-gradient(110deg,#49330b,#241904 70%);color:#ffe4a0;align-items:center;gap:12px;padding:13px 15px;}
.market-label {flex:1;min-width:0;text-align:left;}
.market-count {flex:none;white-space:nowrap;text-align:right;margin-left:auto;color:#f9d478;font-size:12px;}
input {background:#201706;border-color:#c69b3b;color:#fff3d4;}
h2,h3,.label {color:#ffd570;}
.card,.modal {background:#1b1408;border-color:#c99b35;}
.digit,.set,.number {background:linear-gradient(#38270b,#191104);border-color:#b58a30;color:#ffe0a0;}
.banner {border-color:#c69b3b;}
small,p,footer,.note {color:#cdbb91;}
