/* Ganitshastra: Math Marathon invitation
   Look: a live invitation card on a soft yellow base, like the PDF: logo yellow and navy, with soft
   pink from the website as the accent. No mint or sky blue (removed 2026-11-27 at Anju's request).
   Doors open, stage curtains part, then framed white cards. Phone first; wider screens get the same
   card centred.

   Motion: every moving thing sits under ".anim" (set on <html> only when the visitor has not asked
   for reduced motion), so without it the page is complete and still.

   To change the colours, edit the block of variables just below. */

:root {
  --paper: #FFFBEA;        /* card ground: very light yellow */
  --paper-2: #FFF1C2;      /* soft yellow, for alternate sections */
  --field: #FFFFFF;        /* cards and inputs */
  --line: #F0D78E;         /* hairlines */
  --deep: #19526E;         /* brand navy: headings, buttons */
  --deep-2: #24688A;
  --rose: #C93C62;         /* accent, readable as text */
  --rose-mid: #F08BA4;
  --rose-soft: #FDE7EC;
  --sun: #FFC20E;          /* logo yellow */
  --sun-soft: #FFEFB8;
  --gold: #E3A712;         /* lines and frames */
  --gold-deep: #C98A06;    /* lines that sit on yellow */
  --orange: #F4A12A;       /* the orange of the seats in the PDF's hall drawing */
  --leaf: #2F8F5B;         /* green for "bring" only */
  --leaf-soft: #A6D9B9;
  /* The three yellow grounds use the logo's own dark yellow (asked for by i3 Corporation, 2026-11-27).
     For the earlier soft yellow put back: ground #FFE9A3, band #FFEDAE, door #FFE38A. */
  --ground: #FFC20E;       /* page ground outside the card */
  --band: #FFC20E;         /* countdown band and footer */
  --door: #FFC20E;         /* opening doors */
  /* stage curtains (the "parda"): logo yellow. Change these five to recolour them.
     Earlier soft yellow: #FFF5CC, #FFE899, #FFDD6E, #F6C942, #D29C10. */
  --curtain-light: #FFE37A;
  --curtain: #FFD23F;
  --curtain-mid: #FFC20E;
  --curtain-dark: #F0AE00;
  --curtain-fold: #C98A06;
  --ink: #22404F;
  --ink-soft: #557080;
  --display: 'Rozha One', Georgia, 'Times New Roman', serif;
  --script: 'Great Vibes', 'Segoe Script', 'Brush Script MT', cursive;
  --body: 'Mukta', 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --pad: 22px;
  /* Background pattern for the yellow grounds: 35 maths signs drawn in white on a 360 x 360 tile, scattered at
     random with each one turned and sized a little differently (Anju: "not in a row, it should be random").
     The signs follow the "common math symbols" chart Anju sent on 2026-11-27, every symbol on it:
       plus, times, divide, equals, less-than, greater-than, 7,
       sigma, capital pi, infinity, integral, approximately, less-or-equal, per cent,
       square root, pi, nabla, theta, omega, lambda, 3,
       delta, minus, mu, empty set, therefore, arrow, x squared,
       absolute-value bars, small delta, for-all, epsilon, dotted equals, if-and-only-if, small sigma
     DO NOT EDIT THE --maths LINE BY HAND: it is written by docs\make-maths-pattern.php, where the symbols,
     the spacing and the opacity are set. Run that script with another number for a different scatter.
     Every sign is drawn as lines, not typed, so it looks the same on every phone.
     It replaced the plain circles when i3 Corporation asked for a pattern related to maths.
     Use with background-size: 360px 360px.
     How strong it shows is $opacity in that script (0 = invisible, 1 = solid white). */
  --maths: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360' fill='none' stroke='white' stroke-opacity='.6' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(320.5 117.6) rotate(-18) scale(0.96)'%3E%3Ccircle cx='-2' cy='2' r='8'/%3E%3Cpath d='M-2-6h13'/%3E%3C/g%3E%3Cg transform='translate(336.5 296) rotate(-20) scale(1.1)'%3E%3Cpath d='M7-10l-14 20'/%3E%3Ccircle cx='-6' cy='-7' r='3.2'/%3E%3Ccircle cx='6' cy='7' r='3.2'/%3E%3C/g%3E%3Cg transform='translate(230.4 0.2) rotate(18) scale(1.3)'%3E%3Cpath d='M-14 2l4-3 5 12 6-24h15'/%3E%3C/g%3E%3Cg transform='translate(230.4 360.2) rotate(18) scale(1.3)'%3E%3Cpath d='M-14 2l4-3 5 12 6-24h15'/%3E%3C/g%3E%3Cg transform='translate(-14.6 219.8) rotate(-11) scale(0.85)'%3E%3Cpath d='M0-9v18M-9 0h18'/%3E%3C/g%3E%3Cg transform='translate(345.4 219.8) rotate(-11) scale(0.85)'%3E%3Cpath d='M0-9v18M-9 0h18'/%3E%3C/g%3E%3Cg transform='translate(120.9 11.9) rotate(0) scale(1.2)'%3E%3Cpath d='M-10-2h20M-10 6h20'/%3E%3Ccircle cy='-9' r='1.2'/%3E%3C/g%3E%3Cg transform='translate(120.9 371.9) rotate(0) scale(1.2)'%3E%3Cpath d='M-10-2h20M-10 6h20'/%3E%3Ccircle cy='-9' r='1.2'/%3E%3C/g%3E%3Cg transform='translate(300 206.7) rotate(-24) scale(1.18)'%3E%3Ccircle cy='-7' r='1.3'/%3E%3Ccircle cx='-7' cy='6' r='1.3'/%3E%3Ccircle cx='7' cy='6' r='1.3'/%3E%3C/g%3E%3Cg transform='translate(323.2 43.2) rotate(-21) scale(1.28)'%3E%3Cpath d='M-10-4c4-4 6-4 10 0s6 4 10 0M-10 4c4-4 6-4 10 0s6 4 10 0'/%3E%3C/g%3E%3Cg transform='translate(185.3 273.2) rotate(2) scale(0.97)'%3E%3Cpath d='M-10 10l10-18 10 18z'/%3E%3C/g%3E%3Cg transform='translate(84.2 320.9) rotate(-14) scale(0.99)'%3E%3Cpath d='M-7-8c7-5 14 2 6 8c9 3 3 14-7 9'/%3E%3C/g%3E%3Cg transform='translate(70.1 213.5) rotate(12) scale(1.29)'%3E%3Ccircle r='9'/%3E%3Cpath d='M-8 9l16-18'/%3E%3C/g%3E%3Cg transform='translate(229.5 185.6) rotate(-6) scale(1.03)'%3E%3Cpath d='M-11 0h22M4-7l7 7-7 7'/%3E%3C/g%3E%3Cg transform='translate(41.1 276.9) rotate(-11) scale(1.26)'%3E%3Cpath d='M-9 10h6c-9-5-8-20 3-20s12 15 3 20h6'/%3E%3C/g%3E%3Cg transform='translate(91.6 121.9) rotate(-4) scale(1.16)'%3E%3Cpath d='M8-12l-16 8 16 8M-8 10h16'/%3E%3C/g%3E%3Cg transform='translate(94.3 172.7) rotate(0) scale(1.08)'%3E%3Cellipse rx='7' ry='11'/%3E%3Cpath d='M-7 0h14'/%3E%3C/g%3E%3Cg transform='translate(281.4 311.8) rotate(27) scale(1.27)'%3E%3Cpath d='M6-10c-4-3-10-1-8 3c2 4 8 5 8 11a6 6 0 1 1-6-7'/%3E%3C/g%3E%3Cg transform='translate(-0.1 -10.1) rotate(7) scale(1.07)'%3E%3Cpath d='M-10-9h20l-10 18z'/%3E%3C/g%3E%3Cg transform='translate(-0.1 349.9) rotate(7) scale(1.07)'%3E%3Cpath d='M-10-9h20l-10 18z'/%3E%3C/g%3E%3Cg transform='translate(359.9 -10.1) rotate(7) scale(1.07)'%3E%3Cpath d='M-10-9h20l-10 18z'/%3E%3C/g%3E%3Cg transform='translate(359.9 349.9) rotate(7) scale(1.07)'%3E%3Cpath d='M-10-9h20l-10 18z'/%3E%3C/g%3E%3Cg transform='translate(-1.2 87.5) rotate(-7) scale(0.91)'%3E%3Cpath d='M-7-10h14l-9 21'/%3E%3C/g%3E%3Cg transform='translate(358.8 87.5) rotate(-7) scale(0.91)'%3E%3Cpath d='M-7-10h14l-9 21'/%3E%3C/g%3E%3Cg transform='translate(171.4 192.7) rotate(-29) scale(0.94)'%3E%3Cpath d='M-7-10c4 0 5 2 7 8l6 12M0-2l-7 12'/%3E%3C/g%3E%3Cg transform='translate(277.8 1.6) rotate(11) scale(1.17)'%3E%3Cpath d='M-10-4h20M-10 4h20'/%3E%3C/g%3E%3Cg transform='translate(277.8 361.6) rotate(11) scale(1.17)'%3E%3Cpath d='M-10-4h20M-10 4h20'/%3E%3C/g%3E%3Cg transform='translate(252.4 255) rotate(-6) scale(0.93)'%3E%3Cpath d='M6-12c-5-2-6 2-6 6v12c0 4-1 8-6 6'/%3E%3C/g%3E%3Cg transform='translate(163.3 114.9) rotate(4) scale(1.07)'%3E%3Cpath d='M-10 0h20'/%3E%3Ccircle cy='-8' r='1.2'/%3E%3Ccircle cy='8' r='1.2'/%3E%3C/g%3E%3Cg transform='translate(251.9 64.7) rotate(-10) scale(1.11)'%3E%3Cpath d='M7-8c-6-4-13-1-11 4c1 3 5 3 7 3c-4 0-9 1-9 6c0 5 8 7 14 3'/%3E%3C/g%3E%3Cg transform='translate(179.2 -17.1) rotate(-4) scale(1.22)'%3E%3Cpath d='M-7-9v20M-7 4c0 5 10 5 10-2v-11M3 2c0 4 2 5 4 4'/%3E%3C/g%3E%3Cg transform='translate(179.2 342.9) rotate(-4) scale(1.22)'%3E%3Cpath d='M-7-9v20M-7 4c0 5 10 5 10-2v-11M3 2c0 4 2 5 4 4'/%3E%3C/g%3E%3Cg transform='translate(282.7 158.2) rotate(25) scale(1)'%3E%3Cpath d='M8-11h-16l9 11-9 11h16'/%3E%3C/g%3E%3Cg transform='translate(0.6 157) rotate(-28) scale(1.02)'%3E%3Cpath d='M-10-10h20M-6-10v20M6-10v20'/%3E%3C/g%3E%3Cg transform='translate(360.6 157) rotate(-28) scale(1.02)'%3E%3Cpath d='M-10-10h20M-6-10v20M6-10v20'/%3E%3C/g%3E%3Cg transform='translate(181.3 58.8) rotate(30) scale(1.06)'%3E%3Cpath d='M0 0c-4-6-12-6-12 0s8 6 12 0c4-6 12-6 12 0s-8 6-12 0z'/%3E%3C/g%3E%3Cg transform='translate(201.1 229.9) rotate(-6) scale(1.05)'%3E%3Cpath d='M8-9l-16 9 16 9'/%3E%3C/g%3E%3Cg transform='translate(220.6 116.9) rotate(-23) scale(0.89)'%3E%3Cpath d='M-10-10l10 20 10-20M-6-2h12'/%3E%3C/g%3E%3Cg transform='translate(57.4 43.6) rotate(11) scale(0.97)'%3E%3Cpath d='M-7-10v20M0-10v20M7-10v20'/%3E%3C/g%3E%3Cg transform='translate(118.5 69.3) rotate(-21) scale(0.86)'%3E%3Cpath d='M-8-4l10 12M2-4l-10 12M5-12c2-3 6-1 3 3l-4 4h6'/%3E%3C/g%3E%3Cg transform='translate(298.9 253) rotate(-21) scale(1.11)'%3E%3Cpath d='M-11-8h22M-5-8v17M5-8v13c0 3 2 4 5 3'/%3E%3C/g%3E%3Cg transform='translate(126.8 241.9) rotate(-10) scale(1.25)'%3E%3Cpath d='M-10-4h20M-10 4h20M-6-8l-8 8 8 8M6-8l8 8-8 8'/%3E%3C/g%3E%3Cg transform='translate(134.9 301) rotate(-6) scale(1.06)'%3E%3Cpath d='M-7-7l14 14M7-7l-14 14'/%3E%3C/g%3E%3Cg transform='translate(86.5 264.7) rotate(8) scale(1.1)'%3E%3Cpath d='M-10 0h20'/%3E%3C/g%3E%3Cg transform='translate(50.5 90.1) rotate(-12) scale(1.07)'%3E%3Cpath d='M-8-9l16 9-16 9'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  background-color: var(--ground);
  background-image: var(--maths);
  background-size: 360px 360px;
}
.cover-on body { overflow: hidden; }

p, h1, h2, h3, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h2, h3, .lede, .closing-line, .cd-foot, .award-rule, .everyone p, .scratch-hint, .reply-note, .tagline { text-wrap: balance; }
.nb { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
h1:focus { outline: none; }

/* picture icons */
.ic { fill: none; stroke: var(--deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-y { fill: var(--sun); }
.ic-p { fill: var(--field); }
.ic-r { fill: var(--rose-mid); }
.bi { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

/* logo slot: shown in place of the typed name when SETTINGS.logoFile is filled (600 x 600 file) */
.has-logo { letter-spacing: 0; }
/* sizes raised on 2026-11-27 (i3 Corporation asked for a bigger logo): they were 124, 120 and 112 px */
.has-logo img { width: 172px; height: 172px; object-fit: contain; margin-inline: auto; }
.cover-host.has-logo img { width: 164px; height: 164px; }
.signoff.has-logo img { width: 156px; height: 156px; }

/* ---------- progress along the top ---------- */
.track { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 5px; background: rgba(25, 82, 110, .12); pointer-events: none; }
.no-js .track { display: none; }
.track-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--orange), var(--rose-mid)); transform-origin: left center; transform: scaleX(var(--p, 0)); }

/* ---------- drifting maths signs ---------- */
.floaters { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.floaters span { position: absolute; left: var(--x); bottom: -52px; font: 400 var(--s) var(--display); line-height: 1; color: var(--c); opacity: 0; }
.anim .floaters span { animation: floatup var(--d) linear var(--w) infinite; }
.floaters-page { position: fixed; display: none; }
@keyframes floatup {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: var(--o); }
  85% { opacity: var(--o); }
  100% { transform: translate3d(var(--dx), calc(-1 * var(--h)), 0) rotate(var(--r)); opacity: 0; }
}

/* ---------- the card ---------- */
.card {
  position: relative; z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(227, 167, 18, .2) 1px, transparent 1.2px);   /* notebook dot grid */
  background-size: 20px 20px;
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold);
  overflow: hidden;
}

.sec { position: relative; padding: 52px var(--pad); text-align: center; }
.sec > * { position: relative; z-index: 1; }
.sec > .floaters { position: absolute; z-index: 0; }
.sec > * + * { margin-top: 14px; }

.script { font: 400 2rem/1.1 var(--script); color: var(--rose); }
h2 {
  margin-top: 2px !important;
  font: 400 clamp(1.9rem, 7.6vw, 2.6rem)/1.12 var(--display);
  color: var(--deep);
}
h3 { font: 400 1.3rem/1.2 var(--display); color: var(--deep); }

/* little rule under each heading: two lines and a diamond */
.h-rule {
  display: block; position: relative;
  width: 156px; height: 12px; margin: 12px auto 0 !important;
  color: var(--gold);
  background:
    linear-gradient(currentColor, currentColor) left center / 60px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 60px 1.5px no-repeat;
}
.h-rule::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--rose-mid); transform: rotate(45deg); }

.crest { width: 58px; height: 58px; margin-inline: auto; color: var(--gold); }
.crest svg { width: 100%; height: 100%; }
.anim .crest svg { animation: turn 40s linear infinite; }
.crest-lg { width: 76px; height: 76px; }

/* ---------- framed card with a cusped arch on top ---------- */
.arch { position: relative; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 12px 22px rgba(25, 82, 110, .12)); }
.arch-top { width: calc(100% - 2px); height: auto; aspect-ratio: 360 / 96; margin: 0 1px; overflow: visible; }
.arch-fill { fill: var(--field); }
.arch-line { fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
/* flow-root keeps the first child's pull-up inside the arch instead of dragging the whole body up */
.arch-body { display: flow-root; margin-top: -1px; padding: 0 20px 28px; background: var(--field); border: 2px solid var(--gold); border-top: 0; border-radius: 0 0 12px 12px; }
.arch-body > * + * { margin-top: 14px; }
.arch-body > :first-child { margin-top: -40px; position: relative; }
.arch-body > form:first-child, .arch-body > .podium:first-child { margin-top: 0; }

/* ---------- 1. opening screen: doors ---------- */
.cover { display: none; }
.js .cover {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  color: var(--deep);
  perspective: 1500px; overflow: hidden;
}
.door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background-color: var(--door);
  background-size: auto, 360px 360px;
  transition: transform 1.7s cubic-bezier(.62, .02, .24, 1), filter 1.7s ease;
  will-change: transform;
}
.door-l { left: 0; transform-origin: left center; border-right: 2px solid var(--gold-deep); background-image: linear-gradient(90deg, rgba(190, 125, 0, .2), transparent 35%, transparent 70%, rgba(255, 255, 255, .45)), var(--maths); }
.door-r { right: 0; transform-origin: right center; border-left: 2px solid var(--gold-deep); background-image: linear-gradient(270deg, rgba(190, 125, 0, .2), transparent 35%, transparent 70%, rgba(255, 255, 255, .45)), var(--maths); background-position: 0 0, 140px 0; }
/* white frames that join into one big arch across both doors */
.door::before, .door::after { content: ''; position: absolute; border: 2px solid #fff; }
.door::before { inset: 16px 0 16px 16px; border-right: 0; border-top-left-radius: 46vw 28vh; }
.door::after { inset: 27px 0 27px 27px; border-right: 0; border-width: 1px; border-color: var(--gold-deep); border-top-left-radius: 44vw 26vh; }
.door-r::before { inset: 16px 16px 16px 0; border-right: 2px solid #fff; border-left: 0; border-radius: 0; border-top-right-radius: 46vw 28vh; }
.door-r::after { inset: 27px 27px 27px 0; border-right: 1px solid var(--gold-deep); border-left: 0; border-radius: 0; border-top-right-radius: 44vw 26vh; }

/* an arched plate across both doors: the words sit on it, so the line where the doors meet never runs through them */
.cover-centre {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  width: min(86vw, 390px);
  padding: 46px 20px 30px; text-align: center;
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 190px 190px 28px 28px;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px rgba(227, 167, 18, .55), 0 22px 40px rgba(25, 82, 110, .22);
  transition: opacity .4s ease, transform .5s ease;
}
.cover-host { font: 400 clamp(1.5rem, 6.5vw, 2rem)/1 var(--display); letter-spacing: .06em; color: var(--deep); }
.cover-line { margin-top: 10px; font: 400 2rem/1.1 var(--script); color: var(--rose); }
.cover-event { margin-top: 2px; font: 400 clamp(2.05rem, 9.4vw, 3.3rem)/1.05 var(--display); color: var(--deep); }
.cover-date { margin-top: 18px; font-weight: 700; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; }

.seal {
  position: relative;
  width: 156px; height: 156px; margin-top: 16px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; padding: 0;
  background: none; color: var(--gold);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.seal-flower { position: absolute; inset: 0; width: 100%; height: 100%; }
.anim .seal-flower { animation: turn 40s linear infinite; }
.seal-text {
  position: relative;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #FFE27A, var(--sun) 62%, #F2B200);
  color: var(--deep);
  font-weight: 700; font-size: .8rem; line-height: 1.25; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--gold);
}
.anim .seal-text { animation: pulse 2.2s ease-in-out infinite; }
.cover.is-open { pointer-events: none; }
.cover.is-open .door-l { transform: rotateY(-97deg); filter: brightness(.82); }
.cover.is-open .door-r { transform: rotateY(97deg); filter: brightness(.82); }
.cover.is-open .cover-centre { opacity: 0; transform: scale(.86); }

/* ---------- 2. the stage ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: min(100svh, 900px);
  display: flex; flex-direction: column;
  margin: 7px 7px 0;                     /* leaves the card's gold frame showing */
  overflow: hidden; text-align: center;
  background: linear-gradient(180deg, #FFFDF2 0%, #FFF8DC 55%, #FFEDB0 100%);
}
.stage { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.curtain {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: repeating-linear-gradient(90deg, var(--curtain-mid) 0, var(--curtain) 9px, var(--curtain-light) 13px, var(--curtain) 21px, var(--curtain-dark) 31px);
  box-shadow: 0 0 22px rgba(150, 100, 0, .25);
  transform: scaleX(.17);
  transition: transform 2s cubic-bezier(.66, 0, .2, 1);
}
.curtain::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, #fff 0 3px, var(--gold-deep) 3px 5px); }
.curtain-l { left: 0; transform-origin: left center; }
.curtain-r { right: 0; transform-origin: right center; }
.js .hero:not(.curtains-open) .curtain { transform: none; }      /* closed until the doors open */
.valance { position: absolute; top: 0; left: 0; width: 100%; height: 74px; filter: drop-shadow(0 5px 6px rgba(150, 100, 0, .28)); }
.sw-cloth { fill: var(--curtain-mid); }
.sw-fold { fill: none; stroke: var(--curtain-fold); stroke-width: 1.4; opacity: .6; }
.sw-fringe { fill: none; stroke: #fff; stroke-width: 4; stroke-dasharray: 1.6 2.2; }
.sw-bar { fill: var(--curtain-dark); }

/* maths signs hanging from the valance, like lanterns */
.hang {
  position: absolute; left: var(--x); top: calc(54px + var(--len));
  width: 36px; height: 36px; margin-left: -18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;                      /* white, so the signs show against the yellow curtains too */
  box-shadow: 0 0 0 2px var(--gold-deep), 0 4px 8px rgba(120, 80, 0, .22);
  font: 700 1.45rem/1 var(--body); color: var(--deep);
  transform-origin: 50% calc(-1 * var(--len));
}
.hang::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1.5px; height: var(--len); margin-left: -.75px; background: var(--gold-deep); }
.anim .hang { animation: sway var(--t) ease-in-out infinite alternate; }

.hero-text {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 168px 48px 44px;             /* top clears the hanging signs (they end at 134px); bottom clears the bunny's ears */
}
.halo { position: absolute; left: 50%; top: 50%; z-index: -1; width: min(96vw, 440px); aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--sun); opacity: .14; }   /* the big flower behind the title: keep it faint */
.halo svg { width: 100%; height: 100%; }
.anim .halo svg { animation: turn 90s linear infinite; }
.host { font: 400 clamp(1.7rem, 7.4vw, 2.3rem)/1 var(--display); letter-spacing: .05em; color: var(--deep); }
.hero .script { font-size: 2.2rem; }
h1 {
  margin-top: 4px;
  font: 400 clamp(3rem, 14.6vw, 5.4rem)/.92 var(--display);
  color: var(--deep);
  text-shadow: 0 2px 0 #fff, 0 10px 24px rgba(255, 194, 14, .4);
}
h1 > span:not(.ch) { display: block; color: var(--rose); }
.ch { display: inline-block; }
.by { margin-top: 12px; font-weight: 700; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.hero .host { margin-top: 6px; }
.hero-date { margin-top: 14px; font-weight: 700; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); }
.hero-date span { color: var(--gold); padding: 0 .2em; }
.hero-place { margin-top: 2px; font-weight: 600; font-size: 1.02rem; color: var(--rose); }

.scene { position: relative; z-index: 1; width: 100%; height: auto; margin-top: auto; overflow: visible; }   /* the bunny's ears rise above the scene */
.sc-num text { font: 400 17px var(--display); fill: var(--sun); }
.sc-spark { fill: var(--rose-mid); transform-box: fill-box; transform-origin: center; }
.sc-hand { transform-origin: 80px 113px; }
.sc-bunny { transform-box: fill-box; transform-origin: 50% 100%; }
.hero .sc-books { display: none; }           /* on the stage the bunny stands where the books are */
.scene-slot .sc-bunny { display: none; }     /* the closing has its own bunny above "See you there" */
.anim .sc-lane { animation: lane .9s linear infinite; }
.anim .sc-hand { animation: turn 7s linear infinite; }
.anim .sc-spark { animation: twinkle var(--t) ease-in-out var(--w) infinite; }
.anim .sc-trophy { animation: bob 2.6s ease-in-out infinite; }

.cue {
  position: absolute; left: 50%; bottom: 10px; z-index: 2;
  transform: translateX(-50%);
  padding: 5px 14px 5px 16px; border-radius: 999px;
  background: #fff; color: var(--deep);
  font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 0 0 1.5px var(--gold);
}
.cue::after { content: ' \2193'; }
.no-js .cue { display: none; }
.anim .cue { animation: cue 1.6s ease-in-out infinite; }

/* stage entrance, after the curtains part */
.anim .hero .h-in, .anim .hero .ch, .anim .hero .cue,
.anim .hero .sc-watch, .anim .hero .sc-podium, .anim .hero .sc-books, .anim .hero .sc-trophy, .anim .hero .sc-bunny { opacity: 0; }
.anim .hero.is-live .sc-bunny { animation: rise .8s cubic-bezier(.2, .7, .2, 1) 1.6s both, hop 2.6s ease-in-out 3s infinite; }
.anim .hero.is-live .h-in { animation: rise .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.anim .hero.is-live .ch { animation: letter .8s cubic-bezier(.2, .9, .3, 1.25) calc(.5s + var(--i) * 70ms) both; }
.anim .hero.is-live .sc-watch { animation: rise .8s cubic-bezier(.2, .7, .2, 1) 1.2s both; }
.anim .hero.is-live .sc-podium { animation: rise .8s cubic-bezier(.2, .7, .2, 1) 1.4s both; }
.anim .hero.is-live .sc-books { animation: rise .8s cubic-bezier(.2, .7, .2, 1) 1.6s both; }
.anim .hero.is-live .sc-trophy { animation: rise .8s cubic-bezier(.3, 1.5, .5, 1) 1.9s both, bob 2.6s ease-in-out 2.8s infinite; }
.anim .hero.is-live .cue { animation: rise .8s ease 2.4s both, cue 1.6s ease-in-out 3.2s infinite; }

/* ---------- 3. invitation ---------- */
.arch .script { margin-top: 8px; font-size: 1.8rem; }
.event-name { margin-top: 2px !important; font: 400 clamp(2.5rem, 11.5vw, 3.6rem)/1 var(--display); color: var(--deep); }
.lede { font-size: 1.08rem; line-height: 1.55; max-width: 28em; margin-inline: auto; }
.facts { margin-top: 22px !important; display: grid; gap: 10px; }
.facts > div { padding: 14px 8px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), inset 0 3px 0 var(--sun); }
.facts dt { font-weight: 700; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.facts dd { margin-top: 2px; font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--deep); }

/* ---------- 4. scratch the medal ---------- */
.medal { position: relative; width: 256px; margin: 28px auto 0 !important; padding-top: 62px; transform-origin: 50% 0; }
.medal-ribbon { position: absolute; top: 0; left: 50%; width: 124px; height: 95px; margin-left: -62px; }
.scratch {
  position: relative;
  width: 236px; height: 236px; margin: 0 auto;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff, var(--field) 60%, var(--sun-soft));
  box-shadow: 0 0 0 4px var(--sun), 0 0 0 7px #fff, 0 0 0 9px var(--gold), 0 16px 30px rgba(25, 82, 110, .2);
}
.date-card { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date-day { font-weight: 700; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--rose); }
.date-num { font: 400 5rem/1 var(--display); color: var(--deep); }
.date-month { font-weight: 600; font-size: 1.18rem; line-height: 1.2; color: var(--deep); }
.date-time { margin-top: 5px; font-weight: 600; font-size: .86rem; color: var(--ink-soft); }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .6s ease; }
.no-js .scratch canvas { display: none; }
.scratch.is-revealed canvas { opacity: 0; pointer-events: none; }
.anim .medal.is-revealed { animation: swing 1.6s ease-out; }
.anim .scratch.is-revealed .date-num { animation: pop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.scratch-hint { margin-top: 22px !important; font-size: .95rem; color: var(--ink-soft); }
.no-js .scratch-hint, .no-js #show-date { display: none; }
.btn-text {
  margin-top: 2px !important;
  min-height: 44px; padding: 8px 12px;
  background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: .95rem; color: var(--deep);
  text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- 5. schedule ---------- */
.timeline { position: relative; max-width: 440px; margin: 30px auto 0 !important; text-align: left; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 26px; top: 30px; bottom: 34px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--line); }
.timeline::after { background: linear-gradient(var(--sun), var(--orange)); transform-origin: top center; transform: scaleY(var(--tp, 1)); }
.timeline li { position: relative; z-index: 1; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: center; min-height: 72px; padding: 8px 0; }
.t-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--field); box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px var(--paper); }
.t-ico svg { width: 32px; height: 32px; }
.t-time { display: block; font-weight: 700; font-size: .9rem; letter-spacing: .06em; color: var(--rose); }
.t-body strong { display: block; font-weight: 600; font-size: 1.07rem; line-height: 1.3; color: var(--ink); }
.t-main .t-ico { background: radial-gradient(circle at 35% 30%, #FFE27A, var(--sun) 62%, #F2B200); box-shadow: 0 0 0 2px var(--rose-mid), 0 0 0 5px var(--paper); }
.t-main .t-body strong { font: 400 1.5rem/1.15 var(--display); color: var(--deep); }
.anim .timeline li .t-ico { transform: scale(0); }
.anim .timeline li .t-body { opacity: 0; transform: translateX(26px); }
.anim .timeline li.in .t-ico { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.anim .timeline li.in .t-body { animation: slidein .6s cubic-bezier(.2, .7, .2, 1) .12s both; }
.anim .timeline li.t-main.in .t-ico { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both, pulse-k 2.2s ease-in-out .8s infinite; }

/* the bunny from the PDF (212 x 501 picture, clear background) */
.bunny { height: auto; filter: drop-shadow(0 8px 6px rgba(25, 82, 110, .18)); transform-origin: 50% 100%; }
.sec > .bunny-schedule { position: absolute; z-index: 2; right: 14px; bottom: -4px; width: 56px; margin: 0; }   /* stands on the edge of the countdown band */
.bunny-closing { width: 84px; margin-inline: auto; }
.anim .live .bunny { animation: hop 2.6s ease-in-out infinite; }
#schedule { padding-bottom: 64px; }

/* ---------- 6. countdown ---------- */
.band {
  background-color: var(--band);
  /* the yellow wash over the pattern keeps it quiet behind the words */
  background-image: linear-gradient(rgba(255, 194, 14, .3), rgba(255, 194, 14, .3)), var(--maths);
  background-size: auto, 360px 360px;
  margin: 0 7px; overflow: hidden;
}
.band .script { color: #9E1F45; }       /* deeper pink, so it reads on the strong yellow */
.band .h-rule { color: var(--deep); }
.cd-grid { margin: 26px auto 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 440px; }
.cd-grid > div { padding: 14px 2px 10px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: inset 0 4px 0 var(--deep), 0 10px 20px rgba(150, 100, 0, .16); }
.cd-num { display: block; font: 400 clamp(2.1rem, 10.4vw, 3.3rem)/1.05 var(--display); color: var(--deep); font-variant-numeric: tabular-nums; }
.cd-label { display: block; margin-top: 4px; font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.anim .cd-num.roll { animation: roll .45s cubic-bezier(.2, .8, .2, 1); }
.cd-msg { margin-top: 22px !important; font: 400 1.5rem/1.3 var(--display); color: var(--deep); }
.cd-foot { margin-top: 20px !important; font-size: .93rem; color: var(--ink); }

/* ---------- 7. competition guidelines ---------- */
.kit { position: relative; max-width: 520px; margin: 48px auto 0 !important; padding: 40px 18px 20px; border-radius: 16px; background: var(--field); border: 1.5px solid var(--leaf-soft); box-shadow: 0 12px 22px rgba(25, 82, 110, .08); text-align: left; }
.kit-no { border-color: var(--rose-mid); }
.kit h3 { position: absolute; top: 0; left: 50%; width: max-content; max-width: calc(100% - 20px); transform: translate(-50%, -50%); text-align: center; }
.tag { display: inline-block; padding: 8px 18px 7px; border-radius: 999px; color: #fff; font: 400 1.02rem/1.2 var(--display); letter-spacing: .01em; box-shadow: 0 0 0 4px var(--paper); }
.tag small { font: 600 .78rem/1 var(--body); letter-spacing: .02em; }
.tag-yes { background: var(--leaf); }
.tag-no { background: var(--rose); }
.bring li { display: grid; grid-template-columns: 60px 1fr; column-gap: 14px; align-items: center; padding: 9px 0; font-size: 1.06rem; line-height: 1.35; }
.bring li + li { border-top: 1px dashed var(--line); }
.b-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--sun); }
.b-ico svg { width: 38px; height: 38px; }
.ban { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 6px; text-align: center; }
.ban li { width: calc(33.33% - 4px); font-weight: 600; font-size: .95rem; line-height: 1.25; }
.ban-ico { position: relative; display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 8px; border-radius: 50%; background: var(--rose-soft); box-shadow: inset 0 0 0 2.5px var(--rose-mid); }
.ban-ico svg { width: 40px; height: 40px; }
.ban-ico::after { content: ''; position: absolute; left: 50%; top: 50%; width: 68px; height: 4px; margin: -2px 0 0 -34px; border-radius: 2px; background: var(--rose); box-shadow: 0 0 0 1.5px var(--rose-soft); transform: rotate(-45deg); }
.anim .reveal .ban-ico::after { transform: rotate(-45deg) scaleX(0); }
.anim .reveal.in .ban-ico::after { animation: strike .4s ease-out calc(var(--i, 0) * 110ms + .75s) both; }
.anim .live .wiggle svg { animation: wiggle 2.6s ease-in-out 1.2s infinite; }

/* ---------- 8. rules ---------- */
.dial { position: relative; width: 132px; height: 132px; margin: 26px auto 0 !important; display: grid; place-items: center; align-content: center; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial-bg { fill: var(--field); stroke: var(--line); stroke-width: 8; }
.dial-run { fill: none; stroke: var(--sun); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 314.16; }
.anim .dial-run { animation: dial 7s linear infinite; }
.dial-num { position: relative; font: 400 3.4rem/.9 var(--display); color: var(--deep); }
.dial-unit { position: relative; font-weight: 700; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); }
.rules { max-width: 520px; margin: 22px auto 0 !important; counter-reset: rule; text-align: left; }
.rules li { counter-increment: rule; position: relative; padding: 14px 14px 14px 62px; min-height: 62px; font-size: 1.05rem; line-height: 1.45; background: var(--field); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 14px rgba(25, 82, 110, .06); }
.rules li + li { margin-top: 10px; }
.rules li::before {
  content: counter(rule);
  position: absolute; left: 11px; top: 11px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font: 400 1.35rem/1 var(--display); color: var(--deep);
  background: radial-gradient(circle at 35% 30%, #FFE27A, var(--sun) 62%, #F2B200);
}
.notice {
  max-width: 520px; margin: 18px auto 0 !important; padding: 14px 16px;
  text-align: left;
  background: var(--rose-soft);
  border-left: 4px solid var(--rose); border-radius: 0 12px 12px 0;
}
.notice h3 { font-size: 1.12rem; color: var(--rose); }
.notice p { margin-top: 4px; font-weight: 600; color: var(--ink); }

/* ---------- 9. awards and checking ---------- */
.tint { background-color: var(--paper-2); background-image: none; margin: 0 7px; }
.tint strong { color: var(--deep); }
.award { margin-top: 16px !important; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; column-gap: 6px; max-width: 380px; margin: 0 auto; }
.podium li { display: flex; flex-direction: column; align-items: center; }
.p-1 { order: 2; }
.p-2 { order: 1; }
.p-3 { order: 3; }
.p-top { display: grid; place-items: center; height: 56px; }
.p-top svg { width: 44px; height: 44px; }
.p-1 .p-top svg { width: 54px; height: 54px; }
.p-bar { width: 100%; display: grid; place-items: start center; padding-top: 8px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #FFDE6E, var(--sun)); color: var(--deep); font: 400 2rem/1 var(--display); transform-origin: 50% 100%; box-shadow: inset 0 4px 0 rgba(255, 255, 255, .7); }
.p-1 .p-bar { height: 108px; }
.p-2 .p-bar { height: 78px; }
.p-3 .p-bar { height: 56px; }
.p-name { display: block; min-height: 2.5em; margin-top: 8px; font-weight: 700; font-size: .96rem; line-height: 1.22; }
.anim .reveal .p-bar { transform: scaleY(0); }
.anim .reveal .p-top, .anim .reveal .p-name { opacity: 0; }
.anim .reveal.in .p-bar { animation: grow .7s cubic-bezier(.2, .9, .3, 1.12) var(--pd) both; }
.anim .reveal.in .p-top { animation: drop .7s cubic-bezier(.3, 1.6, .5, 1) calc(var(--pd) + .5s) both; }
.anim .reveal.in .p-1 .p-top { animation: drop .7s cubic-bezier(.3, 1.6, .5, 1) calc(var(--pd) + .5s) both, bob 2.4s ease-in-out 2.4s infinite; }
.anim .reveal.in .p-name { animation: fade .6s ease calc(var(--pd) + .7s) both; }
.p-2 { --pd: .45s; }
.p-3 { --pd: .7s; }
.p-1 { --pd: .95s; }

.ribbon-card { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 520px; margin: 16px auto 0 !important; padding: 14px 18px; border-radius: 14px; background: var(--field); border: 2px solid var(--gold); box-shadow: 0 10px 18px rgba(25, 82, 110, .08); }
.champ { background: linear-gradient(180deg, #FFF3C4, var(--sun-soft)); }
.champ h3 { font-size: 1.5rem; }
.bobber svg { width: 54px; height: 54px; }
.anim .live .bobber svg { animation: bob 2.4s ease-in-out infinite; }
.swing { transform-origin: 50% 0; }
.swing svg { width: 44px; height: 44px; }
.anim .live .swing { animation: sway 2.2s ease-in-out infinite alternate; }
.award-rule { margin-top: 20px !important; font-weight: 700; color: var(--rose); }
.everyone { max-width: 520px; margin: 20px auto 0 !important; padding: 20px 16px; border-radius: 14px; background: var(--field); box-shadow: inset 0 0 0 2px var(--gold), 0 10px 18px rgba(25, 82, 110, .08); }
.everyone p { margin-top: 6px; font-size: 1.06rem; line-height: 1.5; color: var(--ink); }
.ev-ico { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }
.ev-ico svg { width: 50px; height: 50px; padding: 7px; border-radius: 50%; background: var(--sun-soft); box-shadow: 0 0 0 2px var(--gold); }
.anim .live .ev-ico svg { animation: bob 2.4s ease-in-out infinite; }
.anim .live .ev-ico svg + svg { animation-delay: .5s; }
.sub { margin-top: 40px !important; padding-top: 32px; border-top: 1px solid var(--line); font-size: 1.55rem; }
.tint > p { max-width: 520px; margin-inline: auto; }
.steps { position: relative; display: grid; gap: 10px; text-align: left; max-width: 440px; margin-inline: auto; }
.steps::before { content: ''; position: absolute; left: 29px; top: 20px; bottom: 20px; width: 2px; background: var(--gold); }
.steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--field); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; line-height: 1.3; }
.steps span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--deep); color: #fff; font-size: .9rem; box-shadow: 0 0 0 3px var(--field); }
.notes { display: grid; gap: 10px; max-width: 520px; margin-inline: auto; text-align: left; }
.notes li { padding: 14px 16px; background: var(--field); border: 1px solid var(--line); border-radius: 12px; box-shadow: inset 4px 0 0 var(--sun); line-height: 1.5; }
.notes strong { display: block; font: 400 1.1rem/1.3 var(--display); }

/* ---------- 10. event layout ---------- */
.plan { margin-top: 24px !important; }
.plan-2 { margin-top: 34px !important; }
.plan svg { width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.plan figcaption { margin-top: 10px; font-size: .92rem; color: var(--ink-soft); }
.p-dim path { fill: none; stroke: var(--ink-soft); stroke-width: 1; }
.p-dim text { font: 700 12px var(--body); fill: var(--ink); }
.p-hall { fill: var(--field); stroke: var(--deep); stroke-width: 2; stroke-linejoin: round; }
.p-block rect { transform-box: fill-box; transform-origin: 0 50%; }
.p-letter text { font: 700 12px var(--body); fill: var(--deep); }
.p-cap { font: 700 14px var(--body); fill: var(--deep); }
.p-cap-lg { font-size: 15px; }
.p-gate { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.p-arrow { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.p-stage { fill: var(--sun-soft); stroke: var(--gold); stroke-width: 1.5; }
.p-wait { fill: #DCEFB0; stroke: #7FA935; stroke-width: 2; }   /* light version of the green this hall has in the PDF */
.p-label { font: 700 12px var(--body); fill: var(--ink); }
.anim .reveal .p-block rect, .anim .reveal .p-letter text, .anim .reveal .p-chairs rect { opacity: 0; }
.anim .reveal.in .p-block rect { animation: wipe .6s cubic-bezier(.2, .8, .2, 1) both; }
.anim .reveal.in .p-letter text, .anim .reveal.in .p-chairs rect { animation: fade .5s ease both; }
.anim .reveal.in .p-block rect:nth-child(7), .anim .reveal.in .p-letter text:nth-child(7) { animation-delay: .35s; }
.anim .reveal.in .p-block rect:nth-child(6), .anim .reveal.in .p-letter text:nth-child(6) { animation-delay: .47s; }
.anim .reveal.in .p-block rect:nth-child(5), .anim .reveal.in .p-letter text:nth-child(5) { animation-delay: .59s; }
.anim .reveal.in .p-block rect:nth-child(4), .anim .reveal.in .p-letter text:nth-child(4) { animation-delay: .71s; }
.anim .reveal.in .p-block rect:nth-child(3), .anim .reveal.in .p-letter text:nth-child(3) { animation-delay: .83s; }
.anim .reveal.in .p-block rect:nth-child(2), .anim .reveal.in .p-letter text:nth-child(2) { animation-delay: .95s; }
.anim .reveal.in .p-block rect:nth-child(1), .anim .reveal.in .p-letter text:nth-child(1) { animation-delay: 1.07s; }
.anim .reveal.in .p-chairs rect:nth-child(1) { animation-delay: 1.2s; }
.anim .reveal.in .p-chairs rect:nth-child(2) { animation-delay: 1.32s; }
.anim .reveal.in .p-chairs rect:nth-child(3) { animation-delay: 1.44s; }
.anim .reveal.in .p-chairs rect:nth-child(4) { animation-delay: 1.56s; }
.anim .reveal.in .p-chairs rect:nth-child(5) { animation-delay: 1.68s; }
.anim .live .p-stage { animation: glow 2s ease-in-out infinite alternate; }

/* ---------- about Ganitshastra: words and photos from the website ---------- */
.tagline { font: 400 1.5rem/1.25 var(--display); color: var(--rose); }
.chip { display: inline-block; margin-top: 16px !important; padding: 7px 18px; border-radius: 999px; background: var(--sun); color: var(--deep); font-weight: 700; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; }
.photo-tall { margin: 22px auto 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; max-width: 480px; }
.photo-tall img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; object-position: center bottom; }
.photo-grid { margin: 28px auto 0 !important; display: grid; gap: 20px; max-width: 520px; }
.photo-grid img {
  width: 100%; height: auto; aspect-ratio: 640 / 291; object-fit: cover;
  border-radius: 12px; background: var(--paper-2);
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--line), 0 14px 22px rgba(25, 82, 110, .16);
}
.photo-grid img:nth-child(odd) { transform: rotate(-1.2deg); }
.photo-grid img:nth-child(even) { transform: rotate(1.2deg); }
.anim .live .photo-tall img { animation: bob 3s ease-in-out infinite; }
.anim .live .photo-tall img:nth-child(2) { animation-delay: .5s; }
.anim .live .photo-tall img:nth-child(3) { animation-delay: 1s; }

/* ---------- 11. reply ---------- */
#reply .arch { margin-top: 28px !important; }
.reply { display: grid; gap: 18px; text-align: left; }
.field label, .field legend { display: block; margin-bottom: 6px; font-weight: 600; font-size: .98rem; color: var(--deep); }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 50px; padding: 11px 14px;
  background: #fff; border: 1.5px solid #E3CF98; border-radius: 10px;
  font-size: 1.02rem;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--deep); }
.help { margin-top: 6px; font-size: .88rem; color: var(--ink-soft); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { position: relative; margin: 0; font-weight: 600; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: grid; place-items: center; min-height: 52px; padding: 6px 8px; text-align: center; line-height: 1.25;
  background: #fff; border: 1.5px solid #E3CF98; border-radius: 10px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.choice input:checked + span { background: var(--deep); border-color: var(--deep); color: #fff; transform: scale(1.03); }
.choice input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: 3px; }
.stepper { display: inline-grid; grid-template-columns: 50px 72px 50px; }
.stepper button, .stepper input { min-height: 50px; text-align: center; background: #fff; border: 1.5px solid #E3CF98; }
.stepper button { font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--deep); }
.stepper button:first-child { border-radius: 10px 0 0 10px; }
.stepper button:last-child { border-radius: 0 10px 10px 0; }
.stepper input { border-inline: 0; border-radius: 0; width: 100%; font-weight: 700; font-size: 1.1rem; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.reply-note { margin-top: -6px; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 10px 20px;
  border-radius: 999px; border: 1.5px solid var(--deep);
  font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.btn svg { flex: none; width: 20px; height: 20px; }
.btn-solid { background: linear-gradient(180deg, var(--deep-2), var(--deep)); color: #fff; box-shadow: 0 10px 18px rgba(25, 82, 110, .22); }
.btn-line { background: var(--field); color: var(--deep); }
.btn-sm { min-height: 46px; padding: 8px 20px; font-size: .96rem; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn[disabled] { background: #ECE5D3; border-color: #ECE5D3; color: #6B6455; box-shadow: none; cursor: not-allowed; }
.btn-solid:not([disabled])::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); }
.anim .btn-solid:not([disabled])::after { animation: shine 3.2s ease-in-out 1s infinite; }
@media (hover: hover) {
  .btn-solid:not([disabled]):hover { background: var(--deep); }
  .btn-line:hover { background: var(--deep); color: #fff; }
}

/* ---------- 12. closing ---------- */
.closing { margin: 0 7px; padding-bottom: 0; overflow: hidden; background: linear-gradient(180deg, rgba(255, 251, 234, 0) 0%, #FFF8DC 60%, #FFEDB0 100%); }
.closing-line { font-weight: 600; font-size: 1.1rem; line-height: 1.45; color: var(--ink); }
.actions { margin: 26px auto 0 !important; display: grid; gap: 12px; max-width: 460px; }
.contact { max-width: 460px; margin: 30px auto 0 !important; padding: 18px 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line); }
.contact ul { margin-top: 6px; display: grid; }
.contact a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 4px 10px; font-weight: 600; color: var(--deep); text-decoration: none; overflow-wrap: anywhere; }
.contact svg { flex: none; width: 18px; height: 18px; }
.signoff { margin-top: 30px !important; font: 400 1.8rem/1 var(--display); letter-spacing: .05em; color: var(--deep); }
.scene-slot { margin: 18px calc(-1 * var(--pad)) 0 !important; }
.scene-slot:empty { height: 40px; }

.foot { position: relative; padding: 4px var(--pad) 12px; text-align: center; font-size: .86rem; background: var(--band); color: var(--deep); margin: 0 7px 7px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-underline-offset: 4px; }

.confetti { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; pointer-events: none; }
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 70;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--deep); color: #fff; font-weight: 600; font-size: .95rem; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- sections arrive as you scroll ---------- */
.anim .reveal > * { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.anim .reveal.in > * { opacity: 1; transform: none; }
.anim .reveal.in > *:nth-child(2) { transition-delay: .1s; }
.anim .reveal.in > *:nth-child(3) { transition-delay: .2s; }
.anim .reveal.in > *:nth-child(n+4) { transition-delay: .3s; }
.anim .reveal > .h-rule { opacity: 1; transform: scaleX(0); }
.anim .reveal.in > .h-rule { transform: scaleX(1); transition-delay: .35s; }
.anim .reveal > .script { transform: translateY(18px) scale(.9); }
.anim .reveal.in > .script { transform: none; }
.anim .reveal > .arch { transform: translateY(40px) scale(.96); }
.anim .reveal.in > .arch { transform: none; }
.anim .reveal .pop, .anim .reveal .slide { opacity: 0; }
.anim .reveal.in .pop { animation: pop .6s cubic-bezier(.3, 1.5, .5, 1) calc(var(--i, 0) * 110ms + .35s) both; }
.anim .reveal.in .slide { animation: slidein .6s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 130ms + .35s) both; }

/* looping motion rests while its section is off screen */
.anim [data-live]:not(.live) *, .anim [data-live]:not(.live) *::before, .anim [data-live]:not(.live) *::after { animation-play-state: paused !important; }

@keyframes turn { to { transform: rotate(360deg); } }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes swing { 0% { transform: rotate(0); } 20% { transform: rotate(7deg); } 45% { transform: rotate(-5deg); } 70% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--gold), 0 0 0 6px rgba(255, 194, 14, .7); }
  50% { box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--gold), 0 0 0 22px rgba(255, 194, 14, 0); }
}
@keyframes pulse-k {
  0%, 100% { box-shadow: 0 0 0 2px var(--rose-mid), 0 0 0 5px var(--paper), 0 0 0 5px rgba(240, 139, 164, .6); }
  50% { box-shadow: 0 0 0 2px var(--rose-mid), 0 0 0 5px var(--paper), 0 0 0 16px rgba(240, 139, 164, 0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes letter { from { opacity: 0; transform: translateY(.5em) rotate(8deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes drop { from { opacity: 0; transform: translateY(-34px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hop { 0%, 55%, 100% { transform: translateY(0) scaleY(1); } 62% { transform: translateY(0) scaleY(.94); } 76% { transform: translateY(-14px) scaleY(1.03); } 90% { transform: translateY(0) scaleY(.97); } }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@keyframes twinkle { 0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }
@keyframes lane { to { stroke-dashoffset: -20; } }
@keyframes glow { from { fill: var(--sun-soft); } to { fill: var(--sun); } }
@keyframes dial { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 314.16; } }
@keyframes roll { from { transform: translateY(-55%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes strike { from { transform: rotate(-45deg) scaleX(0); } to { transform: rotate(-45deg) scaleX(1); } }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-9deg); } 80% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }
@keyframes shine { 0%, 60% { left: -40%; } 100% { left: 130%; } }

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  :root { --pad: 56px; }
  html { font-size: 112.5%; }
  .sec { padding-top: 66px; padding-bottom: 66px; }
  .closing { padding-bottom: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:first-child { grid-column: 1 / -1; }
  .arch-body { padding: 0 34px 34px; }
  .arch-body > :first-child { margin-top: -62px; }
  .arch-body > form:first-child { margin-top: 0; }
  .arch-body > .podium:first-child { margin-top: -20px; }
  .hero-text { padding: 200px 96px 68px; }
  .valance { height: 96px; }
  .hang { top: calc(72px + var(--len)); }
  .actions { grid-template-columns: 1fr 1fr; }
  .ban li { width: calc(20% - 6px); }
  .kit { padding: 44px 26px 24px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .sec > .bunny-schedule { width: 84px; right: 40px; }
  .bunny-closing { width: 100px; }
  .contact ul { grid-template-columns: auto auto; justify-content: center; column-gap: 12px; }
}
@media (min-width: 780px) {
  body { padding: 40px 0; }
  .card { border-radius: 8px; box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold), 0 30px 70px rgba(25, 82, 110, .22); }
  .hero { min-height: min(calc(100vh - 80px), 900px); }
  .floaters-page { display: block; }
}

/* ---------- reduced motion (belt and braces: ".anim" is already off) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .cover, .toast, .track, .stage, .floaters, .confetti, .actions, #save-the-date, #reply, .cue { display: none !important; }
  body { background: #fff; padding: 0; }
}
