@layer utilities {  
            .content-auto {
                content-visibility: auto;
            }
            .card-position {
                position: absolute;
                left: 50%;
                top:500px;
                border-radius: 20px;
                transform-origin: center;
                transition: transform 0.4s ease-out;
            }
            .card-position>div{
                border-radius: 20px;
            }
            .wheel-rotate {
                transition: transform 0.4s ease-out;
            }
        }
        @keyframes optionPulse {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
            50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
        }
        .option-pulse {
            animation: optionPulse 300ms ease-out;
            border-color: #D4AF37 !important;
        }
        .option-selected {
            background-color: #f8c4183b !important;
            color: #000000 !important;
            box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2);
        }
        .transition-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000;
            background: radial-gradient(circle at 50% 50%, rgba(212,175,55,0.18), rgba(245,245,220,0.95));
            backdrop-filter: blur(2px);
            opacity: 0;
            transition: opacity 450ms ease;
        }
        @keyframes cardAppear {
            0% { opacity: 0; transform: translateY(16px) scale(0.96); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }
        .card-appear { animation: cardAppear 450ms ease-out both; }
        @keyframes introAppear {
            0% { opacity: 0; transform: translateY(12px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        .intro-appear { animation: introAppear 450ms ease-out both 80ms; }
        .card-hint {
            position: absolute;
            top: 20px;
            left: 50%;
            white-space: nowrap;
            transform: translateX(-50%);
            background: rgba(212,175,55,0.95);
            color: #fff;
            padding: 4px 10px;
            border-radius: 9999px;
            font-size: 12px;
            line-height: 1;
            pointer-events: none;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }
        #cards-container{
            /* width: 300px; */
            position: absolute;
            /* background: rgba(102, 51, 153, 0.286); */
            overflow: hidden;
            /* bottom: -280px; */
        }
        #cards-container-main{
            width: 100%; 
            position: absolute; 
            top: 0px;
            height: 100%;
            user-select: none;
        }  
        .main-container{
            min-height: calc(100vh - 100px);
            box-sizing: border-box;
            overflow: hidden;
        }
        #wheel{
            position: absolute;
            max-width: 520px;
            left: 50%;
            transform: translateX(-50%) translateY(50%);
            bottom: 0;
            
            width: 100%;
            aspect-ratio: 1 / 1;
        }
        .title-container {
            padding-top: 10px;
            box-sizing: border-box;
            height: 100px;
            font-size: 10px;
        }
 #cards-container img{
            -webkit-user-drag: none;
 }
         #wheel img{
transition: all 0.3s;
width: 100%;
            transform: rotate(0deg);
            user-select: none;
            -webkit-user-drag: none;
         }

         #prev-btn{
            left: 5%;
         }

         #next-btn{
            right: 5%;
         }

         #prev-btn, #next-btn{
            top: 50%;
            transform: translateY(-50%);
         }
        #introduction{
            right: 7%;
        }
        @media (max-width: 768px) {
            #introduction{
                right: auto;
                left: auto;
                width: min(92vw, 480px);
            }
            html[dir="rtl"] #introduction{
                left: 50%;
                transform: translate(-50%, -50%);
            }
        }

        .mobile-toast{
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            bottom: 12px;
            z-index: 1100;
            background: rgba(212,175,55,0.95);
            color: #fff;
            padding: 8px 14px;
            border-radius: 9999px;
            font-size: 14px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
            transition: opacity 200ms ease;
            opacity: 0;
            pointer-events: auto;
            white-space: nowrap;
            max-width: 92vw;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
        }
        html[dir="rtl"] .mobile-toast{ direction: rtl; }
        .mobile-toast .toast-hint{ font-size: 12px; opacity: 0.95; }
        html[dir="ltr"] .mobile-toast .toast-hint{ margin-left: 8px; }
        html[dir="rtl"] .mobile-toast .toast-hint{ margin-right: 8px; }

        .result-guide{
            position: absolute;
            top: 12px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(212,175,55,0.95);
            color: #fff;
            padding: 4px 10px;
            border-radius: 9999px;
            font-size: 12px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            white-space: nowrap;
            line-height: 1;
            pointer-events: none;
        }
        html[dir="rtl"] .result-guide{ direction: rtl; }

         .desc-center{
            width: 130px;
            font-size: 10px;
            user-select: none;
         }