/* Apple-inspired minimal design - matching main site */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-white: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent-gray: #f5f5f7;
    --border-gray: #d2d2d7;
    --hover-bg: #fafafa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--primary-white);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* Puzzle Container */
#puzzle-container {
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.title {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 40px;
}

.puzzle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 12px;
    background: var(--accent-gray);
    border-radius: 18px;
    border: 1px solid var(--border-gray);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.puzzle-piece {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.puzzle-piece.filled {
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f2 100%);
    border: 1px solid var(--border-gray);
}

.puzzle-piece.filled:nth-child(odd) {
    background: linear-gradient(145deg, #f8f8fa 0%, #eeeef0 100%);
}

.empty-slot {
    background: var(--primary-white);
    border: 2px dashed var(--border-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.empty-slot.drag-over {
    border-color: var(--text-primary);
    background: var(--accent-gray);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.drop-hint {
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.draggable-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.puzzle-piece.draggable {
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f2 100%);
    border: 1px solid var(--border-gray);
    cursor: grab;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

.puzzle-piece.draggable:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.puzzle-piece.draggable.dragging {
    opacity: 0.9;
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.puzzle-piece.draggable svg {
    width: 30px;
    height: 30px;
    color: var(--text-secondary);
}

.drag-instruction {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    animation: bounce 2s infinite;
}

/* Contact Info Section */
#contact-info {
    text-align: center;
    opacity: 1;
}

#contact-info.hidden {
    display: none;
}

#contact-info:not(.hidden) {
    -webkit-animation: slideUp 0.6s ease-out forwards;
    animation: slideUp 0.6s ease-out forwards;
}

.success-animation {
    margin-bottom: 24px;
}

.checkmark {
    width: 60px;
    height: 60px;
}

.checkmark-circle {
    stroke: var(--text-primary);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: var(--text-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

.contact-title {
    font-size: clamp(32px, 6vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-org {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--accent-gray);
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--hover-bg);
    border-color: var(--border-gray);
    transform: translateX(4px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
}

.contact-item span {
    font-size: 17px;
    font-weight: 500;
}

.download-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--text-primary);
    border: none;
    border-radius: 14px;
    color: var(--primary-white);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn svg {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes slideUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 400px) {
    .puzzle-piece {
        width: 70px;
        height: 70px;
    }

    .title {
        font-size: 24px;
    }

    .contact-title {
        font-size: 28px;
    }
}
