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

body {
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
}

#app {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

#app h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #4c1d95;
}

#app p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

#start-button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    font-weight: bold;
}

#start-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
}

#start-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

#webcam-container {
    margin: 1.5rem auto;
    border-radius: 1rem;
    overflow: hidden;
    display: inline-block;
}

#webcam-container canvas {
    display: block;
    border-radius: 1rem;
}

#result-container {
    margin-top: 1rem;
    text-align: left;
}

.bar-wrapper {
    margin-bottom: 0.8rem;
}

.bar-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

.bar-bg {
    width: 100%;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.2s ease;
    width: 0%;
}

#message-container {
    margin-top: 1.2rem;
    font-size: 1.1rem;
    font-weight: bold;
    min-height: 2rem;
    padding: 0.8rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

#message-container.result-dog {
    background: #fef3c7;
    color: #92400e;
}

#message-container.result-cat {
    background: #ede9fe;
    color: #5b21b6;
}

#disqus_thread {
    width: 100%;
    max-width: 400px;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
