.arya-wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
    /* جهت را از والد می‌گیرد تا دسکتاپ و موبایل هماهنگ باشند */
    direction: inherit;
    font-family: inherit;
    margin-top: 10px;
}

.arya-wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 40px auto 20px;
    margin: 40px auto 20px;
    border-radius: 50%;
    /* overflow: hidden; Removed to allow shadow/border effects outside if needed */
    box-shadow: 0 0 20px rgba(0,0,0,0.2), inset 0 0 15px rgba(0,0,0,0.1);
    /* border: 12px solid #fff; */
    background: #fff;
    /* border: 10px solid #fff; */
}

/* Make canvas fill the container while JS controls its resolution */
#arya-wheel-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* نسخه‌ی واکنش‌گرا برای موبایل */
@media (max-width: 480px) {
    .arya-wheel-container {
        width: 100%;
        max-width: 360px;
        height: 0;
        padding-top: 100%; /* مربع ۱:۱ */
        margin: 40px auto 20px;
    }
}

.arya-wheel-pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 50px;
    z-index: 20;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.arya-wheel-pointer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0; 
    height: 0; 
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #E91E63;
}

.arya-wheel-btn {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    outline: none;
}

.arya-wheel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.arya-wheel-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.arya-wheel-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.arya-wheel-message {
    margin-top: 20px;
    font-weight: 500;
    min-height: 24px;
    font-size: 14px;
}

.arya-wheel-message.success {
    color: #4CAF50;
}

.arya-wheel-message.error {
    color: #f44336;
}

/* Modal for result */
.arya-wheel-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
}

.arya-wheel-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: aryaModalFadeIn 0.3s ease;
}

@keyframes aryaModalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.arya-wheel-close {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.arya-wheel-close:hover,
.arya-wheel-close:focus {
    color: #333;
    text-decoration: none;
}

.arya-wheel-result-title {
    font-size: 26px;
    color: #4CAF50;
    margin-bottom: 15px;
    font-weight: 700;
}

.arya-wheel-result-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.arya-wheel-result-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.6;
    text-align: right;
    max-height: 120px;
    overflow-y: auto;
}

.arya-wheel-countdown {
    margin-top: 10px;
    font-size: 14px;
    color: #777;
    direction: rtl;
}

.arya-wheel-timer {
    display: inline-block;
    font-weight: bold;
    color: #E91E63;
    min-width: 60px;
}
