/*
 * Template "Toga Mini" (Wisuda & Kelulusan) — a kindergarten / early primary graduation drawn in crayon: sunshine
 * yellow, sky blue, tomato red and grass green on soft cream drawing paper with a waxy grain. Signature pieces: the
 * photo in a crayon sun with the little rounded cap and its big tassel (sections/_frame, _cap), the graduate in a puffy
 * cloud (sections/_cloud, _compare), the yellow school bus (sections/_bus), ABC blocks, pencils, crayons, balloons and
 * chubby stars (sections/_defs), crayon card borders (sections/_scribble), washi tape and sticker badges.
 * Mobile-first, one column (~460px) on a deep sky backdrop on wide screens.
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (titles, buttons, the cover sky)   --inv-accent (sunshine: buttons, tape)
 *   --inv-background (cream paper)   --inv-text   --inv-deep (deep bands, the cover foot)   --inv-shine (light yellow)
 *   --inv-soft (the soft tone)   crayons: --inv-sun, --inv-sky, --inv-red, --inv-grass
 *
 * Section tones (set on each section in its partial): .tm-tone--light (cream paper), --soft (the soft tint),
 * --deep (the deep colour with chalk-white doodles). Motion only runs with html.inv-anim (set by <x-inv.head> unless
 * the guest prefers reduced motion); without it everything is shown finished.
 *
 * Revision standard (docs/template-guide.md section 10): the cover is sized in px steps per screen height,
 * never svh/vh; ornaments stay in corners clear of faces; photos melt into sections with masks; the closing
 * is compact and its names end above the bottom menu.
 *
 * Contents: 1 base · 2 tones · 3 shared pieces (heading, divider, tape, scribble, frame, cloud, cap, bus, block,
 *           compare, tap marker, doodles) · 4 cover · 5 sections in page order · 6 forms · 7 shared components
 *           · 8 screen sizes · 9 motion · 10 intro scene
 */

/* ---------- 1. base ---------- */
:root {
    /* defaults = the "Pelangi Krayon" variant (the variant's colours override these) */
    --inv-primary: #1f5fe0;
    --inv-accent: #ffbe0b;
    --inv-background: #fff8e6;
    --inv-text: #2a2342;
    --inv-deep: #163d9e;
    --inv-shine: #ffd93d;
    --inv-soft: #ffeaa0;
    --inv-sun: #ffc414;
    --inv-sky: #2fa6f2;
    --inv-red: #e8352b;
    --inv-grass: #26a646;
    --inv-radius: 14px;

    --tm-round: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --tm-hand: 'Patrick Hand', 'Comic Sans MS', 'Chalkboard SE', cursive;
    --tm-sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tm-col: 460px;

    /* the crayons */
    --tm-sun: var(--inv-sun);
    --tm-sky: var(--inv-sky);
    --tm-red: var(--inv-red);
    --tm-grass: var(--inv-grass);
    --tm-sun-ray: color-mix(in srgb, var(--tm-sun) 50%, #ff6a00);
    --tm-sun-ink: color-mix(in srgb, var(--tm-sun) 48%, #a3360a);
    --tm-ink: color-mix(in srgb, var(--inv-text) 88%, #000);
    --tm-glass: color-mix(in srgb, var(--tm-sky) 38%, #fff);
    --tm-board-1: color-mix(in srgb, var(--inv-deep) 55%, #0e0e26);
    --tm-board-2: color-mix(in srgb, var(--inv-deep) 72%, var(--inv-primary));

    --tm-paper: color-mix(in srgb, #fff 78%, var(--inv-background));
    --tm-title: color-mix(in srgb, var(--inv-primary) 72%, var(--inv-deep));
    --tm-muted: color-mix(in srgb, var(--inv-text) 80%, var(--inv-background));
    --tm-cream: color-mix(in srgb, #fff 88%, transparent);
    --tm-line: color-mix(in srgb, var(--inv-text) 14%, transparent);
    --tm-rule: color-mix(in srgb, var(--tm-sky) 26%, transparent);
    --tm-drop: 0 18px 30px -20px color-mix(in srgb, var(--inv-deep) 60%, transparent);
    --tm-pop: 0 3px 0 color-mix(in srgb, var(--inv-deep) 80%, #000);

    /* a waxy crayon grain for the paper (a tile of turbulence noise) */
    --tm-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .28 0 0 0 0 .1 0 0 0 1 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    /* small doodles on a 96px tile — a star, a plus, a dot, a ring, a heart, a squiggle (a mask: takes any colour) */
    --tm-ground: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cpath d='M16 9.5 18.4 14.6 23.8 15.2 19.8 18.9 20.9 24.2 16 21.5 11.1 24.2 12.2 18.9 8.2 15.2 13.6 14.6Z'/%3E%3Cpath d='M22 80c-4-2.6-5-5.4-3.3-7 1.4-1.4 3-.6 3.3.6.3-1.2 1.9-2 3.3-.6 1.7 1.6.7 4.4-3.3 7z'/%3E%3Ccircle cx='48' cy='50' r='2.2'/%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M70 14v12M64 20h12'/%3E%3Ccircle cx='78' cy='72' r='5'/%3E%3Cpath d='M40 88c3-3 5 3 8 0s5 3 8 0'/%3E%3C/g%3E%3C/svg%3E");
    /* the puffy cloud of the photo frames: 160:190, stretched to the box */
    --tm-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 190' preserveAspectRatio='none'%3E%3Cpath d='M30 60A30 30 0 0 1 62 28A28 28 0 0 1 108 30A30 30 0 0 1 136 66A26 26 0 0 1 142 112A26 26 0 0 1 136 156A28 28 0 0 1 98 176A26 26 0 0 1 58 176A28 28 0 0 1 22 152A26 26 0 0 1 18 106A26 26 0 0 1 30 60Z'/%3E%3C/svg%3E");

    /* colours of the shared components */
    --inv-ambient-1: var(--tm-red);
    --inv-ambient-2: var(--tm-sun);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--inv-background);
    color: var(--inv-text);
    font-family: var(--tm-sans);
    font-size: 15.5px;
    line-height: 1.6;
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--inv-primary); }

/* the SVG definitions: present for the filter and symbols, never seen */
.tm-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.tm-preview {
    position: sticky; top: 0; z-index: 60; padding: .5rem 1rem; text-align: center;
    background: #fff4d6; color: #6b4e00; font-size: .8125rem;
}

/* the one column of the page; every section paints its own full-width background */
.tm-main { max-width: var(--tm-col); margin: 0 auto; overflow-x: clip; }
.tm-branding { max-width: var(--tm-col); margin: 0 auto; }

.tm-section { position: relative; isolation: isolate; overflow: hidden; padding: 4.2rem 1.4rem; text-align: center; }
.tm-section > p { margin: 0 auto 1rem; max-width: 34ch; }

.tm-arabic { font-family: 'Amiri', 'Traditional Arabic', serif; line-height: 1.9; color: var(--tm-title); }
.tm-icon { width: 1.15rem; height: 1.15rem; flex: none; }

/* ---------- 2. section tones ---------- */
/* light: cream drawing paper with the crayon grain, a sky glow in a corner and faint sky doodles */
.tm-tone--light {
    background:
        var(--tm-grain),
        radial-gradient(60% 26% at 100% 0%, color-mix(in srgb, var(--tm-sky) 16%, transparent), transparent 75%),
        radial-gradient(60% 26% at 0% 100%, color-mix(in srgb, var(--tm-sun) 22%, transparent), transparent 75%),
        var(--inv-background);
}
/* soft: a wash of the soft tint */
.tm-tone--soft {
    background:
        var(--tm-grain),
        radial-gradient(80% 34% at 50% 0%, color-mix(in srgb, #fff 55%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-soft), color-mix(in srgb, var(--inv-soft) 50%, var(--inv-background)));
}
.tm-tone--light::before, .tm-tone--soft::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--tm-sky); opacity: .13;
    -webkit-mask: var(--tm-ground) center top / 96px 96px repeat; mask: var(--tm-ground) center top / 96px 96px repeat;
}
.tm-tone--soft::before { background: var(--tm-red); opacity: .1; }
/* deep: the deep colour with a glow of the primary, chalk-white doodles */
.tm-tone--deep {
    color: #fff;
    background:
        radial-gradient(90% 40% at 15% 0%, color-mix(in srgb, var(--inv-primary) 90%, transparent), transparent 75%),
        radial-gradient(70% 34% at 100% 100%, color-mix(in srgb, var(--tm-sky) 34%, transparent), transparent 75%),
        var(--inv-deep);
}
.tm-tone--deep::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: #fff; opacity: .1;
    -webkit-mask: var(--tm-ground) center top / 96px 96px repeat; mask: var(--tm-ground) center top / 96px 96px repeat;
}
.tm-tone--deep a:not(.inv-button) { color: var(--inv-shine); }
.tm-tone--deep .tm-arabic { color: var(--inv-shine); }

/* a client photo behind a section, under a strong gradient of the section's own tone */
.tm-bgphoto { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.tm-bgphoto img { display: block; width: 100%; height: calc(100% + 80px); margin-top: -40px; object-fit: cover; object-position: center 30%; --inv-parallax: 40px; }
.tm-bgphoto::after { content: ''; position: absolute; inset: 0; }
.tm-tone--deep .tm-bgphoto::after {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--inv-deep) 90%, transparent),
        color-mix(in srgb, var(--inv-deep) 78%, transparent) 45%,
        color-mix(in srgb, var(--inv-deep) 95%, transparent));
}

/* ---------- 3. shared pieces ---------- */

/* heading: the eyebrow on washi tape, a chunky rounded title, the last word handwritten in a crayon colour */
.tm-heading { margin: 0 0 2rem; }
.tm-heading__eyebrow { margin: 0 0 .7rem; }
.tm-heading__eyebrow span, .tm-cover__title span, .tm-institution__eyebrow span {
    display: inline-block; padding: .26rem 1.05rem .3rem; transform: rotate(-2deg);
    font-family: var(--tm-hand); font-size: 1.06rem; line-height: 1.2; color: var(--tm-ink);
    background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--tm-sun) 78%, #fff) 0 7px, color-mix(in srgb, var(--tm-sun) 58%, #fff) 7px 14px);
    clip-path: polygon(0 0, 100% 0, 97% 25%, 100% 50%, 97% 75%, 100% 100%, 0 100%, 3% 75%, 0 50%, 3% 25%);
}
.tm-heading__title {
    margin: 0; font-family: var(--tm-round); font-size: 2.15rem; font-weight: 700; line-height: 1.12;
    color: var(--tm-title); text-wrap: balance;
}
.tm-heading__title em, .tm-closing__title em {
    position: relative; display: inline-block; padding: 0 .06em; font-family: var(--tm-hand); font-style: normal; font-weight: 400;
    font-size: 1.2em; line-height: 1; color: var(--tm-red);
}
.tm-heading__wave { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .3em; overflow: visible; fill: none; stroke: var(--tm-sun-ray); stroke-width: 3.2; stroke-linecap: round; }
.tm-heading__divider { margin: .9rem auto 0; }
.tm-tone--deep .tm-heading__title { color: #fff; }
.tm-tone--deep .tm-heading__title em { color: var(--inv-shine); }
.tm-tone--deep .tm-heading__wave { stroke: var(--tm-red); }

/* the crayon divider */
.tm-divider { display: block; width: min(12.5rem, 70%); height: auto; overflow: visible; }

/* washi tape */
.tm-tape {
    position: absolute; z-index: 3; top: -.7rem; width: 4.6rem; height: 1.45rem; pointer-events: none; opacity: .92;
    background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--tm-red) 55%, #fff) 0 6px, color-mix(in srgb, var(--tm-red) 35%, #fff) 6px 12px);
    clip-path: polygon(0 0, 100% 0, 96% 25%, 100% 50%, 96% 75%, 100% 100%, 0 100%, 4% 75%, 0 50%, 4% 25%);
}
.tm-tape--left { left: .8rem; transform: rotate(-9deg); }
.tm-tape--right { right: .8rem; transform: rotate(8deg); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--tm-sky) 55%, #fff) 0 6px, color-mix(in srgb, var(--tm-sky) 32%, #fff) 6px 12px); }
.tm-tape--center { left: 50%; margin-left: -2.3rem; transform: rotate(-3deg); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--tm-grass) 50%, #fff) 0 6px, color-mix(in srgb, var(--tm-grass) 30%, #fff) 6px 12px); }

/* the crayon border around a card */
.tm-scribble {
    position: absolute; left: -4px; top: -4px; width: calc(100% + 8px); height: calc(100% + 8px); z-index: 2;
    overflow: visible; pointer-events: none; fill: none; stroke: currentColor; color: var(--tm-sky);
}
.tm-scribble path { stroke-width: 2.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tm-scribble .tm-scribble__second { stroke-width: 1.5; opacity: .65; }
.tm-scribble--red { color: var(--tm-red); }
.tm-scribble--sun { color: var(--tm-sun-ray); }
.tm-scribble--sky { color: var(--tm-sky); }
.tm-scribble--card { color: var(--tm-card, var(--tm-sky)); }

/* the photo in a crayon sun (sections/_frame): figure 1:1, the window inside the ring */
.tm-frame { --frame-w: 15rem; --frame-pos: center 25%; position: relative; width: var(--frame-w); aspect-ratio: 1; margin: 0 auto; flex: none; }
.tm-frame__rays { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tm-frame__window {
    position: absolute; inset: 12%; overflow: hidden; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tm-sky) 55%, #fff), var(--inv-primary));
}
.tm-frame__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--frame-pos); }
.tm-frame__photo--bg { background: var(--frame-pos) / cover no-repeat; }
.tm-frame__empty { position: absolute; inset: 0; display: grid; place-items: center; }
.tm-frame__initials { font-family: var(--tm-round); font-weight: 700; font-size: calc(var(--frame-w) * .22); line-height: 1; color: #fff; white-space: nowrap; text-shadow: 0 4px 0 color-mix(in srgb, var(--inv-deep) 60%, transparent); }
.tm-frame__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tm-frame__cap { position: absolute; right: -8%; top: -10%; width: 46%; transform: rotate(16deg); pointer-events: none; filter: drop-shadow(0 6px 6px rgb(0 0 0 / .3)); }
.tm-frame__sticker {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) rotate(-4deg); white-space: nowrap;
    padding: .3rem 1rem .34rem; border-radius: 999px; font-family: var(--tm-round); font-size: .84rem; font-weight: 600; line-height: 1.2;
    color: #fff; background: var(--tm-red); box-shadow: 0 0 0 3px #fff, 0 8px 14px -6px rgb(0 0 0 / .45);
}

/* the photo in a puffy cloud (sections/_cloud) */
.tm-cloud { --cloud-w: min(14.5rem, 66vw); position: relative; width: var(--cloud-w); aspect-ratio: 160 / 190; margin: 0 auto; }
.tm-cloud__window {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--tm-sky) 50%, #fff), var(--inv-primary));
    -webkit-mask: var(--tm-cloud) center / 100% 100% no-repeat; mask: var(--tm-cloud) center / 100% 100% no-repeat;
}
.tm-cloud__initials { font-family: var(--tm-round); font-size: 4.2rem; font-weight: 700; color: #fff; text-shadow: 0 4px 0 color-mix(in srgb, var(--inv-deep) 55%, transparent); }
.tm-cloud__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.tm-cloud__edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.tm-cloud__star { position: absolute; width: 2.6rem; height: auto; overflow: visible; pointer-events: none; }
.tm-cloud__star--a { left: -7%; top: 6%; transform: rotate(-14deg); }
.tm-cloud__star--b { right: -9%; top: 34%; width: 2rem; transform: rotate(16deg); }
.tm-cloud__pencil { position: absolute; right: -16%; bottom: 1%; width: 6.2rem; height: auto; overflow: visible; transform: rotate(-22deg); pointer-events: none; }

/* the little cap */
.tm-cap { display: block; overflow: visible; }
.tm-cap__tassel { transform-box: view-box; transform-origin: 50% 25.5%; }

/* the school bus */
.tm-bus { display: block; overflow: visible; }
.tm-bus__wheel { transform-box: view-box; }

/* ABC block */
.tm-block { display: block; overflow: visible; }
.tm-block__letter { font-family: var(--tm-round); font-size: 28px; font-weight: 700; fill: #fff; paint-order: stroke; stroke: rgb(0 0 0 / .18); stroke-width: 2.5px; }

/* "Dulu & Sekarang" (sections/_compare): two photos in one cloud, the handle drags */
.tm-compare { position: relative; width: min(100%, 15.5rem); aspect-ratio: 160 / 190; margin: 0 auto 2.2rem; touch-action: pan-y; }
.tm-compare__pic { position: absolute; inset: 0; -webkit-mask: var(--tm-cloud) center / 100% 100% no-repeat; mask: var(--tm-cloud) center / 100% 100% no-repeat; background: var(--inv-primary); }
.tm-compare__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.tm-compare__then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.tm-compare__then .tm-compare__img { filter: sepia(.5) saturate(1.25) contrast(1.05); }
.tm-compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgb(0 0 0 / .4); }
.tm-compare__edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.tm-compare__tag {
    position: absolute; z-index: 3; top: 22%; padding: .2rem .7rem; border-radius: 999px; pointer-events: none;
    font-family: var(--tm-round); font-size: .74rem; font-weight: 600; color: var(--tm-ink); background: #fff; box-shadow: 0 0 0 2px var(--tm-sun), 0 4px 10px -4px rgb(0 0 0 / .4);
}
.tm-compare__tag--then { left: -.5rem; transform: rotate(-7deg); }
.tm-compare__tag--now { right: -.6rem; transform: rotate(6deg); }
.tm-compare__handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.tm-compare__knob {
    position: absolute; left: 0; top: 55%; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin: -1.45rem 0 0 -1.45rem; border-radius: 50%;
    color: var(--tm-ink); background: var(--tm-sun); box-shadow: 0 0 0 3px #fff, 0 8px 16px -6px rgb(0 0 0 / .55);
}
.tm-compare__knob svg { width: 1.35rem; height: 1.35rem; }
.tm-compare .tm-tap { inset: auto; left: 0; top: 55%; width: 5.4rem; height: 5.4rem; margin: -2.7rem 0 0 -2.7rem; }
.tm-compare .tm-tap__ring { left: 50%; top: 50%; width: 100%; margin: -50% 0 0 -50%; }
.tm-compare .tm-tap__hand { left: 48%; top: 58%; }
.tm-compare__hint {
    position: absolute; z-index: 3; left: 50%; bottom: -1.6rem; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
    padding: .34rem .95rem; border-radius: 999px; font-family: var(--tm-round); font-size: .76rem; font-weight: 600;
    color: var(--tm-ink); background: var(--tm-sun); box-shadow: 0 0 0 2.5px #fff, 0 8px 16px -8px rgb(0 0 0 / .5);
}
.tm-compare__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.tm-compare__range:focus-visible { opacity: .01; }
.tm-compare:has(.tm-compare__range:focus-visible) .tm-compare__knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--tm-red); }

/* the tap marker: two pulsing rings and a tapping hand */
.tm-tap { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.tm-tap__ring {
    position: absolute; left: 50%; top: 50%; width: 5rem; aspect-ratio: 1; margin: -2.5rem 0 0 -2.5rem; border-radius: 50%;
    border: 3px solid #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--tm-red) 70%, transparent); opacity: 0;
}
.tm-tap__hand {
    position: absolute; left: 58%; top: 60%; width: 2.5rem; height: 2.5rem;
    fill: #fff; stroke: var(--tm-ink); stroke-width: 1.5; stroke-linejoin: round;
    filter: drop-shadow(0 4px 5px rgb(0 0 0 / .35));
}

/* crayon doodles at the edges of a section */
.tm-doodles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tm-doodle { position: absolute; height: auto; overflow: visible; opacity: .9; }
.tm-doodle--star-l { left: .6rem; top: 2.2rem; width: 2.4rem; transform: rotate(-14deg); }
.tm-doodle--swirl-r { right: .8rem; top: 3rem; width: 2.2rem; color: var(--tm-grass); }
.tm-doodle--crayon-b { right: -1.2rem; bottom: 1.6rem; width: 5.4rem; color: var(--tm-red); transform: rotate(-28deg); }
.tm-doodle--cloud-r { right: -1.6rem; top: 1.6rem; width: 5.6rem; }
.tm-doodle--flower-l { left: .9rem; top: 3.2rem; width: 1.7rem; color: var(--tm-red); }
.tm-doodle--star-b { left: 1rem; bottom: 1.6rem; width: 2rem; transform: rotate(12deg); }
.tm-doodle--balloon-l { left: .4rem; top: 2rem; width: 2.1rem; color: var(--tm-red); transform: rotate(-8deg); }
.tm-doodle--balloon-l2 { left: 2.2rem; top: 3.6rem; width: 1.7rem; color: var(--tm-sky); transform: rotate(6deg); }
.tm-doodle--pencil-r { right: -1.4rem; bottom: 2rem; width: 6rem; transform: rotate(-32deg); }
.tm-doodle--block-a { right: 1rem; top: 2.2rem; width: 2.6rem; transform: rotate(8deg); }
.tm-doodle--block-b { right: 2.8rem; top: 3.6rem; width: 2rem; transform: rotate(-10deg); }
.tm-doodle--swirl-l { left: .8rem; bottom: 1.8rem; width: 2.2rem; color: var(--tm-sun-ray); }
.tm-tone--deep .tm-doodle { opacity: .8; }

/* ---------- 4. cover ---------- */
.tm-cover {
    --frame-cover: 15.6rem;
    position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    padding: 2.8rem 1.3rem 2rem; isolation: isolate; color: #fff;
    background:
        radial-gradient(55% 28% at 16% 14%, color-mix(in srgb, var(--tm-sun) 50%, transparent), transparent 75%),
        linear-gradient(180deg, var(--tm-sky) 0%, var(--inv-primary) 50%, var(--inv-deep) 100%);
    transition: opacity .9s ease;
}
/* chalk doodles */
.tm-cover::before {
    content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .12; background: #fff;
    -webkit-mask: var(--tm-ground) center top / 96px 96px repeat; mask: var(--tm-ground) center top / 96px 96px repeat;
}
.tm-cover__world { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tm-cover__cloud { position: absolute; height: auto; overflow: visible; }
.tm-cover__cloud--a { right: -1.6rem; top: 4.4rem; width: 6.4rem; }
.tm-cover__cloud--b { left: -2.6rem; top: 40%; width: 5.4rem; opacity: .92; }
.tm-cover__cloud--c { right: -2.4rem; top: 46%; width: 4.6rem; opacity: .8; }
.tm-cover__sun { position: absolute; left: -1.6rem; top: 3.6rem; width: 6rem; height: auto; overflow: visible; }
.tm-cover__balloon { position: absolute; height: auto; overflow: visible; }
.tm-cover__balloon--a { right: .5rem; bottom: 24%; width: 2.4rem; color: var(--tm-red); }
.tm-cover__balloon--b { right: 2.4rem; bottom: 19%; width: 1.9rem; color: var(--tm-sun); }
.tm-cover__hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 5rem; }
.tm-cover__flower { position: absolute; bottom: 1.1rem; width: 1.15rem; height: auto; }
.tm-cover__flower--a { left: 34%; color: var(--tm-red); }
.tm-cover__flower--b { right: 22%; bottom: 1.6rem; color: #fff; }
.tm-cover__bus { position: absolute; left: -.8rem; bottom: .5rem; width: 6.6rem; height: auto; }
.tm-cover__inner { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; text-align: center; transition: transform .9s cubic-bezier(.5, 0, .3, 1); }

.tm-cover__title { margin: 0 0 1rem; }
.tm-cover__title span { font-size: 1.1rem; }

.tm-cover__art { position: relative; width: var(--frame-cover); margin-bottom: .35rem; }
/* a warm sun glow breathing behind the frame */
.tm-cover__art::before {
    content: ''; position: absolute; z-index: -1; inset: -14%; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--tm-sun) 46%, transparent), transparent);
}
.tm-frame--cover { --frame-w: var(--frame-cover); --frame-pos: center 24%; }

.tm-cover__names {
    margin: .6rem 0 0; max-width: 100%; font-family: var(--tm-round); font-size: 2.9rem; font-weight: 700; line-height: 1.06;
    color: #fff; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 3px 0 color-mix(in srgb, var(--inv-deep) 75%, #000), 0 8px 18px rgb(0 0 0 / .25);
}
.tm-cover__degree { margin: .2rem 0 0; font-family: var(--tm-hand); font-size: 1.25rem; line-height: 1.25; color: var(--inv-shine); }
.tm-cover__date { margin: .55rem 0 0; }
.tm-cover__date span {
    display: inline-block; padding: .3rem 1.1rem .34rem; border-radius: .7rem; transform: rotate(1.5deg);
    font-family: var(--tm-round); font-size: 1rem; font-weight: 600; color: var(--tm-ink); background: var(--tm-sun);
    box-shadow: 0 0 0 2.5px #fff, 0 8px 14px -8px rgb(0 0 0 / .5);
}
.tm-cover__quote { max-width: 30ch; margin: .6rem 0 0; font-weight: 600; font-size: 1rem; line-height: 1.38; color: var(--tm-cream); text-wrap: balance; }
.tm-cover__guest {
    width: min(100%, 18rem); margin: .75rem 0 0; padding: .4rem 1rem .48rem; border-radius: 14px; color: var(--tm-ink);
    background: var(--tm-paper); box-shadow: 0 0 0 2.5px var(--tm-sun), 0 12px 22px -14px rgb(0 0 0 / .6);
}
.tm-cover__guest p { margin: 0; font-family: var(--tm-hand); font-size: .98rem; line-height: 1.2; color: var(--tm-red); }
.tm-cover__guest-name { display: block; font-family: var(--tm-round); font-size: 1.2rem; font-weight: 600; line-height: 1.22; color: var(--tm-title); overflow-wrap: anywhere; }
.tm-cover__open {
    margin-top: .85rem; min-height: 3rem; padding: .6rem 2rem; border-radius: 999px; font-family: var(--tm-round); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em;
    color: var(--tm-ink); background: var(--tm-sun);
    box-shadow: 0 0 0 3px #fff, 0 6px 0 3px var(--tm-sun-ink), 0 16px 24px -10px rgb(0 0 0 / .5);
}

/* leaving: the cover fades and lifts away (never blocks: .9s) */
.tm-cover--leave { transition: opacity .9s ease .1s; }
.tm-cover--gone { opacity: 0; }
.tm-cover--gone .tm-cover__inner { transform: translateY(-2.5rem); }

/* ---------- 5. sections ---------- */

/* opening: the exercise-book page, the quote in a speech bubble */
.tm-opening { padding: 4rem 1.3rem 4.2rem; }
.tm-page {
    position: relative; max-width: 22.5rem; margin: 0 auto; padding: 2.6rem 1.3rem 2.4rem 2.5rem; border-radius: 8px; transform: rotate(-.8deg);
    background:
        linear-gradient(90deg, transparent 1.55rem, color-mix(in srgb, var(--tm-red) 50%, transparent) 1.55rem 1.68rem, transparent 1.68rem),
        repeating-linear-gradient(180deg, transparent 0 1.66rem, var(--tm-rule) 1.66rem 1.74rem),
        var(--tm-paper);
    box-shadow: var(--tm-drop);
}
.tm-page__star { position: absolute; right: -.9rem; top: -1.3rem; z-index: 3; width: 3rem; height: auto; overflow: visible; transform: rotate(14deg); }
.tm-page__pencil { position: absolute; left: -1.2rem; bottom: -1rem; z-index: 3; width: 7rem; height: auto; overflow: visible; transform: rotate(-12deg); }
.tm-page__body { position: relative; }
.tm-opening__basmalah { margin: 0 0 .5rem; font-size: 1.75rem; }
.tm-opening__greeting { margin: 0 auto; max-width: 22ch; font-family: var(--tm-round); font-size: 1.32rem; font-weight: 600; line-height: 1.3; color: var(--tm-title); text-wrap: balance; }
.tm-opening__divider { margin: .9rem auto; }
.tm-opening__message { margin: 0 auto; max-width: 30ch; font-size: 1rem; line-height: 1.65; color: var(--tm-muted); }
.tm-bubble {
    position: relative; max-width: 21rem; margin: 2.4rem auto 0; padding: 1.2rem 1.3rem 1.15rem; border-radius: 28px;
    background: color-mix(in srgb, var(--tm-sky) 18%, #fff); box-shadow: 0 0 0 3px var(--tm-sky), var(--tm-drop);
}
.tm-bubble::before {
    content: ''; position: absolute; left: 50%; top: -.95rem; width: 1.6rem; height: 1rem; margin-left: -.8rem; background: var(--tm-sky);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.tm-bubble p { margin: 0; font-family: var(--tm-hand); font-size: 1.28rem; line-height: 1.4; color: var(--tm-ink); }
.tm-bubble cite, .tm-prayer__text cite {
    display: inline-block; margin-top: .7rem; padding: .2rem .85rem; border-radius: 999px; font-style: normal; font-family: var(--tm-round);
    font-size: .76rem; font-weight: 600; color: #fff; background: var(--tm-sky);
}

/* graduate: a card per graduate — the cloud (or the compare slider), the name tag, the name, chips, rosette, parents */
.tm-graduate__list { display: grid; gap: 3.2rem; }
.tm-graduate__card { max-width: 24rem; margin: 0 auto; }
.tm-graduate__card > .tm-cloud { margin-top: .4rem; }
.tm-nametag {
    display: inline-flex; flex-direction: column; min-width: 10.5rem; max-width: 100%; margin: 1.6rem auto 0 !important; overflow: hidden; border-radius: 12px;
    background: #fff; transform: rotate(-2deg); box-shadow: 0 0 0 3px var(--tm-red), var(--tm-drop);
}
.tm-nametag__hello { padding: .22rem .9rem; font-family: var(--tm-round); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--tm-red); }
.tm-nametag__name { padding: .1rem 1rem .3rem; font-family: var(--tm-hand); font-size: 2rem; line-height: 1.15; color: var(--tm-ink); overflow-wrap: anywhere; }
.tm-graduate__name { margin: .9rem auto 0; max-width: 20ch; font-family: var(--tm-round); font-size: 1.7rem; font-weight: 700; line-height: 1.15; color: var(--tm-title); text-wrap: balance; }
.tm-graduate__degree { font-weight: 600; color: var(--tm-red); }
.tm-graduate__major {
    display: table; margin: .6rem auto 0 !important; padding: .24rem .95rem; border-radius: 999px;
    font-family: var(--tm-round); font-size: .9rem; font-weight: 600; line-height: 1.35; color: #fff; background: var(--tm-grass);
}
.tm-rosette {
    display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; margin: 1rem auto 0 !important; padding: .35rem 1.1rem .35rem .45rem; border-radius: 999px; text-align: left;
    font-family: var(--tm-round); font-size: 1rem; font-weight: 600; line-height: 1.25; color: var(--tm-title); background: #fff;
    box-shadow: 0 0 0 2.5px var(--tm-sun), var(--tm-drop);
}
.tm-rosette__medal { flex: none; width: 2.3rem; height: auto; overflow: visible; margin-bottom: -.5rem; }
.tm-graduate__thesis { margin: 1.1rem auto 0; padding: .85rem 1rem; max-width: 22rem; border-radius: 4px; transform: rotate(1deg); background: color-mix(in srgb, var(--tm-sun) 32%, #fff); box-shadow: var(--tm-drop); }
.tm-graduate__thesis span { display: block; font-family: var(--tm-round); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-sun-ink); }
.tm-graduate__thesis p { margin: .2rem 0 0; font-family: var(--tm-hand); font-size: 1.2rem; line-height: 1.35; color: var(--tm-ink); }
.tm-graduate__parents { margin: 1rem auto 0 !important; font-size: .92rem; color: var(--tm-muted); }
.tm-graduate__parents span { display: block; font-size: .86rem; }
.tm-graduate__parents strong { display: block; font-family: var(--tm-round); font-size: 1.12rem; font-weight: 600; line-height: 1.35; color: var(--inv-text); }

/* institution: "Kumpulkan bintangnya" — the school, the drawing with five stars, the progress row, the badge */
.tm-institution { padding-bottom: 4.6rem; }
.tm-institution__eyebrow { margin: 0 0 .7rem !important; }
.tm-institution__logo { display: block; width: 4.6rem; height: 4.6rem; margin: 0 auto .7rem; object-fit: contain; padding: .5rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--tm-sun); }
.tm-institution__name { margin: 0 auto; max-width: 18ch; font-family: var(--tm-round); font-size: 2.1rem; font-weight: 700; line-height: 1.12; color: #fff; text-wrap: balance; text-shadow: var(--tm-pop); }
.tm-institution__faculty { margin: .35rem auto 0 !important; font-family: var(--tm-hand); font-size: 1.25rem; color: var(--inv-shine); }
.tm-institution__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: .9rem auto 0 !important; }
.tm-institution__facts span { padding: .22rem .85rem; border-radius: 999px; font-family: var(--tm-round); font-size: .84rem; font-weight: 600; color: var(--tm-title); background: #fff; transform: rotate(-2deg); box-shadow: 0 0 0 2px var(--tm-sun); }
.tm-institution__facts span:nth-child(2) { transform: rotate(2deg); background: var(--tm-sun); color: var(--tm-ink); box-shadow: 0 0 0 2px #fff; }
.tm-institution__ceremony { margin: .8rem auto 0 !important; font-size: .92rem; line-height: 1.45; color: var(--tm-cream); }

.tm-hunt {
    position: relative; max-width: 22rem; margin: 1.7rem auto 0; aspect-ratio: 340 / 210; border-radius: 10px;
    background: var(--tm-grain), color-mix(in srgb, #fff 82%, var(--tm-sky)); box-shadow: 0 22px 34px -22px rgb(0 0 0 / .7);
}
.tm-hunt__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tm-hunt__bus { position: absolute; left: 3%; bottom: 7%; width: 33%; height: auto; }
.tm-hunt__star {
    position: absolute; z-index: 4; width: 3.1rem; height: 3.1rem; margin: -1.55rem 0 0 -1.55rem; padding: 0; border: 0; border-radius: 50%;
    background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; filter: drop-shadow(0 3px 2px rgb(0 0 0 / .28));
    transition: transform .68s cubic-bezier(.45, -.25, .35, 1), opacity .2s ease .56s;
}
.tm-hunt__star > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tm-hunt__star:focus-visible { outline: 3px solid var(--tm-red); outline-offset: 2px; }
.tm-hunt__star.is-flying { z-index: 6; transform: translate(var(--fx, 0), var(--fy, 0)) scale(.6) rotate(320deg); }
.tm-hunt__star.is-got { opacity: 0; visibility: hidden; }
.tm-hunt__star .tm-tap__ring { width: 4.4rem; margin: -2.2rem 0 0 -2.2rem; }
.tm-hunt__star .tm-tap__hand { left: 62%; top: 58%; width: 2.3rem; height: 2.3rem; }
.tm-hunt__progress { margin: 1.4rem auto 0; }
.tm-hunt__label {
    display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .38rem 1.05rem .4rem .7rem; border-radius: 999px;
    font-family: var(--tm-round); font-size: 1rem; font-weight: 600; line-height: 1.2; color: var(--tm-ink); background: var(--tm-sun);
    box-shadow: 0 0 0 2.5px #fff, 0 8px 14px -8px rgb(0 0 0 / .5);
}
.tm-hunt__label-hand { width: 1.35rem; height: 1.35rem; fill: #fff; stroke: var(--tm-ink); stroke-width: 1.6; stroke-linejoin: round; }
.tm-hunt__slots { display: flex; justify-content: center; gap: .45rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.tm-hunt__slot { width: 2.6rem; height: 2.6rem; }
.tm-hunt__slot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tm-hunt__slot-empty { fill: color-mix(in srgb, #fff 10%, transparent); stroke: color-mix(in srgb, #fff 70%, transparent); stroke-dasharray: 2.4 2.4; transition: opacity .3s ease; }
.tm-hunt__slot-full { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.3); transition: opacity .25s ease, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.tm-hunt__slot.is-got .tm-hunt__slot-full { opacity: 1; transform: none; }
.tm-hunt__slot.is-got .tm-hunt__slot-empty { opacity: 0; }

.tm-badge { position: relative; width: 15rem; aspect-ratio: 200 / 232; margin: 2.2rem auto 0; transition: opacity .5s ease, filter .5s ease, transform .5s ease; }
.tm-badge__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .4)); }
.tm-badge__shine {
    position: absolute; left: 5%; right: 5%; top: 1.5%; height: 78%; border-radius: 50%; pointer-events: none; mix-blend-mode: soft-light;
    background: linear-gradient(115deg, transparent 38%, rgb(255 255 255 / .9) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
}
.tm-badge__cap { position: absolute; left: 50%; top: -9%; width: 38%; margin-left: -19%; transform: rotate(-8deg); filter: drop-shadow(0 6px 6px rgb(0 0 0 / .3)); }
.tm-badge__text { position: absolute; left: 17%; right: 17%; top: 19%; height: 44%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tm-badge__text p { margin: 0; }
.tm-badge__title { font-family: var(--tm-round); font-size: 1.8rem; font-weight: 700; line-height: 1.02; color: var(--tm-title); text-wrap: balance; }
.tm-badge__name { margin-top: .15rem !important; font-family: var(--tm-hand); font-size: 1.4rem; line-height: 1.1; color: var(--tm-ink); overflow-wrap: anywhere; text-wrap: balance; }
.tm-badge__class { margin-top: .2rem !important; font-size: .74rem; font-weight: 800; line-height: 1.25; color: color-mix(in srgb, var(--tm-ink) 80%, var(--tm-sun)); text-wrap: balance; }
/* waiting for the stars: a faint ghost of the badge */
.tm-institution.is-armed .tm-badge { opacity: .2; filter: grayscale(.7) blur(1.5px); transform: scale(.88); }

/* thanks: a card drawn for the teacher */
.tm-thanks__card {
    position: relative; max-width: 23rem; margin: 0 auto; padding: 2.3rem 1.4rem 1.9rem; border-radius: 10px; transform: rotate(.8deg);
    background: var(--tm-grain), var(--tm-paper); box-shadow: var(--tm-drop);
}
.tm-thanks__heart { position: absolute; left: 50%; top: -1.3rem; z-index: 3; width: 2.6rem; height: auto; margin-left: -1.3rem; overflow: visible; fill: var(--tm-red); transform: rotate(-8deg); }
.tm-thanks__crayon { position: absolute; right: -1.3rem; bottom: -1rem; z-index: 3; width: 5.6rem; height: auto; overflow: visible; color: var(--tm-grass); transform: rotate(-24deg); }
.tm-thanks__words { margin: 0; font-family: var(--tm-hand); font-size: 1.36rem; line-height: 1.42; color: var(--tm-ink); }
.tm-thanks__names { display: grid; gap: .35rem; margin: 1.2rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 2px dashed var(--tm-rule); }
.tm-thanks__names li { display: flex; align-items: center; justify-content: center; gap: .45rem; font-family: var(--tm-round); font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--tm-title); }
.tm-thanks__names li::before { content: ''; width: 12px; height: 12px; flex: none; background: var(--tm-dot, var(--tm-red)); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.tm-thanks__signature { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: 1rem; font-family: var(--tm-hand); font-style: normal; font-size: 2.1rem; line-height: 1.1; color: var(--tm-red); }
.tm-thanks__signature svg { width: 1.4rem; height: auto; fill: var(--tm-red); overflow: visible; }

/* next step: the bus drives to the next school, the sticky note */
.tm-next__road { position: relative; max-width: 22rem; margin: 0 auto 1.4rem; aspect-ratio: 340 / 120; }
.tm-next__scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tm-next__bus { position: absolute; left: 30%; bottom: 14%; width: 40%; height: auto; }
.tm-next__card {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 1.9rem 1.3rem 1.5rem; border-radius: 6px; transform: rotate(-1deg);
    background: var(--tm-grain), var(--tm-paper); box-shadow: 0 0 0 2.5px var(--tm-grass), var(--tm-drop);
}
.tm-next__label { margin: 0; font-family: var(--tm-round); font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-red); }
.tm-next__title { margin: .2rem auto 0; max-width: 18ch; font-family: var(--tm-round); font-size: 1.8rem; font-weight: 700; line-height: 1.15; color: var(--tm-title); text-wrap: balance; }
.tm-next__text { margin: .5rem auto 0; max-width: 30ch; font-size: .95rem; color: var(--tm-muted); }

/* events: paper cards in a crayon border with a tear-off calendar page */
.tm-event {
    position: relative; margin: 0 auto; max-width: 25rem; padding: .8rem .8rem 1.5rem; border-radius: 12px; text-align: left;
    background: var(--tm-grain), var(--tm-paper); box-shadow: var(--tm-drop);
}
.tm-event + .tm-event { margin-top: 2.8rem; }
.tm-event__media { position: relative; }
.tm-event__photo {
    display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center 30%; border-radius: 9px;
    -webkit-mask: linear-gradient(180deg, #000 68%, transparent); mask: linear-gradient(180deg, #000 68%, transparent);
}
.tm-event__top { display: flex; align-items: center; gap: .95rem; padding: 1.1rem .5rem 0; }
.tm-event__media + .tm-event__top { margin-top: -2.4rem; align-items: flex-end; }
.tm-event__date {
    position: relative; flex: none; width: 4.7rem; margin: 0; border-radius: 10px; text-align: center; background: #fff;
    box-shadow: 0 0 0 2.5px var(--tm-card, var(--tm-sky)), 0 12px 20px -10px color-mix(in srgb, var(--inv-deep) 60%, transparent);
    transform: rotate(-3deg);
}
.tm-event__date::before, .tm-event__date::after { content: ''; position: absolute; top: -.4rem; width: .4rem; height: .9rem; border-radius: 99px; background: var(--tm-ink); }
.tm-event__date::before { left: 1.2rem; }
.tm-event__date::after { right: 1.2rem; }
.tm-event__month { display: block; padding: .32rem .2rem .26rem; border-radius: 10px 10px 0 0; font-family: var(--tm-round); font-size: .68rem; font-weight: 600; line-height: 1.1; color: #fff; background: var(--tm-red); }
.tm-event__date strong { display: block; padding-top: .1rem; font-family: var(--tm-round); font-size: 2.1rem; font-weight: 700; line-height: 1.05; color: var(--tm-ink); }
.tm-event__day { display: block; padding: 0 .2rem .38rem; font-size: .64rem; font-weight: 800; line-height: 1.1; color: var(--tm-muted); }
.tm-event__head { min-width: 0; padding-bottom: .1rem; }
.tm-event__media + .tm-event__top .tm-event__head { padding-top: 2.6rem; }
.tm-event__name { margin: 0; font-family: var(--tm-round); font-size: 1.45rem; font-weight: 700; line-height: 1.15; color: var(--tm-title); }
.tm-event__full { margin: .15rem 0 0; font-size: .84rem; color: var(--tm-muted); }
.tm-event__rows { display: grid; gap: .7rem; margin: 1rem .5rem 0; padding: .95rem 0 0; list-style: none; font-size: .95rem; border-top: 2px dashed var(--tm-rule); }
.tm-event__rows li { display: flex; align-items: flex-start; gap: .65rem; }
.tm-event__rows .tm-icon { width: 2rem; height: 2rem; padding: .4rem; border-radius: 50%; color: #fff; background: var(--tm-card, var(--tm-sky)); }
.tm-event__rows li > span { padding-top: .25rem; }
.tm-event__venue { display: block; font-weight: 800; }
.tm-event__address { display: block; font-size: .88rem; color: var(--tm-muted); }
.tm-event .inv-maps { margin: 1.1rem .5rem 0; text-align: center; }
.tm-event .inv-maps .inv-button { width: 100%; font-family: var(--tm-round); font-weight: 600; }
.tm-event .inv-maps__frame { height: 180px; border-radius: 12px; }

/* countdown: ABC blocks in four crayon colours */
.tm-countdown__balloons { display: flex; justify-content: center; gap: .55rem; margin: -1.4rem 0 .6rem; }
.tm-countdown__balloons svg { width: 1.7rem; height: auto; overflow: visible; }
.tm-countdown .inv-countdown { gap: clamp(.5rem, 2.6vw, .85rem); }
.tm-countdown .inv-countdown__item {
    --tm-b: var(--tm-red);
    display: grid; place-content: center; width: clamp(4rem, 18vw, 4.6rem); min-width: 0; aspect-ratio: 1; padding: 0; border-radius: 12px;
    color: #fff; background: var(--tm-b); transform: rotate(-4deg);
    outline: 2px solid rgb(255 255 255 / .5); outline-offset: -7px;
    box-shadow: inset 0 -5px 0 rgb(0 0 0 / .14), 0 6px 0 color-mix(in srgb, var(--tm-b) 62%, #000), 0 16px 20px -8px rgb(0 0 0 / .55);
}
.tm-countdown .inv-countdown__item:nth-child(2) { --tm-b: var(--tm-sun); color: var(--tm-ink); transform: rotate(3deg); }
.tm-countdown .inv-countdown__item:nth-child(3) { --tm-b: var(--tm-sky); transform: rotate(-2deg); }
.tm-countdown .inv-countdown__item:nth-child(4) { --tm-b: var(--tm-grass); transform: rotate(4deg); }
.tm-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--tm-round); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.tm-countdown .inv-countdown__label { margin-top: .1rem; font-family: var(--tm-round); font-size: .6rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.tm-countdown .inv-countdown__done { font-family: var(--tm-round); font-size: 1.3rem; font-weight: 600; color: var(--inv-shine); }
.tm-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2.1rem; }
.tm-countdown .inv-countdown__actions .inv-button {
    width: min(100%, 17rem); min-height: 2.75rem; padding: .6rem 1rem; border-radius: 999px; font-family: var(--tm-round); font-size: .9rem; font-weight: 600;
    color: #fff; background: color-mix(in srgb, #fff 10%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, #fff 55%, transparent);
}
.tm-countdown .inv-countdown__actions .inv-button:first-child { color: var(--tm-ink); background: var(--tm-sun); box-shadow: 0 4px 0 var(--tm-sun-ink); }
.tm-countdown .inv-cal {
    --inv-cal-bg: var(--tm-paper); --inv-cal-mark: var(--tm-red);
    max-width: 19rem; margin: 2.8rem auto 0; border-radius: 16px; color: var(--inv-text);
    box-shadow: 0 0 0 3px var(--tm-sun), 0 22px 40px -24px rgb(0 0 0 / .6);
}
.tm-countdown .inv-cal__month { font-family: var(--tm-round); font-size: 1.4rem; font-weight: 700; color: var(--tm-title); }

/* prayer: a cloud panel, the cap resting on it */
.tm-prayer { padding-top: 6.2rem; }
.tm-prayer__panel {
    position: relative; max-width: 22rem; margin: 0 auto; padding: .8rem 1.4rem 2.2rem; border-radius: 0 0 28px 28px;
    color: var(--inv-text); background: #fff; box-shadow: inset 3px 0 0 var(--tm-sky), inset -3px 0 0 var(--tm-sky), inset 0 -3px 0 var(--tm-sky), var(--tm-drop);
}
.tm-prayer__top { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: 3.2rem; overflow: visible; }
.tm-prayer__cap { position: absolute; left: 50%; top: -5.2rem; width: 5.4rem; margin-left: -2.7rem; transform: rotate(-8deg); filter: drop-shadow(0 6px 6px rgb(0 0 0 / .22)); }
.tm-prayer__star { position: absolute; top: -2.2rem; width: 2rem; height: auto; overflow: visible; }
.tm-prayer__star--l { left: .4rem; transform: rotate(-14deg); }
.tm-prayer__star--r { right: .6rem; top: -1.4rem; width: 1.6rem; transform: rotate(12deg); }
.tm-prayer__eyebrow { margin: 0 0 .7rem; font-family: var(--tm-hand); font-size: 1.15rem; color: var(--tm-red); }
.tm-prayer__arabic { margin: 0 0 .9rem; font-size: 1.5rem; text-wrap: balance; }
.tm-prayer__text { margin: 0; }
.tm-prayer__text p { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.6; color: var(--tm-ink); }

/* rundown: times on crayon sticks */
.tm-rundown__list { display: grid; gap: .8rem; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.tm-rundown__item { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); align-items: center; gap: .6rem; }
.tm-rundown__time {
    justify-self: stretch; padding: .42rem .55rem .42rem 1.45rem; text-align: center;
    font-family: var(--tm-round); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 0 rgb(0 0 0 / .2);
    background:
        linear-gradient(90deg, transparent 0 1.15rem, rgb(255 255 255 / .3) 1.15rem 1.35rem, transparent 1.35rem calc(100% - .7rem), rgb(255 255 255 / .3) calc(100% - .7rem) calc(100% - .5rem), transparent calc(100% - .5rem)),
        var(--tm-crayon, var(--tm-red));
    clip-path: polygon(0 50%, 1.1rem 6%, calc(100% - 4px) 6%, 100% 20%, 100% 80%, calc(100% - 4px) 94%, 1.1rem 94%);
}
.tm-rundown__body { padding: .6rem .9rem .65rem; border-radius: 12px; background: var(--tm-paper); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tm-crayon, var(--tm-red)) 45%, transparent); }
.tm-rundown__body h3 { margin: 0; font-family: var(--tm-round); font-size: 1.08rem; font-weight: 600; line-height: 1.3; color: var(--tm-title); }
.tm-rundown__body p { margin: .1rem 0 0; font-size: .88rem; color: var(--tm-muted); }

/* party: the theme under a rainbow, the T-shirt and its crayons, the note and the hashtag */
.tm-party__label { display: block; font-family: var(--tm-round); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tm-red); }
.tm-party__theme-card { position: relative; max-width: 19rem; margin: 3.6rem auto 0; padding: 1rem 1.2rem 1.3rem; border-radius: 22px; color: var(--inv-text); background: var(--tm-paper); box-shadow: 0 0 0 3px #fff, var(--tm-drop); }
.tm-party__rainbow { display: block; width: 12.5rem; height: auto; margin: -4.6rem auto .3rem; overflow: visible; }
.tm-party__theme { margin: .2rem 0 0; font-family: var(--tm-round); font-size: 1.75rem; font-weight: 700; line-height: 1.15; color: var(--tm-title); text-wrap: balance; }
.tm-party__dress {
    position: relative; display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); align-items: center; gap: 1rem; max-width: 22rem; margin: 2rem auto 0;
    padding: 1.1rem 1.15rem; border-radius: 12px; text-align: left; color: var(--inv-text); background: var(--tm-grain), var(--tm-paper);
}
.tm-party__shirt { width: 5.4rem; height: auto; overflow: visible; }
.tm-party__shirt-body { fill: var(--tm-pick, var(--tm-red)); stroke: var(--tm-ink); stroke-width: 2.2; transition: fill .4s ease; }
.tm-party__shirt-line { fill: none; stroke: rgb(0 0 0 / .25); stroke-width: 1.6; stroke-linecap: round; }
.tm-party__dress-name { margin: .1rem 0 .5rem; font-family: var(--tm-round); font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--tm-title); }
.tm-swatches { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .35rem; }
.tm-swatch { width: 1.7rem; height: 3.9rem; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); filter: drop-shadow(0 3px 2px rgb(0 0 0 / .2)); }
.tm-swatch svg { display: block; width: 100%; height: 100%; }
.tm-swatch[aria-pressed=true] { transform: translateY(-8px); }
.tm-swatch:focus-visible { outline: 2px solid var(--tm-red); outline-offset: 2px; border-radius: 4px; }
.tm-party__hint { margin: .45rem 0 0 !important; font-size: .8rem; color: var(--tm-muted); }
.tm-party__hint--center { margin: .5rem auto 0 !important; text-align: center; color: var(--tm-cream); }
.tm-party__note { margin-top: 1.5rem !important; font-family: var(--tm-hand); font-size: 1.32rem; line-height: 1.4; color: #fff; }
.tm-party__hashtag {
    display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; margin-top: .3rem; padding: .35rem .4rem .35rem .9rem; border-radius: 999px;
    color: var(--inv-text); background: var(--tm-paper); box-shadow: 0 0 0 2.5px var(--tm-sun);
}
.tm-party__hashtag .tm-icon { color: var(--tm-red); }
.tm-party__hashtag-text { font-family: var(--tm-round); font-weight: 600; color: var(--tm-title); overflow-wrap: anywhere; }
.tm-party__copy {
    min-height: 2.2rem; padding: .3rem .95rem; border: 0; border-radius: 999px; cursor: pointer; font: 600 .84rem/1 var(--tm-round);
    color: var(--tm-ink); background: var(--tm-sun);
}

/* story: taped polaroids beside the text, alternating; text-only chapters as sticky notes */
.tm-story__list { display: grid; gap: 2.4rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.tm-story__item { display: grid; grid-template-columns: 44% minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.tm-story__item--flip { grid-template-columns: minmax(0, 1fr) 44%; }
.tm-story__item--flip .tm-story__media { order: 2; transform: rotate(3deg); }
.tm-story__media { position: relative; padding: .45rem .45rem 1.5rem; background: #fff; transform: rotate(-3deg); box-shadow: 0 14px 22px -14px color-mix(in srgb, var(--inv-deep) 55%, transparent), 0 0 0 1px var(--tm-line); }
.tm-story__photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 28%; }
.tm-story__when { display: inline-block; padding: .16rem .75rem; border-radius: 999px; font-family: var(--tm-round); font-size: .78rem; font-weight: 600; color: #fff; background: var(--tm-crayon, var(--tm-red)); }
.tm-story__body h3 { margin: .45rem 0 0; font-family: var(--tm-round); font-size: 1.32rem; font-weight: 700; line-height: 1.2; color: var(--tm-title); }
.tm-story__body p { margin: .3rem 0 0; font-size: .92rem; line-height: 1.55; color: var(--tm-muted); }
.tm-story__item--text {
    grid-template-columns: 2.8rem minmax(0, 1fr); align-items: start; gap: .9rem; padding: 1.1rem 1.15rem; border-radius: 4px; transform: rotate(-.6deg);
    background: color-mix(in srgb, var(--tm-crayon, var(--tm-sun)) 16%, #fff); box-shadow: var(--tm-drop);
}
.tm-story__dot { position: relative; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; }
.tm-story__dot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tm-story__dot b { position: relative; margin-top: .15rem; font-family: var(--tm-round); font-size: 1rem; font-weight: 700; color: var(--tm-ink); }

/* gallery: white-edged instant photos, each a little tilted */
.tm-gallery .inv-gallery { gap: 1rem .9rem; }
.tm-gallery .inv-gallery__item { border-radius: 3px; rotate: -2deg; box-shadow: 0 0 0 5px #fff, 0 16px 24px -14px rgb(0 0 0 / .7); }
.tm-gallery .inv-gallery__item:nth-child(even) { rotate: 2.2deg; }
.tm-gallery .inv-gallery__item:first-child { grid-row: span 2; aspect-ratio: auto; }

/* live streaming: a crayon television */
.tm-stream__tv {
    position: relative; max-width: 21rem; margin: 2.4rem auto 0; padding: .9rem .9rem 2.5rem; border-radius: 28px;
    background: var(--tm-red); box-shadow: 0 6px 0 color-mix(in srgb, var(--tm-red) 62%, #000), var(--tm-drop);
}
.tm-stream__antenna { position: absolute; left: 50%; top: -2.3rem; width: 5rem; height: auto; margin-left: -2.5rem; overflow: visible; }
.tm-stream__screen {
    padding: 1.3rem 1rem 1.2rem; border-radius: 18px; color: #fff;
    background: radial-gradient(70% 70% at 30% 20%, color-mix(in srgb, var(--inv-primary) 85%, #fff), var(--inv-deep));
    box-shadow: inset 0 0 0 3px rgb(0 0 0 / .2);
}
.tm-stream__icon { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; color: var(--tm-ink); background: var(--tm-sun); }
.tm-stream__icon .tm-icon { width: 1.7rem; height: 1.7rem; }
.tm-stream__title { margin: .5rem 0 .2rem; font-family: var(--tm-round); font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: #fff; }
.tm-stream__screen p { margin: 0 auto; max-width: 28ch; font-size: .9rem; color: var(--tm-cream); }
.tm-stream__screen .tm-stream__note { margin-top: .35rem; font-weight: 800; color: var(--inv-shine); }
.tm-stream__knobs { position: absolute; right: 1.4rem; bottom: .75rem; display: flex; gap: .45rem; }
.tm-stream__knobs i { width: 1rem; height: 1rem; border-radius: 50%; background: var(--tm-sun); box-shadow: 0 0 0 2px #fff; }
.tm-stream__knobs i + i { background: #fff; }
.tm-stream__button { margin-top: 1.4rem; min-height: 2.9rem; padding: .6rem 1.6rem; border-radius: 999px; font-family: var(--tm-round); font-weight: 600; color: var(--tm-ink) !important; background: var(--tm-sun) !important; box-shadow: 0 4px 0 var(--tm-sun-ink); }

/* RSVP card: ruled exercise-book paper in a crayon border */
.tm-rsvp__card {
    position: relative; max-width: 25rem; margin: 0 auto; padding: 2.3rem 1.15rem 1.4rem; border-radius: 12px; color: var(--inv-text);
    background: repeating-linear-gradient(180deg, transparent 0 1.66rem, var(--tm-rule) 1.66rem 1.74rem), var(--tm-paper);
    box-shadow: 0 22px 40px -24px rgb(0 0 0 / .6);
}
.tm-rsvp__pencil { position: absolute; right: 1.2rem; top: -1rem; z-index: 3; width: 6.2rem; height: auto; overflow: visible; transform: rotate(6deg); }
.tm-rsvp__intro { margin: 0 auto 1.1rem; max-width: 30ch; font-size: .95rem; color: var(--tm-muted); }
.tm-rsvp__sent { margin-bottom: 1rem; }
.tm-rsvp__check { display: block; width: 4.4rem; height: 4.4rem; margin: 0 auto .4rem; overflow: visible; }
html.inv-anim .tm-rsvp__sent .tm-rsvp__check { animation: tm-bounce .8s cubic-bezier(.34, 1.56, .64, 1) both; }
.tm-rsvp__thanks { margin: 0; font-family: var(--tm-round); font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--tm-title); }
.tm-rsvp__line { margin: .15rem 0 0; font-size: .95rem; color: var(--tm-muted); }
.tm-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .88rem; font-weight: 800; color: var(--tm-red); }

/* gift: paper gift tags with a crayon band and a punched hole, two per row (odd last across) */
.tm-gift__present { display: block; width: 4.4rem; height: auto; margin: -.8rem auto .8rem; overflow: visible; }
.tm-gift__intro { color: var(--tm-cream) !important; }
.tm-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.3rem; }
.tm-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tm-gift .inv-gift__account,
.tm-gift .inv-gift__address {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0; overflow: hidden;
    padding: 2.1rem .75rem 1rem; border-radius: 14px; color: var(--inv-text); background: var(--tm-paper);
    box-shadow: 0 18px 30px -20px rgb(0 0 0 / .6);
}
.tm-gift .inv-gift__account { --tm-tag: var(--tm-red); }
.tm-gift .inv-gift__account:nth-child(4n+2) { --tm-tag: var(--tm-sky); }
.tm-gift .inv-gift__account:nth-child(4n+3) { --tm-tag: var(--tm-grass); }
.tm-gift .inv-gift__account:nth-child(4n+4) { --tm-tag: var(--tm-sun-ray); }
.tm-gift .inv-gift__account::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.25rem; background: var(--tm-tag); }
.tm-gift .inv-gift__account::after { content: ''; position: absolute; left: 50%; top: .35rem; width: .6rem; height: .6rem; margin-left: -.3rem; border-radius: 50%; background: var(--inv-deep); box-shadow: 0 0 0 2px #fff; }
.tm-gift .inv-gift__account p, .tm-gift .inv-gift__address p { margin: 0; }
.tm-gift .inv-gift__bank { font-family: var(--tm-round); font-weight: 600; font-size: .9rem; color: var(--tm-title); }
.tm-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .4rem; background: #fff; }
.tm-gift .inv-gift__logo img { max-width: 5rem; }
.tm-gift .inv-gift__number { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .98rem; font-weight: 700; letter-spacing: .03em; line-height: 1.3; overflow-wrap: anywhere; color: var(--inv-text); }
.tm-gift .inv-gift__holder { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tm-muted); overflow-wrap: anywhere; }
.tm-gift .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; border-radius: 999px; font-family: var(--tm-round); font-size: .8rem; font-weight: 600; }
.tm-gift .inv-gift__address { margin-top: .8rem; padding-top: 1.1rem; font-size: .9rem; }
.tm-gift .inv-gift__address .inv-gift__holder { font-size: .74rem; }

/* wishlist */
.tm-wishlist__intro { color: var(--tm-muted); font-size: .95rem; }
.tm-wishlist__list { display: grid; gap: .7rem; max-width: 24rem; margin: 1.3rem auto 0; padding: 0; list-style: none; text-align: left; }
.tm-wishlist__item { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); align-items: start; gap: .9rem; padding: .85rem 1rem; border-radius: 14px; background: var(--tm-paper); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tm-crayon, var(--tm-red)) 40%, transparent); }
.tm-wishlist__number {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-family: var(--tm-round); font-size: 1.15rem; font-weight: 700;
    color: #fff; background: var(--tm-crayon, var(--tm-red)); box-shadow: 0 3px 0 color-mix(in srgb, var(--tm-crayon, var(--tm-red)) 60%, #000);
}
.tm-wishlist__photo { display: block; width: 2.8rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--tm-crayon, var(--tm-red)); }
.tm-wishlist__text p { margin: 0; }
.tm-wishlist__name { padding-top: .1rem; font-family: var(--tm-round); font-size: 1.12rem; font-weight: 600; line-height: 1.3; color: var(--tm-title); overflow-wrap: anywhere; }
.tm-wishlist__note { margin-top: .1rem !important; font-size: .88rem; color: var(--tm-muted); }
.tm-wishlist__shop { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.2rem; margin-top: .25rem; font-size: .86rem; font-weight: 800; text-decoration: none; }
.tm-wishlist__shop .tm-icon { width: 1rem; height: 1rem; }

/* co-hosts: names split by small crayon stars, on the deep band */
.tm-cohosts__list { display: flex; flex-direction: column; align-items: center; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.tm-cohosts__list li { max-width: 26ch; font-family: var(--tm-round); font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: #fff; }
.tm-cohosts__list li + li::before {
    content: ''; display: block; width: 14px; height: 14px; margin: 0 auto .55rem; background: var(--tm-sun);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* contacts */
.tm-contacts__list { display: grid; gap: .7rem; max-width: 24rem; margin: 0 auto; }
.tm-contact {
    display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .55rem .55rem .55rem .6rem; border-radius: 999px;
    background: var(--tm-paper); text-align: left; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tm-sky) 45%, transparent);
}
.tm-contact__avatar {
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; font-family: var(--tm-round); font-size: 1.35rem; font-weight: 700;
    color: #fff; background: var(--tm-red); box-shadow: 0 3px 0 color-mix(in srgb, var(--tm-red) 60%, #000);
}
.tm-contact:nth-child(3n+2) .tm-contact__avatar { background: var(--tm-sky); }
.tm-contact:nth-child(3n+3) .tm-contact__avatar { background: var(--tm-grass); }
.tm-contact p { margin: 0; }
.tm-contact__name { font-family: var(--tm-round); font-weight: 600; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.tm-contact__role { font-size: .82rem; color: var(--tm-muted); }
.tm-contact__phone { font-size: .88rem; }
.tm-contact__button { min-height: 2.5rem; padding: .45rem .95rem; border-radius: 999px; font-family: var(--tm-round); font-size: .84rem; font-weight: 600; background: var(--tm-grass) !important; color: #fff !important; }
.tm-contact__button .tm-icon { width: 1.05rem; height: 1.05rem; }

/* health protocol */
.tm-protocol__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tm-protocol__list li { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px; font-size: .88rem; font-weight: 700; background: var(--tm-paper); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tm-grass) 50%, transparent); }
.tm-protocol__list .tm-icon { width: 1rem; height: 1rem; color: var(--tm-grass); }
.tm-protocol__note { font-size: .92rem; color: var(--tm-muted); }

/* vendors */
.tm-vendors__list { max-width: 24rem; margin: 0 auto; padding: .3rem 1.15rem; list-style: none; border-radius: 14px; background: var(--tm-paper); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tm-sun-ray) 45%, transparent), var(--tm-drop); }
.tm-vendor { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 0; text-align: left; border-bottom: 2px dashed var(--tm-rule); }
.tm-vendor:last-child { border-bottom: 0; }
.tm-vendor__text { display: flex; flex-direction: column; min-width: 0; }
.tm-vendor__role { font-family: var(--tm-round); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-red); }
.tm-vendor__name { font-family: var(--tm-round); font-size: 1.14rem; font-weight: 600; line-height: 1.25; color: var(--inv-text); overflow-wrap: anywhere; }
.tm-vendor__link {
    display: inline-flex; align-items: center; gap: .3rem; flex: none; min-height: 2.2rem; padding: .3rem .7rem; border-radius: 999px;
    font-size: .78rem; font-weight: 800; text-decoration: none; color: var(--tm-title); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tm-sky) 45%, transparent);
}
.tm-vendor__link .tm-icon { width: .95rem; height: .95rem; }

/* closing: compact — the photo melting into the deep colour, the cap crest, thanks, the names, the ABC blocks */
.tm-closing { padding: 2.6rem 1.6rem 5.8rem; }
.tm-closing--photo { padding-top: 0; }
.tm-closing__photo {
    position: relative; z-index: -1; height: min(22rem, calc(var(--inv-screen, 100svh) * .48)); margin: 0 -1.6rem; overflow: hidden;
    -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent);
}
.tm-closing__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.tm-closing__body { position: relative; }
.tm-closing--photo .tm-closing__body { margin-top: -4.2rem; }
.tm-closing__crest { display: flex; justify-content: center; align-items: flex-end; gap: .35rem; margin: 0 auto .5rem; }
.tm-closing__cap { width: 4.6rem; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .35)); }
.tm-closing__star { width: 1.9rem; height: auto; overflow: visible; transform: rotate(-14deg); }
.tm-closing__star--right { transform: rotate(14deg); }
.tm-closing__title { margin: 0 0 .7rem; font-family: var(--tm-round); font-size: 2.1rem; font-weight: 700; line-height: 1.05; color: #fff; text-shadow: var(--tm-pop); }
.tm-closing__title em { color: var(--inv-shine); text-shadow: none; }
.tm-closing__title .tm-heading__wave { stroke: var(--tm-red); }
.tm-closing__message { margin: 0 auto; max-width: 32ch; font-size: .95rem; line-height: 1.55; color: var(--tm-cream); }
.tm-closing__salam { margin: .7rem auto 0; max-width: 28ch; font-family: var(--tm-hand); font-size: 1.22rem; line-height: 1.3; color: var(--inv-shine); }
.tm-closing__signature { margin: .4rem auto 0; max-width: 30ch; font-size: .88rem; color: var(--tm-cream); }
.tm-closing__names {
    margin: .6rem auto 0; max-width: 16ch; font-family: var(--tm-round); font-size: 2.35rem; font-weight: 700; line-height: 1.1; text-wrap: balance;
    color: var(--tm-sun); text-shadow: 0 3px 0 color-mix(in srgb, var(--inv-deep) 70%, #000); overflow-wrap: anywhere;
}
.tm-closing__blocks { display: flex; justify-content: center; align-items: flex-end; gap: .15rem; margin-top: .9rem; }
.tm-closing__block { width: 2.6rem; transform: rotate(-6deg); }
.tm-closing__block:nth-child(2) { width: 2.9rem; transform: rotate(4deg) translateY(-2px); }
.tm-closing__block:nth-child(3) { transform: rotate(-3deg); }

/* ---------- 6. forms (shared RSVP + wishes, restyled) ---------- */
.tm-main .inv-form { gap: 1rem; text-align: left; }
.tm-main .inv-form label, .tm-main .inv-form__choices legend { font-family: var(--tm-round); font-size: .88rem; font-weight: 600; color: var(--inv-text); }
.tm-main .inv-form input:not([type=radio]):not([type=checkbox]),
.tm-main .inv-form select,
.tm-main .inv-form textarea {
    width: 100%; min-height: 2.9rem; padding: .7rem .9rem; border: 0; border-radius: 12px;
    font: 400 .98rem/1.4 var(--tm-sans); color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tm-sky) 55%, transparent);
    transition: box-shadow .2s ease;
}
.tm-main .inv-form select {
    appearance: none; padding-right: 2.4rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 1.1rem no-repeat;
}
.tm-main .inv-form input:not([type=radio]):focus-visible,
.tm-main .inv-form select:focus-visible,
.tm-main .inv-form textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2.5px var(--inv-primary), 0 0 0 4px color-mix(in srgb, var(--tm-sun) 55%, transparent); }
.tm-main .inv-form button[type=submit] { width: 100%; min-height: 3rem; border-radius: 999px; font-family: var(--tm-round); font-size: 1rem; font-weight: 600; box-shadow: 0 4px 0 color-mix(in srgb, var(--inv-primary) 60%, #000); }
.tm-main .inv-form .inv-button--outline { width: 100%; min-height: 2.75rem; border-radius: 999px; }
.tm-main .inv-form__notice { text-align: center; }

/* the three answers as sticker cards with icons (the radio dot is hidden but still focusable) */
.tm-rsvp .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.tm-rsvp .inv-form__choices legend { margin-bottom: .5rem; padding: 0; }
.tm-rsvp .inv-form__choices label {
    --tm-choice: var(--tm-grass);
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .45rem;
    min-height: 5.4rem; padding: .85rem .3rem .75rem; border-radius: 16px; cursor: pointer; text-align: center;
    font-size: .88rem; font-weight: 600; line-height: 1.2; color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tm-choice) 55%, transparent);
    transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.tm-rsvp .inv-form__choices label:nth-of-type(2) { --tm-choice: var(--tm-red); }
.tm-rsvp .inv-form__choices label:nth-of-type(3) { --tm-choice: var(--tm-sun-ray); }
.tm-rsvp .inv-form__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tm-rsvp .inv-form__choices label::before { content: ''; width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--tm-choice) 22%, #fff); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease; }
.tm-rsvp .inv-form__choices label::after {
    content: ''; position: absolute; left: 50%; top: 1.3rem; width: 1.2rem; height: 1.2rem; margin-left: -.6rem;
    background: currentColor; color: var(--tm-choice); pointer-events: none;
    -webkit-mask: var(--tm-choice-icon) center / contain no-repeat; mask: var(--tm-choice-icon) center / contain no-repeat;
}
.tm-rsvp .inv-form__choices label:nth-of-type(1) { --tm-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.tm-rsvp .inv-form__choices label:nth-of-type(2) { --tm-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E"); }
.tm-rsvp .inv-form__choices label:nth-of-type(3) { --tm-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M8.5 8.8a3.5 3.5 0 1 1 4.9 3.2c-.9.4-1.4 1.1-1.4 2v.5M12 19h.01'/%3E%3C/svg%3E"); }
.tm-rsvp .inv-form__choices label:has(input:checked) { color: #fff; background: var(--tm-choice); transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 4px 0 color-mix(in srgb, var(--tm-choice) 60%, #000), 0 12px 22px -12px rgb(0 0 0 / .5); }
.tm-rsvp .inv-form__choices label:has(input:checked)::before { background-color: rgb(255 255 255 / .25); transform: scale(1.1); }
.tm-rsvp .inv-form__choices label:has(input:checked)::after { color: #fff; }
.tm-rsvp .inv-form__choices label:has(input:focus-visible) { outline: 2px solid var(--inv-primary); outline-offset: 3px; }

/* wishes: the form on paper, the wishes as sticky notes */
.tm-wishes .inv-wishes { --inv-wishes-height: 20rem; }
.tm-wishes .inv-form { padding: 1.3rem 1.1rem; border-radius: 14px; background: var(--tm-grain), var(--tm-paper); box-shadow: 0 0 0 2.5px var(--tm-sky), var(--tm-drop); }
.tm-wishes .inv-wishes__list { margin-top: 1.4rem; }
.tm-wishes .inv-wishes:not(.inv-wishes--paged) .inv-wishes__list { padding: .55rem; border-radius: 16px; background: color-mix(in srgb, #fff 45%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tm-sky) 30%, transparent); }
.tm-wishes .inv-wish { --tm-note: var(--tm-sun); padding: .75rem .9rem; border-radius: 4px; text-align: left; background: color-mix(in srgb, var(--tm-note) 16%, #fff); border-top: 5px solid var(--tm-note); box-shadow: 0 6px 12px -8px rgb(0 0 0 / .3); }
.tm-wishes .inv-wish:nth-child(4n+2) { --tm-note: var(--tm-sky); }
.tm-wishes .inv-wish:nth-child(4n+3) { --tm-note: var(--tm-grass); }
.tm-wishes .inv-wish:nth-child(4n+4) { --tm-note: var(--tm-red); }
.tm-wishes .inv-wish__name { font-family: var(--tm-round); font-weight: 600; color: var(--tm-title); }
.tm-wishes .inv-wish__message { font-size: .92rem; line-height: 1.5; }
.tm-wishes .inv-wish__time { font-size: .74rem; color: var(--tm-muted); }

/* ---------- 7. shared components ---------- */
.tm-main .inv-button { font-family: var(--tm-round); font-weight: 600; }
body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-deep) 94%, transparent);
    --inv-nav-text: color-mix(in srgb, #fff 75%, transparent);
    --inv-nav-active: var(--inv-shine);
    font-family: var(--tm-round);
}

/* ---------- 8. screen sizes ---------- */
/* the cover in px steps per screen height (never svh: Chrome on iPhone sizes it to the whole screen) */
@media (max-height: 800px) {
    .tm-cover { --frame-cover: 14.2rem; }
    .tm-cover__names { font-size: 2.7rem; }
}
@media (max-height: 740px) {
    .tm-cover { --frame-cover: 12.6rem; padding-top: 2.5rem; padding-bottom: 1.4rem; }
    .tm-cover__title { margin-bottom: .85rem; }
    .tm-cover__names { font-size: 2.5rem; margin-top: .45rem; }
    .tm-cover__quote { font-size: .94rem; margin-top: .45rem; }
    .tm-cover__guest { margin-top: .6rem; }
    .tm-cover__open { margin-top: .75rem; }
    .tm-cover__sun { width: 5.2rem; }
}
@media (max-height: 680px) {
    .tm-cover { --frame-cover: 11rem; padding-top: 2.3rem; padding-bottom: 1.2rem; }
    .tm-cover__title { margin-bottom: .7rem; }
    .tm-cover__title span { font-size: 1rem; }
    .tm-cover__names { font-size: 2.25rem; }
    .tm-cover__degree { font-size: 1.1rem; }
    .tm-cover__date span { font-size: .92rem; }
    .tm-cover__quote { font-size: .88rem; line-height: 1.3; }
    .tm-cover__guest { padding: .32rem .85rem .38rem; }
    .tm-cover__guest-name { font-size: 1.1rem; }
    .tm-cover__open { min-height: 2.75rem; padding: .5rem 1.7rem; }
    .tm-cover__sun { width: 4.4rem; top: 3.2rem; }
    .tm-cover__bus { width: 5.4rem; }
    .tm-cover__hills { height: 4rem; }
    .tm-frame__sticker { font-size: .76rem; }
}
@media (max-height: 620px) {
    .tm-cover { --frame-cover: 9.6rem; }
    .tm-cover__names { font-size: 2.05rem; }
    .tm-cover__quote { font-size: .84rem; }
}
@media (max-width: 360px) {
    .tm-cover__names { font-size: 2.4rem; }
    .tm-heading__title { font-size: 1.95rem; }
}

/* wide screens: the phone-width column on a deep sky with chalk doodles */
@media (min-width: 560px) {
    body.tm-body {
        background: radial-gradient(70vw 60vh at 50% 0%, color-mix(in srgb, var(--tm-sky) 70%, transparent), transparent 70%), var(--inv-deep);
        background-attachment: fixed;
    }
    body.tm-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .12; background: #fff;
        -webkit-mask: var(--tm-ground) center / 96px 96px repeat; mask: var(--tm-ground) center / 96px 96px repeat;
    }
    .tm-main { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
}

/* ---------- 9. motion ---------- */
@keyframes tm-bounce { 0% { transform: scale(0); } 55% { transform: scale(1.18); } 75% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes tm-pop-in { 0% { opacity: 0; transform: scale(.4) rotate(-14deg); } 65% { opacity: 1; transform: scale(1.06) rotate(3deg); } 100% { opacity: 1; transform: none; } }
@keyframes tm-zoom-out { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes tm-spin { to { transform: rotate(360deg); } }
@keyframes tm-breathe { 0%, 100% { opacity: .7; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes tm-drift { 0%, 100% { translate: 0 0; } 50% { translate: 1.1rem 0; } }
@keyframes tm-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes tm-sway { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
@keyframes tm-idle { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@keyframes tm-cap-drop { 0% { opacity: 0; transform: translateY(-3rem) rotate(-30deg) scale(.6); } 65% { opacity: 1; transform: translateY(.3rem) rotate(22deg) scale(1.05); } 100% { opacity: 1; transform: rotate(16deg); } }
@keyframes tm-sticker { 0% { opacity: 0; transform: translateX(-50%) rotate(-14deg) scale(1.6); } 100% { opacity: 1; transform: translateX(-50%) rotate(-4deg) scale(1); } }
@keyframes tm-tassel { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(5deg); } }
@keyframes tm-ping { 0% { opacity: .95; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes tm-tap { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-3px, -5px) scale(.9); } }
@keyframes tm-wiggle { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-12deg) scale(1.08); } 40% { transform: rotate(10deg) scale(1.08); } 60% { transform: rotate(0) scale(1); } }
@keyframes tm-badge-pop {
    0% { opacity: 0; transform: scale(.2) rotate(-24deg); }
    45% { opacity: 1; transform: scale(1.14) rotate(8deg); }
    62% { transform: scale(.96) rotate(-6deg); }
    78% { transform: scale(1.03) rotate(3deg); }
    100% { opacity: 1; transform: none; }
}
@keyframes tm-happy { 0%, 100% { rotate: 0deg; } 25% { rotate: -3deg; } 75% { rotate: 3deg; } }
@keyframes tm-shine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
@keyframes tm-sway-x { 0%, 100% { left: 50%; } 30% { left: 38%; } 70% { left: 62%; } }
@keyframes tm-sway-clip { 0%, 100% { clip-path: inset(0 50% 0 0); } 30% { clip-path: inset(0 62% 0 0); } 70% { clip-path: inset(0 38% 0 0); } }
@keyframes tm-drive { from { translate: -80% 0; } to { translate: 0 0; } }
@keyframes tm-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.82); } }

/* cover (≤ 2.5 s, once): the sun frame pops up, its rays spin in, the cap drops with a bounce, the sticker is pressed
   on; then a living ground: the rays turn slowly, clouds drift, the sun sways, the balloons bob, the bus idles */
html.inv-anim .tm-frame--cover { animation: tm-pop-in .9s cubic-bezier(.3, 1.2, .5, 1) .1s both; }
html.inv-anim .tm-frame--cover .tm-frame__photo { animation: tm-zoom-out 1.3s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .tm-frame--cover .tm-frame__rays { animation: tm-spin 60s linear infinite; }
html.inv-anim .tm-frame--cover .tm-frame__cap { animation: tm-cap-drop 1s cubic-bezier(.3, 1.2, .5, 1) .7s both; }
html.inv-anim .tm-frame--cover .tm-frame__sticker { animation: tm-sticker .5s cubic-bezier(.3, 1.4, .5, 1) 1s both; }
html.inv-anim .tm-cap__tassel { animation: tm-tassel 3s ease-in-out 1.8s infinite; }
html.inv-anim .tm-cover__art::before { animation: tm-breathe 5s ease-in-out infinite; }
html.inv-anim .tm-cover__cloud--a { animation: tm-drift 9s ease-in-out infinite; }
html.inv-anim .tm-cover__cloud--b { animation: tm-drift 11s ease-in-out -4s infinite reverse; }
html.inv-anim .tm-cover__cloud--c { animation: tm-drift 13s ease-in-out -2s infinite; }
html.inv-anim .tm-cover__sun { animation: tm-sway 7s ease-in-out infinite; }
html.inv-anim .tm-cover__balloon--a { animation: tm-bob 4s ease-in-out infinite; }
html.inv-anim .tm-cover__balloon--b { animation: tm-bob 3.4s ease-in-out -1.2s infinite; }
html.inv-anim .tm-cover__bus { animation: tm-idle .5s ease-in-out infinite; }

/* page details that keep living */
html.inv-anim .tm-countdown__balloons svg { animation: tm-bob 3.6s ease-in-out calc(var(--i) * -.8s) infinite; }
html.inv-anim .tm-doodle--balloon-l, html.inv-anim .tm-doodle--balloon-l2 { animation: tm-bob 4.2s ease-in-out infinite; }
html.inv-anim .tm-doodle--balloon-l2 { animation-delay: -1.6s; }

/* Kumpulkan bintangnya: the hidden stars wiggle in turn while they wait; the badge pops and keeps a happy wobble */
html.inv-anim .tm-institution.is-armed .tm-hunt__star:not(.is-flying) > svg { animation: tm-wiggle 2.8s ease-in-out calc(var(--i) * .45s) infinite; }
html.inv-anim .tm-institution.is-done .tm-badge { animation: tm-badge-pop 1.1s cubic-bezier(.3, 1.3, .5, 1) both, tm-happy 2.6s ease-in-out 1.2s infinite; }
html.inv-anim .tm-institution.is-done .tm-badge__shine { animation: tm-shine 3.2s ease-in-out .9s infinite; }

/* the compare handle sways until touched */
html.inv-anim .tm-compare:not(.is-touched) .tm-compare__handle,
html.inv-anim .tm-compare:not(.is-touched) .tm-compare__line { animation: tm-sway-x 3.6s ease-in-out 1s infinite; }
html.inv-anim .tm-compare:not(.is-touched) .tm-compare__then { animation: tm-sway-clip 3.6s ease-in-out 1s infinite; }

/* the tap marker: rings ping outward, the hand taps */
html.inv-anim .tm-tap__ring { animation: tm-ping 1.8s ease-out infinite; }
html.inv-anim .tm-tap__ring--late { animation-delay: .9s; }
html.inv-anim .tm-tap__hand { animation: tm-tap 1.2s ease-in-out infinite; }
html:not(.inv-anim) .tm-tap__ring { opacity: .6; }

/* scroll-driven details (the default, without support, is the finished picture) */
@supports (animation-timeline: view()) {
    html.inv-anim .tm-next__bus { animation: tm-drive linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
}

@media (prefers-reduced-motion: reduce) {
    .tm-cover, .tm-cover--leave, .tm-cover__inner, .tm-hunt__star, .tm-badge, .tm-hunt__slot-full { transition: none; }
}

/* ---------- 10. intro scene "Bus Sekolah" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes. */
.tm-scene-ground { position: absolute; inset: 0; }
.tm-scene-ground svg { display: block; width: 100%; height: 100%; }
.tm-scene-sun { display: block; width: 100%; height: 100%; overflow: visible; }
.tm-scene-clouds { position: absolute; inset: 0; }
.tm-scene-cloud { position: absolute; height: auto; overflow: visible; }
.tm-scene-cloud--a { right: -6%; top: 12%; width: 36%; }
.tm-scene-cloud--b { left: 36%; top: 0; width: 22%; opacity: .9; }
html.inv-anim .tm-scene-cloud--a { animation: tm-drift 8s ease-in-out infinite; }
html.inv-anim .tm-scene-cloud--b { animation: tm-drift 10s ease-in-out -3s infinite reverse; }
.tm-scene-bus { display: block; width: 100%; height: 100%; overflow: visible; }
html.inv-anim .tm-scene-bus .tm-bus__wheel { animation: tm-spin .45s linear 7; }
.tm-scene-balloons, .tm-scene-stars { position: absolute; inset: 0; }
.tm-scene-balloons svg { position: absolute; height: auto; overflow: visible; }
.tm-scene-balloons svg:nth-child(1) { left: 3%; top: 26%; width: 12%; }
.tm-scene-balloons svg:nth-child(2) { left: 13%; top: 46%; width: 9%; }
.tm-scene-balloons svg:nth-child(3) { right: 3%; top: 18%; width: 12.5%; }
.tm-scene-balloons svg:nth-child(4) { right: 14%; top: 42%; width: 9%; }
html.inv-anim .tm-scene-balloons svg { animation: tm-bob 3.4s ease-in-out infinite; }
html.inv-anim .tm-scene-balloons svg:nth-child(even) { animation-delay: -1.5s; }
.tm-scene-stars svg { position: absolute; height: auto; overflow: visible; }
.tm-scene-stars svg:nth-child(1) { left: 5%; top: 58%; width: 8%; }
.tm-scene-stars svg:nth-child(2) { left: 84%; top: 6%; width: 7%; }
.tm-scene-stars svg:nth-child(3) { left: 86%; top: 70%; width: 6.5%; }
.tm-scene-stars svg:nth-child(4) { left: 28%; top: 1%; width: 5.5%; }
.tm-scene-stars svg:nth-child(5) { left: 66%; top: 90%; width: 5%; }
.tm-scene-stars svg:nth-child(6) { left: 12%; top: 86%; width: 6%; }
html.inv-anim .tm-scene-stars svg { animation: tm-twinkle 2.2s ease-in-out infinite; }
html.inv-anim .tm-scene-stars svg:nth-child(odd) { animation-delay: -1.1s; }
/* the photo and the cap share the box and are sized the same way, so they line up */
.tm-scene-box { position: absolute; inset: 0; container-type: size; display: grid; place-items: center; }
.tm-scene-fig { --frame-w: min(84cqw, 84cqh); }
html.inv-anim .tm-scene-fig .tm-frame__rays { animation: tm-spin 40s linear infinite; }
/* the name card: paper in a sunshine border, like a sticker */
body.tm-body .inv-intro--scene .inv-scene__card {
    top: 67%;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; aspect-ratio: auto;
    padding: 1.2rem 1.2rem 1.1rem; border-radius: 20px;
    background: var(--tm-paper);
    box-shadow: 0 0 0 3.5px var(--tm-sun), 0 0 0 7px #fff, 0 24px 40px -14px rgb(0 0 0 / .5);
}
body.tm-body .inv-scene__card .inv-intro__label { font-family: var(--tm-hand); font-size: 1.1rem; letter-spacing: 0; text-transform: none; color: var(--tm-red); }
body.tm-body .inv-scene__card .inv-intro__names { font-family: var(--tm-round); font-weight: 700; color: var(--tm-title); line-height: 1.08; overflow-wrap: anywhere; }
body.tm-body .inv-scene__card .inv-intro__rule { height: 4px; width: 3rem; border-radius: 4px; background: var(--tm-sun); }
body.tm-body .inv-scene__card .inv-intro__date { font-family: var(--tm-round); font-weight: 600; font-size: .95rem; color: var(--tm-muted); white-space: nowrap; }
@media (max-height: 700px) {
    body.tm-body .inv-intro--scene .inv-scene__card { top: 63%; padding: 1rem 1.1rem .95rem; }
}
.tm-compare .tm-cloud__star { z-index: 3; }
.tm-compare .tm-cloud__star--a { left: 2%; top: 1%; }
.tm-compare .tm-cloud__star--b { top: auto; right: -5%; bottom: 16%; }
