body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 226, 153, 0.38), transparent 22%),
        radial-gradient(circle at 82% 12%, rgba(255, 244, 194, 0.28), transparent 18%),
        linear-gradient(135deg, #7f0812 0%, #b81820 44%, #e55434 100%);
    color: #5d130f;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.menu-hot-zone {
    background: transparent;
    height: 18px;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1029;
}

.navbar {
    background: rgba(104, 0, 10, 0.9);
    border-bottom: 1px solid rgba(255, 221, 144, 0.42);
    box-shadow: 0 8px 24px rgba(76, 0, 7, 0.24);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateY(-100%);
    transition: transform 0.24s ease, background-color 0.24s ease;
    z-index: 1030;
}

.menu-hot-zone:hover + .navbar,
.navbar:hover,
.navbar:focus-within {
    background: rgba(104, 0, 10, 0.96);
    transform: translateY(0);
}

.navbar-brand {
    color: #ffe9a8 !important;
    font-weight: 700;
    letter-spacing: 0;
}

.settings-button {
    border-color: rgba(255, 232, 164, 0.8);
}

.modal-content {
    background: #fff8e8;
    border: 1px solid #e2b95d;
    border-radius: 8px;
}

.modal-header,
.modal-footer {
    border-color: rgba(184, 24, 32, 0.18);
}

.modal-title {
    color: #9d1018;
    font-weight: 700;
}

.number-input {
    max-width: 120px;
}

.hint-text {
    color: #8d5b1f;
    margin-left: 12px;
}

.page-title {
    color: #fff8d6;
    padding-top: 44px;
    text-align: center;
    text-shadow: 0 3px 14px rgba(80, 0, 8, 0.36);
}

.page-title p {
    color: #ffe7a3;
    font-size: 18px;
    margin-bottom: 4px;
}

.page-title h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.refresh-button {
    background: #ffe3a0;
    border: 1px solid #f8c65c;
    color: #8d1117;
    font-weight: 700;
    min-width: 110px;
}

.refresh-button:hover,
.refresh-button:focus {
    background: #fff0bf;
    color: #6f0710;
}

.card-roll {
    align-content: center;
    animation: myfirst 0.2s;
    -webkit-animation: myfirst 0.2s;
    background: linear-gradient(180deg, #fffaf0 0%, #ffe9b8 100%);
    border: 0;
    box-shadow: none;
    color: #9d1018;
    font-size: 40pt;
    font-weight: 800;
    height: 300px;
    justify-content: center;
    left: 0;
    line-height: 1.34;
    padding: 18px 24px;
    position: absolute;
    text-align: center;
    top: -1px;
    width: 100%;
}

.card-roll span {
    color: #94611f;
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
}

.result-row {
    align-items: center;
    height: 100%;
    margin: 0;
}

.title {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0 10px;
}

.result-count-4 .title,
.result-count-5 .title {
    font-size: 30pt;
}

#outcard {
    background: linear-gradient(180deg, #fff3ce 0%, #ffe0a0 100%);
    border: 3px solid #ffd36d;
    border-radius: 8px;
    box-shadow: 0 20px 48px rgba(74, 0, 8, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    height: 300px;
    overflow: hidden;
}

#anti_cheat {
    justify-content: left;
}

@keyframes myfirst {
    from {
        top: -300px;
    }

    to {
        top: -1px;
    }
}

@-webkit-keyframes myfirst {
    from {
        top: -300px;
    }

    to {
        top: -1px;
    }
}

@media (max-width: 768px) {
    .page-title h1 {
        font-size: 36px;
    }

    .card-roll {
        font-size: 26pt;
        padding: 12px;
    }

    .result-count-4 .title,
    .result-count-5 .title {
        font-size: 18pt;
        padding: 0 4px;
    }
}
