* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    padding: 20px;
    transition: background 0.5s ease;
    position: relative;
}

.app-header {
    text-align: center;
    padding: 30px 20px;
}

.app-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(2rem, 8vw, 4rem);
    letter-spacing: 3px;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.2);
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.app-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 10px;
}

.spin-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.achievement {
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
}

.category-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.category-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--cat-color);
    border-color: var(--cat-accent);
    box-shadow: 0 0 20px var(--cat-color), 0 0 40px rgba(255,255,255,0.2);
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px var(--cat-color); }
    to { box-shadow: 0 0 30px var(--cat-color), 0 0 50px var(--cat-accent); }
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .main-content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
}

.wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-container {
    position: relative;
}

.wheel-canvas {
    cursor: pointer;
    transition: transform 0.1s ease;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

.wheel-canvas:hover:not(.spinning) {
    transform: scale(1.02);
}

.wheel-canvas.spinning {
    cursor: not-allowed;
}

.wheel-hint {
    margin-top: 15px;
    font-size: 1rem;
    opacity: 0.8;
}

.input-section {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.5);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

.input-group select option {
    background: #1a1a2e;
    color: #fff;
}

.result-section {
    max-width: 600px;
    margin: 30px auto;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.concept-card {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.3s ease;
}

.concept-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

.concept-header {
    margin-bottom: 20px;
}

.concept-name {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.theme-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.concept-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 20px;
}

.concept-features h4,
.concept-palette h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.concept-features ul {
    list-style: none;
    margin-bottom: 20px;
}

.concept-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.concept-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #FBBF24;
}

.palette-colors {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.color-swatch:hover {
    transform: scale(1.1);
}

.concept-mood {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.concept-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-spin {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff;
}

.btn-save {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
}

.btn-copy {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.saved-ideas {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: max-height 0.3s ease;
    max-height: 60px;
    overflow: hidden;
    z-index: 100;
}

.saved-ideas.expanded {
    max-height: 300px;
}

.saved-toggle {
    width: 100%;
    padding: 18px;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.saved-list {
    padding: 0 20px 20px;
    max-height: 220px;
    overflow-y: auto;
}

.saved-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.saved-item:hover {
    background: rgba(255,255,255,0.1);
}

.saved-name {
    flex: 1;
    font-weight: 600;
}

.saved-theme {
    font-size: 1.2rem;
}

.delete-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(239,68,68,0.3);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.delete-btn:hover {
    background: rgba(239,68,68,0.6);
}

.app-footer {
    text-align: center;
    padding: 40px 20px 100px;
    opacity: 0.8;
}

.app-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.app-footer a:hover {
    text-decoration: underline;
}

.app-footer p {
    margin-top: 10px;
    font-style: italic;
    opacity: 0.7;
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    border-radius: 2px;
    animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(calc(var(--vx) * 30px)) translateY(calc(100vh + var(--vy) * -50px)) rotate(720deg);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .app-header {
        padding: 20px 10px;
    }
    
    .category-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .input-section {
        padding: 20px;
    }
    
    .concept-card {
        padding: 20px;
    }
    
    .concept-name {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}