/* Finger Down Challenge - Styles */

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

:root {
    --primary-pink: #ec4899;
    --primary-purple: #a855f7;
    --secondary-pink: #f472b6;
    --secondary-purple: #c084fc;
    --dark-bg: #1a1a2e;
    --card-bg: #2d2d44;
    --text-light: #ffffff;
    --text-gray: #9ca3af;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #fbbf24;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
    min-height: 100vh;
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.page.active {
    display: block;
}

#name-page {
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

#edition-page .container,
#play-page .container,
#results-page .container {
    padding: 16px;
}

/* Landing Page */
.hero {
    text-align: center;
    padding: 60px 20px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.hero-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-yes {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    flex: 1;
    margin-right: 10px;
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.btn-yes:active {
    transform: scale(0.98);
}

.btn-no {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    flex: 1;
    margin-left: 10px;
}

.btn-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
}

.btn-no:active {
    transform: scale(0.98);
}

/* Edition Picker */
.page-header {
    margin-bottom: 30px;
}

/* Name Input Page (Full Screen) */
.name-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.name-page-content {
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out;
}

.name-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.selected-edition-display {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.selected-edition-display span:first-child {
    font-size: 28px;
}

.name-page-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.name-page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.name-inputs-wrapper {
    margin-bottom: 32px;
}

.name-input-card-large {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.name-input-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.name-input-card-large:focus-within {
    border-color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.3);
}

.name-input-card-large:focus-within::before {
    left: 100%;
}

.name-input-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.name-icon-large {
    font-size: 40px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.name-label-large {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin: 0;
}

.name-input-large {
    width: 100%;
    padding: 20px 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-size: 20px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.name-input-large::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.name-input-large:focus {
    outline: none;
    border-color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.25);
    transform: scale(1.02);
}

.error-message-large {
    color: #ff6b6b;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    display: none;
    text-align: center;
    padding: 8px;
    background: rgba(255, 107, 107, 0.15);
    border-radius: 8px;
}

.error-message-large.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

.btn-start-game {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    border: none;
    padding: 22px 32px;
    border-radius: 20px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.4);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.btn-start-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-start-game:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.5);
}

.btn-start-game:hover::before {
    left: 100%;
}

.btn-start-game:active {
    transform: translateY(-2px);
}

.back-to-edition-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-to-edition-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

.page-title {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.editions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.edition-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.edition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.edition-card:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--primary-pink);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.3);
}

.edition-card:hover::before {
    left: 100%;
}

.edition-card:active {
    transform: translateY(-2px) scale(0.98);
}

.edition-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.edition-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

/* Play Page */
.play-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.progress-info {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
}

.sfx-toggle {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sfx-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Hand Container */
.hand-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    padding: 20px;
}

#hand-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.finger {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
    transform-origin: center 200px;
}

.finger.folded {
    transform: rotate(-90deg) translateX(-50px);
    opacity: 0.4;
}

/* Scenario Card */
.scenario-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px;
    margin-top: 20px;
    text-align: center;
}

.scenario-text {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 32px;
    color: white;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Results Page */
.results-content {
    text-align: center;
    padding: 20px 16px 40px;
    animation: fadeInUp 0.6s ease-out;
    max-width: 100%;
}

.results-hand-container {
    position: relative;
    margin: 30px 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: handPulse 2s ease-in-out infinite;
}

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

.results-hand {
    font-size: 140px;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
    position: relative;
    animation: bounce 2s infinite;
}

.finger-count-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    font-weight: 900;
    color: var(--primary-pink);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.4);
    border: 4px solid var(--primary-pink);
    animation: countPulse 1.5s ease-in-out infinite;
}

@keyframes countPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.result-message {
    margin: 30px 0;
    padding: 36px 28px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 28px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.result-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

#result-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

#result-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Names Display */
.names-display {
    margin: 30px 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.names-text {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-align: center;
    letter-spacing: 0.5px;
}

.names-text span {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.results-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 18px 24px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
    z-index: 10;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.btn-action:hover::before {
    left: 100%;
}

.btn-action:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-text {
    font-weight: 800;
}

.download-btn:hover {
    border-color: var(--primary-purple);
    background: rgba(168, 85, 247, 0.2);
}

.share-btn-primary {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    border-color: var(--primary-pink);
}

.share-btn-primary:hover {
    background: linear-gradient(135deg, #f472b6, #c084fc);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.4);
}

/* Replay Button Container */
.replay-container {
    margin-top: 32px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.replay-container.hidden {
    display: none;
}

.replay-container.fade-in-up {
    animation: fadeInUpBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInUpBounce {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    60% {
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-replay {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
    z-index: 10;
}

.btn-replay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-replay:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.5);
}

.btn-replay:hover::before {
    left: 100%;
}

.btn-replay:active {
    transform: translateY(-2px) scale(1.02);
}

.replay-icon {
    font-size: 24px;
    animation: spin 2s linear infinite;
    display: inline-block;
}

.btn-replay:hover .replay-icon {
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Social Share Section */
.social-share-section {
    margin-top: 32px;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.social-share-title {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #0e5cb8);
}

.social-btn.snapchat {
    background: linear-gradient(135deg, #fffc00, #ffd700);
    color: #000;
}

.share-link-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 20px 0;
    word-break: break-all;
}

.share-link-text span {
    font-weight: 600;
    color: white;
}

.btn-copy-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(15px);
    width: 100%;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

.btn-copy-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-copy-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-copy-link:hover::before {
    left: 100%;
}

.btn-copy-link:active {
    transform: translateY(-1px) scale(1);
}

/* Share Card (hidden, for screenshot) - TikTok Format 9:16 */
.share-card {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 1080px;
    height: 1920px;
    background: #000;
    color: white;
    overflow: hidden;
    border-radius: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.share-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        #8b5cf7 0%, 
        #a855f7 20%, 
        #c084fc 40%, 
        #ec4899 60%, 
        #f472b6 80%, 
        #fb7185 100%);
    background-size: 100% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.share-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 80px 60px;
    box-sizing: border-box;
}

/* Header */
.share-header {
    text-align: center;
    margin-bottom: 60px;
}

.share-logo {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.share-app-name {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hand Section */
.share-hand-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    min-height: 400px;
}

.share-hand-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-hand {
    font-size: 280px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
    line-height: 1;
}

.share-finger-count-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: 900;
    color: #ec4899;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4),
                0 0 0 8px rgba(255, 255, 255, 0.3),
                0 0 0 16px rgba(236, 72, 153, 0.2);
    border: 6px solid #ec4899;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Result Section */
.share-result-section {
    text-align: center;
    margin-bottom: 50px;
}

.share-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.share-description-text {
    font-size: 32px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0 40px;
}

/* Names Section */
.share-names-section {
    margin-bottom: 60px;
}

.share-names-wrapper {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 32px 48px;
    display: inline-block;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.share-names-text {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
.share-footer {
    margin-top: auto;
    text-align: center;
}

.share-hashtags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.hashtag {
    font-size: 28px;
    font-weight: 800;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.share-link-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px 32px;
    display: inline-flex;
}

.share-link-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.share-link-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fingerFold {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-90deg) scale(0.8);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .scenario-text {
        font-size: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-yes,
    .btn-no {
        margin: 0;
        margin-bottom: 12px;
    }
    
    .results-hand {
        font-size: 100px;
    }
    
    .finger-count-display {
        font-size: 36px;
        width: 60px;
        height: 60px;
    }
    
    #result-title {
        font-size: 28px;
    }
    
    #result-description {
        font-size: 16px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .names-text {
        font-size: 20px;
    }
    
    .results-hand {
        font-size: 100px;
    }
    
    .finger-count-display {
        width: 80px;
        height: 80px;
        font-size: 42px;
    }
    
    #result-title {
        font-size: 28px;
    }
    
    #result-description {
        font-size: 18px;
    }
    
    .result-message {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .hero {
        padding: 40px 12px;
    }
    
    .hero-icon {
        font-size: 60px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .scenario-card {
        padding: 24px;
    }
    
    .scenario-text {
        font-size: 18px;
    }
    
    .name-page-title {
        font-size: 28px;
    }
    
    .name-page-subtitle {
        font-size: 16px;
    }
    
    .name-input-card-large {
        padding: 24px;
    }
    
    .name-icon-large {
        font-size: 32px;
    }
    
    .name-label-large {
        font-size: 18px;
    }
    
    .name-input-large {
        padding: 18px 20px;
        font-size: 18px;
    }
    
    .btn-start-game {
        padding: 20px 24px;
        font-size: 20px;
    }
    
    .selected-edition-display {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .selected-edition-display span:first-child {
        font-size: 24px;
    }
}

