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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.intro-text {
    text-align: center;
    color: #888;
    font-size: 1em;
    margin-bottom: 30px;
}

.game-modes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.mode-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.mode-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.mode-title {
    color: #667eea;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.mode-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 45px;
}

.mode-button {
    margin-top: 0;
    font-size: 1em;
    padding: 12px 25px;
}

.standard-mode-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.guess-mode-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.guess-mode-btn:hover {
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.3);
}

.name-input-container {
    margin: 30px 0;
}

.name-input-group {
    margin-bottom: 25px;
}

.name-label {
    display: block;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.name-input {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.3s;
}

.name-input:focus {
    outline: none;
    border-color: #667eea;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    margin-top: 20px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

button:active {
    transform: translateY(0);
}

.question-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #667eea;
    margin-bottom: 15px;
}

.question-text {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.answer-input {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.answer-input:focus {
    outline: none;
    border-color: #667eea;
}

.player-label {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.answers-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.answer-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

.answer-box.match {
    border-color: #4caf50;
    background: #e8f5e9;
}

.answer-box h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1em;
}

.answer-box p {
    color: #333;
    font-size: 1.1em;
    word-wrap: break-word;
}

.conversation-prompt {
    background: #fff3e0;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 4px solid #ff9800;
}

.conversation-prompt h3 {
    color: #ff9800;
    margin-bottom: 10px;
    font-size: 1em;
}

.conversation-prompt p {
    color: #555;
    line-height: 1.6;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    gap: 15px;
}

.toggle-label {
    color: #666;
    font-size: 1em;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: #667eea;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.toggle-switch.active::after {
    left: 32px;
}

.summary-stats {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #666;
    font-size: 1em;
}

.stat-value {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
}

.final-message {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    line-height: 1.8;
    margin: 20px 0;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.guess-input {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #e0e0e0;
}

.guess-label {
    color: #ff9800;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.info-text {
    color: #888;
    font-size: 0.9em;
    margin-top: 5px;
    font-style: italic;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.match-button {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.match-button:hover {
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.nomatch-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.nomatch-button:hover {
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.share-section {
    margin: 30px 0 20px 0;
    padding: 25px;
    background: #f8f8f8;
    border-radius: 15px;
}

.share-title {
    text-align: center;
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.share-image-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 20px auto;
    width: auto;
    padding: 15px 30px;
}

.share-image-btn:hover {
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.share-image-btn svg {
    transform: rotate(90deg);
}

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

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.95em;
    border-radius: 10px;
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn svg {
    flex-shrink: 0;
}

.twitter-btn {
    background: #000000;
}

.twitter-btn:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.facebook-btn {
    background: #1877f2;
}

.facebook-btn:hover {
    box-shadow: 0 8px 16px rgba(24, 119, 242, 0.3);
}

.whatsapp-btn {
    background: #25d366;
}

.whatsapp-btn:hover {
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
}

.telegram-btn {
    background: #0088cc;
}

.telegram-btn:hover {
    box-shadow: 0 8px 16px rgba(0, 136, 204, 0.3);
}

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

.instagram-btn:hover {
    box-shadow: 0 8px 16px rgba(225, 48, 108, 0.4);
}

.reddit-btn {
    background: #ff4500;
}

.reddit-btn:hover {
    box-shadow: 0 8px 16px rgba(255, 69, 0, 0.3);
}

.nestox-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-text {
    color: #999;
    font-size: 0.9em;
    font-weight: normal;
}

.nestox-logo-footer {
    height: 24px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
}

.nestox-brand-footer {
    color: #667eea;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visual-result-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff0f8 100%);
    border-radius: 20px;
    padding: 40px 30px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
}

.result-visual {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(1);
        opacity: 0;
    }
}

.connection-score {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.score-circle {
    position: relative;
    width: 140px;
    height: 140px;
}

.score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 8;
}

.score-ring-fill {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease-out;
}

.score-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-percentage {
    font-size: 2.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.score-label {
    font-size: 0.9em;
    color: #999;
    margin-top: 5px;
}

.result-emoji {
    font-size: 4em;
    margin: 20px 0;
    animation: bounce 2s ease-in-out infinite;
}

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

.result-stats-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-visual-item {
    text-align: center;
    padding: 20px 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.85em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
    }

    .nestox-logo-footer {
        height: 20px;
    }

    .footer-text {
        font-size: 0.85em;
    }

    .nestox-brand-footer {
        font-size: 0.9em;
    }

    .answers-container {
        grid-template-columns: 1fr;
    }

    .question-text {
        font-size: 1.2em;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .mode-icon {
        font-size: 2.5em;
    }

    .mode-title {
        font-size: 1.2em;
    }

    .mode-description {
        font-size: 0.9em;
        min-height: auto;
    }

    .result-stats-visual {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-visual-item {
        padding: 15px;
    }

    .score-percentage {
        font-size: 2em;
    }

    .result-emoji {
        font-size: 3em;
    }
}