:root { --hlavicka: #d14f3a; --pozadie: #fdeee9; --pozadie2: #fff8f5; }
html, body, div, span, h1, h2, h3, h4, h5, h6 {
  border: 0;
  outline: 0;
}

body, div, p {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background-color: black;
  font-size: 11px;
  overflow: hidden;
  padding: 0;
  width: 1920px;
  height: 1080px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#container {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hlavicka) 0, var(--hlavicka) 190px, var(--pozadie) 190px, var(--pozadie2) 100%);
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #3b2a6b;
}

#navrat {
  position: absolute;
  top: 35px;
  left: 50px;
  z-index: 40;
  width: 120px;
  height: 120px;
  background-image: url('../images/navrat.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#btn_reset {
  position: absolute;
  left: 220px;
  top: 35px;
  height: 120px;
  width: 120px;
  z-index: 40;
  background-image: url('../images/reload.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#napis {
  position: absolute;
  left: 560px;
  top: 25px;
  height: 140px;
  width: 800px;
  z-index: 40;
}

#hviezdy {
  position: absolute;
  right: 60px;
  top: 50px;
  z-index: 40;
  padding: 0 34px;
  height: 90px;
  font: 900 64px/90px Inter, Arial, Helvetica, sans-serif;
  color: #3b2a6b;
  background: rgba(255, 255, 255, 0.85);
  border: 6px solid #3b2a6b;
  border-radius: 45px;
}
#hviezdy::before {
  content: "\2605";
  color: #ff9d00;
  -webkit-text-stroke: 2px #3b2a6b;
  margin-right: 14px;
}

#zadanie { position: absolute; left: 60px; top: 208px; width: 1200px; white-space: nowrap; overflow: hidden; font: 900 54px/66px Inter, Arial, Helvetica, sans-serif; }

/* pokrok k odznaku: 5 bodiek */
#pokrok { position: absolute; right: 70px; top: 214px; width: 560px; display: flex; justify-content: flex-end; gap: 16px; }
#pokrok span { width: 54px; height: 54px; box-sizing: border-box; border: 6px solid #3b2a6b; border-radius: 50%; background: #fff; transition: background-color 0.3s ease, transform 0.3s ease; }
#pokrok span.hotovo { background: #ffb000; transform: scale(1.15); }

/* odznak po 5 spravnych */
#odznak {
  position: absolute;
  left: 560px;
  top: 300px;
  width: 800px;
  box-sizing: border-box;
  padding: 36px 20px 40px;
  text-align: center;
  font: 900 72px/84px Inter, Arial, Helvetica, sans-serif;
  color: #3b2a6b;
  background: #fff6c9;
  border: 10px solid #ffb000;
  border-radius: 60px;
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.25);
  z-index: 60;
  display: none;
  animation: hIn 0.5s ease;
}
#odznak .hviezda { display: block; margin: 0 auto 10px; width: 160px; height: 160px; }
@keyframes hIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }


#ramik { position: absolute; left: 40px; top: 285px; width: 1840px; height: 760px; box-sizing: border-box; border: 8px solid #3b2a6b; border-radius: 44px; background: rgba(255, 255, 255, 0.7); z-index: 2; }
#park { position: absolute; left: 420px; top: 345px; width: 648px; height: 648px; z-index: 4; background: #7d8791; border-radius: 10px; box-shadow: 0 0 0 10px #3b2a6b; touch-action: none; overflow: visible;
  background-image: linear-gradient(rgba(255,255,255,0.18) 3px, transparent 3px), linear-gradient(90deg, rgba(255,255,255,0.18) 3px, transparent 3px); background-size: 108px 108px; }
#vychod { position: absolute; left: 1073px; top: 561px; width: 150px; height: 108px; z-index: 5; pointer-events: none; }
#vychod::before { content: ""; position: absolute; left: -30px; top: 0; width: 40px; height: 108px; background: #fdeee9; z-index: 6; }
#vychod::after { content: ""; position: absolute; left: 30px; top: 16px; width: 90px; height: 76px; background: #ffb000; clip-path: polygon(0 28%, 55% 28%, 55% 0, 100% 50%, 55% 100%, 55% 72%, 0 72%); filter: drop-shadow(0 3px 0 #3b2a6b); }
.auto { position: absolute; touch-action: none; cursor: grab; transition: left 0.18s ease, top 0.18s ease; }
.auto svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.35)); pointer-events: none; }
.auto.tahane { transition: none; z-index: 10; }
.auto.von { transition: left 0.9s ease-in; }
#info { position: absolute; left: 1240px; top: 330px; z-index: 6; font-family: Inter, Arial, sans-serif; color: #3b2a6b; }
#info #uroven { font: 900 60px/72px Inter, Arial, sans-serif; margin-bottom: 20px; }
#info #tahy { font: 900 64px/76px Inter, Arial, sans-serif; }
#info #najmenej { font: 800 48px/60px Inter, Arial, sans-serif; color: #6a5a9a; }
#hlaska { position: absolute; left: 1240px; top: 640px; width: 590px; font: 900 44px/54px Inter, Arial, sans-serif; color: #3b2a6b; z-index: 7; }
#hlaska.dobre { color: #1f9d3d; }
#btn_pravidla { position: absolute; left: 390px; top: 35px; width: 120px; height: 120px; box-sizing: border-box; border: 8px solid #fff; border-radius: 50%; color: #fff; font: 900 80px/100px Inter, Arial, sans-serif; text-align: center; cursor: pointer; z-index: 40; touch-action: manipulation; }
#okno { position: absolute; left: 160px; top: 260px; width: 1600px; height: 640px; box-sizing: border-box; padding: 26px 60px; background: #fff; border: 9px solid #3b2a6b; border-radius: 56px; z-index: 50; display: none; color: #3b2a6b; font-family: Inter, Arial, sans-serif; }
#okno h2 { margin: 0 0 14px; font: 900 64px/76px Inter, Arial, sans-serif; text-align: center; }
#okno .r { margin: 18px 0; font: 800 42px/52px Inter, Arial, sans-serif; }
#okno .ok { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); min-width: 340px; padding: 0 40px; height: 90px; line-height: 76px; text-align: center; font: 900 50px/76px Inter, Arial, sans-serif; color: #fff; background: #1f9d3d; border: 7px solid #17692a; border-radius: 30px; cursor: pointer; touch-action: manipulation; }
