@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
    --bg-1: #fff3d4;
    --bg-2: #eef4ff;
    --ink: #1f2937;
    --muted: #6b7280;
    --accent: #ff6b4a;
    --accent-2: #1da4a5;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    color: var(--ink);
    min-height: 100vh;
    background: radial-gradient(circle at top, var(--bg-1), var(--bg-2));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(circle at 20% 20%, rgba(29, 164, 165, 0.12), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(255, 107, 74, 0.15), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.hero {
    padding: 32px 20px 12px;
    text-align: center;
}

.hero__inner {
    max-width: 720px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(29, 164, 165, 0.16);
    color: #0f5d5e;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.hero__copy {
    margin: 0 auto 18px;
    color: var(--muted);
    font-size: 1.05rem;
}

.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 107, 74, 0.25);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(255, 107, 74, 0.3);
}

button:active {
    transform: translateY(1px);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.8);
    color: var(--accent-2);
    border: 1px solid rgba(29, 164, 165, 0.4);
    box-shadow: none;
}

.button--ghost:hover {
    box-shadow: 0 10px 20px rgba(29, 164, 165, 0.18);
}

.status {
    margin: 16px 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.stage {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.panel {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel__title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--muted);
}

.video-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    min-height: 220px;
}

#video {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

#video.is-mirrored {
    transform: scaleX(-1);
}

.video-overlay {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

#emotion-image {
    width: min(280px, 80vw);
    height: auto;
    align-self: center;
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 74, 0.25);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.hint {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer {
    text-align: center;
    padding: 10px 20px 30px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 720px) {
    .hero {
        padding-top: 26px;
    }

    .stage {
        padding: 16px;
    }

    .panel {
        padding: 16px;
    }

    button {
        width: 100%;
    }

    .controls {
        gap: 10px;
    }
}
