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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #FF006E 0%, #00D9FF 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 1;
    animation: dotScroll 20s linear infinite;
}

@keyframes dotScroll {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

.app-container {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: linear-gradient(135deg, #FFD700 0%, #FF6B35 100%);
    border: 8px solid #000;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 10px 0 #000,
        0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '💥';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
}

.header::after {
    content: '⚡';
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 80px;
    opacity: 0.2;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(8deg); }
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.main-title {
    font-family: 'Bangers', cursive;
    font-size: 4rem;
    color: #FFF;
    text-shadow: 
        6px 6px 0 #000,
        12px 12px 0 rgba(0,0,0,0.3);
    letter-spacing: 3px;
    margin-bottom: 15px;
    animation: titlePulse 2s ease-in-out infinite;
}

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

.subtitle {
    font-size: 1.8rem;
    color: #FFF;
    font-weight: 900;
    text-shadow: 3px 3px 0 #000;
    margin-bottom: 10px;
}

.credit {
    font-size: 1.1rem;
    color: #000;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    background: #00FF00;
    color: #000;
    padding: 10px 25px;
    border: 4px solid #000;
    border-radius: 50px;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    box-shadow: 0 4px 0 #000;
    animation: badgePulse 1.5s ease-in-out infinite;
}

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

.sound-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bangers', cursive;
    font-size: 5rem;
    color: #FFD700;
    text-shadow: 
        6px 6px 0 #000,
        12px 12px 30px rgba(0,0,0,0.6);
    z-index: 1000;
    animation: soundPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

@keyframes soundPop {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-15deg); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.3) rotate(10deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

.main-content {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
}

.controls-panel {
    background: #FFF;
    border: 8px solid #000;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 8px 0 #000,
        0 8px 30px rgba(0,0,0,0.4);
}

.control-section {
    margin-bottom: 25px;
}

.control-label {
    display: block;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-label-small {
    display: block;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.username-input {
    width: 100%;
    padding: 15px 20px;
    border: 5px solid #000;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 900;
    background: #FFF;
    transition: all 0.2s;
    text-transform: uppercase;
}

.username-input:focus {
    outline: none;
    border-color: #FF006E;
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.2);
    transform: translateY(-3px);
}

.example-badges {
    margin-top: 12px;
}

.example-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 700;
}

.example-badge {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 8px;
    margin-bottom: 8px;
    background: #F0F0F0;
    border: 3px solid #000;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.example-badge:hover {
    background: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 3px 0 #000;
}

.style-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.style-btn {
    padding: 15px;
    border: 5px solid #000;
    border-radius: 12px;
    background: #FFF;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #000;
    text-align: left;
}

.style-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 #000;
}

.style-btn.active {
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #000;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.btn {
    flex: 1;
    padding: 18px 24px;
    border: 5px solid #000;
    border-radius: 12px;
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    box-shadow: 0 5px 0 #000;
}

.btn:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 9px 0 #000;
}

.btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #000;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #FF006E 0%, #FF6B35 100%);
    color: #FFF;
}

.btn-large {
    font-size: 1.5rem;
    padding: 22px 28px;
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 5px 0 #000; }
    50% { box-shadow: 0 5px 0 #000, 0 5px 30px rgba(255, 0, 110, 0.5); }
}

.btn-secondary {
    background: linear-gradient(135deg, #8B00FF 0%, #00D9FF 100%);
    color: #FFF;
}

.btn-success {
    background: linear-gradient(135deg, #00FF00 0%, #00CC88 100%);
    color: #000;
}

.btn-info {
    background: linear-gradient(135deg, #00D9FF 0%, #0066FF 100%);
    color: #FFF;
}

.btn-outline {
    background: #FFF;
    color: #000;
}

.btn-small {
    font-size: 1rem;
    padding: 12px 18px;
}

.btn-icon {
    padding: 8px 12px;
    border: 3px solid #000;
    border-radius: 8px;
    background: #FFD700;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-icon:hover {
    transform: scale(1.1);
}

.customize-drawer {
    background: #F5F5F5;
    border: 4px solid #000;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.number-input,
.tagline-input-small {
    width: 100%;
    padding: 12px 15px;
    border: 4px solid #000;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    background: #FFF;
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button input {
    flex: 1;
}

.slider {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: #DDD;
    outline: none;
    border: 3px solid #000;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FF006E;
    border: 3px solid #000;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FF006E;
    border: 3px solid #000;
    cursor: pointer;
}

.history-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 4px solid #000;
}

.history-title {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.history-item {
    cursor: pointer;
    border: 4px solid #000;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    background: #F0F0F0;
}

.history-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.history-item img {
    width: 100%;
    height: auto;
    display: block;
}

.history-info {
    padding: 8px;
    background: #FFF;
    border-top: 3px solid #000;
    font-weight: 900;
    text-align: center;
    font-size: 0.85rem;
}

.preview-panel {
    background: #FFF;
    border: 8px solid #000;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 8px 0 #000,
        0 8px 30px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    position: relative;
}

.preview-canvas {
    max-width: 100%;
    height: auto;
    border: 6px solid #000;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

.preview-placeholder {
    text-align: center;
    color: #666;
}

.placeholder-content {
    animation: placeholderFloat 3s ease-in-out infinite;
}

@keyframes placeholderFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.placeholder-icon {
    font-size: 6rem;
    margin-bottom: 20px;
}

.placeholder-content h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 15px;
}

.placeholder-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.placeholder-comic {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: #FF006E;
    text-shadow: 3px 3px 0 #000;
}

.footer {
    background: #000;
    color: #FFF;
    border: 8px solid #FFD700;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.footer p {
    margin: 8px 0;
    font-size: 1.1rem;
}

.footer-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 900;
    transition: all 0.2s;
}

.footer-link:hover {
    color: #FF006E;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.easter-egg {
    font-style: italic;
    opacity: 0.9;
    font-size: 1rem;
    margin-top: 10px;
    color: #00FF00;
}

.credits {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 10px;
}