/* =========================================================
   WELFARE WORLD — PASTEL SCRAPBOOK UI
   Inspired by the supplied pink floral / gingham reference.
   Works with the existing multi-page Welfare World HTML.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --pink-50: #fffafb;
    --pink-100: #fff1f5;
    --pink-200: #ffe1e9;
    --pink-300: #f9c4d1;
    --pink-400: #ee9fb5;
    --pink-500: #df7895;
    --pink-600: #c85f7d;
    --rose: #a94e69;

    --cream: #fffdf9;
    --paper: #fffaf7;
    --ink: #5b3637;
    --muted: #866568;
    --green: #a9bd91;
    --green-dark: #70845d;

    --line: #edbdc8;
    --shadow: 0 12px 28px rgba(177, 88, 111, .14);
    --shadow-hover: 0 20px 42px rgba(177, 88, 111, .22);

    --radius: 18px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Quicksand", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,.95), transparent 20%),
        radial-gradient(circle at 88% 70%, rgba(255,214,224,.5), transparent 24%),
        linear-gradient(135deg, #fffafb, #fff4f6 55%, #fffaf8);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    opacity: .42;
    background-image:
        radial-gradient(rgba(170, 82, 105, .08) 1px, transparent 1px);
    background-size: 17px 17px;
}

body::after {
    content: "✿   ♡   ❀   ✿   ♡";
    position: fixed;
    left: -5%;
    bottom: 4%;
    width: 110%;
    color: rgba(213, 103, 130, .14);
    font-size: 24px;
    letter-spacing: 80px;
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
    animation: backgroundDrift 18s ease-in-out infinite;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
blockquote {
    font-family: "Cormorant Garamond", Georgia, serif;
}

p {
    line-height: 1.75;
}

/* =========================================================
   NAVIGATION — FLOATING SCRAPBOOK TAB
   ========================================================= */

.navbar {
    position: sticky;
    top: 14px;
    z-index: 1000;

    width: calc(100% - 34px);
    max-width: 1180px;
    min-height: 72px;
    margin: 14px auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 11px 16px 11px 22px;

    background: rgba(255, 250, 249, .94);
    border: 1px solid var(--line);
    border-radius: 17px;

    box-shadow: 0 9px 25px rgba(171, 83, 106, .13);
    backdrop-filter: blur(12px);

    animation: slideDown .7s ease both;
}

.navbar::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 30%;
    width: 100px;
    height: 23px;
    border-radius: 3px;
    background:
        repeating-linear-gradient(
            90deg,
            #f5b6c5 0 11px,
            #ffd2dc 11px 22px
        );
    transform: rotate(-2deg);
    opacity: .9;
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--rose);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .3s ease;
}

.logo:hover {
    transform: rotate(-2deg) scale(1.03);
}

.navbar nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.navbar nav a {
    position: relative;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    transition: .25s ease;
}

.navbar nav a:hover {
    color: var(--rose);
    background: var(--pink-100);
    border-color: #f3ccd5;
    transform: translateY(-2px);
}

.navbar nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
    box-shadow: 0 5px 13px rgba(211, 104, 131, .22);
}

.theme-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--rose);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(177, 88, 111, .1);
    transition: .3s ease;
}

.theme-btn:hover {
    transform: rotate(18deg) scale(1.08);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    max-width: var(--max-width);
    min-height: 600px;
    margin: 0 auto;
    padding: 70px 4% 55px;

    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 30px;
}

.hero-content {
    position: relative;
    padding: 48px 42px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.97), #fff1f4);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform: rotate(-.8deg);
    animation: paperIn .8s ease both;
}

.hero-content::before,
.page-hero::before,
.cafe-table::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 38%;
    width: 105px;
    height: 24px;
    background:
        repeating-linear-gradient(
            90deg,
            #f3b3c2 0 12px,
            #ffd4dd 12px 24px
        );
    border-radius: 3px;
    transform: rotate(2deg);
    opacity: .92;
}

.hero-content::after {
    content: "🌸";
    position: absolute;
    right: 22px;
    bottom: 16px;
    font-size: 2.4rem;
    opacity: .55;
    animation: gentleFloat 4s ease-in-out infinite;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    padding: 6px 13px;
    border-radius: 50px;
    background: var(--pink-200);
    color: var(--rose);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.hero h1 {
    font-size: clamp(4rem, 7vw, 6.3rem);
    line-height: .83;
    letter-spacing: -.04em;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--pink-600);
}

.hero p {
    max-width: 500px;
    margin-bottom: 25px;
    color: var(--muted);
}

.hero-scene {
    position: relative;
    min-height: 440px;
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            #ffeef3 0%,
            #ffdfe8 63%,
            #dce8cf 63%,
            #cbdcb9 100%
        );

    box-shadow: var(--shadow);
    animation: paperIn 1s .15s ease both;
}

.hero-scene::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(177, 88, 111, .28);
    border-radius: 19px;
}

.sun {
    position: absolute;
    top: 35px;
    right: 55px;
    font-size: 3.2rem;
    animation: sunBob 5s ease-in-out infinite;
}

.cloud {
    position: absolute;
    font-size: 2.6rem;
    opacity: .7;
}

.cloud-one {
    top: 70px;
    left: 45px;
    animation: cloudMove 8s ease-in-out infinite;
}

.cloud-two {
    top: 135px;
    right: 160px;
    animation: cloudMove 10s 1s ease-in-out infinite;
}

.hill {
    position: absolute;
    bottom: 75px;
    width: 85%;
    height: 175px;
    border-radius: 50% 50% 0 0;
    background: #b9cf9c;
}

.hill-one {
    left: -20%;
}

.hill-two {
    right: -25%;
    bottom: 50px;
    background: #9fbd91;
}

.town-house {
    position: absolute;
    bottom: 88px;
    font-size: 4rem;
    filter: drop-shadow(0 8px 5px rgba(120, 70, 70, .14));
    animation: houseBob 5s ease-in-out infinite;
}

.house-one { left: 20%; }
.house-two { left: 47%; animation-delay: 1s; }
.house-three { right: 10%; animation-delay: 2s; }

.tree {
    position: absolute;
    bottom: 82px;
    font-size: 3.6rem;
    animation: treeSway 4s ease-in-out infinite;
}

.tree-one { left: 5%; }
.tree-two { right: 4%; animation-delay: 1s; }

/* =========================================================
   INTRO
   ========================================================= */

.intro-section {
    max-width: 760px;
    margin: 35px auto 20px;
    padding: 30px;
    text-align: center;
}

.intro-section h2 {
    font-size: clamp(2.7rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 12px;
}

.intro-section p {
    color: var(--muted);
}

/* =========================================================
   FLOATING RECTANGULAR TABS
   ========================================================= */

.world-grid {
    max-width: 1180px;
    margin: auto;
    padding: 30px 4% 85px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.world-card {
    position: relative;
    min-height: 210px;

    display: grid;
    grid-template-columns: 72px 1fr 36px;
    align-items: center;
    gap: 17px;

    padding: 30px 23px;

    background:
        linear-gradient(135deg, #fffefd, #fff1f4);

    border: 1px solid var(--line);
    border-radius: 17px;

    box-shadow: var(--shadow);

    opacity: 0;
    transform:
        translateY(25px)
        rotate(var(--rotation));

    animation:
        cardIn .7s ease forwards;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s ease;
}

.world-card::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 38%;
    width: 90px;
    height: 23px;
    background:
        repeating-linear-gradient(
            90deg,
            #f4b7c6 0 11px,
            #ffd4de 11px 22px
        );
    border-radius: 3px;
    transform: rotate(-2deg);
    opacity: .9;
}

.world-card::after {
    content: "✿";
    position: absolute;
    right: 12px;
    bottom: 8px;
    color: var(--pink-500);
    font-size: 1.6rem;
    opacity: .55;
    animation: gentleFloat 4s ease-in-out infinite;
}

.world-card:nth-child(1) { --rotation: -.8deg; animation-delay: .08s; }
.world-card:nth-child(2) { --rotation: .7deg; animation-delay: .16s; }
.world-card:nth-child(3) { --rotation: -.5deg; animation-delay: .24s; }
.world-card:nth-child(4) { --rotation: .8deg; animation-delay: .32s; }
.world-card:nth-child(5) { --rotation: -1deg; animation-delay: .40s; }
.world-card:nth-child(6) { --rotation: .6deg; animation-delay: .48s; }

.world-card:hover {
    z-index: 10;
    transform: translateY(-10px) rotate(0) scale(1.015);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    border-radius: 17px;
    border: 1px solid #efb5c3;

    background:
        linear-gradient(145deg, #ffe6ec, #ffd0db);

    font-size: 2.35rem;

    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.8),
        0 7px 14px rgba(180,90,115,.1);

    transition: transform .35s ease;
}

.world-card:hover .card-icon {
    transform: rotate(-7deg) scale(1.08);
}

.world-card h3 {
    margin-bottom: 5px;
    font-size: 1.65rem;
}

.world-card p {
    color: var(--muted);
    font-size: .9rem;
}

.card-arrow {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: var(--pink-500);
    color: white;

    box-shadow: 0 5px 12px rgba(220,113,141,.24);

    transition: .3s ease;
}

.world-card:hover .card-arrow {
    transform: translateX(5px);
    background: var(--pink-600);
}

/* =========================================================
   SCRAPBOOK QUOTE
   ========================================================= */

.quote-section {
    position: relative;
    max-width: 900px;
    margin: 10px auto 85px;
    padding: 55px 45px;

    text-align: center;

    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 18px;

    box-shadow: var(--shadow);
    transform: rotate(.4deg);
}

.quote-section::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed #e5abb9;
    border-radius: 13px;
    pointer-events: none;
}

.quote-section::after {
    content: "🌷";
    position: absolute;
    top: 18px;
    right: 25px;
    font-size: 1.8rem;
    opacity: .55;
}

.quote-icon {
    position: relative;
    font-size: 2.2rem;
    margin-bottom: 7px;
}

blockquote {
    position: relative;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

blockquote::before {
    content: "“";
    color: var(--pink-500);
    font-size: 5rem;
    vertical-align: -25px;
    margin-right: 4px;
}

/* =========================================================
   INNER PAGE HERO
   ========================================================= */

.page-hero {
    position: relative;
    max-width: 1080px;
    min-height: 390px;
    margin: 48px auto;
    padding: 70px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background:
        linear-gradient(135deg, #fffdfb, #fff0f4);

    border: 1px solid var(--line);
    border-radius: 19px;

    box-shadow: var(--shadow);
    transform: rotate(-.45deg);

    overflow: hidden;
}

.page-hero::after {
    content: "🌸";
    position: absolute;
    right: 45px;
    bottom: 28px;
    font-size: 5rem;
    opacity: .3;
    animation: gentleFloat 4s ease-in-out infinite;
}

.page-hero h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: .9;
    margin-bottom: 18px;
}

.page-hero h1 span {
    color: var(--pink-600);
}

.page-hero p {
    position: relative;
    z-index: 2;
    max-width: 580px;
    color: var(--muted);
}

/* =========================================================
   CONTENT CARDS
   ========================================================= */

.content-section {
    max-width: 1180px;
    margin: auto;
    padding: 70px 4%;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 38px;
}

.section-heading h2 {
    font-size: clamp(2.7rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--muted);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.info-card,
.garden-card,
.help-card {
    position: relative;
    padding: 35px;

    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 18px;

    box-shadow: var(--shadow);

    transform: rotate(var(--rotation));
    transition: .35s ease;
}

.info-card:nth-child(odd),
.garden-card:nth-child(odd),
.help-card:nth-child(odd) {
    --rotation: -.7deg;
}

.info-card:nth-child(even),
.garden-card:nth-child(even),
.help-card:nth-child(even) {
    --rotation: .7deg;
}

.info-card:hover,
.garden-card:hover,
.help-card:hover {
    transform: translateY(-8px) rotate(0);
    box-shadow: var(--shadow-hover);
}

.info-card::before,
.garden-card::before,
.help-card::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 25px;
    width: 70px;
    height: 20px;
    background: #f5bdca;
    opacity: .82;
    transform: rotate(2deg);
}

.info-card > span,
.garden-card > span,
.help-card > span {
    display: block;
    font-size: 2.8rem;
    margin-bottom: 12px;
    animation: gentleFloat 4s ease-in-out infinite;
}

.info-card h3,
.garden-card h3,
.help-card h3 {
    font-size: 1.7rem;
    margin-bottom: 9px;
}

.info-card p,
.garden-card p,
.help-card p {
    color: var(--muted);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.primary-btn,
.secondary-btn,
.learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 11px 21px;

    border-radius: 999px;
    cursor: pointer;

    font-weight: 700;
    transition: .25s ease;
}

.primary-btn {
    border: 1px solid #d96d89;
    color: white;
    background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
    box-shadow: 0 8px 18px rgba(220,113,141,.25);
}

.secondary-btn,
.learn-more {
    border: 1px solid var(--line);
    color: var(--rose);
    background: #fff;
}

.primary-btn:hover,
.secondary-btn:hover,
.learn-more:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 18px rgba(177,88,111,.13);
}

/* =========================================================
   WELLNESS / BREATHING
   ========================================================= */

.breathing-section {
    padding: 85px 20px;
    text-align: center;
    background:
        radial-gradient(circle, #fff8fa, #ffe8ee);
}

.breathing-circle {
    width: 225px;
    height: 225px;
    margin: 0 auto 30px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    border: 5px solid rgba(255,255,255,.8);

    background:
        radial-gradient(circle at 35% 30%, #fff, #f5b3c4);

    box-shadow:
        0 15px 40px rgba(200,90,120,.18),
        0 0 0 18px rgba(247,181,198,.12),
        0 0 0 36px rgba(247,181,198,.07);

    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
}

.breathing-circle.active {
    animation: breathing 8s ease-in-out infinite;
}

.breathing-section h2 {
    font-size: 2.8rem;
    margin-bottom: 8px;
}

.breathing-section p {
    color: var(--muted);
}

/* =========================================================
   CAFE
   ========================================================= */

.cafe-room {
    min-height: 500px;
    padding: 90px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        repeating-linear-gradient(
            45deg,
            #fff7f8 0 18px,
            #ffe9ee 18px 36px
        );
}

.cafe-table {
    position: relative;
    max-width: 650px;
    padding: 60px 45px;
    text-align: center;

    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);

    transform: rotate(-.7deg);
}

.coffee {
    font-size: 5rem;
    margin-bottom: 12px;
    animation: coffeeFloat 4s ease-in-out infinite;
}

.cafe-table h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.cafe-table p {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    color: var(--muted);
}

/* =========================================================
   PARK
   ========================================================= */

.park-game {
    max-width: 850px;
    margin: 70px auto;
    padding: 65px 30px;
    text-align: center;

    background: linear-gradient(135deg, #fafff6, #e7f2dd);
    border: 1px solid #c5d8b7;
    border-radius: 23px;
    box-shadow: var(--shadow);
}

.park-character {
    font-size: 5rem;
    margin-bottom: 12px;
    animation: treeSway 4s ease-in-out infinite;
}

.park-game h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.park-game p {
    color: var(--muted);
}

/* =========================================================
   QUIZ
   ========================================================= */

.quiz-box {
    max-width: 850px;
    margin: 20px auto 90px;
    padding: 50px 30px;
    text-align: center;

    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.quiz-box h2 {
    font-size: 2.7rem;
    margin-bottom: 10px;
}

.quiz-box > p {
    color: var(--muted);
    margin-bottom: 25px;
}

.quiz-options {
    max-width: 520px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.quiz-options button {
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff7f9;
    color: var(--ink);
    cursor: pointer;
    font-weight: 600;
    transition: .25s ease;
}

.quiz-options button:hover {
    transform: translateX(5px);
    background: var(--pink-100);
}

#quizResult {
    margin-top: 18px;
    color: var(--rose);
    font-weight: 700;
}

/* =========================================================
   HELP / NOTICE
   ========================================================= */

.important-notice {
    max-width: 900px;
    margin: 35px auto 0;
    padding: 24px 28px;

    background: #fff1ee;
    border-left: 5px solid #d98578;
    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(150,80,70,.08);
}

.important-notice strong {
    display: block;
    margin-bottom: 5px;
}

.important-notice p {
    color: var(--muted);
}

.help-message {
    max-width: 850px;
    margin: 0 auto 90px;
    padding: 60px 30px;
    text-align: center;

    background: linear-gradient(135deg, #fff3f5, #ffe4ea);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.help-message span {
    font-size: 3rem;
}

.help-message h2 {
    font-size: 2.8rem;
    margin: 12px 0;
}

.help-message p {
    max-width: 550px;
    margin: auto;
    color: var(--muted);
}

/* =========================================================
   TIP BOX
   ========================================================= */

.tip-box {
    max-width: 800px;
    margin: 20px auto 90px;
    padding: 50px 30px;
    text-align: center;

    background: linear-gradient(135deg, #fffaf2, #fff0f4);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.tip-box h2 {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    position: relative;
    padding: 45px 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;

    background:
        repeating-linear-gradient(
            90deg,
            #ffdce5 0 22px,
            #fff0f3 22px 44px
        );

    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

footer strong {
    color: var(--ink);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
}

/* =========================================================
   OPTIONAL EXTRA WIDGETS
   These styles work if you add the matching HTML later.
   ========================================================= */

.dashboard-widgets {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 4% 60px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.widget {
    position: relative;
    padding: 25px;

    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: var(--shadow);

    transform: rotate(var(--widget-rotation));
}

.widget:nth-child(odd) {
    --widget-rotation: -.6deg;
}

.widget:nth-child(even) {
    --widget-rotation: .6deg;
}

.widget h3 {
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.widget::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 30px;
    width: 75px;
    height: 19px;
    background: #f5beca;
    transform: rotate(-2deg);
}

.progress-bar {
    width: 100%;
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: #f8dfe5;
}

.progress-bar span {
    display: block;
    height: 100%;
    width: 65%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e990a9, #d96988);
    animation: progressGrow 1.2s ease both;
}

.mood-options {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.mood-options button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1.7rem;
    transition: transform .2s ease;
}

.mood-options button:hover {
    transform: translateY(-5px) scale(1.12);
}

.badge {
    width: 78px;
    height: 78px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffe5ec, #f2a5b8);
    border: 4px solid #fff;
    box-shadow: 0 8px 18px rgba(177,88,111,.16);
    font-size: 2rem;
    animation: badgePulse 3s ease-in-out infinite;
}

/* =========================================================
   DARK MODE
   ========================================================= */

body.dark {
    --pink-50: #251a1f;
    --pink-100: #352128;
    --pink-200: #4b2c36;
    --pink-300: #754354;
    --pink-400: #ad657d;
    --pink-500: #d27c97;
    --pink-600: #e08ca5;
    --rose: #f0a8ba;

    --paper: #33242a;
    --ink: #ffe9ee;
    --muted: #d6bbc3;
    --line: #68414e;

    background:
        radial-gradient(circle at 15% 20%, rgba(111,65,79,.3), transparent 22%),
        linear-gradient(135deg, #261b20, #302027);
}

body.dark .navbar,
body.dark .world-card,
body.dark .info-card,
body.dark .garden-card,
body.dark .help-card,
body.dark .hero-content,
body.dark .page-hero,
body.dark .quote-section,
body.dark .quiz-box,
body.dark .cafe-table,
body.dark .tip-box,
body.dark .widget {
    background: linear-gradient(135deg, #3a2830, #302228);
}

body.dark .theme-btn,
body.dark .secondary-btn,
body.dark .learn-more {
    background: #3b2930;
    color: var(--rose);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes paperIn {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(-2deg) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(-.8deg) scale(1);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(35px) rotate(var(--rotation)) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--rotation)) scale(1);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes sunBob {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes cloudMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(22px);
    }
}

@keyframes houseBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes treeSway {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

@keyframes breathing {
    0% {
        transform: scale(.85);
    }
    50% {
        transform: scale(1.14);
    }
    100% {
        transform: scale(.85);
    }
}

@keyframes coffeeFloat {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-9px) rotate(2deg);
    }
}

@keyframes progressGrow {
    from {
        width: 0;
    }
    to {
        width: 65%;
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes backgroundDrift {
    0%, 100% {
        transform: translateX(-2%) translateY(0);
    }
    50% {
        transform: translateX(2%) translateY(-10px);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .world-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-scene {
        min-height: 380px;
    }
}

@media (max-width: 760px) {
    .navbar {
        width: calc(100% - 20px);
        flex-wrap: wrap;
    }

    .navbar nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .hero {
        padding: 45px 20px;
    }

    .hero-content {
        padding: 38px 25px;
    }

    .world-grid,
    .info-grid,
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }

    .page-hero {
        margin: 30px 20px;
        padding: 55px 30px;
    }

    .content-section {
        padding: 55px 20px;
    }
}

@media (max-width: 520px) {
    .logo {
        font-size: 1.15rem;
    }

    .navbar nav a {
        font-size: .74rem;
        padding: 8px 9px;
    }

    .hero h1 {
        font-size: 3.8rem;
    }

    .hero-scene {
        min-height: 300px;
    }

    .town-house {
        font-size: 3rem;
    }

    .tree {
        font-size: 2.7rem;
    }

    .world-card {
        grid-template-columns: 60px 1fr;
        min-height: 185px;
        padding: 27px 20px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .world-card h3 {
        font-size: 1.4rem;
    }

    .card-arrow {
        display: none;
    }

    .page-hero h1 {
        font-size: 3.5rem;
    }

    .quote-section {
        margin-left: 20px;
        margin-right: 20px;
        padding: 48px 24px;
    }

    footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
