.page {
    padding: 20px;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    color: #efc7b8;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(239, 199, 184, 0.3);
    margin-bottom: 20px;
    text-align: center;
    color: #efc7b8;
}

.gameContainer {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 40px auto;
}

@media (max-width: 500px) {
    .gameContainer {
        width: 320px;
        height: 320px;
    }
}

.wheelWrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid #2a2a2a;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(239, 199, 184, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 5s cubic-bezier(0.15, 0, 0.15, 1);
}

.labelWrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    padding-top: 20px;
    pointer-events: none;
}

.sectorLabel {
    font-weight: 800;
    font-size: 28px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    user-select: none;
}

/* Center Pin */
.centerPin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #2a2a2a;
    border: 4px solid #efc7b8;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.spinButton {
    background: none;
    border: none;
    color: #efc7b8;
    font-weight: 900;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.spinButton:hover {
    transform: scale(1.1);
}

.spinButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pointer Arrow */
.pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #efc7b8;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 20;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.resultContainer {
    margin-top: 40px;
    text-align: center;
    max-width: 500px;
    padding: 30px;
    background: rgba(42, 42, 42, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(239, 199, 184, 0.2);
    backdrop-filter: blur(10px);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.resultTitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: rgba(239, 199, 184, 0.6);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.resultText {
    font-size: 1.8rem;
    font-weight: bold;
    color: #efc7b8;
    line-height: 1.2;
}

.backLink {
    margin-top: 30px;
    color: rgba(239, 199, 184, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.backLink:hover {
    color: #efc7b8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legendContainer {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}

.legendTitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-align: center;
    color: rgba(239, 199, 184, 0.7);
}

.legendGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 480px) {
    .legendGrid {
        grid-template-columns: 1fr;
    }
}

.legendItem {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 10px;
}

.legendNumber {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.legendText {
    font-size: 0.9rem;
    color: #efc7b8;
}