.wagering-calc {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    padding: 30px;
    border-radius: 20px;
    background: #0C0913;
    cursor: auto;
    user-select: text;
    -webkit-user-select: text;
}

.wagering-calc *,
.wagering-calc *::before,
.wagering-calc *::after {
    box-sizing: border-box;
}

.wagering-calc dl,
.wagering-calc dd,
.wagering-calc p {
    margin: 0;
}

.wc-intro,
.wc-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.wc-intro {
    flex: 1 1 420px;
}

.wc-results {
    flex: 1 1 380px;
}

.wc-results[hidden],
.wc-error[hidden] {
    display: none;
}

.wc-title {
    margin: 0;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
}

.wc-desc {
    max-width: 520px;
    font-size: 18px;
    line-height: 1.4;
}

.wc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px 20px;
}

.wc-stats dt,
.wc-grid dt {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.wc-stats dd {
    margin-top: 8px;
    font-size: 16px;
}

.wc-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #352E4C;
    border-radius: 10px;
    background: rgba(17, 14, 27, 0.1);
}

.wc-input {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    min-width: 0;
    padding: 0 14px;
    border: 1px solid #352E4C;
    border-radius: 10px;
    background: #0C0913;
}

.wc-input:focus-within {
    border-color: #CA0C04;
}

.wc-input input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 16px;
}

.wc-prefix {
    color: rgba(255, 255, 255, 0.5);
}

.wc-form .cta {
    border: 0;
    flex-shrink: 0;
}

.wc-error {
    color: #ff6b6b;
    font-size: 16px;
}

.wc-results-title {
    font-size: 16px;
}

.wc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 20px;
    padding: 25px;
    border: 1px solid #352E4C;
    border-radius: 20px;
    background: rgba(17, 14, 27, 0.6);
}

.wc-grid dd {
    margin-top: 6px;
    font-size: 16px;
}

.wc-grid small {
    opacity: 0.6;
}

.wc-wide {
    grid-column: 1 / -1;
}

.wc-verdict {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.wc-verdict small {
    opacity: 0.8;
}

.wc-verdict--good {
    background: #008C25;
}

.wc-verdict--moderate {
    background: #FFDD6E;
    color: #0C0913;
}

.wc-verdict--poor {
    background: #E67434;
}

.wc-verdict--very-poor {
    background: #CA0C04;
}

@media only screen and (max-width: 768px) {
    .wagering-calc {
        padding: 20px;
    }

    .wc-title {
        font-size: 30px;
    }
}

@media only screen and (max-width: 520px) {
    .wc-form {
        flex-direction: column;
        align-items: stretch;
    }

    .wc-form .cta {
        max-width: none;
        width: 100%;
    }

    .wc-grid {
        grid-template-columns: 1fr;
    }
}
