body {
    font-family: "Segoe UI", Arial, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

.container-fluid {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    box-sizing: border-box;
}

#wheel {
    width: 100%;
    height: auto;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

.wheel-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

canvas {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-width: 500px;
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #fff;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.4));
}

.inp {
    border: none;
}

.result-box {
    display: none;
    margin-top: 20px;
    padding: 20px 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.6s ease-in-out;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

.result-box span {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    font-weight: normal;
    color: #fdfdfd;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    body {
        height: 120vh;
    }

    .container-fluid {
        height: 100% !important;
        padding-top: 0 !important;
    }

    .wheel-wrapper {
        margin-bottom: 0 !important;
    }

    .wheel-col {
        margin-bottom: 0 !important;
    }

    canvas {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .row.align-items-center {
        flex-direction: column;
        text-align: center;
    }

    .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }

    .wheel-wrapper {
        margin-bottom: 30px;
        max-width: 90vw;
    }

    #wheel {
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    canvas {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    #wheel {
        width: 280px;
        height: 280px;
        max-width: 280px;
    }

    .wheel-wrapper {
        max-width: 95vw;
    }

    h2 {
        font-size: 1.2rem;
    }
}
