* {
    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%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: linear-gradient(180deg, #87ceeb 0%, #b0d4f1 100%);
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Character Header */
.character-header {
    text-align: center;
    margin-bottom: 30px;
}

.character-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

/* Username Section */
.username-section {
    text-align: center;
    margin-bottom: 30px;
}

.username-input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-style: italic;
    color: #999;
}

.username-input:focus {
    outline: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    color: #333;
}

.continue-btn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 12px 60px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.continue-btn:active {
    transform: translateY(0);
}

/* Selection Sections */
.selection-section {
    margin-bottom: 35px;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    font-style: italic;
}

.options-grid {
    display: grid;
    gap: 15px;
    justify-content: center;
}

.diamonds-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 450px;
    margin: 0 auto;
}

.class-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 450px;
    margin: 0 auto;
}

.items-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 450px;
    margin: 0 auto;
}

.option-card {
    background: white;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.option-card.selected {
    border-color: #4a90e2;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.option-image {
    font-size: 50px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.diamond-icon {
    filter: drop-shadow(0 2px 8px rgba(0, 191, 255, 0.4));
}

.diamond-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.class-icon {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.class-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-icon {
    background: linear-gradient(135deg, #d4a574 0%, #b8944a 100%);
    border-radius: 10px;
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 5px;
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.option-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 8px;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 15px 80px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(245, 87, 108, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    .diamonds-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .class-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .option-card {
        padding: 15px 5px;
    }

    .option-image {
        font-size: 35px;
        height: 50px;
    }

    .class-icon,
    .item-icon {
        width: 55px;
        height: 55px;
    }

    .diamond-img {
        width: 50px;
        height: 50px;
    }

    .option-label {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .diamonds-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .class-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 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.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-title {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-username {
    color: #3498db;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.verification-text {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 20px;
}

.modal-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.modal-item {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.modal-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.modal-item span {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 15px 50px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.confirm-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

.verify-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.verify-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

.modal-btn:active {
    transform: translateY(0);
}

/* Loading Screen */
.loading-screen {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.loading-screen.show {
    display: block;
}

.loading-content {
    text-align: center;
}

.spinner {
    border: 5px solid rgba(52, 152, 219, 0.3);
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}
