* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #0a0a0a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

.gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gallery-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
    animation: imageAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
}

.gallery-image {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.gallery-username {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    letter-spacing: 0.05em;
}

.admin-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ff4444;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.gallery-item:hover .admin-delete {
    opacity: 1;
}

@keyframes imageAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.main-title {
    font-size: clamp(1.2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    color: #404040;
    margin-bottom: 1rem;
    text-transform: uppercase;
    overflow: hidden;
}

.main-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterFadeIn 0.5s ease forwards;
}

@keyframes letterFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0;
    animation: subtitleFadeIn 1s ease 0.8s forwards;
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.line {
    width: 0;
    height: 1px;
    background: #333;
    margin: 2rem auto 0;
    animation: lineExpand 0.8s ease 1.2s forwards;
}

@keyframes lineExpand {
    to {
        width: 60px;
    }
}

.upload-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.upload-btn label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #161616;
    border: 1px solid #262626;
    border-radius: 8px;
    color: #888;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn label:hover {
    background: #1a1a1a;
    border-color: #333;
    color: #fff;
}

.upload-btn input {
    display: none;
}

.upload-btn svg {
    width: 18px;
    height: 18px;
}

.counter {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    color: #444;
    font-weight: 500;
    letter-spacing: 0.1em;
    z-index: 20;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.modal-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-input:focus {
    border-color: #555;
}

.modal-input::placeholder {
    color: #555;
}

.color-section {
    margin-bottom: 1.5rem;
}

.color-section label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.color-picker {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: 2px solid #333;
    border-radius: 8px;
}

.username-preview {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    min-width: 100px;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
}

.modal-btn {
    flex: 1;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-skip {
    background: transparent;
    border: 1px solid #333;
    color: #888;
}

.modal-btn-skip:hover {
    border-color: #555;
    color: #fff;
}

.modal-btn-submit {
    background: #fff;
    border: none;
    color: #000;
}

.modal-btn-submit:hover {
    background: #e0e0e0;
}

.modal-btn-delete {
    background: #ff4444;
    border: none;
    color: #fff;
}

.modal-btn-delete:hover {
    background: #ff2222;
}

.delete-modal {
    max-width: 320px;
}

.delete-text {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.admin-badge {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    border: 1px solid #ff4444;
    border-radius: 6px;
    color: #ff4444;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    z-index: 20;
}

@media (max-width: 768px) {
    .main-title {
        letter-spacing: 0.3em;
    }
    
    .subtitle {
        font-size: clamp(2.5rem, 15vw, 6rem);
    }
    
    .gallery-image {
        max-width: 140px;
        max-height: 140px;
    }
    
    .upload-btn label {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .modal {
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }
    
    .subtitle {
        font-size: 2.5rem;
    }
    
    .gallery-image {
        max-width: 100px;
        max-height: 100px;
    }
    
    .gallery-username {
        font-size: 10px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .counter {
        top: 1rem;
        right: 1rem;
        font-size: 0.6rem;
    }
    
    .admin-badge {
        top: 1rem;
        left: 1rem;
        font-size: 0.6rem;
    }
}
