/* КОМПАС 1.8.2 — Живо, приказно, но приятно за очите.
   НОВ файл. Зарежда се след style.css и отменя спирането в 1.8.1.
   Използваме transform/opacity за плавни анимации, без мигане. */

/* Бавен, съвсем лек полет на детските табелки при големи екрани. */
@keyframes cpGentleNote {
  0%,100% {translate: 0 0}
  50% {translate: 0 -5px}
}
@media (min-width:761px) {
  .hero-art-brand .floating-note {
    animation: cpGentleNote 8.8s ease-in-out infinite !important;
    translate: 0 0;
  }
  .hero-art-brand .note-two {animation-duration: 9.6s !important;animation-delay:-2.8s !important}
  .hero-art-brand .note-three {animation-duration: 10.3s !important;animation-delay:-5.4s !important}
}
/* На телефон пазим първоначалния ритъм и поведение, които се харесаха. */
@media (max-width:760px) {
  .hero-art-brand .floating-note {animation:bob 4.5s ease-in-out infinite !important}
  .hero-art-brand .note-two {animation-delay:-1.5s !important}
  .hero-art-brand .note-three {animation-delay:-3s !important}
}

/* Кръгове, цветни отблясъци и пеперуди — игриви, не натрапчиви. */
@keyframes cpOrbitBreath {
  0%,100% {opacity:.58;rotate:0deg}
  50% {opacity:.86;rotate:6deg}
}
@keyframes cpSoftHalo {
  0%,100% {box-shadow:0 19px 38px rgba(20,71,42,.14),inset 0 0 0 8px #ffffff99}
  50% {box-shadow:0 21px 48px rgba(38,122,82,.19),0 0 0 11px rgba(249,202,92,.10),inset 0 0 0 8px #ffffffaa}
}
@keyframes cpSparkle {
  0%,100% {opacity:.55;scale:.85;rotate:-8deg}
  45%,55% {opacity:1;scale:1.08;rotate:9deg}
}
@keyframes cpButterfly {
  0%,100% {translate:0 0;rotate:-8deg}
  50% {translate:8px -6px;rotate:9deg}
}
@keyframes cpLeaf {
  0%,100% {translate:0 0;rotate:-10deg}
  50% {translate:6px 5px;rotate:14deg}
}
@keyframes cpBackgroundWander {
  0%,100% {opacity:.55;scale:1}
  50% {opacity:.8;scale:1.035}
}
.hero-art-brand {isolation:isolate}
.hero-art-brand::before {animation:cpBackgroundWander 18s ease-in-out infinite}
.hero-art-brand .hero-orbit {animation:cpOrbitBreath 40s ease-in-out infinite}
.hero-art-brand .orbit-two {animation-duration:48s;animation-delay:-18s}
.hero-art-brand .hero-logo-halo {animation:cpSoftHalo 12s ease-in-out infinite}
.hero-art-brand .hero-spark {animation:cpSparkle 9s ease-in-out infinite}
.hero-art-brand .spark-two {animation-delay:-4.5s;animation-duration:11s}
.compas-butterfly,.compas-leaf {
  position:absolute;pointer-events:none;z-index:2;line-height:1;
  filter:drop-shadow(1px 3px 2px rgba(22,79,53,.12));
}
.compas-butterfly {font-size:clamp(22px,2.5vw,37px);animation:cpButterfly 12s ease-in-out infinite}
.butterfly-a {top:7%;left:10%;animation-delay:-2s}
.butterfly-b {bottom:15%;right:12%;font-size:25px;animation-delay:-6s;animation-duration:15s}
.compas-leaf {right:2%;top:12%;font-size:25px;animation:cpLeaf 14s ease-in-out infinite}

/* Шареното е в детайлите, не върху текста. */
.hero-content .eyebrow {background:linear-gradient(100deg,#fff 0%,#ecfff0 42%,#fff2dc 100%)}
.hero-motto {color:#a34b1f}
.hero-actions .btn {position:relative;isolation:isolate}
.hero-actions .btn:focus-visible,.compas-daily summary:focus-visible {outline:3px solid #7957ce;outline-offset:4px}
.hero-actions .btn-primary:nth-child(2) {background:linear-gradient(120deg,#21784f,#2b8c83);box-shadow:0 6px 0 #0c4d44}
.hero-actions .btn-white {background:linear-gradient(120deg,#fff,#fff3cc)}
.missions-section {background:radial-gradient(circle at 6% 10%,#ffe5fa9e,transparent 35%),radial-gradient(circle at 95% 85%,#d9f8fcad,transparent 38%),#fff9e9}
.mission-card .mission-icon {display:inline-block;transform-origin:50% 80%;transition:transform .36s ease}
.mission-card:hover .mission-icon,.mission-card:focus-visible .mission-icon {transform:rotate(-8deg) scale(1.1)}
.mission-card:focus-visible {outline:4px solid #7865ca;outline-offset:5px}
.promise-row > div > span {display:inline-block;transform-origin:50% 80%;transition:transform .3s ease}
.promise-row > div:hover > span {transform:rotate(9deg) scale(1.08)}
.medal-discovery-art .medal-preview-tag {transition:transform .3s ease}
.medal-discovery-art:hover .medal-preview-tag {transform:rotate(3deg)}

/* Една цветна покана между началото и мисиите. */
.compas-daily {
  display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:18px;
  position:relative;margin-top:-16px;margin-bottom:18px;padding:21px 26px;
  border:2px solid #2a6545;border-radius:27px;
  background:linear-gradient(112deg,#fff2c7 0%,#e2f7e3 43%,#e4ecff 78%,#ffe5e6 100%);
  box-shadow:6px 7px 0 #c9ddc0;z-index:3;
}
.compas-daily::after {content:'✦';position:absolute;top:-18px;right:20%;font-size:26px;color:#d18d2b;transform:rotate(14deg)}
.compas-daily-emoji {
  width:68px;height:68px;display:grid;place-items:center;font-size:38px;
  background:#fff;border:2px solid #225539;border-radius:22px;
  box-shadow:4px 5px 0 #c7d9ad;transform:rotate(-7deg)
}
.compas-daily-kicker {display:block;color:#814a3a;font-size:11px;font-weight:1000;letter-spacing:1.2px}
.compas-daily h2 {margin:5px 0 5px;font-size:clamp(18px,2vw,24px);line-height:1.23;letter-spacing:-.4px;color:#154c37}
.compas-daily-copy > p {font-size:13px;margin:0;line-height:1.6;color:#526c65}
.compas-daily-details {max-width:310px;min-width:220px;justify-self:end}
.compas-daily-details summary {
  list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px;
  padding:13px 17px;background:#f7bb4e;color:#253c30;border:2px solid #1b4d36;
  border-radius:16px;box-shadow:3px 4px 0 #195038;font-weight:1000;font-size:13px;
  transition:transform .22s ease,box-shadow .22s ease;
}
.compas-daily-details summary::-webkit-details-marker{display:none}
.compas-daily-details summary:hover {transform:translateY(-2px);box-shadow:4px 6px 0 #195038}
.compas-daily-details[open] summary {background:#a4e4b1}
.compas-daily-details p {
  font-size:14px;line-height:1.6;font-weight:850;color:#1b523b;
  background:#ffffffbf;border:1px dashed #83aa9b;padding:12px 14px;border-radius:13px;margin:13px 0 8px;
}
.compas-daily-details small {font-size:11px;color:#637872;line-height:1.45;display:block}

/* При взаимодействие хвърчат кратки звездички, не постоянно по екрана. */
.compas-fun-burst {
  position:fixed;z-index:1000;left:0;top:0;pointer-events:none;
  font-size:19px;line-height:1;will-change:transform,opacity;
  animation:cpBurst 850ms cubic-bezier(.18,.62,.38,1) both;
}
@keyframes cpBurst {
  0% {opacity:0;transform:translate(-50%,-50%) scale(.3) rotate(0deg)}
  18% {opacity:1}
  100% {opacity:0;transform:translate(calc(-50% + var(--cp-dx)),calc(-50% + var(--cp-dy))) scale(.9) rotate(var(--cp-turn))}
}

@media(max-width:980px) {
  .compas-daily {grid-template-columns:65px 1fr;gap:14px}
  .compas-daily-details {grid-column:1/-1;justify-self:stretch;max-width:none}
}
@media(max-width:760px) {
  .compas-daily {width:calc(100% - 30px);margin-top:0;padding:18px 16px;border-radius:21px;box-shadow:4px 5px 0 #c9ddc0}
  .compas-daily-emoji {width:58px;height:58px;font-size:31px}
  .compas-daily h2 {font-size:18px}
  .compas-daily-details summary {width:100%;justify-content:space-between}
  .butterfly-a {top:5%;left:8%}.butterfly-b {right:7%;bottom:16%}
}
/* Настройките на устройството имат предимство пред всяка анимация. */
@media(prefers-reduced-motion:reduce){
  .hero-art-brand .floating-note {animation:none!important;translate:none!important}
  .hero-art-brand::before,.hero-art-brand .hero-orbit,.hero-art-brand .hero-logo-halo,
  .hero-art-brand .hero-spark,.compas-butterfly,.compas-leaf,
  .mission-card .mission-icon,.promise-row > div > span,.compas-fun-burst {animation:none!important;transition:none!important}
  .compas-fun-burst {display:none!important}
}


/* КОМПАС 2.0.1 — видими, но нежни анимации. За предпочитание use transform. */
@keyframes cp201FlyA {
  0%,100% {transform:translate3d(0,0,0) rotate(-9deg)}
  23% {transform:translate3d(17px,-20px,0) rotate(8deg)}
  53% {transform:translate3d(32px,-7px,0) rotate(-5deg)}
  77% {transform:translate3d(12px,9px,0) rotate(11deg)}
}
@keyframes cp201FlyB {
  0%,100% {transform:translate3d(0,0,0) rotate(12deg)}
  35% {transform:translate3d(-22px,-16px,0) rotate(-8deg)}
  72% {transform:translate3d(-12px,14px,0) rotate(8deg)}
}
@keyframes cp201Leaf {
  0%,100% {transform:translate3d(0,0,0) rotate(-14deg)}
  35% {transform:translate3d(-17px,11px,0) rotate(8deg)}
  70% {transform:translate3d(-30px,3px,0) rotate(19deg)}
}
@keyframes cp201Note {
  0%,100% {transform:translate3d(0,0,0) rotate(-4deg)}
  50% {transform:translate3d(0,-8px,0) rotate(-1deg)}
}
@keyframes cp201Wink {
  0%,100% {opacity:.35;transform:scale(.82) rotate(-6deg)}
  50% {opacity:1;transform:scale(1.12) rotate(6deg)}
}
@keyframes cp201Firefly {
  0%,100% {opacity:.35;transform:translate3d(0,0,0) scale(.8)}
  45% {opacity:1;transform:translate3d(8px,-15px,0) scale(1.12)}
  70% {opacity:.6;transform:translate3d(16px,-9px,0) scale(.94)}
}
@keyframes cp201Flower {
  0%,100% {transform:translate3d(0,0,0) rotate(-10deg)}
  50% {transform:translate3d(8px,-11px,0) rotate(13deg)}
}
/* По-ясен полет на пеперудите; на настолен екран движението е бавно. */
html:not(.compas-motion-off) .hero-art-brand .butterfly-a {
  animation:cp201FlyA 14s ease-in-out infinite !important;
}
html:not(.compas-motion-off) .hero-art-brand .butterfly-b {
  animation:cp201FlyB 17s ease-in-out infinite -5s !important;
}
html:not(.compas-motion-off) .hero-art-brand .compas-leaf {
  animation:cp201Leaf 18s ease-in-out infinite !important;
}
html:not(.compas-motion-off) .hero-art-brand .floating-note {
  animation:cp201Note 8.5s ease-in-out infinite !important;
}
html:not(.compas-motion-off) .hero-art-brand .note-two {
  animation-duration:10s !important;
  animation-delay:-3.6s !important;
}
html:not(.compas-motion-off) .hero-art-brand .note-three {
  animation-duration:9.5s !important;
  animation-delay:-5.5s !important;
}
html:not(.compas-motion-off) .hero-art-brand .hero-spark {
  animation:cp201Wink 6s ease-in-out infinite !important;
}
html:not(.compas-motion-off) .hero-art-brand .spark-two {
  animation-delay:-3s !important;
}
/* Новите горски детайли се създават от JS без да засягат данните на сайта. */
.compas-magic-extra {position:absolute;z-index:3;pointer-events:none;line-height:1;user-select:none;filter:drop-shadow(0 2px 2px #1a5d3633)}
.compas-magic-extra.cp-firefly-a {left:12%;bottom:28%;font-size:30px;color:#e3a92f}
.compas-magic-extra.cp-firefly-b {right:9%;top:44%;font-size:23px;color:#a77de6}
.compas-magic-extra.cp-flower-a {left:18%;top:7%;font-size:27px}
.compas-magic-extra.cp-leaf-b {right:5%;bottom:26%;font-size:23px}
html:not(.compas-motion-off) .cp-firefly-a {animation:cp201Firefly 8s ease-in-out infinite !important}
html:not(.compas-motion-off) .cp-firefly-b {animation:cp201Firefly 10s ease-in-out infinite -3s !important}
html:not(.compas-motion-off) .cp-flower-a {animation:cp201Flower 12s ease-in-out infinite -2s !important}
html:not(.compas-motion-off) .cp-leaf-b {animation:cp201Leaf 15s ease-in-out infinite -5s !important}
/* Ясен и достъпен контрол, близо до основната покана. */
.compas-magic-toggle {
  margin-top:14px;display:inline-flex;align-items:center;gap:9px;
  background:linear-gradient(110deg,#fff1aa,#e6f7ec,#f3e5ff);
  border:2px solid #447753;border-radius:999px;padding:9px 15px;
  font:800 12px/1.35 'Trebuchet MS','Segoe UI',sans-serif;
  color:#23563d;cursor:pointer;box-shadow:2px 3px 0 #d3dbae;
  transition:box-shadow .2s,transform .2s;
}
.compas-magic-toggle:hover {transform:translateY(-2px);box-shadow:3px 5px 0 #bcd4bd}
.compas-magic-toggle:focus-visible {outline:3px solid #7259c2;outline-offset:3px}
.compas-magic-toggle[aria-pressed="false"] {background:#f7f5ed;color:#5e6b63;box-shadow:2px 3px 0 #e2e1da}
/* Изключването спира само декоративното движение, не работата на въпросите. */
html.compas-motion-off .hero-art-brand .floating-note,
html.compas-motion-off .hero-art-brand .compas-butterfly,
html.compas-motion-off .hero-art-brand .compas-leaf,
html.compas-motion-off .hero-art-brand .hero-spark,
html.compas-motion-off .hero-art-brand .hero-orbit,
html.compas-motion-off .hero-art-brand .hero-logo-halo,
html.compas-motion-off .compas-magic-extra,
html.compas-motion-off .hero-art-brand::before,
html.compas-motion-off .compas-treasures-icon {animation:none!important;transition:none!important}
/* Според настройката за намалено движение по подразбиране сме изключени.
   След изрично натискане на бутона позволяваме избраните нежни движения. */
@media(prefers-reduced-motion:reduce) {
  html:not(.compas-motion-on) .hero-art-brand .floating-note,
  html:not(.compas-motion-on) .hero-art-brand .compas-butterfly,
  html:not(.compas-motion-on) .hero-art-brand .compas-leaf,
  html:not(.compas-motion-on) .hero-art-brand .hero-spark,
  html:not(.compas-motion-on) .compas-magic-extra {animation:none!important}
  html.compas-motion-on .hero-art-brand .butterfly-a {animation:cp201FlyA 14s ease-in-out infinite!important}
  html.compas-motion-on .hero-art-brand .butterfly-b {animation:cp201FlyB 17s ease-in-out infinite -5s!important}
  html.compas-motion-on .hero-art-brand .compas-leaf {animation:cp201Leaf 18s ease-in-out infinite!important}
  html.compas-motion-on .hero-art-brand .floating-note {animation:cp201Note 8.5s ease-in-out infinite!important}
  html.compas-motion-on .hero-art-brand .note-two {animation-duration:10s!important}
  html.compas-motion-on .hero-art-brand .note-three {animation-duration:9.5s!important}
  html.compas-motion-on .hero-art-brand .hero-spark {animation:cp201Wink 6s ease-in-out infinite!important}
  html.compas-motion-on .cp-firefly-a {animation:cp201Firefly 8s ease-in-out infinite!important}
  html.compas-motion-on .cp-firefly-b {animation:cp201Firefly 10s ease-in-out infinite!important}
  html.compas-motion-on .cp-flower-a {animation:cp201Flower 12s ease-in-out infinite!important}
  html.compas-motion-on .cp-leaf-b {animation:cp201Leaf 15s ease-in-out infinite!important}
}
@media(max-width:760px) {
  .compas-magic-toggle {margin-top:13px;max-width:100%;font-size:12px}
  .cp-flower-a {top:8%}
  .cp-firefly-b {right:5%}
  html:not(.compas-motion-off) .hero-art-brand .floating-note {animation-duration:6.6s!important}
}


/* === COMPAS 2.0.2: видима и проверима анимация — без статични 'снимки' ===
   Движението се управлява от .compas-motion-on / .compas-motion-off.
   Старите медали, таблици, програми и форми не се засягат. */
@keyframes compas202FlyOne {
  0%,100%{transform:translate3d(0,0,0) rotate(-13deg)}
  25%{transform:translate3d(29px,-23px,0) rotate(8deg)}
  55%{transform:translate3d(47px,1px,0) rotate(-7deg)}
  80%{transform:translate3d(16px,14px,0) rotate(10deg)}
}
@keyframes compas202FlyTwo {
  0%,100%{transform:translate3d(0,0,0) rotate(11deg)}
  30%{transform:translate3d(-36px,-24px,0) rotate(-10deg)}
  65%{transform:translate3d(-16px,18px,0) rotate(13deg)}
}
@keyframes compas202Leaves {
  0%,100%{transform:translate3d(0,0,0) rotate(-14deg)}
  50%{transform:translate3d(-19px,14px,0) rotate(18deg)}
}
@keyframes compas202Labels {
  0%,100%{transform:translate3d(0,0,0) rotate(-2deg)}
  50%{transform:translate3d(0,-7px,0) rotate(2deg)}
}
@keyframes compas202Sparkle {
  0%,100%{opacity:.45;transform:scale(.78) rotate(-10deg)}
  50%{opacity:1;transform:scale(1.16) rotate(15deg)}
}
@keyframes compas202FlyTest {
  0%{transform:translate3d(0,0,0) rotate(0deg)}
  22%{transform:translate3d(54px,-42px,0) rotate(24deg)}
  48%{transform:translate3d(92px,20px,0) rotate(-23deg)}
  76%{transform:translate3d(22px,31px,0) rotate(17deg)}
  100%{transform:translate3d(0,0,0) rotate(0deg)}
}
/* Explicitly high specificity to beat the legacy desktop 'animation: none'. */
html.compas-motion-on .hero-art-brand .butterfly-a {
  animation:compas202FlyOne 10s ease-in-out infinite !important;
  will-change:transform;
}
html.compas-motion-on .hero-art-brand .butterfly-b {
  animation:compas202FlyTwo 11s ease-in-out infinite -3s !important;
  will-change:transform;
}
html.compas-motion-on .hero-art-brand .compas-leaf {
  animation:compas202Leaves 8.5s ease-in-out infinite !important;
}
html.compas-motion-on .hero-art-brand .floating-note {
  animation:compas202Labels 8s ease-in-out infinite !important;
}
html.compas-motion-on .hero-art-brand .note-two {animation-delay:-2.2s !important;animation-duration:9.7s !important}
html.compas-motion-on .hero-art-brand .note-three {animation-delay:-4.3s !important;animation-duration:8.6s !important}
html.compas-motion-on .hero-art-brand .hero-spark {animation:compas202Sparkle 4.6s ease-in-out infinite !important}
html.compas-motion-on .hero-art-brand .spark-two {animation-delay:-2.3s !important}
html.compas-motion-on .hero-art-brand .cp-firefly-a,
html.compas-motion-on .hero-art-brand .cp-firefly-b {animation:compas202Sparkle 3.8s ease-in-out infinite !important}
html.compas-motion-on .hero-art-brand .cp-flower-a {animation:compas202Leaves 11s ease-in-out infinite !important}
html.compas-motion-on .hero-art-brand .cp-leaf-b {animation:compas202Leaves 9s ease-in-out infinite !important}
html.compas-motion-on .hero-art-brand.compas-motion-test .butterfly-a {
  animation:compas202FlyTest 1.8s ease-in-out 1 !important;
}
html.compas-motion-on .hero-art-brand.compas-motion-test .butterfly-b {
  animation:compas202FlyTest 1.8s ease-in-out .12s 1 reverse !important;
}
/* Always give the visitor a clearly discoverable manual override. */
.compas-magic-controls {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.compas-magic-toggle,.compas-motion-test-button {
  background:#fef4c9;color:#214a35;border:2px solid #39704c;border-radius:15px;
  padding:10px 13px;line-height:1.3;font-size:12px;font-weight:900;
  box-shadow:3px 4px 0 #b4d6b7;cursor:pointer;
}
.compas-motion-test-button{background:#d9f4ff;border-color:#47848a;box-shadow:3px 4px 0 #b1d3d8}
.compas-magic-toggle:hover,.compas-motion-test-button:hover {transform:translateY(-2px)}
.compas-magic-toggle:focus-visible,.compas-motion-test-button:focus-visible{outline:3px solid #8d63c9;outline-offset:3px}
.compas-magic-state {color:#315e49;font-size:12px;font-weight:800;display:inline-flex;gap:5px;align-items:center}
html.compas-motion-off .hero-art-brand .compas-butterfly,
html.compas-motion-off .hero-art-brand .compas-leaf,
html.compas-motion-off .hero-art-brand .floating-note,
html.compas-motion-off .hero-art-brand .hero-spark,
html.compas-motion-off .hero-art-brand .compas-magic-extra {animation:none!important}
@media(max-width:760px){.compas-magic-controls{margin-top:16px;gap:8px}.compas-magic-toggle,.compas-motion-test-button{font-size:11px;padding:10px}}
/* If reduced motion is requested, default is off. Explicitly turning ON via the control wins. */
@media(prefers-reduced-motion:reduce){
  html:not(.compas-motion-on) .hero-art-brand .compas-butterfly,
  html:not(.compas-motion-on) .hero-art-brand .compas-leaf,
  html:not(.compas-motion-on) .hero-art-brand .floating-note,
  html:not(.compas-motion-on) .hero-art-brand .hero-spark {animation:none!important}
}
