* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Hauptbereich Styles */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    min-height: 0;
}

.slot-selection-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.selection-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slot-selection-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    gap: 15px;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    padding: 10px;
}

.slot-selection-grid::-webkit-scrollbar {
    height: 8px;
}

.slot-selection-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.slot-selection-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.slot-selection-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slot-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
    min-height: 0;
}

.slot-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.slot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.slot-card:hover::before {
    left: 100%;
}

.slot-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.slot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slot-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6), transparent);
    color: white;
    padding: 12px 8px 8px 8px;
    transform: translateY(70%);
    transition: transform 0.3s ease;
}

.slot-card:hover .slot-info-overlay {
    transform: translateY(0);
}

.slot-name {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 6px;
    text-align: center;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.slot-features {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
    margin-bottom: 4px;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6em;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.slot-level-info {
    text-align: center;
    font-size: 0.7em;
    font-weight: bold;
    color: #27ae60;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.slot-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.slot-card.locked:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slot-card.locked .slot-level-info {
    color: #e74c3c;
}

.slot-card.locked:hover .slot-info-overlay {
    transform: translateY(0);
}

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8em;
    z-index: 10;
}

.coming-soon-card {
    background: linear-gradient(145deg, #bdc3c7, #95a5a6);
    border: 2px dashed #7f8c8d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    cursor: default;
}

.coming-soon-card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.coming-soon-icon {
    font-size: 2em;
    margin-bottom: 10px;
    opacity: 0.7;
}

.coming-soon-text {
    font-size: 0.8em;
    font-weight: bold;
    color: #7f8c8d;
    text-align: center;
    line-height: 1.2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 20px;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 20px;
}

/* Daily Spin Wheel */
.daily-wheel {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #ffd700;
    z-index: 10;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.7));
    animation: pointerGlow 2s ease-in-out infinite alternate;
}

@keyframes pointerGlow {
    0% { filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    100% { filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 0 50px rgba(255, 215, 0, 0.3);
    border: 6px solid rgba(255, 215, 0, 0.8);
    transition: transform 3s cubic-bezier(0.23, 1, 0.320, 1);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent);
}

.wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    z-index: 20;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.wheel-segment:nth-child(1) {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: rotate(0deg);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.wheel-segment:nth-child(2) {
    background: linear-gradient(135deg, #3498db, #2980b9);
    transform: rotate(60deg);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.wheel-segment:nth-child(3) {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: rotate(120deg);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.wheel-segment:nth-child(4) {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: rotate(180deg);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.wheel-segment:nth-child(5) {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    transform: rotate(240deg);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.wheel-segment:nth-child(6) {
    background: linear-gradient(135deg, #ffd700, #f1c40f);
    transform: rotate(300deg);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.segment-content {
    transform: rotate(-30deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 25%;
    transform: rotate(-30deg) translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

.spin-wheel-button {
    display: block;
    margin: 30px auto 20px auto;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff6b6b, #ffd700, #4ecdc4);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: buttonGradient 3s ease infinite;
}

@keyframes buttonGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.spin-wheel-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.spin-wheel-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.spin-wheel-button:hover::before {
    left: 100%;
}

.spin-wheel-button:active {
    transform: scale(0.98);
}

.spin-wheel-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
    background: #95a5a6;
}

.daily-status {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    min-height: 25px;
    margin-top: 10px;
}

.daily-status {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

/* Rewards Modal */
.reward-claim {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.reward-icon {
    font-size: 48px;
}

.reward-text h3 {
    margin-bottom: 10px;
    color: #ffd700;
}

.reward-text p {
    font-size: 14px;
    opacity: 0.9;
}

.claim-button {
    padding: 10px 20px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.claim-button:hover {
    transform: scale(1.05);
}

.claim-button:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
}

.reward-timer-display {
    text-align: center;
    font-size: 16px;
    color: #feca57;
}

/* Club Modal */
.club-info {
    text-align: center;
}

.club-info h3 {
    margin-bottom: 15px;
    color: #ffd700;
}

.club-info p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.club-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 8px 12px;
    }
    
    .slot-selection-container {
        padding: 15px;
        border-radius: 12px;
    }
    
    .selection-title {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    
    .slot-selection-grid {
        grid-auto-columns: minmax(120px, 1fr);
        gap: 10px;
        padding: 8px;
    }
    
    .slot-card {
        padding: 6px;
        border-radius: 10px;
    }
    
    .slot-info-overlay {
        padding: 8px 6px 6px 6px;
        transform: translateY(60%);
    }
    
    .slot-name {
        font-size: 0.8em;
        margin-bottom: 4px;
    }
    
    .feature-badge {
        font-size: 0.55em;
        padding: 1px 4px;
    }
    
    .slot-level-info {
        font-size: 0.65em;
    }
    
    .feature-badge {
        font-size: 0.5em;
        padding: 1px 4px;
    }
    
    .play-button {
        font-size: 0.7em;
        padding: 6px 10px;
    }
    
    .coming-soon-icon {
        font-size: 1.5em;
        margin-bottom: 6px;
    }
    
    .coming-soon-text {
        font-size: 0.7em;
    }
    
    .modal-content {
        margin: 8px;
        width: 95%;
    }
    
    .daily-wheel {
        width: 220px;
        height: 220px;
    }
    
    .wheel-pointer {
        font-size: 32px;
        top: -12px;
    }
    
    .wheel-segment {
        font-size: 14px;
    }
    
    .spin-wheel-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 8px;
        padding: 6px 10px;
    }
    
    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .selection-title {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
    
    .slot-selection-grid {
        grid-auto-columns: minmax(100px, 1fr);
        gap: 8px;
        padding: 6px;
    }
    
    .slot-card {
        padding: 4px;
        border-radius: 8px;
    }
    
    .slot-info-overlay {
        padding: 6px 4px 4px 4px;
        transform: translateY(50%);
    }
    
    .slot-name {
        font-size: 0.7em;
        margin-bottom: 3px;
    }
    
    .feature-badge {
        font-size: 0.45em;
        padding: 1px 3px;
    }
    
    .slot-level-info {
        font-size: 0.6em;
    }
    
    .coming-soon-icon {
        font-size: 1.2em;
        margin-bottom: 4px;
    }
    
    .coming-soon-text {
        font-size: 0.6em;
    }
    
    .lock-overlay {
        font-size: 0.6em;
        padding: 4px 8px;
        border-radius: 10px;
    }
    
    .daily-wheel {
        width: 180px;
        height: 180px;
    }
    
    .wheel-pointer {
        font-size: 28px;
        top: -10px;
    }
    
    .wheel-segment {
        font-size: 12px;
    }
    
    .segment-content {
        font-size: 12px;
    }
    
    .spin-wheel-button {
        padding: 10px 25px;
        font-size: 14px;
        margin: 20px auto 15px auto;
    }
    
    .daily-status {
        font-size: 14px;
    }
    
    .version-info {
        bottom: 3px;
        right: 10px;
        font-size: 8px;
        gap: 1px;
    }
    
    .copyright-text {
        font-size: 7px;
    }
}

/* Reward Claim Animation */
@keyframes rewardClaim {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}
