.fortune-wheel-wrapper {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.fortune-wheel-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 40px;
    margin-bottom: 10px;
}

.swipe-hint {
    position: absolute;
    color: #4a5568;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    margin: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    animation: bounce-hint 2s infinite ease-in-out;
}

@keyframes bounce-hint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    animation: none;
}

.fortune-wheel-container {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    touch-action: none;
    cursor: grab;
    margin-top: 10px;
}

.fortune-wheel-container:active {
    cursor: grabbing;
}

.fortune-wheel-base-shadow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background-color: #2d3748;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    z-index: 1;
}

.fortune-wheel-canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
    position: relative;
    z-index: 2;

    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;

    transform: rotate(0deg) translateZ(0);
}

.fortune-wheel-glass-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.4),
                inset 0 10px 20px rgba(255,255,255,0.4);
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
}

.fortune-wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 45px;
    background: #e53e3e;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    filter: drop-shadow(0 5px 4px rgba(0,0,0,0.5));
}

.fortune-wheel-pointer::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.spin-counter-badge {
    background: #2d3748;
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 2px solid rgba(255,255,255,0.1);
}

#ergebnis-anzeige {
    margin-top: 25px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #2d3748;
    text-align: center;
    min-height: 4rem;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@keyframes pulse-text {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.is-pulsing {
    animation: pulse-text 1.5s infinite ease-in-out;
    color: #718096 !important;
}

.prob-table-wrapper {
    width: 100%;
    max-width: 420px;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.prob-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.prob-table th {
    background-color: #f7fafc;
    padding: 15px 20px;
    font-size: 0.85rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #edf2f7;
}

.prob-table td {
    padding: 14px 20px;
    border-top: 1px solid #edf2f7;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.prob-table tr.highlight-row td {
    background-color: var(--highlight-color);
}

.color-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: -3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.05);
}

.prob-value {
    font-weight: bold;
    color: #4a5568;
}

.confetti-piece {
    position: fixed;
    top: -20px;
    width: 10px;
    height: 20px;
    background: #ffd300;
    animation: fall 3s linear forwards;
    z-index: 1000;
    pointer-events: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}
