* { box-sizing: border-box; margin: 0; padding: 0; }

/* -- Base ------------------------------------------- */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #fef7f2 0%, #fdf0e6 30%, #fff5f0 60%, #fef9f5 100%);
    background-attachment: fixed;
    color: #2d3436;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: safe center;
    padding: 1rem;
    -webkit-tap-highlight-color: transparent;
}

/* playful background dots */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, #fad4c0 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.25rem 2rem;
    box-shadow: 0 8px 40px rgba(201, 142, 104, 0.15),
0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid #fce8dd;
    transition: border-color 0.3s;
}

h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #e17055;
    margin-bottom: 0.15rem;
    text-align: center;
    letter-spacing: 0;
}
.subtitle {
    font-size: 0.9rem;
    color: #b2a198;
    margin-bottom: 1.4rem;
    text-align: center;
    font-weight: 600;
}

/* -- Mascot ----------------------------------- */
/* -- Mascot wrapper: anchors topic graphics without affecting layout -- */
.mascot-wrapper {
    position: relative;
    width: 90px;
    height: 75px;
    margin: 0 auto 0.3rem;
}
.mascot {
    width: 100%;
    height: 100%;
    overflow: hidden;          /* clip anything outside the bounding box */
}
.mascot svg,
.mascot img {
    width: 100%;
    height: 100%;
    display: block;
}
/* Topic decorations sit outside the mascot but inside the wrapper */
.mascot-wrapper .topic-decor {
    position: absolute;
    pointer-events: none;
}
@keyframes mascotBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* -- Keyframes ------------------------------------- */
