/* =========================================
   BOO5 — CUTE CARTOON ROAST EXPERIENCE
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Fredoka:wght@400;500;600;700&display=swap');

:root {
    --bg: #10091f;
    --bg-light: #1a1030;
    --purple: #9b6cff;
    --purple-light: #c5a8ff;
    --pink: #ff82c8;
    --cyan: #83f3ff;
    --yellow: #ffe58a;
    --white: #fff9ff;
    --muted: #c0b4d5;
    --card: rgba(36, 23, 58, 0.92);
    --border: rgba(203, 172, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, #291546 0%, transparent 50%),
        var(--bg);
    color: var(--white);
    font-family: 'Baloo 2', sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}


/* =========================================
   BACKGROUND EFFECTS
========================================= */

.background-effects {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-blob {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.blob-one {
    top: 10%;
    left: -200px;
    background: #a65dff;
    animation: blobMove 15s ease-in-out infinite alternate;
}

.blob-two {
    right: -200px;
    bottom: 5%;
    background: #ff5fbd;
    animation: blobMove 19s ease-in-out infinite alternate-reverse;
}

@keyframes blobMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(80px, -50px);
    }
}

.floating-emoji {
    position: absolute;
    font-size: 27px;
    opacity: 0.19;
    animation: floatEmoji 6s ease-in-out infinite;
}

.emoji-one {
    top: 20%;
    left: 8%;
}

.emoji-two {
    top: 65%;
    left: 5%;
    animation-delay: 1s;
}

.emoji-three {
    top: 32%;
    right: 8%;
    animation-delay: 2s;
}

.emoji-four {
    top: 78%;
    right: 7%;
    animation-delay: 3s;
}

@keyframes floatEmoji {
    0%, 100% {
        transform: translateY(0) rotate(-8deg);
    }

    50% {
        transform: translateY(-22px) rotate(10deg);
    }
}


/* =========================================
   TOPBAR
========================================= */

.topbar {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 25px;
}

.brand {
    position: relative;

    color: var(--white);
    font-family: 'Fredoka', sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    letter-spacing: -1px;
}

.brand > span:first-child {
    color: var(--pink);
}

.brand-sparkle {
    position: absolute;
    top: -10px;
    right: -15px;

    color: var(--yellow);
    font-size: 17px;

    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    50% {
        transform: rotate(35deg) scale(1.3);
    }
}

.topbar-badge {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    border: 1px solid var(--border);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.035);
    color: #e6d8ff;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8dffa9;
    box-shadow: 0 0 10px #8dffa9;
}

/* Sound Toggle Controls */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sound-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: #e6d8ff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sound-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--purple-light);
    transform: translateY(-1px);
}

.sound-toggle-btn:active {
    transform: translateY(1px);
}

.sound-toggle-btn.muted {
    background: rgba(255, 75, 75, 0.12);
    border-color: rgba(255, 75, 75, 0.4);
    color: #ff9e9e;
}

@media (max-width: 480px) {
    .sound-toggle-btn {
        padding: 6px 10px;
    }
    .sound-toggle-text {
        display: none;
    }
}


/* =========================================
   SCREEN MANAGEMENT
========================================= */

.screen {
    position: relative;
    z-index: 1;

    display: none;

    width: 100%;
    min-height: 80vh;

    padding: 15px 22px 30px;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;

    animation: screenEnter 0.5s ease both;
}

@keyframes screenEnter {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================
   HOME / HERO
========================================= */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 620px;

    margin: 0 auto;
    padding: 10px 0 30px;

    text-align: center;
}

.hero-mascots {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;

    width: 100%;
    min-height: 205px;
    margin-bottom: 14px;
}

.mascot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 140px;
    animation: mascotFloat 3s ease-in-out infinite;
}

.devil-mascot {
    margin-top: 25px;
    animation-delay: -1.5s;
}

@keyframes mascotFloat {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}


/* Ghost */

.ghost-body {
    position: relative;

    width: 112px;
    height: 112px;

    border: 2px solid #e8d9ff;
    border-radius: 49% 49% 34% 34%;

    background: linear-gradient(145deg, #ffffff, #dfceff);

    box-shadow:
        0 0 30px rgba(178, 132, 255, 0.3),
        inset -9px -9px 0 rgba(163, 126, 255, 0.13);

    animation: ghostWiggle 4s ease-in-out infinite;
}

@keyframes ghostWiggle {
    0%, 100% {
        border-radius: 49% 49% 34% 34%;
    }

    50% {
        border-radius: 45% 53% 40% 38%;
    }
}

.ghost-eyes {
    position: absolute;
    top: 36px;
    left: 25px;
    right: 25px;

    display: flex;
    justify-content: space-between;
}

.ghost-eyes span {
    width: 13px;
    height: 19px;

    border-radius: 50%;
    background: #21152f;

    animation: blink 5s infinite;
}

.ghost-mouth {
    position: absolute;
    top: 63px;
    left: 50%;

    width: 18px;
    height: 11px;

    transform: translateX(-50%);

    border-radius: 4px 4px 12px 12px;
    background: #ff77bc;
}

.ghost-cheek {
    position: absolute;
    top: 58px;

    width: 13px;
    height: 7px;

    border-radius: 50%;
    background: #ff9dcf;
    opacity: 0.9;
}

.cheek-left {
    left: 12px;
}

.cheek-right {
    right: 12px;
}

.ghost-tail {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;

    height: 22px;

    background:
        radial-gradient(ellipse at 15% 0%, #e8d9ff 0 70%, transparent 72%),
        radial-gradient(ellipse at 50% 0%, #e8d9ff 0 70%, transparent 72%),
        radial-gradient(ellipse at 85% 0%, #e8d9ff 0 70%, transparent 72%);
}

.ghost-arm {
    position: absolute;
    top: 65px;

    width: 18px;
    height: 24px;

    border-radius: 12px;
    background: #eee3ff;
    border: 1px solid #d6c2ff;
}

.arm-left {
    left: -11px;
    transform: rotate(25deg);
}

.arm-right {
    right: -11px;
    transform: rotate(-25deg);
}

.ghost-shadow {
    position: absolute;
    bottom: 18px;

    width: 85px;
    height: 12px;

    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    filter: blur(7px);
}

.mascot-caption {
    margin-top: 17px;

    color: #d9c6ff;
    font-size: 12px;
    font-weight: 800;
}


/* Devil */

.devil-face {
    position: relative;

    width: 104px;
    height: 105px;

    border: 2px solid #ffa5d9;
    border-radius: 46% 46% 42% 42%;

    background: linear-gradient(145deg, #ff9dd5, #bd6cff);

    box-shadow:
        0 0 35px rgba(255, 100, 198, 0.22),
        inset -8px -9px 0 rgba(113, 35, 155, 0.12);
}

.devil-horn {
    position: absolute;
    top: -10px;

    width: 25px;
    height: 29px;

    background: #ff8ccf;
    border: 2px solid #ffa5d9;

    z-index: -1;
}

.horn-left {
    left: 14px;
    transform: rotate(-30deg);
    border-radius: 80% 15% 10% 20%;
}

.horn-right {
    right: 14px;
    transform: rotate(30deg);
    border-radius: 15% 80% 20% 10%;
}

.devil-eyebrows {
    position: absolute;
    top: 25px;
    left: 20px;
    right: 20px;

    display: flex;
    justify-content: space-between;

    color: #49205f;
    font-size: 23px;
    font-weight: 800;
}

.devil-eyes {
    position: absolute;
    top: 40px;
    left: 25px;
    right: 25px;

    display: flex;
    justify-content: space-between;
}

.devil-eyes span {
    width: 12px;
    height: 14px;

    border-radius: 50%;
    background: #2b1239;
}

.devil-smirk {
    position: absolute;
    left: 50%;
    top: 64px;

    width: 30px;
    height: 13px;

    transform: translateX(-50%);

    border-bottom: 4px solid #4b1d59;
    border-radius: 0 0 60% 50%;
}

.devil-cheek {
    position: absolute;
    top: 58px;
    right: 15px;

    width: 12px;
    height: 6px;

    border-radius: 50%;
    background: #ffb0db;
}

.devil-caption {
    margin-top: 17px;

    color: var(--pink);
    font-size: 12px;
    font-weight: 800;
}


/* Mascot speech */

.speech-bubble {
    position: absolute;
    top: -3px;
    right: calc(50% - 205px);

    padding: 9px 13px;

    border: 2px solid #3a2458;
    border-radius: 15px 15px 15px 3px;

    background: #fff4a8;
    color: #281a35;

    font-size: 12px;
    font-weight: 800;

    transform: rotate(5deg);
    animation: bubbleBounce 2.5s ease-in-out infinite;
}

@keyframes bubbleBounce {
    0%, 100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-6px) rotate(2deg);
    }
}

@keyframes blink {
    0%, 44%, 48%, 100% {
        transform: scaleY(1);
    }

    46% {
        transform: scaleY(0.12);
    }
}


/* Hero text */

.hero-copy {
    width: 100%;
}

.hero-tag {
    display: inline-block;

    padding: 7px 13px;

    border: 1px solid rgba(255, 130, 200, 0.25);
    border-radius: 50px;

    background: rgba(255, 130, 200, 0.08);
    color: #ffc0e1;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.hero h1 {
    margin-top: 20px;

    font-family: 'Fredoka', sans-serif;
    font-size: clamp(39px, 8vw, 65px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1px;
}

.gradient-text {
    color: var(--pink);

    background: linear-gradient(
        110deg,
        #ff9bd7,
        #bda0ff 52%,
        #86edff
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    margin-top: 17px;

    color: var(--yellow);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    min-height: 48px;
    transition: opacity 0.3s ease;
}


/* =========================================
   PRICE CARD
========================================= */

.price-card {
    width: 100%;
    max-width: 390px;

    margin-top: 29px;
    padding: 17px 19px;

    border: 1px solid rgba(199, 166, 255, 0.3);
    border-radius: 23px;

    background: linear-gradient(
        135deg,
        rgba(90, 52, 130, 0.45),
        rgba(42, 27, 68, 0.8)
    );

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.17);
}

.price-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    color: #d8c5ff;
    font-size: 10px;
    font-weight: 800;
}

.price-sticker {
    padding: 5px 8px;

    border-radius: 50px;

    background: var(--yellow);
    color: #4b2d18;

    font-size: 9px;
    transform: rotate(3deg);
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;

    margin-top: 13px;
}

.price-amount {
    color: var(--yellow);

    font-family: 'Fredoka', sans-serif;
    font-size: 57px;
    font-weight: 700;
    line-height: 1;
}

.price-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;

    text-align: left;
}

.price-details strong {
    color: var(--white);
    font-size: 13px;
}

.price-details span {
    color: var(--pink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.price-note {
    margin-top: 13px;
    padding-top: 11px;

    border-top: 1px dashed rgba(210, 188, 255, 0.2);

    color: #d7c9e8;
    font-size: 10px;
}


/* =========================================
   BUTTONS
========================================= */

.roast-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    max-width: 390px;
    min-height: 60px;

    margin-top: 22px;
    padding: 15px 19px;

    overflow: hidden;

    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;

    background: linear-gradient(
        100deg,
        #ff83c7,
        #bb91ff 65%,
        #8deaff
    );

    box-shadow:
        0 7px 0 #5c3d87,
        0 12px 25px rgba(153, 106, 255, 0.18);

    color: #251437;

    font-size: 15px;
    font-weight: 800;
    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.2s ease;
}

.roast-button:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-3px);
    box-shadow:
        0 10px 0 #5c3d87,
        0 16px 28px rgba(153, 106, 255, 0.22);
}

.roast-button:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #5c3d87;
}

.button-emoji,
.button-arrow {
    font-size: 19px;
}

.hero-warning {
    margin-top: 19px;

    color: #a99abb;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    max-width: 1050px;

    margin: 0 auto;
    padding: 15px 25px 22px;

    color: #8e7ba7;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================
   TERMS SCREEN
========================================= */

#terms-screen {
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 45px;
}

#terms-screen:not(.active) {
    display: none !important;
}

#home-screen .intro-challenge-card,
.footer .intro-challenge-card {
    display: none !important;
}

.content-card {
    width: 100%;
    max-width: 560px;

    margin: auto;
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 28px;

    background: linear-gradient(
        145deg,
        rgba(43, 27, 69, 0.96),
        rgba(24, 15, 41, 0.97)
    );

    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.terms-mascot {
    margin-bottom: 15px;
    font-size: 43px;
    text-align: center;

    animation: mascotFloat 3s ease-in-out infinite;
}

.section-tag {
    color: var(--pink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.content-card h2,
.story-card h2,
.roast-reveal-card h2 {
    margin-top: 11px;

    font-family: 'Fredoka', sans-serif;
    font-size: clamp(35px, 7vw, 47px);
    font-weight: 700;
    line-height: 1.08;
}

.section-description {
    margin-top: 13px;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.terms-list {
    margin-top: 23px;

    display: flex;
    flex-direction: column;
    gap: 11px;
}

.term-item {
    display: grid;
    grid-template-columns: 43px 1fr;
    gap: 13px;

    padding: 14px;

    border: 1px solid rgba(209, 183, 255, 0.12);
    border-radius: 17px;

    background: rgba(255, 255, 255, 0.025);
}

.term-icon {
    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    border-radius: 13px;

    background: rgba(178, 137, 255, 0.13);
    font-size: 22px;
}

.term-item h3 {
    color: #f6edff;
    font-size: 13px;
    font-weight: 800;
}

.term-item p {
    margin-top: 4px;

    color: #b7a9cc;
    font-size: 11px;
    line-height: 1.8;
}

.agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 21px;

    color: #e3d7f5;
    font-size: 12px;
    line-height: 1.7;

    cursor: pointer;
}

.agreement input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.custom-check {
    position: relative;
    flex: 0 0 22px;

    width: 22px;
    height: 22px;

    border: 2px solid #9575c6;
    border-radius: 7px;

    background: #1b1030;
}

.agreement input:checked + .custom-check {
    border-color: var(--pink);
    background: var(--pink);
}

.agreement input:checked + .custom-check::after {
    content: "✓";

    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    color: #32133b;
    font-size: 15px;
    font-weight: 900;
}

.agreement input:focus-visible + .custom-check {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

#terms-screen .roast-button {
    max-width: none;
    margin-top: 21px;
}

.back-button {
    display: block;

    margin: 18px auto 0;
    padding: 9px 14px;

    border: 0;
    background: transparent;

    color: #b6a3d0;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.back-button:hover {
    color: white;
}


/* =========================================
   SUSPENSE SCREEN
========================================= */

#story-screen {
    align-items: center;
    justify-content: center;
}

.story-card {
    width: 100%;
    max-width: 570px;

    margin: auto;
    padding: 35px 25px;

    border: 1px solid rgba(198, 161, 255, 0.24);
    border-radius: 30px;

    background: linear-gradient(
        145deg,
        rgba(46, 28, 74, 0.96),
        rgba(20, 13, 34, 0.98)
    );

    text-align: center;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

.story-top-label {
    display: inline-block;

    padding: 8px 12px;

    border: 1px solid rgba(255, 130, 200, 0.2);
    border-radius: 50px;

    background: rgba(255, 130, 200, 0.08);
    color: #ffc2e3;

    font-size: 10px;
    font-weight: 800;
}

.story-mascot {
    margin-top: 25px;

    font-size: 78px;

    animation: mascotFloat 2s ease-in-out infinite;
}

.story-progress {
    width: 100%;
    height: 7px;

    margin-top: 24px;
    overflow: hidden;

    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
}

#story-progress-bar {
    display: block;

    width: 0;
    height: 100%;

    border-radius: inherit;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
}

.story-counter {
    margin-top: 18px;

    color: var(--purple-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.story-card h2 {
    margin-top: 18px;
}

.story-card > p {
    max-width: 420px;
    min-height: 55px;

    margin: 15px auto 0;

    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.story-reaction {
    margin-top: 18px;
    font-size: 36px;
}

.story-dots {
    display: flex;
    justify-content: center;
    gap: 7px;

    margin-top: 27px;
}

.story-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--purple);

    animation: dotPulse 1.2s ease-in-out infinite;
}

.story-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.story-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}


/* =========================================
   ROAST REVEAL
========================================= */

#roast-screen {
    justify-content: center;
}

.roast-reveal-card {
    width: 100%;
    max-width: 580px;

    margin: auto;
    padding: 32px 24px;

    border: 2px solid rgba(255, 130, 200, 0.3);
    border-radius: 30px;

    background:
        radial-gradient(ellipse at top, rgba(172, 103, 255, 0.15), transparent 60%),
        linear-gradient(145deg, #2a1844, #150d25);

    text-align: center;

    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.reveal-mascots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    font-size: 68px;
}

#reveal-ghost {
    animation: mascotFloat 2.4s ease-in-out infinite;
}

#reveal-devil {
    animation: devilBounce 1s ease-in-out infinite alternate;
}

@keyframes devilBounce {
    from {
        transform: rotate(-9deg) translateY(0);
    }

    to {
        transform: rotate(9deg) translateY(-10px);
    }
}

.reveal-tag {
    display: inline-block;

    margin-top: 24px;
    padding: 8px 11px;

    border-radius: 50px;
    background: rgba(255, 130, 200, 0.1);
    color: #ffb6dc;

    font-size: 10px;
    font-weight: 800;
}

.roast-quote {
    margin-top: 25px;
    padding: 24px 19px;

    border: 1px solid rgba(205, 177, 255, 0.22);
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.035);
}

.roast-quote p {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.roast-reaction {
    margin-top: 20px;
    font-size: 31px;
}

.roast-reveal-card .roast-button {
    margin-left: auto;
    margin-right: auto;
}

.reveal-footer {
    margin-top: 20px;

    color: #b8a5d1;
    font-size: 11px;
}


/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 600px) {
    .topbar {
        padding: 20px 17px;
    }

    .brand {
        font-size: 30px;
    }

    .topbar-badge {
        padding: 7px 9px;
        font-size: 9px;
    }

    .screen {
        min-height: 78vh;
        padding: 12px 17px 25px;
    }

    .hero {
        padding-top: 8px;
    }

    .hero-mascots {
        gap: 14px;
        min-height: 175px;
    }

    .mascot {
        width: 115px;
    }

    .ghost-body {
        transform: scale(0.87);
    }

    .devil-face {
        transform: scale(0.87);
    }

    .speech-bubble {
        top: -2px;
        right: 2px;

        padding: 7px 9px;
        font-size: 10px;
    }

    .hero h1 {
        margin-top: 18px;
        font-size: clamp(37px, 10vw, 54px);
    }

    .hero-description {
        font-size: 13px;
    }

    .desktop-break {
        display: none;
    }

    .price-card {
        margin-top: 25px;
        padding: 15px;
        border-radius: 19px;
    }

    .price-amount {
        font-size: 49px;
    }

    .price-details strong {
        font-size: 12px;
    }

    .price-details span {
        font-size: 10.5px;
        font-weight: 700;
    }

    .roast-button {
        min-height: 56px;
        border-radius: 16px;
        font-size: 13px;
    }

    .content-card {
        padding: 23px 17px;
        border-radius: 23px;
    }

    .term-item {
        grid-template-columns: 36px 1fr;
        gap: 10px;
        padding: 12px;
    }

    .term-icon {
        width: 35px;
        height: 35px;
        font-size: 19px;
    }

    .term-item h3 {
        font-size: 12px;
    }

    .term-item p {
        font-size: 11px;
    }

    .story-card {
        padding: 27px 17px;
        border-radius: 24px;
    }

    .story-mascot {
        font-size: 68px;
    }

    .story-card h2 {
        font-size: 37px;
    }

    .story-card > p {
        font-size: 13px;
    }

    .roast-reveal-card {
        padding: 25px 16px;
        border-radius: 24px;
    }

    .reveal-mascots {
        font-size: 56px;
    }

    .roast-quote {
        padding: 20px 13px;
    }

    .roast-quote p {
        font-size: 16px;
    }

    .share-prompt-savage {
        font-size: 12.5px;
        margin-bottom: 12px;
        padding: 0 10px;
    }

    .footer {
        padding: 13px 17px 20px;
        font-size: 9px;
    }
}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================
   TEST PAYMENT MODAL (DEMO TEST MODE)
========================================= */

.payment-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 9, 31, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.payment-modal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px 22px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(155, 108, 255, 0.15);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-badge {
    background: rgba(255, 130, 200, 0.15);
    border: 1px solid var(--pink);
    color: var(--pink);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.modal-mascot-icons {
    font-size: 32px;
    margin-bottom: 8px;
    letter-spacing: 4px;
}

#modal-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
    margin-bottom: 18px;
}

.payment-error-banner {
    background: rgba(255, 75, 75, 0.14);
    border: 1px solid rgba(255, 75, 75, 0.45);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff9b9b;
    font-size: 13px;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-btn-success {
    background: linear-gradient(135deg, #05c46b 0%, #0be881 100%) !important;
    color: #052e16 !important;
    box-shadow: 0 8px 25px rgba(11, 232, 129, 0.3) !important;
}

.pay-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(11, 232, 129, 0.45) !important;
}

.payment-fail-btn {
    background: rgba(255, 75, 75, 0.12);
    border: 1px solid rgba(255, 75, 75, 0.35);
    color: #ff9b9b;
    padding: 12px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-fail-btn:hover {
    background: rgba(255, 75, 75, 0.22);
    border-color: rgba(255, 75, 75, 0.6);
    transform: translateY(-1px);
}


/* =========================================
   INTRO CHALLENGE CARD & MODAL AMOUNT TAG
========================================= */

.intro-challenge-card,
.roast-intro-card {
    background: rgba(255, 95, 189, 0.08);
    border: 1px dashed rgba(255, 130, 200, 0.4);
    border-radius: 18px;
    padding: 12px 16px;
    margin-bottom: 14px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(255, 95, 189, 0.08);
}

.intro-challenge-badge,
.roast-intro-badge {
    display: inline-block;
    background: rgba(255, 229, 138, 0.15);
    border: 1px solid var(--yellow);
    color: var(--yellow);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 6px;
}

#intro-challenge-text,
#roast-intro-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--yellow);
    line-height: 1.45;
    font-style: italic;
    word-break: break-word;
}

.repeat-taunt-text {
    margin-top: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 800;
    color: var(--pink);
    letter-spacing: 0.5px;
    text-align: center;
}


.modal-amount-tag {
    display: inline-block;
    background: rgba(131, 243, 255, 0.12);
    border: 1px solid rgba(131, 243, 255, 0.4);
    color: var(--cyan);
    font-size: 14px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}


/* =========================================
   ROAST SHARE SECTION
========================================= */

.share-cta-text {
    margin-top: 24px;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: 0.5px;
    text-align: center;
    animation: bounceCta 1.8s ease-in-out infinite;
}

@keyframes bounceCta {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.share-prompt-savage {
    font-size: 14px;
    font-weight: 800;
    color: var(--pink);
    letter-spacing: 0.4px;
    text-align: center;
    max-width: 380px;
    margin: 0 auto 14px;
    line-height: 1.45;
}

.share-actions-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 18px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 18px;
    border: none;
    font-family: 'Baloo 2', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.share-button:active {
    transform: scale(0.97);
}

.whatsapp-share-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border: 1px solid rgba(37, 211, 102, 0.4);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.28);
}

.whatsapp-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.copy-share-btn {
    background: linear-gradient(135deg, #9b6cff 0%, #683bb8 100%);
    color: #ffffff;
    border: 1px solid rgba(203, 172, 255, 0.35);
    box-shadow: 0 6px 20px rgba(155, 108, 255, 0.28);
}

.copy-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(155, 108, 255, 0.45);
}

.native-share-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.native-share-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(131, 243, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(131, 243, 255, 0.25);
}

.share-btn-icon {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
}

.copy-feedback-banner {
    background: rgba(11, 232, 129, 0.16);
    border: 1px solid rgba(11, 232, 129, 0.55);
    border-radius: 14px;
    padding: 10px 18px;
    margin: 0 auto 16px;
    max-width: 380px;
    color: #79f8b7;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: feedbackFadeIn 0.25s ease-out;
}

@keyframes feedbackFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-privacy-link {
    color: var(--purple-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-privacy-link:hover {
    color: var(--pink);
}

/* =========================================
   PRIVACY PAGE STYLES
========================================= */

.privacy-page-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    position: relative;
    z-index: 1;
}

.privacy-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 36px 30px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.privacy-header {
    text-align: center;
    margin-bottom: 32px;
}

.privacy-badge {
    display: inline-block;
    background: rgba(131, 243, 255, 0.12);
    border: 1px solid rgba(131, 243, 255, 0.4);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.privacy-header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
}

.privacy-date {
    font-size: 13px;
    color: var(--muted);
}

.privacy-section {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(203, 172, 255, 0.12);
}

.privacy-section h2 {
    font-size: 17px;
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-section p {
    font-size: 14px;
    line-height: 1.7;
    color: #e4ddf3;
}

.privacy-highlight-box {
    background: rgba(5, 196, 107, 0.1);
    border: 1px solid rgba(11, 232, 129, 0.35);
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 10px;
    color: #a4f3cc;
    font-size: 13px;
    line-height: 1.6;
}

.privacy-actions {
    margin-top: 32px;
    text-align: center;
}

.privacy-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(203, 172, 255, 0.3);
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.privacy-back-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--cyan);
    transform: translateY(-2px);
}
