@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;700&family=Outfit:wght@400;700&display=swap');

:root {
    --bg-color: #fff9f0;
    --primary-pink: #ff6b9d;
    --primary-yellow: #ffde59;
    --primary-blue: #5ce1e6;
    --text-dark: #2d3436;
    --text-main: #4a4a4a;
    --card-bg: #ffffff;
    --accent-orange: #ff914d;
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 8px 0 rgba(0, 0, 0, 0.05);
    --btn-shadow: 0 6px 0 rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Zen Maru Gothic', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(255, 107, 157, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 90%, rgba(92, 225, 230, 0.1) 0%, transparent 20%);
}

#app {
    width: 100%;
    max-width: 500px;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-main {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-pink);
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
    letter-spacing: 0.1em;
}

h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    text-shadow: 3px 3px 0px var(--primary-yellow);
    letter-spacing: -0.02em;
}

/* Screen Transitions */
.screen {
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: var(--transition);
}

.screen.active {
    display: block;
    animation: popIn 0.5s forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9) rotate(-2deg);
    }

    70% {
        transform: scale(1.05) rotate(1deg);
    }

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

/* Home */
.intro-text {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    border: 3px solid var(--text-dark);
    position: relative;
}

.intro-text::after {
    content: '★';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2rem;
    color: var(--primary-yellow);
    text-shadow: 2px 2px 0 var(--text-dark);
}

.btn-start {
    display: block;
    width: 100%;
    padding: 22px;
    background: var(--primary-pink);
    border: 3px solid var(--text-dark);
    border-radius: 50px;
    color: white;
    font-weight: 900;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--btn-shadow);
    transition: var(--transition);
    transform: translateY(0);
}

.btn-start:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.1);
    background: #ff85af;
}

.btn-start:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

/* Question Section */
.question-container {
    background: var(--card-bg);
    border: 3px solid var(--text-dark);
    padding: 30px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #eee;
    margin-bottom: 30px;
    border-radius: 10px;
    border: 2px solid var(--text-dark);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-blue);
    width: 0%;
    transition: width 0.4s ease;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-dark);
}

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

.option-btn {
    padding: 18px;
    background: white;
    border: 2px solid var(--text-dark);
    border-radius: 20px;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.05);
}

.option-btn:hover {
    background: var(--primary-yellow);
    transform: scale(1.02);
}

/* Result Screen */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.share-btn {
    padding: 12px 25px;
    border-radius: 50px;
    border: 3px solid var(--text-dark);
    font-weight: 900;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    transition: var(--transition);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SNS Colors & Icons */
.x-share {
    background: #000000;
}

.x-share::before {
    content: '𝕏';
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
}

.line-share {
    background: #06c755;
}

.line-share::before {
    content: 'LINE';
    font-size: 0.7rem;
    background: white;
    color: #06c755;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 900;
}

.copy-share {
    background: var(--primary-blue);
    color: var(--text-dark);
}

.copy-share::before {
    content: '🔗';
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.1);
    filter: brightness(1.1);
}

.share-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.result-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--primary-yellow);
    border: 4px solid var(--text-dark);
    border-radius: 100%;
    margin: 0 auto 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 10px 10px 0 var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-visual img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.type-label {
    background: var(--text-dark);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.tech-name {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-pink);
    text-shadow: 2px 2px 0 var(--text-dark);
    margin-bottom: 10px;
}

.tech-desc {
    background: white;
    padding: 25px;
    border-radius: 25px;
    border: 2px dashed var(--primary-pink);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Loading */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        color: var(--primary-pink);
    }

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

/* Responsive */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .tech-name {
        font-size: 2rem;
    }
}