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

:root {
    --primary: #ff6b6b;
    --primary-dark: #ee5a5a;
    --secondary: #4ecdc4;
    --accent: #ffe66d;
    --dark: #2d3436;
    --light: #f9f9f9;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Prompt', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--light);
}

.container {
    width: 100%;
    max-width: 500px;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Start Screen */
#start-screen {
    text-align: center;
}

.cover-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Language Selector */
.lang-selector {
    margin-bottom: 25px;
    text-align: center;
}

.lang-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.lang-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lang-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-family: 'Prompt', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary);
}

.lang-btn.active {
    background: var(--gradient-3);
    border-color: transparent;
    font-weight: 600;
}

.title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.highlight {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    font-family: 'Prompt', sans-serif;
    width: 100%;
    max-width: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

.disclaimer {
    margin-top: 30px;
    font-size: 0.75rem;
    opacity: 0.6;
    padding: 0 20px;
}

/* Quiz Screen */
#quiz-screen {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress {
    height: 100%;
    background: var(--gradient-3);
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 0%;
}

.question-count {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 15px;
}

/* Back Button */
.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary);
}

/* Question Image - Centered */
.question-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.question-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.question {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
    min-height: 80px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: left;
    color: var(--light);
    font-family: 'Prompt', sans-serif;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.option-label {
    font-weight: 700;
    color: var(--secondary);
    min-width: 25px;
}

.option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary);
    transform: translateX(5px);
}

.option:active {
    transform: scale(0.98);
}

.option.selected {
    background: var(--gradient-3);
    border-color: transparent;
    animation: shake 0.3s ease;
}

/* Result Screen */
#result-screen {
    text-align: center;
}

.result-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

/* Result Image - At Top - LARGER */
.result-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.result-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

/* Chance Label */
.result-chance-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

/* Percentage - BIG and BOLD */
.result-percentage {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1;
}

.result-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--accent);
}

.result-quote {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 15px;
}

.result-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 20px;
}

.share-section {
    margin-bottom: 20px;
}

.share-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Prompt', sans-serif;
    color: white;
}

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

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

.share-btn.twitter {
    background: #000;
}

.share-btn.line {
    background: #00c300;
}

/* Affiliate Section */
.affiliate-section {
    margin: 25px 0;
}

.btn-affiliate {
    display: block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    text-decoration: none;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    font-family: 'Prompt', sans-serif;
    text-align: center;
    animation: pulse 2s infinite;
}

.copy-link-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.invite-text {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Prompt', sans-serif;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: #4ade80;
    color: #052e16;
    border-color: #4ade80;
    font-weight: 600;
}

.btn-affiliate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

#play-again {
    margin-bottom: 20px;
}

.footer-text {
    font-size: 0.85rem;
    opacity: 0.7;
    padding: 0 20px;
}

/* Result tier specific colors */
.result-card.tier-0 {
    border-color: #4ecdc4;
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
}

.result-card.tier-0 .result-image {
    border-color: #4ecdc4;
}

.result-card.tier-1 {
    border-color: #a8e6cf;
    box-shadow: 0 0 30px rgba(168, 230, 207, 0.3);
}

.result-card.tier-1 .result-image {
    border-color: #a8e6cf;
}

.result-card.tier-2 {
    border-color: #ffd93d;
    box-shadow: 0 0 30px rgba(255, 217, 61, 0.3);
}

.result-card.tier-2 .result-image {
    border-color: #ffd93d;
}

.result-card.tier-3 {
    border-color: #ff9f43;
    box-shadow: 0 0 30px rgba(255, 159, 67, 0.3);
}

.result-card.tier-3 .result-image {
    border-color: #ff9f43;
}

.result-card.tier-4 {
    border-color: #ff6b6b;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.result-card.tier-4 .result-image {
    border-color: #ff6b6b;
}

.result-card.tier-5 {
    border-color: #c0392b;
    box-shadow: 0 0 30px rgba(192, 57, 43, 0.5);
    animation: shake 0.5s infinite;
}

.result-card.tier-5 .result-image {
    border-color: #c0392b;
    animation: pulse 1s infinite;
}

/* Responsive */
@media (max-width: 400px) {
    .title {
        font-size: 1.5rem;
    }

    .question {
        font-size: 1.1rem;
    }

    .result-percentage {
        font-size: 3rem;
    }

    .result-chance-label {
        font-size: 1rem;
    }

    .result-title {
        font-size: 1.4rem;
    }

    .result-image {
        width: 220px;
        height: 220px;
    }

    .option {
        font-size: 0.95rem;
        padding: 14px 16px;
    }

    .lang-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Promo Section */
.promo-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-text {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.promo-card {
    display: block;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary);
}

.promo-image {
    width: 100%;
    height: auto;
    display: block;
}

.promo-info {
    padding: 15px;
    text-align: left;
}

.promo-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--accent);
}

.promo-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}