# Expansion panels for THE BEAST THAT PLOUGHS THE FIELD, Book 17 (Mahindra & Mahindra).
# Merged by build_book.py to make it a full-length book.
STYLE=("children's storybook manga illustration, warm painted animation style, soft cinematic light, "
"clean linework, NO text NO letters NO words")
CHARLOTTE=("Charlotte, the SAME young Indian CHILD girl from the reference, round young face, warm tan skin, "
"freckles, glossy black hair in two low twin ponytails, big curious dark eyes, bright TEAL t-shirt, NO facial hair")
BUFFETT="Warren, a folksy cheerful elderly American man, thinning white hair, big friendly glasses, grey suit"
MUNGER="Charlie, a stocky wise elderly American man, very thick black-framed glasses, dark suit"
MAX=("Max, a warm friendly Western TRACTOR and AUTO ENGINEER, NOT Indian, sturdy build, cheerful oil-smudged grin, "
"blue denim overalls, a bright red cap, a shiny wrench in one hand")
MAX_TAG="; the man is the SAME friendly Western engineer from the reference image, same denim overalls, same red cap, same wrench"

def P(img,cap=None,b1=None,b2=None,sfx=None,sfxc="#e8425a"):
    return ("panel",img,cap,b1,b2,sfx,sfxc,False)

# prompts for the extra images: filename -> (w,h,seed,prompt,ref)
NEW2={
 "mm_c1_night":(1024,720,1760,f"{STYLE}. {CHARLOTTE} alone in her cozy bedroom at night, moonlight through the window, cupping a chunky toy tractor beside the glowing compass, EXPRESSION curious and brave","charlotte"),
 "mm_c2_deep":(1024,720,1761,f"{STYLE}. {CHARLOTTE} peering up in wonder at the huge open engine of a red tractor on a workshop ramp, pistons and gears above her, EXPRESSION wonder and a little thrill","charlotte"),
 "mm_c2_scale":(1024,720,1762,f"{STYLE}. a bright tractor workshop with several mighty red tractors and tough SUVs parked in rows, tools and tyres everywhere, tiny figures for scale, no faces close up",None),
 "mm_c3_cyl":(1024,720,1763,f"{STYLE}. a magical extreme close up of one shiny engine cylinder cut open, a bright spark jumping and lighting a puff of fuel into a small orange flame, playful science, no people",None),
 "mm_c3_boom":(1024,720,1764,f"{STYLE}. a friendly diagram of four cylinders in a row, each with a tiny orange fire flashing in turn like a drum beat, sparks and warm light, no people",None),
 "mm_c4_updown":(1024,720,1765,f"{STYLE}. a clear magical cutaway of pistons moving straight up and down inside their cylinders, bold up-and-down arrows, gleaming metal, warm glow, no people",None),
 "mm_c4_wheelspin":(1024,720,1766,f"{STYLE}. {CHARLOTTE} watching a spinning crankshaft send its motion along to a slowly turning wheel, motion lines everywhere, EXPRESSION giggling with delight","charlotte"),
 "mm_c5_teeth":(1024,720,1767,f"{STYLE}. a satisfying close up of a tiny fast gear turning a giant slow gear, their teeth meshing perfectly, motion arrows showing small-fast becoming big-strong, no people",None),
 "mm_c5_strong":(1024,720,1768,f"{STYLE}. {MAX} cheerfully turning a small crank that, through a big gear, easily lifts a heavy weight, EXPRESSION proud and clear, showing how gears make strength{MAX_TAG}","max"),
 "mm_c6_soil":(1024,720,1769,f"{STYLE}. a dramatic close up of a giant knobbly tractor tyre pressing into brown soil, clods of earth flying, unstoppable slow strength, no people",None),
 "mm_c6_slow":(1024,720,1770,f"{STYLE}. {CHARLOTTE} placing a hand near a huge slowly turning tractor wheel, feeling its calm mighty power, EXPRESSION thoughtful and amazed","charlotte"),
 "mm_c7_farmer":(1024,720,1771,f"{STYLE}. a joyful golden field where a red tractor has ploughed neat rows of rich brown soil, a happy farmer waving from a distance, warm harvest light, no faces close up",None),
 "mm_c7_suv":(1024,720,1772,f"{STYLE}. a tough boxy SUV splashing confidently through a muddy rocky river crossing on a green hillside, adventurous and strong, wide landscape, no faces close up",None),
 "mm_c8_today":(1024,720,1773,f"{STYLE}. a huge modern factory at golden hour, robotic arms and a long line of bright red tractors and tough SUVs being built side by side, proud and hi-tech, no people",None),
 "mm_c9_rivals":(1024,720,1774,f"{STYLE}. a gentle scene of several different tractor brands lined up in a busy market field with farmers browsing, showing many rivals wanting the same buyers, warm daylight, no faces close up",None),
 "mm_c10_forever":(1024,720,1775,f"{STYLE}. {CHARLOTTE} smiling warmly and hugging the old glowing diary to her chest, the little toy tractor glowing softly on her desk, soft golden light, EXPRESSION cozy and content, heartfelt happy ending","charlotte"),
}

# extra panels spliced into each chapter (after its existing panels)
EXTRA={
 "c1":[P("mm_c1_night","The house was quiet. Only Charlotte, the diary… and a compass that had made up its mind. On the desk sat a little toy tractor.","Somebody hid a mighty pull in an engine. Okay. Show me.")],
 "c2":[P("mm_c2_deep","Charlotte looked up into the open engine. Pistons, gears, shining pipes — a whole hidden world.","There's so MUCH inside — where does the pull come from?"),
       P("mm_c2_scale","All around stood mighty tractors and tough SUVs, waiting quietly.","Every one of these hides the secret!")],
 "c3":[P("mm_c3_cyl","\"Watch closely,\" said Max. A spark jumped, and a puff of fuel burst into a tiny flame.","The spark lights a little FIRE!"),
       P("mm_c3_boom","\"Four little fires take turns,\" he said, \"pop-pop-pop-pop, like a drum keeping the beat.\"","A drumbeat of tiny explosions!",None,"pop pop","#e31837")],
 "c4":[P("mm_c4_updown","\"The pistons only know one move,\" said Max — \"up and down, up and down.\"","Straight up and straight down!"),
       P("mm_c4_wheelspin","Then the crankshaft caught the motion and passed a slow, sure turn along to a wheel.","The up-and-down became a WHEEL going round!")],
 "c5":[P("mm_c5_teeth","Max slotted two gears together. The little one raced; the big one turned slow and strong.","Small and fast makes big and STRONG!"),
       P("mm_c5_strong","\"Watch,\" he grinned, and with one small crank he lifted a heavy weight with ease.","The gears did the hard work for him!",None,"heave","#2b2b2b")],
 "c6":[P("mm_c6_soil","A giant tyre bit into the brown earth and shoved forward — nothing could stop it.","Look at it GRIP the ground!"),
       P("mm_c6_slow","Charlotte reached toward the huge wheel. Slow… but calm and unstoppably strong.","Slow can be the strongest thing of all!")],
 "c7":[P("mm_c7_farmer","Behind the tractor, a whole field lay neatly turned, ready for planting. A farmer waved.","One machine, a whole field turned over!"),
       P("mm_c7_suv","And up on the hill, a tough SUV splashed through mud and rock without a wobble.","The same pull goes anywhere!")],
 "c8":[P("mm_c8_today","Today, huge modern factories build the red tractors and tough SUVs side by side.","From a little workshop… to THIS!")],
 "c9":[P("mm_c9_rivals","\"But look,\" warned Charlie, nodding at rows of rival tractors in the market. \"Many others want these very fields. It must keep earning trust — or fade.\"","Keep inventing, keep the trust. Got it!")],
 "c10":[P("mm_c10_forever","Charlotte hugged the diary tight. She'd never look at a tractor — or a spinning gear — the same way again.","Thank you, Grandpa Ben. 💛")],
}
