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

html {
    overflow-x: hidden;
    width: 100%;
    background: #000000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    color: white;
    min-height: 100vh;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
}

.yt-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.yt-badge {
    width: 80px;
    height: 56px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.4);
}

.yt-play {
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 4px;
}

/* Landing Page */
.landing-content {
    text-align: center;
    max-width: 768px;
    margin: 0 auto;
    padding: 64px 16px;
}

.landing-title {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(to bottom, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
    line-height: 1.1;
}

.landing-badge {
    display: inline-block;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.9), rgba(185, 28, 28, 0.9));
    backdrop-filter: blur(8px);
    padding: 16px 40px;
    border-radius: 9999px;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.2);
    margin-bottom: 56px;
}

.btn-start {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 28px 80px;
    font-size: 24px;
    font-weight: 600;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.5);
    transition: all 0.3s;
    animation: pulse-red 2.5s ease-in-out infinite;
}

.btn-start:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: scale(1.05);
}

.store-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 56px;
    opacity: 0.25;
}

.store-icons svg {
    width: 36px;
    height: 36px;
    fill: #71717a;
}

/* Quiz Page */
.quiz-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.quiz-badge {
    width: 48px;
    height: 32px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
    flex-shrink: 0;
}

.quiz-badge-play {
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 2px;
}

.quiz-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to bottom, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-subtitle {
    font-size: 14px;
    color: #71717a;
    font-weight: 500;
}

.quiz-subtitle .amount {
    color: #4ade80;
    font-weight: 600;
}

.status-bar {
    background: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(40px);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border: 1px solid rgba(39, 39, 42, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.status-item {
    background: rgba(39, 39, 42, 0.6);
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
}

.balance {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #4ade80;
    animation: pulse-green-subtle 3s ease-in-out infinite;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(24, 24, 27, 0.5);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(39, 39, 42, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #dc2626, #ef4444, #dc2626);
    border-radius: 9999px;
    transition: width 0.5s;
}

.video-card {
    background: rgba(24, 24, 27, 0.4);
    backdrop-filter: blur(40px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(39, 39, 42, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: #09090b;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artist-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #e4e4e7;
    border: 1px solid rgba(113, 113, 122, 0.5);
}

.video-content {
    padding: 32px;
}

.question-title {
    font-size: 24px;
    font-weight: 600;
    color: #fafafa;
    margin-bottom: 28px;
}

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

.answer-btn {
    padding: 28px 24px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(39, 39, 42, 0.6);
    color: #e4e4e7;
    border: 2px solid rgba(113, 113, 122, 0.5);
    backdrop-filter: blur(8px);
}

.answer-btn:hover:not(:disabled) {
    background: rgba(63, 63, 70, 0.6);
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.answer-btn.selected-like {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.answer-btn.selected-dislike {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

.emoji {
    font-size: 28px;
}

/* Notification */
.notification {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 16px;
}

.notification.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.notification-content {
    text-align: center;
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-emoji {
    font-size: 72px;
    margin-bottom: 20px;
}

.notification-card {
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 32px 56px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.4);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.notification-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.notification-amount {
    font-size: 48px;
    font-weight: 700;
}

/* Completion Page */
.completion-content {
    text-align: center;
    max-width: 672px;
    margin: 0 auto;
    padding: 32px 16px;
}

.celebration-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.celebration-emoji {
    font-size: 60px;
    animation: bounce 1s ease-in-out;
}

.celebration-emoji:nth-child(2) {
    animation-delay: 0.2s;
}

.yt-badge-large {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

.yt-play-large {
    width: 0;
    height: 0;
    border-left: 14px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 2px;
}

.completion-title {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(to bottom, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.1;
}

.completion-subtitle {
    font-size: 24px;
    color: #a1a1aa;
    font-weight: 500;
    margin-bottom: 32px;
}

.balance-card {
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.6), rgba(39, 39, 42, 0.6));
    backdrop-filter: blur(40px);
    border-radius: 24px;
    padding: 40px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 32px;
}

.balance-label {
    font-size: 14px;
    color: #71717a;
    font-weight: 500;
    margin-bottom: 12px;
}

.balance-amount {
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(135deg, #4ade80, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.balance-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

.dot:nth-child(4) {
    animation-delay: 0.6s;
}

.success-message {
    background: rgba(24, 24, 27, 0.4);
    backdrop-filter: blur(40px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(39, 39, 42, 0.5);
    margin-bottom: 32px;
}

.success-text {
    font-size: 16px;
    color: #a1a1aa;
    font-weight: 500;
    line-height: 1.6;
}

.btn-withdraw {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 24px 32px;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-withdraw:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 20px 70px rgba(16, 185, 129, 0.6);
    transform: scale(1.05);
}

.wallet-icon {
    width: 24px;
    height: 24px;
}

footer {
    text-align: center;
    color: #52525b;
    font-size: 12px;
    font-weight: 500;
    margin-top: 64px;
    padding-bottom: 32px;
}

/* Animations */
@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(220, 38, 38, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 20px 80px rgba(220, 38, 38, 0.7);
        transform: scale(1.02);
    }
}

@keyframes pulse-green-subtle {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

@keyframes bounce-in {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .container {
        padding: 8px;
    }
    
    .yt-badge {
        width: 64px;
        height: 44px;
    }
    
    .yt-play {
        border-left: 16px solid white;
        border-top: 11px solid transparent;
        border-bottom: 11px solid transparent;
    }
    
    .yt-badge-container {
        margin-bottom: 24px;
    }
    
    .landing-content {
        padding: 32px 12px;
    }
    
    .landing-title {
        font-size: 36px;
        margin-bottom: 24px;
    }
    
    .landing-badge {
        font-size: 14px;
        padding: 10px 20px;
        margin-bottom: 40px;
    }
    
    .btn-start {
        padding: 18px 40px;
        font-size: 16px;
        width: 100%;
    }
    
    .store-icons {
        margin-top: 40px;
    }
    
    .store-icons svg {
        width: 24px;
        height: 24px;
    }
    
    .quiz-header {
        margin-bottom: 24px;
        gap: 12px;
    }
    
    .quiz-badge {
        width: 36px;
        height: 26px;
    }
    
    .quiz-badge-play {
        border-left: 8px solid white;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
    }
    
    .quiz-title {
        font-size: 20px;
    }
    
    .quiz-subtitle {
        font-size: 12px;
    }
    
    .status-bar {
        padding: 12px;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .status-item {
        width: 100%;
        text-align: center;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .progress-bar {
        margin-bottom: 24px;
    }
    
    .video-card {
        border-radius: 16px;
    }
    
    .video-content {
        padding: 16px;
    }
    
    .question-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .answers {
        gap: 12px;
    }
    
    .answer-btn {
        padding: 18px 16px;
        font-size: 15px;
        gap: 8px;
    }
    
    .emoji {
        font-size: 28px;
    }
    
    .notification-emoji {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .notification-card {
        padding: 24px 28px;
    }
    
    .notification-title {
        font-size: 16px;
    }
    
    .notification-amount {
        font-size: 32px;
    }
    
    .completion-content {
        padding: 24px 12px;
    }
    
    .celebration-icons {
        margin-bottom: 24px;
        gap: 16px;
    }
    
    .celebration-emoji {
        font-size: 40px;
    }
    
    .yt-badge-large {
        width: 52px;
        height: 52px;
    }
    
    .yt-play-large {
        border-left: 12px solid white;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }
    
    .completion-title {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .completion-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .balance-card {
        padding: 28px 20px;
        margin-bottom: 24px;
    }
    
    .balance-label {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .balance-amount {
        font-size: 48px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .balance-dots {
        margin-top: 20px;
        gap: 8px;
    }
    
    .success-message {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .success-text {
        font-size: 14px;
    }
    
    .btn-withdraw {
        padding: 20px 24px;
        font-size: 17px;
    }
    
    .wallet-icon {
        width: 20px;
        height: 20px;
    }
    
    footer {
        margin-top: 48px;
        font-size: 11px;
    }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .container {
        padding: 32px;
    }
    
    .yt-badge {
        width: 96px;
        height: 64px;
    }
    
    .landing-title {
        font-size: 72px;
    }
    
    .quiz-title {
        font-size: 36px;
    }
    
    .quiz-subtitle {
        font-size: 16px;
    }
    
    .answers {
        grid-template-columns: 1fr 1fr;
    }
    
    .emoji {
        font-size: 48px;
    }
    
    .completion-title {
        font-size: 72px;
    }
    
    .yt-badge-large {
        width: 80px;
        height: 80px;
    }
    
    .celebration-emoji {
        font-size: 80px;
    }
}

@media (min-width: 1024px) {
    .landing-title {
        font-size: 84px;
    }
}