@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --color-sun: #FFB703;
    --color-orange: #FB8500;
    --color-coral: #FF4D6D;
    --color-pink: #FF758F;
    --color-cyan: #00B4D8;
    --color-blue: #0077B6;
    --color-mint: #06D6A0;
    --color-purple: #7209B7;
    --color-lavender: #9D4EDD;
    --color-bg: #FFFDF9;
    --color-card-bg: #FFFFFF;
    --color-text-main: #2B2D42;
    --color-text-muted: #6C757D;
    --font-heading: 'Fredoka', cursive, sans-serif;
    --font-body: 'Nunito', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #FFF6E5 0%, #FFE9EC 50%, #E8F8F5 100%);
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Floating background doodles */
.bg-doodles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.doodle {
    position: absolute;
    opacity: 0.18;
    animation: floatDoodle 8s ease-in-out infinite alternate;
}

@keyframes floatDoodle {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-25px) rotate(15deg); }
}

/* Container */
.app-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Header */
.club-header {
    text-align: center;
    margin-bottom: 24px;
}

.club-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    padding: 6px 16px;
    border-radius: 999px;
    border: 2px solid var(--color-sun);
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.25);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-orange);
    margin-bottom: 12px;
    transform-origin: center;
}

.club-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    color: #1A1D20;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.club-title .highlight {
    background: linear-gradient(120deg, var(--color-coral) 0%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.club-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Progress Tracker */
.progress-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 16px 20px;
    border: 3px solid #F0E6DF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-blue);
    margin-bottom: 10px;
}

.progress-track-wrap {
    position: relative;
    height: 18px;
    background: #F4F1EA;
    border-radius: 999px;
    padding: 3px;
    border: 2px solid #E5DFD5;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFB703, #FF4D6D, #00B4D8, #06D6A0);
    border-radius: 999px;
    width: 12.5%;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.rocket-mascot {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

/* Main Wizard Step Box */
.wizard-box {
    background: #FFFFFF;
    border-radius: 28px;
    border: 3px solid #EBE4DC;
    box-shadow: 0 12px 32px rgba(43, 45, 66, 0.06), 0 4px 0 #E2D7CC;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Question Header */
.q-tag {
    display: inline-block;
    background: #FFE8ED;
    color: var(--color-coral);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.q-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: #1A1D20;
    margin-bottom: 8px;
    line-height: 1.25;
}

.q-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 24px;
}

/* Option Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.options-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

.options-grid.three-cols {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.options-grid.four-cols {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

/* Option Card */
.opt-card {
    background: #FFFDF9;
    border: 3px solid #E8E2D9;
    border-radius: 20px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 0 #DFD7CC;
    position: relative;
    user-select: none;
}

.opt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #DFD7CC;
    border-color: var(--color-cyan);
}

.opt-card:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #DFD7CC;
}

.opt-card.selected {
    background: #E8F8FC;
    border-color: var(--color-cyan);
    box-shadow: 0 4px 0 #0096C7, 0 0 16px rgba(0, 180, 216, 0.25);
    transform: translateY(-2px);
}

.opt-card.selected .check-pill {
    opacity: 1;
    transform: scale(1);
}

.opt-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    line-height: 1;
}

.opt-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: #1A1D20;
    line-height: 1.2;
}

.opt-sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    font-weight: 600;
}

.check-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-cyan);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom Text Inputs */
.fun-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 18px;
    border: 3px solid #E2D9CF;
    background: #FFFDF9;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fun-input:focus {
    border-color: var(--color-orange);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04), 0 0 0 4px rgba(251, 133, 0, 0.15);
}

.fun-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 20px;
    border-radius: 18px;
    border: 3px solid #E2D9CF;
    background: #FFFDF9;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-main);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fun-textarea:focus {
    border-color: var(--color-purple);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04), 0 0 0 4px rgba(114, 9, 183, 0.15);
}

/* Anonymous / Hero Avatar Selector */
.hero-avatars {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    background: #FFFFFF;
    border: 2px solid #E0D7CC;
    border-radius: 16px;
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 0 #D5CCC0;
    transition: all 0.2s;
}

.hero-btn:hover {
    border-color: var(--color-purple);
    transform: translateY(-2px);
}

.hero-btn.active {
    background: #F3E8FF;
    border-color: var(--color-purple);
    color: var(--color-purple);
    box-shadow: 0 3px 0 #9D4EDD;
}

/* Suggestion Badges */
.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.idea-chip {
    background: #FFF0F3;
    border: 2px solid #FFCCD5;
    border-radius: 999px;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-coral);
    cursor: pointer;
    transition: all 0.2s;
}

.idea-chip:hover {
    background: var(--color-coral);
    color: #FFFFFF;
    transform: scale(1.05);
}

/* Buttons */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 2px dashed #EDE5DC;
}

.btn-fun {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 14px 28px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #06D6A0 0%, #00B4D8 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 0 #0088A3, 0 10px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #0088A3, 0 14px 24px rgba(0, 180, 216, 0.4);
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #0088A3;
}

.btn-prev {
    background: #F4EFEA;
    color: var(--color-text-muted);
    box-shadow: 0 4px 0 #DDD5CB;
}

.btn-prev:hover {
    background: #EDE6DC;
    color: var(--color-text-main);
    transform: translateY(-2px);
}

.btn-prev:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #DDD5CB;
}

.btn-prev:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 0 #DDD5CB !important;
}

/* Celebration Screen */
.celebrate-box {
    text-align: center;
    padding: 30px 20px;
}

.trophy-bounce {
    font-size: 4.5rem;
    display: inline-block;
    margin-bottom: 16px;
    animation: trophyDance 2s ease-in-out infinite alternate;
}

@keyframes trophyDance {
    0% { transform: translateY(0) scale(1) rotate(-5deg); }
    100% { transform: translateY(-15px) scale(1.1) rotate(5deg); }
}

/* Footer & QR Code Section */
.club-footer {
    margin-top: 40px;
    background: #FFFFFF;
    border-radius: 24px;
    border: 3px solid #EBE4DC;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

@media (min-width: 600px) {
    .footer-grid {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.qr-box {
    background: #FFFDF9;
    border: 3px solid #E2D9CF;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 4px 0 #D5CCC0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#qrcode-canvas {
    width: 130px;
    height: 130px;
    border-radius: 8px;
}

.footer-info h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #1A1D20;
    margin-bottom: 6px;
}

.footer-info p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 600;
    line-height: 1.4;
    max-width: 420px;
}

.share-btns {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-share {
    background: #FFFFFF;
    border: 2px solid #E0D7CC;
    border-radius: 12px;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 0 #D5CCC0;
    transition: all 0.2s;
}

.btn-share:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    transform: translateY(-2px);
}

.btn-share:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #D5CCC0;
}

/* Toast */
.toast-msg {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1A1D20;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .club-title { font-size: 1.85rem; }
    .wizard-box { padding: 24px 18px; }
    .q-title { font-size: 1.35rem; }
    .options-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .opt-card { padding: 12px 8px; }
    .opt-icon { font-size: 1.8rem; }
    .opt-label { font-size: 0.95rem; }
    .btn-fun { padding: 12px 20px; font-size: 1rem; }
}
