/* Velikonoční vajíčka (js/vajicka.js). Nic z toho nesahá na čísla. */
.sedm { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 15px; line-height: 1; color: rgba(29,26,22,.22); background: none; border: 0;
  padding: 6px; margin: -6px; cursor: default; z-index: 4; -webkit-tap-highlight-color: transparent; }
.nav .sedm, footer .sedm, .titul .sedm, body > .sedm { color: rgba(247,241,225,.3); }
.sedm.nalezena { color: var(--med); text-shadow: 1px 1px 0 rgba(0,0,0,.4); }
.sedm.toc { animation: sedm-toc .6s steps(6, end); }
@keyframes sedm-toc { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.8); } 100% { transform: rotate(360deg) scale(1); } }
.bublinka { position: fixed; z-index: 1001; background: var(--papir); color: var(--ink); font-family: var(--ruka); font-weight: 700; font-size: 22px; padding: 4px 12px 6px;
  box-shadow: var(--stin-maly); transform: rotate(-3deg); pointer-events: none; }
.dest-konfet { position: fixed; inset: 0; pointer-events: none; z-index: 950; overflow: hidden; }
.dest-konfet i { position: absolute; top: -20px; width: 9px; height: 14px; animation: dest 2.5s steps(30, end) infinite; }
@keyframes dest { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(110vh) rotate(720deg); } }

.diplom-zavoj { position: fixed; inset: 0; z-index: 1002; background: rgba(40,24,8,.55); display: grid; place-items: center; padding: 16px; }
.diplom { position: relative; background: var(--papir) url("../img/karton.jpg") center / 700px; background-blend-mode: multiply; max-width: 420px; width: 100%;
  padding: 28px 24px 22px; text-align: center; box-shadow: var(--stin); transform: rotate(-1.5deg); border: 6px double var(--med-tm); }
.diplom-t { font-family: var(--serif); font-weight: 800; font-size: 28px; }
.diplom-v { font-family: var(--ruka); font-weight: 700; font-size: 44px; color: var(--petrol); line-height: 1; margin: 6px 0 10px; }
.razitko-d { display: inline-block; color: #c8202a; border: 4px solid #c8202a; border-radius: 8px; font-weight: 800; padding: 2px 12px; transform: rotate(-8deg); margin: 6px 0 14px; mix-blend-mode: multiply; }

/* připínáček, který jde vytáhnout */
.lis > .pin { cursor: pointer; }
.lis > .pin.pada { animation: pin-pad 1s steps(10, end) forwards; }
@keyframes pin-pad { 0% { transform: translate(0, 0) rotate(0); } 100% { transform: translate(30px, 110vh) rotate(400deg); } }
.lis.visi { transform: rotate(9deg); transform-origin: 6% 3%; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }

/* traktor z Havlovic */
.traktor { position: fixed; z-index: 960; bottom: 6px; left: 0; width: 150px; pointer-events: none; animation: traktor-jede 8s steps(80, end) forwards; filter: drop-shadow(3px 4px 0 rgba(0,0,0,.35)); }
.traktor svg { width: 140px; display: block; }
.traktor .kolo { animation: fg-presl .34s steps(1, end) infinite; transform-box: fill-box; transform-origin: center; }
.traktor .kour { animation: fg-para 1s steps(6, end) infinite; }
.traktor span { position: absolute; left: 100%; top: 4px; white-space: nowrap; background: var(--papir); font-family: var(--ruka); font-weight: 700; font-size: 20px; padding: 2px 10px; transform: rotate(-3deg); box-shadow: var(--stin-maly); }
@keyframes traktor-jede { 0% { transform: translateX(-180px); } 100% { transform: translateX(calc(100vw + 40px)); } }

/* kapka a Zubřina */
.kapka { display: inline-block; width: .3em; height: .3em; margin-left: .25em; vertical-align: .55em; border: 0; padding: 0; cursor: pointer; background: #7d9db3;
  border-radius: 0 50% 50% 50%; transform: rotate(45deg); box-shadow: 1px 1px 0 rgba(0,0,0,.3); }
.zubrina { position: fixed; z-index: 955; left: 0; right: 0; bottom: 30px; height: 90px; pointer-events: none; animation: zub 6.5s steps(52, end) forwards; }
.zubrina svg { width: 100%; height: 80px; display: block; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.3)); }
.zubrina .proud { animation: proud 1s steps(12, end) infinite; }
@keyframes proud { to { stroke-dashoffset: -44; } }
@keyframes zub { 0% { clip-path: inset(0 100% 0 0); opacity: 1; } 40% { clip-path: inset(0 0 0 0); opacity: 1; } 85% { opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.zubrina .ryba { position: absolute; left: 30%; top: 10px; width: 28px; height: 14px; background: #c99a12; border-radius: 50% 40% 40% 50%; animation: ryba 6.5s steps(52, end) forwards; }
.zubrina .ryba::after { content: ""; position: absolute; right: -10px; top: 2px; border: 5px solid transparent; border-left: 10px solid #c99a12; }
@keyframes ryba { 0%, 40% { transform: translate(0, 30px) rotate(0); opacity: 0; } 50% { transform: translate(60px, -30px) rotate(-30deg); opacity: 1; } 60% { transform: translate(120px, 20px) rotate(30deg); } 100% { transform: translate(400px, 30px); opacity: 0; } }
.zub-t { position: absolute; right: 8%; top: -18px; background: var(--papir); font-family: var(--ruka); font-weight: 700; font-size: 20px; padding: 2px 10px; transform: rotate(2deg); box-shadow: var(--stin-maly); }

/* kartonová diskotéka */
body.disko .fg-pohyb { animation: fg-skok .5s steps(1, end) infinite !important; }
body.disko .fg-ruka.l { animation: fg-hura-l .34s steps(1, end) infinite !important; }
body.disko .fg-ruka.p { animation: fg-hura-p .34s steps(1, end) infinite !important; }
body.disko .kreslo .fig, body.disko .lis-ostatni .fig { animation: fg-hop .5s steps(1, end) infinite; }
body.disko .lis { animation: disko-lis .5s steps(1, end) infinite; }
@keyframes disko-lis { 0% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* laskavé hlášky na papírku SPMD */
.utecha { position: relative; margin: 14px 4px 2px; background: #fff7c2; color: var(--ink); font-family: var(--ruka); font-weight: 700; font-size: 22px; line-height: 1.1;
  padding: 12px 12px 10px; transform: rotate(-1.5deg); box-shadow: var(--stin-maly); cursor: pointer; }

/* noc s čajem */
body.noc { background-color: #2b2016; background-blend-mode: multiply; }
body.noc::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 899;
  background: radial-gradient(ellipse at 18% -10%, rgba(255,214,150,.22), rgba(255,214,150,0) 55%), radial-gradient(ellipse at 50% 120%, rgba(10,20,40,.35), rgba(10,20,40,0) 60%); }
.noc-caj { position: fixed; right: 12px; bottom: 12px; z-index: 940; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
.noc-t { background: var(--papir); font-family: var(--ruka); font-weight: 700; font-size: 18px; padding: 2px 10px; transform: rotate(-3deg); box-shadow: var(--stin-maly); }
.hrnek-velky { position: relative; width: 38px; height: 34px; background: #f7f1e1; border-radius: 0 0 10px 10px; box-shadow: inset 0 -6px 0 #b9825a, 3px 4px 0 rgba(0,0,0,.35); }
.hrnek-velky::after { content: ""; position: absolute; right: -12px; top: 6px; width: 12px; height: 14px; border: 4px solid #f7f1e1; border-left: 0; border-radius: 0 10px 10px 0; }
.hrnek-velky i { position: absolute; bottom: 36px; width: 4px; height: 14px; background: rgba(255,255,255,.7); border-radius: 50%; animation: fg-para 1.4s steps(8, end) infinite; }
.hrnek-velky i:nth-child(1) { left: 8px; } .hrnek-velky i:nth-child(2) { left: 17px; animation-delay: -.45s; } .hrnek-velky i:nth-child(3) { left: 26px; animation-delay: -.9s; }

@media (prefers-reduced-motion: reduce) {
  .traktor, .zubrina, .zubrina .ryba, .lis > .pin.pada, .dest-konfet i, .sedm.toc { animation-duration: .01s !important; }
  body.disko * { animation: none !important; }
}
.nav { position: sticky; } .nav button.sedm { all: unset; position: absolute; right: 6px; bottom: -2px; font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 13px; color: rgba(247,241,225,.3); padding: 4px; cursor: default; }
.nav button.sedm.nalezena { color: var(--med); }
